/* tm8 public site, v7.
   Built from the Help plates and docs/GETTING-STARTED.md with the product's own tokens and
   nouns. Real screens and real command output carry the proof; the drawings explain. Phone first. */

:root {
  --bg: #FFFFFF; --bg-2: #F5F4F1; --bg-3: #ECEAE5; --card: #FFFFFF;
  --line: #E4E2DD; --line-2: #D3D0C8; --grid: #DDDAD3;
  --ink: #0F0E0C; --ink-2: #4A4741; --ink-3: #6B675E; --ink-4: #B0ACA3;
  --brand: #B5621F; --brand-2: #96501A; --brand-soft: #F8EBDD;
  --peach: #FBEADB; --mint: #E4F3E9; --lilac: #ECE7F8; --sky: #E4EEF8; --butter: #FBF2D7;
  --run: #187045; --run-soft: rgba(31, 138, 84, 0.12); --block: #B33D2A; --block-soft: rgba(192, 67, 47, 0.10); --info: #2F6FEB; --mate: #6B4FD6; --info-soft: rgba(47, 111, 235, 0.11); --mate-soft: rgba(107, 79, 214, 0.11); --mesh-fade: linear-gradient(90deg, rgba(255,255,255,0.97) 0, rgba(255,255,255,0.90) 30%, rgba(255,255,255,0) 58%);
  --c-mara: #2F6FEB; --c-theo: #8B4FE8; --c-juniper: #0AA86C; --c-callisto: #F2711C; --c-keeper: #8A8478;
  --dark: #0B0B0A; --dark-2: #151412; --dark-line: #2A2925; --dark-ink: #F2EFE9; --dark-dim: #9A958B;
  --code-bg: #141311; --code-ink: #E7E2D8; --code-dim: #8C877D; --code-accent: #E0A45A; --code-run: #6FD39A;
  --sh-frame: 0 1px 2px rgba(15, 14, 12, 0.06), 0 30px 70px rgba(15, 14, 12, 0.14);
  --sh-card: 0 1px 2px rgba(15, 14, 12, 0.05), 0 10px 28px rgba(15, 14, 12, 0.08);
  /* The product's own two faces, self-hosted from its own files — see assets/fonts/fonts.css.
     The bronze mark and the explainer tints stay: the site reads as the same family as the app
     without going grey. */
  --ui: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --column: 1160px; --r: 18px; --r-lg: 24px; --sec: 96px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F0F0E; --bg-2: #171614; --bg-3: #21201D; --card: #171614; --line: #2A2926; --line-2: #383632; --grid: #2E2C28;
    --ink: #F2EFE9; --ink-2: #C6C1B8; --ink-3: #8F8A81; --ink-4: #5B5850;
    --brand: #E0A45A; --brand-2: #C98A3E; --brand-soft: #3A2A1C;
    --peach: #3A2A1C; --mint: #1B3126; --lilac: #2A2438; --sky: #1E2A36; --butter: #35301E;
    --run: #5CB381; --run-soft: rgba(92, 179, 129, 0.17); --block: #DA7D6A; --block-soft: rgba(218, 125, 106, 0.16); --info: #6F9FF0; --mate: #A99BF2; --info-soft: rgba(111, 159, 240, 0.17); --mate-soft: rgba(169, 155, 242, 0.17); --mesh-fade: linear-gradient(90deg, rgba(15,15,14,0.97) 0, rgba(15,15,14,0.90) 30%, rgba(15,15,14,0) 58%);
    --sh-frame: 0 1px 2px rgba(0, 0, 0, 0.4), 0 30px 70px rgba(0, 0, 0, 0.5);
    --sh-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F0F0E; --bg-2: #171614; --bg-3: #21201D; --card: #171614; --line: #2A2926; --line-2: #383632; --grid: #2E2C28;
  --ink: #F2EFE9; --ink-2: #C6C1B8; --ink-3: #8F8A81; --ink-4: #5B5850;
  --brand: #E0A45A; --brand-2: #C98A3E; --brand-soft: #3A2A1C;
  --peach: #3A2A1C; --mint: #1B3126; --lilac: #2A2438; --sky: #1E2A36; --butter: #35301E;
  --run: #5CB381; --run-soft: rgba(92, 179, 129, 0.17); --block: #DA7D6A; --block-soft: rgba(218, 125, 106, 0.16); --info: #6F9FF0; --mate: #A99BF2; --info-soft: rgba(111, 159, 240, 0.17); --mate-soft: rgba(169, 155, 242, 0.17); --mesh-fade: linear-gradient(90deg, rgba(15,15,14,0.97) 0, rgba(15,15,14,0.90) 30%, rgba(15,15,14,0) 58%);
  --sh-frame: 0 1px 2px rgba(0, 0, 0, 0.4), 0 30px 70px rgba(0, 0, 0, 0.5);
  --sh-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--ui); overflow-x: clip; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--bg-2); border: 1px solid var(--line); padding: 0.05em 0.35em; border-radius: 5px; }
