/* plai.sh. Chakra Petch is reserved for Plai's own UI (the HUD, the
   wordmark, key caps); everything else uses the system sans. */
@font-face {
  font-family: "Chakra Petch";
  src: url("fonts/ChakraPetch-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("fonts/ChakraPetch-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #07090d;
  --surface: #0e1218;
  --surface-2: #141a22;
  --line: #1e2631;
  --control: #5f7489;
  --text: #eef2f6;
  --soft: #c9d2db;
  --muted: #a3afbb;
  --amber: #f4b942;
  --cyan: #5cd6e3;
  --green: #86d99f;
  --hud: rgba(24, 30, 40, 0.99);
  --hud-line: rgba(150, 170, 190, 0.25);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hud-font: "Chakra Petch", var(--sans);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
kbd {
  display: inline-block; min-width: 1.6em; padding: 0.2em 0.45em; margin: 0 0.08em;
  font: 600 0.8em/1.2 var(--hud-font); text-align: center; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--control); border-bottom-width: 2px; border-radius: 5px;
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 8px 14px; background: var(--amber); color: var(--bg); font-weight: 600; border-radius: 6px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: calc(820px + 2 * var(--gutter)); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 10px;
  font: 600 16px/1 var(--sans); color: var(--bg); background: var(--amber); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, transform 0.15s;
}
.btn:hover { color: var(--bg); background: #ffc95c; }
.btn:active { transform: translateY(1px); }
.btn.ghost { color: var(--text); background: transparent; border-color: var(--control); }
.btn.ghost:hover { background: var(--surface-2); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Hero: the page is your screen */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  padding: max(20px, env(safe-area-inset-top)) var(--gutter) clamp(32px, 7vh, 72px);
}
.scenes { position: absolute; inset: 0; z-index: -1; background: #0a0d12; }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.scene.is-on { opacity: 1; }
.scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 9, 13, 0.94) 0%, rgba(7, 9, 13, 0.72) 40%, rgba(7, 9, 13, 0.12) 75%), linear-gradient(0deg, rgba(7, 9, 13, 0.7) 0%, transparent 35%); }

