/* ── src/css/base.css ── */
/* src/css/base.css: the core frame every page wears (the web engine's default; a site replaces it by shipping its
   own src/css/base.css). Colors come ONLY from the site's theme CSS (/_site/theme/tokens.css, made by Outerface's
   themes/build-css.mjs from the ColorTheme documents); never write a hex here but the fallbacks below. A site adds
   its own styles in src/css/lanes/<name>.css (concatenated after the engine's).

   Phone first: a 16px side gutter, no horizontal page scroll at 320px+. */

:where(:root) {
  /* Fallbacks if tokens.css fails to load; the real values are the theme's. */
  --bg: #FFFFFF;
  --surface: #F5F5F5;
  --surface-lift: #EFEFEF;
  --border: #E6E6E6;
  --border-bright: #8A8A8A;
  --text-primary: #000000;
  --text-bright: #000000;
  --text-secondary: #3A3A3C;
  --text-muted: #6B6B6B;
  --accent: #000000;
  --link: #000000;
  --font-body: system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-display: system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}

:root {
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --gutter: 16px;
  --measure: 46rem;
  --page: 72rem;
  --radius-sm: 6px;
  --radius-md: 12px;
  --header-h: 3.75rem;
  /* The accent as a FILL, with the ink the derivation picks for it (white on Base's black, black on Base Night's
     white; each theme's own elsewhere). A site whose accent wants another ink sets --ink-on-brand itself. */
  --brand: var(--accent);
  --ink-on-brand: var(--ink-on-accent, #FFFFFF);
  /* .segmented (the release toggle, the report kind) */
  --seg-ground: var(--surface);
  --seg-thumb: var(--bg);
  --seg-ink: var(--text-bright);
}

@media (min-width: 40rem) { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* The closed mobile drawer sits off-canvas (translateX(100%)); clip it so
     it never widens the page. */
  overflow-x: clip;
  scroll-padding-top: calc(var(--header-h) + var(--space-2));
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text-bright);
  line-height: 1.2;
  text-wrap: balance;
  margin: 0 0 var(--space-2);
}
h1 { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 var(--space-2); max-width: var(--measure); }

a {
  color: var(--link);
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-underline-offset: 0.15em;
}
a:hover { text-decoration-color: currentColor; }

img, svg { max-width: 100%; }

code, pre, kbd { font-family: var(--font-mono); font-size: 0.9em; }
code { background: var(--surface); padding: 0.1em 0.35em; border-radius: 4px; }
pre { background: var(--surface); padding: var(--space-2); border-radius: var(--radius-md); overflow-x: auto; max-width: 100%; }
pre code { background: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--surface);
  color: var(--text-bright);
  padding: var(--space-1) var(--space-2);
}
.skip-link:focus { left: var(--gutter); top: var(--space-1); }

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--space-6);
}
main > .page-title { margin: var(--space-5) 0 var(--space-4); }
main > section, main > header { margin: 0 0 var(--space-5); }

/* A SLOT: a section its lane has not filled yet (wireframe.yml, no layout). */
.slot {
  border: 1px dashed var(--border-bright);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  color: var(--text-muted);
}
.slot-note { margin: 0; }

/* Tables from engine/markdown.mjs scroll inside their own box, never the page. */
.table { overflow-x: auto; max-width: 100%; margin: 0 0 var(--space-3); }
table { border-collapse: collapse; width: 100%; font-size: 0.95em; }
th, td { text-align: left; vertical-align: top; padding: 0.5rem 0.65rem; border-bottom: 1px solid var(--border); }
th { color: var(--text-bright); }

/* Rendered Markdown (manual sections, legal documents, agents pages). */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: var(--space-4); }
.prose h3 { margin-top: var(--space-3); }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin: 0 0 var(--space-2); max-width: var(--measure); }
.prose li { margin: 0.3rem 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── src/css/components.css ── */
/* src/css/components.css: the chrome every page shares (lane A): header,
   nav and its mobile drawer, footer, buttons, the segmented control, the
   draft banner. Page-specific styles belong to a lane file in src/css/lanes/. */

/* ── header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--header-h);
  padding: 0.5rem var(--gutter);
  /* Solid, no backdrop-filter: a filter makes the header the containing block
     for its position:fixed children, which would trap the mobile drawer and
     its scrim inside the bar. */
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-bright);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin-inline-end: auto;
  min-height: 44px;
}
/* The way back to the local front door: a lone chevron, a 32 px target pulled into
   the gutter (its own gap given back), so the wordmark sits almost where it does
   without it. Muted ink; the focus ring is base.css's :focus-visible. */
.header-front {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-inline-start: calc(-1 * var(--gutter));
  margin-inline-end: calc(-1 * var(--space-2));
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.header-front:hover { color: var(--text-bright); background: var(--surface); }
.header-front:focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: 0; }
.wordmark-mark { width: 36px; height: 36px; border-radius: 8px; }   /* 28 px read too small, in dark mode most of all (Nima, 2026-10-17) */

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.975rem;
}
.nav-link:hover { color: var(--text-bright); background: var(--surface); }
.nav-link[aria-current="page"] { color: var(--text-bright); font-weight: 600; }
.nav .nav-home, .nav .nav-cta, .nav .nav-sub { display: none; }

.header-cta { white-space: nowrap; }
/* The light/dark switch sits top right: after the call to action; on a phone, just left of the menu button. */
.site-header .theme-switch { order: 1; flex: none; }
@media (max-width: 54rem) { .site-header .nav-toggle { order: 2; } }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-bright);
  cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 1px;
  transition: transform 160ms ease;
}
.nav-toggle-bars { position: relative; background: transparent; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { transform: translateY(-4px); }
.nav-toggle-bars::after { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); }
.nav-scrim { display: none; }

/* Below 54rem: with script, the nav becomes a drawer behind the toggle
   (src/js/nav-toggle.js). Without script the toggle stays hidden and the nav
   wraps under the wordmark, which always works. */
@media (max-width: 54rem) {
  .site-header { flex-wrap: wrap; }
  .site-header .header-cta { display: none; }
  .nav-toggle:not([hidden]) { display: inline-block; }
  .nav-toggle:not([hidden]) ~ .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(20rem, 86vw);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--header-h) + var(--space-1)) var(--space-2) var(--space-3);
    background: var(--bg);
    border-left: 1px solid var(--border);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 200ms ease, visibility 0s linear 200ms;
    z-index: 60;
  }
  .nav-toggle[aria-expanded="true"] ~ .nav {
    transform: none;
    visibility: visible;
    transition: transform 200ms ease;
  }
  .nav-toggle:not([hidden]) ~ .nav .nav-home,
  .nav-toggle:not([hidden]) ~ .nav .nav-cta { display: inline-flex; }
  .nav-toggle:not([hidden]) ~ .nav .nav-cta { margin-top: var(--space-2); justify-content: center; }
  .nav-toggle:not([hidden]) ~ .nav .nav-sub { display: block; padding: 0 0 var(--space-1) 0.7rem; }
  .nav-toggle { position: relative; z-index: 70; }
  .nav-toggle[aria-expanded="true"] ~ .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: color-mix(in srgb, var(--text-bright) 30%, transparent);
  }
}

.nav-sub-title { margin: var(--space-1) 0 0.25rem; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.nav-sub-list { list-style: none; margin: 0; padding: 0; }
.nav-sub-list a { display: block; padding: 0.35rem 0; color: var(--text-secondary); text-decoration: none; font-size: 0.925rem; }
.nav-sub-list a[aria-current="page"] { color: var(--text-bright); font-weight: 600; }

/* ── buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.975rem;
  text-decoration: none;
  cursor: pointer;
}
.btn--primary { background: var(--brand); color: var(--ink-on-brand); }
.btn--primary:hover { background: var(--accent-bright, var(--brand)); color: var(--ink-on-accent-bright, var(--ink-on-brand)); }
.btn--ghost { background: transparent; color: var(--text-bright); border-color: var(--border-bright); }
.btn--ghost:hover { background: var(--surface); }
.badge--coming-soon, [aria-disabled="true"].btn { opacity: 0.55; cursor: default; }
/* cta.json `kind: "link"`: a quiet text link beside the buttons. */
.cta-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.25rem; font-weight: 600; text-decoration: none; }
.cta-link::after { content: "\00a0→"; }
.cta-link:hover { text-decoration: underline; }

/* ── segmented control ──────────────────────────────────────────────────── */

.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--seg-ground);
  border: 1px solid var(--border);
}
.segmented-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  color: var(--text-secondary);
}
.segmented--sm .segmented-option { padding: 0.25rem 0.75rem; }

/* ── shared bits ────────────────────────────────────────────────────────── */

.eyebrow {
  margin: 0 0 var(--space-1);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.band-alt { background: var(--surface); border-radius: var(--radius-md); padding: var(--space-4) var(--gutter); }
.icon { display: inline-block; }

/* ── the draft banner (legal pages until counsel approves) ─────────────── */

.draft-banner {
  margin: var(--space-4) 0 calc(var(--space-4) * -1 + var(--space-2));
  padding: var(--space-2) var(--space-3);
  border: 2px solid var(--warning, var(--border-bright));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--warning, var(--surface)) 12%, var(--bg));
  max-width: var(--measure);
}
.draft-banner-title { margin: 0; font-weight: 700; color: var(--text-bright); }
.draft-banner-detail { margin: 0.25rem 0 0; color: var(--text-secondary); font-size: 0.95rem; }

/* ── footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-4) var(--gutter) var(--space-3);
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: var(--space-3);
  max-width: var(--page);
  margin: 0 auto var(--space-4);
}
.footer-col-title { font-size: 0.85rem; font-weight: 600; color: var(--text-bright); margin: 0 0 var(--space-1); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0.2rem 0; }
.footer-col a, .legal-nav a { color: var(--text-secondary); text-decoration: none; display: inline-block; padding: 0.3rem 0; }
.footer-col a:hover, .legal-nav a:hover { color: var(--text-bright); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  max-width: var(--page);
  margin: 0 auto;
  padding-top: var(--space-2);
  border-top: 1px solid var(--border);
}
.footer-copy { margin: 0; color: var(--text-muted); font-size: 0.875rem; }
.colophon::before { content: "· "; }
.footer-utils { display: flex; align-items: center; gap: var(--space-2); }
.legal-nav { display: flex; gap: var(--space-2); }

/* The dark/light switch: the knob sits on the side of the CURRENT pole. */
.theme-switch {
  position: relative;
  width: 3.25rem;
  height: 1.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-bright);
  background: var(--surface);
  color: var(--text-bright);
  cursor: pointer;
  padding: 0;
}
.theme-switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  transition: transform 160ms ease;
}
.theme-switch[aria-checked="true"] .theme-switch-knob { transform: translateX(1.3rem); }
.theme-switch-icon { width: 0.95rem; height: 0.95rem; grid-area: 1 / 1; }
.theme-switch-icon--moon { display: none; }
.theme-switch[aria-checked="true"] .theme-switch-icon--sun { display: none; }
.theme-switch[aria-checked="true"] .theme-switch-icon--moon { display: block; }

/* ── src/css/media.css ── */
/* src/css/media.css: the media system's boxes (engine/media.mjs writes the
   markup, src/js/media.js runs the clips). Every box knows its size before a
   byte loads: the <img>/<video> carries width and height, and an empty
   placeholder carries aspect-ratio, so nothing shifts when a file lands. A box
   is at most its display size and shrinks with its column. */

.media {
  position: relative;
  margin: 0;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.media--hero   { max-width: 1200px; }
.media--wide   { max-width: 1040px; }
.media--doc    { max-width: 720px; }
.media--square { max-width: 360px; }
.media--phone  { max-width: 270px; border-radius: 22px; }
.media--tablet { max-width: 360px; border-radius: 18px; }

.media img,
.media video {
  display: block;
  width: 100%;
  height: auto;
}
/* A reused screenshot fills the slot's box and is cropped to it. */
.media--placeholder img {
  object-fit: cover;
}
.media--square.media--placeholder img { aspect-ratio: 1 / 1; }
.media--phone.media--placeholder img  { aspect-ratio: 270 / 585; }
.media--tablet.media--placeholder img { aspect-ratio: 360 / 480; }
.media--hero.media--placeholder img,
.media--wide.media--placeholder img,
.media--doc.media--placeholder img    { aspect-ratio: 16 / 10; }

/* No file and no screenshot to stand in: a calm box with the app's bubble. */
.media--empty {
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
    var(--surface);
}
.media-empty-mark {
  width: 22%;
  max-width: 64px;
  aspect-ratio: 1;
  border-radius: 50% 50% 50% 12%;
  background: color-mix(in srgb, var(--text-muted) 16%, transparent);
}
.media--video::after {
  /* A quiet "clip" corner so a poster reads as motion to come. */
  content: "";
  position: absolute;
  inset: auto 10px 10px auto;
  width: 0; height: 0;
  border-left: 9px solid color-mix(in srgb, var(--bg) 85%, transparent);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  filter: drop-shadow(0 0 2px rgb(0 0 0 / 0.4));
  pointer-events: none;
}

/* A horizontal swipe row for tall phone shots (features, home proof). */
.media-carousel {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: var(--space-1) 2px var(--space-2);
  margin: 0;
  list-style: none;
  scrollbar-width: thin;
}
.media-carousel > li { position: relative; flex: 0 0 auto; width: min(270px, 72vw); scroll-snap-align: start; }
.media-carousel > li.is-tablet { width: min(360px, 82vw); }
.media-carousel figcaption { margin-top: var(--space-1); font-size: 0.9rem; color: var(--text-secondary); }
.media-carousel figcaption strong { display: block; color: var(--text-bright); }

/* Store buttons: "Coming soon", never Apple's badge artwork. */
.store-row { margin-top: var(--space-2); }
.store-line { margin: 0 0 var(--space-1); font-weight: 600; color: var(--text-bright); }
.store-buttons { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.btn--store {
  display: inline-flex; align-items: center; gap: 0.5rem;
  opacity: 0.55; cursor: not-allowed;
  border: 1px solid var(--border-bright);
  color: var(--text-secondary);
  background: transparent;
}
.btn--store .icon { font-size: 1.1em; }
.store-note { margin: var(--space-1) 0 0; font-size: 0.875rem; color: var(--text-muted); }

/* ── src/css/lanes/architecture.css ── */
/* src/css/lanes/architecture.css: /how-it-works, the architecture diagram
   (layouts/architecture.yml; drawn by src/js/lanes/architecture.js).
   Prototype, 2026-10-17. Colors come from the theme's tokens; the five flow
   kinds get their own hue, redefined for the night theme. */

.arch { max-width: none; }
.arch-lede { max-width: var(--measure); color: var(--text-secondary); }

/* The diagram breaks out of main's column: as wide as the window allows, up to 1720px. */
.arch-app {
  width: min(calc(100vw - 2 * var(--gutter, 16px)), 1720px);
  margin-inline: calc(50% - min(calc(50vw - var(--gutter, 16px)), 860px));
  margin-top: var(--space-3);
  --arch-config: #1E6BFF;
  --arch-chat: #8B3FD9;
  --arch-key: #B86E00;
  --arch-sync: #0E8A5F;
  --arch-human: #D13A6A;
  --arch-claude: #D97757;
  --arch-cloudflare: #F38020;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="base"]) .arch-app {
    --arch-config: #5B93FF; --arch-chat: #B583F2; --arch-key: #E5A33B; --arch-sync: #3CC48F; --arch-human: #F2719A;
  }
}
:root[data-theme="base-night"] .arch-app {
  --arch-config: #5B93FF; --arch-chat: #B583F2; --arch-key: #E5A33B; --arch-sync: #3CC48F; --arch-human: #F2719A;
}

/* the icon font's rules ship because these spans exist; the script reads them */
.arch-glyphs { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ── toolbar ── */
.arch-bar { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); align-items: center; margin-bottom: var(--space-2); }
.arch-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 2px; background: var(--surface); }
.arch-seg button {
  font: inherit; font-size: 0.82rem; border: 0; background: none; color: var(--text-secondary);
  padding: 0.3rem 0.8rem; border-radius: 999px; cursor: pointer;
}
.arch-seg button[aria-pressed="true"] { background: var(--text-primary); color: var(--bg); }

/* ── frame: sidebar | diagram (wide), or the presentation bar over the diagram (`.is-pres`, set by
   architecture.js from the diagram's own width, so a narrow Mac window and an iPad in portrait both get it) ── */
.arch-frame { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
.arch-app:not(.is-pres) .arch-frame { grid-template-columns: 19rem minmax(0, 1fr); align-items: start; }
.arch-app:not(.is-pres) .arch-side {
  position: sticky; top: calc(var(--header-h) + var(--space-2));
  max-height: calc(100vh - var(--header-h) - var(--space-3));
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
}
/* empty room after the last row, so every row can rise to meet the deck */
.arch-app:not(.is-pres) .arch-spacer { height: calc(100vh - var(--header-h) - 12rem); }

/* ── the sidebar ── */
.arch-side { font-size: 0.86rem; padding-right: 0.25rem; }

.arch-deck {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.1rem 0.85rem 0.35rem; margin-bottom: 0.4rem; background: var(--bg);
  box-shadow: 0 1px 0 var(--border);
}
.arch-deck-btn {
  position: relative; flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0;
  border-radius: 50%; border: 1px solid var(--border-bright); background: var(--bg); color: var(--text-primary); cursor: pointer;
}
.arch-deck-btn svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
.arch-deck-btn:hover:not(:disabled) { background: var(--surface); }
.arch-deck-btn:disabled { opacity: 0.35; cursor: default; }
.arch-deck-btn.is-play { width: 3rem; height: 3rem; border: 0; background: var(--text-primary); color: var(--bg); margin: 0 0.15rem; }
.arch-deck-btn.is-play:hover { background: var(--text-secondary); }
.arch-deck-btn.is-play .glyph-play, .arch-deck-btn.is-play .glyph-pause { width: 1.35rem; height: 1.35rem; }
.arch-deck-btn .glyph-pause, .arch-deck-btn.is-playing .glyph-play { display: none; }
.arch-deck-btn.is-playing .glyph-pause { display: block; }
.arch-deck-btn .ring { position: absolute; top: -5px; left: -5px; width: calc(100% + 10px); height: calc(100% + 10px); max-width: none; transform: rotate(-90deg); pointer-events: none; }
.arch-deck-btn .ring circle { fill: none; stroke-width: 2.5; }
.arch-deck-btn .ring-track { stroke: transparent; }
.arch-deck-btn.is-playing .ring-track { stroke: var(--border); }
.arch-deck-btn .ring-count { stroke: var(--c, var(--accent)); stroke-linecap: round; }
.arch-deck-where { margin-left: auto; font: 0.72rem/1 var(--font-mono); color: var(--text-muted); }

.arch-intro { font-size: 0.8rem; color: var(--text-muted); margin: 0.2rem 0.6rem var(--space-2); }
.arch-group {
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted); margin: var(--space-2) 0 0.3rem; padding-left: 0.6rem;
}
.arch-list, .arch-kids { list-style: none; margin: 0; padding: 0; }
.arch-flow { border-radius: var(--radius-md); margin: 1px 0; }

