/* Hallmark · shape: specimen plate, then the recorded run · genre: modern-minimal · theme: custom · redesign: full · job: sign up · idea: "Mobilebox turns an Android screen into numbered parts an agent acts on; the site shows exactly that, on its own recorded captures" · vibe: "lit screen, redline refs, engineer's notebook"
 * paper: #f4f5f7 cool reading paper, graphite #14181e where phones live · accent: #c94227 redline vermilion from the mark · display: IBM Plex Mono 600 · body: IBM Plex Sans · hero: a specimen plate on graphite, the statement, the recorded screen at full height, the literal observe text · nav: graphite bar, wordmark, four links, Log in and a quiet Get started · footer: brand line, two link lists, the one line agents need · imagery: the product, recorded captures only · signature: the recorded observe response drawn on its own capture
 * axes: light/mono/warm · posture: restrained · contrast: pass (token pairs computed) · fold: pending render · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H4 E4 S5 R4 V5 · weakest: E, every page below the hero is judged from source without a render; layouts are clamped and stacked at 80, 60 and 40rem, tables scroll, and the relay screenshots settle the rest */
/* Hallmark · hero-review: fix · 4 findings (lit wash, clipped tag 4, orphaned (784,146), stranded terms and caption) · 4 resolved, confirmed "ship" by a fresh review */
/* Hallmark · dropped artdots, plane · the isometric sandbox drawing and its dot grid left with the old hero; the recorded screen replaces it */
/* Hallmark · dropped "[9] Row "Battery" 14%" · 46a, the callout contradicted the Battery 100% capture beside it */
/* Hallmark · dropped "A phone they can see, use, and come back to. No emulator setup. Just an API call." · 58 holds the hero to a headline and one sentence */
/* Hallmark · reworded "Mobilebox — API + MCP for Android sandboxes" to "API + MCP for Android sandboxes · Mobilebox" · 19 names the dash */
/* Hallmark · reworded "See it work" to "Replay the recorded run" · 19 names the stock second action */
/* Hallmark · site-review: fix · 7 required (phone and transport apart on phones, a dashboard claim, starter credit wording, auth and docs order on phones, generic lead diagrams, the pricing band gap) and 6 optional · fixed in source, pending recapture */
/* Hallmark · dropped journal and article diagrams · the review found the drawn mechanism figures generic beside the recorded proof; the featured guide shows its own first example */
/* Hallmark · answered F1 · the straight quotes left are literal API notation in the docs ({"text": …}, [5] TextField "Draft") and the owner's terms and privacy text, kept verbatim */
/* Hallmark · answered F4 · home repeats its one primary recipe in the close, where the sign up anatomy puts the hero's action again; every other page has one */

