/* ==========================================================================
   AVCTORIS — Home
   Figma: AVCTORIS — Home Redesign (node 5:2)
   Bootstrap 5.3.3 + CSS complementar
   ========================================================================== */

/* Tokens */
:root {
  --av-purple: #4f138c;
  --av-purple-dark: #1f0633;
  --av-purple-deep: #290b40;
  --av-lilac: #f5edff;
  --av-yellow: #ffb814;
  --av-yellow-dark: #f0a800;
  --av-text: #0b0d1c;
  --av-muted: #575a70;
  --av-muted-2: #6b6e84;
  --av-muted-3: #74778d;
  --av-muted-4: #7f8198;
  --av-muted-5: #8d8f9e;
  --av-arrow: #b8bac7;
  --av-border: #e3e3ed;
  --av-border-soft: #f0edf7;
  --av-bg-light: #fbfbfe;
}

/* Base */
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--av-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3 { font-weight: 700; margin: 0; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
img, svg { max-width: 100%; }

:where(a, button, .accordion-button):focus-visible {
  outline: 3px solid rgba(79, 19, 140, .45);
  outline-offset: 2px;
  border-radius: 4px;
}

.container-av,
.container-plans {
  width: 100%;
  margin-inline: auto;
  padding-inline: 24px;
}
.container-av { max-width: 1308px; }
/* padding = metade do gutter de 55px do Figma, evita estouro da .row */
.container-plans { max-width: 1365px; padding-inline: 27.5px; }

.text-purple { color: var(--av-purple); }
.text-yellow { color: var(--av-yellow); }

/* Ícones inline */
.ico-30 { width: 30px; height: 30px; }
.ico-28 { width: 28px; height: 28px; }
.ico-25 { width: 25px; height: 25px; }
.ico-23 { width: 23px; height: 23px; }
.ico-check { width: 15px; height: 15px; flex: none; }
.btn-arrow { width: 16px; height: 16px; flex: none; }

/* Títulos de seção */
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--av-yellow);
  margin-bottom: 14px;
}
.section-eyebrow-soft {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--av-muted-3);
}
.section-title { font-size: 34px; line-height: 1.22; }
.section-sub { font-size: 16px; color: var(--av-muted); margin-top: 12px; }

/* Botões */
.btn-av {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 17px 28px;
  border: 0;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--av-text);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn-av-yellow { background: var(--av-yellow); }
