/* fline.sh — the landing page.
 *
 * The palette, the role semantics and the type rule are not invented here. They
 * are the Filament system from user-space/web/src/styles/tokens.css, carried
 * over so the page a visitor reads and the console they sign in to are visibly
 * the same product. Two rules travel with them and are worth restating, because
 * every addition below is checked against them:
 *
 *   1. Cyan is the platform working. Amber is a person being required. Amber is
 *      rationed — on this page it appears exactly twice, at the break in the
 *      spine and on the submit button. Scarcity is the entire reason it is
 *      believed.
 *   2. Anything read as an identifier is mono. Anything read as a sentence is
 *      sans.
 *
 * The one thing this file adds that the console cannot have: a real web font.
 * The console is embedded in a Go binary that must render on a host with no
 * font CDN, so it names JetBrains Mono and falls back. This page is served by a
 * binary that carries the font with it, so it gets the face the token always
 * wanted.
 */

/* ------------------------------------------------------------------ fonts - */

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/static/fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/static/fonts/JetBrainsMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------------------- tokens - */

:root {
  color-scheme: dark;

  /* Ground. Not black: an ink-blue graphite biased a few degrees toward the
   * filament, so the accent sits in the surface rather than on top of it. */
  --void: #08090c;
  --panel: #0e1015;
  --raised: #14171d;
  --hover: #1a1e26;
  --hairline: #1d212a;
  --edge: #2b3140;

  --text: #edeff3;
  --dim: #98a0ae;
  --mute: #626a79;
  --faint: #414855;

  /* The filament — the platform acting. */
  --fil: #5cd9ff;
  --fil-core: #cdf3ff;
  --fil-soft: rgba(92, 217, 255, 0.14);
  --fil-glow: rgba(92, 217, 255, 0.34);

  /* The four roles, answering "whose turn is it?". */
  --role-live: #26c98a;
  --role-needs: #ffb020;
  --role-failed: #ff5c6e;
  --role-idle: #5b6373;

  --live-bg: rgba(38, 201, 138, 0.12);
  --needs-bg: rgba(255, 176, 32, 0.13);
  --needs-bg-strong: rgba(255, 176, 32, 0.22);
  --needs-glow: rgba(255, 176, 32, 0.3);
  --failed-bg: rgba(255, 92, 110, 0.12);
  --idle-bg: rgba(91, 99, 115, 0.16);

  /* Label colour has to flip with the theme or the most important button on the
   * page degrades in half of it. */
  --on-fil: #04141c;
  --on-needs: #1e1400;

  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', SFMono-Regular, Menlo,
    'Cascadia Mono', Consolas, monospace;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', ui-sans-serif,
    'Helvetica Neue', Arial, sans-serif;

  --r-card: 8px;
  --r-ctrl: 6px;
  --r-chip: 4px;

  --t: 110ms cubic-bezier(0.32, 0.72, 0.36, 1);

  --gutter: 4.5rem;   /* where the spine lives */
  --measure: 63ch;    /* prose column */
  --wrap: 1160px;
}

