/* unflaked.app (TASK-4). The app's tokens (lib/app/design_system/tokens):
   paper and ink, the ember accent, SF Pro through the system stack. */

:root {
  color-scheme: light;
  --paper: #faf7f0;
  --paper-deep: #f3ede2;
  --white: #ffffff;
  --ink: #1b1a17;
  --ink-muted: #6b6a65;
  --line: #e8e0d2;
  --ember: #cc3b00;
  --ember-deep: #ad2b00;
  --ember-line: #f05f00;
  --ember-tint: #ffe9d9;
  --char: #2a1508;
  --radius-card: 28px;
  --radius-tile: 14px;
  --shadow-card: 0 1px 2px rgb(27 26 23 / 6%), 0 18px 48px -18px rgb(27 26 23 / 22%);
  --shadow-button: 0 1px 2px rgb(27 26 23 / 10%), 0 8px 20px -10px rgb(27 26 23 / 45%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 48px);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--ember-line); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.header-cta { display: inline-flex; align-items: center; gap: 8px; }
.launch-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink);
}
.launch-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ember-line); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ember-line) 22%, transparent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--ember-line) 0%, transparent); } }

/* --------------------------------------------------------------- buttons */
.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 650; font-size: 17px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  transition: transform 120ms ease, background-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { cursor: default; opacity: 0.45; transform: none; }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-button); }
.btn-ink:hover:not(:disabled) { background: #000; }
.btn-ember { background: var(--ember); color: var(--white); box-shadow: var(--shadow-button); }
.btn-ember:hover:not(:disabled) { background: var(--ember-deep); }
.btn-outline { background: var(--white); color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover:not(:disabled) { border-color: var(--ink); }
.btn-burn { background: var(--white); color: var(--ember); border: 1.5px solid color-mix(in srgb, var(--ember) 40%, transparent); }
.btn-burn:hover:not(:disabled) { background: var(--ember-tint); border-color: var(--ember); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn[data-busy="true"] { color: transparent; position: relative; }
.btn[data-busy="true"]::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid var(--paper); border-right-color: transparent; animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.link-button { appearance: none; background: none; border: 0; padding: 8px 4px; font: inherit; font-size: 15px; color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: clamp(28px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: auto -20% -40% 30%; height: 90%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ember-line) 22%, transparent), transparent 70%);
  filter: blur(10px);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; color: var(--ember); letter-spacing: 0.01em; margin: 0 0 18px; }
.eyebrow svg { width: 15px; height: 15px; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.03em; margin: 0; }
.hero h1 { font-size: clamp(44px, 7.4vw, 84px); line-height: 0.98; font-weight: 800; letter-spacing: -0.045em; }
.hero h1 .burn-word { position: relative; color: var(--ember); white-space: nowrap; }
.hero h1 .burn-word::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: 0.04em; height: 0.09em; border-radius: 99px;
  background: linear-gradient(90deg, var(--ember-line), var(--ember), var(--ember-line));
  background-size: 200% 100%; animation: smoulder 3.2s ease-in-out infinite;
}
@keyframes smoulder { 50% { background-position: 100% 0; opacity: 0.75; } }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--ink-muted); margin: 22px 0 30px; max-width: 34em; }
.lede strong { color: var(--ink); font-weight: 650; }