.btn-av-yellow:hover { background: var(--av-yellow-dark); }
.btn-av-outline { background: #fff; border: 1.5px solid var(--av-border); padding: 15.5px 26.5px; }
.btn-av-outline:hover { border-color: var(--av-purple); }
.btn-av-outline-light { background: transparent; border: 1.5px solid #fff; color: #fff; padding: 15.5px 26.5px; }
.btn-av-outline-light:hover { background: rgba(255, 255, 255, .12); }
.btn-av-lg { padding: 22px 28px; min-width: 300px; }
.btn-av-cta { padding: 20px 28px; min-width: 300px; }
.btn-av-block { display: flex; justify-content: flex-start; width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { background: #fff; position: relative; z-index: 1030; } /* header fixo acima de qualquer seção */
.av-navbar { padding: 27px 0; }
.av-navbar .container-av {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.brand-logo { height: 36px; width: auto; display: block; }
.footer-brand img { height: 33px; width: auto; display: block; }
.av-navbar .navbar-collapse { justify-content: space-between; }
.av-nav { flex-direction: row; gap: 34px; margin-inline: auto; }
.av-nav .nav-link {
  padding: 0;
  font-size: 14px;
  color: var(--av-text);
}
.av-nav .nav-link:hover { color: var(--av-purple); }
.av-nav-actions { display: flex; align-items: center; gap: 20px; }

/* --- Submenu (Como funciona) --------------------------------------------- */
.av-tem-submenu { position: relative; display: flex; align-items: center; gap: 4px; }
.av-submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--av-muted);
  cursor: pointer;
  transition: transform .25s var(--m-ease), color .2s ease;
}
.av-submenu-toggle svg { width: 11px; height: 11px; }
.av-tem-submenu:hover .av-submenu-toggle,
.av-submenu-toggle[aria-expanded="true"] { color: var(--av-purple); }
.av-submenu-toggle[aria-expanded="true"] { transform: rotate(180deg); }

.av-submenu {
  position: absolute;
  top: calc(100% + 14px);
  left: -18px;
  z-index: 20;
  min-width: 268px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--av-border);
  border-radius: 10px;
  box-shadow: 0 18px 44px -26px rgba(11, 13, 28, .5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s var(--m-ease), visibility .2s;
}
.av-tem-submenu:hover .av-submenu,
.av-tem-submenu:focus-within .av-submenu,
.av-submenu.is-aberto { opacity: 1; visibility: visible; transform: none; }
.av-submenu::before { content: ""; position: absolute; inset: -14px 0 100% 0; }
.av-submenu a {
  display: block;
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 14px;
  color: var(--av-text);
  transition: background-color .18s ease, color .18s ease;
}
.av-submenu a:hover,
.av-submenu a:focus-visible { background: var(--av-lilac); color: var(--av-purple); }
.navbar-toggler { border-color: var(--av-border); padding: 6px 10px; }
.navbar-toggler:focus { box-shadow: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: 30px 0 42px; overflow: hidden; }
.hero > .container-av { position: relative; z-index: 2; }
.hero-copy { max-width: 660px; }

.hero-eyebrow { display: flex; gap: 28px; font-size: 13px; margin-bottom: 24px; }
.eyebrow-strong { font-weight: 600; color: var(--av-yellow); letter-spacing: .04em; }
.eyebrow-soft { font-weight: 500; color: var(--av-muted-2); letter-spacing: .04em; }

.hero-title {
  font-size: clamp(34px, 3.85vw, 55px);
  line-height: 1.055;
  letter-spacing: -.01em;
  margin-bottom: 22px;
}
.hero-lead { font-size: 20px; line-height: 1.5; color: var(--av-muted); margin-bottom: 34px; }

.hero-features { display: flex; flex-wrap: wrap; gap: 20px 90px; margin-top: 32px; }
.hero-features li { display: flex; align-items: center; gap: 15px; }
.hero-feature-icon { color: var(--av-purple); display: flex; }
.hero-features strong { display: block; font-size: 15px; font-weight: 600; }
.hero-features small { display: block; font-size: 12px; color: var(--av-muted); }

/* camada 1: fundo de show, recortado na diagonal */
.hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: clamp(540px, 52%, 800px);
  background: var(--av-purple-dark);
  overflow: hidden;
  z-index: 1;
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 10% 100%);
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: -90px 0;
  background: url("../img/bg-hero.webp") center / cover no-repeat;
  transform: translate3d(0, var(--pxy, 0px), 0);
}
/* camada 2: artista recortado, acima da diagonal e sobreposto a ela.
   O left é ancorado na mesma geometria do clip-path (base da diagonal = 100% - 90% da
   largura da camada 1), deslocado para a esquerda, de modo que o corpo/guitarra
   avancem sobre o branco. O min() impede que a ponta do braço saia da tela. */
.hero-artista {
  position: absolute;
  right: auto;
  /* imagem em paisagem (1,5:1): ancorada pela mesma geometria do clip-path,
     30px à esquerda da base da diagonal, com teto para não sair da tela */
  left: min(calc(100% - 0.9 * clamp(540px, 52%, 800px) - 30px), calc(100% - 700px));
  bottom: 0;
  height: min(86%, 470px);
  width: auto;
  max-width: none;
  z-index: 2;
  pointer-events: none;
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { background: var(--av-purple-dark); color: #fff; padding: 36px 0; }
.stats-row { align-items: center; }
.stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 9px 0;
}
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .35); }
.stat-icon { display: flex; }
.stat-text strong { display: block; font-size: 34px; line-height: 1.2; }
.stat-text small { display: block; font-size: 15px; font-weight: 400; margin-top: 4px; }

/* ==========================================================================
   Planos
   ========================================================================== */
