/* ========================================= */
/* NAVIGATION */
/* ========================================= */
.mega-menu-platform-grid .resources-inner {
    align-items: start;
    display: grid;
    grid-template-columns: repeat(3, minmax(auto, 1fr));
}
.feature {
    margin-top: 1rem;
}
.feature p.title {
  font-size: 1rem;
    font-weight: bold;
}
.feature p.desc {
  font-size: 1rem;
   
}

.nav-cta .btn-white {
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 12px 22px;
}
.nav-cta .btn-white:hover {
  opacity: .7;
}
a.btn.btn-primary.btn-lg.btn-demo {
  display: block;
}
.section_top-nav {
  position: relative;
  z-index: 100;
  padding-top: 1.5rem;
}
.section_top-nav.mega-menu-active .nav-wrapper {
  /*   min-height: 7rem; */
  /*   padding: 0 2.5rem !important; */

  /*   background: #fff; */
  /*   border-radius: 1.25rem; */

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;

  /*   box-shadow: 0 0.75rem 2rem rgba(24,23,77,.08); */
}

/* LOGO */

.nav-logo img {
  /*   width: 7rem; */
  display: block;
}

/* DESKTOP MENU */

.nav-menu-desktop {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;

  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu-desktop a {
  text-decoration: none;
  color: #18174d;
  font-weight: 600;

  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* CHEVRON */

.nav-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-chevron svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* CTA */

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-yellow {
  background: #FFE23C;
  color: #18174D;
}

/* ========================================= */
/* MEGA MENU */
/* ========================================= */

.mega-menu-container {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
}

section#v2 .mega-menu {
  display: none;
  background: unset;
  box-shadow: unset;
}

.mega-menu.active {
  display: block;
}

.mega-menu-panel {
  margin-top: 0 !important;
  background: #fff;
  border-radius: 0 0 1.5rem 1.5rem;
  padding: 2.5rem;

  box-shadow: 0 1.5rem 3rem rgba(0,0,0,.12);
}

/* PLATFORM GRID */

.mega-menu-platform-grid {
  .mega-menu-panel.mega-menu-platform-grid
/*   max-width: 72rem;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem; */
}

/* RESOURCE GRID */

.mega-menu-resources-grid,
.mega-menu-platform-grid {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) minmax(20rem,1fr);
  align-items: start;
  gap: 1.5rem 2rem;
  width: 100%;
  max-width: 72rem;
}
.resources-inner {
  align-items: start;
  display: grid;
  /*     gap: 1rem; */
  grid-template-columns: minmax(0, 1.6fr) minmax(18rem, .9fr);
}
a.mega-menu-item:hover {
  background: hsl(241deg 100% 65% / 5%);
  border-radius: 1rem;
}

.mega-menu-resources-grid .mega-menu-links {
  /*   display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.5rem 3rem;
  width: 100%; */
}

/* ITEM */

.mega-menu-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  text-decoration: none;
  color: #18174D;
  align-items: start;
  justify-content: start;
  padding: 1rem;
}

.mega-icon {
  width: 44px;
  height: 44px;
  border-radius: 1rem;

  background: linear-gradient(180deg, #4F4BFF 0%, #3F3BCD 100%);

  display: flex;
  align-items: center;
  justify-content: center;
}

.mega-icon img {
  /*   width: 1.5rem;
  height: 1.5rem; */
  object-fit: cover;
}

.mega-menu-item strong {
  display: block;
  /*   font-size: 1.1rem; */
  line-height: 1.2;
  margin-bottom: 0.35rem;
  font-size: 16px;
}

.mega-menu-item small {
  display: block;
  color: #18174D;
  line-height: 1.45;
}

/* FOOTER LINKS */

.mega-menu-links {
  grid-column: 1 / -1;

  display: flex;
  gap: 3rem;

  padding-top: 1rem;
}

.mega-menu-links a {
  text-decoration: none;
  color: #18174D;
  font-weight: bold;
}

/* ========================================= */
/* MOBILE */
/* ========================================= */
/* MOBILE DROPDOWN ROW */

#navMenuMobile .nav-item-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: #18174d;
  font-family: Inter, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  height: auto;
  /*   padding: 16px 36px; */
  text-decoration: none;
  transition: background-color .2s ease;
  width: 100%;
}

