/* Waitlist dialog — opened by every Sign in / Get started until the platform opens. Markup in the page, logic in waitlist.js. */
[hidden] { display: none !important; }
dialog.wl { width: min(920px, calc(100% - 48px)); max-width: none; max-height: calc(100svh - 48px); padding: 0; border: 0; border-radius: 22px; overflow: hidden; background: var(--surface); color: var(--text); box-shadow: 0 50px 120px -30px rgba(10,26,48,.55), 0 0 0 1px rgba(10,26,48,.06); }
dialog.wl[open] { display: grid; grid-template-columns: 1fr 1.08fr; animation: wl-pop .55s var(--ease-out) both; }
dialog.wl::backdrop { background: rgba(10, 26, 48, .42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: wl-fade .35s var(--ease-out) both; }
dialog.wl.closing { animation: wl-out .25s ease-in both; } dialog.wl.closing::backdrop { animation: wl-fade .25s ease-in reverse both; }
.wl .x { position: absolute; right: 14px; top: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-alt); color: var(--ink-strong); display: grid; place-items: center; cursor: pointer; }
.wl .x svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }

/* left: the promise */
.wl .side { position: relative; overflow: hidden; background: var(--navy-900); color: #fff; padding: 40px 38px 34px; display: flex; flex-direction: column; min-height: 560px; }
.wl .side::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(156,177,208,.12) 1.1px, transparent 1.5px); background-size: 22px 22px; }
.wl .side > * { position: relative; }
.wl .side .blogo { height: 34px; background: #fff; align-self: flex-start; }
.wl .eb { margin-top: 44px; display: flex; align-items: center; gap: 12px; font: 600 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-300); }
.wl .eb::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.wl .side h2 { margin-top: 16px; color: #fff; font: italic 800 42px/1.08 'Saira', var(--font-sans); letter-spacing: -.01em; }
.wl .side h2 em { font-style: italic; color: var(--orange-400); }
.wl .side p { margin: 14px 0 0; color: var(--navy-200); font-size: 15.5px; line-height: 1.55; }
.wl .gets { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.wl .gets li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: #dfe7f3; }
.wl .gets i { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(242,154,46,.14); color: var(--orange-300); }
.wl .gets i svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wl .side .wl-line { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 150px; overflow: visible; }
.wl .side .wl-line path { fill: none; stroke: var(--orange-400); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; }
.wl .side .wl-line circle { fill: var(--orange-400); opacity: 0; filter: drop-shadow(0 0 8px rgba(242,154,46,.8)); }
.wl[open] .side .wl-line path { animation: wl-draw 1.6s var(--ease-out) forwards .45s; }
.wl[open] .side .wl-line circle { animation: wl-fade .3s forwards 1.8s; }

/* right: the form */
.wl .main { position: relative; padding: 46px 42px 34px; display: flex; flex-direction: column; overflow-y: auto; }
.wl .main > h3 { font: 700 22px/1.25 var(--font-sans); color: var(--ink-strong); letter-spacing: -.015em; padding-right: 40px; }
.wl .lede { margin: 8px 0 0; color: var(--text); font-size: 15px; line-height: 1.5; }
.wl .goal { margin: 16px 0 0; display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 9%, transparent); border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); }
.wl .goal small { font: 600 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.wl .goal q { font-size: 14.5px; line-height: 1.4; color: var(--ink-strong); }
.wl form { margin-top: 24px; display: grid; gap: 16px; }
.wl label.f { display: grid; gap: 7px; font: 600 13px/1 var(--font-sans); color: var(--ink-strong); }
.wl label.f small, .wl legend small { font-weight: 500; color: var(--muted); margin-left: 4px; }
.wl input[type=email], .wl input[type=text] { font: 400 16px/1 var(--font-sans); color: var(--ink-strong); height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); outline: none; transition: border-color .2s, box-shadow .2s; width: 100%; }
.wl input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(242,154,46,.18); }
.wl input::placeholder { color: var(--neutral-400); }
.wl [aria-invalid="true"] { border-color: var(--status-weak) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--status-weak) 18%, transparent) !important; }
.wl .err { font: 500 12.5px/1.3 var(--font-sans); color: var(--status-weak); }
.wl fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.wl legend { padding: 0; margin-bottom: 9px; font: 600 13px/1 var(--font-sans); color: var(--ink-strong); }
.wl .types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wl .types label { position: relative; cursor: pointer; }
.wl .types input { position: absolute; opacity: 0; }
.wl .types span { display: grid; gap: 4px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line-strong); font: 600 14px/1.1 var(--font-sans); color: var(--ink-strong); transition: border-color .2s, background-color .2s; }
.wl .types span small { font: 500 11.5px/1.3 var(--font-sans); color: var(--muted); }
.wl .types input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); box-shadow: inset 0 0 0 1px var(--accent); }
.wl .types input:focus-visible + span { box-shadow: 0 0 0 4px rgba(242,154,46,.25); }
.wl .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--text); cursor: pointer; border-radius: 8px; }
.wl .consent input { margin: 2px 0 0; width: 18px; height: 18px; accent-color: var(--orange-500); flex: none; }
.wl .consent[aria-invalid="true"] { box-shadow: none !important; color: var(--status-weak); }
.wl .consent a { color: var(--ink); }
.wl .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl .send { justify-content: center; width: 100%; min-height: 52px; font-size: 16px; margin-top: 4px; }
.wl .send[disabled] { opacity: .7; cursor: progress; }
.wl .fine { margin: 2px 0 0; text-align: center; font: 500 11.5px/1.4 var(--font-mono); color: var(--muted); letter-spacing: .02em; }

