/* ==========================================================================
   Nauf Insurance — design system
   Built to NAUF Brand Book v1.0 (July 2026).

   Working proportion, per the book: mostly white space, navy structure,
   ink for text, teal as the accent, blend only at overlaps.

   Accessibility note from the book, enforced here:
     Clear Teal on white is 2.49:1 — it is NEVER used for text on light.
     It appears only as graphics, rules, fills and large UI. Links are
     Summit Navy with a teal underline so both rules are satisfied.
   ========================================================================== */

:root {
  /* ---- Brand: light ---------------------------------------------------- */
  --navy:       #16405F;   /* Summit Navy — panels, primary buttons on light */
  --teal:       #14B8A6;   /* Clear Teal — accents, rules, graphics          */
  --blend:      #0D5560;   /* Meeting Point — ONLY where navy + teal overlap */
  --ink:        #0B2545;   /* Ink Navy — headlines and body on light         */
  --slate:      #5B7A99;   /* Slate — sub-lines, secondary text, captions    */

  /* ---- Brand: dark ----------------------------------------------------- */
  --navy-d:     #2E6E96;
  --teal-d:     #17C7B4;
  --blend-d:    #126572;
  --snow:       #F1F5F9;
  --slate-d:    #8FB3D9;
  --night:      #0F172A;   /* recommended dark surface */

  /* ---- Surfaces (mostly white space) ----------------------------------- */
  --paper:      #FFFFFF;
  --canvas:     #FBFCFE;
  --canvas-2:   #F1F5F9;   /* Snow */
  --canvas-3:   #E7EEF5;

  /* ---- Derived ---------------------------------------------------------- */
  --ink-2:      #33547A;   /* body copy — 7.0:1 on white */
  --line:       #DCE6EF;
  --line-soft:  #EDF2F7;
  --navy-50:    #EAF1F7;
  --navy-100:   #D2E1EE;
  --teal-50:    #E7FAF7;
  --teal-100:   #C2F1EA;

  /* ---- Functional UI states (outside the brand palette on purpose) ------ */
  --flag:       #B3261E;   /* policy red flags — 6.4:1 on white */
  --flag-50:    #FDECEA;
  --flag-line:  #F5CFCB;
  --notice:     #FDF6E3;   /* editor-facing placeholders */
  --notice-line:#E8D9A8;

  /* ---- Type ------------------------------------------------------------- */
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  /* Weights per the book: 400 body, 500 headings & buttons, 600 sparingly (numbers) */

  /* ---- Space ------------------------------------------------------------ */
  --wrap: 1160px;
  --gut: 24px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11, 37, 69, .05), 0 2px 8px rgba(11, 37, 69, .04);
  --shadow-md: 0 2px 4px rgba(11, 37, 69, .04), 0 12px 32px rgba(11, 37, 69, .08);
  --shadow-lg: 0 4px 8px rgba(11, 37, 69, .05), 0 24px 60px rgba(11, 37, 69, .11);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; color: var(--navy); }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Layout ----------
   Sections alternate white ↔ Snow. That banding is what separates one block
   from the next; without it two white sections just stack their padding and
   read as a void. Keep the alternation intact when adding sections. */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(52px, 6vw, 84px); }
.section--tight { padding-block: clamp(40px, 4.5vw, 60px); }
.section--paper { background: var(--canvas-2); }      /* Snow band */
.section--cream2 { background: var(--canvas-2); }     /* Snow band */
.section--ink { background: var(--night); color: var(--snow); }
.section--ink h2, .section--ink h3 { color: var(--snow); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Type ---------- */
/* Caption style from the book: Poppins Regular 12, +8% tracking */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy); background: var(--teal-50);
  border: 1px solid var(--teal-100);
  padding: 7px 14px; border-radius: var(--radius-pill);
}
.eyebrow--clay { color: var(--navy); background: var(--navy-50); border-color: var(--navy-100); }

/* 1.14 not 1.06 — the teal accent rule needs clearance from the next line */
.h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.035em; line-height: 1.14; }
.h2 { font-size: clamp(27px, 4vw, 44px); letter-spacing: -0.03em; line-height: 1.12; }
.h3 { font-size: clamp(20px, 2.2vw, 25px); letter-spacing: -0.02em; }
.h4 { font-size: 18px; letter-spacing: -0.015em; line-height: 1.35; }

