/* ============================================================
   Regener8MD Longevity Quiz — Styles
   Palette: Warm Ivory + Charcoal + Gold
   Fonts: Cormorant Garamond + DM Sans
   ============================================================ */

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

:root {
  --gold:          #A07840;
  --gold-mid:      #C49A5A;
  --gold-light:    #EDE3D4;
  --gold-hover:    #8A6430;
  --charcoal:      #1C1A17;
  --charcoal-mid:  #3D3935;
  --text-body:     #4A4540;
  --text-muted:    #9A9590;
  --bg-warm:       #F8F4EF;
  --bg-white:      #FFFFFF;
  --bg-cream:      #F2EDE5;
  --border-light:  rgba(28,26,23,0.10);
  --border-mid:    rgba(28,26,23,0.18);
  --border-warm:   rgba(160,120,64,0.24);
  --shadow-sm:     0 2px 16px rgba(28,26,23,0.08);
  --shadow-md:     0 4px 32px rgba(28,26,23,0.10);
  --shadow-xl:     0 16px 80px rgba(28,26,23,0.14);
  --font-heading:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'DM Sans', -apple-system, sans-serif;
  --radius:        14px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--charcoal);
  background: var(--bg-warm);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ============================================================
   HEADER
   ============================================================ */
.quiz-header {
  background: var(--charcoal);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
.quiz-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quiz-logo { text-decoration: none; }
.quiz-logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.03em;
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.quiz-main {
  min-height: calc(100vh - 58px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 48px;
}
.quiz-card {
  width: 100%;
  max-width: 860px;
  background: var(--bg-white);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   STEP SYSTEM
   ============================================================ */
.step { display: none; }
.step.active { display: block; }

.quiz-content-area { flex-grow: 1; display: flex; flex-direction: column; }

.step-content-with-cta {
  flex-grow: 1;
  padding-bottom: 100px;
}
.step-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px 24px 16px;
}

/* ============================================================
   PROGRESS BAR (TOP)
   ============================================================ */
.progress-container-top { background: var(--bg-white); }
.hidden { display: none !important; }

.progress-track-top {
  height: 12px;
  background: var(--bg-cream);
  overflow: hidden;
}
.progress-fill-top {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-mid) 100%);
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 8px rgba(160,120,64,0.4);
}
.progress-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: #FAFAF8;
}
.progress-percentage {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
}
.progress-divider { color: #D1C9BE; font-size: 10px; }
.progress-section-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal-mid);
  letter-spacing: 0.02em;
}

/* ============================================================
   SCREEN HEADERS
   ============================================================ */
.screen-header { margin-bottom: 28px; }
.screen-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.3;
  margin: 0 0 8px;
}
.screen-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   QUESTION BLOCK
   ============================================================ */
.question-block { margin-bottom: 28px; }
.question-block-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
  line-height: 1.4;
}
.question-subtext {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.5;
}

/* ============================================================
   TEXT OPTION CARDS (white button style)
   ============================================================ */
.vertical-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.option-card-text {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-white);
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal-mid);
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1.4;
}
.option-card-text:hover { border-color: var(--gold); background: #FDFAF6; }
.peer:checked + .option-card-text {
  border-color: var(--gold);
  background: linear-gradient(135deg, #FBF7F1 0%, #F5ECD9 100%);
  color: var(--charcoal);
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(160,120,64,0.15);
}

/* ============================================================
   ILLUSTRATED GRID CARDS
   ============================================================ */
.illustrated-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.illustrated-cards-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 520px) {
  .illustrated-cards-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 560px) {
  .illustrated-cards-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .illustrated-cards-grid { grid-template-columns: repeat(4, 1fr); }
}

.option-card-illustrated {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  min-height: 110px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-white);
  text-align: center;
  transition: all 0.18s ease;
  position: relative;
  cursor: pointer;
}
.option-card-illustrated:hover { border-color: var(--gold); }

.option-card-illustrated.compact {
  padding: 12px 8px;
  min-height: 88px;
}

.option-card-illustrated.none-card {
  background: var(--bg-cream);
}

