.how-it-works {
    padding-bottom: 4rem;
}

.hiw-hero {
    margin: 6rem auto 4.5rem;
    max-width: 50rem;

    @media (max-width: 767.98px) {
        margin: 2rem auto 3rem;
    }
}

.hiw-title {
    font-size: 2.8rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 2rem;
    text-transform: uppercase;

    @media (max-width: 767.98px) {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}

.hiw-lead {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-inline: auto;
    max-width: 44rem;

    /* Several centred lines are hard to read on a phone; the title stays centred. */
    @media (max-width: 767.98px) {
        font-size: 1.1rem;
        text-align: left;
    }
}

.hiw-lead--strong {
    font-weight: 600;
}

.hiw-stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 2.5rem auto 0;
    max-width: 44rem;

    @media (max-width: 575.98px) {
        gap: 0.5rem;
    }
}

.hiw-stat {
    background-color: rgba(var(--logo-color-rgb), 0.08);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    padding: 1.1rem 1rem;
}

.hiw-stat-value {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hiw-stat-label {
    color: var(--bs-secondary-color);
    font-size: 1rem;
    line-height: 1.3;
}

@media (max-width: 575.98px) {
    .hiw-stat {
        padding: 0.85rem 0.5rem;
    }

    .hiw-stat-value {
        font-size: 1.35rem;
    }

    .hiw-stat-label {
        font-size: 0.85rem;
    }
}

.hiw-section {
    margin-bottom: 4.5rem;

    @media (max-width: 767.98px) {
        margin-bottom: 3rem;
    }
}

.hiw-section--last {
    margin-bottom: 0;
}

.hiw-section-title {
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    position: relative;

    &::after {
        background: linear-gradient(90deg, rgba(var(--logo-color-rgb), 0.34) 0%, rgba(var(--logo-color-rgb), 0.08) 45%, rgba(var(--logo-color-rgb), 0) 100%);
        bottom: 0;
        content: "";
        height: 1px;
        left: 0;
        position: absolute;
        right: 0;
    }

    @media (max-width: 767.98px) {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
}

.hiw-section-title--plain {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0;

    &::after {
        display: none;
    }
}

.hiw-section-intro {
    max-width: 48rem;
}

.hiw-section-note {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.hiw-card {
    background-color: #fff;
    border: 1px solid rgba(var(--logo-color-rgb), 0.18);
    border-radius: 1rem;
    padding: 1.5rem;
}

.hiw-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hiw-card-text {
    color: var(--bs-secondary-color);
    font-size: 1.05rem;
    margin-bottom: 0;
}

.hiw-icon {
    align-items: center;
    background-color: rgba(var(--logo-color-rgb), 0.12);
    border-radius: 0.85rem;
    color: #a4527b;
    display: inline-flex;
    height: 3rem;
    justify-content: center;
    margin-bottom: 1rem;
    width: 3rem;
}

.hiw-steps {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1fr);
    margin: 0;

    @media (min-width: 992px) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.hiw-step {
    position: relative;
}

.hiw-step-number {
    color: #a4527b;
    font-size: 2.6rem;
    font-weight: 300;
    line-height: 1;
    position: absolute;
    right: 1.5rem;
    top: 1.25rem;
}

.hiw-founder {
    align-items: flex-start;
    display: flex;
    gap: 1.75rem;
    max-width: 52rem;

    @media (max-width: 575.98px) {
        flex-direction: column;
        gap: 1rem;
    }
}

.hiw-avatar {
    align-items: center;
    background: linear-gradient(135deg, var(--logo-color) 0%, #a4527b 100%);
    border-radius: 50%;
    color: #fff;
    display: flex;
    flex-shrink: 0;
    font-size: 1.6rem;
    font-weight: 600;
    height: 4.5rem;
    justify-content: center;
    letter-spacing: 0.04em;
    width: 4.5rem;
}

.hiw-founder-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0;
}

.hiw-founder-role {
    color: var(--bs-secondary-color);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.hiw-founder-story {
    border-left: 3px solid rgba(var(--logo-color-rgb), 0.45);
    font-style: italic;
    margin-bottom: 1rem;
    padding-left: 1rem;

    & p {
        margin-bottom: 0;
    }
}

.hiw-facts {
    color: var(--bs-secondary-color);
    display: flex;
    flex-wrap: wrap;
    font-size: 1rem;
    gap: 0.5rem 1.5rem;
    margin: 0;

    & li {
        align-items: center;
        display: inline-flex;
        gap: 0.4rem;
    }
}

.hiw-promises {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1fr);
    margin: 0;

    @media (min-width: 576px) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    @media (min-width: 992px) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.hiw-stores {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    margin: 1.5rem 0 0;
}

.hiw-store {
    align-items: center;
    background-color: #fff;
    border: 1px solid rgba(var(--logo-color-rgb), 0.18);
    border-radius: 0.85rem;
    display: flex;
    justify-content: center;
    min-height: 4.5rem;
    padding: 0.75rem 1rem;

    & img {
        max-height: 2rem;
        max-width: 100%;
        object-fit: contain;
    }
}

.hiw-store-name {
    font-weight: 600;
    text-align: center;
}

.hiw-next {
    background-color: rgba(var(--logo-color-rgb), 0.06);
    border-color: rgba(var(--logo-color-rgb), 0.24);
}

.hiw-next-label {
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.hiw-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0;

    & li {
        align-items: center;
        background-color: #fff;
        border: 1px solid rgba(var(--logo-color-rgb), 0.3);
        border-radius: 999px;
        display: inline-flex;
        font-size: 1rem;
        gap: 0.45rem;
        padding: 0.35rem 0.9rem;
    }
}

.hiw-contact {
    align-items: center;
    background-color: rgba(var(--logo-color-rgb), 0.12);
    border: 1px solid rgba(var(--logo-color-rgb), 0.3);
    border-radius: 1rem;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    padding: 2rem;

    @media (max-width: 991.98px) {
        align-items: stretch;
        flex-direction: column;
    }

    @media (max-width: 575.98px) {
        padding: 1.5rem;
    }
}

.hiw-contact-actions {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 0.75rem;

    .btn {
        align-items: center;
        display: inline-flex;
        gap: 0.45rem;
        justify-content: center;
        overflow-wrap: anywhere;
    }

    @media (max-width: 575.98px) {
        flex-direction: column;
    }
}
