/* ==========================================================================
   E-Fisica Contabilidade — styles.css
   Mobile first. Animações só em transform/opacity (translate/scale inclusos).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Cores (amostradas da referência) */
  --blue: #1522c2;
  --blue-600: #1019a3;
  --blue-800: #0c1272;
  --blue-rgb: 21 34 194;
  --navy: #0a0e3f;
  --lilac: #8a91e6;
  --ink: #0b0b0f;
  --ink-2: #2a2b33;
  --muted: #4f5160;
  --line: #dcdde5;
  --gray-50: #f7f7f8;
  --gray-100: #fafafa;
  --white: #fff;
  --danger: #b3261e;
  --success: #17663a;
  --wa: #1b9a4f;

  /* Tipografia */
  --font-head: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-h1: clamp(2.25rem, 1.35rem + 3.6vw, 4rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  --fs-h3: clamp(1.125rem, 1rem + .45vw, 1.375rem);
  --fs-h4: 1.0625rem;
  --fs-t1: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --fs-t2: clamp(.9375rem, .91rem + .12vw, 1rem);
  --fs-t3: .875rem;

  /* Forma */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-card: 0 10px 30px -12px rgb(10 14 63 / .22);
  --shadow-float: 0 22px 44px -18px rgb(10 14 63 / .4);

  /* Layout */
  --container: 1170px;
  --gutter: 16px;
  --section-y: 72px;
  --header-h: 68px;

  /* Movimento */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 96px; --header-h: 76px; }
}
@media (min-width: 1280px) {
  :root { --gutter: 48px; --section-y: 112px; }
}

/* ---------- Reset curto ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-t2);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: page-in .5s var(--ease-out) both;
}
body.menu-open { overflow: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; }
.bg-photo :focus-visible, .stats :focus-visible, .footer :focus-visible { outline-color: var(--white); }
::selection { background: var(--blue); color: var(--white); }

@keyframes page-in { from { opacity: 0; } }

/* ---------- Layout base ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section { position: relative; isolation: isolate; }
/* impede que elementos ainda deslocados pela animação de entrada alarguem a página no celular */
main { overflow-x: clip; }
.section { padding-block: var(--section-y); }

.skip-link {
  position: fixed;
  left: 16px; top: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  translate: 0 -200%;
}
.skip-link:focus-visible { translate: 0 0; }

/* ==========================================================================
   TIPOGRAFIA
   ========================================================================== */
.h1, .h2, .h3, .h4 { font-family: var(--font-head); color: inherit; }
.h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.06; letter-spacing: -.025em; }
.h2 { font-size: var(--fs-h2); font-weight: 600; line-height: 1.12; letter-spacing: -.018em; }
.h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.22; letter-spacing: -.01em; }
.h4 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.3; }
.t1 { font-size: var(--fs-t1); font-weight: 500; line-height: 1.5; }
.t2 { font-size: var(--fs-t2); line-height: 1.6; }
.t3 { font-size: var(--fs-t3); font-weight: 500; line-height: 1.45; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--blue);
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

.rule { height: 0; margin: 28px 0; border: 0; border-top: 1px solid var(--ink); }
.rule--light { border-top-color: rgb(255 255 255 / .45); }
.rule--blue { border-top-color: var(--blue); }