.peer:checked + .option-card-illustrated {
  border-color: var(--gold);
  background: linear-gradient(135deg, #FBF7F1 0%, #F5ECD9 100%);
  box-shadow: 0 2px 12px rgba(160,120,64,0.15);
}
.peer:checked + .option-card-illustrated .option-card-label { color: var(--gold-hover); }
.peer:checked + .option-card-illustrated .option-card-svg-icon svg { stroke: var(--gold); }
.peer:checked + .option-card-illustrated .option-card-svg-icon svg path[fill="currentColor"] { fill: var(--gold); }

/* Checkbox indicator */
.checkbox-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 2px solid var(--border-mid);
  background: white;
  transition: all 0.18s ease;
}
.peer:checked + .option-card-illustrated .checkbox-indicator {
  background: var(--gold);
  border-color: var(--gold);
}
.peer:checked + .option-card-illustrated .checkbox-indicator::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* SVG Icon */
.option-card-svg-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.option-card-svg-icon.small {
  width: 32px;
  height: 32px;
  margin-bottom: 6px;
}
.option-card-svg-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--charcoal-mid);
  transition: stroke 0.18s;
}

.option-card-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--charcoal-mid);
  line-height: 1.3;
}

/* ============================================================
   GENDER CARDS
   ============================================================ */
.gender-selection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 320px;
}
.gender-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-white);
  cursor: pointer;
  transition: all 0.18s ease;
  gap: 10px;
}
.gender-card:hover { border-color: var(--gold); }
.gender-icon {
  width: 40px;
  height: 40px;
  stroke: var(--charcoal-mid);
  transition: stroke 0.18s;
}
.gender-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal-mid);
}
.peer:checked + .gender-card {
  border-color: var(--gold);
  background: linear-gradient(135deg, #FBF7F1 0%, #F5ECD9 100%);
  box-shadow: 0 2px 12px rgba(160,120,64,0.15);
}
.peer:checked + .gender-card .gender-icon { stroke: var(--gold); }
.peer:checked + .gender-card .gender-label { color: var(--gold-hover); }

/* ============================================================
   AGE DROPDOWN
   ============================================================ */
.age-dropdown {
  width: 100%;
  max-width: 320px;
  padding: 14px 16px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-white);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--charcoal);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239A9590' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: border-color 0.18s;
}
.age-dropdown:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(160,120,64,0.12);
}

/* ============================================================
   FIXED BOTTOM CTA
   ============================================================ */
.cta-container-fixed {
  position: sticky;
  bottom: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-light);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  z-index: 10;
}

.btn-next-step {
  background: var(--charcoal);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 15px 32px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}
.btn-next-step:hover {
  background: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(160,120,64,0.3);
}

.btn-next-step.calculate-btn {
  background: var(--gold);
  padding: 15px 28px;
}
.btn-next-step.calculate-btn:hover {
  background: var(--gold-hover);
}

.back-link {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}
.back-link:hover { color: var(--gold); }

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing-layout {
  display: flex;
  flex-direction: column;
}
@media (min-width: 680px) {
  .landing-layout {
    flex-direction: row;
  }
  .landing-hero-img {
    width: 40%;
    flex-shrink: 0;
  }
  .landing-content {
    flex: 1;
  }
}

.landing-hero-img {
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}
@media (min-width: 680px) {
  .hero-img {
    height: 100%;
    min-height: 480px;
  }
}

.landing-content {
  padding: 28px 24px 24px;
}
.landing-eyebrow {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold-hover);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.landing-headline {
  font-family: var(--font-heading);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.2;
  margin: 0 0 12px;
}
.landing-sub {
  font-size: 15px;
  color: var(--text-body);
  margin: 0 0 22px;
  line-height: 1.6;
}

/* Checklist section */
.checklist-section {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}
.checklist-ul {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}
.checklist-ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-body);
}
.check-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23A07840' d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.highlight-accent { color: #C9302C; font-weight: 700; }

