/* ==========================================================================
   Base — reset, typography, primitives (buttons, chips, eyebrow, icons)
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  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; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--leaf-500);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--leaf-100); color: var(--forest-900); }

.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-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--forest-900);
  color: var(--text-on-dark);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--t-med) var(--ease);
}
.skip-link:focus { transform: none; }

html.is-locked { overflow: hidden; }

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

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-optical-sizing: auto;
}
.display em,
.h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--leaf-700);
}
.on-dark .display em,
.on-dark .h2 em { color: var(--leaf-400); }
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display-s);
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-24);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.lede {
  font-size: var(--fs-17);
  line-height: 1.65;
  color: var(--text-2);
  max-width: 60ch;
  text-wrap: pretty;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-600);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
}
.on-dark .eyebrow { color: var(--leaf-400); }

/* ---------- Icons ---------- */
.i {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i-fill { fill: currentColor; stroke: none; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 24px; height: 24px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-size: var(--fs-15);
  font-weight: 700;
  letter-spacing: 0.005em;
  white-space: nowrap;
  user-select: none;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: var(--text-on-dark); box-shadow: 0 6px 18px -8px rgba(31, 77, 58, 0.7); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-leaf { background: var(--leaf-500); color: var(--forest-950); }
.btn-leaf:hover { background: var(--leaf-400); }
.btn-light { background: var(--white); color: var(--forest-900); }
.btn-light:hover { background: var(--cream-100); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--forest-700); }
.btn-ghost-dark { background: rgba(255, 255, 255, 0.08); color: var(--text-on-dark); border: 1.5px solid rgba(255, 255, 255, 0.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.5); }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-wa:hover { background: #1a9449; }
.btn-sm { --btn-h: 40px; padding: 0 16px; font-size: var(--fs-13); }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.icon-btn:active { transform: scale(0.94); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: var(--fs-15);
  color: var(--forest-700);
}
.link-arrow .i { transition: transform var(--t-med) var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: var(--fs-13);
  font-weight: 600;
  color: var(--text);
}

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
