* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: oklch(0.13 0.02 230); color: white; font-family: 'Hanken Grotesk', sans-serif; min-height: 100dvh; }
#app { min-height: 100dvh; position: relative; overflow: hidden; display: flex; flex-direction: column; }

/* ---------- fundo atmosférico compartilhado ---------- */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-glow { position: absolute; top: -30%; left: 50%; transform: translateX(-50%); width: 140vw; height: 70vh; background: radial-gradient(ellipse at 50% 0%, oklch(0.4 0.07 218 / 0.5) 0%, transparent 65%); }
.bg-orb { position: absolute; top: -18vh; right: -18vw; width: 60vh; height: 60vh; max-width: 480px; max-height: 480px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, oklch(0.78 0.09 205) 0%, oklch(0.48 0.11 218) 32%, oklch(0.28 0.07 226) 64%, oklch(0.15 0.03 228) 100%); box-shadow: 0 60px 140px -20px oklch(0.1 0.06 225 / 0.7), inset -20px -20px 60px oklch(0.1 0.05 230 / 0.5); opacity: 0.9; }
.bg-point { position: absolute; border-radius: 50%; filter: blur(0.5px); background: oklch(0.85 0.05 205); }

/* três elementos de marca flutuando no fundo: Google, Tráfego Pago (Meta Ads), IA */
.bg-icon-chip {
  position: absolute;
  width: 56px; height: 56px;
  border-radius: 18px;
  background: linear-gradient(160deg, oklch(1 0 0 / 0.14), oklch(1 0 0 / 0.05));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid oklch(1 0 0 / 0.18);
  display: flex; align-items: center; justify-content: center;
  padding: 13px;
  box-shadow: 0 20px 40px -18px oklch(0 0 0 / 0.6);
  animation: iconFloat 5.5s ease-in-out infinite;
}
.bg-icon-chip svg { width: 100%; height: 100%; }
.bg-icon-chip.google { top: 3.5%; left: 6%; animation-delay: 0s; }
.bg-icon-chip.meta { top: 4.5%; right: 6%; animation-delay: 1.3s; }
.bg-icon-chip.ia { bottom: 4%; left: calc(50% - 28px); animation-delay: 2.6s; }
@keyframes iconFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- cartão branco compartilhado: capa, pergunta e resultado ---------- */
.capa-card, .pergunta-card, .resultado-card {
  width: 100%;
  max-width: 400px;
  background: oklch(0.99 0.004 80);
  border-radius: 26px;
  padding: 36px 28px 34px;
  box-shadow: 0 40px 90px -20px oklch(0 0 0 / 0.55), 0 1px 0 oklch(1 0 0 / 0.6) inset;
  color: oklch(0.2 0.02 80);
  position: relative;
  z-index: 1;
}

/* ---------- capa / captura de lead ---------- */
.capa { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 22px; position: relative; z-index: 1; gap: 28px; }
.capa-eyebrow { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: oklch(0.75 0.05 205); }
.capa-eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: oklch(0.75 0.1 205); box-shadow: 0 0 10px 2px oklch(0.75 0.1 205 / 0.7); }
.capa-titulo { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 30px; line-height: 1.15; text-align: center; color: white; margin: 0; max-width: 340px; }
.capa-card { display: flex; flex-direction: column; gap: 20px; }
.campo { display: flex; flex-direction: column; gap: 8px; }
.campo label { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: oklch(0.5 0.02 80); }
.campo input { border: 1.5px solid oklch(0.86 0.01 80); border-radius: 12px; padding: 13px 14px; font-size: 16px; font-family: 'Hanken Grotesk', sans-serif; color: oklch(0.2 0.02 80); background: white; }
.campo input:focus { outline: none; border-color: oklch(0.55 0.1 210); }
.capa-btn { margin-top: 6px; border: none; border-radius: 100px; padding: 15px 20px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 16px; background: oklch(0.42 0.1 220); color: white; transition: opacity 150ms ease, transform 150ms ease; }
.capa-btn:disabled { opacity: 0.35; }
.capa-btn:not(:disabled):active { transform: scale(0.98); }
.capa-ver-nota { margin-top: -6px; border: none; background: transparent; font-family: 'Hanken Grotesk', sans-serif; font-weight: 700; font-size: 14px; color: oklch(0.45 0.1 210); text-decoration: underline; text-underline-offset: 3px; animation: fadeRise 300ms cubic-bezier(0.16,1,0.3,1) both; }
.capa-ver-nota:active { opacity: 0.7; }
.capa-nota { font-size: 12px; color: oklch(0.65 0.02 230); text-align: center; max-width: 320px; position: relative; z-index: 1; }