/* every row, parent or child, is the same row */
.arch-row {
  display: flex; gap: 0.55rem; align-items: baseline; width: 100%; text-align: left; font: inherit;
  border: 0; background: none; color: var(--text-secondary); padding: 0.36rem 0.6rem; border-radius: var(--radius-sm); cursor: pointer;
}
.arch-row:hover { background: var(--surface-lift); color: var(--text-primary); }
.arch-dot { flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--c); transform: translateY(-0.05rem); }

.arch-flow.is-open { background: var(--surface); padding-bottom: 0.35rem; }
.arch-flow.is-open > .arch-flow-head { color: var(--text-bright); font-weight: 600; }
.arch-kids { display: none; margin-left: 0.86rem; padding-left: 0.5rem; border-left: 1.5px solid var(--border-bright); }
.arch-flow.is-open > .arch-kids { display: block; }
.arch-summary { font-size: 0.8rem; color: var(--text-muted); padding: 0.05rem 0.6rem 0.3rem; }
.arch-step { font-size: 0.82rem; line-height: 1.42; color: var(--text-muted); }
.arch-step { align-items: flex-start; }
.arch-num {
  flex: none; display: grid; place-items: center; width: 1.3rem; height: 1.3rem; margin-top: 0.02rem; border-radius: 50%;
  font: 600 0.68rem/1 var(--font-mono); background: var(--border); color: var(--text-secondary);
}
.arch-step.is-done { color: var(--text-secondary); }
.arch-step.is-now { background: var(--bg); color: var(--text-primary); }
.arch-step.is-now .arch-num { background: var(--text-primary); color: var(--bg); }

.arch-stage { min-width: 0; }
.arch-canvas { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); overflow-x: auto; }
.arch-canvas svg { display: block; width: 100%; min-width: 760px; height: auto; max-width: none; }

/* ── the SVG ── */
.arch-svg text { font-family: var(--font-body); fill: var(--text-primary); }
.arch-svg text.ico { font-family: "launchpad-icons"; fill: var(--text-secondary); }
.arch-svg .ico-line { fill: none; stroke: var(--text-secondary); }
.arch-svg .ico-fill { fill: var(--text-secondary); }
.arch-svg text.ico.ai-claude { fill: var(--arch-claude); }
.arch-svg text.ico.brand-cloudflare { fill: var(--arch-cloudflare); }
.arch-svg text.ico.brand-apple { fill: var(--text-primary); }

.arch-svg .zone-body { fill: none; stroke: var(--border-bright); stroke-dasharray: 3 5; }
.arch-svg .zone-bar { fill: var(--surface); }
.arch-svg .zone-t { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--text-secondary); }