.plans { padding: 35px 0 50px; }
.plans-row { --bs-gutter-x: 3.4375rem; margin-top: 36px; }
.plan-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--av-border);
  border-radius: 8px;
  padding: 34px 24px 24px;
  text-align: center;
}
.plan-card-featured { border: 1.5px solid var(--av-purple); }
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--av-purple);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 6px 15px;
  border-radius: 12px;
  white-space: nowrap;
}
.plan-price { font-size: 34px; font-weight: 700; line-height: 1.2; }
.plan-for { font-size: 14px; color: var(--av-muted); margin-top: 6px; }
.plan-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
  margin: 34px 0 30px;
  padding-left: 10px;
}
.plan-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--av-muted); }
.plan-list svg { color: var(--av-purple); }
.plan-card .btn-av { margin-top: auto; }

/* ==========================================================================
   Banner global
   ========================================================================== */
.global-banner {
  position: relative;
  background: var(--av-purple-dark);
  color: #fff;
  padding: 48px 0 33px;
  overflow: hidden;
}
.global-banner::before {
  content: "";
  position: absolute;
  inset: -70px 0;
  background: url("../img/bg-180.webp") center / cover no-repeat;
  transform: translate3d(0, var(--pxy, 0px), 0);
}
.global-banner > .container-av { position: relative; z-index: 2; }
.global-copy { max-width: 560px; }
.global-title { font-size: 42px; line-height: 1.2; margin-bottom: 28px; }
.global-text { font-size: 16px; line-height: 1.5; margin-bottom: 32px; }

/* ==========================================================================
   Como funciona
   ========================================================================== */
.how {
  position: relative;
  padding: 60px 0 74px;
  background: #190630;
  color: #fff;
  overflow: hidden;
}
.how::before {
  content: "";
  position: absolute;
  inset: -70px 0;
  background: url("../img/bg-computador.webp") center / cover no-repeat;
  transform: translate3d(0, var(--pxy, 0px), 0);
}
/* véu só para leitura do texto sobre a arte */
.how::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 4, 38, .9) 0%, rgba(20, 4, 38, .72) 45%, rgba(20, 4, 38, .38) 72%, rgba(20, 4, 38, .22) 100%);
}
/* camada 2: notebook recortado, protagonista à direita */
.how-notebook {
  position: absolute;
  right: clamp(0px, 1%, 22px);
  top: 50%;
  transform: translate3d(0, var(--pxy, 0px), 0) translateY(-50%);
  width: clamp(360px, 44%, 700px);
  height: auto;
  z-index: 2;
}
.how > .container-av {
  position: relative;
  z-index: 3;
  padding-right: 46%;
}
.how .section-title { color: #fff; }
.how .section-title { margin-bottom: 0; }
.how-steps { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 34px 24px; margin-top: 46px; }
.how-step { flex: 0 0 calc(50% - 12px); min-width: 0; }
.how-step-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.how-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 27px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  flex: none;
}
.how-number { font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .62); }
.how-title { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 9px; }
.how-text { font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .78); }
/* as setas só fazem sentido com os 4 passos em linha; no grid 2x2 saem de cena */
.how-arrow {
  display: none;
  flex: none;
  color: rgba(255, 255, 255, .5);
  align-items: center;
  height: 54px;
}

/* ==========================================================================
   Tipos de obras
   ========================================================================== */
