/* =====================================================================
   A.C.R.C — Quiz de Diagnóstico Elétrico · dark neon, layout limpo
   ===================================================================== */

:root {
  --bg: #07070d;
  --ink: #f4f2ea;
  --ink-dim: rgba(244, 242, 234, 0.62);
  --ink-faint: rgba(244, 242, 234, 0.38);
  --accent: #f5b301;
  --accent-hot: #ffd94d;
  --accent-soft: rgba(245, 179, 1, 0.12);
  --line: rgba(244, 242, 234, 0.09);
  --card: rgba(14, 14, 22, 0.55);
  --faixa: #f5b301;              /* muda por JS conforme resultado */
  --radius: 22px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- preloader ---------- */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.55s ease;
}
#preloader.is-gone {
  opacity: 0;
  pointer-events: none;
}

.pl-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.pl-logo {
  width: 84px;
  height: auto;
  animation: plPulse 1.5s ease-in-out infinite;
}
@keyframes plPulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(0.95);
    filter: drop-shadow(0 0 8px rgba(245, 179, 1, 0.22));
  }
  50% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 26px rgba(245, 179, 1, 0.6));
  }
}

.pl-bar {
  width: 124px;
  height: 3px;
  border-radius: 3px;
  background: rgba(245, 179, 1, 0.14);
  overflow: hidden;
}
.pl-bar-fill {
  width: 42%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-hot), transparent);
  animation: plSlide 1.05s ease-in-out infinite;
}
@keyframes plSlide {
  0%   { transform: translateX(-130%); }
  100% { transform: translateX(340%); }
}

@media (prefers-reduced-motion: reduce) {
  .pl-logo { animation: none; opacity: 1; filter: drop-shadow(0 0 16px rgba(245, 179, 1, 0.4)); }
  .pl-bar-fill { animation: none; width: 100%; }
}

/* ---------- camadas fixas ---------- */

#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- placa eletrônica ---------- */

#pcb {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* cores da placa em vars: no resultado, floodFaixa tinge as trilhas com a
   cor da faixa (o azul/ferrugem padrão destoava sobre o wash verde) */
:root {
  --pcb-a-line: #333b57;
  --pcb-a-pad: #454d6e;
  --pcb-b-line: #48282f;
  --pcb-b-pad: #5c333c;
}

.pcb-trace {
  fill: none;
  stroke: var(--pcb-a-line);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.82;
  transition: stroke 0.9s ease;
}

.pcb-pad {
  fill: #0c0f17;
  stroke: var(--pcb-a-pad);
  stroke-width: 1.6;
  transition: stroke 0.9s ease;
}

.pcb-via { fill: var(--pcb-a-pad); transition: fill 0.9s ease; }

/* lado EM CURTO (sob tensão): traços em tom quente pra casar com o glow
   vermelho (o azul-acinzentado do lado energizada estava destoando) */
.pcb-trace.pcb-b { stroke: var(--pcb-b-line); }
.pcb-pad.pcb-b { stroke: var(--pcb-b-pad); }
.pcb-via.pcb-b { fill: var(--pcb-b-pad); }

.pcb-dot { filter: drop-shadow(0 0 6px currentColor); }

#flash {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(255, 231, 150, 0.95), rgba(245, 179, 1, 0.35) 45%, transparent 75%);
  mix-blend-mode: screen;
}

.brand {
  position: fixed;
  top: 28px;
  left: 36px;
  z-index: 20;
  display: flex;
  align-items: baseline;
  gap: 10px;
  visibility: hidden; /* revelado por JS */
}
.brand-sym {
  height: 24px;
  width: auto;
  align-self: center;
  filter: drop-shadow(0 0 7px rgba(245, 179, 1, 0.45));
}
.brand-mark {
  font-family: 'Archivo Black', var(--font-display);
  font-weight: 400;
  letter-spacing: 0.05em;
  font-size: 1.02rem;
}
.brand-tag {
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  color: var(--accent);
}

/* ---------- telas ---------- */

main { position: relative; z-index: 10; height: 100dvh; }

.screen {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden; /* o canvas de fumaça transborda as figuras de propósito */
}
.screen.is-active { display: flex; }
.screen > * { margin: auto; }
.screen-scroll { align-items: flex-start; }

[hidden] { display: none !important; }

/* ---------- landing ---------- */

.hero {
  text-align: center;
  max-width: 1120px;
  width: 100%;
}

.hero-kicker {
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: clamp(18px, 3vh, 34px);
  visibility: hidden;
}

