/* Implant vs. Dentures Cost Calculator — interactive recommendation tool.
 *
 * BEM namespace: lxf-cost__*
 * Hydration container: <div data-lxf-cost>
 *
 * Heading typography is set globally in global.css.
 */

.lxf-cost {
    max-width: 1100px;
    margin-inline: auto;
}

/* ─── Hero ──────────────────────────────────────────────────────────── */

.lxf-cost-calc {
    padding-top: var(--lxf-space-8);
    padding-bottom: var(--lxf-space-8);
}

.lxf-cost__hero {
    background: linear-gradient(180deg, var(--lxf-light-blue) 0%, #e8f1ff 100%);
    border-radius: var(--lxf-radius-lg);
    padding: var(--lxf-space-5) var(--lxf-space-4);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--lxf-space-5);
    position: relative;
    overflow: hidden;
}

@media (min-width: 900px) {
    .lxf-cost__hero {
        grid-template-columns: 1.15fr 0.85fr;
        gap: var(--lxf-space-6);
        padding: var(--lxf-space-6) var(--lxf-space-6);
        align-items: center;
    }
}

.lxf-cost__hero-content { max-width: 56ch; }

@media (prefers-reduced-motion: no-preference) {
    .lxf-cost__hero-content > * {
        opacity: 0;
        transform: translateY(8px);
        animation: lxf-c-rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    .lxf-cost__hero-content > *:nth-child(1) { animation-delay: 0.05s; }
    .lxf-cost__hero-content > *:nth-child(2) { animation-delay: 0.13s; }
    .lxf-cost__hero-content > *:nth-child(3) { animation-delay: 0.21s; }
    .lxf-cost__hero-content > *:nth-child(4) { animation-delay: 0.29s; }
    .lxf-cost__hero-content > *:nth-child(5) { animation-delay: 0.37s; }
    .lxf-cost__hero-content > *:nth-child(6) { animation-delay: 0.45s; }
    .lxf-cost__hero-preview {
        opacity: 0;
        transform: translateY(8px);
        animation: lxf-c-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
    }
}

@keyframes lxf-c-rise { to { opacity: 1; transform: translateY(0); } }

.lxf-cost__hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--lxf-font-body);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--lxf-navy);
    margin: 0 0 var(--lxf-space-3);
}

.lxf-cost__hero-pulse {
    width: 8px; height: 8px;
    border-radius: var(--lxf-radius-full);
    background: var(--lxf-blue);
    box-shadow: 0 0 0 0 rgba(70, 127, 247, 0.6);
    animation: lxf-c-pulse 2.4s ease-out infinite;
}

@keyframes lxf-c-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(70, 127, 247, 0.55); }
    70%  { box-shadow: 0 0 0 12px rgba(70, 127, 247, 0); }
    100% { box-shadow: 0 0 0 0 rgba(70, 127, 247, 0); }
}

@media (prefers-reduced-motion: reduce) { .lxf-cost__hero-pulse { animation: none; } }

.lxf-cost__hero-title {
    color: var(--lxf-navy);
    line-height: 1.05;
    margin: 0 0 var(--lxf-space-2);
}

@media (min-width: 900px) {
    .lxf-cost__hero-title { font-size: 3rem; }
}

.lxf-cost__hero-lead {
    color: var(--lxf-gray-700);
    line-height: 1.65;
    margin: 0 0 var(--lxf-space-4);
    font-size: 1.0625rem;
}

.lxf-cost__hero-stats {
    list-style: none;
    padding-inline-start: 0 !important;
    margin: 0 0 var(--lxf-space-4);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid rgba(0, 37, 89, 0.12);
    border-bottom: 1px solid rgba(0, 37, 89, 0.12);
}

@media (min-width: 540px) {
    .lxf-cost__hero-stats { grid-template-columns: repeat(4, 1fr); }
}

.lxf-cost__hero-stats li {
    padding: var(--lxf-space-2) var(--lxf-space-3);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    border-right: 1px solid rgba(0, 37, 89, 0.12);
}

.lxf-cost__hero-stats li:nth-child(2),
.lxf-cost__hero-stats li:last-child { border-right: 0; }

@media (min-width: 540px) {
    .lxf-cost__hero-stats li:nth-child(2) { border-right: 1px solid rgba(0, 37, 89, 0.12); }
    .lxf-cost__hero-stats li:last-child { border-right: 0; }
}