.lede { font-size: clamp(16.5px, 1.4vw, 18.5px); color: var(--ink-2); line-height: 1.65; }
.small { font-size: 14.5px; color: var(--slate); line-height: 1.6; }
.tiny { font-size: 12.5px; color: var(--slate); line-height: 1.6; }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-sm { max-width: 48ch; }
.mx-auto { margin-inline: auto; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; }
.mt-56 { margin-top: clamp(36px, 5vw, 56px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15.5px; font-weight: 500; letter-spacing: -0.005em;
  padding: 15px 26px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.8,.3,1), background-color .18s, box-shadow .18s, border-color .18s, color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Primary buttons on light = Summit Navy (brand book, 04 Colour) */
.btn--primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--ink); box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--canvas-2); border-color: var(--navy); }

/* On dark surfaces the accent flips to the dark-mode teal */
.btn--light { background: var(--teal-d); color: var(--night); }
.btn--light:hover { background: #2AD9C6; }

.btn--sm { padding: 11px 20px; font-size: 14.5px; }
.btn--lg { padding: 17px 32px; font-size: 16.5px; }
.btn--block { width: 100%; }

.btn .arrow { transition: transform .2s cubic-bezier(.2,.8,.3,1); }
.btn:hover .arrow { transform: translateX(3px); }

/* Links: navy text (AAA) with a teal underline — teal never carries the text */
.link-underline {
  font-weight: 500; color: var(--navy);
  border-bottom: 2px solid var(--teal); padding-bottom: 1px;
  transition: border-color .18s, color .18s;
}
.link-underline:hover { color: var(--ink); border-color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .84);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background-color .25s;
}
.site-header.is-stuck { border-bottom-color: var(--line); background: rgba(255, 255, 255, .96); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 84px; }

.logo { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; }
.logo__mark { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px; }

/* Brand book, 03 Construction: horizontal lockup never below 120px wide.
   The supplied file is the DARK-background variant (near-white wordmark), so
   it sits on a Summit Navy chip — the book's own rule is "use the dark version
   on dark backgrounds". Swap to nauf-logo-horizontal.png and delete the chip
   rules below once the light lockup is available.
   The artwork occupies only ~42% of the file's height, so it is scaled up and
   cropped with object-fit rather than shrunk into illegibility. */
/* Pre-cropped and pre-resampled to 3x its display size (see js/config.js), so
   the browser only downscales 3x instead of 17x — that 17x downscale was what
   pixelated the letterforms. No object-fit cropping needed. */
.logo__img {
  height: 70px;
  width: 152px;              /* above the book's 120px lockup minimum */
  border-radius: 12px;
}

.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-size: 22px; font-weight: 500; letter-spacing: .05em; color: var(--ink); }
.logo__sub { font-size: 10px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--slate); margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 15px; font-weight: 400; color: var(--ink-2);
  padding: 9px 14px; border-radius: var(--radius-pill); transition: background-color .18s, color .18s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--canvas-2); }

.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: background-color .2s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); transition: transform .22s ease;
}
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none; border-top: 1px solid var(--line); background: var(--paper);
  padding: 12px var(--gut) 24px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 14px 4px; font-size: 16.5px; font-weight: 400; border-bottom: 1px solid var(--line-soft); }
.mobile-nav .btn { margin-top: 18px; }

@media (max-width: 940px) {
  .nav { display: none; }
  .header-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(56px, 8vw, 100px) clamp(56px, 7vw, 92px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 620px;
  background: radial-gradient(58% 58% at 20% 30%, rgba(20, 184, 166, .09), transparent 70%),
              radial-gradient(46% 50% at 88% 10%, rgba(22, 64, 95, .08), transparent 70%);
  pointer-events: none;
}
/* Single centred column since the hero card was removed — a lone left column
   would leave the same dead space on the right that the banding fix addressed. */
.hero-grid { position: relative; max-width: 900px; margin-inline: auto; text-align: center; }
.hero .eyebrow { margin-inline: auto; }
.hero h1 { margin-top: 22px; }

/* The accent word stays Ink Navy (teal on white fails contrast) and is marked
   with a teal underline instead — teal as graphic, never as text. */
.hero h1 .accent { position: relative; color: var(--ink); white-space: nowrap; }
.hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .11em;
  background: var(--teal); border-radius: 2px; z-index: -1;
}
/* Subhead per the brand book: Poppins Medium ~20. Sits between the headline and
   the supporting paragraph, so the hierarchy reads h1 → promise → detail. */
