/* Nexus Intros — composer + ripple. Chrome matches Figma Apply overlay
   (187:14819 / 187:15218) and live popup 2996. Tokens only. */

body.nx-in-modal-open {
  overflow: hidden;
}

.nx-in-modal {
  --navy: #0c1232;
  --purple: #9552da;
  --royal: #2b5ef0;
  --cyan: #5bcbff;
  --muted: #bbc1c8;
  --ink: #373c57;
  --white: #ffffff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nx-apply-glow:
    radial-gradient(136.92% 85.57% at 72% 26%, rgba(91, 203, 255, 0.18) 0%, rgba(91, 203, 255, 0) 28%),
    radial-gradient(110.15% 68.84% at 40% 46%, rgba(149, 82, 218, 0.14) 0%, rgba(149, 82, 218, 0) 30%);
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  box-sizing: border-box;
  background-color: transparent;
  background-image: var(--nx-apply-glow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s var(--ease);
}

.nx-in-modal[hidden] {
  display: none !important;
}

.nx-in-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nx-in-modal-backdrop,
.nx-in-modal-backdrop:hover,
.nx-in-modal-backdrop:focus,
.nx-in-modal-backdrop:active {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  cursor: default;
}

.nx-in-modal-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  width: min(1010px, 100%);
  height: auto;
  max-height: 100%;
  margin: 0;
  padding: 0 12px;
  border-radius: 32px;
  overflow: hidden;
  background-color: #fff;
  background-image:
    radial-gradient(114.98% 128.54% at 80% 10%, rgba(91, 203, 255, 0.16) 0%, rgba(91, 203, 255, 0) 28%),
    linear-gradient(180deg, rgba(251, 252, 255, 0.94) 0%, rgba(242, 245, 255, 0.92) 58%, rgba(255, 255, 255, 0.96) 100%);
  border: 1px solid rgba(12, 18, 50, 0.1);
  box-shadow:
    0 34px 100px rgba(12, 18, 50, 0.2),
    0 0 70px rgba(91, 203, 255, 0.14),
    0 0 80px rgba(149, 82, 218, 0.11);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(12px);
  transition: transform 0.32s var(--ease);
}

.nx-in-modal-inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding: 32px 20px;
  border-radius: 32px;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: rgba(247, 250, 255, 0.82);
  background-image: var(--nx-apply-glow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.nx-in-modal.is-open .nx-in-modal-dialog {
  transform: translateY(0);
}

.nx-in-modal-dialog:focus {
  outline: none;
}

.nx-in-modal button.nx-in-modal-close {
  position: absolute;
  top: 21px;
  right: 21px;
  z-index: 3;
  display: block !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  overflow: hidden;
  background-color: transparent !important;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHZpZXdCb3g9IjAgMCAzOCAzOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjM4IiBoZWlnaHQ9IjM4IiByeD0iMTkiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuNzgiLz4KPHJlY3QgeD0iMC41IiB5PSIwLjUiIHdpZHRoPSIzNyIgaGVpZ2h0PSIzNyIgcng9IjE4LjUiIHN0cm9rZT0iIzBDMTIzMiIgc3Ryb2tlLW9wYWNpdHk9IjAuMTIiLz4KPHBhdGggZD0iTTIzLjM0NjkgMjUuNjM2NEwxMy43MzMyIDE2LjAyMjdMMTUuMDI4NyAxNC43MjczTDI0LjY0MjMgMjQuMzQwOUwyMy4zNDY5IDI1LjYzNjRaTTE1LjAyODcgMjUuNjM2NEwxMy43MzMyIDI0LjM0MDlMMjMuMzQ2OSAxNC43MjczTDI0LjY0MjMgMTYuMDIyN0wxNS4wMjg3IDI1LjYzNjRaIiBmaWxsPSIjMEMxMjMyIi8+Cjwvc3ZnPgo=") !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 38px 38px;
  color: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  text-indent: -9999px;
}

.nx-in-modal button.nx-in-modal-close:hover,
.nx-in-modal button.nx-in-modal-close:focus-visible {
  background-color: transparent !important;
  outline: none;
}

.nx-in-modal-close svg {
  display: none;
}

.nx-in-launchbar {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 0 40px 16px 0;
  padding: 10px 14px;
  border: 1px solid rgba(12, 18, 50, 0.08);
  border-radius: 999px;
  background: rgba(247, 250, 255, 0.82);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 20px;
  color: var(--navy);
}

.nx-in-launchbar.is-visible {
  display: flex;
}

.nx-in-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(43, 94, 240, 0.2);
  border-top-color: var(--royal);
  border-radius: 999px;
  animation: nx-in-spin 0.7s linear infinite;
}

