/* ==========================================================================
   Level Offer — design system
   Aesthetic: refined restraint. A funded fintech product (Opendoor/Ramp/Mercury
   /Linear/Stripe), not a "we buy houses" wholesaler. The polish IS the trust.
   Light + dark via CSS vars. One confident accent (a calm considered green =
   "go / money / trust"). No external assets — system font stack tuned to read
   premium; distinctiveness comes from scale, spacing, depth and motion.
   ========================================================================== */

:root {
  /* type — a premium-reading system stack (no CDN, CSP-clean). The display face
     leans to the "New York"/serif fallback for editorial warmth on large sizes;
     text uses the modern grotesque system stack. */
  --font-text: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", "URW Palladio L",
    "Georgia", ui-serif, serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;

  /* radius scale */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-full: 999px;

  /* spacing rhythm */
  --sp-1: 0.5rem;
  --sp-2: 0.75rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2rem;
  --sp-6: 3rem;
  --sp-7: 4.5rem;
  --sp-8: 7rem;

  --maxw: 1120px;
  --maxw-prose: 640px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.5s;

  /* ---- light theme (default) ---- */
  --bg: #f7f6f2;            /* warm off-white canvas */
  --bg-elev: #ffffff;
  --bg-sunk: #efeee9;
  --ink: #14171a;          /* near-black */
  --ink-soft: #4a5157;
  --ink-faint: #808a90;
  --ink-ghost: #a9b0b5;    /* placeholder text */
  --line: #e5e3db;
  --line-strong: #d5d2c8;

  --accent: #1f7a5a;       /* calm considered green */
  --accent-ink: #ffffff;
  --accent-soft: #e7f2ec;
  --accent-glow: rgba(31, 122, 90, 0.18);

  --shadow-sm: 0 1px 2px rgba(20, 23, 26, 0.04),
               0 1px 3px rgba(20, 23, 26, 0.06);
  --shadow-md: 0 4px 12px rgba(20, 23, 26, 0.06),
               0 12px 28px rgba(20, 23, 26, 0.08);
  --shadow-lg: 0 8px 24px rgba(20, 23, 26, 0.08),
               0 24px 60px rgba(20, 23, 26, 0.12);
  --shadow-accent: 0 8px 24px var(--accent-glow);

  --grain-opacity: 0.025;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1113;
    --bg-elev: #171b1e;
    --bg-sunk: #0a0c0e;
    --ink: #f2f1ec;
    --ink-soft: #b3bbc0;
    --ink-faint: #78828a;
    --ink-ghost: #565e64;
    --line: #262b2f;
    --line-strong: #333a3f;

    --accent: #3fbd8e;
    --accent-ink: #05100b;
    --accent-soft: #12251d;
    --accent-glow: rgba(63, 189, 142, 0.22);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4),
                 0 12px 28px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5),
                 0 24px 60px rgba(0, 0, 0, 0.6);
    --shadow-accent: 0 8px 30px var(--accent-glow);
    --grain-opacity: 0.04;
  }
}

/* explicit theme override (viewer toggle stamps data-theme; must win both ways) */
:root[data-theme="dark"] {
  --bg: #0e1113; --bg-elev: #171b1e; --bg-sunk: #0a0c0e;
  --ink: #f2f1ec; --ink-soft: #b3bbc0; --ink-faint: #78828a;
  --ink-ghost: #565e64;  /* placeholder text */
  --line: #262b2f; --line-strong: #333a3f;
  --accent: #3fbd8e; --accent-ink: #05100b; --accent-soft: #12251d;
  --accent-glow: rgba(63, 189, 142, 0.22);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4), 0 12px 28px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5), 0 24px 60px rgba(0,0,0,0.6);
  --grain-opacity: 0.04;
}
:root[data-theme="light"] {
  --bg: #f7f6f2; --bg-elev: #ffffff; --bg-sunk: #efeee9;
  --ink: #14171a; --ink-soft: #4a5157; --ink-faint: #808a90;
  --ink-ghost: #a9b0b5;  /* placeholder text */
  --line: #e5e3db; --line-strong: #d5d2c8;
  --accent: #1f7a5a; --accent-ink: #ffffff; --accent-soft: #e7f2ec;
  --accent-glow: rgba(31, 122, 90, 0.18);
  --grain-opacity: 0.025;
}

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-text);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* atmospheric grain + a soft accent aurora behind the hero */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08;
  letter-spacing: -0.02em; margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem); position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--font-text);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}

