/* ============================================================
   ERGOINSIGHT — SITE.CSS
   Base + header + hero (§2.1). Seções S2–S10 entram nas
   próximas etapas do build (§8).
   ============================================================ */

/* ---------- Reset mínimo ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-dark); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Foco visível (a11y) */
:focus-visible {
  outline: 3px solid var(--risk-mid);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Chip mono de norma — assinatura tipográfica (§1.2) */
.chip-nr {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 0.18em 0.6em;
  border: 1px solid var(--teal-hairline);
  border-radius: 6px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  white-space: nowrap;
}
.on-dark .chip-nr {
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.95em 1.6em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out),
              background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* sobre fundo escuro */
.btn-light {
  background: var(--white);
  color: var(--teal-deep);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.btn-light:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32); }

.btn-ghost-dark {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.08); }

/* sobre fundo claro */
.btn-solid {
  background: var(--teal-dark);
  color: var(--white);
}
.btn-solid:hover { background: var(--teal-deep); }

/* ============================================================
   HEADER (sticky, encolhe no scroll — §3.2)
   v4 wordmark sobre fundo claro (§1.3)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid rgba(13, 92, 102, 0.12);
  transition: box-shadow 0.25s ease;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  transition: height 0.25s var(--ease-out);
}
.site-header.is-shrunk .container { height: var(--header-h-shrunk); }
.site-header.is-shrunk { box-shadow: 0 6px 24px rgba(8, 63, 71, 0.12); }

/* Logo v4 — arquivo-fonte, nunca reconstruído (§1.3) */
.logo { display: inline-flex; align-items: center; }
.logo-img {
  height: 62px;
  width: auto;
  transition: height 0.25s var(--ease-out);
}
.site-header.is-shrunk .logo-img { height: 50px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}
.main-nav a.nav-link:hover { color: var(--teal-dark); }

.header-cta { padding: 0.75em 1.3em; font-size: 0.88rem; }

@media (max-width: 860px) {
  .main-nav a.nav-link { display: none; } /* fase: menu mobile entra com §5 */
}

/* ============================================================
   Barra de urgência NR-01 (§5.2)
   ============================================================ */
.urgency-bar {
  background: var(--risk-mid);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 500;
}
.urgency-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.urgency-bar a { color: var(--ink); font-weight: 600; }
.urgency-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  padding: 2px 6px;
}

/* ============================================================
   HERO — "Do Papel ao Indicador" (§2.1)
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(148deg, var(--teal-deep) 0%, var(--teal-dark) 100%);
  color: var(--on-dark);
  overflow: hidden;
}
/* dot grid assinatura (§1.4) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--dot-grid);
  background-size: var(--dot-grid-size);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 56px;
  padding-top: 72px;
  padding-bottom: 40px;
  min-height: calc(88vh - var(--header-h));
}

/* --- Coluna de texto --- */
.hero-copy .eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--teal);
  filter: brightness(1.55); /* legibilidade do teal sobre teal-deep */
  margin: 0 0 20px;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.4vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: none;
  margin: 0 0 22px;
  color: var(--white);
}
.hero-copy h1 .hl { color: var(--risk-mid); }
.hero-copy .sub {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--on-dark-dim);
  max-width: 34em;
  margin: 0 0 34px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* entrada do texto no fim da sequência (§2.1: headline aparece por cima no fim) */
.hero-copy > * {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s var(--ease-out) forwards;
}
.hero-copy .eyebrow { animation-delay: 0.10s; }
.hero-copy h1      { animation-delay: 0.20s; }
.hero-copy .sub    { animation-delay: 0.32s; }
.hero-copy .hero-ctas { animation-delay: 0.42s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Barra de credibilidade (rodapé do hero) --- */
.hero-cred {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  animation: rise 0.7s var(--ease-out) 2.6s forwards;
}
.hero-cred .cred-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--on-dark);
  margin-right: 6px;
}
.hero-cred .cred-sector {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--on-dark-dim);
}
.hero-cred .cred-sep { color: rgba(255, 255, 255, 0.25); }
.hero-tagline {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(234, 244, 245, 0.5);
  margin: 8px 0 0;
  opacity: 0;
  animation: rise 0.7s var(--ease-out) 2.7s forwards;
}

/* ============================================================
   ANIMAÇÃO DO HERO — documento AET se desconstrói em dashboard
   Etapas: doc entra (0s) → linhas voam (1.0s) → KPIs nascem (1.9s)
   ============================================================ */
.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; }

/* Loop v3 — o papel é escaneado, os dados voam em arco, o painel nasce,
   tudo se apaga e recomeça. Um único relógio de 12s (--loop). */
.hero-visual { --loop: 12s; }
.a2-line, .a2-bar, .a2-fly, .a2-pop, .a2-pct { transform-box: fill-box; }
.a2-doc, .a2-dash, .a2-scan { transform-box: view-box; }

.a2-doc  { animation: floatY 9s ease-in-out infinite; }
.a2-dash { animation: floatY 9s ease-in-out 4.5s infinite; }

/* feixe de leitura */
.a2-scan { opacity: 0; animation: a2scan var(--loop) linear infinite; }
@keyframes a2scan {
  0%, 2%    { transform: translateY(0); opacity: 0; }
  4%        { opacity: 0.9; }
  12%       { opacity: 0.9; }
  14%, 100% { transform: translateY(296px); opacity: 0; }
}

/* linhas drenam em sequência e reabastecem no fim do ciclo */
.a2-line {
  transform-origin: left center;
  animation: a2line var(--loop) var(--ease-flight) infinite;
  animation-delay: var(--d, 0s);
}
@keyframes a2line {
  0%, 11%   { transform: scaleX(1); opacity: 1; }
  16%       { transform: scaleX(0.42); opacity: 0.22; }
  83%       { transform: scaleX(0.42); opacity: 0.22; }
  90%, 100% { transform: scaleX(1); opacity: 1; }
}

/* trilho de dados entre papel e painel */
.a2-conduit { opacity: 0; animation: a2conduitOp var(--loop) ease infinite, a2march 1.1s linear infinite; }
@keyframes a2conduitOp { 0%, 9% { opacity: 0; } 12% { opacity: 0.6; } 27% { opacity: 0.6; } 33%, 100% { opacity: 0; } }
@keyframes a2march { to { stroke-dashoffset: -24; } }

/* fragmentos voam em arco, com brilho */
.a2-fly {
  opacity: 0;
  filter: drop-shadow(0 0 5px rgba(27, 148, 162, 0.75));
  animation: a2fly var(--loop) var(--ease-flight) infinite;
  animation-delay: var(--d, 0s);
}
@keyframes a2fly {
  0%, 11% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  12.5%   { opacity: 1; transform: translate(64px, var(--lift, -40px)) scale(1.25); }
  16%     { opacity: 1; transform: translate(calc(var(--fx, 300px) * 0.78), calc(var(--fy, 0px) * 0.5)) scale(1); }
  18.5%   { opacity: 0; transform: translate(var(--fx, 300px), var(--fy, 0px)) scale(0.7); }
  100%    { opacity: 0; transform: translate(var(--fx, 300px), var(--fy, 0px)) scale(0.7); }
}

