/* ══════════════════════════════════════
   TRIVIA FUN — Marketing Site
   ══════════════════════════════════════ */

/* ── Theme Variables ── */
:root {
  --gold: #f0c040;
  --amber: #e89820;
  --gold-glow: rgba(240, 192, 64, 0.15);
  --r: 12px;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --heading: 'Bebas Neue', sans-serif;
  --transition: 0.3s ease;
}

[data-theme="dark"] {
  --bg: #0a0e18;
  --bg2: #111827;
  --surface: #161d2e;
  --surface2: #1c2438;
  --border: #232d42;
  --text: #e8e6e1;
  --text2: #b0aead;
  --muted: #6b7a94;
  --hero-bg: linear-gradient(160deg, #0a0e18 0%, #111827 50%, #0f1520 100%);
  --section-alt: #0d1220;
  --card-shadow: 0 4px 24px rgba(0,0,0,0.3);
  --nav-bg: rgba(10, 14, 24, 0.9);
}

[data-theme="light"] {
  --bg: #fafaf8;
  --bg2: #f0eeeb;
  --surface: #ffffff;
  --surface2: #f5f4f1;
  --border: #e0ddd8;
  --text: #1a1a1a;
  --text2: #555555;
  --muted: #888888;
  --hero-bg: linear-gradient(160deg, #fafaf8 0%, #f0eeeb 50%, #fafaf8 100%);
  --section-alt: #f5f4f1;
  --card-shadow: 0 4px 24px rgba(0,0,0,0.06);
  --nav-bg: rgba(250, 250, 248, 0.9);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: #1a1a1a;
  box-shadow: 0 2px 12px rgba(240, 192, 64, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(240, 192, 64, 0.4);
}

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: 12px; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--heading);
  font-size: 1.6rem;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: all 0.2s;
}

.theme-toggle:hover {
  border-color: var(--muted);
}

/* ── Hero ── */
.hero {
  padding: 120px 0 80px;
  background: var(--hero-bg);
  overflow: hidden;
  transition: background var(--transition);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-family: var(--heading);
  font-size: clamp(3rem, 6vw, 4.5rem);
  letter-spacing: 3px;
  line-height: 1.05;
  color: var(--text);
}

.hero-accent {
  background: linear-gradient(135deg, var(--gold), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text2);
  margin-top: 20px;
  line-height: 1.7;
  max-width: 480px;
}

.hero-cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-hint {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}

.mockup-phone {
  width: 280px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 32px;
  padding: 16px;
  box-shadow: var(--card-shadow), 0 0 80px var(--gold-glow);
  transition: all var(--transition);
}

.mockup-screen {
  background: var(--bg2);
  border-radius: 20px;
  padding: 22px 16px 20px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.mockup-timer {
  height: 4px;
  background: var(--surface2);
  border-radius: 100px;
  margin-bottom: 16px;
  overflow: hidden;
}

.mockup-timer-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--amber));
  transform-origin: left center;
  transform: scaleX(1);
}

.mockup-screen.mock-show .mockup-timer-bar {
  animation: mockDrain 4s linear forwards;
}

