/* ============================================
   BASE — reset, fonte, tipografia, utilities
   ============================================ */
/* Manrope variavel self-hosted: 1 arquivo cobre 200-800 (sem Google Fonts) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Trava o scroll horizontal. O clip fica no html: no body ele vaza,
   porque o body nao e o viewport de rolagem. */
html, body { width: 100%; overflow-x: hidden; }

/* --- Lenis smooth scroll --- */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }
/* sem Lenis (reduced motion, CDN fora do ar) o scroll nativo assume */
html:not(.lenis) { scroll-behavior: smooth; }

/* --- Scrollbar personalizada --- */
html { scrollbar-width: thin; scrollbar-color: #0B7FE0 var(--color-navy-900); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-navy-900); }
::-webkit-scrollbar-thumb {
  background: #0B7FE0;
  border-radius: 999px;
  border: 2px solid var(--color-navy-900);
}
::-webkit-scrollbar-thumb:hover { background: #12A8FF; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary-600); }

body {
  font-family: var(--font-body);
  color: var(--color-navy-800);
  background: var(--color-white);
  line-height: 1.5;
  font-size: var(--text-body-size);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; }

/* --- Container / grid utilities --- */
.container {
  width: 100%;
  max-width: var(--container-default);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
.container--narrow { max-width: var(--container-narrow); }

.grid { display: grid; gap: var(--grid-gutter); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

section { padding: var(--section-padding-y) 0; }
section.compact { padding: var(--section-padding-y-compact) 0; }
section.bg-lavender { background: var(--color-lavender-200); }
section.bg-lavender-soft { background: var(--color-lavender-100); }
section.bg-navy { background: var(--color-navy-800); color: var(--color-white); }
section.bg-primary { background: var(--color-primary-700); color: var(--color-white); }

/* --- Typography scale --- */
h1, h2, h3, h4 {
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  color: var(--color-navy-800);
}
section.bg-navy h1, section.bg-navy h2, section.bg-navy h3, section.bg-navy h4,
section.bg-primary h1, section.bg-primary h2, section.bg-primary h3, section.bg-primary h4 {
  color: var(--color-white);
}

h1 { font-size: var(--text-h1-size); line-height: 1.2; font-weight: var(--weight-medium); letter-spacing: -2.17px; }
h2 { font-size: var(--text-h2-size); line-height: 1.2; letter-spacing: -1.2px; }
/* os titulos de card usam h3 (antes h4, trocado pra nao pular nivel na hierarquia) */
h3 { font-size: var(--text-h4-size); line-height: 1.3; font-weight: var(--weight-bold); letter-spacing: -0.6px; }

.text-highlight { color: var(--color-primary-700); font-weight: var(--weight-bold); }

p.lead { font-size: var(--text-lead-size); color: var(--color-neutral-700); line-height: 1.5; }
section.bg-navy p.lead, section.bg-primary p.lead { color: var(--color-neutral-300); }

p.body { font-size: var(--text-body-size); color: var(--color-neutral-700); }
section.bg-navy p.body, section.bg-primary p.body { color: #C9CEE0; }

small.caption { font-size: var(--text-caption-size); color: var(--color-neutral-500); }
small.micro { font-size: var(--text-micro-size); color: var(--color-neutral-500); display: block; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-micro-size); font-weight: var(--weight-bold); text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}
.eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  display: inline-block;
}
/* cor/vidro do eyebrow (fundo claro vs escuro) definidos em sections.css,
   que carrega depois — aqui so a estrutura base (layout, tipografia, bolinha) */

hr.divider { border: none; border-top: 1px solid var(--color-neutral-200); margin: var(--space-8) 0; }

/* ============================================================
   REVEAL DE ENTRADA (mesmo sistema da LP Rankeou)
   translateY + scale + blur, disparado por IntersectionObserver.
   ============================================================ */
:root {
  --t-reveal: 1.1s;
  --t-reveal-fade: 0.75s;
  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal] {
  opacity: 0;
  transform: translateY(40px) scale(.96);
  filter: blur(8px);
  transition:
    opacity var(--t-reveal-fade) var(--ease-reveal) var(--d, 0ms),
    filter var(--t-reveal-fade) var(--ease-reveal) var(--d, 0ms),
    transform var(--t-reveal) var(--ease-reveal) var(--d, 0ms);
  will-change: transform, opacity, filter;
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.d-1 { --d: 110ms; }
.d-2 { --d: 220ms; }
.d-3 { --d: 330ms; }
.d-4 { --d: 440ms; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* ============================================================
   ACESSIBILIDADE — skip link, foco visivel, reduced motion
   ============================================================ */
.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 10000;
  padding: 12px 24px; background: var(--color-primary-700); color: #fff;
  text-decoration: none; border-radius: var(--radius-sm);
  font-weight: var(--weight-semibold);
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid #12A8FF; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
