/* ==========================================================================
   Smart Compare Health Insurance — compare-quotes LP
   Healthcare-clean · strict 3-color palette · no gradients
   Vanilla CSS. No preprocessor.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand — strict 3-color system */
  --color-title:  #38BEBF;      /* Teal — H1/H2/H3, eyebrows, wordmark */
  --color-cta:    #2FBCB6;      /* Teal — primary buttons, active steps, selected pills, progress */
  --color-body:   #33475B;      /* Slate — body text, nav, footer, subtle borders */

  /* Derived interactive states (same hue, adjusted for hover) */
  --color-cta-hover:   #26A29D;
  --color-cta-active:  #1F8985;
  --color-title-hover: #2E9E9F;
  --color-body-dark:   #0f1e34;

  /* Supporting neutrals (allowed, not brand) */
  --bg-white:   #ffffff;
  --bg-soft:    #f6f9fc;
  --border:     #e2e8f0;
  --muted:      #94a3b8;
  --check-green:#7cc247;

  /* Legacy aliases (kept so existing runtime CSS refs don't break) */
  --brand-royal: var(--color-title);
  --brand-royal-600: var(--color-title-hover);
  --brand-royal-700: var(--color-title-hover);
  --brand-teal: var(--color-cta);
  --brand-teal-600: var(--color-cta-hover);
  --brand-teal-700: var(--color-cta-active);
  --brand-navy: var(--color-body-dark);
  --brand-green: var(--check-green);
  --ink-900: var(--color-body-dark);
  --ink-800: #1e293b;
  --ink-700: var(--color-body);
  --ink-600: #4a5c72;
  --ink-500: #64748b;
  --ink-400: var(--muted);
  --ink-300: #cbd5e1;
  --ink-200: var(--border);
  --ink-100: #f1f5f9;
  --ink-50:  var(--bg-soft);
  --bg-page: var(--bg-white);

  /* Layout */
  --container: 1180px;
  --container-narrow: 820px;

  /* 8pt spacing scale */
  --s-1:  8px;
  --s-2:  16px;
  --s-3:  24px;
  --s-4:  32px;
  --s-6:  48px;
  --s-8:  64px;
  --s-12: 96px;
  --s-16: 128px;

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-round: 999px;

  /* Shadows — subtle, only appear on hover */
  --sh-1: 0 1px 2px rgba(51,71,91,.04);
  --sh-2: 0 2px 8px -2px rgba(51,71,91,.06), 0 4px 16px -4px rgba(51,71,91,.05);
  --sh-3: 0 8px 24px -6px rgba(51,71,91,.10), 0 16px 40px -12px rgba(51,71,91,.08);
  --sh-cta: 0 2px 6px -1px rgba(15,23,42,.12), 0 6px 16px -6px rgba(15,23,42,.18);
  --sh-cta-hover: 0 4px 10px -2px rgba(15,23,42,.16), 0 14px 28px -8px rgba(15,23,42,.28);

  /* Motion */
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --t-fast: .16s;
  --t-med:  .24s;
  --t-slow: .32s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--color-body);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: 'Inter', system-ui, sans-serif;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-title);
  font-weight: 800;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }

::selection { background: rgba(47,188,182,.24); color: var(--color-body-dark); }

/* Accessible focus ring — on-brand teal */
:where(a, button, input, select, textarea, label, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--color-cta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Utility */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-3); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--s-3); }

/* Lenis smooth-scroll compat */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

/* Reveal defaults (set by animations.js) */
[data-reveal] { opacity: 0; transform: translateY(24px); }
html.reveal-fallback [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   BUTTONS — solid teal, no gradients
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--r-round);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform var(--t-fast) var(--ease-out),
    box-shadow var(--t-med) var(--ease-out),
    background var(--t-fast) var(--ease-out),
    color var(--t-fast) var(--ease-out);
  white-space: nowrap;
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: none;
  line-height: 1;
}
.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: #3068D0;
  color: var(--bg-white);
  box-shadow: var(--sh-cta);
}
.btn-primary:hover {
  background: #2555B4;
  transform: translateY(-1px);
  box-shadow: var(--sh-cta-hover);
}
.btn-primary:active {
  background: #1E4899;
  transform: translateY(0);
  box-shadow: var(--sh-cta);
}

.btn-lg { padding: 18px 34px; font-size: 15px; }
.btn-xl { padding: 22px 42px; font-size: 16px; border-radius: var(--r-round); }
.btn-block { width: 100%; }

/* "Compare Now" buttons */
.btn-open-form {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  text-transform: none;
  letter-spacing: .02em;
}

/* ==========================================================================
   FLOATING PILL NAV
   ========================================================================== */
.pill-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: min(calc(100% - 24px), 1120px);
}
/* Solid white pill nav — sits above the hero card on white page bg */
.pill-nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 10px 10px 24px;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-radius: var(--r-round);
  border: 1px solid var(--border);
  border-bottom-color: rgba(51,71,91,.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 1px 2px rgba(51,71,91,.04),
    0 12px 28px -14px rgba(51,71,91,.14);
  transition: box-shadow var(--t-med) var(--ease-out);
}
.pill-nav-inner:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 2px 4px rgba(51,71,91,.06),
    0 16px 34px -14px rgba(51,71,91,.18);
}
.pill-nav-brand { display: inline-flex; align-items: center; }
.pill-nav-logo { height: 44px; width: auto; }
/* Nav CTA — same pill shape as other buttons, sized to fill the nav height */
.pill-nav-cta {
  padding: 14px 26px;
  font-size: 13px;
  font-weight: 800;
}
.pill-nav-cta svg { display: none; }

@media (max-width: 720px) {
  .pill-nav-cta { display: none; }
  .pill-nav { top: 12px; }
  .pill-nav-inner { padding: 10px 20px; justify-content: center; }
  .pill-nav-logo { height: 36px; }
}

/* ==========================================================================
   MAIN wrapper — leaves white space above the hero card for the pill nav
   ========================================================================== */
.page-main { padding-top: 96px; }
@media (max-width: 720px) { .page-main { padding-top: 92px; padding-bottom: 80px; } }

/* ==========================================================================
   EYEBROW STRIP — solid teal, no gradient
   ========================================================================== */
.eyebrow-strip {
  background: var(--color-title);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 10px 0;
  letter-spacing: .01em;
}
.eyebrow-strip .container { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.eyebrow-strip-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.22);
}

/* ==========================================================================
   HERO — big rounded card with a cinemagraph inside, quotes-style shape
   ========================================================================== */
