@font-face { font-family: Mona; src: url("/assets/mona-sans.woff2") format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; }
@font-face { font-family: "Ownlight UI"; src: url("/assets/fonts/ownlightui-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Ownlight UI"; src: url("/assets/fonts/ownlightui-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Ownlight Mono"; src: url("/assets/fonts/ownlightmono-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* Paper and ink on one cool neutral ramp. The app's signal blue marks focus,
   selection and live readings; the scenes inside the app windows are the
   page's only other colour. The band (Vibe) and the Pro plan use the night
   ramp in both appearances. */
:root {
  --paper: oklch(0.986 0.003 262);
  --paper-2: oklch(0.963 0.004 262);
  --paper-3: oklch(0.938 0.005 262);
  --raised: oklch(0.995 0.002 262);
  --line: oklch(0.905 0.006 262);
  --line-2: oklch(0.83 0.008 262);
  --muted: oklch(0.51 0.012 262);
  --ink-2: oklch(0.37 0.012 262);
  --ink: oklch(0.19 0.012 262);
  --signal: oklch(0.53 0.18 259);
  --signal-wash: oklch(0.53 0.18 259 / 0.1);
  --shadow: 0 1px 2px oklch(0.2 0.012 262 / 0.06), 0 34px 80px -38px oklch(0.2 0.02 262 / 0.42);

  --night: oklch(0.172 0.008 262);
  --night-2: oklch(0.215 0.009 262);
  --night-3: oklch(0.255 0.01 262);
  --night-line: oklch(0.32 0.01 262);
  --night-line-2: oklch(0.42 0.012 262);
  --night-dim: oklch(0.75 0.012 262);
  --night-text: oklch(0.95 0.005 262);
  --night-signal: oklch(0.77 0.12 258);

  --app-bg: oklch(0.952 0.002 260);
  --app-bar: oklch(0.975 0.002 260);
  --app-tile: oklch(0.995 0.001 260);
  --app-hover: oklch(0.925 0.003 260);
  --app-line: oklch(0.87 0.004 260);
  --app-text: oklch(0.22 0.005 260);
  --app-dim: oklch(0.5 0.007 260);
  --app-signal: oklch(0.52 0.2 262);
  --app-on-signal: oklch(0.99 0 0);
  --app-alert: oklch(0.55 0.19 27);
  --app-ok: oklch(0.56 0.13 150);
  --app-code: oklch(0.965 0.002 260);

  /* Scenes and the race keep the app's own dark glass, whatever the page theme. */
  --glass: oklch(0.15 0.004 260 / 0.82);
  --glass-2: oklch(0.21 0.004 260 / 0.86);
  --glass-line: oklch(0.42 0.005 260 / 0.55);
  --glass-text: oklch(0.94 0.003 260);
  --glass-dim: oklch(0.72 0.006 260);
  --glass-signal: oklch(0.76 0.12 258);
  --glass-alert: oklch(0.72 0.15 25);

  --font-display: Mona, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-app: "Ownlight UI", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Ownlight Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --section: clamp(88px, 4.5rem + 5vw, 168px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: oklch(0.148 0.006 262); --paper-2: oklch(0.178 0.007 262); --paper-3: oklch(0.21 0.008 262); --raised: oklch(0.255 0.009 262);
    --line: oklch(0.265 0.008 262); --line-2: oklch(0.35 0.01 262);
    --muted: oklch(0.68 0.012 262); --ink-2: oklch(0.82 0.01 262); --ink: oklch(0.945 0.006 262);
    --signal: oklch(0.77 0.12 258); --signal-wash: oklch(0.77 0.12 258 / 0.14); --shadow: none;
    --night: oklch(0.112 0.006 262); --night-2: oklch(0.15 0.007 262); --night-3: oklch(0.19 0.008 262); --night-line: oklch(0.255 0.008 262);
    --app-bg: oklch(0.115 0.002 260); --app-bar: oklch(0.13 0.002 260); --app-tile: oklch(0.175 0.003 260); --app-hover: oklch(0.23 0.004 260);
    --app-line: oklch(0.28 0.005 260); --app-text: oklch(0.93 0.003 260); --app-dim: oklch(0.67 0.007 260);
    --app-signal: oklch(0.74 0.13 258); --app-on-signal: oklch(0.15 0.01 260); --app-alert: oklch(0.7 0.16 25); --app-ok: oklch(0.74 0.13 150);
    --app-code: oklch(0.09 0.002 260);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: oklch(0.148 0.006 262); --paper-2: oklch(0.178 0.007 262); --paper-3: oklch(0.21 0.008 262); --raised: oklch(0.255 0.009 262);
  --line: oklch(0.265 0.008 262); --line-2: oklch(0.35 0.01 262);
  --muted: oklch(0.68 0.012 262); --ink-2: oklch(0.82 0.01 262); --ink: oklch(0.945 0.006 262);
  --signal: oklch(0.77 0.12 258); --signal-wash: oklch(0.77 0.12 258 / 0.14); --shadow: none;
  --night: oklch(0.112 0.006 262); --night-2: oklch(0.15 0.007 262); --night-3: oklch(0.19 0.008 262); --night-line: oklch(0.255 0.008 262);
  --app-bg: oklch(0.115 0.002 260); --app-bar: oklch(0.13 0.002 260); --app-tile: oklch(0.175 0.003 260); --app-hover: oklch(0.23 0.004 260);
  --app-line: oklch(0.28 0.005 260); --app-text: oklch(0.93 0.003 260); --app-dim: oklch(0.67 0.007 260);
  --app-signal: oklch(0.74 0.13 258); --app-on-signal: oklch(0.15 0.01 260); --app-alert: oklch(0.7 0.16 25); --app-ok: oklch(0.74 0.13 150);
  --app-code: oklch(0.09 0.002 260);
  color-scheme: dark;
}

/* The night ramp: page tokens swapped for the dark ones, so everything inside follows. */
.night {
  --paper: var(--night); --paper-2: var(--night-2); --paper-3: var(--night-3); --raised: var(--night-3);
  --line: var(--night-line); --line-2: var(--night-line-2);
  --muted: var(--night-dim); --ink-2: var(--night-dim); --ink: var(--night-text);
  --signal: var(--night-signal); --signal-wash: oklch(0.77 0.12 258 / 0.14); --shadow: none;
  --app-bg: oklch(0.115 0.002 260); --app-bar: oklch(0.13 0.002 260); --app-tile: oklch(0.175 0.003 260); --app-hover: oklch(0.23 0.004 260);
  --app-line: oklch(0.28 0.005 260); --app-text: oklch(0.93 0.003 260); --app-dim: oklch(0.67 0.007 260);
  --app-signal: oklch(0.74 0.13 258); --app-on-signal: oklch(0.15 0.01 260); --app-alert: oklch(0.7 0.16 25); --app-ok: oklch(0.74 0.13 150);
  --app-code: oklch(0.09 0.002 260);
  background: var(--paper); color: var(--ink); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-display); font-size: 17px; line-height: 1.55; font-weight: 430;
  font-feature-settings: "tnum" 0, "pnum" 1;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
::selection { background: color-mix(in oklch, var(--signal) 26%, transparent); }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; }
kbd {
  font-family: var(--font-display); font-size: 0.82em; font-weight: 540;
  padding: 0.08em 0.42em; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px;
  background: var(--raised); color: var(--ink); white-space: nowrap;
}
[hidden] { display: none !important; }

.wrap {
  width: 100%; max-width: calc(88rem + 80px); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
@media (min-width: 1280px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }

/* Header */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 30; padding: 8px 12px; border-radius: 8px;
  background: var(--ink); color: var(--paper); font-size: 15px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--paper); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.wordmark { height: 22px; width: auto; display: block; color: var(--ink); }
.wordmark .light { fill: oklch(0.76 0.12 258); }
.brand { display: flex; align-items: center; padding-block: 6px; }
.nav { display: flex; gap: 2px; font-size: 14.5px; font-weight: 480; color: var(--ink-2); }
.nav a { text-decoration: none; white-space: nowrap; padding: 6px 10px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a.on { color: var(--ink); background: var(--paper-3); }
.head-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px;
  border: 1px solid transparent; background: none; color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 20px;
  border-radius: 10px; font-size: 15.5px; font-weight: 560; text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper); white-space: nowrap;
}
.btn:hover { color: var(--paper); background: color-mix(in oklch, var(--ink) 84%, var(--paper)); border-color: color-mix(in oklch, var(--ink) 84%, var(--paper)); }
.btn:active { transform: translateY(1px); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.quiet:hover { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.menu-toggle { display: none; }
.mobile-nav { display: grid; padding-bottom: 14px; font-size: 17px; font-weight: 480; }
.mobile-nav a { padding: 11px 0; border-top: 1px solid var(--line); text-decoration: none; }
@media (max-width: 1080px) { .nav { display: none; } .menu-toggle { display: grid; } }
@media (max-width: 400px) { .header-row { gap: 12px; } .head-end { gap: 4px; } }

/* Shared section pieces */
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lede { font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.19rem); line-height: 1.55; color: var(--ink-2); max-width: 36rem; }
.stage { margin: 48px 0 0; }
.caption { margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 60rem; }
.below { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 14px; }
.below .caption { margin-top: 0; }
.text-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); font-size: 14px; font-weight: 540; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.text-btn:hover { color: var(--signal); }

/* Hero */
.intro { padding-block: clamp(36px, 1rem + 3vw, 64px) 0; }
/* The headline is sized from its own column, so "All your coding agents" always fits one line of it. */
.intro-title { container-type: inline-size; min-width: 0; }
.intro h1 {
  font-size: clamp(2.7rem, 9.1cqi, 5.6rem); line-height: 0.96; letter-spacing: -0.04em;
  font-weight: 640; font-stretch: 112%;
}
.intro-head { display: grid; gap: 24px; }
@media (min-width: 1100px) { .intro-head { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: end; } }
.intro-side { max-width: 36rem; }
.intro-get { margin-top: 26px; }
/* Phones and tablets can't run Ownlight, so they are offered the link to send to a computer first. */
.send-offer { margin-bottom: 12px; }
.send-note { margin-top: 10px; font-size: 14px; color: var(--muted); max-width: 30rem; }
.closing .send-offer { margin-top: 28px; margin-bottom: 0; }
.closing .send-offer + .actions { margin-top: 14px; }
.fine { margin-top: 14px; font-size: 14px; color: var(--muted); }
.founder { margin-top: 6px; font-size: 14px; }
.founder a { color: var(--ink); text-decoration-color: var(--line-2); }
.founder a:hover { color: var(--signal); text-decoration-color: currentColor; }
.hero-stage { margin-top: clamp(32px, 1.5rem + 2vw, 52px); }

/* Under the canvas: the face switch, then the scene picker */
.try-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; }
.try-bar p { font-size: 14.5px; color: var(--muted); }
.try-bar .pause-btn { margin: 0 0 0 auto; }
.scene-bar { display: flex; align-items: flex-start; gap: 10px 24px; margin-top: 18px; }
.scenes { display: flex; gap: 12px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 4px 4px 6px; margin: -4px -4px 0; scroll-snap-type: x proximity; }
.scenes::-webkit-scrollbar { display: none; }
.scene-btn {
  flex: none; width: 112px; display: grid; align-content: start; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer;
  text-align: left; font-size: 13.5px; line-height: 1.25; font-weight: 500; color: var(--muted); scroll-snap-align: start;
}
.scene-btn img { width: 112px; height: 63px; object-fit: cover; border-radius: 8px; display: block; outline: 1px solid var(--line); outline-offset: -1px; }
.scene-btn:hover { color: var(--ink); }
.scene-btn[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.scene-btn[aria-pressed="true"] img { outline: 2px solid var(--signal); outline-offset: 2px; }
.pause-btn {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; margin-top: 14px; padding: 0 13px 0 11px;
  border-radius: 9px; border: 1px solid var(--line-2); background: none; color: var(--ink); cursor: pointer; font-size: 14px; font-weight: 520;
}
.pause-btn:hover { border-color: var(--ink); }
@media (max-width: 640px) {
  .scene-bar { flex-direction: column; gap: 18px; }
  .try-bar .pause-btn { margin-left: 0; }
  .scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; width: 100%; margin: 0; padding: 0; overflow: visible; }
  .scene-btn { width: auto; }
  .scene-btn img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}

.harnesses { margin-top: clamp(56px, 3rem + 2vw, 88px); padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px 48px; }
@media (min-width: 960px) { .harnesses { grid-template-columns: 17rem minmax(0, 1fr); align-items: baseline; } }
.harnesses p { font-size: 15px; color: var(--muted); }
.harnesses ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 40px; }
.harnesses li { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem); font-weight: 580; letter-spacing: -0.022em; font-stretch: 110%; }
.harnesses li a { text-decoration-color: var(--line-2); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.harnesses li a:hover { text-decoration-color: currentColor; }
.more-link { margin-top: 22px; font-size: 15px; color: var(--muted); }
.more-link a { color: var(--ink); font-weight: 540; text-decoration-color: var(--line-2); }
.more-link a:hover { color: var(--signal); text-decoration-color: currentColor; }

/* Chapters */
.chapter { padding-top: var(--section); }
.chapter.tight { padding-top: calc(var(--section) * 0.62); }
.chapter h2, .closing h2 {
  font-size: clamp(2rem, 1.1rem + 2.8vw, 3.55rem); line-height: 1.01; letter-spacing: -0.04em;
  font-weight: 620; font-stretch: 110%; max-width: 15em;
}
.chapter-head { display: grid; gap: 20px 64px; }
@media (min-width: 1040px) { .chapter-head { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; } }
.split { display: grid; gap: 44px; }
@media (min-width: 1100px) { .split { grid-template-columns: minmax(0, 27rem) minmax(0, 1fr); gap: 72px; align-items: start; } }
.split-text .lede { margin-top: 20px; }
.split .stage { margin-top: 0; }

.facts { margin: 56px 0 0; display: grid; gap: 0 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); border-top: 1px solid var(--line); }
.facts div { padding: 18px 0 20px; border-bottom: 1px solid var(--line); min-width: 0; }
.facts dt { font-weight: 600; font-size: 16px; }
.facts dd { margin: 5px 0 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; max-width: 38rem; }
.followup { margin-top: 36px; max-width: 46rem; color: var(--ink-2); }

