/* ==========================================================================
   Car-Stories private customers page
   Builds on pricing.css and features.css (brand variables, utilities,
   carousel, segment switch, steps). Load both before this file.
   ========================================================================== */

/* ----- Additional brand utility ----- */
.border-cs-blue { border-color: var(--cs-darkblue) !important; }
[data-bs-theme="dark"] .border-cs-blue { border-color: #b8c2ee !important; }

/* ----- Vehicle file: paper card with a mechanical odometer, the hero's signature element ----- */
.cs-vehicle-file {
    --cs-accent-text: var(--cs-darkgreen);
    --bs-secondary-color: rgba(15, 25, 68, .65);
    --bs-border-color: rgba(15, 25, 68, .15);
    max-width: 26rem;
    padding: 1.75rem;
    border-radius: 1rem;
    background: var(--cs-paper);
    color: var(--cs-darkblue);
    box-shadow: 0 1.5rem 3rem rgba(5, 10, 35, .35);
}

/* Instrument bezel around the drums */
.cs-odo-bezel {
    padding: 1rem 1.1rem 1.1rem;
    border-radius: .75rem;
    background: var(--cs-darkblue);
    color: #fff;
    box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--cs-ochre) 55%, transparent);
}
.cs-odo-label { display: block; margin-bottom: .5rem; font-size: .8rem; opacity: .75; }

.cs-odo {
    --cs-drum-h: 1.3em;
    display: flex;
    align-items: center;
    gap: .15em;
    font-size: clamp(1.75rem, 6vw, 2.35rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.cs-odo-drum {
    display: block;
    width: .9em;
    height: var(--cs-drum-h);
    overflow: hidden;
    border-radius: .12em;
    background: #000;
    color: #fff;
    /* Curved drum: darker at the top and bottom edge */
    box-shadow: inset 0 .28em .3em -.2em rgba(255, 255, 255, .18), inset 0 -.28em .3em -.2em rgba(255, 255, 255, .18);
}

/* Tenths drum: inverted like on period instruments */
.cs-odo-tenths { margin-left: .1em; background: #fff; color: #000; }

.cs-odo-strip {
    display: flex;
    flex-direction: column;
    transform: translateY(calc(var(--cs-digit) * var(--cs-drum-h) * -1));
    animation: cs-odo-roll 1.4s cubic-bezier(.2, .75, .25, 1) var(--cs-delay, 0ms) both;
}
.cs-odo-strip > span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--cs-drum-h);
}

.cs-odo-unit { margin-left: .35em; font-size: .45em; font-weight: 600; opacity: .8; }

/* The single page-load moment: drums roll up from zero */
@keyframes cs-odo-roll {
    from { transform: translateY(0); }
}

.cs-file-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 0 1.25rem;
}
.cs-file-facts dt { font-size: .8rem; font-weight: 400; color: var(--bs-secondary-color); }
.cs-file-facts dd { margin: 0; font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 399.98px) {
    .cs-file-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ----- Steps: 2 columns between md and lg, no connector at the row end ----- */
@media (min-width: 768px) and (max-width: 991.98px) {
    .cs-private .cs-step:nth-child(2n)::after { content: none; }
}

@media (prefers-reduced-motion: reduce) {
    .cs-odo-strip { animation: none; }
}