.hero-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 2vw, 32px);
}

.hero-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7.6vw, 6.6rem);
  line-height: 0.82;                /* apertado = display editorial */
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero-word-left { text-align: right; }
.hero-word-right { text-align: left; color: var(--ink); }

/* quebra editorial forçada: ENER / GIZA / DA · EM / CUR / TO */
.syl { display: block; }

/* ENERGIZADA: sólida, glow frio constante — calma é ausência de movimento */
.hero-word-left .hw-inner {
  filter:
    drop-shadow(0 0 16px rgba(122, 178, 255, 0.28))
    drop-shadow(0 0 46px rgba(90, 167, 255, 0.14));
}

/* EM CURTO: contorno superaquecido, glow vermelho — o flicker vem do JS */
.hero-word-right .hw-inner {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 199, 178, 0.9);
  filter:
    drop-shadow(0 0 13px rgba(255, 84, 48, 0.45))
    drop-shadow(0 0 42px rgba(255, 60, 24, 0.22));
}

.hw-line { display: block; overflow: hidden; }
/* opacity:0 já no 1º paint = mata o flash do texto DOM chapado antes do JS
   rodar (buildLandingIntro só roda em document.fonts.ready). O JS controla
   daí em diante: 0 no modo elétrico, 1 no reduced-motion (fallback). */
.hw-inner { display: inline-block; will-change: transform; opacity: 0; }

/* tipografia elétrica: as letras viram raio no canvas; o texto DOM vira
   uma guia tênue por baixo (legibilidade + base do glow) */
.hero-word { position: relative; }
.word-fx { position: absolute; pointer-events: none; z-index: 3; }
/* modo elétrico: as letras são 100% raio + partícula (sem fill fantasma) */
.hero-title.is-electric .hw-inner {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-plug { width: clamp(180px, 25vw, 400px); position: relative; }
.hero-plug svg { width: 100%; height: auto; display: block; position: relative; z-index: 1; }

/* canvas das partículas do plug — maior que o ícone p/ brasas e repulsão */
#plug-fx {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}

/* com partículas vivas o desenho SVG some por completo — o raio agora
   é um lightning azul procedural desenhado no canvas (não a polyline) */
.hero-plug.is-live .plug-stroke,
.hero-plug.is-live .plug-fill,
.hero-plug.is-live .plug-arc { opacity: 0 !important; }

.plug-stroke {
  stroke: var(--accent);
  stroke-width: 16;
  fill: none;
  filter: url(#plugGlow);
}
.plug-stroke.thin { stroke-width: 12; }
.plug-fill { fill: var(--accent); filter: url(#plugGlow); }
.plug-arc {
  stroke: var(--accent-hot);
  stroke-width: 3.5;
  fill: none;
  stroke-linejoin: round;
  filter: url(#plugGlow);
  opacity: 0;
}

.hero-sub {
  margin-top: clamp(20px, 3.4vh, 38px);
  color: var(--ink-dim);
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  visibility: hidden;
}

.hero-cta {
  margin-top: clamp(22px, 4vh, 42px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------- botões ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  padding: 16px 42px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

/* glow contido: o plug "?" é a estrela do hero — o botão convida, não
   compete. Halo largo enxugado; brilho maior fica reservado ao :hover,
   quando a intenção do usuário já está no CTA. */
.btn-primary {
  background: linear-gradient(180deg, var(--accent-hot), var(--accent));
  color: #131007;
  box-shadow:
    0 0 0 1px rgba(255, 226, 122, 0.5) inset,
    0 6px 22px rgba(245, 179, 1, 0.24),
    0 0 34px rgba(245, 179, 1, 0.1);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 236, 160, 0.8) inset,
    0 10px 32px rgba(245, 179, 1, 0.42),
    0 0 64px rgba(245, 179, 1, 0.22);
}
.btn-primary:active { transform: translateY(0) scale(0.97); }

/* secundário: convida sem competir com o CTA primário */
.btn-secondary {
  background: rgba(245, 179, 1, 0.05);
  color: var(--ink);
  border: 1px solid rgba(245, 179, 1, 0.34);
  box-shadow: none;
}
.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 179, 1, 0.7);
  background: rgba(245, 179, 1, 0.1);
  box-shadow: 0 0 28px rgba(245, 179, 1, 0.14);
}
.btn-secondary:active { transform: translateY(0) scale(0.97); }
.btn-bolt {
  width: 0.92em;
  height: 0.92em;
  flex: 0 0 auto;
  margin-top: -0.04em; /* alinha o eixo óptico do raio à baseline do label */
}

.btn-block { width: 100%; margin-top: 8px; }

.link-ghost {
  background: none;
  border: none;
  color: var(--ink-faint);
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}
.link-ghost:hover { color: var(--ink-dim); }

/* ---------- quiz ---------- */

.quiz-shell {
  width: min(720px, 100%);
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-top: 56px;
  padding-bottom: 24px;
}

.quiz-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.btn-back {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-faint);
  border-radius: 999px;
  font-size: 0.8rem;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.btn-back:hover { color: var(--ink); border-color: rgba(245, 179, 1, 0.4); }
.btn-back[disabled] { opacity: 0; pointer-events: none; }

/* variante com presença (telas onde o voltar é a única saída) */
.btn-back.is-strong {
  font-size: 0.92rem;
  padding: 11px 22px;
  color: var(--ink);
  border-color: rgba(245, 179, 1, 0.42);
  background: rgba(245, 179, 1, 0.06);
}
.btn-back.is-strong:hover {
  border-color: var(--accent);
  background: rgba(245, 179, 1, 0.12);
  box-shadow: 0 0 22px rgba(245, 179, 1, 0.14);
}

.meter {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(244, 242, 234, 0.08);
  overflow: visible;
}
.meter-fill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hot));
  box-shadow: 0 0 14px rgba(245, 179, 1, 0.55);
  transform-origin: left center;
  transform: scaleX(0);
}
.meter-spark {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8dc 0%, var(--accent-hot) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  filter: blur(0.4px);
}

.quiz-count {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.qcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4.5vw, 46px);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.q-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  color: var(--accent);
  margin-bottom: 16px;
}
.q-eyebrow.accent { color: var(--accent); }

