/* ==========================================================================
   Quizion marketing site
   Design tokens from Quizion Brand Guidelines v3.0
   ========================================================================== */

:root {
  /* Base surfaces */
  --navy: #0D1421;
  --surface: #182032;
  --surface-hi: #1E2A3D;
  --border: rgba(255, 255, 255, 0.08);

  /* Text */
  --text: #FFFFFF;
  --text-2: rgba(255, 255, 255, 0.60);
  --text-3: rgba(255, 255, 255, 0.40);

  /* Brand */
  --coral: #FF5454;
  --coral-deep: #8C1A1A;
  --grad-brand: linear-gradient(135deg, #8C1A1A, #FF5454);

  /* Functional */
  --green: #2ECC71;
  --gold: #F39C12;

  /* Topic gradients (brand guide 4.5) */
  --g-geo: linear-gradient(135deg, #0A3D62, #1A7FBE);
  --g-mov: linear-gradient(135deg, #6B1A1A, #C0392B);
  --g-sci: linear-gradient(135deg, #0B3D2E, #1A8C5A);
  --g-mus: linear-gradient(135deg, #3D1A5E, #7B2FBE);
  --g-spo: linear-gradient(135deg, #1A3D10, #2E8B1A);
  --g-his: linear-gradient(135deg, #3D2A0A, #8B5E1A);
  --g-foo: linear-gradient(135deg, #3D1A0A, #BE5A2F);
  --g-tec: linear-gradient(135deg, #0A1A3D, #1A4FBE);
  --g-art: linear-gradient(135deg, #3D0A1A, #BE2F6B);
  --g-mat: linear-gradient(135deg, #0A2A3D, #1A8BA0);
  --g-nat: linear-gradient(135deg, #1A3D0A, #5A8B1A);
  --g-lan: linear-gradient(135deg, #3D2A0A, #A07840);
  --g-gen: linear-gradient(135deg, #14406B, #2D7FD1);

  /* Type */
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-num: 'Inter Tight', 'Inter', system-ui, sans-serif;

  /* Shadows (brand guide 8) */
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.40);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.50);
  --glow-brand: 0 4px 16px rgba(255, 84, 84, 0.40);

  /* Shape: soft system, one scale */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1200px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 700; }

p { margin: 0; }

.coral { color: var(--coral); }

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

section { position: relative; }

::selection { background: var(--coral); color: #fff; }

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), filter 0.18s var(--ease-out);
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  padding: 0.8rem 1.5rem;
  box-shadow: var(--glow-brand);
}

.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-primary:active { transform: translateY(0) scale(0.98); }

/* ---------- Nav ---------- */
#top-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
  background: rgba(13, 20, 33, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 68px;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-mark { border-radius: 8px; }

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.wordmark em { font-style: normal; color: var(--coral); }

.nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--text); }

.btn-nav { padding: 0.55rem 1.1rem; font-size: 0.88rem; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .btn-nav { margin-left: auto; }
}

@media (max-width: 480px) {
  .nav-inner { height: 60px; }
  .btn-nav { font-size: 0.8rem; padding: 0.5rem 0.9rem; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6rem 1.25rem 3rem;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 3rem;
}

.hero-copy { animation: rise 0.7s var(--ease-out) both; }

.hero-sub {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-2);
  max-width: 30rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Store badges */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s var(--ease-out), border-color 0.18s var(--ease-out), background-color 0.18s var(--ease-out);
}

.store-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 84, 84, 0.5);
  background: var(--surface-hi);
}

.store-badge:active { transform: scale(0.98); }

.store-badge small {
  display: block;
  font-size: 0.68rem;
  color: var(--text-2);
  line-height: 1.2;
}

.store-badge strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.25;
}

/* Hero visual */
.hero-visual {
  position: relative;
  height: clamp(420px, 60vh, 620px);
}

.phone {
  background: #0A0F1A;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  padding: 9px;
  box-shadow: var(--shadow-lg);
}

.phone img { border-radius: 26px; }

.phone-back,
.phone-front {
  position: absolute;
  width: clamp(200px, 22vw, 262px);
  will-change: transform;
}

.phone-back {
  left: 2%;
  top: 6%;
  transform: rotate(-7deg);
  opacity: 0.85;
  animation: rise 0.8s 0.15s var(--ease-out) both;
}

.phone-front {
  right: 6%;
  top: 14%;
  transform: rotate(4deg);
  animation: rise 0.8s 0.3s var(--ease-out) both;
}



/* Ion field background */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-glow {
  position: absolute;
  right: -10%;
  top: 20%;
  width: 55vw;
  height: 55vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(255, 84, 84, 0.14), transparent 65%);
  filter: blur(10px);
}

.ion {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  opacity: 0.35;
}

.i1 { left: 8%;  top: 22%; animation: drift 11s ease-in-out infinite; }
.i2 { left: 30%; top: 74%; width: 4px; height: 4px; animation: drift 13s 1s ease-in-out infinite; }
.i3 { left: 55%; top: 16%; width: 5px; height: 5px; background: #1A7FBE; animation: drift 10s 2s ease-in-out infinite; }
.i4 { left: 72%; top: 82%; animation: drift 14s 0.5s ease-in-out infinite; }
.i5 { left: 88%; top: 34%; width: 4px; height: 4px; background: var(--gold); animation: drift 12s 3s ease-in-out infinite; }
.i6 { left: 15%; top: 55%; width: 3px; height: 3px; background: #7B2FBE; animation: drift 15s 2s ease-in-out infinite; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(14px, -22px); }
  66% { transform: translate(-10px, 12px); }
}

@media (max-width: 900px) {
  .hero { padding-top: 5.5rem; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { height: 420px; max-width: 420px; margin: 0 auto; width: 100%; }
  .phone-back { left: 0; }
  .phone-front { right: 0; }
  .phone-back, .phone-front { width: clamp(170px, 40vw, 230px); }
}

@media (max-width: 480px) {
  .hero {
    padding: 4.5rem 1rem 2.5rem;
    align-items: flex-start;
  }
  .hero-inner { gap: 2rem; }
  .hero-sub { font-size: 1rem; margin-top: 1rem; }
  .hero-visual {
    height: 320px;
    max-width: 100%;
  }
  .phone-back, .phone-front { width: clamp(130px, 36vw, 165px); }
  .phone-back { left: 2%; top: 4%; }
  .phone-front { right: 2%; top: 16%; }
  .store-badges { gap: 0.6rem; }
  .store-badge { padding: 0.55rem 1rem; }
  .store-badge strong { font-size: 0.9rem; }
  .hero-waitlist { margin-top: 1rem; width: 100%; justify-content: center; }
}

/* ---------- How it works (vertical timeline) ---------- */
.how {
  background: var(--navy);
  padding: 7rem 1.25rem 5rem;
  overflow: hidden;
}

@media (max-width: 480px) {
  .how { padding: 4rem 1rem 3rem; }
  .how-header { margin-bottom: 2.5rem; }
}

.how-header {
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto 4rem;
}

.how-header p {
  margin-top: 1rem;
  color: var(--text-2);
  font-size: 1.1rem;
}

.how-timeline {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

/* Vertical glowing line running down the center */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255, 84, 84, 0.35) 8%,
    rgba(255, 84, 84, 0.35) 92%,
    transparent 100%);
}

/* Each card row */
.how-card {
  position: relative;
  padding: 2rem 0;
}

.how-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* Alternate: text left / phone right, then reverse */
.how-card-reverse {
  direction: rtl;
}
.how-card-reverse > * {
  direction: ltr;
}

.how-card-copy {
  display: flex;
  flex-direction: column;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-brand);
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--glow-brand);
  position: relative;
  z-index: 2;
}

.how-card-copy h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.how-card-copy p {
  margin-top: 0.85rem;
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 26rem;
}

.how-card-visual {
  display: flex;
  justify-content: center;
}

.phone-timeline {
  width: clamp(180px, 20vw, 240px);
  transition: transform 0.4s var(--ease-out);
}

.how-card:hover .phone-timeline {
  transform: translateY(-6px) rotate(2deg);
}

.how-card:nth-child(odd):hover .phone-timeline {
  transform: translateY(-6px) rotate(-2deg);
}

/* Mobile: single column, line hidden */
@media (max-width: 768px) {
  .timeline-line { display: none; }
  .how-card-inner,
  .how-card-reverse {
    grid-template-columns: 1fr;
    text-align: center;
    direction: ltr;
  }
  .how-card-copy { align-items: center; }
  .how-card-visual { order: -1; }
  .phone-timeline { width: clamp(170px, 45vw, 240px); }
  .how-card-copy p { max-width: 100%; }
}

@media (max-width: 480px) {
  .how-card { padding: 1.25rem 0; }
  .how-card-inner { gap: 1.25rem; }
  .how-card-copy h3 { font-size: clamp(1.3rem, 5vw, 1.7rem); }
  .phone-timeline { width: clamp(140px, 42vw, 190px); }
}

/* Non-interactive "Soon" badges (no href yet) still read as buttons */
a.store-badge:not([href]) { cursor: default; }

/* ---------- Section heads ---------- */
.section-head {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
}

.section-head p {
  margin: 1rem auto 0;
  color: var(--text-2);
  max-width: 34rem;
  font-size: 1.05rem;
}

/* ---------- Topics wall ---------- */
.topics { padding: 7rem 0; overflow: hidden; }

@media (max-width: 480px) {
  .topics { padding: 4rem 0; }
  .topic-wall { margin-top: 2rem; }
  .topic-tile { font-size: 0.92rem; padding: 0.85rem 1.1rem; }
  .topics-note { margin-top: 2rem; font-size: 0.92rem; }
}

.topic-wall {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.topic-row { overflow: hidden; }

.topic-strip {
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
  width: max-content;
}

@media (prefers-reduced-motion: no-preference) {
  [data-marquee="left"] .topic-strip { animation: marquee 42s linear infinite; }
  [data-marquee="right"] .topic-strip { animation: marquee 46s linear infinite reverse; }
  .topic-row:hover .topic-strip { animation-play-state: paused; }
}

@media (prefers-reduced-motion: reduce) {
  .topic-row { overflow-x: auto; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.topic-tile {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.1rem 1.6rem;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.10);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s var(--ease-out);
}

.topic-tile:hover { transform: translateY(-3px); }

.t-ico { font-size: 1.3rem; }

.t-geo { background: var(--g-geo); }
.t-mov { background: var(--g-mov); }
.t-sci { background: var(--g-sci); }
.t-mus { background: var(--g-mus); }
.t-spo { background: var(--g-spo); }
.t-his { background: var(--g-his); }
.t-foo { background: var(--g-foo); }
.t-tec { background: var(--g-tec); }
.t-art { background: var(--g-art); }
.t-mat { background: var(--g-mat); }
.t-nat { background: var(--g-nat); }
.t-lan { background: var(--g-lan); }
.t-gen { background: var(--g-gen); }

.topics-note {
  text-align: center;
  margin-top: 3rem;
  color: var(--text-2);
  padding: 0 1.25rem;
}

/* ---------- Modes bento ---------- */
.modes { padding: 3rem 0 7rem; }

@media (max-width: 480px) {
  .modes { padding: 2rem 0 4rem; }
}

.bento {
  max-width: var(--max-w);
  margin: 3.5rem auto 0;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "lead lead lead"
    "tour streak xp";
  gap: 1.25rem;
}

.cell {
  border-radius: var(--r-lg);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cell p { color: rgba(255, 255, 255, 0.78); font-size: 0.98rem; max-width: 34rem; }

.cell-leaderboard { grid-area: lead; background: linear-gradient(120deg, #2B1B7E, #5B2EE5); padding: clamp(2rem, 3vw, 2.75rem); }
.cell-tournament  { grid-area: tour; background: linear-gradient(160deg, #6B1A1A, #C0392B); }
.cell-streak      { grid-area: streak; background: linear-gradient(135deg, #5E4308, #A07408); }
.cell-xp          { grid-area: xp; background: var(--surface-hi); }

/* Icon tiles, echoing the app's mode cards */
.mode-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

/* Wide leaderboard cell: copy left, live board right */
.cell-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.cell-split-copy h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.cell-split-copy p { margin-top: 0.6rem; }

/* Mini leaderboard inside the wide cell */
.board-mock {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.board-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(13, 20, 33, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-sm);
  padding: 0.5rem 0.9rem;
}

.board-rank {
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--gold);
  width: 1.1rem;
}

.board-ava { font-size: 1.15rem; }
.board-name { font-weight: 500; font-size: 0.92rem; }

.board-pts {
  margin-left: auto;
  font-family: var(--font-num);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 899px) {
  .bento {
    grid-template-columns: 1fr;
    grid-template-areas: "lead" "tour" "streak" "xp";
  }
  .cell-split { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .bento { padding: 0 1rem; gap: 0.9rem; margin-top: 2rem; }
  .cell { padding: 1.5rem; }
  .section-head { padding: 0 1rem; }
  .section-head h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
}

/* ---------- Versus ---------- */
.versus {
  padding: 7rem 1.25rem;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(255, 84, 84, 0.10), transparent),
    var(--navy);
  overflow: hidden;
}

@media (max-width: 480px) {
  .versus { padding: 4rem 1rem; }
  .vs-copy { margin-top: 2.5rem; }
  .vs-copy p { font-size: 0.97rem; }
  .vs-name { font-size: 0.82rem; }
}

.vs-stage {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.vs-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.vs-ava {
  display: grid;
  place-items: center;
  width: clamp(84px, 12vw, 128px);
  height: clamp(84px, 12vw, 128px);
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  background: var(--surface);
  border: 3px solid var(--coral);
  border-radius: 50%;
  box-shadow: var(--glow-brand);
}

.vs-right .vs-ava { border-color: #1A7FBE; box-shadow: 0 4px 16px rgba(26, 127, 190, 0.4); }

.vs-name { color: var(--text-2); font-size: 0.9rem; font-weight: 500; margin-top: 0.5rem; }

.vs-score {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.vs-badge {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.05em;
}

.vs-copy { text-align: center; margin-top: 3.5rem; }

.vs-copy p {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  color: var(--text-2);
  font-size: 1.05rem;
}

/* Slide-in from edges, mirrors matchmaking reveal in-app */
html.rv [data-reveal-x] { opacity: 0; transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
html.rv [data-reveal-x="left"] { transform: translateX(-56px); }
html.rv [data-reveal-x="right"] { transform: translateX(56px); }
html.rv [data-reveal-x].is-visible { opacity: 1; transform: translateX(0); }

/* ---------- Community ---------- */
.community { padding: 6rem 1.25rem; }

@media (max-width: 480px) {
  .community { padding: 3.5rem 1rem; }
  .community-grid { gap: 2rem; }
  .community-copy p { font-size: 0.97rem; }
  .community-points { gap: 0.7rem; }
  .submit-form { padding: 1.25rem; }
}

.community-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.community-copy p {
  margin-top: 1.25rem;
  color: var(--text-2);
  font-size: 1.05rem;
}

.community-points {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.community-points li {
  position: relative;
  padding-left: 1.7rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.98rem;
}

.community-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--grad-brand);
}

/* Form */
.submit-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

.form-title { margin-bottom: 1.5rem; }

.field { margin-bottom: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }

.field > label,
.field > .field-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.field .opt { color: var(--text-2); font-weight: 400; }

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea { resize: vertical; min-height: 130px; }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-3); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 84, 84, 0.18);
}

.field-hint { font-size: 0.8rem; color: var(--text-2); }

.field-error {
  display: none;
  font-size: 0.82rem;
  color: #FF7B7B;
  font-weight: 500;
}

.field.has-error input,
.field.has-error textarea { border-color: #E74C3C; }
.field.has-error .field-error { display: block; }

/* Segmented radio */
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-sm);
  padding: 0.35rem;
}

.seg input { position: absolute; opacity: 0; pointer-events: none; }

.seg label {
  text-align: center;
  padding: 0.6rem 0.5rem;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.seg input:checked + label {
  background: var(--grad-brand);
  color: #fff;
  font-weight: 600;
}

.seg input:focus-visible + label {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Submit button states */
.btn-submit { width: 100%; padding: 0.95rem; font-size: 1rem; position: relative; }

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.btn-submit.is-loading .btn-label { opacity: 0.6; }
.btn-submit.is-loading .btn-spinner { display: inline-block; }
.btn-submit.is-loading { pointer-events: none; }

.form-status {
  margin-top: 1rem;
  font-size: 0.92rem;
  min-height: 1.4em;
}

.form-status.ok { color: var(--green); font-weight: 500; }
.form-status.fail { color: #FF7B7B; font-weight: 500; }

@media (max-width: 899px) {
  .community-grid { grid-template-columns: 1fr; }
}

/* ---------- Download panel ---------- */
.download { padding: 2rem 1.25rem 7rem; }

.download-panel {
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--grad-brand);
  border-radius: var(--r-lg);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: center;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.download-copy h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }

.download-copy p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 28rem;
  font-size: 1.05rem;
}

.download .store-badge {
  background: rgba(13, 20, 33, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
}

.download .store-badge:hover { background: var(--navy); border-color: rgba(255, 255, 255, 0.45); }

.phone-download {
  width: clamp(200px, 22vw, 250px);
  justify-self: center;
  transform: rotate(6deg) translateY(12%);
  margin-bottom: -18%;
}

@media (max-width: 899px) {
  .download-panel { grid-template-columns: 1fr; text-align: center; }
  .download-copy p { margin-inline: auto; }
  .download .store-badges { justify-content: center; }
  .phone-download { display: none; }
}

@media (max-width: 480px) {
  .download { padding: 1.5rem 1rem 4rem; }
  .download-panel { padding: 2rem 1.5rem; border-radius: var(--r-md); }
  .download-copy h2 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .download-copy p { font-size: 0.97rem; }
  .waitlist-form { margin: 1.2rem 0 1.2rem; }
  .download .store-badges { gap: 0.6rem; }
  .download .store-badge { padding: 0.55rem 1rem; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 3rem 1.25rem; }

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }

.footer-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}

.footer-links a:hover { color: var(--text); }

.footer-note { margin-left: auto; color: var(--text-2); font-size: 0.85rem; }

@media (max-width: 700px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-note { margin-left: 0; }
}

/* ---------- Scroll reveals ---------- */
html.rv [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

html.rv [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Reduced motion: everything settles ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal], [data-reveal-x] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Waitlist form (download panel) + hero waitlist CTA
   ========================================================================== */
.hero-waitlist { margin-top: 1.2rem; display: inline-flex; }

.waitlist-form { margin: 1.6rem 0 1.8rem; max-width: 520px; }
.waitlist-form .field { margin-bottom: 1rem; }
.waitlist-form .btn-submit { width: 100%; }

/* Waitlist CTA inside the red download panel — white button for maximum contrast */
.btn-waitlist-cta {
  background: #FFFFFF;
  color: #8C1A1A;
  font-weight: 700;
  padding: 0.95rem;
  border-radius: var(--r-sm);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), background-color 0.18s var(--ease-out);
}

.btn-waitlist-cta:hover {
  transform: translateY(-2px);
  background: #F0F0F0;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.30);
}

/* Spinner must stay visible on the white button */
.btn-waitlist-cta .btn-spinner {
  border-color: rgba(140, 26, 26, 0.3);
  border-top-color: #8C1A1A;
}
