/* Reset, tipografia e acessibilidade */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(100% * var(--font-scale)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-ui); background: var(--bg); color: var(--text);
  line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  transition: background .3s var(--ease), color .3s var(--ease);
}
/* Troca suave de paleta ao escolher companhia (classe aplicada por js/lib/theme.js durante a troca). */
@media (prefers-reduced-motion: no-preference) {
  html.cia-mudando, html.cia-mudando *, html.cia-mudando *::before, html.cia-mudando *::after {
    transition: background-color .7s var(--ease), color .7s var(--ease), border-color .7s var(--ease),
      outline-color .7s var(--ease), box-shadow .7s var(--ease), fill .7s var(--ease), stroke .7s var(--ease) !important;
  }
}
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 800; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.eyebrow { font-family: var(--font-mono); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

svg.i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 18px; height: 18px; }
svg.i.lg { width: 28px; height: 28px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
#view:focus { outline: none; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 12px 16px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Marca: arte original (silhueta branca) no tema escuro */
.marca {
  display: inline-block; flex: none; height: 40px; aspect-ratio: 145 / 192;
  background: url(/assets/icons/marca.png) center / contain no-repeat;
}
/* Tema claro: a silhueta vira máscara e ganha a mesma cor do nome do app */
[data-theme="light"] .marca {
  background: currentColor;
  -webkit-mask: url(/assets/icons/marca.png) center / contain no-repeat;
  mask: url(/assets/icons/marca.png) center / contain no-repeat;
}
@media (forced-colors: active) { .marca { forced-color-adjust: none; } }

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