/* ==========================================================================
   BASE — sistema visual compartilhado (Checkup Empresarial · Analise de Perfil · ...)
   NAO colocar cor literal aqui. Cor sai toda do tema.css do produto.
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font-lato);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
}
.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 16px 10px;
}
.tela {
  display: none;
}
.tela.ativa {
  display: block;
  animation: fade 0.4s ease;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ===== HEADER ===== */
.topo {
  text-align: center;
  padding: 18px 0 10px;
}
.topo img {
  height: 74px;
}
.topo h1 {
  font-family: var(--font-bebas);
  font-size: 34px;
  letter-spacing: 2px;
  margin-top: 14px;
}
.topo h1 span {
  color: var(--accent-light);
}
.topo p {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin-top: 6px;
}

/* ===== CARD ===== */
.card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px 26px;
  margin-top: 22px;
}
.card h2 {
  font-family: var(--font-oswald);
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 8px;
}
.card .sub {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 22px;
}

/* ===== CODIGO DE ACESSO ===== */
.codigo-box {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 10px 0 6px;
}
.codigo-box input {
  width: 46px;
  height: 58px;
  text-align: center;
  font-size: 26px;
  font-family: var(--font-oswald);
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
}
.codigo-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}
.erro {
  color: var(--red);
  font-size: 13.5px;
  text-align: center;
  min-height: 20px;
  margin-top: 10px;
}

/* ===== BOTOES ===== */
.btn {
  display: block;
  width: 100%;
  padding: 15px;
  margin-top: 14px;
  font-family: var(--font-oswald);
  font-size: 17px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.25s;
}
.btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 18px var(--accent-glow);
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}
.rodape-nota {
  text-align: center;
  color: var(--text-muted);
  font-size: 12.5px;
  margin-top: 18px;
}

/* ===== PROGRESSO ===== */
.progresso {
  position: sticky;
  top: 0;
  background: var(--bg-deep);
  padding: 14px 0 10px;
  z-index: 5;
}
.prog-info {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 7px;
}
.prog-info b {
  color: var(--accent-light);
  font-family: var(--font-oswald);
  letter-spacing: 0.5px;
}
.prog-barra {
  height: 7px;
  background: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
}
.prog-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 4px;
  transition: width 0.35s ease;
}

/* ===== CHIP / TAG ===== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-oswald);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-light);
  background: var(--accent-muted);
  border: 1px solid var(--border-accent);
  padding: 6px 14px;
  border-radius: 20px;
  margin: 18px 0 12px;
}

/* chip que abre as regras — nasce sempre fechado a cada pergunta */
.chip-acordeon {
  margin: 0 0 9px;
  cursor: pointer;
  font-family: var(--font-oswald);
}
.chip-acordeon .sep {
  opacity: 0.5;
}
.chip-acordeon .seta {
  margin-left: 3px;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.25s;
}
.chip-acordeon[aria-expanded='true'] .seta {
  transform: rotate(180deg);
}
.acordeon {
  display: none;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  margin-bottom: 11px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.acordeon.aberto {
  display: block;
  animation: fade 0.25s ease;
}
.acordeon p + p {
  margin-top: 9px;
}
.acordeon b {
  color: var(--text-primary);
}

/* ===== PERGUNTA E OPCOES ===== */
.perg-num {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 6px;
}
.perg-texto {
  font-family: var(--font-oswald);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.45;
  margin-bottom: 20px;
}
.opcoes.modo-texto {
  display: block;
}
.opcoes.modo-img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.opcao {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-family: var(--font-lato);
  font-size: 15.5px;
  cursor: pointer;
  transition: 0.2s;
}
.opcao:hover {
  border-color: var(--accent);
  background: var(--bg-surface);
}
.opcao.sel {
  border-color: var(--accent);
  background: var(--accent-muted);
  box-shadow: 0 0 0 1px var(--accent);
}
.opcao .letra {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-oswald);
  font-size: 14px;
  color: var(--accent-light);
  border: 1px solid var(--border-accent);
  border-radius: 50%;
}
/* modo imagem: card de altura constante — imagem 4:3 + legenda travada em 4 linhas */
.opcoes.modo-img .opcao {
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 0;
  padding: 10px;
  text-align: center;
  gap: 3px;
}
/* teto por imagem: 2 fileiras + legenda + chip + pergunta cabem em ~95% da tela.
   24vh porque em tela de 640px o 26vh estourava por 10px. */
