/*-- -------------------------- -->
<---        How It Works         -->
<--- -------------------------- -*/

@media only screen and (min-width: 0rem) {
    #how-it-works {
        background-color: #11150F;
        padding: clamp(3.75rem, 7.82vw, 6.25rem) 1rem;
    }

    .hw-container {
        max-width: 75rem;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hw-eyebrow {
        font-size: 0.8125rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #22C55E;
        margin: 0 0 0.6rem;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    .hw-eyebrow::before {
        content: '';
        display: block;
        width: 3px;
        height: 1em;
        background: #22C55E;
        border-radius: 2px;
        flex-shrink: 0;
    }

    .hw-heading {
        font-size: clamp(1.75rem, 4vw, 2.75rem);
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        line-height: 1.15;
        color: #fff;
        margin: 0 0 clamp(2.5rem, 5vw, 4rem);
        max-width: 36rem;
    }

    .hw-steps {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        width: 100%;
    }

    .hw-step {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 22rem;
    }

    .hw-icon-wrap {
        position: relative;
        width: 5rem;
        height: 5rem;
        background-color: #1A1F17;
        border: 2px solid #22C55E;
        border-radius: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1.25rem;
        flex-shrink: 0;
    }

    .hw-icon {
        width: 2rem;
        height: 2rem;
        color: #22C55E;
        stroke-width: 1.75;
    }

    .hw-num {
        position: absolute;
        bottom: -0.6rem;
        right: -0.6rem;
        width: 1.4rem;
        height: 1.4rem;
        background-color: #22C55E;
        color: #11150F;
        font-size: 0.8rem;
        font-weight: 800;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    .hw-step-title {
        font-size: clamp(1.0625rem, 2vw, 1.25rem);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #fff;
        margin: 0 0 0.6rem;
    }

    .hw-step-text {
        font-size: 0.9375rem;
        line-height: 1.65;
        color: #a8b8a0;
        margin: 0;
    }

    /* Arrow — rotated 90deg on mobile to point down */
    .hw-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1.25rem 0;
        transform: rotate(90deg);
    }

    .hw-arrow svg {
        width: 3rem;
        height: 1.25rem;
    }

    .hw-cta {
        display: inline-block;
        margin-top: clamp(2.5rem, 5vw, 3.5rem);
        padding: 1rem 2.5rem;
        background-color: #22C55E;
        color: #11150F;
        font-size: 0.9375rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        text-decoration: none;
        border-radius: 0.375rem;
        transition: background-color 0.25s;
    }

    .hw-cta:hover {
        background-color: #16a34a;
    }
}

@media only screen and (min-width: 48rem) {
    .hw-steps {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: 0;
    }

    .hw-step {
        flex: 1;
        max-width: none;
    }

    .hw-arrow {
        transform: none;
        padding: 0;
        margin-top: 2.5rem; /* align with centre of icon */
        flex-shrink: 0;
        width: 4rem;
    }

    .hw-arrow svg {
        width: 100%;
        height: auto;
    }
}

@media only screen and (min-width: 64rem) {
    .hw-arrow {
        width: 5rem;
    }
}
