/* Tokens: copied from the Sona desktop design system (design/linear-study/ds/tokens.css). */
:root {
  color-scheme: dark;
  --bg-frame: #0B0B0D;
  --bg-panel: #111114;
  --bg-raised: #17171B;
  --bg-overlay: #1C1C21;
  --bg-inset: #08080A;
  --bg-control: #1F1F24;
  --bg-hover: rgba(255, 255, 255, 0.035);
  --bg-active: rgba(255, 255, 255, 0.065);
  --border-subtle: rgba(255, 255, 255, 0.055);
  --border: #26262C;
  --border-strong: #383840;
  --fg: #EDEDF0;
  --fg-2: #C4C4CC;
  --fg-muted: #9C9CA6;
  --fg-faint: #6A6A74;
  --accent: #E9A81C;
  --accent-hover: #F3C462;
  --accent-fg: #14100A;
  --accent-text: #F3C462;
  --accent-tint: rgba(233, 168, 28, 0.12);
  --accent-ring: rgba(233, 168, 28, 0.5);
  --st-active: #3FB950;
  --st-planning: #6FA8DC;
  --st-blocked: #E2703C;
  --st-failed: #F0555B;
  --st-pending: #6A6A74;
  --data-1: #E9A81C;
  --data-2: #6FA8DC;
  --data-3: #3FB950;
  --data-5: #B48EAD;
  --diff-add: rgba(63, 185, 80, 0.15);
  --diff-del: rgba(240, 85, 91, 0.15);
  --shadow-pop: 0 0 0 0.5px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-frame: 0 0 0 0.5px rgba(0, 0, 0, 0.5), 0 40px 120px rgba(0, 0, 0, 0.55);
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur: 160ms;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg-frame);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
code, pre, kbd { font-family: var(--font-mono); }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: 2px; border-radius: var(--r-xs); }
::selection { background: var(--accent-tint); color: var(--fg); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: 16px; top: -48px; padding: 8px 12px; background: var(--fg); color: var(--bg-frame); border-radius: var(--r-sm); z-index: 100; font-size: 13px; }
.skip-link:focus { top: 12px; }
.mono { font-family: var(--font-mono); }
.sprite { position: absolute; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Mark */
.mark { display: block; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 500; line-height: 1;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  cursor: pointer; white-space: nowrap;
}
.btn-sm { height: 30px; padding: 0 11px; font-size: 13px; border-radius: var(--r-sm); }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--bg-control); color: var(--fg); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--border-strong); background: var(--bg-overlay); }
.btn-quiet { color: var(--fg-muted); padding: 0 8px; }
.btn-quiet:hover { color: var(--fg); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 13, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 4px; font-size: 13.5px; color: var(--fg-muted); }
.site-nav a { padding: 6px 10px; border-radius: var(--r-sm); transition: color var(--dur) var(--ease); }
.site-nav a:hover { color: var(--fg); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* Hero */
.hero { position: relative; padding: 112px 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 720px; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 0%, rgba(255, 255, 255, 0.045), transparent 70%);
}
.hero-inner { position: relative; }
.hero-inner > * { max-width: 860px; }
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--fg-muted);
}
.label .tick { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-title {
  margin-top: 24px;
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}
.hero-title span { color: var(--fg-muted); }
.hero-lede {
  margin-top: 24px; max-width: 620px;
  font-size: 18px; line-height: 1.55; color: var(--fg-muted);
  text-wrap: pretty;
}
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cmd {
  display: inline-flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 6px 0 12px;
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--r-md);
  font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-2);
  max-width: 100%;
}
.cmd .prompt { color: var(--fg-faint); }
.cmd code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy {
  display: inline-flex; align-items: center; justify-content: center;
  height: 26px; padding: 0 8px; border-radius: var(--r-xs);
  background: transparent; border: 1px solid var(--border); color: var(--fg-muted);
  font: 500 12px var(--font-sans); cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.copy:hover { color: var(--fg); border-color: var(--border-strong); }
.copy[data-state="done"] { color: var(--st-active); }

/* Product frame */
.stage { position: relative; margin-top: 80px; }
.stage::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg-frame));
}
.app {
  display: grid; grid-template-columns: 228px 1fr;
  height: 640px;
  background: var(--bg-frame);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-frame);
  overflow: hidden;
  font-size: 13px; line-height: 1.45;
  user-select: none;
}
.app-side { display: flex; flex-direction: column; padding: 12px 8px; gap: 2px; }
.app-brand { display: flex; align-items: center; gap: 9px; padding: 6px 8px 14px; font-weight: 600; }
.app-brand .search { margin-left: auto; color: var(--fg-faint); }
.nav-item { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 8px; border-radius: var(--r-sm); color: var(--fg-2); }
.nav-item svg { flex: none; color: var(--fg-muted); }
.nav-item em { margin-left: auto; font-style: normal; color: var(--fg-faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.nav-item.is-on { background: var(--bg-active); color: var(--fg); }
.nav-group { padding: 16px 8px 6px; font-size: 12px; color: var(--fg-faint); }
.nav-spacer { flex: 1; }
.app-panel {
  margin: 8px 8px 8px 0;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
}
.app-top { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--border-subtle); color: var(--fg-muted); }
.app-top b { color: var(--fg); font-weight: 500; }
.app-top .sep { color: var(--fg-faint); }
.app-top .tools { margin-left: auto; display: flex; gap: 14px; color: var(--fg-faint); }
.app-body { padding: 28px 40px; overflow: hidden; }
.detail { max-width: 760px; margin: 0 auto; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 8px; border-radius: var(--r-full, 999px);
  border: 1px solid var(--border); color: var(--fg-2); font-size: 12px;
}
.chip--active { color: var(--st-active); border-color: rgba(63, 185, 80, 0.35); background: rgba(63, 185, 80, 0.08); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip .dot--active { color: var(--st-active); }
.chip-key { color: var(--fg-faint); font-size: 12px; }
.detail-title { margin-top: 12px; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
.detail-meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 18px; color: var(--fg-muted); font-size: 12.5px; }
.detail-meta span { display: inline-flex; align-items: center; gap: 6px; }
.detail-meta code { font-size: 12px; }
.controls { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.ctl {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--fg-2); font-size: 12.5px; font-weight: 500;
}
.ctl kbd { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 3px; border: 1px solid var(--border); font-size: 10.5px; color: var(--fg-faint); }
.ctl--danger { color: var(--st-failed); }
.stats { margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--r-md); }
.stat { padding: 12px 14px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat small { display: block; color: var(--fg-faint); font-size: 12px; }
.stat b { display: block; margin-top: 2px; font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.stat i { display: block; font-style: normal; color: var(--fg-faint); font-size: 11.5px; }
.block-head { margin-top: 24px; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.block-head em { font-style: normal; color: var(--fg-faint); font-weight: 400; font-variant-numeric: tabular-nums; }
.subtasks { margin-top: 10px; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.subtask { position: relative; display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; color: var(--fg-2); }
.subtask + .subtask { border-top: 1px solid var(--border-subtle); }
.subtask .n { width: 18px; color: var(--fg-faint); font-family: var(--font-mono); font-size: 11.5px; }
.subtask .end { margin-left: auto; color: var(--fg-faint); font-family: var(--font-mono); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.subtask.is-run { background: var(--bg-hover); color: var(--fg); }
.subtask.is-run::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); }
.subtask.is-run .end { color: var(--fg-2); }
.subtask.is-todo { color: var(--fg-muted); }
.pipeline { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.phase {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px;
  border: 1px solid var(--border); border-radius: var(--r-xs);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-faint);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.phase.is-done { color: var(--fg-2); }
.phase.is-done::before { content: "✓"; color: var(--st-active); font-size: 10.5px; }
.phase.is-run { color: var(--st-active); border-color: rgba(63, 185, 80, 0.45); background: rgba(63, 185, 80, 0.08); }
.pipeline .dash { width: 6px; height: 1px; background: var(--border-strong); }
.activity { margin-top: 10px; display: grid; gap: 8px; color: var(--fg-muted); font-size: 12.5px; }
.activity li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.activity li > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity b { color: var(--fg-2); font-weight: 500; }
.activity code { font-size: 11.5px; color: var(--fg-2); }
.activity .ago { color: var(--fg-faint); }
.av { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 9px; font-weight: 600; color: var(--bg-frame); }
.av--claude { background: #D97757; }
.av--run { background: transparent; color: var(--st-active); border: 1.5px solid currentColor; }
.activity li.is-new { animation: rise 320ms var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Status icons */
.si { flex: none; width: 14px; height: 14px; }
.si--done { color: var(--st-active); }
.si--run { color: var(--st-active); }
.si--todo { color: var(--fg-faint); }
.si--warn { color: var(--st-blocked); }

/* Agents strip */
.agents { margin-top: 8px; padding: 40px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; color: var(--fg-faint); font-size: 13.5px; }
.agents ul { display: flex; flex-wrap: wrap; gap: 12px 40px; color: var(--fg-muted); font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }

/* Sections */
.section { padding: 128px 0; border-top: 1px solid var(--border-subtle); }
.section-first { margin-top: 112px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--fg-muted); }
.eyebrow .num { font-family: var(--font-mono); font-size: 12px; color: var(--fg-faint); }
.section h2 {
  margin-top: 20px; max-width: 760px;
  font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600;
  text-wrap: balance;
}
.section .lede { margin-top: 20px; max-width: 600px; font-size: 16.5px; color: var(--fg-muted); text-wrap: pretty; }

/* Pipeline section */
.stages { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.stg { padding: 24px 24px 28px 0; border-bottom: 1px solid var(--border-subtle); }
.stg:not(:nth-child(4n + 1)) { padding-left: 24px; border-left: 1px solid var(--border-subtle); }
.stg .n { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-faint); }
.stg h3 { margin-top: 14px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.stg p { margin-top: 6px; font-size: 13.5px; color: var(--fg-muted); line-height: 1.55; }
.stg code { display: inline-block; margin-top: 14px; font-size: 11.5px; color: var(--fg-2); padding: 2px 6px; border: 1px solid var(--border); border-radius: var(--r-xs); }
.note { margin-top: 28px; font-size: 13.5px; color: var(--fg-faint); }

/* Split sections */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; }
.points { margin-top: 36px; display: grid; gap: 20px; }
.points li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; }
.points svg { margin-top: 3px; color: var(--fg-muted); }
.points b { display: block; font-weight: 500; font-size: 14.5px; }
.points span { display: block; margin-top: 2px; color: var(--fg-muted); font-size: 14px; }

.surface {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop); font-size: 13px; line-height: 1.45; overflow: hidden;
}
.surface-head { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--border-subtle); color: var(--fg-muted); font-size: 12.5px; }
.surface-head b { color: var(--fg); font-weight: 500; }
.surface-head .right { margin-left: auto; }

/* Confirmation card mock */
.confirm-body { padding: 18px 18px 16px; }
.confirm-title { font-size: 15px; font-weight: 500; }
.confirm-sub { margin-top: 4px; color: var(--fg-muted); font-size: 12.5px; }
.kv { margin-top: 16px; display: grid; grid-template-columns: 92px 1fr; gap: 8px 12px; font-size: 12.5px; }
.kv dt { color: var(--fg-faint); }
.kv dd { margin: 0; color: var(--fg-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv code { font-size: 12px; }
.ok { color: var(--st-active); }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border-subtle); background: var(--bg-raised); }

/* Diff mock */
.diff { font-family: var(--font-mono); font-size: 12px; line-height: 1.7; }
.diff .ln { display: grid; grid-template-columns: 36px 14px 1fr; padding-right: 14px; color: var(--fg-2); white-space: pre; }
.diff .ln i { font-style: normal; color: var(--fg-faint); text-align: right; padding-right: 10px; }
.diff .ln--add { background: var(--diff-add); }
.diff .ln--del { background: var(--diff-del); }
.diff .ln--hunk { color: var(--fg-faint); background: var(--bg-raised); }
.thread { margin: 6px 14px 8px 50px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-raised); font-family: var(--font-sans); font-size: 12.5px; line-height: 1.5; white-space: normal; }
.thread p + p { margin-top: 6px; }
.thread b { font-weight: 500; }
.thread .who { color: var(--fg-faint); }

/* Continuity timeline */
.timeline { padding: 6px 0; }
.tl { position: relative; display: grid; grid-template-columns: 40px 1fr auto; align-items: start; padding: 12px 16px 12px 0; }
.tl::before { content: ""; position: absolute; left: 19.5px; top: 0; bottom: 0; width: 1px; background: var(--border); }
.tl:first-child::before { top: 20px; }
.tl:last-child::before { bottom: calc(100% - 20px); }
.tl .node { position: relative; justify-self: center; margin-top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg-panel); border: 1.5px solid var(--fg-faint); }
.tl--done .node { border-color: var(--st-active); background: var(--st-active); }
.tl--cut .node { border-color: var(--st-blocked); }
.tl--run .node { border-color: var(--st-active); box-shadow: 0 0 0 3px rgba(63, 185, 80, 0.16); }
.tl b { font-weight: 500; }
.tl p { margin-top: 2px; color: var(--fg-muted); font-size: 12.5px; }
.tl p code { font-size: 11.5px; color: var(--fg-2); }
.tl time { color: var(--fg-faint); font-size: 12px; font-variant-numeric: tabular-nums; }

/* Feature grid */
.grid { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.cell { padding: 28px 28px 32px; background: var(--bg-frame); transition: background var(--dur) var(--ease); }
.cell:hover { background: var(--bg-panel); }
.cell:not(:nth-child(3n + 1)) { border-left: 1px solid var(--border); }
.cell:nth-child(n + 4) { border-top: 1px solid var(--border); }
.cell code { font-size: 11.5px; color: var(--fg-faint); }
.cell h3 { margin-top: 28px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.cell p { margin-top: 8px; font-size: 13.5px; color: var(--fg-muted); line-height: 1.6; }

/* Local-first */
.tree { padding: 18px 20px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.85; color: var(--fg-2); white-space: pre; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.tree .d { color: var(--fg-faint); }
.tree .h { color: var(--fg); }
.facts { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); }
.facts div { padding: 16px 16px 0 0; }
.facts div + div { padding-left: 16px; border-left: 1px solid var(--border-subtle); }
.facts b { display: block; font-weight: 500; font-size: 14px; }
.facts span { display: block; margin-top: 2px; font-size: 13px; color: var(--fg-muted); }

/* Install */
.install { text-align: left; }
.install-box { margin-top: 40px; max-width: 880px; }
.install-row { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; }
.install-row code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 13px; color: var(--fg-2); scrollbar-width: none; }
.install-row code::-webkit-scrollbar { display: none; }
.install-row .prompt { color: var(--fg-faint); user-select: none; }
.install-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 12px 18px; border-top: 1px solid var(--border-subtle); color: var(--fg-faint); font-size: 12.5px; }
.install-meta a { color: var(--fg-muted); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.install-meta a:hover { color: var(--fg); }
.install-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border-subtle); padding: 56px 0 40px; font-size: 13px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 48px; }
.footer-brand p { margin-top: 12px; color: var(--fg-faint); }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(120px, auto)); gap: 48px; }
.footer-cols p { color: var(--fg-2); font-weight: 500; margin-bottom: 12px; }
.footer-cols a { display: block; color: var(--fg-faint); padding: 3px 0; transition: color var(--dur) var(--ease); }
.footer-cols a:hover { color: var(--fg); }
.footer-base { margin-top: 56px; display: flex; justify-content: space-between; gap: 16px; color: var(--fg-faint); font-size: 12.5px; }

/* Responsive */
@media (max-width: 1024px) {
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .app-panel { margin: 8px; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .stages { grid-template-columns: repeat(2, 1fr); }
  .stg:not(:nth-child(4n + 1)) { padding-left: 0; border-left: 0; }
  .stg:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--border-subtle); }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .site-nav { display: none; }
  .hero { padding-top: 72px; }
  .hero-lede { font-size: 16.5px; }
  .stage { margin-top: 56px; }
  .app { height: 560px; }
  .app-body { padding: 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .section { padding: 88px 0; }
  .section-first { margin-top: 72px; }
  .stages { grid-template-columns: 1fr; }
  .stg:nth-child(even) { padding-left: 0; border-left: 0; }
  .grid { grid-template-columns: 1fr; }
  .cell:not(:nth-child(3n + 1)) { border-left: 0; }
  .cell + .cell { border-top: 1px solid var(--border); }
  .facts { grid-template-columns: 1fr; }
  .facts div + div { padding-left: 0; border-left: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-base { flex-direction: column; }
  .cmd { display: none; }
  .tree { padding: 16px; font-size: 11px; }
  .agents ul { gap: 10px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