.lxf-cost__hero-stats li:first-child { padding-inline-start: 0; }

.lxf-cost__hero-stat-num {
    font-family: var(--lxf-font-heading);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--lxf-navy);
    line-height: 1;
    font-feature-settings: 'tnum' 1, 'lnum' 1;
}

.lxf-cost__hero-stat-label {
    font-family: var(--lxf-font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lxf-gray-500);
    margin-top: 0.35rem;
}

.lxf-cost__hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.5rem;
    font-size: 1.0625rem;
    border-radius: var(--lxf-radius-md);
    box-shadow: 0 6px 16px rgba(70, 127, 247, 0.28);
    transition: transform var(--lxf-trans-fast), box-shadow var(--lxf-trans-fast), background-color var(--lxf-trans-fast);
}

.lxf-cost__hero-cta:hover,
.lxf-cost__hero-cta:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(70, 127, 247, 0.34);
}

.lxf-cost__hero-cta:active {
    transform: translateY(1px);
    box-shadow: 0 4px 12px rgba(70, 127, 247, 0.28);
}

.lxf-cost__hero-cta svg { transition: transform var(--lxf-trans-fast); }
.lxf-cost__hero-cta:hover svg { transform: translateX(3px); }

.lxf-cost__hero-meta {
    font-family: var(--lxf-font-body);
    font-size: 0.875rem;
    color: var(--lxf-gray-600);
    margin: var(--lxf-space-2) 0 0;
    line-height: 1.55;
}

.lxf-cost__hero-meta strong { color: var(--lxf-navy); font-weight: 600; }

/* ─── Preview card (mock question) ────────────────────────────────────── */

.lxf-cost__hero-preview { position: relative; perspective: 1200px; }

.lxf-cost__preview-card {
    background: var(--lxf-white);
    border: 1px solid var(--lxf-gray-200);
    border-radius: var(--lxf-radius-lg);
    padding: var(--lxf-space-3);
    box-shadow: 0 18px 40px -16px rgba(0, 37, 89, 0.22);
    position: relative;
    z-index: 2;
    pointer-events: none;
    user-select: none;
}

@media (min-width: 900px) {
    .lxf-cost__preview-card { transform: rotate(-1.4deg); }
}

.lxf-cost__preview-stack {
    position: absolute;
    inset: 14px -10px -14px 14px;
    background: var(--lxf-white);
    border: 1px solid var(--lxf-gray-200);
    border-radius: var(--lxf-radius-lg);
    z-index: 1;
    opacity: 0.55;
    box-shadow: 0 12px 32px -16px rgba(0, 37, 89, 0.12);
}

@media (min-width: 900px) {
    .lxf-cost__preview-stack { transform: rotate(2deg); }
}

.lxf-cost__preview-progress {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: var(--lxf-space-2);
}

.lxf-cost__preview-dot {
    width: 8px; height: 8px;
    border-radius: var(--lxf-radius-full);
    background: var(--lxf-gray-200);
}

.lxf-cost__preview-dot--done { background: var(--lxf-navy); }
.lxf-cost__preview-dot--active {
    background: var(--lxf-blue);
    box-shadow: 0 0 0 3px rgba(70, 127, 247, 0.18);
}

.lxf-cost__preview-dot-rest {
    font-family: var(--lxf-font-body);
    font-size: 0.6875rem;
    color: var(--lxf-gray-400);
    margin-left: 0.25rem;
}

.lxf-cost__preview-counter {
    font-family: var(--lxf-font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lxf-gray-500);
    margin: 0 0 0.35rem;
}

.lxf-cost__preview-question {
    font-family: var(--lxf-font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--lxf-navy);
    line-height: 1.2;
    margin: 0 0 var(--lxf-space-2);
}

