/* ==========================================================================
   veil — marketing site styles
   tokens + component patterns reused verbatim from the app's stylesheet
   so this reads as the same instrument, in a marketing register.
   ========================================================================== */

:root {
  /* surfaces */
  --bg: #0a0a0b;
  --panel: #111114;
  --panel-raised: #131317;
  --border: #1f1f24;
  --border-soft: #17171b;

  /* text */
  --text: #e7e7ea;
  --text-dim: #9c9ca4;
  --text-faint: #7d7d84;

  /* accent — violet family, one hue, three weights */
  --accent: #8b5cf6;
  --accent-rgb: 139, 92, 246;
  --accent-active: #6d4bd8;
  --accent-soft: #b9a2ff;
  --accent-dim: #6f5aa8;
  --accent-glow: rgba(139, 92, 246, 0.16);
  --accent-border: rgba(139, 92, 246, 0.35);

  /* status, muted on purpose — used sparingly (problem-section illustration only) */
  --ok: #7fa88a;
  --ok-dim: rgba(127, 168, 138, 0.14);
  --warn: #c2a06a;
  --warn-dim: rgba(194, 160, 106, 0.14);
  --fail: #b57575;
  --fail-dim: rgba(181, 117, 117, 0.14);
  --unknown: #7c7c84;

  /* type */
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --font-sans: system-ui, -apple-system, "Segoe UI", sans-serif;

  --plus: #cbb98f;
  --plus-dim: rgba(203, 185, 143, 0.12);

  --shadow: rgba(0, 0, 0, 0.5);
  --hover-tint: rgba(255, 255, 255, 0.02);
  --hover-tint-strong: rgba(255, 255, 255, 0.015);
  --hairline-tint: rgba(255, 255, 255, 0.012);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 150ms;
  --dur-med: 220ms;
  --dur-theme: 200ms;

  --radius: 10px;
  --radius-sm: 6px;

  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f3f2f7;
  --panel: #fbfaff;
  --panel-raised: #ffffff;
  --border: #e2e0eb;
  --border-soft: #ebe9f3;

  --text: #201d2b;
  --text-dim: #4a4658;
  --text-faint: #706c7e;

  --accent: #7c5cff;
  --accent-rgb: 124, 92, 255;
  --accent-active: #6234db;
  --accent-soft: #9678f0;
  --accent-dim: #8879c9;
  --accent-glow: rgba(124, 92, 255, 0.1);
  --accent-border: rgba(124, 92, 255, 0.3);

  --ok: #3f7a53;
  --ok-dim: rgba(79, 138, 99, 0.12);
  --warn: #8f651b;
  --warn-dim: rgba(163, 121, 47, 0.12);
  --fail: #a8433f;
  --fail-dim: rgba(178, 80, 79, 0.12);
  --unknown: #6f6d7e;

  --plus: #93732c;
  --plus-dim: rgba(147, 115, 44, 0.1);

  --shadow: rgba(80, 70, 110, 0.18);
  --hover-tint: rgba(32, 29, 43, 0.035);
  --hover-tint-strong: rgba(32, 29, 43, 0.045);
  --hairline-tint: rgba(32, 29, 43, 0.05);

  color-scheme: light;
}

@media (prefers-reduced-motion: no-preference) {
  body, .nav, .card, .fix-btn {
    transition: background-color var(--dur-theme) var(--ease),
                color var(--dur-theme) var(--ease),
                border-color var(--dur-theme) var(--ease);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.mono { font-family: var(--font-mono); }

::selection {
  background: var(--accent-glow);
  color: var(--text);
}

button { font: inherit; color: inherit; }
a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--panel-raised);
  border: 1px solid var(--accent-border);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   background field — reused verbatim from the app, grid + scanline pass
   ========================================================================== */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--hairline-tint) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline-tint) 1px, transparent 1px);
  background-size: 28px 28px;
}

.bg-field {
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, rgb(var(--accent-rgb) / 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(var(--accent-rgb) / 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: bg-drift 46s linear infinite;
  will-change: transform;
}

.bg-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgb(var(--accent-rgb) / 0.05) 50%, transparent 100%);
  height: 240px;
  animation: bg-scan 12s linear infinite;
}

@keyframes bg-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-64px, -64px, 0); }
}
@keyframes bg-scan {
  from { transform: translate3d(0, -20vh, 0); }
  to   { transform: translate3d(0, 120vh, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-field { animation: none; }
  .bg-field::after { display: none; }
}

/* ==========================================================================
   layout primitives
   ========================================================================== */

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
  padding: 128px 0;
  border-top: none;
}

.section--panel {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--tight { padding: 96px 0; }

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .section--tight { padding: 56px 0; }
  .wrap { padding: 0 20px; }
}

/* reveal-on-scroll: IntersectionObserver adds .is-visible; CSS handles the rest */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* kicker — numbered schematic index, not a pill badge */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 16px;
}

