/* ==========================================================================
   Base — reset, tipografia, layout e utilitários
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--n-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
figure { margin: 0; }
address { font-style: normal; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--b-ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; }

.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.muted { color: var(--muted); }
strong, b { font-weight: 700; }

::selection { background: var(--b-100); color: var(--b-ink); }

/* Layout */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sec { position: relative; padding-block: var(--sec-y); }
.sec--tint { background: var(--tint); }
.sec--canvas { background: var(--canvas); }
.sec--brand { background: var(--b-50); }
.sec--dark { background: var(--mm-marinho); color: #fff; }
.sec--dark h2, .sec--dark h3 { color: #fff; }
.sec--dark .lead { color: rgba(255, 255, 255, .74); }

/* Sprite de ícones */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 24px; height: 24px; flex: none; }

/* Acessibilidade */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 12px 20px; border-radius: var(--r-pill);
  background: #fff; color: var(--ink); font-weight: 700; box-shadow: var(--sh-card);
  transform: translateY(-160%); transition: transform var(--d-2) var(--ease);
}
.skip:focus { transform: none; }

:focus-visible { outline: 3px solid var(--b-500); outline-offset: 3px; border-radius: 4px; }
.sec--dark :focus-visible, .hd :focus-visible, .ft :focus-visible { outline-color: var(--mm-ceu); }

/* Entrada de conteúdo (fade + 16 px em cascata) — só com JS ativo */
.js .rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  transition-delay: var(--rv-d, 0ms);
}
.js .rv.is-in { opacity: 1; transform: none; }

/* Variações da entrada: mesma transição, ponto de partida diferente */
.js .rv--l { transform: translate3d(-28px, 0, 0); }
.js .rv--r { transform: translate3d(28px, 0, 0); }
.js .rv--zoom { transform: scale(.965); }
.js .rv--l.is-in, .js .rv--r.is-in, .js .rv--zoom.is-in { transform: none; }

.static *, .static *::before, .static *::after { animation: none !important; transition: none !important; }
.static .rv, .static .float-card, .static .hero-prod, .static .pill-float, .static .hero-card { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .js .rv, .js .rv--l, .js .rv--r, .js .rv--zoom { opacity: 1; transform: none; }
}
