/*
 * CarTraceAI visual system — Evidence Trace, revision 2.
 *
 * This layer turns the functional foundation into one recognisable product:
 * a CT trace monogram, a single geometric icon family, evidence rails and
 * vehicle-dossier surfaces. It uses no framework, runtime icon package,
 * remote font, stock illustration or decorative claim the product cannot make;
 * reviewed interface paths are vendored and rendered by the native PHP layer.
 */

:root {
    --brand-ink: #071b2e;
    --brand-slate: #17344d;
    --brand-blue: #1f63ed;
    --brand-blue-deep: #1248b8;
    --brand-cyan: #0ba5c4;
    --brand-ice: #edf4ff;
    --brand-mist: #f4f7fb;
    --brand-line: #cfdae7;
    --brand-amber: #da7a16;
    --brand-shadow: 0 28px 70px rgb(7 27 46 / 13%);
}

body {
    background: var(--brand-mist);
}

h1,
h2,
h3 {
    color: var(--brand-ink);
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.75rem, 6.4vw, 5.35rem);
    font-weight: 780;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 760;
    letter-spacing: -0.048em;
}

.shell {
    width: min(100% - 2rem, 78rem);
}

/* --- one mark, one icon language --------------------------------------- */

.wordmark {
    gap: 0.62rem;
    color: var(--brand-ink);
    font-size: 1.06rem;
    font-weight: 790;
    letter-spacing: -0.035em;
}

.wordmark__mark {
    box-sizing: border-box;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    padding: 0.34rem;
    border-radius: 0.7rem;
    background: var(--brand-blue);
    color: white;
    transform: none;
}

.wordmark__accent {
    color: var(--brand-blue);
}

.wordmark--footer .wordmark__mark {
    background: #173750;
    color: #8db8ff;
}

.wordmark--footer,
.wordmark--footer:hover {
    color: white;
}

.icon {
    width: var(--public-icon-inline, 1.25rem);
    height: var(--public-icon-inline, 1.25rem);
    flex: 0 0 auto;
    vertical-align: -0.2em;
}

.icon--nav {
    width: var(--public-icon-inline, 1.25rem);
    height: var(--public-icon-inline, 1.25rem);
}

.icon--proof,
.icon--feature {
    width: var(--public-icon-inline, 1.25rem);
    height: var(--public-icon-inline, 1.25rem);
}

.icon--process {
    width: var(--public-icon-standard, 1.5rem);
    height: var(--public-icon-standard, 1.5rem);
}

.icon--coverage {
    width: var(--public-icon-standard, 1.5rem);
    height: var(--public-icon-standard, 1.5rem);
}

.icon--information {
    width: var(--public-icon-inline, 1.25rem);
    height: var(--public-icon-inline, 1.25rem);
}

.icon--signal {
    width: var(--public-icon-inline, 1.25rem);
    height: var(--public-icon-inline, 1.25rem);
}

/* --- navigation --------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    border-bottom-color: rgb(164 184 205 / 55%);
    background: rgb(255 255 255 / 94%);
    box-shadow: 0 1px 0 rgb(7 27 46 / 3%);
    backdrop-filter: blur(18px) saturate(130%);
}

.site-header__inner {
    min-height: 5rem;
}

.primary-nav {
    gap: clamp(1.25rem, 2.5vw, 2.4rem);
}

.primary-nav a {
    position: relative;
    color: #38536b;
    font-size: 0.86rem;
    font-weight: 680;
}

.primary-nav a::after {
    position: absolute;
    inset: auto 50% -0.55rem;
    height: 2px;
    background: var(--brand-blue);
    content: "";
    transform: scaleX(0);
    transform-origin: center;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
    transform: scaleX(1);
}

.mobile-nav summary,
.language-menu summary {
    border-color: transparent;
    background: transparent;
    color: var(--brand-slate);
}

.mobile-nav[open] summary,
.language-menu[open] summary {
    background: var(--brand-ice);
    color: var(--brand-blue);
}

.button {
    border-radius: 0.7rem;
    font-weight: 720;
}

.button--primary {
    background: var(--brand-blue);
    box-shadow: 0 9px 22px rgb(31 99 237 / 22%);
}

.button--primary:hover {
    background: var(--brand-blue-deep);
    box-shadow: 0 11px 26px rgb(18 72 184 / 26%);
}

/* --- hero: a vehicle evidence desk, not a generic SaaS splash ----------- */

