/* ==========================================================================
   PORTAL FEIRAO 2026 - SISTEMA VISUAL B (PAGINAS INTERNAS)
   Especificacao exata Parte 1 + Parte 2
   ========================================================================== */

:root {
  --p-emerald: #0e7a4f;          /* verde-dinheiro — ação principal */
  --p-hover: #0a5c3c;
  --p-light: #149464;
  --p-mint-bg: #edf7f1;
  --p-mint-border: #c9e6d6;
  --p-blue: #123f66;             /* detalhes informativos agora em navy */
  --p-blue-light: #e8eff6;
  --bg-white: #ffffff;
  --bg-light: #f7faf9;
  --bg-subtle: #eef3f2;
  --text-dark: #10233a;
  --text-muted: #54657d;
  --border: #dbe4e6;

  /* Novas variáveis - Patch Parte 4 */
  --fin-gold: #d4a017;           /* dourado latão — acento de valor */
  --fin-gold-soft: #f4e6c0;      /* fundo de badge dourada */
  --fin-ink: #0c2c4d;            /* navy profundo — títulos/wordmark */
  --fin-navy: #123f66;
  --fin-navy-deep: #081f38;
  --fin-navy-l: #1b4d7a;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--p-emerald);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--p-hover);
}

img, svg {
  display: block;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Tipografia & Containers
   -------------------------------------------------------------------------- */
h1 {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-dark);
}

h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark);
}

p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  margin-bottom: 12px;
}

.section-head p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   Barra de Transparência Global (Parte 5 Seção A)
   -------------------------------------------------------------------------- */
.trust-strip {
  background-color: var(--fin-ink);
  color: #cfe0f2;
  font-size: 12.5px;
  line-height: 1.5;
  padding: 8px 0;
}

.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.trust-strip a {
  color: var(--fin-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.trust-strip a:hover {
  color: #ffffff;
}

@media (max-width: 720px) {
  .trust-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* --------------------------------------------------------------------------
   Header Padrão (Parte 2, Seção 9)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.wordmark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.wm-a {
  color: var(--fin-ink);
}

.wm-b {
  color: var(--fin-gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a:not(.btn) {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.18s ease;
}

.site-nav a:not(.btn):hover {
  color: var(--text-dark);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 26px;
  line-height: 1;
  padding: 4px 10px;
  cursor: pointer;
  color: var(--text-dark);
}

/* Selo slim para verificacao.html */
.verif-header-badge {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--p-emerald);
  background-color: var(--p-mint-bg);
  border: 1px solid var(--p-mint-border);
  border-radius: 999px;
  padding: 6px 14px;
}

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--p-emerald);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--p-hover);
  color: #ffffff;
}

.btn-secondary {
  background-color: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-dark);
}

.btn-secondary:hover {
  border-color: var(--p-emerald);
  color: var(--p-emerald);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
}

.btn:disabled, [disabled], .btn-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.link-quiet {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color 0.18s ease;
}

.link-quiet:hover {
  color: var(--text-dark);
}

/* --------------------------------------------------------------------------
   Grids & Cards
   -------------------------------------------------------------------------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  border-color: var(--p-emerald);
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.06);
}

.card-num {
  position: relative;
  padding-left: 48px;
}

.card-num::before {
  content: attr(data-num);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--fin-gold-soft);
  color: var(--fin-gold);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 160, 23, 0.35);
}

/* --------------------------------------------------------------------------
   Forms & Profile Search (login.html)
   -------------------------------------------------------------------------- */
.form-card {
  max-width: 520px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-input:focus {
  border-color: var(--p-emerald);
  box-shadow: 0 0 0 3px rgba(10, 110, 87, 0.12);
}

.profile-empty {
  text-align: center;
  display: none;
}

.profile-empty.active {
  display: block;
}

.profile-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
  color: var(--p-emerald);
  font-size: 24px;
}

.profile-empty h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.profile-empty p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 15px;
}

.profile-empty-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Máquina de Triagem (verificacao.html - Seção 12 & 13)
   -------------------------------------------------------------------------- */