@font-face { font-family: "Plex"; src: url(/fonts/IBMPlexSans-Regular-Latin1.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url(/fonts/IBMPlexSans-SemiBold-Latin1.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/fonts/IBMPlexMono-Regular-Latin1.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/fonts/IBMPlexMono-SemiBold-Latin.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* reading paper */
  --bg: #f4f5f7; --paper: #fcfcfd; --soft: #e9ecf0; --line: #d5dae1; --field: #7b828d;
  --text: #161a20; --muted: #555d68; --accent: #b5381f; --error: #a4262c;
  /* the box: where phones live */
  --box: #14181e; --box-2: #1c222a; --box-3: #262d36; --box-line: #2f3741; --box-ink: #eef1f5; --box-muted: #a3acb7;
  --code: #14181e;
  /* the redline */
  --signal: #c94227; --signal-hover: #b0381f; --signal-light: #ff8a66; --on-signal: #fffaf8;
  --signal-wash: color-mix(in srgb, var(--signal) 16%, transparent);
  --sans: "Plex", ui-sans-serif, system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-nav: 0.9375rem; --text-md: 1rem; --text-body: 1.0625rem; --text-lg: 1.25rem; --text-title: 1.375rem;
  --text-code: 0.875rem; --text-readout: clamp(0.8125rem, 0.6rem + 0.27vw, 0.9375rem);
  --text-section: clamp(2rem, 1.2rem + 2.2vw, 2.875rem); --text-display-s: clamp(2.25rem, 1.4rem + 2.4vw, 3.25rem); --text-hero: clamp(2.5rem, 4.2vw, 3.75rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --wide: 1312px; --prose: 38rem; --gutter: 48px; --gap: 48px; --section-gap: 128px; --header-h: 64px;
  --screen-w: clamp(220px, 21vw, 300px);
  --r-tag: 3px; --r-control: 6px; --r-card: 10px; --r-screen: 14px;
  --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-toast: 500;
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: var(--space-xl); -webkit-text-size-adjust: 100%; scrollbar-color: var(--field) var(--bg); }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 400 var(--text-md)/1.6 var(--sans); font-synthesis: none; -webkit-font-smoothing: antialiased; caret-color: var(--accent); }
main { flex: 1 0 auto; }
::selection { background: var(--signal-wash); color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1, h2 { font-family: var(--mono); letter-spacing: -0.02em; }
h1 { font-size: var(--text-display-s); line-height: 1.06; }
h2 { font-size: var(--text-section); line-height: 1.08; }
h3 { font-size: var(--text-title); line-height: 1.3; letter-spacing: -0.01em; }
p, ul, ol, figure, blockquote, pre { margin: 0; }
p { text-wrap: pretty; }
ul, ol { padding-left: 1.25em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--field); }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
img, video { max-width: 100%; height: auto; display: block; }
svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
code, pre, kbd { font-family: var(--mono); font-size: var(--text-code); }
:not(pre) > code { font-size: 0.86em; padding: var(--space-3xs) var(--space-2xs); border-radius: var(--r-tag); background: var(--soft); overflow-wrap: anywhere; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.small, small { font-size: var(--text-sm); }
.mono { font-family: var(--mono); }
.lede { max-width: 38rem; font-size: var(--text-lg); line-height: 1.5; color: var(--muted); }
.measure { max-width: var(--prose); }
.skip-link { position: absolute; left: var(--space-md); top: 0; z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); border-radius: var(--r-control); background: var(--paper); color: var(--text); transform: translateY(-120%); }
.skip-link:focus-visible { transform: none; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--field); border-radius: var(--r-control); background: transparent; color: var(--text); font: 600 var(--text-nav)/1 var(--sans); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--soft); border-color: var(--text); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.btn.primary:hover { background: var(--signal-hover); border-color: var(--signal-hover); color: var(--on-signal); }
.btn.sm { min-height: 40px; padding: 0 var(--space-md); }
.btn svg { width: 16px; height: 16px; }
.btns { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.inline-link { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: var(--text-sm); font-weight: 600; text-decoration: underline; text-decoration-color: var(--field); }
.inline-link svg { width: 16px; height: 16px; }
.text-btn { border-color: transparent; padding-inline: var(--space-sm); }
label { display: block; margin-bottom: var(--space-xs); font: 600 var(--text-sm)/1.4 var(--sans); }
input, select, textarea { width: 100%; min-height: 48px; padding: 0 var(--space-md); border: 1px solid var(--field); border-radius: var(--r-control); background: var(--paper); color: var(--text); font-size: var(--text-md); outline: 2px solid transparent; outline-offset: -1px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-color: var(--accent); }
input:disabled, select:disabled { opacity: 0.55; cursor: not-allowed; }
input[aria-invalid="true"] { border-color: var(--error); }
::placeholder { color: var(--muted); opacity: 1; }
.alert { min-height: 1lh; margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--error); }
.alert.info { color: var(--muted); }
summary { cursor: pointer; }
.status { display: inline-flex; align-items: center; min-height: 24px; padding: 0 var(--space-xs); border: 1px solid var(--field); border-radius: var(--r-tag); font: 600 var(--text-xs)/1 var(--sans); white-space: nowrap; }
.status.parked { border-style: dashed; color: var(--muted); }
.status.failed { border-color: var(--error); color: var(--error); }
[role="tablist"] { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
[role="tab"] { min-height: 40px; padding: 0 var(--space-md); border: 1px solid transparent; border-radius: var(--r-control); background: transparent; color: var(--muted); font: 600 var(--text-sm)/1 var(--sans); transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
[role="tab"]:hover { color: var(--text); background: var(--soft); }
[role="tab"]:active { transform: translateY(1px); }
[role="tab"][aria-selected="true"] { color: var(--text); background: var(--paper); border-color: var(--line); }

/* code */
.code { overflow: hidden; border-radius: var(--r-card); background: var(--code); color: var(--box-ink); }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 48px; padding: 0 var(--space-xs) 0 var(--space-md); border-bottom: 1px solid var(--box-line); color: var(--box-muted); font: 400 var(--text-xs)/1.3 var(--sans); }
.code pre { overflow-x: auto; padding: var(--space-md); line-height: 1.75; }
.code code { color: var(--box-ink); }
.code i { font-style: normal; color: var(--box-muted); }
.copy { min-height: 32px; padding: 0 var(--space-sm); border: 1px solid var(--box-line); border-radius: var(--r-tag); background: transparent; color: var(--box-ink); font: 600 var(--text-xs)/1 var(--sans); transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.copy:hover { background: var(--box-3); border-color: var(--box-muted); }
.copy:active { transform: translateY(1px); }
.code :focus-visible, .header :focus-visible, .box :focus-visible { outline-color: var(--signal-light); }

/* shell */
.header { position: relative; z-index: var(--z-sticky-nav); background: var(--box); color: var(--box-ink); }
.header .wrap { display: flex; align-items: center; gap: var(--space-xl); min-height: var(--header-h); }
.header a { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: var(--space-xs); color: inherit; font: 600 var(--text-body)/1 var(--mono); letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.brand:hover { color: inherit; }
.logo { width: 28px; height: 28px; }
.header nav[aria-label="Main"] { display: flex; gap: var(--space-lg); }
.header nav a, .header-end > a:not(.btn) { padding-block: var(--space-xs); color: var(--box-muted); font-size: var(--text-nav); white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.header nav a:hover, .header-end > a:not(.btn):hover { color: var(--box-ink); }
.header nav a[aria-current="page"] { color: var(--box-ink); box-shadow: inset 0 -2px 0 var(--signal-light); }
.header-end { display: flex; align-items: center; gap: var(--space-lg); margin-left: auto; }
.header .btn { border-color: var(--box-line); color: var(--box-ink); }
.header .btn:hover { background: var(--box-3); border-color: var(--box-muted); color: var(--box-ink); }
.mobile-nav { display: none; margin-left: auto; }
.mobile-nav summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--box-line); border-radius: var(--r-control); color: var(--box-ink); font: 600 var(--text-nav)/1 var(--sans); list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav[open] summary { background: var(--box-3); }
.mobile-nav nav { position: absolute; inset-inline: 0; top: 100%; display: grid; padding: var(--space-xs) var(--gutter) var(--space-lg); border-top: 1px solid var(--box-line); background: var(--box); }
.mobile-nav nav a { padding-block: var(--space-sm); border-bottom: 1px solid var(--box-line); color: var(--box-ink); font-size: var(--text-body); }
.mobile-nav nav a:last-child { border-bottom: 0; }

.footer { margin-top: var(--section-gap); border-top: 1px solid var(--line); font-size: var(--text-sm); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: var(--gap); padding-block: var(--space-2xl) var(--space-xl); }
.footer-brand p { margin-top: var(--space-md); max-width: 22rem; color: var(--muted); font-size: var(--text-md); }
.footer-group { display: grid; align-content: start; gap: var(--space-xs); }
.footer-group h2 { margin-bottom: var(--space-2xs); font: 600 var(--text-sm)/1.4 var(--sans); letter-spacing: 0; }
.footer-group a { width: fit-content; color: var(--muted); text-decoration: none; }
.footer-group a:hover { color: var(--accent); text-decoration: underline; }
.footer-agents { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-sm); padding-top: var(--space-lg); border-top: 1px solid var(--line); color: var(--muted); }

/* the box: graphite bands where phones live */
.box { background: var(--box); color: var(--box-ink); }
.box .muted, .box .lede { color: var(--box-muted); }
.box a:hover { color: var(--signal-light); }
.box .btn:not(.primary) { border-color: var(--box-line); color: var(--box-ink); }
.box .btn:not(.primary):hover { background: var(--box-3); border-color: var(--box-muted); color: var(--box-ink); }
.box :not(pre) > code { background: var(--box-3); }

/* hero: the specimen plate. The phone is the axis; the statement and the readout centre on it. */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--screen-w) minmax(23rem, 0.9fr); column-gap: var(--gap); padding-block: var(--space-2xl); }
.hero-copy { grid-row: 1; align-self: center; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.hero h1 { font-size: var(--text-hero); line-height: 1.02; letter-spacing: -0.025em; color: var(--box-ink); }
.hero-line { max-width: 24rem; margin-top: var(--space-lg); font-size: var(--text-lg); line-height: 1.45; color: var(--box-ink); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); margin-top: var(--space-xl); }
.hero-replay { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 48px; color: var(--box-ink); font-weight: 600; font-size: var(--text-nav); text-decoration: underline; text-decoration-color: var(--box-line); white-space: nowrap; }
.hero-replay svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.hero-terms { margin-top: var(--space-md); color: var(--box-muted); font-size: var(--text-sm); }

.observe { grid-column: 2 / 4; grid-row: 1; display: grid; grid-template-columns: subgrid; grid-template-rows: 1fr auto auto auto 1fr; min-width: 0; }
.observe-frame { grid-column: 1; grid-row: 1 / -1; }
.observe-screen { position: relative; aspect-ratio: 1080 / 2400; }
.observe-screen img { width: 100%; height: 100%; border-radius: var(--r-screen); outline: 1px solid var(--box-line); outline-offset: -1px; }
.refs { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.ref { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); border: 1.5px solid var(--signal); border-radius: var(--r-tag); transition: opacity var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); animation: ref-in var(--dur-long) var(--ease-out) backwards; animation-delay: calc(var(--i) * 60ms + 160ms); }
.ref span { position: absolute; min-width: 18px; padding: 0 var(--space-2xs); border-radius: var(--r-tag); background: var(--signal); color: var(--on-signal); font: 600 var(--text-xs)/18px var(--mono); text-align: center; }
.ref[data-side="top"] span { left: -1.5px; bottom: calc(100% + var(--t) * 100% + var(--space-2xs)); }
.ref[data-side="top"]::before { content: ""; position: absolute; left: -1.5px; bottom: 100%; height: calc(var(--t) * 100% + var(--space-2xs)); border-left: 1.5px solid var(--signal); }
.ref[data-side="left"] span { top: -1.5px; right: calc(100% + var(--space-2xs)); }
.ref.is-lit { box-shadow: inset 0 0 0 1px var(--signal); }
.has-lit .ref:not(.is-lit) { opacity: 0.3; }
.observe-call { grid-column: 2; grid-row: 2; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-xs); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--box-line); color: var(--box-muted); font: 400 var(--text-xs)/1.5 var(--sans); }
.observe-call code { color: var(--box-ink); font-size: var(--text-xs); }
.observe-lines { grid-column: 2; grid-row: 3; padding-top: var(--space-sm); color: var(--box-ink); font: 400 var(--text-readout)/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.observe-lines .line { display: block; margin-inline: calc(-1 * var(--space-xs)); padding: 0 var(--space-xs) 0 calc(var(--space-xs) + 2ch); text-indent: -2ch; border-radius: var(--r-tag); transition: background-color var(--dur-short) var(--ease-out); animation: line-in var(--dur-long) var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 60ms + 160ms); }
.observe-lines .line.is-lit { background: var(--box-2); }
.observe-lines b { color: var(--signal-light); font-weight: 600; }
.observe figcaption { grid-column: 2; grid-row: 4; padding-top: var(--space-md); color: var(--box-muted); font-size: var(--text-sm); }
@keyframes ref-in { from { opacity: 0; transform: scale(1.08); } }
@keyframes line-in { from { opacity: 0; } }