.book-container {
  position: relative;
  width: 90px;
  flex-shrink: 0;
}
.bonus-sticker {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #C9302C;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  padding: 5px 6px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.book-mockup {
  width: 90px;
  background: linear-gradient(135deg, var(--charcoal) 0%, #2C2A26 100%);
  border-radius: 6px;
  padding: 12px 10px;
  box-shadow: 3px 3px 12px rgba(28,26,23,0.25);
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.book-mockup-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-mid);
  line-height: 1.3;
  margin-bottom: 8px;
}
.book-mockup-sub {
  font-size: 9px;
  color: rgba(255,255,255,0.5);
  line-height: 1.3;
}

/* Landing CTA button */
.cta-button-landing {
  display: block;
  width: 100%;
  background: var(--charcoal);
  color: #fff;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 18px 24px;
  cursor: pointer;
  line-height: 1.3;
  transition: all 0.2s ease;
  text-align: center;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.cta-button-landing:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(160,120,64,0.35);
}
.cta-sub-line {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
  opacity: 0.9;
}
.landing-fine {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 4px;
  line-height: 1.5;
}
.landing-disclaimer {
  text-align: center;
  font-size: 12px;
  color: #B0A89F;
  margin: 4px 0;
  font-style: italic;
  line-height: 1.5;
}
.disclaimer-link {
  color: var(--gold);
  text-decoration: underline;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28,26,23,0.65);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal-content {
  background: var(--bg-white);
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 80px rgba(28,26,23,0.25);
  overflow: hidden;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-cream);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal-mid);
  transition: background 0.18s;
}
.modal-close:hover { background: var(--gold-light); }

.modal-header {
  padding: 32px 28px 0;
  text-align: center;
}
.modal-header h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 8px;
}
.modal-header p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.modal-form {
  padding: 24px 28px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal-mid);
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--charcoal);
  background: var(--bg-white);
  transition: border-color 0.18s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(160,120,64,0.1);
}
.form-group input.input-error { border-color: #DC2626; }
.form-error-message {
  font-size: 12px;
  color: #DC2626;
  margin-top: 4px;
}
.btn-modal-submit {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--charcoal);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 16px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-modal-submit:hover {
  background: var(--gold);
  box-shadow: 0 4px 16px rgba(160,120,64,0.3);
}
.privacy-note {
  padding: 0 28px 24px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.privacy-link { color: var(--gold); }

/* ============================================================
   RESUME MODAL
   ============================================================ */
.resume-modal-content { padding: 0; }
.resume-modal-icon {
  font-size: 32px;
  text-align: center;
  padding: 28px 28px 0;
}
.resume-modal-progress { padding: 16px 28px; }
.resume-progress-bar {
  background: var(--bg-cream);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}
.resume-progress-fill {
  height: 100%;
  background: var(--gold);
  transition: width 0.5s ease;
}
.resume-progress-text {
  font-size: 12px;
  color: var(--text-muted);
}
.resume-modal-actions { padding: 8px 28px 28px; }
.btn-resume-fresh {
  display: block;
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 12px;
  margin-top: 8px;
  text-align: center;
}
.btn-resume-fresh:hover { color: var(--charcoal); }

/* ============================================================
   STEP ERROR
   ============================================================ */
.step-error {
  display: none;
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #DC2626;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 200;
  white-space: nowrap;
}

/* ============================================================
   SR-ONLY (visually hidden)
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.cursor-pointer { cursor: pointer; }

/* ============================================================
   RESULTS PAGE
   ============================================================ */
.results-container { padding: 0; }

/* Hero */
.results-hero {
  background: linear-gradient(135deg, var(--charcoal) 0%, #2C2A26 100%);
  color: #fff;
  padding: 40px 28px;
  text-align: center;
}
.results-greeting {
  font-size: 16px;
  color: var(--gold-mid);
  font-weight: 600;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-style: italic;
}
.results-headline {
  font-family: var(--font-heading);
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 600;
  color: #fff;
  margin: 0 0 24px;
}
.results-score-circle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 5px solid;
  margin: 0 auto 16px;
  background: rgba(255,255,255,0.06);
}
.results-score-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}
.results-score-100 {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}
.results-tier-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  border: 1.5px solid;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.results-tier-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.7;
}
.results-bio-age-box {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 20px 24px;
  max-width: 520px;
  margin: 0 auto;
}
.results-bio-age-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-mid);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.results-bio-age-value {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.results-bio-age-note {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.6;
}

/* Radar Section */
.results-radar-section {
  padding: 36px 24px;
  background: var(--bg-warm);
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}
.results-section-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 20px;
}
.star-plot-container {
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

/* Dimension Cards */
.results-dims-section {
  padding: 32px 24px;
  background: var(--bg-white);
}
.result-dim-card {
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  background: var(--bg-warm);
  transition: box-shadow 0.2s;
}
.result-dim-card:hover { box-shadow: var(--shadow-sm); }
.result-dim-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.result-dim-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  border-radius: 10px;
  border: 1px solid var(--border-light);
}
.result-dim-info { flex: 1; }
.result-dim-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.result-dim-score-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.result-dim-score-bar-track {
  flex: 1;
  background: var(--bg-cream);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
}
.result-dim-score-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
}
.result-dim-score-num {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-heading);
  flex-shrink: 0;
  min-width: 30px;
}
.result-dim-tier-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.result-dim-copy {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
  margin: 0;
}

