/* Triviaword website. Tokens match the app (app/lib/core/theme/tokens.dart). No web fonts are loaded: the site
   makes no third-party requests at all (see the privacy policy). */
:root {
  --bg: #0f1222;
  --surface: #1b1f35;
  --text: #f7f7fb;
  --muted: #a9adc6;
  --accent: #ff6b35;
  --tile: #2a2f4a;
  --grey: #3d4160;
  --yellow: #f5b700;
  --green: #2ecc71;
  --radius: 14px;
  --display: "Fredoka", ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7fb;
    --surface: #ffffff;
    --text: #0f1222;
    --muted: #555a75;
    --tile: #e3e5f0;
    --grey: #8b90ab;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
}

a { color: var(--accent); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  font: 700 26px/1 var(--display);
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.logo span { color: var(--accent); }

nav a { color: var(--muted); text-decoration: none; margin-left: 20px; font-weight: 600; }
nav a:hover { color: var(--text); }

.hero { padding: 56px 0 40px; text-align: center; }

.hero h1 {
  font: 700 clamp(36px, 7vw, 64px)/1.05 var(--display);
  margin: 0 0 16px;
}

.hero p { color: var(--muted); font-size: 20px; max-width: 560px; margin: 0 auto 32px; }

.tiles { display: flex; justify-content: center; gap: 8px; margin: 0 0 36px; }

.tile {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font: 700 28px/1 var(--display);
  text-transform: uppercase;
  color: #fff;
  background: var(--tile);
}

.tile.g { background: var(--green); }
.tile.y { background: var(--yellow); }
.tile.x { background: var(--grey); }

.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font: 700 20px/1 var(--display);
  padding: 18px 32px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 0 #c94d1f;
  transition: transform 0.12s, box-shadow 0.12s;
}

.cta:hover { transform: translateY(2px); box-shadow: 0 4px 0 #c94d1f; }
.cta:active { transform: translateY(6px); box-shadow: none; }

.stores { color: var(--muted); font-size: 15px; margin-top: 16px; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding: 40px 0 64px;
}

.card { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.card h2 { font: 700 22px/1.2 var(--display); margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); }

.legal { padding: 24px 0 64px; max-width: 720px; }
.legal h1 { font: 700 40px/1.1 var(--display); margin: 16px 0 8px; }
.legal h2 { font: 700 24px/1.2 var(--display); margin: 36px 0 8px; }
.legal .updated { color: var(--muted); margin: 0 0 24px; }
.legal li { margin-bottom: 6px; }
.legal .notice {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
}

footer.site {
  border-top: 1px solid var(--tile);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

footer.site a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .cta { transition: none; }
}

@media (max-width: 480px) {
  .tile { width: 48px; height: 48px; font-size: 24px; }
  nav a { margin-left: 14px; }
}
