/* ============================================================
   DriveCost — design system
   Organic / Natural. Wabi-sabi warmth: earth palette, Fraunces
   serif + Nunito, organic radii, grain texture, colored shadows.
   Mobile-first.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Palette (light mode) */
  --bg:                 #FDFCF8;  /* Rice Paper */
  --card:               #FEFEFA;  /* Light beige card */
  --foreground:         #2C2C24;  /* Deep Loam */
  --muted:              #F0EBE5;  /* Stone */
  --muted-foreground:   #78786C;  /* Dried Grass */
  --border:             #DED8CF;  /* Raw Timber */
  --primary:            #5D7052;  /* Moss Green */
  --primary-foreground: #F3F4F1;  /* Pale Mist */
  --secondary:          #C18C5D;  /* Terracotta / Clay */
  --secondary-foreground: #FFFFFF;
  --accent:             #E6DCCD;  /* Sand / Beige */
  --accent-foreground:  #4A4A40;  /* Bark */
  --destructive:        #A85448;  /* Burnt Sienna */

  /* Back-compat aliases (JS and old rules still reference these) */
  --navy:       #2C2C24;
  --navy-900:   #4A4A40;
  --blue:       #5D7052;
  --blue-dark:  #4A5A42;
  --cyan:       #8A9B7C;
  --green:      #5D7052;
  --green-dark: #4A5A42;
  --amber:      #C18C5D;
  --red:        #A85448;
  --text:       #2C2C24;
  --text-muted: #78786C;

  /* Radii & shapes */
  --radius:      24px;
  --radius-sm:   16px;
  --radius-pill: 999px;

  /* Colored shadows — never pure black */
  --shadow-sm:  0 4px 20px -2px rgba(93,112,82,0.15);
  --shadow:     0 10px 40px -10px rgba(193,140,93,0.20);
  --shadow-lg:  0 20px 40px -10px rgba(93,112,82,0.20);

  /* Typography */
  --font: 'Nunito', 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Global grain / paper texture */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  opacity: .04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  line-height: 1.2; color: var(--foreground);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0 0 1rem; padding-left: 1.25rem; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid rgba(93,112,82,.5); outline-offset: 2px; border-radius: 8px; }
::selection { background: rgba(93,112,82,.18); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--space-4); }
.section { padding: var(--space-7) 0; }
.section-tight { padding: var(--space-5) 0; }
.section-head { max-width: 720px; margin: 0 auto var(--space-6); text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: var(--space-2);
}

