/* Layout: a single centered column (max 1160px) of full-bleed bands; the hero pairs copy with the promo video, and the sample quiz pairs questions with live ranked matches. */
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --bg: #ffffff;
  --surface: #f2f7fb;
  --ink: #0e2536;
  --muted: #4b6476;
  --line: #d5e3ed;
  --heart: #3896d3;
  --lens: #63c3dd;
  --lens-soft: #e2f3f9;
  --accent-text: #1c6fad;
  --btn: #1c6fad;
  --btn-ink: #ffffff;
  --btn-hover: #155b90;
  --pill-bg: rgba(255, 255, 255, 0.92);
  --pill-ink: #24323c;
  --shadow: 0 24px 60px -28px rgba(14, 55, 90, 0.45);
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 4vw, 2.9rem);
  --step-4: clamp(2.7rem, 6.4vw, 4.9rem);
  --radius: 18px;
  --wrap: 1160px;
  --header-h: 68px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1924;
    --surface: #102434;
    --ink: #e6f0f7;
    --muted: #9cb3c4;
    --line: #213a4d;
    --heart: #4aa3df;
    --lens: #6fcbe4;
    --lens-soft: #14384a;
    --accent-text: #7fcbea;
    --btn: #63c3dd;
    --btn-ink: #062031;
    --btn-hover: #8ad6ea;
    --pill-bg: rgba(255, 255, 255, 0.92);
    --pill-ink: #24323c;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1924;
  --surface: #102434;
  --ink: #e6f0f7;
  --muted: #9cb3c4;
  --line: #213a4d;
  --heart: #4aa3df;
  --lens: #6fcbe4;
  --lens-soft: #14384a;
  --accent-text: #7fcbea;
  --btn: #63c3dd;
  --btn-ink: #062031;
  --btn-hover: #8ad6ea;
  --pill-bg: rgba(255, 255, 255, 0.92);
  --pill-ink: #24323c;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--lens); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: max(20px, 4vw); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--btn); color: var(--btn-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 1.05;
  letter-spacing: -0.005em;
}
.sub { color: var(--muted); max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1.05rem/1 var(--font-body);
  padding: 15px 24px;
  border-radius: 999px;
  border: 2px solid var(--btn);
  background: var(--btn);
  color: var(--btn-ink);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--accent-text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--accent-text); }
.btn-small { padding: 10px 18px; font-size: 0.95rem; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; letter-spacing: 0.005em; line-height: 1; }
.wordmark b { font-weight: 700; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.98rem; }
.nav a:hover { color: var(--ink); }
@media (max-width: 820px) { .nav { display: none; } .header-row .btn-small { margin-left: auto; } }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 88px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-4);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.hl { color: var(--heart); }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 34ch; line-height: 1.5; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.avail { color: var(--muted); font-size: 0.98rem; }
.hero-video { position: relative; margin: 0; min-width: 0; }
.hero-video::before {
  content: ""; position: absolute; inset: -9% -14% -9% 14%; z-index: -1;
  background: radial-gradient(closest-side, var(--lens-soft), transparent 70%);
}
.hero-video video {
  width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover;
  border-radius: 28px; box-shadow: var(--shadow); background: var(--surface);
}
.sound {
  position: absolute; right: 16px; top: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px 8px 11px; border-radius: 999px; border: 0;
  background: var(--pill-bg); color: var(--pill-ink);
  font: 600 0.9rem/1 var(--font-body); cursor: pointer;
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.45);
}
.sound .wave { display: none; }
.sound[aria-pressed="true"] .wave { display: inline; }
.sound[aria-pressed="true"] .mute { display: none; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-video { max-width: 520px; width: 100%; justify-self: center; }
  .lede { max-width: 46ch; }
}

