/* Enterprise "Join the waitlist" dialog (site-src/partials/components/waitlist.html, public/site/waitlist.js).
   Uses the site's own tokens from site.css. Loaded only by the Enterprise page, and only when the site was built
   with NEXT_PUBLIC_ONVOICE_API (scripts/waitlist-config.mjs). */
.wl{--error:#a3392b;--error-wash:rgba(163,57,43,.08);
  width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:0;border:0;border-radius:24px;
  background:var(--surface);color:var(--text);font-family:var(--font-body);
  box-shadow:0 44px 96px -32px rgba(23,50,34,.6),0 0 0 1px var(--line);overflow:auto;overscroll-behavior:contain}
.wl:not([open]){display:none}
/* ::backdrop does not inherit custom properties everywhere, so this one colour is written out (--ink at 62%). */
.wl::backdrop{background:rgba(23,50,34,.62)}
.wl::before{content:"";display:block;height:1px;background:var(--hairline-gold)}
html:has(.wl[open]){overflow:hidden}
.wl [hidden]{display:none!important}
.wl__in{position:relative;padding:clamp(24px,6vw,38px)}
.wl__x{position:absolute;top:12px;right:12px;width:44px;height:44px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;color:var(--text-faint);cursor:pointer;transition:background .2s,color .2s}
.wl__x:hover{background:var(--surface-2);color:var(--text)}
.wl .eyebrow{margin:0 44px 12px 0}
.wl__title{margin:0;font-family:var(--font-display);font-weight:400;font-size:clamp(32px,8vw,42px);line-height:1.04;letter-spacing:-.012em;text-wrap:balance}
.wl__title em{font-style:italic;color:var(--peacock)}
.wl__title:focus{outline:0}
.wl__sub{margin:12px 0 0;font-size:16px;line-height:1.5;color:var(--text-soft);text-wrap:pretty}
.wl__field{display:grid;gap:8px;margin-top:20px}
.wl__form>.wl__sub+.wl__field{margin-top:26px}
.wl__field label{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;font-size:15px;font-weight:600;color:var(--text)}
.wl__opt{font-family:var(--font-mono);font-size:13px;font-weight:400;color:var(--text-faint)}
.wl__input{display:block;width:100%;min-height:50px;margin:0;padding:12px 16px;border:0;border-radius:14px;background:var(--bg);color:var(--text);font:inherit;font-size:17px;line-height:1.45;box-shadow:inset 0 0 0 1.5px var(--line-strong);transition:box-shadow .2s,background .2s;-webkit-appearance:none;appearance:none}
textarea.wl__input{min-height:116px;resize:vertical}
.wl__input:hover{box-shadow:inset 0 0 0 1.5px var(--jade)}
.wl__input:focus-visible{outline:3px solid var(--jade-ink);outline-offset:2px;border-radius:14px;box-shadow:inset 0 0 0 1.5px var(--jade-ink);background:var(--surface)}
.wl__input[aria-invalid="true"]{box-shadow:inset 0 0 0 2px var(--error)}
.wl__err{font-size:14px;line-height:1.4;color:var(--error)}
.wl__err:empty{display:none}
.wl__count{font-family:var(--font-mono);font-size:13px;color:var(--text-faint);text-align:right}
.wl__count.is-over{color:var(--error)}
.wl__hp{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.wl__fail{margin-top:20px;padding:12px 16px;border-radius:14px;background:var(--error-wash);color:var(--error);font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.wl__fail a{font-weight:600;color:inherit}
.wl__send{width:100%;margin-top:26px}
.wl__fail:not([hidden])+.wl__send{margin-top:16px}
.wl__send[disabled]{cursor:default;opacity:.82;transform:none;box-shadow:none}
.wl__spin{display:none;width:16px;height:16px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:wl-spin .8s linear infinite}
.wl__send[aria-busy="true"] .wl__spin{display:block}
.wl__note{margin:14px 0 0;font-size:14px;line-height:1.5;color:var(--text-faint);text-align:center}
.wl__done{text-align:center;padding:14px 0 4px}
.wl__tick{margin:0 auto 20px;color:var(--jade-ink)}
.wl__tick circle{stroke-dasharray:132;stroke-dashoffset:132;animation:wl-draw .5s var(--ease-out) .05s forwards}
.wl__tick path{stroke-dasharray:28;stroke-dashoffset:28;animation:wl-draw .3s var(--ease-out) .4s forwards}
.wl__close{margin-top:26px;min-width:140px}
.wl[open]{animation:wl-in .26s var(--ease-out)}
.wl[open]::backdrop{animation:wl-fade .26s ease-out}
@keyframes wl-in{from{opacity:0;transform:translateY(14px) scale(.985)}}
@keyframes wl-fade{from{opacity:0}}
@keyframes wl-spin{to{transform:rotate(360deg)}}
@keyframes wl-draw{to{stroke-dashoffset:0}}
@media (max-width:480px){.wl{border-radius:20px}.wl__field{margin-top:18px}}
@media (prefers-reduced-motion:reduce){
  .wl[open],.wl[open]::backdrop,.wl__spin{animation:none}
  .wl__tick circle,.wl__tick path{animation:none;stroke-dashoffset:0}
  .wl__input,.wl__x{transition:none}
}
