.ai-waitlist-page {
  --ai-white: #ffffff;
  --ai-green: #358c74;
  --ai-aqua: #48d9b0;
  --ai-dark: #1f6351;
  --ai-mint: #80ffdb;
  --ai-ink: #143f35;
  --ai-muted: #49655e;
  --ai-surface: #f4faf8;
  --ai-line: #dce9e4;
  margin: 0;
  overflow-x: hidden;
  background: var(--ai-surface);
  color: var(--ai-ink);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.ai-waitlist-page *,
.ai-waitlist-page *::before,
.ai-waitlist-page *::after {
  box-sizing: border-box;
}

.ai-waitlist-page h1,
.ai-waitlist-page h2,
.ai-waitlist-page p {
  margin-top: 0;
}

.ai-waitlist-page a:focus-visible,
.ai-waitlist-page button:focus-visible,
.ai-waitlist-page input:focus-visible {
  outline: 3px solid var(--ai-aqua);
  outline-offset: 3px;
}

.ai-waitlist-skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  background: var(--ai-dark);
  color: var(--ai-white);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

.ai-waitlist-skip-link:focus {
  color: var(--ai-white);
  transform: translateY(0);
}

.ai-waitlist-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 76px);
  padding: clamp(3.5rem, 8vw, 6.5rem) 1.5rem;
}

.ai-waitlist-card {
  width: min(100%, 540px);
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--ai-line);
  border-radius: 14px;
  background: var(--ai-white);
  text-align: center;
}

.ai-waitlist-card h1 {
  margin-bottom: 1rem;
  color: var(--ai-dark);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3.4rem, 9vw, 4.75rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.92;
  text-transform: uppercase;
}

.ai-waitlist-statement {
  margin: 0 auto 2.25rem;
  max-width: 26ch;
  color: var(--ai-muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.55;
}

.ai-waitlist-form {
  display: grid;
  gap: 0.9rem;
}

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

.ai-waitlist-form input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(31, 99, 81, 0.22);
  border-radius: 6px;
  background: var(--ai-white);
  color: var(--ai-ink);
  font: inherit;
  font-size: 1rem;
}

.ai-waitlist-form input[type="email"]::placeholder {
  color: #7a9089;
}

.ai-waitlist-form input[type="email"]:focus {
  border-color: var(--ai-green);
}

.ai-waitlist-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0.9rem 1.25rem;
  border: 0;
  border-radius: 4px;
  background: var(--ai-green);
  color: var(--ai-white);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.ai-waitlist-submit:hover {
  background: var(--ai-dark);
}

.ai-waitlist-note {
  margin: 1.35rem 0 0;
  color: var(--ai-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.ai-waitlist-page .modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(20, 63, 53, 0.55);
}

.ai-waitlist-page .modal-content {
  width: min(100%, 400px);
  padding: 2rem 1.75rem;
  border-radius: 12px;
  background: var(--ai-white);
  text-align: center;
}

.ai-waitlist-page .modal-content h2 {
  margin-bottom: 0.65rem;
  color: var(--ai-dark);
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ai-waitlist-page .modal-content p {
  margin-bottom: 1.35rem;
  color: var(--ai-muted);
}

.ai-waitlist-page .modal-content button {
  min-height: 46px;
  padding: 0.75rem 1.35rem;
  border: 0;
  border-radius: 4px;
  background: var(--ai-green);
  color: var(--ai-white);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.ai-waitlist-page .modal-content button:hover {
  background: var(--ai-dark);
}

@media (max-width: 700px) {
  .ai-waitlist-main {
    min-height: calc(100vh - 70px);
    padding: 3rem 1rem 4rem;
  }

  .ai-waitlist-card {
    padding: 2.25rem 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-waitlist-skip-link,
  .ai-waitlist-submit,
  .ai-waitlist-page .modal-content button {
    transition: none;
  }
}
