/* Páginas públicas (landing, estados, calculadora). Cores, fontes e cantos vêm dos tokens do design system. */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); }
.faixa { padding: var(--space-8) max(5vw, var(--space-4)); }
.faixa-alt { background: var(--surface); }
.faixa-marca { background: var(--brand-soft); }
.faixa-escura { background: #0e1726; color: #eef1f5; }
[data-theme="dark"] .faixa-escura { background: #080b10; }
.faixa-escura p { color: #a4adba; }
.miolo { max-width: 1200px; margin: 0 auto; min-width: 0; }
.centro { text-align: center; }
h2.sec { font-size: clamp(26px, 2vw + 16px, 38px); line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; font-weight: 800; }
h2.sec em, h1 em { font-style: normal; color: var(--brand); }
.faixa-escura h2.sec em { color: #86a8ff; }
.sub { margin: var(--space-3) auto 0; font-size: 17px; line-height: 27px; color: var(--ink-muted); max-width: 40em; }

/* Botões em pílula e contorno vêm do app.css (iguais no painel) */
.li-btn-lg { height: 52px; padding: 0 var(--space-6); font-size: 17px; }

/* Cabeçalho */
.topo-pub { display: flex; align-items: center; gap: var(--space-5); height: 72px; padding: 0 max(5vw, var(--space-4)); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 1000; }
.topo-pub nav { display: flex; gap: var(--space-1); margin-left: auto; }
.topo-pub nav a { font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: var(--radius-md); }
.topo-pub nav a:hover { color: var(--brand); }
.topo-pub .acoes { flex-wrap: nowrap; }
.topo-pub { view-transition-name: topo; }
.rodape-tema { margin-top: var(--space-3); }
.rodape .tema-seletor { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); justify-self: start; }
.rodape .tema-seletor button { color: #a4adba; }
.rodape .tema-seletor button:hover { color: #fff; }
.rodape .tema-seletor button[aria-checked="true"] { background: rgba(255,255,255,0.14); color: #fff; box-shadow: none; }
.topo-pub .li-btn { height: 44px; padding: 0 var(--space-5); font-size: 15px; }

/* Cards da vitrine */
.grade-vitrine { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--space-4); }
.li-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pracas { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--space-3); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.pracas b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Páginas por estado */
.migalhas { font-size: 14px; color: var(--ink-muted); margin-bottom: var(--space-4); }
.migalhas a { color: var(--ink-muted); }
.titulo-uf { font-size: clamp(34px, 3vw + 14px, 52px); line-height: 1.08; letter-spacing: -0.03em; margin: 0; font-weight: 800; }
.faixa-hero-uf .lead { font-size: 18px; line-height: 28px; color: var(--ink-muted); margin: var(--space-4) 0 var(--space-5); max-width: 40em; }
.chips-uf { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }
.chips-uf .li-chip { text-decoration: none; color: var(--ink); height: 36px; }
.chips-uf .li-chip small { color: var(--ink-muted); font-weight: 600; }
.chips-uf .li-chip.atual { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chips-uf .li-chip.atual small { color: var(--on-brand); }
.resumo-uf { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); }
.lista-n { list-style: none; margin: var(--space-4) 0 0; padding: 0; }
.lista-n li { display: flex; justify-content: space-between; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.lista-n b { font-variant-numeric: tabular-nums; }
.cta-final { text-align: center; display: grid; gap: var(--space-4); justify-items: center; }
.cta-final p { margin: 0; font-size: 17px; max-width: 36em; }

/* Rodapé escuro */
.rodape { background: #0e1726; color: #c9d0da; padding: var(--space-8) max(5vw, var(--space-4)) calc(var(--space-6) + env(safe-area-inset-bottom, 0px)); font-size: 14px; line-height: 22px; }
[data-theme="dark"] .rodape { background: #080b10; }
.rodape a { color: #c9d0da; text-decoration: none; }
.rodape a:hover { color: #fff; text-decoration: underline; }
.rodape-grade { display: grid; grid-template-columns: 1.4fr 1fr 1.6fr 0.8fr; gap: var(--space-6); }
.rodape-grade > div { display: grid; gap: var(--space-2); align-content: start; }
.rodape-grade b { color: #fff; font-size: 16px; margin-bottom: var(--space-1); }
.rodape .li-wordmark { color: #fff; }
.rodape-marca p { margin: 0; max-width: 30em; }
.chips-rodape { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-rodape a { display: inline-grid; place-items: center; min-width: 40px; height: 30px; padding: 0 8px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.08); font-size: 13px; font-weight: 600; }
.chips-rodape a:hover { background: rgba(255,255,255,0.16); text-decoration: none; }
.rodape-aviso { margin-top: var(--space-6) !important; padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,0.12); font-size: 13px; color: #8a94a3; }

@media (max-width: 1000px) {
  .topo-pub nav { display: none; }
  .topo-pub .tema-btn { margin-left: auto; }
  .rodape-grade { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .faixa { padding-block: var(--space-7); }
  .topo-pub { height: 64px; gap: var(--space-3); }
  .topo-pub .li-wordmark { font-size: 16px; }
  .topo-pub .li-btn { height: 40px; padding: 0 var(--space-4); font-size: 14px; }
  .topo-pub .tema-btn { width: 36px; height: 36px; }
  .resumo-uf { grid-template-columns: 1fr; gap: var(--space-6); }
  .rodape-grade { grid-template-columns: 1fr; }
}
/* Celular estreito: o tema fica no rodapé, para Entrar e Assinar caberem no topo */
@media (max-width: 440px) { .topo-pub .tema-btn { display: none; } .topo-pub .acoes { margin-left: auto; } }
@media (max-width: 360px) { .topo-pub .li-btn-outline { display: none; } }
