/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F8F6F3;
  --bg-card: #FFFFFF;
  --text: #1B2A4A;
  --text-secondary: #5A6A7A;
  --accent: #2A9D8F;
  --accent-hover: #238B7E;
  --accent-light: #E8F5F3;
  --border: #E5E1DC;
  --shadow: 0 2px 8px rgba(27,42,74,0.06);
  --shadow-lg: 0 8px 24px rgba(27,42,74,0.10);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ===== PROGRESS BAR ===== */
.progress-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  padding: 12px 20px 8px;
  border-bottom: 1px solid var(--border);
}

.progress-bar-top {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}

.back-btn {
  background: none;
  border: none;
  padding: 4px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
  flex-shrink: 0;
}

.back-btn:hover { background: var(--border); }
.back-btn svg { width: 20px; height: 20px; }
.back-btn.hidden { visibility: hidden; }

.progress-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 0%;
}

.progress-text {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  flex-shrink: 0;
  min-width: 32px;
  text-align: right;
}

/* ===== QUIZ CONTAINER ===== */
.quiz-wrapper {
  padding-top: 60px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.slide {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 40px;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
  animation: fadeIn 0.3s ease;
}

.slide.active { display: flex; }

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

/* ===== TYPOGRAPHY ===== */
.slide-question {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
  line-height: 1.3;
}

.slide-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
}

.slide-headline {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.2;
}

.slide-body {
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.7;
  margin-bottom: 28px;
}

.slide-body p { margin-bottom: 12px; }
.slide-body p:last-child { margin-bottom: 0; }

/* ===== OPTION CARDS ===== */
.options-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.option-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.option-card.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.option-card .check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.option-card.selected .check-icon {
  border-color: var(--accent);
  background: var(--accent);
}

.option-card.selected .check-icon svg { opacity: 1; }
.option-card .check-icon svg { opacity: 0; transition: opacity var(--transition); }

/* Multi-select checkbox style */
.option-card.multi .check-icon { border-radius: 4px; }

/* ===== IMAGE CARDS (Gender, Severity) ===== */
.image-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  margin-bottom: 24px;
}

.image-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.image-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.image-card.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.image-card .card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.image-card .card-desc {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: -4px;
}

/* Severity cards - full width stack */
.severity-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-bottom: 24px;
}

.severity-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.severity-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.severity-card.selected { border-color: var(--accent); background: var(--accent-light); }

.severity-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.severity-card .card-desc {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all var(--transition);
  width: 100%;
  max-width: 360px;
}

.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-secondary:hover { background: var(--accent-light); }

/* ===== SLIDE 1: LANDING ===== */
.landing-hero {
  text-align: center;
  padding-top: 12px;
}

.landing-hero .slide-headline { font-size: 28px; margin-bottom: 10px; }

.landing-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0;
  align-items: flex-start;
  width: 100%;
  max-width: 340px;
}

.landing-bullets .bullet {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
}

.landing-bullets .bullet-icon {
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
}