/* sections */
.section { padding-top: var(--section-gap); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); align-items: end; gap: var(--space-md) var(--gap); margin-bottom: var(--space-2xl); }
.section-heading h2 { max-width: 18ch; }
.section-heading > p { color: var(--muted); font-size: var(--text-body); }
.box .section-heading > p { color: var(--box-muted); }
.box.section { padding-bottom: var(--space-3xl); }
.box.section { margin-top: var(--section-gap); }
.hero + .box.section { margin-top: 0; border-top: 1px solid var(--box-line); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.inline-link { width: fit-content; }
.table-wrap { overflow-x: auto; }

/* the recorded run: the run sheet, the frame it left, the literal reply */
.demo-task { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2xs) var(--space-sm); margin-bottom: var(--space-xl); padding-bottom: var(--space-md); border-bottom: 1px solid var(--box-line); font-size: var(--text-lg); line-height: 1.4; }
.demo-task span { color: var(--box-muted); font-size: var(--text-sm); font-weight: 600; }
.demo-workbench { display: grid; grid-template-columns: minmax(0, 14rem) var(--screen-w) minmax(0, 1fr); column-gap: var(--gap); row-gap: var(--space-xl); align-items: start; }
.demo-trace { grid-column: 1; grid-row: 1; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--box-line); }
.demo-trace li { border-bottom: 1px solid var(--box-line); }
.demo-step { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; align-items: center; gap: var(--space-xs); width: 100%; min-height: 48px; padding: 0 var(--space-xs); border: 0; border-radius: var(--r-tag); background: transparent; color: var(--box-ink); font-size: var(--text-md); text-align: left; transition: background-color var(--dur-short) var(--ease-out); }
.demo-step:hover { background: var(--box-2); }
.demo-step:active { transform: translateY(1px); }
.demo-step-number { color: var(--box-muted); font: 400 var(--text-xs)/1 var(--mono); }
.demo-step-protocol { color: var(--box-muted); font: 400 var(--text-xs)/1 var(--mono); }
.demo-step.is-complete .demo-step-number { color: var(--box-ink); }
.demo-step.is-current { background: var(--box-3); color: var(--box-ink); }
.demo-step.is-current .demo-step-number, .demo-step.is-current .demo-step-protocol { color: var(--signal-light); }
.demo-device-wrap { grid-column: 2; grid-row: 1; display: grid; align-content: start; gap: var(--space-sm); padding-top: var(--space-lg); }
.demo-device { position: relative; aspect-ratio: 1080 / 2400; border-radius: var(--r-screen); background: var(--box-2); }
.demo-screen { width: 100%; height: 100%; border-radius: var(--r-screen); outline: 1px solid var(--box-line); outline-offset: -1px; transition: opacity var(--dur-long) var(--ease-in-out); }
[data-step="park"] .demo-screen { opacity: 0.16; }
.demo-parked { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--space-xs); padding: var(--space-lg); color: var(--box-ink); text-align: center; }
.demo-parked svg { width: 32px; height: 32px; color: var(--signal-light); }
.demo-parked span { color: var(--box-muted); font-size: var(--text-sm); }
.demo-screen-caption { color: var(--box-muted); font-size: var(--text-sm); }
.demo-inspector { grid-column: 3; grid-row: 1; display: grid; align-content: start; gap: var(--space-md); min-width: 0; }
.demo-title { font-size: var(--text-title); }
.demo-call { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2xs) var(--space-md); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--box-line); color: var(--box-muted); font-size: var(--text-xs); }
.demo-call code { padding: 0; background: none; color: var(--box-ink); font-size: var(--text-xs); }
.demo-outcome { font-size: var(--text-lg); line-height: 1.4; }
.demo-observation { color: var(--box-ink); font: 400 var(--text-readout)/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.demo-observation .line, .observe-lines .line { min-height: 1lh; }
.demo-observation .line { display: block; margin-inline: calc(-1 * var(--space-xs)); padding: 0 var(--space-xs) 0 calc(var(--space-xs) + 2ch); text-indent: -2ch; border-radius: var(--r-tag); transition: background-color var(--dur-short) var(--ease-out); }
.demo-observation .line.is-lit { background: var(--box-2); }
.demo-observation b { color: var(--signal-light); font-weight: 600; }
.demo-evidence { border-top: 1px solid var(--box-line); }
.demo-evidence summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 48px; color: var(--box-ink); font-size: var(--text-sm); font-weight: 600; list-style: none; }
.demo-evidence summary::-webkit-details-marker { display: none; }
.demo-evidence summary::after { content: "+"; color: var(--box-muted); font: 400 var(--text-lg)/1 var(--mono); }
.demo-evidence[open] summary::after { content: "\2212"; }
.demo-detail { display: grid; gap: var(--space-sm); padding-bottom: var(--space-md); }
.demo-tabs button { min-height: 36px; color: var(--box-muted); }
.demo-tabs button:hover { background: var(--box-2); color: var(--box-ink); }
.demo-tabs button[aria-selected="true"] { border-color: var(--box-line); background: var(--box-3); color: var(--box-ink); }
.demo-detail pre { max-height: 22rem; overflow: auto; padding: var(--space-md); border-radius: var(--r-control); background: var(--box-2); color: var(--box-ink); font-size: var(--text-xs); line-height: 1.65; }
.demo-controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); padding-top: var(--space-sm); border-top: 1px solid var(--box-line); }
.demo-controls .demo-run { flex: 1 0 auto; }
.demo-run svg { width: 16px; height: 16px; }
.demo-run-play { fill: currentColor; stroke: none; }
.demo-run-pause, .is-playing .demo-run-play { display: none; }
.is-playing .demo-run-pause { display: block; }
.demo-nav { display: flex; align-items: center; gap: var(--space-xs); }
.demo-nav button { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--box-line); border-radius: var(--r-control); background: transparent; color: var(--box-ink); transition: background-color var(--dur-short) var(--ease-out); }
.demo-nav button:hover { background: var(--box-3); }
.demo-nav button:active { transform: translateY(1px); }
.demo-nav button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; background: transparent; }
.demo-prev svg { transform: scaleX(-1); }
.demo-position { min-width: 4.5rem; color: var(--box-muted); font-size: var(--text-xs); text-align: center; }
.demo-status { width: 100%; color: var(--box-muted); font-size: var(--text-sm); }
.demo-footnote { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-sm) var(--space-lg); margin-top: var(--space-xl); color: var(--box-muted); font-size: var(--text-sm); }
.demo-footnote a { color: var(--box-ink); }
.demo-pending { color: var(--box-muted); }

