:root {
  color-scheme: light dark;
  --bg: #fff8f6;
  --surface: #ffffff;
  --surface-2: #fcebe8;
  --ink: #231918;
  --muted: #6b5856;
  --primary: #b3201c;
  --on-primary: #ffffff;
  --gold: #f5bf48;
  --line: #ead6d3;
  --stage: linear-gradient(135deg, #e2312c, #8e0b0b);
  --song: linear-gradient(135deg, #b0186b, #5b1fa8);
  --screen: linear-gradient(135deg, #0b5fb0, #0e8f8a);
  --book: linear-gradient(135deg, #c0590c, #8c3b12);
  --radius: 20px;
  --shadow: 0 10px 30px rgb(80 20 20 / 0.14);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1110;
    --surface: #271d1c;
    --surface-2: #322827;
    --ink: #f1dfdc;
    --muted: #c0aaa6;
    --primary: #ffb4aa;
    --on-primary: #690003;
    --line: #4a3a38;
    --shadow: 0 10px 30px rgb(0 0 0 / 0.4);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--primary); }
img, svg { display: block; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* Hero */
.hero { background: var(--stage); color: #fff; position: relative; overflow: hidden; }
.hero .wrap { padding-top: 56px; padding-bottom: 56px; display: grid; gap: 32px; align-items: center; }
@media (min-width: 820px) { .hero .wrap { grid-template-columns: 1.1fr 1fr; padding-top: 80px; padding-bottom: 80px; } }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.brand img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 6px 18px rgb(0 0 0 / 0.25); }
.hero h1 { font-size: clamp(3rem, 9vw, 5rem); line-height: 1; margin: 0; font-weight: 900; letter-spacing: -0.02em; }
.hero p.lede { font-size: 1.25rem; margin: 16px 0 28px; opacity: 0.95; max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer;
}
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.btn-light { background: #fff; color: #8e0b0b; }
.btn-ghost { background: rgb(255 255 255 / 0.14); color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.6); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Card */
.card {
  background: var(--surface); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column; min-height: 380px;
}
.card-banner { position: relative; height: 84px; color: #fff; display: flex; align-items: flex-end; padding: 0 20px 14px; overflow: hidden; }
.card-banner h3 { margin: 0; font-size: 1.35rem; }
.card-banner svg { position: absolute; right: -14px; top: -10px; width: 120px; height: 120px; fill: rgb(255 255 255 / 0.22); }
.card-body { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 18px 22px 22px; }
.kind { color: var(--primary); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; }
.word { flex: 1; display: grid; place-items: center; font-weight: 900; line-height: 1.05; font-size: clamp(2.2rem, 7vw, 3.6rem); word-break: break-word; }
.rule { margin: 0; }
.card.enter { animation: deal 260ms ease-out; }
@keyframes deal { from { transform: translateX(40px) rotate(2deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .card.enter { animation: none; } }

.demo-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.demo-controls small { color: rgb(255 255 255 / 0.85); }

/* Sections */
section { padding: 56px 0; }
h2 { font-size: 1.8rem; line-height: 1.2; margin: 0 0 20px; }
.steps { display: grid; gap: 16px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step b { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }
.types { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.types li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; color: #fff; font-weight: 600; }
.types svg { width: 20px; height: 20px; fill: currentColor; }
.teams { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.teams span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 14px; font-weight: 700; font-size: 0.95rem; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* Policy page */
.doc { max-width: 700px; margin: 0 auto; padding: 40px 16px 56px; }
.doc h1 { font-size: 2.2rem; margin: 0 0 4px; line-height: 1.15; }
.doc h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.doc .muted { color: var(--muted); }
.doc-head { background: var(--stage); color: #fff; }
.doc-head .wrap { padding: 18px 16px; display: flex; align-items: center; gap: 12px; }
.doc-head a { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.2rem; display: inline-flex; align-items: center; gap: 10px; }
.doc-head img { width: 36px; height: 36px; border-radius: 9px; }