.verif-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 32px 20px;
}

.verif-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
  max-width: 640px;
  width: 100%;
  padding: 40px;
}

.verif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}

.verif-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
}

.verif-sub {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.card-progress {
  background-color: var(--bg-subtle);
  height: 6px;
  border-radius: 999px;
  margin-top: 18px;
  overflow: hidden;
}

.card-progress-fill {
  background-color: var(--p-emerald);
  width: 25%;
  height: 100%;
  transition: width 0.45s ease;
  border-radius: 999px;
}

.step-box {
  display: none;
}

.step-box.active {
  display: block;
  animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-label {
  display: inline-block;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--p-emerald);
  margin-top: 24px;
  margin-bottom: 8px;
}

.step-box h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}

.step-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Grid de Categorias */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.category-item-card {
  text-align: left;
  background-color: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.18s ease;
  width: 100%;
  display: block;
}

.category-item-card:hover {
  border-color: var(--p-emerald);
}

.category-item-card.selected {
  border-color: var(--p-emerald);
  background-color: var(--p-mint-bg);
  position: relative;
}

.category-item-card.selected::after {
  content: "Selecionado";
  position: absolute;
  right: 18px;
  top: 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--p-emerald);
}

.cat-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.cat-desc {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
}

/* Grade do Puzzle Captcha */
.puzzle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 320px;
  margin: 10px auto 0 auto;
}

.puzzle-tile {
  aspect-ratio: 1;
  background-color: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  padding: 12px;
}

.puzzle-tile svg {
  stroke: var(--text-muted);
  width: 32px;
  height: 32px;
  transition: stroke 0.18s ease;
}

.puzzle-tile:hover {
  border-color: var(--p-emerald);
}

.puzzle-tile.correct {
  border-color: var(--p-emerald);
  background-color: var(--p-mint-bg);
}

.puzzle-tile.correct svg {
  stroke: var(--p-emerald);
}

.captcha-banner {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.captcha-banner.ok {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.captcha-banner.err {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

/* Selo e Loader da Etapa 3 */
.success-seal {
  display: inline-block;
  background-color: var(--fin-gold-soft);
  color: var(--fin-gold);
  font-size: 13px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  border: 1px solid rgba(212, 160, 23, 0.35);
}

/* Destaque para o item do captcha (Segurança) */
.captcha-highlight {
  display: inline-block;
  background-color: var(--p-mint-bg);
  color: var(--p-emerald);
  border: 1.5px solid var(--p-mint-border);
  padding: 2px 10px;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: -0.2px;
  box-shadow: 0 2px 6px rgba(14, 122, 79, 0.10);
}

/* --------------------------------------------------------------------------
   Bloco e Animações da Etapa 3 (Redirecionamento Aprimorado)
   -------------------------------------------------------------------------- */
.step-redirect-box {
  text-align: center;
  padding: 30px 20px;
}

.step-redirect-box h2 {
  font-size: 24px;
  color: var(--fin-ink);
  margin-bottom: 8px;
}

.step-redirect-box .step-text {
  max-width: 520px;
  margin: 0 auto 20px auto;
}

.redirect-pulse-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.redirect-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--p-light);
  opacity: 0.6;
  animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.redirect-pulse-ring.delay {
  animation-delay: 0.8s;
}

.redirect-pulse-core {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p-emerald), var(--p-light));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(14, 122, 79, 0.35);
}

@keyframes pulseRing {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.redirect-loader {
  background-color: var(--bg-subtle);
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  margin: 20px auto 16px auto;
  max-width: 480px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.redirect-loader-fill {
  background: linear-gradient(90deg, var(--p-emerald) 0%, var(--p-light) 50%, var(--p-emerald) 100%);
  background-size: 200% 100%;
  width: 0;
  height: 100%;
  border-radius: 999px;
  transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  animation: loaderShimmer 2s infinite linear;
}

@keyframes loaderShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.redirect-status-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 999px;
  margin-top: 8px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--p-emerald);
  display: inline-block;
  animation: liveDotPulse 1.2s infinite ease-in-out;
}

