/* ==========================================================
   BASE: reset, tipografia e utilidades usadas em todo o site
   ========================================================== */
:root {
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--altura-cabecalho) + 12px); }
body { margin: 0; background: var(--fundo); color: var(--texto); font-family: var(--font-texto); font-weight: var(--peso-texto); font-size: var(--texto-corpo); line-height: 1.65; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--fundo); }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--foco); outline-offset: 3px; }
em { font-style: italic; }

h1, h2, h3 { margin: 0; font-family: var(--font-titulo); font-weight: var(--peso-titulo); }
h1 { font-size: var(--texto-titulo-1); line-height: 1.08; letter-spacing: -0.01em; max-width: 16ch; }
h2 { font-size: var(--texto-titulo-2); line-height: 1.15; letter-spacing: -0.005em; max-width: 22ch; }
h3 { font-size: var(--texto-titulo-3); line-height: 1.3; }
p { margin: 0; }
.suave { color: var(--texto-suave); }
.destaque { font-size: var(--texto-destaque); line-height: 1.55; }
.rotulo { font-size: var(--texto-rotulo); font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--texto-suave); }
.filete { display: block; width: var(--filete-vermelho); height: 3px; background: var(--praca); border: 0; margin: 0; }
.intro-secao { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.secao-cabeca { display: flex; flex-direction: column; gap: var(--espaco-3); max-width: 760px; }
[hidden] { display: none !important; }

/* Painéis alternáveis (fatores, partes do ciclo, entregas, instrumentos): o conteúdo de todos
   está no HTML. Sem JavaScript, todos aparecem; com JavaScript, só o que tem a classe "ativo". */
.js .alternavel:not(.ativo) { display: none; }

/* Revelação ao rolar (só com JavaScript ativo e sem preferência por menos movimento) */
.js .revelar { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .revelar.visivel { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .intro-secao { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .revelar { opacity: 1; transform: none; }
}
