/* ============================================================
   FlyCFO — The AI finance-ops teardown for CFOs
   Design system: "a measured close, scored and proven."
   Signatures: the Close Health Score dial (emerald healthy /
   amber leak / red critical) and the finance manifest
   (mono, tabular, ESTIMATE / VERIFIED stamps).
   Adapted from the BetterWrk FlowPorter design system.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --ink: #0B1A2E;          /* deep finance navy — primary dark ground */
  --ink-2: #112A40;        /* elevated surface on dark */
  --ink-3: #17324B;        /* card / input on dark */
  --paper: #F7F9F7;        /* cool-warm page ground */
  --paper-2: #E9EEEA;      /* deeper paper — alt bands, insets */
  --surface: #FFFFFF;      /* cards on paper */

  /* Finance palette */
  --emerald: #12B981;      /* Close Green — action, healthy, verified */
  --emerald-ink: #0A6B48;  /* emerald text — AA on paper and paper-2 */
  --emerald-bright: #34D399;/* emerald accent on dark */
  --amber: #F5A524;        /* Signal Amber — leak, unresolved, attention */
  --amber-ink: #8A5200;    /* amber text — AA on paper and paper-2 */
  --amber-bright: #FCC260;
  --indigo: #3B6FE0;       /* Ledger Blue — links, info, secondary data */
  --indigo-ink: #274BB5;   /* indigo that passes AA as text on paper */
  --indigo-bright: #8FA8FF;
  --critical: #B42318;
  --critical-bright: #F87171;

  /* Ink text on paper */
  --t-90: rgba(11, 26, 46, 0.92);
  --t-70: rgba(11, 26, 46, 0.66);
  --t-50: rgba(11, 26, 46, 0.48);
  /* Paper text on ink */
  --p-90: rgba(247, 249, 247, 0.94);
  --p-64: rgba(247, 249, 247, 0.64);
  --p-44: rgba(247, 249, 247, 0.44);

  /* Hairlines */
  --line: rgba(11, 26, 46, 0.12);
  --line-strong: rgba(11, 26, 46, 0.22);
  --line-p: rgba(247, 249, 247, 0.14);
  --line-p-strong: rgba(247, 249, 247, 0.26);

  /* Type */
  --sans: 'Hanken Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display: 'Space Grotesk', 'Hanken Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  /* Layout */
  --container: 1200px;
  --narrow: 760px;
  --gutter: clamp(1.15rem, 4vw, 2.75rem);
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(11, 26, 46, 0.06), 0 4px 14px rgba(11, 26, 46, 0.05);
  --shadow: 0 18px 48px -18px rgba(11, 26, 46, 0.30);
  --shadow-emerald: 0 18px 48px -20px rgba(18, 185, 129, 0.45);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
[hidden] { display: none !important; } /* keep native hidden working under display-setting component rules (e.g. .q-form) */
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.06; letter-spacing: -0.028em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong, b { font-weight: 600; }
::selection { background: var(--emerald); color: #04231A; }
:focus-visible { outline: 2.5px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }
.band-ink :focus-visible { outline-color: var(--emerald-bright); }

.skip-link {
  position: absolute; left: 0.5rem; top: 0.5rem; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; border-radius: 8px; font-size: 0.9rem; font-weight: 600;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 8.5vw, 7.5rem); position: relative; }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }
.narrow-col { max-width: var(--narrow); margin-inline: auto; }

/* Bands */
.band-ink {
  background-color: var(--ink);
  color: var(--p-90);
  --line: var(--line-p);
  --line-strong: var(--line-p-strong);
  --t-90: var(--p-90); --t-70: var(--p-64); --t-50: var(--p-44);
  --emerald-ink: var(--emerald-bright);
  --amber-ink: var(--amber-bright);
  --indigo-ink: var(--indigo-bright);
  background-image:
    linear-gradient(180deg, rgba(18,185,129,0.05), transparent 30%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.035' stroke-width='1'%3E%3Cpath d='M0 30h60M30 0v60'/%3E%3C/g%3E%3C/svg%3E");
}
.band-ink h1, .band-ink h2, .band-ink h3, .band-ink h4 { color: var(--paper); }
.band-paper-2 { background: var(--paper-2); }

/* ---------- Type utilities ---------- */
/* Eyebrow = a ledger checkpoint: a drawn segment + dot, then a mono label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--mono); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--emerald-ink);
  margin: 0;
}
.eyebrow::before {
  content: ""; width: 1.7em; height: 7px; flex: none;
  background:
    radial-gradient(circle at right, currentColor 3px, transparent 3.5px) right center / 7px 7px no-repeat,
    linear-gradient(currentColor, currentColor) left center / calc(100% - 9px) 1.5px no-repeat;
}
.eyebrow.on-amber { color: var(--amber-ink); }
.eyebrow.on-indigo { color: var(--indigo-ink); }
.eyebrow.center { justify-content: center; }

.display-xl { font-size: clamp(2.55rem, 6.4vw, 4.7rem); line-height: 1.02; letter-spacing: -0.035em; }
.display-lg { font-size: clamp(2.05rem, 4.6vw, 3.35rem); letter-spacing: -0.032em; }
.display-md { font-size: clamp(1.65rem, 3vw, 2.4rem); letter-spacing: -0.03em; }
.display-sm { font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -0.025em; }
/* Distinctive display face on the big statements; body/UI stays Hanken, labels stay mono. */
.display-xl, .display-lg, .display-md, .display-sm, h1, h2 { font-family: var(--display); }
.display-xl { letter-spacing: -0.028em; }
.display-lg { letter-spacing: -0.026em; }
.display-md { letter-spacing: -0.022em; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--t-70); }
.tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }

.section-head { max-width: 44rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 1.1rem; }
.section-head h2 { margin-top: 1rem; }

/* Accent word treatment in headings */
.accent { color: var(--emerald-ink); }
.band-ink .accent { color: var(--emerald-bright); }

/* Inline text link */
.tlink {
  display: inline-flex; align-items: center; gap: 0.4em;
  color: var(--indigo-ink); font-weight: 600;
  border-bottom: 1.5px solid color-mix(in srgb, var(--indigo-ink) 35%, transparent);
  transition: border-color 0.18s var(--ease), gap 0.18s var(--ease);
}
.tlink:hover { border-color: var(--indigo-ink); gap: 0.6em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.9em 1.5em; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em;
  border: 1.5px solid transparent; white-space: nowrap;
  transition: transform 0.16s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 1.05em 1.85em; font-size: 1.03rem; }
.btn-sm { padding: 0.65em 1.1em; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn .arw { transition: transform 0.18s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

.btn-primary { background: var(--emerald); color: #04231A; box-shadow: var(--shadow-emerald); }
.btn-primary:hover { background: #16c98d; box-shadow: 0 22px 54px -18px rgba(18,185,129,0.6); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #16273f; }
.btn-ghost { border-color: var(--line-strong); color: var(--t-90); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: rgba(11,26,46,0.03); }
.band-ink .btn-ghost { border-color: var(--line-p-strong); color: var(--paper); }
.band-ink .btn-ghost:hover { border-color: var(--paper); background: rgba(255,255,255,0.06); }
.btn-quiet { color: var(--t-70); padding-inline: 0.4em; }
.btn-quiet:hover { color: var(--t-90); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--paper) 92%, transparent); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }

/* Brand lock-up: wordmark + "by BetterWrk" endorsement */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; flex: none; }
.brand-mark { width: 30px; height: 30px; flex: none; color: var(--emerald-ink); }
.band-ink .brand-mark { color: var(--emerald-bright); }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 1.16rem; font-weight: 700; letter-spacing: -0.03em; }
.brand-copy small {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--t-50); margin-top: 3px;
}
.nav { display: flex; align-items: center; gap: 0.3rem; margin-left: auto; }
.nav a {
  padding: 0.5rem 0.8rem; border-radius: 8px; font-size: 0.95rem; font-weight: 500;
  color: var(--t-70); transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav a:hover { color: var(--t-90); background: rgba(11,26,46,0.04); }
.nav a[aria-current="page"] { color: var(--emerald-ink); }
.header-cta { display: flex; align-items: center; gap: 0.6rem; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; align-items: center; justify-content: center; border: 1px solid var(--line); }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Announcement ---------- */
.announce {
  background: var(--ink); color: var(--p-90);
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.04em;
  text-align: center; padding: 0.5rem 1rem;
}
.announce b { color: var(--emerald-bright); font-weight: 500; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 7vw, 6rem); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(42% 44% at 80% 40%, rgba(18,185,129,0.16), transparent 72%),
    radial-gradient(58% 48% at 88% 4%, rgba(59,111,224,0.10), transparent 70%),
    radial-gradient(50% 45% at 6% 90%, rgba(18,185,129,0.07), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cg fill='none' stroke='%230B1A2E' stroke-opacity='0.04' stroke-width='1'%3E%3Cpath d='M0 36h72M36 0v72'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0, #000, transparent 75%);
          mask-image: radial-gradient(120% 100% at 50% 0, #000, transparent 75%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center;
}
.hero-copy h1 { margin-top: 1.35rem; }
.hero-copy .lead { margin-top: 1.4rem; max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.trust-line {
  display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap;
  margin-top: 1.6rem; font-size: 0.85rem; color: var(--t-70);
  font-family: var(--mono); letter-spacing: 0.01em;
}
.trust-line .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); flex: none; box-shadow: 0 0 0 4px rgba(18,185,129,0.16); }

/* ---------- Manifest card (hero + sample finance cards) ---------- */
.manifest {
  position: relative; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-top-color: color-mix(in srgb, var(--emerald) 26%, var(--line));
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow:
    0 2px 4px rgba(11, 26, 46, 0.05),
    0 26px 56px -24px rgba(11, 26, 46, 0.40),
    0 54px 96px -60px rgba(18, 185, 129, 0.42);
}
.manifest-tab {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.1rem; border-bottom: 1px dashed var(--line);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-50);
}
.manifest-tab .stamp {
  display: inline-flex; align-items: center; gap: 0.4em;
  color: var(--amber-ink); border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent);
  border-radius: 5px; padding: 0.2em 0.55em; background: color-mix(in srgb, var(--amber) 12%, transparent);
}
.manifest-body { padding: clamp(1.1rem, 2vw, 1.5rem); }