@keyframes mockDrain {
  0%   { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

.mockup-q {
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 18px;
  color: var(--text);
  min-height: 2.4em;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mockup-screen.mock-show .mockup-q {
  opacity: 1;
  transform: none;
}

.mockup-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-choice {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  color: var(--text2);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.mockup-screen.mock-show .mockup-choice { opacity: 1; transform: none; }
.mockup-screen.mock-show .mockup-choice:nth-child(1) { transition-delay: 0.15s, 0.15s, 0s, 0s, 0s; }
.mockup-screen.mock-show .mockup-choice:nth-child(2) { transition-delay: 0.25s, 0.25s, 0s, 0s, 0s; }
.mockup-screen.mock-show .mockup-choice:nth-child(3) { transition-delay: 0.35s, 0.35s, 0s, 0s, 0s; }
.mockup-screen.mock-show .mockup-choice:nth-child(4) { transition-delay: 0.45s, 0.45s, 0s, 0s, 0s; }

.mockup-screen.mock-correct .mockup-choice.is-correct {
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: #1a1a1a;
  font-weight: 700;
  border-color: transparent;
  transform: scale(1.04);
  box-shadow: 0 4px 24px rgba(240, 192, 64, 0.35);
}

.mockup-points {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translate(-50%, 20px);
  font-family: var(--heading);
  font-size: 1.8rem;
  letter-spacing: 1px;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(240, 192, 64, 0.7);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.mockup-screen.mock-points .mockup-points {
  animation: mockFloatPoints 1.4s ease-out forwards;
}

@keyframes mockFloatPoints {
  0%   { opacity: 0; transform: translate(-50%, 20px) scale(0.9); }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -40px) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .mockup-q,
  .mockup-screen.mock-show .mockup-q { opacity: 1; transform: none; }
  .mockup-choice,
  .mockup-screen.mock-show .mockup-choice { opacity: 1; transform: none; }
  .mockup-screen.mock-show .mockup-timer-bar { animation: none; transform: scaleX(0); }
  .mockup-screen.mock-points .mockup-points { animation: none; }
  .mockup-points { display: none; }
}

/* ── Sections ── */
.section {
  padding: 80px 0;
  transition: background var(--transition);
}

.section-alt {
  background: var(--section-alt);
}

.section-title {
  font-family: var(--heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 2px;
  text-align: center;
  color: var(--text);
}

.section-sub {
  text-align: center;
  color: var(--text2);
  font-size: 1.05rem;
  margin-top: 10px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}

.step:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
}

.step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: #1a1a1a;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.step h3 {
  font-family: var(--heading);
  font-size: 1.3rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--text);
}

.step p {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.6;
}

/* ── Features ── */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 20px;
  transition: all var(--transition);
}

.feature:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--card-shadow);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.feature h3 {
  font-family: var(--heading);
  font-size: 1.15rem;
  letter-spacing: 1px;
  margin-bottom: 6px;
  color: var(--text);
}

.feature p {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.6;
}

/* ── Venue Grid ── */
.venue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.venue-point {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  font-size: 0.92rem;
  color: var(--text2);
  line-height: 1.6;
  transition: all var(--transition);
}

.venue-point:hover {
  border-color: var(--gold);
}

.venue-point strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

/* ── CTA Section ── */
.cta-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.cta-inner {
  text-align: center;
  padding: 40px 0;
}

.cta-title {
  font-family: var(--heading);
  font-size: 2.4rem;
  letter-spacing: 2px;
  color: var(--text);
}

.cta-sub {
  color: var(--text2);
  font-size: 1.05rem;
  margin: 10px 0 28px;
}

/* ── Footer ── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  transition: border-color var(--transition);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--heading);
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

/* ── Scroll Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger cards */
.fade-in:nth-child(2) { transition-delay: 0.08s; }
.fade-in:nth-child(3) { transition-delay: 0.16s; }
.fade-in:nth-child(4) { transition-delay: 0.24s; }
.fade-in:nth-child(5) { transition-delay: 0.32s; }
.fade-in:nth-child(6) { transition-delay: 0.4s; }
.fade-in:nth-child(7) { transition-delay: 0.48s; }
.fade-in:nth-child(8) { transition-delay: 0.56s; }

/* ── Nav Links ── */
.nav-link {
  font-size: 0.9rem;
  color: var(--text2);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}

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

.nav-link-active {
  color: var(--gold);
}

/* ── Pricing Hero ── */
.pricing-hero {
  padding: 140px 0 60px;
  background: var(--hero-bg);
  text-align: center;
  transition: background var(--transition);
}

.pricing-title {
  font-family: var(--heading);
  font-size: clamp(2.6rem, 5vw, 4rem);
  letter-spacing: 3px;
  line-height: 1.05;
  color: var(--text);
  margin-top: 20px;
}

.pricing-sub {
  font-size: 1.1rem;
  color: var(--text2);
  margin: 20px auto 0;
  max-width: 560px;
  line-height: 1.7;
}

.beta-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(240, 192, 64, 0.1);
  border: 1px solid rgba(240, 192, 64, 0.3);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  letter-spacing: 0.3px;
}

