/* ── Reset & Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Defaults — sobrescritos pelo PHP via CSS inline com valores do banco */
  --cor-primaria:     #0b1f3a;
  --cor-secundaria:   #0ea5e9;
  --cor-destaque:     #38bdf8;
  --cor-fundo:        #f0f9ff;
  --cor-texto:        #1e293b;
  --cor-btn-texto:    #ffffff;
  --cor-header-texto: #ffffff;
  --hero-bg:          #0b1f3a;

  --radius:    8px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.16);
  --trans:     .25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--cor-texto);
  background: var(--cor-fundo);
  line-height: 1.65;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a   { color: var(--cor-secundaria); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--cor-destaque); }

/* ── Tipografia ───────────────────────────────────────────────────────── */
h1,h2,h3,h4 { line-height: 1.25; font-weight: 700; color: var(--cor-primaria); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cor-secundaria);
  margin-bottom: .5rem;
}

/* ── Layout ───────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
section    { padding: 5rem 0; }
section:nth-child(even) { background: #fff; }

/* ── Botões ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: transform var(--trans), box-shadow var(--trans), opacity var(--trans);
  text-decoration: none; white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--cor-secundaria);
  color: var(--cor-btn-texto);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.6);
}
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.btn-whatsapp svg { width: 20px; height: 20px; fill: currentColor; }
.btn-sm { padding: .5rem 1.1rem; font-size: .875rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.1rem; }

/* ── Header ───────────────────────────────────────────────────────────── */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: var(--cor-primaria);
  box-shadow: var(--shadow-md);
  transition: background var(--trans);
}

.nav {
  display: flex; align-items: center; gap: 1.5rem;
  height: 68px;
}

.nav-logo {
  font-size: 1.2rem; font-weight: 800;
  color: var(--cor-header-texto);
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { height: 40px; width: auto; }

.nav-menu {
  display: flex; gap: 1.25rem; list-style: none;
  flex: 1; justify-content: center;
}
.nav-menu a {
  color: rgba(255,255,255,.85); font-size: .9rem; font-weight: 500;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--trans), border-color var(--trans);
}
.nav-menu a:hover,
.nav-menu a.ativo { color: #fff; border-color: var(--cor-destaque); }

.nav-actions { display: flex; gap: .75rem; align-items: center; }

.btn-area-restrita {
  background: transparent;
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--radius);
  padding: .45rem 1rem;
  font-size: .85rem; font-weight: 600;
  transition: all var(--trans);
  text-decoration: none;
}
.btn-area-restrita:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.7);
}

.nav-toggle {
  display: none; background: none; border: none;
  color: #fff; font-size: 1.5rem; cursor: pointer; padding: .25rem;
}

/* ══════════════════════════════════════════════════════════════════════
   HERO STICKY PARALLAX — 4 FASES
   ══════════════════════════════════════════════════════════════════════ */

/* Wrapper: altura total do scrollzone (4 × 100vh) */
#hero-wrapper {
  position: relative;
  height: 100vh;
  overflow: clip;
}

/* Fundo fixo: fica colado na viewport durante todo o hero */
#hero-bg {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* Camada ESCURA — foto com filtro escuro, saturação zero */
#hero-img-dark {
  position: absolute;
  inset: 0;
  background: url('../img/transito_urbano.jpg') center / cover no-repeat;
  filter: brightness(0.22) saturate(0);
  will-change: filter;
}

/* Camada CLARA — mesma foto, vibrante, sobreposta com opacity 0→1 */
#hero-img-light {
  position: absolute;
  inset: 0;
  background: url('../img/transito_urbano.jpg') center / cover no-repeat;
  filter: brightness(1.05) saturate(1.4);
  opacity: 0;
  will-change: opacity;
}

/* Overlay de cor sobre o fundo — gradiente navy suave */
#hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 20, 40, .55) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 1;
}