.hero-sub {
  margin-top: 22px; margin-inline: auto; max-width: 46ch;
  font-size: clamp(18px, 1.7vw, 21px); font-weight: 500; line-height: 1.45;
  letter-spacing: -0.015em; color: var(--ink);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 32px; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 400; color: var(--ink-2); }
.trust-row svg { flex: 0 0 17px; color: var(--teal); }

/* ---------- Insurer strip (auto-scrolling marquee) ---------- */
.strip { background: var(--paper); border-block: 1px solid var(--line); padding-block: 22px; overflow: hidden; }
.strip__inner { display: flex; align-items: center; gap: 28px; }
.strip__label {
  flex: 0 0 auto; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--slate); font-weight: 500;
}

/* Fades the names in and out at the edges so they don't clip hard */
.strip__viewport {
  flex: 1 1 auto; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.strip__track {
  display: flex; width: max-content;
  animation: strip-scroll 34s linear infinite;
}
.strip__track:hover { animation-play-state: paused; }

/* Spacing on the item, not a flex gap — see the note in index.html */
.strip__item {
  flex: 0 0 auto; margin-right: 48px;
  font-size: 16px; font-weight: 500; color: var(--ink-2); letter-spacing: -0.01em;
  white-space: nowrap;
}

@keyframes strip-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .strip__track { animation: none; }
}

/* ---------- Section head ---------- */
.sec-head { max-width: 66ch; }
.sec-head.center { margin-inline: auto; }
.sec-head h2 { margin-top: 18px; }
.sec-head .lede { margin-top: 18px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s, border-color .22s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin-top: 18px; }
.card p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.card--flat:hover { transform: none; box-shadow: none; }
.card--cream { background: var(--canvas-2); border-color: var(--line-soft); }

.icon-badge {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 13px; background: var(--teal-50); color: var(--navy); border: 1px solid var(--teal-100);
}
.icon-badge--clay { background: var(--flag-50); color: var(--flag); border-color: var(--flag-line); }
.icon-badge--gold { background: var(--navy-50); color: var(--navy); border-color: var(--navy-100); }