.beta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

/* ── Tiers ── */
.tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
  align-items: stretch;
}

.tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition);
}

.tier:hover {
  border-color: var(--muted);
  transform: translateY(-4px);
}

.tier-featured {
  border-color: var(--gold);
  box-shadow: 0 4px 40px rgba(240, 192, 64, 0.15);
}

.tier-featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 48px rgba(240, 192, 64, 0.25);
}

.tier-premium {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface2) 100%);
  border-color: var(--border);
}

.tier-premium:hover {
  border-color: var(--gold);
}

.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: #1a1a1a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.tier-badge-premium {
  background: linear-gradient(135deg, #c9c4ff, #8a7fff);
  color: #1a1a1a;
}

.tier-custom {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface2) 100%);
  border-color: var(--border);
}

.tier-custom:hover {
  border-color: var(--gold);
}

.tier-badge-custom {
  background: linear-gradient(135deg, #2a2f3d, #1a1e28);
  color: #e8e6e1;
  border: 1px solid rgba(240, 192, 64, 0.4);
}

.tier-header {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.tier-name {
  font-family: var(--heading);
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 12px;
}

.tier-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}

.tier-price-num {
  font-family: var(--heading);
  font-size: 3.2rem;
  letter-spacing: 1px;
  color: var(--text);
  line-height: 1;
}

.tier-price-unit {
  font-size: 0.95rem;
  color: var(--text2);
  font-weight: 500;
}

.tier-tagline {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.5;
}

.early-access-rate {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: linear-gradient(135deg, rgba(240, 192, 64, 0.14), rgba(232, 152, 32, 0.08));
  border: 1px solid rgba(240, 192, 64, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 22px;
  text-align: left;
}

.early-access-rate-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
}

.early-access-rate-price {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.tier-features {
  list-style: none;
  flex-grow: 1;
  margin-bottom: 28px;
}

.tier-features li {
  padding: 10px 0;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
  position: relative;
  padding-left: 26px;
}

.tier-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
}

.tier-features li.tier-muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.tier-features li.tier-muted::before { color: var(--muted); }

.tier-features strong {
  color: var(--text);
  font-weight: 700;
}

.tier-btn {
  width: 100%;
}

.btn-secondary {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ── FAQ ── */
.faq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Center the orphaned final card when the total count is odd, so the
   grid doesn't end with one card stranded in the left column. */
@media (min-width: 901px) {
  .faq-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 12px);
  }
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.faq-item h3 {
  font-family: var(--heading);
  font-size: 1.15rem;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.92rem;
  color: var(--text2);
  line-height: 1.6;
}

/* ── Modal ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  animation: modalIn 0.25s ease-out;
}

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

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--text2);
  font-size: 1.6rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--surface2);
  color: var(--text);
}

.modal-title {
  font-family: var(--heading);
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 8px;
}

.modal-sub {
  font-size: 0.95rem;
  color: var(--text2);
  margin-bottom: 24px;
}

.waitlist-form,
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wl-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text2);
  font-weight: 500;
}

.wl-optional {
  color: var(--muted);
  font-weight: 400;
}

.wl-field input,
.wl-field textarea,
.wl-field select,
.wl-label input {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 12px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.wl-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.wl-field input:focus,
.wl-field textarea:focus,
.wl-field select:focus,
.wl-label input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 192, 64, 0.18);
}

.wl-hint {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
}

.wl-submit {
  margin-top: 8px;
  width: 100%;
}

.wl-error {
  color: #e74c3c;
  font-size: 0.85rem;
  text-align: center;
  min-height: 20px;
}

.waitlist-success {
  text-align: center;
  padding: 12px 0;
}

/* ── Honeypot (visually hidden but not display:none) ── */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ── Skip link (a11y) ── */
.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 9999;
  background: var(--gold);
  color: #1a1a1a;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 8px;
  outline: 3px solid var(--text);
  outline-offset: 2px;
}

/* ── Global focus visibility (a11y — replaces universal outline:none) ── */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Contact page ── */
.contact-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.contact-aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.contact-aside-title {
  font-family: var(--heading);
  font-size: 1.3rem;
  letter-spacing: 1.5px;
  color: var(--text);
  margin-bottom: 18px;
}

