:root {
  --bg: #f4f7f4;
  --ink: #18221d;
  --muted: #66736b;
  --line: #d9e2dc;
  --surface: #ffffff;
  --field: #f8faf8;
  --green: #1d7f4e;
  --green-dark: #105334;
  --lime: #c7e75f;
  --amber: #f4b740;
  --blue: #376fd0;
  --shadow: 0 18px 50px rgba(25, 43, 32, .12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(199, 231, 95, .28), transparent 30rem),
    linear-gradient(180deg, #f8fbf8 0%, var(--bg) 42%, #eef4f0 100%);
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header {
  padding: 20px 0 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--lime), var(--amber));
  border: 1px solid rgba(24, 34, 29, .1);
}

.brand-mark svg {
  width: 34px;
  height: 34px;
  fill: #102015;
}

.brand-mark .road {
  fill: none;
  stroke: #1d7f4e;
  stroke-width: 5;
  stroke-linecap: round;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

nav a {
  text-decoration: none;
}

.tool-hero {
  width: min(1120px, calc(100% - 32px));
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 22px;
  align-items: start;
}

.intro {
  min-height: 560px;
  padding: 48px 0;
  position: relative;
}

.hero-photo {
  display: block;
  width: min(420px, 82vw);
  aspect-ratio: 1.7;
  margin-top: 42px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
  transform: skewY(-3deg);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-weight: 750;
  text-transform: uppercase;
  font-size: 13px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: .95;
  letter-spacing: 0;
}

h2 {
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
}

.intro p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.calculator,
.results,
.fuel-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
}

.calculator {
  padding: 22px;
  border-radius: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label span {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #405048;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd8d0;
  border-radius: 6px;
  background: var(--field);
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
}

input:focus,
select:focus {
  outline: 3px solid rgba(29, 127, 78, .18);
  border-color: var(--green);
}

.toggles {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.check input {
  width: 18px;
  height: 18px;
  min-height: 0;
  accent-color: var(--green);
}

.check span {
  margin: 0;
  font-weight: 600;
}

.results {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  border-radius: 8px;
  overflow: hidden;
}

.metric {
  padding: 20px;
  background: var(--surface);
}

.metric span,
.fuel-card span,
.fuel-card small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: 0;
}

.metric.primary {
  background: var(--green-dark);
  color: #fff;
}

.metric.primary span {
  color: rgba(255, 255, 255, .78);
}

.panel-band,
.content-band,
.price-band,
.legal {
  width: min(1120px, calc(100% - 32px));
  margin: 48px auto 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--muted);
  max-width: 460px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.info-grid article {
  border-top: 3px solid var(--green);
  padding-top: 18px;
}

.info-grid p,
.legal p {
  color: var(--muted);
  line-height: 1.65;
}

.price-band {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.price-band .section-head {
  align-items: start;
}

.price-band .section-head small {
  color: var(--green-dark);
  font-weight: 750;
  white-space: nowrap;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.price-card {
  min-height: 150px;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.price-card span,
.price-card small,
.source-note,
.price-status {
  color: var(--muted);
}

.price-card span {
  font-weight: 750;
}

.price-card strong {
  font-size: 26px;
}

.price-card button {
  align-self: end;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: var(--green-dark);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.source-note {
  margin: 14px 0 0;
  font-size: 13px;
}

.legal {
  max-width: 780px;
  padding: 38px 0 20px;
}

.legal h1 {
  font-size: clamp(34px, 5vw, 54px);
}

.legal h2 {
  margin-top: 28px;
}

.site-footer {
  margin-top: 58px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  text-decoration: none;
}

@media (max-width: 840px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .tool-hero {
    grid-template-columns: 1fr;
  }

  .intro {
    min-height: auto;
    padding: 28px 0 0;
  }

  .hero-photo {
    margin-top: 24px;
  }

  .results {
    grid-column: auto;
  }

  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 42px;
  }

  .form-grid,
  .results,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .price-grid {
    grid-template-columns: 1fr;
  }

  .calculator {
    padding: 16px;
  }

  .metric {
    padding: 18px;
  }
}