.lnk {
  color: var(--blue);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.lnk:hover { text-decoration-thickness: 2px; }
.lnk--strong { font-family: var(--font-head); font-size: 1.0625rem; font-weight: 600; text-decoration: none; }
.lnk--strong:hover { text-decoration: underline; }
.lnk__arrow { display: inline-block; transition: transform .3s var(--ease-out); }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head .h2 + .t2 { margin-top: 16px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ==========================================================================
   BOTÕES
   ========================================================================== */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-family: var(--font-head);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease-out);
}
.btn::after {
  /* camada de hover: só opacidade */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: currentColor;
  opacity: 0;
  transition: opacity .25s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--lg { min-height: 54px; padding: 14px 30px; font-size: 1rem; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--light { background: var(--white); color: var(--blue); }
.btn--ghost { border-color: rgb(255 255 255 / .75); color: var(--white); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn:hover::after { opacity: .1; }
  .btn:active { transform: scale(.97); }
}

/* ==========================================================================
   ÍCONES (sprite SVG inline), LOGO E FOTOS
   ========================================================================== */
/* O sprite fica fora da tela (display:none quebraria a <mask> do ícone check) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  display: inline-block;
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico--sm { width: 20px; height: 20px; stroke-width: 1.9; }
.ico--md { width: 26px; height: 26px; }
.ico--lg { width: 48px; height: 48px; stroke-width: 1.2; }

/* Logo "E": barras escuras + faces cinza (cores via herança no <use>) */
.logo { display: inline-block; flex: none; color: #1c1c1c; --logo-mid: #4a4a4a; }
.logo__dark { fill: currentColor; }
.logo__mid { fill: var(--logo-mid); }
.logo--sm { width: 32px; height: 37px; }
.logo--hero { width: 92px; height: 105px; }
.nav .logo--sm, .footer .logo--sm { color: var(--white); --logo-mid: rgb(255 255 255 / .55); }
.nav.is-scrolled .logo--sm, .nav.is-open .logo--sm { color: #1c1c1c; --logo-mid: #4a4a4a; }

/* Fotos de conteúdo: P&B como na referência */
.media {
  display: block;
  object-fit: cover;
  border-radius: var(--radius);
  background: #d9d9de;
  filter: grayscale(1);
}

.deco-asterisk {
  position: absolute;
  aspect-ratio: 1;
  background: currentColor;
  -webkit-mask: url("img/asterisco.svg") center / contain no-repeat;
          mask: url("img/asterisco.svg") center / contain no-repeat;
  pointer-events: none;
}

/* ==========================================================================
   ANIMAÇÕES DE ENTRADA
   ========================================================================== */
/* Hero e pilares: CSS puro, em sequência */
.enter { animation: enter .9s var(--ease-out) both; }
.enter--1 { animation-delay: .05s; }
.enter--2 { animation-delay: .15s; }
.enter--3 { animation-delay: .28s; }
.enter--4 { animation-delay: .4s; }
.enter--5 { animation-delay: .52s; }
.enter--6 { animation-delay: .62s; }
.enter--7 { animation-delay: .7s; }
.enter--8 { animation-delay: .78s; }
.enter--9 { animation-delay: .86s; }
@keyframes enter { from { opacity: 0; translate: 0 22px; } }

/* Revelação ao rolar: só quando o JS está ativo (classe .js no <html>).
   Usa translate/scale (propriedades próprias) para não brigar com o
   transform dos efeitos de hover. */
:where([data-reveal]) {
  --reveal-t:
    opacity .7s var(--ease-out) var(--reveal-delay, 0ms),
    translate .85s var(--ease-out) var(--reveal-delay, 0ms),
    scale .85s var(--ease-out) var(--reveal-delay, 0ms);
  transition: var(--reveal-t);
}
:where(.js) :where([data-reveal]) { opacity: 0; translate: 0 28px; }
:where(.js) :where([data-reveal="left"]) { translate: -40px 0; }
:where(.js) :where([data-reveal="right"]) { translate: 40px 0; }
:where(.js) :where([data-reveal="zoom"]) { translate: 0 0; scale: .95; }
:where(.js) :where([data-reveal].is-visible) { opacity: 1; translate: 0 0; scale: 1; }

/* ==========================================================================
   PROGRESSO DE LEITURA
   ========================================================================== */
.progress { position: fixed; inset: 0 0 auto; z-index: 70; height: 3px; pointer-events: none; }
.progress__bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--lilac), var(--blue));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
  color: var(--white);
}
.nav::before {
  /* fundo sólido que aparece ao rolar (opacidade) */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--white);
  box-shadow: 0 8px 24px -14px rgb(10 14 63 / .35);
  opacity: 0;
  transition: opacity .35s var(--ease-out);
}
.nav.is-scrolled, .nav.is-open { color: var(--ink); }
.nav.is-scrolled::before, .nav.is-open::before { opacity: 1; }

