/* ==========================================================================
   base.css — reset + tipografia base + grid/container + casca de seção
   (C-SECTION / C-EYEBROW). Sessão S1 da frente Refatoração da Página de Vendas.
   Depende de tokens.css. Componentes de conteúdo virão em components.css (S2).
   ========================================================================== */

/* ── Reset enxuto ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--f-body);
  line-height: 1.6;
  color: var(--tx-1-light);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; border-radius: var(--radius-sm); }

/* ── Escala tipográfica base ── */
h1 { font-size: var(--f-h1); line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: var(--f-h2); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: var(--f-h3); line-height: 1.25; font-weight: 600; }

/* ── Container central (DS §3) ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ── C-SECTION — casca de bloco (padding 80–120px desktop / 48–64px mobile) ── */
.section { padding-block: var(--sp-80); }
@media (min-width: 900px) { .section { padding-block: var(--sp-120); } }
@media (max-width: 600px) { .section { padding-block: var(--sp-48); } }

/* Variantes de fundo (alternância DS §3) */
.section--light   { background: var(--bg-light);      color: var(--tx-1-light); }
.section--surface { background: var(--surface-light);  color: var(--tx-1-light); }
.section--dark    { background: var(--bg-dark);         color: var(--tx-1-dark); }

.section__head { max-width: 780px; margin-bottom: var(--sp-48); }

/* ── C-EYEBROW — resumo de 1 linha / kicker (regra comum das estruturas 8–10) ── */
.eyebrow {
  display: block;
  font-size: var(--f-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tx-3-light);
  margin-bottom: var(--sp-12);
}
.section--dark .eyebrow { color: var(--tx-2-dark); }

/* ── Utilidades mínimas ── */
.u-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Redução de movimento (DS §4) ── */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
