/* ============================================================================
 * Buildable — marketing landing page
 * Standalone static one-pager. NOT part of app/frontend. No build step.
 *
 * The visual world is INHERITED, not invented: every colour, material, radius,
 * motion curve and (app) type step below is lifted verbatim from the product's
 * design system at app/frontend/src/index.css so the page reads as the same
 * company. The four colour roles never borrow from each other (action = clay,
 * the one thing you click; verdict = four hues; status = risk only; health =
 * no hue). Depth comes from the layer ramp + hairline + shadow, never boxing.
 * Glass is the FLOAT layer only, in three named materials.
 *
 * The ONE deliberate extension: a marketing display type scale (--fs-display-*)
 * above the app's 8-step scale. The app caps at 36px because its largest text is
 * a dense data tile; a Persuade landing hero needs more. App-scale steps
 * (13/15/18/22px …) still govern body, labels and chips. Documented in README.
 * ==========================================================================*/

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-var.woff2') format('woff2');
}

:root {
  --font-sans: 'Inter Variable', Inter, system-ui, -apple-system, sans-serif;

  /* ── App type scale (whole px, ratio ≈1.2) ─────────────────────────────── */
  --text-micro: 11px;
  --text-small: 12px;
  --text-body: 13px;
  --text-emph: 15px;
  --text-head: 18px;
  --text-sub: 22px;
  --text-title: 28px;
  --text-hero: 36px;

  /* ── Marketing display scale (fluid) — the documented extension ─────────── */
  --fs-display: clamp(2.4rem, 1.4rem + 4.4vw, 4.5rem);
  --fs-display-sm: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  --fs-lede: clamp(1.05rem, 0.98rem + 0.5vw, 1.3rem);

  /* ── Motion — Emil Kowalski's curves; CSS built-ins are too weak ───────── */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-press: 160ms;
  --dur-menu: 200ms;
  --dur-panel: 260ms;
  --dur-reveal: 620ms; /* scroll reveal = explanatory motion, may exceed 300ms */

  /* ── Two materials, deliberately different (Jacob, Aug-4) ───────────────────
     The FIELD is deep brand green (see .app-surface). The CARDS/TILES are
     NEUTRAL charcoal — near-black graphite, the original app material. Neutral
     panels floating on a deep-green ground reads far more sophisticated than an
     all-green page; green is the room, charcoal is the furniture. */
  --color-layer-0: #06090a;   /* deepest ground (behind the green field) */
  --color-layer-1: #101617;   /* card / tile surface — neutral charcoal  */
  --color-layer-2: #161e1f;   /* nested / hover                          */
  --color-layer-3: #1e2728;   /* nested twice, rare                      */

  /* ── Role 1 · ACTION — clay, brand-board values (used sparingly) ──────────
     Clay #C4522A / hover→Dark Clay #A14020. White ink measures 4.54:1 on the
     primary clay (AA), and clay darkening on hover keeps white legible. */
  --color-action: #c4522a;
  --color-action-hover: #a14020;
  --color-action-deep: #8a3418;
  --color-on-action: #ffffff;

  /* ── Role 2 · VERDICT — four distinct hues ─────────────────────────────── */
  --color-verdict-strong: #3ec39a;
  --color-verdict-investigate: #6aa2f0;
  --color-verdict-lead: #c47ab8;
  --color-verdict-noise: #757d78;

  /* ── Role 3 · STATUS — reserved, risk only ─────────────────────────────── */
  --color-warning: #b28a1f;
  --color-critical: #d64b50;

  /* surfaces — neutral charcoal cards/tiles (the green lives in .app-surface) */
  --color-canvas: #06090a;
  --color-panel: #101617;
  --color-panel-2: #131b1c;

  /* borders — neutral hairlines */
  --color-edge: #273133;
  --color-edge-strong: #313d3f;
  --color-edge-soft: rgb(220 230 226 / 0.1);

  /* text */
  --color-cream: #f5f4ef;
  --color-mist: #a7b0ab;
  --color-faint: #899590;
  --color-dim: #68736f;

  /* elevation */
  --shadow-panel: 0 1px 0 0 rgb(255 255 255 / 0.03) inset, 0 24px 70px rgb(0 0 0 / 0.28);
  --shadow-raised: 0 1px 0 0 rgb(255 255 255 / 0.04) inset, 0 24px 80px rgb(0 0 0 / 0.42);

  /* radii — 6px / 12px / pill only */
  --radius-md: 6px;
  --radius-xl: 12px;
  --radius-2xl: 18px; /* large marketing panes — a doubled step, not a new scale */

  --maxw: 1120px;
  color-scheme: dark;
}

/* ── LIGHT MODE — OPT-IN ONLY; dark is the unconditional default ─────────────
   The page always loads dark (the brand's deep-green world) and does NOT follow
   the OS setting. Light mode activates only when <html data-theme="light"> is
   set — the app's own "dark is selected, not an automatic flip" pattern — so a
   future toggle can still reach it while dark stays the default. ──────────── */
:root[data-theme='light'] {
    color-scheme: light;
    --color-layer-0: #eef2f0;
    --color-layer-1: #f7faf8;
    --color-layer-2: #e6ece9;
    --color-layer-3: #dfe6e2;
    --color-canvas: #eaeeec;
    --color-panel: #f7faf8;
    --color-panel-2: #e6ece9;

    --color-edge: rgb(28 48 42 / 0.13);
    --color-edge-strong: rgb(28 48 42 / 0.2);
    --color-edge-soft: rgb(28 48 42 / 0.08);

    --color-cream: #16211d;
    --color-mist: #45524c;
    --color-faint: #66726c;
    --color-dim: #8b958f;

    --color-action: #b24314;
    --color-action-hover: #983508;
    --color-action-deep: #7d2c05;
    --color-on-action: #fff;
    --color-verdict-strong: #007d55;
    --color-verdict-investigate: #3268b5;
    --color-verdict-lead: #844592;
    --color-verdict-noise: #6d736f;
    --color-warning: #7c5e07;
    --color-critical: #ac3037;

    --shadow-panel: 0 1px 0 0 rgb(255 255 255 / 0.7) inset, 0 12px 30px rgb(28 48 42 / 0.1);
    --shadow-raised: 0 1px 0 0 rgb(255 255 255 / 0.8) inset, 0 18px 44px rgb(28 48 42 / 0.16);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* focus — clay is the action colour; keep the ring visible and calm */
:focus-visible {
  outline: 2px solid rgb(196 82 42 / 0.7);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}
::selection { background: rgb(196 82 42 / 0.32); color: var(--color-cream); }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-emph);
  line-height: 1.6;
  color: var(--color-cream);
  background: var(--color-canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv02', 'cv03', 'cv11';
  letter-spacing: -0.006em;
  overflow-x: hidden;
}