.hero {
  padding: 0 10px;
  margin-bottom: 60px;
}
.hero-card {
  position: relative;
  margin: 0 auto;
  min-height: clamp(560px, calc(100dvh - 120px), 780px);
  border-radius: 40px;
  overflow: hidden;
  isolation: isolate;
  background: #33475B;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Cinemagraph fills the card */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Pin to top so the dad's head is never cut off. The bottom (pan/plates/dog
     belly area) is what gets cropped, which is fine — no critical detail. */
  object-position: center top;
  pointer-events: none;
}
/* Tall portrait viewports — swing focal point back to centre */
@media (max-aspect-ratio: 1/1) {
  .hero-media-video { object-position: center; }
}

/* Dark scrim so the white copy stays readable.
   Left-heavy gradient because the copy stack is left-aligned now. */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15,30,52,.65) 0%, rgba(15,30,52,.35) 45%, rgba(15,30,52,.18) 100%),
    linear-gradient(180deg, rgba(15,30,52,.10) 0%, rgba(15,30,52,.20) 55%, rgba(15,30,52,.50) 100%);
}

/* Centered copy stack over the video */
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  max-width: 900px;
  margin: 0;
  padding: 72px 40px 140px 64px;
}
@media (min-width: 1400px) {
  .hero-inner { padding-left: 96px; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: var(--r-round);
  background: rgba(255,255,255,.94);
  color: var(--color-title);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: var(--s-4);
  box-shadow: 0 2px 8px -2px rgba(15,23,42,.18);
  max-width: 100%;
  line-height: 1.35;
}
.hero-eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--check-green);
  flex-shrink: 0;
}

.hero-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(48px, 7.2vw, 92px);
  font-weight: 800;
  line-height: 1.04;
  color: #ffffff;
  margin-bottom: var(--s-3);
  letter-spacing: -0.028em;
  text-shadow: 0 2px 16px rgba(15,23,42,.35);
}
.hero-title-accent {
  color: #ffffff;
  white-space: nowrap;
}
.hero-title-blue {
  color: #38BEBF;
}
.hero-br { display: block; }

.hero-sub {
  font-size: clamp(17px, 1.55vw, 20px);
  color: rgba(255,255,255,.92);
  line-height: 1.55;
  margin: 0 0 40px;
  max-width: 560px;
  text-shadow: 0 1px 8px rgba(15,23,42,.35);
}

.hero-title { max-width: 820px; }

.hero-ticks {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px 28px;
  margin-bottom: 40px;
}
.hero-ticks li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255,255,255,.94);
}
.hero-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--check-green);
  color: #ffffff;
  flex-shrink: 0;
}
.hero-tick svg { width: 12px; height: 12px; stroke-width: 3.5; }

.hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: var(--s-2);
}

/* Floating stat card, bottom-right INSIDE the hero card */
.hero-stat-card {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 14px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--r-lg);
  box-shadow: 0 6px 20px -6px rgba(15,23,42,.28), 0 20px 44px -20px rgba(15,23,42,.35);
  max-width: 340px;
}
.hero-stat-avatars {
  display: flex;
  flex-shrink: 0;
}
.hero-stat-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  margin-left: -8px;
  background: var(--bg-soft);
}
.hero-stat-avatar:first-child { margin-left: 0; }
.hero-stat-body { line-height: 1.2; }
.hero-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-body);
  margin-bottom: 2px;
}
.hero-stat-value {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--color-title);
  letter-spacing: -0.01em;
}
.hero-stat-note {
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-body);
  max-width: 240px;
}

/* Reduced motion: show poster as background image, hide the video */
@media (prefers-reduced-motion: reduce) {
  .hero-media-video { display: none; }
  .hero-media { background: #33475B url('hero-poster.webp') center/cover no-repeat; }
}

/* Tablet */
@media (max-width: 900px) {
  .hero-card { min-height: clamp(520px, calc(100dvh - 108px), 720px); }
  .hero-inner { padding: 64px 28px 120px; }
  .hero-title { font-size: clamp(40px, 8vw, 68px); }
  .hero-br { display: none; }
  .hero-stat-card {
    right: 20px;
    bottom: 20px;
    max-width: 260px;
    padding: 10px 14px 10px 12px;
  }
  .hero-stat-avatar { width: 28px; height: 28px; }
  .hero-stat-value { font-size: 18px; }
  .hero-stat-label { font-size: 11px; }
}

/* Mobile */
@media (max-width: 560px) {
  .hero { padding: 0 8px; margin-bottom: 32px; }
  .hero-card { min-height: min(calc(100dvh - 96px), 640px); border-radius: 28px; }
  /* Hero — center every element on mobile */
  .hero-inner {
    padding: 56px 20px 130px;
    align-items: center;
    text-align: center;
    max-width: 100%;
  }
  .hero-eyebrow {
    font-size: 11.5px;
    padding: 8px 14px;
    align-self: center;
    text-align: center;
    line-height: 1.35;
  }
  .hero-title { font-size: clamp(34px, 9vw, 46px); max-width: 100%; text-align: center; }
  .hero-title-accent { white-space: normal; }
  .hero-sub { font-size: 15px; text-align: center; max-width: 100%; }
  .hero-ticks { gap: 10px 18px; justify-content: center; }
  .hero-ticks li { font-size: 13px; }
  .hero-actions { justify-content: center; width: 100%; }
  /* Stat card — compact on mobile */
  .hero-stat-card {
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: none;
    padding: 8px 14px 8px 10px;
    gap: 10px;
    justify-content: flex-start;
  }
  .hero-stat-avatar { width: 24px; height: 24px; margin-left: -6px; }
  .hero-stat-value { font-size: 15px; }
  .hero-stat-label { font-size: 10.5px; }
}

/* Mobile optimization moved to end of file for correct source-order specificity */

/* ==========================================================================
   FLOATING BOTTOM CTA (mobile) — appears after user scrolls past the hero
   ========================================================================== */
.floating-cta {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 50;
  display: none;
  pointer-events: none;
  opacity: 0;
  transform: translateY(120%);
  transition:
    opacity 0.3s ease-out,
    transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.floating-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.floating-cta .btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 15px;
  border-radius: 999px;
  box-shadow: 0 10px 28px -8px rgba(48,104,208,0.45), 0 4px 10px -4px rgba(15,23,42,0.25);
}
@media (max-width: 720px) {
  .floating-cta { display: block; }
  /* Reserve room at the bottom of the page so the sticky button doesn't
     cover the final CTA content on the last section. */
  body { padding-bottom: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-cta { transition: opacity 0.2s ease-out; transform: none; }
}

/* ==========================================================================
   SECTIONS — shared
   ========================================================================== */
.section {
  padding: var(--s-12) 0;
}
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #6BA31E;
  margin-bottom: var(--s-2);
  padding: 6px 14px;
  background: rgba(164,212,54,.16);
  border-radius: var(--r-round);
}
.section-title {
  font-size: clamp(30px, 3.8vw, 44px);
  color: #0f172a;
  max-width: 820px;
  margin-bottom: var(--s-2);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.024em;
}
/* .title-hl — key word / focus phrase in brand teal */
.title-hl {
  color: #38BEBF;
  background: none;
  -webkit-text-fill-color: currentColor;
  display: inline-block;
}
.section-lede {
  font-size: 17px;
  color: var(--color-body);
  max-width: 720px;
  margin-bottom: var(--s-4);
  line-height: 1.65;
}
.section-lede-tight { margin-top: calc(var(--s-2) * -1); margin-bottom: var(--s-4); }
.section-outro {
  margin: var(--s-4) auto 0;
  max-width: 720px;
  text-align: center;
  color: var(--color-body);
  font-size: 16px;
  line-height: 1.65;
}
.section-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--s-6);
}
.section-fineprint {
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: var(--s-4);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* Section 01 — good to know */
.section-goodtoknow { padding-top: var(--s-8); padding-bottom: var(--s-6); background: #ffffff; }
.section-goodtoknow .section-eyebrow,
.section-goodtoknow .section-title {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-goodtoknow .section-eyebrow { max-width: max-content; }
.section-goodtoknow .section-title {
  font-size: clamp(38px, 5vw, 60px);
  max-width: 960px;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.info-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), border-color var(--t-med);
}
.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
  border-color: #cfd8e3;
}
.info-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(30,79,186,.08);
  color: var(--color-title);
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-card-icon svg { width: 24px; height: 24px; }
.info-card-title { font-size: 24px; font-weight: 800; color: #0f172a; }
.info-card-body { font-size: 15px; color: var(--color-body); line-height: 1.6; }

/* Card variant with a real photo as full-card background + text overlay */
.info-card--media {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: 380px;
  aspect-ratio: 4 / 3;
  color: #ffffff;
  border: none;
}
.info-card--media .info-card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.info-card--media .info-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Dark scrim — soft top, deeper bottom — so the text stays readable */
.info-card--media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(15,23,42,0.25) 0%,
      rgba(15,23,42,0.40) 35%,
      rgba(15,23,42,0.82) 80%,
      rgba(15,23,42,0.92) 100%);
}
.info-card--media .info-card-title,
.info-card--media .info-card-body {
  position: relative;
  z-index: 2;
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}
.info-card--media .info-card-title {
  margin: 0;
  padding: 0 32px 14px;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  min-height: calc(1.2em * 2);
  display: flex;
  align-items: flex-end;
}
.info-card--media .info-card-body {
  padding: 0 32px 32px;
  color: rgba(255,255,255,0.95);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.55;
  max-width: 100%;
}
.info-card--media { justify-content: flex-end; }
@media (max-width: 720px) {
  .info-grid { grid-template-columns: 1fr; }
}

