/* Hallmark · shape: Narrative Workflow · genre: modern-minimal · theme: Cobalt in the Callog brand orange (deal 3/3, seed callog-git-first-routing-engineering-e767·e02443d3·2026-11-03·r0) · job: try · draw: 1220a7
 * hero: Corridor over a Showcase, after postiz.com by request · nav: banner over a retracting bar · footer: mast · imagery: the product · signature: a failing CI run tagging @maya in #fe-alerts, then editing the alert when the fix lands, on an ember frame with a self-hosted and cloud switch
 * axes: dark hero over light paper/grotesk-sans/warm accent · posture: committed (the ember frame is --color-ember-*, the brand gradient) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V4 · weakest: R, the hero carries an icon row and a switch; the icon row is monochrome and the frame holds the only colour */
/* Hallmark · waive 6b · 44b passes: headline, sentence and both actions sit above 800px · the centred hero over a framed product follows postiz.com, the reference the user named */
/* Hallmark · waive 38iii · the @maya chip is the product's own mention, appearing once in the hero · it is the alert's output, not decoration */
/* Hallmark · waive 84 · the renders and the demo are built from the repo route fixture inside the hero frame · capturing Slack and Telegram needs a live workspace with private data */
/* Hallmark · waive 47b · one frame kind, code on graphite with a real filename caption · the route config and workflow are the product being shown */
/* Hallmark · dismissed 58 · about 160 counted words are the route YAML and the workflow diff and about 90 are the hero demo's sample run, the product shown rather than copy */
/* Hallmark · dismissed 23 · the accent banner is one 36px strip, about 4% of a 900px viewport, the brand orange the user asked for */
/* Hallmark · dismissed 3 · the coloured left edges on .ping and .annot are the status bar a chat attachment carries, red for failed and green for passed, not a card stripe */
/* Hallmark · dismissed F4 · Self-hosted and Cloud are tabs of one segmented switch, not two actions */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --bar-h: 64px;
  --key-h: 48px;
  --key-h-s: 40px;
  --wordmark: clamp(5rem, 16vw, 15rem);
  --radius-frame: 24px;
  --radius-pane: 16px;
  --lift: -2px;
  --nudge: 3px;
  --grow: 1.08;
}

/* chrome, on night */
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

.banner { background: var(--color-accent); color: var(--color-accent-ink); font-size: var(--text-sm); }
.banner .container { padding-block: var(--space-xs); text-align: center; }
.banner p { max-width: none; }
.banner a { color: inherit; font-weight: 500; text-decoration-color: color-mix(in oklab, var(--color-accent-ink) 40%, transparent); }
.banner a:hover { text-decoration-color: var(--color-accent-ink); }
.banner a:focus-visible { outline-color: var(--color-accent-ink); }