#navMenuMobile {
  max-height: 100vh;
  overflow-y: auto;
  padding-bottom: 10vh;
}

/* TOGGLE BUTTON */
#navMenuMobile .dropdown-toggle svg,
#navMenuMobile button.nav-arrow svg {
  transition: transform 0.2s ease;
  color: #18174d;
  height: 20px;
  width: 20px;
}

/* ROTATE ARROW WHEN OPEN */
#navMenuMobile .dropdown-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}

ul.nav-submenu li:last-child {
  border-bottom: unset;
  padding-bottom: unset;
}

/* HIDE SUBMENU BY DEFAULT */
#navMenuMobile .nav-submenu {
  display: none;
  padding: unset;
}

#navMenuMobile li {
  position: relative;
}

#navMenuMobile li a::after {
  content: '';
  position: absolute;
  inset: 0;
}

#navMenuMobile .nav-submenu a {
  font-weight: 500;
}

ul#navMenuMobile li.has-dropdown {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: wrap;
}

/* SHOW SUBMENU WHEN OPEN */
#navMenuMobile .nav-submenu.is-open {
  display: block;
}

.nav-toggle {
  display: none;
}

.nav-menu-mobile {
  display: none;
}

@media screen and (max-width: 1024px) {
  .section_top-nav#v2 {
    background: #fff !important;
    top: 0 !important;
  }
  .section_top-nav {
    margin: 0 !important;
    height: unset !important;
  }

  .section_top-nav .nav-wrapper {
    min-height: 5.5rem;
    padding: 0;

    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-menu-mobile li a:hover {
    background-color: unset;
    color: #4f4bff;
  }

  /*   #v2 .nav-menu-desktop {
  display: flex !important;
} */

  .nav-cta .btn {
    display: none;
  }

  .nav-toggle {
    display: block;
    width: 2.5rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
  }

  .nav-toggle span {
    display: block;
    height: 2px;
    background: #18174D;
    margin: 5px 0;
  }

  .nav-menu-mobile {
    display: none;
    margin-top: 1rem;

    background: #fff;
    /*     border-radius: 1rem; */
    padding: 1rem;

    box-shadow: 0 0.75rem 2rem rgba(24,23,77,.12);
  }

  .nav-menu-mobile.active {
    display: block;
  }

  .nav-menu-mobile li {
    list-style: none;
  }

  .nav-menu-mobile a {
    display: flex;
    justify-content: space-between;

    /*     padding: 1rem 0; */

    color: #18174D;
    text-decoration: none;
    font-weight: 600;
  }

  .mega-menu-container {
    display: none;
  }
}

/* ========= ADDED/FIXED - Fixed Sticky Nav ============ */
/* ========= ADDED/FIXED - Fixed Sticky Nav with floating spacing ============ */
/*
This keeps the nav fixed, but adds the original breathing room
so the menu is not glued to the viewport edge.
*/

:root {
  --nav-v2-height: 88px;
  --nav-v2-offset: 1rem;
}

/* JS adds this class after measuring the nav height */
body.has-sticky-v2-nav {
  /*   padding-top: calc(var(--nav-v2-height) + var(--nav-v2-offset)); */
  padding-top: calc(var(--nav-v2-height));
}

.section_top-nav#v2 {
  position: fixed !important;
  top: var(--nav-v2-offset);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 2147483000 !important;
  max-width: 100%;

  background: transparent;
  padding-top: 0 !important;
  margin: 0 !important;

  transition: box-shadow 0.2s ease;
}

/* Keep nav centered and away from left/right edges */
.section_top-nav#v2 > .padding-global {
  padding-left: clamp(1rem, 4vw, 4rem);
  padding-right: clamp(1rem, 4vw, 4rem);
  box-shadow: 0 .75rem 2rem rgba(24, 23, 77, .08);
  background: #fff;
  border-radius: 1.25rem;
}

/* Keep normal max-width behavior */
.section_top-nav#v2 .container-large {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