.accent { color: var(--accent); }

/* --------------------------------------------------------------------------
   nav
   -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent); }
.nav-inner { display: flex; align-items: center; justify-content: space-between;
  height: 68px; }
.nav-links { display: flex; align-items: center; gap: var(--sp-4); }
.nav-links a { color: var(--ink-soft); font-size: 0.92rem; font-weight: 500;
  transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 680px) { .nav-links .nav-link { display: none; } }

/* wordmark */
.wordmark { display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.28rem;
  letter-spacing: -0.02em; color: var(--ink); }
.wordmark .mark { width: 26px; height: 26px; flex: none; }
.wordmark .w2 { color: var(--accent); }

/* --------------------------------------------------------------------------
   buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.72rem 1.35rem; border-radius: var(--r-full);
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em;
  border: 1px solid transparent; transition: transform 0.15s var(--ease),
    box-shadow 0.2s var(--ease), background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink);
  box-shadow: var(--shadow-accent); }
.btn-primary:hover { transform: translateY(-1px);
  box-shadow: 0 10px 30px var(--accent-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-elev); border-color: var(--ink-faint); }
.btn-lg { padding: 0.95rem 1.8rem; font-size: 1.02rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none;
  box-shadow: none; }

/* --------------------------------------------------------------------------
   hero
   -------------------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(3rem, 8vw, 5.5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; z-index: 0; top: -30%; right: -10%;
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle at center,
    var(--accent-glow), transparent 62%);
  filter: blur(8px); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-6);
  align-items: center; position: relative; z-index: 1; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: var(--sp-5); } }

.hero h1 { font-size: clamp(2.5rem, 6vw, 4.15rem); margin-top: var(--sp-3); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-soft);
  max-width: 30ch; margin-top: var(--sp-4); }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-4);
  margin-top: var(--sp-4); color: var(--ink-faint); font-size: 0.9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-trust svg { width: 16px; height: 16px; color: var(--accent); }

/* hero stat row — hard proof-points, hairline dividers */
.hero-stats { display: flex; align-items: stretch; gap: clamp(1rem, 3vw, 1.75rem);
  margin-top: var(--sp-5); flex-wrap: wrap; }
.hero-stats .stat-num { font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem); letter-spacing: -0.02em; color: var(--ink);
  line-height: 1.05; }
.hero-stats .stat-label { font-size: 0.82rem; color: var(--ink-faint);
  margin-top: 0.3rem; }
.hero-stats .stat-div { width: 1px; align-self: stretch; background: var(--line-strong);
  flex: none; }
@media (max-width: 420px) { .hero-stats .stat-div { display: none; }
  .hero-stats { gap: 1rem 1.75rem; } }

/* the address-start card = the primary CTA, styled like a fintech input module */
.start-card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: var(--sp-5);
  box-shadow: var(--shadow-lg);
}
.start-card .label { font-weight: 600; font-size: 0.95rem; }
.start-card .hint { color: var(--ink-faint); font-size: 0.86rem; margin-top: 0.25rem; }

/* --------------------------------------------------------------------------
   inputs
   -------------------------------------------------------------------------- */
.field { margin-top: var(--sp-3); }
.field > label { display: block; font-weight: 500; font-size: 0.9rem;
  color: var(--ink-soft); margin-bottom: 0.4rem; }