.bar { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-night); border-bottom: var(--rule-hair) solid var(--color-night-rule); color: var(--color-night-ink); transition: transform var(--dur-short) var(--ease-out); }
.bar.is-hidden { transform: translateY(calc(-100% - 12px)); }
.bar__inner { display: flex; align-items: center; gap: var(--space-xl); min-height: var(--bar-h); }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-xs); font: 600 var(--text-xl)/1 var(--font-display); letter-spacing: var(--tracking-display); text-decoration: none; color: inherit; }
.wordmark .mark { width: 30px; height: 30px; color: var(--color-accent); }
.wordmark:focus-visible, .bar__links a:focus-visible { outline-color: var(--color-night-focus); outline-offset: 4px; }
.bar nav { margin-left: auto; }
.bar__links { display: flex; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.bar__links a { font: 500 var(--text-sm)/1 var(--font-display); color: var(--color-night-muted); text-decoration: none; white-space: nowrap; transition: color var(--dur-micro) var(--ease-out); }
.bar__links a:hover { color: var(--color-night-ink); }

/* keys */
.key { display: inline-flex; align-items: center; justify-content: center; min-height: var(--key-h); padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-input); background: var(--color-key-face); color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-display); white-space: nowrap; text-decoration: none; cursor: pointer; box-shadow: var(--shadow-key); transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out); }
.key:hover { transform: translateY(-1px); }
.key:active { transform: translateY(3px); box-shadow: var(--shadow-key-press); }
.key:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.key:disabled, .key[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.key--primary { background: var(--color-accent); border-color: var(--color-accent-edge); color: var(--color-accent-ink); box-shadow: var(--shadow-key-accent); }
.key--night { background: var(--color-night-2); border-color: var(--color-night-rule); color: var(--color-night-ink); box-shadow: 0 3px 0 0 var(--color-night-rule); }
.key--night:active { box-shadow: none; }
.hero .key:focus-visible, .bar .key:focus-visible { outline-color: var(--color-night-focus); }
.key--small { min-height: var(--key-h-s); padding: 0 var(--space-md); font-size: var(--text-sm); }

.link { font: 500 var(--text-md)/1.3 var(--font-display); color: var(--color-ink); text-decoration-color: var(--color-rule-2); transition: text-decoration-color var(--dur-micro) var(--ease-out); }
.link:hover { text-decoration-color: var(--color-accent); }

code, pre { font-family: var(--font-outlier); }
:not(pre) > code { font-size: 0.9em; }

/* hero: a centred corridor over the framed product */
.hero { overflow: clip; background: var(--color-night); color: var(--color-night-ink); padding-block: var(--space-3xl) var(--section-gap-s); }
.hero__text { display: grid; justify-items: center; text-align: center; }
.hero h1 { max-width: 22ch; color: var(--color-night-ink); font-size: clamp(2.75rem, 4.4vw + 0.75rem, 5.5rem); line-height: 1.04; }
/* Icons and words share the headline's baseline. The em offsets come from Familjen Grotesk: caps reach 0.65em and @ spans -0.11em to 0.66em, so the chip sits evenly around @ and the icons centre on the text. */
.chip { display: inline-flex; align-items: baseline; gap: 0.18em; margin-bottom: -0.1em; padding: 0 0.22em 0.237em; border-radius: 0.2em; background: var(--color-accent); color: var(--color-accent-ink); white-space: nowrap; overflow: clip; }
.chip svg { width: 0.72em; height: 0.72em; transform: translateY(0.084em); }
.chip .rot { line-height: 0.875; }
.where { display: inline-flex; align-items: baseline; }
.where svg { width: 0.62em; height: 0.62em; margin-right: 0.16em; color: var(--color-accent); transform: translateY(-0.015em); }
.rot { display: inline-grid; overflow: clip; padding-block: 0.1em; margin-block: -0.1em; }
.rot.is-rolling { transition: width var(--dur-long) var(--ease-in-out); }
.rot__item { grid-area: 1 / 1; justify-self: start; display: inline-flex; align-items: baseline; }
html:not(.js) .rot__item:not(:first-child) { visibility: hidden; }
/* One word rolls out as the next rolls in, on the same curve; the resting state has no transition, so a word never travels back through the frame. */
.js .rot__item { visibility: hidden; transform: translateY(calc(100% + 0.12em)); }
.js .rot__item.is-on, .js .rot__item.is-out { visibility: visible; transition: transform var(--dur-long) var(--ease-in-out); }
.js .rot__item.is-on { transform: none; }
.js .rot__item.is-out { transform: translateY(calc(-100% - 0.12em)); }
.hero .lead { margin-top: var(--space-lg); color: var(--color-night-muted); max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); margin-top: var(--space-xl); }
.integrations { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-lg); margin: var(--space-xl) 0 0; padding: 0; list-style: none; color: var(--color-night-muted); }
.integrations svg { width: 24px; height: 24px; }

