:root {
  --forest: #123829;
  --moss: #2f6f4e;
  --leaf: #68a357;
  --mint: #e9f6df;
  --cream: #fffaf0;
  --text: #173328;
  --muted: #53695e;
  --white: #ffffff;
  --danger: #a9362c;
  --shadow: 0 24px 70px rgba(18, 56, 41, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(104, 163, 87, 0.3), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(47, 111, 78, 0.18), transparent 28rem),
    linear-gradient(135deg, var(--cream), var(--mint));
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(120deg, rgba(18, 56, 41, 0.05) 1px, transparent 1px),
    linear-gradient(30deg, rgba(18, 56, 41, 0.04) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
}

.page-shell {
  display: grid;
  min-height: 100vh;
  padding: 32px 18px;
  place-items: center;
}

.hero {
  width: min(100%, 720px);
  padding: clamp(32px, 6vw, 68px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(47, 111, 78, 0.16);
  border-radius: 32px;
  box-shadow: var(--shadow);
  position: relative;
}

.hero::after {
  position: absolute;
  right: -78px;
  bottom: -96px;
  width: 260px;
  height: 260px;
  content: "";
  background: radial-gradient(circle, rgba(104, 163, 87, 0.32), rgba(104, 163, 87, 0));
  border-radius: 999px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 22px;
  padding: 8px 14px;
  color: var(--moss);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(104, 163, 87, 0.14);
  border-radius: 999px;
}

h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--forest);
  font-size: clamp(2.6rem, 9vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.intro,
.email-note {
  max-width: 60ch;
  margin: 24px 0 0;
  font-family: Verdana, Geneva, sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.16rem);
  line-height: 1.7;
}

.intro {
  color: var(--text);
}

.email-note {
  color: var(--muted);
}

.waitlist-form {
  margin-top: 34px;
  position: relative;
  z-index: 1;
}

.audience-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0 0 22px;
  border: 0;
}

.audience-choice legend {
  grid-column: 1 / -1;
  padding: 0;
  margin-bottom: 10px;
  color: var(--forest);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.choice-card {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-height: 112px;
  padding: 18px;
  margin: 0;
  cursor: pointer;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(233, 246, 223, 0.54));
  border: 1px solid rgba(18, 56, 41, 0.16);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(18, 56, 41, 0.06);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.choice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(104, 163, 87, 0.58);
  box-shadow: 0 16px 30px rgba(18, 56, 41, 0.11);
}

.choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  opacity: 0;
  border: 0;
  pointer-events: none;
  appearance: none;
}

.choice-check {
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  color: transparent;
  font: 700 0.95rem Verdana, Geneva, sans-serif;
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid rgba(47, 111, 78, 0.32);
  border-radius: 8px;
  place-items: center;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.choice-content {
  display: block;
  min-width: 0;
}

.choice-card strong,
.choice-card small {
  display: block;
  font-family: Verdana, Geneva, sans-serif;
}

.choice-card strong {
  color: var(--forest);
  font-size: 1.05rem;
}

.choice-card small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.45;
}

.choice-card.is-selected,
.choice-card:has(input:checked) {
  background:
    radial-gradient(circle at top right, rgba(104, 163, 87, 0.24), transparent 7rem),
    linear-gradient(145deg, rgba(233, 246, 223, 0.98), rgba(255, 255, 255, 0.82));
  border-color: var(--leaf);
  box-shadow: 0 0 0 4px rgba(104, 163, 87, 0.14);
}

.choice-card.is-selected .choice-check,
.choice-card input:checked + .choice-check {
  color: var(--white);
  background: var(--moss);
  border-color: var(--moss);
}

.choice-card.is-selected .choice-check::before,
.choice-card input:checked + .choice-check::before {
  content: "\2713";
}

.choice-card:focus-within {
  outline: 3px solid rgba(104, 163, 87, 0.34);
  outline-offset: 3px;
}

label {
  display: block;
  margin-bottom: 10px;
  color: var(--forest);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

input,
button {
  min-height: 56px;
  border-radius: 16px;
  font: 700 1rem Verdana, Geneva, sans-serif;
}

input {
  width: 100%;
  padding: 0 18px;
  color: var(--forest);
  background: var(--white);
  border: 1px solid rgba(18, 56, 41, 0.2);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

input:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 4px rgba(104, 163, 87, 0.18);
}

#email.is-typing {
  animation: emailTypingPulse 520ms ease;
  border-color: var(--leaf);
}

button {
  position: relative;
  overflow: hidden;
  padding: 0 22px;
  color: var(--white);
  cursor: pointer;
  background: linear-gradient(135deg, var(--moss), var(--forest));
  border: 0;
  box-shadow: 0 12px 26px rgba(18, 56, 41, 0.24);
  transition: box-shadow 160ms ease, filter 160ms ease, transform 160ms ease;
}

button::after {
  position: absolute;
  inset: 50%;
  width: 16px;
  height: 16px;
  content: "";
  background: rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
}

button:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 7px 16px rgba(18, 56, 41, 0.22);
}

button.is-pressed {
  animation: buttonPress 360ms ease;
}

button.is-pressed::after {
  animation: buttonRipple 460ms ease-out;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

@keyframes emailTypingPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(104, 163, 87, 0);
  }

  45% {
    transform: scale(1.012);
    box-shadow: 0 0 0 5px rgba(104, 163, 87, 0.18);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(104, 163, 87, 0.12);
  }
}

@keyframes buttonPress {
  0% {
    filter: brightness(1);
    transform: translateY(0) scale(1);
  }

  45% {
    filter: brightness(1.08);
    transform: translateY(1px) scale(0.985);
  }

  100% {
    filter: brightness(1);
    transform: translateY(0) scale(1);
  }
}

@keyframes buttonRipple {
  0% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

.form-message {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: var(--moss);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.form-message.error {
  color: var(--danger);
}

.form-reassurance {
  margin: 12px 0 0;
  color: var(--muted);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 620px) {
  .page-shell {
    align-items: start;
    padding-top: 18px;
  }

  .hero {
    border-radius: 24px;
  }

  h1 {
    max-width: 10ch;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .audience-choice {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }
}
