*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f0f0f;
  --bg-card: #1a1a1a;
  --marble: #e8e0d4;
  --marble-dim: #a89f93;
  --marble-dark: #6b6360;
  --gold: #c9a96e;
  --green: #5fa67a;
  --red: #c45c5c;
  --blue: #5a8fbf;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--marble); min-height: 100vh; -webkit-font-smoothing: antialiased; }

/* NAV */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0.75rem 2rem;
  background: rgba(15,15,15,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid #222;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--marble); text-decoration: none; letter-spacing: 0.03em; }
.nav-logo:hover { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-icon { color: var(--marble-dim); transition: color 0.2s; }
.nav-icon:hover { color: var(--gold); }
.nav-quiz {
  padding: 0.6rem 1.2rem; background: var(--gold); color: var(--bg);
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 4px; text-decoration: none; transition: background 0.2s;
}
.nav-quiz:hover { background: #d4b578; }
body.on-quiz .nav-quiz { display: none; }

/* PAGES */
.page { display: none; min-height: 100vh; flex-direction: column; padding-top: 3.5rem; }

/* HOME */
.home-hero { text-align: center; padding: 4rem 2rem 2rem; }
.home-hero h1 { font-family: var(--font-display); font-size: 3rem; font-weight: 700; line-height: 1.2; margin-bottom: 2rem; }

.input-row {
  display: flex; max-width: 600px; margin: 0 auto;
  border: 1px solid var(--marble-dark); border-radius: 6px; overflow: hidden;
  background: var(--bg-card); transition: border-color 0.2s;
}
.input-row:focus-within { border-color: var(--gold); }
.input-row input {
  flex: 1; padding: 0.9rem 1.25rem; background: transparent; border: none;
  color: var(--marble); font-size: 0.95rem; font-family: var(--font-body); outline: none;
}
.input-row input::placeholder { color: var(--marble-dark); }
.input-row button {
  padding: 0.9rem 1.5rem; background: var(--gold); color: var(--bg); border: none;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; cursor: pointer;
  letter-spacing: 0.05em; text-transform: uppercase; transition: background 0.2s;
}
.input-row button:hover { background: #d4b578; }

/* Gallery */
.gallery { padding: 0 2rem 3rem; max-width: 1100px; margin: 0 auto; width: 100%; }
.gallery-title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 1.5rem; }
.gallery-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; max-height: 5.5rem; overflow: hidden; }
.pill {
  padding: 0.45rem 1.1rem; background: transparent; border: 1px solid var(--marble-dark);
  color: var(--marble-dim); font-family: var(--font-body); font-size: 0.85rem;
  border-radius: 20px; cursor: pointer; transition: all 0.2s; white-space: nowrap; flex-shrink: 0;
}
.pill:hover { border-color: var(--gold); color: var(--gold); }
.pill.active { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.gallery-card { display: block; text-decoration: none; border-radius: 8px; overflow: hidden; border: 1px solid #2a2a2a; transition: border-color 0.2s, transform 0.2s; }
.gallery-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.gallery-thumb {
  aspect-ratio: 16/9; background: var(--bg-card); background-size: cover; background-position: center;
  position: relative;
}
.gallery-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--marble-dark); font-size: 0.8rem; }
.gallery-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 1.5rem 1rem 0.75rem;
}
.gallery-vs { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--marble); }
.gallery-topic { display: block; font-size: 0.75rem; color: var(--marble-dim); margin-top: 0.2rem; }
.result-topic { color: var(--marble-dim); font-size: 1.1rem; text-align: center; margin-top: -0.5rem; margin-bottom: 1.5rem; font-style: italic; }
.gallery-card.placeholder .gallery-thumb { filter: grayscale(0.5); opacity: 0.7; }
.gallery-badge { position: absolute; top: 8px; right: 8px; background: var(--gold); color: #1a1a1a; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; letter-spacing: 0.5px; }

/* PROCESSING */
#page-processing, #page-error { align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.processing-content h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 0.5rem; }
#process-status { color: var(--marble-dim); margin-bottom: 2rem; }

.spinner {
  width: 48px; height: 48px; border: 2px solid var(--marble-dark); border-top-color: var(--gold);
  border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 1.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

.process-steps { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.step { padding: 0.5rem 0; color: var(--marble-dark); font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.step::before { content: '\25CB'; }
.step.active { color: var(--gold); }
.step.active::before { content: '\25C9'; }
.step.done { color: var(--green); }
.step.done::before { content: '\25CF'; }

.email-capture { margin-top: 2rem; max-width: 400px; margin-left: auto; margin-right: auto; }
.email-prompt { color: var(--marble-dim); font-size: 0.9rem; margin-bottom: 0.75rem; }
.email-row { max-width: 400px; }

.error-msg { color: var(--red); font-size: 0.95rem; margin-top: 1rem; max-width: 500px; }

/* DEBATE PAGE */
#page-debate { align-items: center; }
.results-content { max-width: 800px; width: 100%; padding: 2rem 1.5rem; }

.result-title { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; text-align: center; margin-bottom: 1.5rem; }

.video-embed { width: 80%; margin: 0 auto 1rem; aspect-ratio: 16/9; background: var(--bg-card); border-radius: 8px; overflow: hidden; border: 1px solid #222; }
.video-embed iframe { width: 100%; height: 100%; border: none; }

/* Audio Player */
.audio-bar {
  width: 100%; margin: 0 0 2rem; padding: 0.6rem 1rem;
  background: var(--bg-card); border: 1px solid #2a2a2a; border-radius: 6px;
  display: flex; align-items: center; gap: 0.75rem; position: relative; overflow: hidden;
}
.ab-play { background: none; border: none; color: var(--gold); cursor: pointer; flex-shrink: 0; }
.ab-waveform { display: flex; flex: 1; height: 24px; align-items: center; gap: 2px; min-width: 0; overflow: hidden; }
.ab-waveform .bar {
  width: 3px; background: var(--gold); border-radius: 1px; opacity: 0.5;
  animation: waveAnim 1.76s ease-in-out infinite alternate;
}
@keyframes waveAnim { 0% { transform: scaleY(0.4); } 100% { transform: scaleY(1); } }
.ab-meta { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.ab-time { font-size: 0.75rem; color: var(--gold); }
.ab-speed { background: none; border: 1px solid var(--marble-dark); color: var(--marble-dim); font-size: 0.7rem; padding: 0.15rem 0.4rem; border-radius: 3px; cursor: pointer; }
.ab-progress { position: absolute; bottom: 0; left: 0; width: 0%; height: 2px; background: var(--gold); transition: width 0.3s linear; }
.ab-music { background: none; border: none; color: var(--gold); cursor: pointer; font-size: 1rem; opacity: 1; transition: opacity 0.2s; }
.audio-bar .ab-waveform .bar { animation-play-state: paused; }
.audio-bar.playing .ab-waveform .bar { animation-play-state: running; }

.who-won { font-family: var(--font-display); font-size: 2.8rem; text-align: center; color: var(--gold); margin-bottom: 0.75rem; }
.debate-intro { font-size: 1.05rem; color: var(--marble-dim); line-height: 1.7; text-align: center; margin-bottom: 1.5rem; }

/* Section blocks */
.section-block { margin-bottom: 2.5rem; }
.section-block h3, .category-section h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.75rem; }
.section-note { font-size: 0.85rem; color: var(--marble-dim); margin-bottom: 0.75rem; font-style: italic; }

/* Timeline */
.timeline { height: 36px; background: var(--bg-card); border-radius: 4px; overflow: hidden; display: flex; border: 1px solid #2a2a2a; cursor: pointer; }
.timeline-seg { height: 100%; transition: opacity 0.2s; }
.timeline-seg:hover { opacity: 0.75; }
.timeline-seg.speaker-a { background: var(--blue); }
.timeline-seg.speaker-b { background: var(--red); }
.timeline-legend { display: flex; gap: 1.5rem; margin-top: 0.5rem; font-size: 0.8rem; color: var(--marble-dim); }
.legend-item { display: flex; align-items: center; gap: 0.4rem; }
.legend-dot { width: 10px; height: 10px; border-radius: 2px; }
.talk-time-viz { display: flex; gap: 2rem; align-items: flex-start; margin-top: 1rem; }
.talk-time-viz canvas { flex-shrink: 0; }
.talk-stats { flex: 1; display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.8rem; color: var(--marble-dim); }
.talk-stat { display: flex; align-items: center; gap: 0.5rem; }
.talk-stat-name { flex: 0 0 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.talk-stat-bar-bg { flex: 1; height: 6px; background: #1a1a1a; border-radius: 3px; overflow: hidden; }
.talk-stat-bar { display: block; height: 100%; border-radius: 3px; }
.talk-stat-time { flex: 0 0 90px; text-align: right; font-size: 0.75rem; color: #777; }
@media (max-width: 600px) {
  .talk-time-viz { flex-direction: column; align-items: center; }
  .talk-stat-name { flex: 0 0 100px; font-size: 0.7rem; }
  .talk-stat-time { flex: 0 0 70px; font-size: 0.65rem; }
}

/* Category sections */
.category-section { margin-bottom: 2rem; background: var(--bg-card); border: 1px solid #2a2a2a; border-radius: 8px; padding: 1.5rem; }
.cat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.cat-winner-badge { font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 3px; background: rgba(201,169,110,0.15); color: var(--gold); }
.cat-counts { display: flex; gap: 1.5rem; margin-bottom: 1rem; font-size: 0.9rem; }
.cat-count { display: flex; align-items: center; gap: 0.4rem; }
.cat-count .dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.cat-count .num { font-weight: 700; font-size: 1.1rem; }

/* Evidence */
.evidence-list { margin-top: 0.75rem; }
.evidence-item { padding: 0.75rem; margin-bottom: 0.5rem; background: rgba(255,255,255,0.03); border-radius: 4px; border-left: 3px solid var(--marble-dark); font-size: 0.85rem; line-height: 1.6; }
.evidence-item.speaker-a { border-left-color: var(--blue); }
.evidence-item.speaker-b { border-left-color: var(--red); }
.evidence-ts { font-size: 0.75rem; color: var(--gold); cursor: pointer; font-weight: 600; }
.evidence-ts:hover { text-decoration: underline; }
.evidence-type { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--marble-dark); margin-left: 0.5rem; }
.evidence-quote { display: block; margin-top: 0.35rem; color: var(--marble-dim); font-style: italic; }
.evidence-reasoning { display: block; margin-top: 0.35rem; color: var(--marble); }

/* Key Moment */
.key-moment { padding: 1.5rem; background: var(--bg-card); border-left: 3px solid var(--gold); border-radius: 0 6px 6px 0; margin-bottom: 2.5rem; }
.key-moment h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold); margin-bottom: 0.5rem; }
.key-moment p { font-size: 0.95rem; line-height: 1.6; color: var(--marble-dim); }

/* Final Score */
.final-score { text-align: center; padding: 2rem; background: var(--bg-card); border: 1px solid var(--gold); border-radius: 8px; margin-bottom: 2rem; }
.score-label { font-family: var(--font-display); font-size: 1rem; color: var(--marble-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.scoreboard { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.scoreboard-side { display: flex; flex-direction: column; align-items: center; flex: 1; max-width: 240px; }
.scoreboard-num { font-family: var(--font-display); font-size: 4rem; font-weight: 700; color: var(--gold); line-height: 1; }
.scoreboard-name { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--marble); margin-top: 0.5rem; text-align: center; }
.scoreboard-dash { font-family: var(--font-display); font-size: 3rem; color: var(--marble-dark); line-height: 1; align-self: flex-start; padding-top: 0.3rem; }
.score-verdict { font-family: var(--font-body); font-size: 0.9rem; color: var(--marble-dim); margin-top: 0.75rem; line-height: 1.7; text-align: left; }
/* Ghost text: invisible on page, included in TTS narration */
[data-tts-only] { display: none !important; }

/* Speakers */
.speakers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.speaker-card { background: var(--bg-card); border: 1px solid #2a2a2a; border-radius: 8px; padding: 1.25rem; }
.speaker-card-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.speaker-card-note { font-size: 0.8rem; color: var(--marble-dark); font-style: italic; }

/* Transcript (SEO, collapsed) */
.transcript-seo { max-height: 0; overflow: hidden; opacity: 0; }
.transcript { font-size: 0.85rem; line-height: 1.8; }
.transcript .line { margin-bottom: 0.5rem; }
.transcript .ts { color: var(--gold); font-size: 0.75rem; margin-right: 0.5rem; cursor: pointer; }
.transcript .name { font-weight: 600; }
.transcript .name.a { color: var(--blue); }
.transcript .name.b { color: var(--red); }

/* FAQ */
.faq-section { margin-bottom: 2rem; }
.faq-title { font-family: var(--font-display); font-size: 2rem; text-align: center; color: var(--marble); margin-bottom: 1.5rem; }
.faq-subtitle { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); margin: 1.5rem 0 0.75rem; border-bottom: 1px solid #2a2a2a; padding-bottom: 0.5rem; }
.faq details { background: var(--bg-card); border: 1px solid #2a2a2a; border-radius: 6px; margin-bottom: 0.5rem; }
.faq summary { padding: 1rem 1.25rem; cursor: pointer; font-weight: 500; font-size: 0.95rem; list-style: none; }
.faq summary::before { content: '+'; margin-right: 0.75rem; color: var(--gold); font-weight: 700; }
.faq details[open] summary::before { content: '\2212'; }
.faq details p { padding: 0 1.25rem 1rem; font-size: 0.9rem; color: var(--marble-dim); line-height: 1.6; }

/* Footer */
.site-footer { margin-top: 2rem; padding: 2rem 0; border-top: 1px solid #2a2a2a; text-align: center; }
.footer-tagline { font-family: var(--font-display); font-style: italic; font-size: 0.85rem; color: var(--marble-dim); margin-top: 0.25rem; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin: 1rem 0; }
.footer-links a { color: var(--marble-dim); text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.75rem; color: var(--marble-dark); }

/* Back */
.cta-section { text-align: center; padding: 2rem 0 3rem; }
.cta-hook { font-family: var(--font-display); font-size: 1.8rem; color: var(--marble); margin-bottom: 1.25rem; }
.cta-row { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.cta-primary, .cta-secondary { padding: 0.85rem 2rem; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; border-radius: 6px; cursor: pointer; }
.cta-primary { background: var(--gold); color: #0f0f0f; border: none; }
.cta-primary:hover { filter: brightness(1.1); }
.cta-secondary { background: transparent; border: 1px solid var(--marble-dark); color: var(--marble-dim); }
.cta-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* Scroll to top */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; width: 40px; height: 40px;
  background: var(--bg-card); border: 1px solid var(--marble-dark); border-radius: 50%;
  color: var(--marble); font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1;
  opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 90;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { border-color: var(--gold); color: var(--gold); }

/* QUIZ */
/* Quiz progress bar */
.quiz-progress {
  width: 100%; height: 6px; background: var(--bg-card); border-radius: 3px;
  margin-bottom: 2rem; overflow: hidden;
}
.quiz-progress-fill { height: 100%; background: var(--gold); border-radius: 3px; transition: width 0.4s ease; width: 0%; }

.quiz-content { max-width: 700px; margin: 0 auto; padding: 4rem 2rem; text-align: center; }
.quiz-content h1 { font-family: var(--font-display); font-size: 3rem; margin-bottom: 1rem; }
.quiz-subtitle { color: var(--marble-dim); margin-bottom: 3rem; font-size: 1.15rem; }

/* NPC Test Landing */
.npc-hero { margin-bottom: 2.5rem; }
#quiz-landing h1 { font-family: var(--font-display); font-size: 3.5rem; color: var(--marble); margin-bottom: 0.75rem; line-height: 1.1; }
.npc-tagline { font-size: 1.25rem; color: var(--marble-dim); font-style: italic; max-width: 460px; margin: 0 auto; }

.npc-stats-row { display: flex; justify-content: center; gap: 2rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.npc-stat { text-align: center; padding: 1.25rem 1rem; border: 1px solid #2a2a2a; border-radius: 8px; background: var(--bg-card); min-width: 130px; flex: 0 1 160px; }
.npc-stat-num { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--gold); line-height: 1.2; }
.npc-stat-label { display: block; font-size: 0.75rem; color: var(--marble-dim); margin-top: 0.35rem; line-height: 1.4; }

.npc-domains { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.npc-domain { font-size: 0.7rem; color: var(--marble-dim); border: 1px solid #333; padding: 0.25rem 0.7rem; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.5px; }
.quiz-card { background: var(--bg-card); border: 1px solid #2a2a2a; border-radius: 12px; padding: 2.5rem; text-align: left; }
.quiz-q-num { font-size: 0.8rem; color: var(--marble-dark); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.25rem; }
.quiz-quote { border-left: 3px solid var(--gold); padding: 1rem 1.25rem; margin: 0 0 1.5rem; font-style: italic; color: var(--marble-dim); font-size: 1.15rem; line-height: 1.7; }
.quiz-prompt { font-weight: 600; margin-bottom: 1.25rem; font-size: 1.1rem; }
.quiz-options { display: flex; flex-direction: column; gap: 0.75rem; }
.quiz-opt {
  padding: 1rem 1.25rem; background: transparent; border: 1px solid var(--marble-dark);
  color: var(--marble); font-family: var(--font-body); font-size: 1rem; border-radius: 8px;
  cursor: pointer; text-align: left; transition: all 0.2s;
}
.quiz-opt:hover:not(:disabled) { border-color: var(--gold); }
.quiz-opt.correct { border-color: var(--green); background: rgba(95,166,122,0.1); color: var(--green); }
.quiz-opt.wrong { border-color: var(--red); background: rgba(196,92,92,0.1); color: var(--red); }
.quiz-opt:disabled { cursor: default; opacity: 0.7; }

/* Quiz email gate */
.quiz-email-gate { text-align: center; }
.quiz-email-gate h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 0.75rem; }
.quiz-email-gate p { color: var(--marble-dim); font-size: 1rem; }

/* Quiz results */
.quiz-result-card {
  background: var(--bg-card); border: 1px solid #2a2a2a; border-radius: 12px;
  padding: 2.5rem; text-align: center; max-width: 500px; margin: 0 auto;
}
.quiz-result-card.result-bad { border-color: var(--red); }
.quiz-result-card.result-good { border-color: var(--green); }
.quiz-result-score { font-family: var(--font-display); font-size: 4rem; font-weight: 700; color: var(--gold); margin-bottom: 0.25rem; }
.quiz-tier { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.tier-top { color: #27ae60; }
.tier-mid { color: var(--gold); }
.tier-low { color: #e67e22; }
.tier-bot { color: #e74c3c; }
.quiz-result-card h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 1rem; }
.quiz-result-card p, .quiz-result-msg { color: var(--marble-dim); line-height: 1.6; }
#curve-container { text-align: center; margin: 1.5rem 0; }
.quiz-breakdown-header { color: var(--marble); font-weight: 600; font-size: 0.9rem; margin: 1.5rem 0 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }
.quiz-breakdown { margin-bottom: 1.5rem; }
.breakdown-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.breakdown-label { flex: 0 0 160px; font-size: 0.8rem; color: var(--marble-dim); text-align: right; }
.breakdown-bar-bg { flex: 1; height: 8px; background: #2a2a2a; border-radius: 4px; overflow: hidden; }
.breakdown-bar-fill { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
.breakdown-pct { flex: 0 0 50px; font-size: 0.8rem; color: var(--marble-dim); }
.breakdown-honesty { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid #2a2a2a; }
.honesty-reveal { font-size: 0.75rem; color: #666; margin-top: 0.5rem; line-height: 1.4; font-style: italic; }
.quiz-cta-btn {
  padding: 0.9rem 2rem; background: var(--gold); color: var(--bg); border: none;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; border-radius: 6px; cursor: pointer;
}

/* ABOUT */
.about-content { max-width: 650px; margin: 0 auto; padding: 4rem 2rem; }
.about-content h1 { font-family: var(--font-display); font-size: 2.5rem; margin-bottom: 1.5rem; }
.about-content h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.about-content p { color: var(--marble-dim); line-height: 1.7; margin-bottom: 1rem; }
.about-content ol { color: var(--marble-dim); line-height: 1.8; padding-left: 1.5rem; }
.about-content li { margin-bottom: 0.5rem; }

/* test-btn reusable */
.test-btn { padding: 0.6rem 1.5rem; background: transparent; border: 1px solid var(--marble-dark); color: var(--marble-dim); font-family: var(--font-body); font-size: 0.85rem; border-radius: 4px; cursor: pointer; }
.test-btn:hover { border-color: var(--gold); color: var(--gold); }

/* LIGHT MODE */
@media (prefers-color-scheme: light) {
  :root { --bg: #f5f0e8; --bg-card: #fff; --marble: #2a2420; --marble-dim: #6b6360; --marble-dark: #b5ada5; --gold: #9a7840; }
  #nav { background: rgba(245,240,232,0.92); }
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .home-hero h1 { font-size: 2rem; }
  .result-title { font-size: 1.8rem; }
  .input-row { flex-direction: column; }
  .video-embed, .audio-bar { width: 100%; }
  .scoreboard { gap: 0.75rem; }
  .scoreboard-num { font-size: 3rem; }
  .scoreboard-name { font-size: 0.8rem; }
  .speakers-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .nav-right { gap: 0.5rem; }
}

/* --- URL Error --- */
.url-error { color: var(--red); font-size: 0.85rem; margin-top: 0.5rem; text-align: center; }

/* --- Quiz Landing --- */
.quiz-bullets { list-style: none; padding: 0; margin: 1.5rem auto; max-width: 500px; text-align: left; }
.quiz-bullets li { color: var(--marble-dim); font-size: 0.95rem; padding: 0.4rem 0; padding-left: 1.5rem; position: relative; }
.quiz-bullets li::before { content: "\2022"; color: var(--gold); position: absolute; left: 0; font-size: 1.2rem; }
.quiz-start-btn { background: var(--gold); color: #0f0f0f; border: none; padding: 0.9rem 2.5rem; font-size: 1rem; font-weight: 700; border-radius: 6px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 1rem; }
.quiz-start-btn:hover { filter: brightness(1.1); }
#quiz-profile h2 { font-family: var(--font-display); font-size: 1.8rem; color: var(--marble); margin-bottom: 1.5rem; }
.quiz-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; max-width: 480px; margin: 0 auto 2rem; }
.quiz-profile-grid .quiz-profile-group:last-child:nth-child(odd) { grid-column: 1 / -1; }
.quiz-profile-group { text-align: left; }
.quiz-profile-group label { display: block; color: #777; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.4rem; }
.quiz-profile-group select {
  width: 100%; padding: 0.75rem 1rem; background: #1a1a1a; border: 1px solid #333;
  border-radius: 6px; color: var(--marble); font-size: 1rem; font-family: var(--font-body);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center; cursor: pointer;
}
.quiz-profile-group select:focus { border-color: var(--gold); outline: none; }
@media (max-width: 400px) { .quiz-profile-grid { grid-template-columns: 1fr; } }
.quiz-syllogism { background: var(--bg-card); border-left: 3px solid var(--gold); padding: 1rem 1.25rem; font-family: 'Inter', sans-serif; font-size: 0.9rem; line-height: 1.7; color: var(--marble); white-space: pre-wrap; border-radius: 0 6px 6px 0; margin-bottom: 1rem; }
.quiz-context { color: var(--marble-dim); font-size: 0.9rem; margin-bottom: 0.75rem; font-style: italic; }

/* --- Sales Letter (quiz results) --- */
.sales-divider { width: 60px; height: 2px; background: var(--gold); margin: 2rem auto; }
.sales-headline { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; margin-bottom: 0.5rem; }
.sales-body { color: var(--marble-dim); font-size: 0.95rem; margin-bottom: 1rem; }
.sales-features { list-style: none; padding: 0; text-align: left; max-width: 480px; margin: 0 auto 1.5rem; }
.sales-features li { padding: 0.5rem 0 0.5rem 1.5rem; position: relative; color: var(--marble-dim); font-size: 0.9rem; }
.sales-features li::before { content: "\2713"; color: var(--gold); position: absolute; left: 0; font-weight: 700; }
.sales-features li strong { color: var(--marble); }
.sales-price { margin: 1.5rem 0 0.5rem; }
.price-amount { font-size: 3rem; font-weight: 700; color: var(--gold); }
.price-period { font-size: 1.1rem; color: var(--marble-dim); }
.sales-guarantee { font-size: 0.8rem; color: var(--marble-dim); margin-bottom: 1.5rem; }
.sales-cta { background: var(--gold); color: #0f0f0f; border: none; padding: 1rem 3rem; font-size: 1.1rem; font-weight: 700; border-radius: 6px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.05em; }
.sales-cta:hover { filter: brightness(1.1); }
.sales-skip { margin-top: 1rem; font-size: 0.8rem; }
.sales-skip a { color: var(--marble-dark); text-decoration: underline; }

/* --- Checkout Page --- */
.checkout-content { max-width: 480px; margin: 0 auto; padding: 2rem 1rem; }
.checkout-card { background: var(--bg-card); border: 1px solid #2a2a2a; border-radius: 12px; padding: 2.5rem 2rem; }
.checkout-card h1 { font-family: 'Cormorant Garamond', serif; font-size: 2rem; margin-bottom: 0.3rem; }
.checkout-tagline { color: var(--marble-dim); font-size: 0.95rem; margin-bottom: 2rem; }
.checkout-plan { border: 1px solid rgba(201,169,110,0.2); border-radius: 8px; padding: 1.5rem; margin-bottom: 2rem; background: rgba(201,169,110,0.03); }
.plan-price { margin-bottom: 1rem; }
.plan-amount { font-size: 2.5rem; font-weight: 700; color: var(--gold); }
.plan-period { font-size: 1rem; color: var(--marble-dim); }
.plan-features { list-style: none; padding: 0; }
.plan-features li { padding: 0.35rem 0 0.35rem 1.3rem; position: relative; color: var(--marble-dim); font-size: 0.85rem; }
.plan-features li::before { content: "\2713"; color: var(--gold); position: absolute; left: 0; font-weight: 700; }
.checkout-form label { display: block; font-size: 0.8rem; color: var(--marble-dim); margin-bottom: 0.3rem; margin-top: 0.75rem; }
.checkout-form input, .card-input { width: 100%; padding: 0.65rem 0.9rem; background: var(--bg); border: 1px solid var(--border, #2a2a2a); border-radius: 6px; color: var(--marble); font-size: 0.9rem; }
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.checkout-btn { width: 100%; margin-top: 1.5rem; padding: 0.85rem; background: var(--gold); color: #0f0f0f; border: none; border-radius: 6px; font-size: 1rem; font-weight: 700; cursor: pointer; }
.checkout-btn:hover { filter: brightness(1.1); }
.checkout-fine { font-size: 0.75rem; color: var(--marble-dark); text-align: center; margin-top: 0.75rem; }
.checkout-success { text-align: center; }
.checkout-success h2 { color: var(--gold); font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; margin-bottom: 0.5rem; }
.checkout-success button { margin-top: 1rem; padding: 0.7rem 2rem; background: var(--gold); color: #0f0f0f; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; }

/* --- Speaker Card Buttons --- */
.speaker-card-btns { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.speaker-btn { padding: 0.35rem 0.75rem; border: 1px solid var(--marble-dark); border-radius: 4px; color: var(--marble-dim); font-size: 0.8rem; text-decoration: none; transition: 0.2s; }
.speaker-btn:hover { border-color: var(--gold); color: var(--gold); }

/* --- Debater Page --- */
.debater-content { max-width: 900px; margin: 0 auto; padding: 2rem 1rem; }
.debater-content h1 { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; }
.debater-bio { color: var(--marble-dim); font-size: 0.95rem; margin: 0.5rem 0 1rem; max-width: 600px; }
.debater-stats { color: var(--marble-dark); font-size: 0.85rem; }

/* --- Email Modal --- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
}
.modal {
  background: var(--bg-card); border: 1px solid #2a2a2a; border-radius: 12px;
  padding: 2.5rem 2rem; max-width: 440px; width: 90%; text-align: center;
}
.modal h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--marble); }
.modal p { color: var(--marble-dim); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* FOOTER */
.site-footer { border-top: 1px solid #2a2a2a; margin-top: 4rem; padding: 2rem 1rem; text-align: center; }
.footer-inner { max-width: 800px; margin: 0 auto; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.footer-links a { color: var(--marble-dim); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { color: #555; font-size: 0.75rem; }

/* AUTH NAV */
.nav-login-btn {
  padding: 0.4rem 1rem; background: transparent; color: var(--marble-dim);
  border: 1px solid var(--marble-dark); border-radius: 4px; font-size: 0.85rem;
  cursor: pointer; transition: all 0.2s;
}
.nav-login-btn:hover { color: var(--gold); border-color: var(--gold); }
.nav-user-btn {
  background: var(--gold); color: var(--bg); border: none; padding: 0.4rem 0.8rem;
  border-radius: 4px; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.nav-user-menu {
  position: absolute; top: 100%; right: 0; background: var(--bg-card);
  border: 1px solid #2a2a2a; border-radius: 8px; min-width: 180px; padding: 0.5rem 0;
  z-index: 200; margin-top: 0.5rem;
}
.nav-user-menu a {
  display: block; padding: 0.6rem 1rem; color: var(--marble); text-decoration: none;
  font-size: 0.85rem; transition: background 0.2s;
}
.nav-user-menu a:hover { background: #222; }
#nav-user { position: relative; }

/* AUTH MODAL */
.auth-status { font-size: 0.85rem; margin-top: 1rem; }

/* CHECKOUT PLANS */
.checkout-content { max-width: 520px; margin: 0 auto; padding: 4rem 2rem; }
.checkout-card { background: var(--bg-card); border: 1px solid #2a2a2a; border-radius: 12px; padding: 2.5rem 2rem; text-align: center; }
.checkout-card h1 { font-family: var(--font-display); font-size: 2.5rem; color: var(--gold); margin-bottom: 0.5rem; }
.checkout-tagline { color: var(--marble-dim); margin-bottom: 2rem; }
.checkout-plans { display: flex; gap: 1rem; margin-bottom: 2rem; }
.plan-option {
  flex: 1; padding: 1.2rem; border: 2px solid #2a2a2a; border-radius: 8px;
  cursor: pointer; transition: all 0.2s;
}
.plan-option:hover, .plan-selected { border-color: var(--gold); }
.plan-selected { background: rgba(201, 169, 110, 0.08); }
.plan-amount { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--marble); }
.plan-period { color: var(--marble-dim); font-size: 0.9rem; }
.plan-note { color: var(--marble-dim); font-size: 0.75rem; margin-top: 0.3rem; }
.plan-features { text-align: left; list-style: none; margin-bottom: 2rem; }
.plan-features li { padding: 0.4rem 0; color: var(--marble-dim); font-size: 0.9rem; }
.plan-features li::before { content: '\2713'; color: var(--gold); margin-right: 0.5rem; }
.checkout-form { margin-top: 1.5rem; }
.checkout-form label { display: block; text-align: left; color: var(--marble-dim); font-size: 0.8rem; margin-bottom: 0.3rem; margin-top: 0.8rem; }
.checkout-form input { width: 100%; padding: 0.7rem; background: var(--bg); color: var(--marble); border: 1px solid #333; border-radius: 6px; font-size: 0.95rem; }
.checkout-btn {
  width: 100%; padding: 0.9rem; margin-top: 1.2rem; background: var(--gold); color: var(--bg);
  border: none; border-radius: 6px; font-size: 1rem; font-weight: 700; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.05em; transition: background 0.2s;
}
.checkout-btn:hover { background: #d4b578; }
.checkout-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.checkout-fine { color: #666; font-size: 0.75rem; margin-top: 0.8rem; }

/* QOTD */
.qotd-content { max-width: 640px; margin: 0 auto; padding: 4rem 2rem; }
.qotd-header { text-align: center; margin-bottom: 2rem; }
.qotd-header h1 { font-family: var(--font-display); font-size: 2rem; }
.qotd-streak { margin-top: 0.5rem; }
.streak-fire { color: var(--gold); font-size: 0.9rem; font-weight: 600; }
.qotd-card { background: var(--bg-card); border: 1px solid #2a2a2a; border-radius: 12px; padding: 2rem; }
.qotd-domain { color: var(--gold); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 1rem; }
.qotd-result { margin-top: 1.5rem; }
.qotd-answer { background: var(--bg-card); border-radius: 8px; padding: 1.5rem; border: 1px solid #2a2a2a; }
.qotd-correct h3 { color: var(--green); }
.qotd-wrong h3 { color: var(--red); }
.qotd-domain-label { color: var(--marble-dim); font-size: 0.8rem; margin-top: 0.5rem; }
.qotd-cta { text-align: center; margin-top: 2rem; }
.qotd-email-capture { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #2a2a2a; }

/* Quiz option states for QOTD */
.quiz-opt-correct { border-color: var(--green) !important; background: rgba(95,166,122,0.15) !important; }
.quiz-opt-wrong { border-color: var(--red) !important; background: rgba(196,92,92,0.15) !important; }

/* POPUP */
.popup-modal { max-width: 520px; text-align: left; }
.popup-close {
  position: absolute; top: 1rem; right: 1rem; background: none; border: none;
  color: var(--marble-dim); font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.popup-label { color: var(--gold); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.popup-quote { border-left: 3px solid var(--gold); padding: 0.8rem 1rem; color: var(--marble); font-style: italic; margin-bottom: 1rem; }
.popup-prompt { color: var(--marble); font-weight: 600; margin-bottom: 1rem; }
.popup-options { display: flex; flex-direction: column; gap: 0.5rem; }
.popup-result { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #2a2a2a; }
.popup-correct { color: var(--green); }
.popup-wrong { color: var(--red); }
.popup-email-gate { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #2a2a2a; }