/* Light is a full second palette, not an inversion: the accents are darkened
 * for paper rather than reused at brightnesses tuned for a near-black ground. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    color-scheme: light;
    --void: #f7f8fa;
    --panel: #ffffff;
    --raised: #f2f4f7;
    --hover: #e9ecf1;
    --hairline: #e3e7ed;
    --edge: #cbd2dc;
    --text: #11141a;
    --dim: #58606e;
    --mute: #7c8492;
    --faint: #a3aab6;
    --fil: #0b87b8;
    --fil-core: #0b6f97;
    --fil-soft: rgba(11, 135, 184, 0.1);
    --fil-glow: rgba(11, 135, 184, 0.26);
    --role-live: #0f9a68;
    --role-needs: #a96a00;
    --role-failed: #c8323f;
    --role-idle: #8a92a0;
    --live-bg: rgba(15, 154, 104, 0.1);
    --needs-bg: rgba(169, 106, 0, 0.1);
    --needs-bg-strong: rgba(169, 106, 0, 0.18);
    --needs-glow: rgba(169, 106, 0, 0.24);
    --failed-bg: rgba(200, 50, 63, 0.1);
    --idle-bg: rgba(138, 146, 160, 0.14);
    --on-fil: #ffffff;
    --on-needs: #ffffff;
  }
}

:root[data-theme='light'] {
  color-scheme: light;
  --void: #f7f8fa;
  --panel: #ffffff;
  --raised: #f2f4f7;
  --hover: #e9ecf1;
  --hairline: #e3e7ed;
  --edge: #cbd2dc;
  --text: #11141a;
  --dim: #58606e;
  --mute: #7c8492;
  --faint: #a3aab6;
  --fil: #0b87b8;
  --fil-core: #0b6f97;
  --fil-soft: rgba(11, 135, 184, 0.1);
  --fil-glow: rgba(11, 135, 184, 0.26);
  --role-live: #0f9a68;
  --role-needs: #a96a00;
  --role-failed: #c8323f;
  --role-idle: #8a92a0;
  --live-bg: rgba(15, 154, 104, 0.1);
  --needs-bg: rgba(169, 106, 0, 0.1);
  --needs-bg-strong: rgba(169, 106, 0, 0.18);
  --needs-glow: rgba(169, 106, 0, 0.24);
  --failed-bg: rgba(200, 50, 63, 0.1);
  --idle-bg: rgba(138, 146, 160, 0.14);
  --on-fil: #ffffff;
  --on-needs: #ffffff;
}

/* ------------------------------------------------------------------ reset - */

/* Every element reset sits inside :where() and contributes zero specificity. A
 * reset that outranks a component class is how a design system silently
 * un-styles its own buttons — this codebase has already paid for that once. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:where(body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol) {
  margin: 0;
}

:where(ul, ol) {
  padding: 0;
  list-style: none;
}

:where(button, input, select, textarea) {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

:where(a) {
  color: inherit;
  text-decoration: none;
}

:where(img, svg) {
  display: block;
  max-width: 100%;
}

:where(table) {
  border-collapse: collapse;
  width: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--fil-soft);
  color: var(--fil-core);
}

:focus-visible {
  outline: 2px solid var(--fil);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------------------------------------------------------------- helpers - */

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* The micro-label voice: the same voice as the stage names on the wire, so a
 * section heading and a stop on the track read as the same kind of thing —
 * which they are. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mute);
  display: block;
}

.eyebrow-fil { color: var(--fil); }
.eyebrow-needs { color: var(--role-needs); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--panel);
  color: var(--text);
  padding: 0.75rem 1rem;
  border: 1px solid var(--edge);
  border-radius: var(--r-ctrl);
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----------------------------------------------------------------- layout - */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Grid and flex children default to min-width:auto, which means a child that
 * cannot shrink — a <pre> holding a terminal transcript, a wide table — pushes
 * its track past the viewport instead of scrolling inside its own box. Every
 * horizontal-overflow bug on this page was this rule missing. */
.hero-grid > *,
.split > *,
.grid > *,
.status-grid > *,
.stage > *,
.topbar-in > * {
  min-width: 0;
}

.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
  position: relative;
}

.section + .section {
  border-top: 1px solid var(--hairline);
}

.section-head {
  max-width: var(--measure);
  margin-bottom: 2.75rem;
}

.section-head .eyebrow {
  margin-bottom: 0.9rem;
}

.section-head .lede {
  margin-top: 0.95rem;
}

h1,
h2,
h3 {
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1.08;
  /* Mono set tight at display size. The console already does this at 34px on
   * the launch screen; this page carries it up to the hero. */
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.45rem);
}