.q-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.q-hint {
  color: var(--ink-faint);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.q-options {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opt {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: rgba(244, 242, 234, 0.028);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 15px 18px;
  cursor: pointer;
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease;
}
.opt:hover {
  border-color: rgba(245, 179, 1, 0.45);
  background: rgba(245, 179, 1, 0.05);
  transform: translateX(5px);
}
.opt.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 24px rgba(245, 179, 1, 0.18), 0 0 0 1px rgba(245, 179, 1, 0.35) inset;
}
.opt.is-dimmed { opacity: 0.35; }

.opt-key {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-faint);
  transition: all 0.22s ease;
}
.opt:hover .opt-key { border-color: rgba(245, 179, 1, 0.5); color: var(--accent); }
.opt.is-selected .opt-key {
  background: var(--accent);
  border-color: var(--accent);
  color: #131007;
  box-shadow: 0 0 16px rgba(245, 179, 1, 0.6);
}

.btn-continue { margin-top: 24px; }

/* faíscas DOM (burst nas respostas) */
.spark-bit {
  position: fixed;
  z-index: 60;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  pointer-events: none;
  box-shadow: 0 0 8px currentColor;
}

/* ---------- lead ---------- */

.lead-shell { width: min(560px, 100%); }
.lead-top { margin-bottom: 16px; }
.lead-card { width: 100%; }

.lead-sub { color: var(--ink-dim); margin-bottom: 26px; }

#lead-form { display: flex; flex-direction: column; gap: 16px; }

/* min-width: 0 — inputs têm largura mínima intrínseca e estouram o card
   dentro do flex row sem isso */