.opcoes.modo-img .opcao img {
  width: 100%;
  aspect-ratio: 4/3;
  max-height: 24vh;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-surface);
}
.opcoes.modo-img .opcao .txt {
  font-size: 12.5px;
  line-height: 1.35;
  min-height: calc(4 * 1.35em);
  display: flex;
  align-items: center;
  justify-content: center;
}
.opcoes.modo-img .letra {
  display: none;
}
.travado {
  pointer-events: none;
  opacity: 0.55;
}

/* ===== VIDEO / IMERSAO ===== */
.video-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13.5px;
  text-align: center;
  padding: 20px;
}
.video-slot iframe,
.video-slot video {
  width: 100%;
  height: 100%;
  border: 0;
}
.destaque {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 22px;
  margin-top: 24px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.destaque b {
  color: var(--text-primary);
}

/* ===== CTA WHATSAPP ===== */
.cta-zap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  margin-top: 18px;
  padding: 16px;
  font-family: var(--font-oswald);
  font-size: 17px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #1da851, #25d366);
  border-radius: 8px;
  transition: 0.25s;
}
.cta-zap:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
}

footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 2px;
  line-height: 1.7;
}

/* ===== MOBILE ===== */
@media (max-width: 480px) {
  .wrap {
    padding: 14px 12px 10px;
  }
  .topo {
    padding: 8px 0 4px;
  }
  .topo img {
    height: 52px;
  }
  .topo h1 {
    font-size: 23px;
    letter-spacing: 1.2px;
    margin-top: 10px;
  }
  .topo p {
    font-size: 12.5px;
  }
  .card {
    padding: 20px 16px;
    margin-top: 14px;
  }
  .card h2 {
    font-size: 17px;
  }
  .card .sub {
    font-size: 12.5px;
    margin-bottom: 16px;
  }
  .codigo-box {
    gap: 6px;
  }
  .codigo-box input {
    width: 38px;
    height: 48px;
    font-size: 20px;
  }
  .btn {
    padding: 12px;
    font-size: 15px;
  }
  .rodape-nota {
    font-size: 11px;
  }
  .chip {
    font-size: 11.5px;
    padding: 5px 11px;
    margin: 12px 0 8px;
  }
  .perg-num {
    font-size: 11.5px;
  }
  .perg-texto {
    font-size: 16.5px;
    margin-bottom: 14px;
  }
  .opcao {
    padding: 12px;
    font-size: 14px;
    margin-bottom: 8px;
    gap: 10px;
  }
  .opcao .letra {
    width: 26px;
    height: 26px;
    font-size: 12.5px;
  }
  .opcoes.modo-img {
    gap: 8px;
  }
  .destaque {
    padding: 16px;
    font-size: 14px;
    margin-top: 16px;
  }
  .cta-zap {
    padding: 13px;
    font-size: 15px;
  }
  footer {
    font-size: 11px;
    margin-top: 2px;
  }
}

/* ===== CAMPOS (e-mail, nome, telefone) ===== */
.campo {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 14px 16px;
  font-family: var(--font-lato);
  font-size: 16px;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
}
.campo:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}
.btn-link {
  display: block;
  margin: 16px auto 0;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-lato);
  font-size: 13.5px;
  text-decoration: underline;
  cursor: pointer;
}
.btn-link:hover { color: var(--accent-light); }

/* ===== BLOCO DO NOME (acordeao: abre quando o telefone e validado) ===== */
.bloco-nome {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease;
}
.bloco-nome.aberto {
  max-height: 90px;
  opacity: 1;
}

/* ===== LOGO NO TOPO ===== */
.topo-logo {
  display: block;
  width: 84px;
  height: 84px;
  margin: 0 auto 10px;
}

/* ===== ENTRADA PELO GOOGLE ===== */
.bloco-google #botaoGoogle {
  display: flex;
  justify-content: center;
  margin: 6px 0 4px;
}
.separador {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 6px;
  color: var(--text-muted);
  font-size: 13px;
}
.separador::before,
.separador::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ===== VIDEO DE ABERTURA VERTICAL (Short do YouTube, 9:16) ===== */
.video-slot.vertical {
  aspect-ratio: 9/16;
  max-width: 300px;
  margin: 0 auto;
  padding: 0;
}
.video-slot.vertical iframe {
  position: absolute;
  inset: 0;
}