h3 {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.lede {
  max-width: var(--measure);
  color: var(--dim);
  font-size: 1.02rem;
}

.lede strong,
.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose {
  max-width: var(--measure);
  color: var(--dim);
}

.prose p + p {
  margin-top: 1rem;
}

/* ------------------------------------------------------------------ spine - */

/* The signature. A 2px wire down the left gutter that fills as you scroll and
 * BREAKS where a person is required. The break is the product: the company is
 * named after it. Below 1100px the gutter does not exist and neither does the
 * spine — the sections carry their own role colour instead. */

/* Positioned in the margin, 48px clear of the text: the content column starts
 * at half the leftover viewport plus its own 24px padding, so the wire sits
 * 24px further out again. Anything less and it draws on top of the first
 * character of every eyebrow. */
.spine {
  position: fixed;
  left: calc((100vw - var(--wrap)) / 2 - 24px);
  top: 0;
  bottom: 0;
  width: 2px;
  z-index: 1;
  pointer-events: none;
  display: none;
}

.spine-track {
  position: absolute;
  inset: 0;
  background: var(--hairline);
}

.spine-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, var(--fil-glow), var(--fil));
  box-shadow: 0 0 10px var(--fil-glow);
  transition: height 90ms linear;
}

/* The break. A gap in the track with an amber dot in it, positioned against the
 * section where the values stop. */
.spine-break {
  position: absolute;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--role-needs);
  box-shadow: 0 0 0 5px var(--void), 0 0 14px var(--needs-glow);
}

.spine-gap {
  position: absolute;
  left: 0;
  width: 2px;
  background: var(--void);
}

/* 1280 rather than 1100: below it the content column is viewport-limited and
 * there is no margin left for the wire to live in. */
@media (min-width: 1280px) {
  .spine {
    display: block;
  }
}

/* ---------------------------------------------------------------- topbar - */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--void) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t);
}

.topbar.is-stuck {
  border-bottom-color: var(--hairline);
}

.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 58px;
}

/* The wordmark. The wire is the crossbar between the f and the line — when the
 * words go, the filament is the half that survives, because it is the half that
 * is not a word. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
}

.brand-wire {
  display: block;
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--fil-glow), var(--fil));
  box-shadow: 0 0 6px var(--fil-glow);
}

.topbar-nav {
  display: none;
  align-items: center;
  gap: 1.6rem;
}

.topbar-nav a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--mute);
  transition: color var(--t);
}

.topbar-nav a:hover {
  color: var(--text);
}

@media (min-width: 860px) {
  .topbar-nav {
    display: flex;
  }
}

/* --------------------------------------------------------------- controls - */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 34px;
  padding: 0 0.95rem;
  border-radius: var(--r-ctrl);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--t), border-color var(--t), color var(--t);
  white-space: nowrap;
}

/* A button's fill states whose turn it is. */
.btn-fil {
  background: var(--fil);
  color: var(--on-fil);
}

.btn-fil:hover {
  background: var(--fil-core);
}

.btn-needs {
  background: var(--role-needs);
  color: var(--on-needs);
}

.btn-needs:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  border-color: var(--edge);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--hover);
}

.btn-lg {
  height: 40px;
  padding: 0 1.25rem;
  font-size: 13px;
}

/* ------------------------------------------------------------------- hero - */

.hero {
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  position: relative;
}

.hero h1 {
  font-size: clamp(2.1rem, 6.2vw, 4rem);
  max-width: 19ch;
  margin-bottom: 1.5rem;
}

/* Cyan, not amber. The highlighted phrase is the thing the platform does for
 * you, and cyan is the platform working — amber would say a person is required,
 * which is the opposite of the claim. */
.hero h1 .builds {
  color: var(--fil);
}

.hero-lede {
  max-width: 56ch;
  color: var(--dim);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.hero-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--mute);
}

.hero-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
    gap: 1.75rem;
  }
}

/* -------------------------------------------------------------- transcript - */

/* The hero's argument, in the vernacular the audience actually lives in. It
 * runs to completion and then stops, in amber, at the one step a machine cannot
 * take. Every tool name in it is real: they are the MCP tools the server
 * advertises. */

.term {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--hairline);
  background: var(--raised);
}

.term-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--edge);
}

.term-title {
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mute);
}

.term-body {
  padding: 0.9rem;
  margin: 0;
  overflow-x: auto;
}

