/*
 * CarTraceAI brand marks.
 *
 * Layered after app.css rather than edited into it: app.css is served to every
 * visitor from a path that is also the live document root, and a mistake there
 * is a mistake everyone sees immediately. A separate versioned file can be
 * added, reviewed and reverted on its own.
 *
 * §30 forbids a downloaded design system, so every value here is either a token
 * already defined in app.css or a geometric constant chosen for this mark.
 */

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/*
 * The mark sits on the cap height of the wordmark, not on its baseline —
 * optically centred rather than mathematically, which is what stops a logo
 * looking like it is sliding downwards.
 */
.wordmark__mark {
    width: 1.55em;
    height: 1.55em;
    flex: 0 0 auto;
    color: var(--color-primary);
    transform: translateY(-0.02em);
}

.wordmark:hover .wordmark__mark,
.wordmark:focus-visible .wordmark__mark {
    color: var(--color-primary-hover);
}

.wordmark--footer .wordmark__mark {
    color: var(--color-muted);
}

/* --- centrally governed interface icons -------------------------------- */

/*
 * One size and one optical weight everywhere. An icon set drifts the moment
 * each usage picks its own dimensions.
 */
.icon {
    width: 1.25em;
    height: 1.25em;
    flex: 0 0 auto;
    vertical-align: -0.2em;
}

.icon--lead {
    width: 1.6em;
    height: 1.6em;
    color: var(--color-primary);
}

/* A gap we are honest about reads as caution, never as failure. */
.icon--unlicensed { color: var(--color-caution); }
.icon--verified { color: var(--color-positive); }

@media (prefers-reduced-motion: no-preference) {
    .wordmark__mark { transition: color 120ms ease-out; }
}

/* --- pricing ------------------------------------------------------------- */

.pricing { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.pricing__eyebrow {
    margin: 0 0 0.5rem;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.pricing__title { margin: 0 0 0.75rem; max-width: 20ch; }
.pricing__lede {
    margin: 0 0 2.25rem;
    max-width: 58ch;
    color: var(--color-muted);
    font-size: 1.05rem;
}

.pricing__grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    align-items: start;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
}

/* The available product carries the weight; the planned one recedes. Making
   them equal would imply both can be bought. */
.pricing-card--available { border-color: var(--color-primary); box-shadow: 0 1px 2px rgb(16 42 67 / 6%); }
.pricing-card--planned { background: var(--color-surface-subtle); }

.pricing-card__head { display: grid; gap: 0.3rem; }
.pricing-card__badge {
    justify-self: start;
    margin: 0 0 0.25rem;
    padding: 0.15rem 0.55rem;
    background: var(--color-caution-soft);
    border-radius: 999px;
    color: var(--color-caution);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.pricing-card__eyebrow { margin: 0; color: var(--color-muted); font-size: 0.85rem; }
.pricing-card__title { margin: 0; font-size: 1.3rem; }
.pricing-card__price { margin: 0.15rem 0 0; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; }
/* A pending price is a sentence, not a number, so it must not be styled like one. */
.pricing-card__price--pending { font-size: 0.95rem; font-weight: 600; color: var(--color-caution); }

.pricing-card__body { margin: 0; color: var(--color-text); }
.pricing-card__note { margin: 0.5rem 0 0; color: var(--color-muted); font-size: 0.85rem; }

.pricing-card__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.pricing-card__list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--color-border);
}
.pricing-card__list li:last-child { border-bottom: 0; }
.pricing-card__count {
    color: var(--color-muted);
    font-variant-numeric: tabular-nums;
    font-size: 0.9rem;
}

.pricing-card .button { margin-top: auto; align-self: start; }
.button--disabled {
    display: inline-block;
    padding: 0.7rem 1.15rem;
    background: var(--color-surface-subtle);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-muted);
    font-weight: 600;
    cursor: not-allowed;
}

.pricing__why {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: var(--color-primary-soft);
    border-radius: 14px;
    max-width: 62ch;
}
.pricing__why-title { margin: 0 0 0.5rem; font-size: 1.1rem; }
.pricing__why-body { margin: 0 0 0.75rem; color: var(--color-text); }
.pricing__why-link { color: var(--color-primary); font-weight: 600; }

.pricing__disclosure { margin-top: 1.5rem; color: var(--color-muted); font-size: 0.85rem; }

/* Route from the price cards to the report's actual structure. */
.pricing__sample {
    margin: 1.5rem 0 0;
}

.report-showcase__cta {
    margin: 1.75rem 0 0;
}
