@font-face {
  font-family: "Space Grotesk";
  src: url("/waitlist/space-grotesk-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/waitlist/space-grotesk-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #000000;
  --surface: #191015;
  --text: #f4f2f1;
  --text-dim: #b6aca6;
  --border: #3c3836;
  --accent: #e8c1b4;
  --accent-strong: #d28468;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, sans-serif;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
}

.content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(32px, 5.5vw, 84px);
}

.brand {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  border-radius: 8px;
}

.pitch {
  width: min(100%, 720px);
  margin: auto 0;
  padding: 64px 0;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

h1 {
  margin: 24px 0 28px;
  font-size: clamp(50px, 6vw, 92px);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.summary {
  max-width: 650px;
  margin: 0 0 30px;
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1.5;
}

.primary-fields {
  display: flex;
  max-width: 650px;
  gap: 10px;
}

.primary-fields input {
  min-width: 0;
  height: 58px;
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  padding: 0 18px;
}

.primary-fields input:focus {
  border-color: var(--accent);
}

.primary-fields button {
  height: 58px;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: var(--surface);
  cursor: pointer;
  font-weight: 700;
  padding: 0 24px;
}

.primary-fields button:disabled {
  cursor: wait;
  opacity: 0.65;
}

fieldset {
  display: flex;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
  gap: 22px;
}

legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

fieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
}

fieldset input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-strong);
}

.cf-turnstile {
  width: min(100%, 650px);
  margin-top: 16px;
}

.form-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--text-dim);
  font-size: 13px;
}

.form-status[data-error="true"] {
  color: var(--accent);
}

.existing-account,
.legal {
  color: var(--text-dim);
  font-size: 13px;
}

.existing-account {
  margin: 14px 0 0;
}

.existing-account a,
.legal a {
  color: var(--accent);
}

.legal {
  max-width: 560px;
  margin: 12px 0 0;
  line-height: 1.5;
}

.product {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #321c22 0, var(--surface) 55%, #10090d 100%);
}

.product-label {
  position: absolute;
  z-index: 1;
  top: 28px;
  right: 28px;
  margin: 0;
  color: #978f8a;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.phone {
  width: min(54%, 390px);
  height: min(78vh, 720px);
  overflow: hidden;
  border: 10px solid var(--text);
  border-radius: 48px;
  background: var(--background);
  box-shadow: 0 34px 80px #000000bb;
  transform: rotate(4deg);
}

.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 820px) {
  .page {
    display: block;
  }

  .content {
    min-height: auto;
    padding: 28px 22px 48px;
  }

  .brand {
    margin-bottom: 72px;
  }

  .pitch {
    margin: 0;
    padding: 0;
  }

  h1 {
    font-size: clamp(48px, 14vw, 68px);
  }

  .summary {
    font-size: 16px;
  }

  .primary-fields {
    flex-direction: column;
  }

  .primary-fields button {
    width: 100%;
  }

  fieldset {
    flex-wrap: wrap;
  }

  .product {
    height: 68vh;
    min-height: 560px;
  }

  .product-label {
    display: none;
  }

  .phone {
    width: min(68%, 330px);
    height: 520px;
    border-width: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
