/* Token Tollbooth website. Night theme from the desktop bar's scene. No external fonts. */
:root {
  --bg: #070b1c;
  --bg-2: #0b1230;
  --panel: #10162e;
  --panel-2: #151d3a;
  --line: #24304a;
  --line-2: #2a3150;
  --text: #e8f1fb;
  --muted: #b4c1d1;
  --muted-2: #93a6be;
  --gold: #ffc86e;
  --gold-2: #f2c14e;
  --red: #ff4d4d;
  --amber: #ffb020;
  --green: #3ee07a;
  --purple: #a98bff;
  --purple-soft: #d9ccff;
  --purple-bg: #2a2148;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
  --radius: 16px;
  --gutter: 16px;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffe0a8; }
code, pre { font-family: var(--mono); }
code { font-size: 0.92em; background: rgba(255, 255, 255, 0.06); padding: 0.1em 0.35em; border-radius: 5px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: #1a1206; padding: 8px 14px; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font: 700 0.78rem/1.2 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9em;
}

/* ---- Header ----------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 20;
  background: rgba(7, 11, 28, 0.92);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.05rem; letter-spacing: 0.01em; }
.brand:hover { color: var(--text); }
.nav-links { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 4px; margin: 0; padding: 0; }
.nav-links a { display: inline-block; padding: 6px 10px; color: var(--muted); text-decoration: none; border-radius: 8px; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
@media (min-width: 900px) {
  .site-header { position: sticky; top: 0; backdrop-filter: blur(10px); background: rgba(7, 11, 28, 0.8); }
}
@media (max-width: 719px) {
  .header-row { padding-block: 10px 6px; }
  .nav-links { margin-inline: -10px; }
  .nav-links a { padding: 6px 8px; font-size: 0.9rem; }
}
section[id] { scroll-margin-top: 72px; }

/* ---- Hero ------------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
  min-height: clamp(560px, 80vh, 760px);
  display: flex;
  align-items: flex-start;
  isolation: isolate;
}
.hero-scene { position: absolute; inset: 0; z-index: -1; }
/* A soft pool of night behind the copy so it reads over the bridge and skyline. */
.hero-scene::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 48% 46% at 27% 40%, rgba(7, 11, 28, 0.78), rgba(7, 11, 28, 0.45) 55%, rgba(7, 11, 28, 0) 100%);
}
.hero-canvas { width: 100%; height: 100%; }
.hero-copy { padding-block: clamp(40px, 9vh, 104px) 40px; }
.hero-copy > * { max-width: 36rem; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.25em;
  text-shadow: 0 2px 24px rgba(5, 8, 26, 0.9);
}
.tagline {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  line-height: 1.35;
  font-weight: 650;
  color: #fff3dc;
  text-shadow: 0 2px 16px rgba(5, 8, 26, 0.95);
}
.pitch { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 700 clamp(0.95rem, 1.6vw, 1.1rem)/1.4 var(--mono); color: var(--gold); text-shadow: 0 1px 12px rgba(5, 8, 26, 1); margin-bottom: 0.9em; }
.pitch span:nth-child(2) { color: #ffb020; }
.pitch span:nth-child(3) { color: #8af0b0; }
.lede { color: var(--muted); font-size: 1.05rem; text-shadow: 0 1px 12px rgba(5, 8, 26, 1); max-width: 31rem; }
.hero-note { font-size: 0.9rem; color: var(--muted-2); text-shadow: 0 1px 8px rgba(5, 8, 26, 1); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1.2em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 12px; font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #1a1206; box-shadow: 0 6px 30px -8px rgba(255, 200, 110, 0.6); }
.btn-primary:hover { background: #ffd690; color: #1a1206; }
.btn-ghost { background: rgba(7, 11, 28, 0.55); color: var(--text); border-color: rgba(255, 200, 110, 0.55); }
.btn-ghost:hover { color: var(--text); border-color: var(--gold); background: rgba(7, 11, 28, 0.8); }

/* Phones: the copy sits on the sky colour and the scene gets its own band underneath. */
@media (max-width: 719px) {
  .hero { display: block; min-height: 0; }
  .hero-copy { padding-block: 36px 8px; }
  .hero-scene { position: relative; inset: auto; z-index: 0; height: 300px; }
  .hero-scene::after { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---- Demo ------------------------------------------------------------------------------- */
.demo { padding-block: clamp(48px, 7vw, 88px); background: linear-gradient(#05081a, var(--bg-2) 30%, var(--bg) 80%); }
.section-head { max-width: 46rem; margin-bottom: 32px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }

.booth {
  --glow: rgba(62, 224, 122, 0.4);
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(200px, 0.85fr);
  min-height: 230px;
  border-radius: var(--radius);
  border: 1px solid var(--glow);
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 18px 60px -20px var(--glow);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.booth[data-level="amber"] { --glow: rgba(255, 176, 32, 0.5); }
.booth[data-level="red"] { --glow: rgba(255, 77, 77, 0.6); }
.booth[data-level="locked"] { --glow: rgba(169, 139, 255, 0.65); }
.booth[data-level="off"] { --glow: rgba(91, 103, 120, 0.5); }
.booth-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }

.booth-info { padding: 16px 16px 16px 18px; }
.canopy { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tool-name { font: 700 0.95rem/1.2 var(--mono); color: var(--text); text-shadow: 0 1px 6px #000; }
.demo-tag {
  font: 600 0.65rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 2px 4px; margin-left: 4px; vertical-align: 2px;
}
.signal {
  display: inline-flex; gap: 3px; padding: 3px 5px;
  background: #05080d; border: 1px solid #2a3342; border-radius: 999px;
}
.lamp { width: 11px; height: 11px; border-radius: 50%; border: 1px solid #0b0f17; transition: background-color 0.25s, box-shadow 0.25s; }
.lamp-red { background: #3a1416; }
.lamp-amber { background: #3a2a0e; }
.lamp-green { background: #0f3020; }
.booth[data-level="red"] .lamp-red { background: var(--red); box-shadow: 0 0 10px var(--red); border-color: #ff9a9a; animation: lamp-flash 1.2s steps(1, end) infinite; }
.booth[data-level="amber"] .lamp-amber { background: var(--amber); box-shadow: 0 0 10px var(--amber); border-color: #ffd47a; }
.booth[data-level="green"] .lamp-green { background: var(--green); box-shadow: 0 0 10px var(--green); border-color: #8af0b0; }
.booth[data-level="locked"] .signal { border-color: var(--purple); }
/* Locked: steady red lamp (a toll alert blinks instead) */
.booth[data-level="locked"] .lamp-red { background: var(--red); box-shadow: 0 0 10px var(--red); border-color: #ff9a9a; }
@keyframes lamp-flash { 50% { background: #c93a3a; box-shadow: none; } }

.tool-status, .tool-extra { font: 0.82rem/1.4 var(--mono); color: var(--muted); margin: 0 0 6px; text-shadow: 0 1px 6px #000; }
.tool-status { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #75ddba; flex: none; }
.booth[data-level="red"] .tool-extra { color: #ff8993; }
.booth[data-level="amber"] .tool-extra { color: #e6bd78; }
.booth[data-level="locked"] .tool-extra { color: #c6b4ff; }
.toll-alert {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 7px; margin: 6px 0 4px;
  padding: 8px 10px; border-radius: 10px;
  background: rgba(58, 16, 22, 0.88); border: 1px solid var(--red);
  box-shadow: 0 0 24px -6px rgba(255, 77, 77, 0.8);
}
.toll-alert-label { font: 800 0.8rem/1 var(--mono); letter-spacing: 0.1em; color: #ffd0d0; animation: alert-flash 1.2s steps(1, end) infinite; }
.toll-alert.calm { box-shadow: none; }
.toll-alert.calm .toll-alert-label { animation: none; color: #ff8993; }
@keyframes alert-flash { 50% { color: var(--red); } }
.toll-alert-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.alert-btn {
  font: 700 0.82rem/1 var(--sans); min-height: 36px; padding: 8px 12px; border-radius: 8px; cursor: pointer;
  color: var(--text); background: #1a2236; border: 1px solid #44506a;
}
.alert-btn:hover { border-color: var(--text); }
.alert-btn.alert-go { background: var(--red); border-color: #ff9a9a; color: #fff; }
.toll-alert:not(.calm) .alert-go { animation: go-pulse 1.2s ease-in-out infinite; }
@keyframes go-pulse { 50% { box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.35); } }
.lock-badge {
  display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 0;
  padding: 4px 9px; border-radius: 6px;
  background: var(--purple-bg); border: 1px solid var(--purple); color: var(--purple-soft);
  font: 700 0.78rem/1.2 var(--mono); letter-spacing: 0.02em;
  box-shadow: 0 0 22px -4px rgba(169, 139, 255, 0.7);
  animation: badge-in 0.35s ease-out;
}
@keyframes badge-in { from { opacity: 0; transform: translateY(4px); } }

.dials { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 16px 8px; }
.dial { margin: 0; width: 128px; text-align: center; }
.dial svg {
  width: 100%; height: auto; overflow: visible;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 8, 20, 0.82) 0 56%, rgba(5, 8, 20, 0) 64%);
}
.dial .track { fill: none; stroke: #263243; stroke-width: 14; stroke-linecap: round; }
.dial .value {
  fill: none; stroke: #75ddba; stroke-width: 14; stroke-linecap: round;
  stroke-dasharray: 100 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.3s ease, opacity 0.2s;
}
.dial .value.empty { opacity: 0; }
.dial .ticks line { stroke: #4a5a70; stroke-width: 1; }
.dial .pct { font: 700 17px var(--mono); text-anchor: middle; fill: #75ddba; }
.dial .cap { font: 600 7.5px var(--mono); text-anchor: middle; fill: #a3b3c7; letter-spacing: 0.4px; }
.dial .lock { display: none; fill: var(--purple); }
.dial.is-locked .lock { display: inline; }
.dial.is-locked .pct { display: none; }
.dial.is-locked svg { filter: drop-shadow(0 0 10px rgba(169, 139, 255, 0.55)); }
.dial figcaption { font: 600 0.75rem/1.2 var(--mono); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; text-shadow: 0 1px 6px #000; }

.resets {
  align-self: center;
  margin: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(7, 11, 28, 0.74);
  border: 1px solid rgba(42, 49, 80, 0.8);
}
.resets-title { font: 700 0.7rem/1 var(--mono); letter-spacing: 0.18em; color: #7f90a8; margin-bottom: 10px; }
.resets-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.resets-list li { display: grid; grid-template-columns: 8px 2.4em 3.4em 1fr; align-items: center; gap: 8px; font: 0.82rem/1.2 var(--mono); }
.resets-list .tone { width: 8px; height: 8px; border-radius: 50%; background: #75ddba; }
.r-name { color: var(--muted); font-weight: 700; }
.r-at { color: #a3b3c7; white-space: nowrap; }

.signal-reason { margin: 14px 2px 0; min-height: 1.6em; font: 0.95rem/1.5 var(--mono); color: var(--muted); }

@media (max-width: 899px) {
  .booth { grid-template-columns: minmax(0, 1fr); }
  /* The scene becomes a band behind the name and status; dials and resets sit below it. */
  .booth-canvas { bottom: auto; height: 190px; }
  .booth-info { min-height: 190px; }
  .dials { background: var(--bg); border-top: 1px solid var(--line-2); flex-wrap: wrap; gap: 10px; padding: 18px 8px 4px; }
  .dial { width: min(30%, 120px); }
  .resets { margin: 0; border-radius: 0; background: var(--bg); border: 0; padding: 12px 18px 18px; }
}

/* Controls */
.controls { margin-top: 26px; display: grid; gap: 22px; }
.presets { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font: 600 0.92rem/1 var(--sans); color: var(--text);
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 11px 16px; min-height: 44px; cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.chip:hover { border-color: var(--gold); background: var(--panel-2); }
.sliders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; }
@media (max-width: 719px) { .sliders { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 12px; }
.field label { font-weight: 600; grid-row: 1; grid-column: 1; }
.field .hint { color: var(--muted-2); font-weight: 400; }
.field output { grid-row: 1; grid-column: 2; font: 700 0.95rem var(--mono); color: var(--gold); }
.field input[type="range"] { grid-row: 2; grid-column: 1 / -1; width: 100%; margin: 6px 0 0; accent-color: var(--gold); min-height: 28px; cursor: pointer; }

.tool-state { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 14px; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tool-state legend { padding: 0 6px; font-weight: 600; }
.tool-state label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 8px 14px 8px 10px; min-height: 44px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--panel);
}
.tool-state label:has(input:checked) { border-color: var(--gold); background: var(--panel-2); }
.tool-state input { accent-color: var(--gold); width: 18px; height: 18px; margin: 0; }

/* ---- How it works ------------------------------------------------------------------------ */
.how, .features, .privacy, .install, .faq { padding-block: clamp(52px, 7vw, 88px); }
.how { background: var(--bg); border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
@media (max-width: 819px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 20px; overflow: hidden; }
.steps li::after {
  /* a gold road edge line along the bottom of each step */
  content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 3px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 18px, transparent 18px 30px); opacity: 0.55;
}
.steps p { color: var(--muted); margin: 0; }
.step-num {
  display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px;
  border-radius: 50%; background: rgba(255, 200, 110, 0.12); border: 1px solid rgba(255, 200, 110, 0.6);
  color: var(--gold); font: 700 1.05rem var(--mono);
}

/* ---- Handoffs ---------------------------------------------------------------------------- */
.handoff { background: linear-gradient(160deg, #120f2e 0%, var(--bg) 60%); border-top: 1px solid var(--line); padding-block: clamp(52px, 7vw, 88px); }
.handoff-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px 56px; align-items: center; }
@media (max-width: 899px) { .handoff-grid { grid-template-columns: minmax(0, 1fr); } }
.handoff .section-head { margin-bottom: 22px; }
.fineprint { margin-top: 20px; font-size: 0.9rem; color: var(--muted-2); border-left: 3px solid var(--line-2); padding-left: 14px; }
.handoff-figure { margin: 0; }
.handoff-figure figcaption { margin-top: 12px; font-size: 0.88rem; color: var(--muted-2); text-align: center; }

.handoff-card {
  position: relative;
  background: linear-gradient(180deg, #141a36, #0e1329);
  border: 1px solid #3a3470;
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  box-shadow: 0 24px 70px -28px rgba(169, 139, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.handoff-card::before {
  /* a gold road line along the top edge */
  content: ""; position: absolute; left: 20px; right: 20px; top: -1px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 16px, transparent 16px 26px); opacity: 0.8;
}
.hc-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-bottom: 14px; }
.hc-kicker { margin: 0; font: 700 0.8rem/1.2 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.hc-from { margin: 0; display: inline-flex; align-items: center; gap: 7px; font: 0.8rem/1.3 var(--mono); color: #ff8993; }
.hc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); }
.hc-label { margin: 12px 0 5px; font: 700 0.68rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #7f90a8; }
.hc-subject {
  margin: 0; padding: 10px 12px; border-radius: 10px; background: #070b1c; border: 1px solid var(--line-2);
  font: 600 0.86rem/1.45 var(--mono); color: var(--text); overflow-wrap: anywhere;
}
.hc-agents { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.hc-agents span { font: 600 0.75rem/1 var(--mono); padding: 6px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.hc-agents span.on { border-color: var(--gold); color: var(--gold); background: rgba(255, 200, 110, 0.08); }
.hc-setup { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: rgba(62, 224, 122, 0.07); border: 1px solid rgba(62, 224, 122, 0.35); font: 0.84rem/1.5 var(--mono); color: #bfeccf; }
.hc-setup b { color: #e9fff1; }
.hc-fields { margin: 14px 0 0; display: grid; gap: 7px; }
.hc-fields div { display: grid; grid-template-columns: 5.2em 1fr; gap: 10px; font-size: 0.9rem; }
.hc-fields dt { font: 700 0.72rem/1.9 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #7f90a8; }
.hc-fields dd { margin: 0; color: var(--muted); }
.hc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.mock-btn { font: 700 0.82rem/1 var(--sans); padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line-2); color: var(--muted); background: var(--panel-2); }
.mock-btn.mock-primary { background: var(--gold); border-color: var(--gold); color: #1a1206; }
.btn-sm { min-height: 44px; padding: 9px 16px; font-size: 0.92rem; border-radius: 10px; cursor: pointer; font-family: var(--sans); }
.hc-copied { font: 0.85rem var(--mono); color: var(--green); }
.hc-note { margin: 14px 0 0; font-size: 0.86rem; color: var(--muted-2); }

/* The demo's handoff dialog */
.handoff-dialog { padding: 0; border: 0; background: transparent; color: var(--text); width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); }
.handoff-dialog::backdrop { background: rgba(3, 5, 14, 0.72); }
.handoff-dialog[open] { animation: dialog-in 0.25s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }

/* ---- Features ---------------------------------------------------------------------------- */
.features { background: linear-gradient(var(--bg), var(--bg-2)); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 899px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.card-bar { background: linear-gradient(160deg, #161338 0%, var(--panel) 55%); border-color: #322a5c; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; margin-bottom: 14px; }
.card-head h3 { font-size: 1.4rem; margin: 0; }
.platforms { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.platforms span { font: 600 0.72rem/1 var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 9px; }
.ticks-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks-list li { position: relative; padding-left: 22px; color: var(--muted); }
.ticks-list li strong { color: var(--text); }
.ticks-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 12px; height: 3px; border-radius: 2px; background: var(--gold); }
.ticks-list li.credit { font-size: 0.92rem; color: var(--muted-2); }
.ticks-list li.credit::before { background: var(--purple); }
.locked-word { font-family: var(--mono); font-size: 0.88em; color: var(--purple-soft); background: var(--purple-bg); border: 1px solid var(--purple); border-radius: 5px; padding: 0 5px; white-space: nowrap; }

/* ---- Privacy ----------------------------------------------------------------------------- */
.privacy { background: var(--bg-2); border-block: 1px solid var(--line); }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 32px 48px; align-items: start; }
@media (max-width: 899px) { .privacy-grid { grid-template-columns: minmax(0, 1fr); } }
.privacy-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 599px) { .privacy-list { grid-template-columns: minmax(0, 1fr); } }
.privacy-list li { border-left: 3px solid var(--green); padding: 4px 0 4px 16px; }
.privacy-list li:nth-child(2) { border-color: var(--gold); }
.privacy-list li:nth-child(3) { border-color: var(--amber); }
.privacy-list li:nth-child(4) { border-color: var(--purple); }
.privacy-list h3 { font-size: 1.05rem; margin-bottom: 0.35em; }
.privacy-list p { color: var(--muted); margin: 0; }

/* ---- Install ----------------------------------------------------------------------------- */
.install { background: var(--bg); }
.install-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; }
@media (max-width: 899px) { .install-grid { grid-template-columns: minmax(0, 1fr); } }
.install .card p { color: var(--muted); }
.code {
  margin: 0 0 14px; padding: 16px 18px; overflow-x: auto;
  background: #05081a; border: 1px solid var(--line-2); border-radius: 12px;
  font-size: 0.88rem; line-height: 1.7; color: #e8f1fb;
}
.code code { background: none; padding: 0; font-size: inherit; }
.code .c { color: #8a9bb3; }
.small { font-size: 0.9rem; }
.watch { margin-top: 26px; color: var(--muted); }

/* ---- FAQ --------------------------------------------------------------------------------- */
.faq { background: linear-gradient(var(--bg), var(--bg-2)); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 44px 18px 4px; font-weight: 650; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font: 700 1.4rem/1 var(--mono); color: var(--gold);
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: #fff; }
.faq details p { color: var(--muted); padding: 0 4px 6px; }

/* ---- Footer ------------------------------------------------------------------------------ */
.site-footer { background: #05081a; border-top: 1px solid var(--line); padding-block: 36px 28px; color: var(--muted); font-size: 0.95rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); margin-bottom: 0.4em; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; }
.footer-links a { display: inline-block; padding: 6px 0; }
.disclaimer { margin-top: 22px; font-size: 0.85rem; color: var(--muted-2); }

/* ---- 404 --------------------------------------------------------------------------------- */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.lost h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.lost p { color: var(--muted); }
.lost .gate-art { margin: 0 auto 28px; }

/* ---- Motion ------------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Until the repo is public, the GitHub button is a label, not a link. */
.btn.is-soon { cursor: default; opacity: 0.9; }
.btn-primary.is-soon:hover { background: var(--gold); }
.footer-links .soon { opacity: 0.75; }