/* ---------- perguntas ---------- */
.pergunta-tela { flex: 1; display: flex; align-items: center; justify-content: center; padding: 28px 22px; position: relative; z-index: 1; }
.progresso { height: 4px; background: oklch(0.92 0.006 80); border-radius: 4px; overflow: hidden; margin-bottom: 30px; }
.progresso-fill { height: 100%; width: 100%; background: oklch(0.55 0.13 220); transform: scaleX(0); transform-origin: left; transition: transform 400ms cubic-bezier(0.16,1,0.3,1); }

.tema-chip { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; animation: fadeRise 400ms cubic-bezier(0.16,1,0.3,1) both; }
.tema-icone-mini { width: 34px; height: 34px; border-radius: 10px; background: oklch(0.96 0.008 80); display: flex; align-items: center; justify-content: center; padding: 7px; flex-shrink: 0; }
.tema-icone-mini svg { width: 100%; height: 100%; }
.tema-texto { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: oklch(0.5 0.02 80); }

.pergunta { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 22px; line-height: 1.4; color: oklch(0.15 0.02 80); margin-bottom: 32px; animation: fadeRise 450ms cubic-bezier(0.16,1,0.3,1) 40ms both; }
.opcoes { display: flex; flex-direction: column; gap: 14px; }

/* opção: cartão claro com indicador de seleção, para leitura fácil dentro do card branco */
.opcao {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  background: oklch(0.965 0.006 80);
  border: 1.5px solid oklch(0.88 0.01 80);
  border-radius: 16px;
  padding: 19px 20px;
  font-size: 15.5px;
  color: oklch(0.28 0.02 80);
  text-align: left;
  font-family: 'Hanken Grotesk', sans-serif;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, opacity 220ms ease, transform 160ms cubic-bezier(0.16,1,0.3,1);
  animation: opcaoIn 380ms cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: calc(var(--i, 0) * 70ms + 60ms);
}
.opcao:not(:disabled):hover { border-color: oklch(0.72 0.05 220); }
.opcao:not(:disabled):active { transform: scale(0.985); }
.opcao:disabled:not(.selecionada) { opacity: 0.42; }

.opcao-radio {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid oklch(0.76 0.015 80);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 160ms ease, background 160ms ease;
}
.opcao-radio svg { width: 12px; height: 12px; opacity: 0; transform: scale(0.4); transition: opacity 160ms ease, transform 220ms cubic-bezier(0.16,1,0.3,1); }
.opcao-texto { flex: 1; line-height: 1.4; transition: color 160ms ease; }

.opcao.bloqueada {
  pointer-events: none;
  cursor: default;
  animation: opcaoIn 380ms cubic-bezier(0.16,1,0.3,1) calc(var(--i, 0) * 70ms + 60ms) both,
             bloqueadaPulse 1s ease-in-out calc(var(--i, 0) * 70ms + 440ms) infinite;
}
@keyframes bloqueadaPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

.opcao.selecionada { border-color: oklch(0.55 0.13 220); background: oklch(0.95 0.028 220); }
.opcao.selecionada .opcao-radio { border-color: oklch(0.55 0.13 220); background: oklch(0.55 0.13 220); }
.opcao.selecionada .opcao-radio svg { opacity: 1; transform: scale(1); }
.opcao.selecionada .opcao-texto { font-weight: 700; color: oklch(0.14 0.02 80); }

