/* ============================================================
   Pick One · Quiz Styles (quiz.css)
   ============================================================ */

:root {
  --ink-primary: #1a2e22;
  --ochre-warm: #d9822b;
  --coral-accent: #c2573f;
  --sand-bg: #faf6ee;
  --sand-card: #ffffff;
  --sand-border: #e9e2d5;
  --charcoal-body: #3e4741;
  --sage-accent: #cce3d4;
  --sage-dark: #2f4538;
}

body.quiz-page {
  background-color: var(--sand-bg);
  color: var(--ink-primary);
  font-family: "Figtree", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Nav */
.quiz-nav {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--sand-border);
  background: rgba(250, 246, 238, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.quiz-nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.quiz-nav__exit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal-body);
  text-decoration: none;
  transition: color 0.2s;
}
.quiz-nav__exit:hover {
  color: var(--coral-accent);
}

/* Container */
.quiz {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}
.wrap {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}

/* Badge */
.quiz-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(217, 130, 43, 0.12);
  color: #9e5b15;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

/* Landing */
.quiz-landing__inner {
  text-align: center;
}
.quiz-landing__pre {
  font-size: 1.1rem;
  color: var(--charcoal-body);
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.quiz-landing__head {
  font-family: "Gabarito", serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
  color: var(--ink-primary);
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.02em;
}
.quiz-landing__head-muted {
  display: block;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 400;
  color: var(--charcoal-body);
  margin-top: 0.75rem;
  line-height: 1.4;
}
.quiz-landing__sub {
  font-size: 1.15rem;
  color: var(--charcoal-body);
  max-width: 620px;
  margin: 0 auto 2.25rem auto;
}
.quiz-landing__cta-wrap {
  margin-bottom: 0;
}
.quiz-landing__meta {
  font-size: 0.85rem;
  color: #727c76;
  margin-top: 0.75rem;
}

/* Progress bar */
.quiz-progress-bar {
  margin-bottom: 2rem;
}
.quiz-progress-track {
  height: 6px;
  background: #e5ded3;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--coral-accent);
  width: 7%;
  transition: width 0.35s ease;
}
.quiz-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}
.quiz-category-tag {
  background: #eae2d5;
  color: var(--ink-primary);
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.quiz-progress-count {
  color: var(--charcoal-body);
}

/* Question Title */
.quiz-question-title {
  font-family: "Gabarito", serif;
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  color: var(--ink-primary);
  line-height: 1.35;
  margin: 0 0 2rem 0;
  text-align: left;
}

/* Options Grid */
.quiz-options-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quiz-opt-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--sand-card);
  border: 1.5px solid var(--sand-border);
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(26, 46, 34, 0.03);
  font-family: "Figtree", sans-serif;
  color: var(--ink-primary);
  outline: none;
}
.quiz-opt-card:hover {
  border-color: var(--ochre-warm);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 130, 43, 0.12);
}
.quiz-opt-card.is-selected {
  border-color: var(--coral-accent);
  background: #fdfaf7;
  box-shadow: 0 0 0 2px var(--coral-accent);
}
.quiz-opt-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: var(--sand-bg);
  border: 1px solid var(--sand-border);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-primary);
}
.quiz-opt-card.is-selected .quiz-opt-letter {
  background: var(--coral-accent);
  color: #fff;
  border-color: var(--coral-accent);
}
.quiz-opt-text {
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 500;
}
/* Back button */
.quiz-nav-bottom {
  margin-top: 1.75rem;
}
.btn-quiz-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: var(--charcoal-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.5rem 0;
}
.btn-quiz-back:hover {
  color: var(--coral-accent);
}

/* Loading */
.quiz-loading {
  text-align: center;
  padding: 4rem 1rem;
}
.quiz-spinner {
  width: 54px;
  height: 54px;
  border: 4px solid #e0d7cb;
  border-top-color: var(--coral-accent);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
  margin: 0 auto 1.5rem auto;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.quiz-loading-title {
  font-family: "Gabarito", serif;
  font-size: 1.65rem;
  color: var(--ink-primary);
  margin: 0 0 0.5rem 0;
}
.quiz-loading-sub {
  color: var(--charcoal-body);
  font-size: 1rem;
}

/* Result Screen */
.quiz-result-score-header {
  text-align: center;
  margin-bottom: 2rem;
}
.quiz-result-pill {
  display: inline-block;
  background: rgba(194, 87, 63, 0.12);
  color: var(--coral-accent);
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.score-label {
  display: block;
  font-size: 0.95rem;
  color: var(--charcoal-body);
  margin-bottom: 0.25rem;
}
.score-display strong {
  font-family: "Gabarito", serif;
  font-size: 3.2rem;
  color: var(--ink-primary);
  line-height: 1;
}
.score-max {
  font-size: 1.5rem;
  color: #838e87;
  font-weight: 600;
}

.quiz-result-card {
  background: var(--sand-card);
  border: 1px solid var(--sand-border);
  border-radius: 18px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(26, 46, 34, 0.05);
}
.quiz-result-title {
  font-family: "Gabarito", serif;
  font-size: 2rem;
  color: var(--ink-primary);
  margin: 0 0 1rem 0;
}
.quiz-result-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink-primary);
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.quiz-result-paragraphs p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal-body);
  margin-bottom: 1rem;
}
.quiz-breakthrough-box {
  background: #faf6ee;
  border-left: 4px solid var(--ochre-warm);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
}
.breakthrough-tag {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #9e5b15;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.quiz-breakthrough-box p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-primary);
  line-height: 1.6;
}

/* Unlock Card */
.quiz-unlock-card {
  background: linear-gradient(135deg, #243b2d 0%, #17281e 100%);
  color: #fff;
  border-radius: 18px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(26, 46, 34, 0.2);
}
.quiz-unlock-badge {
  display: inline-block;
  background: rgba(217, 130, 43, 0.25);
  color: #f7b368;
  border: 1px solid rgba(217, 130, 43, 0.4);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}
.quiz-unlock-title {
  font-family: "Gabarito", serif;
  font-size: 1.85rem;
  margin: 0 0 0.75rem 0;
  color: #ffffff;
}
.quiz-unlock-desc {
  font-size: 1.05rem;
  color: #d1ddd6;
  max-width: 580px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.6;
}
.quiz-recommended-deck {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 1.75rem;
}
.rec-label {
  font-size: 0.85rem;
  color: #a3b8ad;
  margin-right: 0.5rem;
}
.quiz-recommended-deck strong {
  color: #ffffff;
}
.quiz-unlock-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto;
}

/* Proof box */
.quiz-proof-box {
  background: var(--sand-card);
  border: 1px solid var(--sand-border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  text-align: center;
}
.quiz-proof-quote {
  font-style: italic;
  font-size: 1.02rem;
  color: var(--charcoal-body);
  margin: 0 0 0.5rem 0;
  line-height: 1.6;
}
.quiz-proof-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: "Figtree", sans-serif;
}
.btn--coral {
  background: var(--coral-accent);
  color: #ffffff;
}
.btn--coral:hover {
  background: #a8412c;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(194, 87, 63, 0.25);
}
.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}
.btn--block {
  width: 100%;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .quiz {
    padding: 2rem 1rem;
  }
  .quiz-result-card,
  .quiz-unlock-card {
    padding: 1.75rem 1.25rem;
  }
}
