/* Unified features navigation — mega Features menu (all feature pages) */
.cd-all-features-nav {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
.cd-all-features-nav .navbar-brand img { height: 32px; width: auto; }
.cd-features-pill {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--cd-muted, #6c757d);
  background: #eef2f6;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}
.cd-all-features-nav .nav-link {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--cd-ink, #1a1d21);
  border-radius: 0.35rem;
  padding: 0.5rem 0.7rem;
}
.cd-all-features-nav .nav-link.dropdown-toggle::after {
  margin-left: 0.35em;
  vertical-align: 0.12em;
  opacity: 0.75;
}
.cd-all-features-nav .nav-link:hover,
.cd-all-features-nav .nav-link:focus {
  color: #0077ff;
}
.cd-all-features-nav .dropdown-menu {
  min-width: 15rem;
  max-width: 19rem;
  padding: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0.75rem;
  box-shadow: 0 0.75rem 2rem rgba(0, 40, 100, 0.1);
}
.cd-all-features-nav .dropdown-menu.cd-features-mega {
  min-width: min(52rem, calc(100vw - 1.5rem));
  max-width: min(52rem, calc(100vw - 1.5rem));
  padding: 0;
  overflow: hidden;
}
.cd-features-mega__inner {
  padding: 0.65rem 0 0.85rem;
}
.cd-features-mega__col {
  padding: 1.1rem 1.25rem 1.25rem;
}
@media (min-width: 1200px) {
  .cd-features-mega__col + .cd-features-mega__col {
    border-left: 1px solid rgba(0, 0, 0, 0.05);
  }
}
.cd-features-mega__heading {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.42);
  margin: 0 0.6rem 0.85rem;
  padding-top: 0.2rem;
}
.cd-features-mega .dropdown-item.cd-features-mega__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0.45rem 0.15rem;
  width: calc(100% - 0.9rem);
  padding: 0.5rem 0.65rem;
  border-radius: 0.4rem;
  font-weight: 400;
  transition: background 0.15s ease, color 0.15s ease;
}
.cd-features-mega__icon {
  flex-shrink: 0;
  width: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  color: rgba(0, 0, 0, 0.36);
  transition: color 0.15s ease;
}
.cd-features-mega__label {
  flex: 1;
  min-width: 0;
  line-height: 1.45;
}
.cd-all-features-nav .dropdown-item.cd-features-mega__item:hover .cd-features-mega__icon,
.cd-all-features-nav .dropdown-item.cd-features-mega__item:focus .cd-features-mega__icon,
.cd-all-features-nav .dropdown-item.cd-features-mega__item.active .cd-features-mega__icon {
  color: #0077ff;
}
.cd-all-features-nav .dropdown-item {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  border-radius: 0.45rem;
  color: #1a1d21;
}
.cd-all-features-nav .dropdown-item.cd-features-mega__item:hover,
.cd-all-features-nav .dropdown-item.cd-features-mega__item:focus {
  background: rgba(0, 0, 0, 0.045);
  color: #1a1d21;
}
.cd-all-features-nav .dropdown-item.cd-features-mega__item.active {
  background: rgba(0, 113, 227, 0.08);
  color: #0077ff;
  font-weight: 500;
}
.cd-all-features-nav .dropdown-item:hover,
.cd-all-features-nav .dropdown-item:focus {
  background: rgba(0, 119, 255, 0.09);
  color: #0077ff;
}
.cd-all-features-nav .dropdown-item.active {
  background: rgba(0, 119, 255, 0.14);
  color: #0077ff;
  font-weight: 600;
}
@media (prefers-reduced-motion: reduce) {
  .cd-features-mega .dropdown-item.cd-features-mega__item,
  .cd-features-mega__icon {
    transition: none;
  }
}
.cd-all-features-nav .nav-link.active:not(.dropdown-toggle) {
  color: #0077ff;
  background: rgba(0, 119, 255, 0.1);
  font-weight: 600;
}
/* Nav: login + sign up */
.cd-all-features-nav .cd-nav-cta {
  flex-shrink: 0;
  gap: 0.45rem;
}
.cd-all-features-nav .cd-nav-cta__btn {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.4rem 1.05rem;
  min-height: 2.25rem;
  line-height: 1.2;
  border-radius: 980px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.cd-all-features-nav .cd-nav-cta__btn--login {
  --bs-btn-color: #0071e3;
  --bs-btn-border-color: rgba(0, 113, 227, 0.4);
  /* BS outline-primary default hover color is white — wrong on our light hover bg */
  --bs-btn-hover-color: #0062c4;
  --bs-btn-hover-bg: rgba(0, 113, 227, 0.1);
  --bs-btn-hover-border-color: #0071e3;
  --bs-btn-focus-color: #0062c4;
  --bs-btn-focus-shadow: 0 0 0 0.2rem rgba(0, 113, 227, 0.22);
  --bs-btn-active-color: #0056ad;
  --bs-btn-active-bg: rgba(0, 113, 227, 0.16);
  --bs-btn-active-border-color: #0062c4;
  --bs-btn-disabled-color: rgba(0, 98, 196, 0.55);
  --bs-btn-disabled-border-color: rgba(0, 113, 227, 0.25);
  background: rgba(255, 255, 255, 0.55);
}
.cd-all-features-nav .cd-nav-cta__btn--signup {
  --bs-btn-bg: #0071e3;
  --bs-btn-border-color: #0071e3;
  --bs-btn-hover-bg: #0062c4;
  --bs-btn-hover-border-color: #0062c4;
  --bs-btn-active-bg: #0056ad;
  --bs-btn-active-border-color: #0056ad;
  box-shadow: 0 0.12rem 0.45rem rgba(0, 90, 200, 0.22);
}
.cd-all-features-nav .cd-nav-cta__btn--signup:hover,
.cd-all-features-nav .cd-nav-cta__btn--signup:focus {
  box-shadow: 0 0.2rem 0.6rem rgba(0, 90, 200, 0.28);
}
@media (min-width: 1200px) {
  .cd-all-features-nav .cd-nav-cta {
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    padding-left: 0.85rem;
    margin-left: 0.15rem;
  }
}
.cd-nav-backdrop {
  display: none;
}
@media (max-width: 1199.98px) {
  /* Submenus: inset “cards” (Solutions, Features, language) */
  .cd-all-features-nav .cd-mobile-nav .dropdown-menu {
    position: static !important;
    float: none;
    width: 100% !important;
    transform: none !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0.2rem 0.25rem 0.75rem !important;
    padding: 0.4rem 0.45rem 0.5rem !important;
    background: linear-gradient(180deg, #eef3fa 0%, #fff 0.55rem) !important;
    border: 1px solid rgba(0, 113, 227, 0.14) !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 0.2rem 0.9rem rgba(0, 40, 100, 0.07);
  }
  .cd-all-features-nav .cd-mobile-nav ul.dropdown-menu {
    list-style: none;
    margin: 0;
  }
  .cd-all-features-nav .cd-mobile-nav ul.dropdown-menu li {
    margin: 0.12rem 0;
  }
  .cd-all-features-nav .cd-mobile-nav ul.dropdown-menu .dropdown-item {
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1d21;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    box-shadow: 0 0.05rem 0.25rem rgba(0, 0, 0, 0.04);
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  }
  .cd-all-features-nav .cd-mobile-nav ul.dropdown-menu .dropdown-item:hover,
  .cd-all-features-nav .cd-mobile-nav ul.dropdown-menu .dropdown-item:focus {
    background: rgba(0, 113, 227, 0.08);
    border-color: rgba(0, 113, 227, 0.2);
  }
  .cd-all-features-nav .cd-mobile-nav ul.dropdown-menu .dropdown-item.active {
    background: rgba(0, 113, 227, 0.12) !important;
    border-color: rgba(0, 113, 227, 0.28) !important;
  }
  .cd-all-features-nav .cd-mobile-nav .dropdown-menu.cd-features-mega {
    margin-bottom: 0.55rem !important;
    background: linear-gradient(165deg, #edf2f9 0%, #fff 0.5rem) !important;
  }
  .cd-all-features-nav .cd-mobile-nav .cd-features-mega__inner {
    padding: 0.15rem 0.05rem 0 0.05rem;
  }
  .cd-all-features-nav .cd-mobile-nav .cd-features-mega__col {
    margin-bottom: 0.45rem;
    padding: 0.45rem 0.3rem 0.55rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 0.65rem;
    box-shadow: 0 0.08rem 0.4rem rgba(0, 40, 100, 0.05);
  }
  .cd-all-features-nav .cd-mobile-nav .cd-features-mega__col:last-of-type {
    margin-bottom: 0;
  }
  .cd-all-features-nav .cd-mobile-nav .cd-features-mega__heading {
    display: table;
    margin: 0.1rem 0.35rem 0.5rem 0.45rem;
    padding: 0.2rem 0.6rem 0.22rem;
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: #0a5bb8;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.11), rgba(0, 113, 227, 0.06));
    border: 1px solid rgba(0, 113, 227, 0.1);
    border-radius: 999px;
  }
  .cd-all-features-nav .cd-mobile-nav .cd-features-mega__item,
  .cd-all-features-nav .cd-mobile-nav .dropdown-item.cd-features-mega__item {
    min-height: 2.95rem;
    display: flex !important;
    align-items: center;
    width: calc(100% - 0.2rem) !important;
    margin: 0.2rem 0.1rem !important;
    padding: 0.6rem 0.65rem !important;
    font-size: 0.875rem !important;
    font-weight: 500;
    line-height: 1.3;
    color: #1a1d21 !important;
    background: #fcfdff;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 0.5rem;
    box-shadow: 0 0.1rem 0.35rem rgba(0, 20, 60, 0.05);
    transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  }
  .cd-all-features-nav .cd-mobile-nav .cd-features-mega__item:hover,
  .cd-all-features-nav .cd-mobile-nav .cd-features-mega__item:focus,
  .cd-all-features-nav .cd-mobile-nav .dropdown-item.cd-features-mega__item:hover,
  .cd-all-features-nav .cd-mobile-nav .dropdown-item.cd-features-mega__item:focus {
    background: #fff;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 80, 180, 0.1);
    border-color: rgba(0, 113, 227, 0.18) !important;
  }
  .cd-all-features-nav .cd-mobile-nav .cd-features-mega__item.active,
  .cd-all-features-nav .cd-mobile-nav .dropdown-item.cd-features-mega__item.active {
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.1) 0%, #fff 100%) !important;
    border-color: rgba(0, 113, 227, 0.28) !important;
    color: #0071e3 !important;
  }
  .cd-all-features-nav .cd-mobile-nav .cd-features-mega__icon {
    width: 1.4rem;
    font-size: 1rem;
    color: rgba(0, 20, 60, 0.45) !important;
  }
  .cd-all-features-nav .cd-mobile-nav .cd-features-mega__item:hover .cd-features-mega__icon,
  .cd-all-features-nav .cd-mobile-nav .cd-features-mega__item.active .cd-features-mega__icon,
  .cd-all-features-nav .cd-mobile-nav .dropdown-item.cd-features-mega__item:hover .cd-features-mega__icon,
  .cd-all-features-nav .cd-mobile-nav .dropdown-item.cd-features-mega__item.active .cd-features-mega__icon {
    color: #0077ff !important;
  }

  /* —— Mobile menu: sheet, backdrop, stagger, burger → X —— */
  /* Backdrop is a sibling of <header> (not inside) so it is not bound by
     header’s backdrop-filter stacking; stays below the bar (z-index: 1030). */
  .cd-all-features-nav {
    position: relative;
    z-index: 1030;
  }
  .cd-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1020;
    cursor: pointer;
    background: linear-gradient(165deg, rgba(8, 12, 22, 0.5) 0%, rgba(8, 12, 22, 0.42) 100%);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition:
      opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0.32s step-end;
  }
  body.cd-nav-menu-open .cd-nav-backdrop,
  html:has(.cd-mobile-nav.show) .cd-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition:
      opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0.32s step-start;
  }
  .cd-nav-toggler {
    border: 0 !important;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #1a1d21;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  }
  .cd-nav-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 113, 227, 0.25) !important;
  }
  .cd-nav-toggler[aria-expanded="true"] {
    background: rgba(0, 113, 227, 0.1) !important;
  }
  /* Inline SVG: visible without relying on absolute-positioned div backgrounds (robust in prod) */
  .cd-nav-burger {
    display: block;
    width: 1.25rem;
    height: auto;
    flex-shrink: 0;
    overflow: visible;
  }
  .cd-nav-burger__line {
    fill: currentColor;
    transform-box: fill-box;
    transform-origin: center;
    transition:
      transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.2s ease;
  }
  .cd-nav-toggler[aria-expanded="true"] .cd-nav-burger__line:nth-of-type(1) {
    transform: translate(0, 5) rotate(45deg);
  }
  .cd-nav-toggler[aria-expanded="true"] .cd-nav-burger__line:nth-of-type(2) {
    opacity: 0;
    transform: scaleX(0.15);
  }
  .cd-nav-toggler[aria-expanded="true"] .cd-nav-burger__line:nth-of-type(3) {
    transform: translate(0, -5) rotate(-45deg);
  }
  .cd-all-features-nav .cd-mobile-nav {
    max-height: min(85dvh, calc(100dvh - 3.25rem));
    min-height: 0;
    margin: 0.35rem 0 0.75rem;
    padding: 0.2rem 0.35rem 0.85rem;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior-y: contain;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, #fff 0%, #f4f7fb 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 1rem;
    box-shadow: 0 0.4rem 1.75rem rgba(0, 30, 80, 0.1);
    scroll-behavior: smooth;
  }
  .cd-all-features-nav .cd-mobile-nav.collapsing {
    transition:
      height 0.4s cubic-bezier(0.33, 1, 0.68, 1),
      min-height 0.4s cubic-bezier(0.33, 1, 0.68, 1) !important;
  }
  .cd-all-features-nav .cd-mobile-nav .navbar-nav {
    gap: 0.1rem 0;
    padding-top: 0.2rem;
  }
  .cd-all-features-nav .cd-mobile-nav .nav-link {
    min-height: 2.9rem;
    display: flex;
    align-items: center;
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 500;
  }
  .cd-all-features-nav .cd-mobile-nav .nav-link:hover,
  .cd-all-features-nav .cd-mobile-nav .nav-link:focus {
    background: rgba(0, 113, 227, 0.06);
  }
  .cd-all-features-nav .cd-mobile-nav .nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  .cd-all-features-nav .cd-mobile-nav .nav-item:last-child {
    border-bottom: 0;
  }
  .cd-all-features-nav .cd-mobile-nav .nav-item.dropdown .nav-link.dropdown-toggle {
    justify-content: space-between;
    text-align: left;
  }
  .cd-all-features-nav .cd-mobile-nav .nav-item .dropdown .btn.dropdown-toggle {
    width: 100%;
    justify-content: center;
    min-height: 2.9rem;
    border-radius: 0.5rem;
  }
  .cd-all-features-nav .cd-mobile-nav .cd-nav-cta {
    padding: 0.55rem 0.4rem 0.75rem;
  }
  .cd-all-features-nav .cd-mobile-nav .cd-nav-cta__btn {
    flex: 1 1 calc(50% - 0.35rem);
    min-width: 0;
    min-height: 2.9rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0.65rem;
  }
  .cd-all-features-nav .cd-mobile-nav .cd-nav-cta__btn--login {
    background: #fff;
  }
  @media (prefers-reduced-motion: reduce) {
    .cd-nav-backdrop,
    .cd-nav-burger,
    .cd-nav-burger__line,
    .cd-nav-toggler {
      transition: none !important;
    }
    .cd-all-features-nav .cd-mobile-nav.collapsing {
      transition: none !important;
    }
    .cd-all-features-nav .cd-mobile-nav ul.dropdown-menu .dropdown-item,
    .cd-all-features-nav .cd-mobile-nav .cd-features-mega__item,
    .cd-all-features-nav .cd-mobile-nav .dropdown-item.cd-features-mega__item {
      transition: none;
    }
  }
}
/* Scroll lock: body uses fixed + top offset in JS (mobile-nav.js) so iOS can still
   pan-scroll the `.cd-mobile-nav` sheet when submenus grow past the viewport. */
