/* thereisnospoon.org -- Seamless landing page.
   Extends the Seamless Console Design System (internal/console/static/console.css):
   warm paper, indigo brand, coral pop, Space Grotesk / Hanken Grotesk / JetBrains
   Mono (self-hosted variable woff2, OFL -- see fonts/OFL-NOTICE.txt).
   Fully self-contained: no CDNs, no trackers, no cookies. */

/* ==========================================================================
   FONTS (variable, latin subset)
   ========================================================================== */
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

/* ==========================================================================
   TOKENS -- light (paper) first, mirrored from the console
   ========================================================================== */
:root {
  --paper:         #f7f6f2;
  --surface:       #ffffff;
  --surface-2:     #f1efe9;
  --surface-3:     #e9e6dd;
  --border:        #e4e1d8;
  --border-strong: #d3cfc3;
  --ink:           #1c1e24;
  --ink-2:         #3b3e46;
  --muted:         #676a72;
  --faint:         #6f7178;

  --brand:        #3f56e8;
  --brand-strong: #2c3ec6;
  --brand-soft:   #eaecfd;
  --brand-ink:    #ffffff;
  --pop:          #ff6a3d;
  --pop-strong:   #b0431a;
  --pop-soft:     #ffece4;
  --ok:           #0e7a42;
  --ok-soft:      #e2f5ea;

  /* terminal panel is dark in both themes */
  --term-bg:     #14161c;
  --term-border: #2b303b;
  --term-ink:    #d7dae2;
  --term-muted:  #7d8291;
  --term-green:  #7fd6a4;
  --term-brand:  #93a0ff;
  --term-pop:    #ffa285;

  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans:    "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --tracking-tight: -0.02em;
  --tracking-wide:  0.04em;
  --tracking-wider: 0.08em;

  --content-max: 1120px;

  --radius-xs: 5px; --radius-sm: 7px; --radius-md: 10px; --radius-lg: 14px;
  --radius-xl: 20px; --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20, 22, 30, 0.05), 0 1px 3px rgba(20, 22, 30, 0.07);
  --shadow-md: 0 2px 6px rgba(20, 22, 30, 0.06), 0 8px 22px rgba(20, 22, 30, 0.07);
  --shadow-lg: 0 8px 20px rgba(20, 22, 30, 0.10), 0 24px 48px rgba(20, 22, 30, 0.10);
  --shadow-focus: 0 0 0 3px var(--brand-soft);

  --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur-fast: 120ms; --dur-med: 200ms; --dur-slow: 320ms;

  color-scheme: light dark;
}

[data-theme="dark"] {
  --paper:         #101217;
  --surface:       #181b22;
  --surface-2:     #20242e;
  --surface-3:     #2a2f3a;
  --border:        #2b303b;
  --border-strong: #3a4150;
  --ink:           #e8eaf0;
  --ink-2:         #c4c8d2;
  --muted:         #949aa8;
  --faint:         #8b909d;
  --brand:         #7d8cff;
  --brand-strong:  #98a5ff;
  --brand-soft:    #262c48;
  --brand-ink:     #0e1020;
  --pop:           #ff8a62;
  --pop-strong:    #ffb59d;
  --pop-soft:      #3a2018;
  --ok:            #4ade80;
  --ok-soft:       #143024;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.35), 0 8px 22px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.45), 0 24px 48px rgba(0, 0, 0, 0.45);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:         #101217;
    --surface:       #181b22;
    --surface-2:     #20242e;
    --surface-3:     #2a2f3a;
    --border:        #2b303b;
    --border-strong: #3a4150;
    --ink:           #e8eaf0;
    --ink-2:         #c4c8d2;
    --muted:         #949aa8;
    --faint:         #8b909d;
    --brand:         #7d8cff;
    --brand-strong:  #98a5ff;
    --brand-soft:    #262c48;
    --brand-ink:     #0e1020;
    --pop:           #ff8a62;
    --pop-strong:    #ffb59d;
    --pop-soft:      #3a2018;
    --ok:            #4ade80;
    --ok-soft:       #143024;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.35), 0 8px 22px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.45), 0 24px 48px rgba(0, 0, 0, 0.45);
  }
}

