:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --hairline: #e8e8ed;
  --soft: #f5f5f7;
  --green: #2f5d46;
  --green-dark: #244936;
  --bg: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.55;
}

/* Top bar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 24px;
}

.wordmark {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.topbar-link {
  font-size: 15px;
  color: var(--green);
  text-decoration: none;
}

.topbar-link:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 24px 110px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(48px, 9vw, 88px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 36px;
}

.lede {
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-bottom: 18px;
}

.hero-detail {
  color: var(--muted);
  margin: 30px 0 40px;
}

/* Button */
.button {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 14px 32px;
  border: 0;
  border-radius: 980px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

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

.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.button:disabled {
  opacity: 0.55;
  cursor: default;
}

/* Counter — the whole site exists to produce this number */
.counter {
  background: var(--soft);
  text-align: center;
  padding: 88px 24px;
}

.counter-label {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 8px;
}

.counter-number {
  font-size: clamp(72px, 14vw, 152px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

/* Prose sections */
.prose {
  max-width: 620px;
  margin: 0 auto;
  padding: 88px 24px 0;
}

.prose h2,
.join h2 {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.prose p {
  margin-bottom: 14px;
}

.prose ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.prose-emphasis {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--green);
}

/* Join form */
.join {
  max-width: 620px;
  margin: 0 auto;
  padding: 96px 24px 0;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.field em {
  font-style: normal;
  font-weight: 400;
}

.field-wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 11px 14px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.nope {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-error {
  color: #c33025;
  margin-top: 18px;
}

#join-form .button {
  margin-top: 26px;
}

.joined {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 32px;
  background: var(--soft);
}

.joined-headline {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--green);
  margin-bottom: 10px;
}

/* FAQ */
.faq {
  padding-bottom: 40px;
}

.faq-item {
  border-top: 1px solid var(--hairline);
  padding: 22px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--hairline);
}

.faq h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.faq p {
  color: var(--muted);
  margin: 0;
}

/* Footer */
footer {
  text-align: center;
  padding: 88px 24px 56px;
  color: var(--muted);
  font-size: 15px;
}

footer p {
  margin-bottom: 6px;
}

.footer-copyright {
  margin-top: 20px;
}

.footer-legal {
  max-width: 560px;
  margin: 14px auto 0;
  font-size: 12px;
  color: #a1a1a6;
}

@media (max-width: 560px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
