* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: #ffffff;
  color: #171717;
}

.roadmap {
  padding: 4rem 1rem;
}

.intro {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.heading {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #171717;
}

.copy {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #737373;
}

.desktop {
  display: none;
}

.mobile {
  margin: 3rem auto 0;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0;
  list-style: none;
}

.mstep {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  border-radius: 9999px;
}

.dot--done {
  background: #171717;
  color: #ffffff;
}

.dot--done svg {
  width: 0.875rem;
  height: 0.875rem;
}

.dot--current {
  border: 2px solid #15803d;
  background: #ffffff;
}

.dot__pip {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #15803d;
}

.dot--upcoming {
  border: 2px solid #e5e5e5;
  background: #ffffff;
}

.step__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step__quarter {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a3a3a3;
}

.step__now {
  border-radius: 9999px;
  background: rgba(21, 128, 61, 0.1);
  padding: 0.125rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #15803d;
}

.step__title {
  margin: 0.375rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #171717;
}

.step__desc {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #737373;
}

@media (min-width: 1024px) {
  .desktop {
    display: block;
    margin: 4rem auto 0;
    max-width: 72rem;
  }

  .mobile {
    display: none;
  }

  .line-wrap {
    position: relative;
  }

  /* Both tracks run the full 0%–100% width behind a zero-gap 6-column
     grid where every marker is horizontally centered in its own column —
     that combination is what makes a marker land at exactly
     `(index + 0.5) / 6` of the total width, so a track spanning that same
     0–100% space always passes through every marker's true center
     instead of drifting once a column gap enters the picture. `11px` for
     `top` centers the 2px-tall bar vertically on the 24px dot (12px
     center, minus half the bar's own height). */
  .line-track {
    position: absolute;
    top: 11px;
    right: 0;
    left: 0;
    height: 2px;
    background: #e5e5e5;
  }

  .line-fill {
    position: absolute;
    top: 11px;
    left: 0;
    height: 2px;
    transform-origin: left;
    background: #171717;
  }

  .steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0.5rem;
    text-align: center;
  }

  .step__meta {
    justify-content: center;
  }

  .step__body {
    margin-top: 1rem;
  }

  .step__title {
    font-size: 0.8125rem;
  }
}

/*
 * Timeline 02 — "horizontal progress path draw" animation identity. The
 * completed segment (`.line-fill`) is one continuous element sized to its
 * exact final width in the markup above — it draws itself in left-to-right
 * via `transform: scaleX()` with a left `transform-origin`, so the reveal
 * always ends exactly on the current marker's center regardless of
 * viewport width. See script.js for the IntersectionObserver that adds
 * `is-visible` once.
 */
@keyframes al-timeline02-draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes al-timeline02-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .al-timeline02.al-timeline02-js .al-timeline02-path {
    transform: scaleX(0);
  }

  .al-timeline02.al-timeline02-js.is-visible .al-timeline02-path {
    animation: al-timeline02-draw 1100ms cubic-bezier(0.16, 1, 0.3, 1) 200ms both;
  }

  .al-timeline02.al-timeline02-js .al-timeline02-item {
    opacity: 0;
    transform: translateY(14px);
  }

  .al-timeline02.al-timeline02-js.is-visible .al-timeline02-item {
    animation: al-timeline02-up 550ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
