/* ── ZEVORIFY QUIZ — TOKENS ────────────────────────────── */
:root {
  --bg: #FFFFFF;
  --bg2: #F7F7F5;
  --bg3: #ECECEC;
  --ink: #121212;
  --ink2: rgba(18,18,18,0.65);
  --ink3: rgba(18,18,18,0.4);
  --accent: #2D2D2D;
  --accent-soft: rgba(45,45,45,0.08);
  --green: #2D7D5F;
  --green-soft: rgba(45,125,95,0.08);
  --gold: #FBBF24;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --radius: 12px;
  --radius-sm: 10px;
  --max-w: 440px;
  --transition: 0.22s ease;
}

/* ── RESET ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  min-height: 100vh;
  overscroll-behavior: none;
}

/* ── APP SHELL ────────────────────────────────────────── */
.app {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── TOPBAR ───────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  padding: 0 16px;
  border-bottom: 1px solid rgba(18,18,18,0.08);
}
.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.back {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--ink); cursor: pointer;
  border-radius: 50%;
  transition: background var(--transition);
}
.back:hover { background: rgba(18,18,18,0.05); }
.back[hidden] { visibility: hidden; }
.back-spacer { width: 36px; }
.logo-img {
  height: 30px;
  width: auto;
}

/* ── PROGRESS BAR ─────────────────────────────────────── */
.progress {
  height: 3px;
  background: rgba(18,18,18,0.08);
  border-radius: 2px;
  margin-bottom: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ── SCREEN ───────────────────────────────────────────── */
.screen {
  flex: 1;
  padding: 28px 20px 120px;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.screen.full-width { padding-left: 0; padding-right: 0; }

/* ── TYPOGRAPHY ───────────────────────────────────────── */
h1 { font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -0.3px; }
h2 { font-family: var(--serif); font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -0.2px; }
h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.3; }

.eyebrow {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink2);
  margin-bottom: 10px;
}

.sub {
  font-size: 15px;
  color: var(--ink2);
  margin-top: 8px;
  line-height: 1.55;
}

.small { font-size: 13px; color: var(--ink3); }
.center { text-align: center; }

.highlight { color: var(--accent); font-weight: 600; }

/* ── OPTION BUTTONS ───────────────────────────────────── */
.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  background: var(--bg);
  border: 1.5px solid rgba(18,18,18,0.12);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition), background var(--transition);
}
.opt:hover { border-color: rgba(18,18,18,0.3); background: var(--bg2); }
.opt.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.opt + .opt { margin-top: 10px; }

.emoji { font-size: 20px; flex-shrink: 0; }
.opt-text { flex: 1; }
.opt-desc { display: block; font-size: 13px; color: var(--ink2); margin-top: 2px; font-weight: 400; }

.check {
  width: 22px; height: 22px;
  border: 2px solid rgba(18,18,18,0.2);
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  transition: all var(--transition);
}
.opt.selected .check {
  background: var(--accent);
  border-color: var(--accent);
}
.opt.selected .check::after {
  content: '';
  position: absolute;
  top: 4px; left: 7px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.opts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.opts-grid .opt { justify-content: center; text-align: center; }

.opts-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

/* ── CTA BAR ──────────────────────────────────────────── */
.cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--bg) 60%, transparent);
}
.cta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn {
  display: block;
  width: 100%;
  padding: 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition);
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(18,18,18,0.15);
  color: var(--ink);
}
.btn-outline:hover { border-color: rgba(18,18,18,0.3); }

.skip {
  display: block;
  width: 100%;
  padding: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink3);
  background: none;
  border: none;
  cursor: pointer;
  text-align: center;
}

/* ── EDUCATION / INTERSTITIAL CARDS ───────────────────── */
.edu-card {
  background: var(--bg2);
  border: 1px solid rgba(18,18,18,0.08);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-top: 20px;
}
.edu-stat {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.edu-label {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.5;
}

/* ── RESULT CARDS ─────────────────────────────────────── */
.result-card {
  background: var(--bg2);
  border: 1px solid rgba(18,18,18,0.08);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-top: 16px;
}
.result-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 20px;
  margin-bottom: 12px;
}
.badge-pigmentary { background: rgba(180,100,60,0.12); color: #8B5E3C; }
.badge-vascular { background: rgba(100,60,150,0.12); color: #6B3FA0; }
.badge-combination { background: var(--accent-soft); color: var(--accent); }

.reframe-box {
  background: var(--bg2);
  border: 1.5px solid rgba(18,18,18,0.12);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
  text-align: center;
}
.reframe-box h3 {
  color: var(--accent);
  margin-bottom: 8px;
}

/* ── TIMELINE ─────────────────────────────────────────── */
.timeline {
  margin-top: 20px;
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.tl-item {
  position: relative;
  padding-bottom: 24px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -24px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 50%;
}
.tl-item:last-child .tl-dot { background: var(--green); }
.tl-time {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.tl-item:last-child .tl-time { color: var(--green); }
.tl-body { font-size: 14px; color: var(--ink2); line-height: 1.5; }
.tl-body strong { color: var(--ink); }

/* ── TESTIMONIAL ──────────────────────────────────────── */
.testimonial {
  background: var(--bg2);
  border: 1px solid rgba(18,18,18,0.06);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
}
.testimonial-quote {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.6;
  margin-bottom: 12px;
}
.testimonial-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.testimonial-detail {
  font-size: 12px;
  color: var(--ink3);
}
.stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; margin-bottom: 8px; }

/* ── REVIEW COUNT ─────────────────────────────────────── */
.review-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--bg2);
  border-radius: var(--radius);
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
}

/* ── BUNDLE SELECTOR ──────────────────────────────────── */
.bundle {
  border: 1.5px solid rgba(18,18,18,0.12);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 10px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
}
.bundle:first-child { margin-top: 20px; }
.bundle.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.bundle-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
}
.bundle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bundle-label { font-weight: 600; font-size: 15px; }
.bundle-sub { font-size: 13px; color: var(--ink2); margin-top: 2px; }
.bundle-price { font-size: 18px; font-weight: 700; color: var(--accent); }
.bundle-compare {
  font-size: 13px;
  color: var(--ink3);
  text-decoration: line-through;
  margin-right: 6px;
}
.bundle-per {
  font-size: 12px;
  color: var(--ink3);
  text-align: right;
  margin-top: 2px;
}

