/* LogEZ waitlist pages (signup, confirm, unsubscribe). Colours come from the site's tokens, so light, dark and the patterns all apply. */
.wl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: start; padding-top: clamp(8px, 3vw, 40px); }
.wl--single { grid-template-columns: minmax(0, 40rem); }
.wl__intro { display: grid; gap: 22px; }
.wl__count { margin: 0; display: inline-flex; align-self: start; width: fit-content; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wl__count[data-live="true"]::before { content: ""; width: 9px; height: 9px; margin: auto 10px auto 0; border-radius: 50%; background: var(--lime); }
.wl__promises { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--line); }
.wl__promises li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.wl__promises b { color: var(--text); font-weight: 600; }

.wl__panel { border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface); padding: clamp(20px, 3vw, 32px); }
.wl__form { display: grid; gap: 20px; }
.wl__field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.wl__field > label, .wl__field > legend { font-weight: 600; padding: 0; }
/* A fieldset legend is not a grid item, so the grid gap does not reach it: space the pills by the same 8px the labels get. */
.wl__platform .wl__seg { margin-top: 8px; }
.wl__opt { font-weight: 400; color: var(--muted); margin-left: 6px; font-size: 0.875rem; }
.wl input[type="email"], .wl input[type="text"] { width: 100%; min-height: 52px; padding: 0 16px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px; }
.wl input[type="email"]:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-color: transparent; }
.wl input[aria-invalid="true"] { border-color: #d64545; }

.wl__seg { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.wl__seg label:last-child span { padding: 0 14px; gap: 6px; }
.wl__seg label:last-child .wl__ico { height: 17px; }
.wl__seg label { position: relative; }
.wl__seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.wl__seg span { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--line-strong); border-radius: 12px; font-weight: 500; background: var(--bg); }
.wl__ico { width: auto; height: 20px; flex: none; fill: currentColor; }
.wl__seg span { gap: 8px; }
.wl__seg input:checked + span { background: color-mix(in srgb, var(--lime) 18%, var(--bg)); border-color: var(--lime); color: var(--text); font-weight: 600; }
.wl__seg input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }

.wl__check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.wl__check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--lime); }
.wl__hint { margin: 0 0 0 34px; font-size: 0.875rem; color: var(--muted); }

.wl__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl__turnstile:empty { display: none; }
.wl__error { margin: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid #d64545; color: var(--text); background: color-mix(in srgb, #d64545 12%, var(--surface)); }

.wl__submit { min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--lime); color: var(--on-lime); font: 700 1.0625rem var(--body); cursor: pointer; }
.wl__submit:hover { filter: brightness(1.06); }
.wl__submit:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.wl__submit[disabled] { opacity: 0.6; cursor: progress; }
.wl__ghost { min-height: 46px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--text); font: 500 1rem var(--body); cursor: pointer; }
.wl__ghost:hover { border-color: var(--text); }
.wl__fine { margin: 0; font-size: 0.875rem; color: var(--muted); }

.wl__done { display: grid; gap: 14px; justify-items: start; }
.wl__step { margin: 0; }
.wl__step span { display: inline-block; padding: 6px 12px; border: 1px solid color-mix(in srgb, var(--lime) 45%, var(--line)); border-radius: 999px; background: color-mix(in srgb, var(--lime) 12%, transparent); color: var(--lime); font: 700 0.8125rem var(--body); letter-spacing: 0.04em; text-transform: uppercase; }
.wl__open { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; margin-top: 6px; }
.wl__look { color: var(--text); }
.wl__textbtn { margin: 4px 0 0; padding: 6px 0; border: 0; background: none; color: var(--muted); font: 500 0.9375rem var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wl__textbtn:hover { color: var(--text); }
.wl__done p { margin: 0; }
.wl__done:focus { outline: none; }
.wl__donetitle { font: 600 1.375rem/1.25 var(--head); letter-spacing: 0; }
.wl__status { display: grid; gap: 18px; }
.wl__status:focus { outline: none; }
.wl__links { margin: 0; display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 899px) {
  .wl { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wl__open { width: 100%; }
}
@media (max-width: 420px) {
  .wl__seg { grid-template-columns: 1fr; }
}

/* the hidden attribute must win over the display rules above */
.wl [hidden], .wl__status [hidden] { display: none !important; }
