/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
  --bg: #fbfaf8;
  --ink: #24211e; /* headings, button fill, hairlines */
  --text: #302d2a; /* section body copy */
  --text-muted: #585551; /* hero lead, step copy */
  --accent: #2a75ba; /* section eyebrows */
  --number: #898581; /* step numbers */
  --link: #504c48; /* secondary link */
  --rule: rgba(36, 33, 30, 0.12);

  --font-sans: "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: Menlo, ui-monospace, SFMono-Regular, "SF Mono", Consolas,
    "Liberation Mono", monospace;

  /* Fluid type: scales between a ~380px phone and the 880px design width. */
  --size-title: clamp(2rem, 1.346rem + 2.752vw, 2.86rem); /* 32 → 45.76px */
  --size-prose: clamp(1.0625rem, 0.9675rem + 0.4vw, 1.1875rem); /* 17 → 19px */
  --size-step-title: clamp(1.031rem, 0.96rem + 0.3vw, 1.125rem); /* 16.5 → 18px */
  --size-step-body: clamp(0.9375rem, 0.89rem + 0.2vw, 1rem); /* 15 → 16px */

  --measure: 680px;
  /* Reaches the design's 100px gutter at 880px and bottoms out at 24px on
     phones, so the text measure only ever grows with the viewport. */
  --gutter: clamp(24px, 18.58vw - 63.5px, 100px);

  --space-top: clamp(64px, 21.44px + 11.2vw, 120px);
  --space-section: clamp(52px, 34.5px + 4.6vw, 75px);
  --space-bottom: clamp(80px, 34.4px + 12vw, 140px);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--size-prose);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Padding sits outside the 680px measure, so the text column never exceeds
   its design width while the gutters absorb the remaining space. */
.container {
  width: 100%;
  max-width: calc(var(--measure) + var(--gutter) * 2);
  margin: 0 auto;
  padding: var(--space-top) var(--gutter) var(--space-bottom);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero__title {
  margin: 0 0 23px;
  font-size: var(--size-title);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.hero__lead {
  margin: 0;
  max-width: 28.5em; /* Holds the lead to a shorter measure than the body copy. */
  line-height: 1.55;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 33px;
}

/* ==========================================================================
   Buttons and links
   ========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 0 24px;
  border-radius: 7px;
  background-color: var(--ink);
  color: var(--bg);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 140ms ease, transform 140ms ease;
}

.button:hover {
  background-color: #100e0c;
}

.button:active {
  transform: translateY(1px);
}

.link-arrow {
  color: var(--link);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  text-underline-offset: 3px;
}

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

.link-arrow__glyph {
  font-family: Arial, var(--font-sans);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  margin-top: var(--space-section);
  scroll-margin-top: 32px;
}

.eyebrow {
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.prose {
  margin: 0;
  line-height: 1.65;
  color: var(--text);
}

.prose + .prose {
  margin-top: 22px;
}

.prose-list {
  margin: 18px 0 0;
  padding-left: 1.1em;
  line-height: 1.6;
  color: var(--text);
}

.prose-list li + li {
  margin-top: 8px;
}

.prose-list strong {
  font-weight: 600;
  color: var(--ink);
}

/* ==========================================================================
   Partnership terms
   ========================================================================== */

.terms {
  margin: 28px 0 0;
  border-bottom: 1px solid var(--rule);
}

.terms__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  column-gap: 20px;
  padding: 20px 0 22px;
  border-top: 1px solid var(--rule);
}

.terms__label {
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--number);
}

.terms__value {
  margin: 0;
  font-size: var(--size-step-body);
  line-height: 1.6;
  color: var(--text-muted);
}

.terms__list {
  margin: 0;
  padding-left: 1.1em;
}

.terms__list li + li {
  margin-top: 6px;
}

.terms__list strong {
  font-weight: 600;
  color: var(--ink);
}

/* ==========================================================================
   Closing call to action
   ========================================================================== */

.closing {
  margin-top: var(--space-section);
}

.closing__text {
  margin: 0 0 20px;
  font-size: var(--size-step-title);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
}

/* ==========================================================================
   Narrow screens
   ========================================================================== */

@media (max-width: 599px) {
  .hero__actions {
    gap: 12px;
  }

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

  .terms__label {
    padding: 0 0 6px;
  }

  /* Full-width tap targets read as intentional on a phone and are easier to hit. */
  .button {
    width: 100%;
  }
}