.work-types { background: var(--av-bg-light); padding: 38px 0 40px; }
.work-types-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 30px;
  margin-bottom: 32px;
}
.work-types-head .section-eyebrow { margin-bottom: 0; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 20px;
}
.work-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 120px;
  padding: 18px 10px;
  background: #fff;
  border: 1px solid var(--av-border-soft);
  border-radius: 7px;
  text-align: center;
}
.work-icon { color: var(--av-purple); display: flex; }
.work-label { font-size: 13px; color: var(--av-muted); line-height: 1.35; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding: 45px 0 50px; }
.faq-title { font-size: 38px; line-height: 1.2; }
.av-accordion {
  --bs-accordion-bg: #fff;
  --bs-accordion-color: var(--av-muted);
  --bs-accordion-border-color: var(--av-border);
  --bs-accordion-border-radius: 6px;
  --bs-accordion-inner-border-radius: 6px;
  --bs-accordion-btn-padding-x: 24px;
  --bs-accordion-btn-padding-y: 17px;
  --bs-accordion-btn-color: var(--av-muted);
  --bs-accordion-btn-bg: #fff;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-btn-icon-width: 15px;
  --bs-accordion-active-color: var(--av-text);
  --bs-accordion-active-bg: #fff;
  --bs-accordion-body-padding-x: 24px;
  --bs-accordion-body-padding-y: 4px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.av-accordion .accordion-item { border-radius: var(--bs-accordion-border-radius); }
.av-accordion .accordion-button {
  font-size: 14px;
  border-radius: var(--bs-accordion-border-radius);
}
.av-accordion .accordion-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--av-muted);
  padding-bottom: 20px;
}
.av-accordion, .faq-all { max-width: 820px; }
.faq-all { margin-top: 22px; text-align: right; }
.faq-all a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--av-purple);
}

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-final {
  position: relative;
  background: var(--av-purple);
  color: #fff;
  padding: 35px 0;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: -50px 0;
  background: url("../img/bg-roxo-footer.webp") center / cover no-repeat;
  transform: translate3d(0, var(--pxy, 0px), 0);
}
.cta-inner { position: relative; z-index: 1; }
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-title { font-size: 30px; line-height: 1.24; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #fff; padding: 35px 0 22px; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.footer-links, .footer-social { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.footer-links { font-size: 12px; color: var(--av-muted); }
.footer-links a:hover { color: var(--av-purple); }
.footer-links li[aria-hidden] { color: var(--av-border); }
.footer-social { gap: 24px; font-size: 12px; font-weight: 500; color: var(--av-purple); }
.footer-social a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 34px;
}
/* --av-muted-5 dava 3.2:1 sobre branco; --av-muted-2 passa em 4.5:1 sem sair da paleta. */
.footer-copy { font-size: 11px; color: var(--av-muted-2); }
.footer-tagline { font-size: 11px; color: var(--av-muted); }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1399.98px) {
  .work-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-media {
    width: clamp(500px, 47%, 700px);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 12% 100%);
  }
  .hero-artista {
    height: min(80%, 420px);
    left: min(calc(100% - 0.88 * clamp(500px, 47%, 700px) - 28px), calc(100% - 630px));
  }
}

@media (max-width: 1199.98px) {
  .hero-copy { max-width: 50%; }
  .hero-artista {
    height: min(74%, 380px);
    left: min(calc(100% - 0.88 * clamp(500px, 47%, 700px) - 24px), calc(100% - 570px));
  }
  .hero-lead br, .hero-title br { display: none; }
  .hero-features { gap: 18px 30px; }
  .global-copy { max-width: 46%; }
  .global-title { font-size: 34px; }
  .how-steps { gap: 28px 20px; }
  .how-notebook { width: 46%; }
}

@media (max-width: 991.98px) {
  /* Header */
  .av-navbar { padding: 18px 0; }
  .navbar-collapse { padding-top: 18px; }
  .av-nav { flex-direction: column; gap: 4px; align-items: stretch; }
  .av-nav .nav-link { padding: 10px 0; font-size: 15px; }
  .av-tem-submenu { flex-wrap: wrap; justify-content: space-between; }
  .av-submenu-toggle { width: 38px; height: 38px; }
  .av-submenu-toggle svg { width: 13px; height: 13px; }
  .av-submenu {
    position: static;
    width: 100%;
    min-width: 0;
    margin: 2px 0 8px;
    padding: 6px;
    border-radius: 8px;
    background: var(--av-bg-light);
    border-color: var(--av-border-soft);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .av-tem-submenu:hover .av-submenu,
  .av-tem-submenu:focus-within .av-submenu { display: none; }
  .av-submenu.is-aberto { display: block; }
  .av-submenu::before { content: none; }
  .av-nav-actions { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 0 6px; }
  .av-nav-actions .btn-av { justify-content: center; }

  /* Hero empilhado */
  .hero { padding: 32px 0 0; }
  .hero-copy { max-width: 100%; }
  .hero-title { font-size: clamp(32px, 5.4vw, 44px); }
  .hero-lead { font-size: 18px; margin-bottom: 32px; }
  .hero-features { margin-top: 34px; margin-bottom: 40px; }
  .hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 11;
    clip-path: none;
  }
  .hero-artista {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    height: auto;
    width: min(94%, 560px);
  }

  /* Banner global */
  .global-banner { padding: 44px 0 44px; }
  .global-banner::before { inset: 0; background-position: 72% center; }
  /* véu de leitura: no mobile o texto passa por cima do mapa */
  .global-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(20, 4, 38, .93) 0%, rgba(20, 4, 38, .78) 55%, rgba(20, 4, 38, .58) 100%);
  }
  .global-copy { max-width: 100%; }
  .global-text br, .global-title br { display: none; }
  /* Como funciona */
  .how > .container-av { padding-right: 24px; }
  .how-notebook {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    margin-top: 36px;
    display: block;
  }
  .how-steps { flex-wrap: wrap; gap: 32px 24px; margin-top: 40px; }
  .how-step { flex: 1 1 calc(50% - 24px); }

  /* Planos */
  .plans-row { --bs-gutter-x: 1.5rem; }
  .container-plans { padding-inline: 24px; }

  /* FAQ */
  .av-accordion, .faq-all { max-width: none; }
  .faq-title { font-size: 32px; }
  .faq-title br { display: none; }
  .faq-all { text-align: left; }

  /* CTA */
  .cta-title { font-size: 26px; }
}

