*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { left: 8px; }

/* header */
.header { position: sticky; top: 0; z-index: 40; background: rgba(14, 15, 17, .9); backdrop-filter: blur(12px); color: var(--text-on-ink); border-bottom: 1px solid var(--line-ink); }
.header__in { display: flex; align-items: center; gap: 2rem; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.logo__svg { display: block; height: 30px; width: auto; fill: currentColor; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { text-decoration: none; color: var(--text-on-ink-muted); font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--white); }
.header__actions { display: flex; gap: .6rem; }

/* botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .7rem 1.2rem; border-radius: var(--radius-pill);
  font: 600 .98rem/1 var(--font-body); text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn i { font-size: 1.25em; }
.btn:active { transform: scale(.98); }
.btn--wa { background: var(--cta-bg); color: var(--cta-fg); }
.btn--wa:hover { background: var(--cta-hover); }
.btn--ghost { color: var(--text-on-ink); border-color: var(--line-ink); }
.btn--ghost:hover { border-color: var(--text-on-ink-muted); }
.btn--line { color: var(--text-on-ink); border-color: rgba(255, 255, 255, .35); }
.btn--line:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }
.btn--line-light { color: var(--text-on-ink); border-color: rgba(255, 255, 255, .3); margin-top: 2.5rem; }
.btn--line-light:hover { border-color: var(--white); }
.btn--dark { background: var(--black-900); color: var(--white); }
.btn--dark:hover { background: var(--graphite-800); }
.btn--xl { min-height: 58px; padding: 1rem 1.6rem; font-size: 1.06rem; }


/* revelação ao rolar (só com JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

.m-only { display: none; }

/* barra fixa no celular */
.dock { display: none; }

@media (max-width: 960px) {
  .nav { display: none; }
  .header__actions { margin-left: auto; }
  .header__actions .btn--ghost span { display: none; }
  .header__actions .btn--ghost { width: 46px; padding: 0; }
}
@media (max-width: 720px) {
  .m-only { display: inline; }
  .d-only { display: none; }
  .header__actions { display: none; }
  .dock {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: .5rem; position: fixed; z-index: 50;
    left: 0; right: 0; bottom: 0; padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(14, 15, 17, .94); backdrop-filter: blur(10px); border-top: 1px solid var(--line-ink);
  }
  .dock a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; border-radius: 14px; font-weight: 600; text-decoration: none; }
  .dock i { font-size: 1.3rem; }
  .dock__call { color: var(--white); border: 1.5px solid rgba(255, 255, 255, .3); }
  .dock__wa { background: var(--cta-bg); color: var(--cta-fg); }
  body { padding-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* contextos escuros invertem o botão principal */
.header, .hero, .final, .dock, .section--ink { --cta-bg: var(--white); --cta-fg: var(--black-950); --cta-hover: var(--grey-200); }
