/* Design tokens — Medium editorial system */
:root {
  --md-accent: #1A8917;
  --md-accent-hover: #156D12;
  --md-accent-soft: #E8F3E8;
  --md-ink: #191919;
  --md-text: #242424;
  --md-muted: #6B6B6B;
  --md-muted-soft: #757575;
  --md-canvas: #F7F4ED;
  --md-canvas-alt: #FFFFFF;
  --md-surface: #FFFFFF;
  --md-surface-warm: #F2EFE6;
  --md-border: #E6E6E6;
  --md-border-strong: #CFCFCF;
  --md-hero-green: #34AC45;
  --md-hero-moss: #48704B;
  --md-on-dark: #FFFFFF;
  --md-serif: Georgia, Cambria, "Times New Roman", serif;
  --md-sans: "Helvetica Neue", Arial, sans-serif;
  --md-radius-pill: 9999px;
  --md-radius-lg: 14px;
  --md-section: 84px;
  --md-hero: 112px;
  --md-max-width: 1192px;
  --md-transition: 150ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--md-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--md-text);
  background-color: var(--md-canvas);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--md-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--md-ink);
  color: var(--md-on-dark);
  border-radius: var(--md-radius-pill);
  font-size: 14px;
}

.skip-link:focus {
  top: 16px;
}

/* Shell */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 75px;
  background: var(--md-canvas);
  border-bottom: 1px solid var(--md-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--md-max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.wordmark {
  font-family: var(--md-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--md-ink);
}

.wordmark span {
  color: var(--md-muted);
  font-family: var(--md-sans);
  font-size: 13px;
  margin-left: 8px;
  letter-spacing: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 14px;
  color: var(--md-text);
  transition: color var(--md-transition);
}

.nav-link:hover {
  color: var(--md-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--md-ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--md-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  border: none;
  border-radius: var(--md-radius-pill);
  cursor: pointer;
  transition: background-color var(--md-transition), color var(--md-transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--md-ink);
  color: var(--md-on-dark);
  padding: 11px 20px;
  min-height: 40px;
}

.btn-primary:hover {
  background: #333333;
}

.btn-accent {
  background: var(--md-accent);
  color: var(--md-on-dark);
  padding: 11px 20px;
  min-height: 40px;
}

.btn-accent:hover {
  background: var(--md-accent-hover);
}

.btn-secondary {
  background: var(--md-surface);
  color: var(--md-ink);
  padding: 10px 18px;
  min-height: 38px;
  border: 1px solid var(--md-border-strong);
}

.btn-secondary:hover {
  background: var(--md-surface-warm);
}

.btn-lg {
  padding: 13px 28px;
  min-height: 48px;
  font-size: 16px;
}

/* Layout */
.container {
  max-width: var(--md-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--md-section) 0;
}

.section-divider {
  border-top: 1px solid var(--md-border);
}

/* Hero */
.hero {
  padding: var(--md-hero) 0;
  border-bottom: 1px solid var(--md-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  color: var(--md-muted);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--md-serif);
  font-size: clamp(52px, 8vw, 106px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.055em;
  color: var(--md-ink);
  margin: 0 0 24px;
}

.hero-subhead {
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: var(--md-text);
  max-width: 430px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--md-muted);
}

/* Hero artwork */
.hero-art {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 520px;
  overflow: hidden;
}

.hero-art-inner {
  width: 100%;
  height: 100%;
  background: var(--md-hero-moss);
  position: relative;
}

.hero-art-inner svg {
  width: 100%;
  height: 100%;
}

/* Benefits */
.benefits-header {
  margin-bottom: 48px;
}

.section-label {
  font-size: 13px;
  color: var(--md-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--md-serif);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--md-ink);
  margin: 0;
  max-width: 640px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.benefit-item {
  padding: 32px 32px 32px 0;
  border-top: 1px solid var(--md-border);
}

.benefit-item:not(:last-child) {
  border-right: 1px solid var(--md-border);
  padding-right: 32px;
  margin-right: 0;
}

.benefit-number {
  font-family: var(--md-serif);
  font-size: 32px;
  color: var(--md-accent);
  margin-bottom: 12px;
  line-height: 1;
}

.benefit-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--md-ink);
  margin: 0 0 8px;
}

.benefit-text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--md-muted-soft);
  margin: 0;
}

/* How it works */
.steps {
  background: var(--md-surface);
  border-top: 1px solid var(--md-border);
  border-bottom: 1px solid var(--md-border);
}

.steps-list {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-item {
  padding-top: 24px;
  border-top: 2px solid var(--md-ink);
}

.step-label {
  font-size: 13px;
  color: var(--md-muted);
  margin-bottom: 8px;
}

.step-title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--md-ink);
  margin: 0 0 8px;
}

.step-text {
  font-size: 16px;
  color: var(--md-muted-soft);
  margin: 0;
}

/* Trust */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.trust-points {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.trust-points li {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--md-border);
  font-size: 16px;
  line-height: 1.45;
}

.trust-points li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  background: var(--md-accent);
  border-radius: 50%;
}

.trust-card {
  background: var(--md-ink);
  color: var(--md-on-dark);
  border-radius: var(--md-radius-lg);
  padding: 28px;
}

.trust-card blockquote {
  font-family: var(--md-serif);
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.trust-card cite {
  font-style: normal;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.topic-pill {
  display: inline-block;
  background: var(--md-surface-warm);
  color: var(--md-text);
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--md-radius-pill);
}

/* CTA band */
.cta-band {
  background: var(--md-accent-soft);
  border-top: 1px solid var(--md-border);
  border-bottom: 1px solid var(--md-border);
  text-align: center;
}

.cta-band-inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-band .section-title {
  margin: 0 auto 16px;
}

.cta-band p {
  font-size: 18px;
  color: var(--md-muted-soft);
  margin: 0 0 32px;
  line-height: 1.45;
}

.cta-band .btn-lg {
  margin-bottom: 16px;
}

.cta-legal {
  font-size: 13px;
  color: var(--md-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.45;
}

.cta-legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cta-legal a:hover {
  color: var(--md-text);
}

/* Footer */
.site-footer {
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  font-size: 13px;
  color: var(--md-muted);
  transition: color var(--md-transition);
}

.footer-links a:hover {
  color: var(--md-text);
}

.footer-copy {
  font-size: 13px;
  color: var(--md-muted);
  margin: 0;
}

/* Mobile nav drawer */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .header-nav {
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--md-canvas);
    border-bottom: 1px solid var(--md-border);
    padding: 16px 24px 24px;
    gap: 12px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--md-transition), opacity var(--md-transition);
  }

  .header-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header-nav .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-art {
    order: -1;
    max-height: 280px;
    aspect-ratio: 16 / 10;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .benefit-item {
    padding: 24px 0;
    border-right: none !important;
  }

  .benefit-item:not(:last-child) {
    border-bottom: none;
  }

  .steps-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