/* painel ganha vida e se apaga para recomeçar */
.a2-ring {
  stroke-dasharray: 163.4;
  stroke-dashoffset: 163.4;
  animation: a2ring var(--loop) var(--ease-out) infinite;
}
@keyframes a2ring {
  0%, 22%   { stroke-dashoffset: 163.4; }
  38%       { stroke-dashoffset: 21.2; }
  82%       { stroke-dashoffset: 21.2; }
  90%, 100% { stroke-dashoffset: 163.4; }
}
.a2-bar {
  transform-origin: center bottom;
  transform: scaleY(0);
  animation: a2bar var(--loop) var(--ease-out) infinite;
  animation-delay: var(--d, 0s);
}
@keyframes a2bar {
  0%, 24%   { transform: scaleY(0); }
  31%       { transform: scaleY(1.12); }
  34%       { transform: scaleY(1); }
  82%       { transform: scaleY(1); }
  88%, 100% { transform: scaleY(0); }
}
.a2-pop, .a2-pct {
  opacity: 0;
  animation: a2pop var(--loop) var(--ease-out) infinite;
  animation-delay: var(--d, 0s);
}
@keyframes a2pop {
  0%, 26%   { opacity: 0; transform: translateY(8px) scale(0.96); }
  33%       { opacity: 1; transform: translateY(0) scale(1); }
  83%       { opacity: 1; transform: translateY(0) scale(1); }
  88%, 100% { opacity: 0; transform: translateY(-5px) scale(0.98); }
}
.a2-live { animation: a2live 1.6s ease infinite; }
@keyframes a2live { 50% { opacity: 0.25; } }

/* ---------- prefers-reduced-motion: estado final direto (§7) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .hero-cred, .hero-tagline,
  .a2-doc, .a2-dash, .a2-pop, .a2-pct {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .a2-line { animation: none !important; }
  .a2-fly, .a2-scan, .a2-conduit { animation: none !important; opacity: 0 !important; }
  .a2-bar { animation: none !important; transform: scaleY(1) !important; }
  .a2-ring { animation: none !important; stroke-dashoffset: 21.2 !important; }
  .btn { transition: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 940px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 56px;
    min-height: 0;
  }
  .hero-visual { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 420px) {
  .hero-copy .sub { font-size: 1rem; }
  .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   SEÇÕES — base
   ============================================================ */
.section { padding: 88px 0; }
.section-paper { background: var(--paper); }
.section-white { background: var(--white); }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.06;
  margin: 0 0 44px;
  color: var(--ink);
}
.on-dark .section-title { color: var(--white); }

/* ============================================================
   S2 — Triângulo da Dor
   ============================================================ */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pain-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 26px 26px;
  box-shadow: 0 2px 10px rgba(8, 63, 71, 0.06);
  border-top: 4px solid var(--teal);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pain-card:nth-child(2) { border-top-color: var(--risk-high); }
.pain-card-featured {
  border-top-color: var(--risk-crit);
  box-shadow: 0 10px 32px rgba(201, 53, 43, 0.14);
  transform: translateY(-6px);
}
.pain-badge {
  position: absolute;
  top: -13px;
  right: 18px;
  background: var(--risk-crit);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.pain-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: rgba(21, 36, 42, 0.28);
  letter-spacing: 0.06em;
}
.pain-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.12;
  margin: 0;
}
.pain-card p { margin: 0; font-size: 0.95rem; color: rgba(21, 36, 42, 0.82); flex: 1; }
.pain-card .chip-nr { align-self: flex-start; }

@media (max-width: 900px) {
  .pain-grid { grid-template-columns: 1fr; }
  .pain-card-featured { transform: none; }
}

/* ============================================================
   S3 / S6 — faixas escuras
   ============================================================ */
.band {
  background: var(--teal-dark);
  color: var(--on-dark);
  text-align: center;
}
.band-statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  color: var(--on-dark-dim);
  margin: 0 0 52px;
}
.band-statement strong { color: var(--white); font-weight: 800; }

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  position: relative;
}
.flow::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
}
.flow-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.flow-marker {
  width: 42px;
  height: 42px;
  background: var(--teal);
  border-radius: 50%;
  padding: 7px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}
.flow-step strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  margin-top: 8px;
}
.flow-step span { font-size: 0.82rem; color: var(--on-dark-dim); }

@media (max-width: 760px) {
  .flow { grid-template-columns: repeat(2, 1fr); gap: 28px 8px; }
  .flow::before { display: none; }
}

/* faixa NR-01 */
.band-nr01 {
  border-top: 6px solid var(--risk-mid);
  text-align: left;
}
.nr01-lines { max-width: 46em; margin-bottom: 34px; }
.nr01-lines p { color: var(--on-dark-dim); margin: 0 0 14px; }
.nr01-lines strong { color: var(--white); }

/* ============================================================
   S4 — Método: mapa corporal + ferramentas + selo
   ============================================================ */
.metodo-intro { max-width: 44em; margin-bottom: 52px; }
.metodo-intro p { font-size: 1.05rem; color: rgba(21, 36, 42, 0.85); margin: 0; }

.mapa-wrap {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 44px;
  align-items: start;
  margin-bottom: 56px;
}
.mapa-figure { text-align: center; }
#mapa-corporal { width: 100%; max-width: 320px; height: auto; }
.mapa-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(21, 36, 42, 0.5);
  margin: 10px 0 0;
}
.mapa-hint kbd {
  border: 1px solid rgba(21, 36, 42, 0.25);
  border-radius: 4px;
  padding: 0 5px;
  font-family: inherit;
}

/* silhueta anatômica */
.sil { fill: rgba(13, 92, 102, 0.16); }
.sil-limb line { stroke: rgba(13, 92, 102, 0.16); stroke-linecap: round; }
.sil-ref line { stroke: rgba(13, 92, 102, 0.28); stroke-width: 1; }

/* segmentos interativos */
#mapa-corporal [data-seg] {
  fill: rgba(27, 148, 162, 0.22);
  stroke: var(--teal-dark);
  stroke-width: 1.5;
  cursor: pointer;
  transition: fill 0.15s ease, stroke-width 0.15s ease;
  outline: none;
}
#mapa-corporal [data-seg]:hover,
#mapa-corporal [data-seg]:focus-visible,
#mapa-corporal [data-seg].is-active {
  stroke-width: 3;
}
#mapa-corporal [data-seg]:focus-visible { stroke: var(--risk-mid); }