.arch-svg .node .body { fill: var(--surface); stroke: var(--border); stroke-width: 1.2; }
.arch-svg .node.is-group .body { fill: var(--bg); stroke: var(--border-bright); }
.arch-svg .node.is-group .bar { fill: var(--surface-lift); }
.arch-svg .node.k-device .body { stroke: var(--text-secondary); stroke-width: 1.5; }
.arch-svg .node.k-device .bar { fill: var(--text-primary); }
.arch-svg .node.k-device > text.t, .arch-svg .node.k-device > text.t .s { fill: var(--bg); }
.arch-svg .node.k-device > text.ico { fill: var(--bg); }
.arch-svg .node.k-device > .ico .ico-line { stroke: var(--bg); }
.arch-svg .node.k-device > .ico .ico-fill { fill: var(--bg); }
.arch-svg .node.k-store .body { stroke-dasharray: 4 3; stroke: var(--border-bright); }
.arch-svg .node.k-store:not(.is-group) .body { fill: var(--bg); }
.arch-svg .node.k-secret .body { stroke: var(--arch-key); stroke-dasharray: 2 3; }
.arch-svg .node.k-secret:not(.is-group) .body { fill: var(--bg); }
.arch-svg .node.k-person .body { fill: var(--bg); stroke: var(--arch-human); }
.arch-svg .node.k-ext .body { fill: var(--surface); stroke: var(--border-bright); }
.arch-svg .node.k-off { opacity: 0.55; }
.arch-svg .node.k-off .body { stroke-dasharray: 2 4; }
.arch-svg .node .t { font-size: 13px; font-weight: 650; }
.arch-svg .node.k-device > .t { font-size: 15px; }
.arch-svg .node.k-ext:not(.is-group) > .t { font-size: 14.5px; }
.arch-svg .node .s { font-size: 10.5px; font-weight: 400; fill: var(--text-muted); font-family: var(--font-mono); }
/* words in the body font; paths and code stay mono (architecture.js `subCls`) */
.arch-svg .node .s.w { font-family: var(--font-body); font-size: 11.5px; }
/* a label that doesn't fit its box (architecture.js `fitCheck`): shorten the words */
.arch-svg .node.is-overflow > .body { stroke: #E5484D; stroke-width: 2; stroke-dasharray: 4 2; }
.arch-svg .node { transition: opacity 0.25s; cursor: pointer; }
/* a box is clicked to focus it; its description shows only where it is lit (architecture.js `lit`) */

.arch-svg .edge path.line { fill: none; stroke: var(--c); stroke-width: 1.4; opacity: 0.6; transition: opacity 0.25s, stroke-width 0.25s; }
.arch-svg .edges { pointer-events: none; }
.arch-svg .edge-hit path.hit { fill: none; stroke: transparent; stroke-width: 12; }
.arch-svg .edge-hit.off { pointer-events: none; }
.arch-svg .edge-hit path.hit { cursor: pointer; }
.arch-svg .edge .lbl { font-size: 10.5px; font-weight: 600; fill: var(--c); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; opacity: 0; transition: opacity 0.25s; pointer-events: none; }
.arch-svg .edge .dot { fill: var(--c); opacity: 0; }

/* a flow is on: everything not in it steps back */
.arch-svg.is-focus .node { opacity: 0.22; }
.arch-svg.is-focus .node.on, .arch-svg.is-focus .node.ctx { opacity: 1; }
.arch-svg.is-focus .node.on > .body { stroke: var(--c, var(--accent)); stroke-width: 2.4; stroke-dasharray: none; }
.arch-svg.is-focus .edge path.line { opacity: 0.05; }
.arch-svg.is-focus .edge.past path.line { opacity: 0.45; stroke-width: 1.8; }
.arch-svg.is-focus .edge.now path.line { opacity: 1; stroke-width: 2.6; stroke-dasharray: 7 5; animation: arch-march 0.9s linear infinite; }
.arch-svg.is-focus .edge.now .lbl { opacity: 1; }
.arch-svg.is-focus .edge.past .lbl { opacity: 0.6; }
.arch-svg.is-focus .edge.now .dot { opacity: 1; }
/* the overview shows where things connect; direction (arrows) is for playback */
.arch-svg:not(.is-focus) .edge:not(.near) path.line, .arch-svg.is-peek .edge path.line { marker-end: none; }
.arch-svg:not(.is-focus):has(.edge-hit:hover) .edge path.line { opacity: 0.3; }
.arch-svg:not(.is-focus) .edge.hover path.line { opacity: 1; stroke-width: 2.6; }
.arch-svg:not(.is-focus) .edge.hover .lbl { opacity: 1; }
@keyframes arch-march { to { stroke-dashoffset: -24; } }
@media (prefers-reduced-motion: reduce) {
  .arch-svg.is-focus .edge.now path.line { animation: none; }
  .arch-svg .edge .dot { display: none; }
}

.arch-tip {
  position: fixed; z-index: 50; max-width: 22rem; pointer-events: none; font-size: 0.8rem; line-height: 1.4;
  background: var(--text-primary); color: var(--bg); padding: 0.5rem 0.7rem; border-radius: var(--radius-sm);
  box-shadow: 0 6px 24px rgb(0 0 0 / 0.2);
}
.arch-tip strong { display: block; margin-bottom: 0.15rem; }
.arch-tip[hidden] { display: none; }

/* ── focus: hovering previews a box's neighborhood; clicking pins it ── */
.arch-svg.is-peek .node:not(.near), .arch-svg.is-pinned .node:not(.near) { opacity: 0.25; }
.arch-svg.is-peek .edge:not(.near) path.line, .arch-svg.is-pinned .edge:not(.near) path.line { opacity: 0.06; }
.arch-svg.is-peek .edge.near path.line, .arch-svg.is-pinned .edge.near path.line { opacity: 1; stroke-width: 2.2; }
.arch-svg.is-pinned .edge.near .lbl { opacity: 1; }
.arch-svg .node.is-pin > .body { stroke: var(--text-primary); stroke-width: 3; stroke-dasharray: none; }
.arch-svg .node.is-pin { opacity: 1 !important; }

.arch-pin {
  display: flex; align-items: center; gap: 0.5rem; margin: 0.2rem 0 var(--space-2); padding: 0.4rem 0.4rem 0.4rem 0.7rem;
  border-radius: 999px; background: var(--text-primary); color: var(--bg); font-size: 0.84rem; font-weight: 600;
}
.arch-pin[hidden] { display: none; }
.arch-pin-dot { flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px var(--bg); }
.arch-pin-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.arch-pin-x { flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0; }
.arch-pin-x:hover { background: rgb(127 127 127 / 0.3); }
.arch-pin-x svg { width: 0.9rem; height: 0.9rem; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.arch-more { font-size: 0.78rem; color: var(--text-muted); padding-left: 2.45rem; }
.arch-group[hidden], .arch-list[hidden], .arch-flow[hidden], .arch-kids li[hidden] { display: none; }

/* a group's border is drawn twice: under (the fill) and over its header bar (the line) */
.arch-svg .node .body.frame { fill: none !important; pointer-events: none; }
.arch-svg .node .body:not(.frame):has(~ .frame) { stroke: transparent !important; }

/* a selected box animates its wires like playback: marching, dots, direction */
.arch-svg.is-pinned .edge.near path.line { stroke-dasharray: 7 5; animation: arch-march 0.9s linear infinite; }
.arch-svg.is-pinned .edge.near .dot { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .arch-svg.is-pinned .edge.near path.line { animation: none; } }

/* ── presentation mode: one bar, one slide at a time ── */
.arch-presbar { display: none; }
.arch-app.is-pres .arch-presbar {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.4rem 0.9rem; align-items: center;
  position: sticky; top: var(--header-h); z-index: 5; background: var(--bg); padding: 0.6rem 0 0.5rem;
}
.arch-app.is-pres .arch-presbar .arch-deck { position: static; padding: 0; margin: 0; box-shadow: none; background: none; gap: 0.35rem; }
.arch-app.is-pres .arch-presbar .arch-deck-where { display: none; }
.arch-pres-head { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.arch-pres-title {
  display: inline-flex; align-items: center; gap: 0.4rem; min-width: 0; max-width: 100%; font: inherit; font-weight: 650; font-size: 0.95rem;
  border: 1px solid var(--border-bright); background: var(--bg); color: var(--text-primary); border-radius: 999px; padding: 0.3rem 0.8rem; cursor: pointer;
}
.arch-pres-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arch-pres-title::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--c, var(--text-muted)); }
.arch-pres-title svg { flex: none; width: 1rem; height: 1rem; stroke: var(--text-secondary); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.arch-app.is-picking .arch-pres-title svg { transform: rotate(180deg); }
.arch-pres-count { flex: none; font: 0.75rem/1 var(--font-mono); color: var(--text-muted); }
/* the slide: always two lines tall, so nothing below it moves */
.arch-pres-caption {
  grid-column: 1 / -1; margin: 0; max-width: none; font-size: 0.95rem; line-height: 1.4; color: var(--text-secondary);
  min-height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.arch-app.is-pres .arch-presbar .arch-pin { grid-column: 1 / -1; margin: 0; }
@media (max-width: 34rem) {
  .arch-app.is-pres .arch-presbar { grid-template-columns: 1fr; }
}
/* the flow list becomes a picker under the bar */
.arch-stage { position: relative; }
.arch-app.is-pres .arch-side { display: none; }
/* the picker pops out under the flow name, fixed to the window so it is always in view (architecture.js `placePicker`) */
.arch-app.is-pres.is-picking .arch-side {
  display: block; position: fixed; z-index: 60; overflow-y: auto; overscroll-behavior: contain; background: var(--bg);
  border: 1px solid var(--border-bright); border-radius: var(--radius-md); padding: 0.4rem 0.6rem; box-shadow: 0 16px 48px rgb(0 0 0 / 0.22);
}
.arch-app.is-pres .arch-side .arch-intro, .arch-app.is-pres .arch-side .arch-spacer { display: none; }
/* the stage holds still: the camera moves inside it */
.arch-app.is-pres .arch-canvas { overflow: hidden; touch-action: pan-y; }
.arch-app.is-pres .arch-canvas svg { min-width: 0; height: var(--stage-h, 70vh); }

/* shown only while the diagram passes under the bar (architecture.js `barShadow`) */
.arch-app.is-pres .arch-presbar { transition: box-shadow 0.2s; }
.arch-app.is-pres .arch-presbar.is-over { box-shadow: 0 10px 14px -10px rgb(0 0 0 / 0.28); }

/* a selected box: the picker's button names it with a ring, its × clears it; no separate chip */
.arch-app.is-pres .arch-side > .arch-pin { display: none; }
.arch-pres-title.is-thing { background: var(--text-primary); color: var(--bg); border-color: var(--text-primary); }
.arch-pres-title.is-thing::before { background: transparent; box-shadow: inset 0 0 0 2px var(--bg); width: 0.7rem; height: 0.7rem; }
.arch-pres-title.is-thing svg { stroke: var(--bg); }
.arch-pres-clear {
  flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; margin-left: -0.3rem;
  border-radius: 50%; border: 1px solid var(--border-bright); background: var(--bg); color: var(--text-primary); cursor: pointer;
}
.arch-pres-clear[hidden] { display: none; }
.arch-pres-clear svg { width: 0.95rem; height: 0.95rem; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.arch-pres-clear:hover { background: var(--surface); }

/* a selected box's description: docked at the bottom of the diagram, never floating over it (touch has no "leave") */
.arch-dock {
  position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); bottom: 12px;
  width: min(34rem, calc(100% - 24px)); display: flex; gap: 0.6rem; align-items: flex-start;
  padding: 0.6rem 0.5rem 0.6rem 0.85rem; border-radius: var(--radius-md); font-size: 0.85rem; line-height: 1.45;
  background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border-bright); box-shadow: 0 10px 30px rgb(0 0 0 / 0.16);
}
.arch-dock[hidden] { display: none; }
.arch-dock-text { flex: 1; min-width: 0; }
.arch-dock-text strong { display: block; color: var(--text-primary); margin-bottom: 0.1rem; }
.arch-dock-x { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-secondary); cursor: pointer; }
.arch-dock-x:hover { background: var(--surface); }
.arch-dock-x svg { width: 0.9rem; height: 0.9rem; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; fill: none; }

/* ── src/css/lanes/demos.css ── */
/* src/css/lanes/demos.css: /demos (layouts/demos.yml; behavior in src/js/lanes/demos.js), 2026-10-17.
   Clips of the real app inside Apple device bezels. The <video> sits in the bezel's screen rect (percentages from
   site/assets/demos/demos.json, set inline as --demo-x/y/w/h) and the bezel image is layered on top, so its rounded
   corners and the island cover the video's corners. Colors only from the theme's tokens. */

.demos { max-width: none; }
.demos-lede { max-width: var(--measure); color: var(--text-secondary); font-size: 1.15rem; margin: 0 0 var(--space-4); }
.demos-empty {
  padding: var(--space-5) var(--space-3);
  border: 1px dashed var(--border-bright);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--text-muted);
}

/* ── one device ─────────────────────────────────────────────────────────── */

.demo-stage { position: relative; }
.demo-device {
  position: relative;
  width: 100%;
  container-type: inline-size;
}
.demo-video {
  position: absolute;
  left: var(--demo-x);
  top: var(--demo-y);
  width: var(--demo-w);
  height: var(--demo-h);
  object-fit: cover;
  background: #000;
  display: block;
  /* A backup only, a little inside the hole's own corner: the bezel covers the video's corners. */
  border-radius: 2cqw;
}
.demo-device--iphone .demo-video { border-radius: 12cqw; }
/* The screen's black, under the video: a clip change fades through it (demos.js fadeSwap), never through the page. */
.demo-device::before {
  content: "";
  position: absolute;
  left: var(--demo-x);
  top: var(--demo-y);
  width: var(--demo-w);
  height: var(--demo-h);
  background: #000;
  border-radius: 2cqw;
}
.demo-device--iphone::before { border-radius: 12cqw; }
.demo-video { transition: opacity 0.22s ease; }
.demo-video.demo-dark { opacity: 0; transition-duration: 0.18s; }
@media (prefers-reduced-motion: reduce) { .demo-video, .demo-video.demo-dark { transition: none; } }
.demo-bezel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
.demo-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.6);
  color: #fff;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.demo-play[hidden] { display: none; }
