/* ---------- waitlist dialog (same system and layout as #30's scan dialog, from the user's Figma) + toasts ----------
   Self-contained: every class starts with "wl-", every value is literal (no theme tokens), the font is the page's own.
   Step 1: site + work email. Step 2: "You're on the list" with three optional quick questions. Toasts: react-hot-toast look
   in black, top centre, shown above the open dialog. */
.wl-dlg { --wl-ink: rgb(240 239 236); --wl-ink-2: rgb(240 239 236 / 0.6); --wl-ink-3: rgb(240 239 236 / 0.5); --wl-line: rgb(255 255 255 / 0.2);
  width: min(817px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 40px; overflow-y: auto;
  border: 0; border-radius: 33px; background: rgb(26 26 26 / 0.95); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  color: var(--wl-ink); font-family: inherit; text-align: left; box-shadow: 0 40px 100px -30px rgb(0 0 0 / 0.8); overscroll-behavior: contain; }
.wl-dlg *, .wl-dlg *::before, .wl-dlg *::after { box-sizing: border-box; }
.wl-dlg::backdrop { background: rgb(0 0 0 / 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wl-dlg[open] { animation: wl-rise 360ms cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes wl-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.wl-dlg h2, .wl-dlg p, .wl-dlg fieldset, .wl-dlg legend { margin: 0; padding: 0; }
.wl-step { display: grid; gap: 30px; margin: 0; }
.wl-step[hidden] { display: none; }
.wl-step.is-in { animation: wl-in 360ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes wl-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.wl-body { position: relative; display: grid; align-content: start; gap: 20px; min-height: 330px; }
.wl-q legend { float: left; width: 100%; margin-bottom: 12px; }
.wl-q .wl-chips { clear: both; }
.wl-head { display: grid; gap: 1px; }
.wl-title { padding-bottom: 6px; font-size: 1.6875rem; font-weight: 600; line-height: 23px; letter-spacing: -0.01em; color: var(--wl-ink); overflow-wrap: anywhere; }
.wl-title:focus, .wl-title:focus-visible { outline: none; }
.wl-sub { font-size: 1rem; line-height: 21px; color: var(--wl-ink-3); }
.wl-fields { display: grid; gap: 14px; }
.wl-field, .wl-q { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.wl-label { padding: 6px 0 0; font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--wl-ink); }
.wl-label strong { font-size: 1.25rem; font-weight: 700; line-height: 1; }
.wl-input { width: 100%; height: 37px; padding: 0 16px; border: 1px solid var(--wl-line); border-radius: 9px; background: transparent; color: var(--wl-ink); font: inherit; font-size: 0.9375rem; outline: none; transition: border-color 160ms cubic-bezier(0.16, 1, 0.3, 1); }
.wl-input::placeholder { color: var(--wl-ink-3); }
.wl-input:focus, .wl-input:focus-visible { border-color: rgb(255 255 255 / 0.55); outline: none; }
.wl-input[aria-invalid="true"] { border-color: oklch(70% 0.18 25); }
.wl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-dlg .wl-q { gap: 0; }
.wl-chip { position: relative; display: inline-flex; cursor: pointer; }
.wl-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.wl-chip span { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border: 1px solid var(--wl-line); border-radius: 10px; font-size: 0.9375rem; line-height: 1.3; color: var(--wl-ink); white-space: nowrap; transition: background-color 160ms cubic-bezier(0.16, 1, 0.3, 1), border-color 160ms cubic-bezier(0.16, 1, 0.3, 1); }
.wl-chip:hover span { border-color: rgb(255 255 255 / 0.4); }
.wl-chip input:checked + span { background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.45); }
.wl-chip input:focus-visible + span { outline: 2px solid rgb(255 255 255 / 0.7); outline-offset: 2px; }
.wl-ok { display: flex; align-items: center; gap: 14px; }
.wl-ok-img { flex: none; width: 57px; height: 57px; }
.wl-ok .wl-head { gap: 10px; }
.wl-title--ok { padding: 0; font-weight: 500; overflow-wrap: normal; }
.wl-step > *, .wl-body > *, .wl-ok .wl-head { min-width: 0; }
[data-wl-site], [data-wl-email] { display: inline-block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; vertical-align: bottom; }
.wl-sub--ok { color: var(--wl-ink-2); }
/* the layered pill button (#30's light "lp" button) */
.wl-btn { position: relative; display: inline-flex; width: 100%; height: 50px; padding: 3px; border: 0.6px solid oklch(100% 0 0 / 0.42); border-radius: 999px; background: oklch(100% 0 0 / 0.03); color: inherit; font: inherit; cursor: pointer; isolation: isolate; transition: border-color 360ms cubic-bezier(0.16, 1, 0.3, 1), transform 160ms cubic-bezier(0.16, 1, 0.3, 1); }
.wl-btn__in { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 13px 29px; border-radius: 999px; background: #fff; color: #000; font-size: 1rem; font-weight: 400; line-height: 1.4; white-space: nowrap; box-shadow: inset 0 -1px 0 oklch(0% 0 0 / 0.08); transition: background-color 360ms cubic-bezier(0.16, 1, 0.3, 1); }
.wl-btn__glow { position: absolute; z-index: 1; top: -1px; left: 50%; width: 46%; height: 1px; border-radius: 999px; background: linear-gradient(90deg, transparent, #fff 50%, transparent); box-shadow: 0 0 10px 1px oklch(100% 0 0 / 0.35); transform: translateX(-50%); opacity: 0.9; pointer-events: none; transition: width 360ms cubic-bezier(0.16, 1, 0.3, 1), opacity 360ms cubic-bezier(0.16, 1, 0.3, 1); }
.wl-btn:hover { border-color: oklch(100% 0 0 / 0.75); }
.wl-btn:hover .wl-btn__glow { width: 72%; opacity: 1; }
.wl-btn:hover .wl-btn__in { background: oklch(94% 0 0); }
.wl-btn:active { transform: scale(0.98); }
.wl-btn:focus-visible { outline: 2px solid rgb(255 255 255 / 0.7); outline-offset: 4px; }
.wl-step[aria-busy="true"] .wl-btn { opacity: 0.7; cursor: progress; }
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 639px) {
  .wl-dlg { padding: 24px 20px; border-radius: 24px; }
  .wl-body { min-height: 0; }
  .wl-title { font-size: 1.4375rem; }
  .wl-sub, .wl-label { font-size: 0.9375rem; }
  .wl-label strong { font-size: 1.125rem; }
  .wl-chip span { padding: 0 13px; }
  .wl-ok { align-items: flex-start; }
  .wl-ok-img { width: 48px; height: 48px; }
}
html.wl-lock, html.wl-lock body { overflow: hidden; }

.wl-toasts { position: fixed; inset: 16px 16px auto 16px; z-index: 9999; display: grid; justify-items: center; gap: 8px; width: auto; height: auto; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; pointer-events: none; }
.wl-toasts:not(:popover-open)[popover] { display: none; }
.wl-toast { display: flex; align-items: center; gap: 10px; max-width: min(350px, 100%); padding: 8px 10px; border: 1px solid rgb(255 255 255 / 0.14); border-radius: 8px; background: #000; color: #f0efec; font-family: inherit; font-size: 0.875rem; line-height: 1.3; box-shadow: 0 8px 24px rgb(0 0 0 / 0.6), 0 3px 3px rgb(0 0 0 / 0.3); pointer-events: auto; animation: wl-toast-in 0.35s cubic-bezier(0.21, 1.02, 0.73, 1) both; }
.wl-toast.is-out { animation: wl-toast-out 0.4s cubic-bezier(0.06, 0.71, 0.55, 1) both; }
.wl-toast__msg { margin: 4px 10px; }
@keyframes wl-toast-in { from { transform: translate3d(0, -200%, 0) scale(0.6); opacity: 0.5; } to { transform: none; opacity: 1; } }
@keyframes wl-toast-out { from { transform: none; opacity: 1; } to { transform: translate3d(0, -150%, -1px) scale(0.6); opacity: 0; } }
.wl-toast__icon { position: relative; flex: none; width: 20px; height: 20px; border-radius: 50%; }
.wl-toast__icon--error { background: #ff4b4b; animation: wl-toast-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s both; }
.wl-toast__icon--error::before, .wl-toast__icon--error::after { content: ""; position: absolute; left: 4px; top: 9px; width: 12px; height: 2px; border-radius: 3px; background: #fff; transform: rotate(45deg); }
.wl-toast__icon--error::after { transform: rotate(-45deg); }
.wl-toast__icon--success { background: #61d345; animation: wl-toast-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s both; }
.wl-toast__icon--success::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes wl-toast-pop { from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wl-dlg[open], .wl-step.is-in, .wl-toast, .wl-toast.is-out { animation-duration: 1ms; } }

/* ---------- hero call to action (same as #30's hero pill): the site field and the offer button in one white pill,
   with a short trust line under it. Submitting sends the site in the background, then the dialog opens on the email. */
.wl-hero { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 20px; width: 100%; max-width: 100%; }
.wl-hero--start { justify-items: start; }
.wl-pill { display: flex; align-items: center; gap: 8px; width: min(470px, 100%); max-width: 100%; height: 52px; margin: 0; padding: 0 6px 0 20px; border: 1px solid oklch(0% 0 0 / 0.08); border-radius: 999px; background: #fff; box-shadow: 0 1px 2px oklch(0% 0 0 / 0.05); transition: box-shadow 160ms cubic-bezier(0.16, 1, 0.3, 1); }
/* on a light hero: a firmer edge so the white pill reads against the page */
.wl-pill--line { border-color: oklch(0% 0 0 / 0.16); box-shadow: 0 1px 2px oklch(0% 0 0 / 0.06), 0 6px 18px -8px oklch(0% 0 0 / 0.18); }
.wl-pill:focus-within { box-shadow: 0 0 0 3px oklch(100% 0 0 / 0.28), 0 0 0 1px oklch(0% 0 0 / 0.12); }
.wl-pill__input { flex: 1; width: 0; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: #111; font: inherit; font-size: 0.9375rem; outline: none; box-shadow: none; }
.wl-pill__input:focus, .wl-pill__input:focus-visible { outline: none; box-shadow: none; border: 0; }
.wl-pill__input::placeholder { color: #8a8a8a; }
.wl-pill__input[aria-invalid="true"]::placeholder { color: #d33; }
.wl-pill__btn { flex-shrink: 0; height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: #1a1a1a; color: #fff; font: inherit; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; cursor: pointer; transition: background-color 160ms cubic-bezier(0.16, 1, 0.3, 1); }
.wl-pill__btn:hover { background: #000; }
.wl-pill__btn:focus-visible { outline: 2px solid #1a1a1a; outline-offset: 2px; }
.wl-trust { margin: 0; font-size: 0.875rem; line-height: 1.5; color: inherit; opacity: 0.75; text-align: center; text-wrap: balance; }
.wl-hero--start .wl-trust { text-align: left; }
/* over hero footage: the same soft shadow the hero text uses, so the line stays readable on bright frames */
.wl-trust--shade { opacity: 0.85; text-shadow: 0 1px 14px rgb(0 0 0 / 0.85), 0 0 2px rgb(0 0 0 / 0.6); }
.wl-trust span { margin: 0 0.35em; }
@media (max-width: 380px) { .wl-pill__btn { padding: 0 14px; font-size: 0.875rem; } }