.game { background: radial-gradient(40% 50% at 70% 45%, #3c5d6e 0%, transparent 70%), radial-gradient(60% 40% at 60% 90%, #2c3a2a 0%, transparent 70%), linear-gradient(180deg, #1c2a36 0%, #33434c 45%, #1e2622 60%, #11150f 100%); }
.game .horizon { position: absolute; left: 0; right: 0; top: 52%; height: 22%; background: linear-gradient(180deg, #2a3530, #151a16); clip-path: polygon(0 40%, 14% 20%, 30% 35%, 48% 5%, 63% 30%, 80% 12%, 100% 28%, 100% 100%, 0 100%); }
.game .cross { position: absolute; left: 70%; top: 44%; width: 34px; height: 34px; transform: translate(-50%, -50%); }
.game .cross::before, .game .cross::after { content: ""; position: absolute; background: rgba(255, 255, 255, 0.85); }
.game .cross::before { left: 16px; top: 0; width: 2px; height: 34px; clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%, 0 65%, 100% 65%, 100% 100%, 0 100%); }
.game .cross::after { top: 16px; left: 0; width: 34px; height: 2px; clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%); }
.game .compass { position: absolute; left: 70%; top: 96px; transform: translateX(-50%); display: flex; gap: 38px; font: 600 13px var(--hud-font); letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.65); }
.game .hp { position: absolute; right: var(--gutter); bottom: 100px; width: 220px; height: 7px; background: rgba(255, 255, 255, 0.18); }
.game .hp i { display: block; width: 72%; height: 100%; background: rgba(255, 255, 255, 0.85); }
.game .ammo { position: absolute; right: var(--gutter); bottom: 36px; font: 600 42px/1 var(--hud-font); color: rgba(255, 255, 255, 0.88); }
.game .ammo small { font-size: 21px; color: rgba(255, 255, 255, 0.55); }
.film { background: radial-gradient(50% 50% at 60% 70%, #4a2a3a 0%, transparent 70%), #130d12; }
.film::before, .film::after { content: ""; position: absolute; left: 0; right: 0; height: 10%; background: #000; z-index: 1; }
.film::before { top: 0; } .film::after { bottom: 0; }
.film .sun { position: absolute; left: 72%; top: 42%; width: 42vmax; height: 42vmax; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(214, 140, 80, 0.85) 0%, rgba(214, 140, 80, 0) 65%); }
.film .subtitle { position: absolute; left: 70%; bottom: 17%; z-index: 2; transform: translateX(-50%); width: max-content; max-width: 90vw; font: 500 clamp(16px, 1.8vw, 26px) var(--sans); color: #fff; text-shadow: 0 2px 6px #000; }
.film .progress { position: absolute; left: 50%; right: var(--gutter); bottom: 4%; z-index: 2; height: 4px; background: rgba(255, 255, 255, 0.25); }
.film .progress i { display: block; width: 38%; height: 100%; background: #e9eef3; }
.work { background: #0f1319; }
.work .editor { position: absolute; left: 46%; right: 0; top: 0; bottom: 0; background: #151a22; border-left: 1px solid #232b37; }
.work .tabbar { height: 36px; background: #10141b; border-bottom: 1px solid #232b37; }
.work .lines { display: grid; gap: 14px; padding: 48px 40px; }
.work .lines i { display: block; height: 11px; border-radius: 6px; opacity: 0.55; }

.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.hud-anchor { display: grid; gap: 16px; width: min(420px, 100%); }
.strip-slot { height: 58px; }
/* The strip lives in a zero-height sticky dock so it stays on screen for the
   whole page, starting exactly where the hero reserves its slot. */
.dock { position: sticky; top: max(20px, env(safe-area-inset-top)); z-index: 30; height: 0; }
.dock .strip { position: absolute; top: 0; left: var(--gutter); width: min(420px, calc(100% - 2 * var(--gutter))); height: 58px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8); }
.strip {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%;
  padding: 15px 20px; border: 1px solid var(--hud-line); border-left: 5px solid var(--amber); border-radius: 10px;
  background: var(--hud); color: var(--text); font-family: var(--hud-font); text-align: left; cursor: pointer;
  animation: ping 2.4s ease-out infinite; transition: opacity 0.2s;
}
.strip b { font-size: 19px; font-weight: 600; }
.strip span { font-size: 15px; color: var(--muted); }
.strip:hover { border-color: rgba(150, 170, 190, 0.45); border-left-color: var(--amber); }
.strip.calm { border-left-color: var(--cyan); animation: none; }
@keyframes ping { 0% { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8), 0 0 0 0 rgba(244, 185, 66, 0.45); } 70%, 100% { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8), 0 0 0 14px rgba(244, 185, 66, 0); } }
.callout { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 0 24px; font-size: 15px; line-height: 1.5; color: var(--soft); transition: opacity 0.2s; }
.callout svg { flex: none; width: 30px; height: 36px; color: var(--amber); }
.callout b { color: var(--amber); font-weight: 600; }
.callout .try, .callout .tap { color: var(--muted); white-space: nowrap; }
.callout .tap { display: none; }
.topnav { flex: none; display: flex; align-items: center; gap: 28px; font-size: 15px; }
.topnav a { color: var(--muted); text-decoration: none; }
.topnav a:hover { color: var(--text); }
.topnav .brand { order: 1; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text) !important; font: 600 22px/1 var(--hud-font); letter-spacing: 0.02em; text-decoration: none; }
.brand svg { flex: none; width: 28px; height: 28px; }

.pitch { max-width: 760px; transition: opacity 0.2s; }
.scene-label { display: inline-block; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.scene-label b { color: var(--text); }
.pitch h1 { margin-bottom: 20px; font-size: clamp(38px, 6.4vw, 88px); line-height: 1; letter-spacing: -0.035em; }
.lead { max-width: 34em; margin-bottom: 28px; font-size: clamp(17px, 1.6vw, 20px); color: var(--soft); }
.join { display: flex; gap: 10px; max-width: 540px; }
.join input, .followup input[type="text"] {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 16px;
  font: 400 17px var(--sans); color: var(--text); background: rgba(10, 14, 20, 0.88);
  border: 1px solid var(--control); border-radius: 10px;
}
.join input::placeholder { color: #8391a0; }
.join .btn { min-height: 52px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.form-status.err { color: #ff9b9b; }
.meta { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.meta a { color: var(--muted); }
.meta a:hover { color: var(--text); }

.followup { max-width: 620px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(14, 18, 24, 0.92); }
.followup-title { color: var(--soft); font-size: 16px; }
.followup-title b { color: var(--text); }
.followup fieldset { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.followup legend, .field-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--soft); }
.followup input[type="text"] { width: 100%; min-height: 46px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--control); border-radius: 999px; font-size: 15px; color: var(--text); cursor: pointer; transition: background-color 0.12s, border-color 0.12s; }
.chip input:checked + span { background: rgba(92, 214, 227, 0.16); border-color: var(--cyan); }
.chip input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.followup-actions { display: flex; gap: 10px; margin-top: 16px; }

.hud-open .strip, .hud-open .callout { opacity: 0; }
.hud-scrim { position: fixed; inset: 0; z-index: 35; background: rgba(7, 9, 13, 0.72); opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0s 0.2s; }
.hud-open .hud-scrim { opacity: 1; visibility: visible; transition: opacity 0.2s; }

/* Expanded HUD */
.hud {
  position: fixed; z-index: 40; top: max(20px, env(safe-area-inset-top)); left: var(--gutter);
  width: min(820px, calc(100% - 2 * var(--gutter))); max-height: calc(100svh - 40px);
  display: flex; flex-direction: column; padding: 20px 24px 14px;
  background: var(--hud); border: 1px solid var(--hud-line); border-left: 5px solid var(--amber); border-radius: 12px;
  box-shadow: 0 40px 100px -40px #000; font-family: var(--hud-font); color: var(--text);
  opacity: 0; visibility: hidden; transform: scale(0.97); transform-origin: top left;
  transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
}
.hud.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s, transform 0.2s; }
.hud-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; }
.hud-head b { font-size: 21px; font-weight: 600; }
.hud-head span { font-size: 14px; color: var(--amber); }
.hud-close { margin-left: auto; padding: 4px 10px; font: 600 13px var(--hud-font); color: var(--muted); background: none; border: 1px solid var(--hud-line); border-radius: 6px; cursor: pointer; }
.hud-close:hover { color: var(--text); }
.roster { margin: 0 0 12px; padding: 0; list-style: none; font-size: 15px; }
.roster button { display: grid; grid-template-columns: 14px 1fr 140px 100px; align-items: center; width: 100%; padding: 6px 10px; border: 0; border-radius: 6px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.roster button:hover { background: rgba(255, 255, 255, 0.04); }
.roster button[aria-current="true"] { background: rgba(255, 255, 255, 0.07); box-shadow: inset 3px 0 0 #cfd8e2; }
.roster i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.roster small { padding-right: 14px; font-size: 13px; text-align: right; color: #8e9dab; }
.roster em { font-style: normal; text-align: right; }
.st-n { color: var(--amber); } .st-w { color: var(--cyan); } .st-d { color: var(--green); }
.hud.calm { border-left-color: var(--cyan); }
.hud-head span.calm { color: var(--cyan); }
.chat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 10px; margin-bottom: 6px; border-top: 1px solid var(--hud-line); }
.chat-head b { font-size: 19px; font-weight: 600; }
.chat-head span { font-size: 13px; color: #8fb8c4; }
.convo {
  flex: 1 1 auto; min-height: 120px; max-height: 44vh; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 10px; padding: 12px 4px 0 0; margin-bottom: 12px;
  font-size: 15px; line-height: 1.5;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28px); mask-image: linear-gradient(to bottom, transparent 0, #000 28px);
}
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 8px; }
.bubble p { margin: 0 0 6px; } .bubble p:last-child { margin: 0; }
.bubble.agent { align-self: flex-start; background: rgba(58, 98, 145, 0.38); border-left: 3px solid transparent; }
.bubble.agent.unread { border-left-color: var(--cyan); }
.bubble.you { align-self: flex-end; background: rgba(90, 104, 122, 0.45); }
.bubble .who { margin-bottom: 4px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #aebccb; }
.bubble code { padding: 1px 5px; border-radius: 4px; background: rgba(0, 0, 0, 0.35); font: 13px var(--mono); }
.bubble pre { margin: 6px 0; padding: 8px 12px; overflow-x: auto; border-radius: 6px; background: rgba(0, 0, 0, 0.4); font: 13px/1.45 var(--mono); color: #cfe3ff; }
.working { font-size: 13px; color: var(--cyan); }
.composer { display: flex; gap: 10px; }
.composer input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; font: 400 16px var(--hud-font); color: var(--text); background: rgba(10, 16, 24, 0.9); border: 1px solid var(--control); border-radius: 8px; }
.composer button { flex: none; padding: 0 16px; border: 0; border-radius: 8px; background: var(--amber); color: #0b1016; font: 600 15px var(--hud-font); cursor: pointer; }
.hud-note { min-height: 20px; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.hud-note.ok { color: var(--green); } .hud-note.err { color: #ff9b9b; }
.hud-keys { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--hud-line); font-size: 13px; color: #8e9dab; }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line); }
.kicker { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.kicker.amber { color: var(--amber); }
.section h2 { max-width: 22ch; margin-bottom: 20px; font-size: clamp(30px, 4.2vw, 50px); letter-spacing: -0.03em; }
.body { max-width: 38em; color: var(--soft); font-size: 18px; }
.note { max-width: 70ch; margin: 18px 0 0; font-size: 15px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin: 48px 0 0; padding: 0; list-style: none; }
.steps h3 { margin: 22px 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }
.mini { display: flex; align-items: center; justify-content: center; height: 150px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(70% 90% at 70% 20%, #1d2b38 0%, transparent 70%), var(--surface); overflow: hidden; }
.mini-strip { display: flex; justify-content: space-between; align-items: center; gap: 18px; width: min(300px, 100%); padding: 12px 16px; border: 1px solid var(--hud-line); border-left: 4px solid var(--amber); border-radius: 8px; background: var(--hud); font-family: var(--hud-font); }
.mini-strip.calm { border-left-color: var(--cyan); }
.mini-strip b { font-weight: 600; font-size: 16px; }
.mini-strip i { font-style: normal; font-size: 13px; color: var(--muted); }
.mini-reply { display: grid; gap: 8px; width: min(300px, 100%); font-family: var(--hud-font); }
.mini-reply span { padding: 10px 14px; border: 1px solid rgba(255, 143, 143, 0.6); border-radius: 8px; background: rgba(10, 16, 24, 0.9); font-size: 14px; }
.mini-reply i { font-style: normal; font-size: 13px; color: #ff9b9b; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; gap: clamp(16px, 2.4vw, 28px); margin: 56px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); list-style: none; }
.facts li { color: var(--muted); font-size: 15px; }
.facts b { display: block; margin-bottom: 4px; color: var(--text); font-weight: 600; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--surface); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; }

.legend { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 14px; align-items: baseline; max-width: 720px; margin: 4px 0 32px; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.legend li { display: contents; }
.legend .reply { justify-self: start; }
.agent-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.agent-card { padding: 22px 22px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.agent-card h3 { margin-bottom: 10px; font-size: 20px; letter-spacing: -0.01em; }
.agent-card ul { margin: 0; padding: 0; list-style: none; }
.agent-card li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.surface { font-size: 15px; color: var(--soft); }
.surface small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.reply { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 8px; border: 1px solid; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.reply::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.reply.full { color: var(--green); border-color: rgba(134, 217, 159, 0.4); background: rgba(134, 217, 159, 0.08); }
.reply.new { color: var(--amber); border-color: rgba(244, 185, 66, 0.4); background: rgba(244, 185, 66, 0.08); }
.reply.view { color: var(--muted); border-color: rgba(163, 175, 187, 0.35); }
.reply.view::before { background: none; border: 1.5px solid currentColor; box-sizing: border-box; }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split .btn { margin-top: 8px; }
.terms { margin: 0; }
.terms div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.terms div:first-child { padding-top: 6px; }
.terms dt { margin-bottom: 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.terms dd { margin: 0; color: var(--soft); }

.faq { max-width: 820px; margin-top: 28px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { max-width: 64ch; margin: 0; padding: 0 0 22px; color: var(--muted); }

/* Footer */
.site-footer { padding: 32px 0 max(40px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* Plain pages: privacy, waitlist confirmation, 404 */
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(7, 9, 13, 0.9); backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.eyebrow.amber { color: var(--amber); }
.page { max-width: calc(760px + 2 * var(--gutter)); margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(64px, 8vw, 112px); }
.page.narrow { max-width: calc(640px + 2 * var(--gutter)); }
.page h1 { margin-bottom: 14px; font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.03em; }
.page h2 { margin: 44px 0 12px; font-size: 24px; }
.page p, .page li { color: var(--soft); }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: 6px; }
.page .updated { font-size: 15px; color: var(--muted); }
.page .summary { margin: 28px 0 8px; padding: 20px 22px; border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: 12px; background: var(--surface); }
.page .summary ul { margin: 0; }
.page .table-scroll { margin: 16px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.page td, .page th { font-size: 15px; }
.page td code { font: 0.92em var(--mono); color: var(--text); }

/* Responsive */
@media (max-width: 1000px) {
  .topnav a:not(.brand) { display: none; }
  .steps, .facts { grid-template-columns: 1fr; }
  .steps { max-width: 560px; }
  .split { grid-template-columns: 1fr; }
  .agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game .compass, .game .hp, .game .ammo, .film .progress { display: none; }
}
@media (max-width: 720px) {
  .hero { justify-content: flex-start; gap: 28px; padding-top: max(16px, env(safe-area-inset-top)); }
  .hero-top { gap: 12px; }
  .topnav { height: 52px; }
  .hud-anchor { width: 100%; }
  .dock { top: max(16px, env(safe-area-inset-top)); }
  .dock .strip { width: calc(100% - 2 * var(--gutter) - 96px); height: 52px; padding: 12px 16px; }
  .strip-slot { height: 52px; }
  .strip b { font-size: 17px; }
  .strip span { display: none; }
  .callout .try { display: none; }
  .callout .tap { display: inline; }
  .callout { margin-left: 12px; }
  .scrim { background: linear-gradient(180deg, rgba(7, 9, 13, 0.55) 0%, rgba(7, 9, 13, 0.82) 45%, rgba(7, 9, 13, 0.96) 100%); }
  .game .cross { left: 84%; top: 34%; }
  .film .subtitle { left: 50%; bottom: 58%; }
  .work .editor { left: 30%; }
  .pitch { margin-top: auto; }
  .join { flex-direction: column; }
  .followup { padding: 16px; }
  .hud { top: 12px; left: 12px; width: calc(100% - 24px); max-height: calc(100svh - 24px); padding: 16px 16px 12px; }
  .roster button { grid-template-columns: 14px 1fr auto; }
  .roster small { display: none; }
  .convo { max-height: none; }
  .hud-keys, .hud .k { display: none; }
  .agent-grid { grid-template-columns: 1fr; }
  .stack-table thead { display: none; }
  .stack-table tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .stack-table tbody tr:last-child { border-bottom: 0; }
  .stack-table td { display: block; padding: 2px 0; border: 0; }
  .stack-table td::before { content: attr(data-label); display: block; margin-top: 6px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
  .stack-table td:first-child::before { display: none; }
}
@media (max-width: 380px) {
  .strip span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