/* Simple mode: the face switch and the four ends of a turn */
.flip-row { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.flip-row p { font-size: 14.5px; color: var(--muted); }
.flip-row + .stage { margin-top: 18px; }
.switcher { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--paper-3); }
.switcher button { height: 34px; padding: 0 15px; border: 0; border-radius: 8px; background: none; cursor: pointer; font-size: 14.5px; font-weight: 520; color: var(--ink-2); }
.switcher button:hover { color: var(--ink); }
.switcher button[aria-pressed="true"] { background: var(--raised); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line), 0 1px 2px oklch(0.2 0.012 262 / 0.1); }
.states { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); border-bottom: 1px solid var(--line); }
.stage > .states { margin-top: 22px; }
.state-btn {
  width: 100%; height: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 14px 18px 16px 0;
  display: grid; grid-template-columns: 18px minmax(0, 1fr); align-content: start; gap: 2px 8px; color: var(--ink-2);
  box-shadow: inset 0 2px 0 var(--line);
}
.state-btn b { font-weight: 600; color: var(--ink); font-size: 15.5px; }
.state-btn > span:not(.mk) { grid-column: 2; font-size: 14.5px; line-height: 1.45; }
.state-btn .mk { margin-top: 6px; grid-column: 1; grid-row: 1; justify-self: center; }
.state-btn[aria-pressed="true"] { box-shadow: inset 0 2px 0 var(--ink); }
.state-btn:hover b { color: var(--signal); }