.mapa-card {
  background: var(--paper);
  border: 1px solid rgba(13, 92, 102, 0.14);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-height: 300px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.mapa-card-placeholder { color: rgba(21, 36, 42, 0.6); margin: 0; }
.mapa-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mapa-card .mapa-risco-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.mapa-card .mapa-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.mapa-card .mapa-achado {
  font-size: 0.92rem;
  color: rgba(21, 36, 42, 0.8);
  border-top: 1px dashed rgba(13, 92, 102, 0.25);
  padding-top: 14px;
  margin: 14px 0 0;
}
.mapa-card .mapa-achado-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
  display: block;
  margin-bottom: 6px;
}

@media (max-width: 820px) {
  .mapa-wrap { grid-template-columns: 1fr; }
  .mapa-card { position: static; min-height: 0; }
}

/* grade de ferramentas */
.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 56px;
}
.tool-chip { position: relative; cursor: help; font-size: 0.85rem; padding: 0.4em 0.9em; }
.tool-chip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 8px;
  width: max-content;
  max-width: 260px;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 20;
}
.tool-chip:hover::after,
.tool-chip:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* selo do entregável */
.selo {
  display: flex;
  align-items: center;
  gap: 30px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}
.selo-doc {
  width: 120px;
  height: 156px;
  background: linear-gradient(160deg, var(--teal-deep), var(--teal-dark));
  border-radius: 8px;
  box-shadow: 8px 10px 24px rgba(8, 63, 71, 0.28), inset 0 0 0 1px rgba(255,255,255,0.12);
  transform: rotate(-3deg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.selo-doc-inner { text-align: center; }
.selo-icon { width: 44px; height: 44px; margin: 0 auto 10px; }
.selo-doc-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--white);
  line-height: 1.3;
}
.selo-copy { margin: 0; font-size: 0.98rem; color: rgba(21, 36, 42, 0.82); }

@media (max-width: 640px) {
  .selo { flex-direction: column; text-align: center; }
}

/* ============================================================
   S5 — Demo viva do dashboard (§2.3, padrões da casa)
   ============================================================ */
.demo-dash {
  background: var(--white);
  border: 1px solid rgba(13, 92, 102, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 44px rgba(8, 63, 71, 0.10);
  overflow: hidden;
}
.demo-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--teal-deep);
  padding: 12px 20px;
}
.demo-topbar-icon { width: 22px; height: 22px; }
.demo-topbar-title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--on-dark);
}
.demo-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--on-dark-dim);
}
.demo-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--risk-ok);
}

/* KPI cards — espelho do padrão dos dashboards Ergoinsight */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 20px 20px 6px;
}
.kpi {
  background: var(--white);
  border: 1px solid rgba(13, 92, 102, 0.10);
  border-left: 4px solid var(--teal);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.1s ease;
}
.kpi:hover { box-shadow: 0 4px 16px rgba(8, 63, 71, 0.12); transform: translateY(-1px); }
.kpi.is-active { box-shadow: 0 0 0 2px var(--teal-hairline); }
.kpi.k-green { border-left-color: var(--risk-ok); }
.kpi.k-amber { border-left-color: var(--risk-mid); }
.kpi.k-red   { border-left-color: var(--risk-crit); }
.kpi-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: var(--ink);
  line-height: 1.1;
}
.kpi-label {
  font-size: 0.66rem;
  font-weight: 600;
  color: rgba(21, 36, 42, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.kpi-progress {
  margin-top: 8px;
  height: 3px;
  background: rgba(13, 92, 102, 0.12);
  border-radius: 2px;
  overflow: hidden;
}
.kpi-progress-fill { height: 100%; border-radius: 2px; }

.demo-cols {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 26px;
  padding: 18px 20px 20px;
}
.demo-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  margin: 0 0 12px;
}
.demo-sub { font-family: var(--font-mono); font-weight: 500; font-size: 0.68rem; color: rgba(21,36,42,0.5); }

/* gráfico de barras CSS (zero libs — performance budget §7) */
.demo-chart { display: flex; align-items: flex-end; gap: 12px; height: 190px; padding-top: 8px; }
.demo-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.demo-bar {
  width: 100%;
  max-width: 46px;
  border-radius: 5px 5px 0 0;
  transform-origin: bottom;
  animation: barGrow 0.6s var(--ease-out) both;
}
.demo-bar-label { font-family: var(--font-mono); font-size: 0.68rem; color: rgba(21,36,42,0.6); }

/* filtros + tabela */
.demo-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.demo-filter {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(13, 92, 102, 0.3);
  background: var(--white);
  color: var(--teal-dark);
  cursor: pointer;
  transition: background 0.15s ease;
}
.demo-filter:hover { background: var(--teal-soft); }
.demo-filter.is-active { background: var(--teal-dark); color: var(--white); border-color: var(--teal-dark); }

.demo-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.demo-table thead th {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  color: rgba(21, 36, 42, 0.55);
  border-bottom: 2px solid rgba(13, 92, 102, 0.16);
  padding: 6px 8px;
  position: sticky;
  top: 0;
  background: var(--white);
}
.demo-table td {
  padding: 9px 8px;
  border-bottom: 1px solid rgba(13, 92, 102, 0.08);
  vertical-align: middle;
}
.demo-table .t-id { font-family: var(--font-mono); font-size: 0.74rem; color: var(--teal-dark); white-space: nowrap; }
.t-status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.t-status.st-done { background: rgba(46, 158, 91, 0.14); color: #1d6e3e; }
.t-status.st-doing { background: rgba(230, 168, 23, 0.16); color: #8a6208; }
.t-status.st-todo { background: rgba(13, 92, 102, 0.10); color: var(--teal-dark); }
.t-risk-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

.demo-legend {
  font-size: 0.9rem;
  text-align: center;
  color: rgba(21, 36, 42, 0.7);
  border-top: 1px dashed rgba(13, 92, 102, 0.2);
  margin: 0;
  padding: 16px 20px;
}
.demo-cta { text-align: center; margin: 30px 0 60px; }

@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-cols { grid-template-columns: 1fr; }
  .demo-chart { height: 150px; }
}

/* 4 recursos */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(13, 92, 102, 0.10);
  border-left: 4px solid var(--teal);
  padding: 22px 24px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 8px;
}
.feature-card p { margin: 0; font-size: 0.92rem; color: rgba(21, 36, 42, 0.75); }

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

/* ============================================================
   S4b — Tecnologia (app de coleta + pipeline IA)
   ============================================================ */
.tech {
  position: relative;
  background: linear-gradient(148deg, var(--teal-deep) 0%, var(--teal-dark) 100%);
  color: var(--on-dark);
  overflow: hidden;
}
.tech::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--dot-grid);
  background-size: var(--dot-grid-size);
  pointer-events: none;
}
.tech .container { position: relative; }
.tech-grid {
  display: grid;
  grid-template-columns: minmax(250px, 330px) 1fr;
  gap: 60px;
  align-items: center;
}