/* Recommendations */
.results-recs-section {
  padding: 32px 24px;
  background: var(--bg-cream);
  border-top: 1px solid var(--border-light);
}
.results-recs-intro {
  font-size: 14px;
  color: var(--text-muted);
  margin: -12px 0 20px;
  line-height: 1.6;
}
.result-rec-item {
  display: flex;
  gap: 16px;
  background: var(--bg-white);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 12px;
  border-left: 4px solid var(--gold);
}
.result-rec-item.high { border-left-color: #DC2626; }
.result-rec-item.medium { border-left-color: var(--gold); }
.result-rec-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-rec-dimension {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.result-rec-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.result-rec-desc {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.6;
  margin: 0 0 8px;
}
.result-rec-action {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

/* CTA Section */
.results-cta-section {
  padding: 48px 24px;
  background: linear-gradient(135deg, var(--charcoal) 0%, #2C2A26 100%);
  text-align: center;
}
.results-cta-inner { max-width: 520px; margin: 0 auto; }
.results-cta-headline {
  font-family: var(--font-heading);
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 600;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.3;
}
.results-cta-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin: 0 0 28px;
}
.btn-cta-primary {
  display: block;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  padding: 18px 32px;
  border-radius: 12px;
  margin-bottom: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(160,120,64,0.4);
}
.btn-cta-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(160,120,64,0.5);
}
.btn-cta-secondary {
  display: block;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  margin-bottom: 24px;
  transition: all 0.2s ease;
}
.btn-cta-secondary:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.results-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  margin: 0;
}

/* Retake */
.results-retake {
  padding: 20px;
  text-align: center;
  background: var(--bg-warm);
  border-top: 1px solid var(--border-light);
}
.btn-retake {
  background: none;
  border: 1.5px solid var(--border-mid);
  border-radius: 8px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s;
}
.btn-retake:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================================
   FOOTER
   ============================================================ */
.quiz-footer {
  background: var(--charcoal);
  padding: 24px 20px;
  margin-top: 32px;
}
.quiz-footer-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.quiz-footer p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin: 0 0 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .quiz-main { padding: 0; }
  .quiz-card { border-radius: 0; }
  .step-inner { padding: 16px 14px 8px; }
  .landing-content { padding: 14px 14px 10px; }
  .results-hero { padding: 20px 14px; }
  .results-dims-section,
  .results-recs-section,
  .results-cta-section { padding: 18px 14px; }
  .result-dim-header { flex-direction: row; }
  .cta-container-fixed { padding: 10px 14px; }
  .btn-next-step { padding: 13px 18px; font-size: 15px; }
}

/* ============================================================
   ABOVE-FOLD LAYOUT
   The quiz card is viewport-locked: header + card + footer
   all visible without page scroll. Card keeps its full design:
   rounded corners, shadow, floating on warm background.
   ============================================================ */