.term-line {
  display: flex;
  gap: 0.6rem;
  white-space: pre;
  color: var(--dim);
}

.term-line[data-pending='true'] {
  opacity: 0;
}

.term-line .k {
  color: var(--mute);
  flex: none;
  width: 1.1rem;
}

.term-line .t {
  color: var(--text);
}

.term-line .id {
  color: var(--fil);
}

.term-line .ok {
  color: var(--role-live);
}

.term-line .warn {
  color: var(--role-needs);
}

.term-line .cmt {
  color: var(--faint);
}

.term-halt,
.term-live {
  border-top: 1px solid var(--hairline);
  padding: 0.8rem 0.9rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.term-halt {
  background: var(--needs-bg);
  color: var(--role-needs);
}

/* The transcript's ordinary ending: a URL that is already serving. */
.term-live {
  background: var(--live-bg);
  color: var(--role-live);
}

.term-live .url {
  font-family: var(--font-mono);
  color: var(--role-live);
}

.term-halt .mark {
  flex: none;
  font-weight: 700;
}

.term-halt-text {
  color: var(--text);
  font-size: 12px;
  line-height: 1.6;
}

.term-halt-text b {
  color: var(--role-needs);
  font-weight: 700;
}

/* ------------------------------------------------------------------- wire - */

/* The five stops. Ordinal truth only: which are behind, which is under way,
 * and where it stopped. It never carries a percentage, because nothing in the
 * payload supports one. */

.wire {
  padding: 1.4rem 0 0.2rem;
}

.wire-track {
  position: relative;
  height: 2px;
  background: var(--hairline);
  margin: 0 0 0.9rem;
}

.wire-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  background: var(--fil);
  box-shadow: 0 0 8px var(--fil-glow);
  width: 0;
  transition: width 620ms cubic-bezier(0.32, 0.72, 0.36, 1);
}

.wire-dot {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--edge);
  transition: background var(--t), box-shadow var(--t);
}

.wire-dot.done {
  background: var(--fil);
}

.wire-dot.needs {
  background: var(--role-needs);
  box-shadow: 0 0 0 4px var(--needs-bg), 0 0 12px var(--needs-glow);
}

.wire-dot.is-live {
  background: var(--role-live);
  box-shadow: 0 0 0 4px var(--live-bg);
}

.wire-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--faint);
  gap: 0.4rem;
}

.wire-labels span.on {
  color: var(--fil);
}

.wire-labels span.stop {
  color: var(--role-needs);
}

.wire-labels span.live {
  color: var(--role-live);
}

/* Stop positions. These live here rather than in a style attribute because the
 * page ships a Content-Security-Policy with no 'unsafe-inline', and a policy
 * that has to be relaxed to render the page is not a policy. */
.wire-dot.at-0 { left: 0%; }
.wire-dot.at-25 { left: 25%; }
.wire-dot.at-50 { left: 50%; }
.wire-dot.at-75 { left: 75%; }
.wire-dot.at-100 { left: 100%; }

/* Spacing that belongs to one composition rather than to a component. Named for
 * where it is used, so changing one cannot silently move another. */
.cost-table,
.cost-caveat {
  margin-top: 2rem;
}

.cost-caveat .prose {
  margin-top: 0.7rem;
  /* Wider than the default measure: this is a full-bleed callout, and at 63ch
   * the text fills half of an amber-bordered box and leaves the other half
   * looking like a rendering fault. */
  max-width: 84ch;
}

.data-panel h3 {
  margin-bottom: 0.6rem;
}

.data-code {
  margin-top: 0.9rem;
}

.data-quote {
  margin-bottom: 0;
}

.start-code {
  margin-top: 1.25rem;
}

.start-note {
  margin-top: 0.7rem;
}

/* ------------------------------------------------------------------ panel - */

.panel {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 1.25rem;
}

.panel-needs {
  border-color: color-mix(in srgb, var(--role-needs) 45%, var(--hairline));
  background: var(--needs-bg);
}

.grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--dim);
  font-size: 14px;
}

.card-ord {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  color: var(--faint);
  display: block;
  margin-bottom: 0.7rem;
}