/* Sol que nasce — aparece a partir da fase 2 */
#hero-sol {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(253, 224, 120, 0.95) 0%,
    rgba(251, 191, 36, 0.55)  38%,
    rgba(251, 191, 36, 0)     72%
  );
  opacity: 0;
  will-change: opacity, top;
  pointer-events: none;
  z-index: 2;
}

/* Sticky: fica no topo durante o scrollzone inteiro */
#hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  margin-top: -100vh;
  pointer-events: none;
  z-index: 10;
}

/* Setas laterais — reforçam que a página deve continuar sendo rolada */
#hero-sticky::before,
#hero-sticky::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-right: 3px solid rgba(255,255,255,.55);
  border-bottom: 3px solid rgba(255,255,255,.55);
  transform: translateY(-50%) rotate(45deg);
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.5));
  animation: seta-lateral 1.8s ease-in-out infinite;
  transition: opacity .4s ease;
}
#hero-sticky::before { left: clamp(18px, 4vw, 64px); }
#hero-sticky::after  { right: clamp(18px, 4vw, 64px); }

#hero-sticky:has(#fase-4.ativa)::before,
#hero-sticky:has(#fase-4.ativa)::after {
  opacity: 0;
}

@keyframes seta-lateral {
  0%, 100% { opacity: .35; transform: translateY(-50%) rotate(45deg) translate(0,0); }
  50%      { opacity: .9;  transform: translateY(-50%) rotate(45deg) translate(5px,5px); }
}

/* Fase individual */
.hero-fase {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s cubic-bezier(.4,0,.2,1),
              transform .55s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}

.hero-fase.ativa {
  opacity: 1;
  transform: translateY(0);
}

/* Fases 1–3 não bloqueiam clique */
#fase-1.ativa,
#fase-2.ativa,
#fase-3.ativa { pointer-events: none; }

/* Fase 4 libera clique nos CTAs */
#fase-4.ativa { pointer-events: auto; }

.hero-fase-inner {
  text-align: center;
  padding-top: 68px;
  max-width: 720px;
  width: 100%;
}

/* Kicker */
.hero-kicker {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: .85rem;
  text-shadow: 0 1px 10px rgba(0,0,0,.6);
}
.hero-kicker--destaque { color: #38bdf8; }

/* Títulos do hero */
.hero-titulo {
  font-size: clamp(2.6rem, 6.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 1.1rem;
  letter-spacing: -1.5px;
  text-shadow:
    -1px -1px 0 rgba(0,0,0,.4),
     1px -1px 0 rgba(0,0,0,.4),
    -1px  1px 0 rgba(0,0,0,.4),
     1px  1px 0 rgba(0,0,0,.4),
     0 8px 32px rgba(0,0,0,.45);
}

/* Fase 4: título com gradiente azul elétrico */
.hero-titulo--destaque {
  background: linear-gradient(135deg, #fff 0%, #7dd3fc 50%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow:
    -1px -1px 0 rgba(11,31,58,.4),
     1px -1px 0 rgba(11,31,58,.4),
    -1px  1px 0 rgba(11,31,58,.4),
     1px  1px 0 rgba(11,31,58,.4),
     0 8px 32px rgba(11,31,58,.5);
}

/* Subtítulo */
.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: rgba(255,255,255,.75);
  max-width: 500px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
  text-shadow: 0 1px 12px rgba(0,0,0,.55);
}

/* Indicador "continue scrollando" (fase 1) */
.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 2.75rem;
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0,0,0,.6);
  padding: .6rem 1.25rem .75rem;
  background: rgba(10,20,40,.38);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-scroll-arrow {
  width: 12px;
  height: 12px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
  animation: scrollarrow 1.6s ease-in-out infinite;
}
@keyframes scrollarrow {
  0%, 100% { opacity: .4; transform: rotate(45deg) translate(0, 0); }
  50%      { opacity: 1;  transform: rotate(45deg) translate(4px, 4px); }
}

/* CTAs fase 4 */
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.75rem;
}