/* Story beats: the three captions from the promo */
.story { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
.beats { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: beat; }
.beats li { display: flex; flex-direction: column; gap: 16px; position: relative; min-width: 0; }
.beats li:not(:last-child)::after {
  content: ""; position: absolute; top: 24px; right: -22px; width: 16px; height: 2px; background: var(--line);
}
.pill {
  align-self: flex-start;
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.1;
  color: var(--ink);
}
.pill b { font-weight: 700; }
.beats li:nth-child(3) .pill { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.beats p { color: var(--muted); max-width: 36ch; }
@media (max-width: 760px) {
  .beats { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .beats li:not(:last-child)::after { display: none; }
}

/* Sample quiz */
.try { background: var(--surface); padding-block: clamp(56px, 8vw, 104px); }
.try-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.try-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.questions { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.q fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.q legend { font-weight: 600; font-size: var(--step-1); margin-bottom: 12px; padding: 0; line-height: 1.3; }
.q legend span { color: var(--accent-text); font-family: var(--font-display); font-weight: 700; margin-right: 8px; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip label {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  font-weight: 500; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s;
}
.chip input:hover + label { border-color: var(--heart); }
.chip input:checked + label { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.chip input:focus-visible + label { outline: 3px solid var(--lens); outline-offset: 2px; }

.matches {
  background: var(--bg); border: 1px solid var(--line); border-radius: 24px;
  padding: 22px; box-shadow: var(--shadow); min-width: 0;
}
.matches-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.matches-head h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); line-height: 1; }
.matches-note { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.match-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.match {
  display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: 4px 12px; align-items: center;
  padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg);
}
.match.top { border-color: var(--heart); background: var(--lens-soft); }
.rank { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--muted); font-variant-numeric: tabular-nums; grid-row: span 2; }
.match.top .rank { color: var(--accent-text); }
.match-name { font-weight: 600; line-height: 1.25; min-width: 0; }
.match-name small { display: block; font-weight: 400; color: var(--muted); font-size: 0.88rem; }
.score { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; font-variant-numeric: tabular-nums; color: var(--ink); grid-row: span 2; text-align: right; min-width: 2.2ch; }
.bar { grid-column: 2; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--heart); transition: width .45s cubic-bezier(.2,.7,.2,1); }
.match.top .bar i { background: var(--accent-text); }
.badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font-size: 0.72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; }
@media (max-width: 860px) { .try-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .bar i { transition: none; } }

/* Features */
.features { padding-block: clamp(56px, 8vw, 110px); }
.features .section-title { max-width: 22ch; }
.feat-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 40px; }
.feat { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); min-width: 0; }
.feat svg { width: 34px; height: 34px; fill: none; stroke: var(--heart); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: var(--step-1); font-weight: 600; }
.feat p { color: var(--muted); }
@media (max-width: 900px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.ownership {
  margin-top: 56px; display: flex; align-items: center; gap: 22px;
  padding: 26px 28px; border-radius: var(--radius); background: var(--lens-soft);
}
.ownership img { flex: none; width: 64px; height: auto; }
.ownership p { max-width: 70ch; }
@media (max-width: 560px) { .ownership { flex-direction: column; align-items: flex-start; } }

/* Platforms */
.platforms { background: var(--surface); padding-block: clamp(56px, 8vw, 110px); }
.plat-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; position: relative;
  padding: 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  font: 600 1rem/1.2 var(--font-body); text-align: left; cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.tab svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--heart); }
.tab:hover { border-color: var(--heart); }
.tab[aria-selected="true"] { border-color: var(--btn); background: var(--btn); color: var(--btn-ink); }
.tab[aria-selected="true"] svg { color: var(--btn-ink); }
.yours {
  font-style: normal; font-size: 0.72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-text);
}
.tab[aria-selected="true"] .yours { color: var(--btn-ink); opacity: .85; }
@media (max-width: 760px) {
  .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab:last-child { grid-column: 1 / -1; }
}
.panel {
  margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: center;
  padding: clamp(22px, 4vw, 40px); border-radius: 24px; background: var(--bg); border: 1px solid var(--line);
}
.panel-copy { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.panel h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); line-height: 1.05; }
.panel-copy > p { color: var(--muted); max-width: 58ch; }
.panel ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.panel li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.panel li::before {
  content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%;
  border: 2px solid var(--lens);
}
.panel-get { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.store {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-width: 220px; padding: 12px 22px; border-radius: 14px; border: 0;
  background: var(--ink); color: var(--bg); cursor: pointer;
  font: 600 1.35rem/1.1 var(--font-body); text-align: left;
}
.store small { font-weight: 500; font-size: 0.78rem; opacity: .8; letter-spacing: .02em; }
.store:hover { background: var(--accent-text); }
.soon-tag { font-size: 0.82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) {
  .panel { grid-template-columns: minmax(0, 1fr); }
  .panel-get { align-items: stretch; }
  .store { min-width: 0; width: 100%; }
}

/* FAQ */
.faq { padding-block: clamp(56px, 8vw, 110px); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 32px 56px; }
.faq-list { border-top: 1px solid var(--line); min-width: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: var(--step-1); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2px solid var(--heart); border-bottom: 2px solid var(--heart); transform: rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { padding: 0 40px 22px 0; color: var(--muted); max-width: 64ch; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }

/* Closer */
.closer { background: var(--btn); color: var(--btn-ink); padding-block: clamp(48px, 7vw, 84px); }
.closer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.closer h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); line-height: 1.05; max-width: 20ch; }
.btn-invert { background: var(--btn-ink); color: var(--btn); border-color: var(--btn-ink); }
.btn-invert:hover { background: transparent; color: var(--btn-ink); border-color: var(--btn-ink); }

/* Footer */
.site-footer { padding-block: 36px; border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.footer-row .wordmark { font-size: 1.35rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.footer-nav a, .linkish { color: var(--muted); text-decoration: none; font: 500 0.98rem/1.6 var(--font-body); }
.footer-nav a:hover, .linkish:hover { color: var(--ink); }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; }
.copy { color: var(--muted); font-size: 0.92rem; width: 100%; }

/* Coming-soon dialog */
.soon {
  border: 0; border-radius: 24px; padding: 32px 28px 26px; width: min(420px, calc(100vw - 32px));
  background: var(--bg); color: var(--ink); box-shadow: var(--shadow); text-align: center;
}
.soon[open] { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.soon::backdrop { background: rgba(6, 22, 34, 0.55); backdrop-filter: blur(3px); }
.soon h2 { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; }
.soon p { color: var(--muted); max-width: 32ch; }
.soon .btn { margin-top: 8px; min-width: 140px; }
.soon img { width: 72px; height: auto; }

/* 404 page */
.notfound { min-height: 80vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; padding-block: 48px; }