.contact-aside-item {
  font-size: 0.9rem;
  color: var(--text2);
  margin-bottom: 18px;
  line-height: 1.5;
}

.contact-aside-item strong {
  color: var(--text);
  font-weight: 600;
}

.contact-aside-item a {
  color: var(--gold);
}

.wl-success-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

/* ══════════════════════════════════════
   CASE STUDY PAGE
   ══════════════════════════════════════ */
.cs-hero {
  padding: 140px 0 60px;
  background: var(--hero-bg);
  text-align: center;
  transition: background var(--transition);
}

.cs-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(240, 192, 64, 0.1);
  border: 1px solid rgba(240, 192, 64, 0.3);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.cs-title {
  font-family: var(--heading);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: 2.5px;
  line-height: 1.08;
  color: var(--text);
  max-width: 900px;
  margin: 0 auto;
}

.cs-sub {
  font-size: 1.15rem;
  color: var(--text2);
  margin: 24px auto 0;
  max-width: 640px;
  line-height: 1.7;
}

.cs-hero-image {
  margin-top: 40px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.cs-hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* Metrics bar */
.cs-metrics-section {
  padding: 40px 0;
}

.cs-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cs-metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 16px;
  text-align: center;
  transition: all var(--transition);
}

.cs-metric:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.cs-metric-num {
  font-family: var(--heading);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.cs-metric-label {
  font-size: 0.82rem;
  color: var(--text2);
  margin-top: 8px;
  font-weight: 500;
}

/* Story blocks */
.cs-story {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.cs-story-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-story-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}

.cs-story-heading {
  font-family: var(--heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: 1.5px;
  line-height: 1.1;
  color: var(--text);
}

.cs-story p {
  font-size: 1.02rem;
  color: var(--text2);
  line-height: 1.75;
  margin: 0;
}

/* Pull quote */
.cs-quote-section {
  padding: 60px 0;
}

.cs-quote {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  text-align: center;
}

.cs-quote::before {
  content: '"';
  font-family: var(--heading);
  font-size: 7rem;
  line-height: 0.8;
  color: var(--gold);
  opacity: 0.25;
  display: block;
  margin-bottom: -20px;
}

.cs-quote p {
  font-family: var(--heading);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: 1px;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 24px;
}

.cs-quote cite {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.cs-quote cite strong {
  font-size: 1rem;
  color: var(--text);
  font-weight: 700;
}

.cs-quote cite span {
  font-size: 0.88rem;
  color: var(--text2);
}

/* Facts strip */
.cs-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.cs-fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
}

.cs-fact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.cs-fact-value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
}

/* ── Comparison table ── */
.compare-wrap {
  max-width: 920px;
  margin: 48px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.compare-table thead th {
  font-family: var(--heading);
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: var(--text2);
  font-weight: 600;
  padding: 18px 16px;
  text-align: center;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

.compare-table thead th.compare-us {
  color: var(--text);
  background: linear-gradient(180deg, rgba(240, 192, 64, 0.18), rgba(240, 192, 64, 0.06));
  position: relative;
}

.compare-table thead th.compare-us::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--amber));
}

.compare-table thead th.compare-rowhead {
  background: var(--surface);
  text-align: left;
  padding-left: 24px;
}

.compare-table tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--text);
  padding: 14px 16px 14px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.compare-table tbody td {
  text-align: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
}

.compare-table tbody td.compare-us {
  background: rgba(240, 192, 64, 0.06);
  color: var(--text);
  font-weight: 600;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-yes {
  display: inline-block;
  width: 26px;
  height: 26px;
  line-height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: #1a1a1a;
  font-weight: 800;
  font-size: 0.95rem;
}

.compare-no {
  display: inline-block;
  width: 26px;
  height: 26px;
  line-height: 26px;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--border);
}

.compare-meh {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--text2);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
}

