/* =============================================================================
   WhatETF — marketing site stylesheet
   Editorial-premium fintech: warm-paper canvas, evergreen accent, serif display.
   Tokens mirror the app's DesignSystem (DSColor/DSFont/DSLayout/DSMotion).
   One shared sheet across index / privacy / terms / support (+ OG cards).
   ========================================================================== */

/* ---- Tokens ---------------------------------------------------------------- */
:root {
  /* surfaces */
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --surface-elev: #FFFFFF;
  --hairline: #E7E3DA;

  /* text */
  --text: #17181B;
  --text-2: #5A5E66;
  --text-3: #8A8E96;

  /* brand */
  --accent: #0E6F57;
  --accent-press: #0A5944;
  --accent-soft: #E3F0EB;
  --on-accent: #FFFFFF;

  /* value direction */
  --positive: #1E7F4F;
  --negative: #B23B3B;

  /* chart accents (tasteful flourishes only) */
  --c-evergreen: #0E6F57;
  --c-ink: #2E5A8F;
  --c-ochre: #B8862F;
  --c-plum: #7A4E8C;
  --c-clay: #B7613E;
  --c-slate: #4A6670;

  /* spacing — 4pt grid, extended for web sections */
  --s-xs: 4px;  --s-s: 8px;  --s-m: 12px;  --s: 16px;
  --s-l: 24px;  --s-xl: 32px;  --s-2xl: 48px;  --s-3xl: 64px;  --s-4xl: 96px;

  /* radius — continuous feel */
  --r-control: 8px;  --r-card: 16px;  --r-sheet: 20px;  --r-pill: 999px;

  /* shadow */
  --sh-card: 0 4px 10px rgba(0, 0, 0, .06);
  --sh-elev: 0 8px 18px rgba(0, 0, 0, .08);
  --sh-float: 0 18px 48px rgba(23, 24, 27, .14);

  /* type families — native trio (New York / SF Pro / SF Mono) with web fallbacks */
  --font-serif: ui-serif, "Source Serif 4", "New York", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, Helvetica, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", monospace;

  /* layout */
  --maxw: 1120px;
  --maxw-prose: 720px;
  --header-h: 64px;

  /* motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur-fast: .15s;
  --dur: .25s;
  --dur-slow: .4s;

  color-scheme: light;
}

/* Dark mode — nice-to-have, mirrors the app's dark tokens (DSColor). */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121316;
    --surface: #1B1D21;
    --surface-elev: #24272C;
    --hairline: #2C2F35;
    --text: #F2F1ED;
    --text-2: #A8ACB4;
    --text-3: #7E828A;
    --accent: #3FB389;
    --accent-press: #329873;
    --accent-soft: #143A30;
    --positive: #46B47A;
    --negative: #D98080;
    --sh-card: 0 4px 10px rgba(0, 0, 0, .35);
    --sh-elev: 0 8px 18px rgba(0, 0, 0, .45);
    --sh-float: 0 18px 48px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

/* ---- Reset / base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Warm-paper atmosphere: faint dual evergreen wash + paper grain. */
  background-image:
    radial-gradient(1100px 620px at 88% -8%, rgba(14, 111, 87, .07), transparent 60%),
    radial-gradient(900px 560px at -6% 8%, rgba(184, 134, 47, .05), transparent 55%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--accent-press); }

/* Visible, branded focus for keyboard users. */
:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent-soft); color: var(--text); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 200;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 18px;
  border-radius: var(--r-control);
  font-weight: 600;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; color: var(--on-accent); }

/* ---- Typography ------------------------------------------------------------ */
.serif {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
}
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--text);
  margin: 0 0 var(--s) 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); line-height: 1.04; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.85rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.12rem; letter-spacing: -0.01em; }

p { margin: 0 0 var(--s) 0; }
strong, b { font-weight: 600; color: var(--text); }

.mono, .figure {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-s);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s) 0;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--accent);
  opacity: .55;
  display: inline-block;
}

.lede {
  font-size: clamp(1.12rem, 1.7vw, 1.34rem);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 46ch;
}
.muted { color: var(--text-2); }
.tiny { font-size: .82rem; line-height: 1.5; color: var(--text-3); }
.accent-text { color: var(--accent); }
.balance { text-wrap: balance; }

