/* ==========================================================================
   Fases: curva de crecimiento de una fintech (lanzamiento, expansión, madurez).
   ========================================================================== */

.phases {
  margin-top: clamp(32px, 4vw, 48px);
}
.curve-box {
  position: relative;
  height: clamp(84px, 9vw, 120px);
}
.curve {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.c-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-red);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 5px rgba(234, 71, 78, 0.2);
  transition:
    left 560ms var(--ease-io),
    top 560ms var(--ease-io);
}
.ph-cols {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  border-top: 1px solid var(--line-2);
}
.ph {
  position: relative;
  padding: 22px clamp(16px, 2vw, 28px) 4px;
  outline-offset: -2px;
}
.ph:first-child {
  padding-left: 0;
}
.ph::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -1.5px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-violet), var(--brand-red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 460ms var(--ease-out);
}
.ph.on::before {
  transform: scaleX(1);
}
.ph + .ph {
  border-left: 1px dashed var(--line-2);
}
.ph h3 {
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}
.ph p {
  color: var(--ink-2);
  margin-top: 8px;
  max-width: 36ch;
}
.ph .chips {
  margin-top: 16px;
}
.ph small {
  display: block;
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--ink-3);
  max-width: 40ch;
}

@media (max-width: 860px) {
  .ph-cols {
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
  }
  .ph,
  .ph:first-child {
    padding: 20px 0;
  }
  .ph + .ph {
    border-left: 0;
    border-top: 1px dashed var(--line-2);
  }
}
