/* ============================================================
   how-it-works.css — care journey timeline + feedback loop
   ============================================================ */

.timeline { position: relative; max-width: 880px; margin-inline: auto; }
.timeline::before {
  content: ""; position: absolute; left: 31px; top: 10px; bottom: 10px;
  width: 3px; border-radius: 3px;
  background: repeating-linear-gradient(var(--lavender-300) 0 8px, transparent 8px 18px);
}
.tl-step { position: relative; padding-left: 86px; padding-bottom: 2.4rem; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step__dot {
  position: absolute; left: 0; top: 0;
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; box-shadow: var(--shadow-sm);
  border: 3px solid var(--lavender-200); z-index: 1;
}
.tl-step__dot svg { width: 28px; height: 28px; }
.tl-step__n {
  position: absolute; left: 48px; top: -6px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--coral); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  display: grid; place-items: center; z-index: 2;
}
.tl-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: clamp(1.2rem, 3vw, 1.8rem);
}
.tl-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.tl-card__split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.1rem; }
.tl-mini { border-radius: var(--r-md); padding: 0.9rem 1rem; }
.tl-mini h4 { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.35rem; }
.tl-mini p { font-size: var(--fs-sm); margin: 0; }
.tl-mini--ai { background: var(--lavender-100); }
.tl-mini--ai h4 { color: var(--purple-600); }
.tl-mini--you { background: var(--sun-soft); }
.tl-mini--you h4 { color: #b9810a; }
@media (max-width: 560px) {
  .tl-card__split { grid-template-columns: 1fr; }
  .tl-step { padding-left: 76px; }
}

/* Feedback loop diagram */
.loop { max-width: 620px; margin-inline: auto; }
.loop svg { width: 100%; height: auto; }
.loop-legend { display: flex; flex-wrap: wrap; gap: 0.8rem 1.6rem; justify-content: center; margin-top: 1.6rem; }
.loop-legend span { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--ink); font-size: var(--fs-sm); }
.loop-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
