/* Anamnese de Comunicação · VozUP
   Tema escuro fixo (a página é mostrada ao cliente na tela do consultor);
   na impressão os tokens viram claros. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-variable-latin.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/poppins-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/poppins-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/poppins-800-latin.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-2: #101a2c;
  --surface: #141f33;
  --surface-2: #1b2841;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f4f6fa;
  --text-2: #b6c0d1;
  --text-3: #7f8ba0;
  --accent: #00e0ca;          /* turquesa VozUP */
  --accent-2: #3fb8cc;
  --accent-ink: #062a2a;
  --accent-soft: rgba(0, 224, 202, 0.16);
  --accent-zone: rgba(0, 224, 202, 0.28); /* zona de evolução: passo mais claro da mesma cor */
  --ref: #7f8ba0;             /* série de referência (média) */
  --grid: rgba(255, 255, 255, 0.10);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  --radius: 20px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(0, 224, 202, 0.14), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(63, 184, 204, 0.12), transparent 60%),
              var(--bg);
  display: flex;
  flex-direction: column;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button { font: inherit; }

.topo {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.logo { height: 34px; width: auto; }
.logo--claro { display: none; }
.topo__titulo { font-size: 14px; color: var(--text-3); letter-spacing: 0.04em; text-transform: uppercase; }

.app { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 32px 16px 56px; }
.rodape { padding: 16px 24px; text-align: center; font-size: 13px; color: var(--text-3); border-top: 1px solid var(--border); }

.tela { animation: entrar 0.35s ease both; }
@keyframes entrar { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- Início --------------------------------------------------------- */
.tela--inicio { max-width: 640px; margin: 8vh auto 0; text-align: center; }
.chapeu { color: var(--accent); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; margin-bottom: 14px; }
.tela--inicio h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 16px; }
.lead { color: var(--text-2); font-size: 18px; max-width: 560px; margin: 0 auto; }
.pilares-lista { list-style: none; padding: 0; margin: 28px auto 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pilares-lista li { padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; color: var(--text-2); background: rgba(255,255,255,0.03); }
.mini { margin-top: 16px; font-size: 14px; color: var(--text-3); }

/* ---- Botões ---------------------------------------------------------- */
.btn {
  border: 1px solid transparent; border-radius: 14px; padding: 14px 26px; cursor: pointer;
  font-weight: 600; font-size: 17px; transition: transform 0.12s ease, background 0.2s ease, opacity 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn--primario { background: var(--accent); color: var(--accent-ink); }
.btn--primario:hover { background: #1af0da; }
.btn--primario:disabled { opacity: 0.45; cursor: default; }
.btn--fantasma { background: transparent; color: var(--text-2); border-color: var(--border); }
.btn--fantasma:hover { background: rgba(255,255,255,0.05); }
.btn--fantasma:disabled { opacity: 0.3; cursor: default; }

/* ---- Perguntas -------------------------------------------------------- */
.tela--perguntas { max-width: 720px; margin: 0 auto; }
.progresso { height: 4px; background: var(--grid); border-radius: 999px; overflow: hidden; margin-bottom: 40px; }
.progresso__barra { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width 0.35s ease; }
.pergunta { min-height: 300px; }
.pergunta__secao { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.pergunta__texto { font-size: clamp(22px, 3.4vw, 30px); margin-bottom: 28px; font-weight: 600; }
.pergunta__erro { color: #ffb4a8; font-size: 14px; margin-top: 12px; }

.opcoes { display: grid; gap: 10px; }
.opcao {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 15px 18px; border-radius: 14px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.opcao:hover { border-color: rgba(0, 224, 202, 0.5); background: var(--surface-2); }
.opcao[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.opcao__tecla {
  flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: var(--text-3); border: 1px solid var(--border);
}
.opcao[aria-pressed="true"] .opcao__tecla { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

.likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.likert .opcao { flex-direction: column; align-items: center; text-align: center; padding: 16px 8px 12px; gap: 8px; }
.likert .opcao__tecla { width: 36px; height: 36px; font-size: 16px; border-radius: 999px; }
.likert .opcao__rotulo { font-size: 13px; color: var(--text-2); line-height: 1.25; }
.likert .opcao[aria-pressed="true"] .opcao__rotulo { color: var(--text); }
.likert__extremos { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--text-3); }

.nota { display: grid; grid-template-columns: repeat(11, 1fr); gap: 6px; }
.nota .opcao { justify-content: center; padding: 14px 0; font-weight: 600; }
.nota .opcao__tecla { display: none; }

.campo {
  width: 100%; padding: 16px 18px; border-radius: 14px; font: inherit; font-size: 20px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); outline: none;
}
.campo:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.campo::placeholder { color: var(--text-3); }
textarea.campo { min-height: 120px; resize: vertical; font-size: 18px; }

.navegacao { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.navegacao__contador { font-size: 14px; color: var(--text-3); }

/* ---- Espera ----------------------------------------------------------- */
.tela--espera { text-align: center; margin-top: 14vh; }
.espera__anel {
  width: 72px; height: 72px; margin: 0 auto 28px; border-radius: 50%;
  border: 4px solid var(--grid); border-top-color: var(--accent); animation: girar 0.9s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }
.tela--espera h2 { font-size: 28px; margin-bottom: 10px; }

/* ---- Resultado -------------------------------------------------------- */
.tela--resultado { display: grid; gap: 20px; }
.cartao { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.cartao h3 { font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; font-weight: 600; }

.hero { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.hero__chapeu { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.hero__perfil { font-size: clamp(26px, 4vw, 38px); margin-bottom: 6px; }
.hero__frase { color: var(--text-2); margin-bottom: 18px; }
.hero__manchete { font-size: clamp(18px, 2.6vw, 22px); font-weight: 600; line-height: 1.35; margin-bottom: 14px; }
.hero__resumo { color: var(--text-2); }

.anel { position: relative; width: 190px; height: 190px; margin: 0 auto; }
.anel svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anel__trilha { fill: none; stroke: var(--grid); stroke-width: 10; }
.anel__valor { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1); }
.anel__centro { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.anel__numero { font-family: var(--font); font-weight: 700; font-size: 52px; line-height: 1; }
.anel__legenda { font-size: 12px; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }
.anel__frente { text-align: center; margin-top: 12px; font-size: 14px; color: var(--text-2); }
.anel__frente strong { color: var(--text); }

.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.radar { width: 100%; max-width: 420px; margin: 0 auto; display: block; overflow: visible; }
.radar__grade { fill: none; stroke: var(--grid); stroke-width: 1; }
.radar__eixo { stroke: var(--grid); stroke-width: 1; }
.radar__ref { fill: none; stroke: var(--ref); stroke-width: 2; stroke-linejoin: round; }
.radar__voce { fill: var(--accent); fill-opacity: 0.12; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.radar__ponto { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.radar__rotulo { font-size: 12.5px; fill: var(--text-2); font-weight: 600; }
.radar__valor { font-size: 11px; fill: var(--text-3); }
.legenda { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 14px; font-size: 13px; color: var(--text-2); }
.legenda__item { display: inline-flex; align-items: center; gap: 8px; }
.legenda__cor { width: 14px; height: 4px; border-radius: 2px; background: var(--accent); }
.legenda__cor--ref { background: var(--ref); }
.legenda__cor--zona { background: var(--accent-zone); height: 8px; }

.pilar { display: grid; grid-template-columns: 150px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.pilar:first-of-type { border-top: 0; }
.pilar__nome { font-weight: 600; font-size: 15px; }
.pilar__sub { font-size: 12px; color: var(--text-3); }
.barra { position: relative; height: 22px; }
.barra__trilha { position: absolute; inset: 7px 0; background: var(--grid); border-radius: 4px; }
.barra__zona { position: absolute; top: 7px; bottom: 7px; background: var(--accent-zone); border-radius: 0 4px 4px 0; }
.barra__valor { position: absolute; top: 7px; bottom: 7px; left: 0; background: var(--accent); border-radius: 0 4px 4px 0; width: 0; transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.barra__media { position: absolute; top: 2px; bottom: 2px; width: 2px; background: var(--ref); border-radius: 1px; }
.pilar__score { font-weight: 700; font-size: 20px; text-align: right; }
.pilar__pct { font-size: 12px; color: var(--text-3); text-align: right; white-space: nowrap; }

.leituras { display: grid; gap: 14px; }
.leitura { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--border); }
.leitura:first-child { border-top: 0; padding-top: 0; }
.leitura__num { font-family: var(--font); font-weight: 700; font-size: 20px; line-height: 44px; text-align: center; border-radius: 12px; background: var(--surface-2); }
.leitura__titulo { font-weight: 600; margin-bottom: 4px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.leitura__faixa { font-size: 12px; color: var(--text-3); font-weight: 500; }
.leitura__texto { color: var(--text-2); font-size: 15px; }

.destaques { display: grid; gap: 12px; }
.destaque { display: grid; grid-template-columns: 8px 1fr; gap: 14px; }
.destaque__marca { border-radius: 4px; background: var(--accent); }
.destaque--salto .destaque__marca { background: var(--accent-zone); }
.destaque__titulo { font-weight: 600; margin-bottom: 2px; }
.destaque__texto { color: var(--text-2); font-size: 15px; }
.destaque__num { color: var(--text-3); font-size: 13px; margin-left: 6px; }

.fechamento { font-size: 18px; line-height: 1.55; }
.impacto { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 15px; }
.impacto__num { font-family: var(--font); font-weight: 700; font-size: 32px; color: var(--text); }

.acoes { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.nota-rodape { font-size: 12px; color: var(--text-3); text-align: center; }
details.tabela summary { cursor: pointer; color: var(--text-3); font-size: 13px; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--border); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- Responsivo ------------------------------------------------------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .app { padding: 20px 16px 40px; }
  .topo { padding: 14px 16px; }
  .hero, .duas { grid-template-columns: 1fr; }
  .cartao { padding: 20px 16px; }
  .likert { grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .likert .opcao { padding: 12px 4px 10px; }
  .likert .opcao__rotulo { font-size: 11px; }
  .nota { grid-template-columns: repeat(6, 1fr); }
  .pilar { grid-template-columns: 1fr; gap: 6px; }
  .pilar__score, .pilar__pct { text-align: left; }
  .pilar__meta { display: flex; justify-content: space-between; align-items: baseline; }
  .navegacao { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); }
}

@media (prefers-reduced-motion: reduce) {
  .tela, .anel__valor, .barra__valor, .progresso__barra { animation: none; transition: none; }
  .espera__anel { animation-duration: 2s; }
}

/* ---- Impressão: tokens claros ---------------------------------------- */
@media print {
  :root {
    color-scheme: light;
    --bg: #ffffff; --bg-2: #ffffff; --surface: #ffffff; --surface-2: #f1f3f6;
    --border: rgba(0, 0, 0, 0.14); --text: #0f172a; --text-2: #334155; --text-3: #64748b;
    --accent: #0d9488; --accent-ink: #ffffff; --accent-soft: rgba(13, 148, 136, 0.12);
    --accent-zone: rgba(13, 148, 136, 0.28); --ref: #475569; --grid: rgba(0, 0, 0, 0.10); --shadow: none;
  }
  body { background: #fff; font-size: 13px; }
  .topo, .rodape { border-color: var(--border); }
  .acoes, details.tabela, .navegacao { display: none !important; }
  .app { padding: 12px 0; max-width: none; }
  .cartao { padding: 16px; }
  .hero, .duas > .cartao, .pilar, .leitura, .destaque { break-inside: avoid; }
  .logo--escuro { display: none; }
  .logo--claro { display: block; }
  .hero { grid-template-columns: 1fr 190px; }
  .anel__valor, .barra__valor { transition: none; }
}
