:root {
  --brand: #1e6b4e;
  --brand-dark: #0f3a2a;
  --brand-soft: #f0f7f3;
  --ink: #0c1d17;
  --muted: #4a5b54;
  --line: #d9e6df;
  --bg: #fbfdfb;
  --max: 64rem;
  --radius: 0.625rem;
  --shadow-sm: 0 1px 2px rgba(15, 58, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 58, 42, 0.08);
  --focus: 0 0 0 3px rgba(30, 107, 78, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  font-size: 17px;
  line-height: 1.55;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.brand-mark {
  width: 30px;
  height: 30px;
}
.brand-text {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--brand-dark);
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: #fff;
}
.lang-btn {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}
.lang-btn:hover {
  color: var(--ink);
}
.lang-btn--active {
  background: var(--brand);
  color: #fff;
}
.lang-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

/* hero */
.hero {
  padding: 3.5rem 0 2.5rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(2rem, 5.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 1.25rem;
  color: var(--ink);
  max-width: 28ch;
}
.lede {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 48ch;
}

/* signup */
.signup {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.625rem;
  max-width: 30rem;
  margin-bottom: 1.25rem;
}
.signup input[type='email'] {
  font: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  min-width: 0;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.signup input[type='email']::placeholder {
  color: #9aa9a2;
}
.signup input[type='email']:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--focus);
}
.cta {
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  transition: background 120ms ease, transform 60ms ease;
  white-space: nowrap;
}
.cta:hover {
  background: var(--brand-dark);
}
.cta:active {
  transform: translateY(1px);
}
.cta:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.cta[disabled] {
  background: #6c7d76;
  cursor: not-allowed;
}
.signup-help {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.signup-status {
  grid-column: 1 / -1;
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  min-height: 1.4em;
}
.signup-status--ok {
  color: var(--brand);
  font-weight: 600;
}
.signup-status--err {
  color: #a13728;
  font-weight: 600;
}

/* trust */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 1.5rem;
}

/* value cards */
.value {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.value-card h2 {
  font-size: 1.0625rem;
  margin: 0 0 0.625rem;
  color: var(--brand-dark);
  letter-spacing: -0.01em;
}
.value-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* footer */
.footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}
.footer p {
  margin: 0.25rem 0;
}
.footer a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}
.footer a:hover {
  text-decoration: underline;
}

.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;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1d17;
    --ink: #f1f8f4;
    --muted: #a9bbb3;
    --line: #1f3a30;
    --brand-soft: #133729;
    --brand-dark: #d8efe2;
  }
  .signup input[type='email'] {
    background: #112a22;
    color: var(--ink);
  }
  .lang-toggle {
    background: #112a22;
  }
  .value-card {
    background: #112a22;
  }
  .brand-text {
    color: var(--ink);
  }
}
