/*
  Layout: one left-aligned editorial column (max 1180px). The hero pairs the pitch with a live
  "what you see / what our server sees" demo; Safety sits on an ink band; the footer is a link grid.
  The logo's blue→violet→magenta ribbon gradient is used once: on the hero demo's transit line.
*/
/* Fonts are served from this site (open-source, SIL OFL licence): no requests to any other company. */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/outfit-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/outfit-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/outfit-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/outfit-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/unbounded-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/unbounded-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
:root {
  --ink: #0f1235;          /* wordmark navy: headings, ink band */
  --paper: #f7f8fc;        /* page background, cool white */
  --surface: #ffffff;      /* raised panels */
  --line: #e2e5f1;         /* hairlines and borders */
  --muted: #5b6185;        /* secondary text */
  --fg: #171a3d;           /* body text */
  --blue: #1f6bff;         /* brand blue: links, primary buttons */
  --on-blue: #ffffff;      /* text on brand blue */
  --violet: #7b2ff7;
  --magenta: #e04ae4;
  --tint: #eef1ff;         /* icon wells */
  --band: #0f1235;         /* safety band background */
  --band-fg: #eef0ff;
  --band-muted: #a7acd3;
  --band-line: #2a2f63;
  --bubble-me: #1f6bff;
  --bubble-them: #eef1fa;
  --ok: #138a5b;
  --danger: #d63a3a;
  --shadow: 0 24px 60px -28px rgba(15, 18, 53, 0.35);

  --font-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
  --step-3: clamp(1.8rem, 1.4rem + 1.8vw, 2.8rem);
  --step-4: clamp(2.2rem, 1.5rem + 3.2vw, 4rem);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --radius-lg: 28px;
  --radius: 16px;
  --radius-sm: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eef0ff; --paper: #0b0d26; --surface: #14173a; --line: #262b58; --muted: #a2a7cc; --fg: #e4e7ff;
    --blue: #5b92ff; --on-blue: #07102e; --violet: #a173ff; --magenta: #ef7bf2; --tint: #1c2050;
    --band: #060819; --band-fg: #eef0ff; --band-muted: #a2a7cc; --band-line: #23285a;
    --bubble-me: #3a7bff; --bubble-them: #1f2350; --ok: #3ccf8e; --danger: #ff6b6b;
    --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #eef0ff; --paper: #0b0d26; --surface: #14173a; --line: #262b58; --muted: #a2a7cc; --fg: #e4e7ff;
  --blue: #5b92ff; --on-blue: #07102e; --violet: #a173ff; --magenta: #ef7bf2; --tint: #1c2050;
  --band: #060819; --band-fg: #eef0ff; --band-muted: #a2a7cc; --band-line: #23285a;
  --bubble-me: #3a7bff; --bubble-them: #1f2350; --ok: #3ccf8e; --danger: #ff6b6b;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: var(--step-4); line-height: 1.06; }
h2 { font-size: var(--step-3); line-height: 1.12; }
h3 { font-size: var(--step-1); line-height: 1.3; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 40rem; }
.section-head { display: grid; gap: 14px; align-content: start; max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }

/* ─── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 var(--step-0) / 1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--blue); color: var(--on-blue); }
.btn-primary:hover { background: color-mix(in srgb, var(--blue) 86%, #000); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ─── Header ──────────────────────────────────────── */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: auto; }
.brand span { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--fg); text-decoration: none; font-weight: 500; }
.nav-links a:hover { background: var(--tint); }
.nav .btn { min-height: 42px; padding: 0 18px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; margin: auto; }
@media (max-width: 880px) {
  .menu-btn { display: grid; place-items: center; }
  .nav-links, .nav .btn { display: none; }
  .site-header.open .nav-links {
    display: grid; position: absolute; left: 0; right: 0; top: 100%; padding: 12px var(--gutter) 20px;
    background: var(--paper); border-bottom: 1px solid var(--line); gap: 2px;
  }
  .site-header.open .nav-links a { padding: 12px 8px; font-size: 1.05rem; }
}

/* ─── Hero ────────────────────────────────────────── */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-copy .lede { max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.status { display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: var(--step--1); color: var(--muted); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 4px 0 0; color: var(--muted); font-size: var(--step--1); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--ok); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* Demo: phone + server log */
.demo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; min-width: 0; }
.phone {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 36px;
  padding: 14px; box-shadow: var(--shadow); width: min(100%, 380px); justify-self: center; z-index: 2;
}
.phone-top { display: flex; align-items: center; gap: 10px; padding: 6px 8px 12px; border-bottom: 1px solid var(--line); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: #fff; background: linear-gradient(140deg, #ff8a5c, #e04a8a); flex: none; }
.phone-top b { display: block; color: var(--ink); font-size: 0.98rem; line-height: 1.2; }
.phone-top small { color: var(--muted); font-size: 0.78rem; display: flex; align-items: center; gap: 5px; }
.phone-top small svg { width: 12px; height: 12px; }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 14px 4px 6px; min-height: 340px; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 18px; font-size: 0.94rem; line-height: 1.4; animation: pop 0.35s cubic-bezier(.2,.9,.3,1.2) both; }
.msg.them { align-self: flex-start; background: var(--bubble-them); color: var(--fg); border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--bubble-me); color: #fff; border-bottom-right-radius: 6px; }
.msg time { display: block; font-size: 0.7rem; opacity: 0.7; margin-top: 2px; text-align: right; }
.card-msg { align-self: stretch; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px dashed var(--line); font-size: 0.86rem; color: var(--muted); animation: pop 0.35s ease both; }
.card-msg svg { width: 20px; height: 20px; flex: none; }
.card-msg.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.card-msg b { color: var(--ink); font-weight: 600; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 18px; background: var(--bubble-them); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }

.transit { height: 34px; width: 3px; justify-self: center; border-radius: 3px; background: linear-gradient(180deg, var(--blue), var(--violet), var(--magenta)); position: relative; overflow: hidden; }
.transit::after { content: ''; position: absolute; left: 0; right: 0; height: 12px; background: var(--paper); opacity: 0.85; animation: flow 1.4s linear infinite; }

.server {
  background: var(--band); color: var(--band-fg); border-radius: 22px; padding: 16px 18px 14px;
  font-family: var(--font-mono); font-size: 0.74rem; line-height: 1.55; width: min(100%, 460px); justify-self: center;
  border: 1px solid var(--band-line); min-width: 0;
}
.server header { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 0.86rem; margin-bottom: 8px; }
.server header b { font-weight: 600; }
.server header span { color: var(--band-muted); font-size: 0.78rem; }
.log { display: grid; gap: 6px; min-height: 132px; align-content: start; }
.log-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; padding: 6px 8px; border-radius: 8px; background: color-mix(in srgb, var(--band-fg) 6%, transparent); animation: pop 0.35s ease both; }
.log-row .k { color: var(--band-muted); }
.log-row .v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-row .cipher { color: #c7a8ff; }
.server footer { margin-top: 10px; font-family: var(--font-body); color: var(--band-muted); font-size: 0.8rem; display: flex; gap: 8px; align-items: center; }
.server footer svg { width: 14px; height: 14px; flex: none; }

@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
@keyframes flow { from { top: -12px; } to { top: 34px; } }
@media (prefers-reduced-motion: reduce) {
  .msg, .card-msg, .log-row { animation: none; }
  .transit::after, .typing i { animation: none; }
}

/* ─── Features ────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(24px, 3vw, 40px); }
.feature { display: grid; gap: 10px; align-content: start; min-width: 0; }
.feature p { color: var(--muted); }
.icon { width: 48px; height: 48px; border-radius: 14px; background: var(--tint); color: var(--blue); display: grid; place-items: center; margin-bottom: 4px; }
.icon svg { width: 24px; height: 24px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* ─── Privacy split ───────────────────────────────── */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); display: grid; gap: 16px; align-content: start; min-width: 0; }
.panel h3 { display: flex; align-items: center; gap: 10px; }
.panel h3 svg { width: 24px; height: 24px; flex: none; }
.panel.locked h3 svg { color: var(--ok); }
.panel.kept h3 svg { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.ticks svg { width: 20px; height: 20px; margin-top: 3px; }
.locked .ticks svg { color: var(--ok); }
.kept .ticks svg { color: var(--muted); }
.ticks small { display: block; color: var(--muted); font-size: var(--step--1); }
.never { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; padding: 18px 22px; border-radius: var(--radius); background: var(--tint); color: var(--ink); font-weight: 500; }
.never span { display: inline-flex; align-items: center; gap: 8px; }
.never svg { width: 18px; height: 18px; color: var(--danger); }
@media (max-width: 760px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ─── Safety band ─────────────────────────────────── */
.band { background: var(--band); color: var(--band-fg); }
.band h2, .band h3 { color: var(--band-fg); }
.band .lede, .band p { color: var(--band-muted); }
.safety-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding-bottom: 26px; position: relative; }
.steps li::before {
  content: counter(step); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; border: 1.5px solid var(--band-line); color: var(--band-fg); background: var(--band);
  position: relative; z-index: 1;
}
.steps li:not(:last-child)::after { content: ''; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--band-line); }
.steps li:last-child::before { border-color: var(--ok); color: var(--ok); }
.steps h3 { font-size: var(--step-0); margin-top: 9px; }
.steps p { font-size: var(--step--1); margin-top: 4px; }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.tool { border: 1px solid var(--band-line); border-radius: var(--radius); padding: 18px; display: grid; gap: 6px; align-content: start; }
.tool .icon { background: color-mix(in srgb, var(--band-fg) 8%, transparent); color: var(--band-fg); }
.tool.sos .icon { background: #c62828; color: #fff; }
.note { margin-top: 28px; font-size: var(--step--1); display: flex; gap: 10px; align-items: flex-start; }
.note svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
@media (max-width: 900px) { .safety-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .tools { grid-template-columns: minmax(0, 1fr); } }

/* ─── Games ───────────────────────────────────────── */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 44%), 1fr)); gap: 10px; }
@media (max-width: 480px) { .game { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 10px; } .game .em { width: 36px; height: 36px; font-size: 1.1rem; } }
.game { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform 0.15s ease, border-color 0.15s ease; }
.game:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--game) 60%, var(--line)); }
.game .em { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; background: color-mix(in srgb, var(--game) 16%, transparent); }
.game b { display: block; color: var(--ink); font-weight: 600; line-height: 1.25; }
.game small { color: var(--muted); font-size: 0.82rem; line-height: 1.3; display: block; }
.fair { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fair div { display: grid; gap: 4px; min-width: 0; }
.fair b { color: var(--ink); }
.fair p { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 760px) { .fair { grid-template-columns: minmax(0, 1fr); } }

/* ─── FAQ ─────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; font-weight: 600; color: var(--ink); font-size: var(--step-1); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; transition: transform 0.2s ease; color: var(--muted); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 2px 22px; color: var(--muted); max-width: 40rem; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }

/* ─── Download ────────────────────────────────────── */
.get { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 36px; padding: clamp(28px, 5vw, 56px); overflow: hidden; position: relative; }
.get-copy { display: grid; gap: 14px; min-width: 0; position: relative; z-index: 1; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 20px 8px 16px; border-radius: 16px; background: var(--ink); color: var(--paper); text-decoration: none; border: 0; cursor: pointer; font-family: var(--font-body); text-align: left; transition: transform 0.15s ease; }
.store:active { transform: scale(0.97); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 0.72rem; opacity: 0.75; line-height: 1.1; }
.store b { display: block; font-size: 1.05rem; font-weight: 600; line-height: 1.2; }
.get-art { width: clamp(150px, 22vw, 260px); height: auto; position: relative; z-index: 1; }
@media (max-width: 720px) { .get { grid-template-columns: minmax(0, 1fr); } .get-art { width: 96px; order: -1; } }

/* ─── Footer ──────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 32px; font-size: var(--step--1); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand p { color: var(--muted); max-width: 22rem; }
.foot-col h3 { font-size: 0.95rem; margin-bottom: 12px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.foot-col a, .foot-col button { color: var(--muted); text-decoration: none; background: none; border: 0; padding: 4px 0; font: inherit; cursor: pointer; text-align: left; }
.foot-col a:hover, .foot-col button:hover { color: var(--ink); text-decoration: underline; }
.legal-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.legal-row nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal-row a { color: var(--muted); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* ─── Coming-soon dialog ──────────────────────────── */
dialog.soon {
  border: 1px solid var(--line); border-radius: 28px; padding: 0; width: min(92vw, 440px);
  background: var(--surface); color: var(--fg); box-shadow: var(--shadow);
}
dialog.soon::backdrop { background: rgba(8, 10, 30, 0.55); backdrop-filter: blur(4px); }
dialog.soon[open] { animation: rise 0.28s cubic-bezier(.2,.9,.3,1.1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog.soon[open] { animation: none; } }
.soon-body { padding: 28px; display: grid; gap: 14px; }
.soon-body img { width: 64px; height: auto; }
.soon-body h2 { font-size: var(--step-2); }
.soon-body p { color: var(--muted); }
.mail { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 14px; border: 1px solid var(--line); border-radius: 14px; }
.mail code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-mono); font-size: 0.86rem; color: var(--ink); user-select: all; }
.mail button { min-height: 38px; padding: 0 14px; font-size: 0.9rem; }
.soon-actions { display: flex; justify-content: flex-end; }

