/* Command Tempo, round 5 (round 3 design kept; round 5 adds the surface toggle demo, chat window mock, audience rows and sub-pages). Round 2 base:
   ground (Vercel, Linear), heavy tight headlines (Moonemail), mono labels and a dark working
   terminal (Factory). One accent: the green of a recorded ruling. Red only for MODE halt.
   Illustrations wait for a reference image. */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --panel: #eef1f0;
  --fg: #0d0f12;
  --muted: #5a606a;
  --faint: #8a9099;
  --line: #e2e4e7;
  --accent: #0b7a57;
  --accent-soft: #e2f1ea;
  --halt: #c0362c;
  --term-bg: #0e1013;
  --term-fg: #e8eaed;
  --term-muted: #8b929c;
  --term-line: #23272d;
  --term-accent: #45c99a;
  --btn-bg: #0d0f12;
  --btn-fg: #ffffff;
  --display: "Geist", "Helvetica Neue", Arial, sans-serif;
  --body: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1180px;
  --radius: 10px;
  --show-tui: none; --show-gui: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0b0d; --surface: #121418; --panel: #14191a; --fg: #eceef0; --muted: #9aa0a9; --faint: #6c727b;
    --line: #23262b; --accent: #43c797; --accent-soft: #11261e; --halt: #f06b5f;
    --term-bg: #060708; --term-fg: #e8eaed; --term-muted: #858c96; --term-line: #22262c; --term-accent: #45c99a;
    --btn-bg: #eceef0; --btn-fg: #0a0b0d; color-scheme: dark;
    --show-tui: block; --show-gui: none;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0b0d; --surface: #121418; --panel: #14191a; --fg: #eceef0; --muted: #9aa0a9; --faint: #6c727b;
  --line: #23262b; --accent: #43c797; --accent-soft: #11261e; --halt: #f06b5f;
  --term-bg: #060708; --term-fg: #e8eaed; --term-muted: #858c96; --term-line: #22262c; --term-accent: #45c99a;
  --btn-bg: #eceef0; --btn-fg: #0a0b0d; color-scheme: dark;
    --show-tui: block; --show-gui: none;
}

:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 600px) { .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }
h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); }
.label {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.lede { color: var(--muted); font-size: 19px; max-width: 54ch; }
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }

/* Header */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; display: inline-flex; align-items: center; gap: 9px; }
.brand .brand-mark { width: 22px; height: 22px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav-sep { width: 1px; background: var(--line); }
.head-cta { margin-left: 8px; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; display: grid; min-width: 220px; box-shadow: 0 12px 32px rgb(0 0 0 / 0.12); }
.menu-panel a { text-decoration: none; padding: 9px 10px; border-radius: 6px; font-size: 15px; }
.menu-panel a:hover { background: var(--panel); }
@media (max-width: 900px) { .nav { display: none; } .menu { display: block; margin-left: 0; } .site-head .head-cta { margin-left: auto; } .site-head .wrap { gap: 10px; } }
@media (max-width: 480px) { .site-head .head-cta { display: none; } .menu { margin-left: auto; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font: 500 15px/1 var(--body);
  padding: 13px 18px; border-radius: 8px; text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: color-mix(in srgb, var(--btn-bg) 86%, var(--accent)); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: var(--surface); }
.btn-ghost:hover { border-color: var(--faint); }
.btn-sm { padding: 9px 13px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Sections */
section { border-top: 1px solid var(--line); }
section > .wrap { padding-block: clamp(64px, 9vw, 120px); display: grid; gap: clamp(32px, 4vw, 56px); }
.sec-head { display: grid; gap: 14px; max-width: 760px; }
.sec-head h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Hero */
.hero > .wrap { padding-block: clamp(56px, 8vw, 104px) clamp(64px, 8vw, 112px); }
.hero { border-top: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-copy { display: grid; gap: 26px; align-content: center; }
.hero h1 { font-size: clamp(40px, 5.8vw, 76px); font-weight: 600; letter-spacing: -0.04em; line-height: 0.96; }
.hero-note { font-size: 13.5px; color: var(--muted); }

/* Frame around product mockups (Moonemail-style tinted panel) */
.stage { background: var(--panel); border-radius: 18px; padding: clamp(16px, 3vw, 32px); display: grid; gap: 14px; min-width: 0; }
.stage-cap { text-align: center; font-size: 13.5px; color: var(--muted); display: grid; gap: 2px; }
.stage-cap small { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: 0.04em; }

/* Terminal */
.term { background: var(--term-bg); color: var(--term-fg); border-radius: 12px; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; overflow: hidden; min-width: 0; box-shadow: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 20px 50px -20px rgb(0 0 0 / 0.45); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--term-line); color: var(--term-muted); font-size: 12px; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--term-line); display: inline-block; }
.term-bar span { margin-left: 8px; }
.term-body { padding: 16px 18px 18px; display: grid; gap: 10px; overflow-x: auto; }
.t-muted { color: var(--term-muted); }
.t-ok { color: var(--term-accent); }
.t-q { display: grid; gap: 4px; border: 1px solid var(--term-line); border-radius: 8px; padding: 12px 14px; }
.t-q-title { color: var(--term-fg); font-weight: 500; }
.t-opt { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; color: var(--term-muted); }
.t-opt b { color: var(--term-fg); font-weight: 500; }
.t-opt.rec { color: var(--term-fg); }
.t-tag { font-size: 11px; color: var(--term-accent); border: 1px solid color-mix(in srgb, var(--term-accent) 45%, transparent); border-radius: 4px; padding: 0 6px; align-self: center; }
.t-prompt { color: var(--term-fg); }
.t-prompt::before { content: "› "; color: var(--term-muted); }
.caret { display: inline-block; width: 8px; height: 1.05em; background: var(--term-fg); vertical-align: -2px; margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Problem columns */
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cols3 > div { background: var(--bg); padding: 28px 26px 30px; display: grid; gap: 10px; align-content: start; }
.cols3 h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.cols3 p { color: var(--muted); font-size: 16px; }
@media (max-width: 820px) { .cols3 { grid-template-columns: minmax(0, 1fr); } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.step { display: grid; gap: 12px; align-content: start; border-top: 2px solid var(--fg); padding-top: 18px; }
.step .num { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }
.step h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.step p { color: var(--muted); font-size: 16px; }
.step code { font-family: var(--mono); font-size: 14px; color: var(--fg); background: var(--panel); padding: 1px 6px; border-radius: 4px; }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Slack mock */
.slack { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 15px; min-width: 0; box-shadow: 0 18px 40px -24px rgb(0 0 0 / 0.25); }
.slack-bar { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 600; }
.slack-bar span:last-child { font-weight: 400; color: var(--muted); font-size: 13px; }
.slack-body { padding: 8px 0 14px; display: grid; }
.msg { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 8px 16px; }
.avatar { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; font-weight: 600; font-size: 14px; background: var(--fg); color: var(--bg); }
.avatar.you { background: var(--accent-soft); color: var(--accent); }
.msg-head { display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.msg-head b { font-weight: 600; }
.msg-head .app { font-size: 10px; font-weight: 600; background: var(--panel); color: var(--muted); padding: 1px 4px; border-radius: 3px; }
.msg-head time { color: var(--faint); font-size: 12px; }
.msg-text { display: grid; gap: 3px; }
.msg-opts { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; color: var(--muted); }
.msg-opts b { color: var(--fg); font-family: var(--mono); font-size: 13px; margin-right: 6px; }
.react { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; width: fit-content; margin-top: 4px; color: var(--muted); }
.reply-code { font-family: var(--mono); font-size: 15px; font-weight: 500; }
.ok { color: var(--accent); }
.email-strip { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; font-size: 14px; }
.email-strip .mono { font-size: 13px; }

/* MODE switch */
.mode { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 3vw, 28px); min-width: 0; }
.mode-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mode-file { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--panel); border-radius: 10px; padding: 4px; gap: 4px; }
.seg button { all: unset; cursor: pointer; text-align: center; font-family: var(--mono); font-size: 15px; font-weight: 500; padding: 12px 6px; border-radius: 7px; color: var(--muted); }
.seg button:focus-visible { outline: 2px solid var(--accent); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 0 0 1px var(--line); }
.seg button[data-mode="halt"][aria-pressed="true"] { color: var(--halt); }
.seg button[data-mode="run"][aria-pressed="true"] { color: var(--accent); }
.mode-desc { min-height: 3.2em; font-size: 16px; }
.mode-desc b { font-family: var(--mono); font-weight: 500; }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: rank; }
.rank li { counter-increment: rank; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; background: var(--bg); }
.rank li::before { content: counter(rank); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rank li:nth-child(1) { border-color: var(--fg); }
.rank li:nth-child(2) { border-color: var(--accent); background: var(--accent-soft); }
.rank li:last-child { color: var(--muted); }

/* Proof */
.proof { background: var(--term-bg); color: var(--term-fg); border-top: 0; }
.proof .label, .proof .lede { color: var(--term-muted); }
.proof .sec-head h2 { color: var(--term-fg); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--term-line); }
.stat { padding: 28px 24px 8px 0; display: grid; gap: 10px; align-content: start; border-right: 1px solid var(--term-line); padding-left: 24px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat-n { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 5.4vw, 72px); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-n small { font-size: 0.42em; letter-spacing: -0.01em; font-weight: 500; margin-left: 4px; }
.stat p { font-size: 15.5px; color: var(--term-fg); }
.stat .src { font-family: var(--mono); font-size: 12px; color: var(--term-muted); }
.dots { display: flex; gap: 5px; margin-top: 2px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--term-muted); }
.dots i.you { background: var(--term-accent); border-color: var(--term-accent); }
.source-line { font-family: var(--mono); font-size: 12px; color: var(--term-muted); display: flex; flex-wrap: wrap; gap: 6px 18px; border-top: 1px solid var(--term-line); padding-top: 18px; }
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 24px 16px 20px; border-bottom: 1px solid var(--term-line); }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(even) { border-right: 0; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { padding-left: 0 !important; border-right: 0; }
}

/* Memory statement + knowledge module */
.statement { font-family: var(--display); font-size: clamp(30px, 4.2vw, 50px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; max-width: 22ch; text-wrap: balance; }
.statement span { color: var(--muted); }
.module { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3.5vw, 36px); }
.module h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.025em; }
.module-copy { display: grid; gap: 12px; }
.findings { display: grid; gap: 8px; font-size: 15px; }
.finding { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.finding .mono { font-size: 11px; color: var(--muted); padding-top: 3px; letter-spacing: 0.06em; text-transform: uppercase; min-width: 64px; }
.finding.drop { opacity: 0.55; text-decoration: line-through; text-decoration-color: var(--faint); }
@media (max-width: 820px) { .module { grid-template-columns: minmax(0, 1fr); } }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: grid; gap: 16px; grid-template-rows: auto auto 1fr auto; }
.plan.featured { border-color: var(--fg); }
.plan-kind { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.plan h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.025em; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; align-content: start; color: var(--muted); font-size: 15.5px; }
.plan li { padding-left: 20px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 2px; background: var(--accent); }
.plan .btn { justify-content: center; }
.plans-note { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-grid .sec-head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: block; position: relative; padding: 18px 32px 18px 0; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-family: var(--mono); color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding: 0 0 20px; max-width: 62ch; font-size: 16px; }
.faq a { color: var(--fg); }
@media (max-width: 820px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }

/* Waitlist */
.waitlist { background: var(--panel); }
.wl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.wl-grid h2 { font-size: clamp(38px, 5.6vw, 68px); font-weight: 600; letter-spacing: -0.04em; line-height: 0.98; }
form.wl { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 3vw, 28px); }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: 14px; font-weight: 600; }
.field input[type="email"] { font: 16px var(--body); padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); width: 100%; }
.field input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: var(--bg); }
.chip input:checked + span { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-msg { font-size: 14px; color: var(--muted); min-height: 1.4em; }
.form-msg.err { color: var(--halt); }
.form-msg.done { color: var(--accent); }
@media (max-width: 820px) { .wl-grid { grid-template-columns: minmax(0, 1fr); } }

/* Audience pages */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.card p { color: var(--muted); font-size: 16px; }
.card pre { margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.6; background: var(--panel); border-radius: 8px; padding: 14px; overflow-x: auto; }
@media (max-width: 820px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 60px; gap: 10px; align-items: center; font-size: 14px; }
.bar-row .track { height: 10px; background: var(--panel); border-radius: 3px; overflow: hidden; }
.bar-row .fill { height: 100%; background: var(--faint); }
.bar-row.win .fill { background: var(--accent); }
.bar-row .mono { font-size: 13px; text-align: right; }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.strip > div { display: grid; gap: 6px; border-top: 2px solid var(--fg); padding-top: 16px; }
.strip .n { font-family: var(--display); font-weight: 600; font-size: clamp(36px, 4.4vw, 54px); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.strip p { color: var(--muted); font-size: 15px; }
.strip-src { font-family: var(--mono); font-size: 12px; color: var(--muted); }
@media (max-width: 720px) { .strip { grid-template-columns: minmax(0, 1fr); } }
.others { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.others a { display: grid; gap: 4px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: var(--surface); }
.others a:hover { border-color: var(--faint); }
.others b { font-size: 17px; }
.others span { color: var(--muted); font-size: 15px; }
@media (max-width: 720px) { .others { grid-template-columns: minmax(0, 1fr); } }

/* Phone frame for the founders page */
.phone { width: min(100%, 340px); margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 30px; padding: 10px; box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.35); }
.phone .slack { border-radius: 22px; box-shadow: none; }
.phone .slack-bar { padding-top: 16px; }

/* Record entry for the teams page */
.record { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0; font-size: 15px; }
.record-bar { font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 11px 16px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.record-body { padding: 18px; display: grid; gap: 12px; }
.record-body h4 { margin: 0; font-size: 17px; }
.record-body blockquote { margin: 0; border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; font-size: 16px; }
.record-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.gitlog { font-family: var(--mono); font-size: 12.5px; background: var(--term-bg); color: var(--term-fg); padding: 14px 16px; display: grid; gap: 3px; overflow-x: auto; }
.gitlog span { color: var(--term-accent); margin-right: 8px; }
.gitlog div { white-space: nowrap; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); }
.site-foot .wrap { padding-block: 32px 40px; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--fg); }
/* Audience pages carry longer headlines than the main page */
.hero .label + h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1; }

