/* ============================================================
   QUIZ 02 — Efeito Nostalgia
   Design language: mesma base do Quiz 01 + extensões
   ============================================================ */

:root {
  --bg:         #fdf6f0;
  --bg-card:    #ffffff;
  --ink:        #1a1216;
  --ink-soft:   #5a4a52;
  --ink-mute:   #8a7a82;
  --accent:     #b9395c;
  --accent-soft:#f5e1e8;
  --accent-deep:#7a1f37;
  --line:       #ebd9df;
  --ok:         #2a8a5f;
  --warn:       #d97706;
  --shadow:     0 4px 24px rgba(122, 31, 55, 0.08);
  --shadow-lg:  0 8px 40px rgba(122, 31, 55, 0.14);
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

#app { min-height: 100vh; display: flex; flex-direction: column; }

/* ---- SCREENS ---- */
.screen {
  display: none;
  flex: 1;
  padding: 32px 20px 64px;
  animation: fadeIn .35s ease;
}
.screen.active { display: flex; }

.container {
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.container.center {
  align-items: center;
  text-align: center;
  justify-content: center;
  min-height: 60vh;
}

/* Bridge screens (prova-social, empatia, sonho, presell) */
.screen.bridge { background: var(--accent-soft); }
.screen.bridge .container { gap: 20px; }

/* ---- TYPOGRAPHY ---- */
.kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: var(--accent);
  text-transform: uppercase;
}
h1 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
h2 {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.3px;
}
h3 { font-size: 19px; font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; }
h1 em, h2 em { color: var(--accent); font-style: normal; }

.lede { font-size: 16px; color: var(--ink-soft); }
.lede strong { color: var(--ink); }
.lede.small { font-size: 13px; color: var(--ink-mute); }
.hint { font-size: 13px; color: var(--ink-mute); margin-top: -8px; }
.footnote { font-size: 12px; color: var(--ink-mute); text-align: center; margin-top: 20px; }

/* Bridge quote */
.bridge-quote {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--accent-deep);
  border-left: 4px solid var(--accent);
  padding-left: 16px;
  margin: 4px 0;
}
.bridge-body { font-size: 16px; color: var(--ink-soft); line-height: 1.6; }
.bridge-body strong { color: var(--ink); }

/* ---- PROGRESS BAR ---- */
.progress {
  background: var(--line);
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 2px;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width .4s ease;
}
.qcount {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-mute);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---- INTRO CARDS ---- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.intro-card {
  background: var(--bg-card);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 20px 14px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: all .15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.intro-card:hover { border-color: var(--accent); background: var(--accent-soft); }
.intro-card:active { transform: scale(.97); }
.intro-card .emoji { font-size: 32px; line-height: 1; }
.intro-card .label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

/* ---- OPTIONS (question answers) ---- */
.options { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

.opt {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg-card);
  border: 2px solid var(--line);
  color: var(--ink);
  padding: 15px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s ease;
  position: relative;
  line-height: 1.4;
}
.opt:hover { border-color: var(--accent); background: var(--accent-soft); }
.opt.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 600;
}
.options.multi .opt.selected::after {
  content: "✓";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 800;
  font-size: 16px;
}
.options.multi .opt.none {
  margin-top: 4px;
  border-style: dashed;
  font-style: italic;
  color: var(--ink-mute);
}

/* ---- CTAs ---- */
.cta {
  display: block;
  background: var(--accent);
  color: white;
  border: none;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  padding: 18px 24px;
  border-radius: 14px;
  cursor: pointer;
  letter-spacing: 0.2px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, background .15s ease;
  text-align: center;
  width: 100%;
  margin-top: 8px;
}
.cta:hover { background: var(--accent-deep); }
.cta:active { transform: scale(.98); }
.cta:disabled { background: var(--ink-mute); cursor: not-allowed; }
.cta.secondary { background: var(--ink); }
.cta.secondary:hover { background: #000; }
.cta.big { font-size: 18px; padding: 20px 24px; }
.cta.ghost {
  background: transparent;
  color: var(--ink-mute);
  box-shadow: none;
  font-size: 14px;
  font-weight: 500;
  padding: 12px;
  margin-top: 0;
}
.cta.ghost:hover { color: var(--ink); background: transparent; }

/* ---- SPINNER (calc) ---- */
.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .85s linear infinite;
  margin-bottom: 28px;
}

/* ---- LOADING BARS (calc) ---- */
.loading-bars { width: 100%; display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
.loading-item { display: flex; flex-direction: column; gap: 6px; }
.loading-row { display: flex; align-items: center; justify-content: space-between; }
.loading-label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.loading-pct { font-size: 12px; font-weight: 700; color: var(--accent); }
.loading-bar {
  background: var(--line);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}
.loading-bar-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 3px;
  transition: width .9s cubic-bezier(.4,0,.2,1);
}
.calc-note {
  font-size: 13px;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 8px;
}

/* ---- SCORE SCREEN ---- */
.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ok);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 6px 12px;
  border-radius: 20px;
  align-self: flex-start;
}
.score-number-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
}
.score-number {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: var(--ok);
  letter-spacing: -2px;
  min-width: 90px;
}
.score-number.warn { color: var(--warn); }
.score-label-block { flex: 1; }
.score-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.score-sublabel {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}
.score-meter {
  width: 100%;
  background: var(--line);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 10px;
}
.score-meter-fill {
  height: 100%;
  background: var(--ok);
  border-radius: 4px;
  transition: width 1s ease .3s;
  width: 0;
}
.score-meter-fill.warn { background: var(--warn); }

/* Diagnosis table */
.diag-table {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.diag-table-head {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line);
}
.diag-table-head span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.diag-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.diag-row:last-child { border-bottom: none; }
.diag-attr {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  flex-shrink: 0;
  width: 44%;
}
.diag-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  flex: 1;
}

