/* ============================================================
   REAL CREDI — Base: reset, tipografia, utilitários
   Mobile-first.
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 32px);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

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

body {
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-900);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--green-900);
  line-height: 1.15;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; }

p { color: var(--ink-500); }

/* green-700 (não green-500) em texto pequeno: contraste AA 4.5:1 */
a { color: var(--green-700); text-decoration: none; }

img, svg { max-width: 100%; display: block; }

ul { list-style: none; }

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--green-300);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--green-300);
  color: var(--green-900);
}

/* ---- Layout ---- */
.container {
  width: min(var(--container), 92vw);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-pad);
  position: relative;
}

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.section-head .eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--mint-050);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.section-head p {
  margin-top: 14px;
}

/* ---- Utilitários ---- */
.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tabular { font-feature-settings: 'tnum'; font-variant-numeric: tabular-nums; }

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

/* Skip link para acessibilidade */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  background: var(--green-700);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 8px;
  transition: top var(--dur-micro) var(--ease-brand);
}

.skip-link:focus { top: 12px; }

/* SVGs decorativos de fundo (arcos da marca) */
.brand-arc {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.section > .container { position: relative; z-index: 1; }
