/* SBE Safari Steps — "How it works" block
 *
 * Desktop / tablet (>=600px) : embed original SVG full-width.
 * Mobile (<600px)            : vertical HTML stack with the 5 icon SVGs.
 */

.sbe-steps {
    box-sizing: border-box;
    /* Break out of constrained content containers so the diagram fills the
     * full viewport, matching the original Canva graphic. */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: clamp(24px, 4vw, 56px) clamp(16px, 4vw, 48px);
    color: #1a1a1a;
    font-family: inherit;
}

.sbe-steps *,
.sbe-steps *::before,
.sbe-steps *::after { box-sizing: border-box; }

/* ---------- Desktop / tablet: full-width SVG diagram ---------- */
.sbe-steps__diagram {
    display: block;
    width: 100%;
    height: auto;
    max-width: 1600px;
    margin: 0 auto;
}

/* Hide the mobile stack at >=600px */
.sbe-steps__mobile {
    display: none;
}

/* ---------- Mobile: vertical stack ---------- */
@media (max-width: 599px) {
    .sbe-steps {
        padding: 24px 16px;
    }

    .sbe-steps__diagram {
        display: none;
    }

    .sbe-steps__mobile {
        display: block;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .sbe-steps__item {
        display: grid;
        grid-template-columns: 80px 1fr;
        column-gap: 16px;
        align-items: center;
        padding: 0 0 0 16px;
        margin-bottom: 28px;
        border-left: 2px dashed #1a1a1a;
        min-height: 80px;
    }
    .sbe-steps__item:last-child {
        margin-bottom: 0;
    }
    .sbe-steps__item--start,
    .sbe-steps__item:first-child {
        border-left-color: transparent;
    }

    .sbe-steps__icon {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 80px;
        height: 80px;
    }
    .sbe-steps__icon img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain;
    }

    .sbe-steps__label {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
        display: inline-block;
        background: #7cb58a;
        color: #fff;
        font-weight: 600;
        font-size: 0.95rem;
        line-height: 1;
        padding: 8px 18px;
        border-radius: 999px;
        margin: 0 0 8px;
    }

    .sbe-steps__text {
        grid-column: 2;
        grid-row: 2;
        margin: 0;
        font-size: 0.95rem;
        line-height: 1.45;
        color: #2a2a2a;
    }
}
