.steps {
    background: var(--white);
    padding: clamp(54px, 7vw, 90px) 0;
    border-top: 4px solid var(--secondary);
}

.steps__head {
    text-align: center;
    margin-bottom: clamp(44px, 5.5vw, 64px);
}

.steps__eyebrow {
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 13px;
    margin: 0;
}

.steps__head h2 {
    margin: 12px 0 12px;
    font-size: clamp(26px, 3.4vw, 45px);
    font-weight: 700;
    color: var(--primary);
}

.steps__sub {
    max-width: 580px;
    margin: 0 auto;
    color: var(--gray);
    font-size: 16px;
    line-height: 1.55;
}

/* one equal column per step, however many there are.
   z-index: 0 contains the connectors' negative z-index so they
   sit behind every disc without escaping the section background */
.steps__flow {
    position: relative;
    z-index: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 34px;
}

/* positioned (for the connector) but NO z-index — a step with its own
   stacking context would paint its connector above the previous disc */
.steps__step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* dashed connector from the previous disc center to this one (disc is 96px tall) */
.steps__step+.steps__step::before {
    content: "";
    position: absolute;
    top: 48px;
    left: calc(-50% - 34px);
    width: calc(100% + 34px);
    border-top: 2px dashed var(--light-gray);
    z-index: -1;
}

.steps__disc {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--white);
    border: 6px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px #ececec, 0 12px 28px rgba(193, 30, 51, .26);
    margin-bottom: 20px;
}

.steps__disc .icon {
    display: block;
    width: 42px;
    height: 42px;
}

.steps__disc .icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* let the disc's currentColor drive any icon, overriding baked-in fills */
.steps__disc .icon svg path {
    fill: currentColor;
}

.steps__disc .icon svg [stroke] {
    stroke: currentColor;
}

.steps__num {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--tertiary);
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .28);
}

.steps__step-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.steps__step-content {
    margin: 0;
    max-width: 300px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray);
}

.steps .button-row {
    margin-top: clamp(40px, 5vw, 58px);
}

@media (max-width: 760px) {
    .steps__flow {
        grid-auto-flow: row;
        grid-auto-columns: unset;
        gap: 38px;
    }

    .steps__step+.steps__step::before {
        display: none;
    }
}
