/* Ported from MOCKUP lines 254-302 plus the .xb-steps rules (lines 32-40, 63-76) */

.xcw-steps {
  background: #fff;
  border-top: 1px solid var(--xcw-line-soft);
  border-bottom: 1px solid var(--xcw-line-soft);
}

.xcw-steps .xcw__inner {
  padding: clamp(56px, 7vw, 92px) var(--xcw-pad-x);
}

.xcw-steps__intro-block {
  max-width: 720px;
  margin: 0 0 clamp(40px, 5vw, 58px);
}

.xcw-steps__eyebrow {
  display: block;
  font-family: var(--xcw-heading-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--xcw-blue);
  margin-bottom: 14px;
}

.xcw-steps__heading {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.12;
  margin: 0 0 14px;
  text-wrap: pretty;
}

.xcw-steps__intro {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--xcw-muted);
  margin: 0;
  max-width: 60ch;
}

/* ── Step list ───────────────────────────────────────────────────────────── */

.xcw-steps__list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

.xcw-steps__item {
  position: relative;
  padding-left: 76px;
  transition: transform .22s cubic-bezier(.2, .7, .3, 1);
}

.xcw-steps__item:hover { transform: translateY(-4px); }

.xcw-steps__item::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 27px;
  /* Fallback keeps the mockup value; the widget's Thickness control sets the var. */
  width: var(--xcw-steps-rail-size, 2px);
  height: calc(100% + 32px);
  background: linear-gradient(var(--xcw-deep), var(--xcw-sky));
  z-index: 0;
}

.xcw-steps__item:last-child::after { display: none; }

.xcw-steps__node {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}

.xcw-steps__num {
  position: relative;
  z-index: 2;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--xcw-deep);
  border: 4px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--xcw-heading-font);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
  box-shadow: 0 8px 18px -8px rgba(17, 78, 98, .55);
  transition: box-shadow .22s;
}

.xcw-steps__item:hover .xcw-steps__num {
  box-shadow: 0 0 0 6px rgba(41, 171, 226, .18), 0 10px 20px -8px rgba(17, 78, 98, .6);
}

.xcw-steps__icon {
  display: block;
  margin-bottom: 14px;
}

.xcw-steps__icon svg {
  display: block;
  width: 26px;
  height: 26px;
}

.xcw-steps__item h3 {
  font-size: 18.5px;
  line-height: 1.28;
  letter-spacing: -.01em;
  margin: 0 0 10px;
  text-wrap: balance;
}

.xcw-steps__item p {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--xcw-muted);
  margin: 0;
  max-width: 40ch;
}

@media (min-width: 700px) {
  .xcw-steps__list {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
  .xcw-steps__item { padding-left: 0; }
  .xcw-steps__node { position: static; }
  .xcw-steps__item::after { display: none; }
}

@media (min-width: 1020px) {
  .xcw-steps__list {
    grid-template-columns: repeat(4, 1fr);
    gap: 0 26px;
  }
  .xcw-steps__item { z-index: 1; }
  .xcw-steps__item::after {
    display: block;
    left: 27px;
    top: 26px;
    width: calc(100% + 26px);
    height: var(--xcw-steps-rail-size, 2px);
  }
  .xcw-steps__item:nth-child(1)::after { background: linear-gradient(90deg, var(--xcw-deep), var(--xcw-blue)); }
  .xcw-steps__item:nth-child(2)::after { background: linear-gradient(90deg, var(--xcw-blue), var(--xcw-sky)); }
  .xcw-steps__item:nth-child(3)::after { background: linear-gradient(90deg, var(--xcw-sky), #C8E0EA); }
}