/* section-number rail, desktop only — sticky left edge wayfinding */
.rail-number {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  display: none;
}

h1, h2, h3, p { margin: 0; }

/* fluid type — clamp() instead of a hard breakpoint jump, so 320px through
   4k scales continuously instead of snapping at 640px. min/max match the
   old mobile/desktop values exactly, just interpolated between them. */
.h-display {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(34px, 8.5vw + 14px, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.h-2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(24px, 5.2vw + 12px, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.h-3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(18px, 2vw + 13px, 22px);
  line-height: 1.3;
}
.body-lg { font-size: clamp(14.5px, 1vw + 12px, 17px); line-height: 1.6; color: var(--text-dim); }
.body-sm { font-size: 13px; line-height: 1.5; color: var(--text-faint); }

.measure { max-width: 68ch; }

/* ==========================================================================
   top bar — language + currency, sits above the nav, scrolls away (not sticky,
   the nav below it is what stays pinned)
   ========================================================================== */

.topbar {
  position: relative;
  z-index: 21;
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
}

.topbar__row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 7px 24px;
  flex-wrap: wrap;
}

.topbar__group {
  display: flex;
  align-items: center;
  gap: 2px;
}

.topbar__btn {
  appearance: none;
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 3px 7px;
  min-height: 24px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.topbar__btn:hover { color: var(--text-dim); }
.topbar__btn.is-active {
  color: var(--accent);
  background: var(--accent-glow);
}

@media (max-width: 520px) {
  .topbar__row { justify-content: center; padding: 7px 16px; gap: 10px; }
}

/* ==========================================================================
   nav
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex: none;
}

.nav__mark { width: 24px; height: 24px; display: block; }

.nav__name {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto 0 32px;
}

.nav__link {
  appearance: none;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--hover-tint); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* light/dark toggle — pill switch, reused verbatim from the app (this is a
   settings control not a CTA, the "no pill buttons" rule is about .fix-btn) */
.theme-switch {
  appearance: none;
  position: relative;
  width: 34px;
  height: 19px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--border-soft);
  cursor: pointer;
  flex: none;
  transition: background var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}
.theme-switch::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--text-faint);
  transition: transform var(--dur-med) var(--ease), background var(--dur-med) var(--ease);
}
.theme-switch[aria-checked="true"] {
  background: var(--accent-glow);
  border-color: var(--accent-border);
}
.theme-switch[aria-checked="true"]::before {
  transform: translateX(15px);
  background: var(--accent);
}
.theme-switch:hover::before { background: var(--accent-soft); }
.theme-switch:active::before { background: var(--accent-active); }

@media (prefers-reduced-motion: reduce) {
  .theme-switch, .theme-switch::before { transition: none; }
}

.nav__hamburger {
  display: none;
  appearance: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}

.nav__hamburger-bars {
  position: relative;
  width: 16px;
  height: 12px;
}
.nav__hamburger-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav__hamburger-bars span:nth-child(1) { top: 0; }
.nav__hamburger-bars span:nth-child(2) { top: 50%; margin-top: -0.75px; }
.nav__hamburger-bars span:nth-child(3) { bottom: 0; }

.nav.is-menu-open .nav__hamburger-bars span:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
.nav.is-menu-open .nav__hamburger-bars span:nth-child(2) { opacity: 0; }
.nav.is-menu-open .nav__hamburger-bars span:nth-child(3) { transform: translateY(-5.25px) rotate(-45deg); }