/* ── Responsive ── */
/* ── Legal pages (terms, privacy) ── */
.legal-prose {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.75;
}
.legal-prose .legal-meta {
  color: var(--text2);
  font-size: 0.9rem;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.legal-prose h2 {
  font-family: var(--heading);
  font-size: 1.5rem;
  letter-spacing: 1px;
  margin-top: 44px;
  margin-bottom: 12px;
  color: var(--text);
}
.legal-prose h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text);
}
.legal-prose p,
.legal-prose ul,
.legal-prose ol {
  margin-bottom: 14px;
  color: var(--text2);
}
.legal-prose ul,
.legal-prose ol {
  padding-left: 24px;
}
.legal-prose li {
  margin-bottom: 6px;
}
.legal-prose strong {
  color: var(--text);
  font-weight: 700;
}
.legal-prose a {
  color: var(--gold);
  text-decoration: underline;
}
.legal-prose .legal-callout {
  background: rgba(240, 192, 64, 0.08);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 6px 6px 0;
  color: var(--text);
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { order: 2; }
  .hero-visual { order: 1; margin-bottom: 8px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { align-items: center; }
  .hero-cta-row { justify-content: center; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .venue-grid { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin-left: auto; margin-right: auto; }
  .contact-container { grid-template-columns: 1fr; gap: 24px; }
  .faq { grid-template-columns: 1fr; }
  .cs-metrics { grid-template-columns: repeat(2, 1fr); }
  .cs-facts { grid-template-columns: repeat(2, 1fr); }
  .nav-link-anchor { display: none; }
  .compare-table { font-size: 0.84rem; }
  .compare-table thead th { padding: 14px 8px; font-size: 0.82rem; letter-spacing: 0.5px; }
  .compare-table tbody th { padding: 12px 8px 12px 14px; font-size: 0.84rem; }
  .compare-table tbody td { padding: 12px 6px; }
  .compare-yes, .compare-no { width: 22px; height: 22px; line-height: 22px; font-size: 0.82rem; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .steps { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .features { grid-template-columns: 1fr; }
  .venue-grid { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; max-width: 420px; }
  .hero { padding: 100px 0 60px; }
  .section { padding: 60px 0; }
  .hero-title { font-size: 2.4rem; letter-spacing: 2px; }
  .mockup-phone { width: 240px; }
  .pricing-hero { padding: 110px 0 40px; }
  .cs-hero { padding: 110px 0 40px; }
  .cs-story { gap: 40px; }
  .cs-story-block { gap: 8px; }
  .modal-content { padding: 28px 22px; }
  .nav-inner { height: 58px; }
  .nav-right { gap: 8px; }
  .nav-logo { font-size: 1.35rem; letter-spacing: 2px; }
  .nav-link { padding: 8px 4px; font-size: 0.82rem; }
  .btn-sm { padding: 9px 14px; font-size: 0.82rem; }
  .theme-toggle { padding: 7px 9px; font-size: 0.95rem; }
}

@media (max-width: 420px) {
  .container { padding: 0 14px; }
  .nav-inner { height: 54px; }
  .nav-logo { font-size: 1.15rem; letter-spacing: 1.5px; }
  .nav-right { gap: 6px; }
  .nav-link { padding: 6px 2px; font-size: 0.78rem; }
  /* On the smallest phones the nav can't fit Pricing + Community + Contact +
     theme + Launch App. Drop Community and Contact (both still reachable from
     the footer) so the primary CTA stays visible. */
  .nav-right .nav-link[href*="forum"], .nav-right .nav-link[href="/contact.html"] { display: none; }
  .btn-sm { padding: 8px 12px; font-size: 0.78rem; border-radius: 8px; }
  .theme-toggle { padding: 6px 8px; font-size: 0.9rem; }
  .hero { padding: 90px 0 50px; }
  .hero-title { font-size: 2rem; letter-spacing: 1.5px; }
  .hero-sub { font-size: 1rem; }
  .btn-lg { padding: 14px 24px; font-size: 0.98rem; }
  .mockup-phone { width: 220px; }
  .section-title { font-size: 1.8rem; }
  .pricing-title { font-size: 2rem; letter-spacing: 1.5px; }
  .pricing-sub { font-size: 0.95rem; }
}
