/* Scalboost — Medium-inspired editorial design tokens */
: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-content-width: 680px;
  --transition: 160ms 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: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 10px 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 */
.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

.top-nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.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: 8px;
}

.nav-link {
  font-size: 14px;
  color: var(--md-text);
  padding: 8px 12px;
  border-radius: var(--md-radius-pill);
  transition: color var(--transition);
}

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

.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;
  cursor: pointer;
  border-radius: var(--md-radius-pill);
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
  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--green {
  background: var(--md-accent);
  color: var(--md-on-dark);
  padding: 11px 20px;
  min-height: 40px;
}

.btn--green: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 {
  border-color: var(--md-ink);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--md-border-strong);
  border-radius: var(--md-radius-pill);
  padding: 8px 14px;
  font-size: 14px;
  color: var(--md-ink);
  cursor: pointer;
}

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

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

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

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

.hero__subtitle {
  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__art {
  position: relative;
  aspect-ratio: 1 / 1.05;
  max-width: 480px;
  margin-left: auto;
}

.hero-artwork {
  width: 100%;
  height: 100%;
  border-radius: var(--md-radius-lg);
  overflow: hidden;
}

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

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

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

.section__header {
  max-width: var(--md-content-width);
  margin-bottom: 48px;
}

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

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

.section__lead {
  font-size: 18px;
  line-height: 1.45;
  color: var(--md-muted-soft);
  margin: 0;
  max-width: 560px;
}

/* Benefit list */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--md-border);
}

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

.benefit:not(:nth-child(3n)) {
  border-right: 1px solid var(--md-border);
  padding-right: 28px;
  margin-right: 0;
}

.benefit:nth-child(3n) {
  padding-right: 0;
}

.benefit:nth-child(3n+2),
.benefit:nth-child(3n+3) {
  padding-left: 28px;
}

.benefit__stat {
  font-family: var(--md-serif);
  font-size: 36px;
  letter-spacing: -0.03em;
  color: var(--md-accent);
  margin: 0 0 8px;
  line-height: 1;
}

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

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

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

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

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

.tool-row:nth-child(even) {
  padding-left: 28px;
}

.tool-row__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--md-accent-soft);
  border-radius: var(--md-radius-lg);
  color: var(--md-accent);
  font-size: 18px;
}

.tool-row__title {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--md-ink);
}

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

/* Topic pills */
.topic-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

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

/* Testimonial */
.testimonial {
  max-width: var(--md-content-width);
  margin: 0 auto;
  text-align: center;
}

.testimonial__quote {
  font-family: var(--md-serif);
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--md-ink);
  margin: 0 0 24px;
}

.testimonial__quote::before {
  content: "\201C";
}

.testimonial__quote::after {
  content: "\201D";
}

.testimonial__meta {
  font-size: 14px;
  color: var(--md-muted);
}

.testimonial__meta strong {
  color: var(--md-text);
  font-weight: 500;
}

/* Audience */
.audience-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.audience-card {
  padding-top: 20px;
  border-top: 2px solid var(--md-ink);
}

.audience-card__title {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--md-ink);
}

.audience-card__text {
  font-size: 14px;
  color: var(--md-muted);
  margin: 0;
  line-height: 1.45;
}

/* CTA band */
.cta-band {
  background: var(--md-ink);
  color: var(--md-on-dark);
  padding: 72px 0;
  border-bottom: none;
}

.cta-band__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.cta-band__title {
  font-family: var(--md-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

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

.cta-band__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.cta-band .btn--green {
  min-width: 220px;
}

.cta-band__fine {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* Footer */
.footer {
  padding: 40px 0 48px;
  margin-top: auto;
}

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

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

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

.footer__link:hover {
  color: var(--md-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 75px 0 0 0;
  background: var(--md-canvas);
  z-index: 99;
  padding: 24px;
  border-top: 1px solid var(--md-border);
  flex-direction: column;
  gap: 8px;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav .nav-link {
  padding: 14px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--md-border);
}

.mobile-nav .btn {
  margin-top: 16px;
  width: 100%;
}

/* Responsive */
@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__art {
    max-width: 100%;
    margin: 0 auto;
    order: -1;
    max-height: 320px;
    aspect-ratio: 16 / 10;
  }

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

  .benefit,
  .benefit:nth-child(3n+2),
  .benefit:nth-child(3n+3) {
    padding: 24px 0;
    border-right: none;
  }

  .benefit:not(:nth-child(3n)) {
    border-right: none;
    padding-right: 0;
  }

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

  .tool-row,
  .tool-row:nth-child(odd),
  .tool-row:nth-child(even) {
    padding: 24px 0;
    border-right: none;
  }

  .audience-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-band__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .cta-band__actions {
    align-items: stretch;
  }

  .cta-band .btn--green {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .section {
    padding: 56px 0;
  }

  .audience-list {
    grid-template-columns: 1fr;
  }

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

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

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