:root {
  --ink: #122126;
  --paper: #f4f3eb;
  --teal: #1d7874;
  --orange: #f77f00;
  --red: #d62828;
  --mint: #b8f2e6;
  --sand: #ffe8b6;
  --card: #fffdf7;
  --line: #d7d2c7;
}

* {
  box-sizing: border-box;
}

/* Loading overlay */
#loader {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 10% 10%, #ffe5b9 0%, #f4f3eb 35%),
    radial-gradient(circle at 90% 0%, #b7e4e0 0%, transparent 35%),
    linear-gradient(160deg, #f4f3eb 0%, #eef7f6 45%, #fef6e4 100%);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.loader-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.02em;
}
.loader-bar {
  width: 200px;
  height: 3px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
  position: relative;
}
.loader-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -55%;
  width: 55%;
  border-radius: 99px;
  background: var(--teal);
  animation: sweep 1.3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes sweep {
  0%   { left: -55%; }
  100% { left: 110%; }
}
.loader-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.45;
  letter-spacing: 0.03em;
}
.loader-tip-box {
  margin-top: 0.5rem;
  width: 320px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  text-align: center;
}
.loader-tip-label {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.45rem;
}
#loader-tip {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.72;
  min-height: 2.6em;
  transition: opacity 0.3s ease;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, #ffe5b9 0%, #f4f3eb 35%),
    radial-gradient(circle at 90% 0%, #b7e4e0 0%, transparent 35%),
    linear-gradient(160deg, #f4f3eb 0%, #eef7f6 45%, #fef6e4 100%);
  font-family: "Space Grotesk", sans-serif;
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: radial-gradient(#000 0.5px, transparent 0.5px);
  background-size: 5px 5px;
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.2rem 2rem;
  position: relative;
}

.eyebrow {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

h1,
h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 6vw, 4.3rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  max-width: 13ch;
}

h1 span {
  color: var(--teal);
}

.subtitle {
  max-width: 70ch;
  font-size: 1.05rem;
  margin-top: 1rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.hero-tags span {
  background: var(--sand);
  border: 1px solid #f2cf77;
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
  font-size: 0.88rem;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.2rem 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.stats {
  grid-template-columns: repeat(12, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.05);
}

.card h2 {
  font-size: 1.08rem;
  margin-bottom: 0.7rem;
}

.card .value {
  font-size: clamp(1.35rem, 4.4vw, 2.2rem);
  margin: 0.1rem 0 0.4rem;
  font-weight: 700;
}

.meta {
  margin: 0;
  color: #4e5f64;
  font-size: 0.9rem;
}

.tiny {
  margin-top: 0.45rem;
  font-size: 0.82rem;
}

.hot {
  border-color: #ffcc80;
  background: linear-gradient(130deg, #fff4d8, #fffdf7);
}

.accent {
  background: linear-gradient(130deg, #e8fbf8, #fffdf7);
}

.stats .card:nth-child(1),
.stats .card:nth-child(2),
.stats .card:nth-child(3),
.stats .card:nth-child(4) {
  grid-column: span 3;
}

.wide {
  grid-column: span 6;
}

.meter-wrap {
  margin-top: 0.6rem;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.86rem;
  color: #3d5258;
}

.meter {
  margin-top: 0.45rem;
  height: 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #f1efe7;
}

#meter-bar {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, var(--red), var(--orange), #86c55f, var(--teal));
  transition: width 450ms ease;
}

.compare {
  margin-top: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.compare-list {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 0;
}

.compare-list li {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed #d8d4c8;
  padding: 0.55rem 0;
}

.roadtrip-savings {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--mint);
}
.roadtrip-heading {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
}
.roadtrip-total {
  margin: 0 0 0.8rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.02em;
}
.roadtrip-items {
  list-style: none;
  padding: 0;
  margin: 0 0 0.7rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
}
.roadtrip-items li {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.roadtrip-emoji {
  font-size: 1.1rem;
  line-height: 1;
}
.roadtrip-count {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}
.roadtrip-thing {
  font-size: 0.82rem;
  color: var(--ink);
  opacity: 0.6;
}

.policy {
  background: linear-gradient(140deg, #fff0ef, #fffdf7);
  border-color: #ffd2cb;
}

.slam-list {
  margin-top: 0.7rem;
}

.oil-truth {
  border-color: #ffc8c8;
  background: linear-gradient(140deg, #fff5f5, #fffdf7);
}

.oil-truth ul {
  margin: 0.7rem 0;
  padding-left: 1.1rem;
}

.oil-truth li {
  margin-bottom: 0.45rem;
}

.faq,
.sources {
}

details {
  border-top: 1px solid var(--line);
  padding: 0.75rem 0;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details p {
  margin: 0.5rem 0 0;
  color: #364a50;
}

.sources ul {
  margin: 0.5rem 0;
  padding-left: 1.1rem;
}

footer {
  text-align: center;
  padding: 0.8rem 1rem 2rem;
  color: #466268;
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .stats .card:nth-child(1),
  .stats .card:nth-child(2),
  .stats .card:nth-child(3),
  .stats .card:nth-child(4),
  .wide {
    grid-column: span 6;
  }
}

@media (max-width: 680px) {
  .stats {
    grid-template-columns: repeat(6, 1fr);
  }

  .stats .card,
  .wide {
    grid-column: span 6;
  }

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