/* Archive: the setting */
.setting { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.setting label { font-weight: 600; font-size: 16px; }
.select-wrap { position: relative; justify-self: start; }
.setting select {
  appearance: none; font: inherit; font-size: 15px; color: var(--ink); background: var(--raised);
  border: 1px solid var(--line-2); border-radius: 9px; height: 40px; padding: 0 38px 0 12px; cursor: pointer;
}
.select-wrap .icon { position: absolute; right: 12px; top: 12px; pointer-events: none; color: var(--muted); }
.setting p { font-size: 15px; color: var(--ink-2); line-height: 1.5; max-width: 36rem; }
.setting .now { font-size: 14px; color: var(--muted); }

/* Vibe: a night band */
.band { margin-top: var(--section); padding-block: clamp(72px, 3rem + 5vw, 136px); }

/* Local: model servers and facts */
.local-more { display: grid; gap: 40px 64px; margin-top: 56px; align-items: start; }
@media (min-width: 1100px) { .local-more { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }
.local-more .facts { margin-top: 0; grid-template-columns: minmax(0, 1fr); }
.table-scroll { overflow-x: auto; }
table.sources { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15.5px; }
.sources th { text-align: left; font-size: 13.5px; font-weight: 560; color: var(--muted); padding: 0 16px 10px 0; border-bottom: 1px solid var(--line-2); }
.sources td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.sources td:first-child { color: var(--ink); font-weight: 580; white-space: nowrap; }
.sources code { font-family: var(--font-mono); font-size: 13.5px; color: var(--ink); white-space: nowrap; }

/* Also in Ownlight */
.more-grid { margin: 44px 0 0; display: grid; gap: 0 40px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); border-top: 1px solid var(--line); }
.more-grid div { padding: 20px 0 24px; border-bottom: 1px solid var(--line); min-width: 0; }
.more-grid dt { font-weight: 600; font-size: 16.5px; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.more-grid dt small { font-size: 13px; font-weight: 520; color: var(--muted); }
.more-grid dd { margin: 6px 0 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }

/* Pricing */
.price-grid { margin-top: 56px; display: grid; gap: 16px; }
@media (min-width: 980px) { .price-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); } }
.plan { min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 1rem + 1.2vw, 34px); background: var(--raised); display: flex; flex-direction: column; }
.plan h3 { font-size: 1.4rem; font-weight: 620; letter-spacing: -0.02em; font-stretch: 108%; }
.plan > p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; max-width: 34rem; }
.plan .figure { font-size: clamp(3rem, 2rem + 2.4vw, 4.2rem); font-weight: 600; letter-spacing: -0.04em; font-stretch: 125%; margin-top: auto; padding-top: 36px; line-height: 1; }
.plan .figure small { font-size: 15px; font-weight: 450; letter-spacing: 0; font-stretch: 100%; color: var(--muted); }
.plan .actions { margin-top: 24px; }
.plan-pro { border-color: transparent; }
.pro-rows { margin-top: 20px; border-top: 1px solid var(--line); }
.pro-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.pro-row:last-child { border-bottom: 0; padding-bottom: 0; }
.pro-row .amt { font-size: clamp(1.7rem, 1.3rem + 1vw, 2.15rem); font-weight: 600; letter-spacing: -0.035em; font-stretch: 125%; line-height: 1.1; }
.pro-row .amt small { font-size: 14.5px; font-weight: 450; color: var(--muted); letter-spacing: 0; font-stretch: 100%; }
.pro-row p { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.countdown { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.countdown b { color: var(--ink); font-weight: 600; font-stretch: 112%; }
@media (max-width: 520px) { .pro-row { grid-template-columns: 1fr; } .pro-row .btn { justify-self: start; } }
#pricing .table-scroll { margin-top: 64px; }
table.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.compare caption { text-align: left; font-weight: 620; font-size: 1.15rem; font-stretch: 108%; letter-spacing: -0.01em; padding-bottom: 14px; }
.compare th, .compare td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { font-size: 13.5px; color: var(--muted); font-weight: 560; border-bottom-color: var(--line-2); }
.compare tbody th { font-weight: 470; color: var(--ink-2); width: 46%; }
.compare td { color: var(--ink); width: 27%; }
.compare .no { color: var(--muted); }
@media (max-width: 600px) {
  table.compare { min-width: 0; font-size: 14px; }
  .compare th, .compare td { padding-right: 10px; }
  .compare tbody th { width: 40%; }
  .compare td { width: 30%; }
}
.small-print { margin-top: 24px; display: grid; gap: 6px; font-size: 14px; color: var(--muted); max-width: 54rem; }

/* Releases: one needle per release on a day scale */
.cadence { margin: 56px 0 0; }
.scale { position: relative; height: 128px; }
.needles { position: absolute; left: 0; right: 0; top: 0; bottom: 40px; }
.needle { position: absolute; left: var(--x); bottom: 0; width: 1px; height: 34px; background: var(--line-2); font-style: normal; }
.needle::before { content: ""; position: absolute; inset: -6px -4px 0; }
.needle.major { height: 58px; background: var(--ink-2); }
.needle.latest { width: 2px; margin-left: -0.5px; background: var(--signal); }
.needle b { position: absolute; left: 0; bottom: calc(100% + 6px); transform: translateX(-50%); font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--ink); }
.needle.latest b { color: var(--signal); }
.needle:hover { background: var(--signal); }
.needle:hover::after {
  content: attr(data-tip); position: absolute; z-index: 2; left: 50%; bottom: calc(100% + 28px); transform: translateX(-50%);
  padding: 5px 9px; border-radius: 7px; background: var(--ink); color: var(--paper); font-size: 12.5px; font-weight: 520; white-space: nowrap; pointer-events: none;
}
.days {
  position: absolute; left: 0; right: 0; bottom: 32px; height: 8px; border-bottom: 1px solid var(--ink-2);
  background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px calc(100% / var(--days)));
}
.dates { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; }
.dates span { position: absolute; left: var(--x); font-size: 13px; color: var(--muted); white-space: nowrap; }
.cadence figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); }
.needle.crowded b { display: none; }
.needle.flush b { transform: translateX(calc(-100% + 2px)); }
.needle.tip-start:hover::after { left: -6px; transform: none; }
.needle.tip-end:hover::after { left: auto; right: -6px; transform: none; }
.changes { margin-top: 48px; border-top: 1px solid var(--line); }
.change { display: grid; gap: 6px 40px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .change { grid-template-columns: 12rem minmax(0, 48rem); } }
.change h3 { font-size: 1.1rem; font-weight: 620; font-stretch: 108%; }
.change time { display: block; font-size: 14px; color: var(--muted); font-weight: 430; font-stretch: 100%; margin-top: 2px; }
.change p { color: var(--ink-2); font-size: 15.5px; }
.guide-link { margin-top: 20px; font-size: 15px; }

