/* ============================================================
   Countdown — the pre-launch home page
   Builds on .hero for the background, grid texture and glows.
   ============================================================ */

.countdown.hero {
  display: grid;
  place-items: center;
}

.countdown-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100% - var(--gutter) * 2, 860px);
  margin-inline: auto;
  padding: clamp(40px, 8vh, 80px) 0;
  text-align: center;
}

.countdown-logo {
  width: clamp(104px, 22vw, 150px);
  height: auto;
  margin-bottom: clamp(28px, 6vh, 52px);
}

.countdown-eyebrow {
  justify-content: center;
}

.countdown h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1;
}

.countdown-lede {
  max-width: 540px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 1.08rem;
  line-height: 1.7;
  /* Even out the line lengths so no word is left hanging on its own. */
  text-wrap: balance;
}

.countdown-lede time {
  color: #fff;
  font-weight: 700;
}

/* The date gets its own line, and the day never separates from the date. */
.countdown-lede-date {
  display: block;
}

.countdown-nowrap {
  white-space: nowrap;
}

/* ── The clock ────────────────────────────────────────────── */
.countdown-clock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 18px);
  width: 100%;
  max-width: 680px;
  margin-top: clamp(32px, 6vh, 52px);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: clamp(16px, 3vw, 26px) 6px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: clamp(14px, 2.5vw, 22px);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .3);
  backdrop-filter: blur(10px);
}

.countdown-value {
  font: 800 clamp(2rem, 7vw, 4.2rem) / 1 "Manrope", sans-serif;
  letter-spacing: -.04em;
  /* Fixed-width digits, so the tiles do not twitch every second. */
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.countdown-label {
  color: #e8b66e;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.countdown-clock.is-done .countdown-value {
  color: #f3b42e;
}

.countdown-done {
  margin: 18px 0 0;
  color: #f3bf50;
  font-weight: 800;
}

/* ── Actions ──────────────────────────────────────────────── */
.countdown-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(32px, 6vh, 48px);
}

.countdown-yt {
  min-height: 48px;
  padding: 12px 20px;
  font-size: .86rem;
}

.countdown-yt svg {
  width: 20px;
}

.countdown-contact {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}

.countdown-contact i {
  color: #e8b66e;
}

.countdown-contact:hover {
  border-color: rgba(232, 165, 32, .5);
  background: rgba(232, 165, 32, .12);
  transform: translateY(-2px);
}

.countdown-legal {
  margin: clamp(36px, 7vh, 60px) 0 0;
  color: rgba(255, 255, 255, .58);
  font-size: .75rem;
}

.countdown-legal button {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .82);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.countdown-legal button:hover {
  color: #fff;
}

/* ── Small screens ────────────────────────────────────────── */
@media (max-width: 480px) {
  .countdown-label {
    font-size: .62rem;
    letter-spacing: .06em;
  }
  .countdown-actions {
    flex-direction: column;
    align-self: stretch;
  }
  .countdown-yt,
  .countdown-contact {
    justify-content: center;
    width: 100%;
  }
}

/* The shared rule that shrinks the header's YouTube button to an icon on
   tiny screens should not reach this one, which is a main action. */
@media (max-width: 360px) {
  .countdown-yt span { display: inline; }
  .countdown-yt { padding: 12px 20px; }
}