/* ---- Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}
.section { padding-block: clamp(var(--s-3xl), 9vw, 128px); }
.section--tight { padding-block: clamp(var(--s-2xl), 6vw, 80px); }
.section-head { max-width: 40ch; margin-bottom: var(--s-2xl); }
.section-head.center { margin-inline: auto; text-align: center; }
.divider { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

/* alternating section tint for editorial rhythm */
.section--paper { background: transparent; }
.section--surface {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .5));
  border-block: 1px solid var(--hairline);
}
@media (prefers-color-scheme: dark) {
  .section--surface {
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .02));
  }
}

/* ---- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-s);
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--r-control);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  min-height: 52px;
  transition: background-color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}
.btn:active { transform: scale(.98); }

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--sh-card);
}
.btn--primary:hover { background: var(--accent-press); color: var(--on-accent); box-shadow: var(--sh-elev); }

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--hairline);
}
.btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-press); }

.btn--link {
  background: none;
  border: none;
  padding: 12px 2px;
  min-height: 0;
  color: var(--accent);
  font-weight: 600;
  gap: var(--s-xs);
}
.btn--link .arrow { transition: transform var(--dur) var(--ease); }
.btn--link:hover .arrow { transform: translateX(4px); }
.btn--link:hover { color: var(--accent-press); }

.btn--block { width: 100%; }
.btn .store-glyph { width: 20px; height: 20px; }

/* Apple-style "Download on the App Store" lockup. */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: #000;
  color: #fff;
  border-radius: var(--r-control);
  padding: 10px 18px 10px 16px;
  min-height: 52px;
  border: 1px solid #000;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  box-shadow: var(--sh-card);
}
.appstore-badge:hover { transform: translateY(-1px); box-shadow: var(--sh-elev); color: #fff; }
.appstore-badge:active { transform: scale(.98); }
.appstore-badge svg { width: 26px; height: 26px; flex: none; }
.appstore-badge .ab-text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.appstore-badge .ab-small { font-size: .66rem; letter-spacing: .02em; opacity: .92; }
.appstore-badge .ab-big { font-family: var(--font-serif); font-size: 1.22rem; font-weight: 600; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s); margin-top: var(--s-l); }
.cta-note { font-size: .86rem; color: var(--text-2); }

/* ---- Pills / chips --------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid transparent;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.badge-best {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--r-pill);
  padding: 4px 9px;
}

/* ---- Card primitives ------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  padding: var(--s-l);
}
.card--elev { box-shadow: var(--sh-elev); }
.card--pad-lg { padding: var(--s-xl); }

/* =============================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--hairline);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.22rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(155deg, #15856a 0%, var(--accent) 55%, var(--accent-press) 100%);
  display: grid;
  place-items: center;
  box-shadow: var(--sh-card);
  flex: none;
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand .wordmark b { font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(var(--s), 1.8vw, var(--s-l));
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-2);
  font-size: .98rem;
  font-weight: 500;
  padding: 8px 2px;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.is-cta {
  color: var(--accent);
  font-weight: 600;
}
.nav-actions { display: flex; align-items: center; gap: var(--s); }
.nav-actions .appstore-badge { padding: 7px 14px 7px 12px; min-height: 44px; }
.nav-actions .appstore-badge .ab-big { font-size: 1.05rem; }
.nav-actions .appstore-badge svg { width: 22px; height: 22px; }

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-control);
  width: 44px; height: 44px;
  cursor: pointer;
  color: var(--text);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  .nav-actions .appstore-badge { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--surface);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--sh-elev);
    padding: var(--s) clamp(20px, 5vw, 40px) var(--s-l);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--hairline); }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links .nav-cta-mobile { margin-top: var(--s); }
}

/* =============================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding-top: clamp(var(--s-2xl), 8vw, 96px); padding-bottom: clamp(var(--s-2xl), 7vw, 88px); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(var(--s-l), 4vw, var(--s-4xl));
  align-items: center;
}
.hero-copy { max-width: 38ch; }
.hero h1 {
  margin-bottom: var(--s-l);
  /* Guard the long headline ("…before you buy.") from kissing the right edge
     on narrow phones: lower the floor as the viewport shrinks, keep the bold
     desktop size, and allow safe wrapping so nothing clips at ≤390px or ~430px. */
  font-size: clamp(2.05rem, 7.4vw, 4.1rem);
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}
.hero .lede { max-width: 42ch; margin-bottom: 0; }
.hero .trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-s) var(--s-l);
  margin-top: var(--s-xl);
  padding-top: var(--s-l);
  border-top: 1px solid var(--hairline);
  font-size: .9rem;
  color: var(--text-2);
}
.hero .trust-strip span { display: inline-flex; align-items: center; gap: 7px; }
.hero .trust-strip .tick { color: var(--accent); flex: none; }

