.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.step {
    position: relative;
    min-width: 0;
    padding: 0 clamp(16px, 3vw, 40px) 0 0;
}
.step-rail {
    position: relative;
    display: flex;
    align-items: center;
    height: 44px;
    margin-bottom: 28px;
}
.step-rail::after {
    content: '';
    position: absolute;
    left: 52px;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--border);
}
.step:last-child .step-rail::after {
    display: none;
}
.step-num {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.step:last-child .step-num {
    border-color: transparent;
    background: var(--text);
    color: var(--bg);
}
.step h3 {
    margin-top: 12px;
    font-size: clamp(1.15rem, 1.8vw, 1.375rem);
    line-height: 1.2;
}
.step p:last-child {
    margin: 14px 0 0;
    max-width: 34ch;
    font-size: 14px;
    color: var(--dimmed);
    text-wrap: pretty;
}

@media (max-width: 760px) {
    .steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }
    .step {
        padding: 0 0 0 64px;
    }
    .step-rail {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
    }
    .step-rail::after {
        display: none;
    }
    .step:not(:last-child)::before {
        content: '';
        position: absolute;
        left: 22px;
        top: 52px;
        bottom: -28px;
        width: 1px;
        background: var(--border);
    }
    .step h3 {
        margin-top: 8px;
    }
}