/* ---------- Close Health Score dial ---------- */
.gauge { position: relative; width: var(--g, 128px); height: var(--g, 128px); flex: none; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.gauge .g-track { fill: none; stroke: var(--paper-2); stroke-width: 11; }
.band-ink .gauge .g-track { stroke: var(--ink-3); }
.gauge .g-val { fill: none; stroke: var(--emerald); stroke-width: 11; stroke-linecap: round; }
.gauge.js-anim .g-val { transition: stroke-dashoffset 1.15s var(--ease); }
.gauge[data-band="mid"] .g-val { stroke: var(--amber); }
.gauge[data-band="low"] .g-val { stroke: var(--critical); }
.gauge .g-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge .g-num b { font-family: var(--display); font-size: 2.1rem; letter-spacing: -0.03em; line-height: 1; }
.gauge .g-num small { font-family: var(--mono); font-size: 0.54rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-50); margin-top: 0.25rem; }

/* Hero sample score card layout */
.score-head { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: center; }
.score-head .gauge { --g: 116px; }
.score-verdict b { display: block; font-size: 1.02rem; letter-spacing: -0.02em; }
.score-verdict span { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-50); }
.score-kpis { display: flex; justify-content: space-between; gap: 1rem; margin: 1.2rem 0 0.2rem; }
.score-kpis .kpi { display: flex; flex-direction: column; }
.score-kpis .kpi b { font-size: 1.35rem; letter-spacing: -0.03em; }
.score-kpis .kpi span { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-50); }

.leak-band {
  position: relative; overflow: hidden;
  margin-top: 1.1rem; padding: 0.85rem 1rem; border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; gap: 0.15rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 14px 30px -18px rgba(245,165,36,0.55);
}
.leak-band span { font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--p-64); }
.leak-band strong { font-size: 1.5rem; letter-spacing: -0.03em; }
.leak-band strong .amber { color: var(--amber-bright); }
.leak-band small { font-size: 0.72rem; color: var(--p-64); }

/* Hero sample build animation (JS-gated) */
.manifest.reveal {
  transform: translateY(26px) scale(0.985); filter: blur(3px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease), filter 0.75s var(--ease);
}
.manifest.reveal.is-visible { transform: none; filter: none; }
.leak-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 32%, rgba(252,194,96,0.22) 50%, transparent 68%);
}
@keyframes fc-scan { to { transform: translateX(120%); } }
.manifest.js-anim.is-built .leak-band::after { animation: fc-scan 1.15s var(--ease) 1.15s 1 forwards; }
@media (prefers-reduced-motion: reduce) {
  .manifest.reveal { filter: none !important; transform: none !important; }
  .gauge.js-anim .g-val { transition: none; }
  .manifest.js-anim.is-built .leak-band::after { animation: none; }
}

/* ---------- Status badge ---------- */
.rsb { display: inline-flex; align-items: center; gap: 0.4em; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.28em 0.6em; border-radius: 6px; border: 1px solid; }
.rsb .d { width: 7px; height: 7px; border-radius: 50%; }
.rsb[data-s="productized"] { color: var(--emerald-ink); border-color: color-mix(in srgb, var(--emerald) 40%, transparent); background: color-mix(in srgb, var(--emerald) 10%, transparent); }
.rsb[data-s="productized"] .d { background: var(--emerald); }
.rsb[data-s="pilot"] { color: var(--indigo-ink); border-color: color-mix(in srgb, var(--indigo) 40%, transparent); background: color-mix(in srgb, var(--indigo) 10%, transparent); }
.rsb[data-s="pilot"] .d { background: var(--indigo); }
.rsb[data-s="research"] { color: var(--amber-ink); border-color: color-mix(in srgb, var(--amber) 40%, transparent); background: color-mix(in srgb, var(--amber) 10%, transparent); }
.rsb[data-s="research"] .d { background: var(--amber); }

