/* Waitlist button + panel (src/_includes/waitlist.njk, added 2026-09-28).
   The button sits beside the App Store .badge (home.css) at the same height, but outlined, so the
   App Store badge stays the primary action. Not Google's Play badge: the app is not on Google Play. */

.wl-btn { display: inline-flex; align-items: center; gap: 9px; box-sizing: border-box; min-height: 59px; align-self: stretch;
    border: 1.5px solid currentColor; border-radius: 14px; padding: 9px 18px 10px 14px; text-decoration: none;
    white-space: nowrap; font-family: var(--font-body); transition: transform .2s ease, background-color .2s ease; }
.wl-btn:hover { transform: translateY(-2px); }
.wl-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wl-btn svg { width: 24px; height: 24px; fill: currentColor; flex-shrink: 0; }
.wl-btn .t { display: flex; flex-direction: column; line-height: 1.1; }
.wl-btn .t small { font-size: 12px; font-weight: 500; }
.wl-btn .t b { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
/* align-self: stretch = exactly the App Store badge's height when they share a row */
/* on paper, next to the black .badge */
.wl-dark { color: var(--ink); background: transparent; }
.wl-dark:hover { background: rgba(28, 26, 25, .05); }
/* on the dark hero photo / CTA band, next to .badge.white */
.wl-white { color: #fff; border-color: rgba(255, 255, 255, .85); background: rgba(20, 14, 10, .28); }
.wl-white:hover { background: rgba(20, 14, 10, .42); }
.wl-white:focus-visible { outline-color: #fff; }
/* compact, for the dark sticky bar next to .sticky-pill */
.wl-pill { min-height: 0; align-self: center; gap: 6px; border-radius: 999px; padding: 9px 14px; color: #fff; border-color: rgba(255, 255, 255, .6);
    font-size: 15px; font-weight: 600; }
.wl-pill svg { width: 16px; height: 16px; }

/* Phones: both badges share one row down to 360px wide (320px of content). The App Store badge is
   only tightened when a waitlist button sits in the same .cta; nothing changes elsewhere.
   Below ~350px the Android button wraps to its own line, left-aligned, at the same height. */
@media (max-width: 420px) {
    .cta:has(.wl-btn:not(.wl-pill)) .badge { padding: 11px 12px 12px 11px; gap: 8px; }
    .cta .wl-btn:not(.wl-pill) { min-height: 61px; padding: 9px 9px 10px 8px; gap: 6px; }
    .cta .wl-btn .t b { font-size: 16px; }
    .cta .wl-btn svg { width: 20px; height: 20px; }
}

/* Panel */
.wl-panel { border: 0; padding: 0; border-radius: 20px; width: calc(100% - 32px); max-width: 440px; margin: auto;
    background: var(--paper, #fdfbf8); color: var(--ink, #1c1a19); box-shadow: 0 30px 80px rgba(20, 14, 10, .35); }
.wl-panel::backdrop { background: rgba(20, 14, 10, .55); }
/* no-JS fallback: the button is a #wl-panel link */
.wl-panel:target:not([open]) { display: block; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1000; }
.wl-inner { position: relative; padding: 30px 24px 22px; }
.wl-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    border-radius: 999px; color: var(--ink-2, #4b4643); text-decoration: none; font-size: 30px; line-height: 1; }
.wl-close:hover { background: rgba(28, 26, 25, .06); }
.wl-close:focus-visible, .wl-submit:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wl-copy h2 { font-family: var(--font-display); font-weight: 500; font-size: 30px; line-height: 1.15; margin: 0 36px 10px 0; }
.wl-copy p { font-size: 17px; line-height: 1.5; color: var(--ink-2, #4b4643); margin: 0 0 20px; }
.wl-panel[data-reason="android"] .wl-copy[data-for="country"],
.wl-panel[data-reason="country"] .wl-copy[data-for="android"] { display: none; }
.wl-form label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.wl-form input[type="email"] { display: block; width: 100%; box-sizing: border-box; min-height: 52px; font: inherit; font-size: 18px;
    padding: 12px 14px; border: 1.5px solid var(--line, #e7e0d6); border-radius: 12px; background: #fff; color: var(--ink); }
.wl-form input[type="email"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 58, 94, .18); }
.wl-submit { display: block; width: 100%; min-height: 52px; margin-top: 12px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--ink, #1c1a19); color: #fff; font: inherit; font-size: 17px; font-weight: 600; }
.wl-submit:disabled { opacity: .6; cursor: default; }
.wl-msg { min-height: 1.4em; margin: 10px 0 0; font-size: 15px; color: var(--accent); }
.wl-msg:empty { min-height: 0; margin: 0; }
.wl-privacy { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-3, #7a736d); }
.wl-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-success { display: none; font-size: 19px; line-height: 1.45; margin: 4px 0 6px; outline: none; }
.wl-panel.done .wl-form { display: none; }
.wl-panel.done .wl-success { display: block; }

/* no-JS result notices (?waitlist=ok#wl-ok / ?waitlist=error#wl-error from the Function) */
.wl-toast { display: none; }
.wl-toast:target { display: block; position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 1000;
    max-width: 440px; margin: 0 auto; padding: 16px 18px; border-radius: 14px; background: var(--ink, #1c1a19); color: #fff;
    font-size: 17px; line-height: 1.4; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.wl-toast a { color: #fff; margin-left: 8px; }

@media (prefers-reduced-motion: reduce) { .wl-btn { transition: none; } .wl-btn:hover { transform: none; } }
