:root {
  --tabs-height:64px;
  --navy:#0a2f4e; --deep-navy:#071f34; --sky:#12aae1; --sky-dark:#0e8fbd;
  --sky-light:#e8f6fd; --yellow:#ffd13f; --background:#fcfdfe; --surface:#fff;
  --slate-50:#f8fafc; --slate-100:#f1f5f9; --border:#e2e8f0; --muted:#64748b; --ink:#1e293b;
}
.equity-popup>span { display:block; margin-bottom:10px; }
.equity-popup>span:last-child { margin-bottom:0; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:24px; }
body { margin:0; background:var(--background); color:var(--ink); font:16px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
a { color:var(--navy); text-underline-offset:4px; }
a:hover { color:var(--sky-dark); }
h1,h2,h3,h4,legend { color:var(--navy); line-height:1.2; }
h1 { font-size:clamp(2rem,4vw,3.3rem); font-weight:750; letter-spacing:-.045em; margin:.35em 0; }
h2 { font-size:1.5rem; letter-spacing:-.025em; margin:0 0 14px; }
h3 { font-size:1.125rem; margin:0 0 10px; }
p { margin:0 0 16px; }
small,.muted { color:var(--muted); }
small { font-size:.875rem; }
.eyebrow { color:var(--navy); font-size:.75rem; font-weight:750; letter-spacing:.13em; margin-bottom:14px; }
.sr-only,.comparison-table-caption { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%); white-space:nowrap; border:0; }
.skip { position:absolute; left:16px; top:-100px; background:white; padding:12px; z-index:100; }
.skip:focus { top:12px; }
:focus-visible { outline:3px solid var(--sky-dark); outline-offset:3px; }
.site-header { background:var(--surface); border-bottom:1px solid var(--border); border-top:4px solid var(--sky); position:relative; }
.site-header:before { content:""; position:absolute; left:0; top:-4px; width:22%; height:4px; background:var(--yellow); }
.header-inner { max-width:1232px; margin:auto; padding:20px 28px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.brand { display:flex; align-items:center; gap:11px; font-size:1.2rem; font-weight:800; text-decoration:none; letter-spacing:-.025em; white-space:nowrap; }
.brand-mark { display:grid; place-items:center; height:35px; width:35px; background:var(--navy); color:var(--surface); border-radius:10px; border-bottom:3px solid var(--yellow); font-size:1.25rem; }
.site-header nav,.navbar-nav { display:flex; align-items:center; gap:26px; padding:0; margin:0; list-style:none; }
.site-header nav a { text-decoration:none; font-size:.9rem; font-weight:600; }
.optional-login { color:var(--muted); font-weight:450!important; }
.optional-login span { font-size:.8rem; }
main { max-width:1232px; margin:auto; padding:36px 28px 72px; }
.narrow { max-width:840px; margin-left:auto; margin-right:auto; }
.page-heading { margin-bottom:30px; }
.back-link { display:inline-block; font-size:.875rem; color:var(--muted); margin-bottom:15px; text-decoration:none; }
.site-footer { max-width:1232px; margin:auto; border-top:1px solid var(--border); padding:28px; display:flex; justify-content:space-between; gap:20px; color:var(--muted); font-size:.875rem; }
.site-footer>div { display:flex; gap:18px; flex-wrap:wrap; }
.site-footer p { margin:0; }
.footer-brand { color:var(--navy); text-decoration:none; font-weight:750; }
button,.button { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:12px 20px; border:1px solid var(--navy); border-radius:9px; background:var(--navy); color:white; font:650 .94rem/1.4 system-ui,sans-serif; text-decoration:none; cursor:pointer; margin:4px 4px 4px 0; min-height:44px; }
button:hover,.button:hover { color:white; background:var(--deep-navy); border-color:var(--deep-navy); }
.secondary { background:white; border-color:var(--border); color:var(--navy); }
.secondary:hover { background:var(--sky-light); border-color:var(--sky-dark); color:var(--navy); }
.small { font-size:.8125rem; min-height:36px; padding:7px 11px; }
button:disabled { opacity:.45; cursor:not-allowed; }
.text-button,.btn-link { color:var(--muted); padding:0; border:0; margin:0; background:none; min-height:0; font-size:.875rem; font-weight:450; }
.text-button:hover,.btn-link:hover { color:var(--navy); background:none; }
input,select,textarea { width:100%; font:inherit; color:var(--ink); background:var(--surface); border:1px solid #aebdca; border-radius:8px; padding:11px 12px; margin:6px 0 14px; min-height:45px; }
input::placeholder,textarea::placeholder { color:#7d8a99; }
input[type=checkbox],input[type=radio] { width:19px; height:19px; min-height:0; margin:0 9px 0 0; accent-color:var(--navy); vertical-align:middle; }
input[type=hidden] { display:none; }
input[readonly] { background:var(--slate-50); }
select { appearance:none; padding-right:36px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230a2f4e' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; }
label { display:block; font-size:.875rem; font-weight:600; }
.check-label { padding:13px 0 4px; }
.fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px 20px; }
.two-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
fieldset { border:1px solid var(--border); border-radius:11px; margin:18px 0; padding:20px; }
legend { padding:0 8px; font-size:1rem; font-weight:650; }
.panel { background:var(--surface); border:1px solid var(--border); border-radius:15px; padding:25px; margin:22px 0; }
.soft { background:var(--sky-light); }
.two { display:grid; grid-template-columns:1.3fr 1fr; gap:24px; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:20px; }
.section-heading h2,.section-heading p { margin-bottom:0; }
.section-heading a { font-size:.875rem; font-weight:600; white-space:nowrap; }
.actions,.hero-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
details { margin:18px 0; }
summary { cursor:pointer; color:var(--navy); font-weight:650; font-size:.9375rem; }
details[open]>summary { margin-bottom:18px; }
.validation:empty,.validation-summary-valid { display:none; }
.validation:not(:empty),.validation-summary-errors { background:#fff4ed; color:#812716; padding:16px 20px; border:1px solid #e7b7a5; border-radius:9px; margin:18px 0; }
.validation ul { margin:0; padding-left:20px; }
.field-validation-error,.text-danger { color:#912c19; font-size:.875rem; }
.notice { padding:14px 18px; background:var(--sky-light); border-radius:9px; color:var(--navy); }
.home-hero { display:grid; grid-template-columns:1.25fr 1fr; gap:64px; align-items:center; padding:34px 0 52px; }
.hero-copy h1 { font-size:clamp(2.6rem,4.5vw,4rem); line-height:1.08; margin-bottom:22px; }
.hero-copy h1 span { color:var(--sky-dark); }
.hero-description { font-size:1.125rem; color:var(--muted); max-width:520px; margin-bottom:25px; }
.privacy-line { font-size:.8125rem; color:var(--muted); margin:13px 0 0; }
.hero-visual { background:var(--sky-light); border-radius:28px 28px 90px 28px; min-height:300px; padding:28px; position:relative; overflow:hidden; }
.journey-mark { height:200px; position:relative; }
.journey-mark svg { position:absolute; width:240px; max-width:80%; left:50%; top:50%; transform:translate(-50%,-50%); fill:white; stroke:var(--navy); stroke-width:3; }
.journey-line { position:absolute; width:84%; height:155px; left:8%; top:25px; border:2px dashed #9bdcf3; border-radius:90px; transform:rotate(-14deg); }
.journey-dot { position:absolute; height:16px; width:16px; border-radius:50%; border:4px solid white; box-shadow:0 0 0 2px var(--sky); }
.journey-dot.start { top:65%; left:7%; background:var(--sky); }.journey-dot.finish { top:15%; right:10%; background:var(--yellow); box-shadow:0 0 0 2px var(--yellow); }
.hero-values { display:flex; justify-content:center; gap:8px; flex-wrap:wrap; }
.hero-values span { background:white; padding:7px 11px; border-radius:30px; font-size:.75rem; color:var(--navy); font-weight:650; }
.decisions-section { border:1px solid var(--border); border-radius:16px; background:white; padding:27px; }
.saved { border-top:1px solid var(--border); padding:20px 0; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.saved:last-child { padding-bottom:0; }.saved-description>a { text-decoration:none; font-weight:650; }.saved-description small { display:block; margin-top:4px; font-size:.8125rem; }
.saved-actions { display:flex; align-items:center; flex-shrink:0; gap:10px; }.saved-actions form { margin:0; }
.delete-decision-icon { display:grid; place-items:center; width:38px; height:38px; border:1px solid var(--border); border-radius:9px; color:var(--muted); background:white; text-decoration:none; }
.delete-decision-icon:hover { color:#912c19; border-color:#dca487; background:#fff4ed; }
.empty-state { background:var(--slate-50); border:1px dashed #cbd5e1; border-radius:12px; padding:30px; margin:20px 0; }.empty-state p { color:var(--muted); max-width:620px; }
.start-options { display:grid; grid-template-columns:1fr 1fr; gap:35px; padding:36px 8px; }.start-options article { position:relative; padding-left:48px; }.start-options p { color:var(--muted); font-size:.9375rem; }.start-options a { font-size:.9rem; font-weight:650; }
.feature-icon { position:absolute; left:0; top:0; display:grid; place-items:center; width:32px; height:32px; background:var(--sky-light); color:var(--navy); border-radius:9px; font-size:1.3rem; }
.utility-disclosure { border-top:1px solid var(--border); padding-top:20px; }.utility-disclosure form { max-width:550px; padding:16px 0; }
.saved-car-options { display:grid; grid-template-columns:1fr 1fr; gap:10px; }.saved-car-option { display:flex; align-items:center; gap:3px; border:1px solid var(--border); padding:14px; border-radius:9px; cursor:pointer; }.saved-car-option:has(input:checked) { border-color:var(--sky-dark); background:var(--sky-light); }.saved-car-option small { display:block; font-weight:450; margin-top:3px; }
.setup-form .panel { margin:18px 0; }.setup-alternative { padding-top:18px; margin-top:12px; margin-bottom:0; border-top:1px solid var(--border); font-size:.875rem; }.setup-current>summary { font-size:1.125rem; }.setup-current>summary span { margin-left:8px; font-weight:450; font-size:.875rem; }.setup-submit { text-align:center; padding:10px 0; }.setup-submit button { padding:14px 34px; }.setup-submit p { font-size:.875rem; margin-top:12px; }
.comparison-heading { display:flex; justify-content:space-between; align-items:center; gap:22px; margin-bottom:20px; }.comparison-heading h1 { font-size:clamp(1.5rem,2.4vw,2.2rem); max-width:790px; margin:0; }.comparison-heading .back-link { margin-bottom:9px; }.comparison-tools { display:flex; align-items:center; flex-shrink:0; gap:12px; }
.report-tools { position:relative; margin:0; }.report-tools summary { font-size:.8125rem; color:var(--muted); }.report-tools[open]>summary { margin:0; }.report-tools>div { position:absolute; right:0; top:30px; background:white; z-index:4; padding:14px; border:1px solid var(--border); border-radius:9px; min-width:180px; box-shadow:0 8px 24px #071f3414; }.report-tools a { display:block; padding:6px; font-size:.875rem; }
.tabs { display:flex; gap:4px; border-bottom:1px solid var(--border); margin-bottom:25px; padding-bottom:12px; overflow-x:auto; }.tabs a { white-space:nowrap; text-decoration:none; color:var(--muted); border-radius:7px; padding:8px 16px; font-size:.9rem; font-weight:600; }.tabs a:hover { color:var(--navy); background:var(--slate-50); }.tabs a[aria-current=page] { color:var(--navy); background:var(--sky-light); }
.comparison-tab:not(.is-active) { display:none; }
.decision-answer { display:grid; grid-template-columns:1.55fr 1fr; border:1px solid #c9e5f1; border-radius:17px; overflow:hidden; background:var(--sky-light); margin:0 0 22px; }.answer-main { padding:28px 30px; }.answer-main .eyebrow,.answer-fit .eyebrow { font-size:.6875rem; letter-spacing:.12em; margin-bottom:12px; }.answer-main h2 { font-size:1.75rem; margin-bottom:9px; }.answer-main>p { color:var(--navy); font-size:.9375rem; }.answer-amount { font-size:2.65rem; line-height:1.1; letter-spacing:-.05em; color:var(--navy); font-weight:750; margin:20px 0 12px; }.answer-amount span { display:block; font-size:.875rem; letter-spacing:0; font-weight:500; margin-top:8px; }.answer-note { margin-bottom:0; color:var(--muted)!important; font-size:.875rem!important; }
.answer-fit { padding:28px; background:#f7fcff; border-left:1px solid #c9e5f1; }.answer-fit h3 { font-size:1.125rem; margin-bottom:12px; }.answer-fit p { color:var(--muted); font-size:.875rem; }.answer-fit a { font-size:.875rem; font-weight:650; }.fit-value { font-size:2rem; color:var(--navy); font-weight:700; margin:10px 0; }.fit-value span { color:var(--muted); font-weight:450; font-size:1rem; margin-left:5px; }.answer-footer { grid-column:1/-1; border-top:1px solid #c9e5f1; padding:12px 28px; display:flex; justify-content:space-between; gap:15px; font-size:.8125rem; color:var(--muted); }.answer-footer a { font-weight:650; white-space:nowrap; }
.horizon-control { display:flex; align-items:center; gap:20px; flex-wrap:wrap; margin:22px 0 30px; }.horizon-label h2 { font-size:.9375rem; margin-bottom:2px; }.horizon-label>span { font-size:.8125rem; }.horizon-options { display:flex; flex-wrap:wrap; gap:5px; }.horizon-option { display:flex; flex-direction:column; gap:0; align-items:center; padding:5px 10px; margin:0; min-width:44px; min-height:44px; font-size:.9375rem; }.horizon-option span { font-size:.6875rem; font-weight:450; }.horizon-option.selected { box-shadow:0 0 0 2px var(--yellow); }.horizon-estimate { flex-basis:100%; margin:0; font-size:.8125rem; color:var(--muted); }
.cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; }.four { grid-template-columns:repeat(4,minmax(0,1fr)); }.shortlist-heading { margin-bottom:15px; }.shortlist-heading h2 { font-size:1.25rem; }.car { padding:19px; margin:0; }.car h3 { font-size:1rem; min-height:48px; margin:12px 0 15px; }.car-topline { display:flex; align-items:center; justify-content:space-between; gap:6px; }.car-type { color:var(--navy); font-size:.75rem; font-weight:650; }.baseline-tag { color:var(--muted); background:var(--slate-100); border-radius:20px; font-size:.6875rem; padding:3px 7px; }
.current-price { display:flex; flex-direction:column; gap:1px; padding-bottom:15px; margin-bottom:15px; border-bottom:1px solid var(--border); }.current-price small { font-size:.75rem; }.current-price strong { color:var(--navy); font-size:1.125rem; }.ownership-total>small { font-size:.75rem; }.metric { display:block; color:var(--navy); font-size:1.9rem; line-height:1.25; letter-spacing:-.045em; }.ownership-total>span { display:block; font-size:.75rem; color:var(--muted); margin-top:5px; }.cost-difference { color:var(--navy); font-size:.75rem; font-weight:600; margin:15px 0; }.car-fit { display:flex; align-items:center; justify-content:space-between; padding:12px 0; border-top:1px solid var(--border); font-size:.8125rem; }.car-fit strong { font-size:1rem; color:var(--navy); }.car-fit small { font-size:.6875rem; font-weight:450; }
.car-cash { margin:6px 0 0; border-top:1px solid var(--border); padding-top:12px; }.car-cash summary { font-size:.75rem; font-weight:500; }.car-cash[open]>summary { margin-bottom:12px; }dl { font-size:.8125rem; margin:0; }dt { color:var(--muted); margin-top:12px; }dd { margin:1px 0 0; font-weight:650; }
.cost-details { margin-top:24px; }.cost-details>summary { display:flex; justify-content:space-between; gap:15px; font-size:1rem; }.cost-details>summary:after { content:"+"; font-size:1.25rem; color:var(--sky-dark); }.cost-details[open]>summary:after { content:"−"; }.cost-details summary small { font-weight:450; font-size:.8125rem; margin-left:auto; }.chart-section { padding-top:10px; }.chart-section>p { font-size:.875rem; color:var(--muted); }
figure { margin:20px 0; }figcaption { font-weight:600; font-size:.875rem; margin-bottom:7px; }.cost-bar { height:22px; background:var(--slate-100); border-radius:5px; overflow:hidden; }.cost-chart { display:block; width:100%; height:22px; }.cost-bar,.segment { animation:none!important; transition:none!important; opacity:1; content-visibility:visible; }.s0 { background:var(--navy); }.s1 { background:var(--sky); }.s2 { background:var(--yellow); }.s3 { background:var(--muted); }.cost-chart .s0 { fill:var(--navy); }.cost-chart .s1 { fill:var(--sky); }.cost-chart .s2 { fill:var(--yellow); }.cost-chart .s3 { fill:var(--muted); }
.cost-legend { display:flex; flex-wrap:wrap; gap:10px 20px; padding:0; margin:20px 0 28px; list-style:none; font-size:.8125rem; }.cost-legend li { display:flex; align-items:center; gap:8px; }.legend-swatch { width:13px; height:13px; border:1px solid var(--navy); border-radius:3px; print-color-adjust:exact; }
.table-scroll { max-height:75vh; overflow:auto; border:1px solid var(--border); border-radius:11px; overscroll-behavior:contain; scroll-padding-top:110px; margin-bottom:18px; }table { border-collapse:separate; border-spacing:0; width:100%; min-width:680px; font-size:.8125rem; }td,th { text-align:right; padding:13px; border-bottom:1px solid var(--border); vertical-align:top; }th:first-child { text-align:left; min-width:210px; }thead { position:sticky; top:0; z-index:3; background:var(--slate-100); box-shadow:0 2px 0 var(--border); }.comparison-table-title th { text-align:left; background:var(--sky-light); padding:16px 13px; }tbody tr:nth-child(even) { background:var(--slate-50); }
.measure-help { display:inline-block; vertical-align:middle; margin-left:5px; }.info-button { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; min-height:0; padding:0; margin:0; border:1px solid var(--sky-dark); border-radius:50%; color:var(--navy); background:var(--sky-light); font:italic 700 14px/1 Georgia,serif; cursor:help; }.info-button:hover { background:var(--navy); border-color:var(--navy); color:white; }.measure-popup { position:fixed; inset:auto; top:50%; left:50%; transform:translate(-50%,-50%); width:340px; max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); overflow:auto; margin:0; padding:18px 20px; border:1px solid var(--border); border-top:3px solid var(--sky); border-radius:12px; box-shadow:0 12px 36px #071f3426; background:white; color:var(--ink); text-align:left; font:400 .875rem/1.6 system-ui; white-space:normal; }.measure-popup strong { display:block; color:var(--navy); margin-bottom:8px; }.measure-popup::backdrop { background:transparent; }
.estimate-warning { padding:12px 15px; background:#fff9e6; border-left:3px solid var(--yellow); border-radius:6px; color:#704400; font-size:.8125rem; margin:20px 0; }.estimate-warning summary { font-size:.875rem; }.estimate-warning li { margin:8px 0; }.estimate-warning a { font-size:.8125rem; }.input-warning-badge { display:inline-block; margin-left:8px; padding:3px 7px; border-radius:20px; color:#704400; background:#fff4c2; font-size:.6875rem; font-weight:600; }
.selection-editor>p { color:var(--muted); }.choice { display:flex; align-items:center; justify-content:space-between; gap:18px; border-top:1px solid var(--border); padding:16px 0; flex-wrap:wrap; }.choice strong { font-size:1rem; }.choice>p { font-size:.8125rem; color:var(--muted); margin:0; }.selection-editor>form { border-top:1px solid var(--border); padding-top:20px; max-width:620px; margin:15px 0; }.selection-editor>a { font-size:.875rem; }
.vehicle-editor { border-top:1px solid var(--border); padding-top:20px; margin-top:23px; }.vehicle-editor>summary { font-size:1rem; }.vehicle-fields [hidden] { display:none!important; }.vehicle-fields h3 { margin-top:25px; }.criterion-ratings { margin:12px 0 0; }.criterion-ratings>summary { font-size:.875rem; color:var(--muted); }.criterion-ratings .fields { padding-top:10px; }.save { padding:12px 0 20px; }.save p { font-size:.8125rem; margin-top:8px; }.comparison-inputs>section>p { font-size:.9375rem; color:var(--muted); }
.delete-dialog { width:min(480px,calc(100vw - 32px)); padding:28px; border:1px solid var(--border); border-radius:16px; background:white; color:var(--ink); box-shadow:0 20px 70px #071f3440; }.delete-dialog::backdrop { background:#071f3466; }.dialog-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:20px; }.danger-button { background:#912c19; border-color:#912c19; }.danger-button:hover { background:#712012; border-color:#712012; }.delete-confirmation { max-width:680px; margin:auto; }.delete-confirmation h1 { font-size:2rem; }
.chat-layout { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:24px; }.chat-main { margin-top:0; }.chat-side { align-self:start; margin-top:0; font-size:.875rem; }.chat-side h2 { font-size:1.125rem; }.chat-text { white-space:pre-wrap; overflow-wrap:anywhere; }.chat-turn { border-top:1px solid var(--border); padding:22px 0; }.chat-turn h3 { font-size:.8125rem; }.chat-answer { padding:18px; background:var(--sky-light); border-radius:11px; }.chat-turn small { font-size:.75rem; }.chat-main>p { font-size:.875rem; }.chat-main form>p { font-size:.8125rem; }
.import-panel { max-width:1000px; }.import-badge { display:inline-block; font-size:.6875rem; font-weight:650; background:var(--sky-light); color:var(--navy); border:1px solid var(--border); border-radius:20px; padding:3px 8px; margin-left:8px; vertical-align:middle; }.import-facts { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:12px; }.import-facts article { border:1px solid var(--border); border-radius:10px; padding:15px; background:var(--slate-50); }.import-facts blockquote { font-size:.875rem; margin:12px 0 0; border-left:3px solid var(--sky); padding-left:10px; color:var(--muted); overflow-wrap:anywhere; }
.intro { max-width:800px; margin:20px 0 30px; }.intro h1 { font-size:2.5rem; }.login { max-width:480px; }.row { display:flex; gap:28px; }.col-md-4 { width:100%; max-width:500px; }.col-md-6 { width:100%; max-width:650px; }.form-control { display:block; }.nav { list-style:none; padding:0; }.nav-link { display:inline-block; padding:6px 0; }
@media(max-width:1050px) {
  .four { grid-template-columns:repeat(2,minmax(0,1fr)); }.car h3 { min-height:0; }.home-hero { gap:30px; }.hero-copy h1 { font-size:3rem; }.hero-visual { padding:18px; }.hero-values span { font-size:.6875rem; padding:6px 8px; }.comparison-heading { align-items:flex-start; }.fields { grid-template-columns:repeat(2,minmax(0,1fr)); }.two-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:720px) {
  .header-inner { padding:16px 20px; gap:15px; }.site-header nav,.navbar-nav { gap:15px; }.site-header nav a { font-size:.8125rem; }.brand { font-size:1.0625rem; gap:8px; }.brand-mark { width:31px; height:31px; }.optional-login span { display:none; }main { padding:26px 20px 45px; }.site-footer { padding:24px 20px; flex-direction:column; gap:12px; }.site-footer>div { gap:12px; }.home-hero { display:block; padding:18px 0 32px; }.hero-copy h1 { font-size:clamp(2.5rem,8vw,3.3rem); }.hero-description { font-size:1rem; }.hero-visual { display:none; }.decisions-section { padding:20px; }.saved { gap:12px; }.saved-description>a { font-size:.9375rem; }.start-options { gap:24px; padding:30px 0; }.start-options article { padding-left:0; }.feature-icon { display:none; }.comparison-heading { display:block; margin-bottom:18px; }.comparison-tools { margin-top:15px; }.comparison-heading h1 { font-size:1.65rem; }.comparison-tools>.button { padding:8px 14px; min-height:38px; }.tabs { gap:2px; margin-bottom:20px; }.tabs a { padding:8px 12px; font-size:.8125rem; }.decision-answer { grid-template-columns:1fr; }.answer-main { padding:23px; }.answer-main h2 { font-size:1.5rem; }.answer-fit { border-left:0; border-top:1px solid #c9e5f1; padding:22px; }.answer-fit h3 { display:inline; margin-right:12px; }.fit-value { display:inline-block; font-size:1.5rem; margin:8px 0; }.answer-fit p { margin-top:8px; }.answer-footer { padding:14px 22px; flex-direction:column; gap:6px; }.answer-amount { font-size:2.4rem; }.horizon-control { gap:12px; margin:22px 0; }.horizon-label { flex-basis:100%; display:flex; gap:12px; align-items:baseline; }.horizon-options { display:grid; grid-template-columns:repeat(10,1fr); gap:4px; }.horizon-option { padding:5px 6px; min-width:0; }.horizon-option span { font-size:.625rem; }.horizon-estimate { font-size:.75rem; }.cost-details { padding:19px; }.cost-details>summary small { display:none; }.chat-layout,.two { display:block; }.chat-side { margin-top:20px; }.saved-car-options { grid-template-columns:1fr; }.row { display:block; }.section-heading { gap:12px; }.section-heading>span { font-size:.8125rem; }.cost-difference { font-size:.8125rem; }
}
@media(max-width:480px) {
  .header-inner { padding:14px 16px; }.site-header nav { gap:13px; }.brand { font-size:1rem; }.brand-mark { width:28px; height:28px; }main { padding:22px 16px 40px; }.panel { padding:20px; }.four,.fields,.two-fields,.start-options { grid-template-columns:1fr; }.car { padding:21px; }.car h3 { min-height:0; font-size:1.0625rem; }.current-price { flex-direction:row; align-items:baseline; justify-content:space-between; padding-bottom:12px; margin-bottom:12px; }.ownership-total .metric { font-size:2.1rem; }.car-fit { padding:9px 0; }.car-cash summary { font-size:.8125rem; }.saved { align-items:flex-start; }.saved-actions { gap:5px; }.saved-actions .small { font-size:.75rem; padding:7px 8px; }.start-options { gap:25px; }.hero-actions>.button,.hero-actions>form { flex:1; }.hero-actions>form>button { width:100%; white-space:nowrap; }.hero-actions .button,.hero-actions button { padding:12px 14px; font-size:.875rem; }.horizon-options { grid-template-columns:repeat(5,1fr); }.horizon-option { min-width:44px; }.answer-main h2 { font-size:1.35rem; }.cost-legend { gap:10px 14px; }.input-warning-badge { margin-left:0; margin-top:6px; }.section-heading { align-items:flex-start; }.section-heading h2 { font-size:1.25rem; }
}
@media(pointer:coarse) { .info-button { width:30px; height:30px; }.delete-decision-icon { width:44px; height:44px; }.small { min-height:40px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
@media print {
  body { background:white; font-size:10pt; }main { max-width:none; padding:0; }.site-header,.site-footer,.tabs,.comparison-tools,.back-link,.no-print,.save,.skip,button,.button,.horizon-options,.selection-editor,.measure-help,.report-tools,.saved-actions { display:none!important; }.comparison-heading h1 { font-size:22pt; }.comparison-tab:not(.save):not(.no-print) { display:block!important; }details::details-content { display:block!important; }details { display:block; }details>summary { margin-bottom:12px; }.panel { box-shadow:none; padding:12px; margin:12px 0; }.decision-answer { border:1px solid var(--navy); background:white; }.answer-main,.answer-fit { background:white; padding:15px; }.answer-main h2 { font-size:16pt; }.answer-amount { font-size:23pt; }.answer-footer { display:none; }.four { grid-template-columns:repeat(4,1fr); gap:8px; }.car { padding:9px; }.car h3 { font-size:10pt; min-height:40px; }.metric { font-size:18pt; }.current-price strong { font-size:11pt; }.current-price { display:block; }.car-cash { break-inside:avoid; }.table-scroll { max-height:none; overflow:visible; }table { min-width:0; font-size:8pt; }th:first-child { min-width:0; }td,th { padding:6px; }thead { position:static; display:table-header-group; box-shadow:none; }.cost-details { border:0; padding:0; }.cost-details>summary:after { display:none; }.fields { grid-template-columns:repeat(3,1fr); }input,select,textarea { min-height:0; padding:4px; background:white; }.cost-chart,.legend-swatch { print-color-adjust:exact; }.cost-bar,.cost-chart { break-inside:avoid; }#costs,#priorities { break-before:page; }textarea { field-sizing:content; min-height:40px; }
}

.catalog-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:25px}.catalog-heading p{color:var(--muted);margin-bottom:0}.catalog-search{display:flex;align-items:start;gap:10px;max-width:640px;margin-bottom:22px}.catalog-search input{margin:4px 0}.catalog-car{margin:0}.catalog-car h2{font-size:1.125rem;margin:17px 0}.catalog-price{font-size:1.6rem;color:var(--navy);font-weight:650;letter-spacing:-.025em}.catalog-price small{font-size:.8125rem;display:block;font-weight:450;letter-spacing:0}.catalog-car-actions{display:flex;align-items:center;gap:15px;border-top:1px solid var(--border);padding-top:14px;font-size:.875rem}.catalog-car-actions form{margin-left:auto}.vehicle-fields>details{border-top:1px solid var(--border);padding-top:18px}.vehicle-fields>details>summary{font-size:.9375rem}.vehicle-fields .estimate-warning{font-size:.8125rem}.criterion-ratings .muted{font-size:.8125rem}@media(max-width:720px){.catalog-heading{display:block}.catalog-heading .actions{margin-top:18px}}
/* Personal Fit: all figures and charts share the server calculation. */
.fit-chart-row { margin:24px 0; break-inside:avoid; }
.fit-chart-label { display:flex; justify-content:space-between; gap:20px; margin-bottom:9px; font-size:.9375rem; }
.fit-chart-label span { white-space:nowrap; font-weight:700; color:var(--navy); }
.fit-score-chart { display:block; width:100%; height:22px; }
.fit-track { fill:var(--slate-100); }
.fit-fill { fill:var(--navy); }
.fit-table-scroll { max-height:none; }
.fit-table th,.fit-table td { min-width:150px; }
.fit-rating,.fit-points { display:block; font-size:.875rem; }
.fit-points { margin:4px 0 8px; color:var(--navy); }
.fit-contribution-chart { display:block; width:100%; height:8px; }
.fit-table tfoot { background:var(--sky-light); }
.fit-explanation { margin-top:24px; }
@media(max-width:720px) { #fit>.section-heading { align-items:flex-start; flex-direction:column; } .fit-chart-label { font-size:.875rem; } }
@media print { #fit { break-before:page; } .fit-score-chart,.fit-contribution-chart { print-color-adjust:exact; } }
.home-compact { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:0 0 16px; margin-bottom:16px; border-bottom:1px solid var(--border); }
.home-compact h1 { font-size:1.4rem; margin:0 0 4px; }
.home-compact p { margin:0; font-size:.875rem; }
.home-compact .hero-actions { margin:0; }
.home-compact .hero-actions button,.home-compact .hero-actions .button { padding:9px 14px; min-height:40px; font-size:.875rem; }
.vehicle-image { display:block; width:100%; height:150px; object-fit:contain; border-radius:10px; background:var(--sky-light); margin:12px 0; }
.vehicle-remove-link { color:var(--navy); font-weight:700; }
@media(max-width:720px) { .home-compact { align-items:flex-start; flex-direction:column; gap:10px; } .brand { max-width:160px; line-height:1.15; } .home-compact .hero-actions { width:100%; } }

@media print { #cars { break-before:page; } }

/* Consistent result/input navigation and page-level report scrolling. */
.tabs { position:sticky; top:0; z-index:20; background:var(--surface); padding:10px 0; min-height:var(--tabs-height); align-items:center; box-shadow:0 1px 0 var(--border); }
.tabs .input-tab-start { border-left:2px solid var(--border); margin-left:12px; border-top-left-radius:0; border-bottom-left-radius:0; }
.comparison-tab { scroll-margin-top:calc(var(--tabs-height) + 16px); }
.site-header nav a[aria-current=page] { color:var(--navy); background:var(--sky-light); border-bottom:2px solid var(--sky-dark); padding:5px 8px; border-radius:5px; }
.table-scroll { max-height:none; overflow-x:auto; overscroll-behavior:auto; }
.ratings-grid input { min-width:80px; max-width:110px; margin:0; }
.table-scroll thead { position:static; }
.table-scroll th:first-child { position:sticky; left:0; background:var(--surface); z-index:2; }
.table-scroll thead th:first-child { background:var(--slate-100); }
.vehicle-editor[open] { border:1px solid var(--sky-dark); padding:16px; border-radius:10px; }
@media(min-width:1000px) {
 .cost-details>.table-scroll { overflow:visible; }
 .cost-details table { table-layout:fixed; min-width:0; }
 .cost-details th,.cost-details td { overflow-wrap:anywhere; }
 .cost-details th:first-child { width:28%; min-width:0; }
 .cost-details thead { position:sticky; top:var(--tabs-height); z-index:5; }
}
@media(max-width:720px) {
 .header-inner { flex-wrap:wrap; gap:12px; }
 .header-inner .brand { max-width:none; white-space:normal; min-width:0; }
 .brand-mark { flex-shrink:0; }
 .site-header nav { flex-wrap:wrap; gap:12px; }
 .tabs .input-tab-start { margin-left:5px; }
}
@media print { .tabs { display:none!important; } .table-scroll,.cost-details>.table-scroll { overflow:visible; } .table-scroll thead,.cost-details thead { position:static; } .table-scroll th:first-child { position:static; } }

/* First-visit introduction: a live-calculated example, without creating user data. */
.home-welcome { margin-bottom:40px; }
.welcome-copy { max-width:780px; padding:18px 0 30px; }
.welcome-copy .eyebrow { margin-bottom:12px; }
.welcome-copy h1 { font-size:clamp(2.25rem,4.8vw,3.75rem); line-height:1.09; margin:0 0 18px; }
.welcome-copy h1 span { color:var(--muted); }
.welcome-description { max-width:660px; color:var(--muted); font-size:1.075rem; margin-bottom:22px; }
.welcome-reassurance { margin:12px 0 0; color:var(--muted); font-size:.8125rem; }
.home-comparison-preview { padding:26px; border:1px solid var(--border); border-top:3px solid var(--sky); border-radius:20px; background:var(--sky-light); box-shadow:0 14px 40px #071f3408; }
.preview-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.preview-label { font-size:.6875rem; font-weight:750; letter-spacing:.12em; color:var(--navy); }
.preview-heading h2 { margin:6px 0 0; font-size:1.3rem; }
.preview-period { color:var(--navy); background:var(--surface); border:1px solid var(--border); border-radius:30px; padding:7px 13px; font-size:.8125rem; font-weight:600; white-space:nowrap; }
.preview-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.preview-car { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:18px; min-width:0; }
.preview-car:first-child { border-top:3px solid var(--yellow); padding-top:16px; }
.preview-car-image { display:block; width:100%; height:auto; margin:14px 0; border-radius:9px; }
.preview-car h3 { font-size:.9375rem; min-height:58px; margin:0 0 16px; line-height:1.35; }
.preview-price,.preview-cash { display:flex; flex-direction:column; gap:4px; }
.preview-price span,.preview-cash span,.preview-cash small { font-size:.75rem; color:var(--muted); }
.preview-price strong { font-size:1.1rem; color:var(--navy); }
.preview-cash { border-top:1px solid var(--border); padding-top:16px; margin-top:16px; }
.preview-cash>strong { color:var(--navy); font-size:clamp(1.5rem,2.4vw,2rem); line-height:1.2; letter-spacing:-.04em; }
.preview-difference { font-size:.75rem; color:var(--navy); margin:14px 0 0; }
.preview-disclaimer { font-size:.75rem; color:var(--muted); margin:18px 0 0; max-width:880px; }
@media(max-width:1000px) { .preview-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } .preview-car h3 { min-height:40px; } }
@media(max-width:540px) { .welcome-copy { padding-top:4px; } .welcome-description { font-size:1rem; } .preview-heading { align-items:flex-start; flex-direction:column; gap:10px; } .home-comparison-preview { padding:16px; } .preview-cards { grid-template-columns:1fr; } .preview-car { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); column-gap:14px; } .preview-car .car-topline,.preview-car h3,.preview-car .preview-difference { grid-column:1/-1; } .preview-car-image { grid-column:1; grid-row:2; align-self:center; } .preview-price { grid-column:2; grid-row:2; align-self:center; } .preview-cash { grid-column:1/-1; } .preview-car h3 { min-height:0; margin-bottom:0; } }

.car-cash>h4 { font-size:.8125rem; font-weight:600; margin:0 0 12px; }

.cash-monthly-difference { margin:-8px 0 14px; color:var(--muted); font-size:.8125rem; }

/* Shared row tracks keep matching figures level across each row of car cards. */
@supports (grid-template-rows:subgrid) {
 @media(min-width:481px) {
  .comparison-cards { gap:0 16px; }
  .comparison-cards>.car { display:grid; grid-template-rows:subgrid; grid-row:span 19; row-gap:0; margin-bottom:16px; }
  .comparison-cards .car-cash { display:grid; grid-template-rows:subgrid; grid-row:span 11; row-gap:0; }
  .comparison-cards .car-cash>dl { display:grid; grid-template-rows:subgrid; grid-row:span 10; row-gap:0; }
 }
}

.operating-breakdown { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px 14px; margin:12px 0; }
.operating-breakdown dt,.operating-breakdown dd { margin:0; }
.operating-breakdown dd { text-align:right; white-space:nowrap; }
.operating-breakdown dt:last-of-type,.operating-breakdown dd:last-of-type { border-top:1px solid var(--border); padding-top:8px; color:var(--navy); font-weight:700; }

.cost-chart-caption { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 18px; }
.cost-chart-caption strong { color:var(--navy); white-space:nowrap; }
.cash-out-chart { background:var(--slate-100); border-radius:5px; }
.cash-out-segment,.appreciation-segment { fill:var(--navy); }
.chart-zero { stroke:var(--ink); stroke-width:.15; opacity:.5; pointer-events:none; }
.chart-axis { display:flex; justify-content:space-between; margin:-8px 0 22px; color:var(--muted); font-size:.75rem; }
[data-chart-tip] { cursor:help; }
[data-chart-tip]:focus { outline:2px solid var(--sky-dark); outline-offset:-2px; }
.chart-tooltip { position:fixed; z-index:100; max-width:min(360px,calc(100vw - 16px)); padding:10px 14px; border-radius:8px; color:var(--surface); background:var(--deep-navy); box-shadow:0 5px 16px #071f3430; font-size:.8125rem; pointer-events:none; }
@media print { .chart-tooltip { display:none!important; } .cash-out-chart { print-color-adjust:exact; } }

/* CCC brand: shared logo and favicon. */
.brand-mark { display:block; width:46px; height:46px; background:none; border:0; border-radius:0; flex-shrink:0; }
.footer-brand { display:inline-flex; align-items:center; gap:9px; }
.footer-brand img { display:block; flex-shrink:0; }
@media(max-width:720px) { .brand-mark { width:36px; height:36px; } }

/* Keep the car identity visible beneath the comparison tabs on desktop. */
.car-identity { background:var(--surface); min-width:0; }
@supports (grid-template-rows:subgrid) {
 @media(min-width:481px) {
  .comparison-cards .car-identity { display:grid; grid-template-rows:subgrid; grid-row:span 3; row-gap:0; }
 }
}
@media screen and (min-width:1000px) {
 .comparison-cards .car-identity { position:sticky; top:var(--tabs-height); z-index:10; border-bottom:1px solid var(--border); box-shadow:0 5px 8px -8px var(--navy); }
 .comparison-cards .car-identity h3 { margin-bottom:12px; }
}
@media print { .car-identity { position:static!important; box-shadow:none!important; } }

.trade-plan { display:block; color:var(--muted); font-size:.7rem; font-weight:400; margin-top:6px; }

/* Native field visibility also works without JavaScript in browsers supporting :has. */
@supports selector(:has(*)) {
 [data-quick-purchase]:has([data-quick-powertrain] option[value="2"]:checked) [data-quick-gas],
 [data-quick-current]:has([data-quick-powertrain] option[value="2"]:checked) [data-quick-gas],
 [data-quick-purchase]:not(:has([data-quick-powertrain] option[value="2"]:checked)) [data-quick-electric],
 [data-quick-current]:not(:has([data-quick-powertrain] option[value="2"]:checked)) [data-quick-electric],
 [data-quick-purchase]:has([data-cash-purchase]:checked) [data-financing-details],
 .setup-form:not(:has(#TradePlan option[value="trade"]:checked)) [data-setup-dealer-offer],
 .setup-form:not(:has(#TradePlan option[value="sell"]:checked)) [data-setup-private-sale] { display:none; }
}

@supports selector(:has(*)) { .current-loan:has([data-current-loan-status] option[value="paid-off"]:checked) [data-current-loan-fields] { display:none; } }

@supports selector(:has(*)) { .setup-current:not(:has(#HasCurrentCar:checked)) [data-current-car-fields] { display:none; } }

.signed-in-user { display:block; max-width:240px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rename-comparison { margin-top:8px; font-size:.875rem; }
.rename-comparison form { padding:12px; border:1px solid var(--border); border-radius:8px; background:var(--surface); }
@media(max-width:600px){.signed-in-user{max-width:160px;}}

.comparison-title-row { display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; }
.comparison-title-row h1 { margin-bottom:0; }
.comparison-title-row .rename-comparison[open] { flex-basis:100%; }
.save-progress-dialog { width:min(560px,calc(100% - 32px));border:1px solid var(--border,#e2e8f0);border-radius:18px;padding:28px;color:var(--navy,#0a2f4e); }
.save-progress-dialog::backdrop { background:rgb(7 31 52 / .6); }
.save-progress-dialog progress { width:100%;height:20px;accent-color:var(--sky,#12aae1); }
/* CCC: a calm navy foundation, sky selections and restrained winner accents. */
.brand-mark { border-bottom:0; border-radius:10px; flex-shrink:0; }
.answer-main { border-top:3px solid var(--yellow); }
.tabs a[aria-current=page] { background:var(--sky-light);box-shadow:inset 0 -3px var(--sky); }
.claude-recommendation { border-left:3px solid var(--sky); }
.home-ai { background:var(--sky-light);border:1px solid var(--border);border-top:4px solid var(--sky);padding:clamp(20px,3vw,32px);margin-bottom:28px;display:grid;grid-template-columns:1fr 1.4fr;gap:28px;align-items:center; }
.home-ai h2 {font-size:clamp(1.6rem,3vw,2.2rem);margin-bottom:12px;}
.home-ai textarea {background:var(--surface);min-height:100px;resize:vertical;}
.home-ai-actions {display:flex;align-items:center;gap:14px;margin-top:10px;}
.home-ai-actions small {color:var(--navy);line-height:1.5;}
@media(max-width:760px){.home-ai{grid-template-columns:1fr;gap:8px;}.home-ai-actions{align-items:flex-start;flex-direction:column;}}
.home-ai .home-ai-actions { display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:12px; }
.home-ai .home-ai-actions button { margin:0;flex-shrink:0; }