/* connect: two doors into one phone */
.connect-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--space-2xl) var(--gap); align-items: start; }
.connect-copy { display: grid; justify-items: start; gap: var(--space-lg); }
.connect-copy > p { max-width: 30rem; color: var(--muted); font-size: var(--text-body); }
.tools-head { margin-top: var(--space-xs); font: 600 var(--text-sm)/1.4 var(--sans); letter-spacing: 0; }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-lg); width: 100%; margin: calc(-1 * var(--space-sm)) 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.tools li { padding-block: var(--space-xs); border-bottom: 1px solid var(--line); }
.tools code { padding: 0; background: none; font-size: var(--text-code); }
.integration { display: grid; gap: var(--space-lg); min-width: 0; }
.integration-tabs { width: fit-content; padding: var(--space-2xs); border-radius: var(--r-control); background: var(--soft); }
.integration-tabs [role="tab"] { display: inline-flex; align-items: center; gap: var(--space-xs); }
.integration-tabs svg { width: 16px; height: 16px; }
.integration section { display: grid; gap: var(--space-md); }
.integration section h3 { font-size: var(--text-lg); }
.integration-footer { color: var(--muted); font-size: var(--text-sm); }
.integration-footer a { color: var(--text); }

/* the loop: three states, their calls, their limits */
.loop { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: var(--space-lg) var(--gap); align-items: start; }
.loop-states { flex-direction: column; flex-wrap: nowrap; gap: 0; border-top: 1px solid var(--line); }
.loop-states [role="tab"] { display: flex; align-items: center; justify-content: flex-start; gap: var(--space-sm); width: 100%; min-height: 64px; padding: 0 var(--space-md); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: var(--text-md); }
.loop-states [role="tab"][aria-selected="true"] { background: var(--paper); color: var(--text); box-shadow: inset 2px 0 0 var(--signal); }
.loop-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl) var(--gap); padding: var(--space-xl); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); }
.loop-text { grid-column: 1 / -1; display: grid; justify-items: start; gap: var(--space-sm); }
.loop-text h3 { font-size: var(--text-title); }
.loop-text p { max-width: 38rem; color: var(--muted); }
.loop-calls, .loop-limits { display: grid; margin: 0; border-top: 1px solid var(--text); }
.loop-calls > div, .loop-limits > div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: var(--space-sm); padding-block: var(--space-sm); border-bottom: 1px solid var(--line); }
.loop dt { font-size: var(--text-sm); font-weight: 600; }
.loop dd { display: grid; gap: var(--space-2xs); margin: 0; color: var(--muted); font-size: var(--text-sm); }
.loop dd code { width: fit-content; padding: 0; background: none; color: var(--text); font-size: var(--text-code); }
.loop-more { margin-top: var(--space-xl); }