/* ==========================================================================
   BASE
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--brand-soft); color: var(--ink); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code, pre, kbd { font-family: var(--font-mono); }
img, svg { max-width: 100%; height: auto; }

.wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 24px; }

/* paper grain -- barely-there texture so the page reads as a made object */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.022 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* mono kicker -- the console's uppercase section label */
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--border-strong);
}

/* the signature live-dot */
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  display: inline-block;
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 45%, transparent); }
  55%      { box-shadow: 0 0 0 7px transparent; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
}
.wordmark:hover { text-decoration: none; }
.wordmark .caret {
  color: var(--term-green);
  animation: blink 1.1s steps(1) infinite;
}
.head-nav { display: flex; align-items: center; gap: 22px; }
.head-nav a {
  font-size: 14.5px; font-weight: 500;
  color: var(--ink-2);
}
.head-nav a:hover { color: var(--ink); text-decoration: none; }
.head-nav .gh-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.head-nav .gh-link:hover { border-color: var(--ink-2); box-shadow: var(--shadow-sm); }
.theme-toggle {
  appearance: none; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--ink-2);
  width: 34px; height: 34px; border-radius: 50%;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.theme-toggle:hover { border-color: var(--ink-2); }
.theme-toggle svg { width: 16px; height: 16px; }
:root:not([data-theme="dark"]) .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-moon { display: none; }
  :root:not([data-theme="light"]) .icon-sun { display: block; }
}
@media (max-width: 720px) {
  /* Anchors collapse on phones, but Docs is a destination, not an anchor --
     without it the only mobile path to the docs is the footer. */
  .head-nav a:not(.gh-link):not(.docs-link) { display: none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding: 84px 0 72px; position: relative; overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.hero .kicker { color: var(--ok); }
.hero .kicker::before { display: none; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.2vw, 60px);
  line-height: 1.04;
  letter-spacing: var(--tracking-tight);
  margin: 18px 0 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
}
.hero .sub {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 34em;
  margin-bottom: 32px;
}
.hero .sub strong { color: var(--ink); font-weight: 600; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.install-pill {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  padding: 12px 14px 12px 18px;
  background: var(--term-bg);
  color: var(--term-ink);
  border: 1px solid var(--term-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-width: 100%;
}
.install-pill .p { color: var(--term-green); user-select: none; flex: none; }
.install-pill [data-copy] {
  display: block;
  flex: 0 1 auto; min-width: 0;
  overflow-x: auto; white-space: nowrap;
  scrollbar-width: none;
}
.copy-btn {
  appearance: none; cursor: pointer;
  border: 1px solid var(--term-border);
  background: transparent; color: var(--term-muted);
  border-radius: var(--radius-xs);
  padding: 5px 9px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--tracking-wide);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  flex: none;
}
.copy-btn:hover { color: var(--term-ink); border-color: var(--term-muted); }
.copy-btn.ok { color: var(--term-green); border-color: var(--term-green); }
/* OS switch (hero + quickstart): the head script sets data-os on <html> from
   the UA before first paint; picking a button overrides it. Without JS the
   attribute is never set, so both commands show and the switch hides. */
:root[data-os="unix"] [data-os-block="windows"],
:root[data-os="windows"] [data-os-block="unix"] { display: none; }
:root:not([data-os]) .os-switch { display: none; }
.os-switch {
  display: inline-flex; gap: 2px;
  margin-bottom: 12px; padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
}
.os-switch button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: var(--tracking-wide);
  color: var(--muted);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.os-switch button:hover { color: var(--ink); }
:root[data-os="unix"] .os-switch button[data-os-pick="unix"],
:root[data-os="windows"] .os-switch button[data-os-pick="windows"] {
  background: var(--brand-soft); color: var(--brand);
}

.cta-secondary { display: flex; gap: 18px; margin-top: 16px; }
.cta-secondary a {
  font-size: 15px; font-weight: 600;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 7px;
}
.cta-secondary a:hover { color: var(--brand); text-decoration: none; }
.cta-secondary svg { width: 16px; height: 16px; }

/* terminal window */
.term {
  background: var(--term-bg);
  border: 1px solid var(--term-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
}
.term-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--term-border);
}
.term-bar i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--term-border);
}
.term-bar i:nth-child(1) { background: #e5484d; }
.term-bar i:nth-child(2) { background: #f5a623; }
.term-bar i:nth-child(3) { background: #30a46c; }
.term-bar span {
  margin-left: 8px;
  color: var(--term-muted);
  font-size: 11.5px;
  letter-spacing: var(--tracking-wide);
}
.term-body { padding: 18px 20px 20px; overflow-x: auto; }
.term-body .ln { display: block; white-space: pre; color: var(--term-ink); }
.term-body .p  { color: var(--term-green); }
.term-body .c  { color: var(--term-muted); font-style: italic; }
.term-body .k  { color: var(--term-brand); }
.term-body .s  { color: var(--term-pop); }
.term-body .dim { color: var(--term-muted); }
.cursor {
  display: inline-block;
  width: 8px; height: 1.1em;
  vertical-align: text-bottom;
  background: var(--term-green);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 900px) {
  .hero { padding: 56px 0 48px; }
  /* minmax(0, 1fr), not 1fr: a bare 1fr floors at min-content, which the
     nowrap install command pins wider than a phone viewport. */
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: 88px 0; }
.section.tint { background: var(--surface-2); border-block: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: var(--tracking-tight);
  line-height: 1.12;
  margin: 14px 0 14px;
}
.section-head p { color: var(--ink-2); font-size: 17.5px; }

/* pillar cards */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.pillar .prob {
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--pop-strong);
  background: var(--pop-soft);
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  letter-spacing: var(--tracking-tight);
  margin-bottom: 10px;
}
.pillar p { color: var(--ink-2); font-size: 15.5px; }
.pillar p code {
  font-size: 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 1px 6px;
}
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

/* how it works */
.how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.how-diagram {
  position: sticky; top: 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.steps { counter-reset: step; display: flex; flex-direction: column; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 22px 0;
}
.step + .step { border-top: 1px solid var(--border); }
.step::before {
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 17.5px; font-weight: 700;
  letter-spacing: var(--tracking-tight);
  margin-bottom: 4px;
}
.step p { color: var(--ink-2); font-size: 15px; }
.step p code {
  font-size: 12.5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 1px 6px;
}
@media (max-width: 900px) {
  .how { grid-template-columns: 1fr; }
  .how-diagram { position: static; }
}

/* diagram svg text */
.how-diagram text {
  font-family: var(--font-mono);
  fill: var(--ink-2);
}
.how-diagram .d-title { fill: var(--ink); font-weight: 600; }
.how-diagram .d-dim   { fill: var(--muted); }
.how-diagram .d-box   { fill: var(--surface-2); stroke: var(--border-strong); }
.how-diagram .d-core  { fill: var(--brand-soft); stroke: var(--brand); }
.how-diagram .d-file  { fill: var(--surface); stroke: var(--border-strong); }
.how-diagram .d-arrow { stroke: var(--muted); fill: none; }
.how-diagram .d-arrowhead { fill: var(--muted); }
/* Edge labels sit on top of their arrow; the surface-colored halo keeps the
   line from striking through the glyphs. */
.how-diagram .d-edge-label {
  stroke: var(--surface);
  stroke-width: 7px;
  stroke-linejoin: round;
  paint-order: stroke;
}

/* ==========================================================================
   TERMINAL SCENES -- animated verbatim with/without transcripts (scenes.js)
   ========================================================================== */
/* the reel: a scene-selector nav on top, one scene card in the stage below */
.scenes-reel { display: flex; flex-direction: column; gap: 16px; }
.scenes-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.scenes-nav:empty { display: none; } /* JS-off: the empty nav collapses */
.scene-tab {
  appearance: none; cursor: pointer; position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 8px 15px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: var(--tracking-wide);
  color: var(--muted);
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.scene-tab:hover { color: var(--ink); border-color: var(--border-strong); }
.scene-tab.active {
  color: var(--ink); border-color: var(--brand); background: var(--brand-soft);
}
.scene-tab .sr-num {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0;
  color: var(--muted); opacity: .7;
}
.scene-tab.active .sr-num { color: var(--brand); opacity: 1; }
/* auto-advance line: fills during the hold before the tour moves on */
.scene-tab .sr-prog {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--brand);
  transform: scaleX(0); transform-origin: left center;
}

/* stage: exactly one scene card visible; JS toggles .on. Before the player
   runs (crawlers, JS off) every card shows its server-rendered .scenes-fallback
   summary instead. The mount signal is the scene nav: the player always fills
   it, so a populated nav collapses the stage to the one .on card and hides the
   fallbacks. No JS hook needed -- the player only ever appends next to the
   fallback, it never clears the mount. */
.scenes-stage { position: relative; }
.scenes-stage .term-scene { display: block; }
.scenes-stage .term-scene + .term-scene { margin-top: 16px; }
.scenes-nav:not(:empty) ~ .scenes-stage .term-scene { display: none; margin-top: 0; }
.scenes-nav:not(:empty) ~ .scenes-stage .term-scene.on { display: block; animation: reel-in .34s var(--ease-out); }
.scenes-nav:not(:empty) ~ .scenes-stage .scenes-fallback { display: none; }

/* the static summary itself: the scene head plus a without|with outcome pair */
.scenes-fallback .ts-head { margin-bottom: 0; }
.sf-outcomes {
  margin-top: 16px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px;
}
.sf-pane {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.sf-pane dt {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.sf-pane dt::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--border-strong); flex: none;
}
.sf-without dt::before { background: var(--pop); }
.sf-with dt::before { background: var(--ok); }
.sf-pane dd { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
@keyframes reel-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.term-scene {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(18px, 3vw, 28px);
}

/* scene header */
.ts-head { margin-bottom: 16px; }
.ts-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--pop-strong);
  background: var(--pop-soft);
  display: inline-block; padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.ts-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 24px); font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1.16;
}
.ts-ask {
  margin-top: 12px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--ink);
}
.ts-ask-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: var(--tracking-wide);
  text-transform: uppercase; color: var(--brand);
  background: var(--brand-soft); padding: 2px 8px; border-radius: var(--radius-xs);
  flex: none;
}

