/* SwivlPay homepage hero — merchant-services spinner preview */
.acp-hero-blue,
.acp-hero-blue * {
  box-sizing: border-box;
  font-family: "Montserrat", Arial, Helvetica, sans-serif !important;
}

.acp-hero-blue {
  position: relative;
  display: block;
  height: 700px;
  min-height: 700px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 80% 48%, rgba(11, 99, 246, .24), transparent 30%),
    radial-gradient(circle at 66% 78%, rgba(37, 212, 255, .09), transparent 28%),
    linear-gradient(135deg, #020817 0%, #020817 48%, #010713 72%, #00040d 100%);
  color: #fff;
}

/* Remove the hard blue rule from the legacy header so the hero begins seamlessly. */
.acp-header {
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.acp-hero-blue::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(2, 8, 23, .25) 0%,
    rgba(2, 8, 23, .10) 30%,
    rgba(2, 8, 23, .03) 58%,
    rgba(2, 8, 23, .20) 100%);
}

.acp-hero-blue__inner {
  position: relative;
  z-index: 3;
  width: min(1220px, calc(100% - 48px));
  height: 700px;
  min-height: 700px;
  margin: 0 auto;
  display: block;
}

.acp-hero-blue__copy {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: block;
  width: min(760px, calc(100% - 48px));
  padding: 0;
  text-align: center;
  transform: translate(-50%, -50%);
}

.acp-hero-blue h1 {
  position: relative;
  top: 17px;
  z-index: 0;
  isolation: isolate;
  margin: 0;
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  color: #fff;
  font-size: clamp(36px, 3.2vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.acp-hero-blue h1::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background: none;
}

.acp-hero-blue h1 .nowrap,
.acp-hero-blue h1 span {
  color: #fff;
}

.acp-hero-blue h1 .nowrap {
  position: relative;
  z-index: 0;
  isolation: isolate;
  display: table;
  margin: 0 auto;
  white-space: nowrap;
  font-size: calc(1em - 4px);
  text-shadow: 0 2px 5px rgba(0, 0, 0, .65);
}

.acp-hero-blue p {
  margin: 0 0 34px;
  max-width: 680px;
  color: #d7e1ef;
  font-size: 22px;
  line-height: 1.48;
}

.acp-hero-blue__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin-top: 25px;
}