/* Questions */
.question-list { border-top: 1px solid var(--line); max-width: 52rem; }
.question-list details { border-bottom: 1px solid var(--line); }
.question-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 19px 0; font-weight: 580; font-size: 17px; }
.question-list summary::-webkit-details-marker { display: none; }
.question-list summary::after { content: "+"; font-weight: 400; color: var(--muted); font-size: 20px; line-height: 1; }
.question-list details[open] summary::after { content: "\2212"; }
.question-list summary:hover { color: var(--signal); }
.question-list details p { padding: 0 0 20px; color: var(--ink-2); max-width: 44rem; }

/* Download, again */
.closing { padding-top: var(--section); }
.closing h2 { font-size: clamp(2.6rem, 1.1rem + 4.6vw, 5.6rem); font-weight: 640; font-stretch: 112%; letter-spacing: -0.047em; line-height: 0.95; }
.closing .lede { margin-top: 18px; }
.closing .actions { margin-top: 28px; }

/* Footer */
.site-foot { margin-top: var(--section); border-top: 1px solid var(--line); padding-block: 36px 48px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; }
.site-foot .foot-mark { height: 20px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--ink-2); }
.site-foot nav a { text-decoration: none; }
.site-foot p { font-size: 14px; color: var(--muted); }
.site-foot .end { margin-left: auto; text-align: right; }
@media (max-width: 700px) { .site-foot .end { margin-left: 0; text-align: left; } }

/* ========== App recreations ========== */
.app {
  container-type: inline-size; position: relative;
  font-family: var(--font-app); font-size: 13px; line-height: 1.45; color: var(--app-text);
  background: var(--app-bg); border: 1px solid var(--app-line); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow); font-feature-settings: normal; font-variant-numeric: tabular-nums;
}
.app button { font-family: var(--font-app); }
.app-bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; background: var(--app-bar); border-bottom: 1px solid var(--app-line); position: relative; }
.app-mark { width: 20px; height: 20px; flex: none; }
.app-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--app-line); background: var(--app-tile); white-space: nowrap; }
.app-chip .icon { width: 12px; height: 12px; color: var(--app-dim); }
.pages { display: inline-flex; padding: 2px; gap: 2px; border-radius: 7px; background: var(--app-hover); }
.pages span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 5px; color: var(--app-dim); }
.pages span.on { background: var(--app-tile); color: var(--app-text); font-weight: 600; }
.needs-count { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: var(--app-dim); }
.needs-count b { color: var(--app-text); font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--app-text); flex: none; display: inline-block; }
.dot.needs { width: 9px; height: 9px; border: 1.5px solid var(--app-signal); background: radial-gradient(circle, var(--app-signal) 0 1.6px, transparent 2px); }
.dot.idle { background: transparent; border: 1.5px solid var(--app-dim); }
.dot.ring { width: 9px; height: 9px; background: transparent; border: 1.5px solid var(--app-dim); }
.vibe-switch {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--app-line);
  background: var(--app-tile); color: var(--app-text); cursor: pointer; font-size: 13px;
}
.vibe-switch .icon { width: 13px; height: 13px; color: var(--app-dim); }
.vibe-switch[aria-pressed="true"], .vibe-switch.on { color: var(--app-signal); border-color: var(--app-signal); background: color-mix(in oklch, var(--app-signal) 10%, var(--app-tile)); }
.vibe-switch[aria-pressed="true"] .icon, .vibe-switch.on .icon { color: var(--app-signal); }
.tabs { position: absolute; left: 50%; transform: translateX(-50%); display: inline-flex; padding: 2px; gap: 2px; border-radius: 8px; background: var(--app-hover); }
.tabs a, .tabs span { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 6px; color: var(--app-dim); text-decoration: none; }
.tabs .on { background: var(--app-tile); color: var(--app-text); font-weight: 600; }
.tabs a:hover { color: var(--app-text); }
.tabs .icon { width: 13px; height: 13px; }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.bar-end .icon { width: 15px; height: 15px; color: var(--app-dim); }
@container (max-width: 1100px) { .tabs { position: static; transform: none; margin-left: auto; } .bar-end { margin-left: 0; } }
@container (max-width: 820px) { .pages, .bar-end .opt-hide, .app-chip.scope { display: none; } }
@container (max-width: 520px) { .tabs { display: none; } .bar-end { margin-left: auto; } }

.app-btn { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--app-line); background: var(--app-tile); color: var(--app-text); font-size: 12.5px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.app-btn:hover { background: var(--app-hover); color: var(--app-text); }
.app-btn.primary { background: var(--app-signal); border-color: var(--app-signal); color: var(--app-on-signal); font-weight: 600; }
.app-btn.primary:hover { filter: brightness(1.06); background: var(--app-signal); color: var(--app-on-signal); }
.app-btn.pill { border-radius: 999px; }
.app-btn .sc { color: var(--app-dim); font-size: 11.5px; }
.app-btn .icon { width: 13px; height: 13px; }
.app-btn:disabled { opacity: 0.5; cursor: default; }

/* Status marks: live dot, tick, error, open ring, needs */
.mk { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; }
.mk.live { width: 7px; height: 7px; background: currentColor; margin: 1px; }
.mk.tick { width: 11px; height: 11px; border-radius: 0; background: none; }
.mk.err { width: 11px; height: 11px; border-radius: 0; background: none; color: var(--app-alert); }
.mk.ring { border: 1.5px solid currentColor; background: none; }
.mk.needs { border: 1.5px solid var(--app-signal); background: radial-gradient(circle, var(--app-signal) 0 1.6px, transparent 2px); }

/* Scene behind the canvas */
.scene { position: absolute; inset: 0; background: oklch(0.2 0.01 300) center / cover no-repeat; overflow: hidden; }
.scene video, .scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene video { opacity: 0; transition: opacity 400ms var(--ease-out); }
.scene video.ready { opacity: 1; }