/* ---------- Problem / risk grid ---------- */
.two-col { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.sticky-head { position: sticky; top: 96px; }
.risk-list { display: grid; gap: 0.9rem; }
.risk {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  padding: 1.45rem 0 0.4rem; border-top: 1.5px solid var(--line);
}
.band-ink .risk { border-top-color: var(--line-p-strong); }
.risk .rn { font-family: var(--mono); font-size: 0.76rem; font-weight: 500; color: var(--t-70); padding-top: 0.2rem; letter-spacing: 0.03em; }
.risk .rn svg { width: 17px; height: 17px; }
.risk h3 { font-size: 1.05rem; letter-spacing: -0.02em; }
.risk p { margin-top: 0.4rem; font-size: 0.94rem; color: var(--t-70); line-height: 1.58; }

/* ---------- Method rail (the close line) ---------- */
.rail { position: relative; margin-top: clamp(2.2rem, 4vw, 3.4rem); }
.rail-line {
  position: absolute; left: 0; right: 0; top: 27px; height: 3px; border-radius: 3px;
  background: var(--line-strong);
}
.rail-line .prog {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--indigo));
  width: var(--p, 18%); transition: width 1.1s var(--ease);
}
.rail-stations { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.5rem; }
.station { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.55rem; }
.station .dot {
  width: 54px; height: 54px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 2px solid var(--line-strong); position: relative; z-index: 1;
  font-family: var(--mono); font-weight: 500; color: var(--t-50);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}
.band-ink .station .dot { background: var(--ink-2); }
.station.on .dot { border-color: var(--emerald); color: var(--emerald-ink); box-shadow: 0 0 0 5px color-mix(in srgb, var(--emerald) 14%, transparent); }
.station strong { font-size: 0.98rem; letter-spacing: -0.02em; }
.station small { font-size: 0.78rem; color: var(--t-70); max-width: 12ch; }
.station .dot svg { width: 22px; height: 22px; }

/* ---------- Assessment / questionnaire ---------- */
.assess-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(1.8rem, 4vw, 3.4rem); align-items: start; }
.assess-intro .check-list { margin-top: 1.4rem; display: grid; gap: 0.6rem; }
.assess-intro .check-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; font-size: 0.95rem; }
.assess-intro .check-list svg { width: 20px; height: 20px; color: var(--emerald-ink); margin-top: 0.15rem; }
.privacy-note {
  margin-top: 1.6rem; padding: 1.05rem 1.15rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--paper-2);
  display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: start;
}
.band-ink .privacy-note { background: var(--ink-2); border-color: var(--line-p); }
.privacy-note svg { width: 22px; height: 22px; color: var(--indigo-ink); }
.privacy-note strong { font-size: 0.92rem; }
.privacy-note p { font-size: 0.86rem; color: var(--t-70); margin-top: 0.2rem; }

.assess-card {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: clamp(1.3rem, 2.6vw, 2rem); position: relative;
  /* White card inside .band-ink: reset inherited light-on-dark context to a light surface */
  --t-90: rgba(11, 26, 46, 0.92);
  --t-70: rgba(11, 26, 46, 0.66);
  --t-50: rgba(11, 26, 46, 0.48);
  --emerald-ink: #0A6B48;
  --amber-ink: #8A5200;
  --indigo-ink: #274BB5;
  --line: rgba(11, 26, 46, 0.12);
  --line-strong: rgba(11, 26, 46, 0.22);
  color: var(--t-90);
  border: 1px solid var(--line);
}

/* Questionnaire form */
.q-form { display: grid; gap: 1.5rem; }
.q-group { display: grid; gap: 0.9rem; }
.q-group > legend, .q-legend { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.025em; padding: 0; font-family: var(--display); }
.q-help { font-size: 0.88rem; color: var(--t-70); margin-top: -0.5rem; }
fieldset { border: none; margin: 0; padding: 0; min-width: 0; }

.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > span, .field > label { font-size: 0.85rem; font-weight: 600; }
.field .opt { color: var(--t-50); font-weight: 400; }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 0.7em 0.85em; background: var(--surface);
  transition: border-color 0.15s var(--ease); font-size: 0.98rem; width: 100%; min-width: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px color-mix(in srgb, var(--emerald) 20%, transparent); }
