/* 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-nav-height: 75px;
  --md-container: 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 {
  max-width: 100%;
  height: auto;
  display: block;
}

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;
}

.container {
  width: 100%;
  max-width: var(--md-container);
  margin: 0 auto;
  padding: 0 24px;
}

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

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--md-nav-height);
}

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

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

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

.nav-toggle svg {
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--md-sans);
  font-size: 14px;
  line-height: 1;
  font-weight: 400;
  border-radius: var(--md-radius-pill);
  border: none;
  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: 9px 16px;
  min-height: 36px;
}

.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: 44px;
  font-size: 15px;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 56% 44%;
  gap: 48px;
  align-items: center;
}

.hero-brand {
  display: block;
  font-family: var(--md-serif);
  font-size: clamp(72px, 10vw, 106px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.055em;
  color: var(--md-ink);
  margin: 0 0 16px;
}

.hero-tagline {
  font-family: var(--md-serif);
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--md-ink);
  margin: 0 0 20px;
}

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

.hero-benefits {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
}

.hero-benefits li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--md-text);
}

.hero-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--md-accent);
}

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

.hero-artwork {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 520px;
  border-radius: var(--md-radius-lg);
  overflow: hidden;
  background: var(--md-hero-moss);
}

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

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

.section-alt {
  background: var(--md-surface);
}

.section-header {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  color: var(--md-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  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 0 16px;
}

.section-desc {
  font-size: 18px;
  line-height: 1.45;
  color: var(--md-muted-soft);
  margin: 0;
}

/* Pillars */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.pillar-card {
  padding: 32px 28px;
  border-top: 1px solid var(--md-border);
  border-right: 1px solid var(--md-border);
}

.pillar-card:first-child {
  border-left: 1px solid var(--md-border);
}

.pillar-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--md-accent);
  margin-bottom: 12px;
}

.pillar-title {
  font-family: var(--md-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--md-ink);
  margin: 0 0 12px;
}

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

/* Applications */
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.app-row {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--md-border);
}

.app-row:nth-child(odd) {
  padding-right: 32px;
  border-right: 1px solid var(--md-border);
}

.app-row:nth-child(even) {
  padding-left: 32px;
}

.app-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--md-accent-soft);
  border-radius: var(--md-radius-pill);
  color: var(--md-accent);
  font-size: 18px;
  font-weight: 500;
}

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

.app-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--md-muted-soft);
  margin: 0;
}

/* Trust */
.trust-section {
  background: var(--md-surface-warm);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.trust-stat {
  font-family: var(--md-serif);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.045em;
  color: var(--md-ink);
  margin: 0 0 8px;
}

.trust-label {
  font-size: 16px;
  color: var(--md-muted);
  margin: 0;
  max-width: 260px;
  margin-inline: auto;
}

.trust-quote {
  max-width: 720px;
  margin: 48px auto 0;
  text-align: center;
  font-family: var(--md-serif);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--md-ink);
}

/* CTA callout */
.cta-callout {
  padding: var(--md-section) 0;
}

.cta-card {
  background: var(--md-ink);
  color: var(--md-on-dark);
  border-radius: var(--md-radius-lg);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.cta-card-title {
  font-family: var(--md-serif);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.cta-card-desc {
  font-size: 18px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  max-width: 520px;
}

.cta-card .btn-accent {
  min-height: 44px;
  padding: 13px 28px;
  font-size: 15px;
}

/* Footer */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--md-border);
}

.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);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.footer-disclosure {
  width: 100%;
  font-size: 12px;
  line-height: 1.45;
  color: var(--md-muted);
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--md-border);
}

/* Mobile nav */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-artwork {
    max-height: 360px;
    order: -1;
  }

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

  .pillar-card {
    border-left: 1px solid var(--md-border);
  }

  .pillar-card:not(:last-child) {
    border-bottom: none;
  }

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

  .app-row:nth-child(odd),
  .app-row:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-right: none;
  }

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

  .cta-card {
    grid-template-columns: 1fr;
    padding: 40px 28px;
    text-align: center;
  }

  .cta-card-desc {
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--md-nav-height);
    left: 0;
    right: 0;
    background: var(--md-canvas);
    border-bottom: 1px solid var(--md-border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--md-transition), opacity var(--md-transition), visibility var(--md-transition);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    border-bottom: 1px solid var(--md-border);
  }

  .nav-links li:last-child {
    border-bottom: none;
    padding-top: 12px;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
  }

  .nav-links .btn-accent {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}

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

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