/* Hero canvas: tiles plus the Agents rail */
.cv { display: grid; grid-template-columns: minmax(0, 1fr) 296px; height: 760px; }
.cv-main { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.cv-tiles { position: relative; height: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 10px; }
.cv-tiles.focused { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.cv-tiles.focused > .tile:not(.on) { display: none; }
.cv-race { position: absolute; inset: 0; }
@container (max-width: 900px) {
  .cv { grid-template-columns: minmax(0, 1fr); height: auto; }
  .cv-main { height: 640px; }
  .rail { border-left: 0; border-top: 1px solid var(--app-line); }
}
@container (max-width: 640px) {
  .cv-main { height: auto; min-height: 560px; }
  .cv-tiles { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: auto; }
  .cv-tiles > .tile { min-height: 250px; }
  .cv-tiles:not(.focused) > .tile[data-id="deneb"] { display: none; }
  .cv-tiles.focused { grid-template-rows: none; }
  .cv-tiles.focused > .tile { min-height: 540px; }
  .cv-main.racing { min-height: 0; height: 520px; }
}

/* A tile in Simple mode, on dark glass */
.tile { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 10px; color: var(--glass-text); display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.cv-tiles:not(.focused) .tile { cursor: pointer; }
.cv-tiles:not(.focused) .tile:hover { border-color: oklch(0.6 0.005 260 / 0.8); }
.tile.needs, .cv-tiles:not(.focused) .tile.needs:hover { border-color: var(--glass-signal); }
.tile-head { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 10px; border-bottom: 1px solid var(--glass-line); min-width: 0; flex: none; }
.tile-head b { font-weight: 600; font-size: 14px; flex: none; }
.tile-head .t { color: var(--glass-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.tile-head .state { color: var(--glass-text); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; flex: none; }
.tile-head .state.needs { color: var(--glass-signal); }
.tile-head .sep { width: 1px; height: 18px; background: var(--glass-line); flex: none; }
.g-btn { display: inline-flex; align-items: center; gap: 5px; height: 25px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--glass-line); background: transparent; color: var(--glass-text); font-size: 12.5px; cursor: pointer; white-space: nowrap; flex: none; }
a.g-btn { text-decoration: none; }
.g-btn:hover { background: oklch(1 0 0 / 0.08); color: var(--glass-text); }
.g-btn.primary { background: var(--glass-signal); border-color: var(--glass-signal); color: oklch(0.16 0.01 260); font-weight: 600; }
.g-btn.primary:hover { background: oklch(0.82 0.1 258); }
.g-btn.pill { border-radius: 999px; }
.g-btn .sc { color: var(--glass-dim); font-size: 11.5px; }
.g-btn .icon { width: 13px; height: 13px; }
.g-btn .count { color: var(--glass-signal); font-weight: 600; }
.tile .mk.needs { border-color: var(--glass-signal); background: radial-gradient(circle, var(--glass-signal) 0 1.6px, transparent 2px); }
.tile .mk.err { color: var(--glass-alert); }
.tile-main { flex: 1; min-height: 0; display: flex; min-width: 0; }
.convo { flex: 1; min-width: 0; min-height: 0; overflow: hidden; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.cv-tiles:not(.focused) .convo { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
.cv-tiles.focused .convo { overflow: auto; scrollbar-width: thin; }
.compose { flex: none; margin: 0 10px 10px; height: 34px; border-radius: 8px; border: 1px solid var(--glass-line); padding: 0 6px 0 11px; display: flex; align-items: center; color: var(--glass-dim); gap: 8px; }
.compose > span:first-child { flex: 1; }
.compose .send { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: oklch(1 0 0 / 0.08); }
.compose .send .icon { width: 13px; height: 13px; }
@container (max-width: 1100px) { .cv-tiles:not(.focused) .tile-head .hide-narrow { display: none; } }
@container (max-width: 640px) { .tile-head .sc { display: none; } }
@container (max-width: 460px) { .tile-head .lbl { display: none; } }

.you-asked { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding-bottom: 10px; border-bottom: 1px solid var(--glass-line); }
.you-asked .lbl, .you-asked time { font-size: 12.5px; font-weight: 600; color: var(--glass-dim); }
.you-asked time { font-weight: 400; }
.you-asked p { grid-column: 1 / -1; font-size: 15px; line-height: 21px; font-weight: 600; }
.cv-tiles.focused .you-asked p { font-size: 16px; line-height: 23px; }
.worked {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; min-width: 0;
  border: 1px dashed var(--glass-line); border-radius: 8px; padding: 6px 10px; color: var(--glass-dim); background: none; cursor: pointer; font-size: 12.5px;
}
.worked > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.worked .chev { width: 12px; height: 12px; transition: transform 150ms var(--ease-out); }
.worked[aria-expanded="true"] .chev { transform: rotate(90deg); }
.worked .mk.live { color: var(--glass-text); }
.worked .mk.tick { color: var(--glass-text); }
.steps { margin: -4px 0 0; padding: 4px 0 0 18px; list-style: none; display: grid; gap: 4px; font-family: var(--font-mono); font-size: 11.5px; color: var(--glass-dim); border-left: 1px dotted var(--glass-line); margin-left: 14px; }
.now-line { display: flex; align-items: center; gap: 9px; color: var(--glass-dim); font-size: 12.5px; min-width: 0; }
.now-line .mk.live { color: var(--glass-text); }
.now-line span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.answer { font-size: 13.5px; line-height: 1.55; color: var(--glass-text); }
.answer code, .path { font-family: var(--font-mono); font-size: 12px; }
.path { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; cursor: pointer; }
.path:hover { color: var(--glass-signal); }
.fail { color: var(--glass-alert); font-size: 13px; }
.checks { display: grid; gap: 4px; }
.checks div { display: flex; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 12px; }
.checks div span { margin-left: auto; font-family: var(--font-app); color: var(--glass-dim); white-space: nowrap; }
.checks .mk.tick { color: var(--glass-signal); }
.made-lbl { font-size: 12.5px; font-weight: 600; color: var(--glass-dim); }
.made-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.made { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--glass-line); background: var(--glass-2); min-width: 0; text-align: left; cursor: pointer; color: var(--glass-text); font-size: 13px; }
.made:hover { border-color: oklch(0.65 0.005 260 / 0.8); }
.made.open { border-color: var(--glass-signal); }
.made .icon { width: 16px; height: 16px; color: var(--glass-dim); }
.made b { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.made span { color: var(--glass-dim); font-size: 12px; display: block; }
.made > div { min-width: 0; }
@container (max-width: 640px) { .made-grid { grid-template-columns: minmax(0, 1fr); } }

.wait { border: 1px solid var(--glass-signal); border-radius: 9px; padding: 10px 12px; display: grid; gap: 7px; background: oklch(0.76 0.12 258 / 0.08); }
.wait .hd { font-size: 13.5px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.wait .sub { color: var(--glass-dim); font-size: 12.5px; }
.wait pre { margin: 0; font-family: var(--font-mono); font-size: 12px; padding: 7px 10px; border: 1px solid var(--glass-line); border-radius: 6px; background: oklch(0.1 0.003 260 / 0.6); white-space: pre-wrap; word-break: break-word; }
.wait .row { display: flex; gap: 6px; flex-wrap: wrap; }
.plan-line { border-radius: 8px; padding: 7px 10px; background: oklch(1 0 0 / 0.06); font-size: 12.5px; }
.plan-line b { font-weight: 600; }
.plan-line span { color: var(--glass-dim); }

/* The terminal face */
.term { flex: 1; min-height: 0; overflow: hidden; padding: 10px 12px; font-family: var(--font-mono); font-size: 12px; line-height: 1.55; color: var(--glass-text); background: oklch(0.08 0.003 260 / 0.55); white-space: pre-wrap; word-break: break-word; }
.term .b { color: var(--glass-signal); }
.term .d { color: var(--glass-dim); }
.term .add { color: oklch(0.8 0.14 150); }
.term .del { color: oklch(0.74 0.14 25); }
.term .box { display: block; border: 1px solid var(--glass-line); padding: 4px 8px; margin-top: 8px; }
/* A long scrollback shows its end, as a terminal does: the newest lines sit at the bottom and the oldest are cut off at the top. */
.term.tail { display: flex; flex-direction: column; justify-content: flex-end; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30px); mask-image: linear-gradient(to bottom, transparent, #000 30px); }
.term.tail > div { flex: none; }
/* A terminal has its own prompt box, so Simple mode's message box goes away with the face. */
.tile.term-face .compose { display: none; }
/* Switching face: the new face settles in, one tile after another. */
.flip-in .tile-main { animation: face-in 260ms var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes face-in { from { opacity: 0; transform: translateY(6px); } }

/* The viewer beside the conversation */
.viewer { flex: 1.2; min-width: 0; border-left: 1px solid var(--glass-line); display: flex; flex-direction: column; background: oklch(0.12 0.003 260 / 0.6); }
.v-tabs { display: flex; height: 34px; border-bottom: 1px solid var(--glass-line); flex: none; }
.v-tab { display: inline-flex; align-items: center; gap: 7px; padding: 0 8px 0 12px; border-right: 1px solid var(--glass-line); background: oklch(1 0 0 / 0.05); font-size: 12.5px; }
.v-tab button { background: none; border: 0; color: var(--glass-dim); cursor: pointer; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 5px; }
.v-tab button:hover { background: oklch(1 0 0 / 0.08); color: var(--glass-text); }
.v-tab .icon { width: 13px; height: 13px; }
.v-bar { display: flex; gap: 6px; align-items: center; padding: 6px 10px; border-bottom: 1px solid var(--glass-line); flex: none; min-width: 0; }
.v-bar .p { font-family: var(--font-mono); font-size: 11.5px; color: var(--glass-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.v-modes { display: inline-flex; gap: 2px; flex: none; }
.v-modes button { background: none; border: 0; color: var(--glass-dim); padding: 3px 8px; border-radius: 5px; cursor: pointer; font-size: 12.5px; }
.v-modes button[aria-pressed="true"] { background: oklch(1 0 0 / 0.1); color: var(--glass-text); font-weight: 600; }
.v-body { flex: 1; min-height: 0; overflow: auto; }
.v-page { margin: 14px; padding: 18px 20px; border-radius: 6px; background: oklch(0.985 0.002 80); color: oklch(0.24 0.01 260); font-family: var(--font-display); font-size: 13px; line-height: 1.5; }
.v-page h5 { margin: 0 0 4px; font-size: 18px; font-weight: 620; letter-spacing: -0.01em; }
.v-page .m { color: oklch(0.5 0.01 260); font-size: 12px; margin-bottom: 12px; }
.v-page ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.v-page li b { font-weight: 600; }
.v-code { margin: 0; padding: 12px 14px; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.6; white-space: pre; color: var(--glass-text); }
.v-code .add { color: oklch(0.8 0.14 150); background: oklch(0.6 0.12 150 / 0.12); display: block; }
.v-code .del { color: oklch(0.76 0.13 25); background: oklch(0.6 0.15 25 / 0.12); display: block; }
.v-code .d { color: var(--glass-dim); display: block; }
@container (max-width: 760px) {
  .tile.viewing .convo { display: none; }
  .tile.viewing .viewer { border-left: 0; }
}

/* The Agents rail */
.rail { background: var(--app-bar); border-left: 1px solid var(--app-line); display: flex; flex-direction: column; min-width: 0; min-height: 0; color: var(--app-text); }
.rail-head { padding: 12px 10px 2px 14px; display: flex; align-items: center; gap: 6px; }
.rail-head .hd { font-size: 15px; font-weight: 600; margin-right: auto; }
.rail-head .hd span { color: var(--app-dim); font-weight: 400; }
.rail-head .app-btn { border-color: transparent; background: var(--app-hover); height: 24px; padding: 0 8px; }
.rail-sub { padding: 0 14px 6px; color: var(--app-dim); font-size: 12.5px; }
.rail-summary { margin: 4px 10px 6px; padding: 9px 11px; border-radius: 8px; background: var(--app-tile); border: 1px solid var(--app-line); font-size: 12.5px; line-height: 1.5; }
.rail-list { flex: 1; overflow: auto; padding: 0 6px 8px; scrollbar-width: thin; min-height: 0; }
.grp { display: flex; align-items: center; gap: 6px; padding: 10px 8px 4px; font-weight: 600; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; color: var(--app-text); font-size: 13px; }
.grp .n { color: var(--app-dim); font-weight: 400; }
.grp.needs .n { color: var(--app-signal); font-weight: 600; }
.grp .icon { width: 12px; height: 12px; color: var(--app-dim); transition: transform 150ms var(--ease-out); }
.grp[aria-expanded="false"] .icon { transform: rotate(-90deg); }
.rrow { display: grid; gap: 2px; padding: 8px 9px 9px 27px; border-radius: 9px; border: 1px solid transparent; position: relative; cursor: pointer; }
.rrow:hover { background: var(--app-hover); }
.rrow.shown { border-color: var(--app-signal); }
.rrow > .mk { position: absolute; left: 10px; top: 13px; }
.rrow > .mk.live { color: var(--app-text); }
.rrow > .mk.tick { color: var(--app-text); left: 9px; top: 12px; }
.rrow header { display: flex; gap: 6px; align-items: baseline; min-width: 0; }
.rrow header b { font-weight: 600; }
.rrow header .h { color: var(--app-dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rrow header time { margin-left: auto; color: var(--app-dim); font-size: 12px; flex: none; }
.rrow .s { color: var(--app-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rrow .s.needs { color: var(--app-signal); }
.rrow .row { display: flex; gap: 6px; margin-top: 5px; }
.rrow.seen { padding-block: 6px; }
.rail-foot { border-top: 1px solid var(--app-line); padding: 8px 10px; display: flex; justify-content: flex-end; flex: none; }
.rail-foot .app-btn { border-color: transparent; background: var(--app-hover); }
@container (max-width: 900px) { .rail-list { max-height: 380px; } }

/* Simple mode section: one agent, focused, in the app's own colours */
.sm { display: flex; flex-direction: column; height: 600px; }
.sm .tile-head { border-bottom-color: var(--app-line); background: var(--app-bar); }
.sm-app { --glass: var(--app-tile); --glass-2: var(--app-bg); --glass-line: var(--app-line); --glass-text: var(--app-text); --glass-dim: var(--app-dim); --glass-signal: var(--app-signal); --glass-alert: var(--app-alert); }
.sm-app .tile { border: 0; border-radius: 0; flex: 1; }
.sm-app .g-btn.primary { color: var(--app-on-signal); }
.sm-app .g-btn:hover, .sm-app .v-tab button:hover { background: var(--app-hover); }
.sm-app .viewer { background: var(--app-bg); }
.sm-app .v-tab { background: var(--app-tile); }
.sm-app .v-modes button[aria-pressed="true"] { background: var(--app-hover); }
.sm-app .wait pre, .sm-app .term { background: var(--app-code); }
.sm-app .term .add { color: color-mix(in oklch, var(--app-ok) 70%, var(--app-text)); }
.sm-app .term .del { color: color-mix(in oklch, var(--app-alert) 70%, var(--app-text)); }
.sm-app .compose .send { background: var(--app-hover); }
.sm-app .v-code .add { color: color-mix(in oklch, var(--app-ok) 70%, var(--app-text)); background: color-mix(in oklch, var(--app-ok) 10%, transparent); }
.sm-app .v-code .del { color: color-mix(in oklch, var(--app-alert) 70%, var(--app-text)); background: color-mix(in oklch, var(--app-alert) 9%, transparent); }
.sm-app .plan-line { background: var(--app-hover); }
.sm .convo { overflow: auto; padding: 16px 18px; gap: 12px; max-width: none; }
.sm .you-asked p { font-size: 16px; line-height: 23px; }
.sm .answer { font-size: 14px; max-width: 62ch; }
.sm .made-grid { max-width: 34rem; }

/* Archive sheet */
.ar { display: flex; flex-direction: column; min-height: 600px; position: relative; }
.ar-canvas { flex: 1; position: relative; padding: 18px; display: grid; place-items: start center; background: var(--app-bg); }
.ar-empty { color: var(--app-dim); padding-top: 40px; }
.sheet { width: 100%; max-width: 560px; background: var(--app-tile); border: 1px solid var(--app-line); border-radius: 12px; box-shadow: 0 24px 60px -24px oklch(0.15 0.01 260 / 0.45); display: flex; flex-direction: column; min-width: 0; }
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 0 18px; }
.sheet-head .hd { font-size: 16px; font-weight: 600; margin-right: auto; }
.x-btn { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; border: 0; background: none; color: var(--app-dim); cursor: pointer; }
.x-btn:hover { background: var(--app-hover); color: var(--app-text); }
.sheet-copy { padding: 6px 18px 0; color: var(--app-dim); display: grid; gap: 4px; }
.sheet-copy .by { color: var(--app-text); }
.sheet-list { padding: 10px 10px 4px; display: grid; gap: 1px; }
.pick { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 1px 10px; align-items: start; padding: 8px 8px; border-radius: 8px; cursor: pointer; }
.pick:hover { background: var(--app-hover); }
.pick input { appearance: none; margin: 2px 0 0; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--app-line); background: var(--app-tile); grid-row: span 2; cursor: pointer; display: grid; place-items: center; }
.pick input:checked { background: var(--app-signal); border-color: var(--app-signal); }
.pick input:checked::after { content: ""; width: 8px; height: 4.5px; border: 1.8px solid var(--app-on-signal); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.pick input:focus-visible { outline: 2px solid var(--app-signal); outline-offset: 2px; }
.pick b { font-weight: 600; }
.pick .task { color: var(--app-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; grid-column: 2; }
.pick time { color: var(--app-dim); font-size: 12px; grid-column: 3; grid-row: 1; }
.kept-head { padding: 10px 18px 2px; font-weight: 600; display: flex; gap: 6px; }
.kept-head span { color: var(--app-dim); font-weight: 400; }
.kept { padding: 2px 10px 6px; display: grid; gap: 1px; }
.kept div { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 10px; padding: 6px 8px; }
.kept b { font-weight: 600; }
.kept span { color: var(--app-dim); }
.sheet-foot { display: flex; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--app-line); margin-top: 6px; align-items: center; flex-wrap: wrap; }
.sheet-foot .note { margin-left: auto; color: var(--app-dim); font-size: 12px; }
.done-msg { padding: 22px 18px 6px; display: grid; gap: 6px; }
.done-msg b { font-size: 15px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.done-msg b .mk.tick { color: var(--app-ok); width: 13px; height: 13px; }
.done-msg span { color: var(--app-dim); }
.search { margin: 10px 18px 4px; height: 32px; border: 1px solid var(--app-line); border-radius: 8px; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: var(--app-dim); background: var(--app-bg); }
.search .icon { width: 13px; height: 13px; }
.hist { padding: 6px 10px 10px; display: grid; gap: 1px; }
.hrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 12px; align-items: center; padding: 8px 8px; border-radius: 8px; }
.hrow:hover { background: var(--app-hover); }
.hrow b { font-weight: 600; }
.hrow .task { color: var(--app-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrow .when { color: var(--app-dim); font-size: 12px; }
.hrow .app-btn { grid-row: 1 / span 3; grid-column: 2; }
.hrow .back { grid-row: 1 / span 3; grid-column: 2; color: var(--app-ok); font-size: 12.5px; display: inline-flex; gap: 6px; align-items: center; }
.hrow .back .mk.tick { width: 11px; height: 11px; }

/* Vibe mode: the race */
.race { position: relative; height: 640px; background: oklch(0.2 0.02 150); overflow: hidden; }
.race canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
.race canvas:focus-visible { outline: 2px solid var(--glass-signal); outline-offset: -2px; border-radius: 0; }
.race-strip { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; align-items: center; padding: 8px 10px 10px; pointer-events: none; }
.race-cards { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; pointer-events: auto; }
.race-cards::-webkit-scrollbar { display: none; }
.rcard { flex: 0 0 214px; display: grid; gap: 3px; padding: 8px 10px 9px; border-radius: 9px; background: var(--glass); border: 1px solid var(--glass-line); color: var(--glass-text); text-align: left; font-size: 12.5px; min-width: 0; }
.rcard.needs { border-color: var(--glass-signal); cursor: pointer; }
.rcard header { display: flex; gap: 7px; align-items: center; min-width: 0; }
.rcard header b { font-weight: 600; font-size: 13px; }
.rcard header .st { margin-left: auto; display: inline-flex; gap: 5px; align-items: center; color: var(--glass-dim); white-space: nowrap; }
.rcard header .st.needs { color: var(--glass-signal); }
.rcard .lv { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.rcard .s { color: var(--glass-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard .s.needs { color: var(--glass-signal); }
.rcard .mk.needs { border-color: var(--glass-signal); background: radial-gradient(circle, var(--glass-signal) 0 1.6px, transparent 2px); }
.race-join { pointer-events: auto; flex: none; }
.race-join .sc { color: oklch(0.3 0.02 260); }
.race-join.leave { background: var(--glass); border-color: var(--glass-line); color: var(--glass-text); font-weight: 400; }
.race-join.leave .sc { color: var(--glass-dim); }
.race-banner { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; padding: 7px 12px; border-radius: 9px; background: var(--glass); border: 1px solid var(--glass-line); color: var(--glass-text); font-size: 13px; white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
.race-banner .mk.needs { border-color: var(--glass-signal); background: radial-gradient(circle, var(--glass-signal) 0 1.6px, transparent 2px); }
.race-lap { position: absolute; right: 12px; bottom: 82px; min-width: 176px; padding: 8px 12px; border-radius: 10px; background: var(--glass); border: 1px solid var(--glass-line); color: var(--glass-text); }
.race-lap dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: 3px 18px; }
.race-lap dt { color: var(--glass-dim); }
.race-lap dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.race-hint { position: absolute; left: 12px; bottom: 82px; padding: 6px 10px; border-radius: 8px; background: var(--glass); border: 1px solid var(--glass-line); color: var(--glass-dim); font-size: 12.5px; }
.race-hint kbd { font-family: var(--font-app); background: transparent; border-color: var(--glass-line); color: var(--glass-text); font-size: 11.5px; }
.race-over { position: absolute; inset: 10px 10px 76px; display: grid; place-items: center; pointer-events: none; }
.race-over .tile { pointer-events: auto; width: min(560px, 100%); max-height: 100%; border-color: var(--glass-signal); box-shadow: 0 30px 80px -30px oklch(0 0 0 / 0.7); }
.race-over .convo { overflow: auto; }
.race-over.enter .tile { animation: tile-up 240ms var(--ease-out); }
@keyframes tile-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.race-error { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; color: var(--glass-text); text-align: center; font-size: 13.5px; }
.race-play { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); }
.race-note { color: var(--muted); }
@container (max-width: 640px) {
  .race { height: 360px; }
  .race-strip { padding: 6px; }
  .rcard { flex-basis: 168px; padding: 6px 8px; }
  .race-over { inset: 6px 6px 64px; }
  .race-lap { bottom: 66px; right: 6px; min-width: 150px; font-size: 12px; }
}
.cv-race.race { position: absolute; inset: 0; height: auto; }

@keyframes line-in { from { opacity: 0; } to { opacity: 1; } }

/* Local recreation */
.lc { display: grid; grid-template-columns: 190px minmax(0, 1fr) 270px; min-height: 600px; }
.lc-nav { border-right: 1px solid var(--app-line); padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.lc-nav > span { padding: 7px 10px; border-radius: 7px; color: var(--app-text); }
.lc-nav > span.on { background: var(--app-hover); font-weight: 600; }
.lc-machines { margin-top: 18px; display: grid; gap: 12px; padding: 0 10px; }
.lc-machines div { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 0 8px; }
.lc-machines .dot { margin-top: 5px; justify-self: start; }
.lc-machines small { grid-column: 2; color: var(--app-dim); font-size: 12px; }
.lc-nav .foot { margin-top: auto; padding: 10px; color: var(--app-dim); font-size: 12px; display: flex; gap: 7px; align-items: center; }
.lc-chat { display: flex; flex-direction: column; min-width: 0; }
.lc-chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--app-line); flex-wrap: wrap; }
.lc-chat-head b { font-weight: 600; }
.lc-chat-head .where { color: var(--app-dim); }
.lc-chat-head .end { margin-left: auto; display: flex; gap: 14px; color: var(--app-dim); }
.lc-thread { flex: 1; padding: 18px 16px; display: grid; gap: 14px; align-content: start; }
.bubble { justify-self: end; max-width: 82%; background: var(--app-hover); border-radius: 12px; padding: 9px 13px; }
.reply { max-width: 62ch; font-size: 14px; min-height: 3em; }
.reply .caret { display: inline-block; width: 7px; height: 1em; vertical-align: -2px; background: var(--app-signal); margin-left: 2px; }
.reply-meta { color: var(--app-dim); display: flex; gap: 7px; align-items: center; font-size: 12.5px; }
.lc-compose { margin: 12px 16px 16px; border: 1px solid var(--app-line); border-radius: 12px; background: var(--app-tile); padding: 11px 12px; display: grid; gap: 10px; }
.lc-compose .ph { color: var(--app-dim); }
.lc-compose .row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.lc-compose .send { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--app-hover); color: var(--app-dim); }
.lc-read { border-left: 1px solid var(--app-line); padding: 14px; display: grid; gap: 12px; align-content: start; }
.big-rate { display: flex; align-items: baseline; gap: 6px; }
.big-rate strong { font-family: var(--font-mono); font-size: 40px; font-weight: 400; letter-spacing: -0.02em; line-height: 1; }
.big-rate span { color: var(--app-dim); }
.ticks { position: relative; height: 24px; border-bottom: 1px solid var(--app-dim); background: repeating-linear-gradient(90deg, var(--app-dim) 0 1px, transparent 1px 10%); background-size: 100% 12px; background-repeat: no-repeat; background-position: bottom; }
.ticks i { position: absolute; bottom: 0; width: 2px; height: 22px; background: var(--app-signal); left: 0%; transition: left 120ms linear; }
.ticks-scale { display: flex; justify-content: space-between; color: var(--app-dim); font-size: 11.5px; margin-top: 3px; }
.rbox { border: 1px solid var(--app-line); background: var(--app-tile); border-radius: 10px; padding: 4px 12px; margin: 0; }
.rbox .hd { margin: 8px 0 2px; font-size: 13px; font-weight: 600; }
.rbox .hd span { color: var(--app-dim); font-weight: 400; margin-left: 4px; }
.rbox div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--app-line); }
.rbox div:last-child { border-bottom: 0; }
.rbox dl, .rbox dt, .rbox dd { margin: 0; }
.rbox dt { color: var(--app-dim); }
@container (max-width: 980px) { .lc { grid-template-columns: 160px minmax(0, 1fr); } .lc-read { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--app-line); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
@container (max-width: 620px) {
  .lc { grid-template-columns: minmax(0, 1fr); }
  .lc-nav { border-right: 0; border-bottom: 1px solid var(--app-line); flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .lc-machines, .lc-nav .foot { display: none; }
  .lc-nav > span { flex: none; }
  .lc-chat-head .end { display: none; }
}

/* Lights on: the scene first, then the agents' tiles rise onto it. It plays
   once on load and again, shorter, after a new scene is picked. */
.cv-tiles > .tile:nth-child(2) { --i: 1; }
.cv-tiles > .tile:nth-child(3) { --i: 2; }
.cv-tiles > .tile:nth-child(4) { --i: 3; }
.lights .cv-tiles > .tile { animation: tile-rise 380ms var(--ease-out) both; animation-delay: calc(280ms + var(--i, 0) * 70ms); }
.lights .rail { animation: line-in 300ms var(--ease-out) 180ms both; }
.cv-tiles.peek > .tile { opacity: 0; pointer-events: none; transition: opacity 160ms var(--ease-out); }
.cv-tiles.back > .tile { animation: tile-rise 340ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes tile-rise { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }

/* The dark page is already night, so Pro is lifted above Free by a lighter surface instead. */
:root[data-theme="dark"] .plan:not(.plan-pro) { background: var(--paper-2); }
:root[data-theme="dark"] .plan-pro.night { --raised: oklch(0.245 0.009 262); --line: oklch(0.32 0.01 262); --line-2: oklch(0.42 0.01 262); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .plan:not(.plan-pro) { background: var(--paper-2); }
  :root:not([data-theme="light"]) .plan-pro.night { --raised: oklch(0.245 0.009 262); --line: oklch(0.32 0.01 262); --line-2: oklch(0.42 0.01 262); }
}

@media (prefers-reduced-motion: reduce) {
  .scene video, .ticks i { transition: none; }
  .race-over.enter .tile { animation-name: line-in; }
  .worked .chev, .grp .icon { transition: none; }
  .lights .cv-tiles > .tile, .cv-tiles.back > .tile, .lights .rail, .flip-in .tile-main { animation: none; }
  .cv-tiles.peek > .tile { transition: none; }
}
