/* BIOS website - built on the Helion OS / BIOS design tokens.
   Grayscale is the default. #4B7BFF is the only interactive color.
   The warm light in the hero and the horizon glow in the footer are the
   two places color is allowed to be decorative. */

/* Audit F-perf-21: Geist is self-hosted (Latin subset, WOFF2, OFL -- see
   assets/fonts/LICENSE-Geist-OFL.txt); no third-party font request. 700 maps
   to SemiBold, the heaviest face the site ships. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/Geist-Light.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/Geist-Regular.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/Geist-Medium.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/Geist-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/Geist-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/GeistMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "Rajdhani"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/Rajdhani-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/GeistMono-Medium.woff2") format("woff2"); }

:root {
  --bg: #050508;
  --fg: #ececec;
  --primary: #4B7BFF;
  --primary-hover: #5A87FF;
  --primary-tint-10: rgba(75, 123, 255, 0.10);
  --primary-tint-20: rgba(75, 123, 255, 0.20);
  --aurora-1: 160, 90, 255;   /* dusk orb, from the app's AuroraBackground */
  --aurora-2: 80, 40, 180;    /* late-night orb */
  --focus-ring: 0 0 0 2px rgba(75, 123, 255, 0.55);

  --ink-1: rgba(255, 255, 255, 0.95);
  --ink-2: rgba(255, 255, 255, 0.90);
  --ink-3: rgba(255, 255, 255, 0.70);
  --ink-4: rgba(255, 255, 255, 0.50);
  --ink-5: rgba(255, 255, 255, 0.40);
  --ink-6: rgba(255, 255, 255, 0.30);
  --ink-7: rgba(255, 255, 255, 0.25);

  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.14);
  --surface-1: rgba(255, 255, 255, 0.02);
  --surface-2: rgba(255, 255, 255, 0.03);
  --surface-4: rgba(255, 255, 255, 0.06);
  --card: #141418;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-display: var(--font-sans);

  --radius: 12px;
  --radius-xl: 17px;
  --radius-2xl: 22px;
  --radius-pill: 999px;

  --dur-fast: 150ms;
  --dur-base: 200ms;
  --dur-slow: 400ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --gutter: clamp(20px, 4vw, 64px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--primary-tint-20); color: #fff; }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius); }

/* ---------- type roles ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-5);
}
.eyebrow::before { content: "[ "; color: var(--ink-7); }
.eyebrow::after  { content: " ]"; color: var(--ink-7); }
.eyebrow.plain::before, .eyebrow.plain::after { content: none; }

.h2 {
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  margin: 0;
}
.lede { font-size: 15px; line-height: 1.6; color: var(--ink-3); margin: 0; }
.tiny { font-size: 13px; color: var(--ink-4); }
.mono { font-family: var(--font-mono); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.btn:hover { background: var(--surface-4); border-color: rgba(255,255,255,0.22); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--fg); color: #0a0a0c; border-color: var(--fg); }
.btn.primary:hover { background: #fff; }
.btn.blue { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.blue:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn .arrow { transition: transform var(--dur-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--border-soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split > .right { max-width: 420px; justify-self: end; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 20px; } .split > .right { justify-self: start; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 60px;
  display: flex; align-items: center;
  transition: background-color var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(5,5,8,0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom-color: var(--border-soft); }
.nav .wrap { display: flex; align-items: center; gap: 28px; width: 100%; }
.brand { display: inline-flex; align-items: center; color: var(--ink-1); font-family: "Rajdhani", var(--font-sans), sans-serif; font-weight: 600; letter-spacing: 0.08em; font-size: 20px; line-height: 1; }
.nav-links { display: flex; gap: 22px; margin-left: 18px; }
.nav-links a {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-5); transition: color var(--dur-fast) var(--ease);
}
.nav-links a:hover { color: var(--ink-1); }
.nav .spacer { flex: 1; }
@media (max-width: 760px) {
  .nav { height: auto; min-height: 60px; }
  .nav .wrap { gap: 8px 12px; flex-wrap: nowrap; }
  .nav-links { display: flex; gap: 12px; margin-left: 0; min-width: 0; }
  .nav-links a { display: none; }
  .nav-links a.nav-phone,
  .nav-links:not(:has(.nav-phone)) a:first-child,
  .nav-links:not(:has(.nav-phone)) a:last-child {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .nav .btn {
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 34px;
    padding: 8px 12px;
    line-height: 1.2;
    text-align: center;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 120px; padding-bottom: 56px;
  overflow: hidden;
  isolation: isolate;
}
.hero .wrap { width: 100%; }
@media (max-width: 760px) { .hero { min-height: auto; padding-top: 108px; } }
/* F-taste-9: on a phone the header is one row, the wordmark and the beta
   button; the section links live in the footer. */