/* mock do celular */
.tech-phone {
  width: 258px;
  margin: 0 auto;
  background: #0b1f24;
  border-radius: 34px;
  padding: 12px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.10);
}
.tech-phone-screen {
  background: var(--paper);
  border-radius: 24px;
  padding: 18px 16px 22px;
  color: var(--ink);
}
.tp-header { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.tp-logo { width: 20px; height: 20px; }
.tp-title { font-family: var(--font-mono); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.1em; color: var(--teal-dark); }
.tp-timer { text-align: center; margin-bottom: 14px; }
.tp-timer-val {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--teal-dark);
}
.tp-timer-dec { font-size: 1.4rem; }
.tp-timer-label { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.14em; color: rgba(21,36,42,0.5); }
.tp-counters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.tp-counter {
  background: var(--white);
  border: 1px solid rgba(13, 92, 102, 0.14);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: rgba(21,36,42,0.55);
}
.tp-counter span {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--ink);
}
.tp-progress { height: 5px; background: rgba(13,92,102,0.14); border-radius: 3px; overflow: hidden; }
.tp-progress-fill { width: 79%; height: 100%; background: var(--teal); border-radius: 3px; }
.tp-progress-label { display: block; font-size: 0.62rem; color: rgba(21,36,42,0.55); margin: 6px 0 12px; }
.tp-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tp-chip {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(13,92,102,0.25);
  color: var(--teal-dark);
}
.tp-chip.ok { background: rgba(46,158,91,0.14); border-color: var(--risk-ok); color: #1d6e3e; }
.tp-chip.mid { background: rgba(230,168,23,0.16); border-color: var(--risk-mid); color: #8a6208; }
.tech-phone-caption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--on-dark-dim);
  margin: 18px 0 0;
}
.tech-live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--risk-ok);
  margin-right: 7px;
  animation: pulse 2s ease infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }
.tech-phone-caption strong { color: var(--white); }

/* fluxo IA */
.tech-lead { font-size: 1.05rem; line-height: 1.7; color: var(--on-dark-dim); margin: 0 0 30px; }
.tech-lead strong { color: var(--white); }
.tech-flow { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.tech-flow li { display: flex; gap: 16px; align-items: flex-start; }
.tech-flow-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--teal);
  filter: brightness(1.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 4px 8px;
  flex-shrink: 0;
}
.tech-flow strong { color: var(--white); font-size: 1.02rem; }
.tech-flow span { color: var(--on-dark-dim); font-size: 0.9rem; }
.tech-future {
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  margin: 0;
  color: var(--on-dark-dim);
  font-size: 0.95rem;
}
.tech-future strong { color: var(--white); }

@media (max-width: 880px) {
  .tech-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   S5c — Gestão contínua
   ============================================================ */
.gc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}
.gc-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--teal);
  box-shadow: 0 2px 10px rgba(8, 63, 71, 0.06);
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gc-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.15;
  margin: 0;
}
.gc-card p { margin: 0; font-size: 0.9rem; color: rgba(21, 36, 42, 0.75); flex: 1; }
.gc-card .chip-nr { align-self: flex-start; }
@media (max-width: 900px) { .gc-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Scroll-reveal (site.js adiciona .will-reveal/.is-revealed)
   ============================================================ */
.will-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.will-reveal.is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .will-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   S5b — Simulador FAP × RAT
   ============================================================ */
.fap-intro { max-width: 46em; font-size: 1.02rem; color: rgba(21, 36, 42, 0.82); margin: 0 0 40px; }

.fap-sim {
  background: var(--paper);
  border: 1px solid rgba(13, 92, 102, 0.14);
  border-radius: var(--radius-lg);
  padding: 34px 36px 30px;
}
.fap-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 30px;
  margin-bottom: 30px;
}
.fap-field { display: flex; flex-direction: column; gap: 10px; }
.fap-field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(21, 36, 42, 0.7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.fap-input-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--teal-dark);
}
.fap-input-wrap input {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--ink);
  border: none;
  border-bottom: 2px solid var(--teal-hairline);
  background: transparent;
  width: 100%;
  max-width: 220px;
  padding: 2px 4px;
}
.fap-input-wrap input:focus { outline: none; border-bottom-color: var(--teal-dark); }

.fap-rat { display: flex; gap: 8px; }
.fap-rat button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 8px 20px;
  border-radius: 10px;
  border: 1.5px solid rgba(13, 92, 102, 0.3);
  background: var(--white);
  color: var(--teal-dark);
  cursor: pointer;
  transition: background 0.15s ease;
}
.fap-rat button:hover { background: var(--teal-soft); }
.fap-rat button.is-active { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }

#fap-slider {
  width: 100%;
  accent-color: var(--teal-dark);
  height: 28px;
  cursor: pointer;
}
#fap-valor { font-family: var(--font-mono); font-size: 0.95rem; color: var(--teal-dark); }
.fap-range-ends {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: rgba(21, 36, 42, 0.5);
}

.fap-cards {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.fap-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(13, 92, 102, 0.12);
  border-top: 4px solid var(--teal);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
.fap-best  { border-top-color: var(--risk-ok); }
.fap-now   { border-top-color: var(--teal-dark); box-shadow: 0 10px 28px rgba(8, 63, 71, 0.14); transform: translateY(-4px); }
.fap-worst { border-top-color: var(--risk-crit); }
.fap-card-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(21, 36, 42, 0.55);
}
.fap-card-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  color: var(--ink);
  line-height: 1.05;
}
.fap-now .fap-card-val { color: var(--teal-dark); }
.fap-card-sub { font-size: 0.72rem; color: rgba(21, 36, 42, 0.5); }

.fap-delta {
  text-align: center;
  font-size: 1.08rem;
  margin: 26px 0 10px;
  color: rgba(21, 36, 42, 0.85);
}
.fap-delta strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--risk-crit);
}
.fap-note {
  font-size: 0.78rem;
  color: rgba(21, 36, 42, 0.55);
  max-width: 52em;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 900px) {
  .fap-controls, .fap-cards { grid-template-columns: 1fr; }
  .fap-now { transform: none; }
  .fap-sim { padding: 24px 20px; }
}

/* ============================================================
   S7 — Prova (contadores)
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-val {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  color: var(--teal-dark);
  line-height: 1;
}
.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 0.86rem;
  color: rgba(21, 36, 42, 0.65);
  max-width: 16em;
  margin-left: auto;
  margin-right: auto;
}
.stats-note {
  margin: 40px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(21, 36, 42, 0.45);
}
@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 16px; } }

/* ============================================================
   S8 — Como começa
   ============================================================ */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: 0 2px 10px rgba(8, 63, 71, 0.06);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-dark);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin: 0 0 8px; }
