/* Cotterpin — shared hero styles for the Terminal Proof variants.
   Tokens on :root; a variant overrides tokens, never components. */
:root {
  --bg: #07090D; --panel: #0F141C; --line: #1E2633; --text: #E7ECF3; --muted: #8A96A8;
  --accent: #E8A33D; --accent-hover: #F4B655; --on-accent: #1A1204;
  --ok: #3DDC97; --bad: #FF6B6B; --info: #7AA2FF;
  --term-bg: #0F141C; --term-line: #1E2633; --term-text: #E7ECF3; --term-muted: #8A96A8;
  /* who is speaking in every demo, the same on every page (the legend under each demo says so): you are white,
     your agent is blue, Cotterpin is orange; green passed or allowed, red refused, grey labels */
  --you: var(--term-text); --agent: #6FA6FF; --cot: #F2B04E;
  --maxw: 1200px; --gutter: 24px; --radius: 16px;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* buttons use `all: unset`, which would otherwise override [hidden] */
/* The decorative .glow reaches 10vw past the right edge. Hidden on the viewport alone, a phone's browser still widens
   the page to fit it (a 413 px layout on a 375 px screen). So body is the glow's containing block and clips it itself;
   `clip`, unlike `hidden`, makes no scroll container, so the sticky header keeps working. */
html { color-scheme: dark; overflow-x: hidden; }
body { background: var(--bg); color: var(--text); font: 16px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; position: relative; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; z-index: 10; }

/* glow */
.glow { position: absolute; top: -20vw; right: -10vw; width: 70vw; height: 70vw; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%); }
header, main { position: relative; z-index: 1; }

/* nav */
nav { max-width: var(--maxw); margin: 0 auto; padding: 20px var(--gutter); display: flex; align-items: center; gap: 32px; }
.wordmark { height: 30px; width: auto; display: block; color: var(--text); }
.wordmark text { fill: currentColor; font-family: var(--font-mono); font-size: 38px; font-weight: 700; }
nav ul { display: flex; gap: 24px; list-style: none; padding: 0; margin-left: auto; color: var(--muted); font-size: 14px; }
nav ul a:hover { color: var(--text); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--text) 30%, transparent); }
.install { font: 14px var(--font-mono); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; color: var(--muted); display: inline-flex; gap: 10px; align-items: center; }
.install span { color: var(--accent); }
/* a command is never broken across lines; where it and its Copy button do not fit side by side (a phone, inside a
   list), the button moves under it instead (measured 8 Oct 2026: the first step on /pricing/ split its command in
   two at 375 px) */
.install { flex-wrap: wrap; max-width: 100%; } .install code { white-space: nowrap; }
.install button { all: unset; cursor: pointer; color: var(--muted); font-size: 12px; border-left: 1px solid var(--line); padding-left: 10px; }
.install button:hover { color: var(--text); }
.install a.soon { color: var(--muted); font-size: 12px; border-left: 1px solid var(--line); padding-left: 10px; text-decoration: none; }
.install a.soon:hover { color: var(--text); }

