/* costoauto.app: the app's Box Box language on the web. Black ground, one teal
   glow, Montserrat, thin hero numerals, dark cards with hairline rows, white
   capsule buttons. Tokens mirror CostoAutoTheme.Palette. */

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #151515;
  --raised: #1f1f1f;
  --ink: #ffffff;
  --ink-sec: #b5b5b5;
  --ink-ter: #7a7a7a;
  --hair: rgba(255, 255, 255, 0.08);
  --fuel: #2bd4b4;
  --spend: #ff6a1f;
  --warn: #f5b400;
  --good: #3ddc84;
  --cta-fill: #ffffff;
  --on-cta: #0a0a0a;
  --glow: rgba(43, 212, 180, 0.22);
  --radius: 22px;
  --inset: 16px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f2f2f2;
    --surface: #ffffff;
    --raised: #ffffff;
    --ink: #0a0a0a;
    --ink-sec: #5f5f5f;
    --ink-ter: #8a8a8a;
    --hair: rgba(0, 0, 0, 0.08);
    --fuel: #0e8f79;
    --spend: #e0570f;
    --warn: #c98f00;
    --good: #1f9d55;
    --cta-fill: #0a0a0a;
    --on-cta: #ffffff;
    --glow: rgba(14, 143, 121, 0.16);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; }
a { color: var(--fuel); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(30px, 6vw, 44px); font-weight: 700; margin: 0.2em 0 0.4em; }
h2 { font-size: clamp(22px, 4vw, 28px); font-weight: 700; margin: 2em 0 0.6em; }
h3 { font-size: 18px; font-weight: 700; margin: 1.6em 0 0.4em; }
p { margin: 0 0 1em; }
.muted, .byline, .cue { color: var(--ink-sec); }
.kicker { color: var(--fuel); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 6px; }
.lede { font-size: 18px; color: var(--ink-sec); max-width: 44em; }
/* Author display rules (.choice is flex) would otherwise override the hidden attribute. */
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--hair); }
.bar { max-width: 1040px; margin: 0 auto; padding: 0 var(--inset); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand img { border-radius: 7px; }
.site-nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.site-nav a { color: var(--ink-sec); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 0; }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--ink); }

main { max-width: 1040px; margin: 0 auto; padding: 8px var(--inset) 64px; position: relative; }
main.with-glow::before {
  /* Exactly the screen's width: a glow wider than the screen makes a phone widen the page to fit it. */
  content: ""; position: absolute; top: -60px; left: calc(50% - 50vw); right: calc(50% - 50vw); height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 0%, var(--glow), transparent 70%);
}

.crumbs { font-size: 13px; color: var(--ink-ter); margin: 18px 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-sec); text-decoration: none; }
.crumbs .sep { color: var(--ink-ter); }

.doc-head { margin-top: 20px; }
.model-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px 28px; align-items: center; }
.hero-number { margin: 18px 0 2px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hero-number .value { font-size: clamp(52px, 11vw, 76px); font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.hero-number .unit { font-size: 18px; font-weight: 600; color: var(--ink-sec); }
.hero-sub { color: var(--ink-sec); font-weight: 600; font-size: 15px; }
.car-figure { margin: 0; text-align: center; }
/* A painted glow under the wheels: WebKit draws filter: drop-shadow around the image box, not the car. */
.car-figure img { width: 100%; max-width: 460px; background: radial-gradient(40% 9% at 50% 80%, var(--glow), transparent); }

.answer { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 18px 20px; margin: 24px 0; }
.answer p { margin: 0; font-size: 17px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--cta-fill); color: var(--on-cta); font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit;
}
.button:hover { text-decoration: none; opacity: 0.9; }
.button.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair), inset 0 0 0 1px var(--ink-ter); }

.cta-panel, .app-panel { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 22px; margin: 32px 0; }
.cta-panel h2, .app-panel h2 { margin-top: 0; }
.kicker + h2 { margin-top: 0.3em; }
.app-panel { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; }
.app-icon { border-radius: 15px; }
/* The official Apple and Google badges, at the same height, with the clear space their guidelines ask for. */
.store-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 12px; }
.store-links a { display: block; line-height: 0; }
.store-links img { height: 48px; width: auto; }
.fact-line { font-size: 13px; color: var(--ink-sec); margin: 6px 0 0; }

