/*
======================================================================
 ASCARS VEHICLE IDENTIFICATION
======================================================================
*/

.vi-page {
    min-height: 100vh;

    background:
        linear-gradient(
            rgba(3, 9, 16, .73),
            rgba(3, 9, 16, .95)
        ),
        url("/assets/img/home-bg.png")
        center top / cover fixed;
}

.vi-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.vi-eyebrow {
    margin-bottom: 14px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .18em;
    text-transform: uppercase;

    opacity: .48;
}


/* HERO */

.vi-hero {
    padding: 95px 0 55px;
}

.vi-hero-copy {
    max-width: 800px;
}

.vi-hero h1 {
    margin: 0;

    font-size: clamp(46px, 6vw, 78px);
    line-height: .98;

    letter-spacing: -.05em;
}

.vi-lead {
    margin: 25px 0 0;

    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.4;
}

.vi-description {
    max-width: 650px;

    margin: 15px 0 0;

    font-size: 15px;
    line-height: 1.7;

    opacity: .68;
}


/* WORKSPACE */

.vi-workspace-section {
    padding: 35px 0 105px;
}

.vi-workspace {
    overflow: hidden;

    display: grid;
    grid-template-columns: 1fr 1fr;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 15px;

    background: rgba(4,10,17,.76);

    box-shadow: 0 30px 80px rgba(0,0,0,.25);

    backdrop-filter: blur(12px);
}

.vi-selector-panel {
    padding: 29px;

    border-right: 1px solid rgba(255,255,255,.08);
}

.vi-panel-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 26px;
}

.vi-panel-top small {
    display: block;

    margin-bottom: 4px;

    font-size: 9px;
    letter-spacing: .14em;

    opacity: .38;
}

.vi-panel-top strong {
    font-size: 18px;
}

.vi-panel-top > span {
    padding: 5px 8px;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 4px;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .07em;

    opacity: .55;
}


/* VEHICLE TYPE */

.vi-family-tabs {
    display: flex;

    gap: 5px;

    margin-bottom: 27px;

    padding: 5px;

    border-radius: 8px;

    background: rgba(255,255,255,.035);
}

.vi-family-tabs button {
    flex: 1;

    min-height: 39px;

    border: 0;
    border-radius: 6px;

    background: transparent;

    color: inherit;

    font: inherit;
    font-size: 11px;

    opacity: .48;
}

.vi-family-tabs button.active {
    background: rgba(255,255,255,.09);

    font-weight: 700;

    opacity: 1;
}


/* SELECTORS */

.vi-fields {
    display: grid;

    gap: 17px;
}

.vi-field label {
    display: block;

    margin-bottom: 7px;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: .09em;

    opacity: .42;
}

.vi-select {
    min-height: 55px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 17px;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 8px;

    background: rgba(255,255,255,.035);

    font-size: 13px;
}

.vi-select strong {
    opacity: .42;
}

.vi-selector-action {
    margin-top: 24px;
}

.vi-selector-action button {
    width: 100%;
    min-height: 49px;

    border: 0;
    border-radius: 7px;

    background: #fff;
    color: #111820;

    font: inherit;
    font-size: 13px;
    font-weight: 800;
}


/* RESULT */

.vi-result-panel {
    padding: 30px;
}

.vi-result-label {
    margin-bottom: 24px;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .14em;

    opacity: .40;
}

.vi-brand-line {
    display: flex;
    align-items: center;

    gap: 18px;

    padding-bottom: 26px;

    border-bottom: 1px solid rgba(255,255,255,.07);
}

.vi-brand-mark {
    width: 61px;
    height: 61px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 61px;

    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;

    background: rgba(255,255,255,.055);

    font-size: 14px;
    font-weight: 800;
}

.vi-brand-line h2 {
    margin: 0;

    font-size: 25px;
}

.vi-brand-line p {
    margin: 7px 0 0;

    font-size: 13px;

    opacity: .55;
}

.vi-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    margin: 11px 0 0;
}

.vi-spec-grid > div {
    padding: 16px 8px 16px 0;

    border-bottom: 1px solid rgba(255,255,255,.055);
}

.vi-spec-grid span {
    display: block;

    margin-bottom: 5px;

    font-size: 9px;

    opacity: .38;
}

.vi-spec-grid strong {
    font-size: 12px;
}

.vi-result-actions {
    display: flex;

    gap: 9px;

    margin-top: 24px;
}

.vi-result-actions a {
    flex: 1;

    min-height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 7px;

    background: rgba(255,255,255,.045);

    color: inherit;

    text-decoration: none;

    font-size: 11px;
    font-weight: 700;
}


/* VIN */

.vi-vin-section {
    padding: 105px 0;

    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);

    background: rgba(0,0,0,.18);
}

.vi-vin-layout {
    display: grid;
    grid-template-columns: 1fr 470px;

    gap: 80px;

    align-items: center;
}

.vi-vin-copy h2,
.vi-heading h2,
.vi-api-layout h2,
.vi-final h2 {
    margin: 0;

    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.08;

    letter-spacing: -.035em;
}

.vi-vin-copy > p,
.vi-heading > p,
.vi-section-copy {
    max-width: 650px;

    margin: 18px 0 0;

    font-size: 15px;
    line-height: 1.75;

    opacity: .66;
}