@media (max-width: 480px) { .nav-links { display: none; } }
.hero .light {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(30% 70% at 50% -14%, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.30) 22%, rgba(255,255,255,0.10) 46%, rgba(255,255,255,0) 64%),
    radial-gradient(70% 26% at 50% -2%, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 72%),
    radial-gradient(40% 40% at 8% 100%, rgba(var(--aurora-2), 0.28) 0%, rgba(var(--aurora-2), 0) 70%),
    radial-gradient(36% 36% at 96% 92%, rgba(var(--aurora-1), 0.16) 0%, rgba(var(--aurora-1), 0) 70%),
    linear-gradient(180deg, #121216 0%, #08080b 40%, #050508 70%);
}
.hero .grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.35; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.45 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero .eyebrow { display: block; margin-bottom: clamp(8px, 1.5vw, 18px); }
.wordmark {
  /* Decision 121: the one mark is the Rajdhani wordmark, in plain ink. */
  font-family: "Rajdhani", var(--font-sans), sans-serif;
  font-weight: 600;
  font-size: clamp(112px, 24vw, 360px);
  line-height: 0.86;
  letter-spacing: 0.01em;
  margin: 0 0 clamp(10px, 1.4vw, 18px) -0.03em;
  color: var(--ink-1);
  user-select: none;
}
.hero-title {
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink-1);
  margin: 0 0 clamp(20px, 3vw, 36px);
  max-width: 16em;
}
.hero-row { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.hero-row .scroll-cue { order: 2; }
.scroll-cue { color: var(--ink-4); font-size: 20px; line-height: 1; padding-bottom: 6px; }
.hero-right { justify-self: start; max-width: 560px; display: grid; gap: 22px; justify-items: start; }
.hero-copy { color: var(--ink-3); font-size: 15px; line-height: 1.6; margin: 0; }
.hero-actions { display: flex; gap: 10px; }
@media (max-width: 860px) {
  .hero-row { grid-template-columns: 1fr; gap: 20px; }
  .hero-right { justify-self: start; max-width: 100%; min-width: 0; }
  .hero-copy { overflow-wrap: break-word; }
  .hero-title { max-width: 100%; }
  .scroll-cue { display: none; }
}

/* prompt bar (Grok reference) */
/* F-taste-6: one left edge for the whole hero. */
.prompt-block { width: min(560px, 100%); margin: 0 0 clamp(20px, 3vw, 36px); }
.prompt-hint { margin: 10px 0 0; text-align: left; font-size: 12px; color: var(--ink-4); }
.prompt {
  display: flex; align-items: center; gap: 12px;
  width: 100%; margin: 0;
  height: 52px; padding: 0 8px 0 22px;
  border-radius: var(--radius-pill);
  background: rgba(20, 20, 26, 0.85);
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.05);
  cursor: text;
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-base) var(--ease);
}
.prompt:hover { border-color: var(--border-strong); }
.prompt input { flex: 1; background: transparent; border: 0; outline: none; font-size: 15px; color: var(--ink-1); min-width: 0; }
.prompt input::placeholder { color: var(--ink-5); }
.prompt .go {
  position: relative;
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  border-radius: 0; border: 0; padding: 0; cursor: pointer;
  background: transparent; color: #0a0a0c; display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease);
}
.prompt .go::before {
  content: "";
  position: absolute;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--fg);
  transition: background-color var(--dur-fast) var(--ease);
}
.prompt .go svg { position: relative; z-index: 1; }
.prompt .go:hover::before { background: #fff; }
.prompt .go:active { transform: scale(0.96); }

/* ---------- product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; }
.card {
  padding: 28px 28px 32px;
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px; min-height: 420px;
}
.card:first-child { border-left: 0; padding-left: 0; }
.card h3 { margin: 0; font-size: 15px; font-weight: 500; color: var(--ink-1); }
.card p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink-4); }
.card .art { flex: 1; display: grid; place-items: center; padding: 18px 0 8px; color: var(--ink-6); }
.card .art svg { width: 100%; max-width: 240px; height: auto; }
.card .btn { align-self: flex-start; }
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .card { border-left: 0; border-top: 1px solid var(--border); padding-left: 0; padding-right: 0; min-height: 0; }
  .card:first-child { border-top: 0; }
}

/* ---------- earned autonomy ---------- */
.autonomy { overflow: hidden; }
.starfield { position: relative; height: clamp(360px, 52vw, 640px); display: grid; place-items: center; }
.starfield svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.starfield .word {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-weight: 300; font-size: clamp(30px, 4.6vw, 64px); letter-spacing: -0.03em; color: var(--ink-1);
  white-space: nowrap;
}
.starfield .word.l { left: 0; }
.starfield .word.r { right: 0; }
.starfield .word em { font-family: var(--font-display); font-style: normal; font-weight: 300; color: var(--ink-3); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.tier { padding: 28px 28px 28px; border-left: 1px solid var(--border); min-height: 300px; display: flex; flex-direction: column; }
.tier:first-child { border-left: 0; padding-left: 0; }
.tier .eyebrow { margin-bottom: auto; }
.tier .value { font-weight: 300; font-size: clamp(48px, 5.5vw, 80px); letter-spacing: -0.04em; line-height: 1; color: var(--ink-1); margin: 40px 0 8px; display: flex; align-items: baseline; gap: 12px; }
.tier .value small { font-size: 15px; letter-spacing: 0; color: var(--ink-3); font-weight: 400; }
.tier .value.stack { flex-direction: column; align-items: flex-start; gap: 6px; }
.tier .value.stack small { line-height: 1.4; }
.tier p { margin: 0; font-size: 13px; color: var(--ink-4); line-height: 1.6; }
@media (max-width: 860px) {
  .tiers { grid-template-columns: 1fr; }
  .tier { border-left: 0; border-top: 1px solid var(--border); padding-left: 0; padding-right: 0; min-height: 0; }
  .tier:first-child { border-top: 0; }
  .tier .value { margin-top: 16px; }
  .starfield .word { position: static; transform: none; }
  .starfield { height: auto; padding: 40px 0; gap: 8px; grid-auto-flow: row; justify-items: start; }
}

/* ---------- feature rows (Scale rhythm) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.feature.flip .text { order: 2; }
.feature .text { max-width: 440px; }
.feature .text .eyebrow { display: block; margin-bottom: 18px; }
.feature .text .h2 { margin-bottom: 18px; }
.feature .text .lede { margin-bottom: 26px; }
.feature .text .rule { height: 1px; background: var(--border); margin: 26px 0; }
.frame {
  position: relative; border-radius: var(--radius-2xl); padding: clamp(18px, 3vw, 40px);
  background:
    radial-gradient(110% 80% at 12% 0%, rgba(var(--aurora-1), 0.30) 0%, rgba(var(--aurora-1), 0) 62%),
    radial-gradient(100% 80% at 100% 100%, rgba(var(--aurora-2), 0.42) 0%, rgba(var(--aurora-2), 0) 64%),
    linear-gradient(160deg, #15121f 0%, #0a0910 100%);
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.05);
}
.frame img { width: 100%; display: block; }
/* Mac window chrome */
.window { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,0.10); background: #0b0b0f;
  box-shadow: 0 40px 70px -24px rgba(0,0,0,0.9), 0 0 0 1px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06); }
