/**
 * Payments bar sits on the hero / How to start join.
 * Home, Google Ads landings. Same idea as .quote-area over the footer.
 */

.pcs-home-pay {
  position: relative;
  z-index: auto;
  display: flow-root;
  width: 100%;
  height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
}

.pcs-home-pay .container {
  position: relative;
  z-index: 1;
  max-width: min(1280px, calc(100% - 48px));
  padding-inline: clamp(24px, 3vw, 40px);
  margin-inline: auto;
}

.pcs-home-pay .brand__wrp {
  position: relative;
  z-index: 1;
  padding: 28px 50px 36px;
  margin-top: -68px;
  margin-bottom: -68px;
  background: #6b6ce0;
  overflow: hidden;
  border-radius: 22px;
}

.pcs-home-pay .brand__shape {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: auto;
  height: auto;
  pointer-events: none;
  overflow: hidden;
}

.pcs-home-pay .brand__shape::before {
  content: "";
  position: absolute;
  inset: -28%;
  background-image:
    radial-gradient(circle at 11px 11px, rgba(255, 255, 255, 0.38) 1.2px, transparent 1.55px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 38px 38px;
  animation: pcs-home-pay-grid 32s linear infinite alternate;
}

.pcs-home-pay .brand__shape::after {
  content: "";
  position: absolute;
  right: -64px;
  top: 50%;
  width: 230px;
  height: 230px;
  margin-top: -115px;
  border: 20px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 36px rgba(255, 255, 255, 0.05),
    -200px 36px 0 -72px rgba(255, 255, 255, 0.1);
}

@keyframes pcs-home-pay-grid {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-22px, -14px, 0);
  }
}

.pcs-home-pay__label {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
}

.pcs-home-pay .brand__slider {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-inline: auto;
}

.pcs-home-pay .brand__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 220px;
  height: 60px;
  margin-inline: auto;
  background: transparent;
}

.pcs-home-pay .brand__image img {
  display: block;
  width: auto;
  height: 52px;
  max-width: 200px;
  object-fit: contain;
  background: transparent;
}

@media (min-width: 992px) {
  body.pcs-home main > .banner-three-area:first-child {
    padding-bottom: 108px !important;
  }

  body.pcs-home .pcs-svc-posthero-band--home {
    padding-top: 136px !important;
  }
}

@media (max-width: 991.98px) {
  body.pcs-home main > .banner-three-area:first-child {
    padding-bottom: 100px !important;
  }

  .pcs-home-pay .brand__shape::before {
    animation: none;
  }

  .pcs-home-pay .brand__wrp {
    padding: 22px 22px 28px;
    margin-top: -56px;
    margin-bottom: -56px;
  }

  .pcs-home-pay__label {
    font-size: 16px;
  }

  .pcs-home-pay .brand__image {
    height: 48px;
  }

  .pcs-home-pay .brand__image img {
    height: 40px;
    max-width: 160px;
  }

  body.pcs-home .pcs-svc-posthero-band--home {
    padding-top: 116px !important;
  }
}

@media (max-width: 575.98px) {
  .pcs-home-pay .container {
    max-width: none;
    padding-inline: 16px;
  }

  body.pcs-home main > .banner-three-area:first-child {
    padding-bottom: 100px !important;
  }

  .pcs-home-pay .brand__wrp {
    padding: 18px 16px 22px;
    margin-top: -56px;
    margin-bottom: -56px;
  }

  .pcs-home-pay .brand__image {
    height: 44px;
  }

  .pcs-home-pay .brand__image img {
    height: 32px;
    max-width: 96px;
  }

  body.pcs-home .pcs-svc-posthero-band--home {
    padding-top: 116px !important;
  }
}

@media (min-width: 1200px) {
  .pcs-home-pay .container {
    max-width: min(1320px, calc(100% - 56px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .pcs-home-pay .brand__slider .swiper-wrapper {
    transition-duration: 0ms !important;
  }

  .pcs-home-pay .brand__shape::before {
    animation: none;
  }
}

/* Hub, Scientist, company, legal, blog index - not location pages */
@media (min-width: 992px) {
  body.pcs-pay-page .pcs-hub-about-hero-scope .pcs-ab-hero,
  body.pcs-pay-page main > section.pcs-ab-hero {
    padding-bottom: 108px !important;
  }

  body.pcs-pay-page .pcs-home-pay + .pcs-svc-posthero-band,
  body.pcs-pay-page .pcs-home-pay + #ht-main,
  body.pcs-pay-page .pcs-home-pay + section {
    padding-top: 136px !important;
  }

  body.pcs-pay-page .pcs-home-pay + .pcs-hub-main > section:first-of-type,
  body.pcs-pay-page .pcs-home-pay + main > section:first-of-type {
    padding-top: 136px !important;
  }
}

@media (max-width: 991.98px) {
  body.pcs-pay-page .pcs-hub-about-hero-scope .pcs-ab-hero,
  body.pcs-pay-page main > section.pcs-ab-hero {
    padding-bottom: 100px !important;
  }

  body.pcs-pay-page .pcs-home-pay + .pcs-svc-posthero-band,
  body.pcs-pay-page .pcs-home-pay + #ht-main,
  body.pcs-pay-page .pcs-home-pay + section {
    padding-top: 116px !important;
  }

  body.pcs-pay-page .pcs-home-pay + .pcs-hub-main > section:first-of-type,
  body.pcs-pay-page .pcs-home-pay + main > section:first-of-type {
    padding-top: 116px !important;
  }
}
