.nexus-intro-buttons {
  display: contents;
}

/*
 * Elementor still prints Lyubomyr's ATF Make Introduction.
 * The plugin owns those CTAs now — hide the leftover widget immediately
 * so Off toggles cannot leak the old markup before JS mounts.
 */
.e-0aa22b9-a05e52d,
.e-6a7f7c9,
.e-6a7f7c9-139493d,
[data-nexus-intro-legacy],
[data-nexus-intro-clone],
.e-0c97428 .elementor-widget:has(.e-0aa22b9-a05e52d),
.e-0c97428 .elementor-widget:has([data-nexus-intro-legacy]),
.e-0c97428 .elementor-element:has(> .e-0aa22b9-a05e52d),
.e-7c7f234 .elementor-widget:has(.e-6a7f7c9),
.e-7c7f234 .elementor-element:has(> .e-6a7f7c9) {
  display: none !important;
}

.nexus-intro-row-mounted {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px !important;
  width: 100%;
  overflow: visible !important;
}

/*
 * Main Outline on dark ATF: Lyubomyr's .outline-button is clip-to-text with a
 * transparent fill (correct on light Apply). Figma / UIKit / .white-button
 * need an opaque white pill + gradient on the LABEL, while ::before keeps
 * the conic 1px stroke and hover/active from his global CSS.
 */
.nexus-intro-row-mounted .nx-intro-outline,
.nexus-intro-buttons .nx-intro-outline,
.nx-in-modal .nx-intro-outline {
  isolation: isolate;
  overflow: visible;
  background-color: #fff !important;
  background-image: none !important;
  background-clip: padding-box !important;
  -webkit-background-clip: padding-box !important;
  color: #9552da;
  -webkit-text-fill-color: #9552da !important;
}

.nexus-intro-row-mounted .nx-intro-outline::after,
.nexus-intro-buttons .nx-intro-outline::after,
.nx-in-modal .nx-intro-outline::after {
  content: none !important;
  display: none !important;
}

.nexus-intro-row-mounted .nx-intro-outline .nx-intro-outline-label,
.nexus-intro-buttons .nx-intro-outline .nx-intro-outline-label,
.nx-in-modal .nx-intro-outline .nx-intro-outline-label {
  position: relative;
  display: inline;
  background: linear-gradient(101deg, #9552da 0%, #2b5ef0 62%, #5bcbff 100%) text;
  -webkit-text-fill-color: transparent !important;
  color: transparent;
}

.nexus-intro-row-mounted .nx-intro-outline:active .nx-intro-outline-label,
.nexus-intro-buttons .nx-intro-outline:active .nx-intro-outline-label,
.nx-in-modal .nx-intro-outline:active .nx-intro-outline-label {
  background: linear-gradient(101deg, #5bcbff 0%, #2b5ef0 38%, #9552da 100%) text;
}

.nexus-intro-buttons .gradient-button,
.nexus-intro-buttons .outline-button,
.nexus-intro-row-mounted [data-nexus-intro-action],
[data-nexus-intro-action="interest"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 1 auto;
  min-height: 48px;
  padding: 12px 44px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-decoration: none;
  white-space: nowrap;
  overflow: visible !important;
  z-index: 1;
  transition:
    transform 160ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 160ms cubic-bezier(0.22, 1, 0.36, 1),
    background-position 0.7s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.nexus-intro-buttons .gradient-button {
  color: #fff;
}

.nexus-intro-buttons .gradient-button:focus-visible,
.nexus-intro-buttons .outline-button:focus-visible,
.nexus-intro-row-mounted [data-nexus-intro-action]:focus-visible,
[data-nexus-intro-action="interest"]:focus-visible {
  outline: 2px solid #2b5ef0;
  outline-offset: 2px;
}

/*
 * Figma 375 stacks every CTA full-bleed (3 or 4 — same recipe).
 * 768/1024 are interpolated: once the row cannot hold Main pills,
 * switch to the mobile stack instead of wrapping 2+1.
 */
@media (max-width: 1024px) {
  .nexus-intro-row-mounted {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .nexus-intro-buttons .gradient-button,
  .nexus-intro-buttons .outline-button,
  .nexus-intro-row-mounted [data-nexus-intro-action] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    align-self: stretch !important;
    padding: 12px 24px !important;
    white-space: nowrap;
    text-align: center;
  }
}

@media (max-width: 374px) {
  .nexus-intro-row-mounted [data-nexus-intro-action] {
    white-space: normal;
  }
}

@media (hover: hover) and (pointer: fine) {
  .nexus-intro-row-mounted [data-nexus-intro-action]:hover,
  [data-nexus-intro-action="interest"]:hover {
    z-index: 3;
    transform: translateY(-2px);
    box-shadow:
      0 10px 22px rgba(12, 18, 50, 0.42),
      0 4px 10px rgba(43, 94, 240, 0.22) !important;
  }

  .nexus-intro-row-mounted [data-nexus-intro-action]:active,
  [data-nexus-intro-action="interest"]:active {
    z-index: 3;
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(12, 18, 50, 0.2) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nexus-intro-buttons .gradient-button,
  .nexus-intro-buttons .outline-button,
  .nexus-intro-row-mounted [data-nexus-intro-action],
  [data-nexus-intro-action="interest"] {
    transition: none;
  }

  .nexus-intro-row-mounted [data-nexus-intro-action]:hover,
  .nexus-intro-row-mounted [data-nexus-intro-action]:active,
  [data-nexus-intro-action="interest"]:hover,
  [data-nexus-intro-action="interest"]:active {
    transform: none;
  }
}
