/*
|--------------------------------------------------------------------------
| MKGO - Drive Page
|--------------------------------------------------------------------------
|
| File:
| /assets/css/pages/drive.css
|
| Used by:
|
| /pages/drive.php
|
*/


/*
|--------------------------------------------------------------------------
| Main
|--------------------------------------------------------------------------
*/

.drive-main {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
}


/*
|--------------------------------------------------------------------------
| Hero
|--------------------------------------------------------------------------
*/

.drive-hero {
    position: relative;
    overflow: hidden;

    padding: 88px 0 82px;

    border-bottom: 1px solid #e2e8f0;

    background:
        linear-gradient(
            180deg,
            #f8fafc 0%,
            #ffffff 100%
        );
}


.drive-hero::after {
    content: "";

    position: absolute;

    top: -180px;
    right: -150px;

    width: 450px;
    height: 450px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(15, 23, 42, 0.055) 0%,
            rgba(15, 23, 42, 0) 70%
        );

    pointer-events: none;
}


.drive-hero .site-container {
    position: relative;
    z-index: 1;
}


.drive-hero .page-hero-content {
    width: 100%;
    max-width: 850px;
}


.drive-hero h1 {
    max-width: 820px;
    margin: 0;

    color: #0f172a;

    font-size: clamp(2.7rem, 6vw, 5rem);
    font-weight: 850;
    line-height: 1.02;
    letter-spacing: -0.055em;
}


.drive-hero .page-hero-description {
    max-width: 650px;

    margin: 24px 0 0;

    color: #64748b;

    font-size: 1.06rem;
    line-height: 1.75;
}


.drive-hero .page-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}


/*
|--------------------------------------------------------------------------
| Sections
|--------------------------------------------------------------------------
*/

.drive-main .content-section {
    position: relative;

    padding: 82px 0;

    background: #ffffff;

    scroll-margin-top: 100px;
}


.drive-main .content-section-alt {
    background: #f8fafc;
}


/*
|--------------------------------------------------------------------------
| Section Heading
|--------------------------------------------------------------------------
*/

.drive-main .section-heading {
    width: 100%;
    max-width: 770px;

    margin-bottom: 42px;
}


.drive-main .section-heading h2 {
    margin: 0 0 16px;

    color: #0f172a;

    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.04em;
}


.drive-main .section-heading > p:not(.page-eyebrow) {
    max-width: 680px;
    margin: 0;

    color: #64748b;

    line-height: 1.75;
}


/*
|--------------------------------------------------------------------------
| General Card Grid
|--------------------------------------------------------------------------
*/

.drive-main .content-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}


/*
|--------------------------------------------------------------------------
| Cards
|--------------------------------------------------------------------------
*/

.drive-main .content-card {
    position: relative;

    min-width: 0;

    padding: 27px;

    border: 1px solid #e2e8f0;
    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 8px 30px
        rgba(15, 23, 42, 0.035);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.drive-main .content-card:hover {
    transform: translateY(-3px);

    border-color: #cbd5e1;

    box-shadow:
        0 15px 38px
        rgba(15, 23, 42, 0.07);
}


.drive-main .content-card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 40px;
    height: 30px;

    margin-bottom: 21px;
    padding: 0 9px;

    border-radius: 8px;

    background: #f1f5f9;
    color: #64748b;

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}


.drive-main .content-card h3 {
    margin: 0 0 10px;

    color: #0f172a;

    font-size: 1.06rem;
    font-weight: 800;
    line-height: 1.4;
}


.drive-main .content-card p {
    margin: 0;

    color: #64748b;

    font-size: 0.9rem;
    line-height: 1.7;
}


/*
|--------------------------------------------------------------------------
| Onboarding
|--------------------------------------------------------------------------
*/

.drive-onboarding-section {
    scroll-margin-top: 100px;
}


.drive-main .steps-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}


.drive-main .onboarding-step {
    min-height: 225px;
}


