/* =========================================================================
   LAVACASCADE — css/sections/steps.css
   "How it works": three steps joined by a molten line, lava running
   left to right (top to bottom on phones).
   ========================================================================= */

.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    padding: 0;
    list-style: none;
}

/* the cascade line through the step numbers */
.steps::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 22px;
    right: 22px;
    height: 2px;
    background: linear-gradient(90deg, var(--lava-500), var(--lava-400) 50%, var(--ember-400));
    opacity: 0.55;
}

.steps__item {
    position: relative;
}

/* numbered block sitting on the line */
.steps__num {
    position: relative;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--ember-400);
    background: var(--night-900);
    border: 1px solid var(--line-lava);
    border-radius: var(--radius-sm);
    box-shadow: 0 0 22px rgba(255, 133, 64, 0.18);
}

.steps__item h3 {
    margin-top: var(--space-5);
}

.steps__item p {
    margin-top: var(--space-3);
    color: var(--text-soft);
}

/* =========================================
   RESPONSIVE: vertical cascade
   ========================================= */
@media (max-width: 760px) {
    .steps {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .steps::before {
        top: 22px;
        bottom: 22px;
        left: 22px;
        right: auto;
        width: 2px;
        height: auto;
        background: linear-gradient(180deg, var(--lava-500), var(--lava-400) 50%, var(--ember-400));
    }

    .steps__item {
        padding-left: 70px;
    }

    .steps__num {
        position: absolute;
        top: 0;
        left: 0;
    }

    .steps__item h3 {
        margin-top: 0.55rem;
    }
}
