/* ── From feedback to momentum ── */
.momentum {
  padding: 5rem 0;
  background: var(--bg-subtle);
}

/* Flow row — desktop */
.momentum__flow {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

/* Single connecting line drawn behind all icons */
.momentum__flow::before {
  content: '';
  position: absolute;
  top: 27px; /* half of 56px icon */
  left: calc(10% + 28px);
  right: calc(10% + 28px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

/* Individual step */
.momentum__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.5rem;
}

.momentum__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 2px solid var(--border);
  background: var(--bg);
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.momentum__step h4 {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.375rem;
  line-height: 1.3;
}

.momentum__step p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Color per step */
.momentum__step:nth-child(1) .momentum__icon { border-color: var(--primary); background: var(--primary-light); }
.momentum__step:nth-child(2) .momentum__icon { border-color: var(--success); background: var(--success-light); }
.momentum__step:nth-child(3) .momentum__icon { border-color: var(--warning); background: var(--warning-light); }
.momentum__step:nth-child(4) .momentum__icon { border-color: var(--blue);    background: var(--blue-light); }
.momentum__step:nth-child(5) .momentum__icon { border-color: var(--purple);  background: var(--purple-light); }

/* Arrow between steps */
.momentum__arrow {
  align-self: flex-start;
  margin-top: 16px; /* vertically centre with icon */
  color: var(--text-muted);
  flex-shrink: 0;
  opacity: 0.4;
}

/* Sources sub-label on first step */
.momentum__sources {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.momentum__source-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  background: var(--primary-light);
  color: var(--primary);
}

/* Mobile — vertical stack */
@media (max-width: 768px) {
  .momentum__flow {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .momentum__flow::before {
    top: 28px;
    left: 27px;
    right: auto;
    width: 2px;
    height: calc(100% - 56px);
  }

  .momentum__step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 1.125rem;
    padding: 0 0 2rem 0;
    width: 100%;
  }

  .momentum__step:last-child { padding-bottom: 0; }

  .momentum__step > div { padding-top: 0.25rem; }

  .momentum__arrow { display: none; }
}