/* Section 02 & 05 — numbered grids */
.section-review { background: var(--bg-white); }
.section-change { background: var(--bg-soft); }
.section-review .section-eyebrow,
.section-review .section-title,
.section-review .section-lede,
.section-change .section-eyebrow,
.section-change .section-title,
.section-change .section-lede {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-review .section-eyebrow,
.section-change .section-eyebrow { max-width: max-content; }
.section-review .section-title,
.section-change .section-title { max-width: 960px; }

.numbered-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-3);
}
.numbered-card {
  position: relative;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0;
  box-shadow: var(--sh-1);
  overflow: hidden;
  transition:
    transform var(--t-med) var(--ease-out),
    box-shadow var(--t-med) var(--ease-out),
    border-color var(--t-med);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.numbered-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef2f6;
}
.numbered-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-med) var(--ease-out);
}
.numbered-card:hover .numbered-card-media img { transform: scale(1.03); }
.numbered-card > .numbered-card-title,
.numbered-card > .numbered-card-body { padding-left: var(--s-4); padding-right: var(--s-4); }
.numbered-card > .numbered-card-title { padding-top: var(--s-3); }
.numbered-card > .numbered-card-body { padding-bottom: var(--s-4); }
.numbered-card-num { display: none; }

/* Big rounded number pill sitting on top-left of the media image.
   Kept INSIDE the media container so it never gets clipped by anything above. */
.media-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 72px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.97);
  color: #0f172a;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  box-shadow:
    0 12px 28px -8px rgba(15,23,42,0.35),
    0 3px 8px -3px rgba(15,23,42,0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.numbered-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-3);
  border-color: #cfd8e3;
}
.numbered-card-num {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--color-title);
  line-height: 1;
  letter-spacing: -0.02em;
}
.numbered-card-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}
.numbered-card-body {
  font-size: 15px;
  color: var(--color-body);
  line-height: 1.65;
}
@media (max-width: 900px) {
  .numbered-grid { grid-template-columns: 1fr; }
}