/* App-surface vignette + fixed topographic backdrop */
.app-surface {
  position: fixed;
  inset: 0;
  z-index: -2;
  /* deep brand-green field — sophisticated, not saturated: a near-black green
     ground with a restrained, desaturated lift at the top so it isn't flat */
  background:
    radial-gradient(125% 95% at 50% -6%, #132321, transparent 58%),
    #0a1719;
}
.topo-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('assets/topo-contours.svg') center top / cover no-repeat;
  opacity: 0.5;
  pointer-events: none;
}
:root[data-theme='light'] .app-surface {
  background: radial-gradient(125% 95% at 50% -6%, #f2f6f4, transparent 62%), #eaeeec;
}
:root[data-theme='light'] .topo-backdrop { filter: invert(1) hue-rotate(180deg); opacity: 0.7; }

/* ── Glass materials — three named jobs ─────────────────────────────────── */
.glass {
  background:
    radial-gradient(130% 100% at 50% -30%, rgb(255 255 255 / 0.05), transparent 55%),
    linear-gradient(160deg, rgb(29 36 37 / 0.9), rgb(19 24 25 / 0.9));
  backdrop-filter: blur(20px) saturate(118%);
  -webkit-backdrop-filter: blur(20px) saturate(118%);
  border: 1px solid rgb(255 255 255 / 0.1);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1), 0 1px 2px rgb(0 0 0 / 0.4), 0 20px 45px rgb(0 0 0 / 0.5);
}
.glass-sheer {
  background:
    radial-gradient(130% 100% at 50% -30%, rgb(255 255 255 / 0.045), transparent 55%),
    linear-gradient(160deg, rgb(30 38 40 / 0.14), rgb(14 20 21 / 0.08));
  backdrop-filter: blur(9px) saturate(112%);
  -webkit-backdrop-filter: blur(9px) saturate(112%);
  border: 1px solid rgb(255 255 255 / 0.09);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.09), 0 1px 2px rgb(0 0 0 / 0.3), 0 20px 50px rgb(0 0 0 / 0.4);
}
.glass-atmo {
  /* neutral charcoal card with the brand's faint green whisper in one corner */
  background-image:
    radial-gradient(circle at 85% 10%, rgb(36 77 72 / 0.08), transparent 42%),
    linear-gradient(135deg, rgb(22 29 30 / 0.9), rgb(12 16 17 / 0.82));
  backdrop-filter: blur(20px) saturate(118%);
  -webkit-backdrop-filter: blur(20px) saturate(118%);
  border: 1px solid rgb(255 255 255 / 0.1);
  box-shadow: var(--shadow-panel);
}
:root[data-theme='light'] .glass {
  background:
    radial-gradient(130% 100% at 50% -30%, rgb(255 255 255 / 0.85), transparent 55%),
    linear-gradient(160deg, rgb(255 255 255 / 0.86), rgb(246 249 247 / 0.8));
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgb(28 48 42 / 0.1);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), 0 1px 2px rgb(28 48 42 / 0.06), 0 14px 40px rgb(28 48 42 / 0.1);
}
:root[data-theme='light'] .glass-sheer {
  background:
    radial-gradient(130% 100% at 50% -30%, rgb(255 255 255 / 0.55), transparent 55%),
    linear-gradient(160deg, rgb(255 255 255 / 0.36), rgb(245 249 247 / 0.2));
  backdrop-filter: blur(9px) saturate(150%);
  -webkit-backdrop-filter: blur(9px) saturate(150%);
  border: 1px solid rgb(28 48 42 / 0.08);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.7), 0 1px 2px rgb(28 48 42 / 0.05), 0 16px 44px rgb(28 48 42 / 0.1);
}
:root[data-theme='light'] .glass-atmo {
  background-image:
    radial-gradient(circle at 85% 10%, rgb(47 133 90 / 0.05), transparent 40%),
    linear-gradient(135deg, rgb(255 255 255 / 0.85), rgb(244 248 246 / 0.78));
  border: 1px solid rgb(28 48 42 / 0.1);
}

/* ── Layout primitives ──────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
section { position: relative; }
.section-pad { padding-block: clamp(56px, 9vw, 120px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-faint);
}
.eyebrow::before {
  content: ''; width: 18px; height: 1px; background: var(--color-action); opacity: 0.7;
}

h1, h2, h3 { font-weight: 600; margin: 0; }
.display {
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.028em;
}
.h2 {
  font-size: var(--fs-display-sm);
  line-height: 1.08;
  letter-spacing: -0.022em;
}
.h3 { font-size: var(--text-head); line-height: 1.25; letter-spacing: -0.01em; }
.lede { font-size: var(--fs-lede); color: var(--color-mist); line-height: 1.55; }
.muted { color: var(--color-mist); }
.faint { color: var(--color-faint); }
.tnum { font-variant-numeric: tabular-nums; }
.count-up { display: inline-block; font-variant-numeric: tabular-nums; will-change: contents, transform, filter; }
.count-up.is-counting { filter: brightness(1.12); }
.count-up.count-complete { animation: count-settle 320ms var(--ease-out) both; }
@keyframes count-settle {
  0% { transform: translateY(2px); filter: brightness(1.18); }
  100% { transform: translateY(0); filter: brightness(1); }
}
.clay { color: var(--color-action); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-size: var(--text-emph); font-weight: 500;
  padding: 13px 22px; border-radius: var(--radius-md);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform var(--dur-press) var(--ease-out),
              background-color var(--dur-menu) var(--ease-out),
              border-color var(--dur-menu) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--color-action); color: var(--color-on-action);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.12) inset, 0 8px 24px rgb(196 82 42 / 0.3);
}
.btn-ghost {
  background: transparent; color: var(--color-cream);
  border-color: var(--color-edge-strong);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--color-action-hover); }
  .btn-ghost:hover { border-color: var(--color-action); color: var(--color-action-hover); }
}
.btn svg { width: 15px; height: 15px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-menu) var(--ease-out);
}
.site-header[data-scrolled='true'] { border-bottom-color: var(--color-edge); }
.site-header .glass-sheer { border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-lockup img { height: 24px; width: auto; display: block; }
/* Wordmark as live text (not the cream PNG) so it recolours in light mode —
   the same lockup pattern the app ships (icon + text-cream "Buildable"). */