@media (max-width: 767.98px) {
  .stats { padding: 46px 0; }
  .stat { justify-content: flex-start; padding: 21px 0; }
  .stat + .stat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .25); }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .work-types-head { gap: 6px; flex-direction: column; }
  .section-title { font-size: 28px; }
  .section-title br { display: none; }
  .hero-features { flex-direction: column; gap: 18px; }
  .how-step { flex: 1 1 100%; }
  .how-steps { gap: 26px 24px; }
  .hero-artista { width: min(96%, 380px); }
  .stat-text strong { font-size: 30px; }
  .global-title { font-size: 30px; }
  .cta-title { font-size: 24px; }
  .cta-title br { display: none; }
  .btn-av, .btn-av-lg, .btn-av-cta { padding: 16px 22px; }
  .btn-av-lg, .btn-av-cta { min-width: 0; }
  .btn-av-outline, .btn-av-outline-light { padding: 14.5px 20.5px; }
  .hero-media { aspect-ratio: 1 / 1.12; }
  .brand-logo { height: 30px; }
  .footer-brand img { height: 28px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-links { gap: 4px 18px; font-size: 13px; }
  .footer-links li[aria-hidden] { display: none; }
  .footer-social { gap: 4px 22px; font-size: 13px; }
  .footer-links a, .footer-social a { display: inline-block; padding: 7px 0; }
  .footer-bottom { margin-top: 24px; }
}

/* ==========================================================================
   Motion — reveal / stagger / parallax / entrada da Hero
   JS: assets/js/motion.js · tudo desligado em prefers-reduced-motion
   ========================================================================== */
:root {
  --m-ease: cubic-bezier(.2, .75, .25, 1);
  --m-dur: .62s;
}

/* Âncoras: rolagem suave nativa, com folga para o header fixo */
html {
  scroll-behavior: smooth;
  /* offset das âncoras a partir da altura real do header (JS mantém --av-header-h) */
  scroll-padding-top: calc(var(--av-header-h, 80px) + 18px);
}
/* o offset já vem do scroll-padding-top do <html>; repetir em scroll-margin
   somaria os dois e deixaria a seção baixa demais */

/* Header fixo: mesma altura, fundo translúcido depois da Hero */
.site-header {
  position: sticky;
  top: 0;
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
/* logado no WordPress a barra do admin é fixa no topo: o header precisa descer,
   senão ele fica atrás dela e o conteúdo atrás dele */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 rgba(11, 13, 28, .06), 0 8px 24px -18px rgba(11, 13, 28, .5);
}

/* --- Reveal no scroll --- */
html.has-motion [data-reveal]:not(.is-visible) { opacity: 0; }
html.has-motion [data-reveal].is-visible { animation: m-up var(--m-dur) var(--m-ease) backwards; }
html.has-motion [data-reveal="fade"].is-visible { animation-name: m-fade; }
html.has-motion [data-reveal="left"].is-visible { animation-name: m-left; }
html.has-motion [data-reveal="zoom"].is-visible { animation-name: m-zoom; animation-duration: .8s; }

