:root {
  color-scheme: dark;
  --bg: #07090c;
  --surface: #10141a;
  --surface-2: #171c24;
  --line: #2b323c;
  --text: #f5f7fa;
  --muted: #9ba4b1;
  --gold: #d8b66d;
  --cyan: #70d0dc;
  --green: #2bd675;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button,input,select { font: inherit; }
header,footer,main { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; width: clamp(150px,17vw,210px); }
.brand img { display: block; width: 100%; height: auto; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; }
main { padding: 58px 0 48px; }
.intro { max-width: 820px; margin-bottom: 36px; }
.eyebrow { color: var(--gold); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: 1.2px; }
h1,h2,p { margin: 0; }
h1 { margin: 14px 0 12px; font-size: clamp(42px,7vw,76px); line-height: .96; letter-spacing: 0; }
.intro p { color: var(--muted); font-size: 18px; line-height: 1.55; }
.explorer { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(390px,.88fr); border: 1px solid var(--line); border-radius: 8px; overflow: visible; background: var(--surface); }
.inputs { padding: clamp(22px,4vw,38px); }
.results { position: sticky; top: 18px; align-self: start; min-height: 100%; padding: clamp(22px,4vw,38px); border-left: 1px solid var(--line); background: #0b0e12; }
.input-section + .input-section { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: start; gap: 13px; margin-bottom: 18px; }
.section-heading > span { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #665a38; border-radius: 50%; color: var(--gold); font-size: 10px; font-weight: 900; }
.section-heading h2 { font-size: 19px; }
.section-heading p { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.45; }
label { display: block; color: #c9ced6; font-size: 12px; font-weight: 750; }
input,select { width: 100%; height: 50px; margin-top: 7px; border: 1px solid #39414d; border-radius: 6px; background: var(--surface-2); color: var(--text); padding: 0 12px; outline: none; }
input:focus,select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(112,208,220,.12); }
select:disabled { opacity: .55; }
.vehicle-picker { position: relative; }
.vehicle-results { position: absolute; z-index: 20; left: 0; right: 0; top: 74px; max-height: 300px; overflow-y: auto; border: 1px solid #3b4552; border-radius: 6px; background: #11161d; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.vehicle-results:empty { display: none; }
.vehicle-results button { width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.vehicle-results button:hover { background: #1b222c; }
.vehicle-empty { padding: 14px; color: var(--muted); font-size: 12px; }
.selection { margin-top: 9px; color: var(--cyan); font-size: 12px; }
.choice-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.choice-grid label { position: relative; cursor: pointer; }
.choice-grid input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice-grid span { min-height: 68px; padding: 12px; display: grid; align-content: center; border: 1px solid var(--line); border-radius: 6px; background: #0d1117; color: var(--text); }
.choice-grid small { display: block; margin-top: 4px; color: var(--muted); font-weight: 500; }
.choice-grid input:checked + span { border-color: var(--gold); background: rgba(216,182,109,.1); color: var(--gold); }
.field-row { margin-top: 13px; max-width: 360px; }
.field-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.money-input { position: relative; }
.money-input span { position: absolute; z-index: 1; left: 13px; top: 23px; color: var(--gold); }
.money-input input { padding-left: 27px; }
.result-vehicle { margin-top: 25px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.result-vehicle small,.payment small { color: var(--muted); font-size: 11px; }
.result-vehicle h2 { margin-top: 5px; font-size: 27px; }
.result-vehicle p { margin-top: 5px; color: var(--cyan); font-size: 12px; }
.payment { margin: 28px 0; }
.payment strong { display: block; margin-top: 5px; font-size: clamp(58px,8vw,86px); line-height: 1; }
.payment > span { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.result-grid div { min-height: 86px; padding: 14px; border-bottom: 1px solid var(--line); }
.result-grid div:nth-child(odd) { border-right: 1px solid var(--line); }
.result-grid div:nth-last-child(-n+2) { border-bottom: 0; }
.result-grid span,.result-grid b { display: block; }
.result-grid span { color: var(--muted); font-size: 10px; }
.result-grid b { margin-top: 7px; font-size: 18px; }
.reading { display: grid; gap: 5px; margin-top: 18px; padding: 16px; border: 1px solid #4e4429; border-radius: 6px; color: #e8d59f; background: #17140d; line-height: 1.45; font-size: 12px; }
.reading strong { font-size: 14px; }
.advisor-mini { margin-top: 18px; display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #10151c; }
.advisor-avatar { width: 48px; height: 48px; flex: 0 0 auto; overflow: hidden; border: 1px solid #665a38; border-radius: 50%; }
.advisor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.advisor-mini strong { display: flex; align-items: center; gap: 6px; }
.advisor-mini strong img { width: 16px; height: 16px; }
.advisor-mini span,.advisor-mini small { display: block; margin-top: 2px; }
.advisor-mini span { color: var(--muted); font-size: 11px; }
.advisor-mini small { color: var(--green); font-size: 10px; font-weight: 800; }
.actions { display: grid; gap: 9px; margin-top: 20px; }
.button { min-height: 50px; display: flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 6px; font-weight: 850; text-align: center; }
.primary { background: var(--green); color: #04170b; }
.secondary { border: 1px solid var(--line); background: var(--surface); }
.text-link { padding: 9px; color: var(--cyan); font-size: 12px; font-weight: 750; text-align: center; }
.fineprint { margin-top: 18px; color: #747d89; font-size: 9px; line-height: 1.55; }
footer { padding: 28px 0 44px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: #6e7783; font-size: 11px; }
@media(max-width:900px) {
  .explorer { grid-template-columns: 1fr; }
  .results { position: static; border-left: 0; border-top: 1px solid var(--line); }
  .field-grid { grid-template-columns: 1fr; }
}
@media(max-width:620px) {
  header,footer,main { width: calc(100% - 24px); }
  main { padding-top: 42px; }
  h1 { font-size: 40px; }
  .intro p { font-size: 15px; }
  .inputs,.results { padding: 20px 16px; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .result-grid div,.result-grid div:nth-child(odd),.result-grid div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .result-grid div:last-child { border-bottom: 0; }
  footer { flex-direction: column; gap: 5px; }
}