/* ------------------------------------------------------------- join form */
.join { max-width: 520px; }
.join-row {
  display: flex; gap: 6px; padding: 6px; background: var(--white); border-radius: 999px;
  border: 1.5px solid var(--line); box-shadow: var(--shadow-card); transition: border-color 160ms ease;
}
.join-row:focus-within { border-color: var(--ink); }
.join-row input {
  flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 17px; padding: 0 16px; color: var(--ink);
}
.join-row input:focus { outline: none; }
.join-row input::placeholder { color: #a39f96; }
.join-note { margin: 14px 4px 0; font-size: 14px; color: var(--ink-muted); }
.join-note b { color: var(--ink); font-weight: 650; }
.join-error { margin: 12px 4px 0; font-size: 15px; font-weight: 600; color: var(--ember-deep); }
.join-turnstile:not(:empty) { margin-top: 12px; }
.join-done {
  background: var(--white); border-radius: 24px; padding: 22px 22px 20px; border: 1.5px solid var(--line); box-shadow: var(--shadow-card);
  animation: rise 420ms cubic-bezier(.2,.8,.2,1);
}
.join-done h2, .join-done h3 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.join-done h2:focus, .join-done h3:focus { outline: none; }
.join-done .tick { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.join-done .tick svg { width: 16px; height: 16px; }
.join-done p { margin: 10px 0 0; color: var(--ink-muted); }
.join-done p strong { color: var(--ink); }
.share-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.share-block p { margin: 0 0 12px; color: var(--ink); font-weight: 600; }
.share-status { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-muted); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* -------------------------------------------------------------- demo card */
.demo {
  position: relative; background: var(--white); border-radius: var(--radius-card); padding: 22px; box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}
.demo-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.demo-head h2 { font-size: 20px; letter-spacing: -0.02em; }
.demo-tag { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); }
.stakes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; background: var(--paper-deep); border-radius: 16px; }
.stakes button {
  appearance: none; border: 0; background: transparent; border-radius: 12px; padding: 8px 6px; cursor: pointer; font: inherit;
  display: grid; gap: 0; color: var(--ink-muted); transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.stakes button span { font-size: 12px; font-weight: 600; }
.stakes button b { font-family: var(--font-display); font-size: 19px; letter-spacing: -0.02em; color: inherit; }
.stakes button[aria-checked="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgb(27 26 23 / 10%), 0 4px 12px -6px rgb(27 26 23 / 30%); }
.stakes button[aria-checked="true"] b { color: var(--ember); }

.sums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 10px; }
.sum span { display: block; font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.sum b { display: block; font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.sum-burned b { color: var(--ember); }
.sum-stake { text-align: right; }
.bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--paper-deep); gap: 2px; }
.bar i { display: block; flex: 0 1 0; min-width: 0; transition: flex-grow 450ms cubic-bezier(.2,.8,.2,1); }
.bar [data-bar="wellSpent"] { background: var(--ink); }
.bar [data-bar="burned"] { background: linear-gradient(90deg, var(--ember-line), var(--ember)); }
.bar [data-bar="atStake"] { background: var(--line); }
.count { margin: 8px 0 14px; font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }

.sessions { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.week { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 8px; }
.week-label { font-size: 12px; font-weight: 700; color: var(--ink-muted); }
.week-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tile {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 6px;
  min-height: 46px; padding: 0 12px; border-radius: var(--radius-tile); background: var(--paper); border: 1.5px solid var(--line);
  font-size: 14px; transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease; overflow: hidden;
}
.tile-day { font-weight: 650; }
.tile-value { font-variant-numeric: tabular-nums; color: var(--ink-muted); font-size: 13px; }
.tile-mark { position: absolute; right: 8px; top: 6px; width: 8px; height: 8px; border-radius: 50%; display: none; }
.tile[data-next] { border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 8%, transparent); }
.tile[data-status="done"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tile[data-status="done"] .tile-value { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.tile[data-status="missed"] { background: var(--ember-tint); border-color: color-mix(in srgb, var(--ember) 35%, transparent); color: var(--ember-deep); }
.tile[data-status="missed"] .tile-value { color: var(--ember); text-decoration: line-through; text-decoration-thickness: 2px; }
.tile[data-bonus] .tile-mark { display: block; background: var(--ink); }
.tile.is-burning { animation: burn 1.3s ease-out; }
.tile.is-burning::before, .tile.is-burning::after {
  content: ""; position: absolute; bottom: 4px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--ember-line); box-shadow: 0 0 8px 2px color-mix(in srgb, var(--ember-line) 70%, transparent);
  animation: spark 1.1s ease-out forwards;
}
.tile.is-burning::before { left: 30%; }
.tile.is-burning::after { left: 64%; animation-delay: 160ms; }
@keyframes burn {
  0% { background: var(--white); }
  18% { background: var(--ember-line); color: var(--white); border-color: var(--ember-line); }
  45% { background: var(--char); color: var(--ember-line); border-color: var(--char); }
  100% { background: var(--ember-tint); }
}
@keyframes spark { to { transform: translateY(-38px) scale(0.3); opacity: 0; } }

.feed { min-height: 3em; margin: 16px 2px 14px; font-size: 15px; line-height: 1.4; color: var(--ink); }
.demo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-actions .link-button { grid-column: 1 / -1; justify-self: center; padding-bottom: 0; }
.demo-note { margin: 12px 2px 0; font-size: 12px; color: var(--ink-muted); text-align: center; }

.ping {
  position: absolute; top: -18px; right: 14px; max-width: min(300px, 84%); z-index: 2;
  display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px;
  background: color-mix(in srgb, var(--white) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px -12px rgb(27 26 23 / 40%), 0 0 0 1px var(--line);
  opacity: 0; transform: translateY(-8px) scale(0.96); pointer-events: none;
  transition: opacity 260ms ease, transform 320ms cubic-bezier(.2,.8,.2,1);
}
.ping.is-in { opacity: 1; transform: none; }
.ping-avatar { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 750; font-size: 14px; color: var(--white); background: linear-gradient(135deg, #6b6a65, #1b1a17); }
.ping small { display: block; font-size: 11px; color: var(--ink-muted); font-weight: 600; }
.ping span { font-size: 14px; font-weight: 600; line-height: 1.3; }

/* --------------------------------------------------------------- sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding-top: 0; }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink .muted { color: #a39f96; }
.kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ember); margin: 0 0 14px; }
.section-ink .kicker { color: var(--ember-line); }
.section h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.02; font-weight: 800; letter-spacing: -0.04em; max-width: 16em; }
.section .intro { font-size: clamp(17px, 1.8vw, 20px); color: var(--ink-muted); max-width: 36em; margin: 18px 0 0; }
.section-ink .intro { color: #bcb7ac; }
.muted { color: var(--ink-muted); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 32px); margin-top: clamp(36px, 5vw, 56px); }
.stat { border-top: 1px solid #3a3833; padding-top: 18px; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(40px, 5vw, 60px); letter-spacing: -0.045em; line-height: 1; color: var(--paper); }
.stat b em { font-style: normal; color: var(--ember-line); }
.stat p { margin: 12px 0 0; color: #bcb7ac; font-size: 16px; }
.stat cite { display: block; margin-top: 8px; font-style: normal; font-size: 13px; color: #86847d; }

.steps { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 10px; }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--ember); }
.step h3 { font-size: 24px; letter-spacing: -0.025em; }
.step p { margin: 0; color: var(--ink-muted); }
.step-visual { margin-top: auto; padding-top: 16px; }
.mini-days { display: flex; gap: 6px; }
.mini-days span { flex: 1; text-align: center; padding: 8px 0; border-radius: 10px; font-size: 13px; font-weight: 650; background: var(--paper); border: 1px solid var(--line); color: var(--ink-muted); }
.mini-days span.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.mini-tiers { display: flex; gap: 6px; }
.mini-tiers span { flex: 1; text-align: center; padding: 8px 0; border-radius: 10px; font-family: var(--font-display); font-weight: 750; background: var(--paper); border: 1px solid var(--line); }
.mini-tiers span.on { border-color: var(--ember); color: var(--ember); background: var(--ember-tint); }
.mini-ledger { display: grid; gap: 6px; font-size: 14px; }
.mini-ledger div { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: var(--paper); }
.mini-ledger .burned { background: var(--ember-tint); color: var(--ember-deep); }

.witness-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.chat { display: grid; gap: 10px; max-width: 420px; margin-left: auto; width: 100%; }
.mail-card { background: var(--white); border-radius: 20px; padding: 16px 18px; border: 1px solid var(--line); box-shadow: var(--shadow-card); font-size: 15px; }
.mail-card small { display: block; color: var(--ink-muted); font-size: 12px; font-weight: 650; margin-bottom: 4px; }
.mail-card b { font-weight: 700; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 20px; font-size: 16px; line-height: 1.35; }
.bubble.them { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 6px; justify-self: start; }
.bubble.me { background: var(--ink); color: var(--paper); border-bottom-right-radius: 6px; justify-self: end; }
.bubble small { display: block; font-size: 11px; font-weight: 650; color: var(--ink-muted); margin-bottom: 2px; }
.bubble.me small { color: #a39f96; }
.chat [data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity 400ms ease, transform 500ms cubic-bezier(.2,.8,.2,1); }
.chat.is-visible [data-reveal] { opacity: 1; transform: none; }
.chat.is-visible [data-reveal]:nth-child(2) { transition-delay: 500ms; }
.chat.is-visible [data-reveal]:nth-child(3) { transition-delay: 1100ms; }
.chat.is-visible [data-reveal]:nth-child(4) { transition-delay: 1700ms; }
.chat.is-visible [data-reveal]:nth-child(5) { transition-delay: 2300ms; }
.chat-caption { font-size: 12px; color: var(--ink-muted); text-align: center; margin: 6px 0 0; }
@media (prefers-reduced-motion: reduce) { .chat [data-reveal] { opacity: 1; transform: none; transition: none; } }
.points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.points svg { width: 22px; height: 22px; color: var(--ember); margin-top: 2px; }

.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(36px, 5vw, 56px); }
.rule { padding: 22px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); }
.rule h3 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 6px; }
.rule p { margin: 0; color: var(--ink-muted); font-size: 16px; }
.rule-hard { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rule-hard p { color: #bcb7ac; }
.rule-hard h3 { color: var(--ember-line); }

.faq { margin-top: clamp(28px, 4vw, 44px); max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--ink-muted); border-bottom: 2px solid var(--ink-muted); transform: rotate(45deg); transition: transform 200ms ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 20px; color: var(--ink-muted); max-width: 44em; }

.final { text-align: center; }
.final h2 { margin: 0 auto; }
.final .intro { margin-left: auto; margin-right: auto; }
.final .join { margin: 32px auto 0; text-align: left; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 15px; color: var(--ink-muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ------------------------------------------------------------ text pages */
.doc { padding: clamp(32px, 6vw, 72px) 0 clamp(64px, 8vw, 104px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.02; font-weight: 800; letter-spacing: -0.04em; }
.doc .updated { color: var(--ink-muted); margin: 12px 0 0; font-size: 15px; }
.doc .summary { margin: 28px 0 8px; padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; }
.doc .summary h2 { margin-top: 0; font-size: 18px; }
.doc .summary ul { margin: 10px 0 0; }
.doc h2 { font-size: 24px; letter-spacing: -0.02em; margin: 44px 0 10px; }
.doc h3 { font-size: 18px; letter-spacing: -0.01em; margin: 26px 0 6px; }
.doc p, .doc li { color: #3a3833; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 650; color: var(--ink); }
.table-scroll { overflow-x: auto; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; }
.contact-card { margin: 28px 0; padding: 22px; background: var(--ink); color: var(--paper); border-radius: 22px; }
.contact-card p { color: #bcb7ac; margin: 6px 0 16px; }
.contact-card a.btn { background: var(--paper); color: var(--ink); }

/* opt-out page */
.center-card { max-width: 520px; margin: clamp(32px, 10vh, 120px) auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(24px, 5vw, 40px); box-shadow: var(--shadow-card); }
.center-card h1 { font-size: clamp(28px, 5vw, 36px); line-height: 1.08; letter-spacing: -0.035em; }
.center-card h1:focus { outline: none; }
.center-card p { color: var(--ink-muted); margin: 12px 0 0; }
.center-card .btn { margin-top: 24px; width: 100%; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 920px) {
  .hero-grid, .witness-grid { grid-template-columns: 1fr; }
  .chat { margin: 0 auto; }
  .steps, .rules, .stats { grid-template-columns: 1fr; }
  .stats { gap: 24px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .launch-pill { display: none; }
  .join-row { flex-direction: column; border-radius: 24px; padding: 6px; }
  .join-row input { min-height: 50px; padding: 0 14px; }
  .join-row .btn { width: 100%; }
  .demo { padding: 18px 14px; border-radius: 24px; }
  .tile { padding: 0 9px; min-height: 44px; }
  .tile-value { font-size: 12px; }
  .week { grid-template-columns: 22px 1fr; gap: 6px; }
  .ping { right: 8px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
.witness-more { margin-top: 40px; }