.input, .textarea, select.input {
  width: 100%; padding: 0.85rem 1rem; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md); transition: border-color 0.18s, box-shadow 0.18s,
    background 0.18s; font-family: inherit;
}
.input::placeholder { color: var(--ink-ghost); }
select.input:has(option[value=""]:checked) { color: var(--ink-ghost); }
.input:focus, .textarea:focus, select.input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow); background: var(--bg-elev);
}
.textarea { min-height: 96px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.field-error { color: #c0392b; font-size: 0.82rem; margin-top: 0.35rem; }
@media (prefers-color-scheme: dark) { .field-error { color: #ff8a7a; } }

/* address autocomplete dropdown (Geoapify, flag-gated — see autocomplete.js) */
.ac-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px);
  background: var(--bg-elev); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  max-height: 244px; overflow-y: auto; overscroll-behavior: contain; }
.ac-item { padding: 0.7rem 0.9rem; font-size: 0.94rem; color: var(--ink);
  cursor: pointer; border-top: 1px solid var(--line); line-height: 1.35; }
.ac-item:first-child { border-top: none; }
.ac-item:hover, .ac-item.active { background: var(--accent-soft); }
.ac-attr { padding: 0.4rem 0.9rem; font-size: 0.7rem; color: var(--ink-faint);
  background: var(--bg-sunk); border-top: 1px solid var(--line);
  position: sticky; bottom: 0; }
.ac-attr a { color: var(--ink-soft); text-decoration: underline; }
/* let the scrolling flow-body show the dropdown instead of clipping it: give the
   address step extra bottom room so an open dropdown has somewhere to go. */
.flow-body .step[data-step="address"] { padding-bottom: 60px; }

/* honeypot — visually gone, still in the DOM for bots */
.hp { position: absolute !important; left: -9999px !important; width: 1px;
  height: 1px; overflow: hidden; opacity: 0; }

/* --------------------------------------------------------------------------
   section scaffolding
   -------------------------------------------------------------------------- */
section { position: relative; z-index: 1; }
.section-pad { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { max-width: var(--maxw-prose); margin-bottom: var(--sp-5); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-top: var(--sp-2); }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin-top: var(--sp-3); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4);
  counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step-card { background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-4); box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-num { width: 40px; height: 40px; border-radius: var(--r-full);
  background: var(--accent-soft); color: var(--accent); display: grid;
  place-items: center; font-weight: 700; font-family: var(--font-display);
  margin-bottom: var(--sp-3); }
.step-card h3 { font-size: 1.22rem; }
.step-card p { color: var(--ink-soft); margin: 0.5rem 0 0; font-size: 0.96rem; }

/* WHY-US: sticky statement + list (Option B).
   Asymmetric 1+list layout — a standing statement on the left, benefits as clean
   list rows (no cards) on the right, divided by hairlines. Reads as a distinct
   section from the symmetric card grids above. */
.why-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--sp-6);
  align-items: start; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; gap: var(--sp-5); } }
.why-statement { position: sticky; top: 96px; }
@media (max-width: 860px) { .why-statement { position: static; } }
.why-statement h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: var(--sp-2) 0 var(--sp-3); }
.why-statement p { color: var(--ink-soft); font-size: 1.05rem; max-width: 34ch;
  margin-bottom: var(--sp-4); }

.why-list { display: flex; flex-direction: column; }
.why-item { display: grid; grid-template-columns: 44px 1fr; gap: var(--sp-3);
  padding: var(--sp-4) 0; align-items: start; }
.why-item + .why-item { border-top: 1px solid var(--line); }
.why-item:first-child { padding-top: 0.25rem; }
.why-item .wico { width: 26px; height: 26px; color: var(--accent); margin-top: 3px; }
.why-item h3 { font-size: 1.18rem; font-family: var(--font-display); font-weight: 600; }
.why-item p { color: var(--ink-soft); font-size: 0.98rem; margin: 0.35rem 0 0;
  max-width: 46ch; }

/* --------------------------------------------------------------------------
   situations ("whatever the situation")
   Who-this-is-for, sitting between why-us and the dark band: a hairline 3-col
   grid of named circumstances so distressed sellers self-select without the
   page ever saying "distressed". No icons — text-only keeps it matter-of-fact.
   -------------------------------------------------------------------------- */
.sit-grid { display: grid; grid-template-columns: repeat(3, 1fr);
  column-gap: var(--sp-6); border-top: 1px solid var(--line); }