.lxf-cost__preview-choices {
    list-style: none;
    padding-inline-start: 0 !important;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.lxf-cost__preview-choices li {
    background: var(--lxf-white);
    border: 1.5px solid var(--lxf-gray-200);
    border-radius: var(--lxf-radius-md);
    padding: 0.5rem 0.875rem;
    font-family: var(--lxf-font-body);
    font-size: 0.875rem;
    color: var(--lxf-gray-900);
}

.lxf-cost__preview-choice--hover {
    border-color: var(--lxf-blue) !important;
    background: var(--lxf-light-blue) !important;
    color: var(--lxf-navy) !important;
}

@media (max-width: 899px) {
    .lxf-cost__hero-preview { opacity: 0.85; }
    .lxf-cost__preview-stack { display: none; }
}

.lxf-cost__hero-disclaimer {
    margin: var(--lxf-space-3) 0 0;
    font-family: var(--lxf-font-body);
    font-size: 0.875rem;
    color: var(--lxf-gray-500);
    line-height: 1.55;
    text-align: center;
}

.lxf-cost__hero-disclaimer strong { color: var(--lxf-gray-900); }

.lxf-cost__noscript {
    margin-top: var(--lxf-space-3);
    padding: var(--lxf-space-2) var(--lxf-space-3);
    background: var(--lxf-gray-100);
    border-radius: var(--lxf-radius-md);
    font-size: 0.9375rem;
    color: var(--lxf-gray-700);
}

/* ─── Card surface (interactive question / result) ─────────────────────── */

.lxf-cost__card {
    background: var(--lxf-white);
    border: 1px solid var(--lxf-gray-200);
    border-radius: var(--lxf-radius-lg);
    padding: var(--lxf-space-4);
    box-shadow: var(--lxf-shadow-sm);
    margin-top: var(--lxf-space-3);
}

@media (min-width: 640px) {
    .lxf-cost__card { padding: var(--lxf-space-5); }
}

.lxf-cost__card--result { border-top: 4px solid var(--lxf-blue); }

.lxf-cost__eyebrow {
    font-family: var(--lxf-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lxf-blue);
    margin: 0 0 var(--lxf-space-2);
}

.lxf-cost__eyebrow--accent { color: var(--lxf-blue); }

.lxf-cost__progress { margin: 0 0 var(--lxf-space-3); }

.lxf-cost__progress-label {
    font-family: var(--lxf-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lxf-gray-500);
    margin: 0 0 var(--lxf-space-1);
}

.lxf-cost__progress-bar {
    height: 6px;
    background: var(--lxf-gray-200);
    border-radius: 999px;
    overflow: hidden;
}

.lxf-cost__progress-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--lxf-blue), var(--lxf-navy));
    transition: width var(--lxf-trans-std);
}

.lxf-cost__question {
    color: var(--lxf-navy);
    margin: 0 0 var(--lxf-space-2);
    line-height: 1.3;
}

.lxf-cost__help {
    color: var(--lxf-gray-500);
    font-size: 0.9375rem;
    margin: 0 0 var(--lxf-space-3);
    line-height: 1.55;
}

/* ─── Choice buttons ──────────────────────────────────────────────────── */

.lxf-cost__choices {
    display: flex;
    flex-direction: column;
    gap: var(--lxf-space-1);
    margin: 0 0 var(--lxf-space-3);
}

.lxf-cost__choice {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--lxf-white);
    border: 2px solid var(--lxf-gray-200);
    border-radius: var(--lxf-radius-md);
    padding: 0.875rem 1rem;
    font-family: var(--lxf-font-body);
    font-size: 1rem;
    color: var(--lxf-gray-900);
    cursor: pointer;
    line-height: 1.4;
    transition: border-color var(--lxf-trans-fast),
                background-color var(--lxf-trans-fast),
                color var(--lxf-trans-fast),
                transform var(--lxf-trans-fast);
}

.lxf-cost__choice:hover {
    border-color: var(--lxf-blue);
    background: var(--lxf-light-blue);
    color: var(--lxf-navy);
}

.lxf-cost__choice:focus-visible {
    outline: 3px solid var(--lxf-blue);
    outline-offset: 2px;
    border-color: var(--lxf-blue);
}

.lxf-cost__choice:active { transform: translateY(1px); }

.lxf-cost__choice.is-checked {
    border-color: var(--lxf-blue);
    background: var(--lxf-light-blue);
    color: var(--lxf-navy);
    box-shadow: inset 0 0 0 1px var(--lxf-blue);
}

