﻿/* Getting started — 3 steps with chevron connectors */

.steps-track {
  position: relative;
  margin-top: 2.5rem;
  overflow: visible;
}

@media (min-width: 768px) {
  .steps-track {
    margin-top: 2.75rem;
  }
}

.steps-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0.65rem;
    align-items: center;
  }
}

.steps-chevron {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: #3054ad;
  flex-shrink: 0;
}

.steps-chevron svg {
  width: 1.15rem;
  height: 1.15rem;
}

@media (min-width: 768px) {
  .steps-chevron {
    display: flex;
    background: linear-gradient(
      160deg,
      rgb(48 84 173 / 0.1),
      rgb(105 157 237 / 0.05)
    );
    border: 1px solid rgb(48 84 173 / 0.22);
    clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 100%, 7px 100%);
  }
}

.steps-card {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

@media (min-width: 768px) {
  .steps-card:hover {
    transform: translateY(-3px);
  }
}

.steps-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.steps-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border: 1px solid rgb(48 84 173 / 0.28);
  background: linear-gradient(
    160deg,
    rgb(48 84 173 / 0.1),
    rgb(105 157 237 / 0.06)
  );
  color: #214094;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.steps-card__marker {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: #3054ad;
  box-shadow: 0 0 0 3px rgb(48 84 173 / 0.12);
  flex-shrink: 0;
}

.steps-rail {
  display: none;
}

@media (max-width: 767px) {
  .steps-track {
    padding-left: 1.1rem;
  }

  .steps-rail {
    display: block;
    position: absolute;
    left: 0.15rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 0;
    border-left: 2px dotted rgb(48 84 173 / 0.35);
    z-index: 0;
  }
}

.steps-foot {
  margin-top: 1.35rem;
}

/* Same 5-col grid as cards → CTA sits under card 1 */
@media (min-width: 768px) {
  .steps-foot {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0.65rem;
    align-items: center;
  }

  .steps-foot__cell {
    grid-column: 1;
  }
}

.steps-foot__cell {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.75rem;
}

.steps-foot__cell .btn-skew {
  /*
    btn-skew::before uses skew(40deg) and default margin-inline:1.15rem.
    Keep that so the slant tip lines up with the card edge.
  */
  margin-left: 1.15rem !important;
  margin-right: 1.15rem !important;
}

/* Align caption with the button's bottom-left slant corner */
.steps-foot__note {
  margin-left: 2.05rem;
  max-width: 22rem;
}