.sit-item { padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
.sit-item h3 { font-size: 1.12rem; font-family: var(--font-display); font-weight: 600; }
.sit-item p { color: var(--ink-soft); font-size: 0.95rem; margin: 0.35rem 0 0; }
@media (max-width: 860px) { .sit-grid { grid-template-columns: 1fr 1fr;
  column-gap: var(--sp-5); } }
@media (max-width: 560px) { .sit-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   trust / comparison — DARK BAND
   The one tonal flip on the page: near-black section that makes the whole page
   feel more designed and gives the comparison a premium pricing-table read.
   Uses fixed dark tokens (not var()) so the band is dark in BOTH light & dark
   theme — it's an intentional inversion, not theme-dependent.
   -------------------------------------------------------------------------- */
.trust-dark {
  /* WARM CHARCOAL band — a break from the wall of cream, but tinted warm (a
     whisper of brown/green) so it reads as the same family as the warm light
     palette, not a cold slab. The table panel sits a touch lighter than the band. */
  --d-bg: #23241f; --d-panel: #2b2c26; --d-line: #3a3b34;
  --d-ink: #f1f0ea; --d-soft: #b6b5ab; --d-faint: #7e7d73;
  --d-accent: #45a97d;
  background: var(--d-bg); color: var(--d-ink);
  border-block: 1px solid #16170f;
}
.trust-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-6);
  align-items: center; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr; gap: var(--sp-5); } }

.trust-copy .eyebrow { color: var(--d-accent); }
.trust-copy h2 { color: var(--d-ink); font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin: var(--sp-2) 0 var(--sp-3); }
.trust-copy p { color: var(--d-soft); font-size: 1.05rem; margin-bottom: var(--sp-4);
  max-width: 42ch; }

/* the comparison table.
   The "ours" column is ONE continuous stripe (not stacked pills): no inner table
   padding, no per-cell rounding, no gaps — the accent background butts seamlessly
   cell-to-cell so it reads as a single crisp column. Only the stripe's very top
   and bottom corners are rounded, via the header and last row. */
.compare-table { background: var(--d-panel); border: 1px solid var(--d-line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.ct-row { display: grid; grid-template-columns: 1.25fr 1fr 1.05fr; align-items: stretch; }
/* row dividers span only the label + them cells; the ours stripe carries its own
   lighter internal divider so it stays one crisp continuous column. */
.ct-row + .ct-row .ct-label,
.ct-row + .ct-row .ct-them { border-top: 1px solid var(--d-line); }
.ct-label { padding: 0.95rem 1.1rem; font-size: 0.92rem; font-weight: 500;
  color: var(--d-soft); display: flex; align-items: center; }
.ct-them { padding: 0.95rem 0.75rem; text-align: center; font-size: 0.92rem;
  color: var(--d-faint); display: flex; align-items: center; justify-content: center; }
/* the continuous highlight column */
.ct-ours { padding: 0.95rem 0.75rem; text-align: center; font-size: 0.95rem;
  font-weight: 600; color: color-mix(in srgb, var(--d-accent) 88%, white);
  background: color-mix(in srgb, var(--d-accent) 15%, var(--d-panel));
  display: flex; align-items: center; justify-content: center; }
/* the divider inside the ours stripe is a hair lighter, so the stripe stays one
   piece but rows are still separable */
.ct-row + .ct-row .ct-ours {
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--d-accent) 26%, transparent); }
/* header row */
.ct-head .ct-label { color: transparent; }
.ct-head .ct-them, .ct-head .ct-ours { text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 0.72rem; font-weight: 700; }
.ct-head .ct-them { color: var(--d-faint); }
.ct-head .ct-ours { color: #fff; background: var(--d-accent); box-shadow: none; }

/* honesty note — sits below the grid, still on the dark band */
/* full-width honesty band below the grid. label sits left, the explanation runs
   as ONE wide line across the rest of the width — so it fills the horizontal
   space edge to edge rather than stranding a blurb in the left column. */
.honesty-band { margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: var(--sp-5); border-top: 1px solid var(--d-line);
  display: grid; grid-template-columns: 220px 1fr; gap: clamp(1.5rem, 5vw, 4rem);
  align-items: baseline; }
@media (max-width: 700px) { .honesty-band { grid-template-columns: 1fr; gap: var(--sp-2); } }
.honesty-band .eyebrow { color: var(--d-accent); }
.honesty-band h3 { color: var(--d-ink); font-family: var(--font-display);
  font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-top: var(--sp-2); }
.honesty-band p { color: var(--d-soft); font-size: 1.05rem; margin: 0;
  max-width: 68ch; }

/* faq */
.faq { max-width: 760px; margin-inline: auto; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: var(--sp-3) 0;
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3);
  font-weight: 600; font-size: 1.08rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .chev { width: 20px; height: 20px; color: var(--ink-faint);
  transition: transform 0.25s var(--ease); flex: none; }
.qa[open] summary .chev { transform: rotate(180deg); }
.qa .a { color: var(--ink-soft); padding-bottom: var(--sp-3); font-size: 0.98rem;
  max-width: 62ch; }

/* final cta — the closer. A filled accent panel: the most confident block on
   the page, bookending the hero. White type on deep green, soft glow, inverted
   button. */
.final-cta { text-align: center; }
.cta-panel { position: relative; overflow: hidden; max-width: 880px;
  margin-inline: auto; border-radius: var(--r-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem);
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--accent) 88%, black),
    var(--accent) 55%,
    color-mix(in srgb, var(--accent) 82%, #0b3a2a));
  box-shadow: 0 24px 60px -18px color-mix(in srgb, var(--accent) 55%, transparent); }
