/* Marketing-site polish on AIwave tokens. See docs/UI_STYLE_GUIDE.md. */

/* Default Blazor WASM error banner. Without this, #blazor-error-ui is always
   visible in the document (the hide/show rules live in the MAUI app.css, not
   the web stylesheet), which is what made vinfo.app look "crashed". */
#blazor-error-ui {
    background: #16181e;
    color: #bcc3d7;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1100;
}

#blazor-error-ui .reload {
    color: #cd99ff;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

#blazor-error-ui.show {
    display: block;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-primary, #805af5);
    outline-offset: 2px;
}

.rainbow-header.header-sticky.sticky {
    z-index: 200;
}

#car-plate-id,
#car-plate-closing,
.registration-ui .reg-input {
    font-size: clamp(1.15rem, 5vw, 2rem) !important;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.header-btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.header-btn .btn-default,
.header-btn .rainbow-gradient-btn,
.mkt-header-check,
.hamberger-button,
.popup-mobile-menu .close-button {
    min-height: 44px;
    min-width: 44px;
}

.header-btn a:focus-visible,
.header-btn button:focus-visible,
.mkt-header-check:focus-visible,
.hamberger-button:focus-visible,
.popup-mobile-menu .close-button:focus-visible,
.mkt-plate .btn-default:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.mkt-header-check {
    min-height: 44px;
    min-width: 44px;
}

.popup-mobile-menu .mkt-mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 0 8px;
}

.popup-mobile-menu .mkt-mobile-auth .btn-default {
    width: 100%;
    text-align: center;
}

/* .mkt-mobile-auth is a column flexbox - align-items defaults to stretch, which would
   otherwise force this inline-block gradient-bordered button to the full container width. */
.popup-mobile-menu .mkt-mobile-auth .rainbow-gradient-btn {
    align-self: flex-start;
}

.mkt-hero .inner {
    padding-top: 24px;
}

.mkt-hero .inner .title {
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
}

.mkt-hero .inner .description {
    padding: 0 !important;
    margin-bottom: 28px !important;
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1rem, 2.2vw, 1.25rem) !important;
    line-height: 1.5;
}

.mkt-hero .inner-shape {
    pointer-events: none;
}

@media (max-width: 767px) {
    .mkt-hero .inner {
        margin-top: 96px !important;
    }

    .mkt-hero .inner-shape {
        display: none;
    }

    .slider-style-1 .inner .header-caption span {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}

.mkt-plate .form-group {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.mkt-plate .form-group .btn-default {
    /* !important: the base .slider-style-1.variation-default …
       .btn-default rule (5 classes) outweighs this 3-class selector,
       so margin-top here was silently ignored. */
    margin-top: 20px !important;
    min-height: 48px;
    /* The template only makes this button full-width inside the hero
       (.slider-style-1.variation-default .inner), so the same component
       elsewhere (bottom CTA, smart-check page) rendered auto-width. */
    width: 100%;
}

/* That same base rule also draws a 1px divider line above the button
   (styled for a newsletter-style banner with a textarea above it) -
   floats disconnected here with nothing for it to divide. */
.mkt-plate .form-group .btn-default::before {
    display: none;
}

.mkt-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 0;
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.mkt-trust li {
    color: var(--color-body);
    font-size: var(--font-size-b3);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mkt-trust li + li::before {
    content: "·";
    margin: 0 4px;
    opacity: 0.6;
}

.mkt-section-lede {
    max-width: 40rem;
    margin: 0 auto 8px;
    color: var(--color-body);
}

.mkt-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

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

.mkt-check-tile {
    background: var(--color-dark);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 22px 20px 20px;
    min-height: 100%;
    height: 100%;
}

.mkt-check-tile i {
    color: var(--color-primary);
    font-size: 22px;
    margin-bottom: 12px;
    display: block;
}

.mkt-check-tile h3 {
    font-size: 1rem;
    margin: 0 0 8px;
    color: var(--color-heading);
}

.mkt-check-tile p {
    margin: 0;
    color: var(--color-body);
    font-size: var(--font-size-b3);
    line-height: 1.5;
}

.mkt-check-tile .rainbow-badge-card {
    margin-top: 12px;
}

.mkt-sample {
    background: var(--color-dark);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    overflow: hidden;
}

.mkt-sample__plate {
    display: inline-block;
    background: #f4d032;
    color: #111;
    font-weight: 800;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.12em;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.mkt-sample__name {
    font-size: 1.25rem;
    color: var(--color-heading);
    margin: 0 0 16px;
}

.mkt-sample__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

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

.mkt-sample__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--color-blackest);
    border-radius: var(--radius-small);
    padding: 12px 14px;
}

.mkt-sample__row span {
    color: var(--color-body);
}

.mkt-sample__ok {
    color: var(--color-success) !important;
    font-weight: 600;
}

.mkt-sample__lock {
    color: var(--color-secondary) !important;
    font-weight: 600;
}

.mkt-why {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

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

.mkt-why article {
    background: var(--color-dark);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px 24px;
}

.mkt-why article i {
    color: var(--color-primary);
    font-size: 22px;
    margin-bottom: 14px;
    display: block;
}

.mkt-why h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.mkt-why p {
    margin: 0;
    color: var(--color-body);
}

.mkt-article {
    padding-top: 20px;
}

.mkt-article__lede {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--color-body);
    margin-bottom: 32px;
}

.mkt-article__body {
    /*max-width: 46rem;*/
}

.mkt-article__body h3,
.mkt-article__body h4 {
    margin-top: 2rem;
}

.mkt-gate__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.mkt-compare {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mkt-compare table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
}

.mkt-compare th,
.mkt-compare td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    color: var(--color-body);
}

.mkt-compare th {
    color: var(--color-heading);
    font-weight: 600;
}

.mkt-compare td:not(:first-child),
.mkt-compare th:not(:first-child) {
    text-align: center;
}

.signup-area .input-label {
    display: block;
    text-align: left;
    margin: 16px 0 6px;
    color: var(--color-heading);
    font-size: var(--font-size-b3);
    font-weight: 500;
}

.signup-area .social-btn-grp--stack {
    flex-direction: column;
}

.signup-area .social-btn-grp--stack .btn-default {
    flex-basis: 100%;
    width: 100%;
}

.signup-area .auth-context {
    text-align: left;
}

.signup-area .auth-context__plate {
    display: inline-block;
    background: #f4d032;
    color: #111;
    font-weight: 800;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.12em;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}

@media (max-width: 991px) {
    .signup-area .right-wrapper {
        display: none;
    }

    .signup-area .close-button {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        z-index: 2;
    }

    .sign-up-box {
        min-height: auto;
        padding: 72px 20px 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rainbow-header.header-sticky.sticky {
        animation: none;
    }

    .mkt-hero .inner-shape img {
        animation: none !important;
    }
}

.active-dark-mode .mkt-check-tile,
.active-dark-mode .mkt-sample,
.active-dark-mode .mkt-why article,
.active-dark-mode .mkt-sample__row {
    background: var(--color-white);
    border-color: var(--color-border-light);
}

.active-dark-mode .mkt-check-tile h3,
.active-dark-mode .mkt-why h3,
.active-dark-mode .mkt-sample__name {
    color: var(--color-black);
}
