/* Mobile-apps waitlist — styles shared by every page that has a download call to action (index, about, contact).
   Pairs with assets/waitlist.js, which sets <html data-mobile-cta="waitlist|stores"> and builds the modal.

   THE SWITCH: assets/waitlist.js's MOBILE_CTA constant.
     "waitlist" → every [data-mobile-store] (App Store / Google Play badges + links) is hidden and every
                  [data-waitlist-open] (the green "Get early access" button) shows;
     "stores"   → the reverse. Both sets of markup stay in the pages on purpose, so reverting is changing one word. */

html:not([data-mobile-cta="stores"]) [data-mobile-store] { display: none; }
html[data-mobile-cta="stores"] [data-waitlist-open],
html[data-mobile-cta="stores"] .waitlist-only { display: none; }

/* The button borrows the pages' own .store-badge box, so it matches the Chrome badge beside it. */
.store-badge.waitlist-cta {
    background: #34a853;
    border-color: #34a853;
    color: #fff;
    font-family: inherit;
    cursor: pointer;
    align-self: stretch;          /* same height as the Chrome badge in its row ... */
    min-height: 48.6px;           /* ... and when it wraps onto its own line (9+11+17.6+9 padding/text + 2 border) */
}

.store-badge.waitlist-cta:hover { background: #2d9348; border-color: #2d9348; }
.store-badge.waitlist-cta:focus-visible { outline: 3px solid rgba(52,168,83,.45); outline-offset: 2px; }
.store-badge.waitlist-cta .store-badge__txt b { font-size: 16px; white-space: normal; line-height: 1.2; }

/* A text link version (About page's "Platform apps" fact). */
a.waitlist-link { cursor: pointer; }

/* Modal */
.wl-dialog {
    border: 0;
    padding: 0;
    margin: auto;                 /* pages reset `* { margin: 0 }`, which would pin the modal to the top-left corner */
    border-radius: 20px;
    width: min(440px, calc(100vw - 32px));
    max-width: none;
    background: #fff;
    color: #111009;
    box-shadow: 0 30px 80px rgba(17,16,9,.35);
    font-family: 'ToastSans', system-ui, sans-serif;
}

.wl-dialog::backdrop { background: rgba(17,16,9,.55); }
.wl-body { padding: 30px 28px 24px; position: relative; text-align: start; }

.wl-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f5f5f5;
    color: #6b6560;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.wl-close:hover { background: #ebebeb; color: #111009; }

.wl-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 8px; padding-right: 30px; color: #111009; }
.wl-sub { font-size: 14.5px; color: #6b6560; line-height: 1.6; margin-bottom: 18px; }
.wl-label { display: block; font-size: 13.5px; font-weight: 600; margin: 14px 0 7px; color: #111009; }
.wl-label small { font-weight: 400; color: #b0a89f; margin-left: 4px; }

.wl-field {
    width: 100%;
    padding: 12px 14px;
    border-radius: 11px;
    border: 1.5px solid rgba(17,16,9,.14);
    background: #f5f5f5;
    font-family: inherit;
    font-size: 15px;
    color: #111009;
    outline: none;
    transition: border-color .18s, background .18s;
}

.wl-field:focus { border-color: #34a853; background: #fff; }

.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl-error { min-height: 18px; margin-top: 10px; font-size: 13px; color: #b91c1c; }

.wl-submit {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 14px;
    border: 0;
    border-radius: 100px;
    background: #34a853;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}

.wl-submit:hover:not(:disabled) { background: #2d9348; }
.wl-submit:disabled { opacity: .65; cursor: default; }

.wl-note { margin-top: 12px; font-size: 12px; color: #b0a89f; line-height: 1.5; text-align: center; }
.wl-thanks { text-align: center; padding: 10px 0 4px; }
.wl-check { width: 58px; height: 58px; border-radius: 50%; background: #f0f9f3; color: #34a853; display: grid; place-items: center; margin: 0 auto 16px; }
.wl-thanks .wl-title { padding-right: 0; }
