/* =================================================================
   Two Rivers Web Designs — Design System
   Plain CSS, dark/light themeable. Gold accent on deep navy.
================================================================= */

/* ---------- Theme tokens ---------- */
:root {
  --bg:        #0b1020;
  --bg-alt:    #0f1730;
  --card:      #141d3a;
  --card-2:    #18234a;
  --text:      #ffffff;
  --muted:     #9aa4bf;
  --accent:    #43b7ff;
  --accent-2:  #6fc8ff;
  --accent-ink:#001f3f;
  --border:    rgba(255, 255, 255, 0.09);
  --shadow:    0 18px 40px -18px rgba(0, 0, 0, 0.65);
  --ring:      rgba(67, 183, 255, 0.35);
  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1180px;
  --font:      "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="light"] {
  --bg:        #e6ecf6;
  --bg-section:#f7f7f7;
  --bg-alt:    #ffffff;
  --card:      #ffffff;
  --card-2:    #eef2f9;
  --text:      #1a1a1a;
  --muted:     #58566f;
  --accent:    #43b7ff;
  --accent-2:  #1f9bef;
  --accent-ink:#ffffff;
  --border:    rgba(0, 31, 63, 0.12);
  --shadow:    0 18px 40px -22px rgba(0, 31, 63, 0.26);
  --ring:      rgba(67, 183, 255, 0.35);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background .3s ease, color .3s ease;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 { line-height: 1.18; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: clamp(56px, 9vw, 110px); position: relative; background: var(--bg-section, var(--bg)); }
.section--alt { background: var(--bg-alt); }
.section--cta { background: var(--bg); }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head.center { margin-inline: auto; text-align: center; }
/* lone heading (intro sections) sits centred in its section */
.container > .section__head:only-child { margin-bottom: 0; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.eyebrow--lg {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 1rem; letter-spacing: .26em; margin-bottom: 20px;
}
.eyebrow--lg::before {
  content: ""; width: 38px; height: 2px; border-radius: 2px; background: var(--accent);
}
.lead { color: var(--muted); font-size: 1.08rem; margin-top: 16px; }
.text-muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); box-shadow: 0 12px 28px -12px var(--ring); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px var(--ring); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--block { width: 100%; }
[data-theme="light"] .btn--primary { background: linear-gradient(135deg, #0a3c6f, #001f3f); color: #ffffff; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: transparent;
  padding-top: 26px;
  transition: padding-top .4s ease, background .35s ease;
}
/* white bar background — full-width on scroll, inset pill at top; content stays put */
.header::before {
  content: ""; position: absolute;
  top: 26px; bottom: 0;
  left: max((100% - var(--maxw)) / 2, 16px);
  right: max((100% - var(--maxw)) / 2, 16px);
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: 0 10px 30px -16px rgba(0, 31, 63, .25);
  transition: top .4s ease, left .4s ease, right .4s ease, border-radius .35s ease, box-shadow .35s ease;
}
.header--over-dark { background: #001f3f; }
.header--scrolled { padding-top: 0; }
.header--scrolled::before { top: 0; left: 0; right: 0; border-radius: 0; box-shadow: 0 6px 20px -10px rgba(0, 0, 0, .22); }
.nav {
  position: relative;
  display: flex; align-items: center; gap: 20px; height: 64px;
  max-width: var(--maxw); margin-inline: auto;
  padding-inline: clamp(20px, 2.2vw, 34px);
}
/* page-label hero — dark banner with the centered page title */
.hero.hero--label { padding-top: clamp(100px, 12vw, 156px); padding-bottom: clamp(22px, 3vw, 40px); }
.hero__label { text-align: center; font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.01em; color: #ffffff; line-height: 1; }
.brand { display: flex; align-items: center; }
.brand__text { display: flex; flex-direction: column; line-height: 1.04; color: #001f3f; }
.brand__name { font-family: "Poppins", var(--font); font-weight: 700; font-size: 1.32rem; letter-spacing: -.01em; }
.brand__sub { font-family: "Poppins", var(--font); font-weight: 400; font-size: 1.16rem; letter-spacing: 0; }
[data-theme="dark"] .brand__text { color: #ffffff; }

.nav__menu { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px;
  color: #001f3f; font-weight: 500; font-size: 1.06rem; transition: color .15s;
}
.nav__link:hover { color: #43b7ff; }
.nav__link[aria-current="page"] { color: #001f3f; font-weight: 600; }
.nav__actions .btn { font-size: 1.02rem; }
[data-theme="dark"] .nav__link { color: #c9d3e6; }
[data-theme="dark"] .nav__link:hover, [data-theme="dark"] .nav__link[aria-current="page"] { color: #43b7ff; }

/* dropdown */
.has-drop { position: relative; }
.drop__toggle::after { content: "▾"; font-size: .7em; opacity: .7; }
.drop {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; padding: 8px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
  display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.has-drop:hover .drop, .has-drop:focus-within .drop, .drop.open { opacity: 1; visibility: visible; transform: translateY(0); }
.drop a { padding: 10px 12px; border-radius: 9px; color: var(--muted); font-size: .94rem; font-weight: 500; }
.drop a:hover { background: var(--card-2); color: var(--text); }

.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: 6px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 11px; border: 0;
  background: transparent; color: var(--text); display: grid; place-items: center;
}
.theme-toggle:hover { color: var(--accent); }
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }

.nav__burger { display: none; width: 42px; height: 42px; border-radius: 11px; border: 0; background: #001f3f; color: #fff; }
[data-theme="dark"] .nav__burger { background: #43b7ff; color: #001f3f; }
.nav__burger-box { position: relative; width: 20px; height: 14px; margin: 0 auto; }
.nav__burger-line { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: top .25s ease, transform .25s ease, opacity .2s ease; }
.nav__burger-line:nth-child(1) { top: 0; }
.nav__burger-line:nth-child(2) { top: 6px; }
.nav__burger-line:nth-child(3) { top: 12px; }
.nav__burger[aria-expanded="true"] .nav__burger-line:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] .nav__burger-line:nth-child(2) { opacity: 0; transform: scaleX(.4); }
.nav__burger[aria-expanded="true"] .nav__burger-line:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 1; padding-block: clamp(60px, 10vw, 120px);
  background: #001f3f;
  --text: #ffffff;
  --muted: #c4d3e6;
  --border: rgba(255, 255, 255, 0.16);
  color: var(--text);
}
.hero .glow { display: none; }
.hero .btn--primary { background: linear-gradient(135deg, #43b7ff, #6fc8ff); color: #001f3f; }
/* swooped bottom edge — same dark colour curves down into the section below */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; top: calc(100% - 1px);
  height: clamp(26px, 4vw, 46px);
  background: #001f3f;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.about__photo { width: 100%; height: auto; display: block; border-radius: 22px; box-shadow: var(--shadow); aspect-ratio: 2 / 3; object-fit: cover; background: rgba(255, 255, 255, .06); }
.about__story p { color: var(--muted); font-size: 1rem; line-height: 1.6; max-width: 540px; }
.about__story .lead { font-size: 1.05rem; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero p { color: var(--muted); font-size: 1.12rem; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; color: var(--muted); font-size: .9rem; }
.hero__trust b { color: var(--text); }

.mockup {
  position: relative; border-radius: 18px; border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--card), var(--card-2)); box-shadow: var(--shadow); padding: 14px;
}
.mockup__bar { display: flex; gap: 6px; margin-bottom: 12px; }
.mockup__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.mockup__screen { border-radius: 12px; background: var(--bg); border: 1px solid var(--border); height: 280px; display: grid; place-items: center; overflow: hidden; position: relative; }
.mockup__screen img { width: 100%; height: auto; display: block; }
.mockup__screen .blob { position: absolute; width: 220px; height: 220px; border-radius: 50%; filter: blur(50px); opacity: .5; background: var(--accent); top: -40px; right: -30px; }
.mockup__screen .blob.two { background: #5b8cff; bottom: -60px; left: -40px; top: auto; right: auto; }
.mockup__screen span { position: relative; font-weight: 800; font-size: 1.4rem; color: var(--text); }

/* hero preview window — Safari-style top bar holding the mac buttons, screenshot flush below */
.mockup--shot { padding: 0; overflow: hidden; }
.mockup--shot .mockup__bar { position: relative; display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mockup--shot .mockup__bar i { width: 11px; height: 11px; box-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.mockup--shot .mockup__bar i:nth-child(1) { background: #ff5f57; }
.mockup--shot .mockup__bar i:nth-child(2) { background: #febc2e; }
.mockup--shot .mockup__bar i:nth-child(3) { background: #28c840; }
.mockup--shot .mockup__screen { height: auto; border: 0; border-radius: 0; background: transparent; }
.hero--dark .mockup {
  background: linear-gradient(160deg, #12223e, #0c1830);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 26px 46px rgba(0, 0, 0, .4);
}

/* decorative glow */
.glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(90px); opacity: .22; z-index: 0; }
.glow--gold { background: var(--accent); width: 420px; height: 420px; top: -120px; right: -80px; }
.glow--blue { background: #4f7cff; width: 360px; height: 360px; bottom: -140px; left: -100px; opacity: .16; }
.hero .container, .section .container { position: relative; z-index: 1; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: var(--shadow); }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: #001f3f; font-weight: 600; font-size: .92rem; }
[data-theme="dark"] .card__link { color: var(--accent); }
.card__link:hover { gap: 10px; }

/* ---------- Check list ---------- */
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 26px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checks .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); display: grid; place-items: center; font-size: .8rem; margin-top: 2px; }

.checks--detailed { gap: 30px 40px; align-items: stretch; }
.checks--detailed li { font-weight: 400; }
.checks--detailed strong { display: block; font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.checks--detailed p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

/* ---------- Feature row ---------- */
.featrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: center; }
.featrow .feat { padding: 28px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.featrow .feat .ic { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: 28px; padding-left: 4px; }
.timeline::before {
  content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 20%, transparent));
}
.timeline__item { position: relative; padding-left: 48px; }
.timeline__item::before {
  content: ""; position: absolute; left: 8px; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.timeline__time { display: block; font-weight: 700; font-size: 1.08rem; color: var(--accent); }
.timeline__desc { margin: 5px 0 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.price {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px;
  display: flex; flex-direction: column; gap: 18px;
}
.price--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); position: relative; }
.price__badge { position: absolute; top: -13px; left: 30px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font-size: .72rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .04em; }
.price__name { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.price__amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.price__amount small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.price__list { display: grid; gap: 11px; margin: 4px 0; }
.price__list li { display: flex; justify-content: space-between; gap: 14px; align-items: center; color: var(--text); font-size: .94rem; }
.price__list li .mark { flex: none; font-size: 1.05rem; line-height: 1; }
.price__list .y { color: var(--accent); }
.price__list li.off { color: var(--text); }
.price__list li.off span:not(.mark) { text-decoration: line-through; }
.price__list li.off .mark { opacity: .85; }

/* ---------- Testimonials ---------- */
.quote { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.quote .mark { color: var(--accent); font-size: 2.6rem; line-height: .6; font-family: Georgia, serif; }
.quote p { color: var(--text); margin: 10px 0 18px; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .who .av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; }
.quote .who b { font-size: .95rem; }
.quote .who span { color: var(--muted); font-size: .85rem; }

/* ---------- Blog ---------- */
.posts { display: grid; gap: 22px; }
.post { display: grid; grid-template-columns: 280px 1fr; gap: 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .18s, transform .18s; }
.post:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); transform: translateY(-3px); }
.post__img { min-height: 170px; background: linear-gradient(135deg, var(--card-2), var(--bg-alt)); display: grid; place-items: center; color: var(--accent); }
.post__body { padding: 24px; }
.post__meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin-bottom: 10px; }
.post__meta .tag { color: var(--accent); border: 1px solid var(--border); padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.post__body h3 { margin-bottom: 8px; }
.post__body p { color: var(--muted); font-size: .95rem; }
.post__more { color: var(--accent); font-weight: 600; font-size: .9rem; margin-top: 14px; display: inline-block; }

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--muted); font-weight: 600; font-size: .92rem; }
.tab[aria-selected="true"] { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); border-color: transparent; }
.tabpanel[hidden] { display: none; }

/* ---------- Accordion ---------- */
.acc { display: grid; gap: 12px; }
.acc__item {
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); overflow: hidden;
  transition: border-color .3s ease;
}
.acc__item.open {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
}
.acc__q {
  width: 100%; text-align: left; border: 0; padding: 18px 22px; display: flex; justify-content: space-between;
  gap: 16px; align-items: center; font-weight: 600; color: var(--text); background: transparent;
  transition: color .25s ease;
}
.acc__q:hover { color: var(--accent); }
.acc__item.open .acc__q { color: var(--accent); }
.acc__q .pm {
  flex: none; color: var(--accent); font-size: 1.4rem; line-height: 1;
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.acc__item.open .pm { transform: rotate(135deg); }
.acc__a { max-height: 0; overflow: hidden; transition: max-height .42s cubic-bezier(.22, 1, .36, 1); }
.acc__a p {
  padding: 0 22px 20px; color: var(--muted);
  opacity: 0; transform: translateY(-8px);
  transition: opacity .3s ease, transform .4s cubic-bezier(.22, 1, .36, 1);
}
.acc__a p:first-child { padding-top: 6px; }
.acc__item.open .acc__a p { opacity: 1; transform: translateY(0); transition-delay: .1s; }
.acc__item.open .acc__a p:nth-child(2) { transition-delay: .17s; }
.acc__item.open .acc__a p:nth-child(3) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .acc__item, .acc__q, .acc__q .pm, .acc__a, .acc__a p { transition-duration: .01ms; }
  .acc__a p { transform: none; }
}

/* ---------- CTA band ---------- */
.cta {
  text-align: center; border-radius: 24px; padding: clamp(40px, 6vw, 70px);
  background: linear-gradient(160deg, var(--card), var(--card-2));
  border: 1px solid var(--border); position: relative; overflow: hidden;
}
.cta h2 { max-width: 640px; margin-inline: auto; }
.cta .btn { margin-top: 26px; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% -20%, var(--ring), transparent 60%); opacity: .6; }
.cta > * { position: relative; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact__cards { display: grid; gap: 14px; }
.cinfo { display: flex; gap: 14px; align-items: center; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.cinfo .ic { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.cinfo b { display: block; }
.cinfo span { color: var(--muted); font-size: .92rem; }
.form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .88rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit; transition: border-color .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field--hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Article ---------- */
.article { max-width: 760px; margin-inline: auto; }
.article h2 { margin: 36px 0 14px; }
.article h3 { margin: 26px 0 10px; }
.article p { color: var(--muted); margin-bottom: 18px; }
.article ul.bullets { display: grid; gap: 10px; margin-bottom: 18px; }
.article ul.bullets li { color: var(--muted); padding-left: 26px; position: relative; }
.article ul.bullets li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.article__hero { height: 320px; border-radius: var(--radius); background: linear-gradient(135deg, var(--card), var(--card-2)); display: grid; place-items: center; color: var(--accent); margin-bottom: 30px; border: 1px solid var(--border); }

.page-hero { text-align: center; padding-block: clamp(56px, 8vw, 96px); }
.page-hero p { max-width: 620px; margin: 18px auto 0; color: var(--muted); font-size: 1.08rem; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: #001f3f; color: #ffffff;
  --text: #ffffff; --muted: #b9c6db; --border: rgba(255, 255, 255, .14);
  padding-block: 70px 30px; margin-top: clamp(70px, 9vw, 120px);
}
.footer__arc { position: absolute; left: 0; right: 0; bottom: 100%; width: 100%; height: clamp(48px, 8vw, 110px); }
.footer__arc path { fill: #001f3f; }
.footer .brand__text { color: #ffffff; }
.footer .btn--primary { background: linear-gradient(135deg, #43b7ff, #6fc8ff); color: #001f3f; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.footer__brand p { color: var(--muted); margin: 16px 0 22px; max-width: 360px; }
.footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 16px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a { color: var(--muted); font-size: .95rem; }
.footer__links a:hover { color: var(--accent); }
.footer__contact li { color: var(--muted); font-size: .95rem; margin-bottom: 10px; display: flex; gap: 9px; white-space: nowrap; }
.footer__contact b { color: var(--text); font-weight: 600; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding-top: 26px; color: var(--muted); font-size: .88rem; }
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .split, .contact { grid-template-columns: 1fr; }
  .hero__grid { gap: 36px; }
  .grid--3, .featrow, .pricing { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .post { grid-template-columns: 1fr; }
  .post__img { min-height: 150px; }

  /* mobile: the bar stays docked full-width at the very top, fully static — no scroll-driven
     padding/position/shadow changes, so nothing can jitter or open a gap while scrolling */
  .header { padding-top: 0; transition: none; }
  .header::before { top: 0; left: 0; right: 0; border-radius: 0; box-shadow: 0 6px 20px -10px rgba(0, 0, 0, .22); transition: none; }

  .nav__menu {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--card); border-bottom: 1px solid var(--border); padding: 16px 22px 24px;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s; max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav__menu.open { transform: translateY(0); opacity: 1; visibility: visible; box-shadow: 0 16px 28px -18px rgba(0, 31, 63, .4); }
  /* burger open: the floating pill grows full-width, docks to the top, and the menu attaches seamlessly below it */
  .header--menu-open { padding-top: 0; }
  .header--menu-open::before { top: 0; left: 0; right: 0; border-radius: 0; box-shadow: 0 8px 24px -12px rgba(0, 31, 63, .3); }
  .header--menu-open .nav__menu { inset: 64px 0 auto 0; max-height: calc(100vh - 64px); }
  .nav__link { padding: 12px 14px; }
  .has-drop { display: block; }
  .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: transparent; padding: 0 0 0 14px; display: none; }
  .drop.open { display: grid; }
  .nav__burger { display: grid; place-items: center; order: 3; }
  .nav__actions { order: 2; margin-left: auto; }
  .nav__actions .btn { display: none; }
}

@media (max-width: 620px) {
  .grid--3, .grid--2, .featrow, .pricing, .checks, .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 auto; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
