/* ============================================================
   Nuv Flux — Quiz interativo (mobile-first)
   Paleta sóbria e profissional. Nada de "cara de promoção".
   ============================================================ */

:root {
  /* Cores — ajuste aqui se quiser mudar a identidade visual */
  --bg:        #0f172a;   /* fundo (azul-grafite profundo) */
  --bg-soft:   #1e293b;   /* cartões / elementos sobre o fundo */
  --surface:   #ffffff;   /* superfície clara dos cartões de opção */
  --text:      #0f172a;   /* texto principal escuro */
  --text-light:#e2e8f0;   /* texto claro sobre fundo escuro */
  --muted:     #64748b;   /* texto secundário */
  --muted-light:#94a3b8;  /* secundário sobre fundo escuro */
  --brand:     #2563eb;   /* azul de marca (confiança) */
  --brand-dark:#1d4ed8;
  --whats:     #25d366;   /* verde WhatsApp */
  --whats-dark:#1ebe5a;
  --border:    #e2e8f0;
  --error:     #dc2626;
  --radius:    16px;
  --radius-sm: 12px;
  --shadow:    0 10px 30px rgba(2, 6, 23, 0.12);
  --maxw:      460px;
}

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

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- Barra de progresso ---------- */
.progress-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 50;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), #60a5fa);
  border-radius: 0 4px 4px 0;
  transition: width .45s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Container das telas ---------- */
.app {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
}

.screen {
  display: none;
  width: 100%;
  min-height: 100dvh;
  padding: 64px 22px 40px;
}
.screen.is-active {
  display: flex;
  animation: fade-up .4s ease both;
}

.screen-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: auto;
  display: flex;
  flex-direction: column;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Tipografia ---------- */
.badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.35);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.headline {
  font-size: clamp(26px, 7vw, 34px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -.5px;
  color: #fff;
  margin-bottom: 16px;
}
.headline--result { margin-bottom: 14px; }

.subtext {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted-light);
  margin-bottom: 30px;
}
.subtext--tight { margin-bottom: 22px; }

.step-count {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 14px;
}

.question {
  font-size: clamp(22px, 6vw, 27px);
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
  margin-bottom: 26px;
}

.reassure {
  font-size: 13.5px;
  color: var(--muted-light);
  margin-top: 18px;
  text-align: center;
  line-height: 1.5;
}

/* ---------- Botões ---------- */
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 17px;
  border-radius: var(--radius);
  padding: 18px 22px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover { background: var(--brand-dark); }

.btn-whats {
  background: var(--whats);
  color: #fff;
  font-size: 18px;
  padding: 20px 22px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}
.btn-whats:hover { background: var(--whats-dark); }
.wa-icon { flex-shrink: 0; }

/* ---------- Opções de múltipla escolha (cartões claros) ---------- */
.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.option {
  appearance: none;
  text-align: left;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 18px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform .12s ease, border-color .15s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.option:active { transform: scale(.985); }
.option:hover { border-color: #bfdbfe; }
.option.is-picked {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}
.option .dot {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  position: relative;
  transition: border-color .15s ease;
}
.option.is-picked .dot {
  border-color: var(--brand);
  background: var(--brand);
}
.option.is-picked .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
}

/* ---------- Formulário de captura ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
}
.field label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 8px;
}
.field input {
  font-family: inherit;
  font-size: 16px; /* >=16px evita zoom no iOS */
  color: var(--text);
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 16px 16px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .2s ease;
}
.field input::placeholder { color: #94a3b8; }
.field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}
.field input.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}
.error {
  font-size: 13px;
  color: #fca5a5;
  margin-top: 7px;
  min-height: 1px;
  display: none;
}
.error.show { display: block; }

.form .btn-primary { margin-top: 6px; }

/* ---------- Tela de ancoragem: caixa do "vazamento" ---------- */
.leak-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(220, 38, 38, 0.10);
  border: 1px solid rgba(220, 38, 38, 0.32);
  border-radius: var(--radius-sm);
  padding: 18px 18px;
  margin-bottom: 28px;
}
.leak-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.16);
  color: #fca5a5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.leak-box p {
  font-size: 15.5px;
  line-height: 1.55;
  color: #fecaca;
  margin: 2px 0 0;
}

/* ---------- Tela de oferta: cartão da solução ---------- */
.offer-card {
  background: var(--bg-soft);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-bottom: 18px;
  text-align: left;
}
.offer-card__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 14px;
}
.offer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}
.offer-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--text-light);
}
.li-check {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--whats);
}

/* ---------- Bloco de preço ---------- */
.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}
.price__value {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  line-height: 1;
}
.price__note {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-light);
}
.price-parcel {
  font-size: 14.5px;
  color: var(--muted-light);
  margin-top: 10px;
}
.price-parcel b { color: #fff; font-weight: 700; }

/* ---------- Selos de condições (sem mensalidade / sem fidelidade) ---------- */
.terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.term-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #bbf7d0;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.32);
  padding: 7px 11px;
  border-radius: 999px;
}
.term-chip svg { flex-shrink: 0; color: var(--whats); }

/* ---------- Caixa da ancoragem final (conecta preço à perda) ---------- */
.anchor-box {
  background: rgba(37, 99, 235, 0.12);
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 22px;
  font-size: 15.5px;
  line-height: 1.55;
  color: #dbeafe;
  text-align: left;
}
.anchor-box b { color: #fff; }

.screen[data-screen="oferta"] .screen-inner,
.screen[data-screen="ancoragem"] .screen-inner { text-align: left; }
.screen[data-screen="oferta"] .subtext,
.screen[data-screen="ancoragem"] .subtext { text-align: left; }

/* ---------- Telas mais altas: empurra conteúdo pro topo ---------- */
@media (min-height: 720px) {
  .screen { align-items: flex-start; }
  .screen-inner { margin-top: 6vh; }
  .screen[data-screen="oferta"] .screen-inner,
  .screen[data-screen="ancoragem"] .screen-inner { margin-top: 4vh; }
}

/* ---------- Acessibilidade: reduzir movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  .screen.is-active { animation: none; }
  .btn:active, .option:active { transform: none; }
}