.select-wrap { position: relative; display: flex; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 2.4em; cursor: pointer; }
.select-wrap::after {
  content: ""; position: absolute; right: 1em; top: 50%; pointer-events: none;
  width: 9px; height: 9px; border-right: 2px solid var(--t-50); border-bottom: 2px solid var(--t-50);
  transform: translateY(-70%) rotate(45deg);
}
.q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }

/* Systems multi-select (checkbox pills) */
.systems-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 0.5rem; }
.chk {
  position: relative; display: flex; align-items: center; gap: 0.55rem;
  padding: 0.6rem 0.7rem; border: 1.5px solid var(--line); border-radius: 10px;
  cursor: pointer; font-size: 0.9rem; font-weight: 500;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.chk:hover { border-color: var(--line-strong); background: var(--paper); }
.chk input { position: absolute; opacity: 0; pointer-events: none; }
.chk .box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-strong); flex: none; display: flex; align-items: center; justify-content: center; transition: all 0.15s var(--ease); }
.chk .box svg { width: 11px; height: 11px; color: #04231A; opacity: 0; }
.chk:has(input:checked) { border-color: var(--emerald); background: color-mix(in srgb, var(--emerald) 8%, var(--surface)); }
.chk:has(input:checked) .box { background: var(--emerald); border-color: var(--emerald); }
.chk:has(input:checked) .box svg { opacity: 1; }
.chk:has(input:focus-visible) { outline: 2.5px solid var(--indigo); outline-offset: 2px; }

.q-actions { display: flex; flex-direction: column; gap: 0.6rem; }
.form-status { font-size: 0.88rem; margin-top: 0.2rem; min-height: 1.2em; }
.form-status[data-state="error"] { color: var(--critical); }
.band-ink .form-status[data-state="error"] { color: var(--critical-bright); }

/* Result */
.result { display: none; }
.result.on { display: block; animation: stepIn 0.4s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.result-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.decision {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--mono); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.4em 0.8em; border-radius: 8px; border: 1.5px solid;
  color: var(--emerald-ink); border-color: color-mix(in srgb, var(--emerald) 45%, transparent); background: color-mix(in srgb, var(--emerald) 10%, transparent);
}
.decision .d { width: 9px; height: 9px; border-radius: 50%; background: var(--emerald); }
.decision[data-band="mid"] { color: var(--amber-ink); border-color: color-mix(in srgb, var(--amber) 45%, transparent); background: color-mix(in srgb, var(--amber) 10%, transparent); }
.decision[data-band="mid"] .d { background: var(--amber); }
.decision[data-band="low"] { color: var(--critical); border-color: color-mix(in srgb, var(--critical) 45%, transparent); background: color-mix(in srgb, var(--critical) 8%, transparent); }
.decision[data-band="low"] .d { background: var(--critical); }
.evidence-tag { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t-50); }

.result-score { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; }
.result-score .gauge { --g: 132px; }
.result-score h3 { font-size: 1.25rem; letter-spacing: -0.025em; }
.result-score .exp { margin-top: 0.4rem; color: var(--t-70); font-size: 0.95rem; }

.leak-result { margin-top: 1.3rem; padding: 1rem 1.15rem; border-radius: var(--radius); background: var(--ink); color: var(--paper); }
.leak-result .lbl { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--p-64); }
.leak-result .amt { font-size: 1.85rem; letter-spacing: -0.03em; margin-top: 0.15rem; }
.leak-result .amt .amber { color: var(--amber-bright); }
.leak-result small { color: var(--p-64); font-size: 0.75rem; display: block; margin-top: 0.15rem; }

