/* nonlocally.org. One page: DM Sans for everything, JetBrains Mono for code only.
   Colours come from the MIT and QP-AI marks: cool paper, QP-AI slate for ink, and one
   signal red that is kept for light, messages and the things that move. */

@font-face { font-family: "DM Sans"; src: url(fonts/dm-sans.woff2) format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono.woff2) format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono-greek.woff2) format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; unicode-range: U+0370-03FF; }

:root {
  color-scheme: light;
  --paper: #fbfcfd;
  --panel: #ffffff;
  --wash: #f4f6f8;
  --ink: #16212a;
  --slate: #2b3a44;
  --ink-2: #4a5763;
  --ink-3: #66727d;
  --ink-4: #9aa4ad;
  --rule: #e4e8ec;
  --rule-2: #d3d9df;
  --red: #d5262f;
  --red-ink: #b3202a;
  --red-tint: #fdeff0;
  --red-soft: #f3c4c7;
  --live: #2eb872;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --lift: 0 24px 44px -32px rgba(22, 33, 42, .38);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--paper); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, pre { margin: 0; }
button { font: inherit; color: inherit; }
sup { font-size: .68em; line-height: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(213, 38, 47, .16); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.wrap-wide { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* The mark: two nodes and the link between them. site.js morphs the link. */
.nlm { overflow: visible; }
.nlm-link { fill: none; stroke: var(--red); stroke-linecap: round; stroke-linejoin: round; }
.nlm-node { fill: none; stroke: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border: 1px solid transparent; border-radius: 11px;
  font-size: 15px; font-weight: 550; letter-spacing: -.01em; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s, border-color .18s, box-shadow .18s, color .18s;
}
.btn:active { transform: translateY(0); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 10px 22px -12px rgba(22, 33, 42, .55); }
.btn-dark:hover { background: #0b141b; transform: translateY(-1px); }
.btn-light { background: var(--panel); color: var(--ink); border-color: var(--rule-2); box-shadow: 0 1px 2px rgba(22, 33, 42, .04); }
.btn-light:hover { border-color: #b8c1c9; transform: translateY(-1px); }
.btn-lg { height: 50px; padding: 0 24px; border-radius: 13px; font-size: 16px; }
.btn-sm { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--rule); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; color: var(--ink); text-decoration: none; }
/* The rings are drawn the size of the o's in the name and sit on its baseline. */
.brand-mark { width: 34px; height: 12.2px; flex: none; }
/* The name as the blog sets it: DM Sans 500, lowercase, -0.03em. */
.brand-name { font-size: 21px; font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 9px; font-size: 14.5px; color: var(--ink-2); text-decoration: none; transition: color .15s, background-color .15s; }
.nav-links a:hover { color: var(--ink); background: var(--wash); }
/* Links on this page in grey; links that leave it in ink, with an arrow, after a rule. */
.nav-here, .nav-out { display: flex; align-items: center; gap: 2px; }
.nav-out { margin-left: 8px; padding-left: 10px; border-left: 1px solid var(--rule-2); }
.nav-out a { display: inline-flex; align-items: center; gap: 3px; color: var(--ink); font-weight: 550; }
.nav-out .ext { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .55; transition: opacity .15s, transform .15s var(--ease); }
.nav-out a:hover .ext { opacity: 1; transform: translate(1px, -1px); }

/* Hero */
.hero { position: relative; padding-top: clamp(64px, 10vh, 108px); overflow: clip; }
/* An optical breadboard: a hole every 28 px, fading out from the centre. */
.hero-holes {
  position: absolute; inset: 0 0 auto; height: 860px; pointer-events: none;
  background-image: radial-gradient(circle, transparent 1.3px, rgba(43, 58, 68, .15) 1.6px, rgba(43, 58, 68, .15) 2.3px, transparent 2.7px);
  background-size: 28px 28px;
  background-position: center -6px;
  -webkit-mask-image: radial-gradient(72% 62% at 50% 36%, #000 22%, transparent 76%);
  mask-image: radial-gradient(72% 62% at 50% 36%, #000 22%, transparent 76%);
}
.hero-inner { position: relative; z-index: 2; text-align: center; }
.hero-title {
  max-width: 12em; margin: 0 auto;
  font-size: clamp(46px, 7vw, 96px); font-weight: 500; line-height: 1; letter-spacing: -.036em;
  text-wrap: balance;
}
.hero-sub { max-width: 54ch; margin: 28px auto 0; font-size: clamp(18px, 1.75vw, 21.5px); line-height: 1.5; letter-spacing: -.012em; color: var(--ink-2); text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.hero-note a { color: var(--ink-2); text-decoration-color: var(--red-soft); text-underline-offset: 3px; }
.hero-note a:hover { color: var(--ink); text-decoration-color: var(--red); }

/* The group's lockup, rebuilt: the official MIT mark, a red line, and QP-AI. The line
   meets the qp.mit.edu bar where the original does; site.js sends light along it.
   --k scales from the 468 x 228 QP-AI image. */
.lockup { --k: .36; position: relative; width: calc(900px * var(--k)); height: calc(228px * var(--k)); margin: 52px auto 0; }
.lockup a { position: absolute; display: block; border-radius: 4px; }
.lockup-mit { left: 0; top: calc(81px * var(--k)); height: calc(111px * var(--k)); }
.lockup-qpai { right: 0; top: 0; height: 100%; }
.lockup img { width: auto; height: 100%; }
.lockup-line { position: absolute; left: 0; right: calc(95px * var(--k)); top: calc(212.5px * var(--k) - 20px); width: auto; height: 40px; overflow: visible; pointer-events: none; }
.lockup-line path { fill: none; stroke: var(--red); stroke-width: calc(3.6px * var(--k)); stroke-linecap: round; stroke-linejoin: round; }
.lockup-line .lockup-wave { stroke-width: calc(4.2px * var(--k)); }
.lockup-glow {
  position: absolute; right: calc(75px * var(--k) - 28px); top: calc(75px * var(--k) - 28px); width: 56px; height: 56px; border-radius: 50%;
  background: radial-gradient(circle, rgba(213, 38, 47, .42), rgba(213, 38, 47, 0) 68%);
  opacity: 0; transform: scale(.6); pointer-events: none;
}
.lockup-glow.is-on { animation: glow 1.1s var(--ease); }
@keyframes glow { 0% { opacity: 0; transform: scale(.5); } 30% { opacity: 1; transform: scale(1.05); } 100% { opacity: 0; transform: scale(1.35); } }

/* Floating tiles around the headline: the agents and tools that work here. */
.hero-field { position: absolute; inset: 0 0 auto; height: 640px; z-index: 1; pointer-events: none; --px: 0px; --py: 0px; }
.fm {
  position: absolute; left: calc(50% + var(--x)); top: var(--y); width: var(--s); height: var(--s); margin-left: calc(var(--s) / -2);
  translate: calc(var(--px) * var(--depth)) calc(var(--py) * var(--depth));
  transition: translate var(--parallax, 0s) var(--ease);
}
.fm-card {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 27%;
  background: linear-gradient(180deg, #fff 0%, #f5f7f9 100%);
  border: 1px solid rgba(43, 58, 68, .1);
  box-shadow: 0 1px 0 #fff inset, 0 -1px 0 rgba(43, 58, 68, .05) inset, 0 26px 44px -26px rgba(22, 33, 42, .4), 0 5px 12px -8px rgba(22, 33, 42, .18);
  transform: rotate(var(--rot));
  animation: fm-in 1s var(--ease) var(--d) both, fm-drift var(--dur) ease-in-out calc(var(--d) + 1s) infinite;
  animation-play-state: running, var(--motion, paused);
}
.fm-card img { width: 50%; height: 50%; object-fit: contain; }
@keyframes fm-in {
  from { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(calc(var(--rot) + 24deg)) scale(.6); }
  to { opacity: 1; transform: translate(0, 0) rotate(var(--rot)) scale(1); }
}
@keyframes fm-drift {
  0%, 100% { transform: translate(0, 0) rotate(var(--rot)); }
  50% { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--rot) + var(--wob))); }
}
.fm-claude   { --x: max(-560px, -39vw); --y: 158px; --s: 92px; --rot: -8deg; --depth: 1.2; --d: .38s; --dur: 10.5s; --dx: 4px;  --dy: -12px; --wob: -2deg; --fx: -160px; --fy: -40px; }
.fm-codex    { --x: min(560px, 39vw);   --y: 158px; --s: 92px; --rot: 7deg;  --depth: 1.2; --d: .46s; --dur: 9.2s;  --dx: -4px; --dy: -10px; --wob: 2deg;  --fx: 160px;  --fy: -40px; }
.fm-meta     { --x: max(-330px, -22vw); --y: 22px;  --s: 62px; --rot: 6deg;  --depth: .6;  --d: .62s; --dur: 8.5s;  --dx: 2px;  --dy: -8px;  --wob: 3deg;  --fx: -40px;  --fy: -80px; }
.fm-tm       { --x: min(330px, 22vw);   --y: 22px;  --s: 62px; --rot: -5deg; --depth: .6;  --d: .58s; --dur: 9.8s;  --dx: -2px; --dy: -9px;  --wob: -3deg; --fx: 40px;   --fy: -80px; }
.fm-deepseek { --x: max(-460px, -31vw); --y: 452px; --s: 76px; --rot: 4deg;  --depth: .9;  --d: .54s; --dur: 11.5s; --dx: 3px;  --dy: -9px;  --wob: -3deg; --fx: -120px; --fy: 80px; }
.fm-glm      { --x: min(460px, 31vw);   --y: 452px; --s: 76px; --rot: -5deg; --depth: .9;  --d: .7s;  --dur: 7.8s;  --dx: -3px; --dy: -11px; --wob: 3deg;  --fx: 120px;  --fy: 80px; }

/* Entrances: one sequence on load, nothing on scroll. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
[data-rise] { animation: rise .8s var(--ease) both; animation-delay: var(--d, 0s); }

/* The workspace, drawn: rail, chat, splitter, notebook. */
.demo-wrap { position: relative; z-index: 2; margin-top: 72px; perspective: 2200px; }
.frame {
  --chat: 40%;
  position: relative;
  display: grid; grid-template-columns: 56px minmax(280px, var(--chat)) 11px minmax(380px, 1fr);
  height: 664px;
  background: var(--panel); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 0 #fff inset, 0 50px 90px -48px rgba(22, 33, 42, .42), 0 14px 32px -22px rgba(22, 33, 42, .22);
  transform: rotateX(2deg); transform-origin: 50% 0;
  transition: transform .7s var(--ease);
}
.frame:hover, .frame:focus-within { transform: none; }

.rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0 16px; background: #f8f9fa; border-right: 1px solid var(--rule); }
.rail-mark { display: grid; place-items: center; width: 36px; height: 30px; margin-bottom: 10px; }
.rail-mark svg { width: 34px; height: 12px; }
.rail-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--ink-3); }
.rail-btn.is-on { background: #eceff2; color: var(--ink); }
.rail-btn svg, .ai-actions svg, .model svg, .c-btn svg, .c-send svg, .card-ico svg {
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.rail-btn svg { width: 19px; height: 19px; }
.rail-me { display: grid; place-items: center; width: 30px; height: 30px; margin-top: auto; border-radius: 50%; background: var(--slate); color: #fff; font-size: 13px; font-weight: 600; }

.chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 54px; padding: 0 16px 0 20px; }
.model { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.model img { width: 16px; height: 16px; }
.model svg { width: 16px; height: 16px; color: var(--ink-3); stroke-width: 2; }
.chat-bar-note { padding: 4px 10px; border-radius: 999px; background: var(--wash); font-size: 12.5px; color: var(--ink-3); }
.chat-log { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 16px; padding: 6px 22px 14px; font-size: 14.5px; line-height: 1.55; }
.msg-user { align-self: flex-end; max-width: 88%; padding: 10px 15px; border-radius: 20px 20px 6px 20px; background: #f0f2f4; }
.msg-ai { display: flex; flex-direction: column; gap: 10px; }
.ai-head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.ai-avatar { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--rule); border-radius: 50%; background: #fff; }
.ai-avatar img { width: 11px; height: 11px; }
.ai-think { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); }
.ai-think svg { width: 22px; height: 22px; }
.tool { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 12px; background: #fbfcfd; font-size: 13px; }
.tool-ico { display: grid; place-items: center; flex: none; width: 30px; height: 18px; }
.tool-ico svg { width: 30px; height: 11px; }
.tool-ico img { width: 17px; height: 17px; object-fit: contain; }
.tool-name { font-weight: 600; white-space: nowrap; }
.tool code, .tool-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); }
.tool code { font-family: var(--mono); font-size: 11.5px; }
.tool-sub { font-size: 12.5px; }
.ai-actions { display: flex; gap: 14px; color: var(--ink-4); }
.ai-actions svg { width: 16px; height: 16px; }
.w { opacity: 0; transition: opacity .25s; }
.w.is-in { opacity: 1; }
.pop { animation: pop .45s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }

.composer { margin: 0 16px 16px; padding: 12px 12px 10px 16px; border: 1px solid var(--rule); border-radius: 22px; background: #fff; box-shadow: 0 12px 30px -20px rgba(22, 33, 42, .32); }
.composer-field { min-height: 22px; font-size: 14.5px; line-height: 1.5; }
.composer-ph { color: var(--ink-4); }
.caret { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -.16em; background: var(--ink); animation: blink 1s steps(2, end) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.composer-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.c-btn { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--rule); border-radius: 50%; color: var(--ink-3); }
.c-btn svg, .c-send svg { width: 16px; height: 16px; stroke-width: 2; }
.c-chip { padding: 5px 10px; border-radius: 999px; background: var(--wash); font-size: 12.5px; color: var(--ink-3); }
.c-send { display: grid; place-items: center; width: 32px; height: 32px; margin-left: auto; border-radius: 50%; background: #d9dee3; color: #fff; transition: background-color .2s, transform .2s var(--ease); }
.c-send.is-ready { background: var(--ink); }
.c-send.is-sent { transform: translateY(-2px) scale(.94); }

.split { position: relative; cursor: col-resize; border-left: 1px solid var(--rule); touch-action: none; }
.split span { position: absolute; left: 50%; top: 50%; width: 4px; height: 36px; margin: -18px 0 0 -2.5px; border-radius: 4px; background: var(--rule-2); transition: background-color .2s, height .2s, margin .2s; }
.split:hover span, .split:focus-visible span, .split.is-drag span { height: 56px; margin-top: -28px; background: var(--red); }
.split:focus-visible { outline-offset: -2px; }

.nb { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fcfcfd; }
.nb-bar { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px; border-bottom: 1px solid var(--rule); background: #fff; font-size: 13.5px; color: var(--ink-3); }
.nb-bar img { width: 18px; height: 18px; object-fit: contain; }
.nb-path b { color: var(--ink); font-weight: 600; }
.nb-live { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12.5px; }
.nb-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(46, 184, 114, .16); }
.nb-cells { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px 20px 18px 36px; overflow: hidden; }
.nb-empty { display: none; margin: auto; justify-items: center; gap: 12px; text-align: center; font-size: 13.5px; color: var(--ink-3); }
.nb-empty svg { width: 56px; height: 20px; }
.cell { position: relative; }
.cell::before { content: ""; position: absolute; left: -17px; top: 3px; bottom: 3px; width: 3px; border-radius: 3px; background: var(--rule); transition: background-color .3s; }
.cell.is-run::before { background: var(--red); }
.cell-md h3 { font-size: 19px; font-weight: 620; letter-spacing: -.02em; line-height: 1.3; }
.cell-md p { margin-top: 2px; font-size: 13.5px; color: var(--ink-2); }
.cell-code pre { overflow: hidden; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; background: #f6f7f9; font-family: var(--mono); font-size: 11.5px; line-height: 1.66; white-space: pre; color: var(--ink); }
code .k { color: var(--slate); font-weight: 700; }
code .n { color: var(--red-ink); }
code .s { color: #1d7a4c; }
code .c { color: var(--ink-4); font-style: italic; }
.cell-out { display: flex; flex-direction: column; gap: 10px; }
.mo-slider { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); }
.mo-slider output { min-width: 3ch; font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.mo-slider input[type="range"] { -webkit-appearance: none; appearance: none; flex: 1; max-width: 300px; height: 22px; margin: 0; background: transparent; cursor: pointer; }
.mo-slider input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--red) var(--p, 50%), var(--rule-2) var(--p, 50%)); }
.mo-slider input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--rule-2); }
.mo-slider input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--red); }
.mo-slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border: 2px solid var(--red); border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(22, 33, 42, .2); transition: transform .15s; }
.mo-slider input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 2px solid var(--red); border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(22, 33, 42, .2); }
.mo-slider input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.nb-figs { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.5fr); align-items: start; gap: 12px; }
.fig { padding: 8px 10px 6px; border: 1px solid var(--rule); border-radius: 12px; background: #fff; }
.fig svg { width: 100%; height: auto; overflow: visible; }
.fig figcaption { margin-top: 2px; font-size: 11.5px; color: var(--ink-3); }
.lay-wg { fill: rgba(213, 38, 47, .13); stroke: rgba(213, 38, 47, .72); stroke-width: 1; }
.lay-glow { fill: none; stroke: var(--red); stroke-width: 5; stroke-linecap: round; filter: blur(2.5px); opacity: 0; }
.lay-dim path { fill: none; stroke: var(--ink-3); stroke-width: .9; }
.lay-dim text { font-family: var(--mono); font-size: 10px; fill: var(--ink-2); }
.ax line { stroke: var(--rule); stroke-width: 1; }
.ax .ax-base { stroke: var(--rule-2); }
.ax text { font-family: var(--sans); font-size: 11px; fill: var(--ink-3); }
.spec-line { fill: none; stroke: var(--red); stroke-width: 2; stroke-linejoin: round; }
.spec-fill { fill: rgba(213, 38, 47, .07); }
.nb-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.nb-stats div { padding: 7px 10px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; }
.nb-stats dt { font-size: 11.5px; color: var(--ink-3); }
.nb-stats dd { font-size: 14px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nb-reveal { animation: pop .5s var(--ease) both; }

.demo-foot { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 36px; margin-top: 18px; }
.demo-cap { font-size: 13.5px; color: var(--ink-3); text-align: center; }
.replay { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 10px; border: 1px solid var(--rule-2); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 550; color: var(--ink-2); cursor: pointer; transition: border-color .18s, color .18s; }
.replay:hover { border-color: #b8c1c9; color: var(--ink); }
.replay svg { width: 18px; height: 18px; }
.replay[hidden] { display: none; }

/* Sections */
.sec { padding-top: clamp(96px, 12vw, 148px); }
.sec h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 500; line-height: 1.04; letter-spacing: -.035em; }
.lede { max-width: 60ch; margin-top: 18px; font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.55; letter-spacing: -.006em; color: var(--ink-2); }
.sec-head { max-width: 1000px; margin-bottom: 44px; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.sec-head-row .lede { max-width: 58ch; }
.sec-head-row > .btn { flex: none; }
.sec-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.split-sec { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); align-items: center; gap: clamp(32px, 6vw, 88px); }
.diagram svg { width: 100%; height: auto; overflow: visible; }
.diagram text { font-family: var(--sans); }

/* Agent Bus diagram */
.bus-card rect { fill: #f7f8fa; stroke: var(--rule); }
.bus-where { font-size: 13px; fill: var(--ink-3); }
.bus-chip rect { fill: #fff; stroke: var(--rule-2); transition: fill .3s, stroke .3s; }
.bus-chip text { font-size: 14px; fill: var(--ink); transition: fill .3s; }
.bus-chip.is-on rect { fill: var(--red-tint); stroke: var(--red); }
.bus-chip.is-on text { fill: var(--red-ink); }
.bus-link { fill: none; stroke: var(--rule-2); stroke-width: 1.5; }
.bus-waves path { fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bus-ports circle { fill: var(--rule-2); }
.bus-hub rect { fill: var(--ink); stroke: var(--ink); stroke-width: 0; transition: stroke-width .3s, stroke .3s; }
.bus-hub.is-on rect { stroke: var(--red); stroke-width: 3; }
.bus-hub text { font-size: 20px; font-weight: 560; letter-spacing: -.01em; fill: #fff; text-anchor: middle; }
.bus-cap { font-size: 13.5px; fill: var(--ink-3); text-anchor: middle; }

/* Contract flow */
.diagram-wide { max-width: 1040px; }
.flow text { text-anchor: middle; }
.fl-band rect { fill: #fdf5f5; stroke: #f5dcde; transition: fill .5s, stroke .5s; }
.fl-band text { font-size: 13px; fill: var(--red-ink); transition: fill .5s; }
.fl-band.is-held rect { fill: var(--red-tint); stroke: var(--red-soft); }
.fl-band.is-released rect { fill: #f6f8f9; stroke: var(--rule); }
.fl-band.is-released text { fill: var(--ink-3); }
.fl-node rect { fill: #fff; stroke: var(--rule-2); stroke-width: 1.5; transition: fill .3s, stroke .3s; }
.fl-node text { font-size: 16px; font-weight: 560; fill: var(--ink); transition: fill .3s; }
.fl-node.is-on rect { fill: var(--red-tint); stroke: var(--red); }
.fl-node.is-on text { fill: var(--red-ink); }
.fl-market rect, .fl-market.is-on rect { fill: var(--ink); stroke: var(--ink); }
.fl-market text, .fl-market.is-on text { fill: #fff; font-size: 15px; }
.fl-verify rect { fill: var(--slate); stroke: var(--slate); }
.fl-verify text { fill: #fff; }
.fl-verify .fl-vsub { font-size: 12px; font-weight: 400; fill: #c7d0d7; }
.fl-verify.is-on rect { fill: var(--slate); stroke: var(--red); stroke-width: 3; }
.fl-verify.is-on text { fill: #fff; }
.fl-verify.is-fail rect { fill: #8b959e; stroke: #8b959e; }
.fl-verify.is-pass rect { fill: var(--ink); stroke: var(--ink); }
.fl-paid.is-on rect { fill: var(--red); stroke: var(--red); }
.fl-paid.is-on text { fill: #fff; }
.fl-sub { font-size: 13px; fill: var(--ink-3); }
.fl-edge { fill: none; stroke: var(--rule-2); stroke-width: 2; transition: stroke .3s; }
.fl-edge.is-on { stroke: var(--red); }
.fl-back { fill: none; stroke: var(--ink-4); stroke-width: 1.5; stroke-dasharray: 5 5; transition: stroke .3s; }
.fl-back.is-on { stroke: var(--red); animation: march .6s linear infinite; }
@keyframes march { to { stroke-dashoffset: -10; } }
.fl-arrow { fill: var(--rule-2); }

.contract-foot { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 64px); margin-top: 44px; }
.oblig { overflow: hidden; border: 1px solid var(--rule); border-radius: 16px; background: #fff; box-shadow: var(--lift); }
.oblig-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); font-size: 13.5px; }
.oblig-title { font-weight: 600; }
.oblig-src { color: var(--ink-3); }
.oblig-tft { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--red-tint); color: var(--red-ink); font-size: 12.5px; font-weight: 600; }
.oblig-code { overflow-x: auto; padding: 16px 18px; background: #fbfcfd; font-family: var(--mono); font-size: 12.5px; line-height: 1.72; white-space: pre; }
.oblig-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 10px 16px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--ink-3); }
.oblig-foot code { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.oblig-verdict { display: inline-flex; align-items: center; gap: 7px; }
.oblig-verdict i { width: 7px; height: 7px; border-radius: 50%; background: #e3a13a; }
.contract-side p:first-child { max-width: 46ch; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.contract-side .sec-actions { margin-top: 24px; }

/* Tags and plots */
.tag { align-self: flex-start; padding: 3px 10px; border: 1px solid var(--rule-2); border-radius: 999px; font-size: 12px; color: var(--ink-3); }
.tag-live { border-color: var(--red-soft); background: var(--red-tint); color: var(--red-ink); }
.pl-a { fill: none; stroke: var(--red); stroke-width: 2; stroke-linejoin: round; }
.pl-b { fill: none; stroke: var(--slate); stroke-width: 1.6; stroke-linejoin: round; }
.pl-c { fill: none; stroke: var(--ink-4); stroke-width: 1.4; stroke-linejoin: round; }
.pl-fill { fill: rgba(213, 38, 47, .08); }
.pl-base { stroke: var(--rule-2); stroke-width: 1; }
.pl-ray { fill: none; stroke: var(--red); stroke-width: 1.1; opacity: .85; }
.pl-lens { fill: rgba(43, 58, 68, .07); stroke: var(--slate); stroke-width: 1.2; }
.pl-axis { stroke: var(--ink-4); stroke-width: 1; stroke-dasharray: 3 4; }
.pl-dot { fill: var(--red); }
.pl-label { font-family: var(--sans); font-size: 10.5px; fill: var(--ink-3); }
.card-ico { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; color: var(--slate); box-shadow: 0 1px 2px rgba(22, 33, 42, .05); }
.card-ico svg { width: 18px; height: 18px; }

/* Compact rows under a section: notebooks under the demo, docs under Get started. */
.minis, .docs-mini { margin-top: 44px; }
.minis-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.minis-head h3 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.minis-head a { font-size: 14px; color: var(--ink-2); text-decoration-color: var(--red-soft); text-underline-offset: 3px; }
.minis-head a:hover { color: var(--ink); text-decoration-color: var(--red); }
.minis-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mini, .doc { border: 1px solid var(--rule); border-radius: 14px; background: #fff; color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .25s; }
.mini:hover, .doc:hover { border-color: var(--rule-2); box-shadow: var(--lift); }
.mini { display: flex; flex-direction: column; gap: 9px; padding: 8px 8px 14px; }
.mini-plot {
  display: block; padding: 8px 10px 2px; border-radius: 9px; background-color: #f8f9fb;
  background-image: linear-gradient(rgba(43, 58, 68, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(43, 58, 68, .045) 1px, transparent 1px);
  background-size: 16px 16px;
}
.mini-plot svg { width: 100%; height: auto; aspect-ratio: 320 / 130; overflow: visible; }
.mini b { padding: 0 6px; font-size: 14.5px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.mini .tag { margin: auto 6px 0; }
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.doc { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; }
.doc b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.doc span span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }

/* Ask */
.ask-inner { max-width: 780px; text-align: center; }
.ask-box {
  position: relative; z-index: 3; max-width: 720px; margin: 34px auto 0; padding: 16px 14px 12px 20px; text-align: left;
  border: 1px solid var(--rule); border-radius: 26px; background: #fff;
  box-shadow: 0 34px 64px -40px rgba(22, 33, 42, .42), 0 2px 6px -2px rgba(22, 33, 42, .06);
  transition: border-color .2s, box-shadow .2s;
}
.ask-box:focus-within { border-color: var(--rule-2); box-shadow: 0 34px 64px -40px rgba(22, 33, 42, .42), 0 0 0 4px rgba(213, 38, 47, .08); }
.ask-box textarea { display: block; width: 100%; min-height: 54px; padding: 0; border: 0; outline: 0; resize: none; background: transparent; font: 400 17px/1.5 var(--sans); color: var(--ink); }
.ask-box textarea::placeholder { color: var(--ink-4); }
.ask-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.ask-model { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--wash); font-size: 13.5px; font-weight: 550; color: var(--ink-2); }
.ask-model img { width: 14px; height: 14px; }
.ask-send { position: relative; display: grid; place-items: center; width: 42px; height: 42px; margin-left: auto; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; transition: transform .18s var(--ease), background-color .18s; }
.ask-send:hover { background: #0b141b; transform: translateY(-1px); }
.ask-arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; transition: opacity .15s; }
.ask-send .nlm { position: absolute; width: 26px; height: 26px; opacity: 0; transition: opacity .15s; }
.ask-send .nlm-link { stroke: #fff; }
.ask-send .nlm-node { stroke: #fff; }
.ask-send.is-sending .ask-arrow { opacity: 0; }
.ask-send.is-sending .nlm { opacity: 1; }
.suggest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 720px; margin: 14px auto 0; }
.suggest button { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 14px; background: rgba(255, 255, 255, .6); cursor: pointer; transition: border-color .18s, background-color .18s; }
.suggest button:hover { border-color: var(--rule-2); background: #fff; }
.suggest b { font-size: 14px; font-weight: 600; }
.suggest span { font-size: 13px; color: var(--ink-3); }
.ask-note { margin-top: 18px; font-size: 14px; color: var(--ink-3); }

/* Footer */
.foot { margin-top: clamp(104px, 13vw, 160px); padding: 48px 0 60px; border-top: 1px solid var(--rule); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 48px; }
.foot-brand > p { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.foot-logos { display: flex; align-items: flex-end; gap: 24px; margin-top: 22px; }
.foot-logos a { display: block; border-radius: 4px; }
.foot-logos a:first-child img { width: auto; height: 22px; }
.foot-logos a:last-child img { width: auto; height: 46px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(120px, auto)); gap: 24px 64px; }
.foot-cols h3 { margin-bottom: 10px; font-size: 13.5px; font-weight: 600; }
.foot-cols a { display: block; padding: 3px 0; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.foot-cols a:hover { color: var(--ink); }

/* Widths */
@media (max-width: 1180px) {
  .fm-claude, .fm-codex { --s: 80px; }
  .fm-deepseek, .fm-glm { --s: 66px; --y: 440px; }
}
@media (max-width: 1060px) {
  .nav-here { display: none; }
  .nav-out { margin-left: 0; padding-left: 0; border-left: 0; }
  .frame { height: 580px; grid-template-columns: 0 minmax(260px, var(--chat)) 11px minmax(340px, 1fr); }
  .rail { visibility: hidden; border: 0; }
}
@media (max-width: 960px) {
  .split-sec, .contract-foot { grid-template-columns: 1fr; }
  .minis-grid, .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frame { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; transform: none; }
  .frame:hover { transform: none; }
  .rail, .split { display: none; }
  .chat-log { max-height: 460px; }
  .nb { border-top: 1px solid var(--rule); }
  .nb-cells { padding-left: 32px; }
}
@media (max-width: 820px) {
  .hero { padding-top: 132px; }
  .hero-field { height: 200px; }
  .fm-claude { --x: -36vw; --y: 38px; --s: 60px; --rot: -10deg; }
  .fm-meta { --x: -12vw; --y: 50px; --s: 50px; --rot: -4deg; }
  .fm-tm { --x: 12vw; --y: 50px; --s: 50px; --rot: 5deg; }
  .fm-codex { --x: 36vw; --y: 38px; --s: 60px; --rot: 8deg; }
  .fm-deepseek, .fm-glm { display: none; }
  .demo-wrap { margin-top: 56px; }
  .sec-head-row { flex-direction: column; align-items: flex-start; }
  /* On a phone a drawing scrolls sideways instead of shrinking past legibility. */
  .diagram { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .diagram .bus { min-width: 540px; }
  .diagram .flow { min-width: 760px; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .doc-grid, .suggest { grid-template-columns: 1fr; }
  .nb-figs { grid-template-columns: 1fr; }
  .fig-layout { display: none; }
  .cell-code { display: none; }
  .nb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lockup { --k: .3; }
  .foot-cols { grid-template-columns: repeat(2, minmax(120px, auto)); }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 32px); }
  .hero-actions .btn { flex: 1; }
  .chat-log { padding-inline: 16px; }
  .composer { margin-inline: 12px; }
  .nb-cells { padding: 14px 14px 16px 28px; }
  .cell::before { left: -14px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-rise], .fm-card, .pop, .nb-reveal, .fl-back.is-on, .caret, .lockup-glow.is-on { animation: none !important; }
  .fm-card { transform: rotate(var(--rot)); }
  .frame, .frame:hover { transform: none; }
  .btn, .mini, .doc { transition: none; }
}

.nb.is-empty .nb-empty { display: grid; }
.nb.is-empty .cell { display: none; }
.chat-log { scrollbar-width: none; }
.chat-log::-webkit-scrollbar { display: none; }

/* Model picker in the ask box: the models served here, as in the chat's own picker. */
.ask-hint { font-size: 13px; color: var(--ink-4); }
.picker { position: relative; }
.picker-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px 0 10px; border: 0; border-radius: 999px; background: var(--wash); font-size: 13.5px; font-weight: 550; color: var(--ink-2); cursor: pointer; transition: background-color .15s, color .15s; }
.picker-btn:hover, .picker-btn[aria-expanded="true"] { background: #e9edf0; color: var(--ink); }
.picker-btn img { width: 15px; height: 15px; object-fit: contain; }
.chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.picker-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.picker-pop {
  position: absolute; left: -8px; top: calc(100% + 10px); z-index: 20; width: min(420px, calc(100vw - 48px));
  padding: 8px; border: 1px solid var(--rule); border-radius: 16px; background: #fff; text-align: left;
  box-shadow: 0 30px 60px -28px rgba(22, 33, 42, .45), 0 4px 12px -6px rgba(22, 33, 42, .12);
  transform-origin: 20px 0; animation: pick-in .18s var(--ease);
}
@keyframes pick-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.picker-search { display: flex; align-items: center; gap: 8px; margin: 0 2px 6px; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.picker-search svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; }
.picker-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 14px var(--sans); color: var(--ink); }
.picker-search input::placeholder { color: var(--ink-4); }
.picker-list { max-height: 300px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.picker-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.picker-list li img { width: 20px; height: 20px; object-fit: contain; }
.picker-list li b { display: block; font-size: 14px; font-weight: 600; }
.picker-list li small { display: block; font-size: 12px; color: var(--ink-3); }
.picker-list li em { font-style: normal; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.picker-list li.is-active { background: var(--wash); }
.picker-list li[aria-selected="true"] b::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--red); vertical-align: middle; }
.picker-list li[hidden] { display: none; }
.picker-foot { margin: 6px 2px 2px; padding: 8px 10px 4px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--ink-3); }
.picker-empty { padding: 12px 10px; font-size: 13px; color: var(--ink-3); }

/* Four things the platform is for, under the hero. The mark takes a different pose on each. */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 56px 0 0; padding: 0; list-style: none; text-align: left; }
.pillars a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 18px 20px; border: 1px solid var(--rule); border-radius: 16px; background: rgba(255, 255, 255, .72); color: inherit; text-decoration: none; transition: border-color .2s, background-color .2s; }
.pillars a:hover { border-color: var(--rule-2); background: #fff; }
.pillar-mark { display: block; height: 20px; margin-bottom: 8px; }
.pillar-mark svg { width: 44px; height: 16px; }
.pillars b { font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.pillars span:last-child { font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* Claude Code and Codex */
.lede code, .steps code, .byo code { padding: .08em .35em; border-radius: 6px; background: var(--wash); font-family: var(--mono); font-size: .86em; color: var(--ink); }
.start-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(28px, 5vw, 64px); }
.steps { display: flex; flex-direction: column; gap: 26px; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--rule-2); border-radius: 50%; background: #fff; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.steps h3 { margin-top: 5px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.steps p { margin-top: 4px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.term { overflow: hidden; border: 1px solid #1f2a33; border-radius: 16px; background: #10181e; color: #e8edf1; box-shadow: 0 40px 70px -40px rgba(22, 33, 42, .6); }
.term-bar { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-bottom: 1px solid #22303a; background: #141e25; }
.term-dots { display: flex; gap: 6px; }
.term-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2c3a45; }
.tabs { display: flex; gap: 4px; }
.tabs button { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; font-size: 13px; font-weight: 550; color: #97a6b2; cursor: pointer; }
.tabs button img { width: 14px; height: 14px; object-fit: contain; }
.tabs button[aria-selected="true"] { background: #22303a; color: #fff; }
.tabs button img[src*="codex"], .tabs button img[src*="cursor"] { filter: invert(1); }
.term-cfg { margin: 0; padding: 16px 18px; border-bottom: 1px dashed #26343e; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; white-space: pre; overflow-x: auto; color: #d7e0e6; }
.term-cfg .s { color: #8fd3b0; }
.term-cfg .c, .term-run .dim { color: #6f8290; font-style: normal; }
.term-run { min-height: 150px; padding: 14px 18px 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.75; }
.term-run p { white-space: pre-wrap; word-break: break-word; }
.term-run .pr { margin-right: 8px; color: var(--red); }
.term-run .out { color: #fff; font-weight: 700; }
.term-run .caret { background: #e8edf1; }
.clients-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 48px 0 0; padding: 0; overflow: hidden; border: 1px solid var(--rule); border-radius: 14px; background: #fff; list-style: none; }
.clients-row li { display: flex; align-items: center; gap: 12px; padding: 18px 18px; border-right: 1px solid var(--rule); }
.clients-row li:last-child { border-right: 0; }
.clients-row img { width: 22px; height: 22px; flex: none; object-fit: contain; }
.clients-row b { display: block; font-size: 14.5px; font-weight: 600; }
.clients-row code { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.checks { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px dashed var(--rule-2); list-style: none; font-size: 14px; color: var(--ink-2); }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.checks li::before { content: ""; width: 14px; height: 14px; flex: none; background: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f9d55' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); }

/* The model board */
.board { overflow: hidden; border: 1px solid var(--rule); border-radius: 18px; background: #fff; box-shadow: var(--lift); }
.board-head { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--rule); background: #fbfcfd; font-size: 13.5px; color: var(--ink-3); }
.board-head b { font-size: 14px; color: var(--ink); }
.board-price { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: #effaf3; color: #1b7f47; font-size: 12.5px; font-weight: 600; }
.board-rows { margin: 0; padding: 0; list-style: none; }
.board-rows li { display: grid; grid-template-columns: 36px minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, 1fr) 30px 66px; align-items: center; gap: 14px; padding: 12px 20px; border-top: 1px solid #eef1f4; transition: background-color .4s; }
.board-rows li:first-child { border-top: 0; }
.board-rows li.is-serving { background: #fdf6f6; }
.maker { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; }
.maker img { width: 18px; height: 18px; object-fit: contain; }
.mname b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.mname code { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.mmaker { font-size: 14px; color: var(--ink-2); }
.site { justify-self: start; padding: 2px 9px; border-radius: 999px; background: var(--wash); font-size: 12.5px; color: var(--ink-2); }
.caps { display: flex; flex-wrap: wrap; gap: 5px; }
.caps i { padding: 1px 8px; border: 1px solid var(--rule-2); border-radius: 999px; font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.mstate svg { width: 26px; height: 26px; }
.ask-this { height: 30px; padding: 0 12px; border: 1px solid var(--rule-2); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 550; color: var(--ink-2); cursor: pointer; transition: border-color .15s, color .15s, background-color .15s; }
.ask-this:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.byo { max-width: 72ch; margin-top: 18px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.byo b { color: var(--ink); font-weight: 600; }
.bus-note { max-width: 56ch; margin-top: 16px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

/* Fleets */
.split-rev { grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr); }
.split-rev .split-text { order: 2; }
.fleet { overflow: hidden; border: 1px solid var(--rule); border-radius: 18px; background: #fff; box-shadow: var(--lift); }
.fleet-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--rule); background: #fbfcfd; font-size: 13.5px; color: var(--ink-3); }
.fleet-head b { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink); }
.fleet-agents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 12px; list-style: none; }
.fleet-agents li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 12px; transition: border-color .3s, background-color .3s; }
.fleet-agents li.is-busy { border-color: var(--red-soft); background: #fffafa; }
.fa-mark { grid-row: span 2; }
.fa-mark svg { width: 26px; height: 26px; }
.fa-name b { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.fa-name span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.fa-name img { width: 12px; height: 12px; object-fit: contain; }
.fa-where { grid-column: 3; grid-row: 1; justify-self: end; font-size: 11.5px; color: var(--ink-3); }
.fa-state { grid-column: 3; grid-row: 2; justify-self: end; font-size: 11.5px; font-weight: 600; color: var(--ink-4); }
.fleet-agents li.is-busy .fa-state { color: var(--red-ink); }
.fleet-log { min-height: 214px; margin: 0; padding: 4px 12px 14px; list-style: none; border-top: 1px solid var(--rule); }
.fleet-log li { display: grid; grid-template-columns: 124px minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 9px 6px; border-bottom: 1px solid #f0f2f5; font-size: 13px; }
.fleet-log li:last-child { border-bottom: 0; }
.fl-route { font-family: var(--mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.fl-text { color: var(--ink); }
.pill { padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; transition: background-color .3s, color .3s; }
.pill-stored { background: var(--wash); color: var(--ink-3); }
.pill-submitted { background: #fff4e0; color: #9a5b00; }
.pill-replied { background: #effaf3; color: #1b7f47; }

/* Specialist task panel */
.spec-ico { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--slate); color: #fff; font-size: 11.5px; font-weight: 700; }
.ai-avatar.spec-ico { width: 22px; height: 22px; border: 0; border-radius: 50%; }
.task-dot { display: inline-block; width: 10px; height: 10px; border: 2px solid var(--red); border-radius: 50%; }
.task-cancel { padding: 3px 10px; border: 1px solid var(--rule-2); border-radius: 999px; font-size: 12px; color: var(--ink-3); }
.nb-live.is-running i { background: #e3a13a; box-shadow: 0 0 0 3px rgba(227, 161, 58, .18); }
.task-log { margin: 0; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; background: #f6f7f9; list-style: none; font-size: 13px; line-height: 1.5; }
.task-log li { display: flex; align-items: baseline; gap: 9px; padding: 3px 0; color: var(--ink-4); }
.task-log li::before { content: ""; flex: none; width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 50%; transform: translateY(1px); }
.task-log li.is-run { color: var(--ink); }
.task-log li.is-run::before { border-color: var(--red); border-top-color: transparent; animation: spin .8s linear infinite; }
.task-log li.is-done { color: var(--ink-2); }
.task-log li.is-done::before { border-color: #1f9d55; background: #1f9d55; }
.task-log code { font-family: var(--mono); font-size: 12px; color: var(--ink); }
@keyframes spin { to { transform: translateY(1px) rotate(360deg); } }
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 34px 0 0; padding: 0; list-style: none; }
.specs li { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 14px; background: #fff; }
.specs b { font-size: 15px; font-weight: 600; }
.specs span { font-size: 13.5px; color: var(--ink-2); }
/* Stay in control: four promises, each marked with a ring from the mark */
.stance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 34px 0 0; padding: 0; list-style: none; }
.stance li { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 22px; border: 1px solid var(--rule); border-radius: 16px; background: #fff; }
.stance b { display: flex; align-items: center; gap: 9px; font-size: 16.5px; font-weight: 600; letter-spacing: -.015em; }
.stance b::before { content: ""; flex: none; width: 10px; height: 10px; border: 2.4px solid var(--red); border-radius: 50%; }
.stance span { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

/* Closing band */
.cta-inner { max-width: 760px; text-align: center; }
.cta-inner .lede { margin-inline: auto; }
.cta-inner .sec-actions { justify-content: center; }

@media (max-width: 1060px) {
  .board-rows li { grid-template-columns: 36px minmax(0, 1.5fr) minmax(0, 1fr) 66px; }
  .mmaker, .mstate { display: none; }
  .pillars, .specs, .stance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .start-grid { grid-template-columns: 1fr; }
  .clients-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients-row li:nth-child(2) { border-right: 0; }
  .clients-row li:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .split-rev { grid-template-columns: 1fr; }
  .split-rev .split-text { order: 0; }
}
@media (max-width: 680px) {
  .ask-hint { display: none; }
  .board-head span:not(.board-price) { display: none; }
  .board-head b, .board-price { white-space: nowrap; }
  .board-rows li { grid-template-columns: 34px minmax(0, 1fr) auto; row-gap: 6px; }
  .board-rows .caps { display: none; }
  .fleet-agents { grid-template-columns: 1fr; }
  .fleet-log li { grid-template-columns: 1fr auto; }
  .fl-route { grid-column: 1 / -1; }
  .pillars, .specs, .stance, .clients-row { grid-template-columns: 1fr; }
  .clients-row li { border-right: 0; border-bottom: 1px solid var(--rule); }
  .clients-row li:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .picker-pop, .task-log li.is-run::before { animation: none !important; }
}

.ask-inner .lede { margin-inline: auto; }
.ask-inner .ask-box { text-align: left; }