.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__name { font-family: var(--font-head); font-size: 1.125rem; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.nav__name small { display: block; margin-top: 4px; font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }

.nav__toggle {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  -webkit-tap-highlight-color: transparent;
}
.nav__bars { position: relative; display: block; width: 24px; height: 16px; }
.nav__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .4s var(--ease-out), opacity .25s;
}
.nav__bars span:nth-child(1) { top: 0; }
.nav__bars span:nth-child(2) { top: 7px; }
.nav__bars span:nth-child(3) { top: 14px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer mobile */
.nav__menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px var(--gutter) 40px;
  overflow-y: auto;
  background: var(--white);
  color: var(--ink);
  opacity: 0;
  transform: translateY(-12px);
  visibility: hidden;
  transition: opacity .3s var(--ease-out), transform .45s var(--ease-out), visibility 0s .45s;
}
/* ao abrir, visibility muda na hora (sem transição) para o foco funcionar */
.nav.is-open .nav__menu { opacity: 1; transform: none; visibility: visible; transition: opacity .3s var(--ease-out), transform .45s var(--ease-out); }
.nav__list { display: grid; }
.nav__link {
  position: relative;
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .4s var(--ease-out);
}
.nav__link[aria-current]::after { transform: scaleX(1); }
.nav__link[aria-current] { color: var(--blue); }
.nav__cta { align-self: stretch; background: var(--blue); color: var(--white); }

@media (min-width: 1024px) {
  .nav__toggle { display: none; }
  .nav__menu {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 0;
    overflow: visible;
    background: none;
    color: inherit;
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: none;
  }
  .nav__list { display: flex; gap: 28px; }
  .nav__link { padding: 8px 0; border: 0; font-size: .9375rem; font-weight: 500; }
  .nav__link::after { bottom: 0; background: currentColor; }
  .nav__link:hover::after { transform: scaleX(1); }
  .nav__link[aria-current] { color: inherit; }
  .nav.is-scrolled .nav__link[aria-current] { color: var(--blue); }
  .nav__cta { align-self: auto; min-height: 44px; padding: 10px 20px; background: var(--white); color: var(--blue); }
  .nav.is-scrolled .nav__cta { background: var(--blue); color: var(--white); }
}

/* ==========================================================================
   FUNDOS (etapa 2)
   ========================================================================== */
.bg-photo { color: var(--white); background: #3b3b3b; overflow: hidden; }
.bg-photo::before,
.bg-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bg-photo::before {
  background: var(--photo) var(--photo-pos, center) / cover no-repeat;
  filter: grayscale(1) contrast(1.05);
}

/* Hero: equipe; no mobile o azul cobre a foto inteira */
.bg-photo--hero { --photo: url("img/hero-equipe.jpg"); --photo-pos: 60% 30%; }
.bg-photo--hero::after {
  background: linear-gradient(180deg, rgb(var(--blue-rgb) / .62) 0%, rgb(var(--blue-rgb) / .78) 55%, rgb(12 18 114 / .92) 100%);
}
@media (min-width: 768px) {
  .bg-photo--hero::after {
    background:
      linear-gradient(180deg, rgb(10 14 63 / .25) 0%, transparent 30%),
      linear-gradient(90deg, rgb(var(--blue-rgb) / .9) 0%, rgb(var(--blue-rgb) / .72) 35%, rgb(var(--blue-rgb) / .35) 62%, rgb(var(--blue-rgb) / 0) 85%);
  }
}

/* Banner "Cresça…" */
.bg-photo--banner { --photo: url("img/banner-silhuetas.jpg"); --photo-pos: center 40%; }
.bg-photo--banner::after { background: rgb(10 10 14 / .35); }

/* "O mercado não espera" */
.bg-photo--laptop { --photo: url("img/laptop-graficos.jpg"); --photo-pos: center 45%; }
.bg-photo--laptop::after {
  background: linear-gradient(180deg, rgb(var(--blue-rgb) / .9) 0%, rgb(var(--blue-rgb) / .8) 55%, rgb(12 16 60 / .88) 100%);
}
@media (min-width: 900px) {
  .bg-photo--laptop::after {
    background: linear-gradient(90deg, rgb(var(--blue-rgb) / .95) 0%, rgb(var(--blue-rgb) / .68) 40%, rgb(16 20 52 / .62) 72%, rgb(16 16 22 / .6) 100%);
  }
}

/* Faixa "Entre em contato" */
.bg-photo--contact { --photo: url("img/contato-reuniao.jpg"); --photo-pos: center 35%; }
.bg-photo--contact::after {
  background: linear-gradient(270deg, rgb(var(--blue-rgb) / .92) 0%, rgb(var(--blue-rgb) / .6) 40%, rgb(20 20 30 / .55) 100%);
}

/* CTA final */
.bg-photo--cta { --photo: url("img/cta-calculadora.jpg"); --photo-pos: center; }
.bg-photo--cta::after {
  background: linear-gradient(90deg, rgb(20 20 26 / .78) 0%, rgb(20 20 26 / .55) 45%, rgb(var(--blue-rgb) / .8) 72%, rgb(var(--blue-rgb) / .95) 100%);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  --overlap: 150px;  /* quanto dos pilares fica sobre o fundo branco */
  background: var(--white);
  padding-top: calc(var(--header-h) + 28px);
}
.hero::before, .hero::after { bottom: var(--overlap); }
.hero__inner { padding-bottom: 48px; }
.hero__title { margin-top: 24px; max-width: 18ch; }
.hero .rule { margin: 26px 0 22px; }
.hero__lead { max-width: 620px; }
.hero__quote { margin-top: 22px; }
.hero__quote .t2 { font-size: var(--fs-t1); font-weight: 600; }
.hero__quote cite { display: block; margin-top: 6px; font-style: normal; font-weight: 700; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__actions .btn { flex: 1 1 220px; }

@media (min-width: 768px) {
  .hero { --overlap: 110px; padding-top: calc(var(--header-h) + 24px); }
  .logo--hero { width: 150px; height: 170px; }
  .hero__title { max-width: none; }
  .hero__actions .btn { flex: 0 0 auto; }
}
@media (min-width: 1280px) {
  .hero__inner { padding-bottom: 64px; }
}

/* Pilares */
.pillars { display: grid; gap: 20px; }
.pillar {
  position: relative;
  padding: 28px 26px 32px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-card);
  transition: transform .45s var(--ease-out);
}
.pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: var(--shadow-float);
  opacity: 0;
  transition: opacity .45s var(--ease-out);
}
.pillar__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--navy);
  color: var(--blue);
}
.pillar__title { color: var(--ink); letter-spacing: .02em; text-transform: uppercase; }
@media (hover: hover) {
  .pillar:hover { transform: translateY(-6px); }
  .pillar:hover::after { opacity: 1; }
}
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pillars { grid-template-columns: repeat(4, 1fr); gap: 28px; } }

