/* The OpenSeal website (SITE-01), in the design language of the product (owner
 * instruction 44; docs/assets/design-canvas): the product's own tokens (tokens.css,
 * copied from webapp/ by tools/build-site.py), Geist type, a warm neutral canvas with
 * white surfaces, ink text, hairlines and soft layered shadows. The seal red is kept for
 * the one primary call to action in a view; violet appears only beside model
 * suggestions, as in the app. Light and dark by data-theme or the OS.
 *
 * Root size: the canvas's fluid rem, clamp(15px, 11.5px + .3vw, 18px), 16 px under 48em
 * (docs/47 §Root size), so text and layout scale with resolution and browser zoom.
 * Labels on controls never wrap. Motion: transform and opacity only, every animation
 * off under prefers-reduced-motion; content is visible without scripts.
 */

:root {
  --w-max: 76rem;
  --w-narrow: 46rem;
  --gutter: clamp(1rem, 0.25rem + 2.6vw, 2.5rem);
  --header-h: 3.75rem;
  --r-ctl: 0.5rem;
  --r-card: 0.875rem;
  --r-window: 0.875rem;
  --fs-display: clamp(2.5rem, 1.55rem + 3.4vw, 4.75rem);
  --fs-h2: clamp(1.875rem, 1.3rem + 1.9vw, 3rem);
  --fs-h3: 1.1875rem;
  --fs-lede: clamp(1.0625rem, 0.96rem + 0.38vw, 1.3125rem);
  --ink-code: #18181b;
  --code-text: #e4e4e7;
  --code-muted: #a1a1aa;
  --code-edge: rgba(255, 255, 255, 0.08);
  --lift: 0 0 0 1px var(--os-border), 0 1px 2px rgba(24, 24, 27, 0.04), 0 12px 32px -16px rgba(24, 24, 27, 0.16);
  --lift-xl: 0 0 0 1px rgba(24, 24, 27, 0.08), 0 2px 4px rgba(24, 24, 27, 0.04), 0 24px 48px -20px rgba(24, 24, 27, 0.22), 0 64px 120px -48px rgba(24, 24, 27, 0.28);
  --glow: rgba(192, 22, 34, 0.07);
  --glow-ml: rgba(109, 40, 217, 0.08);
  --dot: rgba(24, 24, 27, 0.07);
}
:root[data-theme="dark"] {
  --ink-code: #0b0b0d;
  --lift: 0 0 0 1px var(--os-border), 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -16px rgba(0, 0, 0, 0.6);
  --lift-xl: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 2px 4px rgba(0, 0, 0, 0.4), 0 24px 48px -20px rgba(0, 0, 0, 0.7), 0 64px 120px -48px rgba(0, 0, 0, 0.8);
  --glow: rgba(255, 122, 131, 0.07);
  --glow-ml: rgba(167, 139, 250, 0.08);
  --dot: rgba(255, 255, 255, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink-code: #0b0b0d;
    --lift: 0 0 0 1px var(--os-border), 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -16px rgba(0, 0, 0, 0.6);
    --lift-xl: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 2px 4px rgba(0, 0, 0, 0.4), 0 24px 48px -20px rgba(0, 0, 0, 0.7), 0 64px 120px -48px rgba(0, 0, 0, 0.8);
    --glow: rgba(255, 122, 131, 0.07);
    --glow-ml: rgba(167, 139, 250, 0.08);
    --dot: rgba(255, 255, 255, 0.06);
  }
}

/* ---- Base ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  font-size: clamp(15px, calc(11.5px + 0.3vw), 18px);
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}
@media (max-width: 48em) { html { font-size: 16px; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--os-canvas); color: var(--os-text);
  font: 400 1rem/1.6 var(--os-font); font-feature-settings: "ss01" on;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--os-accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--os-accent-hover); }
:focus-visible { outline: var(--os-focus-width) solid var(--os-focus); outline-offset: var(--os-focus-offset); border-radius: 0.25rem; }
main:focus { outline: none; }
h1, h2, h3, h4 { line-height: var(--os-lh-heading); margin: 0; letter-spacing: -0.02em; text-wrap: balance; font-weight: 620; }
p { margin: 0; text-wrap: pretty; }
code, kbd, pre { font-family: var(--os-font-mono); font-size: 0.875em; }
:not(pre) > code { background: var(--os-bg); box-shadow: 0 0 0 1px var(--os-border); border-radius: 0.3125rem; padding: 0.05em 0.35em; overflow-wrap: anywhere; }
kbd { font: 550 0.78em/1 var(--os-font-mono); background: var(--os-bg); box-shadow: 0 0 0 1px var(--os-border), 0 1px 0 var(--os-border); border-radius: 0.3rem; padding: 0.15rem 0.35rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -6rem; z-index: 100; background: var(--os-bg); color: var(--os-text); padding: 0.75rem 1rem; border-radius: var(--r-ctl); }
.skip:focus { top: 1rem; box-shadow: var(--os-shadow-pop); }
.wrap { width: min(var(--w-max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap.narrow { width: min(var(--w-narrow), 100% - 2 * var(--gutter)); }
.i { flex: none; vertical-align: middle; }
.muted { color: var(--os-muted); }
.nowrap { white-space: nowrap; }
figure { margin: 0; }

/* ---- Buttons: a label never wraps -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: var(--os-btn-lg); padding: 0 1.125rem;
  border-radius: var(--r-ctl); border: 0; font: 550 0.9375rem/1 var(--os-font); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  transition: transform var(--os-dur-fast) var(--os-ease-state), background-color var(--os-dur) var(--os-ease-state), box-shadow var(--os-dur) var(--os-ease-state), color var(--os-dur) var(--os-ease-state);
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: var(--os-btn); padding: 0 0.75rem; font-size: 0.8125rem; border-radius: 0.4375rem; }
.btn-primary { background: var(--os-accent-fill); color: var(--os-on-accent); box-shadow: var(--os-shadow-primary); }
.btn-primary:hover { background: var(--os-accent-hover-fill); color: var(--os-on-accent); }
.btn-strong { background: var(--os-strong); color: var(--os-on-strong); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 2px rgba(24, 24, 27, 0.2); }
.btn-strong:hover { background: var(--os-strong-hover); color: var(--os-on-strong); }
.btn-secondary { background: var(--os-bg); color: var(--os-text); box-shadow: 0 0 0 1px var(--os-border), 0 1px 2px rgba(24, 24, 27, 0.05); }
.btn-secondary:hover { background: var(--os-surface); color: var(--os-text); box-shadow: 0 0 0 1px var(--os-border-strong), 0 1px 2px rgba(24, 24, 27, 0.05); }
.btn .btn-icon { display: inline-grid; place-items: center; margin-right: -0.125rem; opacity: 0.85; transition: transform var(--os-dur-slow) var(--os-ease-out); }
.btn:hover .btn-icon { transform: translateX(0.125rem); }
.icon-btn {
  display: inline-grid; place-items: center; width: var(--os-btn); height: var(--os-btn); padding: 0;
  border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--os-text-2); cursor: pointer;
}
.icon-btn:hover { background: color-mix(in srgb, var(--os-text) 6%, transparent); color: var(--os-text); }
.kbd { font: 550 0.6875rem/1 var(--os-font-mono); color: var(--os-muted); background: var(--os-bg); box-shadow: 0 0 0 1px var(--os-border); border-radius: 0.25rem; padding: 0.2rem 0.35rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.625rem; }

/* ---- Header ------------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--os-canvas) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--os-hairline);
}
.header-row { display: flex; align-items: center; gap: 1.75rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 0.375rem; }
.brand img { width: 7.25rem; height: auto; vertical-align: middle; }
.nav-links { display: flex; align-items: center; gap: 0.125rem; margin-right: auto; }
.nav-links a, .menu-panel a {
  color: var(--os-text-2); text-decoration: none; font-weight: 500; font-size: 0.875rem; white-space: nowrap;
  padding: 0.375rem 0.625rem; border-radius: 0.4375rem; display: inline-flex; align-items: center; gap: 0.25rem;
  transition: color var(--os-dur-fast) var(--os-ease-state), background-color var(--os-dur-fast) var(--os-ease-state);
}
.nav-links a:hover, .menu-panel a:hover { color: var(--os-text); background: color-mix(in srgb, var(--os-text) 5%, transparent); }
.nav-links a[aria-current="page"], .menu-panel a[aria-current="page"] { color: var(--os-text); background: color-mix(in srgb, var(--os-text) 6%, transparent); }
.header-actions { display: flex; align-items: center; gap: 0.375rem; margin-left: auto; }
.search-open {
  display: inline-flex; align-items: center; gap: 0.5rem; height: var(--os-btn); padding: 0 0.375rem 0 0.625rem; min-width: 11rem;
  border: 0; border-radius: var(--r-ctl); background: var(--os-bg); color: var(--os-muted); cursor: pointer; white-space: nowrap;
  font: 450 0.8125rem/1 var(--os-font); box-shadow: 0 0 0 1px var(--os-border);
}
.search-open .kbd { margin-left: auto; }
.search-open:hover { color: var(--os-text-2); box-shadow: 0 0 0 1px var(--os-border-strong); }
.header-gh { color: var(--os-text-2); text-decoration: none; font-size: 0.875rem; font-weight: 500; padding: 0.375rem 0.5rem; border-radius: 0.4375rem; white-space: nowrap; }
.header-gh:hover { color: var(--os-text); background: color-mix(in srgb, var(--os-text) 5%, transparent); }
.menu { position: relative; display: none; }
.menu summary { list-style: none; display: grid; place-items: center; width: var(--os-target-touch); height: var(--os-target-touch); border-radius: var(--r-ctl); cursor: pointer; color: var(--os-text); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: color-mix(in srgb, var(--os-text) 6%, transparent); }
.menu .when-open, .menu[open] .when-closed { display: none; }
.menu[open] .when-open { display: block; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 0.5rem); width: min(18rem, 100vw - 2rem); display: grid; gap: 0.125rem; padding: 0.375rem;
  background: var(--os-raised); border-radius: var(--r-card); box-shadow: var(--os-shadow-pop);
}
.menu-panel a { padding: 0.625rem 0.75rem; min-height: var(--os-target-touch); font-size: 0.9375rem; }
.menu-panel .menu-cta { margin-top: 0.25rem; justify-content: space-between; background: var(--os-strong); color: var(--os-on-strong); }
.menu-panel .menu-cta:hover { background: var(--os-strong-hover); color: var(--os-on-strong); }
.when-dark { display: none; }
:root[data-theme="dark"] .when-dark { display: block; }
:root[data-theme="dark"] .when-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .when-dark { display: block; }
  :root:not([data-theme="light"]) .when-light { display: none; }
}
@media (max-width: 75em) { .search-open { min-width: 0; } .search-open__label { display: none; } .header-gh { display: none; } }
@media (max-width: 62em) {
  .nav-links { display: none; }
  .menu { display: block; }
  .header-row { gap: 0.75rem; }
}
@media (max-width: 40em) { .header-cta, .search-open .kbd { display: none; } .search-open { width: var(--os-target-touch); height: var(--os-target-touch); justify-content: center; padding: 0; background: transparent; box-shadow: none; } .theme-toggle { width: var(--os-target-touch); height: var(--os-target-touch); } }

/* Logos and screenshots per theme. */
.logo-dark, .shot__dark { display: none; }
:root[data-theme="dark"] .logo-light, :root[data-theme="dark"] .shot__light { display: none; }
:root[data-theme="dark"] .logo-dark, :root[data-theme="dark"] .shot__dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light, :root:not([data-theme="light"]) .shot__light { display: none; }
  :root:not([data-theme="light"]) .logo-dark, :root:not([data-theme="light"]) .shot__dark { display: block; }
}