/* the without|with toggle */
.term-tabs {
  display: flex; gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 14px;
  width: max-content; max-width: 100%;
}
.term-tab {
  appearance: none; cursor: pointer;
  border: 1px solid transparent; background: transparent;
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: var(--tracking-wide);
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.term-tab:hover { color: var(--ink); }
.term-tab.active {
  background: var(--surface); color: var(--ink);
  border-color: var(--border-strong); box-shadow: var(--shadow-sm);
}
.term-tab .tab-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border-strong); flex: none;
}
.term-tab.tab-without.active .tab-dot { background: var(--pop); }
.term-tab.tab-with.active .tab-dot { background: var(--ok); }
.term-tab.hint { color: var(--ink); animation: ts-tabhint 1.6s var(--ease-out) infinite; }
@keyframes ts-tabhint {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 40%, transparent); }
  55%      { box-shadow: 0 0 0 6px transparent; }
}

/* terminal panel (reuses the hero .term component) */
.term-scene-term { box-shadow: var(--shadow-md); font-size: 13px; }
.term-scene-term .term-body {
  position: relative;
  height: clamp(300px, 46vh, 460px);
  overflow: auto;
  scrollbar-width: thin;
}
.ts-pane { display: none; }
.ts-pane.on { display: block; }

/* per-step reveal -- SCOPED to scene terminals. The hero .term (no
   .term-scene-term) is static HTML with no .show/.idle, so an unscoped
   opacity:0 here blanks the whole hero terminal. Keep this prefix. */
