/* ═══════════════════════════════════════════════════════════════════════════
   Privateer site.css - the shared design system for the static marketing pages
   (overview, cli, desktop, extension, harbor, pricing, api-pricing, models,
   fund, support, security, privacy, terms). Linked as /site.css; unhashed, so
   render.yaml serves it no-cache.

   A page owns only what is unique to it (in its own <style>); everything a
   second page could want lives here. Page styles must read these tokens rather
   than restating colours, so one edit here re-skins the whole site.

   KIT (class → what it is)
     .wrap                     centred column (--wrap wide)
     .site-nav                 sticky top bar: .nav-brand, .nav-links, burger
     .hero [.compact]          page opener: .eyebrow, h1, .tagline, .lede,
                               .cta-row, .cta-alt, .hero-facts
     .section [.tight]         vertical band; .section-head [.left] inside it
     .chapter                  numbered chapter divider (overview)
     .split [.rev]             copy beside a visual
     .grid .cols-2/3/4         card grids;  .card [.link] [.glow]
     .bento + .tile            the feature map (.w2 = two columns wide)
     .chips + .chip            token rows;  .row-label above them
     .checks                   evidence list (sentences, left-aligned)
     .note [.seal|.warn]       a disclosure or caveat, always visible
     .term                     terminal mock;  pre.code / code  literal text
     .session                  agent conversation mock
     .frame / .phone           screenshot frames
     .table-wrap + table.tbl   data tables
     .steps                    numbered procedure
     .faq                      <details> accordion
     .cta-band                 closing call to action
     .site-footer              columned footer
     .tag, .pill-flag          small status labels
     .reveal                   scroll-in (CSS only, motion-safe)
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Dark-only site. The meta tag in each <head> declares it at parse time, this
     property at style time; some engines only honour one of the two. It also
     renders form controls, scrollbars and the tap highlight dark. */
  color-scheme: dark;

  /* Hull: the navy the whole site sits on. */
  --bg-0: #050A15;
  --bg-1: #07101F;
  --bg-2: #0B1932;
  --bg-3: #071322;

  /* Surfaces. Blue-tinted glass rather than grey, so a card reads as part of
     the water it floats on. */
  --panel:    rgba(140, 172, 232, 0.055);
  --panel-2:  rgba(140, 172, 232, 0.095);
  --panel-solid: #0C1730;
  --line:     rgba(160, 190, 240, 0.13);
  --line-2:   rgba(160, 190, 240, 0.26);

  /* Type. Four steps, all measured against --bg-1: 15.9, 9.6, 5.9, 3.4 : 1. */
  --text:   #EEF3FB;
  --text-2: rgba(224, 233, 248, 0.76);
  --text-3: rgba(208, 221, 244, 0.56);
  --text-4: rgba(208, 221, 244, 0.36);

  /* Signal colours. Sky is the link and focus colour; brass is the chart
     furniture (eyebrows, numerals, rules); seal marks anything verified. */
  --sky:    #7DD3FC;
  --azure:  #6C9BFF;
  --indigo: #5B5BF0;
  --brass:  #E7C27A;
  --seal:   #5EEAD4;
  --warn:   #FBBF77;
  --danger: #F87171;

  --grad-accent: linear-gradient(100deg, #7DD3FC, #6C9BFF 52%, #8B7CFF);
  --grad-rule:   linear-gradient(90deg, #E7C27A, rgba(231, 194, 122, 0));

  /* Primary actions are WHITE on the navy; the gradient is chrome, never an
     action. Keep the two apart. */
  --cta-bg: #FFFFFF;
  --cta-fg: #08142B;

  --radius:    20px;
  --radius-sm: 12px;
  --wrap:      1160px;
  --nav-h:     64px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 18px 40px -22px rgba(0, 6, 20, 0.9);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 40px 90px -40px rgba(0, 6, 20, 0.95);

  /* Legacy names, kept so page-level CSS written against the old palette
     (--text-strong, --card-bg, …) lands on the new one without a rewrite. */
  --text-strong: var(--text);
  --text-mid:    var(--text-2);
  --text-dim:    var(--text-3);
  --text-faint:  var(--text-4);
  --card-bg:     var(--panel);
  --card-border: var(--line);
  --divider:     var(--line);
  --input-bg:    rgba(140, 172, 232, 0.07);
  --violet:      #5F86C9;
  --cyan:        #6C9BFF;
  --grad-cta:    linear-gradient(90deg, #4F7BD0, #5B5BF0, #6C9BFF);
}
/* The last piece of the dark declaration. Both branches are identical on
   purpose: a mobile browser's dark mode (Samsung Internet's above all) asks
   "does this page answer for itself?", and an authored prefers-color-scheme
   rule is the answer it looks for. Delete these and it recolours the page. */
@media (prefers-color-scheme: dark)  { :root { color-scheme: dark; } }
@media (prefers-color-scheme: light) { :root { color-scheme: dark; } }

/* ── Base ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg-3);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  /* The page must never pan sideways. `clip` is what holds: `hidden` on body
     alone propagates to the viewport and stays a scroll container, so
     decorative bleed still widened the document and phones panned to it.
     Declared on BOTH boxes; overflow-y stays visible so the page scrolls. */
  overflow-x: hidden;
  overflow-x: clip;
  overflow-y: visible;
  /* Samsung Internet applies the system font scale to web text and Chromium on
     Android boosts it; both inflate type without touching its boxes. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* A long unbroken token (a path, a slash-joined list, a URL) breaks rather
     than running out of its card on a narrow phone. */
  overflow-wrap: break-word;
  overflow-x: hidden;
  overflow-x: clip;
  overflow-y: visible;
}
/* Backdrop, in two fixed layers that need no markup. Sized to the LARGE
   viewport so a collapsing URL bar never exposes the bare canvas, and promoted
   to their own compositor layers so scrolling re-offsets them instead of
   re-rasterising a viewport of gradients on every frame (a mid-range Android
   loses that race and draws a hard seam). Far stops are the same colour at
   zero alpha, never `transparent`, which rings every orb with grey where the
   engine does not interpolate premultiplied. */
body::before, body::after {
  content: ""; position: fixed; top: 0; left: 0; right: 0; z-index: -1;
  height: 100vh; height: 100lvh;
  pointer-events: none;
  transform: translateZ(0); backface-visibility: hidden; will-change: transform;
}
body::before {
  background:
    radial-gradient(900px 560px at 12% -4%, rgba(84, 128, 214, 0.30), rgba(84, 128, 214, 0) 66%),
    radial-gradient(820px 520px at 96% 14%, rgba(91, 91, 240, 0.20), rgba(91, 91, 240, 0) 68%),
    radial-gradient(900px 600px at 50% 104%, rgba(64, 120, 200, 0.16), rgba(64, 120, 200, 0) 70%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2) 46%, var(--bg-3));
}
/* The chart grid: a fine lattice under a coarse one, fading out down the
   viewport so body copy never sits on ruled paper. */