.product-hero {
    isolation: isolate;
    padding-block: clamp(3.2rem, 7vw, 6.4rem) 0;
    background:
        linear-gradient(90deg, rgb(207 218 231 / 28%) 1px, transparent 1px) 0 0 / 4.5rem 4.5rem,
        linear-gradient(rgb(207 218 231 / 22%) 1px, transparent 1px) 0 0 / 4.5rem 4.5rem,
        linear-gradient(118deg, #fbfdff 0%, #f2f7ff 58%, #e9f2ff 100%);
}

.product-hero::before {
    inset: 5% -9rem auto auto;
    width: min(48vw, 38rem);
    height: min(48vw, 38rem);
    border: 1px solid rgb(31 99 237 / 13%);
    border-radius: 22% 78% 48% 52% / 42% 32% 68% 58%;
    transform: rotate(12deg);
}

.product-hero::after {
    inset: auto auto 4.5rem -9rem;
    width: 18rem;
    height: 18rem;
    border: 1px dashed rgb(31 99 237 / 18%);
    border-radius: 50%;
}

.product-hero__grid {
    gap: clamp(2.6rem, 6vw, 6rem);
}

.product-hero__copy {
    max-width: 46rem;
}

.product-hero__copy h1 {
    max-width: 10.5ch;
}

.product-hero__copy .lead {
    max-width: 39rem;
    color: #36536c;
    font-size: clamp(1.04rem, 1.8vw, 1.22rem);
    line-height: 1.65;
}

.eyebrow {
    gap: 0.7rem;
    color: var(--brand-blue);
    font-size: 0.72rem;
    font-weight: 790;
    letter-spacing: 0.115em;
}

.eyebrow > span {
    position: relative;
    width: 1.9rem;
    height: 1px;
    background: currentColor;
}

.eyebrow > span::after {
    position: absolute;
    inset: -0.2rem 0 auto auto;
    width: 0.42rem;
    height: 0.42rem;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: white;
    content: "";
}

.hero-proof {
    gap: 0.75rem 1.35rem;
    margin-block-start: 1.75rem;
}

.hero-proof li {
    color: #39536b;
    font-size: 0.8rem;
}

.hero-proof .hero-proof__icon {
    display: grid;
    width: var(--icon-size-control);
    height: var(--icon-size-control);
    place-items: center;
    border: 1px solid #b9e0ce;
    background: #edfaf3;
    color: #08774a;
}

/* --- evidence flow ------------------------------------------------------ */

.section {
    padding-block: clamp(3.8rem, 7vw, 6.8rem);
}

.section-heading {
    margin-block-end: clamp(2.2rem, 4.5vw, 3.7rem);
}

.section-heading > p:last-child,
.section-heading--split > p {
    color: #4c6479;
    line-height: 1.7;
}

.process-grid {
    position: relative;
    gap: 1rem;
}

.process-grid::before {
    position: absolute;
    z-index: 0;
    inset: 2.25rem 10% auto;
    border-top: 1px dashed #8fb1db;
    content: "";
}

.process-grid > li {
    min-height: 16rem;
    padding: 1.45rem;
    border-color: #cbd8e5;
    border-radius: 0.9rem;
    background: white;
    box-shadow: 0 10px 28px rgb(7 27 46 / 5%);
}

.process-grid > li::after {
    position: absolute;
    inset: auto 1.4rem 1.25rem auto;
    width: 2.8rem;
    height: 0.7rem;
    border-bottom: 1px solid #d0dce9;
    border-left: 1px solid #d0dce9;
    content: "";
}

.process-grid__number {
    color: #7790a7;
}

.process-grid__icon {
    z-index: 1;
    display: grid;
    width: var(--icon-size-feature);
    height: var(--icon-size-feature);
    margin-block-end: 2.2rem;
    place-items: center;
    border-color: #bad0ee;
    border-radius: 0.72rem;
    background: var(--brand-ice);
    color: var(--brand-blue);
}

.process-grid__icon::before,
.process-grid__icon::after {
    content: none;
}

.coverage-section {
    background:
        linear-gradient(90deg, rgb(207 218 231 / 20%) 1px, transparent 1px) 0 0 / 5rem 5rem,
        #edf2f7;
}

.coverage-grid {
    gap: 0;
    overflow: hidden;
    border: 1px solid #c4d2e0;
    border-radius: 1.15rem;
    background: #c4d2e0;
}

.coverage-grid article {
    position: relative;
    min-height: 12.5rem;
    padding: 1.4rem;
    border: 0;
    border-radius: 0;
    background: white;
    box-shadow: none;
}

.coverage-grid__icon {
    width: var(--icon-size-feature);
    height: var(--icon-size-feature);
    margin-block-end: 1.4rem;
    border: 1px solid #c5d7f0;
    border-radius: 0.72rem;
    background: var(--brand-ice);
    color: var(--brand-blue);
}

.coverage-grid h3 {
    margin-block-end: 0.45rem;
}

.coverage-note {
    border-color: #bfd0e2;
    border-radius: 0.8rem;
    background: #f8fbff;
}

.coverage-note > span {
    display: grid;
    border: 0;
    color: var(--brand-blue);
}

/* --- report preview: the product's visual proof ------------------------ */

.section--report {
    overflow: hidden;
    background:
        linear-gradient(90deg, rgb(111 153 194 / 10%) 1px, transparent 1px) 0 0 / 4.5rem 4.5rem,
        linear-gradient(rgb(111 153 194 / 8%) 1px, transparent 1px) 0 0 / 4.5rem 4.5rem,
        linear-gradient(140deg, #061827, #0b2d4b 70%, #0c3859);
}

.report-benefits > li > span {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid #315675;
    border-radius: 50%;
    color: #8cb5ef;
}

.report-window {
    border-radius: 1rem;
    box-shadow: 0 42px 100px rgb(0 8 18 / 50%);
    transform: rotate(0.35deg);
}

.report-window__bar {
    background: #eef3f8;
}

.report-window__bar > span {
    width: 0.42rem;
    height: 0.42rem;
    background: #9fb0c0;
}

.report-window__address {
    border: 1px solid #d5e0eb;
    background: white;
}

.report-window__rail {
    background: #071b2e;
}

.report-window__mini-mark {
    width: 1rem;
    height: 1rem;
    border: 2px solid #75a6f6;
    border-radius: 0.3rem;
    background: transparent;
}

/* Translated copy — see the --font-mono note above. */
.source-badge {
    border-radius: 0.45rem;
    letter-spacing: 0.02em;
}

.signal-grid {
    gap: 0.6rem;
}

.signal-card {
    border-radius: 0.65rem;
}

.signal-card__icon {
    border-radius: 0.55rem;
}

/* --- pricing and FAQ ---------------------------------------------------- */

.price-card,
.pricing-card {
    border-radius: 1rem;
}

.price-card {
    border-color: #c5d2df;
    background: #f8fafc;
}

.price-card--featured {
    border-color: #8cb0e9;
    background:
        linear-gradient(90deg, rgb(31 99 237 / 5%) 1px, transparent 1px) 0 0 / 2rem 2rem,
        white;
}

.price-card__feature-icon {
    display: grid;
    width: var(--icon-size-feature);
    height: var(--icon-size-feature);
    place-items: center;
    border: 1px solid #b9e0ce;
    border-radius: 0.45rem;
    background: #edfaf3;
    color: #08774a;
}

.price-card li .price-card__feature-icon--planned {
    border-color: #c4d0df;
    background: #f2f5f9;
    color: #536a86;
}

.pricing-card__list-mark {
    display: inline-grid;
    width: 1.5rem;
    height: 1.5rem;
    flex: 0 0 auto;
    align-self: center;
    place-items: center;
}

.pricing-card__list-mark--available {
    color: #08774a;
}

.pricing-card__list-mark--planned {
    color: #536a86;
}

.pricing-card__list-icon {
    width: var(--public-icon-inline, 1.25rem);
    height: var(--public-icon-inline, 1.25rem);
}

.pricing-card__group {
    min-width: 0;
    flex: 1 1 auto;
}

.pricing {
    min-height: calc(100vh - 20rem);
    background:
        linear-gradient(90deg, rgb(207 218 231 / 20%) 1px, transparent 1px) 0 0 / 5rem 5rem,
        linear-gradient(180deg, #f8fbff, #eef3f8);
}

/*
 * --font-mono is for identifiers a person reads character by character — a VIN,
 * a step number, a URL. It must never carry translated prose: the stack is
 * ui-monospace/SFMono/Consolas/Liberation Mono, none of which has a Georgian or
 * Armenian glyph, so a Georgian label set in it fell through the whole stack to
 * an unpredictable last-resort face — a third font on a page that should have
 * had two.
 */
.pricing__eyebrow,
.pricing-card__eyebrow {
    letter-spacing: 0.09em;
}

.pricing__title {
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    letter-spacing: -0.055em;
}

.pricing__grid {
    max-width: 64rem;
}

.pricing-card {
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-color: #c5d2df;
}

.pricing-card--available {
    position: relative;
    border-color: #7fa7e5;
    background: white;
    box-shadow: 0 24px 60px rgb(7 27 46 / 10%);
}

.pricing-card--available::before {
    position: absolute;
    inset: 0 0 auto;
    height: 0.3rem;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
    content: "";
}

.pricing-card--planned {
    background: #edf1f5;
}

.pricing-card__list li {
    border-color: #d8e1ea;
}

.pricing__why {
    border: 1px solid #c3d5ed;
    border-left: 0.3rem solid var(--brand-blue);
    border-radius: 0.75rem;
    background: white;
}

.faq-section {
    background: #f7f9fc;
}

.faq-list details {
    border-color: #bfcddb;
}

.faq-list summary {
    font-weight: 700;
}

/* --- footer ------------------------------------------------------------- */

.site-footer {
    position: relative;
    background:
        linear-gradient(90deg, rgb(111 153 194 / 8%) 1px, transparent 1px) 0 0 / 4rem 4rem,
        #051522;
}

.site-footer::before {
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3f76a6, transparent);
    content: "";
}

.site-footer__status {
    border-color: #27435b;
    border-radius: 0.75rem;
    background: #0a2032;
}

/* --- responsive compression -------------------------------------------- */

@media (min-width: 48rem) {
    .coverage-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1px;
    }
}

@media (min-width: 75rem) {
    .product-hero__grid {
        grid-template-columns: minmax(0, 0.84fr) minmax(32rem, 0.96fr);
    }
}

@media (max-width: 47.99rem) {
    h1 {
        font-size: clamp(2.6rem, 12.5vw, 4rem);
    }

    .section {
        padding-block: 3.5rem;
    }

    .product-hero {
        padding-block-start: 2.8rem;
    }

    .product-hero__grid {
        gap: 2.4rem;
    }

    .hero-proof {
        display: grid;
        gap: 0.55rem;
    }

    .process-grid::before {
        inset: 2.3rem auto 2.3rem 1.55rem;
        border-top: 0;
        border-left: 1px dashed #8fb1db;
    }

    .process-grid > li {
        min-height: 0;
        padding: 1.2rem 1.2rem 1.2rem 4.6rem;
    }

    .process-grid__icon {
        position: absolute;
        inset: 1.2rem auto auto 1rem;
        width: var(--icon-size-feature);
        height: var(--icon-size-feature);
        margin: 0;
    }

    .process-grid__number {
        inset: auto 1rem 0.8rem auto;
    }

    .coverage-grid {
        gap: 1px;
    }

    .coverage-grid article {
        min-height: 0;
        padding: 1.15rem;
    }

    .coverage-grid__icon {
        margin-block-end: 0.9rem;
    }

    .report-window__body {
        grid-template-columns: 2.25rem minmax(0, 1fr);
        min-height: 0;
    }

    .report-window__content {
        padding: 1rem;
    }
}

@media (max-width: 30rem) {
    .site-header__inner {
        min-height: 4.5rem;
    }

    .wordmark {
        font-size: 0.98rem;
    }

    .wordmark__mark {
        width: 2rem;
        height: 2rem;
    }

    .report-window__identity {
        display: grid;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .primary-nav a::after,
    .process-grid > li,
    .coverage-grid article {
        transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
    }

    .process-grid > li:hover,
    .coverage-grid article:hover {
        z-index: 2;
        transform: translateY(-2px);
        box-shadow: 0 16px 34px rgb(7 27 46 / 9%);
    }
}

@media (forced-colors: active) {
    .wordmark__mark,
    .pricing-card--available::before {
        border: 1px solid CanvasText;
    }
}