/* Actual nav card */
.section_top-nav#v2 .nav-wrapper {
  /*   background: #fff;
  border-radius: 1.25rem; */
}

/* Optional subtle shadow after scroll */
.section_top-nav#v2.is-sticky .nav-wrapper {
  /*   box-shadow: 0 0.75rem 2rem rgba(24, 23, 77, 0.08); */
}

/* Make sure mega menu appears directly below the floating nav */
.section_top-nav#v2 .mega-menu-container {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 2147482999;
}

/* Keep mega menu aligned with the nav/container */
.section_top-nav#v2 .mega-menu-container > .padding-global,
.section_top-nav#v2 .mega-menu .padding-global {
  padding-left: clamp(1rem, 4vw, 4rem);
  padding-right: clamp(1rem, 4vw, 4rem);
}

/* Required because section#v2 .mega-menu is more specific than .mega-menu.active */
section#v2 .mega-menu.active {
  display: block;
}

/* Mobile menu stays under fixed nav and scrolls internally */
@media screen and (max-width: 1024px) {
  :root {
    --nav-v2-offset: 0.75rem;
  }

  .section_top-nav#v2 {
    /*     top: var(--nav-v2-offset) !important; */
  }

  .section_top-nav#v2 > .padding-global {
    padding-left: 1rem;
    padding-right: 1rem;
    box-shadow: unset;
    border-radius: unset;
  }

  .section_top-nav#v2 .nav-wrapper {
    border-radius: 1rem;
  }

  .section_top-nav#v2 .nav-menu-mobile {
    margin-top: 0;
    max-height: calc(100vh - var(--nav-v2-height) - var(--nav-v2-offset));
    overflow-y: auto;
    border-radius: 0 0 1rem 1rem;
    top: unset;
  }

  body.nav-open {
    overflow: hidden;
  }
}

/* Optional: fully edge-to-edge mobile nav if needed */
@media screen and (max-width: 767px) {
  .section_top-nav#v2 > .padding-global {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
/* ========= END - Fixed Sticky Nav with floating spacing ============ */



/* CUSTOMER STORIES */
.customer-stories-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.customer-stories-section__header .overline {
  margin: 0;
}

.customer-stories-section__see-all {
  color: var(--purple, #4f4bff);
  font-weight: 700;
}

.customer-stories-section__card {
  display: flex;
  flex-direction: column;
  min-height: 6rem;
  /*   padding: 1rem;
  background: #18174d;
  border-radius: 1rem; */
  color: #fff;
}
img.customer-stories-section__image {
  border-radius: 1rem;
}
.customer-stories-section__card .overline {
  margin: 0 0 .5rem;
  color: rgba(255, 255, 255, 0.55);
}

.customer-stories-section__number {
  margin: 0 0 1rem;
  color: #39e0bd;
}

.customer-stories-section__card > p:not(.overline) {
  margin: 0;
  max-width: 32rem;
  color: #fff;
}

.customer-story-more__card-link {
  align-items: center;
  color: var(--purple, #4f4bff);
  display: inline-flex;
  font-weight: 700;
  gap: .55rem;
  line-height: 1.2;
  margin-top: auto;
  padding-top: 1rem;
}

.customer-stories-section__card .customer-story-more__card-link {
  color: #39e0bd;
}

.customer-stories-section__stats {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: 1rem;
}

.customer-stories-section__stat {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.customer-stories-section__stat-number {
  margin: 0;
  color: var(--purple, #4f4bff);
}

.customer-stories-section__stat p {
  margin: 0;
}

/* ===== GLOBAL CTA - Promo with Image (merged) ===== */
#promo .v2-card-regular.widget {
  max-width: 258px;
  border-radius: 24px;
}
#promo .v2-card-wrapper-regular {
  min-height: unset;
}
#promo .btn {
  min-width: auto;
}
#promo .v2-card-regular.widget {
  padding-top: 2rem;
}
#promo .v2-card-regular.widget {
  position: relative;
}
#promo .promo-close-btn {
   align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: #1a1a4b;
    cursor: pointer;
    display: flex;
    height: 1.5rem;
    justify-content: center;
    padding: 0.25rem;
    position: absolute;
    right: 12px;
    top: 8px;
    width: 1.5rem;
    z-index: 2;
}
#promo .promo-close-btn:hover,
#promo .promo-close-btn:focus-visible {
  background: rgba(26, 26, 75, 0.08);
}
#promo .v2-card h3 {
  display: none;
}
#promo h3.ux-title-2.text-style-3lines {
    font-size: 18px;
    line-height: unset;
}