/* ---- Sections ------------------------------------------------------------------------ */
.section { padding-block: clamp(4.5rem, 2.75rem + 5.5vw, 8.5rem); }
.section-tight { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.section-alt { background: var(--os-bg); box-shadow: 0 -1px 0 var(--os-hairline), 0 1px 0 var(--os-hairline); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem; width: fit-content; color: var(--os-text-2);
  font-size: 0.8125rem; font-weight: 550; letter-spacing: 0; white-space: nowrap;
}
.eyebrow .i { color: var(--os-muted); }
.eyebrow--dot::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--os-accent); box-shadow: 0 0 0 3px var(--os-accent-soft); }
.eyebrow--ml::before { background: var(--os-ml); box-shadow: 0 0 0 3px var(--os-ml-soft); }
.eyebrow--ok::before { background: var(--os-st-done); box-shadow: 0 0 0 3px var(--os-st-done-soft); }
.sec-head { display: grid; gap: 1rem; align-content: start; max-width: 46rem; margin-bottom: clamp(2.25rem, 1.5rem + 2.5vw, 4rem); }
.sec-head h2 { font-size: var(--fs-h2); font-weight: 620; letter-spacing: -0.032em; line-height: 1.08; }
.sec-head p { color: var(--os-text-2); font-size: var(--fs-lede); line-height: 1.55; max-width: 40rem; }
.sec-head.flush { margin-bottom: 0; }
.cta-row--after { margin-top: 1.5rem; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.sec-head.center p { margin-inline: auto; }
.lede { font-size: var(--fs-lede); color: var(--os-text-2); max-width: 40rem; line-height: 1.55; }

/* ---- Hero ----------------------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(3.5rem, 2rem + 5vw, 7rem) 0; isolation: isolate; overflow-x: clip; }
.hero::before {
  /* A quiet dot grid that fades out: texture, not decoration. */
  content: ""; position: absolute; inset: 0 0 auto; height: 44rem; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.5px); background-size: 1.5rem 1.5rem;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; left: 50%; top: 18rem; width: min(90rem, 100%); height: 40rem; translate: -50% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
}
.hero-copy { display: grid; gap: 1.5rem; justify-items: center; text-align: center; max-width: 54rem; margin-inline: auto; }
.hero h1 { font-size: var(--fs-display); font-weight: 640; letter-spacing: -0.045em; line-height: 1.02; }
.hero h1 .soft { color: var(--os-muted); }
.hero .lede { max-width: 40rem; margin-inline: auto; }
.hero .cta-row { justify-content: center; margin-top: 0.5rem; }
.release-pill {
  display: inline-flex; align-items: center; gap: 0.625rem; padding: 0.3125rem 0.75rem 0.3125rem 0.375rem; border-radius: 999px;
  background: var(--os-bg); box-shadow: 0 0 0 1px var(--os-border), 0 1px 2px rgba(24, 24, 27, 0.04);
  color: var(--os-text-2); font-size: 0.8125rem; font-weight: 500; text-decoration: none; white-space: nowrap; max-width: 100%;
}
.release-pill b { font-weight: 600; color: var(--os-text); padding: 0.125rem 0.5rem; border-radius: 999px; background: var(--os-surface-2); }
.release-pill .i { color: var(--os-muted); transition: transform var(--os-dur) var(--os-ease-out); }
.release-pill:hover { color: var(--os-text); }
.release-pill:hover .i { transform: translateX(2px); }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; margin-top: 0.25rem; color: var(--os-muted); font-size: 0.8125rem; list-style: none; padding: 0; }
.hero-meta li { display: inline-flex; align-items: center; gap: 0.375rem; white-space: nowrap; }
.hero-meta .i { color: var(--os-st-done); }

/* The product stage: a framed window, the signer's phone and a verdict chip over it. */
.stage-hero { position: relative; margin: clamp(3rem, 2rem + 3vw, 4.5rem) auto 0; width: min(70rem, 100%); padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.stage-hero .window { position: relative; z-index: 1; }
.stage-hero .device { position: absolute; z-index: 2; right: -2.5rem; bottom: 0; width: clamp(9rem, 6rem + 9vw, 15.5rem); }
.float-chip {
  position: absolute; z-index: 3; display: grid; grid-template-columns: auto 1fr; gap: 0.125rem 0.75rem; align-items: center;
  padding: 0.75rem 1rem 0.75rem 0.75rem; border-radius: 0.75rem; background: var(--os-raised); box-shadow: var(--os-shadow-pop); font-size: 0.8125rem; white-space: nowrap;
}
.float-chip .chip-ic { grid-row: span 2; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--os-st-done); color: #fff; box-shadow: 0 0 0 4px var(--os-st-done-soft); }
.float-chip b { font-weight: 600; font-size: 0.875rem; }
.float-chip span { color: var(--os-muted); }
.stage-hero .float-chip { left: -2rem; bottom: clamp(5rem, 3rem + 6vw, 9rem); }
@media (max-width: 80em) { .stage-hero .device { right: -0.75rem; } .stage-hero .float-chip { left: -0.75rem; } }
@media (max-width: 40em) {
  .stage-hero { padding-bottom: 2rem; }
  .stage-hero .device { width: 7.5rem; right: -0.25rem; bottom: -0.5rem; border-radius: 1.25rem; padding: 0.25rem; }
  .stage-hero .device .shot img { border-radius: 1rem; }
  .stage-hero .float-chip { display: none; }
}

/* ---- Frames ---------------------------------------------------------------------- */
.window { border-radius: var(--r-window); background: var(--os-bg); box-shadow: var(--lift-xl); overflow: hidden; }
.window__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 2.25rem; padding: 0 0.875rem; background: var(--os-surface); box-shadow: inset 0 -1px 0 var(--os-hairline); }
.window__dots { display: flex; gap: 0.375rem; }
.window__dots i { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: color-mix(in srgb, var(--os-text) 12%, transparent); }
.window__url { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.1875rem 0.75rem; border-radius: 0.375rem; background: var(--os-bg); box-shadow: 0 0 0 1px var(--os-hairline); color: var(--os-muted); font: 450 0.6875rem/1.4 var(--os-font-mono); white-space: nowrap; }
.window__url .i { width: 0.75rem; height: 0.75rem; }
.window .shot img { display: block; width: 100%; height: auto; }
.device { border-radius: 2.25rem; padding: 0.4375rem; background: #18181b; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 30px 60px -20px rgba(24, 24, 27, 0.45), 0 12px 24px -12px rgba(24, 24, 27, 0.3); }
.device .shot img { display: block; width: 100%; height: auto; border-radius: 1.8rem; }
.frame { border-radius: var(--r-window); background: var(--os-bg); box-shadow: var(--lift-xl); overflow: hidden; }
.frame .shot img { display: block; width: 100%; height: auto; }
.shot { display: block; }
figcaption { margin-top: 0.875rem; color: var(--os-muted); font-size: 0.8125rem; }
.paper { border-radius: 0.5rem; overflow: hidden; background: #fff; box-shadow: var(--lift-xl); }
.paper .shot img { display: block; width: 100%; }

/* ---- Standards strip ------------------------------------------------------------- */
.standards { padding-block: 0 clamp(1rem, 0.5rem + 2vw, 2.5rem); }
.standards p { text-align: center; color: var(--os-muted); font-size: 0.8125rem; margin-bottom: 1.25rem; }
.standards ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.625rem; }
.standards li {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.875rem; border-radius: 0.5rem; white-space: nowrap;
  background: color-mix(in srgb, var(--os-bg) 70%, transparent); box-shadow: 0 0 0 1px var(--os-hairline); color: var(--os-text-2); font: 500 0.8125rem/1.2 var(--os-font);
}
.standards li .i { color: var(--os-muted); }
@media (max-width: 40em) {
  .standards ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .standards li { white-space: normal; padding: 0.5rem 0.625rem; font-size: 0.75rem; }
  .standards p { margin-top: 1rem; }
}

/* ---- Feature rows ---------------------------------------------------------------- */
.feature { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(2rem, 1rem + 4vw, 5.5rem); align-items: center; }
.feature--flip { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); }
.feature--flip .feature__copy { order: 2; }
.feature__copy { display: grid; gap: 1.25rem; align-content: start; }
.feature__copy h2 { font-size: var(--fs-h2); font-weight: 620; letter-spacing: -0.032em; line-height: 1.08; }
.feature__copy > p { color: var(--os-text-2); font-size: var(--fs-lede); line-height: 1.55; }
.feature__media { position: relative; min-width: 0; }
@media (max-width: 60em) {
  .feature, .feature--flip { grid-template-columns: minmax(0, 1fr); }
  .feature--flip .feature__copy { order: 0; }
}
.points { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.points li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.125rem 0.875rem; }
.points .pt-ic { grid-row: span 2; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 0.5rem; background: var(--os-bg); box-shadow: 0 0 0 1px var(--os-border), 0 1px 2px rgba(24, 24, 27, 0.05); color: var(--os-text-2); }
.points .pt-ic .i { width: 1rem; height: 1rem; }
.points strong { font-weight: 580; font-size: 0.9375rem; }
.points strong .pill { margin-left: 0.375rem; vertical-align: 0.0625rem; font-size: 0.6875rem; padding: 0.0625rem 0.4375rem; }
.points span:not(.pt-ic) { color: var(--os-muted); font-size: 0.9375rem; line-height: 1.5; }
.points--ml .pt-ic { color: var(--os-ml); background: var(--os-ml-soft); box-shadow: 0 0 0 1px var(--os-ml-edge); }