.step p { margin: 0; font-size: 0.92rem; color: rgba(21, 36, 42, 0.75); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ============================================================
   S9 — CTA final + formulário (§6)
   ============================================================ */
.cta-final {
  position: relative;
  background: linear-gradient(148deg, var(--teal-deep) 0%, var(--teal-dark) 100%);
  overflow: hidden;
  text-align: center;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--dot-grid);
  background-size: var(--dot-grid-size);
  pointer-events: none;
}
.cta-watermark {
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 380px;
  opacity: 0.07;
  pointer-events: none;
}
.cta-final .container { position: relative; }

.lead-form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--on-dark);
}
.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form input[type="email"],
.lead-form select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}
.lead-form input:focus, .lead-form select:focus {
  outline: 3px solid var(--risk-mid);
  outline-offset: 1px;
}
.lgpd {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  font-weight: 400 !important;
  font-size: 0.78rem !important;
  color: var(--on-dark-dim) !important;
}
.lgpd input { margin-top: 2px; }
.lgpd-link { color: var(--on-dark); }
.form-submit { justify-content: center; margin-top: 6px; }
.form-micro {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--on-dark-dim);
}
.cta-alt { margin: 30px 0 0; color: var(--on-dark-dim); font-size: 0.92rem; }
.cta-alt a { color: var(--white); font-weight: 600; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ============================================================
   S10 — Footer
   ============================================================ */
.site-footer {
  background: var(--teal-dark);
  color: var(--on-dark-dim);
  padding: 44px 0 34px;
  font-size: 0.85rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px 40px;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-icon { width: 40px; height: 40px; background: var(--teal); border-radius: 10px; padding: 5px; box-sizing: border-box; }
.footer-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--white);
}
.footer-tagline { display: block; font-size: 0.72rem; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.footer-contact a { color: var(--on-dark); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-nrs { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-note {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
}
.footer-note a { color: var(--on-dark); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand, .footer-nrs { justify-content: center; }
  .footer-brand { flex-direction: column; }
}

/* ============================================================
   WhatsApp flutuante (§5.4)
   ============================================================ */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(8, 63, 71, 0.35);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.07); }

/* ============================================================
   Modal lead magnet (§5.3)
   ============================================================ */
.modal-backdrop[hidden] { display: none; }
.urgency-bar[hidden] { display: none; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 63, 71, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  border-top: 6px solid var(--risk-mid);
  max-width: 420px;
  width: 100%;
  padding: 32px 30px 26px;
  box-shadow: 0 24px 70px rgba(8, 63, 71, 0.4);
}
.modal h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  margin: 0 0 8px;
}
.modal p { margin: 0 0 18px; font-size: 0.92rem; color: rgba(21, 36, 42, 0.75); }
.modal-form { display: flex; flex-direction: column; gap: 12px; }
.modal-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; font-weight: 600; }
.modal-form input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid rgba(13, 92, 102, 0.3);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: rgba(21, 36, 42, 0.5);
}
.modal-skip {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 0.8rem;
}

/* ============================================================
   Página satélite / interna
   ============================================================ */
.page-hero {
  background: linear-gradient(148deg, var(--teal-deep), var(--teal-dark));
  color: var(--on-dark);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--dot-grid);
  background-size: var(--dot-grid-size);
}
.page-hero .container { position: relative; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  color: var(--white);
  margin: 0 0 14px;
}
.page-hero .sub { color: var(--on-dark-dim); max-width: 38em; margin: 0; }
.prose { max-width: 46em; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  margin: 40px 0 12px;
}
.prose p { color: rgba(21, 36, 42, 0.82); }
.material-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--risk-mid);
  box-shadow: 0 2px 10px rgba(8, 63, 71, 0.06);
  padding: 28px;
  max-width: 460px;
}
.material-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; margin: 0 0 8px; }
.material-card p { font-size: 0.9rem; color: rgba(21,36,42,0.75); }

/* ============================================================
   Página NR-01 — timeline e checklist
   ============================================================ */
.nr01-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}
.nr01-timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 4%;
  right: 4%;
  height: 2px;
  background: rgba(13, 92, 102, 0.15);
}
.nr01-timeline li {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  border-top: 4px solid var(--teal);
  margin-top: 30px;
}
.nr01-timeline li::before {
  content: "";
  position: absolute;
  top: -38px;
  left: 26px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--teal-hairline);
}
.nr01-timeline li.tl-hot { border-top-color: var(--risk-mid); }
.nr01-timeline li.tl-hot::before { background: var(--risk-mid); }
.nr01-timeline strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 10px 0 6px;
}
.nr01-timeline p { margin: 0; font-size: 0.88rem; color: rgba(21, 36, 42, 0.75); }
@media (max-width: 820px) {
  .nr01-timeline { grid-template-columns: 1fr; }
  .nr01-timeline::before { display: none; }
  .nr01-timeline li { margin-top: 0; }
  .nr01-timeline li::before { display: none; }
}

.nr01-check {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 44em;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nr01-check li {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(13, 92, 102, 0.12);
  padding: 14px 18px 14px 46px;
  position: relative;
  font-size: 0.95rem;
}
.nr01-check li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--risk-ok);
}


/* ============================================================
   V2 — "MEMORÁVEL"
   Hero cinematográfico · fio papel→dado · ritmo editorial ·
   especialista · interativos com attract. Camada de overrides.
   ============================================================ */

/* ---------- fio papel→dado: eyebrow numerado de seção ---------- */
.sec-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--teal-dark);
  margin: 0 0 18px;
}
.on-dark .sec-eyebrow { color: var(--teal); filter: brightness(1.55); }
.se-dash { display: inline-flex; gap: 5px; }
.se-dash::before,
.se-dash::after {
  content: "";
  height: 5px;
  border-radius: 3px;
  background: var(--teal);
}
.se-dash::before { width: 22px; }
.se-dash::after { width: 9px; background: var(--risk-mid); }

/* ---------- HERO cinematográfico ---------- */
.hero-photo { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  filter: grayscale(1) contrast(1.15) blur(1.5px);
  mix-blend-mode: soft-light;
  transform: scale(1.06);
  animation: kenburns 28s ease-in-out infinite alternate;
}
@keyframes kenburns { to { transform: scale(1.16) translateX(-2%); } }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(120% 95% at 50% 8%, transparent 55%, rgba(4, 28, 32, 0.55) 100%);
}
.hero .container { z-index: 1; }
.hero-copy h1 {
  font-size: clamp(3rem, 6.6vw, 5.4rem);
  line-height: 0.98;
}
.hero-scrollcue {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  color: rgba(234, 244, 245, 0.5);
  opacity: 0;
  animation: rise 0.7s var(--ease-out) 3s forwards;
}
.hero-scrollcue span {
  width: 1px;
  height: 34px;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75));
  transform-origin: top;
  animation: cueDrop 2s var(--ease-out) infinite;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); opacity: 1; }
  55% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* (v3) a animação do hero vive no bloco a2-* acima */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---------- S2 — livro-razão editorial (sem cards) ---------- */