/* a soft radial highlight top-right for depth */
.cta-glow { position: absolute; top: -40%; right: -10%; width: 60%; height: 140%;
  /* closest-side so the fade completes inside the box at any aspect ratio —
     farthest-corner sizing left a hard edge on tall mobile panels */
  background: radial-gradient(ellipse closest-side at center,
    rgba(255,255,255,0.16), transparent); pointer-events: none; }
.cta-inner { position: relative; z-index: 1; }
.cta-eyebrow { font-family: var(--font-text); text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.72rem; font-weight: 600;
  color: rgba(255,255,255,0.75); }
.cta-panel h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem);
  margin: var(--sp-3) auto var(--sp-3); max-width: 20ch; }
.cta-panel p { color: rgba(255,255,255,0.82); font-size: 1.08rem;
  margin: 0 auto var(--sp-5); max-width: 42ch; }
.cta-btn { background: #fff; color: color-mix(in srgb, var(--accent) 88%, black);
  box-shadow: 0 8px 24px rgba(0,0,0,0.22); font-size: 1.05rem;
  padding: 1rem 2rem; }
.cta-btn:hover { transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.28); background: #fff; }
.cta-note { margin-top: var(--sp-4); color: rgba(255,255,255,0.7);
  font-size: 0.85rem; }

/* footer */
.footer { border-top: 1px solid var(--line); padding-block: var(--sp-6);
  color: var(--ink-faint); font-size: 0.88rem; margin-top: var(--sp-6); }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: var(--sp-4); align-items: flex-start; }
.footer .disclosure { max-width: 46ch; margin-top: var(--sp-3); line-height: 1.6; }
.footer a { color: var(--ink-soft); }
.footer a:hover { color: var(--ink); }
.footer-legal { margin-top: var(--sp-4); padding-top: var(--sp-3);
  border-top: 1px solid var(--line); display: flex; gap: var(--sp-4);
  flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   THE FLOW (multi-step modal-sheet)
   -------------------------------------------------------------------------- */
.flow-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: color-mix(in srgb, var(--bg-sunk) 70%, rgba(0,0,0,0.35));
  backdrop-filter: blur(6px); padding: var(--sp-3);
  align-items: center; justify-content: center;
}
.flow-overlay.open { display: flex; animation: fade 0.3s var(--ease); }
/* The sheet is a flex column bounded to the viewport: fixed header, a single
   scrolling body, and a pinned footer at thumb height. Mobile-first — the whole
   flow is designed for the phone (majority of ad traffic) and scales up. */