/* the field guide on the home page, and every journal index */
.guide-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: var(--space-xl) var(--gap); align-items: start; }
.guide-head { position: sticky; top: var(--space-xl); display: grid; justify-items: start; gap: var(--space-md); }
.guide-head p { max-width: 24rem; color: var(--muted); font-size: var(--text-body); }
.journal-list { border-top: 1px solid var(--text); }
.journal-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2xs) var(--space-lg); padding-block: var(--space-lg); border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.journal-row h3 { grid-column: 1; font-size: var(--text-lg); line-height: 1.35; transition: color var(--dur-short) var(--ease-out); }
.journal-row p { grid-column: 1; max-width: 42rem; color: var(--muted); font-size: var(--text-md); }
.journal-row .journal-meta { grid-column: 2; grid-row: 1 / 3; flex-direction: column; align-items: flex-end; gap: var(--space-3xs); white-space: nowrap; }
.journal-row:hover { color: inherit; }
.journal-row:hover h3 { color: var(--accent); }
.journal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-md); color: var(--muted); font-size: var(--text-sm); }

/* the close: the price and the recorded run's own bill */
.bill-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--space-2xl) var(--gap); align-items: center; }
.bill-copy { display: grid; justify-items: start; gap: var(--space-lg); }
.bill-copy > p { max-width: 28rem; color: var(--box-muted); font-size: var(--text-body); }
.price { font: 600 clamp(3rem, 2rem + 4vw, 5.25rem)/1 var(--mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price small { display: block; margin-top: var(--space-xs); font: 400 var(--text-lg)/1.4 var(--sans); letter-spacing: 0; color: inherit; }
.ledger { display: grid; gap: var(--space-md); min-width: 0; overflow-x: auto; }
.ledger table { font-size: var(--text-sm); }
.ledger th { border-bottom-color: var(--box-muted); color: var(--box-ink); }
.ledger td { border-bottom-color: var(--box-line); color: var(--box-ink); white-space: nowrap; }
.ledger code { padding: 0; background: none; font-size: var(--text-xs); }
.ledger figcaption { color: var(--box-muted); font-size: var(--text-sm); }

/* pricing */
.price-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-2xl) var(--gap); align-items: end; padding-top: var(--space-3xl); }
.price-offer { display: grid; justify-items: start; gap: var(--space-lg); }
.price-offer .price { font-size: clamp(3.25rem, 2rem + 5vw, 6rem); font-variant-numeric: tabular-nums; }
.price-rules { display: grid; margin: 0; border-top: 1px solid var(--text); }
.price-rules > div { display: grid; gap: var(--space-2xs); padding-block: var(--space-md); border-bottom: 1px solid var(--line); }
.price-rules dt { display: flex; align-items: center; gap: var(--space-sm); font-weight: 600; }
.price-rules dt svg { color: var(--accent); }
.price-rules dd { margin: 0 0 0 calc(20px + var(--space-sm)); color: var(--muted); }
.meter-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-xl) var(--gap); align-items: center; }
.meter-head { display: grid; gap: var(--space-md); }
.meter-head p { color: var(--box-muted); }
.meter { display: grid; gap: var(--space-lg); min-width: 0; }
.meter ol { display: grid; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.meter li { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: var(--space-xs) var(--space-md); align-items: center; }
.meter-name { font-weight: 600; font-size: var(--text-sm); }
.meter-track { position: relative; height: 32px; border-radius: var(--r-tag); background: var(--box-2); }
.meter-track i { position: absolute; top: 0; bottom: 0; }
.meter-boot { left: 0; width: var(--boot); background: var(--box-3); }
.meter-ready { left: var(--boot); width: var(--ready); background: var(--signal); }
.meter-billed { left: var(--boot); width: var(--billed); border: 1.5px dashed var(--signal-light); border-radius: var(--r-tag); }
.meter-figures { grid-column: 2; color: var(--box-muted); font: 400 var(--text-xs)/1.5 var(--mono); }
.meter figcaption { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--box-line); color: var(--box-muted); font-size: var(--text-sm); }
.meter-key { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--box-ink); }
.meter-key::before { content: ""; width: 16px; height: 12px; border-radius: 2px; }
.meter-key-boot::before { background: var(--box-3); }
.meter-key-ready::before { background: var(--signal); }
.meter-key-billed::before { border: 1.5px dashed var(--signal-light); }
.cost-examples table { max-width: 48rem; }
.pricing-details { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-xl) var(--gap); }
.pricing-faq details { border-bottom: 1px solid var(--line); }
.pricing-faq details:first-child { border-top: 1px solid var(--text); }
.pricing-faq summary { display: flex; justify-content: space-between; gap: var(--space-md); padding-block: var(--space-md); font-weight: 600; list-style: none; }
.pricing-faq summary::-webkit-details-marker { display: none; }
.pricing-faq summary::after { content: "+"; color: var(--muted); font-family: var(--mono); }
.pricing-faq details[open] summary::after { content: "\2212"; }
.pricing-faq details p { max-width: 40rem; padding-bottom: var(--space-md); color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { padding: var(--space-sm) var(--space-md) var(--space-sm) 0; border-bottom: 1px solid var(--text); font: 600 var(--text-sm)/1.4 var(--sans); text-align: left; white-space: nowrap; }
td { padding: var(--space-sm) var(--space-md) var(--space-sm) 0; border-bottom: 1px solid var(--line); vertical-align: top; }

/* docs */
.docs { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: var(--space-2xl); padding-top: var(--space-2xl); }
.docs-nav { position: sticky; top: var(--space-lg); align-self: start; display: grid; gap: var(--space-xl); font-size: var(--text-sm); }
.docs-nav nav, .toc nav, .article-toc nav { display: grid; gap: var(--space-3xs); }
.docs-nav a, .toc a, .article-toc a { display: block; padding: var(--space-2xs) var(--space-xs); border-radius: var(--r-tag); color: var(--muted); text-decoration: none; }
.docs-nav a:hover, .toc a:hover, .article-toc a:hover { background: var(--soft); color: var(--text); }
.docs-nav a[aria-current="page"] { background: var(--soft); color: var(--text); font-weight: 600; box-shadow: inset 2px 0 0 var(--signal); }
.toc-label { margin: 0 0 var(--space-xs) var(--space-xs); font: 600 var(--text-sm)/1.4 var(--sans); color: var(--text); }
.src { margin-top: var(--space-2xl); color: var(--muted); font-size: var(--text-sm); }
.contents-menu { display: none; }
.contents-menu summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2xs) var(--space-md); min-height: 48px; padding: var(--space-sm) var(--space-md); border: 1px solid var(--line); border-radius: var(--r-control); background: var(--paper); font-weight: 600; list-style: none; }
.contents-menu summary::-webkit-details-marker { display: none; }
.contents-menu summary span { color: var(--muted); font-size: var(--text-sm); font-weight: 400; }
.contents-menu summary::after { content: "+"; color: var(--muted); font-family: var(--mono); }
.contents-menu[open] summary::after { content: "\2212"; }
.contents-menu nav { display: grid; gap: var(--space-3xs); padding-block: var(--space-sm); font-size: var(--text-sm); }
.contents-menu nav a { padding: var(--space-xs); border-radius: var(--r-tag); color: var(--muted); text-decoration: none; }
.contents-menu nav a[aria-current="page"] { color: var(--text); font-weight: 600; box-shadow: inset 2px 0 0 var(--signal); }
.contents-menu .toc-label { margin-top: var(--space-xs); }