/* ==========================================================================
   QUEM SOMOS + TIMELINE
   ========================================================================== */
.about { background: var(--gray-50); overflow: hidden; }
.about::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -22vw; top: 6%;
  width: min(80vw, 640px);
  aspect-ratio: 1;
  background: var(--white);
  -webkit-mask: url("img/asterisco.svg") center / contain no-repeat;
          mask: url("img/asterisco.svg") center / contain no-repeat;
}
.about__title { font-weight: 700; text-transform: uppercase; }

.timeline { --dot: 56px; position: relative; max-width: 1000px; margin-inline: auto; }
.timeline::before {
  /* linha vertical desenhada ao entrar na tela */
  content: "";
  position: absolute;
  left: calc(var(--dot) / 2);
  top: 0; bottom: 0;
  width: 1px;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 1.6s var(--ease-in-out);
}
.timeline.is-drawn::before, :where(html:not(.js)) .timeline::before { transform: scaleY(1); }

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: var(--dot) 1fr;
  column-gap: 20px;
  align-items: start;
  padding-bottom: 40px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-tag { display: none; }
.tl-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 0 0 6px var(--gray-50), 0 10px 20px -8px rgb(var(--blue-rgb) / .6);
}
.tl-body { padding-top: 6px; }
.tl-body .t2 { margin-top: 8px; }

@media (min-width: 900px) {
  .timeline { --arm: clamp(60px, 9vw, 130px); }
  .timeline::before { left: 50%; }
  .tl-item { grid-template-columns: 1fr var(--dot) 1fr; column-gap: 0; align-items: center; padding-bottom: 56px; }
  .tl-item > * { grid-row: 1; }
  .tl-dot { grid-column: 2; }
  .tl-tag {
    position: relative;
    grid-column: 1;
    justify-self: end;
    display: flex;
    align-items: center;
    min-height: 74px;
    margin-right: var(--arm);
    padding: 20px 30px;
    border-radius: var(--radius-sm);
    background: var(--white);
    box-shadow: var(--shadow-card);
    font-family: var(--font-head);
    font-size: 1.0625rem;
    font-weight: 600;
  }
  .tl-tag::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    width: var(--arm);
    height: 1px;
    background: var(--ink);
  }
  .tl-body { grid-column: 3; padding: 0 0 0 28px; }
  .tl-item--alt .tl-tag { grid-column: 3; justify-self: start; margin: 0 0 0 var(--arm); }
  .tl-item--alt .tl-tag::after { left: auto; right: 100%; }
  .tl-item--alt .tl-body { grid-column: 1; padding: 0 28px 0 0; text-align: right; }
}