.window .bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: linear-gradient(180deg, #17171c, #111115); border-bottom: 1px solid rgba(255,255,255,0.06); }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a42; display: block; }
.window .bar i:nth-child(1) { background: #ff5f57; } .window .bar i:nth-child(2) { background: #febc2e; } .window .bar i:nth-child(3) { background: #28c840; }
.window .bar span { margin-left: auto; margin-right: auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-5); }
/* Audit F-taste-1/2: the whole capture, never a fixed-ratio crop. */
.window img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
/* iPhone bezel */
.frame.phone { display: grid; place-items: center; }
.phone-shell { width: min(300px, 68%); padding: 10px; border-radius: 48px; background: #0a0a0c;
  border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 50px 80px -30px rgba(0,0,0,0.95), inset 0 0 0 1px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.08); position: relative; }
.phone-shell::before { content: ""; position: absolute; top: 18px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%); border-radius: 14px; background: #000; z-index: 2; }
.phone-shell img { border-radius: 38px; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.frame .caption { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-6); white-space: nowrap; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature.flip .text { order: 0; } .feature .text { max-width: none; } }
.feature + .feature { margin-top: clamp(80px, 10vw, 140px); }

/* ---------- connectors ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  padding: 10px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface-1); color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 8px;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-6); }
.chip.live .dot { background: #34d399; }
/* Decision 126: a connector not yet proven in production says so. */
.chip .soon { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-5); margin-left: 6px; }