.vi-vin-input {
    display: grid;
    grid-template-columns: auto 1fr auto;

    align-items: center;

    gap: 11px;

    margin-top: 31px;

    padding: 8px;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 9px;

    background: rgba(255,255,255,.04);
}

.vi-vin-input > span {
    padding-left: 8px;

    font-size: 9px;
    font-weight: 800;

    opacity: .42;
}

.vi-vin-input input {
    min-width: 0;
    height: 42px;

    border: 0;
    outline: 0;

    background: transparent;

    color: inherit;

    font-family: ui-monospace, monospace;
    font-size: 14px;

    letter-spacing: .13em;
}

.vi-vin-input button {
    height: 42px;

    padding: 0 17px;

    border: 0;
    border-radius: 6px;

    background: #fff;
    color: #111820;

    font: inherit;
    font-size: 11px;
    font-weight: 800;
}

.vi-vin-note {
    margin-top: 9px;

    font-size: 10px;

    opacity: .38;
}


/* API RESULT */

.vi-api-panel {
    overflow: hidden;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 11px;

    background: rgba(3,9,16,.72);
}

.vi-api-top {
    min-height: 47px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 17px;

    border-bottom: 1px solid rgba(255,255,255,.07);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .11em;

    opacity: .52;
}

.vi-api-panel pre {
    overflow: auto;

    margin: 0;

    padding: 23px;

    font-size: 12px;
    line-height: 1.7;
}


/* FLOW */

.vi-flow-section {
    padding: 105px 0;
}

.vi-heading {
    max-width: 760px;

    margin-bottom: 50px;
}

.vi-flow {
    display: grid;

    grid-template-columns:
        1fr auto
        1fr auto
        1fr auto
        1fr;

    align-items: center;

    gap: 11px;
}

.vi-flow-step {
    min-height: 145px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 20px;

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 9px;

    background: rgba(255,255,255,.035);
}

.vi-flow-step > span {
    margin-bottom: auto;

    font-size: 9px;
    font-weight: 800;

    opacity: .29;
}

.vi-flow-step strong {
    font-size: 16px;
}

.vi-flow-step small {
    margin-top: 5px;

    opacity: .43;
}

.vi-flow-active {
    border-color: rgba(255,255,255,.20);

    background: rgba(255,255,255,.075);
}

.vi-flow-arrow {
    font-size: 18px;

    opacity: .28;
}


/* ENDPOINTS */

.vi-api-section {
    padding: 105px 0;

    background: rgba(0,0,0,.19);
}

.vi-api-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;

    gap: 80px;

    align-items: center;
}

.vi-endpoints {
    overflow: hidden;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 11px;

    background: rgba(4,10,17,.60);
}

.vi-endpoints > div {
    min-height: 58px;

    display: grid;
    grid-template-columns: 58px 1fr;

    gap: 14px;

    align-items: center;

    padding: 0 18px;

    border-bottom: 1px solid rgba(255,255,255,.055);
}

.vi-endpoints > div:last-child {
    border-bottom: 0;
}

.vi-method {
    font-size: 9px;
    font-weight: 800;

    opacity: .48;
}

.vi-endpoints code {
    font-size: 12px;
}


/* FINAL */

.vi-final {
    padding: 70px 0 110px;
}

.vi-final-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 45px;

    padding: 43px;

    border: 1px solid rgba(255,255,255,.11);
    border-radius: 12px;

    background: rgba(255,255,255,.05);
}

.vi-final-actions {
    display: flex;

    gap: 10px;

    flex-shrink: 0;
}

.vi-final-actions a {
    min-height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 18px;

    border-radius: 7px;

    text-decoration: none;

    font-size: 11px;
    font-weight: 800;
}

.vi-primary {
    background: #fff;
    color: #111820;
}

.vi-secondary {
    border: 1px solid rgba(255,255,255,.18);

    color: inherit;
}


/* RESPONSIVE */

@media (max-width: 960px) {

    .vi-workspace,
    .vi-vin-layout,
    .vi-api-layout {
        grid-template-columns: 1fr;
    }

    .vi-selector-panel {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .vi-flow {
        grid-template-columns: 1fr;
    }

    .vi-flow-arrow {
        text-align: center;

        transform: rotate(90deg);
    }
}

@media (max-width: 680px) {

    .vi-shell {
        width: min(100% - 28px, 1180px);
    }

    .vi-hero {
        padding: 65px 0 35px;
    }

    .vi-workspace-section {
        padding-bottom: 70px;
    }

    .vi-vin-section,
    .vi-flow-section,
    .vi-api-section {
        padding: 70px 0;
    }

    .vi-family-tabs {
        display: block;
    }

    .vi-family-tabs button {
        width: 100%;
    }

    .vi-spec-grid {
        grid-template-columns: 1fr;
    }

    .vi-result-actions,
    .vi-final-actions {
        display: block;
    }

    .vi-result-actions a,
    .vi-final-actions a {
        margin-top: 8px;
    }

    .vi-vin-input {
        grid-template-columns: 1fr;
    }

    .vi-vin-input > span {
        padding: 4px 5px 0;
    }

    .vi-vin-input input {
        padding: 0 5px;
    }

    .vi-final-panel {
        display: block;
    }

    .vi-final-actions {
        margin-top: 28px;
    }
}
