/* Brand: refs/brand.md achromatic ledger. One hue (chart blue) on one element per screen. */
:root {
  --ground: #f8f8f8; --card: #fff; --ink: #0a0a0a; --muted: #6b6b6b;
  --step: #ececec; --field: #cfcfcf; --warn: #8a5a00; --accent: #1d5fbf;
  --measure: 1040px; --col: 620px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  /* Five sizes: small, body, lead, heading, display. */
  --t-small: .9375rem; --t-body: 1.125rem; --t-lead: 1.375rem; --t-head: clamp(1.5rem, 3vw, 2.25rem); --t-display: clamp(1.75rem, 6.4vw, 4.6rem);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 18px/1.55 Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; text-underline-offset: 3px; transition: color .18s ease, opacity .18s ease; }
a:hover { color: var(--muted); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0; font-weight: 600; }
h1 { font-size: var(--t-display); letter-spacing: -0.03em; line-height: 1.08; }
h1 span { display: block; }
h2 { font-size: var(--t-head); margin-bottom: 40px; }
h3 { font-size: var(--t-lead); }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.small { font-size: var(--t-small); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { width: min(var(--measure), 100% - 32px); margin: 0 auto; }
main > section { padding: clamp(72px, 11vw, 140px) 0 0; }

/* Header: wordmark left, sections right; sticks without a shadow, a tone step only. */
.top {
  position: sticky; top: 0; z-index: 5; background: var(--ground);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px max(16px, (100% - var(--measure)) / 2);
}
.mark { font-weight: 600; text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 28px; font-size: var(--t-small); }
.top nav a:not(.btn) { text-decoration: none; }
@media (max-width: 719px) { .top nav a:not(.btn):not(.login) { display: none; } }

.btn {
  display: inline-block; background: var(--ink); color: #fff; border: 0; border-radius: 6px;
  padding: 13px 22px; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: transform .14s var(--ease), background .18s ease;
}
.btn:hover { color: #fff; background: #2a2a2a; }
.btn:active { transform: scale(.97); }
.btn-sm { padding: 8px 16px; font-size: var(--t-small); }

/* Hero */
.hero { padding-top: clamp(56px, 12vh, 128px); }
.lede { font-size: var(--t-body);
}
@media (min-width: 720px) { .lede { font-size: var(--t-lead); } }
.lede { max-width: 34em; margin: 28px 0 32px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.text-link { font-weight: 500; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--muted); font-size: var(--t-small); }
.facts li:last-child { color: var(--ink); }

/* Interface pictures (423): hand-built recreations of the dashboard, in its own look (data-ui: the app's borders,
   pills and meters, web/src/app/globals.css). contain keeps their per-frame text changes from reaching the page. */
.shot { margin: 40px 0 0; }
.shot figcaption, .diagram figcaption { color: var(--muted); font-size: var(--t-small); margin-top: 12px; }
.shot-hero { margin-top: 64px; }
.ui { background: var(--card); border: 1px solid #e6e6e6; border-radius: 8px; font-size: 15px; line-height: 1.45; contain: layout paint; padding: 16px; } /* taste-skill-ignore: data-ui fragment, the dashboard card border */
.ui .h { font-weight: 600; margin: 0 0 12px; }
.ui .m { color: var(--muted); font-weight: 400; }
.ui .sm { display: block; font-size: 13px; }
.ui :not(pre) > code { font: 13px/1.5 ui-monospace, /* taste-skill-ignore: model ids are code */ "Geist Mono", SFMono-Regular, Menlo, monospace; }
.ui i { font-style: normal; }
.pill { display: inline-flex; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 500; line-height: 1.5; white-space: nowrap; background: #eee; color: #3d3d3d; }
.pill.ok { background: #dcfae5; color: #04250e; }
.pill.warn { background: #fffbeb; color: #92400e; }
.meter { display: block; height: 4px; margin-top: 4px; border-radius: 2px; background: #eee; overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 2px; background: var(--ink); transform-origin: left; transform: scaleX(var(--w)); }
.js .shot.rise:not(.in) .meter > i, .js .shot.rise:not(.in) .days li::before { transform: scale(0); } /* taste-skill-ignore: a meter filling from empty is its data, not an entrance */
.js .shot .meter > i, .js .shot .days li::before { transition: transform .9s var(--ease) .3s; }

/* Overview: four figures, the nodes table, a week of requests (today in the one hue). */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: #e6e6e6; border-radius: 6px; overflow: hidden; }
.kpis > div { background: var(--card); padding: 12px 14px; }
.kpis b { display: block; font-size: 1.5rem; font-weight: 500; line-height: 1.25; }
.kpis b i { color: var(--muted); font-size: .8em; }
.ov-body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px 28px; margin-top: 20px; }
.ov-nodes table { width: 100%; border-collapse: collapse; }
.ov-nodes th { text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); padding: 0 8px 8px 0; }
.ov-nodes td { border-top: 1px solid #f0f0f0; padding: 8px 8px 8px 0; vertical-align: middle; }
.ov-nodes td:first-child { font-weight: 500; }
.ov-nodes .r { text-align: right; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2e7d32; margin-right: 8px; }
.dot.off { background: #92400e; }
.days { list-style: none; margin: 0; padding: 0; height: 168px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; }
.days li { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; text-align: center; font-size: 12px; color: var(--muted); }
.days li::before { content: ""; order: 1; height: calc(var(--v) * 120px); background: #8a8a8a; border-radius: 2px 2px 0 0; transform-origin: bottom; }
.days li.today::before { background: var(--accent); }
.days b { font-weight: 500; color: var(--ink); }
.days span { order: 2; margin-top: 4px; white-space: nowrap; }
@media (max-width: 879px) { .ov-body { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis b { font-size: 1.25rem; }
  .ov-nodes .wide { display: none; }
  .ov-nodes td, .ov-nodes th { font-size: 14px; }
  .days span { font-size: 11px; }
}

/* Terminal: the install line types itself, then the installer's own lines print. */
.term { padding: 0; border: 0; background: var(--step); }
.term .call { min-height: 100%; }
.term .ln { display: block; }
.term .ln i { color: #2e7d32; }
.term .ln.off { visibility: hidden; }
.term .rest { color: transparent; }
.caret { display: inline-block; width: .55em; height: 1.15em; margin: 0 1px -.2em; background: var(--ink); opacity: 0; }
.term.typing .caret { opacity: 1; }
.term.play:not(.typing) .caret { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 1; } }
.ui .fade, .ui.fade .reply, .ui.fade .lines { opacity: 0; transition: opacity .5s ease; }

/* Catalog rows: name on the left, the state pill (and its progress) on the right. */
.cat .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; padding: 10px 0; border-top: 1px solid #f0f0f0; } /* taste-skill-ignore: data-ui table rows */
.cat .nm { font-weight: 500; }
.cat .nm code { font-weight: 400; margin-left: 4px; }
.cat .nm .sm { display: inline; margin-left: 4px; }
.cat .st { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.cat .st .meter { flex: 0 0 100%; margin: 2px 0 0; }
.cat .st .meter.idle { visibility: hidden; }
.cat .vram { border-top: 1px solid #f0f0f0; padding-top: 10px; } /* taste-skill-ignore: data-ui table rows */

/* Endpoint: URL, the request, the streamed reply and its rate. */
.ep .url { margin: 0 0 12px; overflow-wrap: anywhere; }
.ep .req { transition: opacity .5s ease, transform .6s var(--ease); }
.ep .req.off { opacity: 0; transform: translateY(12px); }
.ep .reply { margin-top: 12px; transition: opacity .4s ease; }
.ep .ans { margin: 0 0 6px; min-height: 1.45em; }
.ep .rate { margin: 0; font-size: 13px; }
.ep .rate b { font-size: 15px; font-weight: 600; color: var(--accent); }

/* Key row and its meter for today. */
.key .h code { font-weight: 400; margin: 0 6px; }
.key dl { margin: 0; display: grid; gap: 6px; }
.key dl div { display: grid; grid-template-columns: 72px 1fr; gap: 12px; }
.key dd { margin: 0; }
.key dd code { display: block; }
.key .use { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 14px 0 0; font-size: 14px; }
.key .use b { font-weight: 600; }

/* GPU chart: the draft chart's look (web/src/components/charts.tsx), lines drawing in, a pointer that wanders. */
.chart .h { display: flex; justify-content: space-between; gap: 12px; }
.chart .h b { font-weight: 500; }
.plot { display: flex; gap: 10px; }
.ticks { position: relative; width: 26px; flex: none; height: 144px; font-size: 12px; }
.ticks i { position: absolute; right: 0; transform: translateY(-50%); }
.ticks i:nth-child(2) { top: 25%; } .ticks i:nth-child(3) { top: 50%; } .ticks i:nth-child(4) { top: 75%; } .ticks i:nth-child(5) { top: 100%; }
.area { position: relative; flex: 1; min-width: 0; height: 144px; }
.area svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lines { clip-path: inset(0 100% 0 0); }
.drawn .lines { clip-path: inset(0 -2% 0 0); transition: clip-path 2.2s cubic-bezier(.45, 0, .2, 1); }
.hov { position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.hov.on { opacity: 1; }
.hov > * { position: absolute; left: 0; top: 0; transition: transform .7s var(--ease); }
.hair { width: 1px; height: 100%; background: var(--muted); }
.dt { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); border: 2px solid var(--card); }
.dt.hi { opacity: .6; }
.hov > .tip { top: auto; bottom: 6px; padding: 2px 8px; font-size: 12px; white-space: nowrap; background: var(--card); border: 1px solid #e6e6e6; border-radius: 6px; } /* taste-skill-ignore: data-ui tooltip */
.times { display: flex; justify-content: space-between; margin: 8px 0 0 36px; font-size: 12px; }

/* How it works: call and response column */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 88px; }
.steps > li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 880px) { .steps > li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; } }
.steps h3 { margin-bottom: 16px; }
.steps .shot { margin: 0; }
.steps .call {
  margin: 0; background: var(--step); border-radius: 8px; padding: 20px;
  overflow-x: auto; font: 15px/1.6 ui-monospace, /* taste-skill-ignore: literal shell code */ "Geist Mono", SFMono-Regular, Menlo, monospace; font-variant-numeric: normal;
}

/* Split: two columns on wide screens, one on a phone */
.split { display: grid; gap: 40px; }
@media (min-width: 880px) { .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 72px; align-items: start; } }
.lead-p { line-height: 1.6; }
@media (min-width: 720px) { .lead-p { font-size: var(--t-lead); line-height: 1.5; } }

/* Privacy diagram */
.diagram { margin: 0; }
.diagram svg { display: block; width: 100%; max-width: 440px; height: auto; }
.d-name { font: 600 22px Geist, ui-sans-serif, system-ui, sans-serif; fill: var(--ink); }
.d-note { font: 19px Geist, ui-sans-serif, system-ui, sans-serif; fill: var(--muted); }
.diagram .d-on { fill: #fff; } .diagram .d-on-soft { fill: #d6d6d6; }

/* Features: a printed list on a white sheet, dot leaders between name and value */
.sheet { background: var(--card); border-radius: 8px; padding: clamp(24px, 4vw, 48px); display: grid; gap: 40px; }
@media (min-width: 880px) { .sheet { grid-template-columns: 1fr 1fr; gap: 64px; } }
.group h3 { margin-bottom: 20px; }
.group dl { margin: 0; display: grid; gap: 22px; }
.item { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; column-gap: 10px; }
.item dt { font-weight: 600; }
.item .val { margin: 0; color: var(--ink); text-align: right; grid-column: 3; }
.item::after { content: ""; grid-column: 2; grid-row: 1; border-bottom: 3px dotted var(--field); transform: translateY(-4px); }
.item .desc { grid-column: 1 / -1; margin: 6px 0 0; color: var(--muted); max-width: 46ch; }
@media (max-width: 479px) { .item { grid-template-columns: 1fr; } .item::after { display: none; } .item .val { grid-column: 1; text-align: left; color: var(--muted); } }

/* Cost: quiet figure lines + the calculator */
.figures { margin: 0; display: grid; gap: 28px; }
.figures div { display: grid; grid-template-columns: 132px 1fr; column-gap: 24px; align-items: baseline; }
.figures dt { font-size: var(--t-head); font-weight: 500; text-align: right; letter-spacing: -0.02em; }
.figures dd { margin: 0; max-width: 40ch; }
@media (max-width: 479px) { .figures div { grid-template-columns: 92px 1fr; column-gap: 16px; }  }
.calc { background: var(--card); border-radius: 8px; padding: 28px; display: grid; gap: 6px; }
.calc h3 { margin-bottom: 8px; }
.calc label, .calc legend { font-weight: 500; margin-top: 10px; }
.calc fieldset { border: 0; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; }
.calc .radio { font-weight: 400; display: flex; gap: 10px; align-items: center; margin: 4px 0 0; }
.calc .radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.result { margin: 20px 0 0; }
.result output { display: block; font-size: var(--t-head); font-weight: 600; letter-spacing: -0.02em; color: var(--accent); line-height: 1.1; }
.source { margin-top: 32px; }

/* Works with: two-ended rows */
.rows { list-style: none; padding: 0; margin: 0; display: grid; column-gap: 72px; }
@media (min-width: 880px) { .rows { grid-template-columns: 1fr 1fr; } }
.rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; }
.rows li span:first-child { font-weight: 500; }
.rows li span:last-child { color: var(--muted); flex: 0 0 auto; max-width: 50%; text-align: right; }

/* Waitlist form (290, unchanged fields) */
.form { display: grid; gap: 6px; background: var(--card); border-radius: 8px; padding: 28px; }
.form label { font-weight: 500; margin-top: 10px; }
.form input[type=email], .form input[type=text], .form select, .calc input[type=number] {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--field); border-radius: 6px; background: #fff; color: var(--ink);
}
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 16px 0 8px; }
.form .consent input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.form .btn { justify-self: start; margin-top: 8px; }
.status { min-height: 1.5em; margin: 6px 0 0; font-size: var(--t-small); }
.status.warn { color: var(--warn); }
.statement { font-size: var(--t-lead); line-height: 1.4; max-width: 30ch; }

/* Footer: one quiet line */
.foot {
  margin-top: clamp(96px, 16vw, 200px); padding-bottom: 32px; color: var(--muted); font-size: var(--t-small);
  display: grid; gap: 8px;
}
.foot p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--ink); }
@media (min-width: 880px) { .foot { grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 24px; } #unsubscribe { text-align: right; } }

/* Entrances: only when page.js marks the page; content stays visible without script. */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .rise.in { opacity: 1; transform: none; }
/* Choreography: the headline settles before the rest of the hero; a step's picture or code follows its words;
   a picture settles from a slight scale; a ledger row's dot leader draws after the row arrives. */
.js .hero .rise:not(h1) { transition-delay: calc(var(--d, 0ms) + 180ms); }
.js .steps .show.rise, .js .steps .show .rise { transition-delay: calc(var(--d, 0ms) + 150ms); }
.js .item.rise::after { transform: translateY(-4px) scaleX(0); transform-origin: left; transition: transform .9s var(--ease) calc(var(--d, 0ms) + 250ms); }
.js .item.rise.in::after { transform: translateY(-4px); }
.num { display: inline-block; text-align: right; }
.form input, .form select, .calc input[type=number] { transition: border-color .18s ease; }
.form input:hover, .form select:hover, .calc input[type=number]:hover, .form input:focus, .form select:focus, .calc input[type=number]:focus { border-color: var(--ink); }

/* Relay diagram: packets travel app to node at one steady pace, hidden under each box, so they come out of the
   relay as they went in. A sparser pulse runs node to hub. Loops run only while .play (page.js, on screen). */
.d-flow .pk { fill: #9a9a9a; stroke: #fff; stroke-width: 2; }
.d-flow .pulse { fill: #9a9a9a; }
.js .pk { animation: pk 6.6s linear infinite paused; }
.js .pk:nth-child(2) { animation-delay: -2.2s; }
.js .pk:nth-child(3) { animation-delay: -4.4s; }
.js .pulse { animation: pulse 7.5s cubic-bezier(.65, 0, .35, 1) infinite paused; }
.js .play .pk, .js .play .pulse { animation-play-state: running; }
@keyframes pk { to { transform: translateY(324px); } }
@keyframes pulse { 0%, 15% { transform: none; } 55%, 100% { transform: translateY(100px); } }
.js .diagram .shackle { transform: translateY(-7px); }
.js .diagram.in .shackle { transform: none; transition: transform .8s var(--ease) .9s; }

/* The dark passage (423). page.js adds .dark while the privacy section crosses the middle of the screen; the dark ground
   is a pseudo-element that fades by opacity alone (compositor work, no per-frame paint), and the ink flips once by a
   short transition. It replaced a scroll-timeline colour-mix of registered custom properties on the full-bleed
   background plus 71 per-word scroll animations: one style recalc of the whole section and one composited layer per
   word on every scroll frame, which hard-froze real Chrome at 390 px. Without script the section is the light state. */
.privacy.wrap {
  --pi: var(--ink); --pm: var(--muted);
  /* Full-bleed panel by percent (never 100vw, so no horizontal scroll), the column kept by the header's gutter rule. */
  width: 100%; padding-inline: max(16px, (100% - var(--measure)) / 2);
  position: relative; isolation: isolate; color: var(--pi);
}
.js .privacy.wrap { padding-bottom: clamp(72px, 11vw, 140px); }
.privacy.wrap::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #262626; opacity: 0; transition: opacity .7s ease; }
.privacy.dark::before { opacity: 1; }
.privacy.dark { --pi: #f2f2f2; --pm: #a3a3a3; }
.privacy.wrap, .privacy .muted, .privacy figcaption, .privacy .d-note { transition: color .5s ease .15s, fill .5s ease .15s; }
.privacy .muted, .privacy figcaption { color: var(--pm); }
.privacy .d-note { fill: var(--pm); }
.privacy line[stroke-width="10"] { stroke: var(--pi); }
.privacy #tip-thick path { fill: var(--pi); }
.privacy .d-flow .pulse { fill: var(--pm); }
.privacy line[stroke-width="2"] { stroke: var(--pm); }
.privacy #tip-thin path { fill: var(--pm); }
/* The statement gains ink in about a dozen phrase groups as it scrolls: desktop only, where scroll timelines exist. */
@keyframes word { from { opacity: .4; } to { opacity: 1; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 720px) {
    .lead-p { view-timeline: --statement block; }
    .lead-p .w { animation: word linear both; animation-timeline: --statement; animation-range: cover calc(18% + var(--p) * 34%) cover calc(26% + var(--p) * 34%); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { opacity: 1; transform: none; transition: none; }
  .btn, .js .shot .meter > i, .js .shot .days li::before { transition: none; }
  .js .shot.rise:not(.in) .days li::before, .js .diagram .shackle { transform: none; }
  .js .shot.rise:not(.in) .meter > i { transform: scaleX(var(--w)); }
  .term .caret { animation: none; }
  .js .item.rise::after { transform: translateY(-4px); transition: none; }
  .js .pk, .js .pulse { animation: none; }
}

/* Features: two captures side by side under the sheet */
.pair { display: grid; gap: 0 40px; margin-top: 8px; }
@media (min-width: 880px) { .pair { grid-template-columns: 1fr 1fr; align-items: start; } }
@media (max-width: 479px) { .rows li { flex-direction: column; gap: 2px; padding: 10px 0; } .rows li span:last-child { text-align: left; max-width: none; } }

/* Phone (423): the step's picture leads its words, code wraps instead of scrolling sideways, touch targets reach 44 px. */
@media (max-width: 879px) { .steps .show { order: -1; } }
@media (max-width: 719px) {
  .top .btn-sm, .top .login, .text-link, .foot-links a, .mark { display: inline-flex; align-items: center; min-height: 44px; }
  .calc .radio { min-height: 44px; margin: 0; }
}
@media (max-width: 480px) {
  .steps .call { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; padding: 14px; }
  .ui:not(.term) { padding: 14px; }
  .chart .h { flex-direction: column; gap: 2px; }
}