.term-scene-term .term-body .ln, .term-scene-term .term-body .ffwd {
  opacity: 0; transform: translateY(3px);
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out);
}
.term-scene-term .term-body .ln.show, .term-scene-term .term-body .ffwd.show,
.term-scene-term .term-body .ln.idle { opacity: 1; transform: none; }

/* typed user prompt */
.term-body .ln.user { white-space: pre-wrap; margin: 2px 0; }
.term-body .ln.user .typed { color: var(--term-ink); }
.term-body .ln.user.typing .typed::after,
.term-body .ln.idle .caret {
  content: ""; display: inline-block;
  width: 7px; height: 1.05em; margin-left: 1px;
  vertical-align: text-bottom; background: var(--term-green);
  animation: blink 1.1s steps(1) infinite;
}

/* injection block -- appears as a unit, focus lines highlighted */
.term-body .ln.inject {
  white-space: pre-wrap;
  margin: 8px 0 10px;
  padding: 12px 14px 12px 16px;
  border: 1px solid color-mix(in srgb, var(--term-brand) 45%, transparent);
  border-left-width: 3px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--term-brand) 12%, transparent);
  color: var(--term-muted);
  font-size: 12px; line-height: 1.65;
}
.inject-tag {
  display: block; margin-bottom: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: var(--tracking-wide);
  text-transform: uppercase; color: var(--term-brand);
}
.term-body .ln.inject mark.foc {
  background: color-mix(in srgb, var(--term-pop) 22%, transparent);
  color: var(--term-ink);
  border-radius: 3px; padding: 0 2px;
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--term-pop) 55%, transparent);
}
.term-body .ln.inject.pulse { animation: ts-inject-pulse 1.2s var(--ease-out); }
@keyframes ts-inject-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--term-brand) 55%, transparent); }
  100% { box-shadow: 0 0 0 10px transparent; }
}