/* prose: docs, articles and legal pages */
.prose { min-width: 0; max-width: var(--prose); font-size: var(--text-body); line-height: 1.7; }
.prose > * + * { margin-top: var(--space-md); }
.prose h1 { margin-bottom: var(--space-lg); font-size: var(--text-display-s); }
.prose h2 { margin-top: var(--space-2xl); font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem); line-height: 1.15; }
.prose h3 { margin-top: var(--space-xl); font-size: var(--text-lg); }
.prose li + li { margin-top: var(--space-xs); }
.prose a { text-decoration-color: var(--accent); }
.prose strong { font-weight: 600; }
.prose .code { margin-block: var(--space-lg); }
.prose table { display: block; overflow-x: auto; font-size: var(--text-md); }
.doc-links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); padding: 0; list-style: none; font-size: var(--text-sm); }
.doc-links li + li { margin-top: 0; }

/* journal */
.journal-head { display: grid; gap: var(--space-lg); padding-top: var(--space-3xl); }
.journal-deck { max-width: 36rem; color: var(--muted); font-size: var(--text-lg); }
.journal-search { margin-top: var(--space-2xl); padding: var(--space-lg); border-radius: var(--r-card); background: var(--soft); }
.journal-search form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 15rem) auto; align-items: end; gap: var(--space-md); }
.journal-search .btn { min-height: 48px; }
[data-journal-count] { min-height: 1lh; margin-top: var(--space-sm); color: var(--muted); font-size: var(--text-sm); }
[data-journal-feature] { margin-top: var(--space-xl); }
.journal-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--gap); padding: var(--space-xl); border-radius: var(--r-card); background: var(--box); color: var(--box-ink); text-decoration: none; }
.journal-feature:hover { color: var(--box-ink); }
.journal-feature-copy { display: grid; justify-items: start; gap: var(--space-md); }
.journal-feature h2 { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); }
.journal-feature p { max-width: 30rem; color: var(--box-muted); }
.journal-feature .journal-meta { color: var(--box-muted); }
.journal-go { color: var(--box-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--signal-light); text-underline-offset: 0.2em; }
.journal-feature-code { min-width: 0; overflow: hidden; padding: var(--space-lg); border-radius: var(--r-control); background: var(--box-2); color: var(--box-ink); font-size: var(--text-code); line-height: 1.7; }
.journal-library { display: grid; gap: var(--space-3xl); margin-top: var(--space-3xl); }
.journal-categories { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.journal-category { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: var(--space-lg) var(--gap); align-items: start; }
.section-head { position: sticky; top: var(--space-lg); display: grid; gap: var(--space-2xs); }
.section-head h2 { font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem); }
.section-head span { color: var(--muted); font-size: var(--text-sm); }
.journal-empty { display: grid; justify-items: start; gap: var(--space-sm); padding-block: var(--space-xl); }