.demo { display: grid; justify-items: center; gap: var(--space-lg); margin-top: var(--space-3xl); }
.demo .tray--night { justify-self: center; background: var(--color-night-2); }
.demo .tray--night .tray__key { color: var(--color-night-muted); }
.demo .tray--night .tray__key:hover { color: var(--color-night-ink); }
.demo .tray--night .tray__key[aria-selected="true"] { background: var(--color-night-3); border-color: var(--color-night-rule); color: var(--color-night-ink); box-shadow: none; }
.demo .tray--night .tray__key:focus-visible { outline-color: var(--color-night-focus); }
/* A hairline border, and one large blurred light behind the panel that slowly changes shape. */
.demo__frame { position: relative; isolation: isolate; width: 100%; max-width: 72rem; border-radius: var(--radius-pane); }
.demo__frame::before { content: ""; position: absolute; inset: 0; z-index: var(--z-base); padding: var(--rule-hair); border-radius: inherit; background: linear-gradient(135deg, color-mix(in oklab, var(--color-ember-1) 45%, var(--color-night-rule)), var(--color-night-rule) 35%, var(--color-night-rule) 70%, color-mix(in oklab, var(--color-ember-3) 30%, var(--color-night-rule))); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
.demo__glow { position: absolute; inset: -30% 2%; z-index: -1; border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; background: radial-gradient(closest-side, color-mix(in oklab, var(--color-ember-2) 30%, transparent), color-mix(in oklab, var(--color-ember-2) 16%, transparent) 70%, transparent); filter: blur(56px); pointer-events: none; will-change: transform; animation: frame-morph 18s var(--ease-in-out) infinite alternate; }
.is-idle .demo__glow { animation-play-state: paused; }
@keyframes frame-morph { from { transform: rotate(-3deg) scale(0.96, 1.04); } 50% { transform: rotate(2deg) scale(1.05, 0.94); } to { transform: rotate(5deg) scale(0.98, 1.08); } }
.demo > .tray, .motion { position: relative; z-index: var(--z-base); }
.demo__pane { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 380px; border-radius: var(--radius-pane); background: var(--color-night); text-align: left; overflow: hidden; }
html:not(.js) .demo__pane + .demo__pane { margin-top: var(--space-lg); }
html:not(.js) .demo__pane[hidden] { display: grid !important; }
.demo__ci { padding: var(--space-xl); border-right: var(--rule-hair) solid var(--color-night-rule); background: var(--color-night-2); }
.demo__chat { padding: var(--space-xl); }
.demo__title { margin-bottom: var(--space-lg); font: 500 var(--text-sm)/1.3 var(--font-display); color: var(--color-night-muted); }
.demo__ci .demo__title, .demo__chat .demo__title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); min-height: 32px; }
.demo__title code { color: var(--color-night-ink); }
.run { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 32px; padding: 0 var(--space-sm); font-size: var(--text-md); border-radius: var(--radius-pill); background: var(--color-night-3); color: var(--color-night-muted); white-space: nowrap; }
.run__icon { display: none; width: 16px; height: 16px; }
.run[data-attempt="1"] .run__two, .run[data-attempt="2"] .run__one { display: none; }
.run[data-attempt="2"] { background: var(--color-accent); color: var(--color-accent-ink); font-weight: 600; animation: run-pop var(--dur-long) var(--ease-out); }
.run[data-attempt="2"] .run__icon { display: block; animation: spin 0.7s var(--ease-out); }
@keyframes run-pop { from { transform: scale(0.85); box-shadow: 0 0 0 0 var(--color-accent); } 60% { box-shadow: 0 0 0 8px transparent; } to { transform: none; box-shadow: 0 0 0 8px transparent; } }
.steps { margin: 0; padding: 0; list-style: none; }
.step { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: var(--space-sm); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-night-rule); color: var(--color-night-ink); }
.step__label { min-width: 0; overflow-wrap: anywhere; }
.step__label code { font-size: var(--text-sm); }
.step__meta { font-size: var(--text-sm); color: var(--color-night-muted); white-space: nowrap; }
.step__icon { display: grid; place-items: center; width: 20px; height: 20px; }
.st { display: none; width: 16px; height: 16px; }
.step[data-state="wait"] .st--wait, .step[data-state="run"] .st--run, .step[data-state="ok"] .st--ok, .step[data-state="fail"] .st--fail { display: block; }
.st--wait { color: var(--color-night-rule); }
.st--run { color: var(--color-accent-2); animation: spin 0.9s linear infinite; }
.st--ok { color: var(--color-ok); }
.st--fail { color: var(--color-fail); }
.step[data-state="wait"] .step__label { color: var(--color-night-muted); }
.step[data-state="wait"] .step__meta { visibility: hidden; }
.step__timer { display: none; font: 400 var(--text-sm)/1 var(--font-outlier); font-variant-numeric: tabular-nums; color: var(--color-accent-2); }
.step[data-state="run"] .step__timer { display: inline; }
.step[data-state="run"] .step__meta > :not(.step__timer) { display: none !important; }
.step[data-state="run"] .step__label { color: var(--color-night-ink); }
.step[data-state="fail"] .step__meta { color: var(--color-fail); }
.step:not([data-state="fail"]) [data-meta-fail], .step[data-state="fail"] [data-meta-ok] { display: none; }
.step [data-dur] { font-family: var(--font-outlier); font-variant-numeric: tabular-nums; }
@keyframes spin { to { transform: rotate(1turn); } }

