/* trainpad: the page IS a nursery's central monitoring station. One theme (dark monitor glass), one accent (--trace),
   two families (Archivo words + vitals, JetBrains Mono machine output). Tokens on :root; theme locked on every page. */
@font-face { font-family: "Archivo"; src: url("/static/fonts/archivo-latin.woff2") format("woff2"); font-weight: 400 700; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/static/fonts/jbmono-latin.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
:root {
  color-scheme: dark;
  --glass: #0D110F; --bezel: #141917; --well: #090C0B;
  --ink: #E9EEEA; --ink-2: #9BA59F; --ink-3: #78827D;
  --rule: rgba(223,236,229,0.09); --rule-strong: rgba(223,236,229,0.18);
  --trace: #2FDC86;
  --sans: "Archivo", ui-sans-serif, system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --container: 1160px; --gutter: 20px; --gap: 128px;
  --r-mon: 10px; --r-ctl: 8px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --glass: #0D110F; } }
:root[data-theme="dark"] { --glass: #0D110F; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--glass); color: var(--ink); font: 400 15px/1.5 var(--sans); letter-spacing: -0.005em; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.mono { font-family: var(--mono); }
.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.ink2 { color: var(--ink-2); } .ink3 { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--glass); padding: 8px 12px; border-radius: var(--r-ctl); z-index: 30; }
.skip:focus { left: 8px; }

/* ---------- nav (page palette, never a black bar) ---------- */
.nav { height: 64px; display: flex; align-items: center; gap: 24px; position: relative; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 20px/1 var(--sans); letter-spacing: -0.02em; margin-right: 16px; }
.brand svg { width: 28px; height: 16px; color: var(--trace); }
.nav-links { display: flex; gap: 36px; margin: 0 auto; }
.nav-links a { text-decoration: none; color: var(--ink-2); font: 500 15px/1 var(--sans); padding: 8px 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.clock { font: 400 12px/1 var(--mono); color: var(--ink-2); letter-spacing: 0.02em; }
.who { font: 400 12px/1 var(--mono); color: var(--ink); text-decoration: none; }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 8px; cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; }
.sheet { position: fixed; inset: 0; background: var(--glass); z-index: 40; padding: 0 var(--gutter); display: none; flex-direction: column; }
.sheet[open], .sheet.open { display: flex; }
.sheet-head { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.sheet nav { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; }
.sheet nav a { font: 600 34px/1.2 var(--sans); letter-spacing: -0.03em; text-decoration: none; padding: 8px 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 20px; border-radius: var(--r-ctl); background: var(--ink); color: var(--glass); font: 500 15px/1 var(--sans); text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; transition: transform .12s ease, background .2s ease; }
.btn:active { transform: translateY(1px); }
.btn:hover { background: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--rule-strong); color: var(--ink-2); cursor: not-allowed; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn .glyph { width: 20px; height: 12px; }
.btn .glyph path { stroke-dasharray: 40; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) { .btn:hover .glyph .flat { animation: blip .2s ease-out 1; } }
@keyframes blip { 0% { transform: scaleY(1); } 50% { transform: scaleY(-2.2); } 100% { transform: scaleY(1); } }
.glyph .flat { transform-origin: 50% 50%; transform-box: fill-box; }
.link { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule-strong); padding-bottom: 2px; cursor: pointer; background: none; border-top: 0; border-left: 0; border-right: 0; font: 500 15px/1.4 var(--sans); }
.link:hover { border-bottom-color: var(--ink); }
.link svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
.btn-ghost { background: none; border: 1px solid var(--rule-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--bezel); }

/* ---------- stamp (one chip style) ---------- */
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: var(--r-ctl); border: 1px solid var(--rule-strong); font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.chip.live { border-color: var(--trace); color: var(--trace); }
.demo-stamp { position: fixed; right: 12px; bottom: 12px; z-index: 50; background: var(--glass); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--trace); display: inline-block; flex: none; }
.dot.off { background: var(--ink-3); }
.label { font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.meta { font: 400 12px/1.5 var(--mono); color: var(--ink-2); }

/* ---------- the sweep divider: 1 px hairline with a 14 px gap that drifts every 12 s ---------- */
.sweep { position: relative; height: 1px; margin: var(--gap) 0 0; }
.sweep::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--rule-strong) 0 calc(var(--g, 62%) - 7px), transparent calc(var(--g, 62%) - 7px) calc(var(--g, 62%) + 7px), var(--rule-strong) calc(var(--g, 62%) + 7px) 100%); }
@property --g { syntax: "<percentage>"; inherits: false; initial-value: 62%; }
@media (prefers-reduced-motion: no-preference) { .sweep::before { animation: drift 12s linear infinite; } }
@keyframes drift { from { --g: 4%; } to { --g: 96%; } }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.04em; line-height: 0.98; margin: 0; }
.h1 { font-size: 60px; }
.h1 .soft { color: var(--ink-2); }
.h2 { font-size: 60px; margin-top: 128px; }
.sweep + section .h2, section > .h2:first-child { margin-top: 128px; }
.lead { font-size: 20px; line-height: 1.4; color: var(--ink-2); margin: 16px 0 0; max-width: 62ch; letter-spacing: -0.01em; }
.sub { font-size: 20px; line-height: 1.4; margin: 24px 0 0; max-width: 72ch; letter-spacing: -0.01em; }
.sub .soft { color: var(--ink-2); }
.vital { font: 500 48px/1 var(--sans); font-stretch: 75%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.vital.md { font-size: 36px; }
.vital.sm { font-size: 24px; }
.fresh { font: 400 12px/1 var(--mono); color: var(--ink-2); }
.fresh.stale { color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding-top: 40px; }
.cta-row { display: flex; align-items: center; gap: 32px; margin-top: 32px; }
.trust { font: 400 12px/1.5 var(--mono); color: var(--ink-2); margin-top: 16px; }

/* ---------- the monitor (raised: --bezel + 1 px edge + 10 px radius; nothing else) ---------- */
.mon { background: var(--bezel); border: 1px solid var(--rule); border-radius: var(--r-mon); padding: 24px 24px 24px; position: relative; }
.mon-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font: 400 12px/1 var(--mono); color: var(--ink-2); }
.mon-head .who-coin { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mon-head .tk { font: 500 15px/1 var(--mono); color: var(--ink); }
.mon-head .nm { font: 400 15px/1 var(--mono); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon-head .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.av { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; background: var(--well); flex: none; border: 1px solid var(--rule); display: grid; place-items: center; overflow: hidden; }
.av svg { width: 20px; height: 12px; color: var(--trace); }
.av.lg { width: 56px; height: 56px; border-radius: 8px; }
.mon-body { display: grid; grid-template-columns: 8fr 4fr; gap: 24px; margin-top: 20px; }
.trace-box { position: relative; height: 200px; }
.trace-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.vitals { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; align-content: start; padding-top: 4px; }
.vitals .label { display: block; margin-bottom: 10px; }
.vitals .subl { display: block; font: 400 12px/1.4 var(--mono); color: var(--ink-2); margin-top: 6px; }
.well { background: var(--well); border-radius: var(--r-ctl); padding: 16px 18px; margin-top: 20px; font: 400 15px/1.55 var(--mono); }
.tline { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: baseline; }
.tline .st { color: var(--ink-3); white-space: nowrap; }
.tline .tx { min-width: 0; overflow-wrap: anywhere; }
.tline .tx .w0 { color: var(--ink-3); }
.tline .tx .w1 { color: var(--ink); }
.tline .tx .wl { color: var(--trace); }
.tline.old .tx { color: var(--ink-3); }
.cursor { display: inline-block; width: 8px; height: 1.05em; background: var(--ink-2); vertical-align: -0.15em; margin-left: 2px; }
@media (prefers-reduced-motion: no-preference) { .cursor { animation: blinkc 1s steps(1) infinite; } }
@keyframes blinkc { 50% { opacity: 0; } }
.runline { font: 400 12px/1.5 var(--mono); color: var(--ink-2); margin-top: 10px; }
.signal { position: absolute; top: 12px; right: 12px; display: none; }
.signal.on { display: inline-flex; }

/* ---------- nursery: the ward ---------- */
.ward-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 24px; flex-wrap: wrap; }
.tabs { display: flex; gap: 24px; }
.tabs a, .tabs button { font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; padding: 6px 0; border: 0; border-bottom: 1px solid transparent; background: none; cursor: pointer; }
.tabs [aria-selected="true"], .tabs [aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.ward { display: grid; gap: 16px; margin-top: 20px; grid-template-columns: repeat(12, 1fr); }
.ward .mon { padding: 20px; display: flex; flex-direction: column; text-decoration: none; color: inherit; min-width: 0; }
.ward .mon:hover .cell-title .tk { text-decoration: underline; text-underline-offset: 3px; }
.ward .c-lg { grid-column: span 8; } .ward .c-tall { grid-column: span 4; } .ward .c-sm { grid-column: span 3; }
.ward.n1 .c-lg { grid-column: span 12; }
.ward.n2 .c-lg { grid-column: span 8; } .ward.n2 .c-tall { grid-column: span 4; }
.ward.n3 .c-tall { grid-row: span 2; } .ward.n3 > .c-lg:nth-child(3) { grid-column: span 8; }
.ward.n4 .c-sm { grid-column: span 4; }
.ward.n5 .c-sm { grid-column: span 4; }
.cell-head { display: flex; gap: 14px; align-items: flex-start; }
.cell-title { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cell-title .row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cell-title .tk { font: 600 20px/1 var(--sans); letter-spacing: -0.02em; }
.cell-title .nm { font: 400 15px/1 var(--sans); color: var(--ink-2); }
.c-lg .cell-title .tk { font-size: 28px; }
.c-lg .av { width: 80px; height: 80px; border-radius: 10px; }
.c-tall .av { width: 64px; height: 64px; border-radius: 8px; }
.c-sm .av { width: 56px; height: 56px; border-radius: 8px; }
.cell-stats { display: flex; gap: 28px; margin-top: 20px; align-items: flex-end; }
.cell-stats .label { display: block; margin-bottom: 6px; }
.cell-stats .v { font: 500 24px/1 var(--sans); font-stretch: 75%; font-variant-numeric: tabular-nums; }
.c-lg .cell-stats .v { font-size: 48px; }
.cell-trace { position: relative; height: 90px; margin-top: 16px; flex: 1 0 auto; min-height: 70px; }
.c-lg .cell-trace { height: 120px; }
.cell-trace canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cell-sample { font: 400 15px/1.5 var(--mono); margin-top: 14px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cell-meta { font: 400 12px/1.5 var(--mono); color: var(--ink-2); margin-top: 6px; }
.baseline { position: relative; height: 48px; margin: 16px 0 6px; }
.baseline .ln { position: absolute; left: 0; right: 0; top: 20px; height: 1px; background: var(--rule-strong); }
.baseline .fill { position: absolute; left: 0; top: 19px; height: 2px; background: var(--ink); }
.baseline .tick { position: absolute; top: 12px; width: 1px; height: 17px; background: var(--ink); }
.baseline .tick.dash { background: repeating-linear-gradient(var(--ink-2) 0 3px, transparent 3px 5px); }
.baseline .tl { position: absolute; top: 0; font: 400 12px/1 var(--mono); color: var(--ink-2); transform: translateX(-50%); white-space: nowrap; }
.baseline .bl { position: absolute; top: 30px; font: 400 12px/1 var(--mono); color: var(--ink-2); transform: translateX(-50%); white-space: nowrap; }
.empty { border: 1px dashed var(--rule-strong); border-radius: var(--r-mon); padding: 32px; color: var(--ink-2); }

/* ---------- first words: replay + brag card (the ONE rotated object) ---------- */
.fw-zone { position: relative; margin-top: 32px; display: grid; grid-template-columns: repeat(12, 1fr); }
.replay { grid-column: 1 / span 9; }
.replay-top { display: grid; grid-template-columns: 1fr auto; gap: 24px; margin-top: 16px; }
.replay .well { margin-top: 0; }
.replay .well .tline { padding: 2px 0; }
.replay .well .tline.cur .st { color: var(--ink); }
.replay-vitals { display: flex; gap: 24px; }
.scrub { position: relative; height: 44px; margin-top: 4px; touch-action: none; cursor: pointer; }
.scrub .rail { position: absolute; left: 0; right: 0; top: 14px; height: 2px; background: var(--rule-strong); }
.scrub .stop { position: absolute; top: 8px; width: 1px; height: 14px; background: var(--ink-2); }
.scrub .knob { position: absolute; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transform: translateX(-50%); }
.scrub .sl { position: absolute; top: 28px; font: 400 12px/1 var(--mono); color: var(--ink-2); transform: translateX(-50%); white-space: nowrap; }
.scrub .sl:first-of-type { transform: none; }
.brag-wrap { grid-column: 10 / span 3; grid-row: 2; margin: -48px 0 0 -48px; position: relative; z-index: 2; }
.fw-zone .replay { grid-row: 1; }
.brag { background: var(--bezel); border: 1px solid var(--rule-strong); border-radius: var(--r-mon); padding: 24px; transform: rotate(-2deg); }
.brag .bt { display: flex; align-items: center; gap: 12px; font: 600 22px/1.15 var(--sans); letter-spacing: -0.02em; }
.brag .bs { font: 400 15px/1.5 var(--mono); color: var(--trace); margin-top: 14px; }
.brag .btrace { position: relative; height: 56px; margin-top: 12px; }
.brag .btrace canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.brag .bm { font: 400 12px/1.6 var(--mono); color: var(--ink-2); margin-top: 10px; }
.brag .share { margin-top: 16px; display: inline-flex; align-items: center; gap: 10px; }
.brag .share svg { width: 20px; height: 20px; }
.cap { font: 400 12px/1.5 var(--sans); color: var(--ink-2); margin-top: 14px; padding-left: 8px; }

/* ---------- how a coin learns: one continuous line through 4 artefacts (staggered above / below) ---------- */
.how { margin-top: 48px; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1px auto; column-gap: 24px; }
.how .line { grid-row: 2; grid-column: 1 / -1; height: 1px; background: var(--rule-strong); }
.how .art { position: relative; }
.how .art::before { content: ""; position: absolute; left: 0; width: 1px; height: 19px; background: var(--ink-2); }
.how .a1 { grid-row: 3; grid-column: 1 / span 4; padding-top: 28px; } .how .a1::before, .how .a3::before { top: -10px; }
.how .a2 { grid-row: 1; grid-column: 4 / span 5; align-self: end; padding: 64px 0 28px; } .how .a2::before, .how .a4::before { bottom: -10px; }
.how .a3 { grid-row: 3; grid-column: 6 / span 3; padding-top: 28px; }
.how .a4 { grid-row: 1; grid-column: 9 / span 4; align-self: end; padding-bottom: 28px; }
.how h3 { font: 600 20px/1.2 var(--sans); letter-spacing: -0.02em; }
.how p { margin: 8px 0 0; color: var(--ink-2); }
.how .rcpt-row { font-size: 14px; gap: 14px; flex-wrap: nowrap; white-space: nowrap; }
.form { background: var(--bezel); border: 1px solid var(--rule); border-radius: var(--r-mon); padding: 20px; margin-top: 16px; display: grid; gap: 14px; }
.field { display: grid; gap: 8px; }
.field > label, .field > .label { font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.input { height: 48px; border-radius: var(--r-ctl); background: var(--well); border: 1px solid var(--rule-strong); padding: 0 14px; font: 400 15px/1 var(--sans); color: var(--ink); width: 100%; }
textarea.input { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.input:focus { outline: none; border-color: var(--ink); }
.helper { font: 400 13px/1.45 var(--sans); color: var(--ink-2); }
.err { font: 400 14px/1.45 var(--sans); color: var(--ink); border-bottom: 1px solid var(--ink); display: inline; padding-bottom: 1px; }
.drop { border: 1px dashed var(--rule-strong); border-radius: var(--r-ctl); background: var(--well); padding: 14px; font: 400 14px/1.4 var(--mono); color: var(--ink); cursor: pointer; display: block; }
.drop:hover, .drop.over { border-color: var(--ink); }
.signsheet { background: var(--bezel); border: 1px solid var(--rule); border-radius: var(--r-mon); padding: 18px 20px; margin-top: 16px; max-width: 320px; }
.signsheet .wallet-row { display: flex; align-items: center; gap: 10px; font: 400 12px/1 var(--mono); color: var(--ink-2); margin-bottom: 12px; }
.signsheet p { margin: 0 0 14px; color: var(--ink); font-size: 15px; }
.rcpt-row { font: 400 15px/1.5 var(--mono); margin-top: 14px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--ink); }

/* ---------- receipts: giant readout over a ledger ---------- */
.readout { display: flex; gap: 72px; flex-wrap: wrap; align-items: baseline; margin-top: 32px; }
.readout .ro { display: flex; align-items: baseline; gap: 14px; }
.readout .ro .label { text-transform: none; letter-spacing: 0.01em; font-size: 13px; }
.split-line { font-size: 15px; color: var(--ink-2); margin: 28px 0 0; max-width: 90ch; }
.ledger { width: 100%; border-collapse: collapse; margin-top: 28px; font: 400 15px/1 var(--mono); }
.ledger th { text-align: left; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); padding: 0 12px 14px 0; white-space: nowrap; }
.ledger td { height: 52px; padding: 0 12px 0 0; border-top: 1px solid var(--rule); white-space: nowrap; color: var(--ink-2); }
.ledger tr:hover td { color: var(--ink); }
.ledger td.k { color: var(--ink); }
.ledger td.hon { color: var(--ink-2); }
.ledger .strike { text-decoration: line-through; text-decoration-thickness: 1px; }
.ledger .sha { cursor: help; }
.ledger .sha .full { display: none; }
.ledger tr:hover .sha .full, .ledger .sha:focus .full { display: inline; }
.ledger tr:hover .sha .cut, .ledger .sha:focus .cut { display: none; }
.ledger a.dl { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--rule-strong); font: 400 15px/1.3 var(--mono); }
.ledger a.dl svg { width: 16px; height: 16px; }
.ledger .gl { width: 20px; height: 12px; vertical-align: -1px; margin-right: 8px; }
.rows-m { display: none; }
.after { margin-top: 24px; }

/* ---------- buy: statement vs action ---------- */
.buy { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
.buy .h2 { margin-top: 0; }
.buy .stmt p { font-size: 20px; line-height: 1.5; margin: 0; letter-spacing: -0.01em; }
.buy .stmt .chip { margin: 16px 0 20px; }
.buy .act { padding-top: 8px; }
.buy .act-row { display: flex; align-items: center; gap: 28px; }
.buy .act-row .btn { flex: 1 1 auto; height: 56px; font-size: 20px; font-weight: 600; }
.ca-box { margin-top: 28px; }
.ca-line { display: flex; align-items: center; gap: 14px; justify-content: space-between; background: var(--well); border: 1px solid var(--rule); border-radius: var(--r-ctl); padding: 14px 16px; margin-top: 10px; }
.ca-line .ca { font: 400 15px/1.4 var(--mono); overflow-wrap: anywhere; min-width: 0; }
.copy { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; font: 500 14px/1 var(--sans); color: var(--ink); white-space: nowrap; padding: 6px 0; }
.copy svg { width: 18px; height: 18px; }
.chartwait { font: 400 13px/1.4 var(--sans); color: var(--ink-2); margin-top: 10px; }

/* ---------- footer: recessed well ---------- */
footer { background: var(--well); margin-top: var(--gap); padding: 32px 0 48px; position: relative; }
footer .flat { height: 1px; background: var(--rule-strong); margin-bottom: 40px; }
.foot { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; }
.foot .brand { margin: 0; padding: 0; }
.foot p { margin: 0; color: var(--ink-2); font-size: 15px; }
.foot .links { display: flex; gap: 28px; justify-content: flex-end; align-items: center; }
.foot .links a { color: var(--ink-2); text-decoration: none; }
.foot .links a:hover { color: var(--ink); }
.foot .small { font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.foot .right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.foot .ca-short { display: inline-flex; align-items: center; gap: 10px; font: 400 12px/1 var(--mono); color: var(--ink-3); }
.sound { font: 400 12px/1 var(--mono); color: var(--ink-2); background: none; border: 1px solid var(--rule-strong); border-radius: var(--r-ctl); height: 28px; padding: 0 10px; cursor: pointer; }

/* ---------- app pages ---------- */
.page-head { padding-top: 40px; }
.page-head .h1 { font-size: 48px; }
.grid-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 24px; }
.filters .chip { cursor: pointer; background: none; height: 32px; }
.filters .chip[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.search { max-width: 320px; height: 40px; }
.tabbar { display: flex; gap: 28px; border-bottom: 1px solid var(--rule); margin-top: 40px; overflow-x: auto; }
.tabbar button { background: none; border: 0; border-bottom: 1px solid transparent; padding: 12px 0; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.tabbar button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.panel { padding-top: 24px; }
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 12px 24px; font-size: 15px; }
.kv dt { font: 500 12px/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.kv dd { margin: 0; font-family: var(--mono); overflow-wrap: anywhere; }
pre.code { background: var(--well); border-radius: var(--r-ctl); padding: 16px; font: 400 13px/1.55 var(--mono); overflow-x: auto; margin: 0; color: var(--ink); }
.steps { display: flex; align-items: center; gap: 0; margin-top: 32px; }
.steps .sp { flex: 1; position: relative; height: 32px; }
.steps .sp::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 1px; background: var(--rule-strong); }
.steps .sp.done::before { height: 2px; top: 11px; background: var(--ink); }
.steps .sp span { position: absolute; top: 20px; left: 0; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.steps .sp.cur span { color: var(--ink); }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.box { background: var(--bezel); border: 1px solid var(--rule); border-radius: var(--r-mon); padding: 20px; }
.notice { border: 1px solid var(--rule-strong); border-radius: var(--r-ctl); padding: 14px 16px; color: var(--ink); font-size: 15px; margin-top: 16px; }
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 48px; margin-top: 40px; }
.docs nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 16px; align-self: start; }
.docs nav a { text-decoration: none; color: var(--ink-2); padding: 6px 0; font-size: 15px; }
.docs nav a[aria-current="page"] { color: var(--ink); }
.prose { max-width: 70ch; }
.prose h1 { font-size: 48px; margin-bottom: 24px; }
.prose h2 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--ink); font-size: 16px; line-height: 1.65; }
.prose li { margin: 6px 0; }
.prose code { font-family: var(--mono); font-size: 14px; color: var(--ink); background: var(--well); padding: 1px 6px; border-radius: 4px; }
.prose .soft { color: var(--ink-2); }
.board { list-style: none; padding: 0; margin: 16px 0 0; }
.board li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); font-family: var(--mono); }
.board li .r { margin-left: auto; color: var(--ink); }
.chat { display: grid; gap: 14px; margin-top: 16px; }
.msg { background: var(--well); border-radius: var(--r-ctl); padding: 12px 14px; font: 400 15px/1.5 var(--mono); }
.msg.you { background: none; border: 1px solid var(--rule); }
.flatline { position: relative; height: 160px; margin-top: 40px; }
.flatline::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--ink-3); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--glass); padding: 10px 16px; border-radius: var(--r-ctl); font-size: 14px; z-index: 60; display: none; }
.toast.on { display: block; }
.modal { position: fixed; inset: 0; background: rgba(9,12,11,0.86); z-index: 45; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.on { display: flex; }
.modal .box { width: 100%; max-width: 520px; }
.skel { background: var(--rule); border-radius: 2px; height: 1px; display: inline-block; width: 56px; vertical-align: middle; }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
  .rv.in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  :root { --container: 944px; }
  .ward .c-lg { grid-column: span 12; } .ward .c-tall { grid-column: span 6; } .ward .c-sm { grid-column: span 6; }
  .ward.n2 .c-tall { grid-column: span 4; } .ward.n2 .c-lg { grid-column: span 8; }
  .grid-list { grid-template-columns: repeat(2, 1fr); }
  .how .a2 { grid-column: 6 / span 7; padding-top: 40px; } .how .a4 { grid-column: 9 / span 4; }
}
@media (max-width: 1023px) {
  .nav-links { gap: 22px; } .clock { display: none; }
  .mon-body { grid-template-columns: 1fr; }
  .vitals { grid-template-columns: repeat(4, 1fr); order: -1; }
  .fw-zone { display: block; } .brag-wrap { margin-top: 24px; } .brag { transform: none; }
  .how { display: block; padding-left: 24px; } .how .line { left: 0; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .how .art { padding: 0 0 40px !important; } .how .art::before { left: -24px; top: 8px !important; bottom: auto !important; width: 18px; height: 1px; }
  .buy { grid-template-columns: 1fr; }
  .cols2 { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; gap: 16px; } .docs nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
}
@media (max-width: 767px) {
  :root { --gap: 80px; }
  .nav-links, .nav-right .clock, .nav-right .who { display: none; }
  .nav { gap: 12px; } .nav-right { margin-left: auto; gap: 8px; } .menu-btn { display: inline-grid; place-items: center; }
  .nav .btn { height: 36px; padding: 0 14px; } .nav .btn .glyph { display: none; }
  .h1 { font-size: 34px; line-height: 1.02; } .h2 { font-size: 36px; margin-top: 80px; } .page-head .h1 { font-size: 34px; }
  .sub, .lead { font-size: 17px; }
  .cta-row { flex-direction: column; align-items: stretch; gap: 16px; text-align: center; } .cta-row .btn { width: 100%; } .cta-row .link { align-self: center; }
  .mon { padding: 18px; }
  .vitals { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .vital { font-size: 36px; }
  .trace-box { height: 160px; }
  .tline { grid-template-columns: 1fr; gap: 0; }
  .ward { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .ward::-webkit-scrollbar { display: none; }
  .ward > * { flex: 0 0 300px; scroll-snap-align: start; }
  .c-lg .cell-stats .v { font-size: 36px; } .c-lg .av { width: 56px; height: 56px; }
  .replay-top { grid-template-columns: 1fr; } .replay-vitals { order: 2; }
  .readout { gap: 24px; flex-direction: column; } .readout .vital { font-size: 36px; }
  .ledger { display: none; } .rows-m { display: block; margin-top: 20px; }
  .rows-m .rm { border-top: 1px solid var(--rule); padding: 12px 0; font: 400 14px/1.6 var(--mono); }
  .rows-m .rm .l1 { display: flex; justify-content: space-between; color: var(--ink); }
  .rows-m .rm .l2 { display: flex; justify-content: space-between; color: var(--ink-2); gap: 12px; flex-wrap: wrap; }
  .buy .act-row { flex-direction: column; align-items: stretch; gap: 16px; } .buy .act-row .link { align-self: flex-start; }
  .foot { grid-template-columns: 1fr; } .foot .right { align-items: flex-start; } .foot .links { justify-content: flex-start; flex-wrap: wrap; }
  footer .flat { margin-bottom: 28px; }
  .grid-list { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 4px; } .kv dd { margin-bottom: 12px; }
  .steps .sp span { font-size: 10px; }
}
@media (max-width: 380px) { .nav .brand { font-size: 18px; } .readout .vital { font-size: 32px; } }
.cell-sample .wl, .wl { color: var(--trace); }
.baseline [data-ax="end"] { transform: translateX(-100%); }
.h-sm { font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
.h-md { font-size: 36px; letter-spacing: -0.03em; line-height: 1.05; }
.mt32 { margin-top: 32px; } .mt48 { margin-top: 48px; } .mt64 { margin-top: 64px; }
.tabbar a { padding: 12px 0; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabbar a[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
video.box, img.box { width: 100%; height: auto; padding: 0; overflow: hidden; }

.mon-head .who-coin { flex-wrap: nowrap; }
.mon-head .tk, .cell-title .tk { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cell-title { min-width: 0; flex: 1; } .cell-title .row { flex-wrap: nowrap; min-width: 0; }
.buy { margin-top: 128px; } .sweep + section.buy .h2, .buy .h2 { margin-top: 0; }
.tabs { overflow-x: auto; scrollbar-width: none; } .tabs a { white-space: nowrap; }
@media (max-width: 1023px) {
  .how { display: block; position: relative; padding-left: 24px; } .how .line { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; height: auto; }
  .how .art { padding: 0 0 40px !important; } .how .art::before { left: -24px; top: 10px !important; bottom: auto !important; width: 18px; height: 1px; }
  .how .rcpt-row { flex-wrap: wrap; white-space: normal; }
  .brag-wrap { margin: 24px 0 0; }
}
@media (max-width: 767px) {
  .h1 br { display: none; }
  .hero-mon .mon-head .nm { display: none; }
  .buy { margin-top: 80px; }
  .ward.n3 .c-tall { grid-row: auto; }
}
[hidden] { display: none !important; }
.page-head .mon-head { align-items: center; gap: 16px; }
.page-head .mon-head h1 { font-family: var(--sans); color: var(--ink); }
.field > label.drop { text-transform: none; letter-spacing: 0; font: 400 14px/1.4 var(--mono); color: var(--ink); }
input[type="file"].input { padding: 8px 10px; height: auto; font-size: 14px; color: var(--ink-2); }
input[type="file"]::file-selector-button { background: var(--bezel); color: var(--ink); border: 1px solid var(--rule-strong); border-radius: 6px; padding: 8px 12px; margin-right: 12px; font: 500 14px/1 var(--sans); cursor: pointer; }
.filters .chip { white-space: normal; height: auto; min-height: 32px; padding: 6px 10px; text-align: left; line-height: 1.3; }
.tscroll { overflow-x: auto; }
@media (max-width: 1023px) { .ledger { display: none; } .rows-m { display: block; margin-top: 20px; }
  .rows-m .rm { border-top: 1px solid var(--rule); padding: 12px 0; font: 400 14px/1.6 var(--mono); }
  .rows-m .rm .l1 { display: flex; justify-content: space-between; color: var(--ink); }
  .rows-m .rm .l2 { display: flex; justify-content: space-between; color: var(--ink-2); gap: 12px; flex-wrap: wrap; } }
.ledger.ledger-x { display: table !important; min-width: 720px; }
.tabbar a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.filters .chip[aria-current="true"] { color: var(--ink); border-color: var(--ink); }
.c-tall .cell-trace { flex: 0 0 auto; height: 180px; } .ward.n3 .c-tall .cell-sample { -webkit-line-clamp: 6; }
@media (min-width: 768px) and (max-width: 1199px) { .h1 { font-size: 46px; } .h2 { font-size: 48px; } }
@media (min-width: 768px) and (max-width: 1199px) {
  .ward.n3 > .c-lg:first-child { grid-column: span 12; } .ward.n3 .c-tall, .ward.n3 > .c-lg:nth-child(3) { grid-column: span 6; grid-row: auto; }
  .ward.n2 .c-lg, .ward.n2 .c-tall { grid-column: span 6; }
  .ward.n5 .c-sm, .ward.n4 .c-sm { grid-column: span 6; }
}
