/* ============================================================
   QI Lab — Folha de estilos
   Site 100% estático: nenhum recurso externo é carregado.
   ============================================================ */

:root {
  --bg: #eef1f8;
  --surface: #ffffff;
  --ink: #1b2340;
  --ink-soft: #4a5578;
  --ink-faint: #7a86a8;
  --primary: #3b4b8c;
  --primary-dark: #2c3a6e;
  --primary-soft: #e7ebf9;
  --accent: #f0a42a;
  --accent-soft: #fdf0d8;
  --ok: #1e9e6a;
  --ok-soft: #e2f6ec;
  --warn: #c2402e;
  --warn-soft: #fdeae7;
  --line: #dde3f0;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(27, 35, 64, .08);
  --shadow-lg: 0 14px 44px rgba(27, 35, 64, .14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Tamanho de letra ajustável (botões A−/A+ da barra de acessibilidade) */
html { font-size: 100%; }
html[data-fontsize="g"]  { font-size: 122%; }
html[data-fontsize="gg"] { font-size: 145%; }

/* Foco bem visível para navegação por teclado */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container { width: min(1024px, 92%); margin: 0 auto; }

/* Segurança: nada deve estourar horizontalmente no celular */
html, body { overflow-x: hidden; }

/* ---------- Navegação ---------- */
.site-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-nav .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.02em;
}
.brand img { width: 30px; height: 30px; }
.nav-links {
  margin-left: auto;
  display: flex;
  gap: .25rem;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  display: inline-block;
  padding: .45rem .85rem;
  border-radius: 9px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
}
.nav-links a:hover { background: var(--primary-soft); color: var(--primary-dark); }
.nav-links a[aria-current="page"] { background: var(--primary); color: #fff; }

/* ---------- Herói ---------- */
.hero {
  background: linear-gradient(150deg, #232c55 0%, #3b4b8c 60%, #4a5ca8 100%);
  color: #fff;
  padding: 4.2rem 0 4.6rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(240, 164, 42, .35), transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(255, 255, 255, .12), transparent 40%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  padding: .3rem .85rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  max-width: 20ch;
  margin-bottom: 1rem;
}
.hero p { max-width: 56ch; color: #d8def3; font-size: 1.06rem; margin-bottom: 1.8rem; }
.hero .cta-row { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: .8rem 1.6rem;
  border-radius: 11px;
  text-decoration: none;
  transition: transform .08s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #3d2b06; }
.btn-accent:hover { background: #dd951b; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-small { padding: .5rem 1rem; font-size: .88rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Seções e cartões ---------- */
main { flex: 1; }
.section { padding: 3.4rem 0; }
.section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -.02em;
  text-align: center;
  margin-bottom: .6rem;
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 auto 2.4rem;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.2rem; margin-bottom: .6rem; letter-spacing: -.01em; }
.card p { color: var(--ink-soft); font-size: .95rem; }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.card .icon svg { width: 24px; height: 24px; }

.instrument-card {
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.instrument-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.instrument-card .tag {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border-radius: 999px;
  margin-bottom: .9rem;
}
.tag-iq { background: var(--primary-soft); color: var(--primary-dark); }
.tag-ahsd { background: var(--accent-soft); color: #8a5b0d; }
.instrument-card ul {
  list-style: none;
  margin: 1rem 0 1.4rem;
  color: var(--ink-soft);
  font-size: .92rem;
}
.instrument-card ul li { padding-left: 1.4rem; position: relative; margin-bottom: .35rem; }
.instrument-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.instrument-card .btn { margin-top: auto; justify-content: center; }

/* ---------- Fluxo "como funciona" ---------- */
.steps { counter-reset: step; }
.step {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  margin-bottom: .8rem;
}
.step h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.step p { color: var(--ink-soft); font-size: .9rem; }

/* ---------- Aviso de privacidade ---------- */
.privacy-banner {
  background: #18203f;
  color: #dbe2f5;
  border-radius: var(--radius);
  padding: 2.2rem;
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  box-shadow: var(--shadow);
}
.privacy-banner .shield { flex-shrink: 0; width: 52px; height: 52px; }
.privacy-banner h2 { color: #fff; font-size: 1.3rem; margin-bottom: .5rem; }
.privacy-banner p { font-size: .95rem; margin-bottom: .55rem; }
.privacy-banner strong { color: #ffd98a; }
.privacy-banner a { color: #9db4ff; }

/* ---------- Avisos legais ---------- */
.disclaimer {
  background: var(--accent-soft);
  border: 1px solid #f3d9a4;
  border-left: 5px solid var(--accent);
  border-radius: 10px;
  padding: 1rem 1.3rem;
  font-size: .9rem;
  color: #6b4c10;
  margin: 1.5rem 0;
}
.disclaimer strong { color: #50370a; }

/* ---------- Rodapé ---------- */
footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  margin-top: 2rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--ink-faint);
}
footer a { color: var(--ink-soft); }
.version-tag { font-size: .72rem; opacity: .55; }

/* ---------- Barra de acessibilidade ---------- */
.a11y-bar { display: flex; align-items: center; gap: .3rem; margin-left: .8rem; }
.a11y-label { font-size: 1.05rem; }
.a11y-btn {
  min-width: 38px; height: 38px;
  padding: 0 .55rem;
  border-radius: 9px;
  border: 1.5px solid var(--line);
  background: #f4f6fc;
  font-family: inherit;
  font-weight: 800;
  font-size: .95rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.a11y-btn:hover:not(:disabled) { border-color: #b9c4e4; background: var(--primary-soft); }
.a11y-btn:disabled { opacity: .35; cursor: default; }
.a11y-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Botões "Ouvir" (leitura em voz alta) ---------- */
.btn-ouvir {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1.5px solid var(--line);
  background: #f4f6fc;
  border-radius: 999px;
  padding: .4rem 1rem;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
}
.btn-ouvir:hover { border-color: #b9c4e4; background: var(--primary-soft); }
.btn-ouvir.speaking { background: var(--warn-soft); border-color: #f2c6bf; color: var(--warn); }
.btn-ouvir-item {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  padding: .05rem .35rem;
  border-radius: 7px;
  vertical-align: middle;
  line-height: 1;
}
.btn-ouvir-item:hover { background: var(--primary-soft); }
.btn-ouvir-item.speaking { background: var(--warn-soft); }
.q-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; }
.q-head .question-domain { margin-bottom: 0; }
.ouvir-row { margin-top: .4rem; display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- Alto contraste (◐) ---------- */
html[data-contrast="on"] {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #000000;
  --ink-soft: #1c1c1c;
  --ink-faint: #333333;
  --primary: #0d2b8f;
  --primary-dark: #071f6b;
  --primary-soft: #e3e9ff;
  --accent: #ffc400;
  --accent-soft: #fff3c4;
  --line: #666666;
  --shadow: 0 2px 10px rgba(0,0,0,.18);
}
html[data-contrast="on"] .card,
html[data-contrast="on"] .question-card,
html[data-contrast="on"] .report-section,
html[data-contrast="on"] .step,
html[data-contrast="on"] .likert-item { border: 1.5px solid #000; }
html[data-contrast="on"] .option,
html[data-contrast="on"] .likert-scale label,
html[data-contrast="on"] .age-bands label { border-color: #333; }
html[data-contrast="on"] .hero, html[data-contrast="on"] .report-header { background: #0d2b8f; }
html[data-contrast="on"] .hero::after { display: none; }
html[data-contrast="on"] .privacy-banner,
html[data-contrast="on"] .lgpd-reminder { border: 2px solid #000; }

/* Figuras crescem junto com a letra */
html[data-fontsize="g"] .figure-row svg,
html[data-fontsize="g"] .fig-unknown { width: 66px; height: 66px; }
html[data-fontsize="gg"] .figure-row svg,
html[data-fontsize="gg"] .fig-unknown { width: 82px; height: 82px; }
html[data-fontsize="g"] .options.figures .option svg { width: 72px; height: 72px; }
html[data-fontsize="gg"] .options.figures .option svg { width: 88px; height: 88px; }
html[data-fontsize="g"] .review .rev-body .figs svg { width: 52px; height: 52px; }
html[data-fontsize="gg"] .review .rev-body .figs svg { width: 62px; height: 62px; }

/* ============================================================
   TELA DE TESTE
   ============================================================ */
.test-shell { max-width: 760px; margin: 2.2rem auto; }

.test-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.progress-track {
  flex: 1;
  height: 10px;
  background: #d6dcee;
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #6376c0);
  border-radius: 999px;
  transition: width .25s ease;
}
.timer {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .4rem .9rem;
  min-width: 92px;
  text-align: center;
}
.timer.danger { background: var(--warn-soft); color: var(--warn); border-color: #f2c6bf; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .6; } }

.question-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.question-domain {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .4rem;
}
.question-text { font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 1.4rem; line-height: 1.4; }

.figure-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  background: #f7f9fe;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.4rem;
}
.figure-row svg { width: 52px; height: 52px; }
.figure-row .arrow { color: var(--ink-faint); font-size: 1.3rem; font-weight: 700; }
.fig-unknown {
  width: 52px; height: 52px;
  border: 2px dashed var(--ink-faint);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink-faint);
}

.options { display: grid; gap: .65rem; }
.options.figures { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.option {
  display: flex;
  align-items: center;
  gap: .8rem;
  width: 100%;
  text-align: left;
  background: #f7f9fe;
  border: 2px solid var(--line);
  border-radius: 11px;
  padding: .85rem 1.05rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.option:hover { border-color: #b9c4e4; background: #f0f3fc; }
.option.selected { border-color: var(--primary); background: var(--primary-soft); font-weight: 700; }
.option .key {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: .78rem;
  font-weight: 800;
  color: var(--ink-faint);
}
.option.selected .key { background: var(--primary); color: #fff; border-color: var(--primary); }
.options.figures .option { justify-content: center; padding: .7rem; }
.options.figures .option svg { width: 56px; height: 56px; }

.test-actions {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  margin-top: 1.3rem;
  flex-wrap: wrap;
}

/* ---------- Seletor de faixa etária ---------- */
.age-select {
  border-top: 1px dashed var(--line);
  padding-top: 1.3rem;
  margin-bottom: 1.4rem;
}
.age-bands { display: flex; gap: .55rem; flex-wrap: wrap; margin-bottom: .6rem; }
.age-bands label {
  flex: 1;
  min-width: 120px;
  text-align: center;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: #f4f6fc;
  border: 2px solid var(--line);
  border-radius: 11px;
  padding: .75rem .6rem;
  cursor: pointer;
  transition: all .12s ease;
}
.age-bands label:hover { border-color: #b9c4e4; }
.age-bands input { position: absolute; opacity: 0; pointer-events: none; }
.age-bands label:has(input:checked) {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---------- Likert (triagem) ---------- */
.likert-group { margin-bottom: 2rem; }
.likert-group h2 {
  font-size: 1.1rem;
  margin-bottom: .3rem;
  color: var(--primary-dark);
}
.likert-group .group-desc { font-size: .88rem; color: var(--ink-faint); margin-bottom: .9rem; }
.likert-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: .6rem;
  box-shadow: var(--shadow);
}
.likert-item.missing { border-color: var(--warn); box-shadow: 0 0 0 3px rgba(194,64,46,.12); }
.likert-item p { font-size: .97rem; font-weight: 600; margin-bottom: .7rem; }
.likert-scale { display: flex; gap: .4rem; flex-wrap: wrap; }
.likert-scale label {
  flex: 1;
  min-width: 96px;
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: #f4f6fc;
  border: 2px solid var(--line);
  border-radius: 9px;
  padding: .5rem .4rem;
  cursor: pointer;
  transition: all .12s ease;
}
.likert-scale label:hover { border-color: #b9c4e4; }
.likert-scale input { position: absolute; opacity: 0; pointer-events: none; }
.likert-scale input:checked + span { }
.likert-scale label:has(input:checked) {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---------- Span de dígitos (memória operacional) ---------- */
.span-wrap { margin-bottom: 1.4rem; }
.span-hint { font-size: .9rem; font-weight: 700; color: var(--ink-soft); margin-bottom: .8rem; }
.span-digits {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: .35em;
  text-align: center;
  color: var(--primary-dark);
  background: #f7f9fe;
  border: 2px dashed #b9c4e4;
  border-radius: 12px;
  padding: 1.2rem .6rem;
  margin-bottom: .8rem;
  font-variant-numeric: tabular-nums;
}
html[data-fontsize="g"] .span-digits { font-size: 3rem; }
html[data-fontsize="gg"] .span-digits { font-size: 3.5rem; letter-spacing: .25em; }
.span-bar { height: 8px; background: #e3e8f5; border-radius: 999px; overflow: hidden; }
.span-bar-fill { height: 100%; width: 100%; background: var(--accent); border-radius: 999px; }

/* ---------- Velocidade de Processamento (IVP) ---------- */
.vp-timebar { height: 10px; background: #e3e8f5; border-radius: 999px; overflow: hidden; margin-bottom: 1rem; }
.vp-time-fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), #d98f14); transition: width 1s linear; }
.vp-key {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .5rem;
  margin-bottom: 1.2rem;
}
.vp-key-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  background: #f7f9fe;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .5rem .2rem;
}
.vp-key-item svg { width: 34px; height: 34px; }
.vp-key-item span { font-weight: 800; font-size: 1.05rem; }
.vp-probe {
  display: flex;
  justify-content: center;
  padding: 1rem;
  background: #f7f9fe;
  border: 2px solid var(--line);
  border-radius: 12px;
  margin-bottom: 1rem;
}
.vp-probe svg { width: 84px; height: 84px; }
html[data-fontsize="g"] .vp-probe svg { width: 104px; height: 104px; }
html[data-fontsize="gg"] .vp-probe svg { width: 120px; height: 120px; }
.vp-probe.vp-ok { border-color: var(--ok); background: var(--ok-soft); }
.vp-probe.vp-err { border-color: var(--warn); background: var(--warn-soft); }
.vp-btns { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; }
.vp-btn {
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 800;
  padding: .9rem 0;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--primary-dark);
  cursor: pointer;
}
.vp-btn:hover { border-color: var(--primary); background: var(--primary-soft); }
.vp-btn:active { transform: scale(.96); }
html[data-fontsize="g"] .vp-btn { font-size: 1.8rem; padding: 1rem 0; }
html[data-fontsize="gg"] .vp-btn { font-size: 2rem; padding: 1.1rem 0; }

@media (max-width: 640px) {
  .vp-key { grid-template-columns: repeat(3, 1fr); }
  .vp-btns { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   RELATÓRIO / RESULTADO
   ============================================================ */
.report { max-width: 860px; margin: 2.2rem auto; }
.report-header {
  background: linear-gradient(150deg, #232c55, #3b4b8c);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.4rem;
}
.report-header .report-kind {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #c3cdf1;
  margin-bottom: .8rem;
}
.score-big {
  font-size: clamp(3.4rem, 9vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
}
.score-big small { font-size: 1.1rem; font-weight: 600; color: #c3cdf1; display: block; margin-top: .3rem; letter-spacing: 0; }
.classification-chip {
  display: inline-block;
  margin-top: 1.1rem;
  background: var(--accent);
  color: #3d2b06;
  font-weight: 800;
  padding: .45rem 1.2rem;
  border-radius: 999px;
  font-size: 1rem;
}
.report-meta {
  margin-top: 1.1rem;
  font-size: .85rem;
  color: #c3cdf1;
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.report-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.7rem;
  margin-bottom: 1.4rem;
}
.report-section h2 { font-size: 1.12rem; margin-bottom: .9rem; letter-spacing: -.01em; }
.report-section p.explain { font-size: .9rem; color: var(--ink-soft); margin-top: .8rem; }

.bell-wrap { overflow-x: auto; }
.bell-wrap svg { display: block; margin: 0 auto; max-width: 100%; height: auto; }

.bars { display: grid; gap: .9rem; }
.bar-row { display: grid; grid-template-columns: 190px 1fr 64px; align-items: center; gap: .8rem; }
.bar-row .bar-label { font-size: .88rem; font-weight: 700; color: var(--ink-soft); }
.bar-track { position: relative; height: 26px; background: #edf0f8; border-radius: 8px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--primary), #6376c0); transition: width .6s ease; }
.bar-fill.gold { background: linear-gradient(90deg, #d98f14, var(--accent)); }
.bar-value { font-size: .88rem; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }

.note-box {
  background: var(--ok-soft);
  border: 1px solid #bfe8d4;
  border-radius: 10px;
  padding: .9rem 1.1rem;
  font-size: .9rem;
  color: #0d5c3c;
}
.note-box.warn { background: var(--warn-soft); border-color: #f2c6bf; color: #7c2b1e; }

.lgpd-reminder {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #18203f;
  color: #dbe2f5;
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  margin-bottom: 1.4rem;
}
.lgpd-reminder svg { flex-shrink: 0; width: 34px; height: 34px; }
.lgpd-reminder h3 { color: #ffd98a; font-size: 1.02rem; margin-bottom: .3rem; }
.lgpd-reminder p { font-size: .9rem; }
.lgpd-reminder strong { color: #fff; }

.report-actions {
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.8rem 0 1rem;
}
.print-hint { text-align: center; font-size: .82rem; color: var(--ink-faint); margin-bottom: 2rem; }

/* Revisão de respostas */
.review details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .8rem 1.1rem;
  margin-bottom: .55rem;
  background: #f8fafe;
}
.review summary { cursor: pointer; font-size: .92rem; font-weight: 600; }
.review summary .rev-badge { float: right; font-weight: 800; font-size: .82rem; }
.rev-badge.ok { color: var(--ok); }
.rev-badge.bad { color: var(--warn); }
.review .rev-body { margin-top: .7rem; font-size: .88rem; color: var(--ink-soft); }
.review .rev-body .figs { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin: .4rem 0; }
.review .rev-body .figs svg { width: 40px; height: 40px; }

details.help-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafe;
  padding: .9rem 1.2rem;
  margin-top: 1rem;
}
details.help-panel summary { cursor: pointer; font-weight: 700; font-size: .95rem; }
details.help-panel .help-body { margin-top: .7rem; font-size: .89rem; color: var(--ink-soft); }
details.help-panel .help-body p { margin-bottom: .5rem; }
details.help-panel code { background: var(--primary-soft); padding: .1rem .35rem; border-radius: 5px; font-size: .84em; }

/* Página de privacidade */
.prose { max-width: 780px; margin: 2.4rem auto; }
.prose h1 { font-size: 2rem; letter-spacing: -.02em; margin-bottom: .4rem; }
.prose .lede { color: var(--ink-soft); margin-bottom: 2rem; }
.prose h2 { font-size: 1.25rem; margin: 1.8rem 0 .5rem; }
.prose p { margin-bottom: .8rem; color: var(--ink); }
.prose ul { margin: 0 0 1rem 1.3rem; color: var(--ink); }
.prose li { margin-bottom: .35rem; }
.prose .card { padding: 1.6rem; margin-bottom: 1rem; }

.hidden { display: none !important; }

/* ---------- Responsivo ---------- */
@media (max-width: 640px) {
  /* Nav: linha de 62px fixa cortava os links no celular.
     Refluem: marca + acessibilidade na 1ª linha, links abaixo. */
  .site-nav .container {
    height: auto;
    min-height: 62px;
    flex-wrap: wrap;
    gap: .35rem .7rem;
    padding: .6rem 0;
    align-items: center;
  }
  .brand { order: 1; font-size: 1.05rem; }
  .a11y-bar { order: 2; margin-left: auto; gap: .22rem; }
  .nav-links {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: .3rem;
  }
  .nav-links a { padding: .42rem .62rem; font-size: .84rem; white-space: nowrap; }
  .question-card { padding: 1.4rem; }
  .question-card { padding: 1.4rem; }
  .bar-row { grid-template-columns: 1fr; gap: .3rem; }
  .bar-value { text-align: left; }
  .privacy-banner { flex-direction: column; }
  .options.figures { grid-template-columns: repeat(2, 1fr); }
}

/* Telas muito estreitas (≤400px): compacta ainda mais a nav */
@media (max-width: 400px) {
  .a11y-label { display: none; }
  .a11y-btn { min-width: 34px; height: 34px; padding: 0 .4rem; }
  .brand img { width: 26px; height: 26px; }
}

/* ============================================================
   IMPRESSÃO / SALVAR EM PDF
   ============================================================ */
@media print {
  @page { margin: 1.6cm; }
  body { background: #fff; color: #000; display: block; }
  .site-nav, footer, .report-actions, .print-hint,
  .lgpd-reminder, .no-print, .test-topbar, .question-card,
  .btn-ouvir, .btn-ouvir-item, .a11y-bar,
  .test-actions, #ahsd-form, #qi-start, #ahsd-start { display: none !important; }
  .report { max-width: 100%; margin: 0; }
  .report-header {
    background: #fff;
    color: #000;
    box-shadow: none;
    border: 2px solid #000;
    border-radius: 8px;
  }
  .report-header .report-kind, .report-header .report-meta { color: #333; }
  .score-big small { color: #333; }
  .classification-chip { border: 1.5px solid #000; background: #fff; color: #000; }
  .report-section { box-shadow: none; border: 1px solid #999; page-break-inside: avoid; }
  .review { display: none !important; }
  a { color: #000; text-decoration: none; }
  .disclaimer { background: #fff; border: 1px solid #999; border-left: 3px solid #000; color: #000; }
  .disclaimer strong { color: #000; }
}
