:root {
  --ink: #14213d;
  --muted: #65718a;
  --paper: #f5f1e8;
  --card: #fffdf8;
  --line: #d9d3c7;
  --orange: #f57c37;
  --teal: #168c8c;
  --yellow: #f2c14e;
  --shadow: 0 18px 55px rgba(20, 33, 61, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(242, 193, 78, 0.2), transparent 26rem),
    linear-gradient(180deg, #fbf8f1, var(--paper));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, select, textarea { font: inherit; }

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 32px;
}

.eyebrow, .step {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.93;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.traffic-card {
  padding: 24px;
  border: 1px solid var(--ink);
  background: var(--yellow);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(1deg);
}

.traffic-card span, .traffic-card p { font-size: 0.8rem; }
.traffic-card strong { display: block; margin: 8px 0; font-family: Georgia, serif; font-size: 1.45rem; line-height: 1.15; }
.traffic-card p { margin: 0; line-height: 1.45; }

.workspace {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

h2, h3 { margin-top: 0; }
.panel h2 { margin-bottom: 24px; font-size: 1.75rem; }

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

textarea, select {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 170px;
  padding: 15px;
  line-height: 1.5;
}

select { padding: 11px 12px; }
.panel-heading select { width: 165px; margin-top: 0; }

.controls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.checks {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

.checks label { font-weight: 600; }
.checks input { accent-color: var(--teal); }

button {
  width: 100%;
  padding: 15px 18px;
  border: 0;
  border-radius: 10px;
  color: white;
  background: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

button:hover { background: var(--teal); }
button span { float: right; }

.disclaimer {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.result-panel {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.result-panel .step { color: #72d2cc; }
.vehicle-badge {
  display: inline-block;
  margin: 8px 0 18px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.11em;
}

.result-panel h2 { margin-bottom: 8px; font-family: Georgia, serif; font-size: 2.1rem; }
.model-description { min-height: 48px; margin: 0 0 20px; color: #c7d0e0; line-height: 1.5; }

.score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
}

.score-grid div {
  padding: 15px;
  background: #1a2948;
}

.score-grid span, .cost-card span {
  display: block;
  margin-bottom: 5px;
  color: #9faec6;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.score-grid strong { font-size: 0.95rem; }

.cost-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}

.cost-card > div {
  padding: 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
}

.cost-card .savings {
  grid-column: 1 / -1;
  background: var(--teal);
}

.cost-card strong { font-size: 1.35rem; }
.reasoning { padding-top: 4px; }
.reasoning h3 { margin-bottom: 8px; font-size: 0.95rem; }
.reasoning ul { margin: 0; padding-left: 20px; color: #c7d0e0; line-height: 1.7; }

.warning {
  padding: 11px 12px;
  border-radius: 8px;
  color: #3e2d00;
  background: var(--yellow);
  font-size: 0.78rem;
  line-height: 1.4;
}

.fleet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.fleet article {
  padding: 22px;
  border-top: 4px solid var(--orange);
  background: rgba(255, 255, 255, 0.5);
}

.fleet span { color: var(--orange); font-size: 0.68rem; font-weight: 850; letter-spacing: 0.11em; }
.fleet h3 { margin: 8px 0; }
.fleet p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }

@media (max-width: 850px) {
  .hero, .workspace { grid-template-columns: 1fr; }
  .traffic-card { transform: none; }
  .controls-grid, .fleet { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .shell { padding-top: 30px; }
  .panel { padding: 22px; }
  .panel-heading, .checks { flex-direction: column; }
  .panel-heading select { width: 100%; }
}
