/* Launch mode (/launch-mode.js). Before launch <html> carries .prelaunch: the homepage shows only the
   teaser (tagline, descriptor, countdown, Member sign-in), the header keeps the wordmark and the footer
   drops its links to the other pages. Without .prelaunch (after launch, ?preview=full, or no JS) the
   teaser is hidden and the full landing shows as before. */
.teaser { display: none; }
.prelaunch main > :not(.teaser),
.prelaunch header .nav-links,
.prelaunch header .bar > .btn,
.prelaunch footer nav a[href^="/"] { display: none; }

.prelaunch .teaser {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: calc(100svh - 72px - 120px); padding-block: clamp(48px, 10vh, 120px);
}
.teaser h1 { max-width: 12em; }
.teaser .lead { margin: 24px auto 0; max-width: 30em; text-wrap: balance; }

/* The countdown ticks every second, so it is hidden from screen readers (a static sentence says the date).
   Fixed-width cells and tabular figures: nothing moves as the digits change. */
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 2vw, 16px); width: min(100%, 560px); margin-top: clamp(36px, 6vh, 56px); }
.cd-unit {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: clamp(14px, 2.4vw, 22px) 4px;
  border-radius: 20px; border: 1px solid var(--line-strong); background: rgba(22, 24, 28, .7);
}
.cd-num {
  font-size: clamp(34px, 8vw, 64px); font-weight: 600; line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; min-width: 2ch; color: var(--bone);
}
.cd-label { font-size: 13px; color: var(--mist); }

.teaser .btn { margin-top: clamp(32px, 5vh, 48px); min-height: 44px; }

/* 44px tap targets for the footer links left on the teaser. */
.prelaunch footer nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* Member sign-in in the header, before launch only: on phones the waitlist form pushes the teaser's own
   button below the fold, and members must always be able to get in. */
header .pl-signin { display: none; }
.prelaunch header .bar > .btn.pl-signin { display: inline-flex; padding: 0 18px; min-height: 44px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
