:root {
  --red: #a71920;
  --red-dark: #7e1117;
  --ink: #1c232b;
  --muted: #626b75;
  --line: #dfe3e7;
  --paper: #f4f2ee;
  --white: #fff;
  --green: #1f6b4f;
  --amber: #8a5a0a;
  --radius: 16px;
  --shadow: 0 16px 38px rgba(29, 35, 42, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(167,25,32,.28); outline-offset: 2px; }

.site-header { height: 76px; padding: 0 max(24px, calc((100vw - 1180px)/2)); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.brand { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.brand img { border-radius: 50%; object-fit: cover; }
.brand span { display: flex; flex-direction: column; line-height: 1.05; text-transform: uppercase; letter-spacing: .04em; }
.brand strong { font-size: 1.08rem; }
.brand small { font-size: .64rem; margin-top: 5px; color: var(--muted); letter-spacing: .12em; }
.privacy-pill { font-size: .78rem; font-weight: 700; padding: 8px 12px; border-radius: 999px; background: #edf5f1; color: var(--green); }
.privacy-pill span { margin-right: 6px; font-size: .55rem; }

.section-shell { max-width: 1180px; margin-inline: auto; }
.hero { min-height: 470px; padding: 72px 0 62px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--red); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; max-width: 730px; font-size: clamp(2.65rem, 5.2vw, 4.75rem); line-height: .98; letter-spacing: -.055em; }
.lede { max-width: 670px; margin: 24px 0; color: var(--muted); font-size: 1.16rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .83rem; font-weight: 650; }
.trust-row span::first-letter { color: var(--red); }
.hero-art { min-height: 330px; border-radius: 28px; background: #181f27; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.hero-art::before { content: ""; position: absolute; width: 340px; height: 340px; border: 82px solid rgba(167,25,32,.92); border-radius: 50%; right: -150px; top: -130px; }
.fleet-road { position: absolute; inset: 46px 34px 100px; border-radius: 50% 50% 46% 54%; border: 1px solid rgba(255,255,255,.16); transform: rotate(-9deg); }
.fleet-road::after { content: ""; position: absolute; inset: 32px; border-radius: inherit; border: 1px dashed rgba(255,255,255,.22); }
.vehicle { position: absolute; z-index: 2; color: white; font-size: 2.4rem; transform: rotate(9deg); filter: drop-shadow(0 8px 10px rgba(0,0,0,.35)); }
.vehicle-one { left: 24px; bottom: 34px; }
.vehicle-two { right: 30px; top: 40px; color: #c7343b; }
.vehicle-three { right: 56px; bottom: 18px; font-size: 1.9rem; }
.hero-metric { position: absolute; left: 32px; bottom: 28px; color: white; display: flex; flex-direction: column; }
.hero-metric small { color: #bfc5ca; text-transform: uppercase; letter-spacing: .12em; font-size: .64rem; }
.hero-metric strong { font-size: 1.15rem; margin-top: 3px; }

.path-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.path-card { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.62); padding: 20px 22px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; text-align: left; color: var(--ink); transition: .2s ease; }
.path-card:hover { transform: translateY(-2px); background: white; }
.path-card.active { background: var(--ink); color: white; border-color: var(--ink); box-shadow: var(--shadow); }
.path-number { font-size: .72rem; letter-spacing: .1em; color: #8a929a; }
.path-card span:nth-child(2) { display: flex; flex-direction: column; }
.path-card small { color: #8a929a; margin-top: 3px; }
.path-card.active small { color: #c4c9ce; }

.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; align-items: start; padding-bottom: 84px; }
.workspace-main { min-width: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin: 28px 2px 18px; }
.section-heading h2, .comparison h2 { margin: 0; font-size: clamp(2rem, 3vw, 2.7rem); letter-spacing: -.04em; line-height: 1.05; }
.section-heading > p { color: var(--muted); font-size: .78rem; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 8px 24px rgba(29,35,42,.04); margin-bottom: 16px; }
.panel-title { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.panel-title > span { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: .74rem; font-weight: 800; color: var(--red); flex: 0 0 auto; }
.panel-title h3 { margin: 0; font-size: 1.12rem; }
.panel-title p { margin: 2px 0 0; color: var(--muted); font-size: .83rem; }
.panel-title-row .button { margin-left: auto; }
.form-grid { display: grid; gap: 16px; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }
label { display: flex; flex-direction: column; gap: 7px; color: #3d454e; font-size: .78rem; font-weight: 700; }
label small { color: var(--muted); font-weight: 450; line-height: 1.35; }
input, select, textarea { width: 100%; border: 1px solid #cfd5da; border-radius: 9px; padding: 11px 12px; background: white; color: var(--ink); transition: border .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #9ca4ab; }
input.invalid, select.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(167,25,32,.08); }
textarea { resize: vertical; }
.status-message { margin-top: 18px; border-radius: 9px; padding: 11px 13px; font-size: .8rem; }
.confirm-row { margin-top: 16px; flex-direction: row; align-items: flex-start; gap: 10px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; background: #fafafa; }
.confirm-row input { width: auto; margin-top: 3px; accent-color: var(--red); }
.confirm-row span { display: flex; flex-direction: column; }
.status-message.neutral { color: #555e66; background: #f1f3f4; }
.status-message.success { color: var(--green); background: #eaf4ef; }
.status-message.warning { color: var(--amber); background: #fff5dd; }
.status-message.error { color: var(--red-dark); background: #fbeaec; }

.vehicle-list { display: grid; gap: 12px; }
.vehicle-card { border: 1px solid var(--line); border-radius: 12px; background: #fafafa; padding: 18px; }
.vehicle-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.vehicle-card-head > div { display: flex; align-items: center; gap: 9px; }
.vehicle-index { color: var(--red); font-size: .68rem; font-weight: 800; letter-spacing: .1em; }
.remove-vehicle { border: 0; background: transparent; color: var(--muted); font-size: .73rem; text-decoration: underline; text-underline-offset: 3px; }
.remove-vehicle:hover { color: var(--red); }
.vehicle-fields { grid-template-columns: .7fr 1.25fr 1fr 1.2fr; }
.option-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.check-option { flex-direction: row; align-items: center; gap: 9px; border: 1px solid var(--line); background: white; border-radius: 9px; padding: 9px 11px; font-size: .75rem; }
.check-option input { width: auto; accent-color: var(--red); }
.check-option span { display: flex; flex-direction: column; }
.check-option[hidden] { display: none; }
.check-option.disabled { opacity: .58; }
.vehicle-premium { display: flex; align-items: baseline; gap: 10px; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 13px; font-size: .78rem; }
.vehicle-premium strong { font-size: 1.05rem; }
.vehicle-premium button { margin-left: auto; }
.text-button { color: var(--red); border: 0; background: none; padding: 0; font-weight: 700; font-size: .75rem; text-decoration: underline; text-underline-offset: 3px; }
.vehicle-details { border-top: 1px dashed #cfd5da; margin-top: 12px; padding-top: 10px; font-size: .77rem; color: var(--muted); }
.detail-row { display: flex; justify-content: space-between; gap: 12px; margin: 4px 0; }
.detail-row.total { color: var(--ink); font-weight: 800; margin-top: 7px; }
.fleet-count { margin-top: 16px; color: var(--muted); font-size: .78rem; display: flex; gap: 5px; flex-wrap: wrap; }
.fleet-count > span { color: var(--ink); font-weight: 800; }
.fleet-count button { margin-left: auto; }
.exclusions { margin-top: 12px; font-size: .75rem; background: #f4f5f6; border-radius: 8px; padding: 10px 12px; color: var(--muted); }

.result-panel { position: sticky; top: 100px; background: var(--ink); color: white; border-radius: 20px; padding: 28px; box-shadow: var(--shadow); margin-top: 96px; overflow: hidden; }
.result-panel::after { content: ""; position: absolute; width: 160px; height: 160px; border: 46px solid rgba(167,25,32,.75); border-radius: 50%; top: -100px; right: -90px; }
.eyebrow.light { color: #d56c71; }
.result-panel h2 { margin: 0; font-size: 1.2rem; position: relative; z-index: 1; }
.result-total { padding: 24px 0 18px; border-bottom: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; }
.result-total span { font-size: 2.65rem; line-height: 1; font-weight: 820; letter-spacing: -.045em; }
.result-total small { color: #adb3b9; margin-top: 6px; }
.annual-line { display: flex; justify-content: space-between; padding: 15px 0; font-size: .8rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.result-breakdown { padding: 12px 0; font-size: .75rem; color: #bdc3c8; max-height: 230px; overflow: auto; }
.result-breakdown .detail-row { padding: 5px 0; }
.result-breakdown strong { color: white; }
.result-warning { border-left: 2px solid #d56c71; padding-left: 10px; color: #aeb4ba; font-size: .7rem; margin: 7px 0 18px; }
.button { appearance: none; border-radius: 9px; border: 1px solid transparent; padding: 11px 16px; font-weight: 800; font-size: .8rem; transition: .15s ease; }
.button.primary { background: var(--red); color: white; }
.button.primary:hover { background: #bc2027; transform: translateY(-1px); }
.button.secondary { background: white; border-color: #cfd4d8; color: var(--ink); }
.button.secondary:hover { border-color: #91999f; }
.button.compact { padding: 8px 12px; }
.button.full { width: 100%; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.microcopy { font-size: .62rem; color: #848c93; line-height: 1.45; margin: 13px 0 0; }

.comparison { margin-top: 32px; margin-bottom: 84px; padding: 40px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 54px; background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.comparison-copy > p:not(.eyebrow) { color: var(--muted); }
.privacy-note { margin-top: 26px; display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: #edf5f1; color: var(--green); border-radius: 10px; }
.privacy-note > span { font-size: 1.5rem; line-height: 1; }
.privacy-note div { display: flex; flex-direction: column; font-size: .8rem; }
.privacy-note small { margin-top: 3px; opacity: .78; }
.comparison-form { display: grid; gap: 18px; }
.upload-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.upload-zone { min-height: 180px; border: 1px dashed #aeb5bb; border-radius: 12px; align-items: center; justify-content: center; text-align: center; padding: 18px; background: #fafafa; cursor: pointer; }
.upload-zone:hover { border-color: var(--red); background: #fffafa; }
.upload-zone input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.upload-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--red); background: #f7e7e8; font-size: 1.2rem; }
.file-summary { color: var(--red); font-size: .69rem; margin-top: 6px; font-weight: 750; overflow-wrap: anywhere; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.comparison-output { border-top: 1px solid var(--line); padding-top: 16px; font-size: .8rem; }
.comparison-output h3 { margin: 0 0 8px; }
.comparison-output ul { margin: 8px 0; padding-left: 18px; color: var(--muted); }

footer { max-width: 1180px; margin: 0 auto; border-top: 1px solid #d6d9dc; padding: 28px 0 36px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .72rem; }
.footer-brand strong { font-size: .85rem; }
.footer-brand small { font-size: .55rem; }

@media (max-width: 1050px) {
  .site-header { padding-inline: 22px; }
  .section-shell, footer { margin-inline: 22px; }
  .hero { grid-template-columns: 1fr .65fr; }
  .workspace { grid-template-columns: minmax(0, 1fr) 310px; }
  .vehicle-fields { grid-template-columns: repeat(2, 1fr); }
  .comparison { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 780px) {
  .site-header { height: 66px; }
  .privacy-pill { font-size: 0; padding: 9px; }
  .privacy-pill span { margin: 0; font-size: .65rem; }
  .hero { min-height: auto; padding: 52px 0 34px; grid-template-columns: 1fr; gap: 28px; }
  .hero-art { min-height: 210px; }
  .path-switch { grid-template-columns: 1fr; }
  .workspace { grid-template-columns: 1fr; }
  .result-panel { position: relative; top: auto; margin-top: 0; }
  .form-grid.three { grid-template-columns: 1fr; }
  .section-heading { align-items: start; }
  .section-heading > p { margin-top: 6px; }
  .comparison { padding: 24px; }
  footer { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 540px) {
  .site-header { padding-inline: 16px; }
  .section-shell, footer { margin-inline: 14px; }
  .brand strong { font-size: .92rem; }
  .brand small { font-size: .54rem; }
  .hero h1 { font-size: 2.65rem; }
  .trust-row { flex-direction: column; gap: 7px; }
  .path-card { padding: 16px; }
  .panel { padding: 18px; }
  .panel-title-row { flex-wrap: wrap; }
  .panel-title-row .button { width: 100%; margin: 0; }
  .vehicle-fields, .form-grid.two, .upload-grid { grid-template-columns: 1fr; }
  .vehicle-card { padding: 14px; }
  .option-row { display: grid; grid-template-columns: 1fr; }
  .fleet-count button { width: 100%; text-align: left; margin-top: 7px; }
  .result-total span { font-size: 2.3rem; }
  .comparison { margin-inline: 14px; }
}

@media print {
  body { background: white; }
  .site-header, .hero, .path-switch, .comparison[hidden], footer, .button, .remove-vehicle, .details-toggle, .text-button { display: none !important; }
  .workspace { display: block; padding: 0; }
  .section-shell { margin: 0; max-width: none; }
  .panel, .result-panel { box-shadow: none; break-inside: avoid; }
  .result-panel { position: static; background: white; color: var(--ink); border: 2px solid var(--ink); margin-top: 20px; }
  .result-breakdown, .result-panel small, .result-warning, .microcopy { color: var(--ink); }
  .result-breakdown strong { color: var(--ink); }
  .vehicle-details { display: block !important; }
  body.print-comparison .workspace { display: none; }
  body.print-comparison .comparison { display: block !important; margin: 0; box-shadow: none; border: 0; }
  body.print-comparison .comparison-form > :not(.comparison-output) { display: none; }
  body.print-comparison .comparison-output { display: block !important; border: 0; }
}