.nav__mobile-panel {
  display: none;
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__hamburger { display: inline-flex; }
  .nav__actions .fix-btn--primary { display: none; }

  .nav__mobile-panel {
    position: fixed;
    inset: 0;
    z-index: 19;
    background: var(--bg);
    padding: 88px 24px 40px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
  }
  .nav__mobile-panel.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav__mobile-panel .nav__link {
    font-size: 17px;
    padding: 14px 10px;
    color: var(--text);
    border-bottom: 1px solid var(--border-soft);
    border-radius: 0;
  }
  .nav__mobile-panel .fix-btn {
    margin-top: 20px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav__hamburger-bars span,
  .nav__mobile-panel { transition: none; }
}

/* ==========================================================================
   buttons — .fix-btn reused verbatim from the app
   ========================================================================== */

.fix-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  min-height: 40px;
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.fix-btn:hover {
  color: var(--accent);
  border-color: rgb(var(--accent-rgb) / 0.35);
  background: var(--accent-glow);
}
.fix-btn:active { transform: scale(0.97); }

.fix-btn--primary {
  color: var(--accent);
  border-color: rgb(var(--accent-rgb) / 0.35);
  background: var(--accent-glow);
  font-weight: 500;
}
.fix-btn--primary:hover { background: rgb(var(--accent-rgb) / 0.24); }
.fix-btn--primary:active {
  color: #fff;
  background: var(--accent-active);
  border-color: var(--accent-active);
}

.fix-btn--lg {
  padding: 15px 28px;
  min-height: 52px;
  font-size: 14.5px;
}

.fix-btn:disabled,
.fix-btn[aria-disabled="true"] {
  cursor: not-allowed;
  color: var(--text-faint);
  border-color: var(--border);
  background: transparent;
}
.fix-btn:disabled:hover,
.fix-btn[aria-disabled="true"]:hover {
  color: var(--text-faint);
  border-color: var(--border);
  background: transparent;
}

/* ==========================================================================
   hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 140px 0 96px;
  overflow: hidden;
}

.hero__canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* stacked canvas layers: the Canvas2D baseline always renders; the three.js
   canvas sits on top and only draws when WebGL is real (js gates activation,
   this just keeps both layers positioned identically so neither shifts the
   other on resize). Losing WebGL never leaves a hole — the 2D layer is the
   actual visual identity, not a placeholder. */
.scene-canvas--2d,
.scene-canvas--3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.scene-canvas--3d { pointer-events: none; }

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  width: 132px;
  height: 132px;
  margin-bottom: 28px;
}
.hero__logo svg { width: 100%; height: 100%; display: block; }

.hero__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.hero__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(32px, 8vw + 12px, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0 0 20px;
}

.hero__subhead {
  font-size: clamp(14.5px, 1vw + 12px, 17px);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 56ch;
  margin: 0 0 36px;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 22px;
}

.hero__trust {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-faint);
}

.hero__content .telemetry {
  justify-content: center;
  margin-top: 18px;
}

@media (max-width: 640px) {
  .hero { min-height: auto; padding: 100px 0 56px; }
  .hero__logo { width: 84px; height: 84px; margin-bottom: 20px; }
  .hero__content .telemetry { gap: 6px 10px; }
}

@media (max-width: 400px) {
  .hero { padding: 88px 0 48px; }
}

/* ==========================================================================
   V logo — idle animation (draw-in once, pulse loop)
   ========================================================================== */

.v-logo__edge {
  stroke-dasharray: var(--len, 1) var(--len, 1);
  stroke-dashoffset: var(--len, 1);
  animation: v-draw 900ms var(--ease) forwards;
  animation-delay: var(--delay, 0ms);
}

.v-logo__node {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.4);
  animation: v-node-in 320ms var(--ease) forwards;
  animation-delay: calc(var(--delay, 0ms) + 120ms);
}

@keyframes v-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes v-node-in {
  to { opacity: 1; transform: scale(1); }
}

.v-logo__pulse-a, .v-logo__pulse-b {
  animation: v-pulse 3.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.v-logo__pulse-b { animation-delay: 1.6s; }
.v-logo__ring-a, .v-logo__ring-b {
  animation: v-ring 3.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.v-logo__ring-b { animation-delay: 1.6s; }

@keyframes v-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.85; }
}
@keyframes v-ring {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.125); }
}

/* nav-sized mark: no pulse, always fully drawn, no draw-in delay */
.nav__mark .v-logo__edge,
.nav__mark .v-logo__node {
  animation: none;
  stroke-dashoffset: 0;
  opacity: 1;
  transform: scale(1);
}
.nav__mark .v-logo__pulse-a,
.nav__mark .v-logo__pulse-b,
.nav__mark .v-logo__ring-a,
.nav__mark .v-logo__ring-b {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .v-logo__edge, .v-logo__node {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
    transform: scale(1);
  }
  .v-logo__pulse-a, .v-logo__pulse-b, .v-logo__ring-a, .v-logo__ring-b {
    animation: none;
  }
}