/* ---------- Header — floating glass pill ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 12px 0;
  background: transparent;
}
.header-inner {
  display: flex; align-items: center; gap: var(--space-4); min-height: 64px;
  padding: 8px 12px 8px 22px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(222,216,207,.6);
  box-shadow: 0 6px 24px -8px rgba(93,112,82,.18);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--foreground); font-size: 1.25rem; font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 14px -4px rgba(93,112,82,.35);
}
.brand-name { font-family: var(--font-display); font-weight: 600; }
.brand-name strong { color: var(--primary); font-weight: 700; }
.site-nav { margin-left: auto; }
.nav-list { display: flex; list-style: none; gap: 4px; margin: 0; padding: 0; align-items: center; }
.nav-item { position: relative; }
.nav-link {
  display: inline-block; padding: 9px 16px; border-radius: var(--radius-pill);
  color: var(--foreground); font-weight: 600; font-size: .95rem;
  transition: background .25s, color .25s;
}
.nav-link:hover { background: rgba(93,112,82,.1); text-decoration: none; color: var(--primary); }
.nav-dropdown-toggle {
  border: 0; background: none; color: var(--foreground); font-weight: 600; font-size: .95rem;
  padding: 9px 16px; border-radius: var(--radius-pill);
  transition: background .25s, color .25s;
}
.nav-dropdown-toggle:hover { background: rgba(93,112,82,.1); color: var(--primary); }
.nav-dropdown-toggle::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .15s;
}
.has-dropdown.open .nav-dropdown-toggle::after { transform: rotate(-135deg) translateY(-1px); }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 240px;
  background: var(--card); border: 1px solid rgba(222,216,207,.6);
  border-radius: 1.5rem; padding: 10px;
  box-shadow: var(--shadow); list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .2s;
}
.has-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-link { display: block; padding: 10px 14px; border-radius: 14px; color: var(--foreground); font-size: .93rem; }
.dropdown-link:hover { background: var(--muted); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(222,216,207,.7);
  border-radius: var(--radius-pill); padding: 10px 12px;
}
.nav-toggle-bar { display: block; width: 20px; height: 2px; background: var(--foreground); margin: 4px 0; border-radius: 2px; transition: transform .2s; }

.mobile-menu { display: none; }
.mobile-nav-list {
  list-style: none; margin: 0; padding: var(--space-4);
  border-top: 1px solid rgba(222,216,207,.5);
}
.mobile-nav-list > li > a { display: block; padding: 12px 10px; font-weight: 600; color: var(--foreground); }
.mobile-nav-label { display: block; padding: 12px 10px 4px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-foreground); }
.mobile-nav-group ul { list-style: none; padding: 0 0 8px; margin: 0; }
.mobile-nav-group a { display: block; padding: 9px 10px; color: var(--foreground); border-radius: 12px; }
.mobile-nav-group a:hover { background: var(--muted); text-decoration: none; }
.mobile-menu.open { display: block; }

/* ---------- Buttons — pill shapes, tactile motion ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 1rem;
  border: 1px solid transparent; text-decoration: none;
  min-height: 48px; /* comfortable tap target */
  transition: transform .25s, box-shadow .25s, background .25s, color .25s, border-color .25s;
}
.btn:hover { text-decoration: none; transform: scale(1.05); }
.btn:active { transform: scale(.95); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 4px 20px -2px rgba(93,112,82,.25); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 6px 24px -4px rgba(93,112,82,.35); }
.btn-secondary { background: var(--secondary); color: var(--secondary-foreground); box-shadow: 0 4px 20px -2px rgba(193,140,93,.3); }
.btn-secondary:hover { background: #A97142; box-shadow: 0 6px 24px -4px rgba(193,140,93,.4); }
.btn-ghost { background: transparent; color: var(--secondary); border-color: var(--secondary); border-width: 2px; }
.btn-ghost:hover { background: rgba(193,140,93,.1); color: var(--secondary); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: var(--green-dark); }
.btn-sm { padding: 8px 18px; font-size: .9rem; min-height: 40px; }
.btn-lg { padding: 14px 34px; font-size: 1.08rem; min-height: 56px; }
.btn-block { width: 100%; }

/* ---------- Cards — soft beige, organic radii ---------- */
.card {
  background: var(--card);
  border: 1px solid rgba(222,216,207,.5);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
  transition: transform .35s, box-shadow .35s;
}
.card-hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }

/* Feature cards — asymmetric organic corners */
.feature-card { position: relative; }
.feature-card:nth-child(1) { border-radius: 2rem 2rem 4rem 2rem / 2rem 2rem 3rem 2rem; }
.feature-card:nth-child(2) { border-radius: 2rem 3.5rem 2rem 2rem / 3rem 2rem 2rem 2rem; }
.feature-card:nth-child(3) { border-radius: 2rem 2rem 2rem 4rem / 2rem 3rem 2rem 2rem; }
.feature-card:nth-child(4) { border-radius: 4rem 2rem 2rem 2rem / 2rem 2rem 4rem 2rem; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 700; letter-spacing: .02em;
  padding: 4px 12px; border-radius: var(--radius-pill); line-height: 1.4;
}
.badge-green { background: rgba(93,112,82,.14); color: var(--green-dark); }
.badge-amber { background: rgba(193,140,93,.16); color: #8A5A30; }
.badge-red   { background: rgba(168,84,72,.14); color: var(--destructive); }
.badge-blue  { background: rgba(93,112,82,.12); color: var(--blue-dark); }
.badge-gray  { background: var(--muted); color: var(--muted-foreground); }
.badge-navy  { background: rgba(74,74,64,.12); color: var(--navy-900); }

/* ---------- Data labels (confidence) ---------- */
.data-label {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 2px 10px; border-radius: var(--radius-pill);
  border: 1px solid rgba(222,216,207,.6); color: var(--muted-foreground); background: var(--card);
}
.data-label.epa   { color: var(--green-dark); border-color: rgba(93,112,82,.35); background: rgba(93,112,82,.1); }
.data-label.est   { color: #8A5A30; border-color: rgba(193,140,93,.4); background: rgba(193,140,93,.12); }
.data-label.user  { color: var(--green-dark); border-color: rgba(93,112,82,.3); background: rgba(93,112,82,.08); }
.data-label.avg   { color: var(--muted-foreground); border-color: rgba(222,216,207,.7); background: var(--muted); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid rgba(222,216,207,.6); border-radius: var(--radius-sm); background: var(--card); }
table.data-table { width: 100%; border-collapse: collapse; background: var(--card); font-size: .95rem; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(222,216,207,.5); }
.data-table thead th { background: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-foreground); font-weight: 700; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: rgba(240,235,229,.5); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Alerts ---------- */
.alert {
  display: flex; gap: 10px; align-items: flex-start;
  border-radius: var(--radius-sm); padding: 14px 18px; font-size: .95rem;
  border: 1px solid transparent;
}
.alert-info    { background: rgba(230,220,205,.5); border-color: rgba(222,216,207,.7); color: var(--accent-foreground); }
.alert-success { background: rgba(93,112,82,.12); border-color: rgba(93,112,82,.3); color: var(--green-dark); }
.alert-warn    { background: rgba(193,140,93,.14); border-color: rgba(193,140,93,.35); color: #8A5A30; }
.alert-error   { background: rgba(168,84,72,.12); border-color: rgba(168,84,72,.3); color: #7A3A32; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--card); border: 1px solid rgba(222,216,207,.6);
  border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden;
  box-shadow: 0 4px 16px -6px rgba(93,112,82,.12);
}
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; padding: 18px 20px;
  font-size: 1.02rem; font-weight: 700; color: var(--foreground); font-family: var(--font-display);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q::after {
  content: "+"; font-size: 1.4rem; font-weight: 500; color: var(--secondary); transition: transform .2s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 20px 18px; color: var(--text-muted); }
.faq-item.open .faq-a { display: block; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .85rem; color: var(--muted-foreground); margin: var(--space-4) 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "›"; color: var(--border); }
.breadcrumbs a { color: var(--muted-foreground); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs [aria-current="page"] { color: var(--foreground); font-weight: 600; }

/* ---------- Source / methodology boxes ---------- */
.source-box {
  background: rgba(230,220,205,.5); border: 1px solid rgba(222,216,207,.7);
  border-radius: var(--radius-sm); padding: var(--space-4); font-size: .92rem; color: var(--accent-foreground);
}
.method-box {
  background: rgba(240,235,229,.5); border: 1px solid rgba(222,216,207,.7);
  border-radius: var(--radius-sm); padding: var(--space-4); font-size: .92rem;
}
.method-box code, .source-box code {
  background: var(--card); border: 1px solid rgba(222,216,207,.7); border-radius: 8px; padding: 1px 6px; font-size: .88em;
}

/* ---------- Tooltips ---------- */
.tip { position: relative; display: inline-flex; }
.tip-trigger {
  border: 0; background: none; padding: 0 2px; color: var(--muted-foreground);
  font-size: .85rem; vertical-align: middle;
}
.tip-bubble {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px);
  width: 230px; background: var(--foreground); color: var(--primary-foreground);
  border-radius: 14px; padding: 10px 12px;
  font-size: .82rem; font-weight: 400; line-height: 1.5; text-align: left;
  opacity: 0; visibility: hidden; transition: all .2s; z-index: 30;
}
.tip-trigger:focus-visible + .tip-bubble,
.tip:hover .tip-bubble,
.tip-trigger:hover + .tip-bubble { opacity: 1; visibility: visible; transform: translateX(-50%); }

/* ---------- Stats / big numbers ---------- */
.stat { text-align: center; }
.stat-value {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: var(--foreground);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em; font-family: var(--font-display);
}
.stat-label { color: var(--muted-foreground); font-size: .9rem; }

/* ---------- Hero — ambient blobs ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #FEFEFA, var(--bg));
  border-bottom: 1px solid rgba(222,216,207,.4);
  padding: var(--space-8) 0 var(--space-7);
}
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: 0;
  filter: blur(60px);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}
.hero::before {
  width: 440px; height: 380px; top: -120px; right: -80px;
  background: radial-gradient(circle, rgba(193,140,93,.28), transparent 65%);
}
.hero::after {
  width: 480px; height: 400px; bottom: -140px; left: -100px;
  background: radial-gradient(circle, rgba(93,112,82,.26), transparent 65%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}
.hero-inner { max-width: 760px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }

/* ---------- Section blob ambience (features / CTA) ---------- */
.section-blob { position: relative; overflow: hidden; }
.section-blob::before {
  content: ""; position: absolute; z-index: 0;
  width: 380px; height: 340px; top: -80px; right: -90px;
  border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
  background: radial-gradient(circle, rgba(193,140,93,.14), transparent 62%);
  filter: blur(50px);
}
.section-blob::after {
  content: ""; position: absolute; z-index: 0;
  width: 360px; height: 320px; bottom: -90px; left: -90px;
  border-radius: 30% 70% 70% 30% / 40% 40% 60% 60%;
  background: radial-gradient(circle, rgba(93,112,82,.14), transparent 62%);
  filter: blur(50px);
}
.section-blob > .container { position: relative; z-index: 1; }
.hero h1 { margin-bottom: var(--space-4); }
.hero .lede { font-size: 1.15rem; color: var(--text-muted); max-width: 620px; margin: 0 auto var(--space-5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-trust { margin-top: var(--space-5); color: var(--muted-foreground); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-4); }
.feature-card { padding: var(--space-5); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 1.25rem; display: grid; place-items: center;
  background: rgba(93,112,82,.1); color: var(--primary); margin-bottom: var(--space-3);
  transition: background .3s, color .3s;
}
.feature-card:hover .feature-icon { background: var(--primary); color: var(--primary-foreground); }
.feature-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: .93rem; margin: 0; }

/* ---------- Hub grids (vehicles & comparisons) ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--space-4); }
.hub-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--card); border: 1px solid rgba(222,216,207,.5);
  border-radius: var(--radius); padding: var(--space-5);
  box-shadow: var(--shadow-sm); text-decoration: none;
  transition: transform .3s, box-shadow .3s;
}
.hub-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); text-decoration: none; }
.hub-card-meta { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; }
.hub-year { font-weight: 800; color: var(--secondary); font-family: var(--font-display); }
.hub-fuel { text-transform: capitalize; color: var(--muted-foreground); }
.hub-card-title { font-size: 1.15rem; margin: 4px 0 0; }
.hub-card:hover .hub-card-title { color: var(--primary); }
.hub-card-foot { color: var(--muted-foreground); font-size: .85rem; margin: 0; margin-top: auto; }

.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-4); }
.comp-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--card); border: 1px solid rgba(222,216,207,.5);
  border-radius: var(--radius); padding: var(--space-5);
  box-shadow: var(--shadow-sm); text-decoration: none;
  transition: transform .3s, box-shadow .3s;
}
.comp-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); text-decoration: none; }
.comp-card-title { font-size: 1.15rem; margin: 0; }
.comp-card:hover .comp-card-title { color: var(--primary); }
.comp-card-blurb { color: var(--muted-foreground); font-size: .9rem; margin: 0; }

.toolbar-inner { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.source-note { font-size: .85rem; color: var(--muted-foreground); }

/* ---------- Error / empty ---------- */
.error-page { padding: var(--space-7) var(--space-4); display: grid; place-items: center; min-height: 55vh; }
.error-card { max-width: 460px; text-align: center; }
.error-code { font-size: 4rem; font-weight: 700; color: var(--border); display: block; line-height: 1; margin-bottom: var(--space-3); font-family: var(--font-display); }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: var(--space-4); }

/* ---------- Footer — deep loam ---------- */
.site-footer { background: var(--foreground); color: #D6D2C4; margin-top: var(--space-7); }
.site-footer .brand { color: var(--primary-foreground); }
.site-footer .brand-mark { background: var(--secondary); color: #fff; }
.site-footer .brand-name strong { color: var(--accent); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-6);
  padding: var(--space-7) 0 var(--space-5);
}
.footer-about p { font-size: .9rem; }
.footer-title { color: var(--primary-foreground); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--space-3); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #D6D2C4; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer-disclaimer {
  font-size: .8rem; color: #A8A396; border-top: 1px solid rgba(222,216,207,.15);
  padding-top: var(--space-3); margin-top: var(--space-4);
}
.footer-bottom {
  border-top: 1px solid rgba(222,216,207,.15); padding: var(--space-4) 0;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: .8rem; color: #A8A396;
}
.footer-bottom p { margin: 0; }

/* ---------- Misc ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--foreground); color: var(--primary-foreground);
  padding: 12px 16px; z-index: 100; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }
mark { background: rgba(230,220,205,.7); border-radius: 4px; padding: 0 2px; color: var(--foreground); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: var(--space-1); } .mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); } .mt-6 { margin-top: var(--space-6); }
.mb-0 { margin-bottom: 0; } .mb-3 { margin-bottom: var(--space-3); } .mb-4 { margin-bottom: var(--space-4); }
.flow > * + * { margin-top: var(--space-4); }

/* ---------- Related Calculators Card Grid ---------- */
.related-calculators-section {
  background: rgba(240,235,229,.35);
  border-top: 1px solid rgba(222,216,207,.5);
  border-bottom: 1px solid rgba(222,216,207,.5);
  padding: var(--space-7) 0;
}
.related-calculators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.rel-calc-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid rgba(222,216,207,.6);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--foreground);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
}
.rel-calc-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity .3s ease;
}
.rel-calc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(93,112,82,.4);
  text-decoration: none;
}
.rel-calc-card:hover::before {
  opacity: 1;
}
.rel-calc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
.rel-calc-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: rgba(93,112,82,.1);
  color: var(--primary);
  display: grid;
  place-items: center;
  transition: background .3s, color .3s;
}
.rel-calc-card:hover .rel-calc-icon {
  background: var(--primary);
  color: var(--primary-foreground);
}
.rel-calc-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--muted);
  color: var(--muted-foreground);
}
.rel-calc-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 var(--space-2);
  color: var(--foreground);
}
.rel-calc-card:hover .rel-calc-title {
  color: var(--primary);
}
.rel-calc-desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 var(--space-4);
  flex-grow: 1;
}
.rel-calc-cta {
  font-size: .88rem;
  font-weight: 700;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
}
.rel-calc-card:hover .rel-calc-cta {
  color: var(--primary);
  gap: 8px;
}

