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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-altura);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--preto);
  color: var(--branco);
  font-family: var(--fonte-corpo);
  font-size: var(--corpo);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--fonte-titulo);
  font-weight: 700;
}

h1 {
  font-size: var(--h1);
  letter-spacing: var(--h1-tracking);
  line-height: 1.06;
}

h2 {
  font-size: var(--h2);
  letter-spacing: var(--h2-tracking);
  line-height: 1.12;
}

h3 {
  font-size: var(--h3);
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.25;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--menta);
  outline-offset: 2px;
}

::selection {
  background: var(--menta);
  color: var(--preto);
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--lateral) * 2);
  margin: 0 auto;
  padding: 0 var(--lateral);
}

.pular {
  position: absolute;
  top: -100px;
  left: var(--e-16);
  z-index: 100;
  padding: var(--e-12) var(--e-24);
  background: var(--menta);
  color: var(--preto);
  border-radius: var(--raio-pill);
  font-weight: 600;
  text-decoration: none;
}

.pular:focus {
  top: var(--e-16);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.num {
  font-variant-numeric: tabular-nums;
}

/* Entrada — só com JS, só sem reduced-motion */
.js .revelar {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
  transition-delay: calc(var(--i, 0) * 60ms);
}

.js .revelar.visivel {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .revelar {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
  }
}
