/* Nascefil — base: reset, tipografia, layout e utilitários */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--emerald-dark); text-underline-offset: 0.2em; }
a:hover { color: var(--emerald-deep); }
button { font: inherit; color: inherit; }
address { font-style: normal; }
figure { margin: 0; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.08; color: var(--forest); }
h1, h2 { font-family: var(--font-serif); letter-spacing: -0.01em; }
h1 { font-size: var(--fs-display); font-weight: 500; }
h2 { font-size: var(--fs-h2); }
h3 { font-family: var(--font-sans); font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
h1 em, h2 em { font-style: italic; color: var(--emerald-dark); }

:focus-visible { outline: 3px solid var(--emerald); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--forest); color: var(--on-dark); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-dark); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--white { background: var(--white); }
.section--ivory { background: var(--ivory); }
.section--forest { background: var(--forest); color: var(--on-dark); }
.section--forest h2, .section--forest h3 { color: var(--on-dark); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--emerald-dark);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.section--forest .eyebrow { color: var(--sand); }

.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--gray); max-width: 58ch; }
.section--forest .lead { color: var(--on-dark-muted); }

/* botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 0.98rem; font-weight: 600; letter-spacing: 0.01em; text-decoration: none;
  cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--emerald-dark); color: var(--white); }
.btn--primary:hover { background: var(--emerald-deep); color: var(--white); transform: translateY(-1px); }
.btn--ghost { border-color: var(--border-strong); color: var(--forest); background: transparent; }
.btn--ghost:hover { border-color: var(--emerald-dark); color: var(--emerald-dark); }
.btn--light { background: var(--ivory); color: var(--forest); }
.btn--light:hover { background: var(--white); color: var(--forest); transform: translateY(-1px); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none; color: var(--emerald-dark);
}
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* placeholder de conteúdo pendente — visível só na fase de revisão */
.pending {
  display: inline; padding: 1px 6px; border-radius: 4px;
  background: rgba(165, 138, 74, 0.14); color: var(--gold-text);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.82em; font-style: normal;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.section--forest .pending { background: rgba(216, 200, 175, 0.16); color: var(--sand); }
.pending-block {
  padding: 22px 24px; border: 1px dashed var(--gold); border-radius: var(--radius);
  background: rgba(165, 138, 74, 0.06); color: var(--gold-text); font-size: var(--fs-small);
}

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

/* revelação suave ao rolar */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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