:root {
  --off-white: #f9f6f3;
  --green: #0b5a3d;
  --green-dark: #093f2b;
  --silver: #6e6e6e;
  --fern: #dadfd4;
  --error: #b3503f;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background:
    url("/fern-bg.webp") no-repeat bottom right / min(50vw, 700px) auto,
    var(--off-white);
  color: var(--silver);
  font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

@media (max-width: 640px) {
  body {
    background-size: 78vw auto;
  }
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  gap: 4px;
}

.logo-wrap {
  width: 140px;
  height: 140px;
  margin-bottom: 8px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(9, 63, 43, 0.08),
    0 12px 28px rgba(9, 63, 43, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logo-wrap:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow:
    0 2px 4px rgba(9, 63, 43, 0.1),
    0 20px 36px rgba(9, 63, 43, 0.22);
}

.logo {
  display: block;
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .logo-wrap {
    transition: none;
  }
  .logo-wrap:hover {
    transform: none;
  }
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

h1 {
  margin: 10px 0 0;
  max-width: 30ch;
  color: var(--green-dark);
  font-weight: 800;
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  line-height: 1.25;
}

.subhead {
  margin: 14px 0 0;
  max-width: 38ch;
  font-size: 0.95rem;
  line-height: 1.5;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.waitlist {
  margin-top: 26px;
  width: 100%;
  max-width: 380px;
}

.waitlist-field {
  display: flex;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}

.waitlist-field:focus-within {
  box-shadow: 0 0 0 3px rgba(11, 90, 61, 0.15);
}

.waitlist-field input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 12px 8px 12px 18px;
  font: inherit;
  font-size: 0.9rem;
  color: var(--green-dark);
}

.waitlist-field input::placeholder {
  color: var(--silver);
}

.waitlist-field input:focus {
  outline: none;
}

.waitlist-field button {
  border: none;
  background: var(--green);
  color: var(--off-white);
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0 22px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.waitlist-field button:hover:not(:disabled),
.waitlist-field button:focus-visible {
  background: var(--green-dark);
}

.waitlist-field button:disabled {
  opacity: 0.6;
  cursor: default;
}

.waitlist-status {
  margin: 10px 0 0;
  min-height: 1.2em;
  font-size: 0.85rem;
  color: var(--green);
}

.waitlist-status.is-error {
  color: var(--error);
}

@media (max-width: 420px) {
  .waitlist-field {
    flex-direction: column;
    border-radius: 20px;
  }

  .waitlist-field input {
    padding: 12px 16px;
    text-align: center;
  }

  .waitlist-field button {
    padding: 12px;
  }
}

.social {
  margin-top: 34px;
  display: flex;
  gap: 20px;
}

.social a {
  color: var(--silver);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.social a:hover,
.social a:focus-visible {
  color: var(--green);
  background-color: rgba(11, 90, 61, 0.08);
}

.social svg {
  width: 20px;
  height: 20px;
}

.email {
  margin-top: 22px;
  color: var(--silver);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.email:hover,
.email:focus-visible {
  color: var(--green);
  text-decoration: underline;
}

@media (max-width: 420px) {
  .logo-wrap {
    width: 110px;
    height: 110px;
    border-radius: 24px;
  }
}
