/* =======================================================================
   Phase 1 — pre-launch / countdown page
   Full-screen, wine background, gold detailing, centred and uncluttered.
   ======================================================================= */

body.prelaunch {
  min-height: 100vh;
  /* Deep wine gradient with a soft gold vignette, evoking the cover. */
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(194, 161, 91, 0.16), transparent 55%),
    radial-gradient(100% 80% at 50% 120%, rgba(0, 0, 0, 0.35), transparent 60%),
    linear-gradient(170deg, var(--wine) 0%, var(--wine-deep) 100%);
  color: var(--ivory);
  display: flex;
}

.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 7vh, 5rem) 0;
  min-height: 100vh;
}

.stage-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: clamp(1.6rem, 4vh, 2.6rem);
}

/* Masthead ---------------------------------------------------------- */
.gold { color: var(--gold-light); }
.eyebrow { color: rgba(244, 236, 219, 0.72); }

.masthead { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
.brand {
  color: var(--ivory);
  font-size: clamp(2.6rem, 9vw, 5.4rem);
  margin: 0;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}
.brand em { color: var(--gold-light); }
.brand-sub {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: clamp(0.72rem, 0.68rem + 0.25vw, 0.88rem);
  color: var(--gold-light);
  margin: 0.2rem auto 0;
  max-width: 34ch;
}

/* Teaser ------------------------------------------------------------ */
.teaser { display: flex; flex-direction: column; gap: 0.9rem; align-items: center; }
.lede {
  max-width: 46ch;
  color: rgba(244, 236, 219, 0.88);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  margin: 0 auto;
}

/* Countdown --------------------------------------------------------- */
.count {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: clamp(0.8rem, 4vw, 2.6rem);
  margin: 0; padding: 0;
}
.count li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: clamp(58px, 16vw, 96px);
}
.count .num {
  font-family: var(--font-display);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.4rem, 9vw, 4.6rem);
  line-height: 1;
  color: var(--ivory);
  position: relative;
  padding-bottom: 0.5rem;
}
.count li + li .num::before {
  /* gold colon separators between units */
  content: ":";
  position: absolute;
  left: clamp(-0.55rem, -2.2vw, -1.4rem);
  top: 0;
  color: var(--gold);
  opacity: 0.55;
}
.count .label {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.62rem;
  color: var(--gold-light);
}
.launched-msg {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-light);
}
.launched-msg a { color: var(--ivory); text-underline-offset: 4px; }

/* Sign-up ----------------------------------------------------------- */
.signup { display: flex; flex-direction: column; gap: 0.7rem; align-items: center; }
.signup-heading {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  color: var(--ivory);
  font-style: italic;
}
.signup-sub { max-width: 42ch; color: rgba(244, 236, 219, 0.85); margin: 0; }

.signup-form {
  display: flex;
  gap: 0.6rem;
  width: min(100%, 460px);
  margin-top: 0.6rem;
}
.signup-form input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.95rem 1.1rem;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
}
.signup-form input::placeholder { color: #8a7b6e; }
.signup-form input:focus-visible { outline-color: var(--gold-light); }
.signup-form input[aria-invalid="true"] { border-color: var(--gold-light); box-shadow: 0 0 0 2px rgba(220,196,135,0.4); }

.form-msg {
  min-height: 1.4em;
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  color: var(--gold-light);
}
.form-msg.error { color: #F2C9C2; }
.form-msg.success { color: var(--gold-light); }

.privacy-note { font-size: 0.78rem; color: rgba(244, 236, 219, 0.6); margin: 0; }
.privacy-note a, .signup a { color: var(--gold-light); text-underline-offset: 3px; }

/* When successfully signed up, collapse the form area gracefully */
.signup.is-done .signup-form,
.signup.is-done .signup-sub { display: none; }

/* Social ------------------------------------------------------------ */
.social { display: flex; flex-direction: column; gap: 1.1rem; align-items: center; }
.social-links {
  display: flex;
  gap: clamp(1.2rem, 5vw, 2.4rem);
  flex-wrap: wrap;
  justify-content: center;
}
.social-links a {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  text-decoration: none;
  color: rgba(244, 236, 219, 0.82);
  transition: color 0.2s ease;
}
.social-links a:hover { color: var(--gold-light); }
.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-light);
  margin: 0;
  letter-spacing: 0.04em;
}

/* Stack the form on narrow screens */
@media (max-width: 480px) {
  .signup-form { flex-direction: column; }
  .signup-form .btn { width: 100%; }
}

/* Tighten wide letter-spacing + countdown so nothing clips on small phones */
@media (max-width: 430px) {
  .eyebrow { letter-spacing: 0.2em; }
  .brand-sub { letter-spacing: 0.16em; }
  .count { gap: 0.45rem; }
  .count li { min-width: 0; flex: 1; }
  .count .num { font-size: clamp(1.9rem, 12vw, 2.6rem); }
  .count li + li .num::before { left: -0.4rem; }
  .count .label { letter-spacing: 0.16em; font-size: 0.58rem; }
}