/* Section 03 — how it works */
.section-how { background: var(--bg-white); }
.section-how .section-eyebrow,
.section-how .section-title,
.section-how .section-lede {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-how .section-eyebrow { max-width: max-content; }
.section-how .section-title { max-width: 960px; }
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-3);
}
.how-step {
  position: relative;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0;
  box-shadow: var(--sh-1);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), border-color var(--t-med);
}
.how-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-3);
  border-color: #cfd8e3;
}
.how-step-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef2f6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.how-step-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-med) var(--ease-out);
}
.how-step:hover .how-step-media img { transform: scale(1.03); }
.how-step-media-placeholder {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #94a3b8;
}
.how-step > .how-step-title,
.how-step > .how-step-body { padding-left: var(--s-4); padding-right: var(--s-4); }
.how-step > .how-step-title { padding-top: var(--s-4); }
.how-step > .how-step-body { padding-bottom: var(--s-4); }
.how-step-num { display: none; }
.how-step-num {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--color-cta);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.how-step-title { font-size: 24px; font-weight: 800; color: #0f172a; line-height: 1.3; }
.how-step-body { font-size: 15px; color: var(--color-body); line-height: 1.65; }
@media (max-width: 900px) { .how-steps { grid-template-columns: 1fr; } }

/* ==========================================================================
   SCROLL REVEAL — subtle fade + slide-up as elements approach the viewport
   Butter smooth: pre-fires 220px before entering view so the animation
   completes BEFORE the user sees the element. No layer leak, no jank.
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.45s ease-out,
    transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Clean up after animation so nothing sits on the compositor forever. */
.reveal.is-done {
  transform: none;
  transition: none;
}
/* Stagger children of common containers — tight, so nothing is
   mid-animation by the time the user reaches it. */
.info-grid > .reveal:nth-child(2),
.numbered-grid > .reveal:nth-child(2),
.how-steps > .reveal:nth-child(2) { transition-delay: 0.06s; }
.info-grid > .reveal:nth-child(3),
.numbered-grid > .reveal:nth-child(3),
.how-steps > .reveal:nth-child(3) { transition-delay: 0.12s; }
.section-title.reveal { transition-delay: 0.04s; }
.section-lede.reveal { transition-delay: 0.08s; }
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible,
  .reveal.is-done {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Section 04 — funds (centered layout + scattered logo cloud) */
.section-funds { background: var(--bg-soft); }
.section-funds .section-eyebrow,
.section-funds .section-title,
.section-funds .section-lede {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-funds .section-eyebrow { max-width: max-content; }
.section-funds .section-title { max-width: 960px; }
.section-funds .section-lede { max-width: 760px; }

.fund-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 26px;
  margin: var(--s-5) auto 0;
  max-width: 1100px;
  padding: var(--s-4) var(--s-2);
}
.fund-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  min-height: 56px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-body);
  box-shadow: 0 2px 8px -4px rgba(15,23,42,0.10);
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out);
}
.fund-cloud.in-view .fund-logo {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* Staggered reveal — each logo pops in slightly later than the previous */
.fund-cloud.in-view .fund-logo:nth-child(1)  { transition-delay: 0.02s; }
.fund-cloud.in-view .fund-logo:nth-child(2)  { transition-delay: 0.08s; }
.fund-cloud.in-view .fund-logo:nth-child(3)  { transition-delay: 0.14s; }
.fund-cloud.in-view .fund-logo:nth-child(4)  { transition-delay: 0.20s; }
.fund-cloud.in-view .fund-logo:nth-child(5)  { transition-delay: 0.26s; }
.fund-cloud.in-view .fund-logo:nth-child(6)  { transition-delay: 0.32s; }
.fund-cloud.in-view .fund-logo:nth-child(7)  { transition-delay: 0.38s; }
.fund-cloud.in-view .fund-logo:nth-child(8)  { transition-delay: 0.44s; }
.fund-cloud.in-view .fund-logo:nth-child(9)  { transition-delay: 0.50s; }
.fund-cloud.in-view .fund-logo:nth-child(10) { transition-delay: 0.56s; }
.fund-cloud.in-view .fund-logo:nth-child(11) { transition-delay: 0.62s; }
.fund-cloud.in-view .fund-logo:nth-child(12) { transition-delay: 0.68s; }
.fund-cloud.in-view .fund-logo:nth-child(13) { transition-delay: 0.74s; }
.fund-cloud.in-view .fund-logo:nth-child(14) { transition-delay: 0.80s; }
.fund-cloud.in-view .fund-logo:nth-child(15) { transition-delay: 0.86s; }
.fund-cloud.in-view .fund-logo:nth-child(16) { transition-delay: 0.92s; }
.fund-cloud.in-view .fund-logo:nth-child(17) { transition-delay: 0.98s; }
.fund-cloud.in-view .fund-logo:nth-child(18) { transition-delay: 1.04s; }
.fund-cloud.in-view .fund-logo:nth-child(19) { transition-delay: 1.10s; }
.fund-cloud.in-view .fund-logo:nth-child(20) { transition-delay: 1.16s; }
.fund-cloud.in-view .fund-logo:nth-child(21) { transition-delay: 1.22s; }
.fund-cloud.in-view .fund-logo:nth-child(22) { transition-delay: 1.28s; }
.fund-cloud.in-view .fund-logo:nth-child(23) { transition-delay: 1.34s; }
.fund-cloud.in-view .fund-logo:nth-child(24) { transition-delay: 1.40s; }
.fund-cloud.in-view .fund-logo:nth-child(25) { transition-delay: 1.46s; }
/* Organic feel — vary padding and rotation slightly per position */
.fund-logo:nth-child(3n)     { transform: translateY(14px) scale(0.9) rotate(-1.5deg); padding: 12px 18px; }
.fund-logo:nth-child(4n)     { transform: translateY(14px) scale(0.9) rotate(1.2deg); padding: 16px 26px; }
.fund-logo:nth-child(5n + 2) { transform: translateY(14px) scale(0.9) rotate(-0.8deg); padding: 14px 24px; }
.fund-cloud.in-view .fund-logo:nth-child(3n)     { transform: translateY(0) scale(1) rotate(-1.5deg); }
.fund-cloud.in-view .fund-logo:nth-child(4n)     { transform: translateY(0) scale(1) rotate(1.2deg); }
.fund-cloud.in-view .fund-logo:nth-child(5n + 2) { transform: translateY(0) scale(1) rotate(-0.8deg); }
.fund-logo:hover {
  border-color: #38BEBF;
  color: #0f172a;
  transform: translateY(-2px) scale(1) rotate(0);
  box-shadow: 0 8px 20px -8px rgba(15,23,42,0.18);
}
.fund-logo {
  min-width: 140px;
}
.fund-logo img {
  max-height: 44px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: none;
}
@media (prefers-reduced-motion: reduce) {
  .fund-logo { opacity: 1; transform: none; transition: none; }
  .fund-cloud.in-view .fund-logo,
  .fund-cloud.in-view .fund-logo:nth-child(3n),
  .fund-cloud.in-view .fund-logo:nth-child(4n),
  .fund-cloud.in-view .fund-logo:nth-child(5n + 2) { transform: none; }
}

/* Section 05 — change (centered, no image) */
.section-change .section-eyebrow,
.section-change .section-title,
.section-change .section-lede {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-change .section-eyebrow { max-width: max-content; }
.section-change .section-title { max-width: 960px; }
.section-change .section-lede { max-width: 800px; }
.change-cards { margin-top: var(--s-6); }

/* Teal-gradient variant used in the "change" section */
.numbered-card--teal {
  position: relative;
  background:
    linear-gradient(135deg, #38BEBF 0%, #2E9A9C 55%, #23787A 100%);
  border: none;
  color: #ffffff;
  overflow: visible;
  padding: 56px 28px 28px;
  box-shadow: 0 10px 28px -12px rgba(35,120,122,0.45);
  margin-top: 40px;
}
.numbered-card--teal .numbered-card-title { color: #ffffff; }
.numbered-card--teal .numbered-card-body { color: rgba(255,255,255,0.92); }
.numbered-card--teal:hover { border-color: transparent; box-shadow: 0 14px 34px -12px rgba(35,120,122,0.55); }
.numbered-card--teal .numbered-card-media,
.numbered-card--teal .media-badge { display: none; }

/* Big outline number badge sitting at the top-left of the teal card.
   Solid dark so the portion sitting above the card (on the light bg)
   stays crisply readable, and the portion over teal still has good contrast. */
.numbered-card-badge {
  position: absolute;
  top: -34px;
  left: 20px;
  z-index: 2;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  color: #0f172a;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 6px rgba(15,23,42,0.12);
}

/* Section 06 — about (with blob frame side layout) */
.section-about { background: var(--bg-white); }
.section-about-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: var(--s-6);
  align-items: center;
  margin-top: var(--s-4);
  text-align: left;
}
.section-about-visual { display: flex; justify-content: flex-start; }
.about-family-media {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 32px 200px 32px 200px / 200px 32px 200px 32px;
  background: #eef2f6;
  box-shadow: 0 24px 60px -30px rgba(15,23,42,0.35);
}
.about-family-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.section-about-copy .section-eyebrow,
.section-about-copy .section-title {
  text-align: left;
  margin-left: 0;
}
.about-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 640px;
  margin: var(--s-3) 0 0;
  font-size: 16px;
  color: var(--color-body);
  line-height: 1.75;
}
.about-close {
  margin: var(--s-4) 0 0;
  max-width: 640px;
  font-size: 19px;
  font-weight: 600;
  color: var(--color-title);
  line-height: 1.45;
}
.section-about-copy .section-cta { justify-content: flex-start; margin-top: var(--s-4); }
@media (max-width: 900px) {
  .section-about-layout { grid-template-columns: 1fr; text-align: center; }
  .section-about-visual { justify-content: center; }
  .section-about-copy .section-eyebrow,
  .section-about-copy .section-title,
  .about-body,
  .about-close { text-align: center; margin-left: auto; margin-right: auto; }
  .section-about-copy .section-cta { justify-content: center; }
}

/* Section 07 — reviews */
.section-reviews { background: var(--bg-soft); text-align: center; }
.section-reviews .section-eyebrow { display: inline-block; }
.section-reviews .section-title { margin: 0 auto; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-6);
  text-align: left;
}
/* Google-styled review card */
.review-card {
  flex: 0 0 auto;
  width: 360px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.05);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: 'Inter', system-ui, sans-serif;
}
.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.review-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #eef2f6;
}
.review-id { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.review-name {
  font-weight: 600;
  color: #202124;
  font-size: 15px;
  letter-spacing: -0.005em;
}
.review-sub {
  font-size: 13px;
  color: #5f6368;
  margin-top: 2px;
}
.review-google {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: 6px;
}
.review-stars { display: flex; gap: 2px; color: #fbbc04; }
.review-stars svg { width: 16px; height: 16px; }
.review-text {
  font-size: 14px;
  color: #3c4043;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Marquee — smooth infinite horizontal scroll.
   Animation is paused until JS has cloned the cards (adds .is-ready).
   That prevents the "cards jump / disappear" glitch on mobile Safari when
   the CSS animation begins on a half-populated track. */
.reviews-marquee {
  position: relative;
  margin-top: var(--s-6);
  overflow: hidden;
  padding: 12px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.reviews-track {
  display: flex;
  gap: 22px;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  animation: reviews-scroll 60s linear infinite;
  animation-play-state: paused;
}
.reviews-marquee.is-ready .reviews-track { animation-play-state: running; }
.reviews-marquee:hover .reviews-track { animation-play-state: paused; }
@keyframes reviews-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (max-width: 720px) {
  /* On narrow screens the edge fade eats real cards. Drop the mask. */
  .reviews-marquee { -webkit-mask-image: none; mask-image: none; }
  .reviews-track { animation-duration: 45s; }
}
@media (prefers-reduced-motion: reduce) {
  .reviews-track { animation: none; }
  .reviews-marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
}

/* Section 08 — FAQ */
.section-faq { background: var(--bg-white); }
.faq-container { max-width: 820px; }
.section-faq .section-eyebrow,
.section-faq .section-title {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-faq .section-eyebrow { max-width: max-content; }
.section-faq .section-title { max-width: 820px; }
.faq-list {
  margin-top: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-med);
}
.faq-item:hover { border-color: #cfd8e3; }
.faq-item[open] {
  border-color: var(--color-cta);
  box-shadow: 0 6px 20px -10px rgba(47,188,182,.28);
}
.faq-item summary {
  list-style: none;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-title);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-caret {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(47,188,182,.10);
  color: var(--color-cta-active);
  transition: transform var(--t-slow) var(--ease-out), background var(--t-fast);
}
.faq-caret svg { width: 14px; height: 14px; }
.faq-item[open] .faq-caret { transform: rotate(180deg); background: rgba(47,188,182,.18); }
.faq-body {
  padding: 0 24px 24px;
  color: var(--color-body);
  font-size: 15px;
  line-height: 1.7;
}

/* Section 09 — final CTA (solid color, no gradient) */
.section-final-cta { background: var(--bg-white); padding-bottom: var(--s-12); }
.final-cta-card {
  position: relative;
  background: var(--color-title);
  border-radius: var(--r-2xl);
  padding: var(--s-12) var(--s-6) var(--s-8);
  text-align: center;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(30,79,186,.4);
}
/* subtle decorative squares — no gradient, solid low-alpha */
.final-cta-card::before,
.final-cta-card::after {
  content: '';
  position: absolute;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  pointer-events: none;
}
.final-cta-card::before {
  width: 320px; height: 320px;
  top: -140px; right: -80px;
}
.final-cta-card::after {
  width: 240px; height: 240px;
  bottom: -100px; left: -60px;
}
.final-cta-glow { display: none; }
.final-cta-title {
  position: relative;
  font-size: clamp(30px, 3.8vw, 46px);
  color: #fff;
  margin-bottom: var(--s-2);
  line-height: 1.15;
}
.final-cta-body {
  position: relative;
  font-size: 17px;
  color: rgba(255,255,255,.92);
  margin: 0 auto 8px;
  max-width: 640px;
  line-height: 1.6;
}
.final-cta-sub {
  position: relative;
  font-size: 15px;
  color: rgba(255,255,255,.78);
  margin: 0 auto var(--s-4);
}
.final-cta-btn {
  position: relative;
  background: #ffffff;
  color: #23787A;
  box-shadow: 0 10px 28px -8px rgba(0,0,0,.35), 0 2px 6px -2px rgba(0,0,0,.18);
}
.final-cta-btn:hover {
  background: #ffffff;
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(0,0,0,.42), 0 3px 8px -2px rgba(0,0,0,.22);
}
.final-cta-btn:active {
  background: #f1f5f9;
  color: #23787A;
  transform: translateY(0);
}
.final-cta-strip {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 32px;
  margin-top: var(--s-6);
}
.final-cta-strip li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,.92);
}
.final-cta-strip svg {
  width: 14px; height: 14px;
  padding: 4px;
  background: rgba(255,255,255,.16);
  border-radius: 50%;
  box-sizing: content-box;
}
@media (max-width: 720px) {
  .final-cta-card { padding: var(--s-8) var(--s-3) var(--s-6); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-body-dark);
  color: rgba(255,255,255,.68);
  padding: var(--s-6) 0 var(--s-4);
}
.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.site-footer-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.site-footer-logo {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .95;
}
.site-footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  max-width: 480px;
}
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}
.site-footer-links a {
  font-size: 13.5px;
  color: rgba(255,255,255,.75);
  padding: 6px 4px;
  transition: color var(--t-fast);
}
.site-footer-links a:hover { color: #fff; }
.site-footer-legal, .site-footer-copy {
  font-size: 12.5px;
  color: rgba(255,255,255,.55);
  max-width: 640px;
  line-height: 1.55;
}
.site-footer-copy { margin-top: 4px; }

/* ==========================================================================
   FLOATING MOBILE CTA
   ========================================================================== */
.floating-cta {
  display: none;
  position: fixed;
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 50;
}
.floating-cta .btn { width: 100%; padding: 15px 20px; font-size: 15px; }
@media (max-width: 720px) {
  .floating-cta { display: block; }
}

/* ==========================================================================
   IMAGE FRAME PLACEHOLDERS — 7 shapes for AI images (TODO)
   ========================================================================== */
.image-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-soft);
  border: 2px dashed var(--muted);
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
  font-weight: 500;
  overflow: hidden;
  text-align: center;
  padding: 12px;
  transition: border-color var(--t-med), background var(--t-med);
}
.image-frame::before {
  content: '';
  display: block;
  width: 32px; height: 32px;
  background: currentColor;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2' ry='2'/><circle cx='8.5' cy='8.5' r='1.5'/><polyline points='21 15 16 10 5 21'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2' ry='2'/><circle cx='8.5' cy='8.5' r='1.5'/><polyline points='21 15 16 10 5 21'/></svg>");
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
  opacity: .55;
}
.image-frame:hover { border-color: var(--color-cta); color: var(--color-cta-active); }
.image-frame .frame-label {
  font-size: 11px;
  letter-spacing: .04em;
  line-height: 1.3;
  opacity: .85;
}