.lxf-cost__choice.is-checked:hover { background: #cfe2fb; }

.lxf-cost__continue {
    margin-top: var(--lxf-space-3);
    width: 100%;
}

@media (min-width: 640px) {
    .lxf-cost__continue { width: auto; }
}

/* ─── Nav (back / restart) ────────────────────────────────────────────── */

.lxf-cost__nav {
    display: flex;
    justify-content: space-between;
    gap: var(--lxf-space-2);
    flex-wrap: wrap;
    margin-top: var(--lxf-space-3);
}

.lxf-cost__nav-btn {
    background: transparent;
    border: 1px solid var(--lxf-gray-300);
    color: var(--lxf-gray-700);
    padding: 0.5rem 0.875rem;
    border-radius: var(--lxf-radius-md);
    font-family: var(--lxf-font-body);
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color var(--lxf-trans-fast), color var(--lxf-trans-fast), border-color var(--lxf-trans-fast);
}

.lxf-cost__nav-btn:hover {
    background: var(--lxf-gray-100);
    color: var(--lxf-navy);
    border-color: var(--lxf-gray-400);
}

.lxf-cost__nav-btn--ghost {
    border-color: transparent;
    color: var(--lxf-gray-500);
}

.lxf-cost__nav-btn--ghost:hover {
    background: transparent;
    color: var(--lxf-navy);
    text-decoration: underline;
}

/* ─── Result panel ────────────────────────────────────────────────────── */

.lxf-cost__result-heading {
    color: var(--lxf-navy);
    margin: 0 0 var(--lxf-space-2);
    line-height: 1.2;
}

.lxf-cost__result-body {
    color: var(--lxf-gray-700);
    line-height: 1.65;
    margin: 0 0 var(--lxf-space-3);
}

.lxf-cost__meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--lxf-space-2);
    margin: 0 0 var(--lxf-space-3);
    padding: var(--lxf-space-3);
    background: var(--lxf-blue-alt);
    border: 1px solid var(--lxf-light-blue);
    border-radius: var(--lxf-radius-md);
}

@media (min-width: 640px) {
    .lxf-cost__meta-grid { grid-template-columns: repeat(2, 1fr); }
}

.lxf-cost__meta-col { display: flex; flex-direction: column; }

.lxf-cost__meta-label {
    font-family: var(--lxf-font-body);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--lxf-gray-500);
    margin: 0 0 0.25rem;
}

.lxf-cost__meta-value {
    color: var(--lxf-navy);
    line-height: 1.5;
    margin: 0;
    font-size: 0.9375rem;
}

.lxf-cost__matched {
    background: var(--lxf-white);
    border: 1px dashed var(--lxf-gray-300);
    border-radius: var(--lxf-radius-md);
    padding: var(--lxf-space-3);
    margin: 0 0 var(--lxf-space-3);
}

.lxf-cost__matched-heading {
    font-family: var(--lxf-font-body);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--lxf-gray-500);
    margin: 0 0 var(--lxf-space-1);
}

.lxf-cost__matched-list {
    list-style: disc;
    padding-inline-start: 1.25rem !important;
    margin: 0;
    color: var(--lxf-gray-700);
    line-height: 1.55;
}

.lxf-cost__matched-list li + li { margin-top: 0.25rem; }

.lxf-cost__actions {
    display: flex;
    gap: var(--lxf-space-2);
    flex-wrap: wrap;
    margin: 0 0 var(--lxf-space-4);
}

.lxf-cost__actions .lxf-btn { flex: 1 1 auto; text-align: center; justify-content: center; }

@media (min-width: 640px) {
    .lxf-cost__actions .lxf-btn { flex: 0 1 auto; }
}

/* ─── Alternatives list ───────────────────────────────────────────────── */

.lxf-cost__alternatives {
    border-top: 1px solid var(--lxf-gray-200);
    padding-top: var(--lxf-space-3);
    margin-top: var(--lxf-space-3);
}

.lxf-cost__alt-heading {
    color: var(--lxf-navy) !important;
    margin: 0 0 var(--lxf-space-1);
}

.lxf-cost__alt-lede {
    color: var(--lxf-gray-500);
    font-size: 0.9375rem;
    margin: 0 0 var(--lxf-space-3);
    line-height: 1.55;
}

.lxf-cost__alt-list {
    list-style: none;
    padding-inline-start: 0 !important;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--lxf-space-2);
}

.lxf-cost__alt {
    background: var(--lxf-blue-alt);
    border: 1px solid var(--lxf-light-blue);
    border-radius: var(--lxf-radius-md);
    padding: var(--lxf-space-3);
}

.lxf-cost__alt--disabled {
    background: var(--lxf-gray-100);
    border-color: var(--lxf-gray-200);
    opacity: 0.7;
}

