/* Quiz gamificado — LIGHT theme (background branco, rosa neon + acento dourado) */

:root {
  --bg-base: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-soft: #f8fafc;
  --neon: #ec4899;
  --neon-light: #f472b6;
  --neon-dark: #db2777;
  --neon-glow: rgba(236, 72, 153, 0.35);
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-glow: rgba(245, 158, 11, 0.35);
  --text: #0f172a;
  --text-body: #475569;
  --text-muted: #94a3b8;
  --danger: #dc2626;
  --danger-soft: #ef4444;
  --border: rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --radius-sm: 12px;
  --ff: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg-base); color: var(--text); font-family: var(--ff);
  font-size: 16px; line-height: 1.55; min-height: 100vh; overflow-x: hidden;
  -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased;
}

.quiz-app { max-width: 420px; margin: 0 auto; min-height: 100vh; position: relative; padding-bottom: 120px; }

/* padding horizontal do conteúdo do step (título/corpo/opções/slider) pra não colar nas bordas no mobile */
#step-container { padding: 16px 22px 24px; }

.meter {
  position: sticky; top: 0; z-index: 100; padding: 14px 22px 12px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(236, 72, 153, 0.15);
}
.meter-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; gap: 12px; }
.meter-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text); }
.meter-value { font-size: 18px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.meter-track { height: 14px; background: rgba(15, 23, 42, 0.07); border-radius: 999px; overflow: hidden; position: relative; }
.meter-fill {
  height: 100%; width: 20%;
  background: linear-gradient(90deg, var(--neon) 0%, var(--neon-light) 50%, var(--accent) 100%);
  box-shadow: 0 0 10px var(--neon-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border-radius: 999px; transition: width 850ms cubic-bezier(0.22, 1, 0.36, 1);
}
.mute-toggle {
  position: absolute; top: 10px; right: 12px; background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08); color: var(--text-muted);
  font-size: 14px; width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 200ms;
}
.mute-toggle:hover { color: var(--neon); border-color: rgba(236, 72, 153, 0.4); }

.toast-slot { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 420ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.toast-slot.show { grid-template-rows: 1fr; }
.toast-slot > .toast-inner { overflow: hidden; }
.toast {
  margin: 14px 22px 0; padding: 14px 16px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.08) 0%, rgba(245, 158, 11, 0.06) 100%);
  border: 1.5px solid rgba(236, 72, 153, 0.45); border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.15);
  display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--text);
  opacity: 0; transform: translateY(-12px); transition: opacity 300ms ease, transform 300ms ease;
}
.toast-slot.show .toast { opacity: 1; transform: translateY(0); }
.toast-icon { font-size: 20px; flex-shrink: 0; }

.step { padding: 24px 20px 20px; animation: stepIn 320ms cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes stepIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.step-title { font-size: 1.75rem; font-weight: 800; line-height: 1.22; color: var(--text); margin-bottom: 16px; text-wrap: balance; }
.step-body { font-size: 17px; color: var(--text-body); line-height: 1.55; margin-bottom: 26px; white-space: pre-line; }
.step-body b { color: var(--text); font-weight: 700; }

.name-input {
  width: 100%; padding: 18px 20px; background: var(--bg-card);
  border: 2px solid rgba(236, 72, 153, 0.3); border-radius: var(--radius-sm);
  color: var(--text); font-size: 18px; font-family: var(--ff); font-weight: 600;
  margin-bottom: 14px; transition: all 220ms;
}
.name-input::placeholder { color: var(--text-muted); font-weight: 400; }
.name-input:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15); }

.options { display: flex; flex-direction: column; gap: 12px; }
.option {
  width: 100%; min-height: 64px; padding: 18px 20px; background: var(--bg-card);
  border: 2px solid rgba(236, 72, 153, 0.28); border-radius: var(--radius-sm); color: var(--text);
  font-size: 17px; font-weight: 500; line-height: 1.4; font-family: var(--ff); text-align: left;
  cursor: pointer; display: flex; align-items: center; gap: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); transition: all 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.option-emoji { font-size: 22px; flex-shrink: 0; }
.option:hover, .option:focus {
  background: var(--bg-card-hover); border-color: rgba(236, 72, 153, 0.7);
  transform: translateY(-2px); box-shadow: 0 6px 16px rgba(236, 72, 153, 0.15); outline: none;
}
.option.selected {
  border-color: var(--neon);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(236, 72, 153, 0.04));
  box-shadow: 0 0 18px rgba(236, 72, 153, 0.35), inset 0 0 0 1px rgba(236, 72, 153, 0.3);
  animation: optionPulse 600ms ease-out;
}
@keyframes optionPulse { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }

.option-negative {
  min-height: auto; padding: 12px 16px; background: transparent;
  border: 1.5px solid rgba(220, 38, 38, 0.45); color: var(--danger);
  font-size: 15px; font-weight: 500; margin-top: 8px; box-shadow: none;
}
.option-negative:hover { background: rgba(220, 38, 38, 0.06); border-color: rgba(220, 38, 38, 0.7); transform: none; box-shadow: none; }

