@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/nunito-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --background-green: #173f2a;
  --background-deep-green: #0b2118;
  --brand-500: #2bcd5b;
  --brand-700: #1b7e38;
  --neutral-100: #f0f0f0;
  --neutral-200: #e5e5e5;
  --neutral-400: #a3a3a3;
  --black: #121212;
  --white: #fff;
  --control-radius: 100px;
  --control-height: 52px;
  --button-base: 4px;
  --text: var(--white);
  --muted: #bbd1c3;
  color: var(--text);
  color-scheme: dark;
  font-family: "Nunito Sans", system-ui, sans-serif;
  background: var(--background-deep-green);
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 280px;
  min-height: 100%;
}

.landing {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(40px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  background: linear-gradient(135deg, var(--background-green), var(--background-deep-green) 78%);
}

.landing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 680px;
  gap: 36px;
}

.brand-heading {
  margin: 0;
}

.brand-logo {
  display: block;
  width: min(72vw, 560px);
  max-width: 100%;
  height: auto;
}

.waitlist {
  width: 100%;
  max-width: 460px;
  text-align: center;
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 13px;
  border: 1px solid #89b49a66;
  border-radius: 999px;
  background: #b3e8c40a;
  color: #d8eddf;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: .03em;
}

.waitlist h2 {
  margin: 16px 0 25px;
  color: #ecf4ee;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.45;
  text-wrap: balance;
}

#waitlist-form {
  text-align: left;
}

#waitlist-form > label {
  display: block;
  margin-bottom: 8px;
  color: #e1eee6;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.form-controls {
  display: flex;
  gap: 10px;
}

.form-controls input,
.form-controls button {
  border-radius: var(--control-radius);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}

.form-controls input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: var(--control-height);
  min-height: var(--control-height);
  border: 1px solid var(--neutral-200);
  padding: 13px 20px;
  outline: none;
  background: var(--neutral-100);
  color: var(--black);
}

.form-controls input::placeholder {
  color: #666;
  opacity: 1;
}

.form-controls input[aria-invalid="true"] {
  border-color: #b84235;
}

.form-controls button {
  flex-shrink: 0;
  align-self: flex-start;
  min-width: 120px;
  height: calc(var(--control-height) - var(--button-base));
  margin-bottom: var(--button-base);
  border: 0;
  padding: 0 20px;
  background: var(--brand-500);
  box-shadow: 0 var(--button-base) 0 var(--brand-700);
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  line-height: 20px;
  cursor: pointer;
  transition: transform 100ms ease, box-shadow 100ms ease;
}

.form-controls button:active:not(:disabled) {
  transform: translateY(var(--button-base));
  box-shadow: none;
}

.form-controls button:disabled {
  height: var(--control-height);
  margin-bottom: 0;
  background: var(--neutral-100);
  box-shadow: none;
  color: var(--neutral-400);
  cursor: wait;
}

.form-controls input:focus-visible,
.form-controls button:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 4px;
}

.form-hint {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.form-message {
  margin: 12px 0 0;
  color: #ffcdc5;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  text-wrap: balance;
}

.form-message:empty {
  display: none;
}

.form-message[data-state="success"] {
  margin-top: 0;
  color: #e0f58b;
  font-size: 17px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 480px) {
  .landing-content {
    gap: 30px;
  }

  .waitlist h2 {
    font-size: 18px;
    margin-bottom: 23px;
  }

  .form-controls {
    flex-direction: column;
  }

  .form-controls button {
    width: 100%;
  }
}

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