.chat { display: grid; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.note { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--space-md); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); }
.js .note.is-off { opacity: 0; transform: translateY(8px); }
.note--reply { margin-left: var(--space-2xl); padding-left: var(--space-md); border-left: 2px solid var(--color-night-rule); }
.note__avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-card); background: var(--color-night-3); color: var(--color-night-ink); font: 600 var(--text-md)/1 var(--font-display); }
.note__avatar--app { background: var(--color-accent); color: var(--color-accent-ink); }
.note__avatar .mark { width: 22px; height: 22px; }
.note__body { display: grid; gap: var(--space-2xs); justify-items: start; color: var(--color-night-ink); }
.note__who { font: 500 var(--text-sm)/1.4 var(--font-display); color: var(--color-night-ink); }
.note__tag { margin-left: var(--space-2xs); padding: 0 var(--space-2xs); border-radius: 3px; background: var(--color-night-3); color: var(--color-night-muted); font-size: var(--text-xs); }
.note__edited { margin-left: var(--space-2xs); color: var(--color-night-muted); font-weight: 400; }
.note__head { font: 600 var(--text-xl)/1.2 var(--font-display); letter-spacing: var(--tracking-display); }
.note[data-phase="fail"] [data-head-ok], .note[data-phase="ok"] [data-head-fail], .note[data-phase="fail"] [data-edited] { display: none; }
.note[data-phase="ok"] .note__head span { color: var(--color-ok); }
.note[data-phase="fail"] .note__head span { color: var(--color-fail); }
.demo__chat .mention { background: color-mix(in oklab, var(--color-accent) 24%, transparent); color: var(--color-accent-2); }
.note__button { display: inline-flex; align-items: center; min-height: 32px; margin-top: var(--space-xs); padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-night-rule); border-radius: var(--radius-input); font: 500 var(--text-sm)/1 var(--font-display); }
html:not(.js) .tray--night { display: none; }
.motion { min-height: 44px; padding: 0 var(--space-md); border: 0; background: none; color: var(--color-night-muted); font: 500 var(--text-sm)/1 var(--font-display); text-decoration: underline; text-underline-offset: 0.16em; cursor: pointer; transition: color var(--dur-micro) var(--ease-out); }
.motion:hover { color: var(--color-night-ink); }
.motion:focus-visible { outline-color: var(--color-night-focus); }
.motion-paused .st--run { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .st--run { animation: none; } }

/* stages */
.stage { padding-block: var(--section-gap) 0; }
.stage--route { padding-top: var(--section-gap-s); }
.stage--identity { margin-top: var(--section-gap); padding-block: var(--section-gap-s); background: var(--color-paper-2); border-block: var(--rule-hair) solid var(--color-rule); }
.stage--identity .people tbody tr:not(.is-review) { background: var(--color-paper); }
.stage--quiet { padding-top: var(--section-gap-l); }
.head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.head .lead { color: var(--color-ink-2); }
.head--split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--gap-columns); align-items: end; }
.head--split .lead { grid-column: 2; }

.code { margin: 0; background: var(--color-graphite); color: var(--color-graphite-ink); border-radius: var(--radius-card); overflow: hidden; }
@supports (corner-shape: bevel) { .code { border-radius: var(--cut-l) 4px var(--cut-l) 4px; corner-shape: bevel round bevel round; } }
.code figcaption { padding: var(--space-sm) var(--space-lg); background: var(--color-graphite-2); color: var(--color-graphite-muted); font: 400 var(--text-xs)/1.4 var(--font-outlier); }
.code figcaption.label { font: 500 var(--text-sm)/1.3 var(--font-display); }
.code pre { margin: 0; padding: var(--space-lg); font-size: var(--text-sm); line-height: 1.7; overflow-x: auto; tab-size: 2; }
.code .k { color: var(--color-accent-2); }
.code .s { color: var(--color-graphite-ink); }
.code .p { color: var(--color-graphite-muted); }
.code .o { color: var(--color-accent-2); }
.code pre:focus-visible { outline: 2px solid var(--color-accent-2); outline-offset: -2px; }

/* 1: route and its renders */
.route { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: start; }
.route__yaml pre { font-size: var(--text-xs); }
.switch { display: grid; gap: var(--space-lg); }
.tray { display: inline-flex; justify-self: start; gap: var(--space-2xs); padding: var(--space-2xs); background: var(--color-paper-3); border-radius: var(--radius-input); }
.tray__key { min-height: 44px; padding: 0 var(--space-lg); border: var(--rule-hair) solid transparent; border-radius: var(--space-2xs); background: transparent; color: var(--color-ink-2); font: 500 var(--text-md)/1 var(--font-display); cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.tray__key:hover { color: var(--color-ink); }
.tray__key:active { box-shadow: var(--shadow-key-press); }
.tray__key:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.tray__key[aria-selected="true"] { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); box-shadow: none; }
.tray__key:disabled { opacity: 0.55; cursor: not-allowed; }
html:not(.js) .tray { display: none; }
.out { display: grid; gap: var(--space-sm); }
html:not(.js) .out[hidden] { display: grid !important; }
.msg { display: grid; gap: var(--space-sm); justify-items: start; padding: var(--space-2xl) var(--space-xl); background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); box-shadow: var(--shadow-card); font-size: var(--text-md); }
.msg__head { font: 600 var(--text-2xl)/1.15 var(--font-display); letter-spacing: var(--tracking-display); }
.mention { padding: 0 var(--space-2xs); border-radius: 3px; background: var(--color-accent-wash); color: var(--color-accent-text); font-weight: 500; }
.msg__button { display: inline-flex; align-items: center; min-height: 36px; margin-top: var(--space-xs); padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-input); font: 500 var(--text-sm)/1 var(--font-display); }
.msg__button--wide { justify-self: stretch; justify-content: center; background: var(--color-paper-2); }
.out__note, .switch__caption, .diff__caption, .table__caption, .ruler__scale { font-size: var(--text-sm); color: var(--color-muted); }

