/* INSPIRE DRIVE public site — compact card chrome, aligned homepage */

:root {
    --drive-page-inset: 0;
    --drive-page-max: 90%;
    --drive-card-radius: 1.1rem;
}

.site-header {
    padding: 0;
    background-color: #173F91 !important;
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
    box-shadow: none;
}

.site-header .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    position: relative;
    width: 100%;
    max-width: none;
    min-height: 4.15rem;
    height: 4.15rem;
    padding: 0.28rem 0.9rem !important;
}

.drive-brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    z-index: 2;
    height: 100%;
    max-width: min(20rem, calc(100vw - 4.8rem));
    overflow: hidden;
    border-radius: 0.7rem;
    text-decoration: none;
    line-height: 0;
}

.drive-brand__logo {
    display: block;
    height: 100%;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: left center;
    border-radius: 0.7rem;
}

.site-header .site-navigation {
    flex: 1 1 auto;
    min-width: 0;
}

.site-header .site-navigation__panel {
    display: flex;
    align-items: center;
    width: 100%;
}

.site-header .site-navigation__links {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.1rem;
    width: 100%;
}

.site-header .site-navigation__primary,
.site-header .site-navigation__actions {
    display: flex;
    align-items: center;
    gap: 0.08rem;
}

.site-header .site-navigation__actions {
    margin-left: auto;
    gap: 0.35rem;
    z-index: 2;
}

@media (min-width: 1024px) {
    .site-header .site-navigation__primary {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
    }
}

.site-header .site-navigation__links > a,
.site-header .site-navigation__primary > a,
.site-header .site-navigation__actions > a,
.site-header .site-navigation__actions > form button {
    display: inline-flex;
    align-items: center;
    height: 2.05rem;
    padding: 0 0.65rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    line-height: 1;
}

.site-header .site-navigation__links > a.brand-primary,
.site-header .site-navigation__actions > a.brand-primary {
    height: 2.05rem;
    padding: 0 0.95rem;
    font-weight: 700;
}

.drive-home {
    color: #14233F;
    background: #E8ECF4;
    overflow-x: hidden;
    --drive-block-h: 24rem;
}

.drive-home .site-header {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none;
    padding: 0.28rem 0 0;
}

.drive-home .site-header .site-header__inner {
    width: 90%;
    max-width: none;
    margin-inline: auto;
    min-height: 4.15rem;
    height: 4.15rem;
    padding: 0.2rem 0.5rem 0.2rem 0.35rem !important;
    border-radius: var(--drive-card-radius);
    background-color: #173F91;
    box-shadow: 0 0.65rem 1.5rem rgba(18, 32, 58, 0.12);
}

.drive-home main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0 1.6rem;
    background: #E8ECF4;
}

.drive-home main > .drive-panel {
    width: 90%;
    max-width: none;
    margin-inline: auto;
    border-radius: var(--drive-card-radius);
    overflow: hidden;
    box-shadow: 0 0.65rem 1.5rem rgba(18, 32, 58, 0.08);
}

.drive-kicker {
    margin: 0 0 0.4rem;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8B5CF6;
}

.drive-kicker--ink {
    color: #173F91;
}

.drive-cta {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    min-height: 2.15rem;
    border-radius: 999px;
    background: #8B5CF6;
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: 0;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.drive-cta:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 0.45rem 1rem rgba(139, 92, 246, 0.28);
}

.drive-cta--ghost {
    background: transparent;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: none;
}

.drive-seats {
    margin: 1rem 0 0;
    color: #8B5CF6;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.drive-hero {
    position: relative;
    overflow: hidden;
    min-height: min(88vh, 48rem);
    display: grid;
    align-items: end;
}

/* Homepage hero: a bit taller. Width matches the other cards. */
.drive-home .drive-hero {
    min-height: 26.5rem;
    height: auto;
    max-height: none;
    align-items: center;
}

.drive-home .drive-hero__lockup {
    width: 100%;
    padding: 2.35rem 1.6rem;
}

.drive-home .drive-hero h1 {
    font-size: clamp(1.85rem, 4vw, 3.05rem);
    max-width: min(100%, 16ch);
}

