/* Final interaction layer: shared geometry and contrast across every page. */

/* Homepage stack flow: adjacent sections overlap without a permanent GPU loop. */
body.cdx2-body .cdx2-stack-section {
  --cdx2-stack-index: 1;
  position: relative;
  z-index: var(--cdx2-stack-index);
  margin-top: -34px;
  border-top: 1px solid rgba(54, 22, 93, .12) !important;
  border-radius: clamp(28px, 3vw, 48px) clamp(28px, 3vw, 48px) 0 0 !important;
  box-shadow: 0 -20px 55px rgba(39, 14, 69, .075);
  transform-origin: 50% 0;
}

body.cdx2-body .cdx2-process.cdx2-stack-section {
  border-top-color: rgba(255, 255, 255, .13) !important;
  box-shadow: 0 -24px 64px rgba(16, 4, 31, .2);
}

.cdx2-js body.cdx2-body .cdx2-stack-section:not(.is-stack-visible) {
  opacity: .94;
  transform: translate3d(0, 36px, 0) scale(.995);
}

.cdx2-js body.cdx2-body .cdx2-stack-section.is-stack-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    transform .9s cubic-bezier(.16, 1, .3, 1),
    opacity .55s ease;
  will-change: transform, opacity;
}

.cdx2-js body.cdx2-body .cdx2-stack-section.is-stack-settled {
  transform: none;
  transition: none;
  will-change: auto;
}

@media (max-width: 899px) {
  body.cdx2-body .cdx2-stack-section {
    margin-top: -14px;
    border-radius: 24px 24px 0 0 !important;
    box-shadow: 0 -12px 32px rgba(39, 14, 69, .055);
  }

  .cdx2-js body.cdx2-body .cdx2-stack-section:not(.is-stack-visible) {
    opacity: .97;
    transform: translate3d(0, 18px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cdx2-js body.cdx2-body .cdx2-stack-section,
  .cdx2-js body.cdx2-body .cdx2-stack-section.is-stack-visible {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

body.cdx2-body :is(.cdx2-button, .cdx2-contact-link, .cdx2-menu-button) {
  border-radius: 999px !important;
}

/* Compact hero conversion panel. */
body.cdx2-body .cdx2-hero-brief {
  padding: clamp(1.3rem, 2vw, 1.75rem) !important;
  grid-template-columns: minmax(290px, .78fr) minmax(540px, 1.22fr) !important;
  grid-template-rows: auto 1fr !important;
  column-gap: clamp(2rem, 4vw, 4rem) !important;
  align-items: center;
  border-color: rgba(79, 39, 128, .12) !important;
  border-radius: clamp(22px, 2vw, 30px) !important;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, .94) 0 44%, rgba(245, 237, 255, .88) 100%) !important;
  box-shadow: 0 24px 70px rgba(57, 25, 96, .1) !important;
}

body.cdx2-body .cdx2-hero-brief::before {
  width: 5px !important;
  border-radius: 0 999px 999px 0;
}

body.cdx2-body .cdx2-hero-status {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 8px 24px rgba(66, 189, 130, .08);
}

body.cdx2-body .cdx2-hero-brief > p {
  margin-top: 1rem !important;
  max-width: 500px !important;
  align-self: start;
}

body.cdx2-body .cdx2-hero-brief .cdx2-hero-actions {
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
  gap: 1rem !important;
}

body.cdx2-body .cdx2-hero-brief .cdx2-button {
  min-height: 82px;
  padding-left: clamp(1.4rem, 2vw, 2rem) !important;
  border-radius: 999px !important;
}

body.cdx2-body .cdx2-text-link {
  width: max-content;
  min-height: 54px;
  padding: .4rem .45rem .4rem 1.15rem !important;
  display: inline-flex;
  align-items: center;
  gap: 1.1rem !important;
  color: #190733 !important;
  background: rgba(255, 255, 255, .8) !important;
  border: 1px solid rgba(54, 22, 93, .12) !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 30px rgba(54, 22, 93, .08);
  text-decoration: none !important;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), background-color .35s ease, color .35s ease, box-shadow .35s ease !important;
}

body.cdx2-body .cdx2-text-link > span {
  width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px;
  display: grid !important;
  place-items: center;
  color: #fff !important;
  background: #190733 !important;
  border: 0 !important;
  border-radius: 50% !important;
  line-height: 1;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), background-color .35s ease !important;
}

body.cdx2-body .cdx2-process .cdx2-text-link {
  color: #fff !important;
  background: rgba(255, 255, 255, .08) !important;
  border-color: rgba(255, 255, 255, .14) !important;
  box-shadow: none;
}

body.cdx2-body .cdx2-process .cdx2-text-link > span {
  color: #190733 !important;
  background: var(--cdx2-mint, #b8f3d2) !important;
}

body.cdx2-body .cdx2-faq-note {
  min-height: 76px;
  padding: .75rem 4.9rem .75rem 1.35rem !important;
  border-radius: 999px !important;
}

body.cdx2-body :is(.cdx2-faq-note i, .cdx2-faq summary i, .cdx2-faq details[open] summary i) {
  border-radius: 50% !important;
}

@media (min-width: 1024px) {
  body.cdx2-body .cdx2-faq-layout {
    align-items: start !important;
  }

  body.cdx2-body .cdx2-faq-list {
    margin-top: 6.25rem !important;
  }

  body.cdx2-body :is(.cdx2-faq summary, .cdx2-faq details[open] summary) {
    min-height: 110px !important;
  }
}

@media (hover: hover) and (pointer: fine) {
  body.cdx2-body .cdx2-text-link:hover {
    color: #fff !important;
    background: #190733 !important;
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(54, 22, 93, .16);
  }

  body.cdx2-body .cdx2-text-link:hover > span {
    color: #190733 !important;
    background: var(--cdx2-mint, #b8f3d2) !important;
    transform: rotate(45deg);
  }

  body.cdx2-body .cdx2-process .cdx2-text-link:hover {
    color: #190733 !important;
    background: var(--cdx2-mint, #b8f3d2) !important;
  }
}

@media (max-width: 1000px) {
  body.cdx2-body .cdx2-hero-brief {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
  }

  body.cdx2-body .cdx2-hero-brief .cdx2-hero-actions {
    grid-column: 1 !important;
    grid-row: 3 !important;
    margin-top: 1.25rem !important;
  }

}

@media (max-width: 767px) {
  body.cdx2-body .cdx2-hero-brief {
    padding: 1.15rem !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    border-radius: 22px !important;
  }

  body.cdx2-body .cdx2-hero-brief .cdx2-hero-actions {
    grid-column: 1 !important;
    grid-row: 3 !important;
    margin-top: 1.2rem !important;
  }

  body.cdx2-body .cdx2-hero-brief .cdx2-button {
    min-height: 64px;
  }

  body.cdx2-body .cdx2-text-link {
    min-height: 50px;
    padding-left: 1rem !important;
  }

  body.cdx2-body .cdx2-text-link > span {
    width: 36px !important;
    height: 36px !important;
    flex-basis: 36px;
  }

  body.cdx2-body .cdx2-faq-note {
    min-height: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.cdx2-body .cdx2-text-link,
  body.cdx2-body .cdx2-text-link > span {
    transition: none !important;
  }
}