.field { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.field input {
  width: 100%;
  min-width: 0;
  background: rgba(244, 242, 234, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder { color: rgba(244, 242, 234, 0.25); }
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 179, 1, 0.14);
}

.field-row { display: flex; gap: 14px; }

.field-note { font-size: 0.78rem; color: var(--ink-faint); }
.field-note em { color: var(--accent); font-style: normal; }

.lbl-opt { text-transform: none; letter-spacing: 0.04em; opacity: 0.7; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  font-size: 0.8rem;
  color: var(--ink-dim);
  cursor: pointer;
  line-height: 1.5;
}
.consent input {
  flex: 0 0 auto;
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.field-error {
  font-size: 0.82rem;
  color: #ff8080;
  border: 1px solid rgba(255, 64, 64, 0.35);
  background: rgba(255, 64, 64, 0.07);
  border-radius: 10px;
  padding: 10px 14px;
}

/* ---------- scan ---------- */

.scan-shell {
  width: min(520px, 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.scan-line {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  letter-spacing: 0.22em;
  color: var(--accent);
  min-height: 1.6em;
}

.scan-meter {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(244, 242, 234, 0.08);
  overflow: hidden;
}
.scan-meter-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hot));
  box-shadow: 0 0 18px rgba(245, 179, 1, 0.6);
  transform-origin: left center;
  transform: scaleX(0);
}

.scan-pct {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.direct-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

/* ---------- resultado ---------- */

.result-shell {
  width: min(760px, 100%);
  margin: auto;
  padding: clamp(70px, 10vh, 110px) 0 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.r-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.r-eyebrow.accent { color: var(--accent); }

.r-faixa {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 6.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--faixa);
  text-shadow:
    0 0 18px color-mix(in srgb, var(--faixa) 55%, transparent),
    0 0 70px color-mix(in srgb, var(--faixa) 30%, transparent);
  margin-bottom: 26px;
}

.r-head {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  margin-bottom: 12px;
}

.r-sub {
  color: var(--ink-dim);
  max-width: 58ch;
  margin-bottom: 10px;
}

.r-focus {
  color: var(--ink-faint);
  font-size: 0.88rem;
  font-style: italic;
  margin-bottom: 6px;
}

.r-gauge { width: min(560px, 100%); margin: 34px 0 8px; }

.r-gauge-track {
  position: relative;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2fe08c 0%, #f5b301 38%, #ff7a29 62%, #ff4040 100%);
  box-shadow:
    0 0 22px rgba(0, 0, 0, 0.4) inset,
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
}
/* divisores das 4 zonas → o medidor lê como escala de instrumento,
   não como um slider genérico. Um tique fino por fronteira (25/50/75%). */
.r-gauge-track::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 24.5%, rgba(7, 7, 13, 0.6) 24.5%, rgba(7, 7, 13, 0.6) 25.5%, transparent 25.5%),
    linear-gradient(90deg, transparent 49.5%, rgba(7, 7, 13, 0.6) 49.5%, rgba(7, 7, 13, 0.6) 50.5%, transparent 50.5%),
    linear-gradient(90deg, transparent 74.5%, rgba(7, 7, 13, 0.6) 74.5%, rgba(7, 7, 13, 0.6) 75.5%, transparent 75.5%);
}

.r-gauge-marker {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 26px;
  border-radius: 999px;
  background: var(--ink);
  border: 2px solid var(--bg);
  box-shadow:
    0 0 16px color-mix(in srgb, var(--faixa) 80%, transparent),
    0 2px 8px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%);
}

.r-marker-score {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  background: rgba(14, 14, 22, 0.85);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.r-gauge-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}

