section[id],
#diagnostico {
  scroll-margin-top: 4.5rem;
}

#diagnostico {
  position: absolute;
  top: 0;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgb(18 34 74 / 9%);
}

.header-navigation {
  gap: 1.25rem;
}

.desktop-navigation {
  display: none;
  gap: 1rem;
  white-space: nowrap;
}

.site-header #menu-toggle:not([hidden]) {
  display: grid;
}

@media (min-width: 72rem) {
  .desktop-navigation {
    display: flex;
  }

  .site-header #menu-toggle:not([hidden]),
  .mobile-menu {
    display: none;
  }
}

.mobile-menu {
  max-height: calc(100dvh - 4.5rem);
  overflow-y: auto;
  border-top: 1px solid #e2e8f0;
  background: white;
}

.mobile-menu a:not(.mobile-contact):hover {
  background: #eff3fb;
  color: #234ecb;
}

.hero-contact {
  background-color: #2d58e3;
  box-shadow: 0 14px 30px -12px rgb(46 94 234 / 90%);
}

.hero-contact:hover {
  background-color: #2248c5;
}

.payback-highlight {
  padding-inline: 0.12em;
  color: #12224a;
  font-weight: 700;
  background: linear-gradient(transparent 72%, #aeeafa 72%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.segment-key {
  background-color: #2d58e3;
  color: white;
}

@media (min-width: 48rem) {
  .segment-featured {
    transform: translateY(-0.25rem);
    box-shadow: 0 18px 32px -18px rgb(18 34 74 / 32%);
  }
}

.consultant-caption {
  position: absolute;
  inset-inline: 0;
  bottom: -1.25rem;
  z-index: 1;
  width: fit-content;
  max-width: calc(100% - 2rem);
  margin-inline: auto;
  padding: 0.75rem 1.25rem;
  border-radius: 1rem;
  background: #2d58e3;
  text-align: center;
  box-shadow: 0 16px 35px -18px rgb(0 0 0 / 55%);
}

.consultant-caption p + p {
  color: rgb(255 255 255 / 90%);
}

.method-dialog {
  position: fixed;
  inset: 0;
  width: min(68rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: white;
}

.method-dialog::backdrop {
  background: rgb(15 23 42 / 85%);
}

body:has(.method-dialog[open]) {
  overflow: hidden;
}

.method-dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
}

.method-dialog img {
  display: block;
  width: 100%;
  height: auto;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #2e5eea;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-contact,
  .site-header,
  #segmentos article {
    transition: none;
  }
}