.hero-visual { position: relative; display: flex; justify-content: center; }

/* floating "fit score" glance card overlapping the phone */
.glance-card {
  position: absolute;
  z-index: 3;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  box-shadow: var(--sh-float);
  padding: var(--s) var(--s-l) var(--s) var(--s);
  display: flex;
  align-items: center;
  gap: var(--s-m);
}
.glance-card.gc-score { left: -6%; top: 16%; }
.glance-card.gc-private { right: -4%; bottom: 12%; padding: var(--s-m) var(--s); }
.glance-ring {
  --val: 96;
  width: 56px; height: 56px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background:
    conic-gradient(var(--accent) calc(var(--val) * 1%), var(--hairline) 0);
  position: relative;
}
.glance-ring::after {
  content: "";
  position: absolute; inset: 5px;
  border-radius: 50%;
  background: var(--surface);
}
.glance-ring b { position: relative; z-index: 1; font-family: var(--font-mono); font-size: 1.06rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.glance-card .gc-label { display: flex; flex-direction: column; line-height: 1.25; }
.glance-card .gc-label .gc-k { font-size: .76rem; color: var(--text-2); }
.glance-card .gc-label .gc-v { font-weight: 600; font-size: .98rem; }
.glance-card.gc-private .gc-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.glance-card.gc-private .gc-ico svg { width: 18px; height: 18px; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-2xl); text-align: center; }
  .hero-copy, .hero .lede { max-width: 56ch; margin-inline: auto; }
  .hero .eyebrow, .hero .cta-row { justify-content: center; }
  .hero .trust-strip { justify-content: center; }
  .glance-card.gc-score { left: 0; }
  .glance-card.gc-private { right: 0; }
}
@media (max-width: 560px) {
  .glance-card .gc-label .gc-k,
  .glance-card.gc-private { font-size: .8rem; }
  .glance-card.gc-score { left: -12px; top: 8%; }
  .glance-card.gc-private { right: -12px; bottom: 8%; }
}

/* =============================================================================
   iPhone DEVICE FRAME (pure CSS — no image libs)
   Screenshots are 1178x2556 (~0.461). Frame approximates a modern iPhone.
   ========================================================================== */
.device {
  --device-w: 280px;
  width: var(--device-w);
  aspect-ratio: 1178 / 2556;
  position: relative;
  border-radius: calc(var(--device-w) * 0.165);
  padding: calc(var(--device-w) * 0.038);
  background: linear-gradient(155deg, #2b2d31, #131417 60%, #232529);
  box-shadow:
    0 1px 0 1px rgba(255, 255, 255, .06) inset,
    var(--sh-float);
  flex: none;
}
.device::before { /* titanium side rails */
  content: "";
  position: absolute; inset: calc(var(--device-w) * 0.012);
  border-radius: calc(var(--device-w) * 0.155);
  background: linear-gradient(120deg, #3a3c40, #17181b 45%, #45474b 70%, #17181b);
  z-index: 0;
}
.device-screen {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  border-radius: calc(var(--device-w) * 0.128);
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 0 0 2px #050506;
}
.device-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.device .dynamic-island {
  position: absolute;
  z-index: 4;
  top: calc(var(--device-w) * 0.060);
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--device-w) * 0.30);
  height: calc(var(--device-w) * 0.085);
  background: #050506;
  border-radius: var(--r-pill);
}
.device-hero { --device-w: clamp(248px, 31vw, 330px); }

@media (prefers-reduced-motion: no-preference) {
  .device { transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease); }
}

/* caption under a framed phone */
.device-caption {
  margin-top: var(--s);
  text-align: center;
  font-size: .9rem;
  color: var(--text-2);
  max-width: 30ch;
}

/* =============================================================================
   EMPATHY (editorial split)
   ========================================================================== */