/* ==========================================================================
   POR QUE NOS ESCOLHER
   ========================================================================== */
.why__grid { display: grid; gap: 56px; align-items: center; }
.why__media { position: relative; width: 100%; max-width: 560px; aspect-ratio: 553 / 600; }
.why__media > * { position: absolute; }
.why__img-a { left: 0; top: 0; width: 66%; height: 81%; }
.why__img-b { left: 54.5%; top: 58%; width: 45.5%; height: 42%; }
.why__asterisk { left: 66%; top: 18%; width: 25%; color: var(--lilac); }
.badge {
  left: 46%; top: 49%;
  display: grid;
  gap: 6px;
  min-width: 25%;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-float);
}
.badge__num { font-family: var(--font-head); font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.badge__label { font-family: var(--font-head); font-size: .9375rem; font-weight: 600; line-height: 1.15; max-width: 9ch; }
.why__text .rule { margin: 26px 0; }
.why__text .btn { margin-top: 30px; }
@media (min-width: 960px) {
  .why__grid { grid-template-columns: 1.05fr 1fr; gap: 72px; }
}

/* ==========================================================================
   CONTADORES
   ========================================================================== */
.stats { padding-block: 56px; background: var(--blue); color: var(--white); overflow: hidden; }
.stats::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -60px; top: 50%;
  width: 260px;
  aspect-ratio: 1;
  translate: 0 -50%;
  background: rgb(255 255 255 / .12);
  -webkit-mask: url("img/asterisco.svg") center / contain no-repeat;
          mask: url("img/asterisco.svg") center / contain no-repeat;
}
.stats__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
.stat { display: grid; gap: 6px; text-align: center; }
.stat__num {
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 1.6rem + 2.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: var(--fs-t3); font-weight: 500; opacity: .9; }
.stat--todo .stat__num { font-size: 1.5rem; letter-spacing: .1em; opacity: .65; }
@media (min-width: 768px) {
  .stats__list { grid-template-columns: repeat(4, 1fr); }
  .stat + .stat { border-left: 1px solid rgb(255 255 255 / .2); }
}

/* ==========================================================================
   SERVIÇOS (tilt 3D + brilho que segue o cursor)
   ========================================================================== */
.svc-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.svc {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: var(--reveal-t), transform .5s var(--ease-out);
}
.svc::before {
  /* barra de destaque no topo */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .5s var(--ease-out);
}
.svc::after {
  /* sombra de elevação (opacidade) */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  box-shadow: var(--shadow-float);
  opacity: 0;
  transition: opacity .5s var(--ease-out);
}
.svc__glow {
  position: absolute;
  left: 0; top: 0;
  z-index: -1;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--blue-rgb) / .13) 0%, rgb(var(--blue-rgb) / 0) 65%);
  opacity: 0;
  transform: translate(calc(var(--mx, 0px) - 170px), calc(var(--my, 0px) - 170px));
  transition: opacity .4s var(--ease-out);
  pointer-events: none;
}
.svc__icon .ico { width: 38px; height: 38px; stroke-width: 1.4; }
.svc__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: rgb(var(--blue-rgb) / .07);
  color: var(--blue);
  transition: transform .5s var(--ease-out);
}
.svc .h3 { margin: 22px 0 10px; }
.svc .t2 { color: var(--muted); }
.svc__link { align-self: flex-start; margin-top: auto; padding-top: 22px; text-decoration: none; }
.svc__link:hover { text-decoration: underline; }

.svc.is-hover { --lift: -6px; }
.svc.is-hover::before { transform: scaleX(1); }
.svc.is-hover::after, .svc.is-hover .svc__glow { opacity: 1; }
.svc.is-hover .svc__icon { transform: translateZ(0) scale(1.06); }
.svc.is-hover .lnk__arrow, .svc__link:focus-visible .lnk__arrow { transform: translateX(4px); }
.svc:focus-within::before { transform: scaleX(1); }

/* Toque: só estado ativo */
@media (hover: none) {
  .svc:active { --lift: 0px; transform: scale(.985); }
  .svc:active::before { transform: scaleX(1); }
}