/* 2: the workflow diff */
.diff pre { padding: var(--space-lg) 0; }
.diff pre code { display: inline-block; min-width: 100%; }
.diff pre code > span { display: block; padding-inline: var(--space-lg); }
.diff .cm { color: var(--color-graphite-muted); }
.diff .add { color: var(--color-graphite-ink); background: color-mix(in oklab, var(--color-ok) 13%, var(--color-graphite)); box-shadow: inset 3px 0 0 var(--color-ok); }
.diff .del { color: var(--color-graphite-muted); background: color-mix(in oklab, var(--color-fail) 11%, var(--color-graphite)); box-shadow: inset 3px 0 0 var(--color-fail); }
.diff .ctx { color: var(--color-graphite-muted); }
.diff__caption { margin-top: var(--space-md); }

/* 2: checks and the PR preview */
.tooling { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: start; }
.pr { display: grid; gap: var(--space-lg); }
.pr__panel { display: grid; gap: var(--space-md); }
html:not(.js) .pr__panel[hidden] { display: grid !important; }
.check { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-md) var(--space-lg); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper); box-shadow: var(--shadow-card); }
.check__icon { flex-shrink: 0; width: 18px; height: 18px; }
.check__icon--ok { color: var(--color-success); }
.check__icon--fail { color: var(--color-error); }
.check__name { font: 500 var(--text-md)/1.3 var(--font-display); }
.check__status { margin-left: auto; font-size: var(--text-sm); color: var(--color-muted); text-align: right; }
.check samp, .pr__summary samp { font: 400 var(--text-sm)/1.5 var(--font-outlier); }
.annot { display: grid; gap: var(--space-2xs); padding: var(--space-md) var(--space-lg); border-left: 3px solid var(--color-error); border-radius: 0 var(--radius-input) var(--radius-input) 0; background: var(--color-paper-2); }
.annot__file code { color: var(--color-ink); }
.annot__msg code { color: var(--color-error); overflow-wrap: anywhere; }
.pr__summary { color: var(--color-ink-2); }
.comment { border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper); overflow: hidden; }
.comment__head { padding: var(--space-sm) var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); font-size: var(--text-sm); color: var(--color-muted); }
.comment__body { display: grid; gap: var(--space-sm); padding: var(--space-lg); }
.comment__title { font: 600 var(--text-xl)/1.2 var(--font-display); letter-spacing: var(--tracking-display); }
.comment__note { font-size: var(--text-sm); font-style: italic; color: var(--color-muted); }
.comment__route { font: 600 var(--text-md)/1.4 var(--font-display); }
.comment__previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); margin-top: var(--space-xs); }
.preview__app { margin-bottom: var(--space-xs); font: 500 var(--text-sm)/1.4 var(--font-display); color: var(--color-muted); }
.preview__app a { margin-left: var(--space-2xs); color: var(--color-accent-text); }
.preview blockquote { display: grid; gap: var(--space-2xs); justify-items: start; margin: 0; padding-left: var(--space-md); border-left: 3px solid var(--color-rule-2); }
.tools { display: grid; gap: var(--space-lg); padding-top: var(--space-3xs); }
.tools dl { margin: 0; border-top: var(--rule-hair) solid var(--color-rule-2); }
.tools dl > div { padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.tools dt code { font-size: var(--text-sm); color: var(--color-ink); overflow-wrap: anywhere; }
.tools dd { margin: var(--space-xs) 0 0; color: var(--color-ink-2); }
.tools .link { justify-self: start; }

/* 3: people */
.table-wrap { overflow-x: auto; }
.table-wrap:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.people { width: 100%; border-collapse: collapse; font-size: var(--text-md); }
.people th, .people td { padding: var(--space-md) var(--space-lg) var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; vertical-align: baseline; white-space: nowrap; }
.people thead th { padding-block: var(--space-sm); border-bottom-color: var(--color-rule-2); font: 500 var(--text-sm)/1.3 var(--font-display); color: var(--color-muted); }
.people tbody th { font-weight: 500; }
.people tbody tr { height: 64px; }
.people .none { color: var(--color-muted); }
.people tr.is-review { background: var(--color-accent-wash); }
.people tr.is-review > :first-child { padding-left: var(--space-md); }
.people tbody tr:not(.is-review) > :first-child { padding-left: var(--space-md); }
.table__caption { margin-top: var(--space-md); }

/* 4: no noise */
.quiet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); align-items: stretch; }
.channel { margin: 0; padding: var(--space-xl); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); }
.channel--callog { background: var(--color-paper); box-shadow: var(--shadow-card); border-top: 3px solid var(--color-accent); }
.channel figcaption { margin-bottom: var(--space-lg); font: 500 var(--text-sm)/1.4 var(--font-display); color: var(--color-muted); }
.channel figcaption code { color: var(--color-ink); }
.pings { display: grid; gap: var(--space-sm); margin: 0; padding: 0; list-style: none; }
.ping { display: grid; gap: var(--space-3xs); padding: var(--space-sm) var(--space-md); border-left: 3px solid var(--color-error); background: var(--color-paper); border-radius: 0 var(--radius-input) var(--radius-input) 0; }
.ping:last-child:not(.ping--one) { border-left-color: var(--color-success); }
.ping--one { gap: var(--space-xs); padding: var(--space-lg); border-left-color: var(--color-success); }
.ping__head { font: 600 var(--text-lg)/1.25 var(--font-display); letter-spacing: var(--tracking-display); }
.ping--one .ping__head { font-size: var(--text-2xl); }
.ping__edited { margin-left: var(--space-2xs); font: 400 var(--text-sm)/1 var(--font-body); letter-spacing: 0; color: var(--color-muted); }
.ping__meta { font-size: var(--text-sm); color: var(--color-muted); }
.quiet__caption { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.knobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); margin: var(--space-2xl) 0 0; }
.knobs > div { padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule-2); }
.knobs dt { font: 500 var(--text-md)/1.4 var(--font-display); }
.knobs dt code { font-size: var(--text-md); }
.knobs dd { margin: var(--space-xs) 0 0; color: var(--color-ink-2); }

