/* waitlist.css: the apps waitlist page only (/waitlist/; markup: _build/waitlist.py, behaviour: js/waitlist.js).
   Loaded after unpay.css + hero.css, so the header and footer are the home page's own. Flat like the 1 Oct cards:
   things are set apart by colour only (no shadows, no borders, no hairlines). Text 14 px and up. */

.wl { display: block; font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--u-ink); }

/* ---------- hero: the home hero's banner (indigo at the top, melting into the paper), the drifting brand shapes
   (unpay-backdrop.js on [data-backdrop]) and the three platform cards standing on its lower half */
.wl-hero {
  padding: calc(var(--h-nav-h) + clamp(40px, 7vh, 88px)) var(--card-gx) 0;
  --bd-grad: linear-gradient(180deg, var(--h-indigo) 0%, var(--h-indigo) 24%, var(--h-indigo-2) 38%, var(--h-violet) 54%,
    var(--h-lilac) 72%, var(--h-mist) 88%, var(--u-ground) 100%);
}
.wl-hero > .u-bd { overflow: hidden; }
.wl-hero-copy { max-width: 46rem; margin: 0 auto; text-align: center; color: #fff; }
.wl-h1 {
  margin: 0; color: #fff; text-wrap: balance;
  font: 600 clamp(2.5rem, 3.6vw + 1.2rem, 4.5rem)/1.02 "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.045em;
}
.wl-lead {
  margin: clamp(14px, 2vh, 22px) auto 0; max-width: 36rem; color: #fff; text-wrap: balance;
  font-size: clamp(1.0625rem, .45vw + .9rem, 1.3125rem); line-height: 1.45; font-weight: 500; letter-spacing: -.01em;
}

/* the four cards (3 Oct: Web, Android, Chrome = get it now; iPhone = coming soon): glass on the banner's lilac foot */
.wl-cards {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--card-gap);
  max-width: 72rem; margin: clamp(40px, 6vh, 72px) auto 0; padding: 0; list-style: none;
}
/* QA 1 Oct #10: from 992 px the cards span what the form card spans (the hero's side padding = the card gutter) */
@media (min-width: 992px) {
  .wl-cards { max-width: none; }
  /* the wider cards are ~25 px shorter, which lifted the lead onto the lighter violet (white 4.36:1); the deep stops
     move down by the same share so the lead keeps >= 4.5:1 */
  .wl-hero {
    --bd-grad: linear-gradient(180deg, var(--h-indigo) 0%, var(--h-indigo) 27%, var(--h-indigo-2) 42%, var(--h-violet) 58%,
      var(--h-lilac) 74%, var(--h-mist) 88%, var(--u-ground) 100%);
  }
}
.wl-card {
  display: flex; flex-direction: column; min-width: 0; margin: 0; padding: clamp(1.5rem, 1.6vw + .75rem, 2.25rem);
  border-radius: 28px; color: var(--u-ink);
  /* frosted glass (client 1 Oct: "make them transparent or blur"): the gradient and shapes show through, no border, no shadow */
  background: rgb(255 255 255 / .4);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
}
.wl-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wl-ico {
  display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 20px;
  background: rgb(255 255 255 / .55); color: var(--u-ink);
}
.wl-ico .wl-mark { width: 30px; height: 30px; }
.wl-mark { display: block; }
.wl-soon {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--u-pending-bg); color: var(--u-pending-ink); white-space: nowrap;
  font-size: 14px; font-weight: 600; letter-spacing: -.005em;
}
.wl-soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--u-pending); }
.wl-card-h { margin: clamp(28px, 3vw, 48px) 0 0; color: var(--u-ink); font-size: clamp(1.375rem, .6vw + 1.1rem, 1.75rem); line-height: 1.15; font-weight: 600; letter-spacing: -.03em; }
.wl-card-p { margin: 8px 0 0; color: var(--u-muted); font-size: 16px; line-height: 1.45; }