/* --- Stagger: filhos entram em sequência --- */
html.has-motion [data-stagger]:not(.is-visible) > * { opacity: 0; }
html.has-motion [data-stagger].is-visible > * {
  animation: m-up var(--m-dur) var(--m-ease) backwards;
  animation-delay: calc(var(--i, 0) * var(--m-step, 70ms));
}

@keyframes m-up   { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
@keyframes m-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes m-left { from { opacity: 0; transform: translate3d(-26px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes m-zoom { from { opacity: 0; transform: scale(.965); } to { opacity: 1; transform: none; } }

[data-parallax] { will-change: transform; }

/* --- Entrada da Hero (coreografia no load) --- */
/* escondidos só ATÉ o load; depois de .is-loaded a opacidade base volta a 1
   e quem segura o estado inicial durante o atraso é o animation-fill-mode: backwards */
html.has-motion:not(.is-loaded) .hero-eyebrow,
html.has-motion:not(.is-loaded) .hero-title,
html.has-motion:not(.is-loaded) .hero-lead,
html.has-motion:not(.is-loaded) .hero-copy > .btn-av,
html.has-motion:not(.is-loaded) .hero-features li,
html.has-motion:not(.is-loaded) .hero-media,
html.has-motion:not(.is-loaded) .hero-artista { opacity: 0; }

html.has-motion.is-loaded .hero-eyebrow { animation: m-up .5s var(--m-ease) 80ms backwards; }
html.has-motion.is-loaded .hero-title { animation: m-wipe .85s var(--m-ease) 140ms backwards; }
html.has-motion.is-loaded .hero-lead { animation: m-up .55s var(--m-ease) 320ms backwards; }
html.has-motion.is-loaded .hero-copy > .btn-av { animation: m-up .5s var(--m-ease) 400ms backwards; }
html.has-motion.is-loaded .hero-features li {
  animation: m-up .5s var(--m-ease) backwards;
  animation-delay: calc(480ms + var(--i, 0) * 80ms);
}
html.has-motion.is-loaded .hero-media { animation: m-panel .9s var(--m-ease) 60ms backwards; }
html.has-motion.is-loaded .hero-artista { animation: m-artista 1.05s var(--m-ease) 240ms backwards; }

@keyframes m-wipe {
  from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translate3d(0, 10px, 0); }
  to   { opacity: 1; clip-path: inset(0 -2% 0 0); transform: none; }
}
@keyframes m-panel {
  from { opacity: 0; translate: 34px 0; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes m-artista {
  from { opacity: 0; translate: 38px 0; scale: .972; }
  to   { opacity: 1; translate: 0 0; scale: 1; }
}
/* notebook: entra por cima do fundo, sem mexer no transform que o posiciona */
html.has-motion [data-reveal="notebook"]:not(.is-visible) { opacity: 0; }
html.has-motion [data-reveal="notebook"].is-visible { animation: m-notebook .95s var(--m-ease) backwards; }
@keyframes m-notebook {
  from { opacity: 0; translate: 32px 0; scale: .975; }
  to   { opacity: 1; translate: 0 0; scale: 1; }
}

/* --- Microinterações --- */
.btn-av { transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s var(--m-ease); }
.btn-av .btn-arrow { transition: transform .22s var(--m-ease); }
.btn-av:hover .btn-arrow, .faq-all a:hover .btn-arrow { transform: translateX(5px); }

.plan-card { transition: transform .28s var(--m-ease), box-shadow .28s ease, border-color .28s ease; }
.work-card { transition: transform .25s var(--m-ease), box-shadow .25s ease, border-color .25s ease; }
.work-icon { transition: transform .25s var(--m-ease); }
.stat-icon, .how-icon { transition: transform .25s var(--m-ease); }

@media (hover: hover) {
  .plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px -26px rgba(11, 13, 28, .42);
    border-color: var(--av-purple);
  }
  .work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px -22px rgba(11, 13, 28, .4);
    border-color: #e0d7f2;
  }
  .work-card:hover .work-icon { transform: scale(1.09); }
  .btn-av-yellow:hover { transform: translateY(-1px); }
}

/* Accordion: altura animada pelo Bootstrap; aqui só o ritmo e a seta */
.av-accordion .accordion-collapse.collapsing { transition: height .32s var(--m-ease); }
.av-accordion .accordion-button::after { transition: transform .3s var(--m-ease); }
.av-accordion .accordion-body { transition: opacity .3s ease; }

/* --- Parallax e motion só a partir de 992px --- */
@media (max-width: 991.98px) {
  [data-parallax] { --pxy: 0px !important; }
  html.has-motion [data-reveal].is-visible,
  html.has-motion [data-stagger].is-visible > * { animation-duration: .45s; }
}

/* --- Acessibilidade: sem motion, conteúdo imediatamente disponível --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html [data-reveal],
  html [data-stagger] > *,
  html .hero-eyebrow, html .hero-title, html .hero-lead,
  html .hero-copy > .btn-av, html .hero-features li,
  html .hero-media, html .hero-artista {
    opacity: 1 !important;
    animation: none !important;
    clip-path: none;
    translate: none;
    scale: none;
  }
  [data-parallax] { --pxy: 0px !important; will-change: auto; }
  .btn-av, .plan-card, .work-card, .work-icon, .site-header,
  .av-accordion .accordion-button::after { transition: none !important; }
}

/* ==========================================================================
   Páginas internas (mesmo Design System da Home)
   ========================================================================== */
.page-hero {
  padding: 58px 0 34px;
  background: #fff;
  border-bottom: 1px solid var(--av-border-soft);
}
.page-title { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.16; letter-spacing: -.01em; }
.page-sub { margin-top: 14px; font-size: 18px; line-height: 1.5; color: var(--av-muted); max-width: 720px; }
.page-body { padding: 40px 0 72px; }
.page-thumb { margin: 0 0 32px; }
.page-thumb img { width: 100%; height: auto; border-radius: 10px; display: block; }

/* Conteúdo vindo do editor do WordPress */
.prose { max-width: 820px; font-size: 17px; line-height: 1.75; color: #3f4254; }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: 26px; line-height: 1.3; color: var(--av-text); margin-top: 40px; }
.prose h3 { font-size: 20px; line-height: 1.35; color: var(--av-text); margin-top: 32px; }
.prose h4 { font-size: 17px; color: var(--av-text); margin-top: 26px; }
.prose a { color: var(--av-purple); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: #3d0d6e; }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--av-purple); }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.prose figure { margin: 28px 0; }
.prose figcaption { font-size: 13px; color: var(--av-muted); margin-top: 8px; }
.prose blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--av-yellow);
  color: var(--av-text);
  font-size: 19px;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--av-border); padding: 10px 12px; text-align: left; }
.prose th { background: var(--av-bg-light); }
.prose code { background: var(--av-bg-light); padding: 2px 6px; border-radius: 4px; font-size: .92em; }
.prose hr { border: 0; border-top: 1px solid var(--av-border); margin: 36px 0; }

/* ==========================================================================
   Blog — listagem e post
   ========================================================================== */
.posts-section { padding: 44px 0 72px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--av-border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .25s var(--m-ease), box-shadow .25s ease, border-color .25s ease;
}
.post-card__media { display: block; aspect-ratio: 16 / 9; background: var(--av-lilac); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--m-ease); }
.post-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(120deg, var(--av-lilac), #efe3ff); }
.post-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.post-card__cat { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--av-yellow); }
.post-card__title { font-size: 17px; line-height: 1.35; }
.post-card__title a:hover { color: var(--av-purple); }
.post-card__excerpt { font-size: 14px; line-height: 1.55; color: var(--av-muted); }
.post-card__meta { margin-top: auto; padding-top: 6px; font-size: 12px; color: var(--av-muted-4); }
.posts-vazio { font-size: 16px; color: var(--av-muted); }

@media (hover: hover) {
  .post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -28px rgba(11, 13, 28, .45); border-color: #e0d7f2; }
  .post-card:hover .post-card__media img { transform: scale(1.04); }
}

.post-meta { font-size: 13px; color: var(--av-muted); margin-bottom: 22px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.post-tags li a {
  display: inline-block;
  font-size: 12px;
  color: var(--av-muted);
  border: 1px solid var(--av-border);
  border-radius: 20px;
  padding: 6px 13px;
}
.post-tags li a:hover { border-color: var(--av-purple); color: var(--av-purple); }

.post-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--av-border); }
.post-nav__link { display: inline-flex; align-items: center; gap: 10px; max-width: 48%; font-size: 14px; font-weight: 600; color: var(--av-purple); }
.post-nav__link--next { margin-left: auto; text-align: right; }
.post-nav__link span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.av-pagination { margin-top: 44px; }
.av-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.av-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--av-border);
  border-radius: 7px;
  font-size: 14px;
  color: var(--av-text);
}
.av-pagination .page-numbers:hover { border-color: var(--av-purple); color: var(--av-purple); }
.av-pagination .page-numbers.current { background: var(--av-purple); border-color: var(--av-purple); color: #fff; }
.av-pagination .page-numbers.dots { border-color: transparent; }

.erro-acoes { display: flex; flex-wrap: wrap; gap: 14px; }

/* ==========================================================================
   Rodapé — colunas com os links que já existiam no site
   ========================================================================== */
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px 40px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--av-border-soft);
}
.footer-col-title { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--av-text); margin-bottom: 12px; }
.footer-col ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-cols li { font-size: 12px; }
.footer-cols a { color: var(--av-muted); }
.footer-cols a:hover { color: var(--av-purple); }
.footer-col:first-child ul { max-width: 560px; }