.pain-ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.pain-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 40px 30px 10px 0;
}
.pain-item + .pain-item {
  border-left: 1px solid rgba(13, 92, 102, 0.16);
  padding-left: 30px;
}
.pain-ghost {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 5.4rem;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(13, 92, 102, 0.28);
  user-select: none;
}
.pain-item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.65rem;
  line-height: 1.1;
  margin: 4px 0 0;
}
.pain-item p { margin: 0; font-size: 0.95rem; color: rgba(21, 36, 42, 0.82); flex: 1; }
.pain-item .chip-nr { align-self: flex-start; }
.pain-item-featured .pain-ghost { -webkit-text-stroke-color: rgba(201, 53, 43, 0.45); }
.pain-item-featured .pain-badge {
  position: absolute;
  top: 12px;
  right: 0;
  background: var(--risk-crit);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
@media (max-width: 900px) {
  .pain-ledger { grid-template-columns: 1fr; }
  .pain-item { padding: 30px 0 26px; }
  .pain-item + .pain-item { border-left: none; border-top: 1px solid rgba(13, 92, 102, 0.16); padding-left: 0; }
  .pain-item-featured .pain-badge { top: 30px; }
}

/* ---------- S4 — especialista (quem assina) ---------- */
.especialista {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 52px;
  align-items: center;
  margin-bottom: 60px;
}
.esp-foto {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 3.7;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(13, 92, 102, 0.2);
  background:
    repeating-linear-gradient(45deg,
      rgba(13, 92, 102, 0.06) 0 10px,
      rgba(13, 92, 102, 0.11) 10px 20px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.esp-foto::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 2px solid var(--teal-hairline);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.esp-foto-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: rgba(13, 92, 102, 0.65);
  text-align: center;
}
.esp-stamp {
  position: absolute;
  bottom: -16px;
  right: -14px;
  transform: rotate(-4deg);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6rem;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-align: center;
  color: var(--teal-dark);
  border: 2px solid var(--teal-dark);
  border-radius: 8px;
  padding: 7px 12px;
  background: var(--white);
  box-shadow: 0 6px 18px rgba(8, 63, 71, 0.18);
}
.esp-kicker {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--teal-dark);
  margin: 0 0 10px;
}
.esp-nome {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  line-height: 1;
  margin: 0 0 6px;
  color: var(--ink);
}
.esp-titulo {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--teal-dark);
  margin: 0 0 18px;
}
.esp-texto { font-size: 1.05rem; color: rgba(21, 36, 42, 0.85); margin: 0 0 18px; max-width: 36em; }
.esp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 820px) {
  .especialista { grid-template-columns: 1fr; gap: 40px; }
  .esp-foto { max-width: 260px; margin: 0 auto; }
}

/* ---------- S7 — prova com escala editorial ---------- */
.stat-val { font-size: clamp(2.8rem, 7vw, 5.4rem); }
@media (min-width: 801px) {
  .stats-grid { gap: 0; }
  .stat { padding: 0 20px; }
  .stat + .stat { border-left: 1px solid rgba(13, 92, 102, 0.14); }
}

/* ---------- S8 — trilho conectado (sem cards) ---------- */
.steps { position: relative; }
.steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(13, 92, 102, 0.16);
}
.step {
  background: transparent;
  box-shadow: none;
  padding: 0 26px 0 0;
}
.step-num { position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--paper); }
@media (max-width: 760px) {
  .steps::before { display: none; }
}

/* ---------- demo: barras só crescem quando visíveis ---------- */
.demo-dash.will-reveal:not(.is-revealed) .demo-bar { animation-play-state: paused; }

/* ---------- FAP: dica de arraste ---------- */
.fap-hint {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--teal-dark);
  animation: pulse 2s ease infinite;
  transition: opacity 0.4s ease;
}
.fap-delta strong { display: inline-block; }
.fap-delta strong.is-bump { animation: bump 0.35s var(--ease-out); }
@keyframes bump { 30% { transform: scale(1.12); } }

/* ---------- reduced motion (v2) ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-photo img { animation: none; transform: none; }
  .hero-scrollcue { animation: none; opacity: 1; }
  .hero-scrollcue span { animation: none; }
  .a2-doc, .a2-dash { animation: none; }
  .fap-hint { animation: none; }
}


/* ============================================================
   V3 — marca na cor original · circuito · carimbo · boneco vivo
   painéis por KPI · FAP colorido · app NR-01 · S09 viva · página
   psicossocial persuasiva
   ============================================================ */

/* ---------- marca na cor original ---------- */
.demo-topbar-icon, .cta-watermark { filter: brightness(0) invert(1); }
.footer-icon { background: var(--white); }
.selo-doc {
  position: relative;
  background: var(--white);
  border: 2px solid var(--teal-dark);
  box-shadow: 8px 10px 24px rgba(8, 63, 71, 0.18);
}
.selo-doc::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f6d060, #e6a817 62%, #a97a10);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.selo-doc-title { color: var(--teal-dark); }