/* ==========================================================================
   cards / panels — reused verbatim from the app (.card, .pill, .check-row family)
   ========================================================================== */

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; }
.pill--ok { color: var(--ok); background: var(--ok-dim); border-color: rgba(127,168,138,0.22); }
.pill--ok::before { background: var(--ok); }
.pill--warn { color: var(--warn); background: var(--warn-dim); border-color: rgba(194,160,106,0.22); }
.pill--warn::before { background: var(--warn); }
.pill--fail { color: #b77777; background: var(--fail-dim); border-color: rgba(181,117,117,0.22); }
.pill--fail::before { background: var(--fail); }
.pill--unknown { color: #87878f; background: rgba(108,108,116,0.14); border-color: rgba(108,108,116,0.22); }
.pill--unknown::before { background: var(--unknown); }

.check-row { border-bottom: 1px solid var(--border-soft); }
.check-row:last-child { border-bottom: none; }

.check-row__hit {
  appearance: none;
  width: 100%;
  background: none;
  border: none;
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 8px;
  min-height: 44px;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: left;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease);
}
.check-row__hit:hover { background: var(--hover-tint-strong); }

.check-row__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.check-row__label-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.check-row__label { font-size: 14px; font-weight: 600; letter-spacing: 0.005em; color: var(--text); }
.check-row__group {
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
}
.check-row__detail { font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }

.chevron {
  width: 14px;
  height: 14px;
  color: var(--text-faint);
  flex: none;
  transition: transform var(--dur-med) var(--ease), color var(--dur-fast) var(--ease);
}
.check-row.is-expanded .chevron { transform: rotate(180deg); color: var(--accent); }

.drawer { overflow: hidden; height: 0; opacity: 0; }
.check-row.is-expanded .drawer:not([hidden]) { height: auto; opacity: 1; }
.drawer__inner { padding: 6px 6px 18px 33px; }
.drawer__prose p { margin: 0 0 14px; font-size: 13px; line-height: 1.7; color: var(--text); }
.drawer__prose p:last-child { margin-bottom: 0; }
.drawer__kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 5px;
}

.plan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.plan-step {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--border-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 8px 7px 11px;
}
.plan-step__cmd {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}
.copy-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-faint);
  border-radius: 4px;
  padding: 7px 10px;
  min-height: 30px;
  font-size: 10.5px;
  letter-spacing: 0.03em;
  cursor: pointer;
  flex: none;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.copy-btn:hover { color: var(--accent); border-color: rgb(var(--accent-rgb) / 0.35); }
.copy-btn.is-flash { color: var(--ok); border-color: rgba(127, 168, 138, 0.35); }

@media (prefers-reduced-motion: reduce) {
  .drawer { height: auto !important; opacity: 1 !important; }
}

/* ==========================================================================
   scene frame / fallback — reused verbatim
   ========================================================================== */

.scene-frame {
  position: relative;
  width: 100%;
  height: min(48vh, 420px);
  min-height: 260px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* the two interactive scenes (globe2, network) get more room — they're
   meant to be explored, not glanced at */
.scene-frame--tall {
  height: min(64vh, 620px);
  min-height: 340px;
}

.scene-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.scene-canvas:active { cursor: grabbing; }
/* Needed because the rule above outranks the browser's own [hidden] rule, and
   the scene modules hide whichever layer lost (see VeilScene.useOneLayer). */
.scene-canvas[hidden] { display: none; }

.scene-hint {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  background: rgb(var(--accent-rgb) / 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  pointer-events: none;
  backdrop-filter: blur(2px);
  margin: 0;
}

.scene-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, calc(-100% - 10px));
  background: var(--panel-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
  box-shadow: 0 10px 28px -10px var(--shadow);
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}
.scene-tooltip[hidden] { display: none; }
.scene-tooltip__label { font-weight: 600; }
.scene-tooltip__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.scene-tooltip__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

@media (max-width: 640px) {
  .scene-frame--tall { height: min(56vh, 460px); min-height: 300px; }
  .scene-hint { left: 10px; bottom: 10px; font-size: 9.5px; padding: 5px 8px; }
}
/* note: the old .scene-fallback/.fallback-list ("webgl isn't available, here's
   a plain list") panel is gone on purpose — every scene frame now renders a
   real Canvas2D instrument as the baseline instead of apologizing. See
   .scene-canvas--2d/--3d above and js/canvas-fx.js. */

/* ==========================================================================
   the problem section
   ========================================================================== */

.problem {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.problem__copy p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0 0 16px;
}
.problem__copy p:last-child { margin-bottom: 0; }

.problem__scope {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.6;
}

.globe-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.globe-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  background: rgb(var(--accent-rgb) / 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .problem { grid-template-columns: 1fr; }
}

/* ==========================================================================
   how it works — three steps + scroll-drawn connector
   ========================================================================== */

.how-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.how-connector {
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 2px;
  z-index: 0;
  display: none;
}
.how-connector line {
  stroke: var(--accent);
  stroke-width: 2;
}

.how-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.how-step__index {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--panel-raised);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-step__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.how-step__title { font-size: 15px; color: var(--text-dim); line-height: 1.6; }

.how-close {
  margin-top: 40px;
  font-size: 14px;
  color: var(--text-faint);
  text-align: center;
}

@media (min-width: 861px) {
  .how-connector { display: block; }
}
@media (max-width: 860px) {
  .how-steps { grid-template-columns: 1fr; }
}

/* ==========================================================================
   checks grid
   ========================================================================== */

.checks-groups {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 40px;
}

.checks-group__title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.checks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.check-tile {
  background: var(--panel);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-tile__label { font-size: 14px; font-weight: 600; color: var(--text); }
.check-tile__why { font-size: 12.5px; line-height: 1.55; color: var(--text-dim); }

/* ==========================================================================
   free vs plus
   ========================================================================== */

.tiers-lead {
  font-size: 17px;
  color: var(--text);
  max-width: 62ch;
  margin: 0 0 48px;
  line-height: 1.6;
}

.tiers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.tier-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tier-card__head { display: flex; flex-direction: column; gap: 6px; }
.tier-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.tier-card--plus .tier-card__eyebrow { color: var(--plus); }
.tier-card__title { font-size: 20px; font-weight: 600; color: var(--text); }

.tier-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tier-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dim);
}
.tier-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  margin-top: 8px;
}
.tier-card--plus .tier-list li::before { background: var(--plus); }