@media (max-width: 991.98px) {
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 40px 0 26px; }
  .page-body { padding: 32px 0 56px; }
}
@media (max-width: 767.98px) {
  .posts-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 22px; }
  .prose { font-size: 16px; }
  .post-nav__link { max-width: 100%; }
  .post-nav__link--next { margin-left: 0; text-align: left; }
}

/* ==========================================================================
   Hero interno — identidade da Home em escala menor
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; }
/* detalhe gráfico discreto: mesmo lilás/roxo da Home, sem hero gigante */
.page-hero__detalhe {
  position: absolute;
  top: -120px;
  right: -60px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--av-lilac), rgba(245, 237, 255, 0) 70%);
  pointer-events: none;
}
.page-hero .container-av { position: relative; z-index: 1; }
.page-hero .section-eyebrow { margin-bottom: 12px; }
/* mesma barra de acento da marca usada na Home */
.page-title { position: relative; }
.page-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 18px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--av-purple), var(--av-yellow));
}

.av-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--av-muted-4);
}
.av-breadcrumb a { color: var(--av-muted); }
.av-breadcrumb a:hover { color: var(--av-purple); }
.av-breadcrumb__atual { color: var(--av-text); font-weight: 500; }

@media (max-width: 767.98px) {
  .page-hero__detalhe { width: 220px; height: 220px; top: -90px; right: -70px; }
  .page-title::after { margin-top: 14px; width: 44px; height: 3px; }
}