.acp-hero-blue__btn {
  display: inline-flex !important;
  width: 260px;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  border: 1px solid #2d83ff;
  border-radius: 999px;
  background: rgba(2, 8, 23, .55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
  backdrop-filter: blur(2px);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.acp-hero-blue__btn:hover {
  color: #fff !important;
  background: #02B0FC !important;
  border-color: #02B0FC !important;
  transform: translateY(-1px);
}

.acp-hero-blue .btn-icon {
  width: 16px;
  height: 16px;
  margin: 0 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.acp-hero-blue__visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.acp-hero-blue__artwork {
  position: absolute;
  inset: 0;
}

.acp-hero-blue__artwork picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* Hero image stack: lights off -> lights on -> service rollover image. */
.acp-hero-blue__layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.acp-hero-blue__layer--off {
  z-index: 1;
  opacity: 1;
}

.acp-hero-blue__layer--on {
  z-index: 2;
  opacity: 0;
  transition: opacity 3s ease-in-out;
}

.acp-hero-blue.acp-hero-lights-on .acp-hero-blue__layer--on {
  opacity: 1;
}

.acp-hero-blue__layer--retail,
.acp-hero-blue__layer--online,
.acp-hero-blue__layer--high-risk,
.acp-hero-blue__layer--integrations,
.acp-hero-blue__layer--ach,
.acp-hero-blue__layer--gateways,
.acp-hero-blue__layer--partnerships {
  z-index: 3;
  opacity: 0;
  transition: opacity .85s cubic-bezier(.22,.55,.28,1);
}

.acp-hero-blue.acp-hero-retail-active .acp-hero-blue__layer--retail,
.acp-hero-blue.acp-hero-online-active .acp-hero-blue__layer--online,
.acp-hero-blue.acp-hero-high-risk-active .acp-hero-blue__layer--high-risk,
.acp-hero-blue.acp-hero-integrations-active .acp-hero-blue__layer--integrations,
.acp-hero-blue.acp-hero-ach-active .acp-hero-blue__layer--ach,
.acp-hero-blue.acp-hero-gateways-active .acp-hero-blue__layer--gateways,
.acp-hero-blue.acp-hero-partnerships-active .acp-hero-blue__layer--partnerships {
  opacity: 1;
}

.acp-hero-blue__glow {
  display: none;
}

.acp-hero-blue__spinner {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  transform: none;
  object-fit: cover;
  object-position: center bottom;
  opacity: .90;
  mix-blend-mode: normal;
  -webkit-mask-image: none;
  mask-image: none;
  filter: saturate(.92) brightness(.98);
  animation: none;
}

@media (min-width: 768px) and (max-width: 1100px) {
  .acp-hero-blue__inner {
    width: min(100% - 40px, 980px);
  }

  .acp-hero-blue__copy {
    width: min(760px, calc(100% - 40px));
  }

  .acp-hero-blue h1 {
    font-size: clamp(40px, 5vw, 51px);
  }

  .acp-hero-blue__btn {
    width: 220px;
  }

}

@media (max-width: 767px) {
  .acp-hero-blue {
    display: block;
    height: 632px;
    min-height: 632px;
    background:
      radial-gradient(circle at 55% 76%, rgba(11, 99, 246, .20), transparent 30%),
      linear-gradient(155deg, #020817 0%, #010713 70%, #00040d 100%);
  }

  .acp-hero-blue__inner {
    position: relative;
    z-index: 3;
    width: min(100% - 30px, 520px);
    height: 632px;
    min-height: 632px;
    display: block;
    padding: 0;
  }

  .acp-hero-blue__copy {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: block;
    width: 100%;
    height: auto;
    min-height: 632px;
    padding: 0;
    text-align: center;
    transform: none;
  }

  .acp-hero-blue h1 {
    position: absolute;
    top: 85px;
    left: 0;
    z-index: 3;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 6px;
    background: transparent;
    font-size: clamp(32px, 8.8vw, 36px);
    line-height: 1.04;
    letter-spacing: -1.2px;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .48);
    transform: none;
  }

  .acp-hero-blue h1 .nowrap {
    position: relative;
    z-index: 0;
    isolation: isolate;
    display: table;
    margin: 7px auto 0;
    color: #fff;
    font-size: clamp(20px, 6vw, 24px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.4px;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .48);
  }

  .acp-hero-blue h1 .nowrap::before {
    content: "";
    position: absolute;
    inset: 0 -12px -4px;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(
      ellipse at center,
      rgba(2, 8, 23, .62) 0%,
      rgba(2, 8, 23, .38) 52%,
      transparent 82%
    );
  }

  .acp-hero-blue p {
    margin: 0 auto 26px;
    font-size: 17px;
    line-height: 1.48;
    text-align: center;
  }

  .acp-hero-blue__actions {
    position: absolute;
    top: 460px;
    left: 0;
    z-index: 3;
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0;
    background: transparent;
  }

  .acp-hero-blue__btn {
    width: 100%;
    min-height: 52px;
    background: rgba(2, 8, 23, .28);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
    backdrop-filter: blur(2px);
    font-size: 16px;
  }

  .acp-hero-blue__visual {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    overflow: hidden;
  }

  .acp-hero-blue__artwork {
    top: -49px;
    right: auto;
    bottom: auto;
    left: -3%;
    width: 106%;
    height: auto;
    aspect-ratio: 948 / 1659;
  }

  .acp-hero-blue__artwork picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
  }

  .acp-hero-blue__spinner {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    transform: none;
    object-fit: fill;
    object-position: center top;
    opacity: .80;
    mix-blend-mode: normal;
    -webkit-mask-image: none;
    mask-image: none;
    filter:
      saturate(.92)
      brightness(1.18);
    animation: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  .acp-hero-blue__spinner {
    animation: none;
  }
}

/* Desktop only: raise the complete hero content section 25px. */
@media (min-width: 768px) {
  .acp-hero-blue__copy {
    transform: translate(-50%, calc(-50% - 25px));
  }
}

/* Short laptop screens only: move the complete hero copy 30px lower. */
@media (min-width: 768px) and (max-height: 800px) {
  .acp-hero-blue__copy {
    transform: translate(-50%, calc(-50% + 5px));
  }
}


/* Clickable service regions aligned to the seven visible service stations. */
.acp-hero-blue__hotspots {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.acp-hero-hotspot {
  position: absolute;
  display: block;
  pointer-events: auto;
  background: transparent;
  border-radius: 18px;
}

/* Desktop: make the hotspot canvas use the exact same cover geometry as the
   1983 x 793 hero artwork. This keeps every station and its label tied to the
   image itself when the panoramic artwork is center-cropped on narrower screens. */
@media (min-width: 768px) {
  .acp-hero-blue__hotspots {
    top: auto;
    right: auto;
    bottom: 0;
    left: 50%;
    width: max(100%, 1750.441px);
    height: auto;
    aspect-ratio: 1983 / 793;
    transform: translateX(-50%);
  }

  .acp-hero-hotspot--1 { left: 29.00%; top: 27.74%; width: 12.10%; height: 21.44%; } /* Retail */
  .acp-hero-hotspot--2 { left: 41.60%; top: 20.81%; width: 12.36%; height: 20.18%; } /* Online */
  .acp-hero-hotspot--3 { left: 53.96%; top: 27.11%; width: 13.62%; height: 19.55%; } /* High Risk */
  .acp-hero-hotspot--4 { left: 59.76%; top: 42.24%; width: 12.86%; height: 22.07%; } /* Integrations */
  .acp-hero-hotspot--5 { left: 52.45%; top: 56.75%; width: 12.86%; height: 22.70%; } /* ACH */
  .acp-hero-hotspot--6 { left: 36.06%; top: 59.27%; width: 13.87%; height: 20.81%; } /* Gateways */
  .acp-hero-hotspot--7 { left: 25.72%; top: 45.40%; width: 13.87%; height: 23.33%; } /* Partnerships */
}

@media (max-width: 767px) {
  .acp-hero-blue__hotspots {
    top: -49px;
    left: -3%;
    width: 106%;
    height: auto;
    aspect-ratio: 1024 / 1760;
  }

  /* Mobile: mapped independently to the portrait hero artwork. */
  .acp-hero-hotspot--1 { left: 15.5%; top: 34.0%; width: 22.5%; height: 13.0%; } /* Retail */
  .acp-hero-hotspot--2 { left: 39.0%; top: 30.5%; width: 22.0%; height: 12.0%; } /* Online */
  .acp-hero-hotspot--3 { left: 62.0%; top: 34.0%; width: 24.0%; height: 13.0%; } /* High Risk */
  .acp-hero-hotspot--4 { left: 70.5%; top: 44.3%; width: 25.0%; height: 13.0%; } /* Integrations */
  .acp-hero-hotspot--5 { left: 53.5%; top: 53.2%; width: 28.0%; height: 9.5%; } /* ACH */
  .acp-hero-hotspot--6 { left: 24.0%; top: 53.5%; width: 28.0%; height: 9.5%; } /* Gateways */
  .acp-hero-hotspot--7 { left: 5.5%; top: 44.5%; width: 27.0%; height: 13.0%; } /* Partnerships */
}
/* Mobile only: restore original Allied CardPay hero button rollover blue. */
@media (max-width: 767px) {
  .acp-hero-blue__btn:hover,
  .acp-hero-blue__btn:active,
  .acp-hero-blue__btn:focus-visible {
    color: #fff !important;
    background: #0b63f6 !important;
    border-color: #0b63f6 !important;
  }
}
