/* Feature hover treatment for the three existing onboarding steps.
   Load after sections.css. Plain CSS; existing ES/EN content stays unchanged.
   Icon assets are Lucide 0.462.0 (ISC); see assets/LUCIDE-LICENSE. */
.steps-section .steps-list {
  --step-pad: 34px;
  --step-line: #d6d2d9;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--step-line);
}

.steps-section .steps-list > li,
.steps-section .steps-list > li + li {
  position: relative;
  isolation: isolate;
  display: block;
  min-width: 0;
  padding: 32px var(--step-pad) 36px;
  border: 0;
}

.steps-section .steps-list > li + li {
  border-left: 1px solid var(--step-line);
}

.steps-section .steps-list > li::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(219, 214, 225, .58), rgba(235, 231, 239, 0));
  opacity: 0;
}

.steps-section .steps-list .steps-number {
  display: block;
  width: fit-content;
  margin: 0 0 34px;
  font-size: 48px;
  line-height: 1;
  color: #89808f;
}

.steps-section .steps-list .step-icon {
  position: absolute;
  top: 39px;
  right: var(--step-pad);
  width: 28px;
  height: 28px;
  max-width: none;
  opacity: .78;
  pointer-events: none;
}

.steps-section .steps-list h3 {
  position: relative;
  margin: 0 0 15px;
  padding-right: 8px;
  font-size: 27px;
  line-height: 1.12;
}

.steps-section .steps-list h3::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--step-pad) - 1px);
  top: 50%;
  width: 3px;
  height: 32px;
  border-radius: 0 2px 2px 0;
  background: #bfb7c7;
  transform: translateY(-50%) scaleY(.75);
  transform-origin: center;
  pointer-events: none;
}

.steps-section .steps-list p {
  max-width: 340px;
  color: #67616c;
}

/* Hover is a visual emphasis, never a promise that the step is clickable.
   Touch and reduced-motion users receive the complete static composition. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .steps-section .steps-list > li::before {
    transition: opacity 220ms ease-out;
  }
  .steps-section .steps-list h3,
  .steps-section .steps-list h3::before {
    transition: transform 220ms cubic-bezier(.2, .7, .2, 1), background-color 220ms ease-out;
  }
  .steps-section .steps-list .step-icon {
    transition: opacity 220ms ease-out;
  }
  .steps-section .steps-list > li:hover::before {
    opacity: 1;
  }
  .steps-section .steps-list > li:hover h3 {
    transform: translateX(8px);
  }
  .steps-section .steps-list > li:hover h3::before {
    background: var(--magenta, #ed07ac);
    transform: translate(-8px, -50%) scaleY(1);
  }
  .steps-section .steps-list > li:hover .step-icon {
    opacity: 1;
  }
}

@media (max-width: 1000px) {
  .steps-section .steps-list {
    --step-pad: 25px;
  }
  .steps-section .steps-list h3 {
    font-size: 25px;
  }
}

@media (max-width: 700px) {
  .steps-section .steps-list {
    --step-pad: 27px;
    grid-template-columns: minmax(0, 1fr);
  }
  .steps-section .steps-list > li,
  .steps-section .steps-list > li + li {
    padding: 27px var(--step-pad) 30px;
    border: 0;
  }
  .steps-section .steps-list > li + li {
    border-top: 1px solid var(--step-line);
  }
  .steps-section .steps-list .steps-number {
    margin-bottom: 26px;
    font-size: 38px;
  }
  .steps-section .steps-list .step-icon {
    top: 30px;
    width: 27px;
    height: 27px;
  }
  .steps-section .steps-list h3 {
    margin: 0 0 12px;
    font-size: 27px;
  }
  .steps-section .steps-list p {
    max-width: 470px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .steps-section .steps-list > li::before,
  .steps-section .steps-list h3,
  .steps-section .steps-list h3::before,
  .steps-section .steps-list .step-icon {
    transition: none;
  }
}