/* article */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: var(--space-xs); padding-top: var(--space-xl); color: var(--muted); font-size: var(--text-sm); }
.breadcrumbs a { color: var(--muted); }
.article-head { display: grid; gap: var(--space-md); max-width: 50rem; padding-top: var(--space-xl); }
.article-head h1 { font-size: clamp(2rem, 1.3rem + 2vw, 3rem); line-height: 1.1; }
.article-deck { max-width: 40rem; color: var(--muted); font-size: var(--text-lg); line-height: 1.5; }
.article-layout { display: grid; grid-template-columns: minmax(0, var(--prose)) minmax(0, 15rem); justify-content: start; gap: var(--space-2xl); margin-top: var(--space-2xl); }
.article-toc { position: sticky; top: var(--space-lg); align-self: start; display: grid; gap: var(--space-md); font-size: var(--text-sm); }
.article-toc .toc-back { color: var(--muted); }
.article-next { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid var(--text); }
.article-next p { width: 100%; font-weight: 600; }
.article-related { max-width: var(--prose); margin-top: var(--space-3xl); }
.article-related h2 { margin-bottom: var(--space-lg); font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem); }

/* auth: the workspace lives in the box */
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); grid-template-areas: "head panel" "more panel"; align-items: start; gap: var(--space-xl) var(--gap); padding-top: var(--space-3xl); }
.auth-head { grid-area: head; align-self: end; display: grid; gap: var(--space-md); }
.auth-head p { color: var(--muted); font-size: var(--text-lg); }
.auth-more { grid-area: more; display: grid; justify-items: start; gap: var(--space-lg); }
.auth-panel { grid-area: panel; align-self: center; }
.auth-list { display: grid; width: 100%; max-width: 26rem; margin: 0; padding: 0; border-top: 1px solid var(--text); list-style: none; }
.auth-list li { display: flex; align-items: center; gap: var(--space-sm); padding-block: var(--space-sm); border-bottom: 1px solid var(--line); }
.auth-list svg { color: var(--accent); }
.auth-panel { display: grid; gap: var(--space-md); padding: var(--space-xl); border-radius: var(--r-card); }
.auth-panel h2 { font: 600 var(--text-title)/1.3 var(--sans); letter-spacing: -0.01em; }
.auth-panel form { display: grid; gap: var(--space-sm); }
.auth-panel label { margin: 0; }
.auth-panel form .btn { width: 100%; }
.box input { border-color: var(--box-muted); background: var(--box-2); color: var(--box-ink); }
.box input::placeholder { color: var(--box-muted); }
.box input:focus-visible { outline-color: var(--signal-light); }
[data-auth-providers] { display: grid; gap: var(--space-sm); }
.auth-provider { width: 100%; }
.auth-provider svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
[data-auth-message] { min-height: 1lh; color: var(--box-muted); font-size: var(--text-sm); }
.auth-help { color: var(--box-muted); font-size: var(--text-sm); }
.auth-help a { color: var(--box-ink); }

/* dashboard */
.dash { display: grid; gap: var(--space-2xl); padding-top: var(--space-xl); }
.sample-banner { padding: var(--space-sm) var(--space-md); border: 1px dashed var(--field); border-radius: var(--r-control); background: var(--paper); color: var(--text); font-size: var(--text-sm); }
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-md); }
.dash-head > div { display: grid; gap: var(--space-xs); }
.dash-head .btn { margin-top: var(--space-2xs); }
.dash-head h1 { font-size: var(--text-display-s); }
.dash-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-block: 1px solid var(--text); }
.dash-figures > div { display: grid; align-content: start; gap: var(--space-2xs); padding: var(--space-lg); border-left: 1px solid var(--line); }
.dash-figures > div:first-child { padding-left: 0; border-left: 0; }
.dash-figures dt { color: var(--muted); font-size: var(--text-sm); font-weight: 600; }
.dash-figures dd { margin: 0; }
.stat { font: 600 clamp(2rem, 1.6rem + 1vw, 2.5rem)/1.1 var(--mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dash-section { display: grid; gap: var(--space-md); }
.dash-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-sm); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--text); }
.dash-section-head h2 { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--text-title); }
.dash-section-head h2 svg { color: var(--accent); }
.newkey { display: grid; gap: var(--space-sm); }
.row-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--space-sm); }
.empty { color: var(--muted); }