div#promo {
    position: fixed;
    display: block;
    width: auto;
    height: 0px;
    margin: 0px;
    padding: 0px;
    overflow: visible;
    transform-style: preserve-3d;
    background: transparent;
    backface-visibility: hidden;
    pointer-events: none;
    right: 24px;
    bottom: 380px;
    z-index: 9998;
}

/* CTA banner: hidden until its delay / scroll trigger fires */
#promo.is-hidden {
  display: none;
}

/* CTA banner: container ignores clicks, card and its buttons stay clickable (scoped to #promo only) */
#promo .v2-card-regular.widget,
#promo .promo-close-btn {
  pointer-events: auto;
}


/* ========================================= */
/* CTA POPUP - CENTER                        */
/* ========================================= */

#cta-popup-center.cta-popup-center {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 2rem;
  overflow-x: hidden;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0%);
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}

#cta-popup-center.cta-popup-center *,
#cta-popup-center.cta-popup-center *::before,
#cta-popup-center.cta-popup-center *::after {
  box-sizing: border-box;
}

#cta-popup-center.cta-popup-center.is-hidden {
  display: none;
}

body.cta-popup-center-open {
  overflow: hidden;
}

/* POPUP CARD */
#cta-popup-center .cta-popup-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  align-items: stretch;
  gap: 1.5rem;
  width: 100%;
  max-width: 800px;
  min-height: 440px;
  max-height: calc(100dvh - 4rem);
  margin: auto;
  padding: 1.25rem;
  background: #ffffff;
  border-radius: 2rem;
  box-shadow: 0 0 45px rgba(79, 75, 255, 0.18);
  overflow-y: auto;
  scrollbar-width: none;
}

#cta-popup-center .cta-popup-card::-webkit-scrollbar {
  display: none;
}

/* CLOSE BUTTON */
#cta-popup-center .cta-popup-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #18174D;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

#cta-popup-center .cta-popup-close svg {
  width: 1em;
  height: 1em;
}

#cta-popup-center .cta-popup-close:hover {
  background: rgba(24, 23, 77, 0.07);
  transform: scale(1.05);
}

#cta-popup-center .cta-popup-close:focus-visible {
  outline: 2px solid #4F4BFF;
  outline-offset: 3px;
}

/* LEFT IMAGE */
#cta-popup-center .cta-popup-media {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 440px;
  overflow: hidden;
  background: #E4E3FF;
  border-radius: 1.5rem;
}

#cta-popup-center .cta-popup-image {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

/* CENTER PLAY ICON */
#cta-popup-center .cta-popup-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  transform: translate(-50%, -50%);
  background: #4F4BFF;
  color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0.35rem 1rem rgba(24, 23, 77, 0.25);
  pointer-events: none;
}

#cta-popup-center .cta-popup-play-icon svg {
  width: 1.125rem;
  height: 1.125rem;
  margin-left: 0.2rem;
}

/* RIGHT CONTENT */
#cta-popup-center .cta-popup-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 1rem 1rem 1rem 0;
  text-align: center;
  color: #18174D;
}

#cta-popup-center .cta-popup-heading {
  max-width: 24rem;
  margin: 0 auto 1.5rem;
  color: #18174D;
  font-size: 24px;
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
}

#cta-popup-center .cta-popup-description {
  max-width: 28rem;
  margin: -0.5rem auto 1.25rem;
  color: #18174D;
  text-align: center;
}

#cta-popup-center .cta-popup-description > :first-child {
  margin-top: 0;
}

#cta-popup-center .cta-popup-description > :last-child {
  margin-bottom: 0;
}

/* FORM - field styles are inherited from the theme's global .hs-form rules (same as product-tour-form-w-bg); only layout + button live here */
#cta-popup-center .cta-popup-form {
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  text-align: left;
}