@keyframes liveDotPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 8px var(--p-emerald); }
}

.redirect-steps-list {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.redirect-step-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background-color: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.redirect-step-chip.done {
  background-color: var(--p-mint-bg);
  border-color: var(--p-mint-border);
  color: var(--p-emerald);
}

.redirect-step-chip.active {
  background-color: var(--bg-white);
  border-color: var(--p-emerald);
  color: var(--p-emerald);
  box-shadow: 0 2px 8px rgba(14, 122, 79, 0.12);
}

.chip-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid var(--p-mint-border);
  border-top-color: var(--p-emerald);
  border-radius: 50%;
  display: inline-block;
  animation: chipSpin 0.8s infinite linear;
}

@keyframes chipSpin {
  to { transform: rotate(360deg); }
}

#manualRedirect {
  display: block;
  text-align: center;
  margin-top: 22px;
}

/* --------------------------------------------------------------------------
   FAQ Acordeão (Seção 11 & 13)
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 15px 0;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  background: none;
  border: none;
  font-family: inherit;
}

.faq-icon {
  font-size: 20px;
  font-weight: 700;
  color: var(--p-emerald);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 14px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.faq-answer-inner {
  padding-bottom: 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 760px;
}

/* --------------------------------------------------------------------------
   Checklist Interativo
   -------------------------------------------------------------------------- */
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0 14px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
}

.check-item input[type="checkbox"] {
  accent-color: var(--p-emerald);
  width: 18px;
  height: 18px;
  margin-top: 3px;
  cursor: pointer;
}

#checklistResult {
  background-color: var(--p-mint-bg);
  border: 1px solid var(--p-mint-border);
  border-radius: 12px;
  padding: 18px;
  margin-top: 16px;
  display: none;
}

#checklistResult.visible {
  display: block;
}

#resultSummary {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dark);
}

/* --------------------------------------------------------------------------
   Relatos
   -------------------------------------------------------------------------- */
.relato-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.avatar-inicials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-subtle);
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.relato-author-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.relato-quote {
  font-size: 15px;
  line-height: 1.6;
  font-style: italic;
  color: var(--text-dark);
}

.relato-disclaimer {
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   Banner LGPD (Patch 7 Seção C)
   -------------------------------------------------------------------------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px;
  max-width: 640px; margin: 0 auto; z-index: 90;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 14px 40px rgba(16,35,58,.16);
  opacity: 0; transform: translateY(14px); transition: all .3s ease;
  pointer-events: none; }
.cookie-banner.show { opacity: 1; transform: none; pointer-events: auto; }
.cookie-inner { display: flex; gap: 18px; align-items: center;
  padding: 18px 20px; }
.cookie-copy { flex: 1; }
.cookie-copy strong { display: block; font: 700 14.5px Inter, sans-serif;
  color: var(--text-dark); margin-bottom: 6px; }
.cookie-copy p { font: 400 13px/1.55 Inter, sans-serif; color: var(--text-muted);
  margin-bottom: 8px; }
.cookie-link { font: 600 12.5px Inter, sans-serif; color: var(--p-emerald);
  text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-direction: column; gap: 8px;
  flex-shrink: 0; }
@media (max-width: 620px) {
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { flex-direction: row; justify-content: flex-end; }
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; }
}

/* --------------------------------------------------------------------------
   Footer Padrão (Parte 2, Seção 9)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}

.footer-nav a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.18s ease;
}

.footer-nav a:hover {
  color: var(--text-dark);
}

.footer-legal {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 860px;
  margin-bottom: 8px;
}

.footer-data {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-muted);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Páginas Jurídicas (Seção 13)
   -------------------------------------------------------------------------- */
.legal-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px;
}

.legal-card h2 {
  font-size: 19px;
  font-weight: 800;
  margin-top: 30px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-card ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 14px;
}