/* ---------- join: a deep indigo inset card (the home page's How it works colour) */
.wl-join {
  position: relative; z-index: 1;
  margin: var(--card-gap) var(--card-gx) 0; padding: clamp(3rem, 4vw + 1.5rem, 6rem) var(--u-gutter, 1.25rem);
  border-radius: var(--card-r); background: var(--u-band-deep); color: #fff;
}
.wl-join ::selection { background: #fff; color: var(--u-band-deep); }
.wl-join-in { max-width: 38rem; margin: 0 auto; text-align: center; }
.wl-join-h { margin: 0; color: #fff; font-size: clamp(2rem, 2vw + 1.25rem, 3rem); line-height: 1.05; font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
.wl-join-p { margin: 12px 0 0; color: rgb(255 255 255 / .86); font-size: 17px; line-height: 1.45; }
.wl-form { margin: clamp(24px, 3vw, 36px) 0 0; }
/* the field: one white pill with the button inside it */
.wl-field {
  display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: #fff;
}
.wl-input {
  flex: 1 1 auto; min-width: 0; height: 52px; margin: 0; padding: 0 8px 0 18px; border: 0; border-radius: 999px;
  background: transparent; color: var(--u-ink); font: 500 17px/1.2 inherit; letter-spacing: -.005em; outline: none;
  caret-color: var(--u-accent-deep);
}
.wl-input::placeholder { color: var(--u-muted); opacity: 1; }
.wl-field:has(.wl-input:focus) { outline: 2px solid #fff; outline-offset: 3px; }
.wl-field.is-bad { background: #fff7ef; }
.wl-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 24px; margin: 0;
  border: 0; border-radius: 999px; background: var(--u-ink); color: #fff; cursor: pointer; white-space: nowrap;
  font: 600 16px/1 inherit; letter-spacing: -.005em;
  transition: background-color var(--u-t1) var(--u-ease), transform var(--u-t1) var(--u-ease);
}
.wl-btn:hover { background: #121b3d; }
.wl-btn:active { transform: scale(.98); }
.wl-btn:focus-visible { outline: 2px solid var(--u-ink); outline-offset: 2px; }
.wl-btn[aria-busy="true"] { cursor: progress; opacity: .8; }

.wl-tick-svg { display: block; width: 100%; height: 100%; }

.wl-msg { min-height: 1.45em; margin: 16px 0 0; color: #fff; font-size: 15px; font-weight: 500; line-height: 1.45; }
.wl-msg:empty { min-height: 0; margin: 0; }
.wl-msg.is-bad::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--u-pending); vertical-align: 1px; }
/* the honeypot: off screen for people, still in the form for bots */
.wl-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* signed up: the form gives way to one line */
.wl-done { margin-top: clamp(24px, 3vw, 36px); padding: 28px 24px; border-radius: 24px; background: rgb(255 255 255 / .12); outline: none; }
.wl-done-ico { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto; padding: 12px; box-sizing: border-box; border-radius: 50%; background: #fff; color: var(--u-band-deep); }
.wl-done-h { margin: 14px 0 0; color: #fff; font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.wl-done-p { margin: 6px 0 0; color: rgb(255 255 255 / .86); font-size: 16px; line-height: 1.45; }
html.u-motion .wl-done:not([hidden]) { animation: wl-in var(--u-t2) var(--u-ease) both; }
@keyframes wl-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } }

/* ---------- the paper melts into the footer's indigo (the home page's closing band, flipped banner colours) */
/* QA 1 Oct #9: the melt starts behind the form card's lower half, so no empty paper band sits between it and the footer */
.wl-tail {
  height: clamp(160px, 16vw, 300px); margin-top: calc(-1 * clamp(112px, 12vw, 240px));
  background: linear-gradient(180deg, var(--u-ground) 0%, var(--u-band-mist) 30%, var(--u-band-lilac) 70%, var(--u-band-indigo) 100%);
}

/* ---------- tablets: cards in one column, side by side inside (icon left) */
@media (max-width: 991px) {
  .wl-cards { grid-template-columns: minmax(0, 1fr); max-width: 40rem; }
  .wl-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ico h" "ico p"; column-gap: 18px; align-items: center; }
  .wl-card-top { display: contents; }
  .wl-ico { grid-area: ico; align-self: start; }
  .wl-soon { grid-area: h; justify-self: end; align-self: start; }
  .wl-card-h { grid-area: h; margin: 0; padding-right: 128px; align-self: end; }
  .wl-card-p { grid-area: p; margin-top: 4px; align-self: start; }
}
/* phones: the field stacks (button under the input), cards keep the icon on the left, the label under the line */
@media (max-width: 599px) {
  .wl-hero { padding-top: calc(var(--h-nav-h) + 32px); }
  .wl-card { grid-template-areas: "ico h" "ico p" "ico s"; padding: 20px; border-radius: 24px; column-gap: 16px; }
  .wl-ico { width: 56px; height: 56px; border-radius: 18px; }
  .wl-ico .wl-mark { width: 26px; height: 26px; }
  .wl-card-h { padding-right: 0; font-size: 1.25rem; }
  .wl-card-p { font-size: 15px; }
  .wl-soon { grid-area: s; justify-self: start; margin-top: 10px; }
  .wl-field { flex-direction: column; align-items: stretch; gap: 6px; padding: 6px; border-radius: 26px; }
  .wl-input { height: 52px; padding: 0 16px; text-align: center; }
  .wl-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .wl-btn { transition: none; }
  .wl-btn:active { transform: none; }
}

/* 3 Oct: each card ends in its action (Open app / Download APK / Download / Get told first) */
.wl-ico .unpay-ico { width: 28px; height: 28px; }
.wl-soon.is-live { background: var(--u-final-bg); color: var(--u-final-ink); }
.wl-soon.is-live::before { background: var(--u-final); }
.wl-card-hint { margin: 8px 0 0; color: var(--u-ink); font-size: 13px; line-height: 1.4; opacity: .8; }
.wl-card-act { margin-top: auto; padding-top: 20px; }
.wl-get {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 14px; border-radius: 999px;
  background: var(--u-accent-deep); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color var(--u-t1) var(--u-ease), transform var(--u-t1) var(--u-ease);
}
.wl-get .unpay-ico { flex: none; width: 16px; height: 16px; }
.wl-get:hover { background: var(--u-accent-deeper); transform: translateY(-1px); }
.wl-get:focus-visible { outline: 2px solid var(--u-accent-deep); outline-offset: 3px; }
.wl-get-s { font-weight: 500; opacity: .8; }
.wl-get.is-ghost { background: rgb(255 255 255 / .6); color: var(--u-accent-deep); }
.wl-get.is-ghost:hover { background: #fff; }
@media (min-width: 992px) and (max-width: 1279px) { .wl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991px) {
  .wl-card { grid-template-areas: "ico h" "ico p" "ico x" "ico a"; }
  .wl-card-hint { grid-area: x; }
  .wl-card-act { grid-area: a; padding-top: 14px; }
}
@media (max-width: 599px) {
  .wl-card { grid-template-areas: "ico h" "ico p" "ico s" "ico x" "ico a"; }
  .wl-card-act { padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { .wl-get { transition: none; } .wl-get:hover { transform: none; } }