svg { display: block; }
img, video, canvas { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--card); border: 1px solid var(--brand); padding: 8px 12px; z-index: 60; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--column), calc(100% - 40px)); margin: 0 auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 999px; padding: 13px 22px; background: var(--card); color: var(--ink); font: 500 15.5px var(--ui); cursor: pointer; text-decoration: none; transition: background 140ms, border-color 140ms, color 140ms, transform 140ms; min-height: 48px; }
.btn:hover { background: var(--bg-2); border-color: var(--ink-3); color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { background: #2A2823; border-color: #2A2823; color: #FFFFFF; }
.btn.sm { padding: 8px 14px; font-size: 13.5px; min-height: 0; }
.btn .arr { font-family: var(--mono); }

/* illustrated cast */
.face { width: 28px; height: 28px; flex-shrink: 0; }
.face.xs { width: 20px; height: 20px; }
.face.sm { width: 24px; height: 24px; }
.face.md { width: 32px; height: 32px; }
.face.lg { width: 60px; height: 60px; }

/* ---------- nav ---------- */
.mast { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.mast .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: baseline; gap: 0.06em; color: var(--brand); text-decoration: none; font: 500 24px var(--mono); letter-spacing: -0.01em; }
.brand svg { height: 0.93em; width: calc(0.93em * 360 / 520); position: relative; top: 0.066em; color: var(--brand); }
.nav { display: flex; align-items: center; gap: 22px; margin-left: 6px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav-r { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-r a.plain { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav-r .btn { padding: 10px 18px; min-height: 0; font-size: 14.5px; }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; font: 500 14px var(--ui); border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 14px; color: var(--ink); background: var(--card); }
.menu summary::-webkit-details-marker { display: none; }
.menu .sheet { position: fixed; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 18px; display: grid; gap: 2px; z-index: 55; }
.menu .sheet a { padding: 13px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; font-size: 16px; }
.menu .sheet a:last-child { border-bottom: 0; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 0; }
.hero-c { text-align: center; max-width: 900px; margin: 0 auto; display: grid; justify-items: center; }
.hero-c .ribbon-wrap canvas { width: 92px; cursor: pointer; color: var(--brand); }
.hero-c h1 { margin-top: 22px; max-width: 16ch; }
.hero-c .lede { max-width: 58ch; margin: 20px auto 0; }
.hero-c .actions { justify-content: center; }
.shot { margin: 0; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: var(--sh-frame); }
.shot .bar { height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.shot .bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.shot .bar b { margin-left: 10px; font: 500 12px var(--mono); color: var(--ink-3); letter-spacing: 0.02em; }
.shot img { display: block; width: 100%; height: auto; }
.hero-shot { margin: 48px auto 0; }
.story { padding-top: var(--sec); }
.story .frame-wrap { margin-top: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; }
.hero h1 { font: 600 clamp(42px, 6.4vw, 84px)/1 var(--ui); letter-spacing: -0.045em; max-width: 14ch; }
.hero .lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; color: var(--ink-2); max-width: 40ch; margin-top: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; align-items: center; }
.ribbon-wrap { display: grid; place-items: center; }
.ribbon-wrap canvas { width: min(300px, 70vw); color: var(--brand); cursor: pointer; }
.cast { display: flex; margin: 0 0 22px; }
.cast .face { width: 44px; height: 44px; margin-left: -10px; }
.cast .face:first-child { margin-left: 0; }
.runs-with { margin-top: 22px; font-size: 14px; color: var(--ink-3); }

/* the story frame */
.frame-wrap { margin: 32px auto 0; position: relative; }
.frame { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--sh-frame); overflow: hidden; text-align: left; font-size: 14px; position: relative; }
.frame.ws { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); grid-template-rows: auto 1fr; align-content: start; min-height: 520px; }
.topbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: 13px; color: var(--ink-3); }
.topbar .space { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.topbar .space .sq { width: 20px; height: 20px; border-radius: 6px; background: var(--brand); color: #fff; display: grid; place-items: center; font: 600 10px var(--mono); }
.topbar .crumb { color: var(--ink-3); }
.topbar .here { margin-left: auto; display: flex; }
.topbar .here .face { margin-left: -6px; }
.task { padding: 20px 22px 18px; display: flex; flex-direction: column; gap: 16px; min-width: 0; border-right: 1px solid var(--line); }
.task-head h3 { font: 600 22px/1.2 var(--ui); letter-spacing: -0.025em; }
.task-head .meta { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; font: 500 12px var(--mono); color: var(--ink-3); }
.task-head .meta .v { color: var(--brand-2); }
.task-head .meta .who { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-family: var(--ui); font-size: 13.5px; }
.task-head .acts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.task-head .acts .btn { padding: 8px 14px; font-size: 13.5px; min-height: 0; }
.task-head .acts .btn.pressed { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-2); }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 11px; font: 500 12px var(--mono); letter-spacing: 0.01em; border: 1px solid var(--line-2); color: var(--ink-2); background: transparent; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.pill.run { color: var(--run); } .pill.run::before { background: currentColor; }
.pill.review { color: var(--brand); }
.pill.done { color: var(--run); border-color: var(--run); background: var(--run-soft); } .pill.done::before { background: currentColor; }
.pr { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 7px; padding: 4px 10px; font: 500 11.5px var(--mono); color: var(--ink-2); }
.pr svg { width: 14px; height: 14px; }
.pr.green { border-color: var(--run); color: var(--run); background: var(--run-soft); }
.thread { display: grid; gap: 14px; align-content: start; }
.msg { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.msg .by { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; color: var(--ink-3); margin-bottom: 5px; }
.msg .by b { color: var(--ink); font-weight: 600; }
.msg.human .by b { color: var(--info); }
.msg.agent .by b { color: var(--mate); }
.msg .by .t { font-family: var(--mono); font-size: 11px; }
.msg .body { font-size: 15px; line-height: 1.45; }
.msg.human .body { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; background: var(--bg-2); display: inline-block; }
.sys { font: 500 11.5px/1.5 var(--mono); color: var(--ink-3); padding-left: 44px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.sys .k { color: var(--brand-2); }
.composer { margin-top: auto; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); padding: 12px 16px; display: flex; align-items: center; gap: 10px; min-height: 46px; color: var(--ink-3); font-size: 14px; }
.composer .typed { color: var(--ink); white-space: pre; }
.composer.typing .ph { display: none; }
.composer .caret { width: 1px; height: 18px; background: var(--brand); opacity: 0; }
.composer.typing .caret { opacity: 1; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term { display: flex; flex-direction: column; min-width: 0; background: var(--card); }
.strip { height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); font: 500 12px var(--mono); color: var(--ink-3); }
.strip b { font: 600 14px var(--ui); color: var(--ink); }
.strip .tag { margin-left: auto; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 9px; font-size: 10px; letter-spacing: 0.08em; }
.strip .live { width: 8px; height: 8px; border-radius: 50%; background: var(--run); animation: pulse 1.6s ease-in-out infinite; }
.strip .idle { color: var(--ink-3); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.canvas { flex: 1; background: var(--code-bg); color: var(--code-ink); padding: 16px 18px; font: 400 13.5px/1.7 var(--mono); overflow: hidden; white-space: pre-wrap; word-break: break-word; min-height: 220px; }
.canvas .l { opacity: 0; transform: translateY(3px); transition: opacity 280ms, transform 280ms; display: block; }
.canvas .l.on { opacity: 1; transform: none; }
.canvas .p { color: var(--code-accent); }
.canvas .d { color: var(--code-dim); }
.canvas .ok { color: var(--code-run); }
.canvas .in { color: #F3EDE0; }
.canvas .empty { color: var(--code-dim); }
.ws .fr { display: none; }
.ws .fr.on { display: grid; }
.ws .sys.fr.on { display: flex; }
.ws .pr.fr.on { display: inline-flex; }
.subs { display: none; }
.scene-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.scene-bar .cap { font-size: 15px; color: var(--ink-2); flex: 1 1 300px; min-height: 1.4em; }
html.video-mode .mast, html.video-mode .scene-bar, html.video-mode .hero > .wrap > :not(.frame-wrap), html.video-mode .section, html.video-mode .dark, html.video-mode .band, html.video-mode .foot, html.video-mode .tools, html.video-mode .marquee { display: none !important; }
html.video-mode .hero { padding: 24px 0 0; } html.video-mode .hero::before { display: none; }
html.video-mode .frame-wrap { margin: 0 auto; }
html.video-mode .subs { display: block; position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 6; max-width: 86%; background: rgba(15, 14, 12, 0.9); color: #fff; font: 500 18px/1.35 var(--ui); padding: 12px 18px; border-radius: 12px; text-align: center; opacity: 0; transition: opacity 240ms; }
html.video-mode .subs.on { opacity: 1; }

/* ---------- sections ---------- */
.section { padding: var(--sec) 0; }
.section h2 { font: 600 clamp(34px, 4vw, 52px)/1.06 var(--ui); letter-spacing: -0.04em; max-width: 20ch; }
.section .sub { font-size: clamp(16px, 1.3vw, 18px); color: var(--ink-2); max-width: 48ch; margin-top: 14px; }
.head { margin-bottom: 40px; }
.head.center { text-align: center; }
.head.center h2, .head.center .sub { margin-left: auto; margin-right: auto; }

/* ---------- the black section: the terminal ---------- */
.dark { background: var(--dark); color: var(--dark-ink); padding: var(--sec) 0; position: relative; overflow: hidden; }
.dark + .dark { padding-top: 0; }
.dark h2 { color: var(--dark-ink); font: 600 clamp(34px, 4vw, 52px)/1.06 var(--ui); letter-spacing: -0.04em; max-width: 20ch; }
.dark .sub { color: var(--dark-dim); font-size: clamp(16px, 1.3vw, 18px); max-width: 48ch; margin-top: 14px; }
.dark .head { text-align: center; margin-bottom: 40px; }
.dark .head h2, .dark .head .sub { margin-left: auto; margin-right: auto; }
.darkterm { max-width: 760px; margin: 0 auto; border: 1px solid var(--dark-line); border-radius: var(--r-lg); overflow: hidden; background: var(--dark-2); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); }
.darkterm .strip { border-color: var(--dark-line); color: var(--dark-dim); background: #1B1A17; }
.darkterm .strip b { color: var(--dark-ink); }
.dark .k-member { color: #6F9FF0; } .dark .k-mate { color: #A99BF2; } .dark .k-task { color: #E0A45A; } .dark .k-run { color: #5CB381; }
.darkterm .canvas .p.k-task { color: #E0A45A; } .darkterm .canvas .p.k-run { color: #5CB381; } .darkterm .canvas .p.k-member { color: #6F9FF0; } .darkterm .canvas .p.k-mate { color: #A99BF2; }
.darkterm .strip .tag { border-color: var(--dark-line); }
.darkterm .canvas { background: var(--dark-2); min-height: 236px; font-size: clamp(12.5px, 1.3vw, 14.5px); padding: 20px 22px; }
.darkterm .canvas .l { opacity: 1; transform: none; }
.darkterm .canvas * { animation-play-state: paused; }
.darkterm.play .canvas * { animation-play-state: running; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 900px; margin: 28px auto 0; }
.facts div { border: 1px solid var(--dark-line); border-radius: 12px; padding: 14px 16px; background: rgba(255, 255, 255, 0.02); }
.facts code { display: block; background: none; border: 0; padding: 0; color: var(--code-accent); font-size: 12.5px; margin-bottom: 4px; }
.facts span { font-size: 13.5px; color: var(--dark-dim); }
.t2 .ln { display: block; clip-path: inset(0 100% 0 0); }
.t2 .ln1 { animation: t2l1 10s steps(30, end) 1 forwards; }
.t2 .ln2 { animation: t2l2 10s steps(30, end) 1 forwards; }
.t2 .ln3 { animation: t2l3 10s steps(30, end) 1 forwards; }
.t2 .ln4 { animation: t2l4 10s steps(30, end) 1 forwards; }
.t2 .ln5 { animation: t2l5 10s steps(30, end) 1 forwards; }
.t2 .ln6 { animation: t2l6 10s steps(30, end) 1 forwards; }
@keyframes t2l1 { 0%, 4% { clip-path: inset(0 100% 0 0); } 12%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes t2l2 { 0%, 16% { clip-path: inset(0 100% 0 0); } 26%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes t2l3 { 0%, 30% { clip-path: inset(0 100% 0 0); } 38%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes t2l4 { 0%, 42% { clip-path: inset(0 100% 0 0); } 52%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes t2l5 { 0%, 58% { clip-path: inset(0 100% 0 0); } 66%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes t2l6 { 0%, 72% { clip-path: inset(0 100% 0 0); } 80%, 100% { clip-path: inset(0 0 0 0); } }
.t2 .caret { display: inline-block; width: 8px; height: 15px; background: var(--code-accent); vertical-align: -2px; animation: blink 0.9s steps(2) infinite; }

/* ---------- explainers ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tile { min-width: 0; display: grid; grid-template-rows: auto 1fr; align-content: start; }
.tile.wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: none; }
.tile.wide .stage { aspect-ratio: auto; min-height: 280px; }
.tile.wide .txt { align-self: center; padding: 8px 8px 8px 36px; }
.tile.wide h3 { font-size: 28px; }
.tile.wide p { font-size: 17px; }
.tile .stage { position: relative; aspect-ratio: 16 / 10; background: var(--tint, var(--bg-2)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: grid; place-items: center; padding: 6%; }
.tile .txt { padding: 18px 6px 6px; display: grid; gap: 6px; align-content: start; }
.tile h3 { font: 600 22px/1.2 var(--ui); letter-spacing: -0.025em; }
.tile p { color: var(--ink-2); font-size: 16px; max-width: 40ch; }
.tile .stage * { animation-play-state: paused; }
.tile.play .stage * { animation-play-state: running; }
.bigcard { width: 100%; max-width: 520px; background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 18px 20px; box-shadow: var(--sh-card); display: grid; gap: 12px; position: relative; }
.bigcard .t { font-size: clamp(16px, 1.6vw, 20px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.bigcard .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 500 12.5px var(--mono); color: var(--ink-3); min-height: 30px; }
.bigcard .pillstack { position: relative; display: inline-grid; }
.bigcard .pillstack > * { grid-area: 1 / 1; }
.bigcard .chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px 4px 4px; background: var(--card); font: 500 13.5px var(--ui); color: var(--ink); white-space: nowrap; }
.bigcard .chip small { color: var(--ink-3); font-family: var(--mono); font-size: 11px; }
.stage .term { width: 100%; max-width: 520px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--sh-card); }
.stage .term .canvas { min-height: 0; font-size: clamp(12px, 1.2vw, 13.5px); padding: 14px 16px; }
.stage .term .canvas .l { opacity: 1; transform: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font: 500 11px var(--mono); letter-spacing: 0.02em; white-space: nowrap; }
.tag.red { background: var(--block-soft); color: var(--block); }
.tag.green { background: var(--run-soft); color: var(--run); }
.tag.gray { background: var(--bg-3); color: var(--ink-2); }

.t1 .slot { position: relative; display: inline-block; min-width: 190px; height: 32px; }
.t1 .agent { position: absolute; left: 0; top: 0; animation: t1agent 8s cubic-bezier(.2,.8,.2,1) 1 forwards; }
@keyframes t1agent { 0%, 16% { transform: translateX(180%); opacity: 0; } 30%, 100% { transform: translateX(0); opacity: 1; } }
.t1 .p-open { animation: t1a 8s 1 forwards; } .t1 .p-work { animation: t1b 8s 1 forwards; }
@keyframes t1a { 0%, 28% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes t1b { 0%, 28% { opacity: 0; } 32%, 100% { opacity: 1; } }
.t1 .v1 { animation: t1a 8s 1 forwards; } .t1 .v2 { animation: t1b 8s 1 forwards; }
.t1 .press { animation: t1press 8s 1 forwards; }
.t1 .press2 { opacity: 0; animation: t1press2 8s 1 forwards; }
@keyframes t1press2 { 0%, 12% { opacity: 0; background: var(--card); color: var(--ink); border-color: var(--line-2); } 16%, 24% { opacity: 1; background: var(--card); color: var(--ink); border-color: var(--line-2); } 26%, 32% { opacity: 1; background: var(--ink); color: var(--bg); border-color: var(--ink); } 36%, 100% { opacity: 1; background: var(--card); color: var(--ink); border-color: var(--line-2); } }
@keyframes t1press { 0%, 8% { background: var(--card); color: var(--ink); border-color: var(--line-2); } 12%, 24% { background: var(--brand-soft); color: var(--brand-2); border-color: var(--brand); } 30%, 100% { background: var(--card); color: var(--ink); border-color: var(--line-2); } }
.t1 .livewrap { animation: t1b 8s 1 forwards; }
.t1 .livewrap i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--run); animation: pulse 1.6s ease-in-out infinite; }

.t3 .two { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.t3 .bubble { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; opacity: 0; transform: translateY(-14px); }
.t3 .bubble .body { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; background: var(--card); font-size: 14.5px; box-shadow: var(--sh-card); }
.t3 .b1 { animation: t3in 9s cubic-bezier(.2,.8,.2,1) 1 forwards; }
@keyframes t3in { 0%, 8% { opacity: 0; transform: translateY(-14px); } 16%, 100% { opacity: 1; transform: none; } }
.t3 .b2 { animation: t3in2 9s cubic-bezier(.2,.8,.2,1) 1 forwards; }
@keyframes t3in2 { 0%, 76% { opacity: 0; transform: translateY(-14px); } 84%, 100% { opacity: 1; transform: none; } }
.t3 .lbl { justify-self: center; opacity: 0; animation: t3lbl 9s 1 forwards; }
@keyframes t3lbl { 0%, 24% { opacity: 0; } 30%, 100% { opacity: 1; } }
.t3 .ln { display: block; clip-path: inset(0 100% 0 0); }
.t3 .ln1 { animation: t3l1 9s steps(28, end) 1 forwards; }
.t3 .ln2 { animation: t3l2 9s steps(28, end) 1 forwards; }
.t3 .ln3 { animation: t3l3 9s steps(28, end) 1 forwards; }
@keyframes t3l1 { 0%, 34% { clip-path: inset(0 100% 0 0); } 44%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes t3l2 { 0%, 46% { clip-path: inset(0 100% 0 0); } 54%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes t3l3 { 0%, 60% { clip-path: inset(0 100% 0 0); } 72%, 100% { clip-path: inset(0 0 0 0); } }

.t4 .attempts { display: grid; min-height: 34px; }
.t4 .attempt { grid-area: 1 / 1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; opacity: 0; font: 500 12.5px var(--mono); color: var(--ink-2); }
.t4 .attempt .tag { white-space: normal; text-align: left; }
.t4 .a1 { animation: t4a1 11s 1 forwards; } .t4 .a2 { animation: t4a2 11s 1 forwards; } .t4 .a3 { animation: t4a3 11s 1 forwards; }
@keyframes t4a1 { 0%, 4% { opacity: 0; } 8%, 28% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes t4a2 { 0%, 34% { opacity: 0; } 38%, 58% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes t4a3 { 0%, 64% { opacity: 0; } 68%, 100% { opacity: 1; } }
.t4 .tag.red { opacity: 0; }
.t4 .r1 { animation: t4r1 11s 1 forwards; } .t4 .r2 { animation: t4r2 11s 1 forwards; }
@keyframes t4r1 { 0%, 12% { opacity: 0; } 15%, 28% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes t4r2 { 0%, 42% { opacity: 0; } 45%, 58% { opacity: 1; } 62%, 100% { opacity: 0; } }
.t4 .p-rev { animation: t4prev 11s 1 forwards; } .t4 .p-done { animation: t4pdone 11s 1 forwards; }
@keyframes t4prev { 0%, 70% { opacity: 1; } 74%, 100% { opacity: 0; } }
@keyframes t4pdone { 0%, 70% { opacity: 0; } 74%, 100% { opacity: 1; } }
.t4 .v3 { animation: t4prev 11s 1 forwards; } .t4 .v4 { animation: t4pdone 11s 1 forwards; }
.t4 .check { position: absolute; right: 16px; top: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--run); color: #fff; display: grid; place-items: center; transform: scale(0); animation: t4check 11s cubic-bezier(.2,.8,.2,1) 1 forwards; }
.t4 .check svg { width: 22px; height: 22px; }
@keyframes t4check { 0%, 70% { transform: scale(0); } 76%, 100% { transform: scale(1); } }
.t4 .by { opacity: 0; animation: t4pdone 11s 1 forwards; display: inline-flex; align-items: center; gap: 6px; }

.t5 svg { width: 100%; height: auto; max-width: 560px; }
.t5 .n { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(0.7); }
.t5 .n rect { fill: var(--card); stroke: var(--line-2); }
.t5 .n text { font: 600 13px var(--ui); fill: var(--ink); }
.t5 .n .k { font: 500 9.5px var(--mono); fill: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }
.t5 .n.live rect { stroke: var(--run); }
.t5 .e { stroke: var(--brand); stroke-width: 1.6; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; }
.t5 .el { font: 500 9.5px var(--mono); fill: var(--ink-3); opacity: 0; }
.t5 .n1 { animation: t5n 10s cubic-bezier(.2,.8,.2,1) 1 forwards; }
.t5 .n2 { animation: t5n 10s cubic-bezier(.2,.8,.2,1) 1 forwards 1.8s; }
.t5 .n3 { animation: t5n 10s cubic-bezier(.2,.8,.2,1) 1 forwards 3.6s; }
.t5 .n4 { animation: t5n 10s cubic-bezier(.2,.8,.2,1) 1 forwards 5.4s; }
.t5 .n5 { animation: t5n 10s cubic-bezier(.2,.8,.2,1) 1 forwards 7.2s; }
@keyframes t5n { 0%, 4% { opacity: 0; transform: scale(0.7); } 10%, 100% { opacity: 1; transform: scale(1); } }
.t5 .e1 { animation: t5e 10s ease-out 1 forwards 2.4s; } .t5 .e2 { animation: t5e 10s ease-out 1 forwards 4.2s; } .t5 .e3 { animation: t5e 10s ease-out 1 forwards 6s; } .t5 .e4 { animation: t5e 10s ease-out 1 forwards 7.8s; }
@keyframes t5e { 0% { stroke-dashoffset: 1; } 8%, 100% { stroke-dashoffset: 0; } }
.t5 .l1 { animation: t5l 10s 1 forwards 2.6s; } .t5 .l2 { animation: t5l 10s 1 forwards 4.4s; } .t5 .l3 { animation: t5l 10s 1 forwards 6.2s; } .t5 .l4 { animation: t5l 10s 1 forwards 8s; }
@keyframes t5l { 0% { opacity: 0; } 6%, 100% { opacity: 1; } }

.t6 svg { width: 100%; height: auto; max-width: 560px; }
.t6 .box { fill: var(--card); stroke: var(--ink); stroke-width: 1.6; }
.t6 .inner { fill: var(--bg-2); stroke: var(--line-2); }
.t6 text { font: 600 12.5px var(--ui); fill: var(--ink); }
.t6 .k { font: 500 10px var(--mono); fill: var(--ink-3); letter-spacing: 0.06em; }
.t6 .dev { opacity: 0; }
.t6 .d1 { animation: t6dev 8s ease-out 1 forwards 1s; } .t6 .d2 { animation: t6dev 8s ease-out 1 forwards 2.4s; }
@keyframes t6dev { 0% { opacity: 0; } 8%, 100% { opacity: 1; } }
.t6 .link { stroke: var(--brand); stroke-width: 1.6; fill: none; stroke-dasharray: 5 6; opacity: 0; }
.t6 .k1 { animation: t6dev 8s ease-out 1 forwards 1.6s; } .t6 .k2 { animation: t6dev 8s ease-out 1 forwards 3s; }
.t6 .lock { opacity: 0; animation: t6dev 8s ease-out 1 forwards 4.4s; }
.t6 .lock rect { fill: var(--run-soft); stroke: var(--run); }
.t6 .lock text { fill: var(--run); font: 500 11px var(--mono); }

.duo { width: 100%; max-width: 560px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: center; }
.duo .term { max-width: none; }
.duo .term .strip { height: 34px; font-size: 11px; }
.duo .term .strip b { font-size: 12.5px; }
.duo .term .canvas { padding: 10px 14px; font-size: clamp(11.5px, 1.1vw, 13px); line-height: 1.5; }
.duo .link { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.duo .link svg { flex: 0 0 72px; width: 72px; height: 24px; }
.duo .link .wire { stroke: var(--brand); stroke-width: 2; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; animation: t7wire 9s ease-out 1 forwards; }
.duo .link .pkt { fill: var(--brand); opacity: 0; animation: t7pkt 9s linear 1 forwards; }
@keyframes t7wire { 0%, 40% { stroke-dashoffset: 1; } 48%, 100% { stroke-dashoffset: 0; } }
@keyframes t7pkt { 0%, 44% { cx: 4; opacity: 0; } 46% { opacity: 1; } 56% { cx: 68; opacity: 1; } 58%, 100% { cx: 68; opacity: 0; } }
.t7 .ln { display: block; clip-path: inset(0 100% 0 0); }
.t7 .ln1 { animation: t7l1 9s steps(24, end) 1 forwards; } .t7 .ln2 { animation: t7l2 9s steps(24, end) 1 forwards; } .t7 .ln3 { animation: t7l3 9s steps(24, end) 1 forwards; } .t7 .ln4 { animation: t7l4 9s steps(24, end) 1 forwards; } .t7 .ln5 { animation: t7l5 9s steps(24, end) 1 forwards; } .t7 .ln6 { animation: t7l6 9s steps(24, end) 1 forwards; } .t7 .ln7 { animation: t7l7 9s steps(24, end) 1 forwards; }
@keyframes t7l1 { 0%, 4% { clip-path: inset(0 100% 0 0); } 12%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes t7l2 { 0%, 14% { clip-path: inset(0 100% 0 0); } 24%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes t7l3 { 0%, 20% { clip-path: inset(0 100% 0 0); } 30%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes t7l4 { 0%, 32% { clip-path: inset(0 100% 0 0); } 42%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes t7l5 { 0%, 58% { clip-path: inset(0 100% 0 0); } 66%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes t7l6 { 0%, 70% { clip-path: inset(0 100% 0 0); } 80%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes t7l7 { 0%, 60% { clip-path: inset(0 100% 0 0); } 66%, 100% { clip-path: inset(0 0 0 0); } }
.t8 svg { width: 100%; height: auto; max-width: 560px; }
.t8 .n { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(0.7); }
.t8 .n rect { fill: var(--card); stroke: var(--line-2); }
.t8 .n.live rect { stroke: var(--run); }
.t8 .n text { font: 600 13px var(--ui); fill: var(--ink); }
.t8 .n .k { font: 500 9.5px var(--mono); fill: var(--ink-3); letter-spacing: 0.04em; }
.t8 .e { stroke: var(--brand); stroke-width: 1.6; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; }
.t8 .wt { fill: var(--brand-soft); stroke: none; opacity: 0; }
.t8 .wtl { fill: var(--brand-2); font: 500 9.5px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0; }
.t8 .n1 { animation: t8n 10s cubic-bezier(.2,.8,.2,1) 1 forwards; }
.t8 .e1, .t8 .e2 { animation: t8e 10s ease-out 1 forwards 1.6s; }
.t8 .w1, .t8 .w2, .t8 .l1, .t8 .l2 { animation: t8f 10s ease-out 1 forwards 2.4s; }
.t8 .n2, .t8 .n3 { animation: t8n 10s cubic-bezier(.2,.8,.2,1) 1 forwards 3.2s; }
.t8 .e3, .t8 .e4 { animation: t8e 10s ease-out 1 forwards 6.2s; }
.t8 .n4 { animation: t8n 10s cubic-bezier(.2,.8,.2,1) 1 forwards 7.2s; }
@keyframes t8n { 0%, 4% { opacity: 0; transform: scale(0.7); } 10%, 100% { opacity: 1; transform: scale(1); } }
@keyframes t8e { 0% { stroke-dashoffset: 1; } 8%, 100% { stroke-dashoffset: 0; } }
@keyframes t8f { 0% { opacity: 0; } 8%, 100% { opacity: 1; } }
.t9 .dsp { animation: t9a 9s 1 forwards; }
@keyframes t9a { 0%, 10% { opacity: 0; } 16%, 100% { opacity: 1; } }
.t9 .route { animation: t9b 9s 1 forwards; } .t9 .arrow { opacity: 0; animation: t9c 9s 1 forwards; } .t9 .picked { opacity: 0; animation: t9d 9s 1 forwards; }
@keyframes t9b { 0%, 20% { opacity: 0; } 28%, 100% { opacity: 1; } }
@keyframes t9c { 0%, 40% { opacity: 0; } 46%, 100% { opacity: 1; } }
@keyframes t9d { 0%, 48% { opacity: 0; transform: translateX(-8px); } 56%, 100% { opacity: 1; transform: none; } }
.t9 .reason { font: 500 12px var(--mono); color: var(--ink-3); opacity: 0; animation: t9e 9s 1 forwards; }
@keyframes t9e { 0%, 62% { opacity: 0; } 70%, 100% { opacity: 1; } }
@media (max-width: 720px) { .bigcard { padding: 14px 16px; gap: 9px; } .t9 .reason { font-size: 11px; } .t7 .stage, .tile.wide.t7 .stage { aspect-ratio: auto; padding: 20px 16px; } }
.tile.wide.t7 .stage { aspect-ratio: auto; min-height: 300px; }

/* recordings of real CLI runs */
.recs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 980px; margin: 0 auto; }
.rec { min-width: 0; background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: var(--r); overflow: hidden; display: grid; grid-template-rows: auto 1fr; color: var(--dark-ink); }
.rec .vframe { border-radius: 0; box-shadow: none; aspect-ratio: 16 / 10; }
.rec .vframe .playbtn { width: 60px; height: 60px; background: #fff; color: #0F0E0C; }
.rec .vframe .playbtn svg { width: 22px; height: 22px; }
.rec .txt { padding: 14px 16px 18px; display: grid; gap: 4px; }
.rec .txt small { font: 500 10.5px var(--mono); color: var(--code-accent); letter-spacing: 0.06em; }
.rec h3 { font: 600 16px/1.3 var(--ui); letter-spacing: -0.015em; color: var(--dark-ink); }
.rec p { font-size: 13.5px; color: var(--dark-dim); }
@media (max-width: 960px) { .recs { grid-template-columns: minmax(0, 1fr); } }

/* ---------- video ---------- */
.vframe { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: var(--sh-frame); aspect-ratio: 16 / 10; }
.vframe video, .vframe img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vframe .playbtn { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; background: var(--ink); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35); transition: transform 160ms; }
.vframe .playbtn:hover { transform: scale(1.06); }
.vframe video:focus-visible { outline-offset: -4px; }
.vframe .playbtn svg { width: 28px; height: 28px; margin-left: 4px; }
.vframe .cap { position: absolute; left: 16px; bottom: 16px; background: rgba(0, 0, 0, 0.55); color: #fff; font: 500 12.5px var(--ui); padding: 6px 12px; border-radius: 999px; }

/* ---------- roster ---------- */
.roster { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.chip { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 16px; background: var(--card); font: 500 15px var(--ui); white-space: nowrap; }
.chip.keeper { padding-left: 6px; }
.chip small { color: var(--ink-3); font-family: var(--mono); font-size: 11.5px; }
.model-groups { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; max-width: 980px; margin: 0 auto; text-align: left; }
.model-group { min-width: 0; border: 1px solid var(--line-2); border-radius: var(--r); padding: 20px; background: var(--card); }
.model-tool { display: flex; align-items: center; gap: 11px; }
.model-tool i { width: 10px; height: 10px; border-radius: 50%; background: var(--mate); box-shadow: 0 0 0 4px var(--mate-soft); flex: none; }
.model-tool h3 { font: 600 18px/1.2 var(--ui); }
.model-tool p { color: var(--ink-3); font: 500 11.5px var(--mono); margin-top: 2px; }
.model-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.model-list li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; color: var(--ink-2); background: var(--bg-2); font-size: 13.5px; white-space: nowrap; }
.keepers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 980px; margin: 12px auto 0; text-align: left; }
.keepers .keeper { display: flex; align-items: center; gap: 10px; min-width: 0; border: 1px dashed var(--mate); border-radius: 14px; padding: 10px 14px 10px 8px; background: var(--mate-soft); color: var(--ink-2); font-size: 13.5px; }
.keepers .keeper b { color: var(--mate); font-weight: 600; }
@media (max-width: 720px) { .model-groups, .keepers { grid-template-columns: minmax(0, 1fr); } .model-group { padding: 17px; } }

/* ---------- install ---------- */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.two > * { min-width: 0; }
.steps { display: grid; gap: 12px; margin-top: 20px; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; color: var(--ink-2); font-size: 15.5px; }
.steps li b { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; font: 500 12.5px var(--mono); color: var(--ink); }
#install .steps li b, #signup .steps li b { background: var(--card); }
.termcard { border: 1px solid var(--dark-line); border-radius: var(--r-lg); overflow: hidden; background: var(--dark-2); box-shadow: var(--sh-frame); color: var(--code-ink); }
.termcard .strip { border-color: var(--dark-line); color: var(--dark-dim); background: var(--code-bg); }
.termcard .strip b { color: var(--dark-ink); }
.termcard .strip .copy { margin-left: auto; border: 0; background: var(--dark-ink); color: var(--dark); font: 500 12px var(--ui); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.termcard .strip .copy[data-state="done"] { background: var(--run); color: var(--dark-ink); }
.termcard .body { padding: 18px 20px 20px; font: 500 13.5px/1.75 var(--mono); white-space: pre-wrap; word-break: break-word; }
.termcard .body .p { color: var(--code-accent); }
.termcard .body .ok { color: var(--code-run); }
.termcard .body .d { color: var(--code-dim); }
.termcard .body code { background: none; border: 0; padding: 0; color: var(--code-ink); font-size: inherit; }

/* ---------- faq ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font: 500 17px/1.35 var(--ui); letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--ink-3); font-weight: 400; font-size: 20px; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 20px; color: var(--ink-2); max-width: 64ch; font-size: 15.5px; }
.faq summary:focus-visible { outline-offset: 6px; }

/* ---------- closing band: the giant pill ---------- */
.band { background: var(--dark); color: var(--dark-ink); padding: var(--sec) 0; text-align: center; }
.band h2 { font: 600 clamp(34px, 4vw, 52px)/1.06 var(--ui); letter-spacing: -0.04em; margin: 0 auto 30px; max-width: 22ch; }
.start-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.giant { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; margin: 0 auto; padding: 24px 30px; border: 1px solid var(--dark-ink); border-radius: 999px; background: var(--dark-ink); color: var(--dark); text-decoration: none; font: 600 clamp(19px, 2vw, 26px)/1.05 var(--ui); letter-spacing: -0.02em; transition: transform 160ms, background 160ms, color 160ms; }
.giant:hover { background: var(--bg-3); color: var(--dark); }
.giant.secondary { background: transparent; color: var(--dark-ink); border-color: var(--dark-line); }
.giant.secondary:hover { background: var(--dark-2); color: var(--dark-ink); border-color: var(--dark-dim); }
.giant .arr { font-family: var(--mono); }
.band .after { margin: 20px auto 0; color: var(--dark-dim); font-size: 14px; max-width: 76ch; }
.band .after a { color: var(--dark-ink); }

/* ---------- footer ---------- */
.foot { padding: 56px 0 44px; background: var(--dark); color: var(--dark-ink); border-top: 1px solid var(--dark-line); }
.foot .grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.foot .bigmark { color: var(--brand); width: 64px; margin-bottom: 14px; }
.foot .q { font-size: 15px; color: var(--dark-dim); max-width: 30ch; line-height: 1.5; }
.foot h3 { font: 500 13px var(--ui); color: var(--dark-dim); margin: 0 0 10px; }
.foot ul { display: grid; gap: 8px; }
.foot ul a { text-decoration: none; color: var(--dark-ink); font-size: 14.5px; }
.foot ul a:hover { color: var(--code-accent); }
.foot .guide { color: var(--dark-dim); font-size: 13.5px; margin-top: 14px; max-width: 24ch; }
.foot .base { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--dark-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--dark-dim); }
.lost { padding: 120px 0; text-align: center; }
.lost h1 { font: 600 clamp(38px, 6vw, 68px)/1.02 var(--ui); letter-spacing: -0.045em; margin: 0 auto 18px; }
.lost p { color: var(--ink-2); max-width: 52ch; margin: 0 auto; font-size: 17px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero h1, .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-c .ribbon-wrap canvas { width: 72px; }
  .actions { justify-content: center; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile.wide { grid-template-columns: minmax(0, 1fr); }
  .tile.wide .stage { aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--line); }
  .tile.wide .txt { padding: 22px 26px 26px; }
  .tile.wide h3 { font-size: 22px; } .tile.wide p { font-size: 15.5px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .foot .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root { --sec: 72px; }
}
@media (max-width: 720px) {
  .nav, .nav-r { display: none; }
  .menu { display: block; }
  .wrap { width: calc(100% - 32px); }
  .hero { padding: 32px 0 0; }
  .hero-shot { margin-top: 32px; }
  .shot .bar { height: 32px; } .shot .bar b { font-size: 11px; }
  .hero h1 { max-width: 11ch; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
  .cast .face { width: 40px; height: 40px; margin-left: -9px; }
  .frame-wrap { margin-top: 28px; }
  .frame.ws { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .task { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 16px; }
  .task-head h3 { font-size: 20px; }
  .canvas { min-height: 140px; font-size: 13px; }
  .darkterm .canvas { min-height: 200px; }
    .topbar .crumb { display: none; }
  .tile .stage, .tile.wide .stage { aspect-ratio: auto; min-height: 240px; padding: 5% 4%; }
  .t3 .stage { padding: 20px 16px; }
  .t5 svg, .t6 svg, .t8 svg { width: 100%; max-width: none; }
  .t6 .txt p { font-size: 14px; }
  .t5 .n text, .t8 .n text { font-size: 14px; } .t5 .n .k, .t8 .n .k, .t5 .el, .t8 .wtl { font-size: 10.5px; }
  .tile .txt { padding: 18px 20px 22px; }
  .tile h3 { font-size: 20px; }
  .t3 .two { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .t3 .lbl { justify-self: start; }
  .start-actions { grid-template-columns: minmax(0, 1fr); }
  .giant { padding: 20px 24px; }
  .foot .grid { grid-template-columns: minmax(0, 1fr); }
  :root { --sec: 56px; }
}

/* ---------- the setup journey: a rail that assembles, six steps that arrive with it ---------- */
.journey { background: var(--bg-2); }
.jtile { margin-top: 8px; }
.jtile .jrail *, .jtile .jstep, .jtile .jstep .jn { animation-play-state: paused; }
.jtile.play .jrail *, .jtile.play .jstep, .jtile.play .jstep .jn { animation-play-state: running; }

.jrail { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
  padding: 20px 16px; margin-bottom: 34px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh-card); }
.jnode { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 13px; background: var(--card);
  font: 500 13px var(--ui); color: var(--ink); }
.jnode small { font: 500 10.5px var(--mono); color: var(--ink-3); letter-spacing: .02em; }
.jdot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; }
.jdot.live { background: var(--run); animation: pulse 1.6s ease-in-out infinite; }
.jwire { width: 46px; height: 10px; flex: none; overflow: visible; }
.jwire path { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 0; }
.jpkt { fill: var(--brand); opacity: 0; }
.jpkt.back { fill: var(--run); }

@keyframes jpop { 0% { opacity: 0; transform: translateY(6px) scale(.96); } 100% { opacity: 1; transform: none; } }
@keyframes jdraw { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
@keyframes jpkt { 0% { opacity: 0; } 100% { opacity: 0; } }

/* Motion is an enhancement. Only a browser that runs scripts starts anything hidden, because only a
   browser that runs scripts adds .play and brings it back. With scripting off the section is already
   in its finished state: six readable cards, a drawn rail, every number lit. The CSP forbids inline
   script, so this is the media query rather than a class on <html>. */
@media (scripting: enabled) {
  .jtile .jnode { opacity: 0; transform: translateY(6px) scale(.96); animation: jpop 11s 1 forwards; }
  .jtile .jwire path { stroke-dashoffset: 1; animation: jdraw 11s 1 forwards; }
  .jtile .jpkt { animation: jpkt 11s 1 forwards; }
  .jtile .jstep { opacity: 0; transform: translateY(10px); animation: jpop .5s 1 forwards; }
  .jtile .jn { background: var(--bg-3); color: var(--ink-3); animation: jlit 11s 1 forwards; }
}

/* the rail timeline: node, wire, node … each holds once it has arrived */
.jtile .n1 { animation-delay: 0s; animation-duration: .5s; }
.jtile .w1 path { animation-duration: .6s; animation-delay: .5s; }
.jtile .n2 { animation-duration: .5s; animation-delay: 1.1s; }
.jtile .w2 path { animation-duration: .6s; animation-delay: 1.6s; }
.jtile .n3 { animation-duration: .5s; animation-delay: 2.2s; }
.jtile .w3 path { animation-duration: .6s; animation-delay: 2.7s; }
.jtile .n4 { animation-duration: .5s; animation-delay: 3.3s; }
.jtile .w4 path { animation-duration: .6s; animation-delay: 3.8s; }
.jtile .n5 { animation-duration: .5s; animation-delay: 4.4s; }
.jtile .w5 path { animation-duration: .7s; animation-delay: 5.4s; }
.jtile .n6 { animation-duration: .5s; animation-delay: 6.1s; }
/* one packet out to the session, one back with the pull request */
.jtile .jtile .w4 .jpkt { animation-name: jride; animation-duration: .8s; animation-delay: 4.0s; animation-timing-function: cubic-bezier(.4,0,.3,1); }
.jtile .jtile .w5 .jpkt { animation-name: jrideback; animation-duration: .9s; animation-delay: 5.5s; animation-timing-function: cubic-bezier(.4,0,.3,1); }
@keyframes jride { 0% { opacity: 0; transform: translateX(2px); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(60px); } }
@keyframes jrideback { 0% { opacity: 0; transform: translateX(60px); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(2px); } }

.jsteps { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* the cards are readable straight away — they arrive in under a second. The rail carries the
   explanation, and each number lights as its node lands on the rail, so the order stays legible. */
.jstep { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; }
.jtile .s1 { animation-delay: .05s; } .s2 { animation-delay: .13s; } .s3 { animation-delay: .21s; }
.jtile .s4 { animation-delay: .29s; } .s5 { animation-delay: .37s; } .s6 { animation-delay: .45s; }
.jn { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-2); font: 600 13px var(--mono); flex: none; }
@keyframes jlit { 0% { background: var(--bg-3); color: var(--ink-3); }
                  100% { background: var(--brand-soft); color: var(--brand-2); } }
.jtile .s1 .jn { animation-duration: .45s; animation-delay: .05s; }
.jtile .s2 .jn { animation-duration: .45s; animation-delay: 1.1s; }
.jtile .s3 .jn { animation-duration: .45s; animation-delay: 2.2s; }
.jtile .s4 .jn { animation-duration: .45s; animation-delay: 3.3s; }
.jtile .s5 .jn { animation-duration: .45s; animation-delay: 4.4s; }
.jtile .s6 .jn { animation-duration: .45s; animation-delay: 6.1s; }
.jbody { display: grid; gap: 10px; min-width: 0; }
.jstep h3 { font: 600 19px/1.25 var(--ui); letter-spacing: -0.02em; }
.jstep p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.jstep p.jnote { color: var(--ink-3); font-size: 14px; border-left: 2px solid var(--line-2); padding-left: 12px; }
.jcmd { display: flex; gap: 9px; align-items: baseline; background: var(--code-bg); border-radius: 10px;
  padding: 11px 13px; overflow-x: auto; }
.jcmd .p { color: var(--code-accent); font: 500 12.5px var(--mono); flex: none; }
.jcmd code { font: 400 12.5px/1.6 var(--mono); color: var(--code-ink); background: none; border: 0;
  padding: 0; white-space: pre; }
.jfoot { margin-top: 26px; text-align: center; color: var(--ink-3); font-size: 14.5px; }

@media (max-width: 900px) {
  .jsteps { grid-template-columns: minmax(0, 1fr); }
  .jrail { gap: 4px; padding: 16px 12px; }
  .jwire { width: 26px; }
  .jnode { padding: 5px 10px; font-size: 12px; }
  .jstep { padding: 18px 18px; }
  .jstep h3 { font-size: 17.5px; }
  .jstep p { font-size: 15px; }
  .jcmd { padding: 10px 11px; }
  .jcmd code, .jcmd .p { font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .jnode, .jstep { opacity: 1; transform: none; } .jwire path { stroke-dashoffset: 0; } .jpkt { opacity: 0; }
  .jn { background: var(--brand-soft); color: var(--brand-2); }
  .t1 .agent { transform: none; opacity: 1; } .t1 .p-open, .t1 .v1 { opacity: 0; } .t1 .p-work, .t1 .v2, .t1 .livewrap, .t1 .press2 { opacity: 1; }
  .t2 .ln, .t3 .ln, .t7 .ln { clip-path: none; }
  .t8 .n, .t8 .wt, .t8 .wtl, .t9 .dsp, .t9 .route, .t9 .arrow, .t9 .picked, .t9 .reason { opacity: 1; transform: none; } .duo .link .wire, .t8 .e { stroke-dashoffset: 0; }
  .t3 .bubble, .t3 .lbl { opacity: 1; transform: none; }
  .t4 .a3 { opacity: 1; } .t4 .p-rev, .t4 .v3 { opacity: 0; } .t4 .p-done, .t4 .v4, .t4 .by { opacity: 1; } .t4 .check { transform: scale(1); }
  .t5 .n { opacity: 1; transform: none; } .t5 .e { stroke-dashoffset: 0; } .t5 .el { opacity: 1; }
  .t6 .dev, .t6 .link, .t6 .lock { opacity: 1; }
}

/* real screens */
.real { background: var(--bg-2); }
.real .fig { margin: 0; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: var(--card); }
.real .fig img { display: block; width: 100%; height: auto; }
.real .legend { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; }
.real .legend li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; color: var(--ink-2); }
.real .legend b { color: var(--ink); font-weight: 600; }
.real .legend span { font: 500 12.5px var(--mono); color: var(--ink-3); }
.real .shots { margin: 40px auto 0; max-width: 900px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.real .shots figure { margin: 0; min-width: 0; display: grid; gap: 10px; }
.real .shots img { display: block; width: 100%; height: auto; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); }
.real .shots figcaption { font-size: 14px; color: var(--ink-2); max-width: 34ch; }
@media (max-width: 860px) { .real .shots { grid-template-columns: minmax(0, 1fr); } .real .legend { justify-content: flex-start; } }
.real .swipe { display: none; margin: 8px 0 0; font: 500 12px var(--mono); color: var(--ink-3); letter-spacing: 0.04em; }
@media (max-width: 720px) { .real .fig.sessions { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; } .real .fig.sessions img { min-width: 720px; } .real .swipe { display: block; } }

/* bylines and the also row */
.msg .by .agent-tag { border: 1px solid var(--mate); border-radius: 6px; padding: 0 6px; font: 500 10.5px var(--mono); color: var(--mate); }
.who { color: var(--mate); font-weight: 600; }
.also-l { margin: 40px 0 12px; font: 500 12px var(--mono); color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; text-align: center; }
.also { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; }
.also li { display: inline-flex; align-items: baseline; gap: 6px; padding: 0 16px; }
.also li + li { border-left: 1px solid var(--line-2); }
.also .ki { display: none; }
.also b { font-size: 14px; font-weight: 600; }
.also span { font-size: 12.5px; color: var(--ink-3); line-height: 1.3; }
.ki { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-2); }
.ki.sm { width: 28px; height: 28px; padding: 6px; border-radius: 8px; }
@media (max-width: 960px) { .also { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .also { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .also li { padding: 14px 8px 12px; } }

/* request a demo */
.demo-facts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.demo-facts li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.formcard { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--sh-card); padding: 24px; display: grid; gap: 14px; min-width: 0; }
.formcard label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); min-width: 0; }
.formcard label em { font-style: normal; color: var(--ink-2); font-weight: 400; margin-left: 4px; }
.formcard input[type="text"], .formcard input[type="email"], .formcard textarea { width: 100%; font: 400 16px/1.4 var(--ui); color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; min-width: 0; }
.formcard textarea { resize: vertical; min-height: 96px; }
.formcard input:focus-visible, .formcard textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.formcard input[aria-invalid="true"], .formcard textarea[aria-invalid="true"] { border-color: var(--block); outline: 2px solid var(--block); outline-offset: 1px; }
.formcard input[type="checkbox"][aria-invalid="true"] { outline-offset: 2px; }
.fieldhelp { color: var(--ink-3); font-size: 12.5px; font-weight: 400; }
.frow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.formcard .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.formcard .check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.formcard .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formcard .fact { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.formcard .fstat { font-size: 14px; color: var(--ink-2); flex: 1 1 200px; min-height: 1.4em; }
.formcard .fstat a { color: var(--brand-2); }
.formcard button[disabled] { opacity: 0.6; cursor: default; }
@media (max-width: 720px) { .frow { grid-template-columns: minmax(0, 1fr); } .formcard { padding: 18px; } }

/* pricing */
.plans-compare { max-width: 1120px; margin: 0 auto; }
.plans-top { display: grid; grid-template-columns: minmax(250px, 1.05fr) minmax(230px, .9fr) minmax(330px, 1.3fr); align-items: stretch; }
.plans-top > * { min-width: 0; padding: 0 24px 30px; }
.plans-top > :first-child { padding-left: 0; }
.plans-top > * + * { border-left: 1px solid var(--line); }
.plans-intro h2 { max-width: 8ch; font: 600 clamp(36px, 4.2vw, 54px)/.98 var(--ui); letter-spacing: -0.045em; }
.plans-intro p { max-width: 29ch; margin-top: 18px; color: var(--ink-3); font-size: 15px; }
.plan-summary { display: grid; grid-template-rows: auto auto 1fr auto; gap: 15px; }
.plan-summary h3, .plan-card h3 { font: 600 19px/1.2 var(--ui); letter-spacing: -0.02em; }
.plan-price { color: var(--ink); font: 600 22px/1.25 var(--ui); letter-spacing: -0.025em; }
.hosted-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 8px; font-size: 16px; letter-spacing: -0.01em; }
.hosted-price strong { font-size: 20px; }
.hosted-price s { color: var(--ink-3); text-decoration-thickness: 1.5px; }
.plan-copy { color: var(--ink-3); font-size: 13.5px; line-height: 1.55; }
.plan-summary .btn, .plan-card header .btn { width: 100%; }
.plans-desktop { border-top: 1px solid var(--line-2); }
.plans-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.plans-table .plan-feature-col { width: 32%; }
.plans-table .plan-self-col { width: 27%; }
.plans-table .plan-hosted-col { width: 41%; }
.plans-table-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.plans-table th, .plans-table td { min-width: 0; text-align: left; vertical-align: top; }
.plans-table tbody tr:not(.plan-group) > * { padding: 16px 24px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.plans-table tbody tr:not(.plan-group) > :first-child { padding-left: 0; color: var(--ink-2); font-weight: 500; }
.plans-table tbody tr:not(.plan-group) > * + * { border-left: 1px solid var(--line); }
.plans-table td { color: var(--ink-2); }
.plans-table .plan-group th { padding: 32px 0 9px; border-bottom: 1px solid var(--line-2); color: var(--ink-3); font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.plan-check { color: var(--run); font: 700 15px/1 var(--ui); }
.plans-mobile { display: none; }
.plan-card { min-width: 0; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.plan-card.hosted { border-color: var(--ink-3); box-shadow: var(--sh-card); }
.plan-card header { display: grid; gap: 14px; padding: 24px; }
.plan-card-group h4 { padding: 22px 20px 8px; border-top: 1px solid var(--line-2); color: var(--ink-3); font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.plan-card-group dl { margin: 0; }
.plan-card-group dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, .9fr); gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.plan-card-group dl > div:last-child { border-bottom: 0; }
.plan-card-group dt, .plan-card-group dd { min-width: 0; margin: 0; font-size: 13.5px; line-height: 1.45; }
.plan-card-group dt { color: var(--ink-2); font-weight: 500; }
.plan-card-group dd { color: var(--ink-3); text-align: right; overflow-wrap: anywhere; }
@media (max-width: 820px) {
  .plans-compare { max-width: 560px; }
  .plans-top { display: block; }
  .plans-top > * { padding: 0; }
  .plans-top > * + * { display: none; }
  .plans-intro h2 { max-width: none; }
  .plans-intro p { max-width: 38ch; }
  .plans-desktop { display: none; }
  .plans-mobile { display: grid; gap: 20px; margin-top: 34px; }
}
@media (max-width: 460px) {
  .plan-card header { padding: 20px; }
  .plan-card-group dl > div { grid-template-columns: minmax(0, 1fr) minmax(104px, .82fr); gap: 12px; padding: 13px 16px; }
  .plan-card-group h4 { padding-left: 16px; padding-right: 16px; }
}

/* account card */
.formcard form, .formcard [data-panel] { display: grid; gap: 14px; }
.formcard h3 { font: 600 20px/1.2 var(--ui); letter-spacing: -0.02em; }
.formcard p { font-size: 15px; color: var(--ink-2); }
.formcard .alt { font-size: 14px; color: var(--ink-3); }
.formcard .alt a { color: var(--brand-2); }
.formcard hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.formcard [data-panel][hidden] { display: none; }
.formcard input[type="password"] { width: 100%; font: 400 16px/1.4 var(--ui); color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; min-width: 0; }
.formcard input[type="password"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.formcard .receipt { display: grid; gap: 16px; min-width: 0; }
.formcard .receipt:focus:not(:focus-visible) { outline: 0; }
.formcard .receipt h3 { max-width: 18ch; font-size: clamp(25px, 3.2vw, 32px); line-height: 1.08; }
.formcard .receipt-state { justify-self: start; display: inline-flex; align-items: center; gap: 8px; color: var(--run); font: 600 11.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.formcard .receipt-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--run-soft); flex-shrink: 0; }
.formcard .receipt-state.pending { color: var(--brand); }
.formcard .receipt-state.pending::before { box-shadow: 0 0 0 4px var(--brand-soft); }
.formcard .receipt-state.error { color: var(--block); }
.formcard .receipt-state.error::before { box-shadow: 0 0 0 4px var(--block-soft); }
.formcard .receipt-address { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg-2); overflow-wrap: anywhere; }
.formcard .receipt-address strong, .formcard .receipt-mail strong, .formcard .receipt > p strong { color: var(--ink); }
.formcard .receipt-refbox { display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 16px; background: var(--brand-soft); min-width: 0; }
.formcard .receipt-ref-label { color: var(--ink-3); font: 600 10.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.formcard .receipt-ref { color: var(--brand-2); font: 600 clamp(27px, 4vw, 38px)/1.1 var(--mono); letter-spacing: 0.02em; overflow-wrap: anywhere; }
.formcard .receipt-next { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.formcard .receipt-next h4 { color: var(--ink-3); font: 600 10.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.formcard .receipt-steps { display: grid; gap: 13px; }
.formcard .receipt-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 11px; align-items: start; color: var(--ink-2); font-size: 14px; }
.formcard .receipt-steps li > span:last-child { min-width: 0; }
.formcard .receipt-steps strong { color: var(--ink); font-weight: 600; }
.formcard .receipt-num { width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: var(--bg-2); font: 500 11px var(--mono); }
.formcard .receipt-mail { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: var(--run-soft); color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; }
.formcard .receipt-actions { padding-top: 2px; }
@media (max-width: 720px) {
  .formcard .receipt h3 { font-size: 26px; }
  .formcard .receipt-ref { font-size: clamp(25px, 8.5vw, 34px); letter-spacing: 0.01em; }
  .formcard .receipt-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .formcard .receipt-actions .btn { width: 100%; }
}

/* the mesh: the whole product as the one graph it is stored as. Full-bleed; the statement sits over a fade at the left. */
.mesh { padding: 0 0 calc(var(--sec) * 0.7); }
.mstage { position: relative; width: 100%; overflow: hidden; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mstage canvas { display: block; width: 100%; height: clamp(520px, 46vw, 660px); touch-action: pan-y; }
.mstage canvas:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.mstill { display: block; width: 100%; height: auto; }
.mfade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--mesh-fade); }
.mtext { position: absolute; z-index: 2; left: max(24px, calc((100% - 1280px) / 2 + 24px)); top: 50%; transform: translateY(-50%); width: min(600px, 46%); }
.mesh h1 { font: 600 clamp(34px, 4.1vw, 60px)/1.04 var(--ui); letter-spacing: -0.045em; margin: 0; max-width: 14ch; text-wrap: balance; }
.mtext .actions { margin-top: 24px; }
.mtext .runs-with { margin-top: 14px; font-size: 13.5px; }
.mesh .sub { max-width: 44ch; margin-top: 16px; font-size: clamp(15px, 1.15vw, 17px); }
.k-member { color: var(--info); } .k-mate { color: var(--mate); } .k-task { color: var(--brand); } .k-run { color: var(--run); }
.mcap { margin: 18px 0 0; max-width: 44ch; font: 500 14px/1.5 var(--ui); color: var(--ink-3); min-height: 4.5em; }
.mtip { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; background: var(--card); border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 11px 8px; box-shadow: 0 6px 18px rgba(0,0,0,0.12); font: 600 12.5px/1.2 var(--ui); color: var(--ink); white-space: nowrap; }
.mtip[hidden] { display: none; }
.mtip b { display: block; font: 500 9.5px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px; }
.mtip b.plain { text-transform: none; font-family: var(--ui); font-size: 11px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mplay { position: absolute; right: 16px; bottom: 14px; z-index: 3; font: 500 12px var(--ui); color: var(--ink-2); background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.mplay:hover { color: var(--ink); border-color: var(--ink-3); }
.mplay:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.mkey { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; font-size: 13px; color: var(--ink-3); }
.mkey li { display: flex; align-items: center; gap: 7px; }
.mkey i { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.mkey .i-member { background: var(--info); } .mkey .i-mate { background: var(--mate); } .mkey .i-task { background: var(--brand); }
.mkey .i-run { background: var(--run); box-shadow: 0 0 0 3px var(--run-soft); } .mkey .i-rest { background: var(--ink-3); }
.mkey .i-mem { width: 8px; height: 8px; border: 1.5px solid var(--ink-2); border-radius: 1px; background: var(--card); transform: rotate(45deg); }
.mkey .i-doc { border-radius: 1px; background: var(--ink-3); }
@media (max-width: 899px) {
  .mstage { display: flex; flex-direction: column; border: 0; }
  .mtext { position: static; transform: none; width: auto; padding: 28px 20px 14px; text-align: center; }
  .mesh h1 { margin: 0 auto; }
  .mtext .actions { justify-content: center; }
  .mesh .sub, .mcap { margin-left: auto; margin-right: auto; }
  .mcap { min-height: 6em; }
  .mfade { display: none; }
  .mstage canvas { height: auto; aspect-ratio: 1 / 0.9; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .mplay { bottom: 12px; right: 12px; }
}
@media (max-width: 720px) { .mesh h1 { font-size: clamp(32px, 9.4vw, 40px); } .mkey { gap: 6px 14px; font-size: 12px; } }
@media (max-width: 639px) { .mstage canvas { aspect-ratio: 1 / 1.05; } }

.work-shot { margin: 28px 0 0; }

/* the proof section: the Work-tab recording leads, then one Work view with callouts, then the sessions strip */
.real .worktab { margin: 0 0 26px; }
.real .worktab .vframe { aspect-ratio: 16 / 10; }
.real .worktab figcaption { margin: 12px auto 0; max-width: 78ch; text-align: center; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.real .proof { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0 0 22px; }
.real .callouts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; }
.real .callouts li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14.5px; color: var(--ink-2); }
.real .callouts li > b { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font: 600 12.5px/26px var(--ui); text-align: center; }
.real .callouts li b.k-run { font-weight: 600; }
.real .sessions { margin-top: 18px; }
.caps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.caps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.caps li:nth-child(-n+2) { border-top: 0; }
.caps .ki { width: 30px; height: 30px; padding: 7px; border-radius: 9px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.caps .ki.k-mate { background: var(--mate-soft); color: var(--mate); }
.caps .ki.k-task { background: var(--brand-soft); color: var(--brand); }
.caps .ki.k-member { background: var(--info-soft); color: var(--info); }
.caps .ki.k-run { background: var(--run-soft); color: var(--run); }
.caps b { font-size: 14.5px; font-weight: 600; margin-right: 8px; }
.caps span { font-size: 14px; color: var(--ink-3); line-height: 1.4; }
@media (max-width: 720px) { .real .callouts { grid-template-columns: minmax(0, 1fr); } .caps { grid-template-columns: minmax(0, 1fr); } .caps li:nth-child(2) { border-top: 1px solid var(--line); } .caps b { display: block; margin: 0 0 2px; } }

/* session to session: the product's Sessions panel, with one real exchange moving along the tree */
.s2s { margin-top: 30px; }
.s2s-head { text-align: center; margin-bottom: 18px; }
.s2s-head h3 { font: 600 clamp(24px, 2.6vw, 34px)/1.1 var(--ui); letter-spacing: -0.03em; margin: 0; }
.s2s-head p { color: var(--ink-2); margin: 10px auto 0; max-width: 60ch; font-size: 16px; }
.sess { position: relative; max-width: 760px; margin: 0 auto; background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--sh-frame); overflow: hidden; }
.sess-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: 14px; }
.sess-bar b { font-weight: 600; }
.sess-bar .chips { display: flex; gap: 6px; margin-left: auto; font: 500 11.5px var(--mono); color: var(--ink-3); }
.sess-bar .chips span { padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); }
.sess-bar .chips .on { color: var(--ink); background: var(--card); }
.sess .wire { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.sess .wire path { stroke: var(--brand); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: 0.55; }
.sess .wire circle { fill: var(--brand); opacity: 0; filter: drop-shadow(0 0 6px rgba(181, 98, 31, 0.6)); transition: opacity 0.2s; }
.sess .tree, .sess .tree ul { list-style: none; margin: 0; padding: 0; }
.sess .tree { padding: 10px 14px 6px; }
.sess .tree ul { margin-left: 26px; border-left: 1px solid var(--line-2); padding-left: 10px; }
.sess .row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14.5px; min-width: 0; transition: background 0.25s, box-shadow 0.25s; }
.sess .row b { font-weight: 600; white-space: nowrap; }
.sess .row code { font: 500 12px var(--mono); color: var(--ink-3); margin-left: auto; white-space: nowrap; }
.sess .row small { font: 500 10.5px var(--mono); color: var(--mate); border: 1px solid var(--mate-soft); background: var(--mate-soft); border-radius: 6px; padding: 2px 6px; }
.sess .badge { width: 22px; height: 22px; border-radius: 6px; background: var(--mate); color: #fff; font: 600 11.5px/22px var(--mono); text-align: center; flex-shrink: 0; }
.sess .badge.keeper { background: var(--card); color: var(--mate); border: 1.5px dashed var(--mate); line-height: 19px; }
.sess .live { width: 8px; height: 8px; border-radius: 50%; background: var(--run); box-shadow: 0 0 0 3px var(--run-soft); flex-shrink: 0; }
.sess .row.lit { background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.sess .bubble { display: grid; gap: 4px; margin: 2px 10px 8px 42px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); font-size: 13.5px; line-height: 1.45; color: var(--ink); max-height: 0; opacity: 0; overflow: hidden; padding-top: 0; padding-bottom: 0; margin-bottom: 0; border-width: 0; transition: max-height 0.5s ease, opacity 0.4s ease, padding 0.4s, margin 0.4s; }
.sess .bubble.on { max-height: 220px; opacity: 1; padding: 10px 12px; margin-bottom: 8px; border-width: 1px; }
.sess .bubble .from { font: 500 10.5px var(--mono); color: var(--ink-3); letter-spacing: 0.02em; }
.sess .bubble .from em { font-style: normal; color: var(--run); }
.sess .cap { margin: 0; padding: 12px 16px 14px; border-top: 1px solid var(--line); font: 500 14px/1.5 var(--ui); color: var(--ink-2); min-height: 4.2em; }
@media (max-width: 720px) {
  .sess .row { flex-wrap: wrap; gap: 6px 8px; font-size: 13.5px; }
  .sess .row code { margin-left: 0; width: 100%; order: 5; }
  .sess .tree ul { margin-left: 14px; padding-left: 8px; }
  .sess .bubble { margin-left: 18px; font-size: 13px; }
  .sess-bar .chips span:not(.on) { display: none; }
}