.landing-cta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.landing-terms {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

.landing-terms a { color: var(--accent); text-decoration: underline; }

.product-preview {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-preview .product-placeholder {
  width: 120px;
  height: 160px;
  background: linear-gradient(135deg, var(--accent-light), var(--border));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  padding: 8px;
}

/* ===== INFO SLIDES ===== */
.info-slide-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
}

.info-points {
  width: 100%;
  text-align: left;
  margin-bottom: 24px;
}

.info-points .point {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.5;
}

.info-points .point-arrow {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.why-ask {
  font-size: 12px;
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
  margin-top: 8px;
}

/* ===== RESULTS CARD (Slide 27) ===== */
.results-card {
  width: 100%;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 24px;
}

.results-card-section {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.results-card-section:last-child { border-bottom: none; }

.results-card-section h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.results-card-section p {
  font-size: 15px;
  line-height: 1.5;
}

.results-card-section .tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin: 4px 4px 4px 0;
}

.severity-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.severity-badge.mild { background: #E8F5E9; color: #2E7D32; }
.severity-badge.moderate { background: #FFF3E0; color: #E65100; }
.severity-badge.severe { background: #FFEBEE; color: #C62828; }

/* ===== LOADING SCREEN (Slide 28) ===== */
.loading-section {
  width: 100%;
  text-align: center;
}

.loading-bars {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 30px 0;
}

.loading-bar-item label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.loading-bar-track {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  width: 0%;
  transition: width 0.6s ease;
}

/* ===== COMMITMENT MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27,42,74,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 24px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box { transform: translateY(0); }

.modal-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.3;
}

.modal-buttons {
  display: flex;
  gap: 12px;
}

.modal-buttons button {
  flex: 1;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: none;
  transition: all var(--transition);
}

.modal-btn-yes { background: var(--accent); color: #fff; }
.modal-btn-yes:hover { background: var(--accent-hover); }
.modal-btn-no { background: var(--border); color: var(--text); }
.modal-btn-no:hover { background: #D5D1CC; }

/* ===== FACE MAP ===== */
.face-map-container {
  position: relative;
  width: 180px;
  height: 220px;
  margin: 0 auto 20px;
}

.face-map-svg {
  width: 100%;
  height: 100%;
}

/* ===== EMOTIONAL SLIDES ===== */
.emotional-slide .slide-question {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 32px;
}

.emotional-slide .options-list { margin-top: 0; }

/* ===== SALES PAGE ===== */
.sales-page { padding-top: 0; }

.sales-hero {
  padding: 48px 20px 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--bg) 100%);
}

.sales-hero h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.sales-hero .hero-summary {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 28px;
}

.sales-section {
  padding: 48px 20px;
  max-width: 720px;
  margin: 0 auto;
}

.sales-section h2 {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.2;
}

.sales-section .section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ===== PRICING CARDS ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 520px;
  margin: 0 auto 24px;
}

.pricing-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 8px;
}

.pricing-card .price {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-card .price-per {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.pricing-card .price-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.pricing-card .btn-primary { max-width: none; font-size: 14px; padding: 12px 16px; }

.pricing-note {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 480px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-badge-icon {
  color: var(--accent);
  font-size: 16px;
}

/* ===== MECHANISM CARDS ===== */
.mechanism-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.mechanism-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
}

.mechanism-card .mech-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
}

.mechanism-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.mechanism-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.mechanism-card .ingredients { font-size: 12px; color: var(--accent); font-weight: 600; margin-top: 6px; }

/* ===== TESTIMONIALS ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 16px;
}

.testimonial-photo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-secondary);
  text-align: center;
}

.testimonial-content { flex: 1; }
.testimonial-stars { color: #F59E0B; font-size: 14px; margin-bottom: 6px; }
.testimonial-text { font-size: 14px; line-height: 1.5; margin-bottom: 8px; font-style: italic; }
.testimonial-name { font-size: 13px; font-weight: 600; }
.testimonial-meta { font-size: 12px; color: var(--text-secondary); }

/* ===== INGREDIENTS TABLE ===== */
.ingredients-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.ingredient-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.ingredient-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.ingredient-info { flex: 1; }
.ingredient-info h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.ingredient-info .dose { font-size: 12px; color: var(--accent); font-weight: 600; }
.ingredient-info p { font-size: 13px; color: var(--text-secondary); line-height: 1.4; margin-top: 4px; }

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 28px;
  margin-bottom: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  padding-bottom: 28px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}

.timeline-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--accent); }
.timeline-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* ===== FAQ ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  gap: 12px;
}

.faq-question:hover { background: var(--accent-light); }

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== FINAL CTA ===== */
.final-cta {
  text-align: center;
  padding: 48px 20px 64px;
  background: linear-gradient(0deg, var(--accent-light) 0%, var(--bg) 100%);
}

.final-cta h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.final-cta p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 24px;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
  .slide-question { font-size: 26px; }
  .slide-headline { font-size: 30px; }
  .landing-hero .slide-headline { font-size: 32px; }
  .sales-hero h1 { font-size: 34px; }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .mechanism-grid { grid-template-columns: 1fr; }
  .severity-cards { grid-template-columns: 1fr; }
  .image-cards { grid-template-columns: 1fr; }
}
