/*
 * VESPR site, base layer: tokens, themes, type, buttons, chips.
 *
 * The scroll-driven theme (black, charcoal, porcelain) and the pill/keyline language follow the
 * Silent Consensus site, MIT licensed, Copyright (c) 2026 Quiet Consensus team (see NOTICE.txt).
 * Everything else here (the device scene, the room motifs, the reading layouts) is written for VESPR.
 */
@font-face { font-family: "Geist"; src: url("../fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* Registered colour roles: they can be transitioned, so the whole page eases between themes. */
@property --c-page { syntax: "<color>"; inherits: true; initial-value: #000000; }
@property --c-fg { syntax: "<color>"; inherits: true; initial-value: #f5f5f7; }
@property --c-ash { syntax: "<color>"; inherits: true; initial-value: #8e8e93; }
@property --c-tile { syntax: "<color>"; inherits: true; initial-value: #0b0b0c; }
@property --c-panel { syntax: "<color>"; inherits: true; initial-value: #1d1d1f; }
@property --c-steel { syntax: "<color>"; inherits: true; initial-value: #3a3a3e; }
@property --c-keyline { syntax: "<color>"; inherits: true; initial-value: #2a2a2c; }
@property --c-link { syntax: "<color>"; inherits: true; initial-value: #6c9dff; }

:root {
  color-scheme: dark;
  /* People and the agent, the same four colors the app uses for cursors and badges. */
  --p-alex: #a5b4fc; --p-sam: #fbbf77; --p-rose: #fda4af; --p-agent: #6c9dff;
  --accent: #6c9dff; --on-accent: #06122e; --accent-soft: rgba(108,157,255,.14);
  --ok: #86efac; --warn: #fbbf77; --bad: #fda4af;
  --font: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --serif: "Iowan Old Style", "Charter", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 52px;
  --gutter: 20px;
  --wrap: 1120px;
}
:root, .theme-dark {
  --c-page: #000000; --c-fg: #f5f5f7; --c-ash: #8e8e93; --c-tile: #0b0b0c; --c-panel: #1d1d1f;
  --c-steel: #3a3a3e; --c-keyline: #2a2a2c; --c-link: #6c9dff;
}
/* Light mode: "dark" sections become porcelain, charcoal becomes a soft gray. */
:root[data-mode="light"] {
  color-scheme: light;
  --p-alex: #4f5bd5; --p-sam: #78410a; --p-rose: #9f1239; --p-agent: #1f56e0;
  --accent: #1f56e0; --on-accent: #ffffff; --accent-soft: rgba(31,86,224,.09);
  --ok: #166534; --warn: #78410a; --bad: #9f1239;
}
:root[data-mode="light"], :root[data-mode="light"] .theme-dark-follow {
  --c-page: #f5f5f7; --c-fg: #1d1d1f; --c-ash: #5f5f64; --c-tile: #ffffff; --c-panel: #e8e8ed;
  --c-steel: #c7c7cc; --c-keyline: #d2d2d7; --c-link: #1f56e0;
}
/* Scroll themes on the .site root (set by ThemeController in site.js). */
.site { background-color: var(--c-page); color: var(--c-fg);
  transition: --c-page .9s var(--ease), --c-fg .9s var(--ease), --c-ash .9s var(--ease), --c-tile .9s var(--ease),
    --c-panel .9s var(--ease), --c-steel .9s var(--ease), --c-keyline .9s var(--ease), --c-link .9s var(--ease); }
.site[data-theme="carbon"] { --c-page: #161618; --c-tile: #000000; }
.site[data-theme="light"] { --c-page: #f5f5f7; --c-fg: #1d1d1f; --c-ash: #5f5f64; --c-tile: #ffffff; --c-panel: #e8e8ed;
  --c-steel: #c7c7cc; --c-keyline: #d2d2d7; --c-link: #1f56e0; --accent: #1f56e0; --on-accent: #fff; --accent-soft: rgba(31,86,224,.09);
  --p-alex: #4f5bd5; --p-sam: #78410a; --p-rose: #9f1239; --p-agent: #1f56e0; --ok: #166534; --warn: #78410a; --bad: #9f1239; }
:root[data-mode="light"] .site[data-theme="carbon"] { --c-page: #e8e8ed; --c-tile: #ffffff; }
/* Device screens and dark chrome keep their own values whatever the page theme is. */
.site .theme-dark { color: #f5f5f7; --c-fg: #f5f5f7; --c-ash: #8e8e93; --c-keyline: #2a2a2c; --c-link: #6c9dff;
  --accent: #6c9dff; --on-accent: #06122e; --p-alex: #a5b4fc; --p-sam: #fbbf77; --p-rose: #fda4af; --p-agent: #6c9dff; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); background: var(--c-page); }
body { margin: 0; font: 400 17px/1.5 var(--font); color: var(--c-fg); background: var(--c-page); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
code, kbd, pre, samp { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -64px; z-index: 300; padding: 10px 16px; border-radius: 999px; background: #f5f5f7; color: #000; font-size: 14px; font-weight: 600; transition: top .15s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--c-link); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
[hidden] { display: none !important; }

/* ---- type ---- */
.display { font-size: clamp(40px, 8.2vw, 96px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.h-xl { font-size: clamp(34px, 5.6vw, 64px); line-height: 1.06; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.h-lg { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -.024em; font-weight: 600; text-wrap: balance; }
.h-md { font-size: 22px; line-height: 1.25; letter-spacing: -.012em; font-weight: 600; }
.lead { font-size: clamp(18px, 2.1vw, 22px); line-height: 1.42; letter-spacing: -.01em; color: var(--c-ash); text-wrap: pretty; max-width: 40em; }
.lead strong, .lead b { color: var(--c-fg); font-weight: 500; }
.small { font-size: 14px; line-height: 1.45; }
.muted { color: var(--c-ash); }
.mono { font-family: var(--mono); font-size: .92em; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
/* The product's "where am I" line: a file path chip, not a pill. */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--mono); letter-spacing: .01em; color: var(--c-ash); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow b { color: var(--c-fg); font-weight: 500; }

/* ---- buttons: pills, hairlines, one blue path ---- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; font-size: 17px; font-weight: 450; white-space: nowrap; transition: background-color .2s, transform .12s, box-shadow .2s; }
.pill:active { transform: scale(.98); }
.pill-blue { background: var(--accent); color: var(--on-accent); font-weight: 560; }
.pill-blue:hover { background: color-mix(in srgb, var(--accent) 86%, #fff); }
.pill-line { box-shadow: inset 0 0 0 1px var(--c-steel); color: var(--c-fg); }
.pill-line:hover { background: color-mix(in srgb, var(--c-fg) 8%, transparent); }
.pill-porcelain { background: var(--c-fg); color: var(--c-page); }
.pill-sm { min-height: 32px; padding: 0 14px; font-size: 14px; }
.pill[disabled], .pill[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.tlink { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--c-link); font-size: 17px; }
.tlink:hover { text-decoration: underline; text-underline-offset: 3px; }
.tlink svg { width: 14px; height: 14px; transition: transform .2s; }
.tlink:hover svg { transform: translateX(3px); }
.text-link { color: var(--c-link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* ---- status chips: Built / Planned / Partial. Planned never looks like a feature. ---- */
.tag, .chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font: 600 11px/1 var(--font); letter-spacing: .04em; text-transform: uppercase; vertical-align: .12em; white-space: nowrap; border: 1px solid transparent; }
.tag.built, .chip-ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.tag.partial, .chip-dev { color: var(--warn); background: color-mix(in srgb, var(--warn) 13%, transparent); }
.tag.planned, .chip-planned { color: var(--c-fg); background: transparent; border: 1px dashed var(--c-steel); }
.chip-no { color: var(--bad); background: color-mix(in srgb, var(--bad) 13%, transparent); }

/* ---- the named cursor: caret + name flag, the product's own mark ---- */
.cursor { position: relative; display: inline-block; width: 2px; height: 1.02em; margin: 0 1px 0 2px; vertical-align: -.1em; background: var(--who, var(--accent)); }
.cursor > b { color-scheme: normal; position: absolute; left: 0; bottom: 100%; margin-bottom: 2px; padding: 3px 7px 3px 6px; border-radius: 5px 5px 5px 0; background: var(--who, var(--accent)); color: #08090c; font: 600 11px/1 var(--font); letter-spacing: 0; white-space: nowrap; }
.who-alex { --who: var(--p-alex); } .who-sam { --who: var(--p-sam); } .who-agent { --who: var(--p-agent); } .who-rose { --who: var(--p-rose); }

:root[data-mode="light"] .cursor > b, .site[data-theme="light"] .cursor > b { color: #fff; }
.pill, .theme-switch button, .menu-btn { position: relative; }
/* small controls keep their size but get a 44 px hit area */
.pill-sm::after, .theme-switch button::after { content: ""; position: absolute; inset: -6px -3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.cursor.flag-right > b { left: 8px; bottom: auto; top: .06em; border-radius: 0 5px 5px 5px; }
@media (max-width: 640px) { .hero-copy .eyebrow { display: block; text-align: center; line-height: 1.5; } .hero-copy .eyebrow::before { display: none; } }

/* ---- chrome: nav, menu, intro, footer, reveal ---- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--nav-h); background: rgba(0,0,0,0); transition: background-color .3s; }
.nav.is-scrolled, .nav.is-open, :root[data-mode="light"] .nav { background: rgba(0,0,0,.92); box-shadow: 0 1px 0 #2a2a2c; }
.nav-in { height: 100%; width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; display: flex; align-items: center; gap: 28px; color: #f5f5f7; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 15px; font-weight: 640; letter-spacing: .16em; }
.brand svg { width: 22px; height: 22px; color: #6c9dff; }
.nav-links { display: none; align-items: center; gap: 4px; margin-left: 12px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; color: #c7c7cc; border-radius: 999px; transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links .soon { margin-left: 6px; font: 600 10px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: #8e8e93; border: 1px dashed #4a4a4e; border-radius: 999px; padding: 3px 6px; }
.nav-sp { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav .pill-line { box-shadow: inset 0 0 0 1px #4a4a4e; color: #f5f5f7; }
.nav .pill-line:hover { background: rgba(255,255,255,.1); }
.nav .pill-blue { --accent: #6c9dff; --on-accent: #06122e; }
.nav .nav-demo { display: none; }
.menu-btn { position: relative; width: 44px; height: 44px; border-radius: 999px; color: #c7c7cc; }
.menu-btn:hover { color: #fff; }
.menu-btn i { position: absolute; left: 13px; right: 13px; top: 50%; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease); }
.menu-btn i:first-child { transform: translateY(-3.5px); } .menu-btn i:last-child { transform: translateY(3.5px); }
.nav.is-open .menu-btn i:first-child { transform: rotate(45deg); } .nav.is-open .menu-btn i:last-child { transform: rotate(-45deg); }
@media (min-width: 1080px) { .nav-links { display: flex; } .menu-btn { display: none; } .nav .nav-demo { display: inline-flex; } }
@media (max-width: 520px) { .nav .nav-signin { display: none; } }

.menu { position: fixed; inset: 0; z-index: 80; overflow-y: auto; background: #000; color: #f5f5f7; padding: calc(var(--nav-h) + 28px) var(--gutter) 40px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.menu.is-open { opacity: 1; visibility: visible; }
.menu-in { width: min(var(--wrap), 100%); margin-inline: auto; display: grid; gap: 36px; }
.menu-big a { display: flex; align-items: baseline; gap: 14px; padding: 6px 0; font-size: clamp(30px, 7vw, 56px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; color: #f5f5f7; }
.menu-big a:hover { color: #6c9dff; }
.menu-big small { font: 600 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: #8e8e93; border: 1px dashed #4a4a4e; border-radius: 999px; padding: 4px 8px; }
.menu-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px 32px; }
.menu-cols h2 { font: 500 12px/1 var(--mono); color: #8e8e93; margin-bottom: 12px; }
.menu-cols a { display: block; padding: 6px 0; font-size: 15px; color: #d2d2d7; }
.menu-cols a:hover { color: #fff; }
.menu-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.menu .pill-line { box-shadow: inset 0 0 0 1px #4a4a4e; color: #f5f5f7; }
.menu .pill-blue { --accent: #6c9dff; --on-accent: #06122e; }
body.menu-lock { overflow: hidden; }

/* ---- the startup mark (plays once per tab; CSS-only, so it starts before scripts run) ---- */
.intro { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: #000; transition: opacity .7s var(--ease), visibility .7s; animation: intro-failsafe .5s ease 4.5s forwards; }
.intro.is-leaving { opacity: 0; visibility: hidden; }
.no-intro .intro { display: none; }
.intro-stage { display: flex; flex-direction: column; align-items: center; gap: 20px; transition: transform .8s var(--ease), opacity .5s; }
.intro.is-leaving .intro-stage { transform: scale(.94) translateY(-10px); opacity: 0; }
.intro-mark { width: 92px; height: 92px; overflow: visible; }
.intro-mark .o { fill: none; stroke: #6c9dff; stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: intro-draw 1s cubic-bezier(.65,0,.35,1) .1s forwards; }
.intro-mark .f { fill: #6c9dff; opacity: 0; animation: intro-fade .6s var(--ease) .8s forwards; }
.intro-word { font-size: 24px; font-weight: 640; color: #f5f5f7; letter-spacing: .5em; opacity: 0; animation: intro-word .8s var(--ease) 1s forwards; padding-left: .5em; }
.intro-line { width: 110px; height: 2px; overflow: hidden; border-radius: 99px; background: #2a2a2c; }
.intro-line span { display: block; height: 100%; background: #f5f5f7; transform: scaleX(0); transform-origin: left; animation: intro-line 1.5s cubic-bezier(.4,0,.2,1) .1s forwards; }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-fade { to { opacity: 1; } }
@keyframes intro-word { to { opacity: 1; letter-spacing: .16em; } }
@keyframes intro-line { to { transform: scaleX(1); } }
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; } }

/* ---- reveal on scroll: fade and rise only (no blur, so it stays cheap) ---- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---- sections ---- */
.sec { position: relative; padding: clamp(72px, 11vw, 150px) 0; }
.sec-head { max-width: 780px; display: grid; gap: 18px; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.sec-head .lead { margin-top: 2px; }
.keyline { height: 1px; background: var(--c-keyline); border: 0; }

/* ---- footer ---- */
.foot { background: #000; color: #8e8e93; font-size: 13px; line-height: 1.5; }
.foot .theme-dark-scope { color: #8e8e93; }
.foot-in { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; padding: 64px 0 36px; display: grid; gap: 44px; }
.foot-top { display: grid; gap: 36px; }
.foot-brand { max-width: 340px; color: #8e8e93; }
.foot-brand .brand { color: #f5f5f7; padding: 0; }
.foot-brand p { margin-top: 14px; }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.foot-cols h2 { font: 600 13px/1 var(--font); color: #f5f5f7; margin-bottom: 14px; }
.foot-cols a { display: flex; align-items: center; min-height: 44px; padding: 0; color: #8e8e93; transition: color .15s; }
.foot-cols a:hover { color: #f5f5f7; text-decoration: underline; text-underline-offset: 3px; }
.foot-cols a .tag { margin-left: 6px; height: 18px; font-size: 9.5px; }
.foot-fine { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; align-items: center; padding-top: 22px; border-top: 1px solid #2a2a2c; }
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px #3a3a3e; }
.theme-switch button { min-height: 36px; padding: 0 12px; border-radius: 999px; font-size: 12px; color: #8e8e93; }
.theme-switch button[aria-pressed="true"] { background: #f5f5f7; color: #000; }
@media (min-width: 860px) { .foot-top { grid-template-columns: 1.1fr 2fr; } .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---- hero: the closed laptop that opens as you scroll, showing real pictures of the SDE ---- */
.hero { position: relative; height: 380svh; }
.hero-pin { position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; }
.hero-copy { position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + clamp(24px, 6svh, 72px)); z-index: 3; text-align: center; padding: 0 var(--gutter); opacity: var(--copy, 1); transform: translateY(var(--copy-y, 0px)); will-change: opacity, transform; }
.hero-copy .eyebrow { margin-bottom: 18px; }
.hero-copy h1 { max-width: 22ch; margin-inline: auto; font-size: clamp(36px, 6.2vw, 80px); }
.hero-copy .lead { margin: 18px auto 0; max-width: 31em; }
.hero-copy .lead em { font-family: var(--serif); font-style: italic; color: var(--c-fg); font-weight: 400; }
.hero-cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center; align-items: center; }
.hero-stage { position: absolute; inset: 0; perspective: 3600px; perspective-origin: 50% 40%; -webkit-mask-image: linear-gradient(#000, #000 calc(100% - var(--fade, 0px)), transparent); mask-image: linear-gradient(#000, #000 calc(100% - var(--fade, 0px)), transparent); }
.device-pos { position: absolute; left: 50%; top: 0; width: 0; height: 0; transform: translate3d(0, var(--ty, 0px), 0); transform-style: preserve-3d; }
/* The device is authored at 1000 px wide and scaled to fit. */
.device { --W: 1000px; --D: 700px; --T: 46px; --L: 665px; --LT: 18px; position: absolute; left: calc(var(--W) / -2); top: calc(var(--L) / -2); width: var(--W); height: var(--L); transform-style: preserve-3d; transform-origin: 50% 50%;
  transform: scale(var(--s, .5)) rotateX(calc(var(--tilt, -62) * 1deg)) rotateY(calc(var(--yaw, 0) * 1deg)); }
.rig { position: absolute; left: 0; top: var(--L); width: var(--W); height: 0; transform-style: preserve-3d; }
/* deck: top face lies in the XZ plane, hinge at the back edge (z = 0), front edge at z = D */
.deck-top, .deck-bottom { position: absolute; left: 0; top: 0; width: var(--W); height: var(--D); transform-origin: 0 0; backface-visibility: hidden; }
.deck-top { transform: rotateX(90deg); border-radius: 4px 4px 26px 26px; background: linear-gradient(180deg, #3a3a3e 0%, #2b2b2e 40%, #252528 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.deck-bottom { transform: translateY(var(--T)) rotateX(-90deg); background: #17171a; border-radius: 4px 4px 26px 26px; }
.deck-front, .deck-l, .deck-r { position: absolute; transform-origin: 0 0; background: linear-gradient(180deg, #54545a 0%, #3a3a3f 55%, #26262a 100%); }
.deck-front { left: 0; top: 0; width: var(--W); height: var(--T); transform: translateZ(var(--D)); border-radius: 0 0 14px 14px; }
.deck-l, .deck-r { top: 0; width: var(--D); height: var(--T); }
.deck-l { left: 0; transform: rotateY(-90deg); }
.deck-r { left: 0; transform: translateX(var(--W)) rotateY(-90deg); }
.deck-front::after { content: ""; position: absolute; left: 50%; top: 0; width: 15%; height: 7px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #17171a; }
.kbd { position: absolute; left: 12%; right: 12%; top: 9%; height: 47%; background: #0c0c0e; border-radius: 6px; overflow: hidden;
  background-image: repeating-linear-gradient(0deg, #29292c 0 6px, transparent 6px 58px), repeating-linear-gradient(90deg, #29292c 0 6px, transparent 6px 66px); }
.kbd::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40px; background: #29292c; opacity: .0; }
.grill { position: absolute; top: 9%; height: 47%; width: 8%; background: radial-gradient(#09090a 1.7px, transparent 2.1px) 0 0 / 9px 9px; opacity: .85; }
.grill.l { left: 2.4%; } .grill.r { right: 2.4%; }
.tpad { position: absolute; left: 33%; right: 33%; bottom: 7%; height: 26%; border-radius: 10px; background: #2f2f33; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
/* lid: the element's top edge is the top of the screen; its bottom edge sits on the hinge (the back edge of the deck).
   rotateX(-90deg) lays it flat over the deck, rotateX(open) lifts it. The front face is the screen, the back face the aluminum. */
.lid { position: absolute; left: 0; top: calc(var(--L) * -1); width: var(--W); height: var(--L); transform-origin: 0 100%; transform-style: preserve-3d;
  transform: rotateX(calc(var(--open, 0) * 1deg)) rotateX(-90deg); }
.lid-out, .lid-in { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 22px 22px 6px 6px; }
.lid-out { transform: translateZ(calc(var(--LT) * -1)) rotateY(180deg); background: linear-gradient(160deg, #46464b 0%, #323236 45%, #2a2a2d 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); display: grid; place-items: center; }
.lid-out svg { width: 15%; height: auto; color: #8e8e95; opacity: .95; }
.lid-out::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(118deg, rgba(255,255,255,.07), rgba(255,255,255,0) 45%); }
.lid-in { transform: translateZ(.5px); background: #050506; box-shadow: inset 0 0 0 1px #2c2c30; padding: 21px 24px 31px; }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 6px; background: #0a0a0b; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; opacity: 0; transition: opacity .55s var(--ease); }
.screen img.on { opacity: 1; }
.screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, rgba(255,255,255,.05), rgba(255,255,255,0) 38%); }
.cam { position: absolute; left: 50%; top: 6px; width: 7px; height: 7px; transform: translateX(-50%); border-radius: 50%; background: #17171a; box-shadow: inset 0 0 0 1.5px #232328; }
.lid-edge { position: absolute; background: linear-gradient(90deg, #5a5a60, #3a3a3f 60%, #2d2d31); transform-origin: 0 0; }
.lid-edge.far { left: 0; top: 0; width: var(--W); height: var(--LT); transform: rotateX(-90deg); border-radius: 4px 4px 0 0; }
.lid-edge.near { left: 0; top: var(--L); width: var(--W); height: var(--LT); transform: rotateX(-90deg); }
.lid-edge.side { top: 0; width: var(--LT); height: var(--L); }
.lid-edge.side.l { left: 0; transform: rotateY(90deg); }
.lid-edge.side.r { left: 0; transform: translateX(var(--W)) rotateY(90deg); }

/* beats: what the picture on the screen shows, in the order a visitor would meet it */
.beats { position: absolute; left: 0; right: 0; bottom: clamp(14px, 3.5svh, 36px); z-index: 4; width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; opacity: var(--beats, 0); transform: translateY(calc((1 - var(--beats, 0)) * 16px)); }
.beat { border-top: 2px solid var(--c-keyline); padding-top: 12px; color: var(--c-ash); transition: color .3s, border-color .3s; }
.beat h2 { font: 600 15px/1.2 var(--font); letter-spacing: -.005em; color: inherit; }
.beat p { margin-top: 6px; font-size: 14px; line-height: 1.42; max-width: 30em; }
.beat.on { border-color: var(--p-agent); color: var(--c-fg); }
.beat.on h2 { color: var(--c-fg); }
.beat .who { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--who); }
.hero-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 3; font: 500 12px/1 var(--mono); color: var(--c-ash); opacity: var(--copy, 1); }
.hero-hint::after { content: ""; display: block; width: 1px; height: 22px; margin: 8px auto 0; background: linear-gradient(var(--c-ash), transparent); }
@media (max-width: 759px) {
  .beats { grid-template-columns: 1fr; gap: 8px; }
  .beat { display: none; border-top: 0; padding-top: 0; }
  .beat.on { display: block; }
  .beats::before { content: ""; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--p-agent) calc(var(--seg, 0) * 33.34% + 33.33%), var(--c-keyline) 0); }
}
/* No-motion and no-script fallback: the scene is open and still, the three pictures are listed under it. */
.hero.is-static { height: auto; }
.hero.is-static .hero-pin { position: relative; height: auto; min-height: 0; padding: calc(var(--nav-h) + 40px) 0 56px; overflow: hidden; }
.hero.is-static .hero-copy { position: relative; top: 0; opacity: 1; transform: none; margin-bottom: 36px; }
.hero.is-static .hero-stage { position: relative; inset: auto; height: clamp(260px, 52vw, 640px); }
.hero.is-static .device-pos { top: 52%; }
.hero.is-static .beats { position: relative; bottom: auto; opacity: 1; transform: none; margin-top: 32px; }
.hero.is-static .beat { display: block; border-top: 2px solid var(--c-keyline); padding-top: 12px; }
.hero.is-static .beats::before, .hero.is-static .hero-hint { display: none; }

/* ---- realism pass (2026-10-30): anodized aluminum with light that follows the lid, a real key layout, hinge, contact shadow, glass ---- */
.device { --alu-hi: #6b6b72; --alu: #3d3d42; --alu-lo: #26262a; }
.deck-top { background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 18%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 1px, rgba(0,0,0,.012) 1px 3px),
    linear-gradient(180deg, #45454a 0%, #36363a 38%, #2b2b2f 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), inset 0 -10px 18px rgba(0,0,0,.28); }
.deck-front { background: linear-gradient(180deg, #7a7a81 0%, #4a4a50 30%, #2c2c30 100%); }
.deck-l, .deck-r { background: linear-gradient(180deg, #6a6a71 0%, #3f3f44 45%, #232327 100%); }
.deck-bottom { background: radial-gradient(120% 90% at 50% 40%, #1f1f22, #121214); }
.kbd { left: 11%; right: 11%; top: 7.5%; height: 50%; padding: 1.1% 1.2%; display: flex; flex-direction: column; gap: 1.6%;
  background: #08080a; background-image: none; border-radius: 8px; box-shadow: inset 0 2px 6px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.05); }
.krow { flex: 1 1 0; display: flex; gap: 1.1%; }
.krow.fn { flex-grow: .55; }
.krow span { flex: 1 1 0; border-radius: 5px; background: linear-gradient(180deg, #232326 0%, #1b1b1e 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 1px 0 rgba(0,0,0,.6); }
.grill { top: 7.5%; height: 50%; background: radial-gradient(#060607 1.6px, transparent 2px) 0 0 / 8px 8px; opacity: .9; }
.tpad { left: 31%; right: 31%; bottom: 6%; height: 30%; border-radius: 12px;
  background: linear-gradient(180deg, #3a3a3f, #2f2f33); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 8px 14px rgba(255,255,255,.03); }
.hinge { position: absolute; left: 14%; right: 14%; top: 0; height: 2.2%; border-radius: 0 0 6px 6px; background: linear-gradient(180deg, #111113, #2a2a2e); }
/* the lid's back catches more light as it closes toward the viewer, less as it opens away */
.lid-out { background:
    radial-gradient(140% 120% at 30% 0%, rgba(255,255,255,calc(.16 - var(--open, 0) / 900)), rgba(255,255,255,0) 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 1px, rgba(0,0,0,.012) 1px 3px),
    linear-gradient(160deg, #4e4e54 0%, #38383d 45%, #2a2a2e 100%); }
.lid-in { padding: 14px 15px 24px; background: #030304; box-shadow: inset 0 0 0 1px #29292d, inset 0 0 0 3px #0b0b0d; }
.cam { top: 4px; width: 6px; height: 6px; background: radial-gradient(circle at 40% 35%, #2b3242 0 30%, #0c0c0f 60%); box-shadow: 0 0 0 1.5px #151518; }
.screen { border-radius: 4px; }
.screen::after { display: none; }
/* glass: a soft diagonal reflection that slides as the lid opens */
.glare { position: absolute; inset: -20%; pointer-events: none; z-index: 2;
  background: linear-gradient(115deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.07) 46%, rgba(255,255,255,.02) 52%, rgba(255,255,255,0) 60%);
  transform: translateX(calc((var(--open, 0) - 60) * .6%)); opacity: calc(var(--open, 0) / 104); }
/* contact shadow under the deck (a gradient, not a blur filter, so it stays cheap while scrolling) */
.contact { position: absolute; left: -6%; top: 0; width: 112%; height: calc(var(--D) * 1.1); transform-origin: 0 0;
  transform: translateY(calc(var(--T) + 2px)) rotateX(90deg) translateY(-4%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.65), rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 72%); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .glare { transform: none; } }

/* ---- home: statement, beats, modes, measured, runs on, open and next, call to action ---- */
.statement { padding: clamp(80px, 13vw, 180px) 0 clamp(60px, 9vw, 120px); }
.statement .h-xl { max-width: 17em; }
.statement .h-xl .muted { color: var(--c-ash); }
.statement p.lead { margin-top: 28px; }
.statement .lead .sde { color: var(--c-fg); font-weight: 500; }

.beat-row { display: grid; gap: 28px; align-items: center; padding: clamp(36px, 6vw, 72px) 0; }
.beat-row + .beat-row { border-top: 1px solid var(--c-keyline); }
.beat-row .copy { display: grid; gap: 14px; align-content: center; max-width: 32em; }
.beat-row .num { font: 500 13px/1 var(--mono); color: var(--c-ash); }
.beat-row .num .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--who, var(--accent)); vertical-align: 0; }
.shot { position: relative; border-radius: 14px; overflow: hidden; background: #0b0b0c; box-shadow: 0 0 0 1px var(--c-keyline); }
.shot img { width: 100%; height: auto; }
.shot figcaption { padding: 10px 14px; font: 500 12px/1.4 var(--mono); color: #8e8e93; background: #0b0b0c; border-top: 1px solid #2a2a2c; }
@media (min-width: 900px) {
  .beat-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .beat-row.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .beat-row.flip .copy { order: 2; }
}

/* permission modes: a small model that runs the real table from the docs */
.modes { display: grid; gap: 28px; margin-top: 44px; }
.modes-panel { border-radius: 24px; background: var(--c-panel); padding: clamp(16px, 3vw, 28px); display: grid; gap: 22px; }
.mode-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.mode-picker button { min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--c-ash); box-shadow: inset 0 0 0 1px var(--c-steel); transition: background-color .2s, color .2s; }
.mode-picker button:hover { color: var(--c-fg); }
.mode-picker button[aria-checked="true"] { background: var(--c-fg); color: var(--c-page); box-shadow: none; }
.mode-note { color: var(--c-ash); font-size: 15px; min-height: 3em; max-width: 46em; }
.mode-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.mode-table th, .mode-table td { padding: 12px 10px 12px 0; text-align: left; border-top: 1px solid var(--c-keyline); vertical-align: middle; }
.mode-table th { font-weight: 500; }
.mode-table td { width: 1%; white-space: nowrap; padding-right: 0; }
.mode-table .ex { display: block; margin-top: 3px; font: 400 12px/1.4 var(--mono); color: var(--c-ash); white-space: normal; }
.verdict { display: inline-flex; align-items: center; gap: 7px; min-width: 88px; justify-content: center; height: 30px; padding: 0 12px; border-radius: 999px; font: 600 12px/1 var(--font); letter-spacing: .03em; text-transform: uppercase; transition: background-color .25s, color .25s; }
.verdict.allow { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.verdict.ask { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.verdict.refuse { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
.acard { border-radius: 18px; background: var(--c-tile); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 45%, transparent); padding: 18px; display: grid; gap: 12px; max-width: 520px; }
.acard-top { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--c-ash); }
.acard-top b { color: var(--p-agent); font-weight: 600; }
.acard code { display: block; padding: 10px 12px; border-radius: 10px; background: var(--c-panel); font-size: 13px; overflow-x: auto; }
.acard-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.acard-actions .pill { font-size: 15px; padding: 0 18px; }
.acard-result { font-size: 14px; color: var(--c-ash); min-height: 1.5em; }
.acard-result b { color: var(--c-fg); font-weight: 560; }
.preview-flag { font: 500 12px/1 var(--mono); color: var(--c-ash); }
@media (min-width: 900px) { .modes { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; gap: 36px; } }

/* measured: a table and one honest timeline, on the pale theme */
.meas-grid { display: grid; gap: 40px; margin-top: 48px; }
.meas-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.meas-table th, .meas-table td { text-align: left; padding: 16px 12px 16px 0; border-top: 1px solid var(--c-keyline); vertical-align: baseline; }
.meas-table thead th { border-top: 0; font: 500 12px/1 var(--mono); color: var(--c-ash); padding-bottom: 12px; }
.meas-table tbody th { font-weight: 500; }
.meas-table tbody th small { display: block; margin-top: 4px; font-weight: 400; font-size: 13px; color: var(--c-ash); max-width: 24em; }
.meas-table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.meas-table td.range { font-weight: 600; letter-spacing: -.01em; }
.timeline { display: grid; gap: 14px; }
.tl-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; font: 500 12px/1 var(--mono); color: var(--c-ash); }
.tl-track { position: relative; height: 34px; }
.tl-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--c-steel); }
.tl-dot { font-style: normal; position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--c-fg); box-shadow: 0 0 0 3px var(--c-page); }
.tl-dot.edit { background: var(--p-agent); } .tl-dot.green { background: var(--ok); }
.tl-t { position: absolute; top: calc(50% + 12px); transform: translateX(-50%); color: var(--c-ash); font: 500 12px/1 var(--mono); font-style: normal; white-space: nowrap; }
.tl-axis { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; font: 500 11px/1 var(--mono); color: var(--c-ash); }
.tl-axis div { display: flex; justify-content: space-between; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--c-ash); }
.tl-legend i { font-style: normal; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: var(--c-fg); }
.tl-legend i.edit { background: var(--p-agent); } .tl-legend i.green { background: var(--ok); }
.meas-foot { margin-top: 28px; color: var(--c-ash); font-size: 14px; line-height: 1.6; max-width: 52em; }
@media (min-width: 960px) { .meas-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: start; } }

/* runs on */
.cols3 { display: grid; gap: 14px; margin-top: 48px; }
.tile { border-radius: 24px; background: var(--c-tile); padding: clamp(22px, 3vw, 32px); display: grid; gap: 10px; align-content: start; }
.tile h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.012em; font-weight: 600; }
.tile p { color: var(--c-ash); font-size: 16px; }
.tile .mono-line { margin-top: 6px; font: 500 12px/1.5 var(--mono); color: var(--c-ash); }
.tile .tag { justify-self: start; }
@media (min-width: 860px) { .cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* open and next */
.next-list { margin-top: 44px; display: grid; gap: 0; border-top: 1px solid var(--c-keyline); }
.next-item { display: grid; gap: 6px 24px; padding: 20px 0; border-bottom: 1px solid var(--c-keyline); align-items: baseline; }
.next-item h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.next-item p { color: var(--c-ash); font-size: 16px; max-width: 40em; }
.next-item a h3:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 860px) { .next-item { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.open-box { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; border-radius: 24px; background: var(--c-tile); padding: 22px clamp(20px, 3vw, 32px); }
.open-box p { max-width: 36em; font-size: 16px; }
.open-box p b { font-weight: 560; }

/* call to action, drawn like the approval card the product shows */
.ask { display: grid; gap: 36px; justify-items: center; text-align: center; }
.ask-card { width: min(560px, 100%); text-align: left; border-radius: 22px; background: var(--c-tile); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 50%, transparent); padding: clamp(20px, 3vw, 28px); display: grid; gap: 14px; }
.ask-card .acard-top { font-size: 14px; }
.ask-card h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.15; letter-spacing: -.02em; font-weight: 600; }
.ask-card p { color: var(--c-ash); font-size: 16px; }
.ask-card .acard-actions { margin-top: 6px; }
.signup { width: min(560px, 100%); text-align: left; display: grid; gap: 10px; }
.signup label { font-size: 15px; font-weight: 500; }
.field-row { display: flex; gap: 8px; flex-wrap: wrap; }
.field-row input { flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 0 18px; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--c-steel); border: 0; font-size: 17px; color: var(--c-fg); }
.field-row input::placeholder { color: var(--c-ash); opacity: 1; }
.field-row input:focus-visible { outline: 2px solid var(--c-link); outline-offset: 2px; }
.field-note { font-size: 13px; color: var(--c-ash); }
.field-msg { min-height: 1.5em; font-size: 14px; }
.field-msg.ok { color: var(--ok); } .field-msg.err { color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.meas-wrap { overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.meas-wrap:focus-visible { outline-offset: 2px; }
.meas-table { min-width: 520px; }
@media (min-width: 960px) { .meas-wrap { margin-inline: 0; padding-inline: 0; } }

/* ---- reading pages: docs, trust, legal. Long text, calm measure, a table of contents that stays put. ---- */
.read-page { background: var(--c-page); }
.read { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; padding: calc(var(--nav-h) + 36px) 0 96px; display: grid; gap: 28px; }
.read .side { display: none; }
.prose { min-width: 0; max-width: 46rem; font-size: 17px; line-height: 1.65; color: color-mix(in srgb, var(--c-fg) 88%, var(--c-page)); }
.prose > * + * { margin-top: 1.05em; }
.prose h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.05; letter-spacing: -.032em; font-weight: 600; color: var(--c-fg); text-wrap: balance; }
.prose > :first-child { margin-top: 0; }
.prose .banner + h1, .prose .note + h1 { margin-top: 1.1em; }
.prose h2 { margin-top: 2.4em; padding-top: 1.1em; border-top: 1px solid var(--c-keyline); font-size: clamp(24px, 3vw, 30px); line-height: 1.15; letter-spacing: -.02em; font-weight: 600; color: var(--c-fg); scroll-margin-top: calc(var(--nav-h) + 20px); text-wrap: balance; }
.prose h2:first-of-type { margin-top: 1.6em; }
.prose h3 { margin-top: 1.9em; font-size: 20px; line-height: 1.25; letter-spacing: -.01em; font-weight: 600; color: var(--c-fg); scroll-margin-top: calc(var(--nav-h) + 20px); }
.prose h2 + p, .prose h3 + p { margin-top: .7em; }
.prose p.lead, .prose .lede { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.45; color: var(--c-ash); letter-spacing: -.008em; max-width: none; }
.prose .meta { font: 500 13px/1.5 var(--mono); color: var(--c-ash); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--c-ash); }
.prose a { color: var(--c-link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { color: var(--c-fg); font-weight: 600; }
.prose code { font-size: .86em; padding: .12em .42em; border-radius: 6px; background: var(--c-panel); color: var(--c-fg); overflow-wrap: anywhere; }
.prose kbd { font-size: .8em; padding: .14em .5em; border-radius: 6px; background: var(--c-panel); box-shadow: inset 0 -1px 0 var(--c-steel); color: var(--c-fg); white-space: nowrap; }
.prose hr { border: 0; height: 1px; background: var(--c-keyline); margin: 2.4em 0; }
.prose blockquote { padding-left: 1em; border-left: 2px solid var(--c-steel); color: var(--c-ash); }
.prose .ph { padding: .05em .4em; border-radius: 6px; background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); font-family: var(--mono); font-size: .86em; }
.prose .code { border-radius: 14px; background: #0b0b0c; color: #f5f5f7; box-shadow: 0 0 0 1px #2a2a2c; overflow: hidden; margin-block: 1.2em; }
.prose .code-bar { display: flex; align-items: center; padding: 8px 14px; font: 500 12px/1 var(--mono); color: #8e8e93; border-bottom: 1px solid #2a2a2c; }
.prose .code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; tab-size: 2; }
.prose .code pre code { padding: 0; background: none; color: inherit; font-size: inherit; overflow-wrap: normal; }
.prose .code pre:focus-visible { outline-offset: -2px; }
.prose pre:not(.code pre) { padding: 14px 16px; border-radius: 14px; background: var(--c-panel); overflow-x: auto; font-size: 13.5px; line-height: 1.6; }
.prose pre:not(.code pre) code { padding: 0; background: none; }
.prose .table-wrap { overflow-x: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--c-keyline); margin-block: 1.3em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 520px; }
.prose th, .prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--c-keyline); }
.prose thead th { border-top: 0; background: var(--c-panel); font-weight: 600; font-size: 13px; color: var(--c-fg); }
.prose td.wrap-first { min-width: 16em; }
.prose .rtable { min-width: 0; }
.note, .banner { padding: 16px 18px; border-radius: 14px; background: var(--c-panel); font-size: 16px; line-height: 1.55; box-shadow: inset 3px 0 0 var(--p-agent); }
.note.warn { box-shadow: inset 3px 0 0 var(--warn); }
.note p + p, .banner p + p { margin-top: .6em; }
.note-title { display: block; font-weight: 600; color: var(--c-fg); margin-bottom: .3em; }
.banner { box-shadow: inset 3px 0 0 var(--warn); }
.banner strong { display: block; margin-bottom: .25em; }
.banner-planned { box-shadow: inset 3px 0 0 var(--c-steel); }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps > li { counter-increment: s; position: relative; padding-left: 44px; }
.steps > li + li { margin-top: 1.4em; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: .1em; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--mono); color: var(--c-fg); box-shadow: inset 0 0 0 1px var(--c-steel); }
.docmap { list-style: none; padding: 0; display: grid; gap: 10px; }
.docmap li + li { margin-top: 0; }
.docmap a { display: block; padding: 16px 18px; border-radius: 14px; background: var(--c-panel); color: var(--c-ash); text-decoration: none; font-size: 15px; line-height: 1.5; transition: background-color .2s; }
.docmap a:hover { background: color-mix(in srgb, var(--c-fg) 10%, var(--c-panel)); text-decoration: none; }
.docmap a strong { display: block; font-size: 18px; margin-bottom: 2px; color: var(--c-fg); }
.toc-title { font: 500 12px/1 var(--mono); color: var(--c-ash); }
.toc { list-style: none; padding: 0; display: grid; gap: 4px; }
.toc a, .toc-inline a { text-decoration: none; }
details.toc-inline { border-radius: 14px; background: var(--c-panel); padding: 4px 16px; }
details.toc-inline summary { min-height: 44px; display: flex; align-items: center; font-weight: 560; cursor: pointer; color: var(--c-fg); }
details.toc-inline ol { list-style: none; padding: 0 0 12px; columns: 1; }
details.toc-inline li { margin: 0; } details.toc-inline li a { display: flex; align-items: center; min-height: 44px; color: var(--c-ash); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 3em !important; }
.pager a { display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--c-keyline); color: var(--c-fg); text-decoration: none; font-weight: 560; }
.pager a:hover { background: var(--c-panel); text-decoration: none; }
.pager a.next { text-align: right; grid-column: 2; }
.pager small { font: 500 12px/1 var(--mono); color: var(--c-ash); }
.side { font-size: 14px; }
.side h2 { font: 500 12px/1 var(--mono); color: var(--c-ash); margin-bottom: 14px; }
.side ul, .side ol { display: grid; gap: 2px; list-style: none; padding: 0; }
.side a { display: flex; align-items: center; min-height: 44px; padding: 6px 12px; margin-left: -12px; border-radius: 10px; color: var(--c-ash); text-decoration: none; }
.side a:hover { color: var(--c-fg); background: var(--c-panel); }
.side a[aria-current="page"], .side a.is-here { color: var(--c-fg); background: var(--c-panel); font-weight: 560; }
.side .grp { margin-top: 22px; }
.doc-menu-btn { min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--c-steel); font-size: 15px; }
@media (max-width: 959px) { .toc-side { display: none; } .doc-side-wrap .side { display: none; } .doc-side-wrap.is-open .side { display: block; padding: 8px 0; } }
@media (min-width: 960px) {
  .read.has-side { grid-template-columns: 230px minmax(0, 46rem); justify-content: center; gap: 64px; }
  .read .side { display: block; position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; max-height: calc(100svh - var(--nav-h) - 48px); overflow-y: auto; }
  .toc-inline, .doc-menu-btn { display: none; }
  .doc-side-wrap { display: contents; }
}
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; }

/* planned-feature pages (educators, teams): a calm hero and capability rows, every one marked Planned */
.page-hero { padding: calc(var(--nav-h) + clamp(56px, 10vw, 120px)) 0 clamp(36px, 6vw, 72px); }
.page-hero .h-xl { max-width: 15em; margin-top: 22px; }
.page-hero .lead { margin-top: 22px; }
.cap-grid { display: grid; gap: 14px; }
.cap { border-radius: 22px; background: var(--c-tile); padding: clamp(20px, 3vw, 30px); display: grid; gap: 10px; align-content: start; }
.cap h3 { font-size: 20px; line-height: 1.2; letter-spacing: -.012em; font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.cap p { color: var(--c-ash); font-size: 16px; line-height: 1.55; }
.cap p strong { color: var(--c-fg); font-weight: 560; }
@media (min-width: 760px) { .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cap-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.honest { margin-top: 28px; display: grid; gap: 10px; max-width: 46em; }
.honest li { position: relative; padding-left: 26px; color: var(--c-ash); font-size: 16px; }
.honest li::before { content: ""; position: absolute; left: 0; top: .6em; width: 14px; height: 1px; background: var(--c-ash); }
.honest li strong { color: var(--c-fg); font-weight: 560; }

/* tables that stack on narrow screens (td data-label becomes the row label) */
@media (max-width: 719px) {
  .prose table.rtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose table.rtable, .prose table.rtable tbody, .prose table.rtable tr, .prose table.rtable th, .prose table.rtable td { display: block; width: 100%; }
  .prose table.rtable tr { padding: 14px 14px 10px; border-top: 1px solid var(--c-keyline); }
  .prose table.rtable tr:first-child { border-top: 0; }
  .prose table.rtable th, .prose table.rtable td { padding: 0 0 10px; border: 0; }
  .prose table.rtable th[scope="row"] { font-size: 16px; color: var(--c-fg); }
  .prose table.rtable td::before { content: attr(data-label); display: block; font: 500 11px/1.2 var(--mono); color: var(--c-ash); margin-bottom: 3px; text-transform: none; }
}

/* ---- sign-in surface ---- */
.auth-page { min-height: 100svh; display: grid; grid-template-rows: 1fr auto; background: #000; color: #f5f5f7; }
.auth-main { display: grid; place-items: center; padding: calc(var(--nav-h) + 24px) var(--gutter) 56px; }
.auth-card { width: min(460px, 100%); display: grid; gap: 22px; }
.auth-card h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.08; letter-spacing: -.028em; font-weight: 600; }
.auth-card .lead { font-size: 16px; color: #8e8e93; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px #3a3a3e; }
.auth-tabs a { min-height: 44px; display: grid; place-items: center; border-radius: 999px; font-size: 15px; color: #8e8e93; }
.auth-tabs a[aria-current="page"] { background: #f5f5f7; color: #000; font-weight: 560; }
.provs { display: grid; gap: 8px; }
.prov { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 18px; border-radius: 14px; box-shadow: inset 0 0 0 1px #3a3a3e; font-size: 16px; font-weight: 500; color: #f5f5f7; text-align: left; transition: background-color .2s; }
.prov:hover:not([disabled]) { background: rgba(255,255,255,.08); }
.prov svg { width: 20px; height: 20px; flex: none; }
.prov .st { margin-left: auto; font: 500 12px/1 var(--mono); color: #8e8e93; }
.prov[disabled] { cursor: not-allowed; color: #a1a1a6; }
.prov[disabled] .st { color: #a1a1a6; }
.or { display: flex; align-items: center; gap: 14px; font: 500 12px/1 var(--mono); color: #8e8e93; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: #2a2a2c; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 7px; font-size: 14px; font-weight: 500; }
.form input { min-height: 48px; padding: 0 16px; border: 0; border-radius: 14px; background: #0b0b0c; box-shadow: inset 0 0 0 1px #3a3a3e; font-size: 17px; color: #f5f5f7; }
.form input::placeholder { color: #8e8e93; opacity: 1; }
.form input:focus-visible { outline: 2px solid #6c9dff; outline-offset: 2px; }
.form input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px #fda4af; }
.form .hint { font-size: 13px; font-weight: 400; color: #8e8e93; }
.form .pill { width: 100%; }
.form .linkish { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; color: #6c9dff; }
.form .linkish:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-msg { padding: 12px 14px; border-radius: 12px; font-size: 15px; line-height: 1.45; background: #1d1d1f; }
.auth-msg.err { box-shadow: inset 3px 0 0 #fda4af; } .auth-msg.ok { box-shadow: inset 3px 0 0 #86efac; } .auth-msg.info { box-shadow: inset 3px 0 0 #6c9dff; }
.auth-foot { font-size: 13px; color: #8e8e93; line-height: 1.5; }
.auth-foot a { color: #c7c7cc; text-decoration: underline; text-underline-offset: 3px; }
.qrbox { display: grid; gap: 10px; padding: 16px; border-radius: 14px; background: #0b0b0c; box-shadow: inset 0 0 0 1px #2a2a2c; }
.qrbox code { font-size: 14px; word-break: break-all; color: #f5f5f7; letter-spacing: .06em; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; padding: 14px 16px; border-radius: 14px; background: #0b0b0c; box-shadow: inset 0 0 0 1px #2a2a2c; font: 500 14px/1.6 var(--mono); }
.status-list { display: grid; gap: 6px; font-size: 14px; }
.status-list li { display: flex; gap: 10px; align-items: baseline; }
.status-list .tag { flex: none; }

.auth-page .foot-fine a { display: inline-block; padding: 14px 4px; }