/* 5: plans */
.stage--plans { padding-top: var(--section-gap-l); }
.stage--faq { padding-top: var(--section-gap-l); }
.stage--faq .head { margin-bottom: 0; }
.stage--faq .knobs { margin-top: var(--space-xl); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); align-items: stretch; }
.plan { display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--space-lg); padding: var(--space-xl); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper); box-shadow: var(--shadow-card); }
.plan--cloud { border-top: 3px solid var(--color-accent); }
.plan > .key { justify-self: start; }
.plan__price strong { font: 600 var(--text-display-s)/1 var(--font-display); letter-spacing: var(--tracking-display); }
.plan__price span { margin-left: var(--space-xs); color: var(--color-muted); }
.plan .rows > div { grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); padding-block: var(--space-md); }
.plan .rows dt { font: 500 var(--text-md)/1.4 var(--font-display); letter-spacing: 0; }
.waitlist { display: grid; gap: var(--space-xs); }
.waitlist label { font: 500 var(--text-sm)/1.4 var(--font-display); color: var(--color-ink-2); }
.waitlist__row { display: flex; gap: var(--space-xs); }
.waitlist input { flex: 1; min-width: 0; min-height: var(--key-h); padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-input); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-md); outline: 2px solid transparent; outline-offset: -3px; }
.waitlist input:focus-visible { outline-color: var(--color-focus); }
.waitlist input[aria-invalid] { border-color: var(--color-error); }
.waitlist__help { min-height: 1lh; font-size: var(--text-sm); color: var(--color-muted); }
.waitlist__help[data-state="sending"], .waitlist__help[data-state="ok"], .waitlist__help[data-state="error"] { display: flex; align-items: baseline; gap: var(--space-xs); padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-input); background: var(--color-paper-2); color: var(--color-ink); font-weight: 500; }
.waitlist__help[data-state]::before { flex-shrink: 0; align-self: center; width: 14px; height: 14px; }
.waitlist__help[data-state="sending"]::before { content: ""; border: 2px solid var(--color-rule-2); border-top-color: var(--color-accent-text); border-radius: var(--radius-pill); animation: spin 0.9s linear infinite; }
.waitlist__help[data-state="ok"] { border-color: var(--color-success); background: color-mix(in oklab, var(--color-success) 10%, var(--color-paper)); }
.waitlist__help[data-state="ok"]::before { content: "✓"; height: auto; color: var(--color-success); font-weight: 600; }
.waitlist__help[data-state="error"] { border-color: var(--color-error); background: color-mix(in oklab, var(--color-error) 8%, var(--color-paper)); }
.waitlist__help[data-state="error"]::before { content: "!"; height: auto; color: var(--color-error); font-weight: 600; text-align: center; }
.waitlist .key:disabled { box-shadow: var(--shadow-key-press); transform: none; }
.rows { margin: 0; border-top: var(--rule-hair) solid var(--color-rule-2); }
.rows > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 6fr); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.rows dt { font: 500 var(--text-title)/1.2 var(--font-display); letter-spacing: var(--tracking-display); }
.rows dd { margin: 0; color: var(--color-ink-2); }