.legal-card li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.legal-update-date {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* --------------------------------------------------------------------------
   Hero Split (inicio.html - Patch Parte 4 Seção C)
   -------------------------------------------------------------------------- */
.hero-split {
  padding: 60px 0;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

.hero-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-copy {
  text-align: left;
}

.hero-copy > * {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.6s ease forwards;
}

.hero-copy > *:nth-child(1) { animation-delay: 0s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
.hero-copy > *:nth-child(6) { animation-delay: 0.40s; }

.hero-copy h1 {
  font-size: clamp(30px, 4vw, 40px);
  color: var(--fin-ink);
  margin-bottom: 18px;
}

.hl-verde {
  color: var(--p-emerald);
}

.hero-copy p.lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 24px;
}

.hero-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 22px 0 16px 0;
}

.hero-checks .check-item-line {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-checks .check-item-line span.chk {
  color: var(--p-emerald);
  font-weight: 800;
}

.hero-trust-note {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.hero-visual {
  margin: 0;
}

.hero-mockup {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Card 3D do E-book (inicio.html - Parte 5 Seção A)
   -------------------------------------------------------------------------- */
.ebook-3d {
  perspective: 1200px;
  margin: 0;
}

.ebook-card {
  max-width: 330px;
  margin: 0 auto;
  padding: 34px 30px;
  border-radius: 14px;
  color: #ffffff;
  position: relative;
  background: linear-gradient(160deg, #123f66 0%, #0e7a4f 58%, #0a5c3c 100%);
  box-shadow: 0 30px 60px rgba(12, 44, 77, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotateY(-13deg) rotateX(3deg);
  transform-style: preserve-3d;
  transition: transform 0.35s ease;
  animation: ebookFloat 6s ease-in-out infinite;
}

.ebook-card:hover {
  transform: rotateY(-4deg) rotateX(1deg);
}

.ebook-card::before {
  /* lombada */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  border-radius: 14px 0 0 14px;
  background: rgba(8, 31, 56, 0.55);
}

.ebook-card::after {
  /* miolo de páginas */
  content: "";
  position: absolute;
  right: -7px;
  top: 8px;
  bottom: 8px;
  width: 7px;
  border-radius: 2px;
  background: repeating-linear-gradient(#ffffff 0 2px, #e8eff6 2px 4px);
}

.ebook-badge {
  position: absolute;
  top: -14px;
  font: 700 12.5px Inter, sans-serif;
  padding: 7px 13px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(12, 44, 77, 0.18);
}

.badge-passo {
  left: -18px;
  background: var(--fin-gold-soft);
  color: #8a6210;
}

.badge-edicao {
  right: -14px;
  top: 26px;
  background: #ffffff;
  color: var(--fin-ink);
}

.ebook-eyebrow {
  display: block;
  font: 800 11.5px Inter, sans-serif;
  letter-spacing: 1.6px;
  color: #f6e7bd;
  margin-bottom: 12px;
}

.ebook-title {
  font: 800 clamp(26px, 3vw, 34px)/1.08 Inter, sans-serif;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.ebook-sub {
  font: 500 14px/1.55 Inter, sans-serif;
  color: #eaf4ee;
  margin-bottom: 16px;
}

.ebook-list {
  list-style: none;
  margin-bottom: 20px;
  padding: 0;
}

.ebook-list li {
  font: 600 13.5px Inter, sans-serif;
  color: #ffffff;
  padding: 4px 0;
  display: flex;
  gap: 8px;
}

.ebook-list li::before {
  content: "\2713";
  color: #f6e7bd;
  font-weight: 800;
}

@keyframes ebookFloat {
  0%, 100% {
    transform: rotateY(-13deg) rotateX(3deg) translateY(0);
  }
  50% {
    transform: rotateY(-13deg) rotateX(3deg) translateY(-12px);
  }
}

/* --------------------------------------------------------------------------
   Bandeja Final e Reveal Suave (inicio.html - Parte 5 Seção B)
   -------------------------------------------------------------------------- */
.final-tray-split {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 44px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 36px;
  align-items: center;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: all 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Login Busca Machine (login.html - Parte 5 Seção C)
   -------------------------------------------------------------------------- */
.radar {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 6px auto 22px;
}

.radar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(14, 122, 79, 0.55);
  animation: ping 1.8s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}

.radar-ring.r2 {
  animation-delay: 0.6s;
}

@keyframes ping {
  0% {
    transform: scale(0.35);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.radar-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--p-emerald);
  animation: dotPulse 1.2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.35);
  }
}

.busca-status {
  text-align: center;
  font: 600 14.5px Inter, sans-serif;
  color: var(--text-muted);
  min-height: 22px;
  margin-bottom: 14px;
}

.busca-bar {
  height: 5px;
  background: var(--bg-subtle);
  border-radius: 999px;
  overflow: hidden;
  max-width: 320px;
  margin: 0 auto 12px;
}

.busca-bar-fill {
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: var(--p-light);
  animation: slide 1.3s linear infinite;
}

@keyframes slide {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(280%);
  }
}

.busca-note {
  text-align: center;
  font: 500 12.5px Inter, sans-serif;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Responsivo (max-width: 720px / 900px)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-visual {
    order: 2;
    max-width: 520px;
    margin: 0 auto;
  }
  .ebook-card {
    max-width: 300px;
  }
  .badge-passo {
    left: 0;
    top: -12px;
  }
  .badge-edicao {
    right: 0;
    top: -12px;
  }
  .final-tray-split {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Redução de movimento acessível */
@media (prefers-reduced-motion: reduce) {
  .ebook-card,
  .hero-copy > *,
  .reveal,
  .radar-ring,
  .radar-dot,
  .busca-bar-fill {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .busca-bar-fill {
    width: 60% !important;
  }
}

/* --------------------------------------------------------------------------
   Hero da Raiz Harmonizada (index.html)
   -------------------------------------------------------------------------- */
.root-hero-section {
  padding: 56px 0 48px 0;
}

.root-hero-container {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.root-hero-h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  color: var(--fin-ink);
  line-height: 1.22;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.root-hero-lead {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 28px auto;
}

.root-benefits-card {
  max-width: 580px;
  margin: 0 auto 30px auto;
  text-align: left;
  padding: 22px 26px;
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(12, 44, 77, 0.05);
}

.root-benefit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text-dark);
  font-weight: 500;
}

.root-benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--p-mint-bg);
  color: var(--p-emerald);
  font-weight: 800;
  flex-shrink: 0;
  font-size: 13px;
}

.root-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.root-cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

@media (max-width: 720px) {
  .mobile-menu-btn {
    display: block;
  }

  .site-nav {
    display: none;
  }

  .site-nav.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    padding: 18px;
    gap: 14px;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Raiz mobile: calibrado na medida certa */
  .root-hero-section {
    padding: 32px 0 32px 0;
  }
  .root-hero-container .success-seal {
    font-size: 11.5px;
    padding: 5px 12px;
    margin-bottom: 12px;
  }
  .root-hero-h1 {
    font-size: 25px;
    letter-spacing: -0.6px;
    line-height: 1.25;
    margin-bottom: 12px;
  }
  .root-hero-lead {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 20px;
    padding: 0 8px;
  }
  .root-benefits-card {
    padding: 18px 18px;
    margin-bottom: 22px;
    border-radius: 14px;
  }
  .root-benefits-card > div {
    gap: 12px !important;
  }
  .root-benefit-row {
    font-size: 13.5px;
    gap: 10px;
    line-height: 1.4;
  }
  .root-benefit-icon {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }
  .root-cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
  .root-cta-buttons .btn {
    width: 100%;
    padding: 13px 20px !important;
    font-size: 15px !important;
    text-align: center;
  }
  .root-cta-wrap p {
    font-size: 12.5px !important;
    margin-top: 4px !important;
  }

  /* Máquina de Triagem (verificacao.html): centralizada verticalmente e calibrada */
  .verif-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px);
    padding: 20px 16px;
  }
  .verif-card {
    padding: 24px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.07);
    width: 100%;
    max-width: 540px;
  }
  .verif-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    gap: 8px;
  }
  .verif-title {
    font-size: 14.5px;
    font-weight: 700;
    white-space: nowrap;
  }
  .verif-sub {
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: right;
  }
  .card-progress {
    margin-top: 12px;
    height: 5px;
  }
  .step-label {
    margin-top: 16px;
    margin-bottom: 6px;
    font-size: 11.5px;
    letter-spacing: 0.8px;
    font-weight: 700;
  }
  .step-box h2 {
    font-size: 21px;
    line-height: 1.3;
    margin-bottom: 8px;
    font-weight: 800;
  }
  .step-text {
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 18px;
  }
  .cat-grid {
    gap: 9px;
  }
  .category-item-card {
    padding: 12px 14px;
    border-radius: 10px;
  }
  .cat-title {
    font-size: 14.5px;
    margin-bottom: 2px;
    font-weight: 700;
  }
  .cat-desc {
    font-size: 12.5px;
    line-height: 1.35;
  }
  .category-item-card.selected::after {
    right: 14px;
    top: 12px;
    font-size: 11px;
  }
  .step-actions {
    margin-top: 18px;
    padding-top: 14px;
    gap: 8px;
    flex-direction: column-reverse;
  }
  .step-actions .btn {
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 700;
    width: 100%;
    border-radius: 10px;
  }
  .step-actions .link-quiet {
    font-size: 13px;
    padding: 6px;
  }

  /* Etapa 2B - Captcha Puzzle */
  .puzzle-grid {
    gap: 10px;
    max-width: 280px;
    margin: 12px auto 0 auto;
  }
  .puzzle-tile {
    padding: 10px;
    border-radius: 11px;
  }
  .puzzle-tile svg {
    width: 28px;
    height: 28px;
  }

  /* Etapa 3 - Redirecionamento Compacto e Elegante */
  #step3Box,
  .step-redirect-box {
    padding: 20px 10px !important;
  }
  .redirect-pulse-wrap {
    width: 60px;
    height: 60px;
  }
  .redirect-pulse-core {
    width: 48px;
    height: 48px;
  }
  .redirect-pulse-core svg {
    width: 26px;
    height: 26px;
  }
  #step3Box .success-seal,
  .step-redirect-box .success-seal {
    font-size: 11.5px;
    padding: 5px 12px;
    margin-top: 12px !important;
    margin-bottom: 8px !important;
  }
  #step3Box h2,
  .step-redirect-box h2 {
    font-size: 19px;
    margin-bottom: 6px;
  }
  #step3Box .step-text,
  .step-redirect-box .step-text {
    font-size: 13.5px;
    line-height: 1.45;
    margin-bottom: 14px !important;
  }
  .redirect-loader {
    height: 7px;
    margin: 14px auto 10px auto;
    max-width: 360px;
  }
  .redirect-status-box {
    padding: 6px 14px;
    margin-top: 6px;
  }
  .redirect-status-box span {
    font-size: 13px !important;
  }
  .live-dot {
    width: 7px;
    height: 7px;
  }
  .redirect-steps-list {
    margin-top: 14px;
    gap: 8px;
  }
  .redirect-step-chip {
    padding: 4px 10px;
    font-size: 11.5px;
  }
  #manualRedirect {
    margin-top: 16px;
    font-size: 12.5px;
  }

  /* Formulário de Login no Mobile */
  .form-card {
    padding: 18px 14px;
    border-radius: 14px;
  }
  .form-group {
    margin-bottom: 12px;
  }
  .form-input {
    padding: 11px 12px;
    font-size: 14.5px;
  }
  .radar {
    width: 84px;
    height: 84px;
    margin: 4px auto 14px;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
  }

  .site-footer {
    padding: 24px 0 28px 0;
  }

  .footer-nav {
    gap: 12px;
    margin-bottom: 12px;
  }
}