.empathy-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(var(--s-l), 4vw, var(--s-3xl));
  align-items: center;
}
.jargon-cloud {
  position: relative;
  border-radius: var(--r-card);
  border: 1px solid var(--hairline);
  background:
    repeating-linear-gradient(135deg, rgba(90,94,102,.025) 0 14px, transparent 14px 28px),
    var(--surface);
  padding: var(--s-xl) var(--s-l);
  min-height: 280px;
  overflow: hidden;
}
.jargon-cloud .jw {
  display: inline-block;
  font-family: var(--font-serif);
  color: var(--text-3);
  margin: 6px 10px;
  opacity: .6;
}
.jargon-cloud .arrow-to-calm {
  position: absolute;
  right: 18px; bottom: 16px;
  color: var(--text-3);
  font-size: .8rem;
}
.calm-fund-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  box-shadow: var(--sh-elev);
  padding: var(--s-l);
}
.calm-fund-card .cf-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s); }
.calm-fund-card .cf-ticker { font-family: var(--font-mono); font-weight: 600; font-size: .9rem; color: var(--text-2); letter-spacing: .02em; }
.calm-fund-card h3 { margin: 4px 0 0; font-size: 1.3rem; }
.calm-fund-card .cf-rows { margin-top: var(--s-l); display: grid; gap: var(--s-m); }
.calm-fund-card .cf-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s); padding-bottom: var(--s-m); border-bottom: 1px solid var(--hairline); }
.calm-fund-card .cf-row:last-child { border-bottom: 0; padding-bottom: 0; }
.calm-fund-card .cf-k { color: var(--text-2); font-size: .95rem; }
.calm-fund-card .cf-v { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; }

@media (max-width: 860px) {
  .empathy-grid { grid-template-columns: 1fr; }
}

/* =============================================================================
   DEMO — three frames
   ========================================================================== */
.demo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--s-l), 3vw, var(--s-2xl));
  align-items: start;
  margin-top: var(--s-2xl);
}
.demo-frame { display: flex; flex-direction: column; align-items: center; text-align: center; }
.demo-frame .demo-step {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  display: grid; place-items: center;
  margin: var(--s) 0 var(--s-s);
}
.demo-frame h3 { font-size: 1.18rem; margin-bottom: var(--s-s); }
.demo-frame p { color: var(--text-2); font-size: .96rem; max-width: 30ch; }

@media (max-width: 760px) {
  .demo-strip { grid-template-columns: 1fr; gap: var(--s-2xl); }
  .demo-frame .device { --device-w: 240px; }
}

/* =============================================================================
   FEATURE-OUTCOMES (alternating)
   ========================================================================== */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--s-l), 5vw, var(--s-4xl));
  align-items: center;
  padding-block: clamp(var(--s-2xl), 6vw, 88px);
}
.feature + .feature { border-top: 1px solid var(--hairline); }
.feature .feature-media { display: flex; justify-content: center; }
.feature:nth-child(even) .feature-media { order: -1; }
.feature .feature-body { max-width: 44ch; }
.feature .feature-num {
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .12em;
}
.feature h3 { margin: var(--s-s) 0 var(--s); font-size: clamp(1.5rem, 2.6vw, 2rem); }
.feature p { color: var(--text-2); font-size: 1.06rem; }
.feature .feature-disclosure { font-size: .84rem; color: var(--text-3); font-style: italic; margin-top: var(--s); }

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: var(--s-xl); text-align: center; }
  .feature .feature-body { max-width: 52ch; margin-inline: auto; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .feature .btn--link { align-self: center; }
}

/* small "secondary" feature tiles for the lighter outcomes */
.feature-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-l);
  margin-top: var(--s-2xl);
}
.feature-tile {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  padding: var(--s-l);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
@media (prefers-reduced-motion: no-preference) {
  .feature-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-elev); }
}
.feature-tile .ft-ico {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: var(--s-m);
}
.feature-tile .ft-ico svg { width: 22px; height: 22px; }
.feature-tile h4 { font-size: 1.12rem; margin-bottom: var(--s-xs); }
.feature-tile p { color: var(--text-2); font-size: .95rem; margin: 0; }
@media (max-width: 860px) { .feature-tiles { grid-template-columns: 1fr; } }

