/* Home welcome popup (partial/home-popup.twig). Sizes follow the live site's Bootstrap modal-xl;
   open/close motion comes from the shared dialog handling in motion.js. */
.home-popup {
  width: calc(100% - 16px);
  max-width: 1140px;
  max-height: calc(100% - 16px);
  padding: 56px 59px;
  border: 0;
  background: var(--purple);
  color: #fff;
  box-shadow: none;
  overflow: auto;
}

.home-popup::backdrop {
  background: rgb(0 0 0 / .5);
  backdrop-filter: none;
}

.home-popup:focus {
  outline: none;
}

.home-popup__close {
  position: absolute;
  top: 10px;
  inset-inline-end: 20px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: var(--lime);
  font-size: 30px;
  line-height: 1;
  transition: opacity .15s;
}

.home-popup__close:hover {
  opacity: .75;
}

.home-popup__icon {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 40px;
  height: auto;
}

[dir="rtl"] .home-popup__icon {
  transform: scaleX(-1);
}


.home-popup__title {
  font-size: 34px;
  line-height: 1.1;
  font-weight: 600;
  padding: 0;
  margin: 0 0 16px;
  text-transform: uppercase;
}

@media (min-width: 1100px) {
  .home-popup__title {
    font-size: 36px;
    line-height: 48px;
  }
}

@media (min-width: 1360px) {
  .home-popup__title {
    margin: 0 0 24px;
    font-size: 48px;
    line-height: 52px;

  }
}




.home-popup__mark {
  position: relative;
  z-index: 1;
  display: inline-block;
}

/* Live's magenta bar, behind the lime text. */
.home-popup__mark::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: calc(.19em - 4px);
  z-index: -1;
  height: 4px;
  background: var(--magenta);
}

.home-popup__footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin-top: 48px;
}

.home-popup__text {
  margin: 0;
  font-size: var(--type-body-m-size);
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
}

.home-popup .button {
  gap: 24px;
  min-height: 56px;
  padding: 16px 20px;
  font-size: var(--type-cta-size);
}

@media (max-width: 374px) {
  .home-popup {
    padding-inline: 44px;
  }
}

@media (min-width: 576px) {
  .home-popup {
    width: calc(100% - 56px);
    max-width: 500px;
    max-height: calc(100% - 56px);
  }
}

@media (min-width: 992px) {
  .home-popup {
    max-width: 800px;
    padding: 60px 191px;
  }

  .home-popup__icon {
    width: 140px;
  }

  .home-popup__footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 96px;
  }

  .home-popup .button {
    flex: none;
    min-width: 250px;
  }
}

@media (min-width: 1200px) {
  .home-popup {
    max-width: 1140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-popup__close {
    transition: none;
  }
}