.drive-home .drive-hero__sub {
    margin-top: 0.75rem;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.drive-home .drive-hero__promise {
    margin-top: 0.5rem;
    font-size: 0.98rem;
}

.drive-home .drive-hero__actions {
    margin-top: 1.2rem;
}

.drive-home .drive-split,
.drive-home .drive-film,
.drive-home .drive-parent,
.drive-home .drive-close,
.drive-home .drive-onboarding-link {
    height: var(--drive-block-h);
    min-height: var(--drive-block-h);
    max-height: var(--drive-block-h);
    box-sizing: border-box;
}

.drive-home .drive-split {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
}

.drive-home .drive-split--flip {
    grid-template-columns: 0.9fr 1.1fr;
}

.drive-home .drive-split img,
.drive-home .drive-film img {
    width: 100%;
    height: var(--drive-block-h);
    min-height: var(--drive-block-h);
    max-height: var(--drive-block-h);
    object-fit: cover;
    object-position: center;
}

.drive-home .drive-split__copy {
    padding: 1.15rem 1.4rem;
    min-height: 0;
    overflow: hidden;
    align-content: center;
}

.drive-home .drive-split__copy h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.drive-home .drive-parent,
.drive-home .drive-close {
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 1.15rem 1.4rem;
}

.drive-home .drive-parent p {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.drive-home .drive-parent__note {
    margin-top: 0.85rem;
    padding: 0.7rem 1.1rem;
}

.drive-home .drive-close h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.drive-home .drive-close .drive-cta {
    margin-top: 0.9rem;
}

.drive-home .drive-onboarding-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.4rem;
    background: #B8C2D0;
}

.drive-hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 68% 42%;
    animation: drive-ken 22s ease-out forwards;
    pointer-events: none;
}

.drive-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 12, 24, 0.82) 0%, rgba(8, 12, 24, 0.42) 42%, rgba(8, 12, 24, 0.08) 100%),
        linear-gradient(180deg, rgba(8, 12, 24, 0.12) 0%, rgba(8, 12, 24, 0.78) 100%);
    pointer-events: none;
}

.drive-hero__lockup {
    position: relative;
    z-index: 2;
    width: min(100%, 72rem);
    margin: 0 auto;
    padding: clamp(6.5rem, 12vw, 8.5rem) clamp(1.25rem, 4vw, 2rem) clamp(2.4rem, 5vw, 3.6rem);
    color: #fff;
    text-align: left;
}

.drive-hero h1 {
    margin: 0;
    max-width: min(100%, 18ch);
    font-size: clamp(2.15rem, 6.4vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: 800;
    overflow: visible;
    padding-right: 0.12em;
}

.drive-hero__brand,
.drive-hero__line {
    display: block;
}

.drive-hero__line {
    white-space: nowrap;
}

.drive-hero__sub {
    margin: 1.05rem 0 0;
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    font-weight: 600;
}

.drive-hero__promise {
    margin: 0.55rem 0 0;
    max-width: 28rem;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
}

.drive-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.7rem;
    align-items: center;
}

.drive-steps {
    background: #B8C2D0;
    padding: clamp(3rem, 6vw, 5rem) 1.5rem;
}

.drive-steps__inner {
    width: min(100%, 72rem);
    margin: 0 auto;
}

.drive-steps h2 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.22em 0.38em;
    margin: 0;
    max-width: none;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #12203A;
    overflow-wrap: normal;
    word-break: keep-all;
}

.drive-steps__phrase {
    display: inline-block;
    white-space: nowrap;
}

.drive-steps__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.drive-steps article {
    padding: 1.4rem 1.25rem;
    border: 1px solid #9AA6B8;
    border-radius: 1.1rem;
    background: #CBD3DE;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.drive-steps article:hover {
    transform: translateY(-6px);
    box-shadow: 0 1rem 1.8rem rgba(18, 32, 58, 0.08);
}

.drive-steps article span {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: #173F91;
}

.drive-steps article h3 {
    margin: 0.45rem 0 0;
    font-size: 1.2rem;
    font-weight: 800;
}

.drive-steps article p {
    margin: 0.45rem 0 0;
    color: #5C6B86;
    line-height: 1.5;
}