.metrics { margin-top: 1.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.metric { border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.8rem; }
.metric .m-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.metric .m-name { font-size: 0.78rem; color: var(--t-70); }
.metric .m-val { font-family: var(--mono); font-size: 0.82rem; font-weight: 500; }
.metric .m-bar { margin-top: 0.45rem; height: 5px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.metric .m-bar i { display: block; height: 100%; border-radius: 3px; background: var(--emerald); }
.metric[data-tone="warn"] .m-bar i { background: var(--amber); }
.metric[data-tone="risk"] .m-bar i { background: var(--critical); }

.tier-row { margin-top: 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.tier-row .t-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-50); }
.tier-row .t-value { font-weight: 700; font-size: 1.05rem; font-family: var(--display); letter-spacing: -0.02em; }
.tier-row .t-price { font-weight: 700; font-size: 1.15rem; }
.tier-row .t-price small { font-weight: 400; font-size: 0.8rem; color: var(--t-50); }

.insights { margin-top: 1.3rem; display: grid; gap: 0.65rem; }
.insight { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.insight:first-child { border-top: none; padding-top: 0; }
.insight .ic { width: 22px; height: 22px; flex: none; border-radius: 6px; background: color-mix(in srgb, var(--emerald) 12%, transparent); color: var(--emerald-ink); display: flex; align-items: center; justify-content: center; margin-top: 0.05rem; }
.insight .ic svg { width: 13px; height: 13px; }
.insight h4 { font-size: 0.96rem; letter-spacing: -0.01em; }
.insight p { font-size: 0.88rem; color: var(--t-70); margin-top: 0.15rem; }

.result-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.result-disclaimer { margin-top: 1.1rem; font-size: 0.78rem; color: var(--t-50); font-family: var(--mono); line-height: 1.5; }

/* Email-capture sub-form */
.capture { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px dashed var(--line); }
.capture .q-grid { margin-top: 0.9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { text-align: center; padding: 2rem 1rem; }
.form-success .tick { width: 52px; height: 52px; margin: 0 auto 0.9rem; border-radius: 50%; background: color-mix(in srgb, var(--emerald) 16%, transparent); color: var(--emerald-ink); display: flex; align-items: center; justify-content: center; }
.form-success .tick svg { width: 26px; height: 26px; }
.form-success h3 { font-size: 1.3rem; }
.form-success p { margin-top: 0.5rem; color: var(--t-70); }

/* ---------- Fixed-price lock steps ---------- */
.lock-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 2.4rem; position: relative; }
.lock-step { position: relative; padding: 1.4rem 1.2rem; border: 1px solid var(--line); background: var(--surface); }
.lock-step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.lock-step:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.lock-step:not(:first-child) { border-left: none; }
.lock-step .k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--emerald-ink); }
.lock-step h3 { margin-top: 0.5rem; font-size: 1.15rem; }
.lock-step p { margin-top: 0.4rem; font-size: 0.9rem; color: var(--t-70); }
.lock-step.locked { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.lock-step.locked .k { color: var(--emerald-bright); }
.lock-step.locked h3 { color: var(--paper); }
.lock-step.locked p { color: var(--p-64); }

/* ---------- Cards: packages, generic ---------- */
.card-grid { display: grid; gap: 1.1rem; margin-top: clamp(2rem, 4vw, 3rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.pkg {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.5rem 1.5rem 1.6rem; position: relative;
}
.pkg.featured { border-color: var(--emerald); box-shadow: var(--shadow-emerald); }
.pkg-badge {
  position: absolute; top: -0.7rem; left: 1.5rem; background: var(--emerald); color: #04231A;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3em 0.7em; border-radius: 6px; font-weight: 500;
}
.pkg .k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-50); }
.pkg h3 { margin-top: 0.5rem; font-size: 1.5rem; }
.pkg .price { font-size: 1.9rem; letter-spacing: -0.03em; margin-top: 0.7rem; }
.pkg .price small { font-size: 0.9rem; color: var(--t-50); font-weight: 400; }
.pkg .pkg-for { margin-top: 0.5rem; font-size: 0.92rem; color: var(--t-70); }
.pkg ul { margin-top: 1.1rem; display: grid; gap: 0.55rem; }
.pkg ul li { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; font-size: 0.92rem; align-items: start; }
.pkg ul svg { width: 17px; height: 17px; color: var(--emerald-ink); margin-top: 0.18rem; }
.pkg .pkg-foot { margin-top: auto; padding-top: 1.3rem; }
.pkg .fineprint { font-size: 0.76rem; color: var(--t-50); margin-top: 0.9rem; font-family: var(--mono); line-height: 1.5; }

/* Deliverable card (numbered feature) */
.route-card {
  display: flex; flex-direction: column; gap: 0.9rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.route-card:hover { border-color: var(--emerald); transform: translateY(-3px); box-shadow: var(--shadow); }
.route-card .rc-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.route-card .rc-route { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.route-card .rc-route .to { color: var(--emerald-ink); font-family: var(--mono); }
.route-card p { font-size: 0.94rem; color: var(--t-70); }
.route-card .rc-foot { margin-top: auto; padding-top: 0.4rem; }

/* ---------- Comparison table ---------- */
.cmp-wrap { margin-top: clamp(2rem, 4vw, 3rem); overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.band-ink .cmp-wrap { background: var(--ink-2); border-color: var(--line-p); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 640px; }
table.cmp th, table.cmp td { padding: 0.9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.92rem; vertical-align: middle; }
table.cmp thead th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--t-50); font-weight: 500; }
table.cmp thead th.us { color: var(--emerald-ink); }
table.cmp tbody th { font-weight: 600; color: var(--t-90); }
table.cmp td.us { background: color-mix(in srgb, var(--emerald) 7%, transparent); font-weight: 600; }
table.cmp td .yes { color: var(--emerald-ink); }
table.cmp tr:last-child th, table.cmp tr:last-child td { border-bottom: none; }

/* ---------- Proof / evidence ledger ---------- */
.evidence { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.band-ink .evidence { background: var(--ink-2); border-color: var(--line-p); }
.evidence-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.2rem; border-bottom: 1px dashed var(--line);
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-50);
}
.pass { display: inline-flex; align-items: center; gap: 0.4em; color: var(--emerald-ink); font-weight: 500; }
.pass svg { width: 14px; height: 14px; }
.evidence-body { padding: 1.3rem 1.2rem; }
.evidence-body h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
.evidence-flow { display: flex; align-items: center; gap: 0.6rem; margin: 1rem 0; flex-wrap: wrap; font-family: var(--mono); font-size: 0.76rem; color: var(--t-70); }
.evidence-flow .seg { flex: 1; min-width: 20px; height: 2px; background: var(--emerald); border-radius: 2px; }
.evidence-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.5rem; margin-top: 0.6rem; }
.evidence-dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.evidence-dl dt { color: var(--t-70); }
.evidence-dl dd { margin: 0; font-family: var(--mono); font-size: 0.78rem; color: var(--emerald-ink); }
.evidence-caption { margin-top: 0.9rem; font-size: 0.75rem; color: var(--t-50); font-family: var(--mono); }