/* collapsed tool-call line */
.term-body .ln.tool { white-space: normal; margin: 3px 0; color: var(--term-muted); }
.term-body .ln.tool .tool-dot { color: var(--term-green); }
.term-body .ln.tool .tool-label { color: var(--term-ink); }

/* agent prose (markdown-lite) */
.term-body .ln.agent { white-space: normal; margin: 6px 0 8px; color: var(--term-ink); line-height: 1.7; }
.term-body .ln.agent p { margin: 0 0 8px; }
.term-body .ln.agent p:last-child, .term-body .ln.agent > :last-child { margin-bottom: 0; }
.term-body .ln.agent strong { color: #eef0f5; font-weight: 700; }
.term-body .ln.agent em { color: var(--term-muted); font-style: italic; }
.term-body .ln.agent code {
  font-size: 12px; color: var(--term-pop);
  background: color-mix(in srgb, var(--term-ink) 12%, transparent);
  border-radius: 3px; padding: 0 4px;
}
.term-body .ln.agent h4 {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700; letter-spacing: var(--tracking-wide);
  text-transform: uppercase; color: var(--term-brand);
  margin: 12px 0 6px;
}
.term-body .ln.agent blockquote {
  margin: 8px 0; padding: 4px 0 4px 12px;
  border-left: 2px solid color-mix(in srgb, var(--term-pop) 60%, transparent);
  color: var(--term-muted);
}
.term-body .ln.agent ul, .term-body .ln.agent ol { margin: 6px 0 8px; padding-left: 20px; }
.term-body .ln.agent li { margin: 2px 0; }

/* fast-forward span */
.term-body .ffwd {
  display: flex; align-items: baseline; gap: 9px;
  margin: 5px 0;
  color: var(--term-muted); font-size: 12px; font-style: italic;
}
.ffwd-chip {
  font-style: normal;
  font-size: 10px; font-weight: 700; letter-spacing: var(--tracking-wide);
  color: var(--term-green);
  border: 1px solid color-mix(in srgb, var(--term-green) 45%, transparent);
  border-radius: var(--radius-xs);
  padding: 1px 6px; flex: none;
}

/* footer: outcome + replay */
.ts-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 16px;
}
.ts-outcome { font-size: 14px; color: var(--ink-2); flex: 1; min-width: 0; }
.ts-replay {
  appearance: none; cursor: pointer; flex: none;
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--ink-2);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: var(--tracking-wide);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.ts-replay:hover { color: var(--ink); border-color: var(--ink-2); }