/* Rounded rectangle (hero) */
.frame-rounded {
  width: 100%;
  aspect-ratio: 5 / 6;
  max-width: 440px;
  max-height: 520px;
  border-radius: var(--r-xl);
}

/* Organic blob (about) */
.frame-blob {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
}

/* Hexagon (testimonial avatars) */
.frame-hexagon {
  width: 72px;
  height: 72px;
  border: 0;
  background: var(--color-title);
  color: #fff;
  border-radius: 0;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Inter', system-ui, sans-serif;
  font-style: normal;
  flex-shrink: 0;
}
.frame-hexagon::before { display: none; }
.frame-hexagon .frame-label { display: none; }
.frame-hexagon .review-avatar-initial { display: inline-block; }
.frame-hexagon:hover { border-color: transparent; color: #fff; }

/* Circle (how it works steps) */
.frame-circle {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  margin: 0 auto 4px;
}

/* Arch (explore options) */
.frame-arch {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 6 / 7;
  border-radius: 50% 50% 12px 12px / 24% 24% 12px 12px;
}

/* Tilted (why review — icon-image at top of card) */
.frame-tilted {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  transform: rotate(-2.5deg);
  box-shadow: 0 8px 20px -8px rgba(51,71,91,.18);
  transition: transform var(--t-med) var(--ease-out), border-color var(--t-med), box-shadow var(--t-med);
  align-self: flex-start;
  margin-bottom: 4px;
}
.frame-tilted:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 0 12px 26px -8px rgba(51,71,91,.22);
}