.lxf-cost__alt-name {
    color: var(--lxf-navy) !important;
    margin: 0 0 var(--lxf-space-1);
    line-height: 1.3;
}

.lxf-cost__alt-summary {
    color: var(--lxf-gray-700);
    line-height: 1.55;
    margin: 0 0 var(--lxf-space-1);
}

.lxf-cost__alt-meta {
    font-family: var(--lxf-font-body);
    font-size: 0.875rem;
    color: var(--lxf-gray-600);
    margin: 0 0 var(--lxf-space-1);
    font-weight: 500;
}

.lxf-cost__alt-disabled-note {
    color: var(--lxf-gray-500);
    font-size: 0.875rem;
    font-style: italic;
    margin: 0;
}

.lxf-cost__alt-link {
    color: var(--lxf-blue);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color var(--lxf-trans-fast);
}

.lxf-cost__alt-link:hover {
    color: var(--lxf-navy);
    text-decoration: underline;
}

.lxf-cost__disclaimer {
    margin: var(--lxf-space-3) 0 var(--lxf-space-2);
    color: var(--lxf-gray-500);
    font-size: 0.8125rem;
    line-height: 1.5;
    border-top: 1px solid var(--lxf-gray-200);
    padding-top: var(--lxf-space-2);
}

/* ─── Field-guide reference (editorial 2-column rows) ──────────────────── */

.lxf-cost__reference {
    max-width: 1100px;
    margin: var(--lxf-space-8) auto 0;
}

.lxf-cost__reference-header {
    max-width: 720px;
    margin: 0 auto var(--lxf-space-5);
    text-align: center;
}

.lxf-cost__reference-heading {
    color: var(--lxf-navy) !important;
    margin: var(--lxf-space-1) 0 var(--lxf-space-2);
    line-height: 1.15;
}

.lxf-cost__reference-lede {
    color: var(--lxf-gray-700);
    line-height: 1.65;
    margin: 0;
    max-width: 60ch;
    margin-inline: auto;
}

.lxf-cost__reference-list {
    list-style: none;
    padding-inline-start: 0 !important;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.lxf-cost__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--lxf-space-3);
    padding: var(--lxf-space-5) 0;
    border-top: 1px solid var(--lxf-gray-200);
}

.lxf-cost__row:last-child { border-bottom: 1px solid var(--lxf-gray-200); }

@media (min-width: 768px) {
    .lxf-cost__row {
        grid-template-columns: minmax(220px, 1fr) 1.6fr;
        gap: var(--lxf-space-6);
    }
}

.lxf-cost__row-meta { display: flex; flex-direction: column; }

.lxf-cost__row-index {
    font-family: var(--lxf-font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: var(--lxf-blue);
    margin: 0 0 var(--lxf-space-2);
    font-feature-settings: 'tnum' 1;
}

.lxf-cost__row-index span { color: var(--lxf-gray-400); font-weight: 400; }

.lxf-cost__row-tier-label,
.lxf-cost__row-stat-label {
    font-family: var(--lxf-font-body);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lxf-gray-500);
    margin: var(--lxf-space-1) 0 0.2rem;
}

.lxf-cost__row-tier {
    color: var(--lxf-navy);
    font-family: var(--lxf-font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.lxf-cost__row-stat-value {
    color: var(--lxf-navy);
    font-family: var(--lxf-font-body);
    font-size: 0.9375rem;
    margin: 0;
}

.lxf-cost__row-name {
    color: var(--lxf-navy) !important;
    margin: 0 0 var(--lxf-space-2);
    line-height: 1.2;
}

.lxf-cost__row-description {
    color: var(--lxf-gray-700);
    line-height: 1.65;
    margin: 0 0 var(--lxf-space-2);
    max-width: 60ch;
}

.lxf-cost__row-who {
    color: var(--lxf-gray-700);
    line-height: 1.55;
    margin: 0 0 var(--lxf-space-2);
    font-size: 0.9375rem;
}

.lxf-cost__row-who-label {
    font-family: var(--lxf-font-body);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--lxf-gray-500);
    margin-right: 0.5rem;
}

.lxf-cost__row-link-wrap { margin: 0; }

.lxf-cost__row-link {
    color: var(--lxf-navy);
    font-family: var(--lxf-font-body);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--lxf-blue);
    padding-bottom: 1px;
    transition: color var(--lxf-trans-fast), border-color var(--lxf-trans-fast);
}