.tier-card__price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

.tier-card .fix-btn { align-self: flex-start; }

@media (max-width: 720px) {
  .tiers-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   pricing.html — the standalone buy card
   ========================================================================== */

.price-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 40px 32px;
}

.price-card__amount {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

.price-card__note {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-faint);
  max-width: 40ch;
  margin: 0;
}

.price-card__buy {
  margin-top: 10px;
  width: 100%;
}

@media (max-width: 480px) {
  .price-card { padding: 32px 20px; }
  .price-card__amount { font-size: 38px; }
}

/* ==========================================================================
   honesty section — same calm card treatment as everything else, NOT tinted warn/fail
   ========================================================================== */

.honesty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.honesty-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.honesty-card__not {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

.honesty-card__body { font-size: 14px; line-height: 1.65; color: var(--text); }

.honesty-close {
  margin-top: 36px;
  font-size: 15px;
  color: var(--text-dim);
  max-width: 64ch;
}

@media (max-width: 860px) {
  .honesty-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   social proof
   ========================================================================== */

.proof-line {
  font-size: 15px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   pricing / final CTA
   ========================================================================== */

.final-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-cta__title { max-width: 22ch; margin: 0 auto 20px; }

.final-cta__ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 28px 0 20px;
}

.final-cta__platform {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ==========================================================================
   FAQ — accordion, same mechanics as check-row/drawer
   ========================================================================== */

.faq-list { display: flex; flex-direction: column; margin-top: 40px; }

.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-item:first-child { border-top: 1px solid var(--border-soft); }

.faq-item__hit {
  appearance: none;
  width: 100%;
  background: none;
  border: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  cursor: pointer;
  color: var(--text);
  font: inherit;
  font-size: 15.5px;
  font-weight: 500;
  text-align: left;
  min-height: 44px;
}

.faq-item__answer {
  overflow: hidden;
  height: 0;
  opacity: 0;
}
.faq-item.is-expanded .faq-item__answer { height: auto; opacity: 1; }
.faq-item__answer-inner {
  padding: 0 4px 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 68ch;
}
.faq-item__answer-inner a { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .faq-item__answer { height: auto !important; opacity: 1 !important; }
}

/* ==========================================================================
   footer
   ========================================================================== */

.footer {
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
}

.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__brand-row { display: flex; align-items: center; gap: 8px; }
.footer__mark { width: 22px; height: 22px; }
.footer__name { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; }
.footer__tagline { font-size: 13px; color: var(--text-faint); line-height: 1.6; max-width: 32ch; }

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  font-size: 13.5px;
  color: var(--text-dim);
  text-decoration: none;
}
.footer__links a:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid var(--border-soft);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-faint);
}

.footer__no-tracking {
  color: var(--text-dim);
}

.footer__jurisdiction {
  color: var(--text-faint);
}

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   crypto checkout — pricing.html, address + QR, XMR/BTC
   ========================================================================== */

.checkout {
  scroll-margin-top: 88px;
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 40px;
}

.checkout-step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-step__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.checkout-step__body { font-size: 13.5px; line-height: 1.6; color: var(--text-dim); }
.checkout-step__body strong { color: var(--text); font-weight: 600; }
.checkout-step__body a { color: var(--accent); }

@media (max-width: 720px) {
  .checkout-steps { grid-template-columns: 1fr; }
}

.wallet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 720px) {
  .wallet-grid { grid-template-columns: 1fr; }
}