.demo-play:focus-visible, .demo-fullscreen:focus-visible, .demos-arrow:focus-visible, .demos-page:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* Full screen opens the presentation (below). The button sits on the device's top-right corner, over the bezel. */
.demo-fullscreen {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-bright);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-bright);
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.18);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.demo-fullscreen:hover { color: var(--accent); }
.demo-fullscreen[hidden] { display: none; }

/* ── the hero: an iPad in landscape and its titled pages ────────────────── */

.demos-hero { margin: 0 0 var(--space-6); }
/* The second iPad pager (managing an organization): the hero's look, under its own heading. */
.demos-section-title { margin: 0 0 var(--space-3); }
/* The hero fits the window with its caption and pages (a Mac's whole screen): the device's height is capped by the
   viewport's, its width follows the bezel's aspect, centered. */
.demos-hero .demo-stage {
  max-width: 100%;
  width: min(100%, calc((100svh - 300px) * var(--demo-aspect, 1.3043)));
  margin-inline: auto;
}
.demos-captions { min-height: 3em; margin-top: var(--space-3); }
.demos-caption { max-width: var(--measure); margin: 0; color: var(--text-secondary); text-wrap: pretty; }
.demos-pages {
  position: relative;   /* the pages' offsetLeft is inside the list (demos.js keeps the active one in sight) */
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
  display: grid;
  /* One row of pages, however many; it scrolls sideways on a narrow screen rather than wrapping. */
  grid-auto-flow: column;
  grid-auto-columns: minmax(9rem, 1fr);
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.demos-pages::-webkit-scrollbar { display: none; }
.demos-page {
  width: 100%;
  min-height: 44px;
  padding: var(--space-1) 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  /* The title sits on its line, and every line meets the same baseline however the titles wrap (Nima, 2026-10-17). */
  justify-content: flex-end;
  gap: 0.5rem;
}
.demos-page:hover { color: var(--text-secondary); }
.demos-page[aria-current="true"] { color: var(--text-bright); }
.demos-page-bar {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
}
.demos-page-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
}
.demos-page[aria-current="true"] .demos-page-fill { transform: scaleX(var(--demo-progress, 0)); }
/* A phone: each title on one line, each page as wide as its title; the row scrolls sideways (the active page kept in
   sight by demos.js). */
@media (max-width: 640px) {
  .demos-pages { grid-auto-columns: max-content; gap: var(--space-3); }
  .demos-pages .demos-page-title { white-space: nowrap; }
}

/* ── the iPhone carousel ────────────────────────────────────────────────── */

.demos-phones-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.demos-phones-title { margin: 0; }
.demos-arrows { display: flex; gap: var(--space-1); }
.demos-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-bright);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.demos-arrow:hover:not(:disabled) { border-color: var(--border-bright); }
.demos-arrow:disabled { opacity: 0.35; cursor: default; }

.demos-track {
  --demos-gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0 0 var(--space-2);
  display: grid;
  grid-auto-flow: column;
  /* One phone with a peek of the next on a phone; up to four on a wide screen. */
  grid-auto-columns: 78%;
  gap: var(--demos-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: none;
}
.demos-track::-webkit-scrollbar { display: none; }
@media (min-width: 560px) { .demos-track { grid-auto-columns: calc((100% - var(--demos-gap)) / 2.2); } }
@media (min-width: 820px) { .demos-track { grid-auto-columns: calc((100% - 2 * var(--demos-gap)) / 3); } }
@media (min-width: 1080px) { .demos-track { grid-auto-columns: calc((100% - 3 * var(--demos-gap)) / 4); } }
.demos-slide { scroll-snap-align: start; min-width: 0; }
.demos-slide figure { margin: 0; }
.demos-slide .demo-device { cursor: pointer; }
/* Each phone's title and its progress line sit above it (the hero's page look); the caption below. */
.demos-slide-page { margin-bottom: var(--space-2); min-height: calc(2.6em + 0.5rem + 3px); }
.demos-slide-caption { display: block; margin-top: var(--space-2); font-size: 0.92rem; color: var(--text-muted); text-wrap: pretty; }
/* The phones that are not playing are dimmed; the active one is in full light. */
.demos-slide .demo-stage, .demos-slide-caption { transition: opacity 0.45s ease, filter 0.45s ease; }
/* Darkened, never see-through: transparency let the page's white wash over the phone in light mode. */
.demos-slide:not([data-active]) .demo-stage { filter: brightness(0.45) saturate(0.6); }
.demos-slide:not([data-active]) .demos-slide-caption { opacity: 0.6; }
.demos-slide:not([data-active]) .demo-stage:hover { filter: brightness(0.7) saturate(0.8); }
@media (prefers-reduced-motion: reduce) {
  .demos-slide .demo-stage, .demos-slide-caption { transition: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .demos-track { scroll-behavior: smooth; }
}

/* ── the presentation: every clip in one sequence, on black ─────────────────
   One stage for the whole page (src/js/lanes/demos.js moves it to <body>): element full screen where the browser has
   it, otherwise (the iPhone's Safari) the same stage as a fixed overlay over the whole viewport. Always black, whatever
   the theme: a screening room. */

.demos-present {
  position: fixed;
  inset: 0;
  z-index: 1000;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  overscroll-behavior: contain;
}
.demos-present[hidden] { display: none; }
.demos-present:fullscreen { width: 100vw; height: 100vh; }
.demos-present:-webkit-full-screen { width: 100vw; height: 100vh; }
.demos-present::backdrop { background: #000; }
html.demos-presenting, html.demos-presenting body { overflow: hidden; }

.demos-present-top {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 44px;
  padding-inline: 56px;
}
/* The brand stays on screen in presentation mode: the app's mark and name, top left (Nima, 2026-10-17). */
.demos-present-brand {
  position: absolute;
  top: 0;
  left: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}
/* The app icon's bubble alone, cropped to its circle (on black the icon's black square vanished, leaving a small,
   off-center bubble): centered on the ✕'s line and about its size (Nima, 2026-10-17). */
.demos-present-mark { width: 40px; height: 40px; flex: none; }
/* Where you are in the whole run ("3 of 15"), under the progress line, so the wrap back to the first clip is plain. */
.demos-present-count {
  display: block;
  margin-top: 6px;
  text-align: center;
  color: rgb(255 255 255 / 0.65);
  font-size: 0.85rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) { .demos-present-brand span { display: none; } }
.demos-present .demos-page.demos-present-page { width: min(28rem, 100%); color: #fff; cursor: default; }
.demos-present .demos-page-bar { background: rgb(255 255 255 / 0.22); }
.demos-present-close, .demos-present-arrow {
  /* Dark glass with a hairline: legible over black and over a white screen alike. */
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 50%;
  background: rgb(40 40 40 / 0.78);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
@media (hover: hover) { .demos-present-close:hover, .demos-present-arrow:hover { background: rgb(72 72 72 / 0.9); } }
.demos-present-close:focus-visible, .demos-present-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* A plain ✕, no circle (Nima, 2026-10-17); the 44 pt tap area stays. */
.demos-present-close { position: absolute; top: 0; right: 0; width: 44px; height: 44px; font-size: 1.6rem; border: 0; background: none; border-radius: 10px; }
@media (hover: hover) { .demos-present-close:hover { background: rgb(255 255 255 / 0.12); } }

.demos-present-screen {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  touch-action: pan-y pinch-zoom;
}
.demos-present .demo-device {
  width: min(calc(100vw - 160px), calc((100vh - 180px) * var(--demo-aspect, 1.3043)));
  width: min(calc(100vw - 160px), calc((100dvh - 180px) * var(--demo-aspect, 1.3043)));
}
.demos-present .demo-device { cursor: pointer; }
.demos-present-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 52px;
  height: 52px;
  font-size: 1.25rem;
}
.demos-present-prev { left: 0; }
.demos-present-next { right: 0; }
.demos-present-caption {
  margin: 0 auto;
  max-width: var(--measure);
  min-height: 2.8em;
  text-align: center;
  color: rgb(255 255 255 / 0.74);
  text-wrap: pretty;
}
.demos-present-caption a { color: #fff; }
@media (max-width: 640px) {
  /* A phone: the device takes the width. */
  .demos-present .demo-device {
    width: min(calc(100vw - 32px), calc((100vh - 260px) * var(--demo-aspect, 1.3043)));
    width: min(calc(100vw - 32px), calc((100dvh - 260px) * var(--demo-aspect, 1.3043)));
  }
}
/* A phone or a narrow portrait screen: the arrows move to the bottom of the stage, same spacing, where a thumb reaches
   them and where they clear a landscape iPad (in the black under it) and sit beside an iPhone (Nima, 2026-10-17). A wide
   screen keeps them beside the device, where there is room. */
@media (max-width: 640px), (orientation: portrait) and (max-width: 1100px) {
  .demos-present-screen { padding-bottom: 64px; }
  .demos-present-arrow { top: auto; bottom: 4px; translate: none; width: 52px; height: 52px; }
}

/* ── src/css/lanes/docs.css ── */
/* src/css/lanes/docs.css: lane B (Docs): /docs and /docs/<slug>. Started from
   Terminal C's docs layout (components.css). Owned by lane B.

   The frame: on a wide screen, the sidebar (every section, grouped) on the
   left and the document beside it; on a phone, the document first and the
   sidebar after it (Terminal C's grid areas), reached by "All sections". */

.docs-layout { max-width: var(--page); }

@media (min-width: 54rem) {
  .docs-layout {
    display: grid;
    grid-template-columns: 15.5rem minmax(0, 1fr);
    grid-template-areas: "nav body";
    column-gap: var(--space-5);
    align-items: start;
  }
  /* The sticky offset clears the header bar; the max-height shrinks by the
   * same amount so the list's tail stays reachable. */
  .docs-nav {
    grid-area: nav;
    position: sticky;
    top: calc(var(--header-h) + var(--space-2));
    max-height: calc(100vh - var(--header-h) - var(--space-3));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: var(--space-1);
  }
  .docs-body { grid-area: body; }
  /* The jump link exists for the one-column order; beside a visible sidebar
   * it is a control that does nothing. */
  .docs-nav-jump { display: none; }
}

/* ── the sidebar / section list ── */

.docs-nav { font-size: 0.875rem; line-height: 1.4; }

/* On a phone the list follows the document: a quiet panel of its own. */
@media (max-width: 53.99rem) {
  .docs-nav {
    margin-top: var(--space-5);
    padding: var(--space-3) var(--space-2) var(--space-1);
    background: var(--surface);
    border-radius: var(--radius-md);
  }
}

.docs-nav-group { margin-bottom: var(--space-3); }

/* Group names step DOWN from the body, not up: the nav is wayfinding beside a
 * document, and ten loud headings would out-shout the prose they serve. */
.docs-nav-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
  padding-left: 0.65rem;
}

.docs-nav-list { list-style: none; margin: 0; padding: 0; }
.docs-nav-list li { margin: 0; }
.docs-nav-list a {
  display: block;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
}
.docs-nav-list a:hover { color: var(--text-bright); background: var(--surface-lift); }
/* Current: bright and weighted, with a quiet ground and a thin rule in the
 * accent so "you are here" reads at a glance in a long list. */
.docs-nav-list a[aria-current="page"] {
  color: var(--text-bright);
  font-weight: 600;
  background: var(--surface-lift);
  box-shadow: inset 2px 0 0 var(--accent);
}
@media (min-width: 54rem) {
  .docs-nav-list a[aria-current="page"] { background: var(--surface); }
}

/* ── the document column ── */

.docs-body { max-width: var(--measure); min-width: 0; }

.docs-summary {
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 var(--space-1);
}

.docs-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0 0 var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}
.docs-meta .docs-nav-jump { margin-left: auto; }

/* The manual's own stable id (GS-1, AS-2): the app, the phone and an agent
 * all name sections by it. */
.docs-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  white-space: nowrap;
}

.docs-nav-jump { white-space: nowrap; font-size: 0.875rem; }

.docs-prose { line-height: 1.7; }
.docs-prose p { margin: 0 0 var(--space-2); }
.docs-prose h2,
.docs-prose h3 {
  font-weight: 650;
  line-height: 1.3;
  margin: var(--space-4) 0 var(--space-1);
}
.docs-prose h2 { font-size: 1.375rem; letter-spacing: -0.01em; }
.docs-prose h3 { font-size: 1.125rem; }
.docs-prose > :first-child { margin-top: 0; }

.docs-prose ul,
.docs-prose ol { margin: 0 0 var(--space-2); padding-left: 1.3em; }
.docs-prose li { margin-bottom: 0.4rem; }
.docs-prose li > ul,
.docs-prose li > ol { margin: 0.4rem 0 0; }
.docs-prose li::marker { color: var(--text-muted); }
.docs-prose strong { color: var(--text-bright); font-weight: 600; }
.docs-prose code { font-size: 0.85em; overflow-wrap: anywhere; }
.docs-prose pre code { overflow-wrap: normal; }

/* Cross-references ("See Confirmation cards (AS-2)") link to their section. */
.docs-xref { white-space: normal; }

.docs-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.docs-pager-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-bright);
  min-width: 0;
}
.docs-pager-link:hover { border-color: var(--border-bright); background: var(--surface); }
.docs-pager-label { font-size: 0.8125rem; color: var(--text-muted); }
.docs-pager-title { font-weight: 600; line-height: 1.35; }
.docs-pager-prev .docs-pager-label::before { content: "← "; }
.docs-pager-next { grid-column: 2; text-align: right; }
.docs-pager-next .docs-pager-label::after { content: " →"; }