/* close */
.close { padding-block: var(--section-gap-l) var(--section-gap); }
.close__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
.close__term pre { font-size: var(--text-md); padding: var(--space-xl); }
.close__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); margin-top: var(--space-xl); }

/* footer */
.mast { padding-block: var(--space-3xl) var(--space-xl); background: var(--color-paper-2); border-top: var(--rule-hair) solid var(--color-rule); }
.mast__word { display: flex; align-items: center; gap: 0.08em; font: 600 var(--wordmark)/0.9 var(--font-display); letter-spacing: -0.04em; color: var(--color-ink); }
.mast__word .mark { width: 0.8em; height: 0.8em; color: var(--color-accent); }
.mast__links { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-xl); margin: var(--space-2xl) 0 0; padding: var(--space-lg) 0 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule-2); }
.mast__links a { color: var(--color-ink); text-decoration-color: var(--color-rule-2); white-space: nowrap; }
.mast__links a:hover { text-decoration-color: var(--color-accent); }
.mast__legal { margin-top: var(--space-xl); font-size: var(--text-sm); color: var(--color-muted); }

/* mention profile card */
.who { position: fixed; z-index: var(--z-tooltip); width: max-content; max-width: min(280px, calc(100vw - 16px)); padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid var(--color-night-rule); border-radius: var(--radius-input); background: var(--color-night); color: var(--color-night-ink); font-size: var(--text-sm); line-height: 1.45; box-shadow: 0 6px 16px -6px oklch(0% 0 0 / 0.5); opacity: 0; transition: opacity var(--dur-micro) var(--ease-out); }
.who.is-open { opacity: 1; }
.who__name { font: 600 var(--text-md)/1.3 var(--font-display); }
.who__role { color: var(--color-night-muted); }
.who__status { margin-top: var(--space-xs); }
.who__foot { color: var(--color-night-muted); font: 400 var(--text-xs)/1.45 var(--font-outlier); }
.mention, .chip { cursor: default; }