.wallet-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wallet-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wallet-card__coin {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-card__coin::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.wallet-card--btc .wallet-card__coin::before { background: var(--plus); }

.wallet-card__amount {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
}

.wallet-card__qr-frame {
  align-self: center;
  width: 168px;
  height: 168px;
  background: #f3f2f7;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  overflow: visible;
}

.wallet-card__qr-frame canvas {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  display: block;
}

.wallet-card__qr-frame[data-qr-state="pending"] .wallet-card__qr-placeholder,
.wallet-card__qr-frame[data-qr-state="error"] .wallet-card__qr-placeholder {
  display: flex;
}
.wallet-card__qr-placeholder {
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.5;
  color: #706c7e;
  padding: 10px;
}
.wallet-card__qr-frame[data-qr-state="ready"] canvas { display: block; }
.wallet-card__qr-frame:not([data-qr-state="ready"]) canvas { display: none; }
.wallet-card__qr-frame[data-qr-state="error"] .wallet-card__qr-placeholder { color: var(--fail); }

.wallet-card__addr-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--border-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 8px 9px 12px;
}

.wallet-card__addr {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
  word-break: break-all;
}

.wallet-card__addr.is-placeholder { color: var(--warn); }

.wallet-card__note {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-faint);
  margin: 0;
}

.checkout-placeholder-banner {
  margin-top: 24px;
}

/* ==========================================================================
   manifesto — full-bleed statement band, bold techy type, restrained (no
   gradients, no icon, just type + hairlines + a slow scanline)
   ========================================================================== */

.manifesto {
  position: relative;
  padding: 96px 0;
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.manifesto::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgb(var(--accent-rgb) / 0.025) 3px,
    rgb(var(--accent-rgb) / 0.025) 4px
  );
  pointer-events: none;
}

.manifesto__inner {
  position: relative;
  max-width: 900px;
}

.manifesto__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 20px;
}

.manifesto__kicker::before { content: "// "; color: var(--accent-dim); }

.manifesto__line {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--text);
}

.manifesto__line--accent { color: var(--accent); }

.manifesto__body {
  margin-top: 28px;
  max-width: 68ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
}

.manifesto__body strong { color: var(--text); font-weight: 600; }

@media (max-width: 640px) {
  .manifesto { padding: 64px 0; }
  .manifesto__body { margin-top: 20px; font-size: 14px; }
}

/* ==========================================================================
   glitch / HUD text-reveal accents — off entirely under reduced-motion
   ========================================================================== */

.glitch-text {
  position: relative;
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  .glitch-text.is-glitching {
    animation: glitch-jitter 340ms steps(2, end) 1;
  }
  .glitch-text.is-glitching::before,
  .glitch-text.is-glitching::after {
    content: attr(data-glitch-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    overflow: hidden;
    color: var(--accent);
    background: transparent;
    clip-path: inset(0 0 0 0);
  }
  .glitch-text.is-glitching::before {
    transform: translate(-2px, -1px);
    opacity: 0.6;
    animation: glitch-slice-a 340ms steps(2, end) 1;
  }
  .glitch-text.is-glitching::after {
    transform: translate(2px, 1px);
    opacity: 0.5;
    color: var(--accent-soft);
    animation: glitch-slice-b 340ms steps(2, end) 1;
  }
}

@keyframes glitch-jitter {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-1px, 1px); }
  40% { transform: translate(1px, -1px); }
  60% { transform: translate(-1px, 0); }
  80% { transform: translate(1px, 0); }
  100% { transform: translate(0, 0); }
}
@keyframes glitch-slice-a {
  0% { clip-path: inset(0 0 80% 0); opacity: 0.7; }
  50% { clip-path: inset(40% 0 20% 0); opacity: 0.5; }
  100% { clip-path: inset(90% 0 0 0); opacity: 0; }
}
@keyframes glitch-slice-b {
  0% { clip-path: inset(70% 0 0 0); opacity: 0.6; }
  50% { clip-path: inset(10% 0 55% 0); opacity: 0.45; }
  100% { clip-path: inset(0 0 85% 0); opacity: 0; }
}

/* HUD corner-bracket framing — used on scene frames + checkout cards for the
   ctOS-adjacent "instrument being scanned" cue. Pure CSS, four pseudo-corners
   via box-shadow trick would be too soft; use explicit border fragments. */
.hud-frame { position: relative; }
.hud-frame::before,
.hud-frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent);
  opacity: 0.75;
  pointer-events: none;
}
.hud-frame::before { top: -6px; left: -6px; border-right: none; border-bottom: none; }
.hud-frame::after { bottom: -6px; right: -6px; border-left: none; border-top: none; }

