/* ============================================
   HOW IT WORKS — TIMELINE STEPS
   ============================================ */

.hiw-timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

/* ── Phase Labels ── */
.hiw-phase-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  margin-top: 8px;
  padding-left: 68px; /* align with content after rail */
}

.hiw-phase-tag {
  display: inline-block;
  padding: 6px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-color);
  border: 1px solid rgba(56, 191, 161, 0.35);
  border-radius: 100px;
  background: rgba(56, 191, 161, 0.08);
  white-space: nowrap;
}

.hiw-phase-note {
  font-size: 0.88rem;
  color: var(--text-dark-gray);
  font-weight: 400;
}

/* ── Each Step Row ── */
.hiw-step {
  display: flex;
  align-items: stretch;
  margin-bottom: 0;
  min-height: 160px;
}

/* ── Left Rail: Number + Connector Line ── */
.hiw-step-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 52px;
  margin-right: 16px;
}

/* Step Number Circle */
.hiw-step-number {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(56, 191, 161, 0.12), rgba(34, 211, 238, 0.08));
  border: 1.5px solid rgba(56, 191, 161, 0.3);
  box-shadow:
    0 0 20px rgba(56, 191, 161, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.hiw-step-number span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hover lift */
.hiw-step:hover .hiw-step-number {
  border-color: rgba(56, 191, 161, 0.5);
  box-shadow:
    0 0 28px rgba(56, 191, 161, 0.2),
    0 0 8px rgba(34, 211, 238, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: scale(1.08);
}

/* Special "Go Live" step — brighter glow */
.hiw-step-number--go {
  background: linear-gradient(145deg, rgba(56, 191, 161, 0.2), rgba(34, 211, 238, 0.14));
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow:
    0 0 24px rgba(34, 211, 238, 0.18),
    0 0 48px rgba(56, 191, 161, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Final step — completed feel */
.hiw-step-number--final {
  background: linear-gradient(145deg, rgba(56, 191, 161, 0.18), rgba(34, 211, 238, 0.12));
  border-color: rgba(56, 191, 161, 0.4);
}

/* Vertical Connector Line */
.hiw-step-line {
  flex: 1;
  width: 2px;
  min-height: 20px;
  background: linear-gradient(180deg,
    rgba(56, 191, 161, 0.35) 0%,
    rgba(56, 191, 161, 0.1) 100%
  );
  border-radius: 1px;
}

/* No line on last step */
.hiw-step--last .hiw-step-line {
  display: none;
}

/* ── Right Side: Icon + Content Card ── */
.hiw-step-content {
  display: flex;
  gap: 18px;
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
  transition: all 0.35s ease;
}

.hiw-step:hover .hiw-step-content {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(56, 191, 161, 0.18);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Step Icon */
.hiw-step-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(56, 191, 161, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.hiw-step-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary-color);
}

.hiw-step:hover .hiw-step-icon {
  background: rgba(56, 191, 161, 0.14);
}

/* Step Text */
.hiw-step-text {
  flex: 1;
  min-width: 0;
}

.hiw-step-text h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.35;
}

.hiw-step-text > p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-medium-gray);
  margin-bottom: 14px;
}

/* Reassurance line (teal checkmark) */
.hiw-step-reassurance {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(56, 191, 161, 0.06);
  border-left: 3px solid rgba(56, 191, 161, 0.4);
  border-radius: 0 8px 8px 0;
}

.hiw-step-reassurance svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--primary-color);
  margin-top: 1px;
}

.hiw-step-reassurance span {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--primary-color);
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .hiw-phase-label {
    padding-left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 24px;
  }

  .hiw-step-content {
    flex-direction: column;
    gap: 12px;
    padding: 18px;
  }

  .hiw-step-icon {
    width: 36px;
    height: 36px;
  }

  .hiw-step-icon svg {
    width: 18px;
    height: 18px;
  }

  .hiw-step-rail {
    width: 44px;
    margin-right: 12px;
  }

  .hiw-step-number {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .hiw-step-number span {
    font-size: 1.05rem;
  }

  .hiw-step-text h3 {
    font-size: 1.02rem;
  }

  .hiw-step-text > p {
    font-size: 0.9rem;
  }

  .hiw-step-reassurance {
    padding: 8px 12px;
  }

  .hiw-step-reassurance span {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hiw-step-rail {
    width: 38px;
    margin-right: 10px;
  }

  .hiw-step-number {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .hiw-step-number span {
    font-size: 0.95rem;
  }

  .hiw-step-content {
    padding: 14px;
  }

  .hiw-step-text h3 {
    font-size: 0.95rem;
  }
}