@keyframes nx-in-spin {
  to {
    transform: rotate(360deg);
  }
}

.nx-in-modal-hero {
  flex: 0 0 auto;
  margin: 0 40px 16px 0;
}

.nx-in-modal-kicker {
  margin: 0 0 8px;
  font-family: var(--font-eyebrow);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 18px;
  text-transform: uppercase;
  color: var(--purple);
}

.nx-in-modal-dialog h2,
.nx-in-modal [data-nx-in-title] {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 44px;
  letter-spacing: -0.02em;
  color: #0c1232;
}

.nx-in-modal-note {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: var(--muted);
}

.nx-in-modal-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
}

.nx-in-modal-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: visible;
  flex: 1 1 auto;
  min-height: 0;
}

.nx-in-modal-field {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.nx-in-modal-label {
  display: block;
  margin: 0;
  padding: 8px 16px;
  font-family: var(--font-eyebrow, inherit);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 18px;
  text-align: left;
  text-transform: uppercase;
  color: #373c57;
}

.nx-in-modal-control {
  position: relative;
}

.nx-in-modal-value,
.nx-in-modal-body {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #bbc1c8;
  border-radius: 999px;
  padding: 10px 88px 10px 16px;
  background: #fff;
  font-family: var(--font-body, inherit);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #373c57;
  resize: none;
  overflow: hidden;
  min-height: 44px;
}

.nx-in-modal-value {
  display: flex;
  align-items: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nx-in-modal-control:has(.nx-in-copy[hidden]) .nx-in-modal-value,
.nx-in-modal-control:has(.nx-in-copy[hidden]) .nx-in-modal-body {
  padding-right: 16px;
}

.nx-in-modal-field-message {
  flex: 1 1 auto;
  min-height: 140px;
}

.nx-in-modal-field-message .nx-in-modal-control {
  display: flex;
  flex: 1 1 auto;
  min-height: 140px;
  max-height: 100%;
  overflow: hidden;
}

.nx-in-modal-field-message .nx-in-modal-body {
  border-radius: 16px;
  flex: 1 1 auto;
  width: 100%;
  min-height: 140px;
  height: 100%;
  max-height: 100%;
  overflow: auto;
  white-space: pre-wrap;
  scrollbar-width: none;
}

.nx-in-modal-field-message .nx-in-modal-body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.nx-in-modal-value.is-placeholder {
  font-weight: 400;
  color: var(--muted);
}

.nx-in-modal-hint {
  margin: 4px 0 0;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  text-align: left;
  color: var(--muted);
}

/* Hello Elementor reset.css paints every button #cc3366 and fills pink on hover. */
.nx-in-modal button:not(.nx-in-modal-backdrop):not(.nx-in-modal-close),
.nx-in-modal button:not(.nx-in-modal-backdrop):not(.nx-in-modal-close):hover,
.nx-in-modal button:not(.nx-in-modal-backdrop):not(.nx-in-modal-close):focus,
.nx-in-modal button:not(.nx-in-modal-backdrop):not(.nx-in-modal-close):active,
.nx-in-modal [type="button"]:not(.nx-in-modal-backdrop):not(.nx-in-modal-close),
.nx-in-modal [type="button"]:not(.nx-in-modal-backdrop):not(.nx-in-modal-close):hover,
.nx-in-modal [type="button"]:not(.nx-in-modal-backdrop):not(.nx-in-modal-close):focus,
.nx-in-modal [type="button"]:not(.nx-in-modal-backdrop):not(.nx-in-modal-close):active {
  background-color: #fff !important;
  border: 0 !important;
  color: #9552da !important;
}

.nx-in-modal button.nx-in-copy {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background-color: #fff !important;
  color: #9552da !important;
  box-shadow: none !important;
  font-size: 12px !important;
  line-height: 18px !important;
}

.nx-in-modal button.nx-in-copy[hidden] {
  display: none !important;
}

.nx-in-modal .is-multiline > .nx-in-copy {
  top: 8px;
  right: 8px;
}

.nx-in-modal-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  flex: 0 0 auto;
  width: 100%;
  margin-top: 16px;
  padding: 20px;
  border-radius: 16px;
  box-sizing: border-box;
  background-color: #0c1232;
  background-image:
    url("../img/paragraph-background.webp"),
    radial-gradient(120% 90% at 50% 118%, #350044 0%, rgba(53, 0, 68, 0) 58%),
    linear-gradient(180deg, #0c1232 0%, #350044 100%);
  background-size: cover, auto, auto;
  background-position: 50% 100%, 50% 50%, 50% 50%;
  background-repeat: no-repeat;
  transition:
    margin 280ms cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 280ms cubic-bezier(0.22, 1, 0.36, 1),
    padding 280ms cubic-bezier(0.22, 1, 0.36, 1),
    gap 280ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nx-in-modal a.gradient-button.nx-in-modal-primary,
.nx-in-modal .nx-in-modal-primary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 1.6 1 0;
  min-width: 0;
  min-height: 48px;
  padding: 12px 24px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background-color: transparent !important;
  background-image: linear-gradient(135deg, #9552da 0%, #2b5ef0 62%, #5bcbff 100%) !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  box-shadow:
    0 0 0 3px #fff,
    0 8px 20px rgba(12, 18, 50, 0.28) !important;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  transition:
    transform 160ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 160ms cubic-bezier(0.22, 1, 0.36, 1),
    min-height 280ms cubic-bezier(0.22, 1, 0.36, 1),
    padding 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nx-in-modal-primary-label {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #fff;
  -webkit-text-fill-color: #fff;
  transition: font-size 280ms cubic-bezier(0.22, 1, 0.36, 1), line-height 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nx-in-modal-actions .nx-in-modal-ghost,
.nx-in-modal-actions a.outline-button.nx-in-modal-ghost {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  padding: 12px 16px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background-color: #fff !important;
  background-image: none !important;
  background-clip: padding-box !important;
  -webkit-background-clip: padding-box !important;
  color: #0c1232 !important;
  -webkit-text-fill-color: #0c1232 !important;
  box-shadow: 0 4px 12px rgba(12, 18, 50, 0.16) !important;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 160ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 160ms cubic-bezier(0.22, 1, 0.36, 1),
    min-height 280ms cubic-bezier(0.22, 1, 0.36, 1),
    padding 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nx-in-modal-actions .nx-in-modal-ghost::before,
.nx-in-modal-actions .nx-in-modal-ghost::after {
  content: none !important;
  display: none !important;
}

.nx-in-brand-icon {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  transition: width 280ms cubic-bezier(0.22, 1, 0.36, 1), height 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nx-in-brand-label {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #0c1232;
  -webkit-text-fill-color: #0c1232;
  white-space: nowrap;
  transition: font-size 280ms cubic-bezier(0.22, 1, 0.36, 1), line-height 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .nx-in-modal .nx-intro-outline:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(12, 18, 50, 0.2) !important;
  }

  .nx-in-modal .nx-intro-outline:active {
    transform: none;
    box-shadow: none !important;
  }

  .nx-in-modal-actions .nx-in-modal-primary:hover,
  .nx-in-modal-actions .nx-in-modal-ghost:hover {
    transform: translateY(-1px);
  }

  .nx-in-modal-actions .nx-in-modal-primary:active,
  .nx-in-modal-actions .nx-in-modal-ghost:active {
    transform: none;
  }
}

.nx-in-howto {
  flex: 0 0 auto;
  margin-top: 16px;
  border: 1px solid #bbc1c8;
  border-radius: 16px;
  background: #f7faff;
  overflow: hidden;
}

.nx-in-howto > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 19px 16px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--navy);
}

.nx-in-howto > summary::-webkit-details-marker,
.nx-in-howto > summary::marker {
  display: none;
  content: "";
}

.nx-in-howto-icon {
  position: relative;
  flex-shrink: 0;
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(101deg, #9552da 0%, #2b5ef0 52%, #5bcbff 100%) border-box;
}

.nx-in-howto-icon::before,
.nx-in-howto-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(101deg, #9552da 0%, #2b5ef0 52%, #5bcbff 100%);
  border-radius: 1px;
}

.nx-in-howto-icon::before {
  width: 9px;
  height: 1.5px;
}

.nx-in-howto-icon::after {
  width: 1.5px;
  height: 9px;
}

.nx-in-howto[open] .nx-in-howto-icon::after {
  display: none;
}

.nx-in-howto-body {
  padding: 0 16px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: var(--muted);
}

.nx-in-howto-body ul,
.nx-in-howto-body ol {
  margin: 0;
  padding-left: 18px;
}

.nx-in-howto-body li + li {
  margin-top: 8px;
}

.nx-in-ripple-host {
  position: relative;
  overflow: visible !important;
}

.nx-in-ripple {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 5;
  background: radial-gradient(circle, rgba(91, 203, 255, 0.55) 0%, rgba(43, 94, 240, 0.28) 42%, rgba(149, 82, 218, 0) 70%);
  animation: nx-in-ripple 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes nx-in-ripple {
  from {
    transform: scale(0.2);
    opacity: 0.9;
  }
  to {
    transform: scale(1);
    opacity: 0;
  }
}

@media (max-width: 767px) {
  .nx-in-modal {
    padding: 0;
    align-items: stretch;
  }

  .nx-in-modal-dialog {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    padding: 0;
  }

  .nx-in-modal-inner {
    border-radius: 0;
    padding: 24px 0 0;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-padding-bottom: 24px;
    scrollbar-width: none;
  }

  .nx-in-modal-inner::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .nx-in-launchbar {
    margin: 0 15px 16px;
  }

  .nx-in-modal-hero,
  .nx-in-launchbar,
  .nx-in-modal-form,
  .nx-in-howto {
    margin-left: 15px;
    margin-right: 15px;
  }

  .nx-in-modal-close {
    top: 16px;
    right: 15px;
  }

  .nx-in-modal-dialog h2,
  .nx-in-modal [data-nx-in-title] {
    font-size: 26px;
    line-height: 32px;
  }

  .nx-in-modal-form {
    flex: 0 0 auto;
    overflow: visible;
    padding: 20px;
  }

  .nx-in-modal-fields,
  .nx-in-modal-field-message {
    flex: 0 0 auto;
  }

  .nx-in-modal-field-message .nx-in-modal-control,
  .nx-in-modal-field-message .nx-in-modal-body {
    min-height: 140px;
    height: 140px;
    max-height: 140px;
  }

  .nx-in-modal-actions {
    position: -webkit-sticky;
    position: sticky;
    bottom: 0;
    z-index: 4;
    flex-wrap: wrap;
    row-gap: 16px;
    column-gap: 8px;
    width: auto;
    margin: 16px 15px 0;
    box-shadow: 0 -12px 24px rgba(12, 18, 50, 0.08);
  }

  .nx-in-modal-actions.is-stuck {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    border-radius: 0;
    padding: 12px 15px max(12px, env(safe-area-inset-bottom));
    row-gap: 12px;
    box-shadow: 0 -12px 24px rgba(12, 18, 50, 0.16);
  }

  .nx-in-modal a.gradient-button.nx-in-modal-primary,
  .nx-in-modal .nx-in-modal-primary {
    flex: 1 1 100%;
  }

  .nx-in-modal-actions.is-stuck .nx-in-modal-primary {
    min-height: 44px !important;
    padding: 10px 24px !important;
    box-shadow:
      0 0 0 2px #fff,
      0 6px 12px rgba(12, 18, 50, 0.24) !important;
  }

  .nx-in-modal-actions.is-stuck .nx-in-modal-primary-label {
    font-size: 14px;
    line-height: 20px;
  }

  .nx-in-modal-actions .nx-in-modal-ghost {
    flex: 1 1 calc(33.333% - 8px);
    padding: 12px 8px !important;
  }

  .nx-in-modal-actions.is-stuck .nx-in-modal-ghost {
    min-height: 44px !important;
    padding: 10px 8px !important;
  }

  .nx-in-web-word {
    display: none;
  }

  .nx-in-brand-label {
    font-size: 14px;
    line-height: 20px;
  }

  .nx-in-modal-actions.is-stuck .nx-in-brand-icon {
    width: 18px;
    height: 18px;
  }

  .nx-in-howto {
    margin-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nx-in-modal,
  .nx-in-modal-dialog,
  .nx-in-modal-actions,
  .nx-in-modal-primary,
  .nx-in-modal-primary-label,
  .nx-in-modal-ghost,
  .nx-in-brand-icon,
  .nx-in-brand-label,
  .nx-in-ripple {
    transition: none;
    animation: none;
  }

  .nx-in-spinner {
    animation: none;
  }
}
