/* Smart Pages: base (reset, tipografia, layout e utilitários). Só variáveis de tokens.css.
   Site público em tema claro forçado; tema escuro só em [data-area="app"] (tema.js). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--es-fonte);
  font-size: var(--fs-corpo);
  line-height: var(--lh-base);
  color: var(--es-texto);
  background: var(--es-pagina);
  overflow-wrap: anywhere;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { margin: 0 0 var(--esp-4); color: var(--es-texto); line-height: var(--lh-titulo); letter-spacing: var(--ls-titulo); }
h1 { font-size: var(--fs-h1); font-weight: var(--peso-titulo); }
h2 { font-size: var(--fs-h2); font-weight: var(--peso-titulo); }
h3 { font-size: var(--fs-h3); font-weight: var(--peso-h3); letter-spacing: 0; }
p { margin: 0 0 var(--esp-4); }
p, li { max-width: 72ch; }
a { color: var(--es-destaque); text-underline-offset: 3px; }
a:hover { color: var(--es-destaque-hover); }
strong { font-weight: var(--peso-ui); }
small, .peq { font-size: var(--fs-peq); }
.lead { font-size: var(--fs-lead); color: var(--es-texto-2); }
.rotulo { font-size: var(--fs-rot); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--es-texto-3); }
.texto-2 { color: var(--es-texto-2); }
.texto-3 { color: var(--es-texto-3); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--es-foco); outline-offset: 3px; border-radius: 4px; }

/* layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.estreito { max-width: 560px; }
.secao { padding: var(--sec) 0; }
.pilha > * + * { margin-top: var(--esp-4); }
.pilha-p > * + * { margin-top: var(--esp-2); }
.linha { display: flex; flex-wrap: wrap; gap: var(--esp-3); align-items: center; }
.grade { display: grid; gap: var(--esp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.centro { text-align: center; }

/* acessibilidade */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pular {
  position: absolute; left: var(--esp-4); top: -100px; z-index: 100; padding: var(--esp-3) var(--esp-4);
  background: var(--es-fundo); color: var(--es-texto); border-radius: var(--raio-btn); box-shadow: var(--es-sombra-forte);
}
.pular:focus { top: var(--esp-4); }

/* topo e rodapé públicos */
.topo-publico { background: var(--es-fundo); border-bottom: 1px solid var(--es-linha); }
.topo-publico .container { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: var(--esp-4); }
.marca { display: inline-flex; align-items: center; gap: var(--esp-3); min-height: var(--alvo); color: var(--es-texto); text-decoration: none;
  font-weight: var(--peso-ui); }
.marca img { width: 28px; height: 30px; }
.rodape { margin-top: var(--esp-8); padding: var(--esp-6) 0; background: var(--es-escuro); color: var(--es-branco-fixo); }
.rodape a { color: var(--es-branco-fixo); }
.rodape p { margin: 0; font-size: var(--fs-peq); }
.endosso { margin: var(--esp-5) 0; text-align: center; font-size: var(--fs-peq); color: var(--es-texto-2); }
.conteudo-publico { padding: var(--esp-7) 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
