:root {
  --green: #2D6E4E;
  --green-dark: #1F5238;
  --green-darker: #163E2A;
  --cream: #F5EDD7;
  --cream-soft: #FAF6E8;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --ink-muted: #7A7A7A;
  --white: #FFFFFF;
  --error: #C0392B;
  --success: #2D6E4E;
  --radius: 12px;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream-soft);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

/* Header */
.site-header {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.logo {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(45, 110, 78, 0.18);
  object-fit: cover;
}

/* Hero */
.hero {
  text-align: center;
  padding: 24px 0 48px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(45, 110, 78, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--green-darker);
  margin-bottom: 20px;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.lede {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0 auto 36px;
}

/* Signup form */
.signup {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto 12px;
  background: var(--white);
  padding: 8px;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(22, 62, 42, 0.08);
  border: 1px solid rgba(45, 110, 78, 0.12);
}

.signup input[type="email"] {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border-radius: calc(var(--radius) - 4px);
  min-width: 0;
}

.signup input[type="email"]::placeholder {
  color: var(--ink-muted);
}

.signup input[type="email"]:focus-visible {
  background: var(--cream-soft);
}

.signup button {
  border: 0;
  background: var(--green);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: calc(var(--radius) - 4px);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.1s ease;
}

.signup button:hover {
  background: var(--green-dark);
}

.signup button:active {
  transform: scale(0.98);
}

.signup button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-note {
  min-height: 24px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
}

.form-note.error { color: var(--error); }
.form-note.success { color: var(--success); }

.reassure {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 8px;
}

/* Hints */
.hints {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 32px 0;
  border-top: 1px solid rgba(45, 110, 78, 0.12);
  border-bottom: 1px solid rgba(45, 110, 78, 0.12);
}

.hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--green);
  text-align: center;
}

.hint svg {
  width: 28px;
  height: 28px;
}

.hint span {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
}

.site-footer a {
  color: var(--green);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 540px) {
  .container {
    padding: 24px 18px 36px;
  }
  .logo {
    width: 96px;
    height: 96px;
  }
  .signup {
    flex-direction: column;
    padding: 10px;
  }
  .signup button {
    width: 100%;
  }
  .hints {
    gap: 12px;
  }
  .hint span {
    font-size: 13px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