/* Two frames in one media slot: a window and, overlapping, a phone. */
.media-pair { position: relative; padding: 0 clamp(2rem, 1rem + 5vw, 6rem) clamp(2rem, 1rem + 3vw, 4rem) 0; }
.media-pair .device { position: absolute; right: 0; bottom: 0; width: clamp(8rem, 5rem + 9vw, 14rem); }
@media (max-width: 40em) { .media-pair { padding: 0 2.5rem 2.5rem 0; } .media-pair .device { width: 7rem; border-radius: 1.25rem; padding: 0.25rem; } .media-pair .device .shot img { border-radius: 1rem; } }

/* ---- Bento --------------------------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.cell {
  position: relative; display: flex; flex-direction: column; gap: 0.625rem; padding: 1.75rem 1.75rem 0; overflow: hidden; min-width: 0;
  border-radius: var(--r-card); background: var(--os-bg); box-shadow: var(--lift);
}
.cell h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.015em; }
.cell p { color: var(--os-muted); font-size: 0.9375rem; max-width: 34rem; }
.cell-media { margin: 1rem -1px 0; border-top-left-radius: 0.625rem; overflow: hidden; box-shadow: 0 0 0 1px var(--os-border); margin-top: auto; }
.cell-media .shot img { display: block; width: 100%; height: auto; }
.cell--pad { padding-bottom: 1.75rem; }
.c-7 { grid-column: span 7; }
.c-5 { grid-column: span 5; }
.c-6 { grid-column: span 6; }
.c-4 { grid-column: span 4; }
.c-8 { grid-column: span 8; }
.cell > p { margin-bottom: 1rem; }
.cell .cell-media--inset { margin: auto -1.75rem 0 1.75rem; }
/* A screenshot zoomed onto the part that matters (the command menu, a receipt card),
 * by fixed proportions of the capture; each crop names its screen. */
.crop { position: relative; overflow: hidden; }
.crop .shot img { max-width: none; }
.crop--palette { aspect-ratio: 2.05; }
.crop--palette .shot img { width: 200%; margin: -7% 0 0 -50%; }
.crop--done { aspect-ratio: 1.8; }
.crop--done .shot img { width: 150%; margin: -21% 0 0 -25%; }
.crop--verify { aspect-ratio: 1.42; }
.crop--verify .shot img { width: 160%; margin: -4% 0 0 -30%; }
.cell .crop { margin: auto -1.75rem 0; border-radius: 0; box-shadow: 0 -1px 0 var(--os-border); }
@media (max-width: 60em) { .bento { grid-template-columns: minmax(0, 1fr); } .c-7, .c-5, .c-6, .c-4, .c-8 { grid-column: auto; } }
@media (max-width: 40em) { .cell { padding: 1.25rem 1.25rem 0; } .cell .cell-media--inset { margin: auto -1.25rem 0 1.25rem; } .cell .crop { margin-inline: -1.25rem; } }

/* ---- Evidence: an inverted band, the same tokens in their dark values -------------- */
.band-dark {
  --os-bg: #18181b; --os-canvas: #0f0f11; --os-surface: #1f1f23; --os-surface-2: #27272a; --os-raised: #1f1f23;
  --os-text: #f4f4f5; --os-text-2: #d4d4d8; --os-muted: #a1a1aa; --os-faint: #52525b;
  --os-border: rgba(255, 255, 255, 0.09); --os-hairline: rgba(255, 255, 255, 0.07); --os-border-strong: #7c7c86;
  --os-accent: #ff7a83; --os-accent-hover: #ffa3a9; --os-accent-soft: #2a1517; --os-focus: #ff7a83;
  --os-st-done: #4ade80; --os-st-done-soft: #13261b; --os-success: #4ade80;
  --lift: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 32px -16px rgba(0, 0, 0, 0.6);
  --lift-xl: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 48px -20px rgba(0, 0, 0, 0.7), 0 64px 120px -48px rgba(0, 0, 0, 0.8);
  --dot: rgba(255, 255, 255, 0.05);
  color-scheme: dark; position: relative; isolation: isolate; overflow: clip;
  background: #0f0f11; color: var(--os-text);
}
.band-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60rem 30rem at 85% 0%, rgba(255, 122, 131, 0.08), transparent 70%), radial-gradient(50rem 30rem at 0% 100%, rgba(74, 222, 128, 0.05), transparent 70%);
}
.evidence-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
@media (max-width: 60em) { .evidence-grid { grid-template-columns: minmax(0, 1fr); } }
.evidence-stack { position: relative; padding: 0 0 clamp(2rem, 1rem + 3vw, 4rem) clamp(2rem, 1rem + 4vw, 5rem); }
.evidence-stack .paper { position: absolute; left: 0; bottom: 0; width: clamp(9rem, 5rem + 12vw, 17rem); transform: rotate(-3deg); z-index: 2; }
@media (max-width: 40em) { .evidence-stack { padding: 0 0 2rem 2.5rem; } .evidence-stack .paper { width: 8rem; } }
.facts { list-style: none; margin: clamp(2.5rem, 2rem + 2vw, 4rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--os-hairline); border-radius: var(--r-card); overflow: hidden; box-shadow: 0 0 0 1px var(--os-hairline); }
.facts li { display: grid; gap: 0.5rem; align-content: start; padding: 1.5rem; background: var(--os-canvas); }
.facts .cell-icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 0.5rem; background: var(--os-surface-2); color: var(--os-text-2); margin-bottom: 0.25rem; }
.facts .cell-icon .i { width: 1rem; height: 1rem; }
.facts strong { font-weight: 580; font-size: 0.9375rem; }
.facts span:not(.cell-icon) { color: var(--os-muted); font-size: 0.875rem; line-height: 1.55; }
.facts--light { margin-top: 1.5rem; }
.facts--light li { background: var(--os-bg); }
@media (max-width: 60em) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40em) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts li { grid-template-columns: 2rem minmax(0, 1fr); column-gap: 0.875rem; row-gap: 0.25rem; padding: 1.125rem; }
  .facts .cell-icon { grid-row: span 2; margin: 0; }
}
.chain { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; }
.chain li { display: inline-flex; align-items: center; gap: 0.375rem; white-space: nowrap; padding: 0.375rem 0.625rem; border-radius: 0.4375rem; background: var(--os-surface); box-shadow: 0 0 0 1px var(--os-border); font: 500 0.75rem/1 var(--os-font-mono); color: var(--os-text-2); }
.chain li.sep { padding: 0; background: none; box-shadow: none; color: var(--os-faint); }
.chain li.sealed { color: var(--os-text); box-shadow: 0 0 0 1px rgba(255, 122, 131, 0.4); }
.chain .i { width: 0.875rem; height: 0.875rem; }

/* ---- Document intelligence: violet, as the app's suggestions ---------------------- */
.ml-stage { position: relative; padding: clamp(1rem, 0.5rem + 2vw, 2.25rem) clamp(1rem, 0.5rem + 2vw, 2.25rem) clamp(1rem, 0.5rem + 2vw, 2.25rem); border-radius: 1.125rem; background: radial-gradient(40rem 22rem at 70% 20%, var(--glow-ml), transparent 70%), var(--os-surface-2); box-shadow: 0 0 0 1px var(--os-hairline); }
.ml-doc { position: relative; display: grid; gap: 0.625rem; padding: 1.75rem 1.75rem 2rem; border-radius: 0.5rem; background: var(--os-bg); box-shadow: var(--lift); max-width: 25rem; }
.ml-doc .ln { height: 0.4375rem; border-radius: 99px; background: var(--os-illus-fill); }
.ml-doc .ln.t { height: 0.75rem; width: 55%; background: var(--os-illus-line); margin-bottom: 0.5rem; }
.ml-doc .ln.w9 { width: 92%; } .ml-doc .ln.w8 { width: 80%; } .ml-doc .ln.w6 { width: 62%; } .ml-doc .ln.w7 { width: 72%; }
.ml-mark { background: var(--os-ml-mark); color: var(--os-ml-ink); border-radius: 0.25rem; padding: 0 0.25rem; font-weight: 550; }
.ml-doc .txt { font-size: 0.8125rem; color: var(--os-text-2); line-height: 1.7; }
.ml-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.ml-field { position: relative; display: grid; gap: 0.25rem; }
.ml-field .box { height: 2.75rem; border-radius: 0.375rem; border: 1.5px dashed var(--os-ml); background: var(--os-ml-soft); display: flex; align-items: center; gap: 0.375rem; padding: 0 0.625rem; color: var(--os-ml); font-size: 0.75rem; font-weight: 550; white-space: nowrap; }
.ml-field .box .i { width: 0.875rem; height: 0.875rem; }
.ml-field .lbl { font-size: 0.6875rem; color: var(--os-muted); }
.ml-card {
  position: absolute; right: clamp(-1.5rem, -3rem + 3vw, 0rem); top: 50%; transform: translateY(-40%); width: min(17.5rem, 58%); display: grid; gap: 0.625rem;
  padding: 0.875rem; border-radius: 0.75rem; background: var(--os-raised); box-shadow: 0 0 0 1px var(--os-ml-edge), 0 8px 20px -10px rgba(109, 40, 217, 0.35), var(--os-shadow-pop);
}
.ml-card__h { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 600; color: var(--os-ml-ink); white-space: nowrap; }
.ml-card__h .i { color: var(--os-ml); width: 1rem; height: 1rem; }
.ml-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.375rem; }
.ml-card li { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.75rem; color: var(--os-text-2); white-space: nowrap; }
.ml-card li b { font-weight: 550; color: var(--os-text); overflow: hidden; text-overflow: ellipsis; }
.ml-card .acts { display: flex; gap: 0.375rem; }
.ml-card .acts span { flex: 1; display: grid; place-items: center; height: 1.75rem; border-radius: 0.375rem; font-size: 0.75rem; font-weight: 550; white-space: nowrap; }
.ml-card .acts .ok { background: var(--os-ml); color: var(--os-on-strong); }
.ml-card .acts .no { background: var(--os-surface-2); color: var(--os-text-2); }
.ml-note { margin-top: 0.875rem; color: var(--os-muted); font-size: 0.75rem; }
@media (max-width: 40em) { .ml-card { position: relative; right: auto; top: auto; transform: none; width: auto; margin-top: 1rem; } .ml-doc { padding: 1.25rem; max-width: none; } }


