/* Waitlist mode (static/waitlist.js): an email signup in place of every way into a new font. */
/* While the config loads, keep the photo button out of sight so it never flashes. */
html[data-waitlist=pending] #uploadButton{visibility:hidden}
html[data-waitlist=on] .hero-action-entry{width:100%;display:flex;justify-content:center}

.waitlist-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.waitlist-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}

.waitlist [hidden]{display:none!important}
.waitlist{width:min(100%,440px);margin-inline:auto;text-align:center}
.waitlist.is-joined{display:flex;align-items:flex-start;justify-content:center}
.waitlist-form{margin:0}
.waitlist-row{display:flex;gap:8px;align-items:stretch}
.waitlist input[type=email]{flex:1;min-width:0;height:52px;padding:0 22px;border:1px solid #e2e2e4;border-radius:100px;background:#fff;color:#171717;font:500 14px Inter,-apple-system,BlinkMacSystemFont,sans-serif;outline:none;transition:border-color .18s,box-shadow .18s}
.waitlist input[type=email]::placeholder{color:#9a9a9e;opacity:1}
.waitlist input[type=email]:hover{border-color:#d2d2d5}
.waitlist input[type=email]:focus{border-color:#19191b;box-shadow:0 0 0 3px rgb(25 25 27 / .08)}
.waitlist input[type=email][aria-invalid=true]{border-color:#c2362b}
.waitlist input[type=email][aria-invalid=true]:focus{box-shadow:0 0 0 3px rgb(194 54 43 / .12)}
.waitlist input[type=email]:disabled{background:#f4f4f5;color:#777}
.waitlist .waitlist-submit{flex:none;white-space:nowrap;font-weight:500}
.waitlist .waitlist-submit:disabled{cursor:progress;opacity:.75}
.waitlist .waitlist-submit:focus-visible{outline:2px solid #777;outline-offset:3px}
.waitlist-note{margin:14px 0 0;color:#777;font-size:12px;line-height:1.6}
.waitlist-note a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.waitlist-error{margin:10px 0 0;color:#c2362b;font-size:12px;line-height:1.5}

.waitlist-done{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;margin:0;padding:0 22px;border-radius:100px;background:#fff;box-shadow:0 0 0 1px #e9e9eb;color:#171717;font-size:14px;line-height:1.4;outline:none}
.waitlist-done:focus-visible{outline:2px solid #777;outline-offset:3px}
.waitlist-check{flex:none;width:20px;height:20px;border-radius:50%;background:#19191b;position:relative}
.waitlist-check::after{content:'';position:absolute;left:7px;top:4px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.waitlist-animate .waitlist-done{animation:waitlist-in .42s cubic-bezier(.22,1,.36,1) both}
.waitlist-animate .waitlist-check{animation:waitlist-pop .5s .12s cubic-bezier(.34,1.6,.45,1) both}
@keyframes waitlist-in{from{opacity:0;transform:translateY(6px) scale(.98)}}
@keyframes waitlist-pop{from{transform:scale(.4);opacity:0}}

/* Header: "Join waitlist" in every mode and view, a labelled pill at every width
   (mobile-hero.css would otherwise shrink it to a 44px icon button on phones). */
header #newButton{width:auto;padding-inline:22px;white-space:nowrap}
header #newButton .new-font-label{display:inline}

/* Closing signup, just before the FAQ. The scroll story version is styled in closing-story.css. */
/* The scroll story version sits on a rounded panel of plain cool light grey
   (#f5f5f7, flat, no glow), inset from the screen's edges like the globe's
   settled card before it (12px, radius 26px; 8px and 20px on phones). The
   section breaks out of the page column with negative margins and pads its
   content back into it, so the text and phones keep their places. 3 classes
   so it wins over closing-story.css, which loads after this file. */
.waitlist-closing.cs-closing.closing-story{--wl-gutter:12px;--wl-out:calc(50vw - 50% - var(--wl-gutter));--wl-out:calc(var(--fm-vw,100vw) / 2 - 50% - var(--wl-gutter));
 margin:clamp(40px,6vh,80px) calc(-1 * var(--wl-out)) 0;padding:clamp(40px,6vh,72px) var(--wl-out);border-radius:26px;
 background:#f5f5f7;box-shadow:none;overflow-clip-margin:0px}
.waitlist-closing.cs-closing.closing-story+.home-faq{margin-top:clamp(64px,9vh,112px)}
.waitlist-closing{margin:80px 0 0;padding:72px 24px 76px;border:0;border-radius:28px;background:#f7f7f8;text-align:center}
.waitlist-closing.closing-story{padding:0;border-radius:0;background:none}
.waitlist-closing:not(.closing-story) h2{margin:0 0 32px;font-size:clamp(36px,5.5vw,72px);font-weight:900;line-height:1.05;letter-spacing:-.045em}
.waitlist-closing+.home-faq{margin-top:24px}

.waitlist-dialog{width:440px}
.waitlist-dialog .dialog-top{margin-bottom:12px}
.waitlist-dialog .dialog-top h2{font-size:22px;letter-spacing:-.02em}
.waitlist-dialog-lede{margin:0 0 22px;color:#666;font-size:13px;line-height:1.6}
.waitlist-dialog .waitlist{width:100%;text-align:left}
.waitlist-dialog .waitlist-done{width:100%;justify-content:flex-start}

@media(max-width:480px){
 .waitlist-row{flex-direction:column}
 .waitlist input[type=email]{flex:none;width:100%}
 .waitlist .waitlist-submit{width:100%}
 .waitlist-done{border-radius:20px;padding:14px 18px;text-align:left}
}
@media(max-width:700px){
 header #newButton{padding-inline:16px;font-size:12px}
 /* 16px keeps iOS Safari from zooming the page when the field takes focus. */
 .waitlist input[type=email]{font-size:16px}
 .waitlist-closing{margin-top:48px}
 .waitlist-closing:not(.closing-story){padding:48px 16px;border-radius:24px}
 .waitlist-closing:not(.closing-story) h2{font-size:42px;margin-bottom:24px}
 .waitlist-closing+.home-faq{margin-top:16px}
}
@media(max-width:700px){
 .waitlist-closing.cs-closing.closing-story{--wl-gutter:8px;margin-top:64px;padding:56px calc(var(--wl-out) + 8px) 48px;border-radius:20px}
 .waitlist-closing.cs-closing.closing-story+.home-faq{margin-top:56px}
}
@media(prefers-reduced-motion:reduce){.waitlist-animate :is(.waitlist-done,.waitlist-check){animation:none}}