/* --------------------------------------------------------------- theline - */

/* Two actors, two columns. The rule the whole product turns on, laid out so the
 * asymmetry is visible before a word is read: the agent's column is long and
 * cyan, yours is short and amber. */

.split {
  display: grid;
  gap: 1rem;
}

/* start, not stretch: the "you" column is deliberately much shorter than the
 * agent's, and letting it end where its content ends makes the asymmetry the
 * thing you see. Stretched to match, it reads as an empty box instead. */
@media (min-width: 880px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
  }
}

.actor {
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: var(--panel);
  padding: 1.35rem;
  border-left-width: 2px;
}

.actor-agent {
  border-left-color: var(--fil);
}

.actor-you {
  border-left-color: var(--role-needs);
  background: var(--needs-bg);
}

.actor-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.actor h3 {
  font-size: 1.15rem;
}

.actor-count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  color: var(--mute);
}

.actor-list li {
  display: flex;
  gap: 0.65rem;
  padding: 0.42rem 0;
  font-size: 14px;
  color: var(--dim);
  border-top: 1px solid var(--hairline);
}

.actor-list li:first-child {
  border-top: 0;
}

.actor-list .tool {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fil);
  flex: none;
  min-width: 8.5rem;
}

.actor-you .actor-list .tool {
  color: var(--role-needs);
}

.actor-foot {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--mute);
}

/* --------------------------------------------------------------- pipeline - */

/* Here, and only here, the numbering is honest: this content genuinely is an
 * ordered sequence, and the order carries information the reader needs. */

.pipe {
  display: grid;
  gap: 0;
  counter-reset: stage;
}

.stage {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--hairline);
  align-items: start;
}

.stage:first-child {
  border-top: 0;
}

.stage-n {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
  padding-top: 0.2rem;
  font-variant-numeric: tabular-nums;
}

.stage-name {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.stage-body {
  color: var(--dim);
  font-size: 14px;
  /* Wider than prose, because these are short entries rather than paragraphs,
   * but not full-bleed: at 1440 an unconstrained row runs to about 140
   * characters, which is roughly twice a comfortable measure. */
  max-width: 80ch;
}

.stage-who {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: var(--r-chip);
}

.who-machine {
  color: var(--fil);
  background: var(--fil-soft);
}

.who-you {
  color: var(--role-needs);
  background: var(--needs-bg-strong);
}

.who-free {
  color: var(--role-live);
  background: var(--live-bg);
}

/* ----------------------------------------------------------------- claims - */

.claim {
  border-top: 1px solid var(--hairline);
  padding: 1.15rem 0;
  display: grid;
  gap: 0.35rem;
}

.claim:first-child {
  border-top: 0;
}

.claim-t {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.claim-d {
  color: var(--dim);
  font-size: 14px;
  max-width: var(--measure);
}

/* ------------------------------------------------------------------ quote - */

.quote {
  border-left: 2px solid var(--fil);
  padding: 0.15rem 0 0.15rem 1.15rem;
  margin: 1.5rem 0;
  max-width: var(--measure);
}

.quote p {
  font-size: 14.5px;
  color: var(--text);
}

.quote cite {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--mute);
  font-style: normal;
}

/* ---------------------------------------------------------------- honesty - */

/* The status table. It is the reason this page can be believed at all, so it
 * gets the same visual weight as the claims above it, not a footnote's. */

.status-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 820px) {
  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.status-col {
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: var(--panel);
  padding: 1.25rem;
}

.status-col-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--hairline);
}

.status-col-head .eyebrow {
  margin: 0;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

.dot-live { background: var(--role-live); }
.dot-idle { background: var(--role-idle); }

.status-list li {
  display: flex;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font-size: 13.5px;
  color: var(--dim);
}

.status-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex: none;
  margin-top: 0.62rem;
  background: var(--edge);
}

.status-live li::before { background: var(--role-live); }
.status-not li::before { background: var(--role-idle); }

.status-list .n {
  color: var(--text);
  font-weight: 600;
}