/* ---------- waitlist ---------- */
.waitlist { text-align: center; }
.waitlist .h2 { margin-bottom: 12px; }
.waitlist .lede { max-width: 520px; margin: 0 auto 28px; }
.form { display: flex; flex-direction: column; gap: 8px; width: min(520px, 100%); margin: 0 auto; }
.form-row { display: flex; gap: 8px; width: 100%; }
.form input {
  flex: 1; height: 44px; padding: 0 16px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-strong); color: var(--ink-1); outline: none; min-width: 0;
  transition: border-color var(--dur-fast) var(--ease);
}
.form input[name="question"] { width: 100%; flex: none; }
.form input::placeholder { color: var(--ink-5); }
.form input:focus { border-color: var(--primary); box-shadow: var(--focus-ring); }
.form .btn { height: 44px; padding: 0 20px; flex-shrink: 0; }
.form-note { margin-top: 14px; font-size: 12px; color: var(--ink-3); }
.form-ok { color: #34d399; }
@media (max-width: 520px) { .form-row { flex-direction: column; } }

/* ---------- footer ---------- */
.footer { position: relative; padding: clamp(72px, 9vw, 120px) 0 200px; overflow: hidden; border-top: 1px solid var(--border-soft); }
.footer .glow {
  position: absolute; left: 50%; bottom: -260px; width: 140vw; height: 440px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(var(--aurora-1), 0.80) 0%, rgba(var(--aurora-1), 0.42) 22%, rgba(var(--aurora-2), 0.26) 45%, rgba(5,5,8,0) 70%);
  filter: blur(12px);
}
.footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.footer h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-5); margin: 0 0 18px; font-weight: 400; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer li a { font-size: 13px; color: var(--ink-3); transition: color var(--dur-fast) var(--ease); }
.footer li a:hover { color: var(--ink-1); }
.footer .legal { position: relative; margin-top: 64px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-6); }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- legal pages ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 140px var(--gutter) 120px; }
.doc .eyebrow { display: block; margin-bottom: 14px; }
.doc h1 { font-weight: 400; font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 12px; color: var(--ink-1); }
.doc .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-5); margin-bottom: 48px; }
.doc h2 { font-weight: 500; font-size: 20px; letter-spacing: -0.01em; margin: 44px 0 12px; color: var(--ink-1); }
.doc h3 { font-weight: 500; font-size: 15px; margin: 24px 0 8px; color: var(--ink-2); }
.doc p, .doc li { font-size: 15px; line-height: 1.7; color: var(--ink-3); max-width: 68ch; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--primary); }
.doc a:hover { color: var(--primary-hover); }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0 20px; }
.doc th, .doc td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--border); color: var(--ink-3); vertical-align: top; }
.doc th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-5); font-weight: 400; }
.doc code { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); background: var(--surface-4); padding: 1px 6px; border-radius: 6px; }
.doc .callout { border: 1px solid var(--border); border-left: 2px solid var(--primary); background: var(--surface-1); padding: 14px 18px; border-radius: var(--radius); margin: 18px 0; }
.doc .callout p { margin: 0; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(6px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Audit F-sec-32: former inline styles, so the CSP can forbid inline style. */
.h2.mt-14 { margin-top: 14px; }
.hp { display: none; }
