/*
|--------------------------------------------------------------------------
| MKGO - How It Works
|--------------------------------------------------------------------------
|
| File:
| /assets/css/pages/how-it-works.css
|
*/


/*
|--------------------------------------------------------------------------
| Main
|--------------------------------------------------------------------------
*/

.how-it-works-main {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
}


/*
|--------------------------------------------------------------------------
| Hero
|--------------------------------------------------------------------------
*/

.how-it-works-hero {
    position: relative;
    overflow: hidden;

    padding: 88px 0 80px;

    border-bottom: 1px solid #e2e8f0;

    background:
        linear-gradient(
            180deg,
            #f8fafc 0%,
            #ffffff 100%
        );
}


.how-it-works-hero::before {
    content: "";

    position: absolute;
    top: -220px;
    right: -160px;

    width: 520px;
    height: 520px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(15, 23, 42, 0.06) 0%,
            rgba(15, 23, 42, 0) 70%
        );

    pointer-events: none;
}


.how-it-works-hero .site-container {
    position: relative;
    z-index: 1;
}


.how-it-works-hero .page-hero-content {
    max-width: 850px;
}


.how-it-works-hero h1 {
    max-width: 820px;

    margin: 0;

    color: #0f172a;

    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 850;
    line-height: 1.02;
    letter-spacing: -0.055em;
}


.how-it-works-hero .page-hero-description {
    max-width: 670px;

    margin: 24px 0 0;

    color: #64748b;

    font-size: 1.05rem;
    line-height: 1.75;
}


.how-it-works-hero .page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 30px;
}


/*
|--------------------------------------------------------------------------
| Journey Navigation
|--------------------------------------------------------------------------
*/

.journey-navigation {
    position: relative;
    z-index: 10;

    border-bottom: 1px solid #e2e8f0;

    background: #ffffff;
}


.journey-navigation-inner {
    display: flex;
    align-items: stretch;

    overflow-x: auto;

    scrollbar-width: none;
}


.journey-navigation-inner::-webkit-scrollbar {
    display: none;
}


.journey-navigation-link {
    position: relative;

    display: flex;
    align-items: center;
    gap: 9px;

    flex: 0 0 auto;

    min-height: 66px;

    padding: 0 22px;

    border-bottom: 2px solid transparent;

    color: #64748b;

    text-decoration: none;

    font-size: 0.82rem;
    font-weight: 700;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}


.journey-navigation-link:hover {
    color: #0f172a;
    background: #f8fafc;
}


.journey-navigation-link.is-active {
    border-bottom-color: #0f172a;

    color: #0f172a;
}


.journey-navigation-link:focus-visible {
    outline: 2px solid #0f172a;
    outline-offset: -3px;
}


.journey-navigation-number {
    color: #94a3b8;

    font-size: 0.7rem;
    font-weight: 800;
}


/*
|--------------------------------------------------------------------------
| Sections
|--------------------------------------------------------------------------
*/

.how-it-works-main .content-section {
    padding: 80px 0;

    scroll-margin-top: 105px;
}


.how-it-works-main .content-section-alt {
    background: #f8fafc;
}


.how-it-works-main .section-heading {
    max-width: 760px;

    margin-bottom: 38px;
}


.how-it-works-main .section-heading h2,
.how-it-works-main .content-split-main h2 {
    margin: 0;

    color: #0f172a;

    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 820;
    line-height: 1.12;
    letter-spacing: -0.04em;
}


.how-it-works-main .section-heading > p:last-child,
.how-it-works-main .content-split-main > p {
    max-width: 680px;

    color: #64748b;

    line-height: 1.75;
}


.how-it-works-main .section-heading > p:last-child {
    margin: 17px 0 0;
}


.how-it-works-main .content-split-main > p {
    margin: 17px 0 0;
}


/*
|--------------------------------------------------------------------------
| Step Grid
|--------------------------------------------------------------------------
*/

.how-it-works-main .steps-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}


/*
|--------------------------------------------------------------------------
| Content Grid
|--------------------------------------------------------------------------
*/

.how-it-works-main .content-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;
}