.docs-provenance {
  margin: var(--space-3) 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── /docs — the grouped directory ── */

.docs-intro {
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 var(--space-4);
}

.docs-group { margin-bottom: var(--space-4); }

.docs-group-title {
  font-size: 1.25rem;
  font-weight: 650;
  margin: var(--space-4) 0 var(--space-2);
  padding-bottom: var(--space-1);
  border-bottom: 1px solid var(--border);
}
.docs-intro + .docs-group .docs-group-title { margin-top: 0; }

.docs-entries { list-style: none; margin: 0; padding: 0; }

/* Deep-link targets by the manual's own section ids (/docs#AP-4); the
 * header offset is base.css's scroll-padding-top. */
.docs-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.6rem;
  padding: 0.6rem 0;
}
.docs-entry:target { background: var(--surface); border-radius: var(--radius-sm); padding-inline: 0.6rem; margin-inline: -0.6rem; }

/* Weight only: the base `a` affordance (link color, visible underline) stays,
 * so every row reads as clickable. */
.docs-entry-title { font-weight: 600; }

.docs-entry-summary {
  flex-basis: 100%;
  margin: 0.15rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Pictures placed site-side (content/media-slots.json, 2026-10-13). */
.docs-figure { margin: var(--space-2) 0 var(--space-3); }
.docs-figure--lead { margin-top: 0; }

/* ── src/css/lanes/features.css ── */
/* src/css/lanes/features.css: phase 2 (Features): /features and any
   feature-grid band. Owned by the features lane. Colors only from the theme
   tokens (base.css / theme/tokens.css); phone first. */

.feature-lede { padding: var(--space-5) 0 var(--space-2); }
.feature-lede-detail { font-size: 1.15rem; color: var(--text-secondary); }

/* The compact section index: chips that wrap, never scroll the page. */
.feature-index ul {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.feature-index a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  min-height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.2;
}
.feature-index a:hover { border-color: var(--border-bright); }
.feature-index .icon { color: var(--accent); font-size: 1rem; }

.feature-section { margin-bottom: var(--space-5); scroll-margin-top: calc(var(--header-h) + var(--space-2)); }
.feature-section-title { display: flex; align-items: center; gap: 0.5rem; }
.feature-section-icon { color: var(--accent); }
.feature-section-lede { color: var(--text-secondary); }

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.feature-card {
  position: relative;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}
.feature-card:hover { border-color: var(--border-bright); }
.feature-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
/* The title is the card's one link; it covers the card so the whole card taps. */
.feature-card-link { color: var(--text-bright); text-decoration: none; }
.feature-card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.feature-card-link:focus-visible { outline: none; }
.feature-card:has(.feature-card-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.feature-card p { margin: 0; color: var(--text-secondary); font-size: 0.975rem; }
.feature-icon { display: block; font-size: 1.4rem; color: var(--accent); margin-bottom: var(--space-1); }

/* Phone: the icon sits beside the title, so 69 cards don't make a mile-long page. */
@media (max-width: 40rem) {
  .feature-card { display: grid; grid-template-columns: auto 1fr; column-gap: 0.75rem; align-items: baseline; padding: var(--space-2); }
  .feature-icon { grid-row: 1 / span 2; margin: 0; font-size: 1.25rem; }
  .feature-cards { gap: 0.75rem; }
}

/* Media (2026-10-13): square shots tile; portrait phone shots swipe
   (.media-carousel, src/css/media.css); cards without a picture follow in
   their own grid, so no row mixes a picture with a bare card. */
.feature-tiles {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: var(--space-3) var(--space-2);
}
.feature-tile { position: relative; }
.feature-tile .media { margin-bottom: var(--space-1); }
.feature-tile h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.feature-tile p { margin: 0; color: var(--text-secondary); font-size: 0.975rem; }
.feature-tile:has(.feature-card-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius-md); }
.feature-reel { margin-top: var(--space-3); }
.feature-reel li { position: relative; }
.feature-reel figure { margin: 0; }
.feature-tiles + .feature-cards, .feature-reel + .feature-cards { margin-top: var(--space-3); }

/* ── src/css/lanes/home.css ── */
/* src/css/lanes/home.css: lane F (home, phase 3). The hero, the trust strip,
   the home bands, how it works, the screenshots and the closing band.
   Calm and spacious (Terminal C's register): strong type, hairlines, one
   accent, no animation. Colors only from the theme's tokens. */

/* ── hero ───────────────────────────────────────────────────────────────── */

.hero { padding: var(--space-5) 0 0; }
.hero-text { max-width: 46rem; }
.hero .eyebrow { margin-bottom: var(--space-2); color: var(--accent-text, var(--link)); }
.hero-title {
  font-size: clamp(2.6rem, 8.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 750;
  margin: 0 0 var(--space-3);
  max-width: 14ch;
  text-wrap: balance;
}
.hero-title .accent { color: var(--accent-text, var(--link)); }
.hero-sub {
  font-size: clamp(1.1rem, 2.3vw, 1.35rem);
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 40rem;
  text-wrap: pretty;
}
.hero-cta, .cta-final-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
  margin-top: var(--space-3);
}
.hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.25rem;
  font-weight: 600;
  text-decoration: none;
}
.hero-link:hover { text-decoration: underline; }
.hero-note, .cta-final-note { margin-top: var(--space-2); font-size: 0.9rem; color: var(--text-muted); }