body::after {
  background-image:
    linear-gradient(rgba(170, 200, 250, 0.045) 1px, rgba(170, 200, 250, 0) 1px),
    linear-gradient(90deg, rgba(170, 200, 250, 0.045) 1px, rgba(170, 200, 250, 0) 1px),
    linear-gradient(rgba(170, 200, 250, 0.03) 1px, rgba(170, 200, 250, 0) 1px),
    linear-gradient(90deg, rgba(170, 200, 250, 0.03) 1px, rgba(170, 200, 250, 0) 1px);
  background-size: 128px 128px, 128px 128px, 32px 32px, 32px 32px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(120% 78% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.5) 46%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(120% 78% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.5) 46%, rgba(0, 0, 0, 0) 100%);
}
@media (forced-colors: active) {
  body::before, body::after, .bg-video, .hero-rose { display: none; }
}

a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, button:focus-visible, label:focus-visible, input:focus-visible {
  outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
strong, b { color: var(--text); font-weight: 650; }
hr { border: 0; height: 1px; background: var(--line); margin: 48px 0; }
::selection { background: rgba(125, 211, 252, 0.28); color: #fff; }

h1, h2, h3, h4 { margin: 0; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(38px, 6.4vw, 76px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
h2 { font-size: clamp(28px, 3.9vw, 46px); font-weight: 780; letter-spacing: -0.032em; line-height: 1.08; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
p  { margin: 0 0 1em; color: var(--text-2); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
.grad {
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
@media (forced-colors: active) { .grad { -webkit-text-fill-color: currentColor; color: inherit; background: none; } }

code, kbd, samp { font-family: var(--mono); font-size: 0.88em; }
:not(pre) > code {
  padding: 0.14em 0.42em; border-radius: 6px;
  background: rgba(140, 172, 232, 0.12); border: 1px solid var(--line);
  color: #D7E6FF; overflow-wrap: anywhere;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; position: relative; }
.wrap.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--text-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Labels ───────────────────────────────────────────────────────────────── */
/* Eyebrow: chart lettering. Mono caps in brass, with a short rule that reads
   as a bearing line rather than a bullet. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow.plain::before { display: none; }
.row-label {
  margin: 30px 0 12px; font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
}
.row-label:first-child { margin-top: 0; }
.tag, .pill-flag {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sky); background: rgba(125, 211, 252, 0.11); border: 1px solid rgba(125, 211, 252, 0.26);
  vertical-align: middle; white-space: nowrap;
}
.tag.brass  { color: var(--brass); background: rgba(231, 194, 122, 0.1); border-color: rgba(231, 194, 122, 0.3); }
.tag.seal   { color: var(--seal);  background: rgba(94, 234, 212, 0.09); border-color: rgba(94, 234, 212, 0.28); }
.tag.quiet  { color: var(--text-3); background: rgba(140, 172, 232, 0.08); border-color: var(--line); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border: 0; border-radius: 14px; cursor: pointer;
  font: inherit; font-size: 15.5px; font-weight: 700; letter-spacing: -0.005em; line-height: 1.2;
  color: var(--cta-fg); background: var(--cta-bg); white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 12px 30px -10px rgba(120, 170, 255, 0.45), 0 10px 26px rgba(2, 8, 22, 0.5);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}
/* A white button has no headroom for a brightness lift; the hover is the
   shadow and a one-pixel rise. */
.btn:hover {
  text-decoration: none; transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 18px 40px -10px rgba(120, 170, 255, 0.6), 0 14px 32px rgba(2, 8, 22, 0.6);
}
.btn:active { transform: translateY(0); }
.btn.ghost {
  color: var(--text); background: rgba(140, 172, 232, 0.07);
  box-shadow: inset 0 0 0 1px var(--line-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn.ghost:hover { background: rgba(140, 172, 232, 0.14); box-shadow: inset 0 0 0 1px rgba(190, 214, 255, 0.5); }
.btn.small { padding: 9px 16px; font-size: 14px; border-radius: 11px; }
.btn.large { padding: 17px 32px; font-size: 16.5px; border-radius: 16px; }
.btn svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.btn svg.stroke, .btn.ghost.dl svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.gplay svg, .btn.appstore svg { stroke: none; }
.btn.appstore svg { fill: currentColor; }
/* A text link that points somewhere: the arrow travels on hover. */
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 15px; }
.more::after { content: "→"; transition: transform 0.16s ease; }
.more:hover { text-decoration: none; }
.more:hover::after { transform: translateX(3px); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center .cta-row, .cta-row.center { justify-content: center; }

/* ── Top bar ──────────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 13, 27, 0.72);
  -webkit-backdrop-filter: saturate(150%) blur(16px); backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid rgba(160, 190, 240, 0.1);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--nav-h); }
.nav-brand {
  display: inline-flex; align-items: center; gap: 10px; flex: none; min-width: 0;
  font-size: 18px; font-weight: 800; letter-spacing: -0.03em; color: #fff;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand img { width: 28px; height: 28px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; font-size: 14.5px; }
.nav-links a:not(.btn) {
  padding: 8px 11px; border-radius: 9px; color: var(--text-2); font-weight: 550;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-links a:not(.btn):hover { color: #fff; background: rgba(140, 172, 232, 0.1); text-decoration: none; }
.nav-links a[aria-current="page"] { color: #fff; background: rgba(140, 172, 232, 0.12); }
.nav-links a.btn { margin-left: 10px; flex: none; }
/* CSS-only mobile menu (checkbox hack), so the bar works with scripting off.
   The input stays rendered-but-invisible so keyboard toggling still works. */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger, .nav-scrim { display: none; }

@media (max-width: 1020px) {
  .nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px; margin-right: -11px; border-radius: 10px; cursor: pointer;
  }
  .nav-burger i { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-toggle:checked ~ .nav-burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger i:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle:focus-visible ~ .nav-burger { outline: 2px solid var(--sky); outline-offset: 2px; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 2;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 18px; font-size: 16px;
    background: rgba(6, 13, 27, 0.97); border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--nav-h)); max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
  }
  .nav-links a:not(.btn) { padding: 13px 12px; }
  .nav-links a.btn { margin: 10px 0 0; padding: 14px 18px; font-size: 15.5px; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-scrim { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 1; background: rgba(2, 6, 14, 0.6); }
  .nav-toggle:checked ~ .nav-scrim { display: block; }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 92px 0 72px; text-align: center; }
.hero.compact { padding: 76px 0 48px; }
.hero.left { text-align: left; }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 { max-width: 15ch; margin: 0 auto; }
.hero.left h1 { margin-left: 0; }
.hero.compact h1 { font-size: clamp(34px, 5.2vw, 60px); max-width: 20ch; }
.hero .tagline {
  margin: 22px auto 0; max-width: 34ch;
  font-size: clamp(19px, 2.3vw, 25px); line-height: 1.35; letter-spacing: -0.015em; color: var(--text); font-weight: 500;
}
.hero .lede { margin: 18px auto 0; max-width: 64ch; font-size: 17px; line-height: 1.65; color: var(--text-2); }
.hero.left .tagline, .hero.left .lede { margin-left: 0; }
.hero .cta-row { margin-top: 34px; justify-content: center; }
.hero.left .cta-row { justify-content: flex-start; }
.hero .logo { display: block; width: 64px; height: 64px; margin: 0 auto 22px; filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.5)); }
.cta-alt { margin: 16px 0 0; font-size: 13.5px; color: var(--text-3); }
.cta-alt a { color: var(--text-2); margin-left: 12px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.cta-alt a:hover { color: #fff; text-decoration-color: var(--sky); }
/* A row of plain facts under the hero. Not buttons: no hover, no cursor. */
.hero-facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 56px auto 0; padding: 0; list-style: none;
  max-width: 920px; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(8, 17, 34, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero-facts li { padding: 20px 14px; text-align: center; border-left: 1px solid var(--line); }
.hero-facts li:first-child { border-left: 0; }
.hero-facts b { display: block; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.hero-facts span { display: block; margin-top: 5px; font-size: 12.5px; color: var(--text-3); line-height: 1.35; }
@media (max-width: 700px) {
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-facts li:nth-child(odd) { border-left: 0; }
  .hero-facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Hero film (overview). A slow generated loop over a still plate, scoped to
   the top of the DOCUMENT so it scrolls away with the hero. It paints after
   body::before and before body::after by tree order (all three are z-index
   -1), which is the whole trick: the gradient stays the backstop underneath
   and the chart grid stays on top. The plate is a CSS background, not the
   poster attribute, because a source-less <video> draws nothing reliable.
   Hidden until script has watched the plate decode. */
.bg-video {
  position: absolute; top: 0; left: 0; right: 0; z-index: -1;
  height: 100vh; height: 100lvh; max-height: 1100px;
  overflow: hidden; pointer-events: none;
  opacity: 0; transition: opacity 1.4s ease;
  background: url('/bg/depth-plate.jpg') center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 70%, rgba(0, 0, 0, 0) 100%);
}
body.bg-plate-on .bg-video { opacity: 1; }
.bg-video video {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: brightness(0.86) saturate(1.05);
  opacity: 0; transition: opacity 0.6s ease;
}
body.bg-film-on .bg-video video { opacity: 1; }
/* Scrim: an ellipse where the type lands, a wash behind the bar. Zero-alpha
   navy, never `transparent`, and it matters more over a moving image. */
.bg-video::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(74% 56% at 50% 40%, rgba(6, 13, 27, 0.74), rgba(6, 13, 27, 0) 74%),
    linear-gradient(180deg, rgba(6, 13, 27, 0.5) 0%, rgba(6, 13, 27, 0.08) 30%, rgba(7, 19, 34, 0.1) 100%);
}

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { position: relative; padding: 104px 0; }
.section.tight { padding: 64px 0; }
.section + .section.flush { padding-top: 0; }
.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head .sub, .sub { margin: 18px 0 0; font-size: 17.5px; line-height: 1.65; color: var(--text-2); }
.section-head.left .sub { max-width: 62ch; }
/* A band that sits on its own slab, to separate one kind of content from the
   next without a rule. */
.band {
  background: linear-gradient(180deg, rgba(10, 22, 44, 0.72), rgba(7, 15, 30, 0.72));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

/* Chapter divider: the page's table of contents made visible. */
.chapter { padding: 96px 0 0; }
.chapter-head {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 26px; align-items: end;
  padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.chapter-num {
  grid-row: span 2; align-self: start;
  font-family: var(--mono); font-size: clamp(44px, 6vw, 76px); font-weight: 500; line-height: 0.9; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(231, 194, 122, 0.6);
}
@supports not (-webkit-text-stroke: 1px #000) { .chapter-num { color: rgba(231, 194, 122, 0.6); } }
.chapter-head .eyebrow { margin: 0 0 4px; }
.chapter-head h2 { font-size: clamp(30px, 4.4vw, 54px); }
.chapter-head .sub { grid-column: 2; margin-top: 10px; max-width: 64ch; }
@media (max-width: 640px) {
  .chapter-head { grid-template-columns: 1fr; }
  .chapter-num { grid-row: auto; }
  .chapter-head .sub { grid-column: 1; }
}

/* Copy beside a visual. The copy column is the narrower one; .rev flips the
   order on wide screens only (the copy always leads on a phone). */
.split { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 64px; align-items: center; }
.split.top { align-items: start; }
.split.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Write the copy FIRST in the markup, always. .rev sends it to the right on
   wide screens (and mirrors the column widths so the copy stays the narrower
   one); on a phone the order rule is dropped and the copy leads. */
@media (min-width: 901px) { .split.rev:not(.even) { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); } }
.split.rev > :first-child { order: 2; }
.split h2 { font-size: clamp(27px, 3.3vw, 40px); }
/* .h2 on an h3: a feature heading under a chapter, sized like a section title. */
h3.h2, .split h3.h2 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 780; letter-spacing: -0.03em; line-height: 1.12; }
.split .sub { font-size: 17px; }
.feature { padding: 72px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .split, .split.even { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .split.rev > :first-child { order: 0; }
  .feature { padding: 56px 0; }
}

/* ── Cards & grids ────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  position: relative; padding: 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); box-shadow: var(--shadow-1);
  text-align: left; min-width: 0;
}
.card h3 { margin: 0 0 8px; }
.card p { font-size: 15px; line-height: 1.6; color: var(--text-2); }
.card .icon, .tile .icon {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 12px;
  color: var(--sky); background: rgba(125, 211, 252, 0.1); border: 1px solid rgba(125, 211, 252, 0.22);
}
.card .icon svg, .tile .icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card.brass .icon, .tile.brass .icon { color: var(--brass); background: rgba(231, 194, 122, 0.09); border-color: rgba(231, 194, 122, 0.26); }
.card.seal .icon,  .tile.seal .icon  { color: var(--seal);  background: rgba(94, 234, 212, 0.08); border-color: rgba(94, 234, 212, 0.26); }
a.card, .card.link { color: inherit; transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease; }
a.card:hover, .card.link:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--line-2); }
/* A label inside a card keeps its own size (.card p would otherwise win). */
.card .row-label, .tile .row-label { font-size: 11.5px; line-height: 1.6; color: var(--text-3); }
.card .eyebrow, .tile .eyebrow, .steps .eyebrow, .faq .eyebrow { font-size: 12px; line-height: 1.6; color: var(--brass); }
/* The one card in a set that should be read first. */
.card.glow {
  border-color: rgba(125, 211, 252, 0.4);
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.12), rgba(108, 155, 255, 0.05));
  box-shadow: var(--shadow-1), 0 0 0 1px rgba(125, 211, 252, 0.1), 0 30px 80px -40px rgba(108, 155, 255, 0.6);
}

/* Bento: the feature map. Six columns so a tile can be a third, a half or two
   thirds; on a phone it is one column and the spans stop mattering. */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile {
  grid-column: span 2; position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: 24px; border-radius: var(--radius); color: inherit; text-align: left;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.tile.w3 { grid-column: span 3; }
.tile.w4 { grid-column: span 4; }
.tile.w6 { grid-column: span 6; }
a.tile:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--line-2); }
.tile h3 { margin: 0 0 6px; font-size: 18px; }
.tile p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.tile .where { margin-top: auto; padding-top: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.tile .tag { position: absolute; top: 22px; right: 22px; }
/* A soft corner light, coloured per tile family. */
.tile::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(108, 155, 255, 0.2), rgba(108, 155, 255, 0) 68%);
}
.tile.brass::after { background: radial-gradient(circle, rgba(231, 194, 122, 0.16), rgba(231, 194, 122, 0) 68%); }
.tile.seal::after  { background: radial-gradient(circle, rgba(94, 234, 212, 0.16), rgba(94, 234, 212, 0) 68%); }
.tile > * { position: relative; z-index: 1; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile, .tile.w3, .tile.w4 { grid-column: span 1; } .tile.w6 { grid-column: span 2; } }
@media (max-width: 600px) { .bento { grid-template-columns: minmax(0, 1fr); } .tile, .tile.w3, .tile.w4, .tile.w6 { grid-column: span 1; } }
/* .bento.map: on a phone the feature map becomes a compact two-up index of
   names, because eighteen full tiles in one column is a page of its own. */
@media (max-width: 600px) {
  .bento.map { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bento.map .tile { padding: 14px; border-radius: 16px; }
  .bento.map .tile.w6 { grid-column: span 2; }
  .bento.map .tile p, .bento.map .tile .where { display: none; }
  .bento.map .tile .icon { width: 34px; height: 34px; margin-bottom: 10px; border-radius: 10px; }
  .bento.map .tile h3 { margin: 0; font-size: 14.5px; line-height: 1.25; }
  .bento.map .tile .tag { top: 12px; right: 12px; font-size: 9px; padding: 1px 6px; }
  .bento.map .tile::after { display: none; }
}

/* ── Chips ────────────────────────────────────────────────────────────────── */
/* Tokens: a model name, a format, a capability in two or three words. A
   sentence is not a chip; sentences go in .checks. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.center .chips, .chips.center { justify-content: center; }
.chip, .m-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; line-height: 1.25; color: var(--text);
  background: rgba(140, 172, 232, 0.08); border: 1px solid var(--line);
}
.chip img, .chip svg, .m-chip img, .m-chip svg { width: 16px; height: 16px; flex: none; border-radius: 4px; }
.chip a, .m-chip a { color: var(--sky); }

/* Evidence lines. They are sentences, so they are a list with one shared left
   edge, and the marker is drawn in CSS so the copy stays untouched. */
.checks { display: grid; gap: 11px; margin: 24px 0 0; padding: 0; list-style: none; text-align: left; }
.checks li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(125, 211, 252, 0.13); border: 1px solid rgba(125, 211, 252, 0.34);
}
.checks li::after {
  content: ""; position: absolute; left: 6px; top: 8px; width: 6px; height: 3.5px;
  border-left: 1.6px solid var(--sky); border-bottom: 1.6px solid var(--sky); transform: rotate(-45deg);
}
.checks.seal li::before { background: rgba(94, 234, 212, 0.11); border-color: rgba(94, 234, 212, 0.36); }
.checks.seal li::after { border-color: var(--seal); }
.link-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; font-size: 15px; font-weight: 600; }

/* A disclosure, a caveat, a trade stated plainly. Always visible: these are
   the sentences that keep the claims honest, so they are never collapsed. */
.note, .fineprint {
  margin: 22px 0 0; padding: 16px 18px 16px 20px; border-radius: 14px; text-align: left;
  font-size: 14px; line-height: 1.62; color: var(--text-2);
  background: rgba(140, 172, 232, 0.05); border: 1px solid var(--line); border-left: 2px solid var(--brass);
}
.note strong, .fineprint strong { color: var(--text); }
.note.seal { border-left-color: var(--seal); }
.note.warn { border-left-color: var(--warn); background: rgba(251, 191, 119, 0.05); }
.note.plain { border-left-width: 1px; border-left-color: var(--line); }
.note p { font-size: inherit; color: inherit; margin-bottom: 0.7em; }

/* ── Terminal & code ──────────────────────────────────────────────────────── */
.term {
  border-radius: 16px; overflow: hidden; text-align: left;
  background: #050C19; border: 1px solid var(--line-2); box-shadow: var(--shadow-2);
}
.term .chrome { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(140, 172, 232, 0.05); }
.term .chrome i { width: 11px; height: 11px; border-radius: 50%; background: #2A3A57; }
.term .chrome i:nth-child(1) { background: #F87171; }
.term .chrome i:nth-child(2) { background: #FBBF24; }
.term .chrome i:nth-child(3) { background: #34D399; }
.term .chrome span { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.term .body { padding: 18px 20px 20px; font-family: var(--mono); font-size: 13.5px; line-height: 1.85; color: var(--text-2); overflow-x: auto; white-space: nowrap; }
.term .body > div { white-space: pre; }
.term .prompt { color: var(--text); }
.term .prompt::before { content: "$ "; color: var(--sky); }
.term .ln b { color: var(--sky); font-weight: 400; margin-right: 8px; }
.term .cm { color: var(--text-4); }
.term .ok { color: #6EE7B7; }
pre.code {
  margin: 0; padding: 18px 20px; border-radius: 14px; overflow-x: auto; text-align: left;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: #D7E6FF;
  background: #050C19; border: 1px solid var(--line);
}

/* Agent conversation mock: a session header, turns, an approval, a status. */
.session {
  max-width: 520px; margin: 0 auto; border-radius: 18px; overflow: hidden; text-align: left;
  background: rgba(6, 13, 27, 0.86); border: 1px solid var(--line-2); box-shadow: var(--shadow-2);
}
.session .head {
  display: flex; align-items: center; gap: 9px; padding: 13px 16px; font-size: 13.5px; font-weight: 650;
  border-bottom: 1px solid var(--line); background: rgba(140, 172, 232, 0.05);
}
.session .head .dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18); }
.session .head .muted, .session .head .vname { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 12.5px; color: var(--text-3); }
.session svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.session .body { display: flex; flex-direction: column; gap: 11px; padding: 16px; }
.session .msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.session .msg.you { align-self: flex-end; color: #fff; background: linear-gradient(120deg, #3F6AC2, #5B5BF0); border-bottom-right-radius: 5px; }
.session .msg.ag { align-self: flex-start; color: var(--text-2); background: rgba(140, 172, 232, 0.1); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.session .said { display: inline-flex; align-items: center; gap: 7px; }
.session .approve { padding: 13px; border-radius: 14px; background: rgba(231, 194, 122, 0.06); border: 1px solid rgba(231, 194, 122, 0.3); }
.session .approve .q { font-size: 13.5px; font-weight: 650; margin-bottom: 8px; }
.session .approve .cmd { font-family: var(--mono); font-size: 12.5px; color: var(--sky); margin-bottom: 11px; }
.session .approve .btns { display: flex; gap: 8px; }
.session .pill { padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.session .pill.allow { color: #04201A; background: #5EEAD4; }
.session .pill.deny { color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.session .ok { color: #6EE7B7; font-weight: 650; }
.session .status, .session .vstate { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); }
.session .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
.session .vhint { margin: 0; font-size: 12px; color: var(--text-4); }
.session .wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 34px; }
.session .wave i { width: 3px; border-radius: 3px; background: var(--grad-accent); height: 30%; }
.session .wave i:nth-child(2), .session .wave i:nth-child(8) { height: 55%; }
.session .wave i:nth-child(3), .session .wave i:nth-child(7) { height: 80%; }
.session .wave i:nth-child(4), .session .wave i:nth-child(6) { height: 62%; }
.session .wave i:nth-child(5) { height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .session .pulse { animation: site-pulse 1.6s ease-in-out infinite; }
  .session .wave i { animation: site-wave 1.3s ease-in-out infinite; transform-origin: center; }
  .session .wave i:nth-child(2n) { animation-delay: -0.4s; }
  .session .wave i:nth-child(3n) { animation-delay: -0.8s; }
}
@keyframes site-pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes site-wave { 0%, 100% { transform: scaleY(0.55); } 50% { transform: scaleY(1); } }

/* ── Screenshot frames ────────────────────────────────────────────────────── */
/* A browser window around a product shot. The image sets the height; the
   frame only adds the bar and the edge. */
.frame {
  position: relative; border-radius: 16px; overflow: hidden;
  background: #060D1B; border: 1px solid var(--line-2); box-shadow: var(--shadow-2);
}
.frame .bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: rgba(140, 172, 232, 0.06); border-bottom: 1px solid var(--line); }
.frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A3A57; }
.frame .bar span {
  margin: 0 auto; padding: 3px 14px; border-radius: 999px; font-size: 11.5px; color: var(--text-3);
  background: rgba(140, 172, 232, 0.08); transform: translateX(-17px);
}
.frame img { display: block; width: 100%; height: auto; }
.frame.plain { border-radius: var(--radius); }
/* A handset. Used alone, or overlapping the corner of a .frame inside .shot. */
.phone {
  position: relative; width: 100%; max-width: 250px; padding: 7px; border-radius: 34px;
  background: #0A1426; border: 1px solid var(--line-2); box-shadow: var(--shadow-2);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 27px; }
.phone::before {
  content: ""; position: absolute; top: 15px; left: 50%; width: 30%; height: 15px; transform: translateX(-50%);
  border-radius: 999px; background: #03070F; z-index: 1;
}
.shot { position: relative; padding: 0 0 6% 0; }
.shot .phone { position: absolute; right: -3%; bottom: 0; width: 25%; max-width: none; padding: 1.1%; border-radius: 13% / 6.2%; }
.shot .phone img { border-radius: 11% / 5.2%; }
.shot .phone::before { top: 2.6%; height: 2.2%; }
.shot .frame { margin-right: 9%; }
/* Light behind a visual, so it lifts off the page instead of sitting on it. */
.halo { position: relative; isolation: isolate; }
.halo::before {
  content: ""; position: absolute; inset: -12% -8%; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 45%, rgba(108, 155, 255, 0.26), rgba(108, 155, 255, 0) 70%);
}
@media (max-width: 600px) { .shot .phone { right: 0; } .shot .frame { margin-right: 6%; } }

/* ── Tables ───────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(8, 17, 34, 0.6); -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; text-align: left; }
.tbl th, .tbl td { padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th {
  position: sticky; top: 0; font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); background: #0A1629; white-space: nowrap;
}
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: rgba(140, 172, 232, 0.05); }
.tbl td { color: var(--text-2); }
.tbl td:first-child, .tbl th[scope="row"] { color: var(--text); font-weight: 600; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── Steps ────────────────────────────────────────────────────────────────── */
.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: step; text-align: left; }
.steps > li {
  position: relative; padding: 20px 22px 20px 70px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  counter-increment: step;
}
.steps > li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 22px; top: 20px;
  font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--brass);
}
.steps h3 { margin: 0 0 4px; font-size: 17px; }
.steps p { font-size: 15px; }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; text-align: left; }
.faq.cols-2 { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; align-items: start; }
.faq details {
  border-radius: 16px; border: 1px solid var(--line); background: rgba(140, 172, 232, 0.045);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.faq details[open] { border-color: var(--line-2); background: rgba(140, 172, 232, 0.08); }
.faq summary {
  position: relative; display: block; padding: 17px 52px 17px 20px; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 650; line-height: 1.4; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 1.8px solid var(--text-3); border-bottom: 1.8px solid var(--text-3);
  transform: rotate(45deg); transition: transform 0.18s ease, margin 0.18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: #fff; }
.faq details > p, .faq details > div, .faq details > ul { margin: 0; padding: 0 20px 18px; font-size: 15px; line-height: 1.68; color: var(--text-2); }
.faq details > ul { padding-left: 40px; }
/* Two independent stacks side by side, so opening an answer in one column
   never pushes the other column's questions around. */
.faq-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; align-items: start; }
.faq-cols > .faq { max-width: none; margin: 0; }
@media (max-width: 860px) { .faq-cols { grid-template-columns: minmax(0, 1fr); } }
.faq-group { margin: 44px 0 14px; }
.faq-group:first-child { margin-top: 0; }
@media (max-width: 860px) { .faq.cols-2 { grid-template-columns: minmax(0, 1fr); } }

/* ── Closing band ─────────────────────────────────────────────────────────── */
.cta-band {
  position: relative; margin: 40px 0 0; padding: 72px 28px; border-radius: 28px; text-align: center; overflow: hidden;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(108, 155, 255, 0.3), rgba(108, 155, 255, 0) 70%),
    linear-gradient(180deg, rgba(14, 30, 60, 0.9), rgba(8, 17, 34, 0.9));
  border: 1px solid var(--line-2); box-shadow: var(--shadow-2);
}
.cta-band h2 { max-width: 18ch; margin: 0 auto; }
.cta-band p:not(.eyebrow) { margin: 16px auto 0; max-width: 52ch; font-size: 17px; color: var(--text-2); }
.cta-band .cta-row { margin-top: 30px; justify-content: center; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer { margin-top: 110px; padding: 56px 0 44px; border-top: 1px solid var(--line); background: rgba(5, 10, 21, 0.6); font-size: 14.5px; color: var(--text-3); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 36px 28px; }
.foot-brand .nav-brand { font-size: 19px; }
.foot-brand p { margin: 14px 0 0; max-width: 30ch; font-size: 14.5px; color: var(--text-3); }
.foot-col h4 { margin: 4px 0 14px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.foot-col a { display: block; padding: 5px 0; color: var(--text-2); }
.foot-col a:hover { color: #fff; text-decoration: none; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; }
.foot-base a { color: var(--text-3); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* ── Long-form documents (privacy, terms, security, support) ──────────────── */
.prose { max-width: 760px; margin: 0 auto; text-align: left; }
.prose h2 { margin: 54px 0 14px; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; scroll-margin-top: calc(var(--nav-h) + 20px); }
.prose h3 { margin: 30px 0 8px; font-size: 18px; }
.prose p, .prose li { font-size: 16px; line-height: 1.72; color: var(--text-2); }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 22px; }
.prose li { margin: 0 0 6px; }
.prose li::marker { color: var(--brass); }
.prose a { text-decoration: underline; text-decoration-color: rgba(125, 211, 252, 0.4); text-underline-offset: 3px; }
/* Plain tables in a document get a ruled grid; a kit table (.tbl) keeps its
   own styling, so these skip it. */
.prose table:not(.tbl) { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 14.5px; }
.prose table:not(.tbl) th, .prose table:not(.tbl) td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose table:not(.tbl) th { background: rgba(140, 172, 232, 0.08); color: var(--text); }

/* ── Scroll-in ────────────────────────────────────────────────────────────── */
/* CSS only, on a view timeline, so nothing here needs script and nothing is
   ever left invisible: where the timeline is unsupported, or the visitor asks
   for less motion, the rule simply does not apply and the element is shown. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: site-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 32%; }
  }
}
@keyframes site-reveal { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: 0.01ms !important; } }

/* ── Small screens ────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  :root { --nav-h: 58px; }
  .wrap { padding: 0 20px; }
  .hero { padding: 60px 0 48px; }
  .hero.compact { padding: 48px 0 32px; }
  .hero .lede { font-size: 16px; }
  .hero .cta-row .btn { flex: 1 1 100%; }
  .section { padding: 68px 0; }
  .section.tight { padding: 44px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head .sub, .sub { font-size: 16px; }
  .chapter { padding-top: 64px; }
  .card, .tile { padding: 20px; }
  .cta-band { padding: 48px 20px; border-radius: 22px; }
  .cta-band .cta-row .btn { flex: 1 1 100%; }
  .site-footer { margin-top: 72px; }
  .term .body { font-size: 12.5px; padding: 14px 15px 16px; }
  .tbl th, .tbl td { padding: 11px 13px; }
}
@media print {
  body::before, body::after, .site-nav, .bg-video { display: none; }
  body { color: #000; }
}