/*
|--------------------------------------------------------------------------
| Cards
|--------------------------------------------------------------------------
*/

.how-it-works-main .content-card {
    position: relative;

    min-width: 0;

    padding: 27px;

    border: 1px solid #e2e8f0;
    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 5px 20px
        rgba(15, 23, 42, 0.025);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.how-it-works-main .content-card:hover {
    transform: translateY(-3px);

    border-color: #cbd5e1;

    box-shadow:
        0 14px 32px
        rgba(15, 23, 42, 0.065);
}


.how-it-works-main .content-card h3 {
    margin: 19px 0 9px;

    color: #0f172a;

    font-size: 1rem;
    font-weight: 780;
    line-height: 1.35;
}


.how-it-works-main .content-grid .content-card h3 {
    margin-top: 0;
}


.how-it-works-main .content-card p {
    margin: 0;

    color: #64748b;

    font-size: 0.88rem;
    line-height: 1.7;
}


/*
|--------------------------------------------------------------------------
| Step Number
|--------------------------------------------------------------------------
*/

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 11px;

    background: #0f172a;
    color: #ffffff;

    font-size: 0.8rem;
    font-weight: 800;
}


/*
|--------------------------------------------------------------------------
| Journey Step
|--------------------------------------------------------------------------
*/

.journey-step::after {
    content: "";

    position: absolute;
    top: 45px;
    right: -17px;

    width: 17px;
    height: 1px;

    background: #cbd5e1;
}


.journey-step:nth-child(4n)::after,
.journey-step:last-child::after {
    display: none;
}


/*
|--------------------------------------------------------------------------
| Content Split
|--------------------------------------------------------------------------
*/

.how-it-works-main .content-split {
    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(320px, 0.95fr);

    align-items: start;

    gap: 70px;
}


.how-it-works-main .content-split-main {
    min-width: 0;
}


.how-it-works-main .content-split-side {
    min-width: 0;
}


/*
|--------------------------------------------------------------------------
| Feature List
|--------------------------------------------------------------------------
*/

.how-it-works-main .feature-list {
    display: grid;
    gap: 12px;
}


.how-it-works-main .feature-list-item {
    display: flex;
    align-items: flex-start;

    gap: 14px;

    padding: 19px;

    border: 1px solid #e2e8f0;
    border-radius: 14px;

    background: #ffffff;
}


.how-it-works-main .feature-list-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 29px;
    height: 29px;

    border-radius: 9px;

    background: #0f172a;
    color: #ffffff;

    font-size: 0.76rem;
    font-weight: 800;
}


.how-it-works-main .feature-list-item strong {
    display: block;

    margin: 2px 0 5px;

    color: #0f172a;

    font-size: 0.88rem;
    font-weight: 760;
}


.how-it-works-main .feature-list-item p {
    margin: 0;

    color: #64748b;

    font-size: 0.82rem;
    line-height: 1.6;
}


/*
|--------------------------------------------------------------------------
| Highlight
|--------------------------------------------------------------------------
*/

.how-it-works-main .content-highlight {
    padding: 30px;

    border: 1px solid #cbd5e1;
    border-radius: 18px;

    background: #0f172a;
    color: #ffffff;
}


.how-it-works-main .content-highlight .page-eyebrow {
    color: #94a3b8;
}


.how-it-works-main .content-highlight h3 {
    margin: 8px 0 13px;

    color: #ffffff;

    font-size: 1.45rem;
    font-weight: 780;
    line-height: 1.25;
    letter-spacing: -0.025em;
}


.how-it-works-main .content-highlight p {
    margin: 0;

    color: #cbd5e1;

    font-size: 0.9rem;
    line-height: 1.7;
}


/*
|--------------------------------------------------------------------------
| Page Actions
|--------------------------------------------------------------------------
*/

.how-it-works-main .page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 12px;

    margin-top: 30px;
}


/*
|--------------------------------------------------------------------------
| Final CTA
|--------------------------------------------------------------------------
*/

.how-it-works-main .page-cta {
    padding: 74px 0;

    background: #0f172a;
    color: #ffffff;
}