/* Diagnosis prose */
.diag-prose {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---- GRAFICO SCREEN ---- */
.progress-chart {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.chart-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.chart-rows { display: flex; flex-direction: column; gap: 12px; }
.chart-row { display: flex; align-items: center; gap: 10px; }
.chart-day { font-size: 12px; font-weight: 700; color: var(--ink-mute); min-width: 40px; }
.chart-bar-wrap { flex: 1; background: var(--line); height: 8px; border-radius: 4px; overflow: hidden; }
.chart-bar-inner {
  height: 100%;
  border-radius: 4px;
  background: var(--accent);
  transition: width 1s ease .2s;
}
.chart-bar-inner.dim { background: var(--line); width: 100%; }
.chart-pct { font-size: 12px; font-weight: 700; color: var(--ink); min-width: 34px; text-align: right; }
.chart-milestone {
  font-size: 11px;
  background: var(--accent);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.chart-disclaimer { font-size: 12px; color: var(--ink-mute); margin-top: 12px; }

/* ---- TESTIMONIALS ---- */
.testimonials { display: flex; flex-direction: column; gap: 14px; }
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.testimonial-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.testimonial-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.testimonial-stars { font-size: 12px; color: #f59e0b; }
.testimonial-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---- EMAIL CAPTURE ---- */
.email-input-wrap { position: relative; }
.email-input {
  width: 100%;
  padding: 18px 18px;
  border: 2px solid var(--line);
  border-radius: 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg-card);
  outline: none;
  transition: border-color .15s;
  -webkit-appearance: none;
}
.email-input:focus { border-color: var(--accent); }
.email-input::placeholder { color: var(--ink-mute); }

/* ---- PRE-SELL SCREEN ---- */
.presell-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.presell-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.presell-attr { font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.presell-val { font-size: 14px; font-weight: 700; color: var(--ok); }

/* ---- VENDAS SCREEN ---- */
.screen.vendas { padding-bottom: 80px; }

/* Timer */
.timer-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff3cd;
  border: 1px solid #f59e0b;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
}
#timer-display { font-variant-numeric: tabular-nums; letter-spacing: 0.5px; }

/* Price box */
.price-box {
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.price-badge-tag {
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 4px;
}
.product-name-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.price-from { font-size: 14px; color: var(--ink-mute); }
.price-from s { color: var(--ink-mute); }
.price-main {
  font-size: 46px;
  font-weight: 800;
  color: var(--accent-deep);
  line-height: 1.1;
  letter-spacing: -1px;
}
.price-main .currency { font-size: 22px; vertical-align: super; font-weight: 700; }
.price-sub { font-size: 13px; color: var(--ink-mute); margin-top: -2px; }
.price-box .cta { margin-top: 16px; }
.price-security {
  font-size: 12px;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

/* Before / After */
.section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.ba-wrap { display: flex; flex-direction: column; gap: 10px; }
.ba-col {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ba-col.depois { border-color: var(--ok); }
.ba-col-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.ba-col.antes .ba-col-label { color: #dc2626; }
.ba-col.depois .ba-col-label { color: var(--ok); }
.ba-item { font-size: 14px; color: var(--ink-soft); display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }

/* Guarantee */
.guarantee-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow);
}
.guarantee-icon { font-size: 36px; flex-shrink: 0; }
.guarantee-title { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.guarantee-text { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }

/* Benefits */
.benefit-list { display: flex; flex-direction: column; gap: 10px; }
.benefit-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.benefit-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.benefit-body {}
.benefit-title { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.benefit-desc { font-size: 13px; color: var(--ink-soft); margin-top: 2px; line-height: 1.4; }

/* Expert bio */
.expert-bio {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.expert-name { font-size: 17px; font-weight: 800; color: var(--ink); }
.expert-text { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* Section divider */
.section-divider {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--line);
  padding-bottom: 10px;
}

/* Lock line */
.lock-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 4px;
}

/* ---- RESULT (score) anchor line ---- */
.anchor {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-deep);
  line-height: 1.4;
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 14px;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- PHOTO SLOTS ---- */
.photo-slot {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  font-size: 12px;
  text-align: center;
  padding: 32px 20px;
  position: relative;
}
.photo-slot::after {
  content: attr(data-placeholder);
  font-size: 12px;
  color: var(--ink-mute);
}
.photo-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.photo-slot img[src=""] { display: none; }
.photo-slot img.dri-photo { object-position: center 25%; }

.intro-photo { aspect-ratio: 4/5; width: 190px; margin: 6px auto 8px; }
.bridge-photo { aspect-ratio: 16/9; }
.q-photo { aspect-ratio: 16/9; margin-bottom: 4px; }
.mockup-photo { aspect-ratio: 4/5; width: 250px; margin: 10px auto 14px; }
.expert-photo { aspect-ratio: 3/2; margin-bottom: 12px; border-radius: 12px; }

/* ---- PROMISE BOX (intro) ---- */
.promise-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 4px;
}
.promise-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.promise-box p { font-size: 15px; color: var(--ink); line-height: 1.5; }
.promise-box strong { color: var(--accent-deep); }

/* ---- EXPERIMENTE PRIMEIRO ---- */
.try-first-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.try-first-box strong { color: var(--ink); }
.try-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  font-size: 14px;
  color: var(--ink);
}

/* ---- DESKTOP ---- */
@media (min-width: 720px) {
  .screen { padding: 56px 32px 80px; }
  h1 { font-size: 36px; }
  h2 { font-size: 27px; }
  .opt { padding: 16px 22px; font-size: 16px; }
  .ba-wrap { flex-direction: row; }
  .ba-col { flex: 1; }
}