/* ==========================================================================
   BANNER
   ========================================================================== */
.banner { padding-block: clamp(64px, 9vw, 84px); }
.banner__box {
  padding: clamp(28px, 5vw, 44px);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgb(14 16 34 / .72) 0%, rgb(var(--blue-rgb) / .86) 55%, rgb(var(--blue-rgb) / .92) 100%);
}
.banner__box .h2 { max-width: 24ch; }
.banner__strong { margin-top: 18px; font-size: var(--fs-t2); font-weight: 700; }
.banner__box .t2 { margin-top: 18px; }

/* ==========================================================================
   FAIXA COM CHECKLIST ("O mercado não espera")
   ========================================================================== */
.band { padding-block: clamp(72px, 9vw, 104px); }
.band__grid { display: grid; gap: 40px; align-items: center; }
.band__text .t2 { margin-top: 18px; }
.band__text .rule { margin: 30px 0 4px; }
.band__text .btn { margin-top: 34px; background: var(--blue-800); }
.checks { display: grid; gap: 14px; justify-self: start; }
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.125rem, 1rem + .9vw, 1.625rem);
  font-weight: 500;
  line-height: 1.25;
}
@media (min-width: 900px) {
  .band__grid { grid-template-columns: 1.15fr 1fr; gap: 56px; }
  .checks { justify-self: center; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { background: var(--gray-50); }
.faq__inner { max-width: 880px; }
.accordion { display: grid; gap: 12px; }
.acc-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  transition: var(--reveal-t);
}
.acc-item__head { font: inherit; }
.acc-item__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 64px;
  padding: 18px 22px;
  border: 0;
  border-radius: 10px;
  background: none;
  font-family: var(--font-head);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}
.acc-item__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgb(var(--blue-rgb) / .08);
  transition: transform .45s var(--ease-out);
}
.acc-item__icon::before,
.acc-item__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--blue);
  transition: transform .45s var(--ease-out);
}
.acc-item__icon::after { transform: rotate(90deg); }
.acc-item__btn[aria-expanded="true"] .acc-item__icon { transform: rotate(180deg); }
.acc-item__btn[aria-expanded="true"] .acc-item__icon::after { transform: rotate(0deg); }
.acc-item__panel { padding: 0 22px 22px; color: var(--muted); }
.acc-item__panel:not([hidden]) { animation: acc-in .45s var(--ease-out); }
@keyframes acc-in { from { opacity: 0; translate: 0 -8px; } }

/* ==========================================================================
   CONTATO
   ========================================================================== */
.contact-hero { padding-block: 56px 72px; }
@media (min-width: 768px) { .contact-hero { padding-block: 72px 88px; } }