#cta-popup-center .cta-popup-form form {
  width: 100%;
  margin: 0;
}

#cta-popup-center .cta-popup-form fieldset {
  width: 100%;
  max-width: none !important;
}

#cta-popup-center .cta-popup-form .hs-form-field {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
}

#cta-popup-center .cta-popup-form .input {
  margin-right: 0 !important;
}

/* SUBMIT BUTTON - same as product-tour-form-w-bg */
#cta-popup-center .cta-popup-form input.hs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  border-radius: 16px;
  margin-top: 8px;
  color: #fff;
  background-color: #4f4bff;
  padding: 14px 24px;
  transition: all 0.3s ease-in-out;
}

#cta-popup-center .cta-popup-form input.hs-button:hover {
 background-color: #615dff;
}

#cta-popup-center .cta-popup-form input.hs-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

#cta-popup-center .cta-popup-form .submitted-message {
  text-align: center;
  color: #18174D;
}

/* PRIVACY TEXT */
#cta-popup-center .cta-popup-privacy {
  margin-top: 0.75rem;
  color: #8586A2;
  font-size: 0.75rem;
  line-height: 1.5;
  font-weight: 600;
  text-align: center;
}

#cta-popup-center .cta-popup-privacy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

#cta-popup-center .cta-popup-privacy a:hover {
  color: #4F4BFF;
}

.cta-popup-center-open label.hs-error-msg.hs-main-font-element {
    display: none;
}
/* SMALL DESKTOP / TABLET */
@media screen and (max-width: 1024px) {
  #cta-popup-center.cta-popup-center {
    padding: 1.5rem;
  }

  #cta-popup-center .cta-popup-card {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    gap: 1.5rem;
    min-height: 0;
    padding: 1.25rem;
    border-radius: 2rem;
  }

  #cta-popup-center .cta-popup-media {
    min-height: 380px;
    border-radius: 1.5rem;
  }

  #cta-popup-center .cta-popup-content {
    padding: 2.5rem 1rem 1rem 0;
  }

  #cta-popup-center .cta-popup-heading {
    margin-bottom: 1.25rem;
  }

  #cta-popup-center .cta-popup-close {
    top: 1.25rem;
    right: 1.25rem;
  }
}

/* MOBILE */
@media screen and (max-width: 767px) {
  #cta-popup-center.cta-popup-center {
    align-items: flex-start;
    padding: 0.75rem;
  }

  #cta-popup-center .cta-popup-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    min-height: 0;
    max-height: calc(100dvh - 1.5rem);
    padding: 0.75rem;
    border-radius: 1.5rem;
    overflow-y: auto;
  }

  #cta-popup-center .cta-popup-media {
    flex: 0 0 auto;
    width: 100%;
    height: 200px;
    min-height: 0;
    border-radius: 1rem;
  }

  #cta-popup-center .cta-popup-image {
    object-fit: cover;
    object-position: center;
  }

  #cta-popup-center .cta-popup-play-icon {
    width: 3.5rem;
    height: 3.5rem;
  }

  #cta-popup-center .cta-popup-play-icon svg {
    width: 1.125rem;
    height: 1.125rem;
  }

  #cta-popup-center .cta-popup-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 2.25rem;
    height: 2.25rem;
    background: #ffffff;
    font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(24, 23, 77, 0.12);
  }

  #cta-popup-center .cta-popup-content {
    padding: 1.75rem 0.75rem 1rem;
  }

  #cta-popup-center .cta-popup-heading {
    margin: 0 auto 1.5rem;
  }

  #cta-popup-center .cta-popup-description {
    margin: -0.5rem auto 1.5rem;
  }

  #cta-popup-center .cta-popup-privacy {
    margin-top: 1rem;
    font-size: 0.75rem;
  }
}

/* SMALL MOBILE */
@media screen and (max-width: 420px) {
  #cta-popup-center .cta-popup-media {
    height: 160px;
  }

  #cta-popup-center .cta-popup-content {
    padding: 1.5rem 0.5rem 0.75rem;
  }

  #cta-popup-center .cta-popup-heading {
    margin-bottom: 1.25rem;
  }
}