/* legal, 404 */
.legal .prose { padding-top: var(--space-3xl); }
.draft { padding: var(--space-sm) var(--space-md); border: 1px dashed var(--error); border-radius: var(--r-control); color: var(--text); font-size: var(--text-sm); }
mark.owner { padding: 0 var(--space-2xs); border: 1px dashed var(--error); border-radius: var(--r-tag); background: transparent; color: var(--error); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.not-found { padding-block: var(--space-3xl); }
.not-found-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: var(--space-xl) var(--gap); }
.not-found-code { color: var(--signal-light); font: 600 clamp(6rem, 3rem + 10vw, 12rem)/0.9 var(--mono); letter-spacing: -0.04em; }
.not-found-copy { display: grid; justify-items: start; gap: var(--space-lg); }
.not-found .lede { color: var(--box-muted); }

/* responsive */
@media (max-width: 79.99rem) {
  .hero-grid { grid-template-columns: var(--screen-w) minmax(0, 1fr); row-gap: var(--space-2xl); }
  .hero-copy { grid-column: 1 / -1; grid-row: 1; align-self: start; }
  .hero h1 { font-size: clamp(2.125rem, 10vw, 3.75rem); }
  .hero-line { max-width: 32rem; }
  .observe { grid-column: 1 / -1; grid-row: 2; }
  .demo-workbench { grid-template-columns: var(--screen-w) minmax(0, 1fr); }
  .demo-device-wrap { grid-column: 1; grid-row: 1 / 3; }
  .demo-trace { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-lg); }
  .demo-inspector { grid-column: 2; grid-row: 2; }
}
@media (max-width: 60rem) {
  :root { --gutter: 32px; --gap: 32px; --section-gap: 96px; }
  .header nav[aria-label="Main"], .header-end { display: none; }
  .mobile-nav { display: block; }
  .section-heading, .connect-grid, .loop, .loop-panel, .guide-grid, .bill-grid, .price-head, .meter-grid, .pricing-details, .journal-category, .journal-feature, .article-layout, .not-found-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "panel" "more"; padding-top: var(--space-xl); }
  .auth-head { align-self: start; }
  .contents-menu { display: block; }
  .docs-nav, .article-toc { display: none; }
  .guide-head, .section-head { position: static; }
  .docs { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); padding-top: var(--space-xl); }
  .loop-states { flex-direction: row; flex-wrap: wrap; border-top: 0; }
  .loop-states [role="tab"] { width: auto; min-height: 48px; border: 1px solid var(--line); border-radius: var(--r-control); }
  .loop-states [role="tab"][aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--signal); }
  .loop-panel { padding: var(--space-lg); }
  .journal-search form { grid-template-columns: minmax(0, 1fr) auto; }
  .journal-search-field { grid-column: 1 / -1; }
  .journal-feature { padding: var(--space-lg); }
  .footer-grid { gap: var(--space-xl); }
}
@media (max-width: 40rem) {
  :root { --gutter: 20px; --gap: 24px; --section-gap: 80px; --screen-w: min(72vw, 300px); }
  .hero-grid { padding-top: var(--space-lg); row-gap: var(--space-xl); }
  .hero-actions { margin-top: var(--space-lg); }
  .observe { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .observe-frame { grid-column: 1; grid-row: auto; justify-self: center; width: var(--screen-w); }
  .observe-call, .observe-lines, .observe figcaption { grid-column: 1; grid-row: auto; }
  .observe-call { margin-top: var(--space-lg); }
  .demo-workbench { grid-template-columns: minmax(0, 1fr); }
  /* The phone and its transport share one screen: the phone takes the width the viewport height leaves after the controls. */
  .demo-device-wrap { grid-column: 1; grid-row: 1; }
  .demo-device { width: min(100%, 300px, calc((100svh - 13.5rem) * 0.45)); justify-self: center; }
  .demo-screen-caption { text-align: center; }
  .demo-controls { flex-wrap: wrap; justify-content: space-between; }
  .demo-controls .demo-run { flex: 0 1 auto; padding-inline: var(--space-md); }
  .demo-nav { gap: var(--space-2xs); }
  .demo-position { min-width: 3rem; }
  .demo-trace { grid-column: 1; grid-row: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2xs); border-top: 0; }
  .demo-trace li { border-bottom: 0; }
  .demo-step { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--space-3xs); min-height: 56px; padding: var(--space-2xs); border: 1px solid var(--box-line); font-size: var(--text-sm); text-align: center; }
  .demo-step-protocol { display: none; }
  .demo-inspector { grid-column: 1; grid-row: 3; }
  .tools { grid-template-columns: minmax(0, 1fr); }
  .journal-row { grid-template-columns: minmax(0, 1fr); }
  .journal-row .journal-meta { grid-column: 1; grid-row: auto; flex-direction: row; align-items: center; }
  .dash-figures { grid-template-columns: minmax(0, 1fr); }
  .dash-figures > div { padding: var(--space-md) 0; border-left: 0; border-top: 1px solid var(--line); }
  .dash-figures > div:first-child { border-top: 0; }
  .row-form { grid-template-columns: minmax(0, 1fr); }
  .auth-panel { padding: var(--space-lg); }
  .meter li { grid-template-columns: minmax(0, 1fr); }
  .meter-figures { grid-column: 1; }
  td, th { padding-right: var(--space-sm); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