html, body {
  height: 100%;
  overflow: hidden;
}

/* ── Header ─────────────────────────────────────────────── */
.quiz-header {
  height: 56px;
  position: relative;
  z-index: 50;
}
.quiz-header-inner {
  height: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  max-width: 880px;
  margin: 0 auto;
}
.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: block;
}
.nav-logo-text em {
  font-style: normal;
  color: var(--gold-mid);
}
.quiz-header-phone {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-mid);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.quiz-header-phone:hover { color: #fff; }

/* ── Footer ─────────────────────────────────────────────── */
.quiz-footer {
  height: 48px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.quiz-footer p { margin: 0 8px; display: inline; }

/* ── Main: remaining viewport between header and footer ── */
.quiz-main {
  height: calc(100vh - 56px - 48px);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, #F5EFE6 0%, #EDE3D4 100%);
}

/* ── Card: floating, rounded, shadowed ─────────────────── */
.quiz-card {
  width: 100%;
  max-width: 880px;
  height: 100%;
  /* PRESERVE border-radius: 20px and box-shadow from base styles */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Extra polish */
  border: 1px solid rgba(160,120,64,0.18);
}

/* ── Content area fills card ─────────────────────────────── */
.quiz-content-area {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* ── Each active step is a flex column ───────────────────── */
.step.active {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

/* ── Question content scrolls within step ────────────────── */
.step-content-with-cta {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px !important;
  min-height: 0;
  scroll-padding-bottom: 8px;
  display: flex;
  flex-direction: column;
}
.step-content-with-cta::-webkit-scrollbar { width: 4px; }
.step-content-with-cta::-webkit-scrollbar-track { background: transparent; }
.step-content-with-cta::-webkit-scrollbar-thumb {
  background: var(--gold-light);
  border-radius: 4px;
}

/* ── CTA bar always at bottom of card ───────────────────── */
.cta-container-fixed {
  position: static !important;
  bottom: auto !important;
  flex-shrink: 0;
  background: rgba(255,255,255,0.97);
  border-top: 1px solid var(--border-light);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

/* ── Landing step: side-by-side layout (image left, content right) ── */
.step[data-step="0"].active {
  overflow: hidden;
}
.landing-layout {
  flex: 1 !important;
  flex-direction: row !important;
  min-height: 0;
  height: 100%;
}
.landing-hero-img {
  width: 38%;
  flex-shrink: 0;
  height: 100%;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 82%;
  display: block;
}
/* Content scrolls internally on the right side */
.landing-content {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 24px 28px 16px !important;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

/* ── Landing text tighter for above-fold ─────────────────── */
.landing-eyebrow    { margin-bottom: 8px; font-size: 10px; padding: 5px 10px; align-self: flex-start; }
.landing-headline   { font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; line-height: 1.18; }
.landing-sub        { font-size: 14px; margin-bottom: 14px; line-height: 1.55; }
.checklist-section  { margin-bottom: 14px; align-items: center; }
.checklist-ul       { padding-right: 12px; }
.checklist-ul li    { margin-bottom: 9px; font-size: 14px; line-height: 1.4; }
.book-container     { width: 142px; }
.cta-button-landing { padding: 16px 22px; font-size: 17px; margin-bottom: 10px; border-radius: 10px; }
.landing-fine       { font-size: 11px; margin-bottom: 2px; }
.landing-disclaimer { font-size: 11px; margin: 2px 0; }

/* ── Results step scrolls internally ────────────────────── */
.step[data-step="11"].active {
  overflow-y: auto;
  overflow-x: hidden;
}

/* ── Compact spacing for question steps ──────────────────── */
.step-inner        { padding: 18px 24px 10px; margin: auto; width: 100%; }
.screen-header     { margin-bottom: 20px; }
.screen-title      { font-size: clamp(17px, 2.5vw, 23px); }
.screen-subtitle   { font-size: 13px; }
.question-block    { margin-bottom: 22px; }
.question-block-label { font-size: 15px; margin-bottom: 6px; }
.question-subtext  { font-size: 12px; margin-bottom: 10px; }
.vertical-stack    { gap: 10px; }
.option-card-text  { padding: 14px 17px; font-size: 14px; }
.illustrated-cards-grid   { gap: 12px; }
.option-card-illustrated  { padding: 16px 10px; min-height: 112px; }
.option-card-svg-icon     { width: 40px; height: 40px; margin-bottom: 6px; }
.option-card-label        { font-size: 12px; }
.gender-card      { padding: 26px 20px; gap: 10px; }
.age-dropdown     { padding: 12px 14px; }
.gender-icon      { width: 40px; height: 40px; }

/* ── CTA Pulse Animation ─────────────────────────────────── */
@keyframes ctaGlowPulse {
  0%   { box-shadow: 0 0 0 0 rgba(160,120,64,0.42); }
  70%  { box-shadow: 0 0 0 14px rgba(160,120,64,0.00); }
  100% { box-shadow: 0 0 0 0 rgba(160,120,64,0.00); }
}
.cta-button-landing { animation: ctaGlowPulse 2.8s ease-out infinite; }
.cta-button-landing:hover { animation: none; }

/* ── 3D Book Cover ───────────────────────────────────────── */
.book-3d-wrapper {
  display: flex;
  align-items: stretch;
}
.book-spine {
  width: 12px;
  background: linear-gradient(to right, #070F1C, #0C1A2E);
  border-radius: 3px 0 0 3px;
  flex-shrink: 0;
}
.book-cover-face {
  width: 126px;
  min-height: 160px;
  background: linear-gradient(160deg, #0C2040 0%, #163460 55%, #0E2545 100%);
  border-radius: 0 4px 4px 0;
  padding: 11px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.book-cover-face::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 14px,
    rgba(255,255,255,0.013) 14px,
    rgba(255,255,255,0.013) 15px
  );
  pointer-events: none;
}
.book-cover-line {
  width: 78%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,154,90,0.75), transparent);
  margin-bottom: 8px;
  flex-shrink: 0;
}
.book-cover-emblem {
  width: 26px;
  height: 26px;
  stroke: rgba(196,154,90,0.9);
  margin-bottom: 6px;
  flex-shrink: 0;
}
.book-cover-title {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gold-mid);
  text-align: center;
  line-height: 1.22;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  position: relative;
}
.book-cover-rule-bottom {
  width: 52%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,154,90,0.5), transparent);
  margin-bottom: 6px;
  flex-shrink: 0;
}
.book-cover-author {
  font-size: 7.5px;
  color: rgba(255,255,255,0.52);
  text-align: center;
  letter-spacing: 0.06em;
  line-height: 1.45;
  position: relative;
}

/* ── Social Proof Bar ────────────────────────────────────── */
.social-proof-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 12px;
  padding: 7px 14px;
  background: var(--bg-cream);
  border-radius: 30px;
  border: 1px solid var(--border-warm);
}
.sp-stars {
  font-size: 13px;
  color: #E8A020;
  letter-spacing: 1px;
  flex-shrink: 0;
  line-height: 1;
}
.sp-text {
  font-size: 12px;
  color: var(--text-body);
  line-height: 1.3;
}
.sp-count {
  color: var(--charcoal);
  font-weight: 700;
}

/* ── Credential Bar ──────────────────────────────────────── */
.landing-credential-bar {
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}
.cred-bar-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: var(--gold);
}
.landing-credential-bar strong {
  color: var(--charcoal-mid);
  font-weight: 600;
}

