/* Triagem do Mapa de Coerência — sempre no tema Sala escura, uma pergunta por tela */

.pagina-triagem { min-height: 100vh; min-height: 100svh; overflow-x: hidden; }

/* a sala ao fundo, bem escurecida: a pessoa continua "dentro do filme" */
.triagem-fundo { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: .32; filter: blur(2px); transform: scale(1.04); }
.triagem-veu { position: fixed; inset: 0; background: radial-gradient(ellipse at 30% 40%, rgba(15,14,12,.55), #0f0e0c 75%); }

.triagem-topo {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px clamp(24px, 4vw, 48px);
}
.triagem-topo .marca { width: 57px; }
.triagem-topo .logo { opacity: 1; }
.triagem-contador {
  font-family: var(--display);
  font-weight: 300;
  font-size: 18px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.triagem-contador #passo-atual { color: var(--gold); }

/* barra de progresso: o mesmo fio dourado da jornada, deitado */
.triagem-progresso { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--hairline); z-index: 6; }
.triagem-progresso-luz { height: 100%; width: 0; background: var(--gold-fill); box-shadow: 0 0 10px rgba(200,144,46,.5); transition: width .8s cubic-bezier(.2,.7,.2,1); }

.triagem {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  width: min(720px, 100% - 48px);
  margin: 0 auto;
  padding: 112px 0 64px;
}
.triagem form { width: 100%; }

.etapa-form { display: none; }
.etapa-form.ativa { display: block; animation: cena .8s cubic-bezier(.2,.7,.2,1); }
@keyframes cena { from { opacity: 0; transform: translateY(18px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }

.etapa-form .rotulo { color: var(--gold); margin-bottom: var(--space-4); }
.etapa-form .display { font-size: clamp(30px, 4vw, 46px); margin-bottom: var(--space-6); max-width: 18ch; }
.etapa-form .corpo { color: #c9bfb1; margin-bottom: var(--space-8); }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.pergunta {
  display: block;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: var(--space-8);
  padding: 0;
  max-width: 22ch;
}
.dica { margin: calc(var(--space-8) * -1 + 10px) 0 var(--space-6); color: var(--ink-muted); font-size: 14px; }

/* campo de texto: só uma linha, como escrever num papel */
.campo {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 30px);
  padding: 8px 0 12px;
  outline: none;
  border-radius: 0;
  transition: border-color .3s;
}
.campo::placeholder { color: #5b544b; }
.campo:focus { border-bottom-color: var(--gold); }
.campo.invalido { border-bottom-color: #ef8d6a; }

/* opções: linhas finas, a escolhida acende */
.opcoes { display: grid; gap: 8px; }
.opcoes-curtas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opcao {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: rgba(26, 24, 21, .6);
  cursor: pointer;
  font-size: 15px;
  line-height: 22px;
  color: #d9d1c5;
  transition: border-color .25s, background-color .25s, color .25s;
}
.opcao:hover { border-color: #5b544b; }
.opcao input { position: absolute; opacity: 0; pointer-events: none; }
.opcao span { display: flex; align-items: flex-start; gap: 12px; }
.opcao span::before {
  content: "";
  display: block;
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border: 1px solid #6b635a;
  border-radius: 50%;
  transition: background-color .25s, border-color .25s, box-shadow .25s;
}
.opcao input[type="checkbox"] + span::before { border-radius: var(--radius-sm); }
.opcao input:checked + span { color: var(--ink); }
.opcao input:checked + span::before { background: var(--gold-fill); border-color: var(--gold-fill); box-shadow: 0 0 0 4px rgba(200,144,46,.18); }
.opcao:has(input:checked) { border-color: var(--gold-fill); background: rgba(58, 44, 20, .55); }
.opcao:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.opcao.bloqueada { opacity: .4; cursor: not-allowed; }

.consentimento { margin-top: var(--space-6); font-size: 12px; line-height: 18px; color: var(--ink-muted); max-width: 52ch; }
.erro { min-height: 22px; margin-top: 10px; font-size: 14px; color: #ef8d6a; }

.acoes { display: flex; align-items: center; gap: var(--space-6); margin-top: var(--space-6); }
.voltar {
  background: none;
  border: 0;
  padding: 8px 0;
  font: 500 13px var(--sans);
  letter-spacing: .03em;
  color: var(--ink-muted);
  cursor: pointer;
}
.voltar:hover { color: var(--ink); }
button.botao { border: 0; cursor: pointer; font-family: var(--sans); }
.botao[disabled] { opacity: .6; cursor: wait; }

@media (max-width: 720px) {
  .triagem { padding: 96px 0 48px; align-items: flex-start; }
  .opcoes-curtas { grid-template-columns: 1fr; }
  .triagem-topo { padding: 10px 24px; }
  .triagem-topo .marca, .triagem-topo .logo { height: 36px; }
  .triagem-topo .marca { width: 47px; }
  .acoes { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .etapa-form.ativa { animation: none; }
}

/* ---------- Dados de contato (uma tela só, antes do resultado) ---------- */
.dados { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.dado { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dado > span { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.dado .campo { font-size: 20px; padding: 6px 0 10px; }
.dado-largo { grid-column: 1 / -1; }
.dado .campo::placeholder { font-size: 16px; }

/* ---------- Resultado ---------- */
[data-final] .display { max-width: 22ch; font-size: clamp(28px, 3.6vw, 44px); }
.resultado-proximo {
  margin: var(--space-8) 0 var(--space-6);
  padding: 20px 22px;
  border: 1px solid var(--hairline);
  border-left: 0;
  border-right: 0;
  color: #c9bfb1;
  font-size: 15px;
  line-height: 24px;
  max-width: 60ch;
}
.resultado-proximo .rotulo { margin-bottom: 8px; }
.resultado-proximo strong { color: var(--ink); font-weight: 600; }

@media (max-width: 720px) {
  .dados { grid-template-columns: 1fr; gap: 18px; }
}

.consentimento a { color: var(--gold); }

/* ---------- Tela de contexto (2 grupos) ---------- */
.subpergunta { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 10px; }
.opcoes + .subpergunta { margin-top: 26px; }
[data-etapa="1"] .pergunta { margin-bottom: var(--space-6); }
[data-etapa="1"] .opcoes-curtas { grid-template-columns: repeat(4, minmax(0, 1fr)); }
[data-etapa="1"] .opcao { padding: 11px 12px; font-size: 14px; }

/* ---------- Índice de Coerência ---------- */
.indice { margin: var(--space-8) 0 var(--space-6); max-width: 560px; }
.indice-topo { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.indice-topo .rotulo { margin: 0; }
.indice-numero { font-family: var(--display); font-weight: 300; font-size: 40px; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.indice-numero small { font-size: 16px; color: var(--ink-muted); margin-left: 2px; }
.indice-barra { height: 3px; background: var(--hairline); border-radius: 2px; overflow: hidden; }
.indice-luz { height: 100%; width: 0; background: var(--gold-fill); box-shadow: 0 0 10px rgba(200,144,46,.5); transition: width 1.4s cubic-bezier(.2,.7,.2,1) .3s; }
.indice-faixa { margin-top: 12px; font-size: 14px; line-height: 22px; color: #c9bfb1; }

/* ---------- Complementos ---------- */
.complementos { list-style: none; max-width: 60ch; margin: 0 0 var(--space-4); }
.complementos li { position: relative; padding: 12px 0 12px 22px; border-top: 1px solid var(--hairline); color: #d9d1c5; font-size: 15px; line-height: 24px; }
.complementos li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-fill); }
.resultado-proximo + .botao, #proximo-texto + .botao { margin-top: 16px; }

@media (max-width: 720px) {
  [data-etapa="1"] .opcoes-curtas { grid-template-columns: 1fr 1fr; }
  .indice-numero { font-size: 34px; }
}

/* ======================= RESULTADO COMPLETO ======================= */
[data-final] { --verde: #8fc08a; --ambar: #e0b25c; --vermelho: #ef8d6a; }
[data-final] .display { max-width: 24ch; }
.painel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; margin: 36px 0 28px; }
.medidor, .radar-bloco, .mesa {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: rgba(26, 24, 21, .55);
  padding: 22px 22px 20px;
  min-width: 0;
}
.medidor .rotulo, .radar-bloco .rotulo, .mesa .rotulo { margin: 0 0 12px; color: var(--ink-muted); }

/* 1. medidor semicircular */
.medidor-svg { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto; overflow: visible; }
.medidor-trilho { fill: none; stroke: #2c2823; stroke-width: 14; stroke-linecap: round; }
.medidor-saudavel { fill: none; stroke: rgba(143, 192, 138, .22); stroke-width: 14; }
.medidor-valor { fill: none; stroke: #c8902e; stroke-width: 14; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(200,144,46,.45)); }
.medidor-marca { stroke: var(--verde); stroke-width: 1.5; stroke-dasharray: 3 3; }
.medidor-marca-txt, .medidor-limite { font: 600 10px var(--sans); fill: var(--ink-muted); letter-spacing: .06em; }
.medidor-marca-txt { fill: var(--verde); }
.ponteiro { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.ponteiro-centro { fill: var(--ink); }
.medidor-numero { text-align: center; font-family: var(--display); font-weight: 300; font-size: 52px; line-height: 1; color: #c8902e; margin-top: -6px; font-variant-numeric: tabular-nums; }
.medidor-numero small { font-size: 18px; color: var(--ink-muted); margin-left: 2px; }
.medidor .indice-faixa { text-align: center; margin-top: 12px; }
/* centraliza o medidor na altura do cartão (o cartão ao lado é mais alto) */
.medidor { display: flex; flex-direction: column; }
.medidor .medidor-svg { margin-top: auto; }
.medidor .indice-faixa { margin-bottom: auto; }

/* 2. radar */
.radar-svg { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto 8px; overflow: visible; }
.radar-grade { fill: none; stroke: #2c2823; stroke-width: 1; }
.radar-eixo { stroke: #2c2823; stroke-width: 1; }
.radar-ideal { fill: none; stroke: #6b635a; stroke-width: 1.2; stroke-dasharray: 4 4; }
.radar-forma { fill: rgba(200, 144, 46, .28); stroke: #c8902e; stroke-width: 2; stroke-linejoin: round; }
.radar-ponto { fill: #c8902e; }
.radar-rotulo { font: 500 11px var(--sans); fill: #c9bfb1; }

/* 3. barras */
.barras { list-style: none; display: grid; gap: 12px; margin-top: 6px; }
.barras li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.barra-nome { font-size: 13px; color: #d9d1c5; }
.barra-num { font-family: var(--display); font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.barra-trilho { grid-column: 1 / -1; height: 4px; background: #2c2823; border-radius: 2px; overflow: hidden; }
.barra-luz { display: block; height: 100%; width: 0; border-radius: 2px; }
.barra-luz.verde, .ponto-cor.verde { background: var(--verde); }
.barra-luz.ambar, .ponto-cor.ambar { background: var(--ambar); }
.barra-luz.vermelho, .ponto-cor.vermelho { background: var(--vermelho); }
.barras-legenda { margin-top: 14px; font-size: 11px; color: var(--ink-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.ponto-cor { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 6px; }
.ponto-cor:first-child { margin-left: 0; }

/* 4. valor deixado na mesa */
.mesa { margin-bottom: 28px; }
.mesa-valor { font-family: var(--display); font-weight: 300; font-size: clamp(32px, 5vw, 54px); line-height: 1.05; color: #c8902e; font-variant-numeric: tabular-nums; }
.mesa-valor small { font-family: var(--sans); font-size: 15px; color: var(--ink-muted); }
.mesa-conta { margin-top: 10px; font-size: 12px; line-height: 19px; color: var(--ink-muted); max-width: 62ch; }

/* 5. complementos com ícones */
.complementos li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; }
.complementos li::before { display: none; }
.icone-comp { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: #c8902e; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* argumento + solução */
.argumento, .solucao { margin-top: 44px; max-width: 64ch; }
.argumento .rotulo, .solucao .rotulo { color: var(--gold); margin-bottom: 12px; }
.argumento .corpo, .solucao .corpo { margin-bottom: 18px; }
.frase-forte, .pergunta-forte { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; color: var(--ink); margin: 6px 0 18px; }
.cta-final { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.botao-grande { font-size: 15px; padding: 17px 30px; }
.cta-detalhe { font-size: 12px; letter-spacing: .06em; color: var(--ink-muted); }
.cta-alternativa { font-size: 14px; color: var(--ink-muted); }
.link-botao { background: none; border: 0; padding: 0; font: inherit; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cta-confirmacao { font-size: 14px; color: var(--verde); }
.aviso-email { margin-top: 32px; padding: 18px 20px; border: 1px solid var(--hairline); border-radius: var(--radius-md); }

@media (max-width: 760px) {
  .painel { grid-template-columns: 1fr; gap: 18px; }
  .medidor, .radar-bloco, .mesa { padding: 18px 16px; }
  .radar-rotulo { font-size: 12px; }
  .botao-grande { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .medidor-valor, .radar-forma, .barra-luz { transition: none; }
}