/* Ribbon (thinking about a change — side image) */
.frame-ribbon {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 380 / 460;
  clip-path: polygon(0 0, 100% 6%, 100% 94%, 0 100%);
  border-radius: 0;
  border: 0;
  background:
    /* dashed edge fallback drawn inside via inset shadow */
    var(--bg-soft);
  box-shadow: inset 0 0 0 2px var(--muted);
}
.frame-ribbon::after {
  content: '';
  position: absolute; inset: 0;
  background: transparent;
  pointer-events: none;
}
.frame-ribbon:hover { box-shadow: inset 0 0 0 2px var(--color-cta); color: var(--color-cta-active); }

/* Mobile — reduce heaviest frames */
@media (max-width: 720px) {
  .frame-rounded { max-width: 100%; max-height: none; aspect-ratio: 4 / 3; }
  .frame-blob { max-width: 320px; }
  .frame-arch { max-width: 280px; }
  .frame-ribbon { max-width: 320px; }
  .frame-circle { max-width: 140px; }
}

/* ==========================================================================
   FORM POPUP
   ========================================================================== */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: flex-end;
  justify-content: center;
  animation: overlay-fade .28s var(--ease-out);
}
.popup-overlay.active { display: flex; }
@keyframes overlay-fade { from { opacity: 0; } to { opacity: 1; } }

.popup-content {
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: sheet-up .5s cubic-bezier(.22,1,.36,1);
  position: relative;
}
@keyframes sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (min-width: 720px) {
  .popup-overlay { align-items: stretch; padding: 0; }
  .popup-content {
    animation: fade-in .42s var(--ease-out);
  }
  @keyframes fade-in {
    from { opacity: 0; transform: scale(1.015); }
    to { opacity: 1; transform: scale(1); }
  }
  .popup-header,
  .popup-body,
  .popup-footer {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  .popup-header { padding: 24px 40px 16px; }
  .popup-body { padding: 24px 40px 40px; }

  /* Widen the popup when the thank-you sub-step is showing so the
     confirmation cards fit without a vertical scrollbar. */
  .popup-content:has(.sub-thankyou.active) .popup-header,
  .popup-content:has(.sub-thankyou.active) .popup-body,
  .popup-content:has(.sub-thankyou.active) .popup-footer {
    max-width: 1080px;
  }
  .popup-content:has(.sub-thankyou.active) .popup-body { padding: 16px 40px 24px; }
}

/* --------------------------------------------------------------------------
   Funnel navigation controls — close (X) and back button are hidden so the
   user commits to the flow once they click Compare Now. Progress label
   (Step X of 8) is also hidden on the thank-you sub-step.
   -------------------------------------------------------------------------- */
.popup-close,
.popup-back { display: none !important; }
.popup-content:has(.sub-thankyou.active) .popup-progress,
.popup-content:has(.sub-thankyou.active) .progress-bar { display: none !important; }

@media (min-width: 720px) {

  .popup-close {
    position: fixed;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: #fff;
    box-shadow: var(--sh-2);
  }
}

/* Popup header */
.popup-header {
  position: relative;
  padding: 20px 20px 12px;
  flex-shrink: 0;
}
.popup-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--color-body);
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), color var(--t-fast);
  z-index: 3;
}
.popup-close:hover { background: var(--border); color: var(--color-body-dark); }
.popup-close svg { width: 18px; height: 18px; }

