/* EEG page layout and illustrations. Shared tokens and components live in theme.css. */

[data-theme="dark"] {
  --accent: #b39bff; --accent-2: #7fd8ff; --accent-ink: #140b2e;
  --accent-soft: rgba(179, 155, 255, .13); --glow: rgba(179, 155, 255, .34);
  --hero-wash: radial-gradient(60% 55% at 50% 0%, rgba(179, 155, 255, .17), transparent 70%);
  --signal: #7fd8ff; --noise: #f2b45c; --air: #b39bff;
  --liner-a: #3a3848; --liner-b: #1d1c26; --liner-c: #0e0d14;
  --ag-a: #d9dadf; --ag-b: #8d8a92; --ag-c: #5d5866;
  --bl-a: rgba(200, 186, 255, .42); --bl-b: rgba(120, 96, 220, .28);
  --po-a: #c9c4b8; --po-b: #f1ede4;
  --skin-a: #c58f78; --skin-b: #9c6b58; --skin-c: #5b3d34; --hair: #a5826a;
  --map-a: #1f2028; --map-b: #14151b;
  --floor-a: rgba(179, 155, 255, .14);
  --pcb: #17142a;
}
[data-theme="light"] {
  --accent: #6b4fd8; --accent-2: #1a7fb8; --accent-ink: #ffffff;
  --accent-soft: rgba(107, 79, 216, .1); --glow: rgba(107, 79, 216, .24);
  --hero-wash: radial-gradient(60% 55% at 50% 0%, rgba(107, 79, 216, .12), transparent 70%);
  --signal: #1a7fb8; --noise: #b86a00; --air: #6b4fd8;
  --liner-a: #4a4858; --liner-b: #2a2934; --liner-c: #16151d;
  --ag-a: #eef0f3; --ag-b: #a3a0a8; --ag-c: #6b6672;
  --bl-a: rgba(150, 128, 240, .38); --bl-b: rgba(107, 79, 216, .3);
  --po-a: #d7d2c6; --po-b: #fbf8f2;
  --skin-a: #d6a189; --skin-b: #b88069; --skin-c: #8c5c4b; --hair: #4a382c;
  --map-a: #f1eff8; --map-b: #e3e0ef;
  --floor-a: rgba(40, 30, 80, .12);
  --pcb: #1f1a38;
}

/* SVG gradient stops follow the theme */
.ma { stop-color: var(--metal-a); } .mb { stop-color: var(--metal-b); } .mc { stop-color: var(--metal-c); } .md { stop-color: var(--metal-d); }
.fa { stop-color: var(--floor-a); } .fb { stop-color: var(--bg); stop-opacity: 0; }
.ag-a { stop-color: var(--ag-a); } .ag-b { stop-color: var(--ag-b); } .ag-c { stop-color: var(--ag-c); }
.ln-a { stop-color: var(--liner-a); } .ln-b { stop-color: var(--liner-b); } .ln-c { stop-color: var(--liner-c); }
.bl-a { stop-color: var(--bl-a); } .bl-b { stop-color: var(--bl-b); }
.po-a { stop-color: var(--po-a); } .po-b { stop-color: var(--po-b); }
.sk-a { stop-color: var(--skin-a); } .sk-b { stop-color: var(--skin-b); } .sk-c { stop-color: var(--skin-c); }
.hm-a { stop-color: var(--map-a); } .hm-b { stop-color: var(--map-b); }
.led-a { stop-color: var(--accent); stop-opacity: .9; } .led-b { stop-color: var(--accent); stop-opacity: 0; }

/* Shared panel bar */
.panel-bar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 22px; border-bottom: 1px solid var(--line); font: 500 11px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.panel-bar .hint { color: var(--accent); }