.drive-main .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    margin-bottom: 22px;

    border-radius: 11px;

    background: #0f172a;
    color: #ffffff;

    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1;
}


.drive-main .onboarding-step.is-current-step {
    border-color: #0f172a;

    box-shadow:
        0 15px 40px
        rgba(15, 23, 42, 0.09);
}


/*
|--------------------------------------------------------------------------
| Split Layout
|--------------------------------------------------------------------------
*/

.drive-main .content-split {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(340px, 0.85fr);

    align-items: start;

    gap: 70px;
}


.drive-main .content-split-main h2 {
    max-width: 640px;

    margin: 0 0 18px;

    color: #0f172a;

    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.04em;
}


.drive-main
.content-split-main > p:not(.page-eyebrow) {
    max-width: 660px;

    margin: 0 0 17px;

    color: #64748b;

    line-height: 1.76;
}


/*
|--------------------------------------------------------------------------
| Feature List
|--------------------------------------------------------------------------
*/

.drive-main .feature-list {
    display: grid;
    gap: 12px;
}


.drive-main .feature-list-item {
    display: grid;

    grid-template-columns:
        34px
        minmax(0, 1fr);

    align-items: start;

    gap: 13px;

    padding: 17px;

    border: 1px solid #e2e8f0;
    border-radius: 13px;

    background: #ffffff;
}


.drive-main .feature-list-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    border-radius: 9px;

    background: #0f172a;
    color: #ffffff;

    font-size: 0.78rem;
    font-weight: 800;
}


.drive-main .feature-list-item strong {
    display: block;

    margin-bottom: 4px;

    color: #0f172a;

    font-size: 0.9rem;
    font-weight: 800;
}


.drive-main .feature-list-item p {
    margin: 0;

    color: #64748b;

    font-size: 0.82rem;
    line-height: 1.6;
}


/*
|--------------------------------------------------------------------------
| Important Approval Notice
|--------------------------------------------------------------------------
*/

.drive-main .content-notice {
    position: relative;

    max-width: 980px;

    padding: 32px 34px;

    border: 1px solid #e2e8f0;
    border-left: 5px solid #0f172a;

    border-radius:
        0
        18px
        18px
        0;

    background: #ffffff;
}


.drive-main .content-notice h2 {
    max-width: 760px;

    margin: 0 0 14px;

    color: #0f172a;

    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
}


.drive-main
.content-notice p:not(.page-eyebrow) {
    max-width: 820px;

    margin: 0 0 15px;

    color: #64748b;

    line-height: 1.72;
}


.drive-main
.content-notice p:last-child {
    margin-bottom: 0;
}


/*
|--------------------------------------------------------------------------
| Driver Status
|--------------------------------------------------------------------------
*/

.drive-main .driver-status-grid {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}


.drive-main .driver-status-card {
    padding-top: 24px;
}


.drive-main .driver-status-indicator {
    display: block;

    width: 28px;
    height: 4px;

    margin-bottom: 19px;

    border-radius: 999px;

    background: #cbd5e1;
}


/*
|--------------------------------------------------------------------------
| Highlight Cards
|--------------------------------------------------------------------------
*/

.drive-main .content-highlight {
    position: relative;

    min-width: 0;

    padding: 29px;

    border: 1px solid #e2e8f0;
    border-radius: 18px;

    background: #ffffff;
}


.drive-main .content-highlight::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 5px;
    height: 100%;

    border-radius:
        18px
        0
        0
        18px;

    background: #0f172a;
}


.drive-main .content-highlight h3 {
    margin: 0 0 14px;

    color: #0f172a;

    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.35;
}


.drive-main .content-highlight p {
    margin: 0 0 14px;

    color: #64748b;

    font-size: 0.9rem;
    line-height: 1.7;
}


.drive-main .content-highlight p:last-child {
    margin-bottom: 0;
}


/*
|--------------------------------------------------------------------------
| Final CTA
|--------------------------------------------------------------------------
*/

.drive-main .page-cta {
    padding: 76px 0;

    background: #0f172a;
    color: #ffffff;
}


