/* Reset + componentes compartilhados (site e painel) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 24px;
  color: var(--on-surface); background: var(--surface);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--japanese-red); outline-offset: 2px; }
.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; }
.skip-link { position: absolute; left: 8px; top: -64px; z-index: 100; background: var(--ink-black); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 8px; }

/* Ícones (Material Symbols Outlined) */
.icon { font-family: "Material Symbols Outlined"; font-weight: 400; font-style: normal; font-size: 24px; display: inline-block; width: 1em; height: 1em; line-height: 1; overflow: hidden; white-space: nowrap; direction: ltr; vertical-align: middle; flex-shrink: 0; font-feature-settings: "liga"; -webkit-font-feature-settings: "liga"; }
.icon-sm { font-size: 18px; }
.icon-lg { font-size: 36px; }

/* Tipografia utilitária */
.t-label-lg { font: 600 14px/20px var(--font-body); letter-spacing: .5px; }
.t-label-md { font: 600 12px/16px var(--font-body); letter-spacing: .75px; text-transform: uppercase; }
.t-label-sm { font: 400 11px/16px var(--font-mono); letter-spacing: .5px; }
.t-body-sm { font-size: 14px; line-height: 20px; }
.t-body-lg { font-size: 18px; line-height: 28px; }
.t-mono-lg { font: 700 24px/28px var(--font-mono); letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.t-headline-sm { font: 600 20px/26px var(--font-display); }
.t-headline-md { font: 600 24px/30px var(--font-display); letter-spacing: -.25px; }

/* Botões — transições 150ms ease-out */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border: 1px solid transparent; border-radius: var(--radius-sm);
  font: 600 14px/20px var(--font-body); letter-spacing: .5px; text-transform: uppercase; text-align: center;
  transition: background-color var(--t-state) var(--ease-state), color var(--t-state) var(--ease-state), border-color var(--t-state) var(--ease-state);
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--japanese-red); }
.btn-secondary { background: var(--surface); color: var(--on-surface); border-color: var(--ink-black); }
.btn-secondary:hover { background: var(--ink-black); color: #fff; }
.btn-dark { background: var(--ink-black); color: #fff; }
.btn-dark:hover { background: var(--japanese-red); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 12px; }
.btn-icon { min-height: 44px; width: 44px; padding: 0; background: var(--surface); border-color: var(--outline-variant); color: var(--on-surface); }
.btn-icon:hover { border-color: var(--ink-black); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading::before { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Motivo solar */
.solar { border-radius: var(--radius-full); background: var(--japanese-red); }
.dot { width: 12px; height: 12px; border-radius: var(--radius-full); background: var(--japanese-red); flex-shrink: 0; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--outline-variant); border-radius: var(--radius-sm); }

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