/* --- scene 3: two agents, one timeline (layout:"split") ------------------- */
.ts-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.ts-col { display: flex; flex-direction: column; min-width: 0; }
.ts-split-term .term-bar span {
  font-size: 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* same specificity as `.term-scene-term .term-body`, declared later -> wins */
.ts-split-term .ts-splitpane {
  height: clamp(260px, 40vh, 400px);
  overflow: auto; scrollbar-width: thin;
}
.ts-col-outcome { margin-top: 12px; font-size: 13px; }
.ts-foot-split { justify-content: center; margin-top: 18px; }

/* the claim collision: flash the winner green, the bounce coral */
.term-body .ln.tool.tool-win .tool-res { color: var(--term-green); }
.term-body .ln.tool.tool-bounce .tool-res { color: var(--term-pop); }
.term-body .ln.tool.tool-win.show { animation: ts-claim 1.3s var(--ease-out); --claim: var(--term-green); }
.term-body .ln.tool.tool-bounce.show { animation: ts-claim 1.3s var(--ease-out); --claim: var(--term-pop); }
@keyframes ts-claim {
  0%, 15% { background: transparent; }
  42%     { background: color-mix(in srgb, var(--claim) 20%, transparent); }
  100%    { background: transparent; }
}

/* --- files-as-truth epilogue: folded into scene 1's with-side ending ------- */
.cl-ln {
  display: block; white-space: pre-wrap;
  color: var(--term-ink); line-height: 1.7;
  opacity: 0; transform: translateY(3px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.cl-ln.show { opacity: 1; transform: none; }
.cl-ln.cl-comment { color: var(--term-muted); margin: 2px 0; }
.cl-ln.cl-cmd { margin: 7px 0 2px; }
.cl-ln.cl-fm { font-size: 12.5px; }
.cl-filegrid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 20px; margin: 4px 0 2px; max-width: 540px;
}
.cl-file { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-file.new { grid-column: 1 / -1; color: var(--term-green); font-weight: 600; }
.cl-tag { color: var(--term-muted); font-weight: 400; }
@media (max-width: 720px) {
  .ts-split { grid-template-columns: 1fr; }
  .ts-split-term .ts-splitpane { height: clamp(220px, 34vh, 320px); }
}

@media (max-width: 620px) {
  .scene-tab { padding: 7px 11px; font-size: 11.5px; gap: 7px; }
  .ts-foot { flex-direction: column; align-items: flex-start; }
  .term-tabs { width: 100%; }
  /* min-width:0 lets the two nowrap tabs shrink to share a 320px row instead of
     forcing a horizontal scroll; trimmed padding/tracking buys the slack. */
  .term-tab {
    flex: 1 1 0; min-width: 0; justify-content: center;
    padding: 7px 8px; gap: 6px; font-size: 11.5px; letter-spacing: 0;
    overflow: hidden; text-overflow: ellipsis;
  }
}
@media (prefers-reduced-motion: reduce) {
  .term-scene-term .term-body .ln, .term-scene-term .term-body .ffwd { opacity: 1; transform: none; transition: none; }
  .term-body .ln.user.typing .typed::after, .term-body .ln.idle .caret { animation: none; }
  .term-body .ln.inject.pulse { animation: none; }
  .term-tab.hint { animation: none; }
  .ln.tool.tool-win, .ln.tool.tool-bounce { animation: none; }
  .cl-ln { opacity: 1; transform: none; transition: none; }
  .scenes-stage .term-scene.on { animation: none; }
  .scene-tab .sr-prog { display: none; }
}

/* ==========================================================================
   CONSOLE SECTION
   ========================================================================== */
.console-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
.console-points { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.console-points li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 15.5px; color: var(--ink-2); }
.console-points li strong { color: var(--ink); font-weight: 600; }
.console-points .pt {
  width: 22px; height: 22px; border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  margin-top: 2px;
}
.console-note { margin-top: 26px; font-size: 13.5px; color: var(--faint); font-family: var(--font-mono); }

/* console screenshots (captured from a seeded demo instance; see
   SITE.md "Regenerate the console shots") */
.shot-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.shot-bar {
  display: flex; align-items: center; gap: 5px;
  padding: 9px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.shot-bar i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border-strong);
}
.shot-bar span {
  margin-left: 8px;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--faint);
}
.shot-img { display: block; width: 100%; height: auto; }
.shot-frame a { display: block; line-height: 0; }
.shot-strip {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.shot-card { margin: 0; }
.shot-card .shot-bar { padding: 7px 10px; }
.shot-card .shot-bar i { width: 7px; height: 7px; }
.shot-card figcaption {
  margin-top: 10px;
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--muted);
}
.shot-card figcaption .pt {
  width: 20px; height: 20px; border-radius: var(--radius-xs); flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
  font-size: 10px; font-weight: 600;
}
/* theme-paired images: the dark shot shows in dark mode, light in light.
   An explicit data-theme choice (the toggle) outranks the OS preference.
   Classes are doubled so these outrank element-qualified rules like
   `.shot-frame a` on both the <img> and <a> carriers. */
.themed-dark.themed-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .themed-light.themed-light { display: none; }
  .themed-dark.themed-dark { display: block; }
}
:root[data-theme="dark"] .themed-light.themed-light { display: none; }
:root[data-theme="dark"] .themed-dark.themed-dark { display: block; }
:root[data-theme="light"] .themed-light.themed-light { display: block; }
:root[data-theme="light"] .themed-dark.themed-dark { display: none; }
@media (max-width: 1024px) {
  .shot-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .console-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .shot-strip { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ALSO IN THE BOX
   ========================================================================== */
.stakes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.stake {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 14.5px;
  color: var(--ink-2);
  display: flex; flex-direction: column; gap: 4px;
}
.stake b {
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: var(--tracking-wide);
  color: var(--ink);
}
@media (max-width: 820px) { .stakes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .stakes { grid-template-columns: 1fr; } }

/* ==========================================================================
   QUICKSTART
   ========================================================================== */
.qs-steps { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.qs {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px;
  align-items: start;
}
.qs .n {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--brand); background: var(--brand-soft);
  border-radius: var(--radius-sm);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 4px;
}
.qs h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.qs .code {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--term-bg); color: var(--term-ink);
  border: 1px solid var(--term-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-mono); font-size: 13px;
  overflow-x: auto;
}
.qs .code .p { color: var(--term-green); user-select: none; }
.qs p.note { font-size: 14px; color: var(--muted); margin-top: 8px; }
.qs p.note code { font-size: 12.5px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 780px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.faq details:hover { border-color: var(--border-strong); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: var(--tracking-tight);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 18px;
  transition: transform var(--dur-med) var(--ease-out);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 22px 20px; color: var(--ink-2); font-size: 15.5px; }
.faq .a p + p { margin-top: 10px; }

/* ==========================================================================
   MANIFESTO
   ========================================================================== */
.manifesto {
  background: var(--term-bg);
  border-block: 1px solid var(--term-border);
  padding: 96px 0;
  color: var(--term-ink);
}
.manifesto .kicker { color: var(--term-green); }
.manifesto .kicker::before { background: var(--term-border); }
.manifesto h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
  margin: 20px 0 26px;
  max-width: 14em;
}
.manifesto h2 .strike { color: var(--term-muted); text-decoration: line-through; text-decoration-color: var(--term-pop); text-decoration-thickness: 3px; }
.manifesto p {
  max-width: 40em;
  font-size: 18px;
  line-height: 1.7;
  color: #aeb3c0;
}
.manifesto p + p { margin-top: 16px; }
.manifesto p strong { color: var(--term-ink); font-weight: 600; }
.manifesto .ls {
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--term-green);
}
.manifesto .ls .dim { color: var(--term-muted); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-foot { padding: 56px 0 64px; }
.site-foot .wrap {
  display: flex; flex-wrap: wrap; gap: 28px;
  align-items: flex-start; justify-content: space-between;
}
.site-foot .fm { max-width: 380px; }
.site-foot .tagline {
  font-family: var(--font-display);
  font-weight: 700; font-size: 17px;
  margin-top: 10px;
}
.site-foot .colophon {
  margin-top: 14px;
  font-size: 13px; color: var(--faint);
  line-height: 1.7;
}
.site-foot nav { display: flex; gap: 40px; }
.site-foot nav div { display: flex; flex-direction: column; gap: 8px; }
.site-foot nav b {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: var(--tracking-wider); text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}
.site-foot nav a { font-size: 14.5px; color: var(--ink-2); }
.site-foot nav a:hover { color: var(--brand); }

/* ==========================================================================
   REVEAL ANIMATION
   ========================================================================== */
.rv { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.rv.in { opacity: 1; transform: none; }
.rv:nth-child(2) { transition-delay: 70ms; }
.rv:nth-child(3) { transition-delay: 140ms; }
.rv:nth-child(4) { transition-delay: 210ms; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .live-dot, .cursor, .wordmark .caret { animation: none; }
  html { scroll-behavior: auto; }
}

/* focus visibility */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-xs);
}
