/* Waitlist form.
 *
 * Scoped to .wl* classes for the same reason as footer.css: these pages were
 * authored separately and style inputs and buttons with bare element
 * selectors, so anything relying on `input {…}` losing would be fragile.
 */

.wl { padding: 0; }

.wl-card {
  background: #fff;
  border: 1px solid #f3ebf0;
  border-radius: 24px;
  padding: clamp(28px, 5vw, 44px);
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 18px 50px rgba(58, 42, 62, .07);
}

.wl-card h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.2;
  color: #3a2a3e;
  margin: 0 0 10px;
}
.wl-card .wl-sub {
  color: #5a4a60;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 auto 24px;
  max-width: 46ch;
}

.wl-form { margin: 0; text-align: start; }

.wl-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #5a4a60;
  margin-bottom: 7px;
}

.wl-row { display: flex; gap: 10px; flex-wrap: wrap; }

.wl-input {
  flex: 1 1 240px;
  min-width: 0;
  font: inherit;
  font-size: 16px; /* under 16px iOS Safari zooms the page on focus */
  color: #3a2a3e;
  background: #fff;
  border: 1.5px solid #e6dbe3;
  border-radius: 13px;
  padding: 13px 15px;
  height: auto;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.wl-input::placeholder { color: #b3a7ba; }
.wl-input:focus-visible {
  outline: none;
  border-color: #e27aa0;
  box-shadow: 0 0 0 3px rgba(226, 122, 160, .22);
}
.wl-input[aria-invalid="true"] { border-color: #c2405f; }

.wl-btn {
  flex: 0 0 auto;
  font: inherit;
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  background: #e27aa0;
  border: 1.5px solid #e27aa0;
  border-radius: 13px;
  padding: 13px 24px;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}
.wl-btn:hover:not(:disabled) { background: #d0678d; transform: translateY(-1px); }
.wl-btn:focus-visible { outline: 3px solid rgba(226, 122, 160, .45); outline-offset: 2px; }
.wl-btn:disabled { opacity: .6; cursor: default; transform: none; }

/* Never pre-ticked: pre-ticked marketing consent is not consent (GDPR Art. 4(11)). */
.wl-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 15px;
  font-size: 14px;
  line-height: 1.5;
  color: #5a4a60;
  cursor: pointer;
}
.wl-check input {
  flex: none;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: #e27aa0;
  cursor: pointer;
}

.wl-fine {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #8a7e92;
}
.wl-fine a { color: #8a7e92; text-decoration: underline; text-underline-offset: 2px; }

/* Off-screen rather than display:none — a form-filler skips hidden fields,
   which is precisely the behaviour this needs to catch. */
.wl-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wl-status { margin: 14px 0 0; font-size: 14.5px; line-height: 1.5; min-height: 1.2em; }
.wl-status[data-state="error"] { color: #c2405f; }
.wl-status[data-state="ok"] { color: #3a8a6a; font-weight: 600; }
.wl-status[data-state="busy"] { color: #8a7e92; }

/* On success the inputs go, the confirmation stays. */
.wl-form[data-done="true"] .wl-row,
.wl-form[data-done="true"] .wl-check,
.wl-form[data-done="true"] .wl-label,
.wl-form[data-done="true"] .wl-fine { display: none; }
.wl-form[data-done="true"] .wl-status { text-align: center; font-size: 16.5px; }

/* Once the button has wrapped under the field it should own the full width —
   a content-width button floating on one side reads as secondary. */
@media (max-width: 480px) {
  .wl-row { flex-direction: column; }
  .wl-btn { width: 100%; }
}

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