.wordmark {
  font-size: var(--text-sub); font-weight: 600; letter-spacing: -0.022em;
  color: var(--color-cream); line-height: 1;
}
.footer-brand.brand-lockup img { height: 22px; }
.footer-brand .wordmark { font-size: var(--text-head); }
/* header menu — Login / Contact (+ the Request CTA on the landing page) */
.header-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: var(--text-small); font-weight: 500; color: var(--color-mist);
  text-decoration: none; white-space: nowrap;
  padding: 8px 10px; border-radius: var(--radius-md);
  transition: color var(--dur-menu) var(--ease-out), background-color var(--dur-menu) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { color: var(--color-cream); background: var(--color-layer-2); }
}
.header-nav .header-cta { margin-left: 6px; }
.header-cta { display: none; }
@media (min-width: 620px) { .header-cta { display: inline-flex; } }
.mobile-menu-toggle, .mobile-menu { display: none; }
@media (max-width: 619px) {
  .header-nav { display: none; }
  .mobile-menu-toggle {
    width: 42px; height: 42px; display: grid; place-content: center; gap: 5px;
    border: 1px solid var(--color-edge); border-radius: 11px; color: var(--color-cream);
    background: rgb(255 255 255 / .025); cursor: pointer;
  }
  .mobile-menu-toggle span { width: 20px; height: 1.5px; display: block; border-radius: 99px; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .mobile-menu { padding-top: 5px; padding-bottom: 16px; border-top: 1px solid var(--color-edge-soft); }
  .mobile-menu:not([hidden]) { display: grid; }
  .mobile-menu a { padding: 14px 4px; border-bottom: 1px solid var(--color-edge-soft); color: var(--color-mist); font-size: var(--text-emph); font-weight: 500; text-decoration: none; }
  .mobile-menu a:active { color: var(--color-cream); }
  .mobile-menu .mobile-menu-cta { margin-top: 12px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; border: 0; border-radius: 10px; color: var(--color-on-action); background: var(--color-action); }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(40px, 7vw, 84px); padding-bottom: clamp(20px, 4vw, 40px); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 56px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { margin-top: 18px; max-width: 15ch; }
.hero .lede { margin-top: 20px; max-width: 46ch; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 16px; font-size: var(--text-small); color: var(--color-faint); }

.section-intro { max-width: 720px; }
.section-intro .h2 { margin-top: 16px; max-width: 22ch; }
.section-intro .lede { margin-top: 16px; max-width: 58ch; }

/* Product brief: a tangible, honest representation of the delivered output. */
.product-output { padding-top: clamp(54px, 7vw, 88px); }
.brief-shell { margin-top: 38px; border-radius: var(--radius-2xl); overflow: hidden; }
.brief-verdict { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: clamp(22px, 3vw, 32px); border-bottom: 1px solid var(--color-edge); background: linear-gradient(110deg, rgb(255 255 255 / .025), transparent); }
.brief-kicker { color: var(--color-faint); font-size: var(--text-micro); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.brief-verdict h3 { margin-top: 10px; color: var(--color-cream); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.2; }
.brief-verdict p { margin-top: 7px; color: var(--color-mist); font-size: var(--text-body); }
.brief-score { min-width: 160px; display: grid; justify-items: end; gap: 7px; text-align: right; }
.brief-score b { color: var(--color-verdict-strong); font-size: var(--text-emph); }
.brief-score small { color: var(--color-faint); font-size: var(--text-micro); }
.brief-body { display: grid; }
@media (min-width: 900px) { .brief-body { grid-template-columns: 1.35fr .65fr; } }
.brief-map-panel { min-width: 0; border-bottom: 1px solid var(--color-edge); display: flex; flex-direction: column; }
@media (min-width: 900px) { .brief-map-panel { border-bottom: 0; border-right: 1px solid var(--color-edge); } }
.brief-map { min-height: clamp(340px, 44vw, 510px); position: relative; overflow: hidden; background: #070c0d; }
.parcel-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.neighbor-lines path { fill: rgb(19 27 28 / .6); stroke: #3b4749; stroke-width: 1.15; }
.neighbor-houses path { fill: #333b3c; stroke: #505b5c; stroke-width: 1; }
.subject-outline { fill: none; stroke: rgb(230 225 215 / .78); stroke-width: 3; }
.existing-lot { fill: rgb(43 159 143 / .22); stroke: #46bba8; stroke-width: 2.5; }
.new-lot { fill: rgb(222 165 79 / .24); stroke: #e1aa58; stroke-width: 2.5; }
.division-line { fill: none; stroke: #f3ede2; stroke-width: 2.5; stroke-dasharray: 9 7; }
.subject-buildings path { stroke-width: 2; }
.existing-house { fill: #bf5a34; stroke: #e17a51; }
.proposed-house { fill: #b9c2be; stroke: #f0ebe1; }
.setback-lines path { fill: none; stroke: rgb(255 255 255 / .23); stroke-width: 1.25; stroke-dasharray: 4 7; }
.road-verge { fill: #182122; stroke: #445153; stroke-width: 2; }
.road { fill: #293638; stroke: #536163; stroke-width: 2; }
.road-center { fill: none; stroke: #7d898a; stroke-width: 2; stroke-dasharray: 18 22; opacity: .65; }
.road-label { fill: #9aa4a4; font-size: 12px; letter-spacing: 2px; }
.map-label text { fill: #f4f1e9; font-size: 11px; font-weight: 700; text-anchor: middle; paint-order: stroke; stroke: #071011; stroke-width: 4px; stroke-linejoin: round; }
.map-label text + text { font-size: 10px; font-weight: 600; fill: #d3d5d0; }
.house-label { fill: #fff8ed; font-size: 9px; font-weight: 700; text-anchor: middle; }
.house-label.proposed { fill: #182021; font-size: 6.5px; letter-spacing: .35px; text-shadow: none; }
.frontage-labels text { fill: #c4cbc7; font-size: 8px; font-weight: 600; text-anchor: middle; paint-order: stroke; stroke: #071011; stroke-width: 3px; }
.map-legend { min-height: 54px; padding: 13px 16px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; background: var(--color-layer-1); color: var(--color-mist); font-size: var(--text-micro); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.map-legend .legend-house { background: #42baa8; }.map-legend .legend-new { background: #e1aa58; }.map-legend .legend-line { width: 18px; height: 0; border-radius: 0; border-top: 1px dashed var(--color-cream); }
.map-legend em { margin-left: auto; color: var(--color-faint); font-style: normal; }
.brief-content { padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; }
.brief-economics { padding-bottom: 22px; border-bottom: 1px solid var(--color-edge); }
.brief-economics span, .brief-metrics span, .brief-proof-row span, .brief-next span { display: block; color: var(--color-faint); font-size: var(--text-micro); }
.brief-economics strong { display: block; margin-top: 6px; color: var(--color-cream); font-size: var(--fs-display-sm); line-height: 1; }
.brief-economics p { margin-top: 7px; color: var(--color-mist); font-size: var(--text-small); }
.brief-metrics { display: grid; grid-template-rows: repeat(4, minmax(86px, 1fr)); flex: 1; }
.brief-metrics div { padding: 18px 0; border-bottom: 1px solid var(--color-edge); display: flex; flex-direction: column; justify-content: center; }
.brief-metrics b { display: block; margin-top: 4px; color: var(--color-cream); font-size: var(--text-body); font-weight: 600; }
.brief-metrics small { display: block; margin-top: 4px; color: var(--color-verdict-strong); font-size: var(--text-micro); }
.brief-metrics .needs-check small { color: var(--color-warning); }
.brief-next { margin-top: 18px; padding: 15px; border-radius: var(--radius-lg); border: 1px solid rgb(196 82 42 / .34); background: rgb(196 82 42 / .1); }
.brief-next span { color: var(--color-action-hover); font-weight: 600; }
.brief-next b { display: block; margin-top: 6px; color: var(--color-mist); font-size: var(--text-body); line-height: 1.45; }
.brief-proof-row { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--color-edge); margin-top: auto; margin-bottom: clamp(22px, 3vw, 32px); }
@media (min-width: 620px) { .brief-proof-row { grid-template-columns: repeat(3, 1fr); } }
.brief-proof-row > div { padding: 18px; border-right: 1px solid var(--color-edge); border-bottom: 1px solid var(--color-edge); }
.brief-proof-row b { display: block; margin-top: 5px; color: var(--color-cream); font-size: var(--text-body); }
.brief-proof-row small { display: block; margin-top: 4px; color: var(--color-faint); font-size: var(--text-micro); }
.sample-note { margin: 0; padding: 13px 18px; color: var(--color-faint); font-size: var(--text-micro); line-height: 1.55; }
@media (max-width: 620px) {
  .brief-verdict { align-items: flex-start; flex-direction: column; }
  .brief-score { justify-items: start; text-align: left; }
  .map-legend em { width: 100%; margin-left: 0; }
  .brief-map { min-height: 390px; }
  .parcel-map { transform: translateY(28px) scale(1.3); transform-origin: 59% 48%; }
}

/* Interactive builder-economics preview. */
.economics-demo { margin-top: clamp(28px, 5vw, 54px); border-radius: var(--radius-2xl); overflow: hidden; }
@media (max-width: 899px) { .economics-demo { display: none; } }
.economics-demo-head { padding: clamp(24px, 3vw, 34px); display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; border-bottom: 1px solid var(--color-edge); background: linear-gradient(110deg, rgb(255 255 255 / .025), transparent); }
.economics-demo-head h3 { margin-top: 12px; color: var(--color-cream); font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.2rem); line-height: 1.12; letter-spacing: -.025em; }
.economics-demo-head p { max-width: 62ch; margin-top: 10px; color: var(--color-mist); font-size: var(--text-emph); }
.demo-live { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgb(62 195 154 / .25); border-radius: 999px; color: var(--color-verdict-strong); background: rgb(62 195 154 / .08); font-size: var(--text-micro); font-weight: 600; }
.demo-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgb(62 195 154 / .08); }
.play-rankings { padding: 12px clamp(18px, 3vw, 28px); display: grid; gap: 6px; border-bottom: 1px solid var(--color-edge); background: rgb(4 8 9 / .25); }
.play-row { width: 100%; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 13px; border: 1px solid transparent; border-radius: 10px; color: var(--color-faint); background: transparent; font: inherit; font-size: var(--text-small); text-align: left; cursor: pointer; transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease; }
.play-row:hover { border-color: var(--color-edge-strong); background: rgb(255 255 255 / .025); transform: translateX(2px); }
.play-row:focus-visible { outline: 2px solid var(--color-action-hover); outline-offset: 2px; }
.play-row b { min-width: 0; color: var(--color-mist); font-weight: 500; }
.play-row strong { color: var(--color-faint); font-variant-numeric: tabular-nums; }
.play-row em { min-width: 68px; text-align: right; color: var(--color-faint); font-style: normal; font-size: var(--text-micro); }
.play-row.is-leading { color: var(--color-cream); border-color: rgb(62 195 154 / .24); background: rgb(62 195 154 / .055); }
.play-row.is-leading b { color: var(--color-cream); }.play-row.is-leading strong, .play-row.is-leading em { color: var(--color-verdict-strong); }
.play-row.is-selected { border-color: rgb(196 82 42 / .58); background: linear-gradient(90deg, rgb(196 82 42 / .14), rgb(196 82 42 / .035)); box-shadow: inset 3px 0 0 var(--color-action); }
.play-row.is-selected em { color: var(--color-action-hover); }
.economics-demo-body { display: grid; }
@media (min-width: 900px) { .economics-demo-body { grid-template-columns: 1.08fr .92fr; } }
.economics-controls { padding: clamp(24px, 3vw, 34px); display: grid; gap: 28px; border-bottom: 1px solid var(--color-edge); }
@media (min-width: 900px) { .economics-controls { border-right: 1px solid var(--color-edge); border-bottom: 0; } }
.control-heading { display: flex; justify-content: space-between; align-items: center; }
.control-heading span { color: var(--color-cream); font-size: var(--text-emph); font-weight: 600; }
.control-heading button { padding: 6px 9px; border: 1px solid var(--color-edge); border-radius: 8px; color: var(--color-faint); background: transparent; font: inherit; font-size: var(--text-micro); cursor: pointer; }
.control-heading button:hover { color: var(--color-cream); border-color: var(--color-edge-strong); }
.economics-control { display: grid; gap: 12px; }
.economics-control > span { display: flex; justify-content: space-between; gap: 16px; color: var(--color-faint); font-size: var(--text-small); }
.economics-control output { color: var(--color-cream); font-weight: 600; font-variant-numeric: tabular-nums; }
.economics-control input[type="range"] { --range-pct: 50%; appearance: none; width: 100%; height: 6px; border-radius: 999px; outline: none; cursor: pointer; background: linear-gradient(90deg, var(--color-action) 0 var(--range-pct), #485153 var(--range-pct) 100%); }
.economics-control input[type="range"]::-webkit-slider-thumb { appearance: none; width: 19px; height: 19px; border: 3px solid #111718; border-radius: 50%; background: var(--color-action-hover); box-shadow: 0 0 0 1px rgb(196 82 42 / .45), 0 3px 12px rgb(0 0 0 / .45); }
.economics-control input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border: 3px solid #111718; border-radius: 50%; background: var(--color-action-hover); box-shadow: 0 0 0 1px rgb(196 82 42 / .45), 0 3px 12px rgb(0 0 0 / .45); }
.economics-demo:not(.has-interacted) .economics-control input[type="range"]::-webkit-slider-thumb { animation: slider-invite 1.45s ease-in-out infinite; }
.economics-demo:not(.has-interacted) .economics-control input[type="range"]::-moz-range-thumb { animation: slider-invite 1.45s ease-in-out infinite; }
.economics-demo:not(.has-interacted) .economics-control:nth-child(3) input[type="range"]::-webkit-slider-thumb { animation-delay: .16s; }
.economics-demo:not(.has-interacted) .economics-control:nth-child(4) input[type="range"]::-webkit-slider-thumb { animation-delay: .32s; }
.economics-demo:not(.has-interacted) .economics-control:nth-child(3) input[type="range"]::-moz-range-thumb { animation-delay: .16s; }
.economics-demo:not(.has-interacted) .economics-control:nth-child(4) input[type="range"]::-moz-range-thumb { animation-delay: .32s; }
@keyframes slider-invite { 0%, 100% { box-shadow: 0 0 0 1px rgb(196 82 42 / .42), 0 3px 12px rgb(0 0 0 / .45); } 50% { box-shadow: 0 0 0 7px rgb(196 82 42 / .15), 0 0 24px rgb(232 109 65 / .58), 0 3px 12px rgb(0 0 0 / .45); } }
.economics-control input[type="range"]:focus-visible { box-shadow: 0 0 0 3px rgb(196 82 42 / .18); }
.economics-control small { display: flex; justify-content: space-between; gap: 12px; color: var(--color-faint); font-size: var(--text-micro); }
.economics-control small em { text-align: center; font-style: normal; }
.economics-results { padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; background: linear-gradient(145deg, rgb(62 195 154 / .045), transparent 54%); }
.result-label { color: var(--color-faint); font-size: var(--text-micro); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.economics-results h4 { max-width: 23ch; margin-top: 8px; color: var(--color-cream); font-size: var(--text-sub); line-height: 1.2; }
.result-primary { margin-top: 28px; padding: 20px 0 23px; border-block: 1px solid var(--color-edge); }
.result-primary span { color: var(--color-faint); font-size: var(--text-small); }
.result-primary strong { display: block; margin-top: 6px; color: var(--color-cream); font-size: clamp(2.5rem, 2rem + 2vw, 4.25rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.result-primary p { margin-top: 9px; color: var(--color-verdict-strong); font-size: var(--text-small); font-weight: 600; }
.result-math { display: grid; gap: 0; margin-top: 10px; }
.result-math > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--color-edge-soft); }
.result-math dt { color: var(--color-faint); font-size: var(--text-small); }.result-math dd { color: var(--color-cream); font-size: var(--text-small); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.result-note { margin-top: auto; padding-top: 18px; color: var(--color-faint); font-size: var(--text-micro); line-height: 1.55; }
@media (max-width: 620px) { .economics-demo-head { flex-direction: column; } .play-row { grid-template-columns: 22px minmax(0, 1fr) auto; } .play-row em { display: none; } .result-math > div { align-items: flex-start; } }

.equation {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 26px; font-size: var(--text-small); font-weight: 500;
  color: var(--color-mist);
}
.equation b { color: var(--color-cream); font-weight: 600; }
.equation .op { color: var(--color-action); font-weight: 600; }

/* ── Scale strip (honest numbers) ───────────────────────────────────────── */
.scalebar { border-radius: var(--radius-2xl); padding: 6px; }
.scalebar-inner { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 620px) { .scalebar-inner { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 18px 16px; text-align: left; position: relative; }
.stat + .stat::before {
  content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: var(--color-edge);
}
.stat .num { font-size: var(--text-title); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.stat .lbl { margin-top: 6px; font-size: var(--text-micro); color: var(--color-faint); line-height: 1.35; }

/* ── Funnel (signature) ─────────────────────────────────────────────────── */
.funnel { border-radius: var(--radius-2xl); overflow: hidden; }
.funnel-head { padding: clamp(22px, 3vw, 34px); border-bottom: 1px solid var(--color-edge); }
.funnel-stages { display: grid; }
.stage {
  padding: 16px clamp(20px, 3vw, 34px) 20px;
  border-bottom: 1px solid var(--color-edge-soft);
}
.stage:last-child { border-bottom: 0; }
.stage-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.stage-name { font-size: var(--text-emph); font-weight: 500; }
.stage-sub { font-size: var(--text-small); color: var(--color-faint); margin-top: 2px; }
.stage-count { font-size: var(--text-emph); font-weight: 600; letter-spacing: -0.01em; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; flex: none; }
.stage-count small { display: block; font-size: var(--text-micro); font-weight: 400; color: var(--color-faint); letter-spacing: 0; }
/* The bar's WIDTH is the survivor share — stacked, they staircase down: the
   subtraction is the whole point, so it has to be the picture. */
.stage-bar-track {
  position: relative; height: 10px; margin-top: 12px;
  border-radius: 999px; background: var(--color-layer-2); overflow: hidden;
}
.stage-bar-fill {
  height: 100%; width: var(--w, 100%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-action-deep), var(--color-action));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-reveal) var(--ease-out);
}
.stage.final .stage-bar-fill {
  background: linear-gradient(90deg, color-mix(in oklch, var(--color-verdict-strong) 55%, black), var(--color-verdict-strong));
}
.reveal-in .stage-bar-fill { transform: scaleX(1); }
/* cascade the narrowing top-to-bottom */
.reveal-in .stage:nth-child(2) .stage-bar-fill { transition-delay: 90ms; }
.reveal-in .stage:nth-child(3) .stage-bar-fill { transition-delay: 180ms; }
.reveal-in .stage:nth-child(4) .stage-bar-fill { transition-delay: 270ms; }
.funnel-foot {
  padding: clamp(20px, 3vw, 30px); display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: baseline;
  background: linear-gradient(180deg, transparent, rgb(196 82 42 / 0.06));
  border-top: 1px solid var(--color-edge);
}
.funnel-foot .big { font-size: var(--text-sub); font-weight: 600; letter-spacing: -0.02em; }

/* ── Lenses ─────────────────────────────────────────────────────────────── */
.lens-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 40px; }
@media (min-width: 700px) { .lens-grid { grid-template-columns: repeat(2, 1fr); } }
.lens { border-radius: var(--radius-xl); padding: clamp(22px, 2.4vw, 30px); }
.lens-num { font-size: var(--text-micro); font-weight: 600; letter-spacing: 0.1em; color: var(--color-action); }
.lens h3 { margin-top: 12px; }
.lens p { margin: 10px 0 0; color: var(--color-mist); font-size: var(--text-emph); }
.lens .cite {
  margin-top: 14px; font-size: var(--text-micro); color: var(--color-faint);
  display: flex; align-items: center; gap: 7px;
}
.lens .cite::before { content: ''; width: 5px; height: 5px; border-radius: 999px; background: var(--color-verdict-strong); flex: none; }

/* ── Proof / dossier card ───────────────────────────────────────────────── */
.proof-grid { display: grid; gap: clamp(28px, 4vw, 48px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 940px) { .proof-grid { grid-template-columns: 0.92fr 1.08fr; } }

.dossier { border-radius: var(--radius-2xl); overflow: hidden; }
.dossier-top { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--color-edge); }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--text-micro); font-weight: 600; letter-spacing: 0.02em;
  padding: 5px 10px; border-radius: 999px;
}
.chip .dot { width: 7px; height: 7px; border-radius: 999px; flex: none; }
.chip-strong { color: var(--color-verdict-strong); background: rgb(62 195 154 / 0.1); border: 1px solid rgb(62 195 154 / 0.28); }
.chip-strong .dot { background: var(--color-verdict-strong); }
.dossier-addr { padding: 20px; }
.dossier-addr .a1 { font-size: var(--text-head); font-weight: 600; letter-spacing: -0.01em; }
.dossier-addr .a2 { font-size: var(--text-small); color: var(--color-faint); margin-top: 3px; }
.dossier-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--color-edge); border-block: 1px solid var(--color-edge); }
.dcell { background: var(--color-panel); padding: 16px 20px; }
.dcell .k { font-size: var(--text-micro); color: var(--color-faint); }
.dcell .v { font-size: var(--text-sub); font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.dcell .v.spread { color: var(--color-verdict-strong); }
.dossier-read { padding: 18px 20px; font-size: var(--text-emph); color: var(--color-mist); }
.dossier-read b { color: var(--color-cream); font-weight: 600; }
.dossier-verify {
  margin: 0 20px 20px; padding: 12px 14px; border-radius: var(--radius-md);
  background: rgb(178 138 31 / 0.08); border: 1px solid rgb(178 138 31 / 0.25);
  font-size: var(--text-small); color: var(--color-mist);
  display: flex; gap: 9px; align-items: flex-start;
}
.dossier-verify svg { width: 15px; height: 15px; color: var(--color-warning); flex: none; margin-top: 1px; }
.dossier-verify b { color: var(--color-cream); font-weight: 600; }

.casebox {
  margin-top: 22px; padding: 16px 18px; border-radius: var(--radius-md);
  background: var(--color-layer-1); border: 1px solid var(--color-edge);
  font-size: var(--text-small); color: var(--color-mist);
}
.casebox .caselabel {
  display: block; margin-bottom: 8px;
  font-size: var(--text-micro); font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--color-faint);
}

/* Recommendation payload — what every surfaced call carries. */
.payload { margin-top: 26px; }
.payload .plabel {
  display: block; margin-bottom: 12px;
  font-size: var(--text-micro); font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--color-faint);
}
.payload ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.payload li {
  display: flex; gap: 11px; align-items: baseline;
  font-size: var(--text-emph); color: var(--color-mist);
}
.payload li::before {
  content: ''; flex: none; align-self: center;
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--color-action); box-shadow: 0 0 0 3px rgb(196 82 42 / 0.16);
}
.payload li b { color: var(--color-cream); font-weight: 600; }

/* ── Performance band ───────────────────────────────────────────────────── */
.perf { border-radius: var(--radius-2xl); padding: clamp(26px, 4vw, 48px); }
.perf-stats { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: 30px; }
@media (min-width: 700px) { .perf-stats { grid-template-columns: repeat(3, 1fr); } }
.perf-stat .n { font-size: var(--fs-display-sm); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--color-cream); }
.perf-stat .c { margin-top: 10px; font-size: var(--text-small); color: var(--color-mist); max-width: 30ch; }
.perf-foot { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--color-edge); font-size: var(--text-small); color: var(--color-faint); max-width: 76ch; }

/* ── Territory ──────────────────────────────────────────────────────────── */
.terr-grid { display: grid; gap: clamp(26px, 4vw, 44px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .terr-grid { grid-template-columns: 1fr 1fr; } }
.locality-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.locality {
  font-size: var(--text-small); color: var(--color-mist);
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--color-edge); background: var(--color-layer-1);
}
.locality[data-anchor='true'] { color: var(--color-cream); border-color: var(--color-action); }
.territory-status { position: relative; overflow: hidden; background-image: linear-gradient(140deg, rgb(17 27 28 / .86), rgb(8 15 16 / .76)); }
.territory-status::before { content: ''; position: absolute; inset: 0; background: url('assets/topo-contours.svg') 58% 46% / 145% auto no-repeat; opacity: .9; pointer-events: none; }
.territory-status::after { content: ''; position: absolute; width: 240px; height: 240px; right: -90px; top: -110px; border-radius: 50%; background: rgb(196 82 42 / .07); filter: blur(30px); pointer-events: none; }
.territory-status > * { position: relative; z-index: 1; }

/* ── Honesty ────────────────────────────────────────────────────────────── */
.honesty-list { display: grid; gap: 14px; margin-top: 28px; }
.honesty-item { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.honesty-item svg { width: 20px; height: 20px; color: var(--color-verdict-strong); margin-top: 2px; flex: none; }
.honesty-item p { margin: 0; color: var(--color-mist); font-size: var(--text-emph); }
.honesty-item b { color: var(--color-cream); font-weight: 600; }

/* Deliverables, protections, founder, FAQ. */
.offer-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 38px; }
@media (min-width: 700px) { .offer-grid { grid-template-columns: 1fr 1fr; } }
.offer-card { border-radius: var(--radius-xl); padding: clamp(22px, 3vw, 30px); }
.offer-card > span { color: var(--color-action); font-size: var(--text-micro); font-weight: 700; letter-spacing: .1em; }
.offer-card h3 { margin-top: 12px; font-size: var(--text-head); }
.offer-card p { margin-top: 9px; color: var(--color-mist); font-size: var(--text-emph); }
.terms-band { display: grid; gap: clamp(24px, 4vw, 38px); margin-top: 16px; padding: clamp(26px, 4vw, 44px); border-radius: var(--radius-2xl); }
.terms-intro { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 820px) { .terms-intro { grid-template-columns: 1.08fr .92fr; align-items: start; column-gap: clamp(36px, 5vw, 72px); } .terms-intro .eyebrow { grid-column: 1 / -1; } }
.terms-intro h3 { color: var(--color-cream); font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.35rem); line-height: 1.15; max-width: 22ch; }
.terms-intro > p { margin: 0; color: var(--color-mist); font-size: var(--text-emph); line-height: 1.6; max-width: 43ch; }
.protection-grid { display: grid; grid-template-columns: 1fr; border: 1px solid var(--color-edge); border-radius: var(--radius-xl); overflow: hidden; background: rgb(6 9 10 / .28); }
@media (min-width: 820px) { .protection-grid { grid-template-columns: repeat(3, 1fr); } }
.protection-grid article { padding: clamp(22px, 3vw, 30px); }
.protection-grid article + article { border-top: 1px solid var(--color-edge); }
@media (min-width: 820px) { .protection-grid article + article { border-top: 0; border-left: 1px solid var(--color-edge); } }
.protection-value { display: block; color: var(--color-action-hover); font-size: var(--text-small); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.protection-grid h4 { margin-top: 14px; color: var(--color-cream); font-size: var(--text-head); line-height: 1.25; }
.protection-grid p { margin-top: 11px; color: var(--color-mist); font-size: var(--text-body); line-height: 1.6; }
.protection-grid small { display: block; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--color-edge-soft); color: var(--color-faint); font-size: var(--text-micro); line-height: 1.55; }
.terms-note { color: var(--color-faint); font-size: var(--text-micro); }
.founder-grid { display: grid; align-items: center; gap: clamp(30px, 6vw, 72px); }
@media (min-width: 820px) { .founder-grid { grid-template-columns: .8fr 1.2fr; } }
.founder-mark { min-height: 320px; border-radius: var(--radius-2xl); padding: 32px; display: flex; align-items: end; background-image: linear-gradient(180deg, rgb(6 18 19 / .08) 20%, rgb(6 18 19 / .9) 100%), linear-gradient(135deg, rgb(196 82 42 / .12), transparent 58%), url('assets/richmond-riverfront.jpg'); background-position: center; background-size: cover; }
.founder-mark span { color: var(--color-cream); font-size: var(--text-sub); font-weight: 600; line-height: 1.25; }
.founder .h2 { margin-top: 16px; max-width: 18ch; }
.founder .lede { margin-top: 18px; max-width: 52ch; }
.founder-quote { position: relative; }
.founder-quote::before { content: '“'; position: absolute; right: calc(100% + 14px); top: -11px; color: var(--color-action); font-family: Georgia, serif; font-size: 4.5rem; line-height: 1; opacity: .9; }
.founder-signoff { margin-top: 18px; color: var(--color-action-hover); font-size: var(--text-emph); font-weight: 600; }
@media (max-width: 819px) { .founder-quote { padding-left: 30px; } .founder-quote::before { left: 0; right: auto; top: -8px; font-size: 3.7rem; } }
.faq-wrap { max-width: 860px; }
.faq-list { margin-top: 32px; border-top: 1px solid var(--color-edge); }
.faq-list details { border-bottom: 1px solid var(--color-edge); }
.faq-list summary { list-style: none; cursor: pointer; padding: 21px 38px 21px 0; position: relative; color: var(--color-cream); font-size: var(--text-emph); font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 4px; top: 18px; color: var(--color-action); font-size: 24px; font-weight: 400; transition: transform var(--dur-menu) var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { max-width: 68ch; padding: 0 36px 22px 0; color: var(--color-mist); font-size: var(--text-emph); }

/* ── CTA band ───────────────────────────────────────────────────────────── */
.cta-band { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-2xl); padding: clamp(34px, 6vw, 72px); text-align: center; background-image: radial-gradient(circle at 14% 105%, rgb(196 82 42 / .18), transparent 34%), radial-gradient(circle at 88% -8%, rgb(48 100 91 / .14), transparent 34%), linear-gradient(155deg, rgb(24 31 32 / .9), rgb(8 16 17 / .82)); }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(110deg, rgb(255 255 255 / .025), transparent 30% 72%, rgb(255 255 255 / .015)), url('assets/topo-contours.svg'); background-position: center; background-size: auto, cover; opacity: .92; pointer-events: none; }
.cta-band::after { content: ''; position: absolute; inset: 1px; z-index: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), inset 0 -70px 120px rgb(0 0 0 / .13); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band .lede { margin: 16px auto 0; max-width: 44ch; }
.cta-band .hero-actions { justify-content: center; margin-top: 32px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--color-edge); margin-top: clamp(40px, 6vw, 80px); }
.footer-inner { padding-block: 40px; display: grid; gap: 26px; }
.footer-brand img { height: 22px; }
.disclaimer { font-size: var(--text-small); color: var(--color-faint); max-width: 78ch; line-height: 1.6; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: var(--text-micro); color: var(--color-dim); }
.footer-meta a { color: var(--color-faint); text-decoration: none; }
@media (hover: hover) { .footer-meta a:hover { color: var(--color-action); } }

/* ── Request form page ──────────────────────────────────────────────────── */
.request-main { min-height: 60vh; }
.request-wrap {
  max-width: 620px;
  padding-block: clamp(40px, 8vw, 88px);
}
.form-card { border-radius: var(--radius-2xl); padding: clamp(24px, 4vw, 40px); }
.req-form { margin-top: 26px; display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.req-form label {
  font-size: var(--text-small); font-weight: 500; color: var(--color-mist);
}
.req-form .req { color: var(--color-action); }
.req-form .opt { color: var(--color-dim); font-weight: 400; }
.req-form input,
.req-form textarea {
  width: 100%; font-family: inherit; color: var(--color-cream);
  /* 16px min prevents the iOS focus-zoom; label/hint stay on the app scale */
  font-size: 16px; line-height: 1.4;
  background: var(--color-layer-0);
  border: 1px solid var(--color-edge-strong);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: border-color var(--dur-menu) var(--ease-out), box-shadow var(--dur-menu) var(--ease-out);
}
.req-form textarea { resize: vertical; min-height: 84px; }

/* county multi-select (tap-to-toggle chips) */
.county-field { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 8px; }
.county-field legend { padding: 0; font-size: var(--text-small); font-weight: 500; color: var(--color-mist); }
.county-field .opt { color: var(--color-dim); font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { display: inline-flex; }
/* visually hidden but focusable/checkable — keyboard toggles with Space */
.chip-check input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.chip-check span {
  display: inline-block; padding: 8px 13px; border-radius: 999px; cursor: pointer; user-select: none;
  font-size: var(--text-small); color: var(--color-mist);
  border: 1px solid var(--color-edge-strong); background: var(--color-layer-0);
  transition: color var(--dur-menu) var(--ease-out), border-color var(--dur-menu) var(--ease-out), background-color var(--dur-menu) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .chip-check:hover span { color: var(--color-cream); border-color: var(--color-edge-hard, #3b474a); } }
.chip-check input:checked + span { color: var(--color-cream); border-color: var(--color-action); background: rgb(196 82 42 / 0.12); }
.chip-check input:focus-visible + span { outline: 2px solid rgb(196 82 42 / 0.7); outline-offset: 2px; }
.req-form input::placeholder,
.req-form textarea::placeholder { color: var(--color-dim); }
.req-form input:focus,
.req-form textarea:focus {
  outline: none;
  border-color: var(--color-action);
  box-shadow: 0 0 0 3px rgb(196 82 42 / 0.16);
}
.req-form input:user-invalid,
.req-form input:focus:invalid { border-color: var(--color-critical); }
.form-submit { width: 100%; margin-top: 4px; font-size: var(--text-emph); padding-block: 15px; }
.form-fallback { margin: 4px 0 0; font-size: var(--text-small); color: var(--color-faint); text-align: center; }
.form-fallback a, .form-error a { color: var(--color-action-hover); text-decoration: underline; text-underline-offset: 2px; }
.form-error { margin: 2px 0 0; font-size: var(--text-small); color: var(--color-critical); }

/* success state */
.form-success {
  border-radius: var(--radius-2xl); padding: clamp(28px, 5vw, 48px);
  text-align: center; outline: none;
}

.legal-page { min-height: 70vh; padding-block: clamp(64px, 9vw, 112px); }
.legal-wrap { max-width: 820px; }
.legal-wrap > .h2 { margin-top: 16px; max-width: 20ch; }
.legal-wrap > .lede { margin-top: 18px; max-width: 62ch; }
.legal-wrap h2:not(.h2) { margin-top: 38px; color: var(--color-cream); font-size: var(--text-head); }
.legal-wrap h2 + p { margin-top: 10px; color: var(--color-mist); font-size: var(--text-emph); line-height: 1.65; }
.legal-wrap a, .perf-foot a { color: var(--color-action-hover); text-underline-offset: 3px; }
.legal-note { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--color-edge); color: var(--color-faint); font-size: var(--text-small); }

/* Branded gateway before Cloudflare Access hands off to the protected app. */
.login-main { min-height: 72vh; display: grid; align-items: center; padding-block: clamp(54px, 8vw, 100px); }
.login-wrap { max-width: 1040px; }
.login-card { border-radius: var(--radius-2xl); overflow: hidden; display: grid; box-shadow: 0 30px 90px rgb(0 0 0 / .28); }
@media (min-width: 820px) { .login-card { grid-template-columns: 1.08fr .92fr; } }
.login-copy { padding: clamp(30px, 5vw, 58px); }
.login-copy .h2 { margin-top: 16px; max-width: 15ch; }
.login-copy .lede { margin-top: 16px; max-width: 43ch; }
.login-assurance { display: grid; gap: 16px; margin-top: 38px; }
.login-assurance > div { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.login-assurance span { color: var(--color-action); font-size: var(--text-micro); font-weight: 700; letter-spacing: .08em; }
.login-assurance p { color: var(--color-mist); font-size: var(--text-body); }
.login-assurance b { color: var(--color-cream); font-weight: 600; }
.login-panel { padding: clamp(30px, 5vw, 54px); display: flex; flex-direction: column; justify-content: center; background: linear-gradient(155deg, rgb(196 82 42 / .13), rgb(6 9 10 / .55) 58%); border-top: 1px solid var(--color-edge); }
@media (min-width: 820px) { .login-panel { border-top: 0; border-left: 1px solid var(--color-edge); } }
.login-panel > img { width: 42px; height: 42px; object-fit: contain; }
.login-label { margin-top: 26px; color: var(--color-action-hover); font-size: var(--text-micro); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.login-panel h2 { margin-top: 10px; color: var(--color-cream); font-size: var(--text-sub); }
.login-panel > p { margin-top: 10px; color: var(--color-mist); font-size: var(--text-emph); max-width: 34ch; }
.login-button { width: 100%; justify-content: space-between; margin-top: 28px; padding: 15px 18px; font-size: var(--text-emph); }
.login-panel > small { margin-top: 11px; color: var(--color-faint); font-size: var(--text-micro); text-align: center; }
.login-help { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--color-edge); color: var(--color-faint); font-size: var(--text-small); }
.login-help a { color: var(--color-action-hover); text-underline-offset: 3px; }
.success-mark {
  width: 52px; height: 52px; margin: 0 auto; display: grid; place-items: center;
  border-radius: 999px; color: var(--color-verdict-strong);
  background: rgb(62 195 154 / 0.12); border: 1px solid rgb(62 195 154 / 0.3);
}
.success-mark svg { width: 26px; height: 26px; }

/* ── Scroll reveal ──────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.reveal-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .count-up { animation: none !important; transform: none !important; filter: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .stage-bar-fill { transition: none; transform: scaleX(1); }
  .btn, .btn:active { transition: none; }
  .economics-control input[type="range"]::-webkit-slider-thumb, .economics-control input[type="range"]::-moz-range-thumb { animation: none !important; }
}