/* ---------- S3: circuito elétrico das 4 fases ---------- */
.flow { --fc: 5.2s; }
.flow::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.10), rgba(127, 224, 234, 0.35), rgba(255, 255, 255, 0.10));
}
.flow::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 12%;
  width: 52px;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, #9fe8f0 55%, #ffffff);
  box-shadow: 0 0 14px 3px rgba(127, 224, 234, 0.75);
  animation: sparkRun var(--fc) linear infinite;
  pointer-events: none;
}
@keyframes sparkRun {
  0%   { left: 12%; opacity: 0; }
  4%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: calc(88% - 52px); opacity: 0; }
}
.flow-marker {
  background: var(--white);
  border: 2px solid var(--teal);
  animation: energize var(--fc) ease infinite;
}
.flow-step strong { animation: energizeText var(--fc) ease infinite; }
.flow-step:nth-child(1) .flow-marker, .flow-step:nth-child(1) strong { animation-delay: calc(var(--fc) * 0.005); }
.flow-step:nth-child(2) .flow-marker, .flow-step:nth-child(2) strong { animation-delay: calc(var(--fc) * 0.335); }
.flow-step:nth-child(3) .flow-marker, .flow-step:nth-child(3) strong { animation-delay: calc(var(--fc) * 0.66); }
.flow-step:nth-child(4) .flow-marker, .flow-step:nth-child(4) strong { animation-delay: calc(var(--fc) * 0.985); }
@keyframes energize {
  0%, 1% { box-shadow: 0 0 0 0 rgba(159, 232, 240, 0); transform: scale(1); border-color: var(--teal); }
  6%     { box-shadow: 0 0 0 9px rgba(159, 232, 240, 0.22), 0 0 26px 6px rgba(159, 232, 240, 0.6); transform: scale(1.14); border-color: #9fe8f0; }
  28%, 100% { box-shadow: 0 0 0 0 rgba(159, 232, 240, 0); transform: scale(1); border-color: var(--teal); }
}
@keyframes energizeText {
  0%, 1% { color: var(--on-dark); text-shadow: none; }
  6%     { color: #9fe8f0; text-shadow: 0 0 18px rgba(159, 232, 240, 0.8); }
  28%, 100% { color: var(--on-dark); text-shadow: none; }
}
@media (max-width: 760px) { .flow::after { display: none; } }

/* ---------- S4: carimbo da responsável técnica ---------- */
.esp-stamp {
  bottom: -22px;
  right: -20px;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  line-height: 1.55;
  color: var(--teal-dark);
  border: 3px double var(--teal-dark);
  border-radius: 10px;
  padding: 10px 16px;
  background:
    radial-gradient(circle at 22% 32%, rgba(255, 255, 255, 0.55) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 62%, rgba(255, 255, 255, 0.5) 0 2px, transparent 3px),
    rgba(255, 255, 255, 0.93);
  box-shadow: 0 8px 22px rgba(8, 63, 71, 0.22);
  transform: rotate(-8deg);
}
.especialista.will-reveal .esp-stamp { opacity: 0; }
.especialista.will-reveal.is-revealed .esp-stamp {
  animation: stampIn 0.5s cubic-bezier(0.18, 1.35, 0.4, 1) 0.55s both;
}
@keyframes stampIn {
  0%   { opacity: 0; transform: scale(3) rotate(10deg); }
  55%  { opacity: 1; transform: scale(0.9) rotate(-9.5deg); }
  72%  { transform: scale(1.07) rotate(-7deg); }
  100% { opacity: 1; transform: scale(1) rotate(-8deg); }
}

/* ---------- S4: boneco com membros vivos ---------- */
.sil-fill { fill: rgba(13, 92, 102, 0.16); }
.limb { transform-box: view-box; }
.arm-l { animation: armSwing 4.2s ease-in-out infinite; }
.arm-r { animation: armSwing 4.2s ease-in-out -2.1s infinite; }
.leg-l { animation: legSwing 4.2s ease-in-out -2.1s infinite; }
.leg-r { animation: legSwing 4.2s ease-in-out infinite; }
@keyframes armSwing { 0%, 100% { transform: rotate(4deg); } 50% { transform: rotate(-4deg); } }
@keyframes legSwing { 0%, 100% { transform: rotate(2.4deg); } 50% { transform: rotate(-2.4deg); } }

/* ---------- S5: um painel para cada KPI ---------- */
.demo-chart { display: block; height: auto; min-height: 190px; padding-top: 0; }
.demo-vbars { display: flex; align-items: flex-end; gap: 12px; height: 190px; padding-top: 8px; }
.panel-anim { animation: panelIn 0.4s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }
.demo-ring-wrap { display: flex; align-items: center; gap: 22px; min-height: 190px; }
.demo-ring { width: 150px; flex-shrink: 0; }
.demo-ring-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.demo-ring-legend li { display: flex; gap: 10px; align-items: baseline; font-size: 0.82rem; }
.demo-ring-legend strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.demo-ring-legend li span:last-child, .demo-ring-legend div span { color: rgba(21, 36, 42, 0.6); font-size: 0.75rem; }
.demo-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; position: relative; top: 1px; }
.demo-acoes { min-height: 190px; display: flex; flex-direction: column; justify-content: center; }
.demo-stack { display: flex; height: 30px; border-radius: 9px; overflow: hidden; margin: 0 0 18px; }
.demo-panel-note { font-size: 0.74rem; color: rgba(21, 36, 42, 0.55); margin: 14px 0 0; }
.demo-hbars { min-height: 190px; display: flex; flex-direction: column; gap: 11px; justify-content: center; }
.demo-hbar-row { display: grid; grid-template-columns: 48px 1fr 74px; gap: 10px; align-items: center; }
.demo-hbar-label { font-family: var(--font-mono); font-size: 0.68rem; color: rgba(21, 36, 42, 0.6); }
.demo-hbar-val { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink); text-align: right; white-space: nowrap; }
.demo-hbar-track { height: 15px; border-radius: 8px; background: rgba(13, 92, 102, 0.08); overflow: hidden; }
.demo-hbar-fill { display: block; height: 100%; border-radius: 8px; transform-origin: left; animation: hbarG 0.6s var(--ease-out) both; }
@keyframes hbarG { from { transform: scaleX(0); } }
@media (max-width: 900px) {
  .demo-vbars { height: 150px; }
  .demo-ring-wrap, .demo-hbars, .demo-acoes { min-height: 0; }
}

/* ---------- S5b: FAP legível e "regulável" ---------- */
.fap-edit-tag {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--teal-dark);
  border: 1px dashed rgba(13, 92, 102, 0.5);
  border-radius: 999px;
  padding: 2px 9px;
}
.fap-input-wrap input { border-bottom-style: dashed; cursor: text; }
.fap-sim:not(.fap-touched) .fap-input-wrap input { animation: editPulse 2.4s ease infinite; }
@keyframes editPulse {
  0%, 100% { border-bottom-color: var(--teal-hairline); }
  50% { border-bottom-color: var(--risk-mid); }
}
.fap-meter { display: block; height: 9px; border-radius: 5px; background: rgba(13, 92, 102, 0.1); overflow: hidden; margin-top: 10px; }
.fap-meter-fill { display: block; height: 100%; width: 33%; border-radius: 5px; background: var(--risk-mid); transition: width 0.15s ease, background 0.15s ease; }
.fap-now { transition: border-top-color 0.15s ease; }
.fap-now .fap-card-val { transition: color 0.15s ease; }