/* =============================================================================
   HOW IT WORKS + METHODOLOGY TRUST
   ========================================================================== */
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-l);
  margin-bottom: var(--s-2xl);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-l);
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  padding: var(--s-l);
  position: relative;
}
.step .step-n {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--on-accent);
  background: var(--accent);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: var(--s-m);
}
.step h4 { font-size: 1.12rem; margin-bottom: var(--s-xs); }
.step p { color: var(--text-2); font-size: .96rem; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.trust-pair {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(var(--s-l), 3vw, var(--s-2xl));
  align-items: stretch;
  margin-top: var(--s-2xl);
}
.trust-blocks { display: grid; gap: var(--s-l); align-content: start; }
.trust-block {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  padding: var(--s-l);
}
.trust-block h4 { display: flex; align-items: center; gap: var(--s-s); font-size: 1.16rem; }
.trust-block h4 svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.trust-block p { color: var(--text-2); margin: var(--s-s) 0 0; font-size: .98rem; }

/* methodology mini factor-weights table (a tasteful in-brand flourish) */
.method-card {
  background:
    radial-gradient(420px 200px at 80% -10%, rgba(63,179,137,.16), transparent 60%),
    #16181c;
  color: #F2F1ED;
  border: 1px solid #2C2F35;
  border-radius: var(--r-card);
  box-shadow: var(--sh-elev);
  padding: var(--s-xl);
}
.method-card .mc-eyebrow { color: #6FD3AE; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.method-card h4 { color: #F2F1ED; font-size: 1.3rem; margin: var(--s-s) 0 var(--s-l); }
.method-card .mc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--s);
  padding: 11px 0;
  border-bottom: 1px solid #2C2F35;
}
.method-card .mc-row:last-of-type { border-bottom: 0; }
.method-card .mc-factor { font-size: .98rem; color: #D9DCE1; }
.method-card .mc-bar { grid-column: 1 / -1; height: 5px; border-radius: var(--r-pill); background: #2C2F35; overflow: hidden; margin-top: -2px; }
.method-card .mc-bar > i { display: block; height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, #3FB389, #6FD3AE); }
.method-card .mc-weight { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; color: #fff; }
.method-card .mc-foot { color: #A8ACB4; font-size: .82rem; margin: var(--s-l) 0 0; }
@media (max-width: 860px) { .trust-pair { grid-template-columns: 1fr; } }

/* =============================================================================
   PRICING
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-l);
  max-width: 760px;
  margin: var(--s-2xl) auto 0;
}
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sheet);
  box-shadow: var(--sh-card);
  padding: var(--s-xl);
  display: flex;
  flex-direction: column;
}
.plan.is-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft), var(--sh-elev);
}
.plan .plan-flag {
  position: absolute;
  top: -12px; left: var(--s-xl);
}
.plan .plan-name { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s); }
.plan .plan-name h3 { font-size: 1.4rem; margin: 0; }
.plan .plan-price { margin: var(--s) 0 var(--s-xs); display: flex; align-items: baseline; gap: 4px; }
.plan .plan-price .amt { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 2.4rem; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.plan .plan-price .per { color: var(--text-2); font-size: 1rem; }
.plan .plan-sub { color: var(--text-2); font-size: .92rem; min-height: 1.4em; }
.plan ul { list-style: none; margin: var(--s-l) 0; padding: 0; display: grid; gap: var(--s-m); }
.plan ul li { display: flex; gap: var(--s-s); align-items: flex-start; font-size: .96rem; color: var(--text-2); }
.plan ul li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; }

.pricing-includes {
  max-width: 760px;
  margin: var(--s-l) auto 0;
  background: var(--accent-soft);
  border-radius: var(--r-card);
  padding: var(--s-l) var(--s-xl);
}
.pricing-includes h4 { font-size: 1.06rem; margin-bottom: var(--s-s); color: var(--text); }
.pricing-includes .free-list { display: flex; flex-wrap: wrap; gap: var(--s-s) var(--s); list-style: none; margin: 0; padding: 0; }
.pricing-includes .free-list li { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; color: var(--text); }
.pricing-includes .free-list li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.reassurance { max-width: 760px; margin: var(--s-l) auto 0; text-align: center; color: var(--text-2); font-size: .95rem; }
.pricing-foot { max-width: 760px; margin: var(--s) auto 0; text-align: center; }
@media (max-width: 680px) { .pricing-grid { grid-template-columns: 1fr; } }

/* =============================================================================
   COMPARISON TABLE
   ========================================================================== */
.compare-wrap { overflow-x: auto; margin-top: var(--s-2xl); border-radius: var(--r-card); border: 1px solid var(--hairline); box-shadow: var(--sh-card); -webkit-overflow-scrolling: touch; }
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  min-width: 620px;
  overflow: hidden;
}
table.compare th, table.compare td {
  padding: var(--s) var(--s-l);
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  font-size: .96rem;
  vertical-align: middle;
}
table.compare thead th {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--bg);
}
table.compare thead th.col-us {
  color: var(--accent);
  background: var(--accent-soft);
}
table.compare tbody th {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text);
}
table.compare td { color: var(--text-2); }
table.compare td.col-us { color: var(--text); font-weight: 600; background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
table.compare tr:last-child th, table.compare tr:last-child td { border-bottom: 0; }
table.compare .yes { color: var(--accent); font-weight: 600; }
table.compare .em-dash { color: var(--text-3); }
.compare-caption { max-width: 60ch; margin: var(--s-l) auto 0; text-align: center; color: var(--text-2); }

/* =============================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: var(--maxw-prose); margin: var(--s-2xl) auto 0; display: grid; gap: var(--s-m); }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-l);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon {
  width: 26px; height: 26px;
  flex: none;
  position: relative;
  color: var(--accent);
}
.faq-item summary .faq-icon::before,
.faq-item summary .faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  top: 50%; left: 50%;
  transition: transform var(--dur) var(--ease);
}
.faq-item summary .faq-icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq-item summary .faq-icon::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.faq-item[open] summary .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-answer { padding: 0 var(--s-l) var(--s-l); color: var(--text-2); }
.faq-answer p { margin: 0; }
.faq-cta { text-align: center; margin-top: var(--s-l); }

/* =============================================================================
   CLOSER / SHARE-WORTHY FOOTER BANNER
   ========================================================================== */
.closer {
  position: relative;
  text-align: center;
  padding-block: clamp(var(--s-3xl), 10vw, 140px);
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  background:
    radial-gradient(700px 360px at 50% -10%, rgba(14,111,87,.10), transparent 60%);
}
.closer h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.closer h2 .closer-sub { display: block; color: var(--accent); margin-top: var(--s-s); }
.closer .cta-row { justify-content: center; margin-top: var(--s-xl); }

/* =============================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  padding-block: var(--s-2xl) var(--s-xl);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-2xl);
  align-items: start;
  padding-bottom: var(--s-l);
  border-bottom: 1px solid var(--hairline);
}
.footer-brand .brand { margin-bottom: var(--s-m); }
.footer-brand p { color: var(--text-2); max-width: 42ch; font-size: .95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-l) var(--s-2xl); justify-content: flex-end; }
.footer-col h5 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin: 0 0 var(--s-s); font-family: var(--font-body); font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-s); }
.footer-col a { color: var(--text-2); font-size: .95rem; font-weight: 500; }
.footer-col a:hover { color: var(--accent); }
.footer-disclosure {
  margin-top: var(--s-l);
  font-size: .82rem;
  line-height: 1.6;
  color: var(--text-3);
  max-width: 92ch;
}
.footer-base {
  margin-top: var(--s-l);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s);
  align-items: center;
  font-size: .85rem;
  color: var(--text-3);
}
.footer-base .signoff { font-style: italic; }
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; gap: var(--s-xl); }
  .footer-links { justify-content: flex-start; }
}

/* =============================================================================
   LEGAL / SUPPORT (prose) PAGES
   ========================================================================== */
.page-hero {
  padding-top: clamp(var(--s-2xl), 6vw, 72px);
  padding-bottom: var(--s-l);
  border-bottom: 1px solid var(--hairline);
}
.page-hero .eyebrow { justify-content: flex-start; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: var(--s-s); }
.page-hero .updated { color: var(--text-2); font-size: .92rem; }
.draft-banner {
  max-width: var(--maxw-prose);
  margin: var(--s-l) auto 0;
  background: #FBF3E2;
  border: 1px solid var(--c-ochre);
  border-radius: var(--r-card);
  padding: var(--s) var(--s-l);
  color: #6b4f1e;
  font-size: .9rem;
}
@media (prefers-color-scheme: dark) {
  .draft-banner { background: #2a230f; color: #e3c989; }
}
.draft-banner strong { color: inherit; }

.prose {
  max-width: var(--maxw-prose);
  margin-inline: auto;
  padding-block: var(--s-2xl);
}
.prose h2 {
  font-size: 1.5rem;
  margin-top: var(--s-2xl);
  margin-bottom: var(--s);
  padding-top: var(--s-l);
  border-top: 1px solid var(--hairline);
}
.prose h2:first-of-type { margin-top: var(--s-l); padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.18rem; margin-top: var(--s-l); margin-bottom: var(--s-s); }
.prose p, .prose li { color: var(--text-2); font-size: 1.02rem; line-height: 1.7; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 var(--s); }
.prose li { margin-bottom: var(--s-s); }
.prose .lead { font-size: 1.14rem; color: var(--text); }
.prose .blank { background: var(--accent-soft); color: var(--accent); padding: 1px 7px; border-radius: 5px; font-family: var(--font-mono); font-size: .85em; font-weight: 600; }
.prose .callout {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-card);
  padding: var(--s-l);
  margin: var(--s-l) 0;
}
.prose .callout p:last-child { margin-bottom: 0; }
.prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }

/* support page contact + FAQ reuse */
.support-contact {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  padding: var(--s-l) var(--s-xl);
  margin: var(--s-l) 0 var(--s-2xl);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s);
}
.support-contact .sc-text h3 { margin: 0 0 4px; font-size: 1.2rem; }
.support-contact .sc-text p { margin: 0; color: var(--text-2); font-size: .96rem; }

/* =============================================================================
   OG CARD (screenshot target) — opt-in via .og-page
   ========================================================================== */
.og-page { background: var(--bg); display: grid; place-items: center; min-height: 100vh; padding: 40px; }
.og-card {
  width: 1200px;
  height: 630px;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(800px 420px at 86% -12%, rgba(14,111,87,.16), transparent 60%),
    radial-gradient(700px 460px at -8% 110%, rgba(184,134,47,.08), transparent 55%),
    var(--bg);
  border: 1px solid var(--hairline);
  box-shadow: var(--sh-float);
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: 40px;
  padding: 72px;
}
.og-card .og-copy { max-width: 18ch; }
.og-card .og-brand { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.og-card .og-brand .brand-mark { width: 52px; height: 52px; border-radius: 14px; }
.og-card .og-brand .wordmark { font-family: var(--font-serif); font-weight: 600; font-size: 1.9rem; }
.og-card h1 { font-size: 3.7rem; line-height: 1.02; margin-bottom: 22px; }
.og-card .og-tag { display: inline-flex; align-items: center; gap: 9px; font-size: 1.05rem; color: var(--text-2); }
.og-card .og-tag .chip { font-size: .92rem; }
.og-card .og-visual { display: flex; justify-content: center; }
.og-card .og-visual .device { --device-w: 300px; }
.og-card.og--prose { grid-template-columns: 1fr; place-items: start center; text-align: center; }
.og-card.og--prose .og-copy { max-width: 26ch; }

/* =============================================================================
   SCROLL-REVEAL (restrained; gated behind reduced-motion)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal[data-d="1"] { transition-delay: .08s; }
  .reveal[data-d="2"] { transition-delay: .16s; }
  .reveal[data-d="3"] { transition-delay: .24s; }

  /* one orchestrated hero load-in */
  .hero .anim-up { opacity: 0; transform: translateY(16px); animation: heroUp .7s var(--ease) forwards; }
  .hero .anim-up[data-d="1"] { animation-delay: .05s; }
  .hero .anim-up[data-d="2"] { animation-delay: .15s; }
  .hero .anim-up[data-d="3"] { animation-delay: .25s; }
  .hero .anim-up[data-d="4"] { animation-delay: .35s; }
  .hero-visual .device { animation: heroPhone 1s var(--ease) .15s both; }
  .glance-card { opacity: 0; animation: glanceIn .6s var(--ease) forwards; }
  .glance-card.gc-score { animation-delay: .55s; }
  .glance-card.gc-private { animation-delay: .7s; }
}
@keyframes heroUp { to { opacity: 1; transform: none; } }
@keyframes heroPhone { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes glanceIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

/* methodology bar fill on reveal */
@media (prefers-reduced-motion: no-preference) {
  .method-card .mc-bar > i { width: 0; transition: width 1s var(--ease); }
  .method-card.in .mc-bar > i { width: var(--w, 0%); }
}
@media (prefers-reduced-motion: reduce) {
  .method-card .mc-bar > i { width: var(--w, 0%); }
}

/* utility */
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