/* ---- Code blocks: ink panels in both themes ------------------------------------------- */
pre {
  position: relative; margin: 0; padding: 1rem 1.25rem; overflow-x: auto; border-radius: var(--r-ctl); line-height: 1.65;
  background: var(--ink-code); color: var(--code-text); box-shadow: 0 0 0 1px var(--code-edge); tab-size: 2;
}
pre code { font-size: 0.8125rem; background: none; box-shadow: none; padding: 0; color: inherit; white-space: pre; }
.code-wrap { position: relative; }
.code-wrap pre { padding-right: 3.5rem; }
.copy-btn {
  position: absolute; top: 0.5rem; right: 0.5rem; display: inline-grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: 0.4375rem; border: 0; background: rgba(255, 255, 255, 0.06); color: var(--code-text); cursor: pointer; box-shadow: 0 0 0 1px var(--code-edge);
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.12); }
.copy-btn .i-done { display: none; color: #4ade80; }
.copy-btn.is-done .i-done { display: block; }
.copy-btn.is-done .i-copy { display: none; }
.c-cmt { color: var(--code-muted); }
.c-key { color: #fda4af; }
.c-str { color: #bef264; }
.terminal { border-radius: var(--r-window); background: var(--ink-code); box-shadow: var(--lift-xl); overflow: hidden; min-width: 0; }
.terminal__bar { display: flex; align-items: center; gap: 0.75rem; height: 2.25rem; padding: 0 0.875rem; box-shadow: inset 0 -1px 0 var(--code-edge); color: var(--code-muted); font: 500 0.75rem/1 var(--os-font-mono); white-space: nowrap; }
.terminal__bar .window__dots i { background: rgba(255, 255, 255, 0.14); }
.terminal pre { border-radius: 0; box-shadow: none; padding-block: 1.125rem 1.375rem; background: transparent; }

/* ---- Self-host and API ------------------------------------------------------------------ */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 60em) { .duo { grid-template-columns: minmax(0, 1fr); } }
.duo-cell { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.duo-cell h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.015em; }
.duo-cell > p { color: var(--os-muted); font-size: 0.9375rem; }
.services { list-style: none; padding: 0; margin: clamp(2rem, 1.5rem + 2vw, 3rem) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--os-hairline); border-radius: var(--r-card); overflow: hidden; box-shadow: 0 0 0 1px var(--os-hairline); }
.services li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 1.125rem 1.25rem; background: var(--os-bg); font-size: 0.875rem; color: var(--os-muted); line-height: 1.5; }
.services li .i { color: var(--os-text-2); margin-top: 0.125rem; }
.services b { display: block; color: var(--os-text); font-weight: 580; font-family: var(--os-font-mono); font-size: 0.8125rem; }
@media (max-width: 60em) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36em) { .services { grid-template-columns: minmax(0, 1fr); } }

/* ---- Open source band ------------------------------------------------------------------- */
.os-band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.os-points { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 0.875rem; }
.os-points li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--os-text-2); }
.os-points .i { color: var(--os-st-done); margin-top: 0.2rem; width: 1.125rem; height: 1.125rem; }
.badge-card { display: grid; gap: 1.125rem; justify-items: center; padding: 2.5rem 2rem; border-radius: var(--r-card); background: var(--os-canvas); box-shadow: inset 0 0 0 1px var(--os-border); text-align: center; }
.badge-card .powered { display: inline-flex; gap: 0.625rem; align-items: center; padding: 0.5rem 0.875rem; border-radius: 0.5rem; background: var(--os-bg); box-shadow: var(--lift); font-size: 0.8125rem; font-weight: 500; color: var(--os-text); text-decoration: none; white-space: nowrap; }
.badge-card .powered img { width: 5rem; }
.badge-card p { font-size: 0.875rem; }
@media (max-width: 60em) { .os-band { grid-template-columns: minmax(0, 1fr); } }

/* ---- Table (comparison and docs) ------------------------------------------------------- */
.table-scroll { overflow-x: auto; border-radius: var(--r-card); background: var(--os-bg); box-shadow: var(--lift); }
.table-scroll:focus-visible { outline-offset: 0.25rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.875rem; }
th, td { text-align: left; vertical-align: top; padding: 0.875rem 1rem; }
thead th { font-weight: 580; color: var(--os-text-2); background: var(--os-surface); box-shadow: inset 0 -1px 0 var(--os-border); white-space: nowrap; font-size: 0.8125rem; }
tbody tr + tr > * { border-top: 1px solid var(--os-hairline); }
tbody th { font-weight: 550; }
td { color: var(--os-text-2); }
.compare { min-width: 52rem; }
.compare thead th:nth-child(2), .compare td:nth-child(2) { background: color-mix(in srgb, var(--os-accent-soft) 70%, transparent); }
.compare thead th:nth-child(2) { color: var(--os-text); }
.compare td:nth-child(2) { color: var(--os-text); }
.mark { display: inline-flex; gap: 0.375rem; align-items: flex-start; }
.mark .i { margin-top: 0.15rem; width: 1rem; height: 1rem; }
.mark.yes .i { color: var(--os-success); }
.mark.no .i { color: var(--os-muted); }
.mark.part .i { color: var(--os-warning); }
.note { color: var(--os-muted); font-size: 0.8125rem; margin-top: 1rem; max-width: 52rem; }

/* ---- FAQ ------------------------------------------------------------------------------------ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(2rem, 1rem + 4vw, 5rem); }
@media (max-width: 60em) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }
.faq details { border-bottom: 1px solid var(--os-border); }
.faq details:first-child { border-top: 1px solid var(--os-border); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.125rem 0; cursor: pointer;
  font-weight: 550; font-size: 1rem; list-style: none; min-height: var(--os-target-touch);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--os-muted); transition: transform var(--os-dur-slow) var(--os-ease-out); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details > div { padding: 0 0 1.25rem; color: var(--os-text-2); display: grid; gap: 0.75rem; max-width: 42rem; font-size: 0.9375rem; }

/* ---- Closing CTA -------------------------------------------------------------------------- */
.closing {
  position: relative; isolation: isolate; overflow: clip; display: grid; justify-items: center; gap: 1.25rem; text-align: center;
  padding: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(1.25rem, 0.5rem + 3vw, 3rem); border-radius: 1.25rem; background: var(--os-bg); box-shadow: var(--lift);
}
.closing::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.5px); background-size: 1.5rem 1.5rem;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 100%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse 70% 80% at 50% 100%, #000 20%, transparent 70%);
}
.closing h2 { font-size: var(--fs-h2); font-weight: 620; letter-spacing: -0.032em; line-height: 1.08; max-width: 40rem; }
.closing .lede { margin-inline: auto; }
.closing .cta-row { justify-content: center; }
.cmd {
  display: inline-flex; align-items: center; gap: 0.75rem; max-width: 100%; padding: 0.5rem 0.5rem 0.5rem 1rem; border-radius: var(--r-ctl);
  background: var(--ink-code); color: var(--code-text); font: 500 0.8125rem/1.4 var(--os-font-mono); box-shadow: 0 0 0 1px var(--code-edge);
}
.cmd code { background: none; box-shadow: none; padding: 0; color: inherit; overflow-x: auto; white-space: nowrap; }
.cmd .c-cmt { user-select: none; }

/* ---- Page head (inner pages) --------------------------------------------------------------- */
.page-head { position: relative; isolation: isolate; padding-block: clamp(3rem, 2rem + 3.5vw, 5.5rem) clamp(2rem, 1.25rem + 2vw, 3rem); box-shadow: 0 1px 0 var(--os-hairline); }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.5px); background-size: 1.5rem 1.5rem;
  -webkit-mask-image: radial-gradient(ellipse 55% 90% at 20% 0%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse 55% 90% at 20% 0%, #000 20%, transparent 70%);
}
.page-head .wrap { display: grid; gap: 1rem; justify-items: start; }
.page-head h1 { font-size: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem); font-weight: 630; letter-spacing: -0.04em; line-height: 1.05; }
.page-head .callout { max-width: 46rem; }

/* ---- Cards (inner pages) ------------------------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.card { display: grid; gap: 0.5rem; align-content: start; padding: 1.5rem; border-radius: var(--r-card); background: var(--os-bg); box-shadow: var(--lift); color: var(--os-text); text-decoration: none; min-width: 0; grid-template-columns: minmax(0, 1fr); }
a.card { transition: transform var(--os-dur-slow) var(--os-ease-out), box-shadow var(--os-dur) var(--os-ease-state); }
a.card:hover { transform: translateY(-2px); color: var(--os-text); box-shadow: 0 0 0 1px var(--os-border-strong), 0 1px 2px rgba(24, 24, 27, 0.04), 0 16px 32px -16px rgba(24, 24, 27, 0.22); }
.card h2, .card h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.card p { color: var(--os-muted); font-size: 0.9375rem; }
.card .cell-icon { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 0.5rem; background: var(--os-surface-2); color: var(--os-text-2); margin-bottom: 0.375rem; }
.card .cell-icon .i { width: 1rem; height: 1rem; }
.cards.cards-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }

/* ---- Prose ------------------------------------------------------------------------------- */
.prose { font-size: 1rem; line-height: 1.7; min-width: 0; color: var(--os-text-2); }
.prose > * + * { margin-top: 1rem; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose strong { color: var(--os-text); }
.prose h1 { font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem); font-weight: 630; letter-spacing: -0.035em; line-height: 1.1; }
.prose h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.025em; margin-top: 2.75rem; padding-top: 0.25rem; }
.prose h3 { font-size: 1.1875rem; font-weight: 600; margin-top: 2rem; }
.prose .card h2, .prose .card h3, .prose .card p { margin-top: 0; }
.prose .cards { margin-top: 1.25rem; }
.prose h4 { font-size: 1rem; font-weight: 600; margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.375rem; }
.prose li + li { margin-top: 0.375rem; }
.prose li::marker { color: var(--os-muted); }
.prose .lede { margin-top: 0.75rem; }
.prose .table-scroll { margin-top: 1.25rem; }
.prose table { font-size: 0.875rem; }
.prose figure { margin-top: 1.5rem; }
.prose .frame { margin-top: 1.5rem; }
.prose hr { border: 0; border-top: 1px solid var(--os-border); margin-block: 2.5rem; }
.callout { display: flex; gap: 0.75rem; padding: 0.875rem 1.125rem; border-radius: var(--r-ctl); background: var(--os-bg); box-shadow: 0 0 0 1px var(--os-border); font-size: 0.9375rem; color: var(--os-text-2); }
.callout .i { color: var(--os-info); margin-top: 0.25rem; width: 1.125rem; height: 1.125rem; }
.callout.warn .i { color: var(--os-warning); }
.callout > div > * + * { margin-top: 0.5rem; }