/* Product cards */
.product-card {
  display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px;
  transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card h3 { margin-top: 20px; font-size: clamp(23px, 2.4vw, 29px); letter-spacing: -0.03em; }
.product-card > p { margin-top: 12px; color: var(--ink-2); }
.product-card ul { margin-top: 22px; display: grid; gap: 11px; }
.product-card li { display: flex; gap: 11px; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.product-card li svg { flex: 0 0 18px; margin-top: 3px; color: var(--teal); }
.product-card .product-card__cta { margin-top: auto; padding-top: 28px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 68px 1fr; gap: 24px; align-items: start;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num { font-size: 30px; font-weight: 600; color: var(--navy); line-height: 1; letter-spacing: -0.04em; }
.step__num::before { counter-increment: step; content: "0" counter(step); }
.step__body h3 { font-size: 20px; }
.step__body p { margin-top: 8px; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 600px) { .step { grid-template-columns: 52px 1fr; gap: 16px; } .step__num { font-size: 24px; } }

/* ---------- Split / advisor ---------- */
.split { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.portrait {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--canvas-3); aspect-ratio: 4 / 5; max-width: 420px;
  min-height: 380px;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; }
.portrait__ph span { font-size: 13.5px; color: var(--slate); max-width: 24ch; line-height: 1.5; }

/* ---------- Founder story (#about) ---------- */
.split--top { align-items: start; }

.story { gap: clamp(32px, 4.5vw, 60px); }
.story__media { position: sticky; top: 108px; }
@media (max-width: 900px) { .story__media { position: static; } }

.story__body > p { font-size: clamp(16px, 1.35vw, 17.5px); color: var(--ink-2); line-height: 1.72; }
.story__body > p + p { margin-top: 18px; }
.story__body strong { color: var(--ink); font-weight: 500; }
.story__body .lede { color: var(--ink); }

/* The number that makes the story land — kept factual, not decorative */
.story__stat {
  margin: 26px 0; padding: 22px 26px;
  background: var(--paper); border: 1px solid var(--line);
  border-left: 4px solid var(--teal); border-radius: 14px;
}
.story__stat-value {
  display: block; font-size: clamp(30px, 3.6vw, 40px); font-weight: 600;
  letter-spacing: -0.04em; color: var(--navy); line-height: 1;
}
.story__stat-label { display: block; margin-top: 11px; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }

.story__sign { margin-top: 22px; }
.story__sign strong { display: block; font-size: 16.5px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.story__sign span { font-size: 14px; color: var(--slate); }

/* ---------- Mission ---------- */
.mission { margin-top: clamp(48px, 6vw, 76px); }
.mission__head { max-width: 24ch; margin-inline: auto; }
.mission .card { background: var(--paper); }
.mission .card h4 { margin-top: 18px; }
.mission .card p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.mission__close {
  max-width: 34ch; margin: clamp(34px, 4.5vw, 48px) auto 0; text-align: center;
  font-size: clamp(19px, 2.3vw, 26px); font-weight: 500; line-height: 1.45;
  letter-spacing: -0.025em; color: var(--ink);
}

.quote-block { border-left: 3px solid var(--teal); padding-left: 22px; }
.quote-block p { font-size: clamp(18px, 1.9vw, 22px); line-height: 1.5; letter-spacing: -0.02em; color: var(--ink); font-weight: 400; }

.credentials { display: grid; gap: 12px; margin-top: 28px; }
.credentials li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.credentials svg { flex: 0 0 19px; margin-top: 2px; color: var(--teal); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--paper); padding: 28px 24px; }
.stat__value { font-size: clamp(28px, 3.4vw, 38px); font-weight: 600; letter-spacing: -0.04em; color: var(--navy); line-height: 1; }
.stat__label { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare__col { border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); }
.compare__col--bad { background: var(--canvas-2); }
.compare__col--good { background: var(--paper); border-color: var(--teal-100); box-shadow: var(--shadow-md); }
.compare__col h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.compare__col ul { margin-top: 20px; display: grid; gap: 13px; }
.compare__col li { display: flex; gap: 11px; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.compare__col li svg { flex: 0 0 18px; margin-top: 3px; }
.compare__col--bad li svg { color: var(--flag); }
.compare__col--good li svg { color: var(--teal); }

/* ---------- Persona / situation cards ---------- */
.persona {
  background: var(--canvas-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s;
}
.persona:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.persona__head { display: flex; align-items: center; gap: 16px; }
.persona__age {
  flex: 0 0 54px; height: 54px; display: grid; place-items: center;
  border-radius: 15px; background: var(--navy); color: #fff;
  font-size: 21px; font-weight: 600; letter-spacing: -0.03em;
}
.persona__tag { margin-top: 4px; font-size: 13.5px; color: var(--slate); line-height: 1.4; }
.persona > p { margin-top: 18px; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.persona__find {
  margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line);
  font-size: 14.5px; color: var(--ink-2);
}
.persona__find strong { color: var(--ink); font-weight: 500; }

/* ---------- Calculator ---------- */
.calc {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.calc__grid { display: grid; grid-template-columns: 1.15fr .85fr; }
@media (max-width: 900px) { .calc__grid { grid-template-columns: 1fr; } }
.calc__form { padding: clamp(24px, 3.4vw, 38px); }
.calc__out { padding: clamp(24px, 3.4vw, 38px); background: var(--navy); color: var(--snow); display: flex; flex-direction: column; }

.field { display: block; margin-bottom: 20px; }
.field:last-of-type { margin-bottom: 0; }
.field__label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.field__label span:first-child { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.field__hint { font-size: 12.5px; color: var(--slate); }
.field__control { position: relative; display: flex; align-items: center; }
.field__prefix { position: absolute; left: 15px; font-size: 15px; color: var(--slate); pointer-events: none; }
.field input, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--canvas-2); font-size: 16px; font-weight: 400; color: var(--ink);
  transition: border-color .18s, box-shadow .18s, background-color .18s;
  -moz-appearance: textfield;
}
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field input:focus, .field select:focus { outline: none; border-color: var(--teal); background: var(--paper); box-shadow: 0 0 0 3px var(--teal-50); }
.field--money input { padding-left: 34px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235B7A99' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } .field-row .field { margin-bottom: 20px; } }

.calc__result-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-d); font-weight: 500; }
.calc__result-value { font-size: clamp(38px, 5.4vw, 56px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; margin-top: 14px; color: #fff; }
.calc__result-sub { margin-top: 12px; font-size: 14.5px; color: rgba(241, 245, 249, .76); line-height: 1.55; }
.calc__breakdown { margin-top: 26px; display: grid; gap: 1px; border-top: 1px solid rgba(241, 245, 249, .2); }
.calc__breakdown div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(241, 245, 249, .14); font-size: 14.5px; }
.calc__breakdown dt { color: rgba(241, 245, 249, .72); }
.calc__breakdown dd { margin: 0; font-weight: 500; color: #fff; }
.calc__cta { margin-top: auto; padding-top: 28px; }
.calc__disclaimer { margin-top: 14px; font-size: 12.5px; color: rgba(241, 245, 249, .58); line-height: 1.5; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.quote__mark { font-size: 40px; line-height: .8; color: var(--teal); font-weight: 600; }
.quote p { margin-top: 16px; font-size: 15.5px; color: var(--ink-2); line-height: 1.6; }
.quote footer { margin-top: auto; padding-top: 22px; display: flex; align-items: center; gap: 12px; }
.quote__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-50); display: grid; place-items: center; font-size: 14px; font-weight: 500; color: var(--navy); flex: 0 0 38px; }
.quote__meta { font-size: 14px; }
.quote__meta strong { display: block; font-weight: 500; color: var(--ink); }
.quote__meta span { color: var(--slate); font-size: 13px; }

.placeholder-note {
  margin-top: 18px; font-size: 13px; color: var(--ink-2); text-align: center;
  background: var(--notice); border: 1px dashed var(--notice-line); border-radius: 12px; padding: 12px 16px;
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 24px 0; font-size: 17px; font-weight: 500; letter-spacing: -0.015em; color: var(--ink);
  transition: color .18s;
}
.faq__q:hover { color: var(--navy); }
.faq__icon { flex: 0 0 22px; margin-top: 3px; transition: transform .25s cubic-bezier(.2,.8,.3,1); color: var(--teal); }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__a { overflow: hidden; height: 0; transition: height .28s cubic-bezier(.2,.8,.3,1); }
.faq__a-inner { padding: 0 0 26px; max-width: 68ch; color: var(--ink-2); font-size: 15.5px; }
.faq__a-inner p + p { margin-top: 12px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--night); color: var(--snow); border-radius: var(--radius-lg);
  padding: clamp(38px, 5.4vw, 68px); text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: auto -10% -60% -10%; height: 340px;
  background: radial-gradient(50% 60% at 50% 100%, rgba(23, 199, 180, .22), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: 18px; color: rgba(241, 245, 249, .8); font-size: 16.5px; max-width: 54ch; margin-inline: auto; }
.cta-band .btn { margin-top: 30px; }
.cta-band__meta { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14px; color: var(--slate-d); }
.cta-band__meta li { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--canvas-2); border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 72px) 34px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px 32px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand p { margin-top: 16px; font-size: 15px; color: var(--ink-2); max-width: 34ch; }
.footer-col h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); font-weight: 500; }
.footer-col ul { margin-top: 16px; display: grid; gap: 11px; }
.footer-col a, .footer-col li { font-size: 15px; color: var(--ink-2); }
.footer-col a:hover { color: var(--navy); }
.footer-contact strong { display: block; font-size: 15px; font-weight: 500; }

.legal { margin-top: clamp(40px, 5vw, 56px); padding-top: 28px; border-top: 1px solid var(--line); }
/* Licence card left, disclaimer right — side by side rather than a narrow
   column of text with dead space beside it. */
.legal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; align-items: start; }
@media (max-width: 860px) { .legal__grid { grid-template-columns: 1fr; gap: 24px; } }
.legal__disclaimer { font-size: 13px; color: var(--slate); line-height: 1.65; }
.legal__licence {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 22px; font-size: 13px; color: var(--ink-2); line-height: 1.65;
}
.legal__licence strong { color: var(--ink); font-weight: 500; }
.legal__licence--pending { background: var(--notice); border-style: dashed; border-color: var(--notice-line); }
.legal__licence--pending code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; background: rgba(11, 37, 69, .06); padding: 1px 5px; border-radius: 4px;
}
.legal__bottom { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--slate); }
.legal__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 55; display: none;
  transform: translateY(140%); transition: transform .3s cubic-bezier(.2,.8,.3,1);
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta .btn { box-shadow: var(--shadow-lg); }
@media (max-width: 700px) { .mobile-cta { display: block; } .site-footer { padding-bottom: 96px; } }