.r-alerts {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
}
.r-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  background: rgba(255, 64, 64, 0.07);
  border: 1px solid rgba(255, 64, 64, 0.3);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 0.92rem;
  color: #ffc9c9;
}
.r-alert::before { content: '⚠'; color: #ff8080; }

.r-alert.is-ok {
  background: rgba(47, 224, 140, 0.06);
  border-color: rgba(47, 224, 140, 0.28);
  color: #b9f0d4;
}
.r-alert.is-ok::before { content: '✓'; color: #2fe08c; }

/* ---------- mapa de necessidades por produto ---------- */

.r-products-eyebrow { margin: 34px 0 4px; }

.r-products {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.r-prod {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.r-prod.is-prioritaria { border-color: rgba(255, 64, 64, 0.4); }
.r-prod.is-recomendada { border-color: rgba(255, 122, 41, 0.4); }
.r-prod.is-preventiva  { border-color: rgba(245, 179, 1, 0.35); }

.r-prod-top { display: flex; gap: 14px; align-items: flex-start; }

.r-prod-rank {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 5px 8px;
}

.r-prod-head { display: flex; flex-direction: column; gap: 5px; }

.r-prod-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.25;
}

.r-prod-class {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.r-prod.is-prioritaria .r-prod-class { color: #ff8080; }
.r-prod.is-recomendada .r-prod-class { color: #ffb37a; }

.r-prod-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(244, 242, 234, 0.08);
  margin: 14px 0 12px;
  overflow: hidden;
}
.r-prod-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(245, 179, 1, 0.5);
}
.r-prod.is-prioritaria .r-prod-bar i { background: #ff5b5b; box-shadow: 0 0 12px rgba(255, 64, 64, 0.5); }
.r-prod.is-recomendada .r-prod-bar i { background: #ff7a29; box-shadow: 0 0 12px rgba(255, 122, 41, 0.5); }

.r-prod-desc { font-size: 0.9rem; color: var(--ink-dim); }

.r-prod-block { margin-top: 14px; font-size: 0.88rem; color: var(--ink-dim); }
.r-prod-block strong {
  display: block;
  color: var(--accent);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  margin-bottom: 6px;
}
.r-prod-block ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }

.r-products-none {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--ink-faint);
  max-width: 60ch;
}

.r-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.r-disclaimer {
  margin-top: 30px;
  font-size: 0.75rem;
  color: var(--ink-faint);
  max-width: 52ch;
}

/* ---------- conheça a A.C.R.C (conteúdo compartilhado tpl-about) ----------
   Prioridade: leitura confortável. Glow fica nos títulos/eyebrows;
   corpo de texto sem efeito, medida ~56ch, contraste alto. */

.about-shell {
  width: min(880px, 100%);
  margin: auto;
  padding: clamp(70px, 9vh, 104px) 0 72px;
  display: flex;
  flex-direction: column;
}

.ab-top { margin-bottom: 30px; }

.ab-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 20ch;
  margin-bottom: 22px;
}

.ab-lede {
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  line-height: 1.65;
  color: rgba(244, 242, 234, 0.78);
  max-width: 58ch;
}
.ab-lede strong { color: var(--ink); font-weight: 600; }

.ab-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(44px, 7vh, 72px);
}
.ab-row.is-flip .ab-media { order: -1; }

.ab-eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  color: var(--accent);
  margin-bottom: 12px;
}

.ab-h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.ab-p {
  color: rgba(244, 242, 234, 0.76);
  line-height: 1.65;
  max-width: 56ch;
}

.ab-anchor {
  margin-top: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

/* figura de imagem; tracejado é linguagem de placeholder (sem <img>) */
.ab-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid rgba(244, 242, 234, 0.09);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(245, 179, 1, 0.07), transparent 60%),
    linear-gradient(160deg, rgba(14, 14, 22, 0.7), rgba(7, 7, 13, 0.9));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ab-media:not(:has(img)) { border: 1px dashed rgba(245, 179, 1, 0.32); }

.ab-media figcaption {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: rgba(245, 179, 1, 0.55);
}
.ab-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* linhas do título (SplitText) — máscara pro rise das palavras */
.ab-line { overflow: hidden; }

.ab-cred {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: clamp(20px, 3vw, 34px);
  align-items: center;
  margin-top: clamp(44px, 7vh, 72px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3.5vw, 36px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.ab-cred-photo { aspect-ratio: 4 / 5; border-radius: 14px; }

.ab-how { margin-top: clamp(44px, 7vh, 72px); }

.ab-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 6px;
}

.ab-step {
  background: rgba(244, 242, 234, 0.028);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.ab-step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 10px;
}
.ab-step h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
}
.ab-step p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-dim);
}

.ab-cta {
  margin-top: clamp(44px, 7vh, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ---------- "como a A.C.R.C ajuda" no fim do resultado ---------- */

#r-help {
  width: 100%;
  margin-top: 56px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.r-help-eyebrow { text-align: center; }
.ab-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 auto;
  max-width: 24ch;
}
#r-help .ab-lede { margin: 26px auto 0; text-align: center; }
#r-help .ab-row { margin-top: 40px; gap: clamp(20px, 3vw, 36px); }
#r-help .ab-cred, #r-help .ab-how { margin-top: 40px; }

/* ---------- responsivo ---------- */

@media (max-width: 720px) {
  .brand { left: 20px; top: 20px; }
  .hero-title { grid-template-columns: 1fr; gap: 6px; }
  .hero-word-left, .hero-word-right { text-align: center; }
  /* mobile: sem quebra por sílaba — cada palavra numa linha só */
  .syl { display: inline; }
  .hero-word .hw-inner { white-space: nowrap; }
  .hero-word { font-size: clamp(2rem, 11vw, 3.4rem); }
  .hero-plug { margin: 6px auto; width: 180px; }
  .field-row { flex-direction: column; }
  .quiz-top { flex-wrap: wrap; }
  .screen { padding: 16px; }
  body { overflow-y: auto; }

  /* form do lead cresceu (cidade/cargo/aceite): afasta do header fixo */
  .lead-shell { padding-top: 72px; }

  /* sobre: coluna única, texto antes da imagem (leitura primeiro) */
  .ab-row, #r-help .ab-row { grid-template-columns: 1fr; gap: 18px; }
  .ab-row.is-flip .ab-media { order: 0; }
  .ab-cred { grid-template-columns: 1fr; }
  .ab-cred-photo { max-width: 220px; }
  .ab-steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