.popup-logo {
  display: block;
  height: 30px;
  width: auto;
  margin: 0 auto 12px;
}
.popup-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}
.popup-back {
  position: absolute;
  left: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--color-body);
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), color var(--t-fast);
}
.popup-back:hover { background: var(--border); color: var(--color-body-dark); }
.popup-back svg { width: 16px; height: 16px; }
.progress-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
#step-current { color: var(--color-cta); }

/* Progress bar — solid teal fill, no gradient */
.progress-bar {
  height: 4px;
  background: var(--ink-100);
  overflow: hidden;
  flex-shrink: 0;
}
.progress-bar-fill {
  height: 100%;
  background: var(--color-cta);
  width: calc((var(--step-current, 1) / 8) * 100%);
  transition: width .5s var(--ease-spring);
  border-radius: 0 4px 4px 0;
}

/* Popup body */
.popup-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.popup-body::-webkit-scrollbar { display: none; }
.form-step {
  display: none;
  animation: step-in .35s var(--ease-spring);
}
.form-step.active { display: block; }
@keyframes step-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Step visuals */
.step-visual {
  display: flex;
  justify-content: center;
  margin: 0 0 20px;
}
.step-icon-halo { display: none; }
.step-icon-halo svg { width: 28px; height: 28px; }

.step-headline {
  font-size: 22px;
  font-weight: 700;
  color: #2A848E;
  margin: 0 auto 8px;
  text-align: center;
  max-width: 520px;
  line-height: 1.3;
}
.step-sub {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 auto 24px;
  text-align: center;
  max-width: 520px;
}

/* Fields */
.field-group { margin-bottom: 18px; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-body);
  margin-bottom: 8px;
}
.field-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: var(--color-body-dark);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -webkit-appearance: none;
  appearance: none;
}
.field-input-small { max-width: 180px; }
.field-input::placeholder { color: var(--muted); }
.field-input:focus {
  outline: none;
  border-color: var(--color-cta);
  box-shadow: 0 0 0 4px rgba(47,188,182,.16);
}
.field-error {
  display: none;
  color: #dc2626;
  font-size: 13px;
  margin-top: 6px;
}
.field-group.invalid .field-input {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220,38,38,.08);
}
.field-group.invalid .field-error { display: block; }

/* Radio cards */
.radio-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.radio-list-tight { gap: 8px; }
.radio-list-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 480px) {
  .radio-list-grid { grid-template-columns: repeat(2, 1fr); }
}
.radio-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  min-height: 56px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-weight: 500;
  color: var(--color-body);
  transition:
    transform var(--t-fast) var(--ease-out),
    border-color var(--t-fast),
    background var(--t-fast),
    box-shadow var(--t-fast);
}
.radio-card:hover {
  border-color: var(--color-cta);
  background: rgba(47,188,182,.03);
}
.radio-card:active { transform: scale(.985); }
.radio-card input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color var(--t-fast);
  margin: 0;
}
.radio-card input[type="radio"]:checked { border-color: var(--color-cta); }
.radio-card input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  background: var(--color-cta);
  border-radius: 50%;
}
.radio-card:has(input:checked) {
  border-color: var(--color-cta);
  background: rgba(47,188,182,.06);
  box-shadow: 0 0 0 4px rgba(47,188,182,.10);
}
/* Green check indicator on selected radio (uses check-green per spec) */
.radio-card:has(input:checked)::after {
  content: '';
  position: absolute;
  top: 50%; right: 18px;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  background: var(--check-green);
  border-radius: 50%;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: 60% 60%; mask-size: 60% 60%;
  opacity: 0;
  animation: check-in .28s var(--ease-spring) forwards;
}
@keyframes check-in {
  from { opacity: 0; transform: translateY(-50%) scale(.4); }
  to   { opacity: 1; transform: translateY(-50%) scale(1); }
}
.radio-card-title { font-size: 15px; font-weight: 600; color: var(--color-body-dark); }
.radio-card-compact {
  justify-content: center;
  padding: 14px 12px;
  min-height: 48px;
}
.radio-card-compact input[type="radio"] { display: none; }
.radio-card-compact .radio-card-title { font-size: 14px; }
.radio-card-compact:has(input:checked)::after { display: none; }

/* Consent */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: var(--r-sm);
  margin: 18px 0;
}
.consent-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid #cbd5e1;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all var(--t-fast);
  background: #fff;
}
.consent-row input[type="checkbox"]:checked {
  background: var(--color-cta);
  border-color: var(--color-cta);
}
.consent-row input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 45%; left: 50%;
  width: 4px; height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -55%) rotate(45deg);
}
.consent-row label {
  font-size: 13px;
  color: var(--color-body);
  line-height: 1.5;
  cursor: pointer;
}
.consent-row label a { color: var(--color-cta-active); text-decoration: underline; font-weight: 600; }

/* Nav */
.form-nav { margin-top: 24px; padding-top: 8px; }

/* Sub-steps (step 8) */
.sub-step { display: none; }
.sub-step.active { display: block; animation: step-in .35s var(--ease-spring); }