/* ── GUARANTEE ────────────────────────────────────────── */
.guarantee {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--green-soft);
  border: 1px solid rgba(45,125,95,0.15);
  border-radius: var(--radius);
  margin-top: 16px;
}
.guarantee-icon { font-size: 24px; flex-shrink: 0; }
.guarantee-text { font-size: 13px; color: var(--ink2); line-height: 1.5; }
.guarantee-text strong { color: var(--green); }

/* ── LOADER ───────────────────────────────────────────── */
.loader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  text-align: center;
}
.loader-ring {
  width: 64px; height: 64px;
  border: 3px solid rgba(18,18,18,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loader-steps {
  margin-top: 20px;
  text-align: left;
  width: 100%;
  max-width: 280px;
}
.loader-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink3);
  transition: color 0.3s ease;
}
.loader-step.active { color: var(--ink); }
.loader-step.done { color: var(--green); }
.loader-check {
  width: 20px; height: 20px;
  border: 2px solid rgba(18,18,18,0.15);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
  font-size: 11px;
}
.loader-step.done .loader-check {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.loader-step.active .loader-check {
  border-color: var(--accent);
}

/* ── HOME ─────────────────────────────────────────────── */
.home-wrap {
  text-align: center;
  padding: 0 20px;
}
.home-stars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink2);
  margin-bottom: 24px;
}
.home-stars .stars { margin: 0; }
.home-headline {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}
.home-sub {
  font-size: 15px;
  color: var(--ink2);
  margin-bottom: 28px;
  line-height: 1.55;
}

/* ── FOOTER ───────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 24px 16px;
  font-size: 12px;
  color: var(--ink3);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
}
.site-footer a { color: var(--ink3); text-decoration: none; }
.site-footer a:hover { color: var(--ink2); }
.site-footer div { width: 100%; margin-top: 4px; }

/* ── MODAL ────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
}
.modal[hidden] { display: none; }
.modal-box {
  background: var(--bg);
  border: 1px solid rgba(18,18,18,0.1);
  border-radius: var(--radius);
  padding: 28px 24px;
  max-width: 360px;
  width: 100%;
}

/* ── MISC ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: rgba(18,18,18,0.08);
  margin: 24px 0;
}
.spacer { height: 16px; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }

.pill {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent);
}

.ingredient-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.ingredient-card {
  background: var(--bg2);
  border: 1px solid rgba(18,18,18,0.06);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}
.ingredient-icon { font-size: 24px; margin-bottom: 6px; }
.ingredient-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.ingredient-role { font-size: 11px; color: var(--ink3); margin-top: 2px; }

/* ── TIMELINE IMAGES ─────────────────────────────────── */
.tl-img {
  max-width: 140px;
  margin: 10px 0 4px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ── BEFORE/AFTER ROW ────────────────────────────────── */
.ba-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.ba-cell {
  flex: 1;
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg3);
}
.ba-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink3);
  padding: 6px 0 2px;
}

/* ── EDUCATION VISUAL ────────────────────────────────── */
.edu-visual {
  max-width: 180px;
  margin: 0 auto 16px;
}
.edu-visual-caption {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink3);
  margin-top: 6px;
  letter-spacing: 0.3px;
}

/* ── COMPARISON ROW ──────────────────────────────────── */
.comparison-row {
  display: flex;
  gap: 12px;
  margin: 20px 0 8px;
}
.comparison-cell {
  flex: 1;
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg3);
  padding-bottom: 10px;
}
.comparison-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink2);
  margin-top: 6px;
  line-height: 1.4;
}
.comparison-verdict {
  font-weight: 700;
  font-size: 11px;
}
.comparison-verdict.bad { color: #C0392B; }
.comparison-verdict.good { color: var(--green); }