.dated {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--mute);
  margin-top: 1rem;
}

/* ------------------------------------------------------------------ table - */

.tbl-wrap {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
}

.tbl {
  font-size: 13.5px;
  min-width: 34rem;
}

.tbl thead th {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: left;
  font-weight: 400;
  padding: 0.7rem 0.9rem;
  background: var(--raised);
  border-bottom: 1px solid var(--hairline);
}

.tbl td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--dim);
  vertical-align: top;
}

.tbl tr:last-child td {
  border-bottom: 0;
}

.tbl td:first-child {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.tbl .free {
  color: var(--role-live);
  font-family: var(--font-mono);
  font-size: 12px;
}

.tbl .costs {
  color: var(--role-needs);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ------------------------------------------------------------------- code - */

.code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: var(--r-ctrl);
  padding: 0.75rem 0.9rem;
  overflow-x: auto;
  color: var(--text);
  white-space: pre;
}

.code .p {
  color: var(--mute);
}

code.inline {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: var(--r-chip);
  padding: 0.06em 0.34em;
  color: var(--fil);
  white-space: nowrap;
}

/* ------------------------------------------------------------------- form - */

/* Narrow, because it is a form and not a banner. A 1100px-wide email field
 * reads as a search bar and makes three short questions look like a survey. */
.join {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: clamp(1.25rem, 3vw, 2rem);
  max-width: 43rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mute);
}

.field .opt {
  color: var(--faint);
  text-transform: none;
  letter-spacing: 0.02em;
}

.input,
.select,
.textarea {
  width: 100%;
  background: var(--void);
  border: 1px solid var(--edge);
  border-radius: var(--r-ctrl);
  padding: 0 0.7rem;
  height: 38px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  transition: border-color var(--t), background var(--t);
}

.textarea {
  height: auto;
  min-height: 78px;
  padding: 0.55rem 0.7rem;
  line-height: 1.6;
  resize: vertical;
}

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%),
    linear-gradient(135deg, var(--mute) 50%, transparent 50%);
  background-position: calc(100% - 15px) 17px, calc(100% - 10px) 17px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--fil);
  outline: none;
  background: var(--panel);
}

.input[aria-invalid='true'],
.textarea[aria-invalid='true'] {
  border-color: var(--role-failed);
}

.field-err {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--role-failed);
}

/* The honeypot. Off-screen rather than display:none, because some bots skip
 * hidden inputs but not positioned ones. Hidden from assistive tech too. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.join-foot {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.join-note {
  font-size: 12.5px;
  color: var(--mute);
  max-width: 42ch;
}

.banner {
  border-radius: var(--r-ctrl);
  padding: 0.85rem 1rem;
  margin-bottom: 1.1rem;
  font-size: 13.5px;
  border: 1px solid transparent;
}

.banner-ok {
  background: var(--live-bg);
  border-color: color-mix(in srgb, var(--role-live) 40%, transparent);
  color: var(--text);
}

.banner-err {
  background: var(--failed-bg);
  border-color: color-mix(in srgb, var(--role-failed) 40%, transparent);
  color: var(--text);
}

.banner b {
  color: var(--role-live);
}

.banner-err b {
  color: var(--role-failed);
}

/* ----------------------------------------------------------------- footer - */

.footer {
  border-top: 1px solid var(--hairline);
  padding-block: 2.5rem 3rem;
  color: var(--mute);
  font-size: 12.5px;
}

.footer-in {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.footer a:hover {
  color: var(--text);
}

/* ----------------------------------------------------------------- motion - */

@keyframes breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.live-pip {
  animation: breathe 2.2s ease-in-out infinite;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.term-line[data-shown='true'] {
  animation: reveal 220ms cubic-bezier(0.32, 0.72, 0.36, 1) both;
  opacity: 1;
}

/* One kill switch, and it must actually kill everything: the transcript is
 * rendered complete in the HTML, so removing the animation leaves the full
 * argument on screen rather than an empty box. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .term-line[data-pending='true'] {
    opacity: 1;
  }
}