/* type */
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.eyebrow b { color: var(--ok); }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; margin: 20px 0; text-wrap: balance; }
h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 38ch; text-wrap: pretty; }
.lede strong { color: var(--text); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.providers { margin-top: 40px; font-size: 13px; color: var(--muted); }
.providers ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.providers li { border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; color: var(--text); }

/* terminal */
.term { background: var(--term-bg); color: var(--term-text); border: 1px solid var(--term-line); border-radius: var(--radius); overflow: hidden; min-width: 0;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.02); }
.term-bar { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--term-line); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2A3342; }
.term-bar span { margin-left: auto; font: 12px var(--font-mono); color: var(--term-muted); }
.term-body { font: 13.5px/1.8 var(--font-mono); padding: 20px; overflow-x: auto; }
.term-body > div { white-space: pre; opacity: 0; animation: line-in .35s ease forwards; animation-delay: calc(var(--i, 0) * .45s + .2s); }
.p { color: var(--accent); } .ok { color: var(--ok); } .bad { color: var(--bad); } .dim { color: var(--term-muted); } .info { color: var(--info); }
/* speakers: a static terminal's line is Cotterpin's unless it starts with your $ prompt */
.you { color: var(--you); } .ag { color: var(--agent); } .cot { color: var(--cot); }
.term-body > div { color: var(--cot); } .term-body > div:has(> .p:first-child) { color: var(--you); }
/* the legend under every demo (added by assets/js/site.js) */
.demo-key { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.demo-key i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.demo-key .k-you { background: var(--you); } .demo-key .k-agent { background: var(--agent); } .demo-key .k-cot { background: var(--cot); }
.demo-key .k-ok { background: var(--ok); } .demo-key .k-bad { background: var(--bad); } .demo-key .k-dim { background: var(--term-muted); }
.term > .demo-key { margin: 0; padding: 8px 14px 10px; border-top: 1px solid var(--term-line); font-size: 12px; color: var(--term-muted); }
.strike { text-decoration: line-through; text-decoration-color: var(--bad); text-decoration-thickness: 2px; }
.seal { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 6px; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.cursor::after { content: "▍"; color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes line-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .term-body > div { animation: none; opacity: 1; }
  .cursor::after { animation: none; }
}
@media (max-width: 880px) {
  nav ul { display: none; }
  nav .btn { margin-left: auto; }
  .term-body { font-size: 12px; padding: 16px; }
}

/* ── Page sections ─────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter); position: relative; z-index: 1; }
.section + .section { border-top: 1px solid var(--line); }
.kicker { font: 600 12px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.section h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; margin: 14px 0 16px; text-wrap: balance; max-width: 22ch; }
.section .intro { color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); max-width: 60ch; text-wrap: pretty; }
.grid { display: grid; gap: 16px; margin-top: 48px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.card h3 { font-size: 18px; letter-spacing: -.01em; margin: 12px 0 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font: 600 16px var(--font-mono);
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.card .icon.bad { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.card code, .muted-code { font: 13px var(--font-mono); color: var(--text); background: rgba(255,255,255,.05); padding: 1px 6px; border-radius: 5px; }
.card .quote { margin-top: 14px; font: 13px/1.6 var(--font-mono); color: var(--agent); border-left: 2px solid var(--line); padding-left: 12px; }

/* how it works */
.steps { list-style: none; padding: 0; margin-top: 48px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 600 12px var(--font-mono); color: var(--muted); }
.steps li b { display: block; font: 700 15px var(--font-mono); color: var(--accent); margin: 8px 0 6px; }
.steps li span { color: var(--muted); font-size: 13.5px; line-height: 1.5; display: block; }
.steps li.hot { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.steps li.hot b { color: var(--bad); }
.cmds { margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cmds div { font: 13px var(--font-mono); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.cmds div span { color: var(--accent); }
.cmds div small { display: block; color: var(--muted); font: 12px var(--font-sans); margin-top: 4px; }

/* use-case explorer (how it works) */
.uc { margin-top: 40px; }
.uc-tabs { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; }
.uc-tab { all: unset; cursor: pointer; position: relative; overflow: hidden; padding: 12px 18px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-weight: 600; font-size: 15px; transition: border-color .2s, background .2s; }
.uc-tab small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.uc-tab:hover { border-color: color-mix(in srgb, var(--text) 25%, var(--line)); }
.uc-tab[aria-selected="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.uc-tab:focus-visible, .uc-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.uc-tab .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); transition: width .4s ease; }
.uc-play { all: unset; cursor: pointer; margin-left: auto; align-self: center; font: 12px var(--font-mono); color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; }
.uc-play:hover { color: var(--text); border-color: color-mix(in srgb, var(--text) 25%, var(--line)); }
.uc.paused .uc-play { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.uc.paused .node.active .dot, .uc.paused .msg .typed::after { animation-play-state: paused; }
.uc-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.uc-side { background: var(--term-bg); border: 1px solid var(--term-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.uc-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--term-line); font: 12px var(--font-mono); color: var(--term-muted); }
.uc-surface { color: var(--term-text); }
.uc-branch { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px; border-radius: 6px; border: 1px solid var(--term-line); color: var(--term-text); transition: all .3s; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-branch small { font-size: 11px; color: var(--term-muted); }
.uc-branch.isolated { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); animation: branch-flash .6s ease; }
.uc-branch.isolated small { color: var(--accent); }
@keyframes branch-flash { from { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent); } to { box-shadow: 0 0 0 0 transparent; } }
.uc-tag { border: 1px solid var(--term-line); border-radius: 6px; padding: 0 6px; }
.uc-chat { height: 560px; overflow-y: auto; scrollbar-width: none; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.uc-chat::-webkit-scrollbar { display: none; }
.msg { flex-shrink: 0; max-width: 92%; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; animation: line-in .3s ease both; }
.msg .who { display: block; font: 600 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 3px; }
/* The speakers' colours (--you, --agent, --cot) are the same in every demo on the site. */
.msg.user { align-self: flex-end; color: var(--you); background: rgba(255,255,255,.06); border: 1px solid var(--term-line); }
.msg.user .who { color: var(--term-muted); }
.msg.agent { align-self: flex-start; color: var(--agent); background: color-mix(in srgb, var(--agent) 10%, var(--term-bg)); border: 1px solid color-mix(in srgb, var(--agent) 30%, transparent); }
.msg.agent .who, .msg.agent .txt { color: var(--agent); }
.msg.cot { align-self: stretch; max-width: none; color: var(--cot); font: 13px/1.6 var(--font-mono); background: color-mix(in srgb, var(--accent) 6%, var(--term-bg)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-left: 3px solid var(--accent); border-radius: 8px; }
.msg.cot .who { color: var(--accent); }
.msg.term { color: var(--you); }
/* the files an agent creates, inside its message in the /how-it-works/ explorer */
.uc-files { list-style: none; margin: 8px 0 0; padding: 8px 10px; border: 1px solid var(--term-line); border-radius: 8px; background: var(--term-bg); font: 12px/1.7 var(--font-mono); color: var(--term-muted); }
.uc-files code { color: var(--ok); font: inherit; }
.msg.term { align-self: stretch; max-width: none; font: 13px/1.6 var(--font-mono); padding: 4px 2px; border-radius: 0; }
.msg.term .p { color: var(--accent); }
.msg .typed::after { content: "▍"; color: var(--accent); animation: blink 1s steps(1) infinite; }
.uc-flow { list-style: none; margin: 0; padding: 16px 16px 8px; display: grid; gap: 10px; flex: 1; align-content: start; }
.node { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; padding: 8px 14px; border: 1px solid var(--term-line); border-radius: 12px; background: rgba(255,255,255,.02); color: var(--term-muted); transition: border-color .3s, color .3s, background .3s; }
.node + .node::before { content: ""; position: absolute; left: 28px; top: -11px; width: 2px; height: 10px; background: var(--term-line); transition: background .3s; }
.node .dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--term-line); display: grid; place-items: center; font: 600 12px var(--font-mono); transition: all .3s; }
.node b { display: block; font-weight: 600; font-size: 14px; color: inherit; }
.node em { display: block; font: normal 12px var(--font-mono); color: var(--term-muted); min-height: 0; }
.node.active { color: var(--term-text); border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.node.active .dot { border-color: var(--accent); color: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.node.ok { color: var(--term-text); }
.node.ok .dot { background: var(--ok); border-color: var(--ok); color: #04170F; }
.node.ok::before { background: var(--ok); }
.node.bad { color: var(--term-text); border-color: color-mix(in srgb, var(--bad) 55%, transparent); background: color-mix(in srgb, var(--bad) 7%, transparent); }
.node.bad .dot { background: var(--bad); border-color: var(--bad); color: #1D0607; }
.node.bad em { color: var(--bad); }
.uc-result { margin: 8px 16px 16px; min-height: 48px; padding: 12px 14px; border-radius: 10px; font-size: 14px; color: var(--term-muted); border: 1px dashed var(--term-line); transition: all .3s; }
.uc-result.show { color: var(--term-text); border-style: solid; border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 8%, transparent); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }
@media (prefers-reduced-motion: reduce) { .node.active .dot, .msg .typed::after { animation: none; } .msg { animation: none; } }
@media (max-width: 880px) { .uc-stage { grid-template-columns: 1fr; } .uc-chat { height: 380px; } .uc-play { margin-left: 0; } }

/* session report */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split > * { min-width: 0; }
/* /how-it-works/ shows the shared example session card (data/partials/session-card.fragment) on its own */
.sc-single { min-width: 0; }
.sc-single .sc-note { margin: 14px 0 0; }
.checks { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--muted); }
.checks li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.checks b { color: var(--text); font-weight: 600; }

/* update demo */
.upd-body { height: 430px; overflow-y: auto; scrollbar-width: none; font: 13px/1.7 var(--font-mono); padding: 18px 20px; }
.upd-body::-webkit-scrollbar { display: none; }
.upd-body > div { white-space: pre-wrap; animation: line-in .25s ease both; }
.upd-notice { border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; }
.upd-notice b { color: var(--accent); }
.upd-h { margin-top: 12px; font-weight: 700; color: var(--term-text); }
.upd-new { color: var(--ok); }
.upd-pack { display: inline-block; padding: 0 6px; border-radius: 4px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); font-weight: 700; }
.upd-body .typed::after { content: "▍"; color: var(--accent); animation: blink 1s steps(1) infinite; }

/* security */
.sec-grid .card h3 { font-size: 16px; }
.sec-grid .card p { font-size: 14px; }
.sub-h { font-size: 18px; margin: 56px 0 16px; letter-spacing: -.01em; }
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.matrix { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.matrix th, .matrix td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.matrix tbody tr:last-child th, .matrix tbody tr:last-child td { border-bottom: 0; }
.matrix th[scope="row"] { text-align: left; font-weight: 500; color: var(--text); }
.matrix thead th { font: 600 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.matrix thead th:first-child { text-align: left; }
.matrix td { color: var(--ok); font-weight: 700; }
.matrix td.no { color: var(--muted); font-weight: 400; }
.matrix td.soon { color: var(--muted); font-weight: 400; font-size: 12px; }
.matrix th .soon { color: var(--muted); font-weight: 400; font-size: 12px; }
.matrix tbody td { width: 12%; }
.matrix tr > :nth-child(3) { background: color-mix(in srgb, var(--accent) 5%, transparent); }
/* a matrix of words, not ticks: comparisons, requirements, procurement facts */
.matrix.text { min-width: 0; }                /* words wrap on a phone; only a wide table scrolls sideways */
.matrix.text.wide { min-width: 760px; }
.matrix.text th, .matrix.text td { text-align: left; }
.matrix.text td { color: var(--muted); font-weight: 400; width: auto; }
.matrix.text tr > :nth-child(3) { background: none; }
.matrix.text td.yes { color: var(--ok); font-weight: 600; }

/* compatibility */
.compat { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-size: 14px; }
.chip small { color: var(--muted); margin-left: 6px; font-size: 12px; }

/* pricing */
.free-banner { margin-top: 40px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; justify-content: space-between; padding: 22px 24px; border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.free-banner b { font-size: 18px; }
.free-banner p { color: var(--muted); margin-top: 4px; max-width: 70ch; }
.billing { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; margin-top: 32px; }
.billing button { all: unset; cursor: pointer; padding: 6px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); }
.billing button { transition: background .2s, color .2s; }
.billing button:hover { color: var(--text); }
.billing button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.billing button[aria-pressed="true"] small { color: var(--on-accent); opacity: .75; }
.billing button:focus-visible { outline: 2px solid var(--accent); }
.billing small { color: var(--ok); margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 30px 60px -30px color-mix(in srgb, var(--accent) 50%, transparent); }
.plan { position: relative; }
.plan .badge { position: absolute; top: -11px; left: 24px; font: 600 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); padding: 3px 8px; border-radius: 6px; }
.plan h3 { font-size: 18px; }
.plan .who { color: var(--muted); font-size: 14px; margin-top: 4px; min-height: 42px; }
.plan .price { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin-top: 16px; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .note { color: var(--muted); font-size: 13px; min-height: 20px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; font-size: 14px; }
/* A feature line is ordinary text with its tick hung in the margin. (A grid made every <code> and <a> inside the
   line a grid item of its own, wrapped into the 18 px tick column: "cotterpin login" and "Terms §4" broke apart.) */
.plan li { position: relative; padding-left: 26px; }
.plan li::before { content: "✓"; color: var(--ok); position: absolute; left: 0; }
.plan .btn { margin-top: auto; justify-content: center; }
.plan-fine { margin-top: 10px; text-align: center; font-size: 12.5px; color: var(--muted); }
.nocard { margin-top: 14px; font-size: 14px; color: var(--muted); }
.nocard span[aria-hidden] { color: var(--ok); }
.nocard span[aria-hidden]:nth-child(2) { color: var(--line); }

/* faq */
.faq { margin-top: 40px; display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font: 400 20px var(--font-mono); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 18px; max-width: 70ch; }

/* final cta + footer */
.cta { text-align: center; }
.cta h2 { margin-left: auto; margin-right: auto; }
.cta .actions { justify-content: center; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer .inner { max-width: var(--maxw); margin: 0 auto; padding: 40px var(--gutter); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.site-footer nav { padding: 0; margin: 0; gap: 20px; flex-wrap: wrap; }

/* reveal on scroll (progressive: content is visible without JS) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .grid-2, .grid-3, .split, .compat { grid-template-columns: 1fr; }
  .cmds { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .plans, .grid-4, .cmds, .steps { grid-template-columns: 1fr; }
}

/* ── Footer (all pages) ───────────────────────────────────────────────────────── */
.footer-grid { display: grid !important; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-grid nav { display: block !important; max-width: none; margin: 0; padding: 0 !important; }
.footer-grid nav ul { display: grid !important; margin-left: 0 !important; gap: 8px; color: var(--muted); font-size: 14px; }
.footer-grid h2, .footer-grid h4 { font: 600 12px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer-grid a:hover { color: var(--text); }
.footer-grid .tagline { margin-top: 12px; max-width: 32ch; }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 16px var(--gutter) 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.status-dot { display: inline-flex; align-items: center; gap: 8px; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
nav ul a[aria-current="page"] { color: var(--text); }
.footer-bottom .ph { font-size: .85em; }
.cookie-settings { all: unset; cursor: pointer; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
/* /pricing/#founding: the Founding Developers application form (assets/js/founding.js) */
.founding-apply { margin-top: 32px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); max-width: 720px; }
.founding-apply h3 { margin: 0 0 8px; font-size: 20px; }
.founding-places { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 6px; }
.founding-places li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.founding-places li span { color: var(--ok); }
.founding-places li.full span { color: var(--muted); }
.founding-form { display: grid; gap: 16px; margin-top: 8px; }
.founding-form label, .founding-form fieldset { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: var(--text); border: 0; padding: 0; margin: 0; }
.founding-form legend { padding: 0; margin-bottom: 6px; }
.founding-form small { font-weight: 400; color: var(--muted); font-size: 13px; }
.founding-form input:not([type="checkbox"]), .founding-form select, .founding-form textarea { font: inherit; font-weight: 400; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; box-sizing: border-box; }
.founding-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.founding-form .check input { margin-top: 4px; }
.founding-form .founding-agree { font-size: 14px; color: var(--muted); }
.founding-form button { justify-self: start; }
.founding-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.founding-status { margin-top: 12px; font-size: 15px; }
.founding-status.ok { color: var(--ok); } .founding-status.bad { color: var(--bad); }
.cookie-settings:hover { color: var(--text); }
.cookie-settings:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* the Google Analytics consent notice (assets/js/consent.js): Reject and Accept equally prominent */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; margin: 0 auto; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 60px -10px rgba(0,0,0,.6); color: var(--text); font-size: 14px; line-height: 1.6; }
.consent a { color: var(--accent); text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; margin-top: 12px; }
.consent-actions button { all: unset; cursor: pointer; flex: 1; text-align: center; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--accent); color: var(--text); font-weight: 600; }
.consent-actions button:hover { background: color-mix(in srgb, var(--accent) 15%, transparent); }
.consent-actions button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
/* the main menu scrolls sideways on narrow screens instead of disappearing */
@media (max-width: 880px) {
  .site-header nav { flex-wrap: wrap; row-gap: 10px; }
  .site-header nav ul { display: flex; order: 3; width: 100%; margin-left: 0; gap: 18px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .site-header nav ul::-webkit-scrollbar { display: none; }
  .site-header nav ul li { flex-shrink: 0; }
}

/* ── Compliance badges ─────────────────────────────────────────────────────────── */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 16px; }
.cert { color: var(--text); display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 7%, var(--panel)), var(--panel)); }
.cert svg { width: 44px; height: 44px; }
.cert b { display: block; font-size: 14px; letter-spacing: -.01em; }
.cert span { display: block; font-size: 12px; color: var(--muted); }
.cert svg .ring { stroke: var(--accent); fill: none; stroke-width: 2; }
.cert svg .fill { fill: color-mix(in srgb, var(--accent) 14%, transparent); }
.cert svg text { fill: var(--text); font: 700 9px var(--font-mono); }
.cert.ok svg .ring { stroke: var(--ok); } .cert.ok svg .fill { fill: color-mix(in srgb, var(--ok) 14%, transparent); }

/* ── Sub-pages ─────────────────────────────────────────────────────────────────── */
.page-hero { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter) 24px; position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(38px, 5.5vw, 64px); max-width: 18ch; }
.page-hero .lede { max-width: 60ch; }
.prose { max-width: 72ch; }
.prose p, .prose li { color: var(--muted); font-size: 16px; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 20px; display: grid; gap: 8px; margin-top: 12px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .kicker, .prose .role { color: var(--accent); }
.prose h3 { font-size: 20px; margin: 32px 0 10px; letter-spacing: -.01em; }

/* long-form articles (the blog): a narrow reading column, generous line height and clear space between sections */
.post { max-width: 68ch; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter) 120px; position: relative; z-index: 1; }
.post .kicker { color: var(--accent); font: 600 13px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.post h1 { font-size: clamp(34px, 4.5vw, 52px); line-height: 1.15; letter-spacing: -.02em; margin: 16px 0 28px; }
.post .lede { font-size: 20px; line-height: 1.75; color: var(--text); margin: 0 0 56px; }
.post h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; letter-spacing: -.01em; margin: 72px 0 20px;
  padding-top: 40px; border-top: 1px solid var(--line); }
.post p, .post li { font-size: 18px; line-height: 1.8; color: var(--muted); }
.post p + p { margin-top: 26px; }
.post ul { padding-left: 24px; display: grid; gap: 16px; margin: 26px 0; }
.post strong { color: var(--text); font-weight: 600; }
.post a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post code { font: 15px var(--font-mono); color: var(--info); }
.post .tape-demo { margin: 40px 0; }
.post .tape-demo .tape { height: 300px; }
@media (max-width: 560px) { .post p, .post li { font-size: 17px; } .post .lede { font-size: 18px; } .post h2 { margin-top: 56px; } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.list-card ul { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 14px; }
.list-card li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; color: var(--muted); font-size: 15px; }
.list-card.leaves li::before { content: "→"; color: var(--accent); }
.list-card.never li::before { content: "✕"; color: var(--bad); }
.codeline { display: block; font: 13px/1.7 var(--font-mono); background: var(--term-bg); border: 1px solid var(--term-line); border-radius: 10px; padding: 12px 14px; margin-top: 12px; color: var(--term-text); white-space: pre-wrap; }
.codeline .p { color: var(--accent); }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

/* ── Changelog ─────────────────────────────────────────────────────────────────── */
.cl-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cl-filters button { all: unset; cursor: pointer; font-size: 14px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.cl-filters button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.cl-filters button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cl { list-style: none; padding: 0; margin-top: 32px; display: grid; gap: 0; }
.cl > li { display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.cl-meta .ver { font: 700 22px var(--font-mono); }
.cl-meta time, .cl-meta .when { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.cl-meta .latest { display: inline-block; margin-top: 10px; font: 600 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); padding: 2px 8px; border-radius: 6px; }
.cl-body h3 { font-size: 20px; letter-spacing: -.01em; }
.cl-body > p { color: var(--muted); margin-top: 6px; }
.cl-items { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 10px; }
.cl-items li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; font-size: 15px; }
.cl-items li[hidden] { display: none; }
.tag { justify-self: start; font: 600 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; border: 1px solid; }
.tag.new { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.tag.gates { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.tag.improved { color: var(--info); border-color: color-mix(in srgb, var(--info) 40%, transparent); }
.tag.fixed { color: var(--muted); border-color: var(--line); }
.tag.security { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.cl-items .muted { color: var(--muted); }
@media (max-width: 760px) { .cl > li { grid-template-columns: 1fr; gap: 12px; } }

/* ── About / Contact ───────────────────────────────────────────────────────────── */
.founder { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: start; margin-top: 32px; }
.avatar { width: 120px; height: 120px; border-radius: 24px; display: grid; place-items: center; background: var(--term-bg); border: 1px solid var(--line); }
.avatar svg { width: 64px; height: 64px; }
.founder .role { font: 600 12px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.contact-cards .card { display: flex; flex-direction: column; }
.contact-cards .card .btn { margin-top: auto; align-self: flex-start; }
.contact-cards .card p { margin-bottom: 20px; }
@media (max-width: 880px) { .founder { grid-template-columns: 1fr; } .contact-cards { grid-template-columns: 1fr; } }

/* ── Legal pages (terms, privacy, refund) ─────────────────────────────────────── */
.draft-banner { max-width: var(--maxw); margin: 24px auto 0; padding: 0 var(--gutter); position: relative; z-index: 1; }
.draft-banner > div { border: 2px dashed var(--bad); background: color-mix(in srgb, var(--bad) 9%, var(--panel)); border-radius: 12px; padding: 14px 18px; }
.draft-banner b { display: block; font: 700 13px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bad); }
.draft-banner p { color: var(--text); font-size: 14px; margin-top: 6px; max-width: 90ch; }
.ph { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); border: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 5px; padding: 0 5px; font: 600 .9em var(--font-mono); }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.legal-layout > * { min-width: 0; }
.legal-toc { position: sticky; top: 96px; font-size: 14px; display: block; max-width: none; margin: 0; padding: 0; }
nav.related { display: block; max-width: none; margin: 48px 0 0; padding: 24px 0 0; }
.legal-toc h2 { font: 600 12px var(--font-mono) !important; letter-spacing: .1em !important; text-transform: uppercase; color: var(--text); margin: 0 0 12px !important; }
.legal-toc ol { padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
.legal-toc a:hover { color: var(--text); }
.legal-meta { color: var(--muted); font-size: 14px; display: grid; gap: 4px; margin-bottom: 8px; }
.legal-meta b { color: var(--text); font-weight: 600; }
.legal { max-width: 78ch; }
.legal h2 { font-size: 22px !important; line-height: 1.25 !important; letter-spacing: -.01em !important; max-width: none !important; margin: 44px 0 12px !important; scroll-margin-top: 96px; }
.legal h2:first-child { margin-top: 0 !important; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 16px; }
.legal p + p, .legal ul + p, .legal ol + p, .legal p + ul, .legal p + ol { margin-top: 12px; }
.legal ul, .legal ol { padding-left: 22px; display: grid; gap: 8px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a:not(.btn) { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); text-underline-offset: 3px; }
.legal blockquote { margin: 14px 0; padding: 10px 16px; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--panel)); border-radius: 0 10px 10px 0; color: var(--text); font-size: 15px; }
.legal .summary { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 8px 0 8px; }
.legal .summary ul { margin-top: 10px; }
.legal-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-top: 14px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.legal-table thead th { font: 600 12px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.legal-table th[scope="row"] { color: var(--text); font-weight: 600; }
.legal-table tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 880px) { .legal-layout { grid-template-columns: 1fr; } .legal-toc { position: static; } }
.print-only { display: none; }
.licence-text { margin-top: 14px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.licence-text h3:first-child { margin-top: 0; }
.related { border-top: 1px solid var(--line); }
.related ul { list-style: none; padding: 0; display: flex !important; flex-wrap: wrap; gap: 8px 18px; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 12px; }
.legal-actions .btn { font-size: 14px; padding: 8px 14px; }
.crumbs { font-size: 14px; color: var(--muted); margin-top: 12px; }
.crumbs a { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); text-underline-offset: 3px; }

/* ── Legal hub ─────────────────────────────────────────────────────────────────── */
.policy-list { list-style: none; padding: 0; margin-top: 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.policy-list > li { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; min-width: 0; }
.policy-list h2 { font-size: 19px !important; line-height: 1.25 !important; letter-spacing: -.01em !important; margin: 0 0 6px !important; max-width: none !important; }
.policy-list p { color: var(--muted); font-size: 15px; }
.policy-list .meta { font: 12.5px var(--font-mono); color: var(--muted); margin-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.policy-list .meta b { color: var(--text); font-weight: 600; }
.policy-list .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 16px; }
.policy-list .links .btn { font-size: 14px; padding: 8px 14px; }
@media (max-width: 880px) { .policy-list { grid-template-columns: 1fr; } }

/* Session and weekly cards (How it works). The box is a CSS border, never box-drawing
   characters, so the right edge lines up in every font and width. */
.sc-title { margin: 48px 0 6px; font-size: 20px; }
.sc-note { color: var(--muted); font-size: 14px; max-width: 70ch; margin: 0 0 16px; }
.sc-note code { font-family: var(--font-mono); color: var(--info); }
.sc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.term.sc-card { margin: 0; overflow-x: auto; }
.sc-box { position: relative; width: max-content; margin: 22px 16px 16px; padding: 18px 20px 12px; border: 1.5px solid var(--accent);
  border-radius: 12px; white-space: pre; overflow: visible; font: 13px/1.7 var(--font-mono);
  font-variant-numeric: tabular-nums; }
.sc-legend { position: absolute; top: -0.85em; left: 12px; padding: 0 8px; background: var(--term-bg);
  color: var(--accent); font-weight: 700; white-space: nowrap; }
/* the card is Cotterpin speaking: its values are Cotterpin's colour, bold; the task you gave is yours (.you) */
.sc-box { color: var(--cot); } .sc-box b, .sc-box .info { color: inherit; font-weight: 700; }
@media (max-width: 880px) { .sc-grid { grid-template-columns: 1fr; } }
.sc-grid > * { min-width: 0; }   /* a card wider than its column scrolls inside itself, never the page */
.illustration-tag { display: inline-block; margin-right: 8px; padding: 2px 10px; border: 1px solid var(--accent); border-radius: 999px;
  font: 600 12px var(--font-mono); color: var(--accent); vertical-align: 1px; }

/* Homepage strip pointing at the Founding Developers offer on /pricing/#founding. */
.founding-banner { max-width: var(--maxw); margin: 16px auto 0; padding: 10px var(--gutter); position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; color: var(--muted); }
.founding-banner-tag { padding: 2px 10px; border: 1px solid var(--accent); border-radius: 999px; font: 600 12px var(--font-mono); color: var(--accent); }
.founding-banner a { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.founding-banner a:hover, .founding-banner a:focus-visible { color: var(--accent-hover); text-decoration: underline; }

/* a terminal demo's footer: a caption, and Pause / Replay (the home page's hero and the update demo on /how-it-works/) */
.term-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--term-line); font: 12px var(--font-mono); color: var(--term-muted); }
.term-foot button { all: unset; cursor: pointer; border: 1px solid var(--term-line); border-radius: 6px; padding: 3px 10px; }
.term-foot button:hover { color: var(--term-text); }
.term-foot button:focus-visible { outline: 2px solid var(--accent); }
.term-controls { display: inline-flex; gap: 6px; }
.term-foot button.is-paused { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, var(--term-line)); }
/* on a phone the middle caption of a three-part footer goes; the controls never do */
@media (max-width: 560px) { .term-foot > span:nth-child(2):not(:last-child) { display: none; } }

/* illustrative terminal demos (assets/js/demo-tape.js): marked as illustrations until real recordings replace them */
.tape-demo { margin: 32px 0 0; }
/* /pricing/#report-a-bug: the three ways a bug report starts, one tab each */
.bug-demo { margin-top: 32px; }
.bug-demo .stack-tabs { margin-top: 16px; }
.bug-demo .tape-demo { margin-top: 16px; }
.bug-demo .tape-demo .tape { height: 420px; }
.never-sent { margin-top: 16px; }
/* /how-it-works/ "your stack": one pill per language pack above its demo */
.stack-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.stack-tab, .lang-tab { all: unset; cursor: pointer; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-weight: 600; font-size: 14px; color: var(--muted); }
.stack-tab:hover, .lang-tab:hover { color: var(--text); }
.stack-tab[aria-selected="true"], .lang-tab[aria-selected="true"] { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.stack-tab:focus-visible, .lang-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* the language pills above the use-case explorer on /how-it-works/ */
.uc-langs { margin: 24px 0 16px; }
.stack-demo { margin-top: 16px; }
.tape-demo .tape { height: 340px; overflow-y: auto; font: 13px/1.7 var(--font-mono); padding: 16px 18px; white-space: pre-wrap; overflow-wrap: anywhere; }
/* demo-tape.js marks each line by its speaker: .you (a command you type), .cot (what Cotterpin prints); an agent's
   line is a .ag span inside it. A .q is a command Cotterpin suggests, so it is Cotterpin's colour, made bold. */
.tape-demo .tape .you { color: var(--you); } .tape-demo .tape .cot { color: var(--cot); }
.tape-demo .tape .q { color: var(--cot); font-weight: 600; } .tape-demo .tape b { color: inherit; }
.tape-demo .tape .typed::after { content: "▍"; color: var(--accent); animation: blink 1s steps(1) infinite; }
.tape-demo .tape-foot, .live-band .tape-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 14px; border-top: 1px solid var(--term-line); font: 12px var(--font-mono); color: var(--term-muted); }
.tape-demo .tape-foot button, .live-band .tape-foot button { all: unset; cursor: pointer; border: 1px solid var(--term-line); border-radius: 6px; padding: 3px 10px; }
.tape-demo .tape-foot button:focus-visible, .live-band .tape-foot button:focus-visible { outline: 2px solid var(--accent); }
.tape-demo .illustration, .live-band .illustration { color: var(--accent); }
/* live-band.js: the run band above the prompt, drawn in the orange it has in the terminal */
.live-band { margin: 32px 0 0; }
.live-band .live-screen { margin: 0; min-height: 120px; padding: 16px 18px; font: 13px/1.7 var(--font-mono); color: var(--accent); white-space: pre; overflow-x: auto; }
.live-band .live-screen .lb-bar { letter-spacing: -1px; }
@media (max-width: 560px) { .tape-demo .tape { height: 380px; font-size: 12px; } }

/* team packs: a five-step lifecycle, and when a card's feature arrives */
.steps.steps-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .steps.steps-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps.steps-5 { grid-template-columns: 1fr; } }
.card .soon { display: block; margin-top: 10px; font: 600 12px var(--font-mono); color: var(--accent); }
#tp-seat { margin-top: 24px; }
#tp-seat .tape { height: 220px; }