html.cd-nav-menu-open {
  overflow: hidden;
  height: 100%;
}
body.cd-nav-menu-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

/* Site footer — shared across feature marketing pages */
.cd-features-site-footer {
  --cd-footer-ink: rgba(255, 255, 255, 0.9);
  --cd-footer-muted: rgba(255, 255, 255, 0.58);
  background: linear-gradient(165deg, #0c1014 0%, #141a21 42%, #0e1218 100%);
  color: var(--cd-footer-ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 0;
}
.cd-features-site-footer a:not(.btn) {
  color: var(--cd-footer-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.cd-features-site-footer a:not(.btn):hover {
  color: #fff;
}
.cd-features-site-footer .cd-features-site-footer__lead {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--cd-footer-muted);
  max-width: 22rem;
}
.cd-features-site-footer .cd-footer-heading {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.cd-features-site-footer .list-unstyled li {
  margin-bottom: 0.32rem;
}
.cd-features-site-footer .cd-footer-accent {
  width: 2.5rem;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #0077ff, #3fc77d);
  margin-bottom: 1.1rem;
}
.cd-features-site-footer .btn-primary {
  --bs-btn-bg: #0077ff;
  --bs-btn-border-color: #0077ff;
  --bs-btn-hover-bg: #0061d0;
  font-weight: 600;
}
.cd-features-site-footer .btn-outline-light {
  --bs-btn-color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.32);
}
.cd-features-site-footer .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.cd-features-site-footer__bottom {
  background: rgba(0, 0, 0, 0.22);
}
.cd-features-site-footer .cd-footer-social a {
  font-size: 1.15rem;
  opacity: 0.75;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
.cd-features-site-footer .cd-footer-social a:hover {
  opacity: 1;
  color: #fff;
}
.cd-features-site-footer .cd-footer-pim-col {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 991.98px) {
  .cd-features-site-footer .cd-footer-pim-col {
    border-left: none;
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    padding-left: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}