/* OTP */
.otp-boxes {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 4px;
  flex-wrap: nowrap;
}
.otp-digit {
  width: 44px; height: 54px;
  box-sizing: border-box;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: var(--color-title);
  background: #fff;
  font-family: inherit;
  outline: none;
  padding: 0;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.otp-digit::-webkit-outer-spin-button,
.otp-digit::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
@media (min-width: 480px) {
  .otp-digit { width: 52px; height: 60px; font-size: 26px; }
  .otp-boxes { gap: 10px; }
}
.otp-digit:focus {
  border-color: var(--color-cta);
  box-shadow: 0 0 0 4px rgba(47,188,182,.16);
}
.otp-error {
  min-height: 18px;
  margin: 8px 0 4px;
  font-size: 13px;
  color: #dc2626;
  text-align: center;
}
.otp-foot {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.otp-resend {
  background: none;
  border: 0;
  color: var(--color-cta-active);
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
}
.otp-resend:disabled { color: var(--muted); cursor: not-allowed; text-decoration: none; }
.otp-resend-timer { color: var(--muted); margin-left: 4px; }

/* ==========================================================================
   THANK YOU — rich confirmation with user's details + next steps
   ========================================================================== */
.sub-thankyou { text-align: left; padding: 8px 0; }

.ty-hero { text-align: center; padding: 12px 0 24px; }
.ty-check {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(124,194,71,.15);
  color: var(--check-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  animation: ty-pop .5s var(--ease-spring);
}
.ty-check svg { width: 32px; height: 32px; }
@keyframes ty-pop {
  from { transform: scale(.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.ty-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.2;
}
.ty-sub {
  font-size: 15px;
  color: var(--color-body);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.55;
}

/* 2x2 card grid — on very wide screens, all four cards sit in one row.
   On typical desktop, two rows of two. On mobile, stacked. */
.ty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}
.ty-card {
  background: #fff7ec;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.ty-card--details { background: #fff7ec; }
.ty-card--selections { background: #fff2e0; }
.ty-card--next { background: #eaf7f6; }
.ty-card--wait { background: #f4f1fa; }
/* All four side-by-side on wide screens so nothing overflows vertically */
@media (min-width: 1024px) {
  .ty-grid { grid-template-columns: repeat(4, 1fr); }
}
.ty-card-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #d97706;
  margin: 0 0 12px;
}
.ty-card--selections .ty-card-title { color: #ea580c; }
.ty-card--next .ty-card-title { color: #0f766e; }
.ty-card--wait .ty-card-title { color: #7c3aed; }

.ty-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ty-details li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(15,23,42,0.08);
}
.ty-details li:last-child { border-bottom: none; }
.ty-key { color: var(--color-body); font-weight: 500; flex-shrink: 0; }
.ty-value { color: #0f172a; font-weight: 700; text-align: right; word-break: break-word; }

.ty-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ty-steps li { display: flex; gap: 14px; align-items: flex-start; }
.ty-step-num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #0f766e;
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ty-steps li div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.ty-steps li strong { color: #0f172a; font-weight: 700; }
.ty-steps li span { color: var(--color-body); line-height: 1.5; }

.ty-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ty-checklist li {
  position: relative;
  padding: 10px 14px 10px 40px;
  background: #ffffff;
  border-radius: 10px;
  font-size: 14px;
  color: #0f172a;
  border: 1px solid rgba(124,58,237,0.15);
}
.ty-checklist li::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  border-radius: 4px;
  background: #7c3aed url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 12px 12px no-repeat;
}

.ty-foot {
  text-align: center;
  color: var(--color-body);
  font-size: 13px;
  margin: 20px 0 4px;
  line-height: 1.5;
}
.ty-foot strong { color: #0f172a; }

/* Mobile — stack everything */
@media (max-width: 640px) {
  .ty-grid { grid-template-columns: 1fr; }
  .ty-card--next,
  .ty-card--wait { grid-column: auto; }
  .ty-details li { font-size: 13px; }
  .ty-title { font-size: 22px; }
}

/* Popup footer */
.popup-footer {
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
  border-top: 1px solid var(--ink-100);
  background: #fff;
}

/* Body lock while popup open */
body.popup-open { overflow: hidden; }

/* ==========================================================================
   Small helpers
   ========================================================================== */
@media (max-width: 720px) {
  .section { padding: var(--s-8) 0; }
  .section-goodtoknow { padding-top: var(--s-6); padding-bottom: var(--s-4); }
  .section-title { font-size: 28px; }
}

/* ==========================================================================
   MOBILE OPTIMIZATION — placed at end so source-order beats base rules
   ========================================================================== */
@media (max-width: 720px) {
  /* --- Info cards with photo background (Good to Know) --- */
  .info-card--media {
    aspect-ratio: auto;
    min-height: 320px;
  }
  .info-card--media .info-card-title {
    font-size: 22px;
    padding: 0 20px 8px;
    min-height: auto;
  }
  .info-card--media .info-card-body {
    font-size: 14px;
    padding: 0 20px 20px;
  }

  /* --- Number pill badge on Why Review + How Steps cards --- */
  .media-badge {
    font-size: 26px;
    min-width: 60px;
    height: 60px;
    top: 12px;
    left: 12px;
    padding: 0 14px;
  }

  /* --- Teal change cards (Thinking About a Change) --- */
  .numbered-card-badge { font-size: 54px; top: -28px; left: 14px; }
  .numbered-card--teal { padding: 44px 22px 22px; margin-top: 34px; }

  /* --- Fund cloud — tidy 3-column grid so section is compact --- */
  .fund-cloud {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px 4px;
    max-width: 100%;
  }
  .fund-logo {
    min-width: 0;
    width: 100%;
    padding: 10px 8px;
    min-height: 56px;
  }
  .fund-logo img {
    max-width: 100%;
    max-height: 30px;
  }
  /* Kill the organic rotation on mobile — clean grid instead */
  .fund-logo:nth-child(3n),
  .fund-logo:nth-child(4n),
  .fund-logo:nth-child(5n + 2) {
    transform: translateY(14px) scale(0.9) rotate(0deg);
    padding: 10px 8px;
  }
  .fund-cloud.in-view .fund-logo:nth-child(3n),
  .fund-cloud.in-view .fund-logo:nth-child(4n),
  .fund-cloud.in-view .fund-logo:nth-child(5n + 2) {
    transform: translateY(0) scale(1) rotate(0deg);
  }

  /* --- Section titles a touch smaller on mobile --- */
  .section-title { font-size: clamp(26px, 6vw, 34px); }

  /* --- Grids collapse to single column on mobile --- */
  .numbered-grid,
  .how-steps,
  .info-grid { grid-template-columns: 1fr; gap: 20px; }

  /* --- Reviews marquee — narrower cards --- */
  .review-card { width: 300px; padding: 18px 20px; }

  /* --- Final CTA title --- */
  .final-cta-title { font-size: clamp(24px, 6vw, 32px); }

  /* --- Tighter container padding --- */
  .container { padding-left: 20px; padding-right: 20px; }

  /* --- Hide the hero stat card on mobile — too much visual noise on small screens --- */
  .hero-stat-card { display: none; }

  /* --- Hide the green dot inside the hero eyebrow pill on mobile --- */
  .hero-eyebrow-dot { display: none; }
  .hero-eyebrow { gap: 0; }
}