.lxf-cost__row-link:hover {
    color: var(--lxf-blue);
    border-color: var(--lxf-navy);
}

/* ─── Bottom CTA block ────────────────────────────────────────────────── */

.lxf-cost__cta-block {
    max-width: 720px;
    margin: var(--lxf-space-6) auto 0;
    text-align: center;
    background: var(--lxf-light-blue);
    border-radius: var(--lxf-radius-lg);
    padding: var(--lxf-space-4);
}

.lxf-cost__cta-heading {
    color: var(--lxf-navy) !important;
    margin: 0 0 var(--lxf-space-2);
    line-height: 1.25;
}

.lxf-cost__cta-body {
    color: var(--lxf-gray-700);
    line-height: 1.6;
    margin: 0 0 var(--lxf-space-3);
}

.lxf-cost__cta-actions {
    display: flex;
    gap: var(--lxf-space-2);
    justify-content: center;
    flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
    .lxf-cost__progress-fill,
    .lxf-cost__choice,
    .lxf-cost__nav-btn,
    .lxf-cost__row-link {
        transition: none;
    }
}

/* ─── Calculator-specific styles ──────────────────────────────────────── */

/* Preview chart in hero */
.lxf-cost__preview-card {
    background: var(--lxf-white);
    border: 1px solid var(--lxf-gray-200);
    border-radius: var(--lxf-radius-lg);
    padding: var(--lxf-space-3);
    box-shadow: 0 18px 40px -16px rgba(0, 37, 89, 0.22);
    position: relative;
    z-index: 2;
    pointer-events: none;
    user-select: none;
}

@media (min-width: 900px) {
    .lxf-cost__preview-card { transform: rotate(-1deg); }
}

.lxf-cost__preview-label {
    font-family: var(--lxf-font-body);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lxf-gray-500);
    margin: 0 0 var(--lxf-space-2);
}

.lxf-cost__preview-bars {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.lxf-cost__preview-bar {
    display: grid;
    grid-template-columns: 1.2fr 2fr 0.6fr;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--lxf-font-body);
    font-size: 0.8125rem;
}

.lxf-cost__preview-bar-name {
    color: var(--lxf-navy);
    font-weight: 500;
}

.lxf-cost__preview-bar-fill {
    height: 8px;
    background: linear-gradient(90deg, var(--lxf-blue), var(--lxf-navy));
    border-radius: 4px;
    display: block;
}

.lxf-cost__preview-bar--best .lxf-cost__preview-bar-fill {
    background: linear-gradient(90deg, #047857, #065f46);
}

.lxf-cost__preview-bar-value {
    color: var(--lxf-navy);
    font-weight: 600;
    text-align: right;
    font-feature-settings: 'tnum' 1, 'lnum' 1;
}

.lxf-cost__preview-note {
    font-family: var(--lxf-font-body);
    font-size: 0.75rem;
    color: var(--lxf-gray-500);
    margin: var(--lxf-space-2) 0 0;
    font-style: italic;
}

/* Cost summary box on result */
.lxf-cost__cost-summary {
    background: var(--lxf-blue-alt);
    border: 1px solid var(--lxf-light-blue);
    border-radius: var(--lxf-radius-md);
    padding: var(--lxf-space-3);
    margin: 0 0 var(--lxf-space-3);
}

.lxf-cost__cost-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--lxf-space-2);
}

@media (min-width: 540px) {
    .lxf-cost__cost-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .lxf-cost__cost-grid { grid-template-columns: repeat(4, 1fr); }
}

.lxf-cost__cost-col { display: flex; flex-direction: column; }

.lxf-cost__cost-label {
    font-family: var(--lxf-font-body);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lxf-gray-500);
    margin: 0 0 0.25rem;
}

.lxf-cost__cost-value {
    color: var(--lxf-navy);
    font-family: var(--lxf-font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    font-feature-settings: 'tnum' 1, 'lnum' 1;
}

.lxf-cost__tradeoff {
    color: var(--lxf-gray-700);
    line-height: 1.65;
    margin: 0 0 var(--lxf-space-3);
    padding: var(--lxf-space-2) var(--lxf-space-3);
    border-left: 3px solid var(--lxf-blue);
    background: var(--lxf-gray-100);
    border-radius: var(--lxf-radius-sm);
}

/* Comparison table on result */
.lxf-cost__comparison {
    border-top: 1px solid var(--lxf-gray-200);
    padding-top: var(--lxf-space-3);
    margin-top: var(--lxf-space-3);
}

.lxf-cost__comp-heading {
    color: var(--lxf-navy) !important;
    margin: 0 0 var(--lxf-space-1);
}

.lxf-cost__comp-lede {
    color: var(--lxf-gray-500);
    font-size: 0.9375rem;
    margin: 0 0 var(--lxf-space-3);
    line-height: 1.55;
}

.lxf-cost__table {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--lxf-gray-200);
    border-radius: var(--lxf-radius-md);
    overflow: hidden;
}

