/* MindHeaven® — Product Waiting List
   Namespaced component for standalone product waitlist pages. */

:root {
  --mh-wl-bg: #f4f5f6;
  --mh-wl-surface: #fbfbf9;
  --mh-wl-text: #111318;
  --mh-wl-muted: #737881;
  --mh-wl-faint: #a0a5ad;
  --mh-wl-line: #dfe2e6;
  --mh-wl-line-strong: #c7cbd1;
  --mh-wl-accent: #665eff;
  --mh-wl-accent-hover: #5851e6;
  --mh-wl-success: #28754c;
  --mh-wl-error: #a74242;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--mh-wl-bg);
}

.mh-waitlist {
  box-sizing: border-box;
  min-height: 100vh;
  width: 100%;
  background: var(--mh-wl-bg);
  color: var(--mh-wl-text);
  padding: clamp(54px, 7vw, 94px) clamp(22px, 5.5vw, 80px);
  font-family: inherit;
}

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

.mh-waitlist__shell {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.mh-waitlist__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(70px, 9vw, 130px);
}

.mh-waitlist__brand {
  color: var(--mh-wl-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.mh-waitlist__brand sup {
  font-size: 7px;
  vertical-align: top;
  letter-spacing: 0;
}

.mh-waitlist__back {
  color: var(--mh-wl-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.mh-waitlist__back:hover {
  color: var(--mh-wl-text);
}

.mh-waitlist__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 25px;
  color: var(--mh-wl-accent);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.mh-waitlist__meta::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--mh-wl-accent);
}

.mh-waitlist__title {
  max-width: 980px;
  margin: 0;
  color: var(--mh-wl-text);
  font: inherit;
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.05em;
}

.mh-waitlist__product {
  color: var(--mh-wl-accent);
}

.mh-waitlist__intro {
  max-width: 700px;
  margin: 30px 0 48px;
  color: var(--mh-wl-muted);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.62;
}

.mh-waitlist__form {
  width: min(100%, 860px);
}

.mh-waitlist__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border-bottom: 1px solid var(--mh-wl-line-strong);
}

.mh-waitlist__input {
  width: 100%;
  min-height: 68px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--mh-wl-text);
  font: inherit;
  font-size: 18px;
  line-height: 1.3;
}

.mh-waitlist__input::placeholder {
  color: var(--mh-wl-faint);
}

.mh-waitlist__input:focus {
  box-shadow: inset 0 -2px 0 var(--mh-wl-accent);
}

.mh-waitlist__button {
  align-self: center;
  min-width: 198px;
  min-height: 52px;
  margin-left: 24px;
  padding: 0 25px;
  border: 0;
  border-radius: 2px;
  background: var(--mh-wl-accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background 180ms ease, transform 180ms ease;
}

.mh-waitlist__button:hover {
  background: var(--mh-wl-accent-hover);
}

.mh-waitlist__button:active {
  transform: translateY(1px);
}

.mh-waitlist__button:disabled {
  cursor: wait;
  opacity: .62;
}

.mh-waitlist__consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  max-width: 760px;
  margin-top: 21px;
  color: var(--mh-wl-muted);
  font-size: 11px;
  line-height: 1.6;
}

.mh-waitlist__consent input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: var(--mh-wl-accent);
}

.mh-waitlist__consent a {
  color: var(--mh-wl-text);
  text-decoration: underline;
  text-decoration-color: var(--mh-wl-line-strong);
  text-underline-offset: 3px;
}

.mh-waitlist__note {
  max-width: 690px;
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid var(--mh-wl-line);
  color: var(--mh-wl-faint);
  font-size: 11px;
  line-height: 1.7;
}

.mh-signup__turnstile {
  width: 100%;
  margin-top: 0;
  overflow: hidden;
}

.mh-signup__turnstile.is-interactive {
  margin-top: 18px;
}

.mh-signup__status {
  min-height: 22px;
  margin: 17px 0 0;
  color: var(--mh-wl-muted);
  font-size: 13px;
  line-height: 1.5;
}

.mh-signup__status[data-state="success"] {
  color: var(--mh-wl-success);
}

.mh-signup__status[data-state="error"] {
  color: var(--mh-wl-error);
}

.mh-signup__spinner {
  display: none;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border: 1px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: mh-wl-spin 700ms linear infinite;
}

.mh-waitlist__button[data-loading="true"] .mh-signup__spinner {
  display: inline-block;
}

.mh-signup__trap,
.mh-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes mh-wl-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  .mh-waitlist {
    padding-left: 22px;
    padding-right: 22px;
  }

  .mh-waitlist__top {
    margin-bottom: 72px;
  }

  .mh-waitlist__row {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .mh-waitlist__input {
    border-bottom: 1px solid var(--mh-wl-line-strong);
  }

  .mh-waitlist__button {
    width: 100%;
    margin: 16px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mh-waitlist__button {
    transition: none;
  }
}
