:root {
  --teal-bg: #a7dcd6;
  --teal-bg-2: #d7f0ec;
  --cream: #f6f1dd;
  --paper: #fff8e8;
  --ink: #17232a;
  --muted: #65706c;
  --dark: #1f2423;
  --dark-2: #101715;
  --green: #1bae8d;
  --green-deep: #128872;
  --mint: #8ce0bb;
  --coral: #ef6a5b;
  --red: #c9473e;
  --amber: #f4b74a;
  --blue: #4b77d6;
  --line: #dad8c6;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  background: linear-gradient(145deg, var(--teal-bg-2) 0%, var(--teal-bg) 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: -80px;
  z-index: -2;
  background-image:
    linear-gradient(rgba(23, 35, 42, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 35, 42, 0.055) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.86;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  box-shadow: inset 0 0 160px rgba(255, 255, 255, 0.46);
  pointer-events: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

.page {
  width: min(1180px, calc(100% - 48px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 34px 0 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 24px;
  font-size: 23px;
  line-height: 1;
  font-weight: 900;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--mint);
  font-size: 22px;
  font-weight: 950;
  box-shadow: 0 16px 36px rgba(23, 35, 42, 0.16);
}

.brand-name {
  transform: translateY(-1px);
}

h1 {
  max-width: 940px;
  margin: 0 auto 34px;
  font-size: 68px;
  line-height: 0.94;
  font-weight: 950;
  text-align: center;
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 1.54fr) minmax(318px, 0.66fr);
  gap: 22px;
  align-items: start;
}

.video-shell,
.form-shell {
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 248, 232, 0.96);
  box-shadow: 0 24px 60px rgba(23, 35, 42, 0.2);
}

.video-shell {
  overflow: hidden;
}

.explainer {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  background: var(--dark);
}

.form-shell {
  min-height: 100%;
  padding: 22px;
  display: grid;
  align-content: center;
}

.waitlist-form {
  display: grid;
  gap: 15px;
}

.name-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field span {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 850;
  color: var(--ink);
}

input {
  width: 100%;
  height: 52px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 14px;
  font-size: 16px;
  font-weight: 650;
  outline: none;
}

input:hover {
  border-color: #c6c4b0;
}

input:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(27, 174, 141, 0.2);
}

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-slot {
  min-height: 0;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 800;
}

.form-message:empty {
  min-height: 0;
}

.submit-button {
  width: 100%;
  min-height: 54px;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  cursor: pointer;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 950;
  box-shadow: 0 18px 40px rgba(27, 174, 141, 0.34);
  transition:
    background-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.submit-button:hover {
  background: var(--green-deep);
  box-shadow: 0 16px 34px rgba(18, 136, 114, 0.32);
}

.submit-button:active {
  transform: translateY(1px);
}

.submit-button:focus-visible {
  outline: 3px solid rgba(23, 35, 42, 0.82);
  outline-offset: 3px;
}

.submit-button[disabled] {
  cursor: progress;
  opacity: 0.72;
}

.success-message {
  min-height: 296px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.success-mark {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--mint);
  font-size: 33px;
  line-height: 1;
  font-weight: 950;
  box-shadow: 0 16px 38px rgba(23, 35, 42, 0.18);
}

.success-message h2 {
  margin: 8px 0 0;
  font-size: 31px;
  line-height: 1;
  font-weight: 950;
}

.success-message p {
  max-width: 280px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.42;
  font-weight: 750;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .page {
    width: min(760px, calc(100% - 36px));
    justify-content: flex-start;
    padding: 28px 0 34px;
  }

  h1 {
    margin-bottom: 26px;
    font-size: 52px;
  }

  .content {
    grid-template-columns: 1fr;
  }

  .form-shell {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .page {
    width: min(100% - 28px, 480px);
    padding: 24px 0 28px;
  }

  .brand {
    margin-bottom: 18px;
  }

  h1 {
    margin-bottom: 22px;
    font-size: 36px;
  }

  .content {
    gap: 16px;
  }

  .video-shell,
  .form-shell {
    border-width: 3px;
  }

  .form-shell {
    padding: 17px;
  }

  .name-grid {
    grid-template-columns: 1fr;
  }

  .submit-button {
    min-height: 52px;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 30px;
  }

  .brand {
    font-size: 21px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }
}

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