/* Homepage only: waiting list, centred layout */

body {
  background: #000;
  padding: 24px 20px 32px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.home-main {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Match visitor page logo position and size */
.logo-wrap {
  margin-bottom: 24px;
  flex-shrink: 0;
}

.logo-wrap img {
  max-width: 180px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Centred in the remaining space below the logo */
.waitlist-section {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.waitlist-title {
  font-family: 'Public Pixel', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.3;
}

.waitlist-subtext {
  font-size: 0.95rem;
  color: #999;
  margin: 0 0 28px;
  line-height: 1.5;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.waitlist-input {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 14px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #fff;
  background: #1a1a1a;
  border: 1px solid rgba(147, 112, 219, 0.25);
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: 0 0 20px rgba(147, 112, 219, 0.2), 0 0 40px rgba(147, 112, 219, 0.08);
}

.waitlist-input::placeholder {
  color: #666;
}

.waitlist-input:focus {
  outline: none;
  border-color: rgba(147, 112, 219, 0.45);
  box-shadow: 0 0 24px rgba(147, 112, 219, 0.3), 0 0 48px rgba(147, 112, 219, 0.12);
}

.waitlist-submit {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 14px 24px;
  font-family: 'Public Pixel', sans-serif;
  font-size: 1rem;
  color: #000;
  background: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

.waitlist-submit:hover {
  background: #e8e8e8;
}

.waitlist-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Success state: hide form, show green tick */
.waitlist-section.success .waitlist-form {
  display: none;
}

.waitlist-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.waitlist-section.success .waitlist-success {
  display: flex;
}

.success-tick {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  color: #0a0a0a;
  background: #22c55e;
  border-radius: 50%;
  line-height: 1;
}

.success-message {
  font-family: 'Public Pixel', sans-serif;
  font-size: 0.75rem;
  color: #fff;
  margin: 0;
}

@media (min-width: 600px) {
  .logo-wrap img {
    max-width: 220px;
  }

  .waitlist-title {
    font-size: 1.5rem;
  }

  .waitlist-input,
  .waitlist-submit {
    max-width: 360px;
  }
}