/* Contact cross-section */
.xsec { width: 100%; height: auto; }
.xs-controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 16px 20px 20px; border-top: 1px solid var(--line); margin-top: auto; }
.xsec .shell { fill: var(--surface-3); stroke: var(--line-strong); }
.xsec .hatch { fill: var(--text); opacity: .1; }
.xsec .liner-pad { fill: var(--liner-b); }
.xsec .knit { stroke: #fff; stroke-opacity: .1; stroke-width: 1; }
.xsec .carrier { fill: #2a2833; stroke: rgba(255, 255, 255, .12); }
[data-theme="light"] .xsec .carrier { fill: #4a4856; }
.xsec .tube { fill: none; stroke: var(--metal-c); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.xsec .air-dash { fill: none; stroke: var(--air); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; animation: flow-dash 1.2s linear infinite; }
.xsec .restrictor { fill: var(--metal-b); stroke: var(--metal-a); }
.xsec .bladder { stroke: var(--air); stroke-width: 1.5; }
.xsec .bladder-hi { fill: #fff; opacity: .25; }
.xsec .plate { fill: var(--po-b); stroke: rgba(0, 0, 0, .2); }
.xsec .plate-slot { fill: rgba(40, 30, 20, .35); }
.xsec .agcl { fill: var(--ag-c); opacity: .9; }
.xsec .lead { fill: none; stroke: var(--accent-2); stroke-width: 2.5; stroke-linecap: round; }
.xsec .boot { fill: #4c4958; stroke: rgba(255, 255, 255, .22); }
.xsec .skin-line { stroke: rgba(0, 0, 0, .25); stroke-width: 1.5; }
.xsec .strand { fill: none; stroke: var(--hair); stroke-width: 2; stroke-linecap: round; }
.xsec .hair-dense .strand { stroke-width: 2.2; }
.xsec .leader { fill: none; stroke: var(--line-strong); }
.xsec .xs-lab { fill: var(--text-2); font: 600 12px var(--font-mono); letter-spacing: .08em; paint-order: stroke; stroke: var(--surface); stroke-width: 5px; stroke-linejoin: round; }
.xsec .leader-dot { fill: var(--accent); }
.xsec .skin-lab { fill: rgba(255, 255, 255, .7); stroke: none; }
.xsec .derm-line { fill: none; stroke: rgba(0, 0, 0, .14); stroke-width: 1.5; }
.xsec .xs-lab.warn { fill: var(--warn); }
.xsec .gap-mark { stroke: var(--warn); stroke-width: 2; stroke-dasharray: 3 3; }
.xsec .scale path { stroke: var(--muted); stroke-width: 1.5; fill: none; }
.xs-bladder { transform-box: fill-box; transform-origin: 50% 0; transition: transform .7s var(--ease); }
.xs-stack, .xs-skin { transition: transform .7s var(--ease); }
.xs-panel[data-air="off"] .xs-bladder { transform: scaleY(.5); }
.xs-panel[data-air="off"] .xs-stack { transform: translateY(-20px); }
.xs-panel[data-air="off"] .air-dash { animation: none; opacity: .25; }
.xs-panel[data-site="bare"] .xs-skin { transform: translateY(-119px); }
.xs-panel[data-site="hair"] .xs-skin { transform: translateY(-79px); }
.xs-panel[data-site="dense"] .xs-skin { transform: translateY(-54px); }
.xs-panel[data-site="bare"] .face-petal, .xs-panel:not([data-site="bare"]) .face-flat { display: none; }
.xs-panel:not([data-site="hair"]) .hair-ord, .xs-panel:not([data-site="dense"]) .hair-dense { display: none; }
.xs-gap { opacity: 0; transition: opacity .4s; }
.xs-panel[data-site="dense"][data-air="on"] .xs-gap { opacity: 1; }

/* Coverage map */
.coverage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.map-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.layer-toggles { display: flex; gap: 8px; }
.chip-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; font-size: 14px; color: var(--muted); transition: border-color .2s, color .2s, background .2s; }
.chip-toggle:hover { color: var(--text); border-color: var(--accent); }
.chip-toggle[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.sw { width: 14px; height: 3px; border-radius: 2px; }
.sw-air { background: var(--air); } .sw-lead { background: var(--accent-2); }
.ct-detail { margin-top: 24px; padding: 22px 24px; }
.ct-detail h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.015em; font-weight: 620; }
.ct-detail .eyebrow { margin-bottom: 10px; }
.ct-detail p:last-child { margin: 0; color: var(--text-2); font-size: 15px; }
.map-figure { margin: 0; padding: 18px 18px 0; }
.headmap { width: 100%; height: auto; max-width: 520px; margin: 0 auto; }
.headmap .hm-head { stroke: var(--line-strong); stroke-width: 2; }
.headmap .hm-ear, .headmap .hm-nose { fill: var(--map-b); stroke: var(--line-strong); stroke-width: 2; }
.headmap .hm-hairline { fill: none; stroke: var(--faint); stroke-dasharray: 4 6; stroke-width: 1.4; }
.headmap .hm-cap { fill: var(--faint); font: 600 11px var(--font-mono); letter-spacing: .14em; }
.headmap .hm-air circle, .headmap .hm-air path { fill: none; stroke: var(--air); stroke-opacity: .5; stroke-width: 2; stroke-dasharray: 6 5; }
.headmap .hm-leads path { fill: none; stroke: var(--accent-2); stroke-opacity: .45; stroke-width: 1.3; transition: opacity .35s; }
.headmap .hm-exit { fill: var(--metal-c); }
.map-figure[data-air="off"] .hm-air, .map-figure[data-leads="off"] .hm-leads { display: none; }
.headmap .ct { cursor: pointer; outline: none; transition: opacity .35s; }
.headmap .ct-hit { fill: transparent; stroke: transparent; stroke-width: 2; transition: fill .2s, stroke .2s; }
.headmap .ct:hover .ct-hit, .headmap .ct:focus-visible .ct-hit { fill: var(--accent-soft); stroke: var(--accent); stroke-opacity: .5; }
.headmap .ct[aria-pressed="true"] .ct-hit { fill: var(--accent-soft); stroke: var(--accent); }
.headmap .ct-face { fill: var(--metal-b); stroke: var(--metal-a); stroke-width: 1.5; }
.headmap .ct-petal { fill: var(--metal-b); stroke: var(--metal-a); stroke-width: 1; }
.map-figure[data-count="16"] .x32 { opacity: .12; }
.map-figure[data-count="16"] .ct.x32 { pointer-events: none; }
.map-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; padding: 14px 0 18px; font: 500 12px var(--font-mono); color: var(--muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 12px; height: 12px; border-radius: 50%; background: var(--metal-b); box-shadow: inset 0 0 0 1px var(--metal-a); }
.lg.petal { background: radial-gradient(circle, var(--metal-b) 0 2px, transparent 2.5px) 0 0 / 6px 6px; box-shadow: none; }
@media (max-width: 900px) { .coverage { grid-template-columns: 1fr; } }

/* Noise explainer */
.noise { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 24px; align-items: start; }
.source-tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.source-tabs button { display: flex; align-items: baseline; gap: 18px; padding: 20px 6px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; font-size: 20px; letter-spacing: -.015em; color: var(--muted); transition: color .2s, padding .3s var(--ease); }
.source-tabs button span { font: 500 12px var(--font-mono); color: var(--faint); }
.source-tabs button:hover { color: var(--text-2); }
.source-tabs button[aria-pressed="true"] { color: var(--text); padding-left: 14px; box-shadow: inset 3px 0 0 var(--accent); }
.scope-panel { margin: 0; }
.scope-art { padding: 14px 16px 6px; background: var(--bg-raised); }
.scope { width: 100%; height: auto; }
.scope .grid { stroke: var(--line); stroke-width: 1; }
.scope .grid.mid { stroke: var(--line-strong); }
.scope .trace { fill: none; stroke: var(--signal); stroke-width: 2.4; stroke-linejoin: round; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--signal) 45%, transparent)); }
.scope .noise-trace { fill: none; stroke: var(--noise); stroke-width: 1.4; stroke-opacity: .55; stroke-dasharray: 3 3; }
.scope .flag { fill: color-mix(in srgb, var(--noise) 16%, transparent); stroke: var(--noise); stroke-opacity: .6; stroke-dasharray: 4 4; }
.scope .sc-lab { fill: var(--muted); font: 600 12px var(--font-mono); letter-spacing: .12em; }
.scope-foot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.scope-foot p { margin: 0; color: var(--text-2); font-size: 15px; }
.scope-foot b { color: var(--text); }
.fix-toggle { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); font-size: 14px; font-weight: 560; color: var(--text-2); }
.fix-toggle .knob { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background .25s; }
.fix-toggle .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .25s var(--ease), background .25s; }
.fix-toggle[aria-pressed="true"] { color: var(--text); border-color: var(--accent); }
.fix-toggle[aria-pressed="true"] .knob { background: var(--accent); }
.fix-toggle[aria-pressed="true"] .knob::after { transform: translateX(14px); background: var(--accent-ink); }
@media (max-width: 900px) { .noise { grid-template-columns: 1fr; } .source-tabs button { font-size: 17px; padding: 14px 6px; } }
@media (max-width: 520px) { .scope-foot { grid-template-columns: 1fr; } .fix-toggle { justify-self: start; } }

