/* ===========================================================
   BASE — reset, tipografia, utilitários de layout
   =========================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* clip em vez de hidden: corta o que escapa na horizontal sem criar
   um container de scroll (hidden quebraria o position:sticky das seções) */
html, body { overflow-x: hidden; overflow-x: clip; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink-900);
  font-family: var(--font-text);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-head);
  letter-spacing: var(--ls-head);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); line-height: var(--lh-tight); letter-spacing: var(--ls-hero); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }

p { margin: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
a:not([class]) {
  color: var(--brand-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-sm);
}

::selection { background: var(--brand-tint); color: var(--c-ink-900); }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--container-wide); }

.section { padding-block: var(--section-y); position: relative; }
.section--soft { background: var(--c-bg-soft); }
.section--deep { background: var(--c-bg-deep); color: #fff; }
.section--deep h1, .section--deep h2, .section--deep h3 { color: #fff; }
.section--tint { background: var(--brand-tint); }

.stack { display: flex; flex-direction: column; }
.stack--2 { gap: var(--sp-2); } .stack--3 { gap: var(--sp-3); }
.stack--4 { gap: var(--sp-4); } .stack--6 { gap: var(--sp-6); }
.stack--8 { gap: var(--sp-8); } .stack--12 { gap: var(--sp-12); }

.measure { max-width: 62ch; }
.measure--short { max-width: 46ch; }

/* ---------- tipografia utilitária ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--brand-ink);
}
.section--deep .eyebrow { color: var(--c-lime-400); }

.lead { font-size: var(--t-lead); color: var(--c-ink-700); }
.section--deep .lead { color: rgb(255 255 255 / .82); }

.muted { color: var(--c-ink-500); }
.section--deep .muted { color: rgb(255 255 255 / .68); }

.claim {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 400;
  line-height: 1.35;
  color: var(--brand-ink);
  letter-spacing: -.01em;
}
.section--deep .claim { color: var(--c-lime-400); }

/* ---------- acessibilidade ---------- */
.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 200;
  background: var(--c-grupo-700); color: #fff;
  padding: var(--sp-3) var(--sp-6); border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 500;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- revelação no scroll (parte de um estado visível) ---------- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px);
    transition: opacity var(--dur-slow) var(--ease-out-soft), transform var(--dur-slow) var(--ease-out-soft); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
