:root {
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --text: #0f1b2d;
  --muted: #56627a;
  --accent: #1d4ed8;
  --rule: #e2e7ef;
  --hero-a: #0b1a33;
  --hero-b: #16305c;
  --hero-text: #f3f6fb;
  --hero-muted: #b3c0d6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1220;
    --bg-alt: #111a2c;
    --text: #e7ecf4;
    --muted: #9aa7bd;
    --accent: #7aa2ff;
    --rule: #213049;
    --hero-a: #08101f;
    --hero-b: #12264a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 0.15em; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
p { margin: 0 0 1rem; }

/* Header and nav */
header.top {
  background: var(--hero-a);
  color: var(--hero-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
header.top .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  min-height: 4rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand svg { flex: none; }
nav.main { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-size: 0.95rem; }
nav.main a {
  padding: 0.25rem 0;
  color: var(--hero-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
nav.main a:hover { color: var(--hero-text); }
nav.main a[aria-current] { color: var(--hero-text); border-bottom-color: #7aa2ff; }
@media (max-width: 520px) {
  header.top .wrap { justify-content: flex-start; }
  nav.main { width: 100%; gap: 0.25rem 1.25rem; font-size: 0.9rem; }
}

/* Hero (home) and page banners (other pages) */
.hero, .banner {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(122, 162, 255, 0.25), transparent 60%),
    linear-gradient(160deg, var(--hero-a), var(--hero-b));
  color: var(--hero-text);
}
.hero { padding: clamp(4rem, 12vh, 8rem) 0 clamp(4rem, 10vh, 6rem); }
.banner { padding: clamp(3rem, 8vh, 4.5rem) 0; }
.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hero-muted);
}
.hero h1, .banner h1 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero h1 { max-width: 15ch; font-size: clamp(2.4rem, 7vw, 4.25rem); }
.banner h1 { max-width: 22ch; font-size: clamp(2rem, 5.5vw, 3.25rem); }
.lede {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--hero-muted);
}
.hero .lede { margin-bottom: 2.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.btn.primary { background: #ffffff; color: #0b1a33; }
.btn.ghost { color: var(--hero-text); border: 1px solid rgba(255, 255, 255, 0.3); }
.fineprint { margin: 1.25rem 0 0; font-size: 0.8rem; color: var(--hero-muted); }

/* Stats strip */
.stats { border-bottom: 1px solid var(--rule); }
.stats dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.stats dl > div { padding: 1.75rem 1rem 1.75rem 0; }
.stats dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.stats dd { margin: 0.25rem 0 0; font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; }
@media (max-width: 720px) { .stats dl { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
section.block { padding: clamp(3.5rem, 9vh, 5.5rem) 0; }
section.alt { background: var(--bg-alt); }
.kicker {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
h2 {
  margin: 0 0 1rem;
  max-width: 28ch;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.intro { max-width: 40rem; margin: 0 0 2.5rem; color: var(--muted); font-size: 1.1rem; }
.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.five { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.grid.five .card { padding: 1.25rem; }
@media (max-width: 1000px) { .grid.five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .grid, .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid, .grid.two, .grid.four, .grid.five { grid-template-columns: 1fr; } }
.card {
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.card p + p { margin-top: 0.75rem; }
.card .tag {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}
.card .step {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Long-form text, e.g. the privacy policy */
.prose { max-width: 46rem; }
.prose h2 { max-width: none; margin: 2.5rem 0 0.75rem; font-size: 1.35rem; letter-spacing: -0.01em; }
.prose ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose .updated { color: var(--muted); font-size: 0.9rem; }
.split p { color: var(--muted); }

.cta {
  padding: 2.5rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, var(--hero-a), var(--hero-b));
  color: var(--hero-text);
}
.cta .kicker { color: var(--hero-muted); }
.cta h2 { color: var(--hero-text); }
.cta p { color: var(--hero-muted); max-width: 38rem; }
.cta .btn { margin-top: 0.5rem; }
@media (max-width: 600px) { .cta { padding: 1.75rem 1.25rem; } }

.email { font-size: clamp(1.15rem, 3vw, 1.4rem); font-weight: 650; word-break: break-word; }

footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.88rem;
}
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
footer p { margin: 0; }

/* A banner headline that should stay on one line on wide screens. */
.banner h1.one-line { max-width: none; font-size: clamp(2rem, 4.2vw, 3rem); }

/* Game pages */
.app-icon { display: block; flex: none; border-radius: 22%; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); }
.game-head { display: flex; align-items: center; gap: 2rem; }
.game-head h1 { max-width: none; }
@media (max-width: 600px) {
  .game-head { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .game-head .app-icon { width: 88px; height: 88px; }
}
.game-card { display: block; color: inherit; text-decoration: none; transition: border-color 0.15s; }
.game-card:hover { border-color: var(--accent); }
.game-card .app-icon { margin-bottom: 1rem; box-shadow: none; }

.faq { max-width: 46rem; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  padding: 1rem 0;
  font-weight: 600;
  cursor: pointer;
}
.faq details p { margin: 0 0 1.25rem; color: var(--muted); }
.faq-contact { margin: 2rem 0 0; color: var(--muted); }
