/* Tokens e reset. Paleta herdada do site antigo: vermelho da marca, preto e cinza claro. */
:root {
  --marca: #e63946;
  --marca-escura: #c62b38;
  --marca-clara: #fdecee;
  --tinta: #1a1a1a;
  --tinta-media: #4a5568;
  --tinta-fraca: #7b8794;
  --fundo: #f5f5f5;
  --superficie: #ffffff;
  --borda: #e4e7eb;
  --borda-forte: #cbd2d9;
  --sucesso: #2f9e44;
  --sucesso-fundo: #e9f7ec;
  --erro: #c62828;
  --erro-fundo: #fdecec;
  --aviso: #b45309;
  --aviso-fundo: #fef4e6;

  --raio: 12px;
  --raio-pequeno: 8px;
  --sombra: 0 1px 2px rgb(16 24 40 / 6%), 0 4px 12px rgb(16 24 40 / 6%);
  --sombra-alta: 0 12px 32px rgb(16 24 40 / 14%);
  --transicao: 160ms ease;

  --largura-max: 1200px;
  /* Acompanha a logo: 72px de imagem com 8px de folga em cima e embaixo.
     A barra, a posição dos toasts e o topo do resumo grudento saem todos daqui. */
  --altura-nav: 88px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--tinta);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--marca);
  outline-offset: 2px;
  border-radius: 4px;
}

.pular-para-conteudo {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--marca);
  color: #fff;
  border-radius: 0 0 var(--raio-pequeno) 0;
}
.pular-para-conteudo:focus { left: 0; }

/* Páginas que desenham a largura toda (a home) desligam a coluna central e o
   padding — cada seção passa a controlar o próprio recuo. O roteador marca a rota
   atual em data-rota. */
.conteudo[data-rota="#/"],
.conteudo[data-rota="#/importacao-pronta"] {
  max-width: none;
  padding: 0;
}

.conteudo {
  flex: 1;
  width: 100%;
  max-width: var(--largura-max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.pagina__titulo { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