.negative-message {
  margin-top: 14px; padding: 12px 16px; background: rgba(236, 72, 153, 0.06);
  border-left: 3px solid var(--neon); border-radius: 8px; font-size: 14px; color: var(--text-body);
  animation: stepIn 260ms ease-out;
}

.slider-wrap { padding: 8px 4px 0; }
.slider-emojis { display: flex; justify-content: space-between; font-size: 28px; margin-bottom: 8px; }
.slider-input {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px;
  background: rgba(15, 23, 42, 0.08); border-radius: 999px; outline: none;
}
.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--neon), var(--neon-dark)); border: 3px solid #ffffff;
  box-shadow: 0 2px 10px var(--neon-glow), 0 0 0 1px rgba(236, 72, 153, 0.3); cursor: pointer;
}
.slider-input::-moz-range-thumb {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--neon), var(--neon-dark)); border: 3px solid #ffffff;
  box-shadow: 0 2px 10px var(--neon-glow), 0 0 0 1px rgba(236, 72, 153, 0.3); cursor: pointer;
}
.slider-value { text-align: center; font-size: 40px; font-weight: 800; color: var(--neon); margin-top: 20px; font-variant-numeric: tabular-nums; }

.testi-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.testi-card {
  padding: 0; background: var(--bg-card); border: 1px solid rgba(236, 72, 153, 0.2);
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  display: flex; flex-direction: column;
}
.testi-photo { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; border-radius: 0; border: none; box-shadow: none; }
.testi-body { padding: 18px 20px 20px; text-align: left; }
.testi-name { font-size: 16px; font-weight: 700; color: var(--neon); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.testi-text { font-size: 15px; color: var(--text-body); line-height: 1.55; }

.pitch-reframe {
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), rgba(245, 158, 11, 0.04));
  border: 1.5px solid rgba(236, 72, 153, 0.35); border-radius: var(--radius);
  font-size: 17px; color: var(--text); line-height: 1.5; margin-bottom: 24px;
}
.pitch-reframe b { color: var(--accent-dark); }
.pitch-bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.pitch-bullets li { padding: 12px 14px; background: var(--bg-soft); border-radius: var(--radius-sm); font-size: 15px; color: var(--text-body); line-height: 1.45; border-left: 3px solid var(--neon); }
.pitch-bullets li b { color: var(--text); }
.pitch-price-box {
  padding: 22px 20px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(236, 72, 153, 0.06));
  border: 2px solid var(--accent); border-radius: var(--radius); text-align: center; margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.15);
}
.pitch-price { font-size: 22px; color: var(--text); font-weight: 700; line-height: 1.4; }
.pitch-price b { color: var(--accent-dark); font-size: 26px; }
.pitch-price-sub { font-size: 14px; color: var(--text-body); margin-top: 8px; font-style: italic; }
.pitch-guarantee {
  padding: 14px 16px; background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text-body); line-height: 1.5; margin-bottom: 26px;
}
.pitch-guarantee b { color: #166534; }
.pitch-whofor { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.whofor-block { padding: 16px; background: var(--bg-soft); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.whofor-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.whofor-title.for { color: var(--neon); }
.whofor-title.not { color: var(--danger); }
.whofor-block ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.whofor-block li { font-size: 14px; color: var(--text-body); padding-left: 20px; position: relative; line-height: 1.45; }
.whofor-block.for li::before { content: '✓'; color: var(--neon); position: absolute; left: 0; font-weight: 700; }
.whofor-block.not li::before { content: '✗'; color: var(--danger); position: absolute; left: 0; font-weight: 700; }

.cta-dock {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 100%; max-width: 420px; padding: 14px 22px max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.92) 30%, rgba(255, 255, 255, 0.98) 100%);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 50;
}
.cta {
  width: 100%; min-height: 58px; padding: 16px 20px;
  background: linear-gradient(135deg, var(--neon) 0%, var(--neon-dark) 100%);
  border: none; border-radius: 14px; color: #fff;
  font-size: 18px; font-weight: 800; font-family: var(--ff); letter-spacing: 0.3px; cursor: pointer;
  box-shadow: 0 0 18px var(--neon-glow), 0 6px 18px rgba(236, 72, 153, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 220ms cubic-bezier(0.22, 1, 0.36, 1); text-transform: uppercase; display: block; text-align: center; text-decoration: none;
}
.cta:hover, .cta:focus { background: linear-gradient(135deg, var(--neon-light) 0%, var(--neon) 100%); transform: translateY(-2px); outline: none; }
.cta:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.cta-gold {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #0f172a;
  box-shadow: 0 0 22px var(--accent-glow), 0 6px 18px rgba(245, 158, 11, 0.3);
}
.cta-gold:hover, .cta-gold:focus { background: linear-gradient(135deg, #fbbf24 0%, var(--accent) 100%); }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: overlayIn 300ms ease-out;
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  max-width: 360px; width: 100%; padding: 28px 22px; background: #ffffff;
  border: 2px solid var(--accent); border-radius: 20px;
  box-shadow: 0 0 40px var(--accent-glow), 0 20px 60px rgba(15, 23, 42, 0.35);
  animation: modalIn 480ms cubic-bezier(0.34, 1.56, 0.64, 1); text-align: center;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }
.modal-badge {
  display: inline-block; background: var(--accent); color: #0f172a;
  padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px;
}
.modal-title { font-size: 1.6rem; font-weight: 800; color: var(--accent-dark); line-height: 1.2; margin-bottom: 6px; }
.modal-subtitle { font-size: 15px; color: var(--text-body); margin-bottom: 20px; }
.modal-bonuses { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; text-align: left; }
.modal-bonus { padding: 14px; background: rgba(245, 158, 11, 0.06); border: 1px solid rgba(245, 158, 11, 0.25); border-radius: var(--radius-sm); }
.modal-bonus-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.modal-bonus-emoji { font-size: 22px; }
.modal-bonus-name { font-size: 15px; font-weight: 700; color: var(--accent-dark); }
.modal-bonus-desc { font-size: 13px; color: var(--text-body); line-height: 1.5; }

*:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.15s !important; transition-duration: 0.15s !important; }
  .step { animation: none; }
}

/* ========== SCRATCH (RASPADINHA) ========== */
.scratch-wrap { margin-top: 8px; margin-bottom: 8px; }
.scratch-container {
  position: relative; width: 100%; aspect-ratio: 4 / 3; max-width: 380px; margin: 0 auto;
  border-radius: var(--radius); overflow: hidden;
  border: 2px solid rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.18), 0 8px 24px rgba(15, 23, 42, 0.12);
  touch-action: none; -webkit-user-select: none; user-select: none;
  background: linear-gradient(160deg, #fef3c7 0%, #fde68a 100%); isolation: isolate;
}
.scratch-prize {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 22px 18px;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.18) 0%, rgba(236, 72, 153, 0.10) 45%, transparent 75%);
  transform: scale(0.94); transition: transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.scratch-container.revealed .scratch-prize { transform: scale(1); }