/* ---- Docs layout ------------------------------------------------------------------------- */
.docs-layout { display: grid; grid-template-columns: 14.5rem minmax(0, 1fr) 12.5rem; gap: clamp(1.5rem, 1rem + 2.5vw, 3.5rem); padding-block: 2.5rem 6rem; align-items: start; }
.docs-side, .toc { position: sticky; top: calc(var(--header-h) + 1.5rem); max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto; }
.docs-nav h2, .toc h2 { font-size: 0.75rem; font-weight: 600; color: var(--os-muted); margin: 1.5rem 0 0.375rem; padding-inline: 0.625rem; letter-spacing: 0; }
.docs-nav h2:first-child, .toc h2 { margin-top: 0; }
.docs-nav ul, .toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.0625rem; }
.docs-nav a { display: block; padding: 0.375rem 0.625rem; border-radius: 0.4375rem; color: var(--os-text-2); text-decoration: none; font-size: 0.875rem; }
.docs-nav a:hover { background: color-mix(in srgb, var(--os-text) 5%, transparent); color: var(--os-text); }
.docs-nav a[aria-current="page"] { background: var(--os-bg); color: var(--os-text); font-weight: 550; box-shadow: 0 0 0 1px var(--os-border), 0 1px 2px rgba(24, 24, 27, 0.04); }
.toc h2 { padding-inline: 0.75rem; }
.toc a { display: block; padding: 0.25rem 0 0.25rem 0.75rem; border-left: 1px solid var(--os-border); color: var(--os-muted); text-decoration: none; font-size: 0.8125rem; }
.toc a:hover, .toc a.is-active { color: var(--os-text); border-left-color: var(--os-text); }
.docs-nav-toggle { display: none; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 4rem !important; padding-top: 2rem; border-top: 1px solid var(--os-border); }
.pn { display: grid; gap: 0.25rem; padding: 1rem 1.25rem; border-radius: var(--r-card); background: var(--os-bg); box-shadow: var(--lift); text-decoration: none; color: var(--os-text); }
.pn:hover { color: var(--os-text); box-shadow: 0 0 0 1px var(--os-border-strong); }
.pn-dir { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--os-muted); font-size: 0.8125rem; }
.pn-title { font-weight: 580; }
.pn-next { grid-column: 2; text-align: right; justify-items: end; }
@media (max-width: 75em) {
  .docs-layout { grid-template-columns: 13.5rem minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 52em) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); padding-top: 1rem; }
  .docs-side { position: static; max-height: none; overflow: visible; }
  .docs-nav--wide { display: none; }
  .docs-nav-toggle { display: block; border-radius: var(--r-card); background: var(--os-bg); box-shadow: var(--lift); }
  .docs-nav-toggle summary { display: flex; gap: 0.5rem; align-items: center; padding: 0.75rem 1rem; min-height: var(--os-target-touch); font-weight: 550; cursor: pointer; }
  .docs-nav-toggle .docs-nav { padding: 0 0.5rem 0.75rem; }
  .docs-nav-toggle .docs-nav a { padding-block: 0.625rem; }
  .prevnext { grid-template-columns: minmax(0, 1fr); }
  .pn-next { grid-column: auto; }
}

/* ---- API reference ----------------------------------------------------------------------- */
.verb { display: inline-block; min-width: 4.25rem; text-align: center; padding: 0.2rem 0.5rem; border-radius: 0.375rem; font: 600 0.6875rem/1.4 var(--os-font-mono); letter-spacing: 0.04em; box-shadow: inset 0 0 0 1px currentColor; }
.verb-get { color: var(--os-info); }
.verb-post { color: var(--os-success); }
.verb-put, .verb-patch { color: var(--os-warning); }
.verb-delete { color: var(--os-danger); }

/* ---- Breadcrumbs and docs extras (SITE-12) ------------------------------------------------- */
.crumbs ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; font-size: 0.8125rem; color: var(--os-muted); }
.prose .crumbs ol { padding-left: 0; }
.crumbs li + li { margin-top: 0; }
.toc a { overflow-wrap: anywhere; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--os-faint); }
.crumbs a { color: var(--os-text-2); text-decoration: none; }
.crumbs a:hover { color: var(--os-text); text-decoration: underline; }
.crumbs [aria-current] { color: var(--os-text); }
.prose .crumbs + h1 { margin-top: 0; }
.docs-nav .docs-nav__sub a { padding-left: 1.375rem; font-size: 0.8125rem; }
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding-left: 2.75rem; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0.1rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--os-strong); color: var(--os-on-strong); font: 600 0.8125rem/1.75rem var(--os-font); text-align: center; }
.steps > li + li { margin-top: 1.75rem; }
.steps > li > * + * { margin-top: 0.75rem; }
.prose .steps h3 { margin-top: 0; }
.guide-grid, .res-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.prose .guide-grid, .prose .res-grid { margin-top: 1.5rem; }
.guide-card, .res-card { display: grid; align-content: start; gap: 0.375rem; padding: 1.25rem; border-radius: var(--r-card); background: var(--os-bg); box-shadow: var(--lift); text-decoration: none; color: var(--os-text); }
.guide-card:hover, .res-card:hover { color: var(--os-text); box-shadow: 0 0 0 1px var(--os-border-strong); }
.guide-card .i { color: var(--os-text-2); }
.guide-card__t, .res-card__t { font-weight: 600; }
.guide-card__t { margin-top: 0.5rem; }
.guide-card__d, .res-card__d { font-size: 0.875rem; color: var(--os-text-2); line-height: 1.55; }
.res-card__n { font: 500 0.75rem/1.4 var(--os-font-mono); color: var(--os-muted); margin-top: 0.25rem; }
.res-card--muted { background: transparent; box-shadow: inset 0 0 0 1px var(--os-border-strong); }
.codebox-label { font-size: 0.8125rem; font-weight: 600; color: var(--os-muted); }
.api-quick > * + * { margin-top: 1rem; }
.api-quick__code { margin-top: 1.25rem; }
.api-quick__code > * + * { margin-top: 0.5rem; }
.code-trio > * + * { margin-top: 0.75rem; }
.tag { display: inline-block; font-size: max(0.6875rem, 11px); font-weight: 600; line-height: 1.4; padding: 0.0625rem 0.4375rem; border-radius: 999px; white-space: nowrap; }
.tag--secret { color: var(--os-pii-text); background: var(--os-pii-soft); box-shadow: inset 0 0 0 1px var(--os-pii-edge); margin-left: 0.5rem; }
.tag--req { color: var(--os-text); background: var(--os-surface-2); box-shadow: inset 0 0 0 1px var(--os-border); }
.cfg-table table { min-width: 46rem; }
@media (min-width: 52.01em) { .docs-layout--wide { grid-template-columns: 14.5rem minmax(0, 1fr); } }
.cfg-table tbody th { font-weight: 500; width: 30%; }
.cfg-table td:nth-child(2) { width: 12%; overflow-wrap: anywhere; }
.cfg-table td:nth-child(3) { width: 8%; }
.cfg-table td:nth-child(4) { width: 50%; }
.cfg-table tbody th a { text-decoration: none; }
.cfg-table tbody th code { overflow-wrap: break-word; color: var(--os-text); }

.cfg-file { display: block; font-size: 0.75rem; color: var(--os-muted); font-weight: 400; margin-top: 0.375rem; }
.cfg-table tr:target > *, .param:target { background: var(--os-select-soft); }
.cfg-table tr[hidden] { display: none; }
.filter-box { display: flex; align-items: center; gap: 0.625rem; padding: 0.25rem 0.875rem; border-radius: var(--r-ctl); background: var(--os-bg); box-shadow: 0 0 0 1px var(--os-border-strong); position: sticky; top: calc(var(--header-h) + 0.75rem); z-index: 2; }
.prose .filter-box { margin-top: 1.75rem; }
.filter-box[hidden] { display: none; }
.filter-box:focus-within { box-shadow: 0 0 0 2px var(--os-focus); }
.filter-box__label { display: inline-flex; color: var(--os-muted); }
.filter-box__input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 0.9375rem; color: var(--os-text); min-height: 2.5rem; outline: none; }
.filter-box__status { font-size: 0.8125rem; color: var(--os-muted); white-space: nowrap; }

/* ---- API reference: three panes (SITE-12) ------------------------------------------------------
 * Navigation on the left; each operation as a row of its documentation and, beside it, a
 * sticky ink column with the request in three languages, the response and the errors (the
 * layout Stripe's and Twilio's references use). One column under 80em; the navigation
 * becomes a drawer under 52em. Everything reads without JavaScript: the language panels
 * then show one after another, each labelled. */
.api-main { background: var(--os-canvas); }
.api-shell { display: grid; grid-template-columns: 17.5rem minmax(0, 1fr); max-width: 118rem; margin-inline: auto; }
.api-side { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 1.5rem 0.75rem 3rem max(var(--gutter), 1rem); box-shadow: inset -1px 0 0 var(--os-border); }
.api-body { min-width: 0; padding: 1.75rem clamp(1rem, 0.25rem + 2.4vw, 3rem) 6rem; }
.api-nav h2 { font-size: 0.75rem; font-weight: 600; color: var(--os-muted); margin: 1.5rem 0 0.375rem; padding-inline: 0.5rem; letter-spacing: 0; }
.api-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.api-nav a { display: flex; align-items: center; gap: 0.5rem; min-height: 2rem; padding: 0.3125rem 0.5rem; border-radius: 0.4375rem; color: var(--os-text-2); text-decoration: none; font-size: 0.875rem; }
.api-nav a:hover { background: color-mix(in srgb, var(--os-text) 5%, transparent); color: var(--os-text); }
.api-nav a[aria-current="page"] { color: var(--os-text); font-weight: 580; background: var(--os-bg); box-shadow: 0 0 0 1px var(--os-border); }
.api-nav__grp { justify-content: space-between; }
.api-nav__count { font: 500 max(0.6875rem, 11px)/1 var(--os-font-mono); color: var(--os-muted); }
.api-nav a[aria-current="page"] .api-nav__count { color: var(--os-text-2); }
.api-nav ul.api-nav__ops { margin: 0.25rem 0 0.5rem 0.625rem; padding-left: 0.5rem; box-shadow: inset 1px 0 0 var(--os-border); }
.api-nav__ops a { font-size: 0.8125rem; min-height: 1.875rem; padding-block: 0.25rem; }
.api-nav__ops a.is-active { color: var(--os-text); background: color-mix(in srgb, var(--os-text) 6%, transparent); }
.api-nav__ops li, .api-nav__ops a { min-width: 0; }
.api-nav__ops a { max-width: 100%; }
.api-nav__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 auto; }
.verb { background: color-mix(in srgb, currentColor 9%, transparent); }
.verb--sm { min-width: 3.375rem; padding: 0.125rem 0.25rem; font-size: max(0.625rem, 11px); flex: none; }
.docs-nav-toggle .api-nav { padding: 0 0.5rem 0.75rem; }