.flow-sheet {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 540px;
  max-height: min(92vh, 760px);
  display: flex; flex-direction: column; overflow: hidden;
  position: relative; animation: rise 0.45s var(--ease-out);
}
/* Desktop: give the sheet more room so each step fits WITHOUT scrolling (there's
   plenty of screen). Wider + taller cap. The mobile bounded/scrolling behavior
   above still applies when a step genuinely exceeds the height. */
@media (min-width: 720px) and (min-height: 760px) {
  .flow-sheet { max-width: 600px; max-height: min(94vh, 880px); }
}
.flow-head { display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3); flex: none;
  padding: clamp(1.25rem, 4vw, 1.75rem) clamp(1.25rem, 4vw, 2rem) var(--sp-3); }
.flow-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 0 clamp(1.25rem, 4vw, 2rem) var(--sp-4);
  /* fade the top edge so scrolled content tucks under the header cleanly */
  scroll-padding-top: var(--sp-3); }
/* pinned footer — one shared nav, always visible at the bottom of the sheet */
.flow-foot { flex: none; display: flex; gap: var(--sp-3); align-items: center;
  padding: var(--sp-3) clamp(1.25rem, 4vw, 2rem) clamp(1.25rem, 4vw, 1.75rem);
  border-top: 1px solid var(--line);
  background: var(--bg-elev); }
.flow-foot .flow-primary { flex: 1; }
.flow-foot .btn-back { flex: 0 0 auto; padding-inline: 1.1rem; }
/* hide Back on the first step (declarative fallback that also covers the initial
   render before JS runs / if the JS toggle is cached). */
.flow-overlay:not([data-current]) .flow-foot .btn-back,
.flow-overlay[data-current="0"] .flow-foot .btn-back { visibility: hidden; }
.flow-foot .btn-back .chev-back { width: 18px; height: 18px; transform: rotate(90deg); }
.flow-close { background: var(--bg-sunk); border: 1px solid var(--line);
  width: 36px; height: 36px; border-radius: var(--r-full); display: grid;
  place-items: center; color: var(--ink-soft); }
.flow-close:hover { color: var(--ink); border-color: var(--ink-faint); }

/* progress */
.progress { display: flex; gap: 0.4rem; margin-bottom: 0.4rem; }
.progress .seg { flex: 1; height: 5px; border-radius: var(--r-full);
  background: var(--bg-sunk); overflow: hidden; }
.progress .seg i { display: block; height: 100%; width: 0;
  background: var(--accent); border-radius: var(--r-full);
  transition: width 0.5s var(--ease); }
.progress .seg.done i { width: 100%; }
.progress .seg.active i { width: 55%; }
.progress-label { font-size: 0.8rem; color: var(--ink-faint); font-weight: 500;
  margin-bottom: var(--sp-4); }

/* steps */
.step { display: none; animation: slidein 0.4s var(--ease-out); }
.step.active { display: block; }
.step h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); }
.step .step-sub { color: var(--ink-soft); margin-top: var(--sp-1);
  margin-bottom: var(--sp-4); font-size: 0.96rem; }
/* tighter vertical rhythm INSIDE the flow so steps fit without scroll — the
   flow's field spacing is denser than the page's marketing forms. */
.flow-body .field { margin-top: 0.85rem; }
.flow-body .textarea { min-height: 60px; }
.flow-body .step > .field:first-of-type { margin-top: 0.5rem; }

/* collapsed optional-notes field — no height until the user opts in */
.note-field { margin-top: var(--sp-3); }
/* plain inline text button so it flows as one natural, left-aligned line. The
   icon + "Add a note" are a nowrap unit so the '+' never orphans onto its own
   line; only the hint after it wraps if space is tight. */
.note-toggle { display: block; width: 100%; min-height: 0; background: none;
  border: none; padding: 0.5rem 0; color: var(--accent); font-weight: 600;
  font-size: 0.92rem; text-align: left; line-height: 1.5; }
.note-cta { white-space: nowrap; }
.note-toggle .note-plus { width: 15px; height: 15px; display: inline-block;
  vertical-align: -2px; margin-right: 0.35rem; }