/* done */
.wl .done { display: none; flex: 1; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px 0 20px; }
.wl[data-state="done"] form, .wl[data-state="done"] .main > h3, .wl[data-state="done"] .main > .lede, .wl[data-state="done"] .goal { display: none !important; }
.wl[data-state="done"] .done { display: flex; }
.wl .done svg { width: 112px; height: 112px; overflow: visible; }
.wl .done svg circle { fill: none; stroke: var(--line-strong); stroke-width: 3; }
.wl .done svg path { fill: none; stroke: var(--orange-400); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 120; stroke-dashoffset: 120; }
.wl[data-state="done"] .done svg path { animation: wl-draw .8s var(--ease-out) forwards .2s; }
.wl .done h3 { margin-top: 22px; font: italic 800 34px/1.1 'Saira', var(--font-sans); color: var(--ink-strong); letter-spacing: -.01em; }
.wl .done p { margin: 10px 0 0; max-width: 34ch; color: var(--text); font-size: 15.5px; line-height: 1.55; }
.wl .done p b { color: var(--ink-strong); overflow-wrap: anywhere; }
.wl .done .btn { margin-top: 26px; }
.wl .done .other { margin-top: 14px; background: none; border: 0; font: 500 13px/1 var(--font-sans); color: var(--muted); text-decoration: underline; cursor: pointer; }

@keyframes wl-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes wl-pop { from { opacity: 0; transform: translateY(16px) scale(.97) } to { opacity: 1; transform: none } }
@keyframes wl-out { to { opacity: 0; transform: translateY(10px) scale(.98) } }
@keyframes wl-up { from { transform: translateY(100%) } to { transform: none } }
@keyframes wl-down { to { transform: translateY(100%) } }
@keyframes wl-draw { to { stroke-dashoffset: 0 } }

/* phone: bottom sheet, the promise shrinks to a header */
@media (max-width: 720px) {
  dialog.wl { width: 100%; max-height: 94svh; margin: auto 0 0; border-radius: 22px 22px 0 0; overflow-y: auto; overscroll-behavior: contain; }
  dialog.wl[open] { grid-template-columns: 1fr; animation: wl-up .5s var(--ease-out) both; }
  dialog.wl.closing { animation: wl-down .3s ease-in both; }
  .wl .side { min-height: 0; padding: 22px 22px 26px; }
  .wl .side .blogo { height: 26px; }
  .wl .eb { margin-top: 18px; font-size: 11px; }
  .wl .side h2 { font-size: 30px; margin-top: 10px; padding-right: 30px; }
  .wl .side p, .wl .gets { display: none; }
  .wl .side .wl-line { height: 70px; }
  .wl .x { background: rgba(255,255,255,.12); color: #fff; }
  .wl .main { padding: 22px 22px calc(22px + env(safe-area-inset-bottom)); overflow: visible; }
  .wl .main > h3 { display: none; } .wl .lede { margin: 0; }
  .wl form { margin-top: 18px; gap: 14px; }
  .wl .types span { padding: 10px; } .wl .types span small { display: none; }
}