/* ---------- Fit / Stay split ---------- */
.fit-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: clamp(2rem,4vw,3rem); }
.fit { padding: 1.6rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.fit.go { border-color: color-mix(in srgb, var(--emerald) 40%, transparent); background: color-mix(in srgb, var(--emerald) 6%, var(--surface)); }
.fit-tag { display: inline-flex; align-items: center; gap: 0.45em; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35em 0.7em; border-radius: 7px; }
.fit-tag.stay { color: var(--t-70); background: var(--paper-2); }
.fit-tag.move { color: var(--emerald-ink); background: color-mix(in srgb, var(--emerald) 14%, transparent); }
.fit ul { margin-top: 1.1rem; display: grid; gap: 0.7rem; }
.fit ul li { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; font-size: 0.93rem; color: var(--t-90); align-items: start; }
.fit ul li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--t-50); margin-top: 0.5rem; }
.fit.go ul li::before { background: var(--emerald); }

/* ---------- Callout ---------- */
.callout {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start;
  padding: 1.6rem 1.7rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface);
}
.band-ink .callout { background: var(--ink-2); border-color: var(--line-p); }
.callout .ci { width: 40px; height: 40px; border-radius: 11px; background: color-mix(in srgb, var(--indigo) 12%, transparent); color: var(--indigo-ink); display: flex; align-items: center; justify-content: center; }
.callout .ci svg { width: 22px; height: 22px; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: clamp(1.6rem, 3vw, 2.4rem); border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0.2rem; cursor: pointer; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { position: relative; width: 18px; height: 18px; flex: none; }
.faq summary .ic::before, .faq summary .ic::after { content: ""; position: absolute; background: var(--emerald-ink); border-radius: 2px; transition: transform 0.22s var(--ease); }
.faq summary .ic::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq summary .ic::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq[open] summary .ic::after { transform: scaleY(0); }
.faq .answer { padding: 0 0.2rem 1.3rem; color: var(--t-70); max-width: 62ch; }
.faq .answer p + p { margin-top: 0.7rem; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }
.final-cta .container { max-width: 720px; }
.final-cta .cta-row { justify-content: center; }

/* ---------- Sticky scroll CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: color-mix(in srgb, var(--ink) 94%, transparent); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-p); transform: translateY(110%); transition: transform 0.3s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; }
.sticky-cta-text { color: var(--p-90); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.01em; }
.sticky-cta-text b { color: var(--emerald-bright); font-weight: 500; }

/* ---------- Reusable lead form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.field label .opt { color: var(--t-50); font-weight: 400; }
.band-ink .field input, .band-ink .field select, .band-ink .field textarea { background: var(--ink-3); border-color: var(--line-p-strong); color: var(--paper); }
.field textarea { min-height: 120px; resize: vertical; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--p-64); padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 2fr; gap: clamp(2rem, 5vw, 4rem); }
.footer-brand p { margin-top: 1rem; max-width: 34ch; font-size: 0.92rem; }
.footer-legal { margin-top: 1.1rem; font-size: 0.78rem; color: var(--p-44); font-family: var(--mono); line-height: 1.6; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.footer-col h5 { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--p-44); font-weight: 500; margin-bottom: 0.9rem; }
.footer-col a { display: block; padding: 0.32rem 0; font-size: 0.92rem; color: var(--p-64); transition: color 0.15s var(--ease); }
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: clamp(2.4rem, 4vw, 3.4rem); padding-top: 1.6rem; border-top: 1px solid var(--line-p);
  font-size: 0.8rem; color: var(--p-44); font-family: var(--mono);
}
.footer-disclaimer { margin-top: 1rem; font-size: 0.76rem; color: var(--p-44); line-height: 1.6; max-width: 90ch; }

/* ---------- Inner page: hero, prose, matrix ---------- */
.page-hero { padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.74rem; color: var(--t-50); margin-bottom: 1.4rem; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--emerald-ink); }
.breadcrumb .sep { opacity: 0.5; }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 2.4rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8rem; }
.prose p, .prose li { color: var(--t-90); }
.prose ul { display: grid; gap: 0.6rem; }
.prose ul li { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; }
.prose ul li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--emerald); margin-top: 0.62rem; }

