/* The look of the sales-paused waitlist. Built from style.css's own tokens.
 *
 * What is VISIBLE is not decided here. Those rules are inline in each page,
 * because a CDN can hold new HTML beside an old stylesheet. If this file fails
 * to load, the form is plain but still works and the buy buttons stay hidden.
 */
.waitlist {
  max-width: var(--maxw);
  margin: 28px auto 0;
  padding-inline: 20px;
  /* Tall enough to clear the sticky top bar after a waitlist button is tapped. */
  scroll-margin-top: 96px;
}
.waitlist__box {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 20px 40px;
  align-items: start;
  padding: 32px;
  border-radius: var(--radius-lg);
  border-color: var(--accent-border);
}
.waitlist__title {
  color: #fff;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  margin-bottom: 10px;
}
.waitlist__text {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 52ch;
}
.waitlist__action { min-width: 0; }
.waitlist__form { position: relative; }
.waitlist__label {
  display: block;
  color: #fff;
  font-weight: 700;
  margin-bottom: 8px;
}
.waitlist__row { display: flex; gap: 10px; }
.waitlist__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 15px 16px;
  color: #fff;
  background: var(--bg-dark);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font: inherit;
  /* Under 16px, iOS zooms the page in when the field is focused. */
  font-size: 1.05rem;
  text-align: left;
}
.waitlist__input::placeholder { color: var(--text-2); }
.waitlist__input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.waitlist__note {
  min-height: 1.5em;
  margin-top: 8px;
  color: #ff9b9b;
  font-weight: 700;
}
.waitlist__done {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.6;
}
.waitlist__done[hidden] { display: none; }
.waitlist__done .icon { flex: none; margin-top: .3em; }
.waitlist__bought {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-2);
}
.waitlist__bought a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* The same red button as .btn-buy, under its own name: script.js counts every
 * .btn-buy tap as a purchase attempt. */
.btn-wait {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 28px rgba(196, 30, 30, 0.38);
}
.btn-wait:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-wait:active { transform: translateY(0); }
.btn-wait[disabled] { opacity: .7; cursor: wait; transform: none; }

@media (max-width: 900px) {
  .waitlist__box { grid-template-columns: 1fr; padding: 24px 20px; }
}
@media (max-width: 480px) {
  .waitlist__row { flex-direction: column; }
  .waitlist__row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-wait:hover, .btn-wait:active { transform: none; }
}
