/* =====================================================
   HOW IT WORKS — SECTION STYLES
   ====================================================== */

.how-it-works {
    padding: var(--section-pad) 24px;
    background: #fffdf8; /* matches the prototype-space background */
}

.how-container {
    max-width: 1380px;
    margin: 0 auto;
}

/* ---- Section Header ---- */
.how-header {
    text-align: center;
    margin-bottom: 60px;
}

.how-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(254, 111, 1, .09);
    border: 1px solid rgba(254, 111, 1, .20);
    color: var(--orange-dark, #cb5901);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.how-title {
    font-family: "Manrope", sans-serif;
    font-size: clamp(32px, 4.2vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--black, #171714);
}

.how-highlight {
    color: var(--orange-dark, #cb5901);
    position: relative;
}
.how-highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 5px;
    background: var(--orange, #fe6f01);
    opacity: .35;
    border-radius: 10px;
    transform: rotate(-1deg);
}

.how-subtitle {
    max-width: 550px;
    margin: 16px auto 0;
    color: var(--gray, #706b61);
    font-size: 16px;
    line-height: 1.6;
}

/* ---- Steps Grid ---- */
/* Six across on a wide desktop. The gap and the card's internal padding come
   down to buy the width — the card's own look (radius, border, shadow, hover
   lift, corner numeral, icon tile) is untouched. */
.how-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin-bottom: var(--header-gap);
}

.how-step {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px 18px 26px;
    border: 1px solid rgba(0, 0, 0, .05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .04);
    transition: transform 350ms cubic-bezier(.2, .8, .2, 1),
                box-shadow 350ms ease;
    text-align: center;
    position: relative;
}

.how-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .08);
}

.step-number {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 38px;
    font-weight: 900;
    color: rgba(254, 111, 1, .08);
    line-height: 1;
    user-select: none;
    font-family: "Manrope", sans-serif;
}

.step-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #ffe9db;
    color: var(--orange-dark, #cb5901);
    transition: background 300ms ease, color 300ms ease, transform 300ms ease;
}

.how-step:hover .step-icon {
    background: var(--orange, #fe6f01);
    color: #fff;
    transform: scale(1.05) rotate(-4deg);
}

.step-icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 2;
}

.step-title {
    font-family: "Manrope", sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--black, #171714);
    margin-bottom: 9px;
}

.step-desc {
    color: var(--gray, #706b61);
    font-size: 13px;
    line-height: 1.55;
    max-width: 260px;
    margin: 0 auto;
}

/* ---- CTA ---- */
.how-cta-wrapper {
    text-align: center;
    margin-top: 20px;
}

.how-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    border-radius: 100px;
    background: var(--orange, #fe6f01);
    color: var(--black, #171714);
    font-size: 14px;
    font-weight: 700;
    transition: transform 300ms ease, box-shadow 300ms ease;
    text-decoration: none;
}

.how-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(254, 111, 1, .28);
}

.how-cta svg {
    width: 18px;
    transition: transform 300ms ease;
}

.how-cta:hover svg {
    transform: translateX(6px);
}

/* ---- Responsive ---- */
/* Below the six-across range the cards get their full width back, so the
   original padding and type sizes come back with them. */
@media (max-width: 1240px) {
    .how-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .how-step {
        padding: 36px 28px 32px;
    }

    .step-number {
        top: 16px;
        right: 20px;
        font-size: 48px;
    }

    .step-icon {
        width: 64px;
        height: 64px;
        margin: 0 auto 20px;
    }

    .step-icon svg {
        width: 30px;
        height: 30px;
    }

    .step-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .step-desc {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* Three across on a small tablet leaves the card ~210px wide, and at that
   width the full-size corner numeral runs into the icon tile. Scale it back
   the way the mobile layout already does. */
@media (max-width: 880px) {
    .how-grid {
        gap: 18px;
    }

    .how-step {
        padding: 30px 20px 26px;
    }

    .step-number {
        top: 14px;
        right: 16px;
        font-size: 36px;
    }

    .step-icon {
        width: 56px;
        height: 56px;
        margin: 0 auto 16px;
    }

    .step-icon svg {
        width: 26px;
        height: 26px;
    }

    .step-title {
        font-size: 18px;
    }
}

@media (max-width: 640px) {
    .how-it-works {
        padding: var(--section-pad) 16px;
    }

    .how-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .how-step {
        padding: 28px 20px 24px;
    }

    .step-number {
        font-size: 36px;
        top: 12px;
        right: 16px;
    }

    .step-icon {
        width: 56px;
        height: 56px;
    }
    .step-icon svg {
        width: 26px;
        height: 26px;
    }

    .step-title {
        font-size: 18px;
    }
}