.api-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: start; padding-bottom: 3rem; }
.api-head__text > * + * { margin-top: 0.75rem; }
.api-head h1 { font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem); font-weight: 630; letter-spacing: -0.035em; line-height: 1.1; }
.api-head .lede { color: var(--os-text-2); font-size: 1.0625rem; line-height: 1.65; }
.api-head .callout { margin-top: 1.25rem; }
.api-kicker { font-size: 0.8125rem; font-weight: 600; color: var(--os-muted); }
.api-head--single { grid-template-columns: minmax(0, 46rem); }

.api-op { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: clamp(1.5rem, 1rem + 2vw, 3rem); padding-block: 3rem; box-shadow: 0 -1px 0 var(--os-border); }
.api-op__doc { min-width: 0; }
.api-op__doc > * + * { margin-top: 0.875rem; }
.api-op__title { font-size: 1.5rem; font-weight: 620; letter-spacing: -0.025em; line-height: 1.25; }
.anchor-link { color: inherit; text-decoration: none; }
.anchor-link:hover { color: inherit; text-decoration: underline; text-decoration-color: var(--os-border-strong); }
.api-endpoint { display: flex; align-items: center; gap: 0.625rem; flex-wrap: wrap; }
.api-endpoint code { font-size: 0.875rem; background: none; box-shadow: none; padding: 0; color: var(--os-text); overflow-wrap: anywhere; }
.api-op__sum { font-size: 1rem; color: var(--os-text); line-height: 1.55; }
.api-op__desc { color: var(--os-text-2); line-height: 1.65; font-size: 0.9375rem; }
.api-auth { font-size: 0.875rem; color: var(--os-text-2); display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 0.75rem; line-height: 1.6; }
.api-op__doc .api-auth + .api-auth { margin-top: 0.375rem; }
.api-auth__k { font-size: 0.75rem; font-weight: 600; color: var(--os-muted); min-width: 5.5rem; padding-top: 0.125rem; }
.api-h { font-size: 0.9375rem; font-weight: 620; padding-bottom: 0.5rem; box-shadow: 0 1px 0 var(--os-border); }
.api-op__doc > .api-h { margin-top: 2rem; }
.api-ctype { font-size: 0.8125rem; color: var(--os-muted); }
.api-limits { font-size: 0.875rem; color: var(--os-text-2); padding-left: 1.25rem; }
.params { list-style: none; margin: 0; padding: 0; }
.param { padding: 0.875rem 0; box-shadow: 0 1px 0 var(--os-hairline); scroll-margin-top: calc(var(--header-h) + 1rem); }
.param__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.625rem; }
.param__name { text-decoration: none; }
.param__name code { font-weight: 600; color: var(--os-text); background: none; box-shadow: none; padding: 0; font-size: 0.875rem; }
.param__name:hover code { text-decoration: underline; }
.param__type { font-size: 0.8125rem; color: var(--os-muted); }
.param__req { font-size: max(0.6875rem, 11px); font-weight: 600; color: var(--os-warning); letter-spacing: 0.02em; }
.param__flag { font-size: max(0.6875rem, 11px); color: var(--os-muted); }
.param__desc { margin-top: 0.375rem; font-size: 0.875rem; color: var(--os-text-2); line-height: 1.6; }
.param__meta { margin-top: 0.375rem; font-size: 0.8125rem; color: var(--os-muted); line-height: 1.55; overflow-wrap: anywhere; }
.param__kids { margin-top: 0.625rem; border-radius: var(--r-ctl); box-shadow: 0 0 0 1px var(--os-border); background: var(--os-bg); }
.param__kids > summary { cursor: pointer; padding: 0.375rem 0.875rem; font-size: 0.8125rem; font-weight: 550; color: var(--os-text-2); min-height: var(--os-target-min); display: flex; align-items: center; }
.param__kids > summary code { margin-left: 0.25rem; }
.param__kids > .params { padding: 0 0.875rem; box-shadow: 0 -1px 0 var(--os-border); }
.param__kids .param:last-child { box-shadow: none; }