/* ---------- Long-form legal pages ---------- */
.doc { max-width: 780px; margin-inline: auto; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.035em; }
.doc > p:first-of-type { margin-top: 20px; }
.doc h2 { font-size: clamp(20px, 2.4vw, 25px); margin-top: 48px; }
.doc h3 { font-size: 18px; margin-top: 30px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; }
.doc p + p { margin-top: 14px; }
.doc h2 + p, .doc h3 + p { margin-top: 14px; }
/* A paragraph straight after a list otherwise butts against the last bullet */
.doc ul + p { margin-top: 16px; }
.doc ul { margin-top: 14px; display: grid; gap: 10px; padding-left: 4px; }
.doc ul li { position: relative; padding-left: 22px; }
.doc ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.doc a { color: var(--navy); border-bottom: 2px solid var(--teal); }
.doc__meta { margin-top: 18px; font-size: 14px; color: var(--slate); }
.doc__notice {
  margin-top: 32px; background: var(--notice); border: 1px dashed var(--notice-line);
  border-radius: 14px; padding: 18px 22px; font-size: 14.5px; color: var(--ink-2); line-height: 1.6;
}

/* ==========================================================================
   MOBILE PASS — most traffic lands here
   ========================================================================== */
@media (max-width: 700px) {
  :root { --gut: 20px; }

  .section { padding-block: 54px; }
  .section--tight { padding-block: 40px; }
  .mt-56 { margin-top: 32px; }
  .mt-40 { margin-top: 28px; }

  .header-inner { min-height: 74px; }
  .logo__img { height: 56px; width: 122px; border-radius: 10px; }

  /* Hero: eyebrow → headline → promise → CTA, all inside the first screen */
  .hero { padding-block: 30px 46px; }
  .hero h1 { margin-top: 16px; }
  .hero .lede { margin-top: 16px; }
  .hero-actions { margin-top: 26px; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .trust-row { margin-top: 24px; gap: 10px 18px; }
  .trust-row li { font-size: 14px; }

  .sec-head h2 { margin-top: 14px; }
  .sec-head .lede { margin-top: 14px; }

  /* Label sits above the marquee, which runs edge to edge */
  .strip { padding-block: 16px; }
  .strip__inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .strip__label { text-align: center; }
  .strip__viewport {
    margin-inline: calc(var(--gut) * -1);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  }
  .strip__track { animation-duration: 24s; }
  .strip__item { margin-right: 34px; font-size: 15.5px; }

  .card { padding: 24px; }
  .product-card { padding: 26px; border-radius: var(--radius); }
  .product-card .product-card__cta { padding-top: 24px; }
  .product-card .btn { width: 100%; }
  .grid { gap: 16px; }

  .step { padding: 24px 0; }

  .calc { border-radius: var(--radius); }
  .calc__form, .calc__out { padding: 24px 20px; }
  .calc__result-value { font-size: 44px; }
  .field input, .field select { padding: 14px 15px; font-size: 16px; } /* 16px stops iOS zoom-on-focus */
  .field--money input { padding-left: 32px; }

  .compare__col { padding: 24px; }
  .quote { padding: 24px; }
  .persona { padding: 24px; }
  .persona__age { flex-basis: 46px; height: 46px; font-size: 19px; border-radius: 13px; }
  .persona__head { gap: 13px; }

  /* Founder story — portrait must not eat a whole screen before the words */
  .portrait { max-width: 280px; margin-inline: auto; min-height: 320px; }
  .story__sign { text-align: center; }
  .story__stat { padding: 20px; margin: 22px 0; }
  .mission__head { max-width: none; }
  .mission .card { padding: 22px 24px; }
  .quote-block { padding-left: 18px; }
  .split > div:last-child .btn { width: 100%; }

  .faq__q { padding: 20px 0; font-size: 16.5px; gap: 14px; }
  .faq__a-inner { padding-bottom: 22px; }

  .cta-band { border-radius: var(--radius); padding: 34px 22px; }
  .cta-band p { margin-top: 14px; }
  .cta-band .btn { width: 100%; margin-top: 24px; }
  .cta-band__meta { flex-direction: column; align-items: center; gap: 8px; margin-top: 20px; }

  .legal__licence { padding: 16px 18px; }
  .legal__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 33px; }
  .btn--lg { padding: 15px 22px; font-size: 15.5px; }
  .calc__result-value { font-size: 40px; }
  .logo__img { height: 56px; width: 122px; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Utility ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