.tablewrap { overflow-x: auto; margin: 16px 0 20px; border: 1px solid var(--hair); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
caption { text-align: left; padding: 14px 16px 6px; font-size: 13px; color: var(--ink-sec); font-weight: 600; }
th, td { padding: 12px 16px; border-top: 1px solid var(--hair); text-align: left; vertical-align: top; }
thead th { border-top: 0; font-size: 12px; color: var(--ink-ter); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
tbody th { font-weight: 600; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.note { color: var(--ink-sec); font-size: 13px; min-width: 16em; }
.cue { display: block; font-size: 12px; font-weight: 500; }
tfoot th, tfoot td { border-top: 1px solid var(--ink-ter); }
tr.self th, tr.self td { color: var(--fuel); }
td.rank { color: var(--ink-ter); width: 2.5em; }
.bollo-regions tbody th { position: sticky; left: 0; background: var(--surface); }
.bollo-regions thead th.num { white-space: normal; min-width: 7.5em; }
.bollo-regions .rank { display: inline-block; min-width: 1.7em; color: var(--ink-ter); font-weight: 500; }
.bollo-regions tfoot th { position: sticky; left: 0; background: var(--surface); }

/* Narrow screens: each row of an entity table becomes a card, and each value carries its column name. */
@media (max-width: 560px) {
  table.stack, table.stack tbody, table.stack tfoot, table.stack caption { display: block; }
  table.stack thead { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  table.stack tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; padding: 12px 14px; border-top: 1px solid var(--hair); }
  table.stack th, table.stack td { padding: 0; border: 0; }
  table.stack th[scope="row"] { grid-column: 1 / -1; }
  table.stack td.num { text-align: left; }
  table.stack td .cue { white-space: normal; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; color: var(--ink-ter); white-space: normal; line-height: 1.3; }
  table.stack td.note { grid-column: 1 / -1; min-width: 0; }
  table.stack tfoot tr { border-top: 1px solid var(--ink-ter); }
  table.breakdown.stack tr { grid-template-columns: minmax(0, 1fr) auto; }
  table.breakdown.stack th[scope="row"] { grid-column: auto; }
  table.breakdown.stack td.num { text-align: right; }
  table.ranking.stack tr { grid-template-columns: 2em repeat(3, minmax(0, 1fr)); }
  table.ranking.stack td.rank { grid-column: 1; grid-row: 1 / span 3; width: auto; }
  table.ranking.stack th[scope="row"], table.ranking.stack td.fuel { grid-column: 2 / -1; }
  table.ranking.stack td.fuel { color: var(--ink-sec); font-size: 13px; }
  table.bollo-regions.stack tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  table.bollo-regions.stack td[data-label]::before { white-space: normal; }
  table.bollo-regions.stack td:empty { display: none; }
  table.bollo-regions.stack tbody th, table.bollo-regions.stack tfoot th { position: static; background: none; }
  table.exemption.stack tr { grid-template-columns: minmax(0, 1fr); }
  table.exemption.stack td { grid-column: 1 / -1; }
  table.exemption.stack td:empty { display: none; }
}

.insights { padding-left: 1.2em; color: var(--ink-sec); }
.insights li { margin-bottom: 0.5em; }
.aside-note { border-left: 3px solid var(--warn); padding: 6px 0 6px 14px; color: var(--ink-sec); }

.car-cards { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.car-card a { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 10px 14px 16px; text-decoration: none; color: var(--ink); height: 100%; }
.car-card a:hover { border-color: var(--ink-ter); }
.car-card img { width: 100%; aspect-ratio: 1; object-fit: contain; margin-bottom: -6px; }
.car-card strong { font-size: 16px; }
.car-card span { color: var(--ink-sec); font-weight: 600; font-size: 14px; }
.model-links { list-style: none; padding: 0; margin: 12px 0 20px; columns: 2; column-gap: 24px; }
.model-links li { break-inside: avoid; padding: 5px 0; }
@media (min-width: 721px) { .model-links { columns: 4; } }
.more-rows summary { cursor: pointer; font-weight: 600; color: var(--ink); margin: 4px 0; }

.fact-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 16px 0; }
.fact-grid li { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 16px 18px; }
.fact-grid .value { display: block; font-size: 34px; font-weight: 300; letter-spacing: -0.02em; }
.fact-grid .label { color: var(--ink-sec); font-size: 14px; font-weight: 600; }

.faq h3 { margin-top: 1.4em; }
.faq p { color: var(--ink-sec); }
.sources ol { color: var(--ink-sec); font-size: 14px; padding-left: 1.4em; }
.sources li { margin-bottom: 0.3em; }
.prose { max-width: 46em; }
.legal-doc { max-width: 46em; padding-top: 12px; }
.legal-doc .subtitle, .legal-doc .footer { color: var(--ink-sec); }

/* Calculator: one question per screen once the script is running. */
.calc fieldset { border: 0; padding: 0; margin: 28px 0; }
.calc legend { font-size: clamp(22px, 4vw, 28px); font-weight: 700; margin-bottom: 14px; padding: 0; }
.step-count { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--fuel); }
.choices { display: grid; gap: 10px; }
.choices.models { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.choices.versions { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.choices.chips { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.choice { position: relative; display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--hair); border-radius: 18px; padding: 14px 16px; cursor: pointer; font-weight: 600; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--fuel); box-shadow: inset 0 0 0 1px var(--fuel); }
.choice:has(input:focus-visible) { outline: 2px solid var(--fuel); outline-offset: 2px; }
.choice.car { align-items: center; text-align: center; padding: 8px 10px 14px; }
.choice.car img { width: 100%; aspect-ratio: 1; object-fit: contain; }
/* Many models: a denser grid, alphabetical, so 40 cars do not make a screen of scrolling. */
.choices.models.many { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.choices.models.many .choice.car { padding: 4px 6px 10px; border-radius: 14px; font-size: 13px; line-height: 1.25; }
.select select { width: 100%; max-width: 420px; min-height: 52px; border-radius: 14px; padding: 0 14px; font: inherit; font-weight: 600; background: var(--surface); color: var(--ink); border: 1px solid var(--ink-ter); }
.calc[data-ready="true"] .step:not(.active), .calc[data-ready="true"] .calc-result:not(.active) { display: none; }
.calc[data-ready="true"] .step .button[type="submit"] { margin-top: 18px; }
.calc, .app-panel, .risk-result, h2[id], h3[id] { scroll-margin-top: 104px; }
.calc-result { margin-top: 28px; }
.note-2027 { border-left: 3px solid var(--good); padding: 6px 0 6px 14px; color: var(--ink-sec); }
.qr-box { display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 16px; }
.qr-box svg { width: 140px; height: 140px; background: #fff; border-radius: 12px; padding: 8px; }

.site-footer { border-top: 1px solid var(--hair); padding: 28px 0 40px; color: var(--ink-ter); font-size: 13px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; }
.site-footer nav a { color: var(--ink-sec); text-decoration: none; }
.site-footer .legal a { color: var(--ink-sec); }

@media (max-width: 720px) {
  .model-head { grid-template-columns: 1fr; }
  .car-figure { order: -1; }
  /* The renders are square with the car in the middle 60% of the height; 4:3 trims empty space so the answer starts on the first screen. */
  .car-figure img { max-width: 320px; aspect-ratio: 4 / 3; object-fit: cover; background: radial-gradient(40% 12% at 50% 90%, var(--glow), transparent); }
  .app-panel { grid-template-columns: 1fr; }
  th, td { padding: 10px 12px; }
}

/* Headings that receive focus from script to announce a new step show no ring. */
[tabindex="-1"]:focus { outline: none; }
.calc fieldset > .muted { margin-top: 14px; }

/* Explainer boxes on used-car pages: how a part works, for readers new to engines. */
.explainer { background: var(--surface); border: 1px solid var(--hair); border-left: 3px solid var(--fuel); border-radius: 14px; padding: 14px 18px; margin: 20px 0; }
.explainer-label { color: var(--fuel); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 4px; }
.explainer h3 { font-size: 17px; margin: 0 0 6px; }
.explainer p:last-child { margin: 0; font-size: 15px; color: var(--ink-sec); }
/* Diagrams in the boxes (generator/diagrams.mjs): teal for the part the box explains, orange for what goes wrong, amber for oil. */
.explainer-diagram { margin: 14px 0 16px; }
.dg { display: block; width: 100%; max-width: 440px; height: auto; overflow: visible; }
.dg text { font-size: 13.5px; fill: var(--ink-sec); }
.dg .h { fill: var(--ink); font-weight: 600; }
.dg .sub { fill: var(--ink-sec); }
.dg .accent { fill: var(--fuel); }
.dg .hot { fill: var(--spend); font-weight: 600; }
.dg .oiltext { fill: var(--warn); }
.dg .part { fill: var(--raised); stroke: var(--ink-ter); stroke-width: 2; }
.dg .hub { fill: var(--ink-ter); }
.dg .bore { fill: none; stroke: var(--ink-ter); stroke-width: 2; }
.dg .teeth { fill: none; stroke: var(--ink-ter); stroke-width: 5; stroke-dasharray: 2.5 2.5; }
.dg .belt { fill: none; stroke: var(--fuel); stroke-width: 7; stroke-linejoin: round; }
.dg .belt-teeth { fill: none; stroke: var(--surface); stroke-width: 2; stroke-dasharray: 2 4; opacity: 0.55; }
.dg .cover { fill: none; stroke: var(--ink-ter); stroke-width: 2; stroke-dasharray: 5 4; }
.dg .sump { fill: var(--surface); stroke: var(--ink-ter); stroke-width: 2.5; stroke-linejoin: round; }
.dg .oil { fill: var(--warn); fill-opacity: 0.18; }
.dg .oil-line { stroke: var(--warn); stroke-width: 2; }
.dg .tube { stroke: var(--fuel); stroke-width: 8; stroke-linecap: round; }
.dg .bell { fill: var(--fuel); }
.dg .mesh { stroke: var(--ink); stroke-width: 3; stroke-dasharray: 2 2; }
.dg .frag { fill: var(--spend); }
.dg .lead { stroke: var(--ink-ter); stroke-width: 1.2; }
.dg .shaft { fill: none; stroke: var(--ink-ter); stroke-width: 2; stroke-dasharray: 4 3; }
.dg .blade { fill: none; stroke: var(--ink-sec); stroke-width: 2; stroke-linecap: round; }
.dg .liner { fill: var(--raised); stroke: var(--ink-ter); stroke-width: 2; }
.dg .valve { fill: none; stroke: var(--ink-ter); stroke-width: 3; stroke-linecap: round; }
.dg .rod { stroke: var(--ink-ter); stroke-width: 12; stroke-linecap: round; }
.dg .ring { fill: var(--fuel); }
.dg .arrow { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.dg .arrow-head { fill: currentColor; }
.dg .t-air { color: var(--ink-sec); }
.dg .t-cool { color: var(--fuel); }
.dg .t-hot { color: var(--spend); }
.dg .t-oil { color: var(--warn); }

/* Belt spend and report kilometres (generator/charts.mjs), in the app's style: big numbers, short labels,
   thin rounded tracks; spend orange for costs and problems, green for what went well. */
.milestones { list-style: none; padding: 0; margin: 24px 0; }
.ms { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 0 0 26px 34px; }
.ms::before { content: ""; position: absolute; left: 8px; top: 12px; bottom: -12px; width: 2px; border-radius: 1px; background: color-mix(in srgb, var(--ink) 16%, transparent); }
.ms:last-child { padding-bottom: 0; }
.ms:last-child::before { display: none; }
.ms::after { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--ink-ter); background: var(--bg); }
.ms-change::after { background: var(--spend); border-color: var(--spend); box-shadow: 0 0 0 5px color-mix(in srgb, var(--spend) 22%, transparent); }
.ms-official::after { border-color: var(--ink-sec); }
.ms-coverage::after { border-color: var(--good); }
.ms-km { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ms-what { margin: 3px 0 0; font-weight: 600; }
.ms-coverage .ms-what { color: var(--good); }
.ms-note { margin: 2px 0 0; font-size: 14px; color: var(--ink-sec); }
.ms-cost { flex: none; text-align: right; }
.ms-amount { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.15; color: var(--spend); font-variant-numeric: tabular-nums; }
.ms-total { margin: 4px 0 0; font-size: 13px; color: var(--ink-sec); }
.km-ranges { list-style: none; padding: 0; margin: 16px 0 6px; display: grid; gap: 20px; }
.kr-value { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kr-label { margin: 3px 0 8px; font-size: 14px; color: var(--ink-sec); }
.kr-track { display: block; width: 100%; height: auto; overflow: visible; }
.kr-spend .kr-track { color: var(--spend); }
.kr-good .kr-track { color: var(--good); }
.kr-rail { fill: var(--ink-ter); fill-opacity: 0.3; }
.kr-span { fill: currentColor; fill-opacity: 0.4; }
.kr-dot { fill: currentColor; stroke: var(--bg); stroke-width: 1.5; }
.kr-axis { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 12px; color: var(--ink-ter); }

/* The buyer's check (usato.mjs): questions as chips, then the score, the budget and the reasons. */
.risk-form { display: grid; gap: 20px; margin: 18px 0; }
.risk-q { border: 0; padding: 0; margin: 0; min-width: 0; }
.risk-q legend, .risk-label { display: block; font-weight: 600; margin: 0 0 8px; padding: 0; }
.risk-options { display: flex; flex-wrap: wrap; gap: 8px; }
.risk-option { position: relative; cursor: pointer; }
.risk-option input { position: absolute; opacity: 0; pointer-events: none; }
.risk-option span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hair); font-size: 15px; }
.risk-option input:checked + span { border-color: var(--fuel); box-shadow: inset 0 0 0 1px var(--fuel); }
.risk-option input:focus-visible + span { outline: 2px solid var(--fuel); outline-offset: 2px; }
.risk-field select { max-width: 100%; }
.risk-field select, .risk-km input { font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--hair); border-radius: 12px; min-height: 44px; padding: 8px 12px; }
.risk-km { display: inline-flex; align-items: center; gap: 8px; }
.risk-km input { width: 150px; }
.risk-result { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 18px 20px; margin: 8px 0 16px; }
.risk-incomplete { margin: 0; color: var(--ink-sec); }
.risk-heading { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-sec); }
.risk-figure { margin: 6px 0 0; line-height: 1; }
.risk-number { font-size: 48px; font-weight: 700; }
.risk-of { font-size: 18px; color: var(--ink-sec); margin-left: 4px; }
.risk-level { margin: 8px 0 0; font-weight: 700; }
.risk-level.risk-basso { color: var(--good); }
.risk-level.risk-medio { color: var(--warn); }
.risk-level.risk-alto { color: var(--spend); }
.risk-meter { height: 8px; border-radius: 4px; background: var(--hair); margin: 12px 0 16px; overflow: hidden; }
.risk-bar { display: block; height: 100%; border-radius: 4px; }
.risk-bar.risk-basso { background: var(--good); }
.risk-bar.risk-medio { background: var(--warn); }
.risk-bar.risk-alto { background: var(--spend); }
.risk-budget { font-weight: 600; margin: 0 0 14px; }
.risk-reasons { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.risk-reasons li { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--ink-sec); }
.risk-points { font-weight: 700; color: var(--ink); white-space: nowrap; }
.risk-app { margin: 0; }
.risk-method { margin: 8px 0 0; font-size: 15px; color: var(--ink-sec); }
.risk-method summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.checks li { margin-bottom: 0.6em; }
.used-link h2 { margin-top: 0; }

/* The app landing and its sibling pages (generator/landing.mjs, confronto.mjs). Same tokens, same fonts. */
h1, h2, h3, p, li, summary, td, th, dd, dt { overflow-wrap: break-word; }
.site-nav a.nav-cta { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; background: var(--cta-fill); color: var(--on-cta); font-weight: 700; font-size: 14px; text-decoration: none; }
.site-nav a.nav-cta:hover { color: var(--on-cta); opacity: 0.9; }
.site-header .bar { row-gap: 4px; }
.site-header .site-nav { align-items: center; }

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 28px 48px; align-items: center; padding: 36px 0 28px; }
.hero h1 { font-size: clamp(34px, 7.4vw, 58px); margin: 0.1em 0 0.35em; }
.hero .answer { background: none; border: 0; padding: 0; margin: 0 0 22px; }
.hero .answer p { font-size: 18px; color: var(--ink-sec); }
.hero .store-links { margin: 6px 0 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 14px; }
.price-line { font-size: 14px; color: var(--ink-sec); max-width: 40em; }
.updated { font-size: 13px; color: var(--ink-ter); }
.eyebrow { color: var(--fuel); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 6px; }

.shot { margin: 0; justify-self: center; width: 100%; max-width: 300px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 30px; border: 1px solid var(--hair); background: var(--surface); }
.shot.large { max-width: 340px; }
.hero:not(:has(.shot)), .split:not(:has(.shot)) { grid-template-columns: minmax(0, 1fr); }

.chip-row { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row li { background: var(--surface); border: 1px solid var(--hair); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--ink-sec); }

.band { padding: 44px 0; border-top: 1px solid var(--hair); }
.band h2 { margin: 0 0 0.5em; }
.section-head { max-width: 46em; }
.section-head p:last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px 56px; align-items: center; }
.split.rev { grid-template-columns: 300px minmax(0, 1fr); }
.split.rev .shot { order: -1; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px 40px; align-items: start; }

.steps, .cards { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.split .steps { margin-top: 0; }
.split .steps, .content .steps { grid-template-columns: minmax(0, 1fr); }
.cards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step, .card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 18px 20px; }
.step .n { display: block; color: var(--fuel); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.step h3, .card h3 { margin: 0 0 0.4em; font-size: 17px; }
.step p, .card p { margin: 0; color: var(--ink-sec); font-size: 15px; }
.card .metric { display: block; font-size: 30px; font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 6px; }

aside.facts { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 6px 20px 14px; }
aside.facts dl { margin: 0; }
aside.facts dl > div { padding: 12px 0; border-top: 1px solid var(--hair); }
aside.facts dl > div:first-child { border-top: 0; }
aside.facts dt { color: var(--ink-ter); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
aside.facts dd { margin: 2px 0 0; font-size: 15px; }
aside.facts .updated { margin: 6px 0 0; }

.forgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 20px; }
.forcard { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 18px 22px; }
.forcard h3 { margin: 0 0 0.5em; }
.forcard.yes h3 { color: var(--good); }
.forcard.no h3 { color: var(--spend); }
.forcard ul { margin: 0; padding-left: 1.2em; color: var(--ink-sec); }
.forcard li { margin-bottom: 0.6em; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 20px 0; }
.plan { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 20px 22px; }
.plan.best { border-color: var(--fuel); box-shadow: inset 0 0 0 1px var(--fuel); }
.plan h3 { margin: 0 0 0.3em; font-size: 16px; }
.plan .big { font-size: clamp(38px, 8vw, 48px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.05; }
.plan .per { color: var(--ink-sec); font-weight: 600; font-size: 15px; }
.plan p { margin: 10px 0 0; color: var(--ink-sec); font-size: 15px; }

.faq details { border-top: 1px solid var(--hair); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--fuel); font-size: 22px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-sec); margin: 10px 0 0; }
.faq h3 { margin: 28px 0 8px; }

.closer { text-align: center; background: var(--surface); border: 1px solid var(--hair); border-radius: calc(var(--radius) + 6px); padding: 44px 22px; margin: 48px 0 0; background-image: radial-gradient(60% 90% at 50% 0%, var(--glow), transparent 70%); }
.closer h2 { margin: 0 0 0.4em; font-size: clamp(26px, 5vw, 38px); }
.closer .store-links { justify-content: center; margin: 22px 0 14px; }
.closer .price-line { margin-left: auto; margin-right: auto; }

.page-head { padding-top: 12px; max-width: 46em; }
.related h2 { font-size: 20px; margin-top: 2em; }
.related ul { padding-left: 1.2em; }
.concede { border-left: 3px solid var(--fuel); padding: 6px 0 6px 14px; color: var(--ink-sec); }
table.compare .us { color: var(--ink); font-weight: 600; }
table.compare th.us { color: var(--fuel); }
.pending-fact { color: var(--ink-ter); font-style: italic; border: 1px dashed var(--ink-ter); }
.cost-strip { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 14px; }
.cost-strip .car-cards { margin: 0; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

@media (max-width: 860px) {
  .hero, .split, .split.rev, .grid-main { grid-template-columns: minmax(0, 1fr); }
  .split.rev .shot { order: 0; }
  .shot, .shot.large { max-width: 280px; }
  .hero .shot { order: 2; }
  .band { padding: 34px 0; }
}

/* Catalog: make and model pickers, the bollo calculator */
.pickers, .bollo-form { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: end; margin-bottom: 8px; }
.pickers .select > span, .bollo-form .select > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-sec); margin-bottom: 6px; }
.bollo-form .button { justify-self: start; }
.bollo-result { margin-top: 24px; }