.btn-hero-primary {
  background: #0ea5e9;
  color: #fff;
  box-shadow: 0 0 32px rgba(14,165,233,.4);
}
.btn-hero-primary:hover {
  background: #38bdf8;
  box-shadow: 0 0 52px rgba(14,165,233,.65);
  transform: translateY(-3px);
}
.btn-hero-primary svg { width: 20px; height: 20px; fill: currentColor; }

.btn-hero-outline {
  background: transparent;
  color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.35);
  backdrop-filter: blur(4px);
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.7);
  color: #fff;
}

/* Stats fase 4 */
#fase-4 .hero-stats {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  justify-content: center;
  margin-top: 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.stat-item { text-align: center; }
.stat-valor { font-size: 2.2rem; font-weight: 800; color: #38bdf8; display: block; }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: 1px; }

/* ── Seção Sobre ──────────────────────────────────────────────────────── */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.sobre-texto p { margin-bottom: 1rem; }
.sobre-dif-lista { list-style: none; margin-top: 1.5rem; }
.sobre-dif-lista li {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(0,0,0,.07);
  font-size: .95rem;
}
.sobre-dif-lista li:last-child { border: none; }
.dif-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--cor-secundaria);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.dif-icon svg { width: 18px; height: 18px; fill: #fff; }

.sobre-visual {
  background: var(--cor-primaria);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex; flex-direction: column; gap: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.sobre-card {
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 1.25rem;
  color: #fff;
  border-left: 4px solid var(--cor-secundaria);
}
.sobre-card h4 { color: #38bdf8; margin-bottom: .35rem; font-size: .9rem; text-transform: uppercase; letter-spacing: 1px; }
.sobre-card p  { font-size: .9rem; color: rgba(255,255,255,.8); }

/* ── Seção Serviços ───────────────────────────────────────────────────── */
#servicos { background: var(--cor-fundo); }
.secao-cabecalho { text-align: center; margin-bottom: 3.5rem; }
.secao-cabecalho p { max-width: 540px; margin: .75rem auto 0; color: #666; }

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.servico-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans), box-shadow var(--trans);
  border-top: 4px solid transparent;
}
.servico-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--cor-secundaria);
}
.servico-icon {
  width: 52px; height: 52px;
  background: rgba(14,165,233,.1);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.servico-icon svg { width: 26px; height: 26px; fill: var(--cor-primaria); }
.servico-card h3 { margin-bottom: .6rem; }
.servico-card p  { font-size: .925rem; color: #666; }

/* ── Seção Timeline / Acompanhar ─────────────────────────────────────── */
#acompanhar { background: #fff; }
.cpf-form {
  max-width: 560px; margin: 0 auto;
  display: flex; gap: .75rem;
}
.cpf-form input {
  flex: 1;
  padding: .85rem 1.25rem;
  border: 2px solid #ddd;
  border-radius: var(--radius);
  font-size: 1.05rem; font-family: 'Courier New', monospace;
  letter-spacing: 1px; color: var(--cor-texto);
  transition: border-color var(--trans);
  outline: none;
}
.cpf-form input:focus { border-color: var(--cor-secundaria); }
.cpf-form input.erro  { border-color: #e74c3c; }

#timeline-resultado { margin-top: 2.5rem; }

.processo-card {
  background: var(--cor-fundo);
  border-radius: 12px; padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.processo-header {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.processo-ait  { font-weight: 700; font-size: 1.05rem; }
.processo-placa {
  background: var(--cor-primaria); color: #fff;
  padding: .2rem .75rem; border-radius: 4px;
  font-family: 'Courier New', monospace; font-size: .875rem;
}
.badge-status {
  padding: .3rem .9rem; border-radius: 50px;
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: #fff;
}

/* Timeline vertical */
.timeline { position: relative; padding-left: 1.75rem; }
.timeline::before {
  content: '';
  position: absolute; left: 7px; top: 0; bottom: 0;
  width: 2px; background: rgba(0,0,0,.1);
}
.tl-item { position: relative; margin-bottom: 1.25rem; }
.tl-item::before {
  content: '';
  position: absolute; left: -1.75rem; top: 5px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--cor-secundaria);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--cor-secundaria);
}
.tl-item[data-tipo="status"]::before    { background: var(--cor-primaria); }
.tl-item[data-tipo="documento"]::before { background: #27ae60; }
.tl-item[data-tipo="protocolo"]::before { background: var(--cor-destaque); }

.tl-data   { font-size: .8rem; color: #999; margin-bottom: .15rem; }
.tl-titulo { font-weight: 600; font-size: .95rem; }
.tl-desc   { font-size: .875rem; color: #666; margin-top: .2rem; }

.timeline-vazio {
  text-align: center; padding: 3rem;
  color: #999; font-size: 1rem;
}

/* ── Seção Upload ─────────────────────────────────────────────────────── */
#documentos { background: var(--cor-fundo); }

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start;
}

.upload-area {
  border: 2px dashed #ccd0d6;
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--trans), background var(--trans);
  background: #fff;
}
.upload-area:hover,
.upload-area.dragover {
  border-color: var(--cor-secundaria);
  background: rgba(14,165,233,.04);
}
.upload-area svg   { width: 48px; height: 48px; fill: #aab; margin-bottom: 1rem; }
.upload-area h3    { color: var(--cor-primaria); margin-bottom: .5rem; }
.upload-area p     { font-size: .875rem; color: #888; }
.upload-area small { font-size: .775rem; color: #aaa; }

.upload-tabs {
  display: flex; gap: .5rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.upload-tab {
  padding: .4rem 1rem;
  border: 2px solid #ddd; border-radius: 50px;
  font-size: .85rem; font-weight: 600; cursor: pointer;
  background: #fff; color: #888;
  transition: all var(--trans);
}
.upload-tab.ativo {
  border-color: var(--cor-secundaria);
  background: var(--cor-secundaria); color: #fff;
}

.ocr-progress {
  display: none;
  margin-top: 1.25rem;
  background: var(--cor-primaria);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: #fff; font-size: .9rem;
}
.ocr-progress.visivel { display: block; }
.ocr-barra-fundo {
  height: 6px; background: rgba(255,255,255,.2);
  border-radius: 3px; margin-top: .75rem; overflow: hidden;
}
.ocr-barra { height: 100%; background: var(--cor-destaque); border-radius: 3px; width: 0; transition: width .3s; }

.ocr-campos { margin-top: 1.5rem; display: none; }
.ocr-campos.visivel { display: block; }
.ocr-campo-grupo { margin-bottom: .9rem; }
.ocr-campo-grupo label {
  display: block; font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px;
  color: #888; margin-bottom: .3rem;
}
.ocr-campo-grupo input {
  width: 100%; padding: .6rem .9rem;
  border: 1.5px solid #ddd; border-radius: 6px;
  font-size: .95rem; color: var(--cor-texto);
  background: #fff; transition: border-color var(--trans);
  outline: none;
}
.ocr-campo-grupo input:focus { border-color: var(--cor-secundaria); }
.ocr-campo-grupo.ocr-auto input { background: #f0fff4; border-color: #27ae60; }

.upload-acoes { margin-top: 1.25rem; display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── Seção Assinar ────────────────────────────────────────────────────── */
#assinar { background: #fff; }

.assinar-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem; align-items: start;
}

.doc-tabs {
  display: flex; gap: .5rem; margin-bottom: 1.5rem;
}
.doc-tab {
  flex: 1; text-align: center;
  padding: .75rem;
  border: 2px solid #ddd; border-radius: var(--radius);
  font-weight: 600; cursor: pointer; background: #fff;
  color: #888; transition: all var(--trans); font-size: .9rem;
}
.doc-tab.ativo {
  border-color: var(--cor-primaria);
  background: var(--cor-primaria); color: #fff;
}

.doc-preview {
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  padding: 1.5rem;
  max-height: 500px; overflow-y: auto;
  background: #fff;
  font-size: .875rem;
  box-shadow: var(--shadow-sm);
}
.doc-acoes { margin-top: 1.25rem; display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── Gov.br — seção escura com imagem + pulse ─────────────────────────── */
#assinar .govbr-lado {
  background: linear-gradient(145deg, #0b1f3a 0%, #0c3461 100%);
  border-radius: 16px;
  padding: 2rem;
}

#assinar .govbr-lado h3 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
}

/* Imagem Gov.br com pulse glow */
.govbr-foto-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.govbr-foto,
#govbr-img {
  width: 200px;
  border-radius: 14px;
  display: block;
  animation: govbr-glow 2.4s ease-in-out infinite;
}

@keyframes govbr-glow {
  0%, 100% {
    box-shadow: 0 0 0   0   rgba(14,165,233,0),
                0 0 0   0   rgba(14,165,233,0);
    transform: scale(1);
  }
  45% {
    box-shadow: 0 0 22px 7px  rgba(14,165,233,.5),
                0 0 44px 14px rgba(14,165,233,.2);
    transform: scale(1.025);
  }
  55% {
    box-shadow: 0 0 28px 10px rgba(14,165,233,.55),
                0 0 56px 18px rgba(14,165,233,.22);
    transform: scale(1.03);
  }
}

/* Steps Gov.br sobre fundo escuro */
#assinar .govbr-lado .govbr-steps { display: flex; flex-direction: column; gap: .85rem; }

#assinar .govbr-lado .step-item {
  background: rgba(255,255,255,.06);
  border-left: 3px solid #0ea5e9;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .85rem 1rem;
  border-top: none; border-right: none; border-bottom: none;
}

#assinar .govbr-lado .step-num {
  background: #0ea5e9;
  box-shadow: 0 0 10px rgba(14,165,233,.4);
}

#assinar .govbr-lado .step-content h4 { color: #fff; font-size: .9rem; }
#assinar .govbr-lado .step-content p  { color: rgba(255,255,255,.6); font-size: .84rem; }
#assinar .govbr-lado .step-content a  { color: #38bdf8; font-weight: 600; }
#assinar .govbr-lado .pill {
  background: rgba(14,165,233,.25);
  color: #7dd3fc;
}

#assinar .govbr-lado #btn-govbr {
  background: #0ea5e9;
  color: #fff;
  box-shadow: 0 0 20px rgba(14,165,233,.3);
}
#assinar .govbr-lado #btn-govbr:hover {
  background: #38bdf8;
  box-shadow: 0 0 36px rgba(14,165,233,.5);
}

/* Steps padrão (fora do govbr-lado) */
.govbr-steps { display: flex; flex-direction: column; gap: 1rem; }
.step-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--cor-fundo);
  border-radius: var(--radius); padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--cor-primaria);
}
.step-num {
  width: 32px; height: 32px; flex-shrink: 0;
  background: var(--cor-primaria); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem;
}
.step-content h4    { font-size: .95rem; margin-bottom: .25rem; }
.step-content p     { font-size: .85rem; color: #666; }
.step-content a     { color: var(--cor-secundaria); font-weight: 600; }
.step-content .pill {
  display: inline-block;
  background: var(--cor-destaque);
  color: var(--cor-primaria); font-size: .75rem; font-weight: 700;
  padding: .15rem .6rem; border-radius: 50px; margin-left: .4rem;
}

.aviso-legal {
  margin-top: 1.5rem;
  background: #fffbf0;
  border: 1px solid #f5c048;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: .875rem;
  color: #7a5c00;
  display: flex; gap: .75rem;
}
.aviso-legal svg { width: 20px; height: 20px; fill: #f5c048; flex-shrink: 0; margin-top: 1px; }

/* ── Seção FAQ ────────────────────────────────────────────────────── */
#faq { background: var(--cor-fundo); }

.faq-lista { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-pergunta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.5rem;
  cursor: pointer; font-weight: 600; font-size: .975rem;
  color: var(--cor-primaria);
  gap: 1rem;
  transition: background var(--trans);
  border: none; background: transparent; width: 100%; text-align: left;
}
.faq-pergunta:hover { background: rgba(14,165,233,.04); }
.faq-pergunta.aberto { color: var(--cor-secundaria); }

.faq-icone {
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(14,165,233,.1);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--trans), background var(--trans);
}
.faq-pergunta.aberto .faq-icone {
  transform: rotate(45deg);
  background: var(--cor-secundaria);
}
.faq-icone svg { width: 12px; height: 12px; fill: var(--cor-primaria); }
.faq-pergunta.aberto .faq-icone svg { fill: #fff; }

.faq-resposta {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding var(--trans);
  padding: 0 1.5rem;
  font-size: .935rem; color: #555; line-height: 1.7;
}
.faq-resposta.aberto {
  max-height: 400px;
  padding: .1rem 1.5rem 1.25rem;
}

/* ── Seção Contato ────────────────────────────────────────────────── */
#contato { background: #fff; }
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start;
}
.contato-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contato-item { display: flex; gap: 1rem; align-items: flex-start; }
.contato-item-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(14,165,233,.1);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.contato-item-icon svg { width: 22px; height: 22px; fill: var(--cor-primaria); }
.contato-item-body strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: #999; margin-bottom: .15rem; }
.contato-item-body a, .contato-item-body span { font-size: 1rem; color: var(--cor-texto); }

.cta-whatsapp-grande {
  background: #25D366;
  color: #fff;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-whatsapp-grande svg { width: 48px; height: 48px; fill: #fff; margin: 0 auto 1rem; }
.cta-whatsapp-grande h3  { color: #fff; margin-bottom: .5rem; }
.cta-whatsapp-grande p   { color: rgba(255,255,255,.9); margin-bottom: 1.25rem; font-size: .9rem; }
.cta-whatsapp-grande .wa-badge {
  display: inline-block;
  background: rgba(255,255,255,.25);
  border-radius: 50px;
  padding: .2rem .85rem;
  font-size: .78rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: .5px;
  margin-bottom: .6rem;
}
.cta-whatsapp-grande .btn { background: #fff; color: #16a34a; }
.cta-whatsapp-grande .btn:hover { background: rgba(255,255,255,.9); }

/* ── Footer ───────────────────────────────────────────────────────── */
footer {
  background: var(--cor-primaria);
  color: rgba(255,255,255,.75);
  padding: 2.5rem 0 0;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  align-items: center; justify-content: space-between;
  padding-bottom: 1.5rem;
}
.footer-logo { font-weight: 800; color: #fff; font-size: 1.1rem; }
.footer-aviso { font-size: .775rem; max-width: 500px; line-height: 1.5; }
.footer-area  { font-size: .85rem; }
.footer-area a { color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.2); padding: .3rem .75rem; border-radius: 4px; }
.footer-area a:hover { color: #fff; border-color: rgba(255,255,255,.5); }

/* Linha Hollyfire */
.footer-hollyfire {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: .85rem 0;
  text-align: center;
}
.footer-hollyfire p {
  font-size: .75rem;
  color: rgba(255,255,255,.28);
}
.footer-hollyfire a {
  color: #38bdf8;
  font-weight: 600;
  font-size: .75rem;
  text-decoration: none;
}
.footer-hollyfire a:hover { color: #7dd3fc; }

/* ── WhatsApp flutuante ───────────────────────────────────────────── */
#wa-float {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 800;
  width: 58px; height: 58px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  transition: transform var(--trans), box-shadow var(--trans);
  text-decoration: none;
}
#wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,.5); }
#wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ── Banner LGPD ──────────────────────────────────────────────────── */
#lgpd-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(11,31,58,.97);
  color: rgba(255,255,255,.9);
  padding: 1rem 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: center;
  font-size: .875rem; text-align: center;
  transform: translateY(100%); transition: transform .4s ease;
}
#lgpd-banner.visivel { transform: translateY(0); }
#lgpd-banner a { color: var(--cor-destaque); }
#lgpd-banner .btn { padding: .5rem 1.25rem; font-size: .875rem; }

/* ── Toast de feedback ────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 5rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1e293b; color: #fff;
  padding: .75rem 1.5rem; border-radius: 50px;
  font-size: .9rem; font-weight: 500;
  z-index: 2000; opacity: 0; transition: opacity .3s, transform .3s;
  pointer-events: none; white-space: nowrap;
}
#toast.visivel { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.sucesso  { background: #27ae60; }
#toast.erro     { background: #e74c3c; }

/* ── Loader ───────────────────────────────────────────────────────── */
.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsivo ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sobre-grid, .upload-grid, .assinar-grid, .contato-grid {
    grid-template-columns: 1fr;
  }
  .sobre-visual { display: none; }
  .govbr-foto, #govbr-img { width: 160px; margin: 0 auto; }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }

  .nav-menu { display: none; flex-direction: column; gap: .5rem; }
  .nav-menu.aberto {
    display: flex;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--cor-primaria);
    padding: 1rem 1.25rem 1.5rem;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.aberto a { padding: .5rem 0; font-size: 1rem; }
  .nav-toggle { display: block; }
  .nav-actions .btn-area-restrita { font-size: .8rem; padding: .4rem .75rem; }

  .cpf-form { flex-direction: column; }
  #fase-4 .hero-ctas { flex-direction: column; align-items: center; }
  #fase-4 .hero-ctas .btn-lg { width: 100%; justify-content: center; max-width: 340px; }
  #fase-4 .hero-stats { gap: 1.5rem; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  h2 { font-size: 1.4rem; }
}


/* ════════════════════════════════════════════════════════════
   AJUSTES FINAIS — auto-scroll, CTA, accordion Gov.br, form
   ════════════════════════════════════════════════════════════ */

/* Scroll agora e automatico: remove aviso e setas laterais */
.hero-scroll-hint,
.hero-scroll-arrow {
  display: none !important;
}
#hero-sticky::before,
#hero-sticky::after {
  content: none !important;
  display: none !important;
}

/* CTA final "A GENTE RESOLVE." — maior e em maiusculas */
.hero-titulo--destaque {
  font-size: clamp(3.2rem, 9vw, 6rem);
  text-transform: uppercase;
  letter-spacing: -2px;
}

/* Accordion "Como assinar pelo Gov.br" (HTML5 <details>) */
.govbr-accordion {
  margin-top: 1.25rem;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.55);
}
.govbr-accordion-resumo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .95rem 1.15rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  transition: background .2s ease;
}
.govbr-accordion-resumo::-webkit-details-marker { display: none; }
.govbr-accordion-resumo:hover { background: rgba(14,165,233,.08); }
.govbr-accordion-resumo h3 {
  margin: 0;
  font-size: 1.05rem;
}
.govbr-accordion-seta {
  flex: 0 0 auto;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform .25s ease;
  color: #0ea5e9;
}
.govbr-accordion[open] .govbr-accordion-seta {
  transform: rotate(180deg);
}
.govbr-accordion .govbr-steps {
  padding: 0 1.15rem 1.1rem;
}

