/* ==========================================================================
   How It Works — 4-Step Journey Strip
   ========================================================================== */
.journey-steps-stage {
  position: relative;
  z-index: 1; /* sit above the fixed .mesh-background (orbs + grid) */
  padding: 4.5rem 0 3.5rem;
  background: var(--white);
}

.journey-steps-title {
  margin: 0 0 3rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--navy-text);
}

.journey-steps {
  --tile-size: 150px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 0 auto;
}

.journey-step-tile {
  width: var(--tile-size);
  height: var(--tile-size);
  display: grid;
  place-items: center;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #FFFFFF 0%, #F4F9FF 100%);
  border: 1px solid rgba(15, 76, 255, 0.06);
  box-shadow: 0 18px 40px -18px rgba(25, 118, 255, 0.25), var(--shadow-inner-glow);
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s var(--ease-spring);
}

.journey-step-tile img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(15, 76, 255, 0.18));
}

.journey-step:hover .journey-step-tile {
  transform: translateY(-6px);
  box-shadow: 0 26px 48px -18px rgba(25, 118, 255, 0.35), var(--shadow-inner-glow);
}

.journey-step-label {
  margin: 1.1rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--navy-text);
  white-space: nowrap;
}

.journey-step-accent {
  color: var(--primary-deep);
}

.journey-step-connector {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  justify-content: center;
  height: var(--tile-size);
}

.journey-step-connector span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: journeyDotPulse 1.6s var(--ease-smooth) infinite;
}

.journey-step-connector span:nth-child(1) { background: #8FD3FF; }
.journey-step-connector span:nth-child(2) { background: var(--sky-blue); animation-delay: 0.2s; }
.journey-step-connector span:nth-child(3) { background: var(--electric-blue); animation-delay: 0.4s; }

@keyframes journeyDotPulse {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  40% { transform: scale(1.35); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .journey-step-connector span { animation: none; }
  .journey-step-tile { transition: none; }
}

@media (max-width: 1100px) {
  .journey-steps { --tile-size: 120px; }
  .journey-step-label { font-size: 1.1rem; }
  .journey-step-connector { gap: 7px; }
  .journey-step-connector span { width: 6px; height: 6px; }
}

@media (max-width: 768px) {
  .journey-steps-stage { padding: 2.25rem 0 2rem; }
  .journey-steps-title { margin-bottom: 1.5rem; }
  .journey-steps {
    --tile-size: 60px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    gap: 0;
  }
  .journey-step { min-width: 0; }
  .journey-step-tile { border-radius: 18px; }
  .journey-step-label {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
  }
  .journey-step-accent { display: block; }

  /* Tiny dot connectors, centred on the tiles */
  .journey-step-connector { gap: 3px; padding: 0 2px; }
  .journey-step-connector span { width: 4px; height: 4px; }
}

@media (max-width: 380px) {
  .journey-steps { --tile-size: 52px; }
  .journey-step-tile { border-radius: 16px; }
  .journey-step-label { font-size: 0.75rem; }
  .journey-step-connector { gap: 2px; padding: 0 1px; }
  .journey-step-connector span { width: 3px; height: 3px; }
}