/* feedback: everything you can point at answers */
.bar__links a, .mast__links a { position: relative; }
.bar__links a::after { content: ""; position: absolute; inset: auto 0 -6px; height: 2px; border-radius: 1px; background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-short) var(--ease-out); }
.link::after, .banner a::after { content: "→"; display: inline-block; margin-left: 0.35em; transition: transform var(--dur-short) var(--ease-out); }
.wordmark .mark, .integrations li, .note__avatar, .step__label, .step__icon, .tools dl > div, .ping, .knobs dt { transition: transform var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.plan, .check, .comment, .channel, .msg, .code, .demo__frame, .note__button, .msg__button, .mention, .people tbody tr, .knobs > div, .waitlist input, .mast__links a { transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out), text-decoration-color var(--dur-short) var(--ease-out), outline-color var(--dur-short) var(--ease-out); }
.key { transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.tray__key { transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.tray__key:active, .motion:active { transform: scale(0.97); }
.js .out, .js .pr__panel, .js .demo__pane > * { animation: rise var(--dur-short) var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@media (hover: hover) {
  .key:hover { transform: translateY(var(--lift)); background: var(--color-paper); box-shadow: 0 5px 0 0 var(--color-key-edge), 0 12px 16px -8px oklch(21% 0.028 262 / 0.35), inset 0 1px 0 oklch(100% 0 0 / 0.9); }
  .key--primary:hover { background: color-mix(in oklab, var(--color-accent) 88%, white); box-shadow: 0 5px 0 0 var(--color-accent-edge), 0 14px 28px -8px var(--color-accent), inset 0 1px 0 oklch(100% 0 0 / 0.3); }
  .key--night:hover { background: var(--color-night-3); border-color: var(--color-night-muted); box-shadow: 0 5px 0 0 var(--color-night-rule), 0 14px 24px -10px oklch(0% 0 0 / 0.7); }
  .key:active { transform: translateY(3px); box-shadow: var(--shadow-key-press); }
  .key--night:active { box-shadow: none; }
  .tray__key:not([aria-selected="true"]):hover { background: color-mix(in oklab, var(--color-ink) 8%, transparent); }
  .demo .tray--night .tray__key:not([aria-selected="true"]):hover { background: var(--color-night-3); }
  .bar__links a:hover::after { transform: scaleX(1); }
  .link:hover::after, .banner a:hover::after { transform: translateX(var(--nudge)); }
  .chip:hover { filter: brightness(1.08); }
  .wordmark:hover .mark { transform: scale(var(--grow)) rotate(-6deg); }
  .integrations li:hover { transform: translateY(var(--lift)) scale(var(--grow)); color: var(--color-night-ink); }
  .step:hover .step__label { transform: translateX(var(--nudge)); color: var(--color-night-ink); }
  .step:hover .step__icon { transform: scale(var(--grow)); }
  .note:hover .note__avatar { transform: scale(var(--grow)); }
  .note__button:hover { border-color: var(--color-night-muted); background: var(--color-night-3); }
  .msg__button:hover { border-color: var(--color-ink-2); background: var(--color-paper-3); }
  .mention:hover { background: color-mix(in oklab, var(--color-accent) 22%, var(--color-paper)); }
  .demo__chat .mention:hover { background: color-mix(in oklab, var(--color-accent) 40%, transparent); }
  .msg:hover, .check:hover, .comment:hover { border-color: var(--color-rule-2); box-shadow: 0 8px 20px -10px oklch(21% 0.028 262 / 0.25); }
  .plan:hover, .channel:hover { transform: translateY(var(--lift)); border-color: var(--color-rule-2); box-shadow: 0 16px 32px -16px oklch(21% 0.028 262 / 0.3); }
  .plan--cloud:hover, .channel--callog:hover { border-top-color: var(--color-accent); }
  .code:hover { box-shadow: 0 16px 32px -16px oklch(21% 0.028 262 / 0.5); }
  .diff pre code > span:hover { filter: brightness(1.3); }
  .ping:hover { transform: translateX(var(--nudge)); }
  .knobs > div:hover { border-top-color: var(--color-accent); }
  .knobs > div:hover dt { transform: translateX(var(--nudge)); }
  .tools dl > div:hover { transform: translateX(var(--nudge)); }
  .stage--identity .people tbody tr:hover { background: var(--color-accent-wash); box-shadow: inset 3px 0 0 var(--color-accent); }
  .waitlist input:hover { border-color: var(--color-ink); }
  .mast__links a:hover { text-decoration-color: var(--color-accent); }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  :root { --lift: 0px; --nudge: 0px; --grow: 1; }
  .bar, .key, .tray__key, .link, .bar__links a,   .key:hover, .key:active { transform: none; }
  .bar.is-hidden { transform: none; }
}

/* under 60rem */
@media (max-width: 60rem) {
  .demo__pane { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .demo__ci { border-right: 0; border-bottom: var(--rule-hair) solid var(--color-night-rule); }
  .plans, .quiet, .tooling { grid-template-columns: minmax(0, 1fr); }
  .knobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route, .head--split, .close__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); }
  .head--split .lead { grid-column: auto; }
  .bar__inner { flex-wrap: wrap; gap: 0 var(--space-lg); padding-top: var(--space-sm); }
  .bar .key { margin-left: auto; }
  .bar nav { order: 1; flex-basis: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; }
  .bar__links a { display: block; padding-block: var(--space-sm); }
  .bar__links a::after { inset: auto 0 var(--space-2xs); }
  .bar__links a:focus-visible { outline-offset: -2px; }
}
@media (max-width: 40rem) {
  /* The chip keeps its own line, so a shorter handle never reflows the headline. */
  .chip { display: flex; width: fit-content; margin: 0.08em auto 0.02em; }
  .hero h1 br { display: none; }
  .banner a::after { content: none; }
  .bar__links { gap: var(--space-sm); }
  .rows > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .demo__ci, .demo__chat { padding: var(--space-lg); }
  .note--reply { margin-left: var(--space-lg); }
  .waitlist__row { flex-direction: column; }
  .comment__previews { grid-template-columns: minmax(0, 1fr); }
  .check { flex-wrap: wrap; }
  .check__status { margin-left: 0; text-align: left; flex-basis: 100%; }
  .knobs { grid-template-columns: minmax(0, 1fr); }
  .integrations { gap: var(--space-md); }
  .people thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .people, .people tbody, .people tr, .people th, .people td { display: block; }
  .people tbody tr { height: auto; padding: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
  .people th, .people td { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: var(--space-sm); padding: var(--space-2xs) 0; border: 0; white-space: normal; }
  .people tbody tr:not(.is-review) > :first-child, .people tbody tr.is-review > :first-child { padding-left: 0; }
  .people [data-label]::before { content: attr(data-label); font: 500 var(--text-sm)/1.5 var(--font-display); color: var(--color-muted); }
  .table-wrap { overflow: visible; }
}