/* Contrato: sem entrada manual de dados.
   Os campos sao preenchidos pelo OCR (ficam no DOM, apenas ocultos). */
#assinar div:has(> .doc-campo-input) {
  display: none !important;
}


/* Abas Contrato/Procuracao removidas da home (geracao e automatica) */
#assinar .doc-tabs { display: none !important; }

/* Como funciona — 3 passos simples */
.passos-3 { margin: 2rem auto 2.75rem; max-width: 1000px; }
.passos-3-intro {
  text-align: center;
  font-size: 1.18rem;
  line-height: 1.5;
  margin: 0 auto 1.6rem;
  max-width: 640px;
  color: #0b1f3a;
}
.passos-3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.passo-3 {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 1.6rem 1.3rem;
  text-align: center;
  box-shadow: 0 6px 22px rgba(11,31,58,.06);
}
.passo-3-num {
  width: 46px; height: 46px; line-height: 46px;
  margin: 0 auto .85rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #0b1f3a);
  color: #fff; font-weight: 700; font-size: 1.25rem;
}
.passo-3 h3 { margin: 0 0 .45rem; font-size: 1.1rem; color: #0b1f3a; }
.passo-3 p  { margin: 0; color: #475569; font-size: .95rem; line-height: 1.55; }
@media (max-width: 760px) {
  .passos-3-grid { grid-template-columns: 1fr; }
}


/* Etapa de assinatura aparece somente apos o envio dos documentos */
#assinar { display: none; }
#assinar.assinar-revelado { display: block; }


/* ════════════════════════════════════════════════════════════
   ZOOM NO SEMAFORO + LEGIBILIDADE
   ════════════════════════════════════════════════════════════ */

/* Reforco do escurecimento atras do texto (letras nao se perdem no fundo) */
#hero-bg::after {
  background:
    radial-gradient(ellipse 95% 75% at 50% 47%, rgba(4,10,24,.60) 0%, rgba(4,10,24,.30) 50%, rgba(4,10,24,.12) 100%),
    linear-gradient(to top, rgba(8,16,34,.72) 0%, rgba(8,16,34,.12) 55%, rgba(8,16,34,.42) 100%);
}

/* Centro do zoom = posicao do semaforo na foto (~58% x, ~29% y) */
#hero-img-dark,
#hero-img-light {
  transform-origin: 58% 29%;
  will-change: transform, opacity, filter;
}

