/* base.css — reset + fundações (Fase 1) */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
:target { scroll-margin-top: calc(var(--header-h) + var(--sp-6)); }

body {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: var(--fs-16);
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
input, textarea, select, button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-semi);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-dark);
}
h1 { font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}
.container--wide { max-width: var(--container-wide); }

.section { padding-block: var(--section-py); }

/* Rótulo mono (kicker) — Space Mono maiúsculo espaçado, recorrente no design */
/* Labels em Space Mono: no design original o peso é 400 (700 deixava "mais escuro") */
.kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-13);
  font-weight: var(--fw-regular);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-green-2);
}

/* ── Ícones Phosphor ── */
.ph, .ph-bold, .ph-fill {
  display: inline-block;
  line-height: 1;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  speak: none;
  -webkit-font-smoothing: antialiased;
}
.ph      { font-family: 'Phosphor'; }
.ph-bold { font-family: 'Phosphor-Bold'; }
.ph-fill { font-family: 'Phosphor-Fill'; }
/* (os content: codepoints dos ícones usados entram por seção) */

/* ── Utilitários ── */
.u-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;
}
.u-center { text-align: center; }

/* ── Reveal no scroll (só com JS — sem JS o conteúdo aparece normal) ── */
/* Reveal via `animation` (NÃO `transition`): a propriedade `transition` do
   [data-reveal] sobrescrevia a dos componentes e matava os hovers. */
.js [data-reveal] { opacity: 0; }
/* opacity:1 estático garante visibilidade mesmo se a animação não rodar */
.js [data-reveal].is-in { opacity: 1; animation: reveal-in 0.7s var(--ease); }
@keyframes reveal-in {
  from { opacity: 0; translate: 0 22px; }
  to   { opacity: 1; translate: none; }
}

/* ── Foco visível para navegação por teclado ── */
:focus-visible {
  outline: 3px solid var(--c-green);
  outline-offset: 2px;
  border-radius: 4px;
}
/* sobre fundos escuros, um anel mais claro */
.hero :focus-visible, .mi :focus-visible, .ia :focus-visible,
.cta :focus-visible, .site-header :focus-visible, .footer :focus-visible,
.pl__sim :focus-visible, .pq__card--dark :focus-visible {
  outline-color: var(--c-green-soft);
}

/* ── Acessibilidade: reduzir movimento ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1 !important; translate: none !important; animation: none !important; }
}
