/* ============================================================
   Stages: four nodes on one rail.
   Replaces the two-column cards around a masked product photo —
   the photo cropped into a ghost at the top of the page, and the
   "three stages" heading sat over four boxes with no order.
   Now: numbered sequence, one hairline, no card chrome.
   ============================================================ */

.stages-rail{
  position:relative;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:34px;
  margin:44px 0 0;
  padding:0;
  list-style:none;
  counter-reset:none;
}
.stages-rail::before{
  content:"";
  position:absolute;
  left:0;right:0;top:6px;height:1px;
  background:linear-gradient(90deg,#DDE3EC 0,#DDE3EC 88%,rgba(221,227,236,0));
}

.stage-node{
  position:relative;
  padding:38px 0 0;
}
.stage-node::before{
  content:"";
  position:absolute;
  left:0;top:1px;
  width:11px;height:11px;border-radius:50%;
  background:#fff;
  border:2px solid #16235C;
  box-sizing:border-box;
}
.stage-node--end::before{
  background:#E0A81A;
  border-color:#E0A81A;
  box-shadow:0 0 0 4px rgba(224,168,26,.16);
}
.stage-node__n{
  position:absolute;
  left:21px;top:-6px;
  font:600 10px/1 var(--mono,monospace);
  letter-spacing:.18em;
  color:#8A94A3;
  font-variant-numeric:tabular-nums;
}
.stage-node h3{
  margin:0 0 9px;
  font:640 17px/1.3 var(--font);
  letter-spacing:-.012em;
  color:#0C1633;
}
.stage-node p{
  margin:0;
  max-width:34ch;
  font:400 13.5px/1.62 var(--font);
  color:#5B6673;
}

/* what arrives at this step: one line, ticked, never a second paragraph */
.stage-node small{
  position:relative;
  display:block;
  margin-top:14px;
  padding-left:20px;
  font:600 11.5px/1.45 var(--font);
  color:#16235C;
}
.stage-node small::before{
  content:"";
  position:absolute;
  left:1px;top:4px;
  width:9px;height:5px;
  border-left:1.5px solid #16235C;
  border-bottom:1.5px solid #16235C;
  transform:rotate(-45deg);
}

/* hover: the node answers, the layout does not move */
.stage-node h3{transition:color 160ms linear}
.stage-node:hover h3{color:#16235C}
.stage-node:hover::before{box-shadow:0 0 0 4px rgba(22,35,92,.08)}
.stage-node--end:hover::before{box-shadow:0 0 0 4px rgba(224,168,26,.22)}

/* ---------- tablet: two rows, no rail ---------- */
@media (max-width:1099.98px){
  .stages-rail{grid-template-columns:repeat(2,minmax(0,1fr));gap:34px 40px;margin-top:34px}
  .stages-rail::before{display:none}
  .stage-node{padding-top:26px;border-top:1px solid #E3E8EF}
  .stage-node::before{top:-5px}
  .stage-node__n{left:21px;top:-18px}
}

/* ---------- phones: vertical rail ---------- */
@media (max-width:639.98px){
  .stages-rail{grid-template-columns:minmax(0,1fr);gap:26px;margin-top:28px;padding-left:2px}
  .stages-rail::before{
    display:block;
    left:5px;right:auto;top:6px;bottom:8px;
    width:1px;height:auto;
    background:linear-gradient(180deg,#DDE3EC 0,#DDE3EC 86%,rgba(221,227,236,0));
  }
  .stage-node{padding:0 0 0 30px;border-top:0}
  .stage-node::before{left:-2px;top:5px}
  .stage-node__n{left:30px;top:-2px;position:static;display:block;margin-bottom:8px}
  .stage-node p{max-width:none}
}

@media (prefers-reduced-motion:reduce){
  .stage-node h3{transition:none}
}