/* Luz do semaforo — brilho colorido sobreposto, alinhado ao centro do zoom */
#hero-semaforo {
  position: absolute;
  left: 58%;
  top: 29%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%) scale(1);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,59,48,.95) 0%, rgba(255,59,48,.5) 40%, rgba(255,59,48,0) 75%);
  pointer-events: none;
  z-index: 2;
  filter: blur(.4px);
}


/* ════════════════════════════════════════════════════════════
   Mobile: hero cabe em 1 tela, stats compactos em linha
   ════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .hero-fase-inner { padding-top: 34px; }
  .hero-kicker { font-size: .68rem; margin-bottom: .5rem; letter-spacing: 2px; }
  .hero-titulo { font-size: 1.9rem; line-height: 1.1; margin-bottom: .55rem; letter-spacing: -.5px; }
  .hero-titulo--destaque { font-size: 2.4rem; letter-spacing: -1px; }
  .hero-sub { font-size: .92rem; margin-bottom: 1rem; }
  .hero-ctas { gap: .55rem; }
  .btn-lg { padding: .8rem 1.4rem; font-size: 1rem; }

  /* 3 stats em linha unica, compactos (nao empilham) */
  #fase-4 .hero-stats {
    gap: .7rem;
    padding-top: 1rem;
    margin-top: .25rem;
    flex-wrap: nowrap;
  }
  #fase-4 .stat-item { flex: 1 1 0; min-width: 0; }
  .stat-valor { font-size: 1.45rem; }
  .stat-valor--relogio svg { width: 24px; height: 24px; }
  .stat-label { font-size: .58rem; letter-spacing: .3px; line-height: 1.25; }
}