.api-op__code { position: sticky; top: calc(var(--header-h) + 1.25rem); align-self: start; display: grid; gap: 1rem; min-width: 0; max-height: calc(100vh - var(--header-h) - 2.5rem); overflow-y: auto; overscroll-behavior: contain; border-radius: var(--r-card); }
.codebox { border-radius: var(--r-card); background: var(--ink-code); box-shadow: 0 0 0 1px var(--code-edge), 0 12px 32px -16px rgba(24, 24, 27, 0.4); overflow: hidden; min-width: 0; color: var(--code-text); }
.codebox__bar { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 0.75rem; flex-wrap: wrap; padding: 0.375rem 0.5rem 0.375rem 0.875rem; min-height: 2.75rem; box-shadow: inset 0 -1px 0 var(--code-edge); }
.codebox__title { display: flex; align-items: center; gap: 0.5rem; font: 500 0.75rem/1.35 var(--os-font-mono); color: var(--code-muted); min-width: 0; overflow-wrap: anywhere; }
.codebox .verb-get { color: #93c5fd; }
.codebox .verb-post { color: #86efac; }
.codebox .verb-put, .codebox .verb-patch { color: #fdba74; }
.codebox .verb-delete { color: #f9a8d4; }
.code-tabs { display: none; gap: 0.125rem; }
.js .code-tabs { display: flex; }
.code-tab { border: 0; background: transparent; color: var(--code-muted); font: 550 0.75rem/1 var(--os-font); padding: 0.5rem 0.625rem; min-height: 2rem; border-radius: 0.375rem; cursor: pointer; }
.code-tab:hover { color: var(--code-text); }
.code-tab[aria-selected="true"] { background: rgba(255, 255, 255, 0.1); color: #fafafa; }
.code-tab:focus-visible { outline-color: #fda4af; }
.code-panel pre, .codebox > pre, .codebox .code-wrap pre { border-radius: 0; box-shadow: none; background: transparent; max-height: 30rem; }
.code-panel__label { padding: 0.75rem 0.875rem 0; font-size: 0.75rem; font-weight: 600; color: var(--code-muted); }
.code-panel + .code-panel { box-shadow: 0 -1px 0 var(--code-edge); }
.js .code-panel__label { display: none; }
.js .code-panel:not(.is-active) { display: none; }
.js .code-panel + .code-panel { box-shadow: none; }
.codebox__note { padding: 0.875rem; font-size: 0.8125rem; color: var(--code-muted); }
.codebox__note code { background: rgba(255, 255, 255, 0.08); box-shadow: none; color: var(--code-text); }
.codebox--list .endpoint-list { list-style: none; margin: 0; padding: 0.375rem 0; }
.endpoint-list a { display: flex; gap: 0.625rem; align-items: center; padding: 0.3125rem 0.875rem; text-decoration: none; color: var(--code-text); min-height: var(--os-target-min); }
.endpoint-list a:hover { background: rgba(255, 255, 255, 0.05); color: #fafafa; }
.endpoint-list code { background: none; box-shadow: none; padding: 0; color: inherit; font-size: 0.75rem; overflow-wrap: anywhere; }
.status-pill { display: inline-flex; align-items: center; gap: 0.375rem; font: 600 0.75rem/1 var(--os-font-mono); padding: 0.25rem 0.5rem; border-radius: 999px; white-space: nowrap; }
.status-pill::before { content: ""; width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--pill); }
.status-pill--2xx { --pill: var(--os-success); color: var(--os-text); background: color-mix(in srgb, var(--os-success) 10%, transparent); }
.status-pill--3xx { --pill: var(--os-info); color: var(--os-text); background: color-mix(in srgb, var(--os-info) 10%, transparent); }
.status-pill--4xx { --pill: var(--os-warning); color: var(--os-text); background: color-mix(in srgb, var(--os-warning) 10%, transparent); }
.status-pill--5xx { --pill: var(--os-danger); color: var(--os-text); background: color-mix(in srgb, var(--os-danger) 10%, transparent); }
.codebox .status-pill--2xx { --pill: #86efac; color: #86efac; background: rgba(134, 239, 172, 0.1); }
.codebox .status-pill--3xx { --pill: #93c5fd; color: #93c5fd; background: rgba(147, 197, 253, 0.1); }
.errbox { border-radius: var(--r-card); background: var(--os-bg); box-shadow: 0 0 0 1px var(--os-border); }
.errbox > summary { cursor: pointer; padding: 0.625rem 1rem; font-size: 0.875rem; font-weight: 580; color: var(--os-text); min-height: var(--os-target-touch); display: flex; align-items: center; }
.errbox .table-scroll { box-shadow: 0 -1px 0 var(--os-border); border-radius: 0; background: transparent; }
.errbox table { font-size: 0.8125rem; }
.errbox th, .errbox td { padding: 0.5rem 0.75rem; }
.errbox td:first-child { white-space: nowrap; }
.errbox__note { padding: 0.625rem 1rem 0.875rem; font-size: 0.75rem; color: var(--os-muted); }
.api-prevnext { margin-top: 3rem; }
.api-object { padding-block: 2rem; box-shadow: 0 -1px 0 var(--os-border); scroll-margin-top: var(--header-h); }
.api-object > * + * { margin-top: 0.75rem; }
.api-object h2 { font: 620 1.125rem/1.3 var(--os-font-mono); letter-spacing: -0.01em; }
.api-op__title, .api-object { scroll-margin-top: calc(var(--header-h) + 1rem); }
@media (max-width: 80em) {
  .api-op, .api-head { grid-template-columns: minmax(0, 1fr); }
  .api-op__code { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 60em) {
  .guide-grid, .res-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 52em) {
  .api-shell { grid-template-columns: minmax(0, 1fr); }
  .api-side { position: static; height: auto; overflow: visible; box-shadow: none; padding: 1rem var(--gutter) 0; }
  .api-nav--wide { display: none; }
  .api-body { padding: 1rem var(--gutter) 4rem; }
  .api-op { padding-block: 2.25rem; }
}
@media print {
  .api-side, .code-tabs { display: none !important; }
  .api-shell, .api-op { display: block; }
}

/* ---- Roadmap -------------------------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.1875rem 0.5rem; border-radius: 0.375rem; font-size: 0.75rem; font-weight: 550;
  white-space: nowrap; line-height: 1.4; background: var(--os-surface-2);
}
.pill .i { width: 0.875rem; height: 0.875rem; }
.pill-done { color: var(--os-st-done); background: var(--os-st-done-soft); }
.pill-progress { color: var(--os-info); background: var(--os-surface-2); box-shadow: inset 0 0 0 1px var(--os-border); }
.pill-next { color: var(--os-st-wait); background: var(--os-st-wait-soft); }
.pill-later { color: var(--os-st-draft); background: var(--os-st-draft-soft); }
.pill-paused { color: var(--os-muted); background: var(--os-surface-2); box-shadow: inset 0 0 0 1px var(--os-hairline); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.timeline > li { position: relative; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1.25rem; padding-bottom: 2rem; }
.timeline > li::before { content: ""; position: absolute; left: 1.25rem; top: 2.5rem; bottom: 0; border-left: 1px solid var(--os-border); }
.timeline > li:last-child::before { display: none; }
.tl-dot { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 0.625rem; background: var(--os-bg); box-shadow: var(--lift); color: var(--os-muted); }
.tl-dot .i { width: 1.125rem; height: 1.125rem; }
.tl-done .tl-dot { color: var(--os-st-done); }
.tl-progress .tl-dot { color: var(--os-info); }
.tl-body { display: grid; gap: 0.5rem; padding-top: 0.375rem; min-width: 0; }
.tl-title { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; }
.tl-title h3 { font-size: 1.0625rem; font-weight: 600; }
.tl-body p { color: var(--os-muted); font-size: 0.9375rem; }
.tl-items { list-style: none; padding: 0; margin: 0.25rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0.5rem; }
.tl-items li { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.8125rem; padding: 0.5rem 0.75rem; border-radius: 0.5rem; background: var(--os-bg); box-shadow: 0 0 0 1px var(--os-hairline); color: var(--os-text-2); }
.tl-items li .i { margin-top: 0.15rem; flex: none; width: 1rem; height: 1rem; }
.tl-items .ok { color: var(--os-st-done); }
.tl-items .wip { color: var(--os-info); }
.tl-items .todo { color: var(--os-muted); }
.tl-items .paused { color: var(--os-muted); }
.release { border-radius: 1.125rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); background: var(--os-canvas); box-shadow: inset 0 0 0 1px var(--os-border); }
.release h2 { font-size: 1.5rem; letter-spacing: -0.025em; }
.scope { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 0.5rem 1.25rem; }
.scope li { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.9375rem; color: var(--os-text-2); }
.scope .i { color: var(--os-st-done); margin-top: 0.2rem; width: 1rem; height: 1rem; }
.board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 52em) { .board { grid-template-columns: minmax(0, 1fr); } }
.lane { border-radius: 1.125rem; background: var(--os-surface-2); box-shadow: inset 0 0 0 1px var(--os-hairline); padding: 1rem; display: grid; gap: 1rem; align-content: start; min-width: 0; }
.lane > h2 { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 1.125rem; padding: 0.25rem 0.5rem; }
.theme-group { display: grid; gap: 0.5rem; }
.theme-group h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 600; color: var(--os-muted); padding-inline: 0.5rem; }
.ticket { display: grid; gap: 0.25rem; padding: 0.875rem 1rem; border-radius: 0.625rem; background: var(--os-bg); box-shadow: var(--os-shadow-sm); }
.ticket-top { display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; }
.ticket b { font-weight: 580; font-size: 0.9375rem; }
.ticket span.id { font: 500 0.6875rem/1 var(--os-font-mono); color: var(--os-muted); white-space: nowrap; }
.ticket p { color: var(--os-muted); font-size: 0.8125rem; }
.tl-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.lane-blurb { padding-inline: 0.5rem; font-size: 0.875rem; margin-top: -0.5rem; }

/* ---- Brand page ------------------------------------------------------------------------- */
.logo-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; }
.logo-tile { display: grid; gap: 1rem; border-radius: var(--r-card); overflow: hidden; background: var(--os-bg); box-shadow: var(--lift); }
.logo-tile .stage { display: grid; place-items: center; min-height: 9rem; padding: 1.5rem; background: #ffffff; box-shadow: inset 0 -1px 0 var(--os-hairline); }
.logo-tile .stage.dark { background: #18181b; }
.logo-tile .stage img { max-height: 3.5rem; width: auto; }
.logo-tile .meta { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0 1rem 1rem; font-size: 0.8125rem; color: var(--os-text-2); }
.logo-tile .meta a { white-space: nowrap; }

/* ---- Footer ----------------------------------------------------------------------------- */
.site-footer { background: var(--os-bg); box-shadow: 0 -1px 0 var(--os-hairline); padding-block: 4rem 2rem; font-size: 0.875rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 2rem; }
.foot-brand { display: grid; gap: 0.875rem; align-content: start; max-width: 20rem; }
.foot-brand img { width: 7.25rem; }
.foot-brand p { color: var(--os-muted); }
.foot-legal { font-size: 0.75rem; }
.foot-col h2 { font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.875rem; letter-spacing: 0; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.625rem; }
.foot-col a { color: var(--os-muted); text-decoration: none; }
.foot-col a:hover { color: var(--os-text); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--os-hairline); color: var(--os-muted); font-size: 0.75rem; }
@media (max-width: 60em) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* ---- Search ------------------------------------------------------------------------------ */
.search-dialog {
  width: min(40rem, 100vw - 2rem); max-height: min(36rem, 100vh - 4rem); margin: 10vh auto auto; padding: 0;
  border: 0; border-radius: var(--r-card); background: var(--os-raised); color: var(--os-text); box-shadow: var(--os-shadow-pop);
}
.search-dialog::backdrop { background: var(--os-overlay); backdrop-filter: blur(2px); }
.search-form { display: flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.375rem 0.375rem 1rem; box-shadow: inset 0 -1px 0 var(--os-border); }
.search-icon { color: var(--os-muted); }
.search-input { flex: 1; min-width: 0; height: 2.75rem; border: 0; background: transparent; color: var(--os-text); font: 400 1rem var(--os-font); }
.search-input:focus { outline: none; }
.search-form:focus-within { box-shadow: inset 0 -2px 0 var(--os-focus); }
.search-input::-webkit-search-cancel-button { display: none; }
.search-status { padding: 0.75rem 1rem 0; color: var(--os-muted); font-size: 0.75rem; }
.search-results { list-style: none; margin: 0; padding: 0.375rem; overflow-y: auto; max-height: 26rem; display: grid; gap: 0.125rem; }
.search-results a { display: grid; gap: 0.125rem; padding: 0.625rem 0.75rem; border-radius: 0.5rem; text-decoration: none; color: var(--os-text); }
.search-results a:hover, .search-results a:focus-visible { background: var(--os-surface-2); outline-offset: -2px; }
.search-results .r-page { font-size: 0.6875rem; color: var(--os-muted); }
.search-results .r-head { font-weight: 550; font-size: 0.9375rem; }
.search-results .r-text { font-size: 0.8125rem; color: var(--os-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-results mark { background: var(--os-accent-soft); color: inherit; border-radius: 0.2rem; }

/* ---- Motion -------------------------------------------------------------------------- */
/* Content is visible by default: without scripts, in print, in a screenshot, under
 * reduced motion. site.js marks .reveal-pending only on elements below the fold, when
 * IntersectionObserver exists and motion is welcome, and adds .is-in as they arrive. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-pending { transition: opacity 800ms var(--os-ease-out), transform 800ms var(--os-ease-out); }
  .reveal-pending:not(.is-in) { opacity: 0; transform: translateY(1.5rem); }
  .reveal-pending.reveal-d1 { transition-delay: 90ms; }
  .reveal-pending.reveal-d2 { transition-delay: 180ms; }
  .reveal-pending.reveal-d3 { transition-delay: 270ms; }
  /* The hero rises in once on load; the stage settles from a slight tilt. */
  .js .hero-copy > * { animation: rise 900ms var(--os-ease-out) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .js .hero-copy > :nth-child(3) { animation-delay: 120ms; }
  .js .hero-copy > :nth-child(4) { animation-delay: 180ms; }
  .js .hero-copy > :nth-child(5) { animation-delay: 240ms; }
  .js .stage-hero .window { animation: stage-in 1200ms var(--os-ease-out) 200ms both; transform-origin: 50% 0; }
  .js .stage-hero .device { animation: rise 1000ms var(--os-ease-out) 650ms both; }
  .js .stage-hero .float-chip { animation: pop 700ms var(--os-ease-spring) 1050ms both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes stage-in { from { opacity: 0; transform: perspective(1600px) rotateX(8deg) translateY(28px) scale(0.98); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.94); } }
@media print {
  .reveal-pending { opacity: 1 !important; transform: none !important; }
  .site-header, .site-footer, .docs-side, .toc, .copy-btn { display: none !important; }
}

/* ---- Architecture diagram ---------------------------------------------------------------- */
.arch svg { display: block; width: 100%; height: auto; font-family: var(--os-font); }
.arch figcaption { text-align: left; }
.ar-band rect { fill: var(--os-surface-2); stroke: var(--os-border); }
.ar-engine rect { fill: var(--os-accent-soft); stroke: var(--os-border); }
.ar-label { fill: var(--os-muted); font-size: 13px; font-weight: 600; }
.ar-box rect, .ar-chip rect { fill: var(--os-bg); stroke: var(--os-border-strong); stroke-width: 1.25; }
.ar-box text, .ar-chip text, .ar-out text { fill: var(--os-text); font-size: 13.5px; font-weight: 550; text-anchor: middle; }
.ar-box .ar-sub { fill: var(--os-muted); font-size: 11.5px; font-weight: 400; }
.ar-strong rect { stroke: var(--os-text); stroke-width: 1.5; }
.ar-accent rect { stroke: var(--os-accent); stroke-width: 1.5; }
.ar-key rect { stroke: var(--os-warning); stroke-width: 1.5; }
.ar-chip text { font-family: var(--os-font-mono); font-size: 12.5px; }
.ar-out rect { fill: var(--os-surface); stroke: var(--os-border-strong); stroke-dasharray: 4 3; }
.ar-out text { font-size: 12px; font-weight: 500; }
.ar-line { fill: none; stroke: var(--os-border-strong); stroke-width: 1.5; }
.ar-dash { stroke-dasharray: 5 4; }
.ar-note { fill: var(--os-muted); font-size: 11px; }
.arch-scroll { overflow-x: auto; }
@media (max-width: 40em) { .arch svg { min-width: 40rem; } }

/* ---- Verify (SITE-03) ---------------------------------------------------------------------- */
.vfy-private { display: flex; gap: 0.625rem; align-items: flex-start; max-width: 46rem; padding: 0.75rem 1rem; border-radius: var(--r-ctl); background: var(--os-bg); box-shadow: 0 0 0 1px var(--os-border); color: var(--os-text-2); font-size: 0.9375rem; }
.vfy-private .i { color: var(--os-success); flex: none; margin-top: 0.2rem; }
.vfy { display: grid; gap: 1.25rem; }
.vfy-drop { display: grid; justify-items: center; gap: 0.5rem; text-align: center; padding: clamp(1.75rem, 1rem + 3vw, 3rem) 1.25rem; border-radius: var(--r-card); background: var(--os-bg); box-shadow: var(--lift); outline: 1.5px dashed var(--os-border-strong); outline-offset: -0.75rem; transition: outline-color var(--os-dur) var(--os-ease-state), background var(--os-dur) var(--os-ease-state); }
.vfy-drop.is-dropping { outline-color: var(--os-accent); background: var(--os-accent-soft); }
.vfy-drop__icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 0.75rem; background: var(--os-surface-2); color: var(--os-text-2); margin-bottom: 0.25rem; }
.vfy-drop__title { font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.vfy-drop__sub { color: var(--os-muted); font-size: 0.9375rem; margin-bottom: 0.5rem; }
.vfy-choose, .vfy-trust__add { cursor: pointer; }
.vfy-choose:focus-within, .vfy-trust__add:focus-within { outline: var(--os-focus-width) solid var(--os-focus); outline-offset: var(--os-focus-offset); }
.vfy-engine { font-size: 0.8125rem; color: var(--os-muted); margin-top: 0.25rem; }
.vfy-engine[data-state="ready"] { color: var(--os-success); }
.vfy-engine[data-state="missing"] { color: var(--os-warning); }
.vfy-trust { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; justify-content: space-between; padding: 1.125rem 1.25rem; border-radius: var(--r-card); background: var(--os-bg); box-shadow: 0 0 0 1px var(--os-border); }
.vfy-trust > div { flex: 1 1 20rem; display: grid; gap: 0.375rem; min-width: 0; }
.vfy-trust p { font-size: 0.875rem; }
.vfy-trust__title { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.vfy-trust__title .muted { font-weight: 400; }
.vfy-chips { list-style: none; margin: 0.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.375rem; font-size: 0.8125rem; }
.vfy-chip { display: inline-flex; align-items: center; gap: 0.25rem; max-width: 100%; padding: 0.125rem 0.25rem 0.125rem 0.625rem; border-radius: 999px; background: var(--os-surface-2); }
.vfy-chip__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.vfy-chip__x { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border: 0; border-radius: 999px; background: transparent; color: var(--os-muted); cursor: pointer; }
.vfy-chip__x:hover { background: var(--os-border); color: var(--os-text); }
.vfy-samples { display: grid; gap: 0.75rem; font-size: 0.9375rem; color: var(--os-text-2); }
.vfy-samples__files { font-size: 0.8125rem; }
.vfy-result:empty { display: none; }
.vfy-result:focus { outline: none; }
.vfy-busy { color: var(--os-muted); }
.vfy-problem { display: flex; gap: 0.5rem; align-items: center; padding: 0.875rem 1rem; border-radius: var(--r-ctl); background: var(--os-bg); box-shadow: 0 0 0 1px var(--os-border); color: var(--os-text); }
.vfy-problem svg { color: var(--os-warning); flex: none; }
.vfy-verdict { display: grid; gap: 1.25rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-radius: var(--r-card); background: var(--os-bg); box-shadow: var(--lift-xl); border-top: 3px solid var(--tone); --tone: var(--os-warning); }
.vfy-verdict.is-ok { --tone: var(--os-success); }
.vfy-verdict.is-bad { --tone: var(--os-danger); }
.vfy-verdict__head { display: flex; gap: 1rem; align-items: flex-start; }
.vfy-verdict__head h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); letter-spacing: -0.025em; }
.vfy-verdict__head p { color: var(--os-text-2); margin-top: 0.25rem; }
.vfy-seal { flex: none; display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 999px; color: var(--tone); box-shadow: 0 0 0 2px var(--tone), 0 0 0 6px color-mix(in srgb, var(--tone) 14%, transparent); }
.vfy-rows { list-style: none; margin: 0; padding: 0; display: grid; border-radius: var(--r-ctl); box-shadow: 0 0 0 1px var(--os-border); overflow: hidden; }
.vfy-row { display: grid; grid-template-columns: auto minmax(7rem, 10rem) minmax(0, 1fr); gap: 0.75rem; align-items: baseline; padding: 0.75rem 1rem; font-size: 0.9375rem; }
.vfy-row + .vfy-row { box-shadow: inset 0 1px 0 var(--os-border); }
.vfy-row__dot { align-self: center; display: inline-grid; place-items: center; width: 1.375rem; height: 1.375rem; border-radius: 999px; color: var(--os-muted); background: var(--os-surface-2); }
.vfy-row.is-ok .vfy-row__dot { color: var(--os-success); }
.vfy-row.is-bad .vfy-row__dot { color: var(--os-danger); }
.vfy-row.is-warn .vfy-row__dot { color: var(--os-warning); }
.vfy-row__label { font-weight: 600; }
.vfy-row__text { color: var(--os-text-2); }
@media (max-width: 36em) { .vfy-row { grid-template-columns: auto minmax(0, 1fr); } .vfy-row__text { grid-column: 2; } }
.vfy-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.375rem 1rem; margin: 0; font-size: 0.875rem; }
.vfy-facts dt { color: var(--os-muted); }
.vfy-facts dd { margin: 0; min-width: 0; }
.vfy-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vfy-details { font-size: 0.875rem; }
.vfy-details summary { cursor: pointer; font-weight: 550; }
.vfy-sig { margin-top: 1rem; display: grid; gap: 0.375rem; }
.vfy-sig h3 { font-size: 0.9375rem; }
.vfy-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.vfy-checks li, .vfy-change { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.vfy-checks .is-ok svg, .vfy-change.is-ok svg { color: var(--os-success); }
.vfy-checks .is-bad svg, .vfy-change.is-bad svg { color: var(--os-danger); }
.vfy-checks .is-none svg { color: var(--os-muted); }
.vfy-change { margin-top: 0.5rem; }

/* ---- Claim markings (SITE-05) ------------------------------------------------------------- */
.claim-mark { display: inline-flex; align-items: flex-start; gap: 0.3rem; margin-top: 0.5rem; font-size: 0.75rem; line-height: 1.4; font-weight: 500; color: var(--os-muted); text-decoration: none; }
.claim-mark .i { flex: none; width: 0.875rem; height: 0.875rem; margin-top: 0.1rem; }
a.claim-mark--tested { color: var(--os-success); }
a.claim-mark--tested:hover span { text-decoration: underline; }
.claim-mark--deploy .i { color: var(--os-info); }
.facts li .claim-mark, .vfy-what li .claim-mark { grid-column: 1 / -1; }
.band-dark .claim-mark { color: rgba(255, 255, 255, 0.62); }
.band-dark a.claim-mark--tested { color: #86efac; }
.band-dark .claim-mark--deploy .i { color: #93c5fd; }
.compare .claim-mark { display: flex; margin-top: 0.25rem; }
.prose li .claim-mark, .prose p .claim-mark { display: flex; }
.claim-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1rem; font-size: 0.8125rem; color: var(--os-muted); }

/* ---- Why it matters (SITE-06) and limitations (SITE-08) ---------------------------------- */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.why li { display: grid; gap: 0.5rem; align-content: start; padding: 1.5rem; border-radius: var(--r-card); background: var(--os-bg); box-shadow: var(--lift); }
.why h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.why .term { font: 500 0.75rem/1.2 var(--os-font-mono); color: var(--os-muted); text-transform: none; }
.why p { color: var(--os-text-2); font-size: 0.9375rem; }
.why .so { color: var(--os-text); font-weight: 550; }
.limits { display: grid; gap: 0.75rem; padding: 1.25rem 1.5rem; border-radius: var(--r-card); background: var(--os-bg); box-shadow: 0 0 0 1px var(--os-border); border-left: 3px solid var(--os-warning); }
.limits h2 { font-size: 1.125rem; letter-spacing: -0.015em; display: flex; gap: 0.5rem; align-items: center; }
.limits h2 .i { color: var(--os-warning); }
.limits ul { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.375rem; color: var(--os-text-2); font-size: 0.9375rem; }
.limits p { font-size: 0.875rem; color: var(--os-muted); }
.engine-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.engine-strip li { display: grid; gap: 0.25rem; padding: 1rem 1.125rem; border-radius: var(--r-ctl); background: var(--os-bg); box-shadow: 0 0 0 1px var(--os-border); font-size: 0.875rem; color: var(--os-text-2); }
.engine-strip b { color: var(--os-text); font-weight: 600; display: flex; gap: 0.4rem; align-items: center; }
.engine-strip code { font-size: 0.8em; }
.facts .claim-mark, .facts .claim-mark span:not(.cell-icon) { font-size: 0.75rem; line-height: 1.4; justify-self: start; }
.facts a.claim-mark--tested span:not(.cell-icon) { color: inherit; }
.hero-note { margin-top: 1rem; font-size: 0.875rem; color: var(--os-muted); max-width: 38rem; }
.facts.vfy-what { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 40em) { .facts.vfy-what { grid-template-columns: minmax(0, 1fr); } }
