:root {
  color-scheme: dark;
  --bg: #050505;
  --fg: #f5f4f0;
  --dim: #8c8983;
  --line: rgba(245, 244, 240, .22);
  --orange: #f28a3a;
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
::selection { background: var(--orange); color: var(--bg); }

.waitlist-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 48px 24px;
  text-align: center;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: reveal .8s cubic-bezier(.22, 1, .36, 1) both;
}

.brand-mark {
  width: clamp(54px, 5vw, 72px);
  height: clamp(54px, 5vw, 72px);
  object-fit: contain;
}

.brand-wordmark {
  margin: 28px 0 0;
  font: 500 clamp(23px, 2.2vw, 31px)/1 var(--mono);
  letter-spacing: .29em;
  text-indent: .29em;
  text-transform: uppercase;
}

.brand-subtext {
  max-width: 440px;
  margin: 22px 0 0;
  color: var(--dim);
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 300;
  letter-spacing: -.01em;
  line-height: 1.5;
}

.signup-state,
.success-state {
  width: min(100%, 430px);
  margin-top: 44px;
  animation: reveal .8s .14s cubic-bezier(.22, 1, .36, 1) both;
}

.form-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-bottom: 1px solid var(--line);
  transition: border-color 160ms ease;
}
.form-line:focus-within { border-color: var(--fg); }

.form-line input {
  min-width: 0;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--fg);
  font-size: 14px;
}
.form-line input::placeholder { color: #66635f; }

.form-line button {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 0 0 0 22px;
  border: 0;
  background: transparent;
  color: var(--fg);
  font: 500 10px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color 150ms ease;
}
.form-line button:hover,
.form-line button:focus-visible { color: var(--orange); outline: 0; }
.form-line button:disabled { cursor: wait; opacity: .45; }
.form-line button i { font-size: 18px; font-style: normal; font-weight: 300; }

.form-error {
  margin: 12px 0 0;
  color: #ef9c79;
  font: 400 9px/1.5 var(--mono);
  letter-spacing: .04em;
  text-align: left;
}

.success-state { outline: 0; }
.success-state p { margin: 0; color: var(--fg); font-size: 14px; }
.success-state > span { display: block; margin-top: 8px; color: var(--dim); font-size: 13px; font-weight: 300; }
.success-state button {
  margin-top: 14px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--dim);
  font: 500 8px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.success-state button:hover,
.success-state button:focus-visible { border-color: var(--orange); color: var(--fg); outline: 0; }

.sr-only,
.honeypot {
  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 reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .waitlist-page { padding-inline: 22px; }
  .brand-wordmark { margin-top: 24px; }
  .brand-subtext { max-width: 320px; margin-top: 18px; }
  .signup-state, .success-state { margin-top: 38px; }
  .form-line { grid-template-columns: 1fr; }
  .form-line button { justify-content: space-between; height: 46px; padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-lockup, .signup-state, .success-state { animation: none; }
}