.scratch-prize-badge {
  display: inline-block; background: var(--accent); color: #0f172a;
  padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 12px;
  box-shadow: 0 0 12px var(--accent-glow);
}
.scratch-prize-emoji {
  font-size: 56px; line-height: 1; margin-bottom: 10px;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.5));
  animation: scratchPrizeFloat 2.6s ease-in-out infinite;
}
@keyframes scratchPrizeFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.scratch-prize-title { font-size: 20px; font-weight: 800; color: var(--accent-dark); line-height: 1.2; margin-bottom: 6px; text-wrap: balance; }
.scratch-prize-desc { font-size: 14px; color: var(--text); line-height: 1.45; max-width: 280px; }
.scratch-canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; cursor: pointer; touch-action: none; transition: opacity 400ms ease-out; }
.scratch-container.revealed .scratch-canvas { opacity: 0; pointer-events: none; }
.scratch-cover-hint {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none; color: rgba(15, 23, 42, 0.85); font-weight: 800;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4); transition: opacity 260ms ease-out;
}
.scratch-cover-hint-icon { font-size: 42px; margin-bottom: 6px; animation: scratchHintBob 1.4s ease-in-out infinite; }
@keyframes scratchHintBob { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-8px) rotate(8deg); } }
.scratch-cover-hint-label { font-size: 15px; letter-spacing: 0.5px; text-transform: uppercase; color: #0f172a; }
.scratch-container.touched .scratch-cover-hint, .scratch-container.revealed .scratch-cover-hint { opacity: 0; }
.scratch-fallback {
  margin: 14px auto 0; display: none; background: transparent;
  border: 1px solid rgba(245, 158, 11, 0.55); color: var(--accent-dark);
  font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  font-family: var(--ff); transition: all 200ms;
}
.scratch-fallback.show { display: block; }
.scratch-fallback:hover { background: rgba(245, 158, 11, 0.1); border-color: var(--accent); }
.scratch-progress-note { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 10px; letter-spacing: 0.3px; }

.cta.cta-scratch-locked { opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity 400ms ease-out, transform 400ms ease-out; }
.cta.cta-scratch-unlocked { opacity: 1; transform: translateY(0); pointer-events: auto; animation: scratchCtaPop 500ms cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes scratchCtaPop {
  0% { transform: scale(0.9) translateY(10px); opacity: 0; }
  60% { transform: scale(1.04) translateY(0); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

@media (min-width: 480px) { .quiz-app { padding-bottom: 130px; } }

/* ---- Imagem post-guarantee (depoimento em print entre a garantia e "pra quem e") ---- */
.pitch-post-guarantee {
  margin: 8px 0 22px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.15);
}
.pitch-post-guarantee img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Antes e depois (aparece depois do "Nao e pra voce se" no pitch) ---- */
.pitch-before-after {
  margin-top: 28px;
}
.ba-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  text-wrap: balance;
}
.ba-subtitle {
  font-size: 14px;
  color: var(--text-body);
  margin-bottom: 16px;
}
.ba-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ba-card {
  background: var(--bg-card);
  border: 1px solid rgba(236, 72, 153, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.ba-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}
.ba-caption {
  padding: 12px 16px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--neon);
  text-align: center;
  border-top: 1px solid var(--border);
}