/* telemetry readout — small mono data strip, used near the hero for a HUD feel */
.telemetry {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}
.telemetry__item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.telemetry__item::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--accent);
  opacity: 0.7;
}
@media (prefers-reduced-motion: no-preference) {
  .telemetry__item::before { animation: telemetry-blink 2.4s steps(1, end) infinite; }
  .telemetry__item:nth-child(2)::before { animation-delay: 0.6s; }
  .telemetry__item:nth-child(3)::before { animation-delay: 1.2s; }
  .telemetry__item:nth-child(4)::before { animation-delay: 1.8s; }
}
@keyframes telemetry-blink {
  0%, 40% { opacity: 0.7; }
  50% { opacity: 0.15; }
  60%, 100% { opacity: 0.7; }
}

/* ==========================================================================
   legal pages (privacy / imprint / terms) — simple stub sections
   ========================================================================== */

.legal-page h2 { margin: 40px 0 12px; }
.legal-page h2:first-child { margin-top: 0; }
.legal-page p, .legal-page li { font-size: 14px; line-height: 1.75; color: var(--text-dim); }
.legal-page ul { padding-left: 20px; }
.legal-page .placeholder-flag {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--warn);
  background: var(--warn-dim);
  border: 1px solid rgba(194,160,106,0.3);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

/* ==========================================================================
   platform status badges — supported / planned / partial / not applicable
   reuses the .pill color language (ok/warn/unknown), never invents a new hue
   ========================================================================== */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none; }
.status-badge--supported { color: var(--ok); background: var(--ok-dim); border-color: rgba(127,168,138,0.25); }
.status-badge--supported::before { background: var(--ok); }
.status-badge--planned { color: var(--text-faint); background: rgba(108,108,116,0.14); border-color: rgba(108,108,116,0.25); }
.status-badge--planned::before { background: var(--unknown); }
.status-badge--partial { color: var(--warn); background: var(--warn-dim); border-color: rgba(194,160,106,0.25); }
.status-badge--partial::before { background: var(--warn); }
.status-badge--none { color: #87878f; background: rgba(108,108,116,0.14); border-color: rgba(108,108,116,0.25); }
.status-badge--none::before { background: var(--unknown); }

/* ==========================================================================
   platform pages (linux.html / windows.html) — ceiling table, install +
   verify steps reuse .plan-list/.plan-step, caveats reuse .honesty-card
   ========================================================================== */

.platform-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.platform-ceiling {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 24px;
}

.platform-ceiling__row {
  background: var(--panel);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.platform-ceiling__label { font-size: 14px; font-weight: 600; color: var(--text); }
.platform-ceiling__caveat { font-size: 12.5px; line-height: 1.55; color: var(--text-dim); }

.platform-steps {
  counter-reset: platform-step;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.platform-step {
  counter-increment: platform-step;
  display: flex;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.platform-step::before {
  content: counter(platform-step);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.platform-step__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.platform-step__title { font-size: 14px; font-weight: 600; color: var(--text); }
.platform-step__text { font-size: 13.5px; line-height: 1.6; color: var(--text-dim); }

.platform-not-yet {
  margin-top: 40px;
  text-align: center;
  padding: 40px 24px;
}
.platform-not-yet__title { font-size: 20px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.platform-not-yet__body { font-size: 14px; color: var(--text-dim); max-width: 56ch; margin: 0 auto; }

@media (max-width: 640px) {
  .platform-hero { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   download page — OS/arch detect card, verification block
   ========================================================================== */

.download-detect {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}

.download-detect__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.download-detect__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.download-detect__value { font-size: 15px; font-weight: 600; color: var(--text); }

.download-detect__override {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.download-override-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.download-override-btn:hover { color: var(--text); border-color: var(--accent-border); }
.download-override-btn.is-active { color: var(--accent); border-color: var(--accent-border); background: var(--accent-glow); }

.download-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

@media (max-width: 720px) {
  .download-cards { grid-template-columns: 1fr; }
}

.download-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.download-card--primary { border-color: var(--accent-border); }

.download-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.download-card__os { font-size: 18px; font-weight: 600; color: var(--text); }
.download-card__artifact { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); }
.download-card__body { font-size: 13.5px; line-height: 1.6; color: var(--text-dim); flex: 1; }

.checksum-block {
  background: var(--border-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.checksum-block__value {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  word-break: break-all;
}

.opens-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.opens-list li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}
.opens-list li::before { content: "→"; color: var(--accent); flex: none; }

/* ==========================================================================
   chat control explainer — dated facts, distinction table, verified stamp
   ========================================================================== */

.verified-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  margin-top: 12px;
}
.verified-stamp::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

.cc-timeline {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-left: 1px solid var(--border);
}

.cc-timeline__item {
  position: relative;
  padding: 0 0 28px 24px;
}
.cc-timeline__item:last-child { padding-bottom: 0; }
.cc-timeline__item::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.cc-timeline__date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.cc-timeline__title { font-size: 15px; font-weight: 600; color: var(--text); margin-top: 4px; }
.cc-timeline__body { font-size: 13.5px; line-height: 1.65; color: var(--text-dim); margin-top: 6px; }

.cc-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
@media (max-width: 780px) {
  .cc-split { grid-template-columns: 1fr; }
}

.cc-split__card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cc-split__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.cc-split__title { font-size: 16px; font-weight: 600; color: var(--text); }
.cc-split__body { font-size: 13.5px; line-height: 1.6; color: var(--text-dim); }
.cc-split__status {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}

.cc-source-note {
  margin-top: 28px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-faint);
  max-width: 68ch;
}

/* ==========================================================================
   threat model — who veil helps against / does not, "not do" section
   ========================================================================== */

.threat-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
@media (max-width: 780px) {
  .threat-split { grid-template-columns: 1fr; }
}

.threat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.threat-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}
.threat-card--helps .threat-card__title { color: var(--ok); }
.threat-card--not .threat-card__title { color: var(--text-faint); }

.threat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.threat-list li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.6; color: var(--text-dim); }
.threat-list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; margin-top: 8px; flex: none; }
.threat-card--helps .threat-list li::before { background: var(--ok); }
.threat-card--not .threat-list li::before { background: var(--unknown); }

.not-do-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.not-do-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.not-do-card__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}
.not-do-card__body { font-size: 13.5px; line-height: 1.6; color: var(--text); }

/* ==========================================================================
   docs / changelog / roadmap
   ========================================================================== */

.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .docs-layout { grid-template-columns: 1fr; }
}

.docs-toc {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid var(--border);
  padding-left: 16px;
}
.docs-toc a {
  font-size: 13px;
  color: var(--text-faint);
  padding: 4px 0;
}
.docs-toc a:hover { color: var(--text); }

.docs-section { scroll-margin-top: 96px; }
.docs-section + .docs-section { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--border-soft); }
.docs-section h2 { margin-bottom: 12px; }
.docs-section p, .docs-section li { font-size: 14px; line-height: 1.75; color: var(--text-dim); }
.docs-section ul { padding-left: 20px; }
.docs-section code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--border-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--text);
}

