/* DynamoShang — EV · Energy · Intelligence */
:root {
  --bg: #070b12;
  --bg-elevated: #0d1420;
  --bg-card: #111a2a;
  --bg-card-hover: #162235;
  --border: rgba(120, 180, 255, 0.12);
  --border-strong: rgba(56, 232, 168, 0.35);
  --text: #e8eef7;
  --text-muted: #8b9bb4;
  --text-dim: #5c6b82;
  --accent: #38e8a8;
  --accent-dim: rgba(56, 232, 168, 0.15);
  --accent-2: #4da3ff;
  --accent-2-dim: rgba(77, 163, 255, 0.12);
  --warn: #ffb84d;
  --danger: #ff6b7a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1120px;
  --nav-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(56, 232, 168, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(77, 163, 255, 0.1), transparent 45%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(56, 232, 168, 0.05), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #6ff5c4;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(7, 11, 18, 0.82);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #041018;
  box-shadow: 0 0 24px rgba(56, 232, 168, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-cta {
  background: var(--accent) !important;
  color: #041018 !important;
  font-weight: 600 !important;
  padding: 0.5rem 0.95rem !important;
}

.nav-cta:hover {
  background: #6ff5c4 !important;
  color: #041018 !important;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.25rem;
}

/* —— Hero —— */
.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(56, 232, 168, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.hero h1 span {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 11px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #041018;
}

.btn-primary:hover {
  background: #6ff5c4;
  color: #041018;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-stat strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-stat span {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.hero-card {
  background: linear-gradient(160deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(56, 232, 168, 0.2), transparent 70%);
  pointer-events: none;
}

.hero-card h3 {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.hero-card .big-number {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.hero-card .sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.mini-bars {
  display: grid;
  gap: 0.65rem;
}

.mini-bar-row {
  display: grid;
  grid-template-columns: 72px 1fr 56px;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mini-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
}

.mini-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.mini-bar-fill.ice {
  background: linear-gradient(90deg, #ff6b7a, #ffb84d);
}

.mini-bar-row .val {
  font-family: var(--font-mono);
  text-align: right;
  color: var(--text);
  font-size: 0.75rem;
}

/* —— Sections —— */
section {
  padding: 3.5rem 0;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.section-head p {
  color: var(--text-muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: rgba(56, 232, 168, 0.28);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: var(--accent-2-dim);
  border: 1px solid rgba(77, 163, 255, 0.2);
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
  letter-spacing: -0.02em;
}

.card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.card .link {
  font-size: 0.9rem;
  font-weight: 600;
}

/* —— Feature band —— */
.band {
  background: linear-gradient(180deg, transparent, rgba(56, 232, 168, 0.04), transparent);
  border-block: 1px solid var(--border);
}

.band-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.checklist {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.checklist li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.checklist li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 0 0 1px rgba(56, 232, 168, 0.08), var(--shadow);
}

.product-card .price {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0.5rem 0 0.25rem;
}

.product-card .price small {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.product-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--warn);
  background: rgba(255, 184, 77, 0.12);
  border: 1px solid rgba(255, 184, 77, 0.3);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

/* —— Forms —— */
.form-row {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.form-row label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
  width: 100%;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: rgba(56, 232, 168, 0.5);
}

.form-inline {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.form-inline input {
  flex: 1;
  min-width: 180px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  outline: none;
}

.form-inline input:focus {
  border-color: rgba(56, 232, 168, 0.5);
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.6rem;
}

.form-success {
  display: none;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 500;
  margin-top: 0.75rem;
}

.form-success.show {
  display: block;
}

/* —— Market / country bar —— */
.market-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.1rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.market-row {
  margin-bottom: 1rem;
}

.market-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr auto;
  gap: 0.85rem 1rem;
  align-items: end;
  margin-bottom: 0.75rem;
}

.market-controls input[type="search"] {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  width: 100%;
  outline: none;
}

.market-controls input[type="search"]:focus {
  border-color: rgba(56, 232, 168, 0.5);
}

.market-controls input[type="search"]:disabled {
  opacity: 0.45;
}

.count-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #041018;
  background: var(--accent);
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 0.25rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.35rem;
  margin-right: 0.35rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #041018;
  background: var(--accent);
  vertical-align: middle;
}

.vehicle-card .v-match {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #041018;
  background: var(--accent);
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  margin-bottom: 0.25rem;
}

.vehicle-card .v-match.is-close {
  background: rgba(77, 163, 255, 0.85);
}

.similar-banner {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--accent-dim);
  border: 1px solid rgba(56, 232, 168, 0.25);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.75rem;
}

.vehicle-scroll {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 232, 168, 0.35) transparent;
}

.year-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.year-chip {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.year-chip:hover {
  border-color: rgba(56, 232, 168, 0.4);
  color: var(--text);
}

.year-chip.is-active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.horizon-table-wrap {
  overflow-x: auto;
}

.horizon-table tr.horizon-active {
  background: rgba(56, 232, 168, 0.08);
}

.horizon-table tr.horizon-active td {
  border-color: rgba(56, 232, 168, 0.25);
}

.horizon-table .diff-ev {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.82rem;
}

.horizon-table .diff-ice {
  color: var(--warn);
  font-weight: 600;
  font-size: 0.82rem;
}

.muted-tiny {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 400;
}

.market-controls .form-row {
  margin-bottom: 0;
}

.form-row-btn {
  display: flex;
  align-items: flex-end;
}

.form-row-btn .btn {
  width: 100%;
  white-space: nowrap;
}

select.select-lg,
.market-bar select,
.market-controls select {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  width: 100%;
  outline: none;
  cursor: pointer;
}

select.select-lg {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.85rem 1rem;
  border-color: rgba(56, 232, 168, 0.35);
}

select:focus {
  border-color: rgba(56, 232, 168, 0.5);
}

select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#calcMain.is-locked .vehicle-pickers {
  opacity: 0.55;
  pointer-events: none;
}

/* —— Vehicle pickers —— */
.vehicle-pickers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.picker-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
}

.picker-panel h2 {
  font-size: 1rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.picker-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 0.9rem;
}

.picker-meta strong {
  color: var(--text-muted);
  font-weight: 500;
}

.picker-empty {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 1.25rem 0.5rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

.body-group {
  margin-bottom: 1.15rem;
}

.body-group:last-child {
  margin-bottom: 0;
}

.body-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 0.55rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.vehicle-grid,
.vehicle-grid-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.vehicle-card {
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  color: var(--text);
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.vehicle-card:hover {
  border-color: rgba(56, 232, 168, 0.35);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.vehicle-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 232, 168, 0.25);
}

.vehicle-card.selected-ice {
  border-color: var(--warn);
  box-shadow: 0 0 0 1px rgba(255, 184, 77, 0.25);
}

.vehicle-card .v-photo {
  /* Tall enough to show a full side/3-quarter car without cropping */
  aspect-ratio: 16 / 11;
  min-height: 140px;
  background: #e8eef5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  box-sizing: border-box;
}

.vehicle-card .v-photo img {
  width: 100%;
  height: 100%;
  /* Entire vehicle visible — never crop wheels/roof */
  object-fit: contain;
  object-position: center center;
  display: block;
}

.vehicle-card .v-photo-empty {
  background:
    linear-gradient(145deg, rgba(56, 232, 168, 0.12), transparent 55%),
    linear-gradient(135deg, #121a28, #0a1018);
  position: relative;
}

.vehicle-card .v-photo-empty::after {
  content: "EV";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  opacity: 0.7;
}

.vehicle-card .v-body {
  padding: 0.65rem 0.7rem 0.75rem;
}

.vehicle-card .v-type {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.vehicle-card .v-name {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.12rem;
}

.vehicle-card .v-trim {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.vehicle-card .v-price {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.vehicle-card.selected-ice .v-price {
  color: var(--warn);
}

.vehicle-card .v-stat {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.picker-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.picker-selected {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.picker-selected a {
  font-weight: 500;
}

.picker-selected .sel-title {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

/* —— Calculator —— */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.calc-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.calc-panel h2 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}

.calc-grid .full {
  grid-column: 1 / -1;
}

.field-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

.results-stack {
  display: grid;
  gap: 1rem;
}

.result-hero {
  background: linear-gradient(145deg, rgba(56, 232, 168, 0.1), rgba(77, 163, 255, 0.08));
  border: 1px solid rgba(56, 232, 168, 0.25);
  border-radius: var(--radius);
  padding: 1.35rem;
  text-align: center;
}

.result-hero .label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.result-hero .amount {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.result-hero .amount.negative {
  color: var(--danger);
}

.result-hero .detail {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.compare-table th,
.compare-table td {
  padding: 0.65rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.compare-table td:not(:first-child),
.compare-table th:not(:first-child) {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.compare-table tr.total td {
  border-bottom: none;
  font-weight: 700;
  padding-top: 0.85rem;
  color: var(--text);
}

.bar-compare {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.bar-compare-item .meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
  color: var(--text-muted);
}

.bar-compare-item .meta strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 500;
}

/* —— Page headers —— */
.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 38rem;
  font-size: 1.05rem;
}

/* —— Guides list —— */
.guide-list {
  display: grid;
  gap: 1rem;
}

.guide-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  color: inherit;
  transition: border-color 0.15s ease;
}

.guide-item:hover {
  border-color: rgba(56, 232, 168, 0.3);
  color: inherit;
}

.guide-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.guide-item h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.guide-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.guide-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
}

/* —— Article —— */
.article {
  max-width: 42rem;
  padding-bottom: 4rem;
}

.article h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.article p,
.article li {
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.article ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.article strong {
  color: var(--text);
}

.callout {
  background: var(--accent-dim);
  border: 1px solid rgba(56, 232, 168, 0.25);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: var(--text);
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 22rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* —— Utilities —— */
.muted {
  color: var(--text-muted);
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero-grid,
  .band-grid,
  .calc-layout,
  .footer-grid,
  .vehicle-pickers,
  .market-controls {
    grid-template-columns: 1fr;
  }

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

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(7, 11, 18, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem 1rem;
    gap: 0.25rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

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

  .guide-item {
    grid-template-columns: auto 1fr;
  }

  .guide-meta {
    grid-column: 2;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .vehicle-grid,
  .vehicle-grid-inner {
    grid-template-columns: 1fr;
  }
}