.hero-art { margin: var(--space-5) 0 0; position: relative; }
/* A soft wash of the app's blue behind the screenshot: one CSS gradient. */
.hero-art::before {
  content: "";
  position: absolute;
  inset: -8% -4% 20%;
  z-index: -1;
  background: radial-gradient(60% 60% at 50% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-art-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 24px 60px -24px rgb(0 0 0 / 0.35);
}
.hero-art img { display: block; width: 100%; height: auto; }
.hero-art-caption, .home-shot-caption {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.hero-art-caption { margin-top: var(--space-2); max-width: var(--measure); }

/* ── trust strip ────────────────────────────────────────────────────────── */

.home-trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) 0;
}
.home-trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 36rem) { .home-trust-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .home-trust-list { grid-template-columns: repeat(4, 1fr); } }
.home-trust-icon, .home-point-icon {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: var(--space-1);
  border-radius: 10px;
  font-size: 1.15rem;
  color: var(--accent-text, var(--link));
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.home-trust-title { margin: 0 0 0.25rem; font-weight: 650; color: var(--text-bright); }
/* Narrow screens: icon beside the words, so four promises stay short. */
@media (max-width: 59.99rem) {
  .home-trust-item { display: grid; grid-template-columns: 2.25rem 1fr; column-gap: var(--space-2); }
  .home-trust-icon { grid-row: span 2; margin-bottom: 0; }
}
.home-trust-detail { margin: 0; font-size: 0.95rem; color: var(--text-secondary); }

/* ── the home bands ─────────────────────────────────────────────────────── */

main > .home-band, main > .home-proof, main > .steps { margin-bottom: var(--space-6); }
.home-band-head { max-width: 46rem; margin-bottom: var(--space-4); }
.home-band-title, .steps-title, .cta-final-title {
  font-size: clamp(1.75rem, 4.6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}
.home-band-lede, .cta-final-lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
  text-wrap: pretty;
}
.home-band--split .home-band-head { margin-bottom: var(--space-3); }
.home-band-body p { font-size: 1.075rem; line-height: 1.65; color: var(--text-secondary); }
.home-band-body p:last-child { margin-bottom: 0; }

/* The problem: title left, words right, on a wide screen. */
@media (min-width: 60rem) {
  .home-band--split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--space-5);
    align-items: start;
  }
  .home-band--split .home-band-head { margin-bottom: 0; }
}

/* For organizations: the one tinted band. */
.home-band--alt {
  background: var(--surface);
  border-radius: calc(var(--radius-md) * 1.5);
  padding: var(--space-5) var(--gutter);
}
@media (min-width: 40rem) { .home-band--alt { padding: var(--space-5) var(--space-4); } }

.home-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .home-points { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .home-points { grid-template-columns: repeat(3, 1fr); } }
#for-developers .home-points { grid-template-columns: 1fr; }
@media (min-width: 40rem) { #for-developers .home-points { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { #for-developers .home-points { grid-template-columns: repeat(4, 1fr); } }

.home-point {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}
.home-point-title { margin: 0 0 0.4rem; font-size: 1.075rem; }
.home-point-detail { margin: 0 0 var(--space-2); color: var(--text-secondary); font-size: 0.975rem; line-height: 1.55; }
.home-point-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none;
}
.home-point-link:hover { text-decoration: underline; }

.home-band-notyet {
  margin: var(--space-4) 0 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 52rem;
}
.home-band-more { margin: var(--space-3) 0 0; }

/* For individuals: one quiet row. */
.home-band--compact {
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
}
.home-band--compact .home-band-head { margin-bottom: 0; }
.home-band--compact .home-band-title { font-size: clamp(1.35rem, 3vw, 1.75rem); }
@media (min-width: 52rem) {
  .home-band--compact {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4);
  }
  .home-band--compact .home-band-more { margin: 0; flex: none; }
}

/* ── how it works ───────────────────────────────────────────────────────── */

.steps .steps-title { max-width: 22ch; margin-bottom: var(--space-4); }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); counter-reset: step; }
@media (min-width: 48rem) { .steps-list { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); } }
.step { counter-increment: step; padding-top: var(--space-2); border-top: 2px solid var(--text-bright); }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-text, var(--link));
}
.step-title { font-size: 1.25rem; margin: 0 0 0.5rem; }
.step-detail { margin: 0; color: var(--text-secondary); line-height: 1.6; }

/* ── screenshots ────────────────────────────────────────────────────────── */

.home-proof-more { margin: var(--space-2) 0 0; font-weight: 600; }
.home-proof-more a { text-decoration: none; }
.home-proof-more a:hover { text-decoration: underline; }
.home-shots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 40rem) { .home-shots { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .home-shots { grid-template-columns: 1fr 1fr 1.45fr; gap: var(--space-3); } }
.home-shot figure { margin: 0; }
.home-shot-frame {
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 18px 40px -28px rgb(0 0 0 / 0.4);
}
.home-shot--iphone .home-shot-frame { border-radius: 28px; max-width: 18rem; }
.home-shot--ipad .home-shot-frame { border-radius: 20px; }
.home-shot--mac .home-shot-frame { border-radius: var(--radius-md); }
@media (max-width: 39.99rem) {
  .home-shot--iphone .home-shot-frame { margin: 0 auto; }
  .home-shot--ipad .home-shot-frame { max-width: 26rem; margin: 0 auto; }
}
@media (min-width: 40rem) and (max-width: 63.99rem) {
  .home-shot--ipad { grid-column: 1 / -1; }
  .home-shot--ipad .home-shot-frame { max-width: 30rem; }
}
.home-shot img { display: block; width: 100%; height: auto; }
.home-shot figcaption { display: flex; flex-direction: column; gap: 0.3rem; margin-top: var(--space-2); max-width: 26rem; }
.home-shot-title { font-weight: 650; color: var(--text-bright); }
.home-shot .home-point-link { margin-top: 0; }

/* ── closing band ───────────────────────────────────────────────────────── */

.cta-final {
  text-align: center;
  padding: var(--space-5) var(--gutter);
  border-radius: calc(var(--radius-md) * 1.5);
  border: 1px solid var(--border);
  background:
    radial-gradient(70% 90% at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    var(--bg);
}
.cta-final-title { margin-left: auto; margin-right: auto; max-width: 20ch; }
.cta-final-lede { margin: 0 auto; max-width: 36rem; }
.cta-final-actions { justify-content: center; }
.cta-final .hero-note, .cta-final-note { margin-left: auto; margin-right: auto; }

/* The closing band is the page's last section: the main's own bottom padding
   is enough room before the footer. */
main > .cta-final:last-child { margin-bottom: 0; }

/* ── media (2026-10-13) ─────────────────────────────────────────────────── */
.hero-art .media { box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 24px 60px -24px rgb(0 0 0 / 0.35); }
.hero-cta { margin-top: var(--space-2); }
.cta-final .store-buttons { justify-content: center; }
.cta-final .store-row { margin-bottom: var(--space-2); }

/* Feature cards with a picture: the shot leads, the words follow. */
.home-point--media { padding: 0 0 var(--space-3); overflow: hidden; }
.home-point--media .media { max-width: none; border: 0; border-radius: 0; border-bottom: 1px solid var(--border); margin-bottom: var(--space-2); }
.home-point--media .home-point-title,
.home-point--media .home-point-detail { padding: 0 var(--space-3); }
.home-point-title-link { color: var(--text-bright); text-decoration: none; }
.home-point-title-link:hover { text-decoration: underline; }
.home-points--features .home-point-detail { margin-bottom: 0; }

/* The Mac productivity band: one wide shot, then two smaller ones. */
.home-media-band { margin: var(--space-6) 0; }
.home-media-main { margin: var(--space-3) 0 0; }
.home-media-main .media { margin: 0 auto; box-shadow: 0 18px 40px -28px rgb(0 0 0 / 0.4); }
.home-media-pair {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
  justify-items: center;
}
@media (min-width: 48rem) { .home-media-pair { grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: var(--space-4); } }
.home-media-pair figure { margin: 0; max-width: 360px; }
.home-media-pair figcaption { margin-top: var(--space-1); color: var(--text-secondary); font-size: 0.95rem; }
.home-media-pair figcaption strong { color: var(--text-bright); }
.home-media-pair .home-point-link { display: inline-block; margin-top: 0.3rem; }

/* Proof shots now come from media slots: the slot box is the frame. */
.home-shot .media { margin: 0 auto 0 0; box-shadow: 0 18px 40px -28px rgb(0 0 0 / 0.4); }
@media (max-width: 39.99rem) { .home-shot .media { margin: 0 auto; } }

/* ── src/css/lanes/legal.css ── */
/* src/css/lanes/legal.css: the legal documents (layouts/legal.yml). The draft
   banner is core (src/css/components.css). */

.legal { max-width: var(--measure); }
.legal-toc { margin: 0 0 var(--space-4); padding: var(--space-2) var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 0.95rem; }
.legal-toc ul { margin: 0; padding-inline-start: 1.2em; }
.legal-toc li { margin: 0.2rem 0; }
.legal-body h2 { scroll-margin-top: calc(var(--header-h) + var(--space-2)); }
.legal-signature { margin-top: var(--space-4); color: var(--text-muted); }
.legal-missing { color: var(--text-muted); }

/* ── src/css/lanes/releases-support.css ── */
/* src/css/lanes/releases-support.css — lane D: /releases (layouts/support-releases.yml) and /support
   (layouts/issue-report.yml). The form rules are Terminal C's forms.css, trimmed. Every color is a theme token
   (the Base theme has no success/error colors, so states use the brand and bright ink). */

/* ── /releases ─────────────────────────────────────────────────────────────── */

.releases { max-width: var(--measure); }
.rel-intro { color: var(--text-secondary); margin-bottom: var(--space-1); }
.rel-legend { color: var(--text-muted); font-size: 0.9rem; margin-bottom: var(--space-4); }

.rel-list { list-style: none; margin: 0; padding: 0; }
.rel { border-top: 1px solid var(--border); }
.rel:last-child { border-bottom: 1px solid var(--border); }
.rel:target .rel-date { color: var(--brand); }

.rel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  padding: var(--space-2) 0;
  cursor: pointer;
  list-style: none;
  min-height: 2.75rem;
}
.rel-head::-webkit-details-marker { display: none; }
.rel-head::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  margin-inline-end: 0.15rem;
}
.rel-fold[open] > .rel-head::before { transform: rotate(45deg); }
.rel-head:focus-visible { outline: 2px solid var(--border-bright); outline-offset: 2px; border-radius: var(--radius-sm); }

