/* Mailzen — reset e fundamentos tipográficos/layout. */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--mz-font-sans);
  font-size: var(--mz-fs-base);
  line-height: var(--mz-lh-normal);
  color: var(--mz-text);
  background: var(--mz-bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  color: var(--mz-heading);
  line-height: var(--mz-lh-tight);
  margin: 0 0 var(--mz-space-4);
  font-weight: 700;
}

h1 { font-size: var(--mz-fs-4xl); }
h2 { font-size: var(--mz-fs-3xl); }
h3 { font-size: var(--mz-fs-xl); }
h4 { font-size: var(--mz-fs-lg); }

p { margin: 0 0 var(--mz-space-4); color: var(--mz-text-muted); }

/* Acessibilidade: foco visível sempre, inclusive em cards/botões custom */
:focus-visible {
  outline: 2px solid var(--mz-brand);
  outline-offset: 2px;
}

.mz-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mz-container {
  width: 100%;
  max-width: var(--mz-content-width);
  margin-inline: auto;
  padding-inline: var(--mz-space-5);
}

.mz-section {
  padding-block: var(--mz-space-10);
}

.mz-section--alt {
  background: var(--mz-bg-alt);
}

.mz-eyebrow {
  display: inline-block;
  font-size: var(--mz-fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mz-brand-hover);
  margin-bottom: var(--mz-space-3);
}

.mz-section-head {
  max-width: 640px;
  margin: 0 auto var(--mz-space-8);
  text-align: center;
}

.mz-section-head p { font-size: var(--mz-fs-lg); }

@media (max-width: 720px) {
  h1 { font-size: var(--mz-fs-3xl); }
  h2 { font-size: var(--mz-fs-2xl); }
  .mz-section { padding-block: var(--mz-space-8); }
}

/* Reveal-on-scroll: aplicado via main.js com IntersectionObserver.
   Sem JS, o conteúdo permanece visível (progressive enhancement). */
.mz-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.mz-reveal.is-visible {
  opacity: 1;
  transform: none;
}
.no-js .mz-reveal { opacity: 1; transform: none; }