/* ─── Legal pages ─────────────────────────────────── */
.doc { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 110px); }
.doc-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); display: grid; gap: 2px; font-size: var(--step--1); }
.toc b { color: var(--ink); margin-bottom: 8px; font-size: 0.95rem; }
.toc a { color: var(--muted); text-decoration: none; padding: 5px 10px; border-radius: 8px; }
.toc a:hover { color: var(--ink); background: var(--tint); }
.prose { max-width: 44rem; min-width: 0; }
.prose h1 { font-size: var(--step-3); }
.prose .meta { color: var(--muted); margin-top: 10px; }
.prose h2 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 700; letter-spacing: 0; margin-top: 44px; margin-bottom: 10px; scroll-margin-top: 96px; }
.prose p, .prose li { color: var(--fg); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 1.2em; margin: 10px 0 0; display: grid; gap: 8px; }
.prose .summary { margin-top: 28px; padding: 20px 22px; border-radius: var(--radius); background: var(--tint); }
.prose .summary p { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: var(--step--1); }
.prose .table-wrap { overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); }
@media (max-width: 860px) { .doc-grid { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }

/* ─── 404 ─────────────────────────────────────────── */
.lost { display: grid; place-items: center; text-align: center; gap: 18px; padding-block: 18vh; }
.lost img { width: 120px; height: auto; }