@keyframes opcaoIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fadeRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- transição entre módulos ---------- */
.transicao { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; position: relative; z-index: 1; padding: 24px; }
.t-badge { position: relative; width: 108px; height: 108px; display: flex; align-items: center; justify-content: center; }
.t-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid oklch(0.75 0.1 205 / 0.35); animation: tRing 1.8s cubic-bezier(0.4,0,0.6,1) infinite; }
.t-ring.atraso { animation-delay: 0.5s; }
.t-orb {
  width: 88px; height: 88px; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, oklch(0.82 0.1 205) 0%, oklch(0.5 0.11 218) 34%, oklch(0.26 0.07 226) 68%, oklch(0.14 0.03 228) 100%);
  box-shadow: 0 30px 60px -14px oklch(0.1 0.06 225 / 0.7), inset -12px -12px 30px oklch(0.1 0.05 230 / 0.5), inset 8px 8px 20px oklch(0.9 0.06 200 / 0.35);
  display: flex; align-items: center; justify-content: center;
  animation: badgeIn 600ms cubic-bezier(0.16,1,0.3,1) both;
  transform-style: preserve-3d;
}
.t-orb svg { width: 34px; height: 34px; }
@keyframes badgeIn { from { opacity: 0; transform: scale(0.6) rotateY(-25deg); } to { opacity: 1; transform: scale(1) rotateY(0deg); } }
@keyframes tRing { 0% { transform: scale(0.85); opacity: 0.7; } 100% { transform: scale(1.5); opacity: 0; } }
.t-texto { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 19px; color: oklch(0.85 0.03 220); text-align: center; min-height: 28px; }
.t-texto.saindo { animation: textOut 260ms cubic-bezier(0.4,0,1,1) both; }
.t-texto.entrando { animation: textIn 420ms cubic-bezier(0.16,1,0.3,1) both; }
@keyframes textOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes textIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.t-proximo { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 26px; color: white; }

@media (prefers-reduced-motion: reduce) {
  .opcao, .pergunta, .tema-chip, .t-orb, .t-ring, .t-texto, .bg-icon-chip { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- resultado ---------- */
.resultado-tela { flex: 1; display: flex; align-items: center; justify-content: center; padding: 28px 22px; position: relative; z-index: 1; }
.resultado-titulo { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 22px; margin: 0 0 14px; text-align: center; color: oklch(0.15 0.02 80); }
.resultado-hero { display: flex; align-items: baseline; justify-content: center; gap: 5px; margin: 6px 0 22px; }
.resultado-hero-num { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 60px; line-height: 1; color: oklch(0.55 0.13 220); }
.resultado-hero-sub { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 19px; color: oklch(0.62 0.02 80); }
.resultado-resumo { font-size: 14.5px; line-height: 1.62; color: oklch(0.4 0.02 80); text-align: center; margin: 0 0 30px; }

.resultado-lista { display: flex; flex-direction: column; }
.resultado-linha { display: flex; align-items: center; gap: 14px; padding: 16px 2px; border-top: 1px solid oklch(0.93 0.006 80); }
.resultado-linha:first-child { border-top: none; padding-top: 0; }
.resultado-linha-icone { width: 32px; height: 32px; border-radius: 9px; background: oklch(0.96 0.008 80); display: flex; align-items: center; justify-content: center; padding: 6px; flex-shrink: 0; }
.resultado-linha-icone svg { width: 100%; height: 100%; }
.resultado-linha-texto { flex: 1; font-size: 13.5px; font-weight: 600; color: oklch(0.25 0.02 80); }
.resultado-linha-nota { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 16px; color: oklch(0.16 0.02 80); }
.resultado-tag { font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 100px; white-space: nowrap; }
.resultado-tag.bom { color: oklch(0.4 0.13 150); background: oklch(0.93 0.05 150); }
.resultado-tag.medio { color: oklch(0.46 0.14 70); background: oklch(0.94 0.07 70); }
.resultado-tag.ruim { color: oklch(0.45 0.17 25); background: oklch(0.94 0.06 25); }
