/* AID Edge · Velorona — public landing page. Standalone: nothing here comes from the gated app bundle.
   Geist font © Vercel (basement.studio), SIL Open Font License 1.1. CSP: no inline styles. */
@font-face { font-family: 'Geist'; src: url('/landing/geist-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/landing/geist-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --bg: #0b0f12;
  --bg-1: #10161b;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --text-0: #f2f5f7;
  --text-1: #a9b4bc;
  --text-2: #808b93; /* demo --text-2 (#6e7a82) lifted slightly to meet WCAG AA */
  --accent: #4fd1e6;
  --chart-slate: #a5b1ba;
  --chart-cyan: #36c9df;
  --chart-blue: #5b9bff;
  --chart-gold: #c8ab6e;
  --accent-ink: #03181d;
  --mint: #62d9ad;
  --reduced: #c9d3d9;
  --untrusted: #8fa0a9;
  --error: #a9e6f0;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  background: var(--bg);
  color: var(--text-0);
  font: 400 17px/1.6 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 60; padding: 8px 14px; border-radius: 8px; background: var(--text-0); color: var(--bg); font-size: 14px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  height: 46px; padding: 0 20px; border-radius: 9px; border: 1px solid transparent; cursor: pointer; text-decoration: none;
  background: var(--accent); color: var(--accent-ink); font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  transition: background-color 140ms ease;
}
.btn:hover { background: #7fdfee; }
.btn-ghost { background: transparent; color: var(--text-0); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,0.05); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; border-radius: 8px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Header */
.nav { border-bottom: 1px solid var(--line); }
.nav-row { height: 65px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; }
.brand-by { font-weight: 400; font-size: 13px; color: var(--text-2); }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.nav-links a:not(.btn) { color: var(--text-1); text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--text-0); }

/* Hero */
.hero { position: relative; padding: 80px 0 0; overflow-x: clip; }
.hero::before { content: ''; position: absolute; right: -8%; top: 0; width: 760px; height: 640px; pointer-events: none; background: radial-gradient(closest-side,rgba(79,209,230,0.08),transparent); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 72px; align-items: center; }
.kicker { font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: 0.01em; }
h1 { margin-top: 18px; font-size: 68px; line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.lead { margin-top: 24px; font-size: 19px; line-height: 1.55; color: var(--text-1); max-width: 31em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Hero data-flow diagram */
.flow { position: relative; display: flex; flex-direction: column; }
.flow-step { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-left: 2px solid var(--line-2); }
.fs-k { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.fs-t { font-size: 17px; font-weight: 600; line-height: 1.3; }
.fs-s { font-size: 13.5px; color: var(--text-1); }
.fs-accent { border-left-color: var(--accent); }
.fs-accent .fs-k { color: var(--accent); }
.fs-out { border-left-color: var(--mint); }
.fs-side { margin-top: 6px; font-size: 12.5px; color: var(--untrusted); }
.fs-side::before { content: ''; display: inline-block; width: 14px; height: 1px; margin-right: 8px; vertical-align: middle; background: var(--untrusted); }
.flow-link { position: relative; height: 26px; margin-left: 0; border-left: 2px dashed var(--line-2); }
.flow-link i { position: absolute; left: -5px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: travel 2.4s linear infinite; }
@keyframes travel { from { top: -4px; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } to { top: 22px; opacity: 0; } }
.edge-box { position: relative; padding: 30px 14px 12px; margin-left: -16px; border: 1px dashed rgba(79,209,230,0.35); border-radius: 14px; background: rgba(79,209,230,0.035); }
.edge-box .flow-step, .edge-box .flow-link { margin-left: 14px; }
.edge-box + .flow-link, .flow-link + .edge-box { margin-left: 0; }
.edge-label { position: absolute; top: 9px; left: 16px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.states-inline { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.st { display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; }
.st-t { color: var(--mint); background: rgba(98,217,173,0.12); }
.st-r { color: var(--reduced); background: rgba(201,211,217,0.12); }
.st-u { color: var(--untrusted); background: rgba(143,160,169,0.13); }
.st-lg { font-size: 13px; padding: 4px 10px; }

/* Positioning rail */
.rail { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); margin-top: 88px; border-top: 1px solid var(--line-2); }
.rail li { position: relative; padding: 18px 20px 22px 0; }
.rail li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.r-k { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.r-v { display: block; margin-top: 6px; font-size: 15.5px; font-weight: 600; line-height: 1.35; color: var(--text-0); }
.r-accent { color: var(--accent); }

/* Sections */
.section { padding: 112px 0; }
.section + .section { border-top: 1px solid var(--line); }
.hero + .section { border-top: 0; }
.two { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: 72px; align-items: start; }
.num { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--accent); }
h2 { margin-top: 14px; font-size: 38px; line-height: 1.12; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
.s-head-wide { max-width: 50em; margin-bottom: 48px; }
.s-head-wide h2 { font-size: 34px; }
.note-line { margin-top: 28px; font-size: 16px; color: var(--text-1); max-width: 44em; }

/* 01 Problem */
.faults li { display: grid; grid-template-columns: 76px 150px 1fr; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.faults li:first-child { border-top: 1px solid var(--line); }
.faults svg { width: 76px; height: 24px; }
.faults b { font-weight: 600; font-size: 17px; }
.faults span { color: var(--text-1); font-size: 16px; }
.gl { fill: none; stroke: var(--text-1); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.gl-miss { fill: none; stroke: var(--reduced); stroke-width: 1.6; stroke-dasharray: 2 3; }
.gl-dim { fill: none; stroke: var(--reduced); stroke-width: 1.6; }
.gl-dot { fill: var(--reduced); }
.gl-bad { fill: none; stroke: var(--untrusted); stroke-width: 1.6; stroke-linecap: round; }

/* 02 Approach */
.lines { display: flex; flex-direction: column; gap: 22px; }
.line { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.line-k { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.line-on .line-k { color: var(--accent); }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; }
.chain i { font-style: normal; font-size: 15.5px; color: var(--text-1); }
.chain i + i::before { content: '→'; margin: 0 12px; color: var(--text-2); }
.chain .hl { color: var(--text-0); font-weight: 600; }
.line-on .chain .hl { color: var(--accent); }
.lines .note-line { margin-top: 0; }

/* 03 Architecture */
.arch { display: grid; grid-template-columns: minmax(0,1fr) 92px minmax(0,1.5fr) 92px minmax(0,1fr); align-items: center; }
.arch-k { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 12px; }
.arch-k-accent { color: var(--accent); }
.arch-list li { font-size: 15.5px; color: var(--text-0); padding: 8px 0; border-top: 1px solid var(--line); }
.arch-edge { padding: 22px 24px; border: 1px solid rgba(79,209,230,0.4); border-radius: 16px; background: linear-gradient(180deg,rgba(79,209,230,0.07),rgba(79,209,230,0.02)); }
.arch-pipe { counter-reset: p; }
.arch-pipe li { counter-increment: p; display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,0.07); }
.arch-pipe li::before { content: counter(p); grid-row: span 2; font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 3px; }
.arch-pipe b { font-weight: 600; font-size: 16px; }
.arch-pipe span { font-size: 13.5px; color: var(--text-1); }
.arch-log { margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(79,209,230,0.3); font-size: 13.5px; color: var(--text-1); }
.arch-arrow { position: relative; height: 1px; margin: 0 12px; background: var(--text-2); }
.arch-arrow::after { content: ''; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 1px solid var(--text-2); border-right: 1px solid var(--text-2); transform: rotate(45deg); }
.arch-arrow span { position: absolute; left: 0; right: 0; top: -22px; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--text-2); }
.arch-arrow-thin { background: none; border-top: 1px dashed var(--text-2); height: 0; }
.arch-arrow-thin::after { top: -5px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; }
.facts li { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-1); }
.facts li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }

/* 04 Trust states */
.states { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line-2); }
.state { padding: 26px 28px 8px 0; }
.state + .state { padding-left: 28px; border-left: 1px solid var(--line); }
.state-m { margin-top: 16px; font-size: 18px; line-height: 1.45; color: var(--text-0); }
.state-o { margin-top: 10px; font-size: 15px; color: var(--text-1); }
.state-o span { color: var(--text-2); }

/* 05 Comparison */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 11px; margin-bottom: 28px; }
.tabs button { font: inherit; font-size: 14.5px; color: var(--text-1); background: none; border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tabs button:hover { color: var(--text-0); }
.tabs button[aria-selected='true'] { background: rgba(255,255,255,0.08); color: var(--text-0); }
.sim { font-size: 10.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--reduced); border: 1px solid rgba(201,211,217,0.4); border-radius: 4px; padding: 1px 5px; margin-left: 6px; }
.scenario { display: grid; grid-template-columns: minmax(0,4fr) minmax(0,8fr); gap: 48px; align-items: start; }
.sc-k { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 14px; }
.sc-cap { margin-top: 10px; font-size: 14px; color: var(--text-1); }
.spark { width: 100%; height: auto; overflow: visible; }
.sp-axis { stroke: var(--line-2); stroke-width: 1; }
.sp-line { fill: none; stroke: var(--text-0); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.sp-gap { fill: rgba(201,211,217,0.08); stroke: rgba(201,211,217,0.5); stroke-dasharray: 4 4; }
.sp-flag { fill: rgba(143,160,169,0.08); stroke: rgba(143,160,169,0.55); stroke-dasharray: 4 4; }
.sp-lab { font-size: 11px; fill: var(--text-2); font-family: inherit; }
.sp-lab-r { fill: var(--reduced); }
.sp-lab-u { fill: var(--untrusted); }
.sc-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sc-table th, .sc-table td { text-align: left; vertical-align: top; padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line); }
.sc-table thead th { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); border-bottom-color: var(--line-2); }
.sc-table thead .th-on { color: var(--accent); }
.sc-table tbody th { width: 22%; font-weight: 400; font-size: 13.5px; color: var(--text-2); }
.sc-table td { width: 39%; color: var(--text-0); line-height: 1.45; }
.sc-table td.muted { color: var(--text-2); }
.sc-table td + td { padding-left: 16px; border-left: 1px solid var(--line); }
code { font-family: var(--mono); font-size: 12px; color: var(--accent); background: rgba(79,209,230,0.08); border-radius: 4px; padding: 1px 6px; margin-right: 6px; white-space: nowrap; }
.fine-note { margin-top: 22px; font-size: 13px; color: var(--text-2); max-width: 60em; }

/* 06 Evidence */
.ev { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 40px; }
.ev h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 8px; }
.kv > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.kv dt { font-weight: 600; font-size: 15.5px; }
.kv dd { font-size: 15.5px; color: var(--text-1); }

/* 07 Evidence & validation */
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.metrics > div { padding: 26px 24px 26px 0; }
.metrics > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.metrics dt { font-size: 44px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.metrics small { font-size: 18px; font-weight: 400; color: var(--text-2); letter-spacing: 0; }
.metrics dd { margin-top: 12px; font-size: 14.5px; line-height: 1.45; color: var(--text-1); }
.limit { margin-top: 18px; font-size: 15px; color: var(--text-1); }
.limit b { color: var(--untrusted); font-weight: 600; }
.val-grid { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: 72px; margin-top: 56px; }
.labels > div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.labels dt { color: var(--text-2); font-size: 13px; padding-top: 2px; }
.labels dd { color: var(--text-0); }
.labels a { color: var(--accent); text-underline-offset: 3px; }
.ladder li { position: relative; display: block; text-align: left; padding: 0 0 18px 28px; }
.ladder b, .ladder span { display: block; }
.ladder li::before { content: ''; position: absolute; left: 0; top: 5px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--mint); background: var(--mint); box-sizing: border-box; }
.ladder li::after { content: ''; position: absolute; left: 5px; top: 19px; bottom: 0; width: 2px; background: rgba(98,217,173,0.35); }
.ladder li:last-child::after { display: none; }
.ladder .todo::before { background: transparent; border-color: var(--text-2); }
.ladder b { font-size: 15.5px; font-weight: 600; }
.ladder span { font-size: 14px; color: var(--text-1); }
.ladder .todo b { color: var(--text-1); }

/* Access */
.access-grid { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: 72px; align-items: center; }
.sub { margin-top: 14px; font-size: 16px; color: var(--text-1); }
.form-row { display: flex; gap: 8px; }
input {
  height: 46px; min-width: 0; flex: 1 1 0; padding: 0 14px; border-radius: 9px;
  font: inherit; font-size: 16px; color: var(--text-0); background: rgba(255,255,255,0.02);
  border: 1px solid var(--line-2); transition: border-color 140ms ease, box-shadow 140ms ease;
}
#f-email { flex-grow: 1.3; }
input::placeholder { color: var(--text-2); }
input:hover { border-color: rgba(255,255,255,0.24); }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,209,230,0.2); }
input[aria-invalid='true'] { border-color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-top: 10px; }
.cf-turnstile:empty { margin: 0; }
.status { margin-top: 10px; font-size: 13.5px; color: var(--text-1); }
.status:empty { display: none; }
.status.error { color: var(--error); }
.fine { margin-top: 12px; font-size: 13px; color: var(--text-2); }
.fine a { color: var(--text-1); text-underline-offset: 3px; }
.done { display: flex; align-items: center; gap: 12px; min-height: 46px; font-size: 17px; color: var(--text-0); }
.done::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(98,217,173,0.15); }
.done:focus { outline: none; }
.done strong { font-weight: 600; word-break: break-all; }