/* Proof chart: stacked daily bars, scale 0 to 250 */
.chart { margin: 0; display: grid; gap: 16px; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-family: var(--mono); font-size: 12px; color: var(--term-muted); }
.legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.legend > span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.lg-f, .seg-f { background: var(--term-accent); }
.lg-a, .seg-a { background: color-mix(in srgb, var(--term-fg) 28%, var(--term-bg)); }
.chart-plot { position: relative; height: clamp(220px, 32vw, 340px); padding-left: 34px; padding-bottom: 26px; }
.grid { position: absolute; inset: 0 0 26px 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.grid span { display: block; height: 0; border-top: 1px solid var(--term-line); font-family: var(--mono); font-size: 11px; color: var(--term-muted); line-height: 1; } .grid span::after { content: none; }
.grid { top: calc((100% - 26px) * 0.2); }
.cols { position: absolute; left: 34px; right: 0; top: 0; bottom: 0; display: grid; grid-template-columns: repeat(18, minmax(0, 1fr)); gap: clamp(3px, 0.8vw, 10px); }
.col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 26px; min-width: 0; }
.col-bar { position: relative; display: flex; flex-direction: column; border-radius: 3px 3px 0 0; overflow: visible; }
.col-bar span[class^="seg"] { display: block; min-height: 0; }
.seg-a { border-radius: 3px 3px 0 0; }
.col-total { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 12px; color: var(--term-fg); white-space: nowrap; }
.peak .seg-a { background: color-mix(in srgb, var(--term-fg) 55%, var(--term-bg)); }
.col-day { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--term-muted); }
@media (max-width: 600px) { .col:nth-child(even) .col-day { visibility: hidden; } .chart-plot { padding-left: 28px; } .cols { left: 28px; } }
.chart-data summary { cursor: pointer; font-family: var(--mono); font-size: 12px; color: var(--term-muted); }
.chart-data .table-wrap { overflow-x: auto; margin-top: 10px; }
.chart-data table { border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; color: var(--term-fg); font-variant-numeric: tabular-nums; }
.chart-data th, .chart-data td { padding: 4px 16px 4px 0; text-align: right; border-bottom: 1px solid var(--term-line); }
.chart-data th[scope="row"], .chart-data thead th:first-child { text-align: left; }