/* Illustration palette: one neutral head, our violet liner, muted incumbents */
[data-theme="dark"] {
  --head-a: #4b525c; --head-b: #2d3239; --head-c: #1a1e23; --hair-c: #4a403a; --head-line: rgba(255, 255, 255, .08);
  --cap-ours: #2a2638; --shell: rgba(205, 192, 255, .07); --shell-rim: rgba(205, 192, 255, .42);
  --gel-cap: #3a4048; --gel-blob: rgba(160, 196, 222, .5); --gel-ring: #c9d1d6; --band-col: #4c535b; --pod: #8d969d;
  --mod-a: #2a2933; --mod-b: #3f3d4c;
}
[data-theme="light"] {
  --head-a: #f6f7f8; --head-b: #dde1e5; --head-c: #c3c9cf; --hair-c: #7a6e66; --head-line: rgba(0, 0, 0, .1);
  --cap-ours: #37314f; --shell: rgba(90, 70, 190, .06); --shell-rim: rgba(90, 70, 190, .4);
  --gel-cap: #9aa2aa; --gel-blob: rgba(90, 140, 175, .45); --gel-ring: #f4f6f8; --band-col: #7a828a; --pod: #c3c9ce;
  --mod-a: #34333e; --mod-b: #4b4958;
}
.hd-a { stop-color: var(--head-a); } .hd-b { stop-color: var(--head-b); } .hd-c { stop-color: var(--head-c); }
.hd-skin { stroke: var(--head-line); stroke-width: 1; }
.hd-hair { fill: var(--hair-c); }
.hd-hairline { fill: none; stroke: none; }
.hd-ear { fill: var(--head-b); stroke: var(--head-line); stroke-width: 1.5; }
.hd-brow { fill: none; stroke: var(--head-line); stroke-width: 2; stroke-linecap: round; }
.cap-ours { fill: var(--cap-ours); }
.cap-ours-rim { fill: none; stroke: var(--accent); stroke-width: 3; stroke-opacity: .75; }
.shell { fill: var(--shell); stroke: var(--shell-rim); stroke-width: 2; }
.air-line { fill: none; stroke: var(--air); stroke-width: 1.6; stroke-opacity: .75; }
.air-in path { fill: none; stroke: var(--air); stroke-width: 3; stroke-linecap: round; stroke-opacity: .8; }
.ct-ours { fill: var(--metal-b); stroke: var(--metal-a); stroke-width: 1.2; }
.ct-ours-hi { fill: #fff; opacity: .55; }
.loom-jacket { fill: none; stroke: #0d0c12; stroke-width: 9; stroke-linecap: round; }
.loom-braid { fill: none; stroke: var(--metal-c); stroke-width: 6; stroke-dasharray: 2 2.5; stroke-linecap: butt; }
.cap-gel { fill: var(--gel-cap); }
.cap-gel-rim { fill: none; stroke: var(--line-strong); stroke-width: 3; }
.gel-wire { fill: none; stroke: var(--metal-c); stroke-width: 1; stroke-opacity: .6; }
.gel-blob { fill: var(--gel-blob); }
.gel-ring { fill: var(--gel-ring); stroke: var(--metal-a); stroke-width: 1; }
.gel-hole { fill: #2a2f35; }
.gel-strap { fill: none; stroke: var(--gel-cap); stroke-width: 5; stroke-linecap: round; }
.gel-cable { fill: none; stroke: #23272c; stroke-width: 7; stroke-linecap: round; }
[data-theme="light"] .gel-cable { stroke: #5c636b; }
.sy-barrel { fill: rgba(255, 255, 255, .12); stroke: var(--muted); stroke-width: 1.2; }
.sy-plunger, .sy-tip { fill: var(--muted); }
.sy-gel { fill: var(--gel-blob); }
.clock circle { fill: var(--surface); stroke: var(--muted); stroke-width: 2; }
.clock path { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.residue path { fill: var(--gel-blob); }
.band-strap { fill: none; stroke: var(--band-col); stroke-width: 18; }
.band-arm { fill: none; stroke: var(--band-col); stroke-width: 9; stroke-linecap: round; }
.band-pod { fill: var(--pod); stroke: var(--metal-a); stroke-width: 1; }
.band-reach { fill: none; stroke: var(--warn); stroke-width: 1.6; stroke-dasharray: 3 6; stroke-linecap: round; stroke-opacity: .85; }
.mk circle { stroke-width: 2; }
.mk text { font: 700 13px var(--font-sans); }
.mk-today circle { fill: var(--surface); stroke: var(--warn); }
.mk-today text { fill: var(--warn); }
.mk-ours circle { fill: var(--accent); stroke: var(--surface); }
.mk-ours text { fill: var(--accent-ink); }
.mk-lead { fill: none; stroke: var(--muted); stroke-width: 1.2; }

/* Hero */
.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-wash); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-copy .chip { margin: 0 0 26px; }
.hero .display { font-size: clamp(36px, 4.6vw, 66px); line-height: 1.02; }
.hero .display .grad { display: block; }
.hero-figure { margin: 0; }
.hero-art { width: 100%; height: auto; }
.hero-art .arm { fill: var(--surface); fill-opacity: .5; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 6 6; }
.hero-art .strap { fill: var(--surface-3); stroke: var(--line-strong); }
.hero-art .mod-top { fill: var(--mod-b); }
.hero-art .mod-body { fill: var(--mod-a); stroke: rgba(255, 255, 255, .1); }
.hero-art .mod-seam { fill: rgba(255, 255, 255, .08); }
.hero-art .mod-led { fill: var(--accent); }
.hero-art .mod-port { fill: var(--metal-c); }
.hero-art .in-bg { fill: var(--bg-raised); }
.hero-art .in-skin { fill: var(--skin-b); }
.hero-art .in-skinline { stroke: var(--skin-a); stroke-width: 3; }
.hero-art .in-hair { fill: none; stroke: var(--hair); stroke-width: 3; stroke-linecap: round; }
.hero-art .in-liner { fill: var(--liner-b); }
.hero-art .in-bladder { fill: var(--bl-a); stroke: var(--air); stroke-width: 1.5; }
.hero-art .in-plate { fill: var(--po-b); }
.hero-art .in-petal { fill: var(--metal-b); stroke: var(--metal-a); stroke-width: 1; }
.hero-art .in-agcl { fill: var(--ag-c); }
.hero-art .in-ring { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.hero-art .in-link { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 3 4; }
.hero-art .in-dot { fill: none; stroke: var(--accent); stroke-width: 2; }
.hero-art .callout path { fill: none; stroke: var(--line-strong); }
.hero-art .callout circle { fill: var(--accent); }
.hero-art .c-a { fill: var(--text); font: 600 16px var(--font-sans); }
.hero-art .c-b { fill: var(--muted); font: 500 13.5px var(--font-mono); }
.hero-legend { display: none; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: lg; }
.hero-legend li { counter-increment: lg; position: relative; padding: 6px 0 6px 34px; font-size: 15px; color: var(--text-2); border-top: 1px solid var(--line); }
.hero-legend li::before { content: counter(lg); position: absolute; left: 0; top: 7px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font: 700 12px/1 var(--font-sans); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art .callout { display: none; }
  .hero-legend { display: block; }
  .hero-figure { max-width: 600px; }
}

/* Comparison */
.compare { padding: var(--band) 0; background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.compare-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.compare-head .lede { margin: 0; }
.cmp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }
.cmp-card { margin: 0; display: flex; flex-direction: column; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); padding: 22px 22px 24px; }
.cmp-card.ours { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 60%); }
.cmp-label { display: flex; flex-direction: column; gap: 2px; }
.cmp-label b { font-size: 20px; letter-spacing: -.015em; font-weight: 640; }
.cmp-label span { font: 500 12px/1.4 var(--font-mono); letter-spacing: .04em; color: var(--muted); }
.cmp-card.today .cmp-label b { color: var(--text-2); }
.cmp-art { width: 100%; height: auto; margin: 6px 0 10px; }
.pain-list { list-style: none; margin: 0; padding: 0; }
.pain-list li { position: relative; padding: 9px 0 9px 36px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; color: var(--text-2); }
.pain-list li::before { content: attr(value); position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--font-sans); }
.today .pain-list li::before { border: 2px solid var(--warn); color: var(--warn); width: 18px; height: 18px; }
.ours .pain-list li { color: var(--text); }
.ours .pain-list li::before { background: var(--accent); color: var(--accent-ink); }
@media (min-width: 981px) {
  .cmp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .cmp-card.today { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); grid-template-areas: "art label" "art list"; grid-template-rows: auto 1fr; gap: 6px 22px; align-items: start; }
  .cmp-card.today .cmp-label { grid-area: label; padding-top: 8px; }
  .cmp-card.today .cmp-art { grid-area: art; margin: 0; align-self: center; }
  .cmp-card.today .pain-list { grid-area: list; margin-top: 8px; }
  .cmp-card.ours { grid-column: 2; grid-row: 1 / span 2; }
  .today .cmp-art .mk circle { r: 13px; }
  .today .cmp-art .mk text { font-size: 15px; }
  .cmp-card.ours .cmp-art { max-width: 470px; margin-left: auto; margin-right: auto; }
}
.cmp-table { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-strong); }
.cmp-row { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px 32px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.cmp-row b { font-weight: 620; }
.cmp-row span:nth-child(2) { color: var(--muted); }
.cmp-row span:nth-child(3) { color: var(--text); }
.cmp-th { padding: 12px 0; font: 500 12px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.cmp-th span:nth-child(n) { color: var(--muted); }
.cmp-th span:nth-child(3) { color: var(--accent); }
.cmp-row.honest b::after { content: " · the trade-off"; color: var(--warn); font-weight: 500; }
@media (max-width: 980px) {
  .compare-head { grid-template-columns: 1fr; }
  .cmp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cmp-card.ours { grid-column: 1 / -1; }
  .cmp-card.ours .cmp-art { max-width: 380px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) {
  .cmp-grid { gap: 10px; }
  .cmp-card { padding: 14px 12px 16px; }
  .cmp-card.today .cmp-label b { font-size: 17px; }
  .today .cmp-art .mk circle { r: 22px; }
  .today .cmp-art .mk text { font-size: 26px; }
  .today .pain-list li { font-size: 14px; padding-left: 28px; }
  .cmp-th { display: none; }
  .cmp-row { grid-template-columns: 1fr; gap: 6px; }
  .cmp-row span::before { display: block; font: 500 11px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .cmp-row span:nth-child(2)::before { content: "Today"; }
  .cmp-row span:nth-child(3)::before { content: "This design"; color: var(--accent); }
}

/* Proof band */
.proof { padding: clamp(56px, 7vw, 96px) 0; }
.proof-note { margin: 0 0 28px; font: 500 12px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.proof-grid > div { padding-top: 22px; border-top: 2px solid var(--accent); }
.proof-grid strong { display: block; font-size: clamp(52px, 7vw, 96px); line-height: 1; letter-spacing: -.045em; font-weight: 650; }
.proof-grid p { margin: 16px 0 0; max-width: 330px; color: var(--text-2); font-size: 17px; }
@media (max-width: 760px) { .proof-grid { grid-template-columns: 1fr; gap: 32px; } }

/* How a contact works */
.how { padding: clamp(72px, 9vw, 128px) 0; }
#coverage, #noise, #faq { padding: clamp(72px, 9vw, 128px) 0; }
.how-head .headline, .compare-head .headline, .coverage .headline { font-size: clamp(32px, 4.2vw, 56px); }
.how-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.how-head .lede { margin: 0; }
.how-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.xs-panel { margin: 0; display: flex; flex-direction: column; }
.xs-art { padding: 8px 0 0; }
.xsec .mk circle { r: 11px; }
.xs-readout { padding: 4px 22px 20px; }
.xs-readout p { margin: 0 0 12px; color: var(--text-2); font-size: 15px; }
.xs-readout b { color: var(--text); }
.xs-readout .xs-note { padding: 12px 14px; border-radius: var(--r-md); background: var(--accent-soft); }
.xs-readout .xs-scale { margin: 0; font-size: 13px; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 14px 0 14px 46px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 15px; line-height: 1.5; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 700 14px/1 var(--font-sans); }
.steps b { display: block; color: var(--text); font-size: 17px; font-weight: 620; letter-spacing: -.01em; margin-bottom: 2px; }
@media (max-width: 980px) { .how-head, .how-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .xsec .mk circle { r: 16px; }
  .xsec .mk text { font-size: 19px; }
  .xsec .xs-ctx, .xsec .mk-lead { display: none; }
  .xs-controls { padding: 14px; }
  .xs-controls .seg button { padding: 8px 12px; font-size: 13px; }
  .xs-readout { padding: 4px 16px 18px; }
}

/* Coverage and noise: label sizes */
.headmap .hm-cap { font-size: 13px; }
.coverage .split-col .lede { margin-top: 22px; }
@media (max-width: 640px) {
  .headmap .hm-cap { font-size: 22px; }
  .scope .sc-lab { font-size: 24px; }
}

/* Engineering detail */
.detail { padding: clamp(64px, 8vw, 112px) 0; }
.detail-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 32px 64px; }
.detail-intro { margin: 12px 0 0; color: var(--muted); max-width: 360px; }
.disclosures details { border-bottom: 1px solid var(--line); }
.disclosures details:first-child { border-top: 1px solid var(--line); }
.disclosures summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 560; }
.disclosures summary::-webkit-details-marker { display: none; }
.disclosures summary::after { content: "+"; color: var(--muted); transition: transform .25s var(--ease); }
.disclosures details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.disclosures p, .disclosures li { color: var(--text-2); font-size: 15px; }
.disclosures p { margin: 0 0 20px; }
.path-list, .mat-list { margin: 0 0 20px; padding-left: 20px; }
.path-list li, .mat-list li { margin-bottom: 8px; }
.path-list b, .mat-list b { color: var(--text); }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }

/* Where this goes next */
.next { padding: clamp(64px, 8vw, 112px) 0; }
.next-head { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 16px 64px; margin-bottom: 36px; }
.next-head p { margin: 0; color: var(--muted); max-width: 680px; }
.next-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
.next-grid li { padding: 18px 0 22px; border-top: 1px solid var(--line); }
.next-grid b { display: block; font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.next-grid span { display: block; font-size: 14px; line-height: 1.5; color: var(--muted); }
@media (max-width: 980px) { .next-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .next-head { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .next-grid { grid-template-columns: 1fr; } .next-grid li { padding: 14px 0 16px; } }

/* Status */
.status { padding: clamp(64px, 8vw, 112px) 0; }
.status .headline, #faq .headline { font-size: clamp(32px, 4.2vw, 56px); }
.status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(32px, 4vw, 48px); }
.st-col { padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.st-col p { margin: 14px 0 0; color: var(--text-2); font-size: 15px; }
.st-tag { display: inline-block; padding: 5px 10px; border-radius: 999px; font: 600 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.st-tag.exists { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.st-tag.unproven { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.st-tag.nextstep { color: var(--accent); background: var(--accent-soft); }
.status-foot { margin: 24px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .status-grid { grid-template-columns: 1fr; } }

/* Costs */
.costs { padding: clamp(64px, 8vw, 104px) 0; }
.cost-head { max-width: 760px; }
.cost-head p { color: var(--text-2); margin: 0; }
.cost-head .cost-big { margin: 10px 0 12px; font-size: clamp(30px, 3.4vw, 40px); font-weight: 640; letter-spacing: -.03em; color: var(--text); }
.cost-details { margin-top: 28px; }
.cost-details > summary { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); cursor: pointer; list-style: none; font-size: 15px; font-weight: 560; }
.cost-details > summary::-webkit-details-marker { display: none; }
.cost-details > summary::after { content: "+"; color: var(--muted); }
.cost-details[open] > summary::after { content: "−"; color: var(--accent); }
.cost-details > summary:hover { border-color: var(--accent); }
.cost-details .cost-layout { margin-top: 28px; }

[data-theme="light"] .headmap .ct-face, [data-theme="light"] .headmap .ct-petal { fill: #a9b1b8; stroke: #5d666d; }
@media (max-width: 900px) { .coverage .split-col { order: -1; } }
.cost-summary .total { white-space: normal; font-size: clamp(24px, 2.2vw, 28px); }
.cost-row .price.unpriced { color: var(--muted); }