/* Privacy sheet (opens from the "Privacy" link; works without JavaScript) */
.sheet { display: none; position: fixed; inset: 0; z-index: 50; padding: 16px; align-items: center; justify-content: center; background: rgba(3,5,7,0.72); }
.sheet:target { display: flex; }
.sheet-card { max-width: 520px; padding: 28px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--bg-1); }
.sheet-card h2 { margin: 0 0 10px; font-size: 18px; letter-spacing: 0; }
.sheet-card p { font-size: 14.5px; line-height: 1.65; color: var(--text-1); }
.sheet-card p a { color: var(--text-0); }
.sheet-close { display: inline-block; margin-top: 18px; font-size: 14px; color: var(--accent); }

/* Ecosystem footer — mirrors src/components/Footer.tsx (Tailwind values written out) */
.eco { border-top: 1px solid var(--line-2); background: var(--bg-1); }
.eco-wrap { width: 100%; max-width: 1104px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.eco-cols { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 24px; padding-top: 48px; padding-bottom: 32px; }
.eco-touch { grid-column: span 2; }
.eco h2 { margin: 0 0 16px; font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; line-height: 1.375; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); }
.eco ul { display: flex; flex-direction: column; gap: 8px; }
.eco ul a { font-size: 14px; color: var(--text-1); text-decoration: none; transition: color 150ms ease; }
.eco ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.eco .channels { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.15rem; margin: 16px 0 0 -0.4rem; }
.channels a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 999px; color: var(--text-2); }
.eco .channels a:hover, .eco .channels a:focus-visible { color: #fff; text-decoration: none; }
.channels svg { fill: currentColor; }
.eco-legal { border-top: 1px solid var(--line); padding: 16px 0; background: linear-gradient(135deg,#091014 0%,#102129 35%,#1C4650 100%); }
.eco-legal-row { display: flex; flex-direction: column; gap: 8px; }
.eco-legal p { font-size: 14px; color: var(--text-1); }
.eco-legal a { color: var(--text-1); text-decoration: none; }
.eco-legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.eco-legal a.plain { color: inherit; }
.eco-legal .cookies { font-size: 13px; }
@media (min-width:640px) {
  .eco-wrap { padding-left: 32px; padding-right: 32px; }
  .eco-cols { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .eco-touch { grid-column: span 1; }
  .eco-legal-row { flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
  .eco-legal .cookies { flex-basis: 100%; }
}
@media (min-width:1024px) {
  .eco-cols { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .channels a { width: 36px; height: 36px; }
}
@media (min-width:1280px) { .eco-wrap { padding-left: 0; padding-right: 0; } }

/* Responsive */
@media (max-width:1080px) {
  .nav-anchor { display: none; }
  h1 { font-size: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .flow { max-width: 520px; }
  .rail { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rail li, .rail li + li { padding: 16px 16px 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .rail li:last-child { grid-column: 1 / -1; }
  .two, .access-grid, .val-grid { grid-template-columns: 1fr; gap: 32px; }
  .arch { grid-template-columns: 1fr; gap: 0; }
  .arch-arrow { width: 1px; height: 44px; margin: 6px 0 6px 20px; }
  .arch-arrow::after { right: -4px; top: auto; bottom: 0; transform: rotate(135deg); }
  .arch-arrow span { left: 14px; right: auto; top: 14px; text-align: left; white-space: nowrap; }
  .arch-arrow-thin { border-top: 0; border-left: 1px dashed var(--text-2); width: 0; height: 44px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metrics > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .metrics > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .scenario { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width:640px) {
  body { font-size: 16px; }
  .hero { padding-top: 44px; }
  h1 { font-size: 40px; line-height: 1.05; }
  .lead { font-size: 17px; }
  .cta-row .btn { width: 100%; }
  .rail { margin-top: 56px; }
  .section { padding: 64px 0; }
  h2, .s-head-wide h2 { font-size: 27px; }
  .s-head-wide { margin-bottom: 32px; }
  .faults li { grid-template-columns: 64px 1fr; gap: 4px 14px; }
  .faults svg { width: 64px; grid-row: span 2; }
  .line { grid-template-columns: 1fr; gap: 8px; }
  .states { grid-template-columns: 1fr; }
  .state, .state + .state { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .tabs { display: flex; }
  .tabs button { flex: 1 1 auto; justify-content: center; }
  .sc-table thead { display: none; }
  .sc-table, .sc-table tbody, .sc-table tr, .sc-table th, .sc-table td { display: block; width: auto; }
  .sc-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .sc-table th, .sc-table td, .sc-table td + td { border: 0; padding: 3px 0; }
  .sc-table td::before { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); margin-top: 6px; }
  .sc-table td:nth-of-type(1)::before { content: 'Without validation'; }
  .sc-table td:nth-of-type(2)::before { content: 'With validation'; color: var(--accent); }
  .sc-table tbody th { width: auto; color: var(--text-0); font-weight: 600; font-size: 14px; }
  .ev { grid-template-columns: 1fr; gap: 28px; }
  .kv > div, .labels > div { grid-template-columns: 1fr; gap: 2px; }
  .metrics { grid-template-columns: 1fr; }
  .metrics > div, .metrics > div + div { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .metrics > div:first-child { border-top: 0; }
  .metrics dt { font-size: 38px; }
  .form-row { flex-direction: column; }
  input, .form-row .btn { flex: none; width: 100%; }
  .brand-by { display: none; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  .flow-link i { animation: none; display: none; }
  .btn, input { transition: none; }
}

/* Shared by the 404 page and denial pages */
.deny { max-width: 560px; margin: 18vh auto; padding: 0 24px; }
.deny h1 { font-size: 32px; line-height: 1.2; letter-spacing: -0.03em; }
.deny p { color: var(--text-1); margin-top: 12px; }
.deny a { color: var(--accent); }

/* One-screen landing (index.html). The full page lives at /overview. */
.one-main { padding-top: 48px; padding-bottom: 64px; }
.one-hero { max-width: 840px; }
.one-eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.one-h1 { margin-top: 16px; font-size: 56px; line-height: 1.05; letter-spacing: -0.03em; }
.one-lead { margin-top: 24px; font-size: 19px; line-height: 1.55; color: var(--text-0); }
.one-pain { margin-top: 8px; font-size: 19px; line-height: 1.55; color: var(--text-1); }
.one-money { margin-top: 16px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.one-money span { font-size: 13px; }
.one-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.one-built { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.one-built-title { font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.one-icons { margin-top: 20px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.one-icons a { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 12px; height: 104px; box-sizing: border-box; padding: 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text-1); font-size: 14px; line-height: 1.35; transition: border-color 140ms ease, color 140ms ease; }
.one-icons a:hover { border-color: var(--line-2); color: var(--text-0); }
.one-icons svg { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.one-team { margin-top: 24px; font-size: 14px; color: var(--text-2); }
@media (max-width: 900px) {
  .one-h1 { font-size: 40px; }
  .one-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.brief-card { width: 100%; max-width: 480px; }
.brief-card form { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.brief-card input, .brief-card textarea { width: 100%; }
textarea {
  font: inherit; font-size: 15px; color: var(--text-0); background: var(--bg); resize: vertical;
  padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 9px;
}
textarea::placeholder { color: var(--text-2); }
textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,209,230,0.2); }
textarea[aria-invalid='true'], .brief-card input[aria-invalid='true'] { border-color: var(--accent); }
.brief-actions { display: flex; align-items: center; gap: 16px; }
.brief-actions .sheet-close { margin-top: 0; }
.brief-card input { flex: none; }
.brief-card .status.error { color: var(--accent); }

/* Results row (values filled at build time from the pages' own data) */
.one-results-title { margin-top: 24px; }
.one-results { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.one-results a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 148px; box-sizing: border-box; padding: 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color 140ms ease; }
.one-results a:hover { border-color: var(--line-2); }
.one-num { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--accent); }
.one-cap { font-size: 13px; color: var(--text-1); }
@media (max-width: 900px) { .one-results { grid-template-columns: 1fr; } }

/* Polish: one-screen landing on phones (nav wraps under the brand, 20px gutters like the app) */
@media (max-width: 760px) {
  body.one .wrap { padding: 0 20px; }
  body.one .nav-row { height: auto; flex-wrap: wrap; gap: 8px 16px; padding-top: 14px; padding-bottom: 14px; }
  body.one .nav-links { flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
  .one-results a { height: 148px; }
}
.one-cta .btn { min-width: 220px; }

/* Shared ring gauge (markup from src/components/gauge/ringGaugeSvg.ts): same size and cyan on every page */
.rg { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: #36c9df; }
.rg svg { width: 96px; height: 96px; }
.rg-label { max-width: 160px; font-size: 13px; line-height: 1.35; color: #a9b4bc; }

/* Trust path strip (static; one fade-in, off under prefers-reduced-motion) */
.tp { margin-top: 32px; padding: 12px 24px; border: 1px solid var(--line); border-radius: 12px; animation: tp-in 600ms ease-out both; }
.tp svg { display: block; width: 100%; height: auto; max-height: 160px; overflow: visible; }
.tp svg.tp-narrow { display: none; }
.tp-t { font-size: 14px; font-weight: 400; fill: var(--text-0); }
.tp-c { font-size: 12px; fill: var(--text-1); }
.tp-label { font-size: 13px; font-weight: 600; }
.tp-slate { stroke: var(--chart-slate); }
.tp-cy { stroke: var(--chart-cyan); }
.tp-gold { stroke: var(--chart-gold); }
.tp-cy-fill { fill: var(--chart-cyan); }
.tp-gold-fill { fill: var(--chart-gold); }
.tp-cy-t { fill: var(--chart-cyan); }
.tp-gold-t { fill: var(--chart-gold); }
@keyframes tp-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tp { animation: none; } }
@media (max-width: 640px) {
  .tp { padding: 16px; }
  .tp svg.tp-wide { display: none; }
  .tp svg.tp-narrow { display: block; max-height: none; }
}