.note-optional { color: var(--ink-faint); font-weight: 400; }
.note-reveal { display: none; }
.note-field.open .note-reveal { display: block; animation: slidein 0.25s var(--ease-out); }
.note-field.open .note-toggle { display: none; }
.note-label { display: block; font-weight: 500; font-size: 0.9rem;
  color: var(--ink-soft); margin-bottom: 0.4rem; }

/* choice cards (step 2) — card-only selection (no radio bullet). The selected
   state (accent border + tint + a check in the corner) carries the meaning, so
   it reads as a slick app/checkout, not a form. Min-height keeps rows even when
   one label wraps to two lines. */
.choices { display: grid; gap: 0.55rem; }
.choices.cols-2 { grid-template-columns: 1fr 1fr; }
.choice {
  position: relative; display: flex; align-items: center; justify-content: center;
  text-align: center; min-height: 52px; padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--bg); font-weight: 550; font-size: 0.95rem;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.08s;
  color: var(--ink); line-height: 1.25;
}
.choice:hover { border-color: var(--ink-faint); }
.choice:active { transform: scale(0.98); }
.choice.selected { border-color: var(--accent); background: var(--accent-soft);
  color: var(--ink); box-shadow: 0 0 0 2px var(--accent-glow); font-weight: 650; }
/* a small check badge in the top-right of the selected card */
.choice.selected::after {
  content: ""; position: absolute; top: 7px; right: 7px; width: 16px; height: 16px;
  border-radius: var(--r-full); background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='black'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='black'/%3E%3C/svg%3E") center/contain no-repeat;
}
.choice.selected::before {
  content: ""; position: absolute; top: 10px; right: 10px; width: 10px; height: 10px;
  z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}

.stepper { display: inline-flex; align-items: center; gap: 0; border: 1.5px solid
  var(--line-strong); border-radius: var(--r-md); overflow: hidden; }
.stepper button { width: 44px; height: 44px; background: var(--bg);
  color: var(--ink); font-size: 1.2rem; border: none; }
.stepper button:hover { background: var(--bg-sunk); }
.stepper .val { min-width: 48px; text-align: center; font-weight: 600;
  border-inline: 1.5px solid var(--line-strong); height: 44px; line-height: 44px; }

/* consent block */
.consent { margin-top: var(--sp-3); }
/* express opt-in FIRST — a real tappable card (above the fold), not fine print,
   so people actually see + consider it (express consent doesn't expire). */
.optin { display: flex; gap: 0.65rem; align-items: flex-start; cursor: pointer;
  padding: 0.8rem 0.9rem; border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md); background: var(--bg);
  transition: border-color 0.15s, background 0.15s; }
.optin:hover { border-color: var(--ink-faint); }
.optin:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.optin input { margin-top: 0.1rem; width: 20px; height: 20px; accent-color: var(--accent);
  flex: none; }
.optin span { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.4; }
/* implied-consent disclosure BELOW — quieter static legal text; fine if it's the
   thing that sits partly below the fold (read-and-pass-through, not interactive). */
.consent .disclosure { margin-top: 0.7rem; font-size: 0.8rem;
  color: var(--ink-faint); line-height: 1.5; padding: 0 0.2rem; }


/* --------------------------------------------------------------------------
   thanks page
   -------------------------------------------------------------------------- */
.thanks-wrap { min-height: 78vh; display: grid; place-items: center;
  text-align: center; }
.thanks-card { max-width: 560px; }
.thanks-check { width: 76px; height: 76px; margin: 0 auto var(--sp-4);
  border-radius: var(--r-full); background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; animation: pop 0.5s var(--ease-out); }
.thanks-check svg { width: 38px; height: 38px; }
.thanks-card h1 { font-size: clamp(2rem, 5vw, 3rem); }
.thanks-card p { color: var(--ink-soft); font-size: 1.1rem; margin-top: var(--sp-3); }
.thanks-contact { margin-top: var(--sp-5); padding-top: var(--sp-4);
  border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   reveal-on-load / scroll
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: none; } }
@keyframes slidein { from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(0.7); opacity: 0; }
  60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
