/* ==========================================================================
   Stellar Waitlist — Editorial Black & White
   ========================================================================== */

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  background-color: #fbfafb;
  color: #000;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.logo,
.headline,
.success-title,
.tier-reward {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  text-align: center;
  margin-bottom: 4rem;
}

.logo {
  height: 48px;
  width: auto;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.headline {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.subheadline {
  font-size: 1rem;
  color: #666;
  font-weight: 400;
}

.launch-date {
  font-size: 0.875rem;
  font-weight: 600;
  color: #000;
  margin-top: 1rem;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Signup Form
   ========================================================================== */

.signup {
  margin-bottom: 2rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#email-input {
  width: 100%;
  padding: 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  outline: none;
  transition: border-color 0.15s ease;
}

#email-input::placeholder {
  color: #999;
}

#email-input:focus {
  border-color: #666;
}

#submit-btn {
  width: 100%;
  padding: 1rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

#submit-btn:hover {
  background: #fff;
  color: #000;
}

#submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-error {
  font-size: 0.875rem;
  color: #000;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ==========================================================================
   Success State
   ========================================================================== */

.success {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem 0;
}

.success-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.success-position {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.success-message {
  font-size: 0.875rem;
  color: #666;
}

/* Email Reminder */
.email-reminder {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid #000;
  text-align: left;
}

.email-reminder-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.email-reminder-text {
  font-size: 0.875rem;
  color: #000;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.email-reminder-spam {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.5;
}

/* ==========================================================================
   Urgency Message
   ========================================================================== */

.urgency {
  text-align: center;
  margin-bottom: 3rem;
}

.urgency-text {
  font-size: 0.9375rem;
  color: #000;
  font-weight: 500;
  line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  text-align: center;
  padding-top: 3rem;
  margin-top: 3rem;
}

.footer p {
  font-size: 0.75rem;
  color: #999;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

[hidden] {
  display: none !important;
}

/* ==========================================================================
   Responsive — Larger Screens
   ========================================================================== */

@media (min-width: 480px) {
  .container {
    padding: 4rem 2rem;
  }

  .headline {
    font-size: 3rem;
  }

  .form {
    flex-direction: row;
  }

  #email-input {
    flex: 1;
  }

  #submit-btn {
    width: auto;
    padding: 1rem 1.5rem;
  }
}