.drive-main .page-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 48px;
}


.drive-main .page-cta .page-eyebrow {
    color: #94a3b8;
}


.drive-main .page-cta h2 {
    margin: 8px 0 10px;

    color: #ffffff;

    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
}


.drive-main .page-cta p {
    max-width: 620px;
    margin: 0;

    color: #cbd5e1;

    line-height: 1.7;
}


.drive-main .page-cta-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    flex: 0 0 auto;

    gap: 12px;
}


.drive-main
.page-cta
.site-primary-button {
    border-color: #ffffff;

    background: #ffffff;
    color: #0f172a;
}


.drive-main
.page-cta
.site-secondary-button {
    border-color: #475569;

    background: transparent;
    color: #ffffff;
}


.drive-main
.page-cta
.site-secondary-button:hover {
    border-color: #ffffff;

    background:
        rgba(255, 255, 255, 0.08);

    color: #ffffff;
}


/*
|--------------------------------------------------------------------------
| Reveal Animation
|--------------------------------------------------------------------------
*/

.drive-reveal-ready
.drive-main
[data-drive-reveal] {
    opacity: 0;

    transform: translateY(18px);

    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}


.drive-reveal-ready
.drive-main
[data-drive-reveal].is-visible {
    opacity: 1;

    transform: translateY(0);
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 1100px) {

    .drive-main .steps-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .drive-main .driver-status-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 992px) {

    .drive-hero {
        padding: 70px 0 64px;
    }


    .drive-main .content-section {
        padding: 66px 0;
    }


    .drive-main .content-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .drive-main
    .content-grid
    .content-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }


    .drive-main .content-split {
        grid-template-columns: 1fr;

        gap: 38px;
    }


    .drive-main .page-cta-inner {
        align-items: flex-start;
        flex-direction: column;

        gap: 28px;
    }

}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 640px) {

    .drive-hero {
        padding: 52px 0 48px;
    }


    .drive-hero h1 {
        font-size:
            clamp(
                2.3rem,
                12vw,
                3.3rem
            );
    }


    .drive-hero .page-hero-description {
        margin-top: 18px;

        font-size: 0.95rem;
    }


    .drive-hero .page-hero-actions {
        align-items: stretch;
        flex-direction: column;

        margin-top: 25px;
    }


    .drive-hero
    .page-hero-actions
    .site-primary-button,

    .drive-hero
    .page-hero-actions
    .site-secondary-button {
        width: 100%;
    }


    .drive-main .content-section {
        padding: 52px 0;
    }


    .drive-main .section-heading {
        margin-bottom: 30px;
    }


    .drive-main .section-heading h2,

    .drive-main .content-split-main h2 {
        font-size: 1.85rem;
    }


    .drive-main .content-grid,

    .drive-main .steps-grid,

    .drive-main .driver-status-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    .drive-main
    .content-grid
    .content-card:last-child:nth-child(odd) {
        grid-column: auto;
    }


    .drive-main .onboarding-step {
        min-height: 0;
    }


    .drive-main .content-card {
        padding: 22px;
    }


    .drive-main .feature-list-item {
        padding: 15px;
    }


    .drive-main .content-notice {
        padding: 26px 22px;
    }


    .drive-main .content-highlight {
        padding: 25px 22px;
    }


    .drive-main .page-cta {
        padding: 55px 0;
    }


    .drive-main .page-cta-actions {
        align-items: stretch;
        flex-direction: column;

        width: 100%;
    }


    .drive-main
    .page-cta-actions
    .site-primary-button,

    .drive-main
    .page-cta-actions
    .site-secondary-button {
        width: 100%;
    }

}


/*
|--------------------------------------------------------------------------
| Reduced Motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {

    .drive-main .content-card,

    .drive-reveal-ready
    .drive-main
    [data-drive-reveal] {
        transition: none;

        transform: none;
    }


    .drive-reveal-ready
    .drive-main
    [data-drive-reveal] {
        opacity: 1;
    }

}