.drive-split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 28rem;
    background: #B8C2D0;
}

.drive-split--flip {
    grid-template-columns: 0.85fr 1.15fr;
}

.drive-split--flip img { order: 2; }
.drive-split--flip .drive-split__copy { order: 1; }

.drive-split img {
    width: 100%;
    height: 100%;
    min-height: 22rem;
    object-fit: cover;
    display: block;
    transition: transform 1.1s ease;
}

.drive-split:hover img {
    transform: scale(1.04);
}

.drive-split__copy {
    display: grid;
    align-content: center;
    padding: clamp(2.2rem, 5vw, 4.2rem);
}

.drive-split__copy h2 {
    margin: 0;
    max-width: 14ch;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #12203A;
}

.drive-split__copy h2.drive-slogan {
    display: flex;
    flex-wrap: wrap;
    gap: 0.22em 0.38em;
    max-width: none;
    overflow-wrap: normal;
    word-break: keep-all;
}

.drive-split__copy p {
    margin: 0.9rem 0 0;
    max-width: 32rem;
    color: #5C6B86;
    font-size: 1.08rem;
    line-height: 1.55;
    font-weight: 500;
}

.drive-split__copy .drive-cta {
    justify-self: start;
    margin-top: 1.5rem;
}

.drive-film {
    background: #050914;
}

.drive-film img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 22rem;
    object-fit: cover;
}

.drive-parent {
    background: #B8C2D0;
    padding: clamp(2.8rem, 6vw, 4.5rem) 1.5rem;
    text-align: center;
}

.drive-parent p {
    max-width: 40rem;
    margin: 0 auto;
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    line-height: 1.5;
    font-weight: 600;
    color: #12203A;
}

.drive-parent__note {
    display: block;
    max-width: 36rem;
    margin: 1.35rem auto 0;
    padding: 0.95rem 1.3rem;
    border: 1px solid #9AA6B8;
    border-radius: 1.1rem;
    background: #CBD3DE;
}

.drive-parent__note p {
    margin: 0;
    max-width: none;
    font-size: 1.08rem;
    font-style: italic;
    font-weight: 600;
    line-height: 1.45;
    color: #12203A;
}

.drive-close {
    background: #12203A;
    color: #fff;
    text-align: center;
    padding: clamp(3rem, 6vw, 4.5rem) 1.5rem 4rem;
}

.drive-close h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
}

.drive-close p {
    margin: 0.7rem 0 0;
    color: rgba(255, 255, 255, 0.78);
}

.drive-close .drive-cta {
    margin-top: 1.6rem;
}

.drive-reveal {
    opacity: 0;
    transform: translateY(2rem);
}

