/* Shared pieces: "Get the app" dialog + reveal helper. The page themes them through these variables:
   --wl-bg --wl-fg --wl-muted --wl-line --wl-accent --wl-accent-fg --wl-radius --wl-display --wl-body */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* "Get the app" buttons only show once a Google Form link is set in index.html */
html:not(.has-waitlist) [data-waitlist],
html:not(.has-waitlist) [data-waitlist-note] { display: none !important; }

.wl {
  width: min(92vw, 440px); max-height: 92dvh; padding: 0; border: 1px solid var(--wl-line, rgba(255, 255, 255, 0.12));
  border-radius: var(--wl-radius, 20px); background: var(--wl-bg, #141218); color: var(--wl-fg, #fff);
  font-family: var(--wl-body, Inter, system-ui, sans-serif); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  overflow: auto;
}
.wl::backdrop { background: rgba(5, 5, 8, 0.66); backdrop-filter: blur(3px); }
.wl[open] { animation: wl-in 0.32s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes wl-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.wl-step { padding: 34px 30px 28px; }
.wl-x {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--wl-muted, rgba(255, 255, 255, 0.6)); cursor: pointer;
}
.wl-x:hover { background: rgba(127, 127, 127, 0.15); color: var(--wl-fg, #fff); }
.wl-x svg { width: 20px; height: 20px; }
.wl-kicker { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wl-muted, rgba(255, 255, 255, 0.6)); }
.wl-title { margin: 0 0 10px; font-family: var(--wl-display, inherit); font-size: 30px; line-height: 1.1; font-weight: 700; outline: none; }
.wl-text { margin: 0 0 22px; font-size: 16px; line-height: 1.55; color: var(--wl-muted, rgba(255, 255, 255, 0.72)); }
.wl-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 22px; border: 0;
  border-radius: 12px; background: var(--wl-accent, #fc8a02); color: var(--wl-accent-fg, #111); font: inherit;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform 0.15s, filter 0.2s;
}
.wl-submit svg { width: 18px; height: 18px; }
.wl-submit:hover { filter: brightness(1.06); }
.wl-submit:active { transform: scale(0.98); }
.wl-note { margin: 10px 0 0; font-size: 13.5px; text-align: center; color: var(--wl-muted, rgba(255, 255, 255, 0.6)); }
.wl-alt { margin: 18px 0 0; font-size: 14px; color: var(--wl-muted, rgba(255, 255, 255, 0.6)); }
.wl-alt a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.wl-alt a:hover { color: var(--wl-fg, #fff); }