.changelog-entry {
  border-bottom: 1px solid var(--border-soft);
  padding: 24px 0;
}
.changelog-entry:first-child { padding-top: 0; }
.changelog-entry__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.changelog-entry__version { font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--text); }
.changelog-entry__date { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.changelog-entry ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.changelog-entry li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.6; color: var(--text-dim); }
.changelog-entry li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex: none; }

.roadmap-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
@media (max-width: 860px) {
  .roadmap-columns { grid-template-columns: 1fr; }
}
.roadmap-col { display: flex; flex-direction: column; gap: 12px; }
.roadmap-col__title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.roadmap-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.roadmap-card__title { font-size: 14px; font-weight: 600; color: var(--text); }
.roadmap-card__body { font-size: 12.5px; line-height: 1.55; color: var(--text-dim); }

/* ==========================================================================
   utility
   ========================================================================== */

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   reduced motion — global override, reused verbatim from the app
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================================
   cursor + edge glow
   Driven by --glow-x/--glow-y from js/glow.js. Both layers are fixed, behind
   everything, and pointer-transparent, so nothing here can eat a click.
   Gradients only — animating box-shadow or filter:blur() per frame repaints
   the whole page under them and is the usual reason a glow costs 8ms.
   ========================================================================== */
:root{ --glow-x: 50vw; --glow-y: 30vh; }

.glow-cursor,
.glow-edge{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* The light that follows the pointer. */
.glow-cursor{
  background: radial-gradient(
    380px circle at var(--glow-x) var(--glow-y),
    color-mix(in srgb, var(--accent) 13%, transparent),
    transparent 62%
  );
}

/* A cooler wash pinned to the top edge, so the page has a light source even
   before the pointer moves and on touch, where there is no pointer at all. */
.glow-edge{
  background:
    radial-gradient(120% 62% at 50% -18%,
      color-mix(in srgb, var(--accent-2, var(--accent)) 15%, transparent),
      transparent 70%),
    radial-gradient(80% 46% at 100% 0%,
      color-mix(in srgb, var(--accent) 8%, transparent),
      transparent 66%);
}

/* Content sits above both layers. */
body > *:not(.glow-cursor):not(.glow-edge){ position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce){
  /* The glow stays — it is the identity. It just stops chasing the cursor. */
  .glow-cursor{ opacity: .65; }
}