.drive-reveal.is-in {
    animation: drive-rise 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.drive-steps article:nth-child(1) { animation-delay: 0.05s; }
.drive-steps article:nth-child(2) { animation-delay: 0.12s; }
.drive-steps article:nth-child(3) { animation-delay: 0.2s; }

@keyframes drive-rise {
    from { opacity: 0; transform: translateY(2rem); }
    to { opacity: 1; transform: none; }
}

@keyframes drive-ken {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

@media (max-width: 860px) {
    .site-header .site-header__inner {
        min-height: 4.85rem;
        height: 4.85rem;
        padding: 0.35rem 0.8rem !important;
        gap: 0.5rem;
    }

    .drive-brand {
        max-width: calc(100vw - 4.75rem);
        height: 100%;
    }

    .drive-steps__grid,
    .drive-split,
    .drive-split--flip {
        grid-template-columns: 1fr;
    }

    .drive-split--flip img,
    .drive-split--flip .drive-split__copy {
        order: 0;
    }

    .drive-hero {
        min-height: min(78vh, 40rem);
        align-items: end;
    }

    .drive-home .site-header .site-header__inner {
        min-height: 3.7rem;
        height: 3.7rem;
    }

    .drive-home .drive-hero {
        min-height: 22rem;
        height: auto;
        max-height: none;
        align-items: end;
    }

    .drive-home .drive-hero__lockup {
        padding: 1.8rem 1.15rem 1.5rem;
    }

    .drive-home .drive-split,
    .drive-home .drive-film,
    .drive-home .drive-parent,
    .drive-home .drive-close,
    .drive-home .drive-onboarding-link {
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .drive-home .drive-split img,
    .drive-home .drive-film img {
        min-height: 13.5rem;
        height: 13.5rem;
        max-height: 13.5rem;
    }

    .drive-hero__photo {
        object-position: 72% 28%;
    }

    .drive-hero__shade {
        background:
            linear-gradient(180deg, rgba(8, 12, 24, 0.18) 0%, rgba(8, 12, 24, 0.22) 38%, rgba(8, 12, 24, 0.88) 100%);
    }

    .drive-hero__lockup {
        padding: 5.5rem 1.15rem 1.8rem;
    }

    .drive-hero h1 {
        max-width: none;
        font-size: clamp(1.85rem, 9vw, 2.7rem);
        line-height: 1.08;
    }

    .drive-hero__line {
        white-space: normal;
    }

    .drive-hero__actions {
        width: 100%;
    }

    .drive-hero__actions .drive-cta {
        flex: 1 1 11rem;
        min-height: 3rem;
    }
}

@media (max-width: 520px) {
    .drive-hero {
        min-height: 34rem;
    }

    .drive-home .drive-hero {
        min-height: 20rem;
        height: auto;
        max-height: none;
    }

    .drive-hero__photo {
        object-position: 78% 22%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .drive-hero__photo,
    .drive-reveal,
    .drive-reveal.is-in,
    .drive-split img,
    .drive-cta {
        animation: none;
        transition: none;
        transform: none;
        opacity: 1;
    }
}

.id-upload {
    position: relative;
    display: block;
}

.id-upload__hit {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    margin: 0;
    cursor: pointer;
    font-size: 0;
    z-index: 3;
}

.id-upload__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.55rem;
    padding: 1.45rem 1.2rem 1.2rem;
    border: 1.5px dashed #9AA8C2;
    border-radius: 1.25rem;
    background: #F4F7FB;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.id-upload:hover .id-upload__card,
.id-upload.is-dragover .id-upload__card {
    border-color: #173F91;
    background: #EEF3FB;
    box-shadow: 0 0 0 4px rgb(23 63 145 / .08);
}

.id-upload.has-file .id-upload__card {
    border-style: solid;
}

.id-upload.is-complete .id-upload__card {
    border-color: #1F7A4D;
    background: #F1FAF5;
}

.id-upload.is-error .id-upload__card {
    border-color: #B42318;
    background: #FEF3F2;
}

.id-upload__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: #173F91;
    color: #fff;
}

.id-upload.is-complete .id-upload__icon {
    background: #1F7A4D;
}

.id-upload__icon svg {
    width: 1.55rem;
    height: 1.55rem;
}

.id-upload__title {
    margin: 0;
    color: #12203A;
    font-size: 1.02rem;
    font-weight: 800;
}

.id-upload__hint {
    margin: 0;
    color: #5B6B86;
    font-size: 0.84rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.id-upload__browse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.15rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: #173F91;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    pointer-events: none;
}

.id-upload.is-complete .id-upload__browse {
    background: #1F7A4D;
}

.id-upload__progress {
    display: none;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    max-width: 18rem;
    margin-top: 0.35rem;
}

.id-upload.is-uploading .id-upload__progress {
    display: flex;
}

.id-upload__status:empty {
    display: none;
}

.id-upload__meter {
    flex: 1;
    height: 0.7rem;
    border-radius: 999px;
    background: #D8DEE8;
    overflow: hidden;
}

.id-upload__bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #173F91, #3B82F6);
    transition: width .12s linear;
}

.id-upload.is-complete .id-upload__bar {
    background: #1F7A4D;
}

.id-upload__pct {
    flex: 0 0 auto;
    min-width: 3.1rem;
    padding: 0.2rem 0.45rem;
    border-radius: 0.55rem;
    background: #fff;
    color: #173F91;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1;
}

.id-upload.is-complete .id-upload__pct {
    color: #1F7A4D;
}

.id-upload__status {
    margin: 0;
    color: #5B6B86;
    font-size: 0.78rem;
    font-weight: 700;
}