.how-it-works-main .page-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 45px;
}


.how-it-works-main .page-cta .page-eyebrow {
    color: #94a3b8;
}


.how-it-works-main .page-cta h2 {
    margin: 7px 0 10px;

    color: #ffffff;

    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 820;
    line-height: 1.1;
    letter-spacing: -0.04em;
}


.how-it-works-main .page-cta p {
    max-width: 620px;

    margin: 0;

    color: #cbd5e1;

    line-height: 1.7;
}


.how-it-works-main .page-cta-actions {
    display: flex;
    flex-wrap: wrap;

    flex: 0 0 auto;

    gap: 12px;
}


.how-it-works-main
.page-cta
.site-primary-button {
    border-color: #ffffff;

    background: #ffffff;
    color: #0f172a;
}


.how-it-works-main
.page-cta
.site-secondary-button {
    border-color: #475569;

    background: transparent;
    color: #ffffff;
}


.how-it-works-main
.page-cta
.site-secondary-button:hover {
    border-color: #ffffff;

    background:
        rgba(255, 255, 255, 0.08);

    color: #ffffff;
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 1100px) {

    .how-it-works-main .steps-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .journey-step:nth-child(4n)::after {
        display: block;
    }


    .journey-step:nth-child(2n)::after,
    .journey-step:last-child::after {
        display: none;
    }

}


@media (max-width: 992px) {

    .how-it-works-hero {
        padding: 68px 0 62px;
    }


    .how-it-works-main .content-section {
        padding: 64px 0;
    }


    .how-it-works-main .content-split {
        grid-template-columns: 1fr;

        gap: 34px;
    }


    .how-it-works-main .page-cta-inner {
        align-items: flex-start;
        flex-direction: column;

        gap: 28px;
    }

}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 700px) {

    .how-it-works-main .content-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 640px) {

    .how-it-works-hero {
        padding: 50px 0 46px;
    }


    .how-it-works-hero h1 {
        font-size:
            clamp(
                2.25rem,
                12vw,
                3.2rem
            );
    }


    .how-it-works-hero .page-hero-description {
        margin-top: 18px;

        font-size: 0.94rem;
    }


    .how-it-works-hero .page-hero-actions {
        align-items: stretch;
        flex-direction: column;

        margin-top: 24px;
    }


    .how-it-works-hero
    .page-hero-actions
    .site-primary-button,

    .how-it-works-hero
    .page-hero-actions
    .site-secondary-button {
        width: 100%;
    }


    .journey-navigation-link {
        min-height: 58px;

        padding: 0 16px;

        font-size: 0.76rem;
    }


    .how-it-works-main .content-section {
        padding: 52px 0;
    }


    .how-it-works-main .section-heading {
        margin-bottom: 28px;
    }


    .how-it-works-main .section-heading h2,
    .how-it-works-main .content-split-main h2 {
        font-size: 1.8rem;
    }


    .how-it-works-main .steps-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }


    .journey-step::after,
    .journey-step:nth-child(4n)::after,
    .journey-step:nth-child(2n)::after {
        display: none;
    }


    .how-it-works-main .content-card {
        padding: 22px;
    }


    .how-it-works-main .content-highlight {
        padding: 24px;
    }


    .how-it-works-main .page-actions {
        align-items: stretch;
        flex-direction: column;
    }


    .how-it-works-main
    .page-actions
    .site-primary-button,

    .how-it-works-main
    .page-actions
    .site-secondary-button {
        width: 100%;
    }


    .how-it-works-main .page-cta {
        padding: 55px 0;
    }


    .how-it-works-main .page-cta-actions {
        align-items: stretch;
        flex-direction: column;

        width: 100%;
    }


    .how-it-works-main
    .page-cta-actions
    .site-primary-button,

    .how-it-works-main
    .page-cta-actions
    .site-secondary-button {
        width: 100%;
    }

}


/*
|--------------------------------------------------------------------------
| Reduced Motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {

    .journey-navigation-link,
    .how-it-works-main .content-card {
        transition: none;
    }


    .how-it-works-main .content-card:hover {
        transform: none;
    }

}