/* ---------- S7: app do questionário psicossocial ---------- */
.nr01-grid { display: grid; grid-template-columns: 1fr minmax(240px, 300px); gap: 48px; align-items: center; margin-bottom: 34px; }
.nr01-grid .nr01-lines { margin-bottom: 0; }
.np-anon { margin-left: auto; font-family: var(--font-mono); font-size: 0.5rem; font-weight: 500; letter-spacing: 0.08em; color: #1d6e3e; background: rgba(46, 158, 91, 0.14); border: 1px solid var(--risk-ok); border-radius: 999px; padding: 2px 7px; }
.np-progress { height: 5px; background: rgba(13, 92, 102, 0.14); border-radius: 3px; overflow: hidden; margin: 2px 0 6px; }
.np-progress-fill { display: block; width: 40%; height: 100%; background: var(--risk-mid); border-radius: 3px; }
.np-count { display: block; font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.06em; color: rgba(21, 36, 42, 0.55); }
.np-qbox { position: relative; height: 62px; margin: 12px 0; }
.np-q { position: absolute; inset: 0; margin: 0; font-size: 0.8rem; font-weight: 600; line-height: 1.45; color: var(--ink); opacity: 0; animation: npQ 12s ease infinite; }
.np-q.q2 { animation-delay: 4s; }
.np-q.q3 { animation-delay: 8s; }
@keyframes npQ {
  0%       { opacity: 0; transform: translateY(6px); }
  4%       { opacity: 1; transform: translateY(0); }
  30%      { opacity: 1; }
  36%, 100%{ opacity: 0; transform: translateY(-6px); }
}
.np-likert { display: flex; flex-direction: column; gap: 6px; }
.np-opt { font-size: 0.68rem; font-weight: 600; padding: 7px 10px; border: 1px solid rgba(13, 92, 102, 0.22); border-radius: 8px; color: rgba(21, 36, 42, 0.75); background: var(--white); }
.np-opt.is-picked { background: var(--teal-dark); color: var(--white); border-color: var(--teal-dark); animation: npPick 4s ease infinite; }
@keyframes npPick { 0%, 4% { transform: scale(1); } 8% { transform: scale(1.04); } 12%, 100% { transform: scale(1); } }
.np-foot { display: block; margin-top: 12px; font-family: var(--font-mono); font-size: 0.52rem; color: rgba(21, 36, 42, 0.5); text-align: center; }
.nr01-phone-caption { font-size: 0.82rem; color: var(--on-dark-dim); text-align: center; margin: 16px 0 0; }
.nr01-phone-caption strong { color: var(--white); }
@media (max-width: 880px) { .nr01-grid { grid-template-columns: 1fr; gap: 36px; } .nr01-phone { margin: 0 auto; } }

/* ---------- S9: como começa, agora com pulso ---------- */
.steps::before {
  background: linear-gradient(90deg, rgba(13, 92, 102, 0.16), var(--teal), rgba(13, 92, 102, 0.16));
  background-size: 200% 100%;
  animation: railFlow 3s linear infinite;
}
@keyframes railFlow { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.step { position: relative; }
.step-featured {
  background: var(--white);
  border: 1.5px solid var(--teal-hairline);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 14px 40px rgba(8, 63, 71, 0.14);
  transform: translateY(-8px);
}
.step-flag {
  position: absolute;
  top: -12px;
  right: 18px;
  background: var(--risk-mid);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  animation: flagPulse 2s ease infinite;
}
@keyframes flagPulse { 50% { box-shadow: 0 0 0 8px rgba(230, 168, 23, 0.22); } }
.step-cta { margin-top: 16px; font-size: 0.85rem; padding: 0.8em 1.3em; }
.steps-punch {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  margin: 44px 0 0;
  color: var(--ink);
}
.steps-punch strong { color: var(--risk-crit); font-weight: 800; }
@media (max-width: 760px) { .step-featured { transform: none; } }

/* ---------- página NR-01: pílula de status + versus ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--risk-mid);
  filter: brightness(1.15);
  background: rgba(230, 168, 23, 0.12);
  border: 1px solid var(--risk-mid);
  border-radius: 999px;
  padding: 7px 16px;
  margin: 0 0 20px;
}
.status-pill .sp-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--risk-crit);
  box-shadow: 0 0 10px rgba(201, 53, 43, 0.9);
  animation: pulse 1.6s ease infinite;
}
.versus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.versus-card { border-radius: var(--radius-lg); padding: 28px; }
.versus-no  { background: rgba(201, 53, 43, 0.05); border: 1px solid rgba(201, 53, 43, 0.28); }
.versus-yes { background: var(--teal-soft); border: 1px solid var(--teal-hairline); box-shadow: 0 12px 32px rgba(8, 63, 71, 0.10); }
.versus-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; margin: 0 0 16px; }
.versus-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 0.92rem; color: rgba(21, 36, 42, 0.8); }
.versus-card li { padding-left: 26px; position: relative; }
.versus-no li::before  { content: "✕"; position: absolute; left: 0; font-weight: 700; color: var(--risk-crit); }
.versus-yes li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: var(--risk-ok); }
@media (max-width: 760px) { .versus-grid { grid-template-columns: 1fr; } }

/* ---------- reduced motion (v3) ---------- */
@media (prefers-reduced-motion: reduce) {
  .flow::after, .flow-marker, .flow-step strong, .limb,
  .np-q, .np-opt.is-picked, .steps::before, .step-flag,
  .status-pill .sp-dot, .esp-stamp, .fap-sim:not(.fap-touched) .fap-input-wrap input {
    animation: none !important;
  }
  .esp-stamp { opacity: 1 !important; }
  .np-q.q1 { opacity: 1; }
}

/* assinatura de criação */
.footer-sign {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.footer-sign strong { color: rgba(255, 255, 255, 0.8); font-weight: 500; letter-spacing: 0.12em; }

/* retrato real da responsável técnica */
.esp-foto-real { background: none; border: 0; padding: 0; overflow: visible; }
.esp-foto-real::before, .esp-foto-real::after { display: none; }
.esp-foto-real img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 52px rgba(8, 63, 71, 0.22);
}

/* ---------- página de documento (privacidade/LGPD) ---------- */
.doc-meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--on-dark-dim); margin: 18px 0 0; }
.doc-page { max-width: 760px; }
.doc-block { padding: 30px 0; border-top: 1px solid rgba(13, 92, 102, 0.14); }
.doc-block:first-child { border-top: 0; padding-top: 0; }
.doc-block h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 14px; color: var(--ink); }
.doc-block h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin: 22px 0 8px; color: var(--teal-dark); }
.doc-block p { font-size: 0.96rem; line-height: 1.7; color: rgba(21, 36, 42, 0.82); margin: 0 0 12px; text-wrap: pretty; }
.doc-list { list-style: none; margin: 6px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.doc-list li { position: relative; padding-left: 22px; font-size: 0.94rem; line-height: 1.65; color: rgba(21, 36, 42, 0.82); }
.doc-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 2px; background: var(--teal); }
.doc-note { font-size: 0.86rem !important; color: rgba(21, 36, 42, 0.6) !important; border-left: 2px solid var(--teal-hairline); padding-left: 14px; }
.doc-cta { margin-top: 40px; padding: 30px; background: var(--teal-soft); border-radius: var(--radius-lg); text-align: center; }
.doc-cta p { margin: 0 0 18px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); }


/* ============================================================
   AJUSTES DE PUBLICAÇÃO
   Skip link, menu mobile e correções de produção.
   Mantenha este bloco no FIM do arquivo.
   ============================================================ */

/* --- skip link (acessibilidade) --- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--teal-dark);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  text-decoration: none;
}
.skip:focus { left: 0; }

/* --- menu mobile --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--teal-dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-header .container { position: relative; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-top: 1px solid var(--teal-hairline);
    box-shadow: 0 18px 40px rgba(8, 63, 71, 0.16);
    padding: 8px 20px 18px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a.nav-link {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(13, 92, 102, 0.1);
  }
  .main-nav .header-cta { margin-top: 14px; text-align: center; justify-content: center; }
}

/* --- produção: mídia nunca estoura o container --- */
img, svg, video { max-width: 100%; }

section[id],div[id]{scroll-margin-top:96px}
