/* Quote popup for the landing pages. Loaded after /assets/styles.css and the
   landing page's own lp.css, which supply the tokens and the form styling. */

.lp-pop {
  width: min(440px, calc(100vw - 2rem));
  max-height: min(88vh, 860px);
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: transparent;
  overflow: visible;
}

.lp-pop::backdrop {
  background: rgba(8, 16, 32, .62);
  backdrop-filter: blur(3px);
}

.lp-pop[open] {
  animation: lpPopIn .34s var(--ease);
}

@keyframes lpPopIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.98);
  }
}

.lp-pop-in {
  position: relative;
  max-height: min(88vh, 860px);
  border-radius: 26px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--sh-lg);
  /* the card still scrolls on a short screen, it just does it without a
     scrollbar down the side of the form */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.lp-pop-in::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* the form already carries the white card, so drop its outer margin */
.lp-pop .il-form {
  margin: 0;
  border-radius: 26px;
}

.lp-pop-x {
  position: absolute;
  top: .7rem;
  right: .7rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font: inherit;
  cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease);
}

.lp-pop-x:hover,
.lp-pop-x:focus-visible {
  background: var(--navy);
  color: #fff;
  transform: rotate(90deg);
}

@media (prefers-reduced-motion: reduce) {
  .lp-pop[open] {
    animation: none;
  }

  .lp-pop-x:hover,
  .lp-pop-x:focus-visible {
    transform: none;
  }
}

/* the button that opens it, used inline in the page copy */
.lp-pop-open {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .9rem 1.6rem;
  border: 0;
  border-radius: var(--pill);
  background: var(--teal);
  color: var(--navy);
  font: inherit;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}

.lp-pop-open:hover,
.lp-pop-open:focus-visible {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: var(--sh);
}

.lp-pop-open svg {
  flex: none;
}

/* a centred band so each page has one obvious mid-page prompt */
.lp-pop-band {
  padding: 3rem 0;
  color: #fff;
  background:
    radial-gradient(620px 340px at 50% 0, rgba(78, 216, 200, .18), transparent 70%),
    linear-gradient(160deg, #0F2340, #132B4E);
  text-align: center;
}

.lp-pop-band .wrap {
  max-width: 720px;
}

.lp-pop-band h2 {
  margin: 0 0 .7rem;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.2;
}

.lp-pop-band p {
  margin: 0 auto 1.6rem;
  max-width: 56ch;
  color: #C9D6E8;
  font-size: 1rem;
  line-height: 1.7;
}