/* Logo mark */
.mark { width: 20px; height: 20px; flex: none; color: var(--fg); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Desk screen in the hero terminal */
.term-body.desk { gap: 6px; }
.d-h { color: var(--term-muted); font-size: 12px; letter-spacing: 0.08em; margin-top: 6px; }
.d-h:first-child { margin-top: 0; }
.d-item { display: block; }
.d-item b { font-weight: 500; }
.d-opts { display: block; color: var(--term-muted); font-size: 12.5px; padding-left: 3ch; }
.d-opts em { font-style: normal; color: var(--term-accent); }

/* Before and after */
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 900px) { .ba { grid-template-columns: minmax(0, 1fr); } }
.ba-col { display: grid; gap: 18px; min-width: 0; }
.ba-top { display: grid; gap: 10px; }
.ba-top h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.ba-tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; width: fit-content; }
.ba-tag.on { color: var(--bg); background: var(--fg); border-color: var(--fg); }
.ba-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 16px; }
.ba-list li { padding-left: 20px; position: relative; }
.ba-now .ba-list li { color: var(--muted); }
.ba-now .ba-list li::before { content: "×"; position: absolute; left: 2px; font-family: var(--mono); color: var(--faint); }
.ba-with .ba-list li::before { content: "✓"; position: absolute; left: 0; font-family: var(--mono); color: var(--accent); }
.stage-now { gap: 10px; }
.tabs { display: flex; gap: 4px; overflow: hidden; font-family: var(--mono); font-size: 11.5px; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
.tabs span { flex: none; padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); color: var(--muted); white-space: nowrap; }
.tabs span.on { background: var(--surface); color: var(--fg); border-color: var(--faint); }
.tabs b { font-weight: 500; background: var(--fg); color: var(--bg); border-radius: 999px; padding: 0 5px; margin-left: 4px; font-size: 10.5px; }
.chat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 14px; font-size: 14.5px; min-width: 0; position: relative; }
.chat-msg { display: grid; gap: 8px; }
.chat-msg .who { font-family: var(--mono); font-size: 11.5px; color: var(--faint); letter-spacing: 0.04em; }
.chat-msg .fade { color: var(--faint); line-height: 1.5; }
.chat-msg .fade.sm { line-height: 1; }
.buried { background: var(--bg); border: 1px dashed var(--faint); border-radius: 8px; padding: 8px 10px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.buried .para { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 1px; }
.chat-msg.you { border-top: 1px solid var(--line); padding-top: 12px; }
.chat-msg.you p { color: var(--fg); }
.toast { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--bg); }
.toast b { color: var(--fg); font-weight: 600; }
.toast time { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.msg-line { color: var(--muted); font-size: 13.5px; margin-bottom: 6px; }
.msg-note { font-size: 13.5px; color: var(--muted); border-left: 2px solid var(--accent); padding-left: 8px; }

/* Pricing */
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price .amt { font-family: var(--display); font-size: clamp(40px, 4.6vw, 54px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price .per { font-size: 15px; color: var(--muted); }
.price-alt { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: -8px; }
.plan { grid-template-rows: auto auto auto 1fr auto; }
.setup { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3vw, 30px); }
.setup > div:first-child { display: grid; gap: 8px; }
.setup h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.setup-price { display: grid; gap: 14px; justify-items: start; }
@media (max-width: 720px) { .setup { grid-template-columns: minmax(0, 1fr); } }

/* Pilot form extras */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-fine { font-size: 13px; color: var(--muted); }
.wl button[disabled] { opacity: 0.6; cursor: progress; }

/* Founders: memory recall next to a ruling */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .compare { grid-template-columns: minmax(0, 1fr); } }
.cmp { border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 12px; align-content: start; background: var(--surface); min-width: 0; }
.cmp-guess { background: var(--bg); border-style: dashed; }
.cmp-guess p { color: var(--faint); font-style: italic; }
.cmp-rule { border-color: var(--fg); }
.cmp-rule blockquote { margin: 0; border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; font-size: 18px; font-weight: 500; }
.cmp-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Footer extras */
.foot-brand { display: inline-flex; align-items: center; gap: 8px; }
.foot-ftc { width: 100%; font-size: 14px; }
.foot-ftc a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* Round 4 additions */
.t-ctx { color: var(--term-muted); font-size: 12.5px; padding-left: 3ch; line-height: 1.55; }
.term-body.desk > .d-opts { padding-left: 3ch; }
.answers { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.answers li { display: grid; gap: 4px; }
.answers code { font-family: var(--mono); font-size: 14px; background: var(--panel); padding: 3px 8px; border-radius: 5px; width: fit-content; max-width: 100%; overflow-wrap: anywhere; }
.answers span { color: var(--muted); font-size: 15.5px; }
.tempo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tempo > div { display: grid; gap: 6px; border-top: 2px solid var(--fg); padding-top: 14px; }
.tempo .t-time { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.035em; line-height: 1; }
.tempo span:last-child { color: var(--muted); font-size: 15px; }
@media (max-width: 600px) { .tempo { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; } }
.ba-with-list li::before { content: "✓"; position: absolute; left: 0; font-family: var(--mono); color: var(--accent); }
.record .gitlog { border-top: 1px solid var(--line); }

/* Round 5 additions */
.loop-end { font-size: 18px; color: var(--muted); }
.loop-end code, .faq code, .card code { font-family: var(--mono); font-size: 0.9em; color: var(--fg); background: var(--panel); padding: 1px 6px; border-radius: 4px; }
ol.steps { list-style: none; margin: 0; padding: 0; }
.steps4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .steps4 { grid-template-columns: minmax(0, 1fr); } }
.steps4 .step h3 { font-size: 21px; }

/* Demo: surface toggle */
.surface-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.surface-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.seg2 { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: min(100%, 340px); border: 1px solid var(--line); }
.seg2 button { font-family: var(--body); font-size: 15px; padding: 11px 16px; }
.seg2 button:hover:not([aria-pressed="true"]) { color: var(--fg); }
.seg2 button[aria-pressed="true"] { color: var(--fg); font-weight: 600; }
.demo[data-surface="terminal"] .sv-chat, .demo[data-surface="chat"] .sv-terminal { display: none; }
.ba-big { font-family: var(--display); font-size: clamp(44px, 6vw, 80px); font-weight: 600; letter-spacing: -0.045em; line-height: 0.95; color: var(--faint); }
.ba-big-on { color: var(--accent); }
.ba-now .stage { background: color-mix(in srgb, var(--panel) 60%, var(--bg)); }

/* Before terminal: split panes */
.pane { padding: 12px 16px 14px; border-bottom: 1px solid var(--term-line); display: grid; gap: 6px; font-size: 12.5px; }
.pane-h { color: var(--term-fg); font-size: 11.5px; letter-spacing: 0.04em; }
.pane-wait { color: #f0a35f; margin-left: 8px; }
.t-buried { color: var(--term-fg); border: 1px dashed var(--term-muted); border-radius: 6px; padding: 6px 8px; }
.pane-more { padding: 10px 16px 12px; color: var(--term-muted); font-size: 12px; }

/* Chat window mock */
.cw { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-width: 0; font-size: 14.5px; box-shadow: 0 18px 40px -24px rgb(0 0 0 / 0.25); }
.cw-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.cw-dots { display: inline-flex; gap: 6px; }
.cw-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: inline-block; }
.cw-title { font-size: 13px; font-weight: 600; }
.cw-body { padding: 16px; display: grid; gap: 12px; }
.bub { border-radius: 14px; padding: 10px 14px; max-width: 92%; display: grid; gap: 6px; line-height: 1.5; }
.bub-you { justify-self: end; background: var(--fg); color: var(--bg); border-bottom-right-radius: 4px; }
.bub-agent { justify-self: start; background: var(--panel); border-bottom-left-radius: 4px; }
.bub-agent .fade { color: var(--faint); }
.bub-buried { border: 1px dashed var(--faint); border-radius: 8px; padding: 6px 8px; }
.bub-h { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.bub-h:first-child { margin-top: 0; }
.bub-ctx { color: var(--muted); font-size: 13.5px; }
.bub-src { font-family: var(--mono); font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.bub-opts { font-size: 13.5px; }
.bub-opts em { font-style: normal; color: var(--accent); }
.cw-stack { display: grid; gap: 8px; }
.note-card { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: var(--surface); }
.note-card b { color: var(--fg); font-weight: 600; }
.note-card time { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: #b86a1e; }

/* Audience rows */
.rows { display: grid; border-top: 1px solid var(--line); }
.rows a { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline; padding: 22px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.rows a:hover b, .rows a:hover i { color: var(--accent); }
.rows b { font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.03em; }
.rows span { color: var(--muted); font-size: 17px; }
.rows i { font-style: normal; font-family: var(--mono); color: var(--muted); }
@media (max-width: 640px) { .rows a { grid-template-columns: minmax(0, 1fr) auto; } .rows span { grid-column: 1; } .rows i { grid-row: 1; grid-column: 2; } }

/* Hosted row in pricing */
.hosted { border-style: dashed; }
.wl-inline { padding: 0; border: 0; background: none; gap: 10px; min-width: min(100%, 320px); }
.wl-inline .btn { justify-content: center; }
.plan .btn { text-align: center; line-height: 1.25; }

/* Sub-pages */
.cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 820px) { .cards4 { grid-template-columns: minmax(0, 1fr); } }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); }
.ticks li { padding-left: 20px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 8px; height: 2px; background: var(--accent); }
.layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.layer { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.layer h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.layer p { color: var(--muted); font-size: 16px; }
@media (max-width: 820px) { .layers { grid-template-columns: minmax(0, 1fr); } }
#others > .wrap { gap: 20px; }

/* Round 5b: problem-first hero, solution section, phone app mock */
.hero-pain h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 0.98; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tile { display: grid; gap: 2px; padding: 12px 10px; border-radius: 8px; background: var(--term-bg); color: var(--term-fg); font-family: var(--mono); font-size: 12px; min-width: 0; }
.tile b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.tile span { color: var(--term-muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.idle span { color: var(--wait); }
.tile.ask span { color: var(--term-fg); }
.tile.ask { box-shadow: inset 0 0 0 1px var(--term-muted); }
.tile.you { background: var(--accent); color: var(--btn-fg); }
.tile.you span { color: var(--btn-fg); opacity: 0.85; }
@media (max-width: 420px) { .tiles { gap: 6px; } .tile { padding: 10px 7px; font-size: 11px; } .tile span { font-size: 10px; } }
.solution .hero-grid { align-items: center; }
.hero-h { font-size: clamp(36px, 5vw, 64px); font-weight: 600; letter-spacing: -0.04em; line-height: 0.98; }

/* Phone app mock (generic agent app; no brand marks) */
:root { --wait: #b4610f; --ph-bezel: #16181c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --wait: #f0a35f; --ph-bezel: #2a2e35; } }
:root[data-theme="dark"] { --wait: #f0a35f; --ph-bezel: #2a2e35; }
.pane-wait, .note-card time { color: var(--wait); }
.phone-wrap { display: grid; justify-items: center; }
.ph { width: min(100%, 330px); background: var(--surface); border: 9px solid var(--ph-bezel); border-radius: 42px; overflow: hidden; box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.4); display: grid; grid-template-rows: auto auto 1fr; height: 600px; }
.ph-status { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 10px 22px 4px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ph-status span:last-child { justify-self: end; font-size: 11px; }
.ph-notch { width: 84px; height: 22px; border-radius: 12px; background: var(--ph-bezel); }
.ph-head { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 18px 10px; border-bottom: 1px solid var(--line); }
.ph-head b { font-size: 24px; letter-spacing: -0.03em; }
.ph-head span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ph-head-chat { display: grid; grid-template-columns: 20px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 6px; align-items: center; }
.ph-head-chat .ph-back { grid-row: 1 / 3; font-size: 26px; line-height: 1; color: var(--muted); font-family: var(--body); }
.ph-head-chat b { font-size: 16px; letter-spacing: -0.01em; }
.ph-head-chat span:last-child { font-family: var(--body); font-size: 12px; }
.ph-list { overflow: hidden; min-height: 0; mask-image: linear-gradient(180deg, #000 82%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); }
.pr { padding: 11px 18px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.pr-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.pr-top b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-top time { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pr-top time.pr-idle { color: var(--wait); }
.pr-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.pr-flag { font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 1px 8px; }
.pr-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pr p { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-more { padding: 12px 18px; font-size: 13px; color: var(--muted); font-weight: 600; }
.ph-chat { overflow: hidden; min-height: 0; padding: 14px 14px 16px; display: grid; gap: 12px; align-content: start; font-size: 13.5px; line-height: 1.45; }
.m-you { justify-self: end; background: var(--panel); border-radius: 18px; padding: 8px 14px; max-width: 85%; }
.m-agent { display: grid; gap: 5px; }
.m-h { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.m-ctx { color: var(--muted); font-size: 12.5px; }
.m-src { font-family: var(--mono); font-size: 10.5px; color: var(--muted); overflow-wrap: anywhere; }
.m-opts { font-size: 12.5px; }
.m-opts em { font-style: normal; color: var(--accent); }
.m-agent .ok { font-size: 12.5px; }
@media (max-width: 420px) { .ph { height: 560px; border-width: 7px; border-radius: 36px; } }
/* Phone height follows content; the session list caps and fades so it reads as continuing. */
.ph, .ph[class] { height: auto; }
.ph-list { max-height: 540px; }
.ph-chat { overflow: visible; }
.tile span { white-space: normal; }
@media (max-width: 420px) { .ph { height: auto; } .ph-list { max-height: 500px; } }
.ph { grid-template-rows: auto auto minmax(0, 1fr) auto; } .pr-more { border-top: 1px solid var(--line); }

/* Hero: six agent sessions in one terminal */
.tmux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tmux .pane { border-right: 1px solid var(--term-line); min-width: 0; }
.tmux .pane:nth-child(2n) { border-right: 0; }
.tmux .pane:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 480px) { .tmux { grid-template-columns: minmax(0, 1fr); } .tmux .pane { border-right: 0; border-bottom: 1px solid var(--term-line); } .tmux .pane:last-child { border-bottom: 0; } }

/* What you install */
.files { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.files > div { display: grid; gap: 6px; padding: 20px 24px 20px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.files dt { font-weight: 600; font-size: 15px; }
.files dd { margin: 0; color: var(--muted); font-size: 15.5px; }
.files code, .faq code { font-family: var(--mono); font-size: 0.92em; }
@media (max-width: 760px) { .files { grid-template-columns: minmax(0, 1fr); } .files > div { padding-right: 0; } }

/* Pricing: the primer path, then four plans */
.primer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3vw, 30px); margin-bottom: 16px; }
.primer > div { display: grid; gap: 8px; }
.primer h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
@media (max-width: 720px) { .primer { grid-template-columns: minmax(0, 1fr); } }
.plans4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .plans4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plans4 { grid-template-columns: minmax(0, 1fr); } }
.price .amt-soon { font-size: clamp(28px, 3vw, 34px); }
.plan.hosted .wl-inline { min-width: 0; align-self: end; }

/* Hero sessions on a phone: two columns, names and status only */
@media (max-width: 480px) {
  .tmux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tmux .pane { padding: 10px 12px; border-right: 1px solid var(--term-line); border-bottom: 1px solid var(--term-line); }
  .tmux .pane:nth-child(2n) { border-right: 0; }
  .tmux .pane:nth-last-child(-n+2) { border-bottom: 0; }
  .tmux .pane .t-muted { display: none; }
  .tmux .pane-h { display: grid; gap: 2px; }
  .tmux .pane-wait { margin-left: 0; }
}

/* Every app (GUI) example is light, in both page themes. Terminal (TUI) examples stay dark. */
.ph, .cw, .record {
  --bg: #fafafa; --surface: #ffffff; --panel: #eef1f0; --fg: #0d0f12; --muted: #5a606a; --faint: #8a9099;
  --line: #e2e4e7; --accent: #0b7a57; --accent-soft: #e2f1ea; --wait: #b4610f;
  color: var(--fg); color-scheme: light;
}
.ph { background: #ffffff; }
.cw, .record { background: #ffffff; }
.pane-st { color: var(--term-muted); margin-left: 8px; }
@media (max-width: 480px) { .tmux .pane-st { margin-left: 0; } }

/* Examples follow the device theme: terminal in dark mode, the desktop or phone app in light mode. */
.tui { display: var(--show-tui); }
.gui { display: var(--show-gui); }
.app .cw-bar { justify-content: flex-start; }
.app-count { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.app-body { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); min-height: 360px; }
.app-side { border-right: 1px solid var(--line); background: var(--bg); min-width: 0; }
.app-side .pr { padding: 9px 14px; }
.app-side .pr-top b { font-size: 13.5px; }
.app-side .pr p { font-size: 12px; }
.pr-sel { background: var(--panel); }
.pr-work { font-size: 11px; color: var(--muted); }
.pr-flag.pr-wait { color: var(--wait); background: transparent; padding: 0; }
.app-main { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; padding: 14px 16px; min-width: 0; }
.app-head { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.app-head b { font-size: 14px; }
.app-head span { font-size: 12px; color: var(--wait); }
.app-main .bub { align-self: start; }
.app-input { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 13px; color: var(--faint); }
@media (max-width: 560px) {
  .app-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app-main { display: none; }
  .app-side { border-right: 0; }
}

/* Hosted page */
.plan-more { font-size: 14px; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.tool-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-list span { font-family: var(--mono); font-size: 13px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.files.day dt { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.files.day dd { margin: 0; color: var(--muted); }
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.cmp th, .cmp td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp th { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cmp tr:last-child td { border-bottom: 0; }
.cmp td:first-child { font-weight: 600; }
.cmp td { color: var(--muted); }
.cmp td:first-child { color: var(--fg); }
@media (max-width: 760px) { .layers { grid-template-columns: minmax(0, 1fr); } .files { grid-template-columns: minmax(0, 1fr); } }

/* Platform band in pricing, and the four pieces */
.platform-band { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 48px; align-items: center; background: var(--surface); border: 1px solid var(--fg); border-radius: 14px; padding: clamp(22px, 3.4vw, 36px); }
.platform-band > div { display: grid; gap: 12px; }
.platform-band h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.platform-band ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: 15.5px; }
.platform-band li { padding-left: 20px; position: relative; }
.platform-band li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 2px; background: var(--accent); }
.plans-group { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 40px 0 14px; }
.layers4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .platform-band, .layers4 { grid-template-columns: minmax(0, 1fr); } }

/* Decision cards in the phone mock */
.m-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; }
.m-q { font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.m-q span { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.m-opt { display: flex; gap: 10px; align-items: baseline; font-size: 12.5px; padding: 6px 9px; border-radius: 8px; background: var(--panel); }
.m-opt b { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted); }
.m-opt em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--accent); }