/* Matrix / mapping table */
.matrix-legend { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4em; font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 0.3em 0.65em; border-radius: 6px; border: 1px solid;
}
.chip .d { width: 8px; height: 8px; border-radius: 2px; }
.chip[data-kind="direct"] { color: var(--emerald-ink); border-color: color-mix(in srgb, var(--emerald) 40%, transparent); }
.chip[data-kind="direct"] .d { background: var(--emerald); }
.chip[data-kind="transform"] { color: var(--indigo-ink); border-color: color-mix(in srgb, var(--indigo) 40%, transparent); }
.chip[data-kind="transform"] .d { background: var(--indigo); }
.chip[data-kind="rebuild"] { color: var(--amber-ink); border-color: color-mix(in srgb, var(--amber) 40%, transparent); }
.chip[data-kind="rebuild"] .d { background: var(--amber); }
.chip[data-kind="retire"] { color: var(--t-70); border-color: var(--line-strong); }
.chip[data-kind="retire"] .d { background: var(--ink); }
.chip[data-kind="resolve"] { color: var(--t-70); border-color: var(--line-strong); border-style: dashed; }
.chip[data-kind="resolve"] .d { background: var(--t-50); }

.matrix-scroll-hint { display: none; font-family: var(--mono); font-size: 0.74rem; color: var(--t-50); margin-top: 1rem; }
.matrix-wrap { margin-top: 1.2rem; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
table.matrix { width: 100%; border-collapse: collapse; min-width: 680px; }
table.matrix th, table.matrix td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.9rem; vertical-align: top; }
table.matrix thead th { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--t-50); font-weight: 500; }
table.matrix td:first-child { font-weight: 600; }
table.matrix tr:last-child td { border-bottom: none; }

/* Callout box within prose */
.note-box { border-left: 3px solid var(--emerald); background: var(--paper-2); padding: 1.1rem 1.3rem; border-radius: 0 var(--radius) var(--radius) 0; }
.note-box.warn { border-color: var(--amber); }
.band-ink .note-box { background: var(--ink-2); }

/* ---------- Reveal / motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.06s; }
.reveal.d2 { transition-delay: 0.12s; }
.reveal.d3 { transition-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .result.on { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy .lead { max-width: none; }
  .manifest { max-width: 480px; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .sticky-head { position: static; }
  .assess-grid { grid-template-columns: 1fr; }
  .rail-stations { grid-template-columns: 1fr; gap: 0; }
  .rail-line { display: none; }
  .station { flex-direction: row; text-align: left; align-items: center; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .station small { max-width: none; }
  .lock-steps { grid-template-columns: 1fr 1fr; }
  .lock-step { border-radius: 0 !important; }
  .lock-step:not(:nth-child(2n)) { border-right: none; }
  .lock-step:nth-child(n+3) { border-top: none; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav, .header-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .site-header.menu-open .nav {
    display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 0.6rem var(--gutter) 1rem; gap: 0.2rem;
  }
  .site-header.menu-open .nav a { padding: 0.75rem 0.5rem; }
  .site-header.menu-open .nav .btn { display: inline-flex; margin-top: 0.5rem; }
  .q-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .result-score { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .score-head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .fit-split { grid-template-columns: 1fr; }
  .lock-steps { grid-template-columns: 1fr; }
  .lock-step { border-right: none !important; border-top: none; }
  .lock-step:first-child { border-top: 1px solid var(--line); }
  .cmp-wrap .matrix-scroll-hint, .matrix-scroll-hint { display: block; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .evidence-dl { grid-template-columns: 1fr; }
  .sticky-cta-text { font-size: 0.72rem; }
}