.contact__grid { display: grid; gap: 56px; }
.contact__intro { margin-top: 18px; color: var(--muted); }
.contact__list { display: grid; gap: 22px; margin-top: 34px; }
.contact__list dt { font-weight: 700; }
.contact__list dd { margin-top: 4px; }
.map {
  margin-top: 34px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e4e4e8;
}
.map__frame { width: 100%; height: 100%; border: 0; filter: grayscale(1); }
.map__btn { margin-top: 16px; }
@media (min-width: 960px) {
  .contact__grid { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
}

/* Formulário */
.form {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--gray-50);
}
.form__hint { margin: 6px 0 24px; color: var(--muted); font-weight: 400; }
.form__row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 6px; }
.field__label { display: block; margin-bottom: 6px; font-family: var(--font-head); font-size: .875rem; font-weight: 600; }
.field__input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid #b9bac6;
  border-radius: 6px;
  background: var(--white);
  font-size: 1rem; /* 16px evita zoom no iOS */
  line-height: 1.4;
}
.field__input::placeholder { color: #6b6d7a; }
.field__input:hover { border-color: #8f91a1; }
.field__input:focus { border-color: var(--blue); outline: 3px solid rgb(var(--blue-rgb) / .2); outline-offset: 0; }
.field__input.is-invalid { border-color: var(--danger); }
.field__input.is-valid { border-color: var(--success); }
.field__select {
  appearance: none;
  padding-right: 44px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231522c2' stroke-width='2'/%3E%3C/svg%3E") right 16px center / 14px 9px no-repeat;
}
.field__textarea { min-height: 140px; resize: vertical; }
.field__error {
  min-height: 1.5em;
  padding-top: 4px;
  color: var(--danger);
  font-size: .8125rem;
  font-weight: 500;
  opacity: 0;
}
.field__error.is-shown { opacity: 1; animation: err-in .35s var(--ease-out); }
@keyframes err-in { from { opacity: 0; translate: 0 -6px; } }
.is-shake { animation: shake .4s var(--ease-out); }
@keyframes shake {
  20% { translate: -6px 0; }
  40% { translate: 5px 0; }
  60% { translate: -3px 0; }
  80% { translate: 2px 0; }
}

.form__submit { width: 100%; margin-top: 10px; }
.form__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgb(255 255 255 / .35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.form.is-loading .form__spinner { display: inline-block; }
.form.is-loading .form__submit { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__status { min-height: 1.5em; margin-top: 14px; font-weight: 500; }
.form__status.is-success { color: var(--success); animation: err-in .4s var(--ease-out); }
.form__status.is-error { color: var(--danger); animation: err-in .4s var(--ease-out); }
@media (min-width: 560px) { .form__submit { width: auto; } }

/* ==========================================================================
   CTA FINAL + RODAPÉ
   ========================================================================== */
.footer-cta { padding-top: clamp(64px, 8vw, 88px); }
.footer-cta__grid { display: grid; gap: 40px; align-items: end; }
.footer-cta__text { padding-bottom: 8px; }
.footer-cta__quote { margin-top: 22px; }
.footer-cta__quote .t2 { font-weight: 500; }
.footer-cta__quote cite { display: block; margin-top: 6px; font-style: normal; font-weight: 700; }
.footer-cta__text .btn { margin-top: 30px; }
.footer-cta__person {
  justify-self: center;
  width: min(72%, 380px);
  height: auto;
  border-radius: 0;
  background: none;
  object-fit: contain;
  object-position: bottom;
}
@media (min-width: 900px) {
  .footer-cta__grid { grid-template-columns: 1fr 1fr; }
  .footer-cta__text { padding-bottom: 96px; }
  .footer-cta__person { width: min(100%, 380px); }
}

.footer { padding: 56px 0 28px; background: var(--navy); color: rgb(255 255 255 / .8); font-size: var(--fs-t3); }
.footer__grid { display: grid; gap: 36px; }
.footer__brand { color: var(--white); }
.footer__name { margin-top: 14px; font-family: var(--font-head); font-size: 1.125rem; font-weight: 700; color: var(--white); }
.footer__brand .t3 { margin-top: 4px; color: rgb(255 255 255 / .8); font-weight: 400; }
.footer__title {
  margin-bottom: 14px;
  color: var(--white);
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer__col li + li { margin-top: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / .16);
  font-size: .8125rem;
}
@media (max-width: 767px) { .footer { padding-bottom: 104px; } } /* espaço para o botão flutuante */
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; }
  .footer__bottom { padding-right: 96px; }
}

/* ==========================================================================
   WHATSAPP FLUTUANTE
   ========================================================================== */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 55;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--white);
  box-shadow: 0 12px 28px -10px rgb(0 0 0 / .45);
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--ease-out);
}
.wa-float::before {
  /* pulso sutil */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--wa);
  animation: pulse 2.8s var(--ease-out) infinite;
}
@keyframes pulse {
  0% { opacity: .55; transform: scale(1); }
  60%, 100% { opacity: 0; transform: scale(1.6); }
}
.ico--wa { width: 30px; height: 30px; }
.wa-float:active { transform: scale(.94); }
.wa-float__tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
  font-size: .875rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translate(8px, -50%);
  transition: opacity .25s var(--ease-out), transform .35s var(--ease-out);
  pointer-events: none;
}
.wa-float:hover .wa-float__tip,
.wa-float:focus-visible .wa-float__tip,
.wa-float.is-tip .wa-float__tip { opacity: 1; transform: translate(0, -50%); }
@media (hover: hover) { .wa-float:hover { transform: translateY(-3px); } }
@media (min-width: 768px) { .wa-float { right: 28px; bottom: 28px; } }

/* ==========================================================================
   MOVIMENTO REDUZIDO
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* sem animações nem transições; os estados finais já são o padrão */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  :where(.js) :where([data-reveal]) { opacity: 1; translate: 0 0; scale: 1; }
  .timeline::before { transform: scaleY(1); }
  .wa-float::before { animation: none; opacity: 0; }
  .svc { transform: none; }
}
