/* ============================================================
   Nux — Diagnóstico de Gestão (quiz)
   Herda as variáveis de ../css/style.css (paleta, botões, container).
   ============================================================ */

.diag { padding: 40px 0 80px; min-height: calc(100vh - 72px); background: var(--platinum); }
.diag__container { max-width: 720px; }

/* botão maior pros CTAs principais do quiz */
.btn--grande { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Telas (uma visível por vez) ---------- */
.tela { display: none; }
.tela--ativa, .tela.ativa { display: block; animation: surgir 0.35s ease; }

@keyframes surgir {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Card base ---------- */
.diag-card {
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--sombra);
}
.diag-card--escuro {
  background: var(--petroleo);
  color: var(--platinum);
  border-color: transparent;
  box-shadow: var(--sombra-forte);
}
.diag-card--escuro .eyebrow { color: var(--aqua); }

/* ---------- Intro ---------- */
.diag__titulo {
  font-size: clamp(1.7rem, 4.4vw, 2.5rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -0.5px;
  margin: 6px 0 16px;
}
.diag__sub { font-size: 1.1rem; color: var(--texto-suave); margin-bottom: 24px; }
.diag-card--escuro .diag__sub { color: #b9c7cb; }

.diag__bullets { list-style: none; margin: 0 0 30px; display: grid; gap: 10px; }
.diag__bullets li { padding-left: 28px; position: relative; font-weight: 600; }
.diag__bullets li::before {
  content: '✓'; position: absolute; left: 0; top: -1px;
  color: var(--teal); font-weight: 900;
}
.diag__nota { font-size: 0.9rem; color: var(--texto-suave); margin-top: 16px; }

/* ---------- Progresso ---------- */
.progresso { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.progresso__trilho {
  flex: 1; height: 8px; background: var(--platinum);
  border-radius: 999px; overflow: hidden;
}
.progresso__trilho span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--teal), var(--aqua));
  border-radius: 999px; transition: width 0.3s ease;
}
.progresso__num { font-size: 0.84rem; font-weight: 700; color: var(--texto-suave); white-space: nowrap; }

/* ---------- Pergunta + opções ---------- */
.pergunta {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 800; line-height: 1.2; margin-bottom: 24px;
}
.opcoes { display: grid; gap: 12px; }
.opcao {
  text-align: left; width: 100%;
  background: var(--branco); border: 2px solid var(--linha);
  border-radius: 12px; padding: 16px 18px;
  font: inherit; font-weight: 600; color: var(--texto);
  cursor: pointer;
  transition: border-color var(--transicao), background var(--transicao), transform var(--transicao);
}
.opcao:hover { border-color: var(--teal); transform: translateX(3px); }
.opcao--ativa { border-color: var(--aqua); background: #eafcff; }

.diag__voltar {
  margin-top: 24px; background: none; border: 0;
  color: var(--texto-suave); font: inherit; font-weight: 700; cursor: pointer;
}
.diag__voltar:hover:not(:disabled) { color: var(--petroleo); }
.diag__voltar:disabled { opacity: 0.35; cursor: default; }

/* ---------- Resultado ---------- */
.res__topo { display: flex; align-items: center; gap: 28px; margin: 18px 0 28px; }

.res__anel {
  --pct: 0;
  flex: 0 0 130px; width: 130px; height: 130px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(closest-side, var(--petroleo) 76%, transparent 77% 100%),
    conic-gradient(var(--aqua) calc(var(--pct) * 1%), rgba(255,255,255,0.14) 0);
}
.res__anel-centro { text-align: center; line-height: 1; }
.res__anel-centro strong { font-size: 2.4rem; font-weight: 900; color: #fff; }
.res__anel-centro small { display: block; font-size: 0.85rem; color: #9fd9e6; margin-top: 2px; }

.res__rotulo { font-size: 0.95rem; color: #9fd9e6; margin-bottom: 2px; }
.res__nivel { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 900; color: #fff; line-height: 1.1; }
.res__resumo { color: #b9c7cb; margin-top: 8px; }

.res__insights { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; }
.res__insights h3 { font-size: 1.05rem; color: var(--aqua); margin-bottom: 14px; letter-spacing: 0.3px; }
.res__insights ul { list-style: none; display: grid; gap: 12px; }
.res__insights li {
  padding-left: 26px; position: relative; color: var(--platinum); line-height: 1.45;
}
.res__insights li::before { content: '→'; position: absolute; left: 0; color: var(--aqua); font-weight: 800; }

/* ---------- Captura ---------- */
.res__captura {
  margin-top: 30px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 28px;
}
.res__captura h3 { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.res__captura > p { color: #b9c7cb; margin-bottom: 20px; }

.campo { margin-bottom: 16px; }
.campo label { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; color: var(--platinum); }
.campo .opcional { font-weight: 500; color: #8aa0a6; }
.campo input {
  width: 100%; font: inherit;
  padding: 13px 15px; border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06);
  color: #fff; transition: border-color var(--transicao);
}
.campo input::placeholder { color: #6f868c; }
.campo input:focus { outline: none; border-color: var(--aqua); }

/* honeypot — fora da tela, invisível pra humanos */
.hpot-wrap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consentimento {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.92rem; color: #b9c7cb; margin: 6px 0 18px; cursor: pointer;
}
.consentimento input { margin-top: 3px; accent-color: var(--aqua); flex: 0 0 auto; }

.form-erro { color: #ff9a9a; font-size: 0.9rem; font-weight: 600; min-height: 1.2em; margin-bottom: 10px; }
.res__captura .btn--grande { width: 100%; justify-content: center; }

/* ---------- Obrigado / CTA do trilho ---------- */
.cta-trilha p { font-size: 1.1rem; color: var(--texto-suave); margin-bottom: 22px; max-width: 56ch; }
.cta-trilha__botoes { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Footer curto ---------- */
.rodape--curto { padding: 28px 0; }
.rodape--curto .rodape__base { border-top: 0; padding-top: 0; }

/* ---------- Responsivo ---------- */
@media (max-width: 600px) {
  .diag-card { padding: 26px 20px; }
  .res__topo { flex-direction: column; text-align: center; gap: 18px; }
  .res__captura { padding: 22px 18px; }
  .cta-trilha__botoes .btn { width: 100%; justify-content: center; }
}