.rel-date { margin: 0; font-size: 1.15rem; line-height: 1.3; color: var(--text-bright); }
.rel-badges { display: inline-flex; flex-wrap: wrap; gap: 0.35rem; }
.rel-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  white-space: nowrap;
}
.rel-badge-os { font-weight: 600; color: var(--text-bright); }
.rel-badge-build { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.rel-count { margin-inline-start: auto; font-size: 0.85rem; color: var(--text-muted); }

.rel-highlights { margin: 0 0 var(--space-3); padding-inline-start: 1.6rem; list-style: disc; }
.rel-highlights li { margin-bottom: 0.75rem; max-width: var(--measure); }
.rel-highlights li::marker { color: var(--text-muted); }
.rel-h-title { display: block; color: var(--text-bright); font-weight: 600; }
.rel-h-detail { color: var(--text-secondary); }
.rel-maintenance { color: var(--text-muted); margin: 0 0 var(--space-3) 1.6rem; }

@media (max-width: 30rem) {
  .rel-count { margin-inline-start: 0; flex-basis: 100%; padding-inline-start: 1.1rem; }
}

/* ── /support: shared ──────────────────────────────────────────────────────── */

.support-get-app, .issue-report, .support-help { max-width: var(--measure); margin-top: var(--space-5); }
.support-get-app { margin-top: var(--space-3); }
.support-get-app p:last-child { margin-bottom: 0; }
.support-h { margin-bottom: var(--space-2); }
.support-muted { color: var(--text-secondary); }

/* ── the reporter ──────────────────────────────────────────────────────────── */

.report-intro { color: var(--text-secondary); }
.report-icon { display: inline-block; margin-inline-end: 0.3em; }
.report-icon::before {
  font-family: "launchpad-icons";
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  font-size: 0.85em;
  color: currentColor;
  -webkit-font-smoothing: antialiased;
}

.report-form { margin-top: var(--space-3); max-width: 34rem; }
.report-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--space-3); }
.report-form fieldset[disabled] { opacity: 0.55; }

.report-field { display: grid; gap: 0.4rem; }
.report-label { font-size: 0.875rem; color: var(--text-secondary); }

.report-form input[type="text"],
.report-form input[type="email"],
.report-form select,
.report-form textarea {
  font: inherit;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.7rem;
  width: 100%;
  min-height: 2.75rem;
}
.report-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 2.25rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: right 1.1rem center, right 0.8rem center;
  background-size: 0.3rem 0.3rem, 0.3rem 0.3rem;
  background-repeat: no-repeat;
  cursor: pointer;
}
.report-form select:invalid { color: var(--text-muted); }
.report-form textarea { resize: vertical; min-height: 7rem; }
.report-form input::placeholder, .report-form textarea::placeholder { color: var(--text-muted); }

.report-form input:focus-visible,
.report-form select:focus-visible,
.report-form textarea:focus-visible,
.report-form button:focus-visible { outline: 2px solid var(--border-bright); outline-offset: 2px; }
.report-kind input:focus-visible + .segmented-option { outline: 2px solid var(--border-bright); outline-offset: 1px; }

.report-form .segmented { justify-self: start; }
.report-kind { cursor: pointer; display: inline-flex; }
.report-kind input { position: absolute; opacity: 0; pointer-events: none; }
.report-kind .segmented-option { min-height: 2.75rem; font-size: 0.9375rem; width: 100%; padding-inline: 1.1rem; cursor: pointer; }
.report-kind input:checked + .segmented-option { background: var(--seg-thumb); color: var(--seg-ink); font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / 0.15); }

.report-optional { display: grid; gap: var(--space-2); }
@media (min-width: 34rem) { .report-optional { grid-template-columns: 1fr 1fr; } }

.report-hint, .report-noscript, .report-app { font-size: 0.875rem; color: var(--text-muted); margin: 0; }
.report-app { margin-top: var(--space-3); }
.report-noscript { margin-top: var(--space-2); }

.report-form button[type="submit"] { justify-self: start; }

.report-challenge iframe { border: 0; width: 100%; max-width: 20rem; height: 70px; display: block; color-scheme: normal; }

.report-status:empty { display: none; }
.report-status {
  margin-top: var(--space-2);
  font-size: 0.9375rem;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  border-inline-start-width: 4px;
  color: var(--text-secondary);
}
.report-status.is-ok { border-color: var(--brand); color: var(--text-primary); }
.report-status.is-error { border-color: var(--text-bright); color: var(--text-bright); font-weight: 500; }

/* ── help ──────────────────────────────────────────────────────────────────── */

.help-groups { display: grid; gap: var(--space-4); margin-top: var(--space-3); }
@media (min-width: 52rem) {
  .support-help { max-width: var(--page); }
  .help-groups { grid-template-columns: 1fr 1fr; }
}
.help-group-title { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 var(--space-1); }
.help-list { list-style: none; margin: 0; padding: 0; }
.help-list li + li { border-top: 1px solid var(--border); }
.help-link {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0;
  text-decoration: none;
  min-height: 2.75rem;
}
.help-link-title { color: var(--link); font-weight: 600; }
.help-link:hover .help-link-title { text-decoration: underline; }
.help-link-summary { color: var(--text-secondary); font-size: 0.9rem; }
.help-link:focus-visible { outline: 2px solid var(--border-bright); outline-offset: 2px; border-radius: var(--radius-sm); }
.support-contact { margin-top: var(--space-4); color: var(--text-secondary); }

/* generated by engine/icons.mjs: @dboio/launchpad-icons@5.3.0, 28 glyph(s) used */
@font-face{font-family:"launchpad-icons";src:url("/_site/icons/launchpad-icons-regular.woff2?v=47e0dc5") format("woff2");font-display:block}
.icon::before{font-family:"launchpad-icons";font-style:normal;font-weight:normal;line-height:1;speak:never;-webkit-font-smoothing:antialiased}
.icon--app::before{content:"\e81e"}
.icon--brand-cloudflare::before{content:"\ed60"}
.icon--bubble::before{content:"\e8a4"}
.icon--cube::before{content:"\e89b"}
.icon--data::before{content:"\e85c"}
.icon--document::before{content:"\e895"}
.icon--document-list::before{content:"\e98b"}
.icon--frame::before{content:"\e933"}
.icon--globe::before{content:"\e815"}
.icon--grid::before{content:"\e88e"}
.icon--image::before{content:"\e811"}
.icon--keyboard::before{content:"\ed73"}
.icon--laptop::before{content:"\ed3b"}
.icon--lock::before{content:"\e840"}
.icon--login::before{content:"\e82f"}
.icon--moon::before{content:"\ed4c"}
.icon--palette::before{content:"\ed3e"}
.icon--person::before{content:"\e89a"}
.icon--phone::before{content:"\ed40"}
.icon--report-bug::before{content:"\ed4a"}
.icon--search::before{content:"\e821"}
.icon--shield::before{content:"\e9cc"}
.icon--shield-lock::before{content:"\ed43"}
.icon--stack::before{content:"\e81b"}
.icon--sun::before{content:"\ed4b"}
.icon--synchronize::before{content:"\e8b8"}
.icon--tag::before{content:"\e9cd"}
.icon--text-size::before{content:"\ed77"}