/* Same thermal palette and type as the app. */
:root {
  --bg: #15112a;
  --card: #1f1938;
  --elevated: #2a2348;
  --line: #3a3160;
  --text: #f7f2ff;
  --muted: #aba2c8;
  --ember: #ff7a3d;
  --ice: #7cc4ff;
  --amber: #ffb547;
  --hot: #ff5c77;
  --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--body);
}
a { color: var(--ember); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--ice);
  outline-offset: 2px;
}
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.05; }
h3 { font-size: 22px; }

.hero { padding-block: clamp(40px, 8vw, 96px) 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.brand { font-weight: 700; color: var(--ember); margin: 0 0 18px; }
h1 { font-size: clamp(48px, 8vw, 88px); line-height: 0.95; }
.lede { color: var(--muted); font-size: 19px; max-width: 34em; margin: 20px 0 28px; }

.join { display: grid; gap: 10px; max-width: 520px; }
.join label { font-weight: 700; font-size: 15px; }
.join label.secondary { font-weight: 500; color: var(--muted); margin-top: 6px; }
.join label span { color: var(--muted); font-weight: 400; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
input, select {
  font: inherit;
  color: var(--text);
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 54px;
  padding: 0 16px;
}
#email { flex: 1 1 240px; min-width: 0; }
select { max-width: 160px; }
button, .cta {
  font: 700 17px/1 var(--body);
  color: var(--bg);
  background: var(--ember);
  border: 0;
  border-radius: 14px;
  min-height: 54px;
  padding: 0 24px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button[disabled] { opacity: 0.6; cursor: default; }
.message { min-height: 1.5em; margin: 4px 0 0; font-weight: 500; }
.message.ok { color: var(--ice); }
.message.error { color: var(--amber); }
.fine { color: var(--muted); font-size: 14px; margin: 0; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.example { margin: 0; }
.example figcaption { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 14px; }
.who { display: flex; gap: 12px; align-items: center; }
.who strong { display: block; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--elevated); display: grid; place-items: center; font-weight: 700; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.badge.hot { color: var(--hot); background: rgba(255, 92, 119, 0.14); }
.skipped { font-family: var(--display); font-weight: 800; font-size: 28px; margin: 0; line-height: 1.05; }
blockquote { margin: 0; background: var(--elevated); border-radius: 14px; padding: 14px; }
.heat { margin: 0; color: var(--muted); }
.heat span { color: var(--text); font-weight: 700; border: 1.5px solid var(--ember); border-radius: 999px; padding: 3px 12px; margin-right: 6px; }
.replies { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.replies b { color: var(--hot); font-size: 13px; margin-right: 6px; }
.replies .hype b { color: var(--ice); }

.how, .levels, .season { padding-block: 56px; border-top: 1px solid var(--line); }
.steps { margin: 24px 0 0; padding-left: 1.3em; display: grid; gap: 14px; max-width: 40em; font-size: 19px; }
.level-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.level { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.level p { color: var(--muted); margin: 8px 0 0; }
.rules { margin: 24px 0 0; max-width: 46em; color: var(--muted); }
.rules strong { color: var(--text); }
.season p { color: var(--muted); max-width: 36em; margin: 14px 0 24px; }

footer { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--muted); }
.foot { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.foot span:first-child { font-weight: 700; color: var(--text); }

.legal { padding-block: 48px 72px; }
.legal article { max-width: 44em; }
.legal h1 { font-size: clamp(36px, 6vw, 56px); margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }
.draft { background: rgba(255, 181, 71, 0.12); border: 1px solid var(--amber); color: var(--text); border-radius: 14px; padding: 12px 16px; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .level-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .row button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