/* --- Rodapé: alvo de toque confortável no touch --------------------------- */
/* O texto continua do mesmo tamanho; só a área clicável cresce. O respiro entre
   as linhas encolhe na mesma medida, então o rodapé cresce pouco. Vale onde há
   dedo (telas até 991px e qualquer dispositivo sem ponteiro fino). */
@media (max-width: 991px), (hover: none) {
  .site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }
  .footer-brand a { min-height: 0; }
  .footer-cols li,
  .footer-links li,
  .footer-social li { line-height: 1.2; }
  .footer-col ul { gap: 0 20px; }
  .footer-col-title { margin-bottom: 2px; }
  .footer-links,
  .footer-social { row-gap: 0; }
  .footer-links a,
  .footer-social a { padding: 0; }
  .site-footer { padding-bottom: 12px; }
  .footer-bottom { margin-top: 14px; }
}

/* --- Faixa "180 países": arquivo do tamanho da tela ------------------------ */
/* O bg-180 tem 2167px de largura. Até 1100px de viewport isso é o dobro do que
   a tela consegue mostrar, então entra a variante reduzida — mesma imagem,
   mesmo enquadramento. */
@media (max-width: 1100px) {
  .global-banner::before { background-image: url("../img/bg-180-1100.webp"); }
  .how::before { background-image: url("../img/bg-computador-1100.webp"); }
}
