/* ─── Quiz Page — extends theme.css tokens ─── */
:root {
  --obsidian: #0B0F14;
  --obsidian-2: #111520;
  --obsidian-3: #181D2B;
  --gold: #C9963B;
  --gold-light: #E8B865;
  --gold-dim: rgba(201, 150, 59, 0.15);
  --ivory: #F8F5F0;
  --text-primary: #F8F5F0;
  --text-secondary: rgba(248, 245, 240, 0.55);
  --text-accent: #C9963B;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--obsidian);
  color: var(--text-primary);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--obsidian); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ─── Nav (mirrors landing page) ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.5rem 3rem;
  background: linear-gradient(to bottom, rgba(11,15,20,0.95) 0%, transparent 100%);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1280px; margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.logo-mark { color: var(--gold); font-size: 1.1rem; font-weight: 700; }
.logo-text { font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.25em; color: var(--text-primary); }
.nav-tagline { font-size: 0.75rem; color: var(--text-secondary); letter-spacing: 0.1em; font-weight: 400; }

/* ─── Quiz Page Layout ─── */
.quiz-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7rem 1.5rem 4rem;
  background:
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(201,150,59,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 20% 90%, rgba(201,150,59,0.03) 0%, transparent 50%),
    var(--obsidian);
}

/* ─── Progress Bar ─── */
.progress-bar {
  width: 100%; max-width: 560px;
  height: 3px;
  background: rgba(201,150,59,0.12);
  border-radius: 2px;
  margin-bottom: 2.5rem;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

/* ─── Quiz Sections ─── */
.quiz-section {
  display: none;
  width: 100%; max-width: 560px;
  animation: fadeSlideIn 0.4s ease forwards;
}
.quiz-section.active { display: block; }

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

/* ─── Quiz Card ─── */
.quiz-card {
  background: var(--obsidian-2);
  border: 1px solid rgba(201,150,59,0.12);
  border-radius: 8px;
  padding: 2.5rem;
  position: relative;
}
.quiz-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--gold);
  border-radius: 8px 0 0 8px;
}

/* ─── Section Label (hero card only) ─── */
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: block;
}

/* ─── Step Indicator ─── */
.step-indicator {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 1.25rem;
  display: block;
}

/* ─── Quiz Titles ─── */
.quiz-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.quiz-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}

.quiz-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.quiz-meta-item {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ─── Question Titles ─── */
.question-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.question-hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ─── Options Grid ─── */
.options-grid {
  display: grid;
  gap: 0.75rem;
}
.options-grid-4 { grid-template-columns: 1fr 1fr; }
.options-grid-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ─── Option Buttons ─── */
.option-btn {
  background: rgba(201,150,59,0.04);
  border: 1px solid rgba(201,150,59,0.15);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  text-align: left;
  width: 100%;
  line-height: 1.4;
}
.option-btn:hover {
  background: rgba(201,150,59,0.1);
  border-color: var(--gold);
  color: var(--gold-light);
}
.option-btn.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--obsidian);
  font-weight: 600;
}

/* ─── Buttons ─── */
.btn-primary {
  background: var(--gold);
  color: var(--obsidian);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  text-decoration: none;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-full { width: 100%; text-align: center; }

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(248,245,240,0.15);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* ─── Lead Capture Form ─── */
.lead-header { margin-bottom: 2rem; }

.lead-tier-badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}

.lead-form { display: flex; flex-direction: column; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group-full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-group input {
  background: rgba(248,245,240,0.05);
  border: 1px solid rgba(248,245,240,0.1);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input::placeholder { color: rgba(248,245,240,0.3); }
.form-group input:focus { border-color: var(--gold); }

.form-disclaimer {
  font-size: 0.72rem;
  color: rgba(248,245,240,0.3);
  text-align: center;
  margin-top: 0.5rem;
}

/* ─── Results Card ─── */
.results-card { text-align: center; padding: 3rem 2.5rem; }

.results-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.tier-badge {
  display: inline-block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  padding: 0.75rem 2rem;
  border: 2px solid var(--gold);
  border-radius: 4px;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}
.tier-badge.working { border-color: #6b7280; color: #d1d5db; }
.tier-badge.middle { border-color: #c9963b; color: #e8b865; }
.tier-badge.upper { border-color: #e8b865; color: #f5d78e; }

.tier-description {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.tier-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.tier-stat {
  text-align: center;
}
.tier-stat-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.tier-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

.recommended-move {
  background: rgba(201,150,59,0.07);
  border: 1px solid rgba(201,150,59,0.2);
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  text-align: left;
}
.recommended-move-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.recommended-move-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.results-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .quiz-page { padding: 6rem 1rem 3rem; }
  .quiz-card { padding: 1.75rem 1.25rem; }
  .options-grid-4 { grid-template-columns: 1fr; }
  .options-grid-3 { grid-template-columns: 1fr; }
  .quiz-meta { flex-direction: column; gap: 0.5rem; }
  .tier-stats { gap: 1.25rem; }
  .results-actions { flex-direction: column; align-items: stretch; }
}

@media (max-width: 480px) {
  .tier-badge { font-size: 1.5rem; padding: 0.6rem 1.5rem; }
  .recommended-move { padding: 1.25rem; }
}