/* ---------- Other Model Years Pills ---------- */
.year-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-4);
}
.year-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid rgba(222,216,207,.8);
  background: var(--card);
  color: var(--foreground);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}
.year-pill:hover {
  background: rgba(93,112,82,.08);
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.year-pill.active {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
  font-weight: 700;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}

/* ---------- Similar Vehicles Grid ---------- */
.sim-vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.sim-vehicle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--space-5);
  background: var(--card);
  border: 1px solid rgba(222,216,207,.6);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.sim-vehicle-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--primary);
}
.sim-vehicle-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}
.sim-vehicle-icon {
  margin-left: var(--space-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(93,112,82,.06);
  color: var(--primary);
  transition: all 0.25s ease;
}
.sim-vehicle-card:hover .sim-vehicle-icon {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* ---------- Popular Comparisons Grid ---------- */
.comp-vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.comp-vehicle-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-5);
  background: var(--card);
  border: 1px solid rgba(222,216,207,.6);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.comp-vehicle-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.comp-vehicle-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.comp-vehicle-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--foreground);
}
.comp-vehicle-card:hover .comp-vehicle-title {
  color: var(--primary);
}
.comp-vehicle-vs {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--secondary);
  background: rgba(214,142,110,.12);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  display: inline-block;
}
.comp-vehicle-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 700;
  margin-top: auto;
  border-top: 1px solid rgba(222,216,207,.3);
  padding-top: var(--space-2);
  transition: color 0.2s;
}
.comp-vehicle-card:hover .comp-vehicle-action {
  color: var(--primary);
}
.comp-vehicle-arrow {
  transition: transform 0.2s;
}
.comp-vehicle-card:hover .comp-vehicle-arrow {
  transform: translateX(3px);
}


