/* =========================================================
   DESIGN SYSTEM ESPAÇONAVE · BASE
   reset minimal + body setup + utilities
   ---------------------------------------------------------
   Import depois de tokens.css e antes de components.css.
   Requer que tokens.css tenha sido importado.
   ========================================================= */


/* reset minimal */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
button, a { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

/* =========================================================
   BODY · setup default
   ========================================================= */
body {
  font-family: var(--es-font-sans);
  font-size: var(--es-fs-body);
  line-height: var(--es-lh-normal);
  color: var(--es-text);
  background: var(--es-bg);
  overflow-x: hidden;
}

/* =========================================================
   CONTAINER · limita largura e dá padding horizontal
   ========================================================= */
.es-container {
  max-width: var(--es-container);
  margin: 0 auto;
  padding: 0 var(--es-pad-x);
}
.es-container--text {
  max-width: var(--es-container-text);
}

/* =========================================================
   LABEL · marca de seção tipo revista, mono uppercase
   Uso: <div class="es-label">título curto</div>
   ========================================================= */
.es-label {
  font-family: var(--es-font-mono);
  font-size: var(--es-fs-label);
  font-weight: 500;
  letter-spacing: var(--es-ls-label);
  text-transform: uppercase;
  color: var(--es-muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.es-label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

/* =========================================================
   DISPLAY · classes tipográficas pra uso utilitário
   Quando não tiver uma classe de componente já pronto.
   ========================================================= */
.es-display-xl {
  font-family: var(--es-font-display);
  font-variation-settings: "wdth" 75, "opsz" 144, "GRAD" -50;
  font-weight: 900;
  font-size: var(--es-fs-display-xl);
  line-height: var(--es-lh-tight);
  letter-spacing: var(--es-ls-display-tight);
  color: var(--es-text);
}
.es-display-l {
  font-family: var(--es-font-display);
  font-variation-settings: "wdth" 85, "opsz" 144;
  font-weight: 900;
  font-size: var(--es-fs-display-l);
  line-height: var(--es-lh-tight);
  letter-spacing: var(--es-ls-display);
  color: var(--es-text);
}
.es-display-m {
  font-family: var(--es-font-display);
  font-variation-settings: "wdth" 85, "opsz" 96;
  font-weight: 900;
  font-size: var(--es-fs-display-m);
  line-height: var(--es-lh-snug);
  letter-spacing: var(--es-ls-display);
  color: var(--es-text);
}
.es-display-s {
  font-family: var(--es-font-display);
  font-variation-settings: "wdth" 85, "opsz" 48;
  font-weight: 900;
  font-size: var(--es-fs-display-s);
  line-height: 1.05;
  letter-spacing: var(--es-ls-display);
  color: var(--es-text);
}

/* =========================================================
   TEXT HIGHLIGHT · verde-limão com skew pra palavras-chave
   Uso: <span class="es-yel"><span>texto destacado</span></span>
   O skew duplo preserva o texto reto dentro do bloco inclinado.

   O padding e o skew empurram o que vem DEPOIS do destaque, e a
   vírgula ou o ponto ficam boiando longe da palavra. Os margins
   negativos abaixo devolvem esse espaço: -0.06em compensa a
   inclinação na base, e o padding continua pintando a mancha.
   Regra: NUNCA resolver isso metendo a pontuação dentro do span.
   ========================================================= */
.es-yel {
  background: var(--es-green);
  color: var(--es-text);
  padding: 0 0.08em 0 0.22em;
  display: inline-block;
  transform: skew(-5deg);
  margin-right: -0.04em;
  margin-left: -0.08em;
}
.es-yel > span {
  display: inline-block;
  transform: skew(5deg);
}

/* =========================================================
   MICROCOPY · texto pequeno embaixo de CTAs
   Uso: trust signals, sinais de segurança
   ========================================================= */
.es-microcopy {
  font-family: var(--es-font-mono);
  font-size: 10.5px;
  letter-spacing: var(--es-ls-mono);
  text-transform: uppercase;
  color: var(--es-text-soft);
  line-height: 1.8;
}
.es-microcopy .sep {
  color: var(--es-purple);
  padding: 0 6px;
}

/* =========================================================
   REVEAL · animação de entrada ao scroll
   Uso: <div class="es-reveal">...</div>
   Requer o IntersectionObserver script (ver components.css).
   Staggered delay: .es-r1, .es-r2, .es-r3, .es-r4
   ========================================================= */
.es-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--es-duration-slow) var(--es-ease),
    transform var(--es-duration-slow) var(--es-ease);
}
.es-reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.es-r1 { transition-delay: 0.08s; }
.es-r2 { transition-delay: 0.16s; }
.es-r3 { transition-delay: 0.24s; }
.es-r4 { transition-delay: 0.32s; }

/* =========================================================
   RULE · divisores horizontais
   ========================================================= */
.es-rule {
  border: 0;
  height: var(--es-border-width);
  background: var(--es-text);
}
.es-rule--thin {
  height: 1px;
  background: var(--es-hairline);
}