/* Prove It site. Colours are the app's theme tokens (apps/mobile/src/lib/theme.ts). */
:root {
  --bg: #f5f6fb;
  --surface: #ffffff;
  --text: #121530;
  --muted: #4f5472;
  --border: #d3d6e6;
  --accent: #00708a;
  --on-accent: #ffffff;
  --reward: #7a5600;
  --special: #5b3cc4;
  --match-bg: #dcf2e6;
  --match-fg: #14532d;
  --partial-bg: #fbf0cf;
  --partial-fg: #7a5600;
  --miss-bg: #e8eaf3;
  --miss-fg: #2a2e4a;
  /* The hero is always midnight navy, the brand's ground. */
  --navy: #0b1026;
  --navy-surface: #141a36;
  --navy-text: #eef1ff;
  --navy-muted: #a6acd0;
  --cyan: #3fd6f0;
  --gold: #f2c14e;
  --radius: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1026;
    --surface: #141a36;
    --text: #eef1ff;
    --muted: #a6acd0;
    --border: #2c3460;
    --accent: #3fd6f0;
    --on-accent: #0b1026;
    --reward: #f2c14e;
    --special: #a98bff;
    --match-bg: #0e3326;
    --match-fg: #b9f2cb;
    --partial-bg: #382d0c;
    --partial-fg: #f2c14e;
    --miss-bg: #222947;
    --miss-fg: #d4d8f0;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--navy) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #2c3460;
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-text); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand img { border-radius: 9px; }
nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
nav a { color: var(--navy-muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 10px 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
nav a:hover { color: var(--navy-text); }
nav a.nav-cta { color: var(--navy); background: var(--cyan); }
nav a.nav-cta:hover { color: var(--navy); filter: brightness(1.08); }
@media (max-width: 640px) { nav a:not(.nav-cta) { display: none; } }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 14px;
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.button:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } .button:hover { transform: none; } }
.button.primary { background: var(--cyan); color: var(--navy); }
.button.primary:hover { filter: brightness(1.08); }
.button.ghost { border-color: var(--cyan); color: var(--cyan); }

/* Hero */
.hero {
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(91, 60, 196, 0.35), transparent 60%),
    radial-gradient(700px 500px at 90% 30%, rgba(63, 214, 240, 0.18), transparent 60%),
    var(--navy);
  color: var(--navy-text);
  padding: 48px 0 72px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.logo { width: min(420px, 100%); margin: 0 0 12px -12px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.12; margin: 0 0 16px; letter-spacing: -0.02em; }
.lede { color: var(--navy-muted); font-size: 1.15rem; margin: 0 0 28px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-phone { justify-self: center; transform: rotate(2deg); }
@media (prefers-reduced-motion: reduce) { .hero-phone { transform: none; } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .logo { margin-inline: auto; }
  .lede { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .hero-phone { transform: none; }
}

/* Phone frame */
.phone {
  margin: 0;
  width: min(300px, 100%);
  padding: 10px;
  border-radius: 38px;
  background: #050817;
  box-shadow: 0 30px 60px -20px rgba(5, 8, 23, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.phone img { border-radius: 28px; }
.phone.small { width: min(260px, 100%); margin-inline: auto; }
.phone figcaption { text-align: center; color: var(--navy-muted); font-size: 0.9rem; padding-top: 12px; }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--border); }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; margin: 0 0 8px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.2; margin: 0 0 40px; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; margin: 18px 0 6px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { text-align: center; }
.step p { color: var(--muted); margin: 0 auto; max-width: 22em; }
.num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 6px;
  border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 0.95rem;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 56px; } }

.legend { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 56px; }
.chip { padding: 10px 16px; border-radius: 12px; font-weight: 700; border: 1px solid var(--border); }
.chip.match { background: var(--match-bg); color: var(--match-fg); }
.chip.partial { background: var(--partial-bg); color: var(--partial-fg); }
.chip.miss { background: var(--miss-bg); color: var(--miss-fg); }
.note { text-align: center; color: var(--muted); margin: 16px auto 0; max-width: 36em; }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.feature h3 { margin-top: 0; display: flex; align-items: center; gap: 10px; }
.feature p { margin: 0; color: var(--muted); }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot.accent { background: var(--accent); }
.dot.reward { background: var(--reward); }
.dot.special { background: var(--special); }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 860px) {
  .gallery { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(260px, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .gallery .phone { scroll-snap-align: center; }
}

.beta { background: var(--navy); color: var(--navy-text); }
.beta-box { text-align: center; max-width: 720px; }
.beta h2 { margin-bottom: 16px; }
.beta p { color: var(--navy-muted); font-size: 1.1rem; margin: 0 0 28px; }

/* Footer */
.site-footer { background: var(--navy); color: var(--navy-muted); border-top: 1px solid #2c3460; padding: 28px 0 40px; font-size: 0.92rem; }
.site-footer a { color: var(--cyan); }
.footer-row p { margin: 6px 0; }
.fine { font-size: 0.82rem; opacity: 0.85; max-width: 60em; }

/* Categories */
.section-lede { color: var(--muted); font-size: 1.1rem; margin: -24px 0 36px; max-width: 40em; }
.section.alt-soft { background: var(--surface); border-block: 1px solid var(--border); }
.categories { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category {
  position: relative; border-radius: 20px; padding: 26px 24px 24px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 18px 40px -28px rgba(11, 16, 38, 0.45);
}
.category h3 { margin: 14px 0 4px; font-size: 1.35rem; }
.category > p { color: var(--muted); margin: 0 0 14px; }
.emblem { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; color: #fff; }
.games .emblem { background: linear-gradient(135deg, #00708a, #3fd6f0); }
.film .emblem { background: linear-gradient(135deg, #5b3cc4, #a98bff); }
.music .emblem { background: linear-gradient(135deg, #a3122a, #f2c14e); }
.status { display: inline-block; font-weight: 700; font-size: 0.85rem; padding: 4px 12px; border-radius: 999px; margin: 0 0 12px; }
.category .status.available { background: var(--match-bg); color: var(--match-fg); }
.category .status.coming { background: var(--partial-bg); color: var(--partial-fg); }
.category .status.planned { background: var(--miss-bg); color: var(--miss-fg); }
.clues { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.clues li { font-size: 0.85rem; font-weight: 600; padding: 4px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); color: var(--text); }
.category[data-status="planned"] .clues li, .category[data-status="in-development"] .clues li { border-style: dashed; }
@media (max-width: 960px) { .categories { grid-template-columns: 1fr; max-width: 560px; } }