.lxf-cost__table .lxf-cost__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-bottom: 1px solid var(--lxf-gray-200);
    border-top: 0;
    padding: 0;
}

.lxf-cost__table .lxf-cost__row:last-child { border-bottom: 0; }

@media (min-width: 720px) {
    .lxf-cost__table .lxf-cost__row {
        grid-template-columns: 2fr 1fr 1fr 1.2fr;
    }
}

.lxf-cost__row--head {
    background: var(--lxf-navy);
    color: var(--lxf-white);
}

.lxf-cost__cell--head {
    color: var(--lxf-white);
    font-family: var(--lxf-font-body);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lxf-cost__cell {
    padding: 0.75rem 1rem;
    color: var(--lxf-gray-900);
    font-family: var(--lxf-font-body);
    font-size: 0.9375rem;
    border-right: 1px solid var(--lxf-gray-200);
    display: flex;
    align-items: center;
}

.lxf-cost__cell:last-child { border-right: 0; }

.lxf-cost__row--best .lxf-cost__cell {
    background: var(--lxf-light-blue);
    font-weight: 600;
}

.lxf-cost__row--best .lxf-cost__cell:first-child::before {
    content: '★ ';
    color: var(--lxf-blue);
    margin-right: 0.4rem;
}

.lxf-cost__cell--name {
    font-weight: 600;
    color: var(--lxf-navy);
}

.lxf-cost__cell--total {
    font-weight: 700;
    color: var(--lxf-navy);
    font-feature-settings: 'tnum' 1, 'lnum' 1;
}

@media (max-width: 719px) {
    .lxf-cost__row {
        padding: var(--lxf-space-2);
    }
    .lxf-cost__cell {
        padding: 0.25rem 0;
        border-right: 0;
    }
    /* Keep column headers available to assistive technology on mobile. */
    .lxf-cost__table .lxf-cost__row--head {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .lxf-cost__cell--name {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    .lxf-cost__cell:not(.lxf-cost__cell--name)::before {
        content: attr(data-label) '';
        font-weight: 700;
        font-size: 0.7rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--lxf-gray-500);
        margin-right: 0.5rem;
    }
}

/* Row best-for label */
.lxf-cost__row-best-for {
    color: var(--lxf-gray-700);
    line-height: 1.55;
    margin: 0 0 var(--lxf-space-2);
    font-size: 0.9375rem;
}

.lxf-cost__row-best-for-label {
    font-family: var(--lxf-font-body);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--lxf-gray-500);
    margin-right: 0.5rem;
}

/* tier label */
.lxf-cost__row-tier-label,
.lxf-cost__row-stat-label {
    font-family: var(--lxf-font-body);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lxf-gray-500);
    margin: var(--lxf-space-1) 0 0.2rem;
}

.lxf-cost__row-tier {
    color: var(--lxf-navy);
    font-family: var(--lxf-font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.lxf-cost__row-stat-value {
    color: var(--lxf-navy);
    font-family: var(--lxf-font-body);
    font-size: 0.9375rem;
    font-feature-settings: 'tnum' 1, 'lnum' 1;
    margin: 0;
}

/* Local contrast repairs retain all clinical copy and numerical values. */
.lxf-cost__row-index span { color: #595959; }
.lxf-cost__cta-block .lxf-cost__cta-actions .lxf-btn--phone { background: #002559 !important; color: #fff !important; }
body:has([data-lxf-cost]) .lxf-mobile-cta__book { background: var(--lxf-blue-action, #1d57d4); }
.lxf-cost__table .lxf-cost__cell::before { color: #595959; }
.lxf-cost__nav-btn { min-height: 44px; }
.lxf-cost__choice[aria-pressed="true"] { border-color: var(--lxf-blue-action, #1d57d4); background: #edf3ff; }