/* ── Step 0: Card height driven by content, not viewport ─── */
body:has(.step[data-step="0"].active) .quiz-main {
  height: auto;
}
body:has(.step[data-step="0"].active) .quiz-card {
  height: auto;
}
body:has(.step[data-step="0"].active) .landing-layout {
  flex: 0 0 auto !important;
  height: auto;
}
body:has(.step[data-step="0"].active) .landing-hero-img {
  height: auto;
  align-self: stretch;
}

/* ── Disclaimer: visual break from trust line ────────────── */
.landing-fine + .landing-disclaimer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(28,26,23,0.07);
}

/* ══════════════════════════════════════════════════════════
   MOBILE — comprehensive overrides (≤ 680px)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 680px) {

  /* 1. Unlock scrolling — the #1 mobile killer */
  html, body {
    height: auto !important;
    overflow: auto !important;
    overflow-x: hidden;
  }

  /* 2. Quiz main: fill screen, scroll freely */
  .quiz-main {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    align-items: flex-start !important;
    overflow: visible !important;
  }

  /* 3. Card: full-width, auto height, no rounded top corners */
  .quiz-card {
    height: auto !important;
    min-height: 100dvh;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
  }

  /* 4. Quiz content area: natural flow */
  .quiz-content-area {
    overflow: visible !important;
  }

  /* ── Landing page (step 0) ── */

  /* 5. Hide hero image on mobile — desktop keeps it exactly as-is */
  .landing-hero-img {
    display: none !important;
  }
  .landing-layout {
    flex-direction: column !important;
    height: auto !important;
    flex: 1 0 auto !important;
    overflow: visible !important;
  }
  .landing-content {
    flex: 1 !important;
    overflow-y: visible !important;
    padding: 20px 18px 28px !important;
    -webkit-overflow-scrolling: auto !important;
    display: block !important;
  }
  .landing-eyebrow    { align-self: auto !important; }
  .landing-headline   { font-size: clamp(22px, 6vw, 28px) !important; }
  .landing-sub        { font-size: 15px !important; }

  /* 6. Book: smaller on mobile */
  .checklist-section  { flex-direction: row; align-items: flex-start !important; }
  .book-container     { width: 100px !important; flex-shrink: 0; }
  .book-cover-face    { width: 86px !important; min-height: 118px !important; }
  .book-spine         { width: 10px; }

  /* 7. Credential bar: no auto margin on mobile */
  .landing-credential-bar { margin-top: 16px !important; }

  /* 8. Social proof: no auto margin */
  .social-proof-bar { margin-top: 16px !important; }

  /* ── Quiz steps (1–10) ── */

  /* 9. Each step: block, scrolls naturally */
  .step.active {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
  }

  /* 10. Step progress bar: sticky at top of card */
  .progress-container-top {
    position: sticky;
    top: 0;
    z-index: 20;
  }

  /* 11. Step content: natural height, pad bottom for fixed CTA */
  .step-content-with-cta {
    flex: 0 0 auto !important;
    overflow-y: visible !important;
    display: block !important;
    padding-bottom: 80px !important;
  }

  /* 12. Step inner: no vertical centering on mobile */
  .step-inner {
    margin: 0 auto !important;
    padding: 20px 16px 16px !important;
    width: 100%;
  }

  /* 13. CTA bar: fixed to screen bottom on mobile */
  .cta-container-fixed {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(255,255,255,0.98) !important;
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border-light);
    padding: 12px 16px !important;
    z-index: 50;
  }

  /* 14. Next button: full width on mobile */
  .btn-next-step {
    flex: 1;
    text-align: center;
    padding: 15px 20px !important;
  }

  /* 15. Illustrated grids: 2 columns on mobile */
  .illustrated-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .illustrated-cards-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* 16. Gender cards: full width */
  .gender-selection-grid {
    max-width: 100% !important;
    grid-template-columns: repeat(2, 1fr);
  }

  /* 17. Age dropdown: full width */
  .age-dropdown { max-width: 100% !important; }

  /* 18. Email modal: bottom sheet on mobile */
  .modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .modal-content {
    border-radius: 20px 20px 0 0 !important;
    max-width: 100% !important;
  }

  /* 19. Footer: compact */
  .quiz-footer {
    height: auto !important;
    padding: 12px 16px !important;
  }
  .quiz-footer p { display: block !important; margin: 2px 0 !important; }

  /* 20. Results: natural scroll on mobile */
  .step[data-step="11"].active {
    overflow-y: auto !important;
    height: auto !important;
  }
}
