:root {
  --canvas: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --emerald: #10b981;
  --deep: #102a2b;
  --white: #fff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.09);
  --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Manrope, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.site-header {
  height: 82px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(248, 250, 252, 0.94);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 16px;
}
.brand em {
  font-family: "Playfair Display", serif;
  font-weight: 600;
}
.brand-mark {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--emerald);
  font-size: 10px;
  letter-spacing: -0.08em;
  border-radius: 9px;
}
.main-nav {
  display: flex;
  gap: 38px;
  margin-left: 8%;
}
.main-nav a {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  position: relative;
  padding: 10px 0;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
}
.main-nav a.active:after {
  content: "";
  height: 3px;
  width: 18px;
  border-radius: 4px;
  background: var(--emerald);
  position: absolute;
  bottom: 2px;
  left: 0;
}
.main-nav a:last-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.main-nav a:last-child strong {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  background: var(--emerald);
  color: #000;
  border-radius: 50%;
  font:
    500 11px "DM Mono",
    monospace;
}
.menu-toggle {
  display: none;
  background: transparent;
  padding: 7px;
}
.mobile-cart-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 999px;
  color: var(--ink);
  padding: 5px 8px;
  font-size: 18px;
}
.mobile-cart-toggle strong {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  background: var(--emerald);
  color: white;
  border-radius: 50%;
  font:
    500 10px "DM Mono",
    monospace;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.theme-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
}
.theme-toggle:hover {
  color: var(--emerald);
}
.page {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 5vw 100px;
}
.page.active-page {
  display: block;
}
.details-back {
  display: inline-block;
  color: var(--muted);
  font:
    500 10px "DM Mono",
    monospace;
  text-transform: uppercase;
  margin-bottom: 35px;
}
.details-back:hover {
  color: var(--emerald);
}
.car-details {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 55px;
  align-items: start;
}
.car-details-media {
  min-width: 0;
}
.car-details-main-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  background: var(--deep);
}
.car-details-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.car-details-thumbnail {
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  overflow: hidden;
}
.car-details-thumbnail.active {
  border-color: var(--emerald);
}
.car-details-thumbnail img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  background: var(--deep);
}
.car-details-content h1 {
  font-size: clamp(42px, 5vw, 65px);
  margin: 14px 0 4px;
}
.car-details-year,
.car-details-description {
  color: var(--muted);
}
.car-details-price {
  display: block;
  font:
    500 25px "DM Mono",
    monospace;
  margin: 22px 0 30px;
}
.car-details-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 25px;
}
.car-details-spec {
  background: var(--white);
  padding: 15px;
}
.car-details-spec span {
  display: block;
  color: var(--muted);
  font:
    10px "DM Mono",
    monospace;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.car-details-spec strong {
  font-size: 13px;
}
.car-details-description {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 25px;
}
.car-details-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.car-details-actions .button {
  min-height: 48px;
  padding: 14px 18px;
  flex: 1 1 190px;
  max-width: none;
}
.car-details-actions .button-secondary {
  background: var(--deep);
  color: white;
}
.car-details-actions .button-secondary:hover {
  background: var(--emerald);
}
.car-details-actions [data-details-checkout] {
  background: var(--emerald);
  border: 1px solid var(--emerald);
  color: white;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.18);
}
.car-details-actions [data-details-checkout]:hover {
  background: var(--deep);
  border-color: var(--deep);
}
.related-vehicles {
  margin-top: 90px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}
.related-vehicles .section-heading {
  margin-bottom: 24px;
}
.related-vehicles .section-heading h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin: 8px 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 44% 56%;
  min-height: 570px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-radius: 3px;
}
.hero-copy {
  padding: 84px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  font:
    500 10px "DM Mono",
    monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--emerald);
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow span {
  width: 24px;
  height: 1px;
  background: var(--emerald);
}
h1 {
  font-size: clamp(48px, 5.2vw, 76px);
  letter-spacing: -0.075em;
  line-height: 0.98;
  margin: 25px 0 25px;
  font-weight: 800;
}
h1 i,
h2 i {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  letter-spacing: -0.06em;
}
.hero-lede {
  max-width: 335px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 34px;
}
.button {
  padding: 15px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  max-width: max-content;
  font-weight: 800;
  font-size: 12px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.16);
}
.button-primary {
  background: var(--emerald);
  color: white;
}
.button-secondary {
  background: var(--ink);
  color: white;
}
.button-light {
  background: white;
  color: var(--deep);
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 54px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.hero-proof strong {
  font:
    500 22px "DM Mono",
    monospace;
  margin-left: 8px;
}
.hero-proof span {
  font-size: 9px;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-visual {
  position: relative;
  min-height: 570px;
  background: var(--deep);
  overflow: hidden;
}
.popular-cars {
  margin-top: 72px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}
.popular-cars-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.popular-cars-heading h2 {
  font-size: 38px;
  line-height: 1;
  margin-top: 10px;
}
.popular-cars-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font:
    10px "DM Mono",
    monospace;
}
.popular-cars-controls button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
}
.popular-cars-controls button:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}
.popular-cars-carousel {
  overflow: hidden;
}
.popular-car {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.popular-car:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.popular-car-image {
  min-height: 245px;
  background: var(--deep);
}
.popular-car-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.popular-car-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 35px;
}
.popular-car-info h3 {
  font-size: 25px;
  margin: 12px 0 8px;
}
.popular-car-info p:not(.eyebrow) {
  color: var(--muted);
  font-size: 12px;
}
.popular-car-info strong {
  font:
    500 20px "DM Mono",
    monospace;
  margin: 22px 0 18px;
}
.popular-car-info span {
  color: var(--emerald);
  font-size: 11px;
  font-weight: 800;
}
.hero-visual canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.visual-label {
  position: absolute;
  top: 27px;
  right: 30px;
  color: #d1fae5;
  font:
    10px "DM Mono",
    monospace;
  text-transform: uppercase;
  display: flex;
  gap: 9px;
  align-items: center;
}
.visual-label b {
  color: white;
  font-weight: 400;
  margin-left: 9px;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.15);
}
.visual-stamp {
  position: absolute;
  bottom: 27px;
  left: 30px;
  color: rgba(255, 255, 255, 0.3);
  font:
    11px "DM Mono",
    monospace;
  line-height: 1.2;
  letter-spacing: 0.12em;
}
.visual-stamp strong {
  color: var(--emerald);
  font-size: 22px;
  letter-spacing: 0;
}
.section-intro {
  padding: 110px 5% 48px;
  display: flex;
  align-items: end;
  gap: 80px;
}
.section-intro h2 {
  font-size: 45px;
  line-height: 1;
  letter-spacing: -0.07em;
}
.section-intro > p:last-child {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 5px;
}
.mini-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  box-shadow: var(--soft-shadow);
}
.mini-features article {
  background: var(--white);
  padding: 30px;
}
.mini-features span,
.guarantee-number {
  font:
    10px "DM Mono",
    monospace;
  color: var(--emerald);
}
.mini-features h3 {
  font-size: 18px;
  margin: 35px 0 9px;
}
.mini-features p {
  color: var(--muted);
  font-size: 13px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 43px;
}
.page-heading h1,
.why-heading h1 {
  font-size: 65px;
  margin: 14px 0 0;
}
.heading-note {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
  line-height: 1.7;
}
.control-bar {
  background: white;
  box-shadow: var(--soft-shadow);
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  min-height: 80px;
  margin-bottom: 24px;
}
.control-bar label {
  padding: 19px 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.search-control {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 14px;
}
.search-control span {
  font-size: 25px;
  color: var(--emerald);
}
.control-bar label + label {
  border-left: 1px solid var(--line);
}
.search-control input,
.select-control select {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  width: 100%;
  font-weight: 700;
  font-size: 13px;
}
.search-control input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}
.select-control span,
.price-control > span {
  color: var(--muted);
  font:
    10px "DM Mono",
    monospace;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.select-control select {
  appearance: none;
  cursor: pointer;
  min-height: 38px;
  padding: 8px 38px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.select-control select:hover {
  border-color: var(--emerald);
}
.select-control select:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}
.select-control {
  position: relative;
}
.select-control:after {
  content: "▾";
  position: absolute;
  right: 37px;
  bottom: 26px;
  color: var(--emerald);
  pointer-events: none;
  font-size: 13px;
}
.price-control b {
  font:
    500 11px "DM Mono",
    monospace;
  color: var(--ink);
  float: right;
}
.price-control input {
  accent-color: var(--emerald);
  width: 100%;
  height: 4px;
  margin-top: 8px;
}
.results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.results-meta p {
  font-size: 12px;
  color: var(--muted);
}
.results-meta strong {
  color: var(--ink);
  font:
    500 12px "DM Mono",
    monospace;
}
.reset-button {
  background: transparent;
  color: var(--emerald);
  font:
    500 10px "DM Mono",
    monospace;
  text-transform: uppercase;
}
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.vehicle-card {
  background: white;
  box-shadow: var(--soft-shadow);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.vehicle-card.sold {
  filter: grayscale(0.8);
  opacity: 0.75;
}
.vehicle-image {
  aspect-ratio: 4 / 3;
  position: relative;
  background: #dce8e3;
  overflow: hidden;
}
.vehicle-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.vehicle-card:hover .vehicle-image img {
  transform: scale(1.035);
}
.vehicle-image canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.stock-badge {
  position: absolute;
  top: 13px;
  left: 13px;
  background: var(--emerald);
  color: white;
  padding: 5px 8px;
  font:
    500 9px "DM Mono",
    monospace;
  letter-spacing: 0.03em;
}
.vehicle-info {
  padding: 16px;
}
.vehicle-info h3 {
  font-size: 15px;
  letter-spacing: -0.03em;
}
.vehicle-meta {
  color: var(--muted);
  font-size: 11px;
  margin: 4px 0 15px;
}
.vehicle-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}
.vehicle-price {
  font:
    500 15px "DM Mono",
    monospace;
}
.vehicle-price small {
  font:
    9px Manrope,
    sans-serif;
  color: var(--emerald);
  display: block;
  margin-top: 3px;
}
.add-button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  font-size: 18px;
}
.add-button:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}
.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: white;
  box-shadow: var(--soft-shadow);
}
.empty-state span {
  font-size: 35px;
  color: var(--emerald);
}
.empty-state h2 {
  margin: 10px 0 8px;
}
.empty-state p {
  color: var(--muted);
  margin-bottom: 20px;
}
.cart-heading {
  margin-bottom: 43px;
}
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: start;
}
.cart-items-panel,
.invoice-card {
  background: var(--white);
  box-shadow: var(--soft-shadow);
}
.cart-items-panel {
  padding: 28px 32px;
  min-height: 440px;
}
.cart-panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 18px;
}
.cart-panel-heading h2 {
  font-size: 21px;
  letter-spacing: -0.05em;
}
.cart-panel-heading span {
  color: var(--muted);
  font:
    10px "DM Mono",
    monospace;
  text-transform: uppercase;
}
.cart-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
}
.cart-row + .cart-row {
  border-top: 1px solid var(--line);
}
.cart-thumb {
  width: 112px;
  height: 76px;
  background: #dce8e3;
}
.cart-thumb canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.cart-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-row h3 {
  font-size: 15px;
  letter-spacing: -0.03em;
}
.cart-row p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.cart-row-price {
  color: var(--emerald);
  font:
    500 17px "DM Mono",
    monospace;
  white-space: nowrap;
}
.checkout-row-button {
  padding: 6px 9px;
  background: var(--emerald);
  color: white;
  font:
    500 10px "DM Mono",
    monospace;
  text-transform: uppercase;
}
.checkout-row-button:hover {
  background: var(--deep);
}
.vehicle-bottom .checkout-row-button,
.vehicle-bottom .remove-button {
  padding: 6px 8px;
}
.remove-button {
  padding: 5px 0;
  color: #dc2626;
  background: transparent;
  font:
    500 10px "DM Mono",
    monospace;
  text-transform: uppercase;
}
.cart-empty {
  display: grid;
  place-items: center;
  min-height: 330px;
  text-align: center;
  color: var(--muted);
}
.cart-empty span {
  color: var(--emerald);
  font-size: 36px;
}
.cart-empty h3 {
  color: var(--ink);
  margin: 12px 0 6px;
  font-size: 19px;
}
.cart-empty p {
  font-size: 13px;
}
.invoice-card {
  padding: 32px;
  position: sticky;
  top: 110px;
}
.invoice-card h2 {
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.07em;
  margin: 15px 0 34px;
}
.invoice-lines {
  display: grid;
  gap: 16px;
}
.invoice-lines div,
.invoice-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.invoice-lines span,
.invoice-total span {
  color: var(--muted);
  font-size: 12px;
}
.invoice-lines small {
  color: var(--emerald);
  font:
    10px "DM Mono",
    monospace;
}
.invoice-lines strong {
  font:
    500 13px "DM Mono",
    monospace;
}
.invoice-total {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 22px;
}
.invoice-total span {
  color: var(--ink);
  font-weight: 800;
}
.invoice-total strong {
  color: var(--emerald);
  font:
    500 23px "DM Mono",
    monospace;
}
.checkout-button {
  width: 100%;
  max-width: none;
  margin-top: 30px;
}
.invoice-note {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  margin-top: 18px;
}
.why-heading {
  max-width: 530px;
}
.why-heading h1 {
  margin-bottom: 25px;
}
.why-heading > p:last-child {
  color: var(--muted);
  line-height: 1.8;
}
.guarantee-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
  margin-top: 70px;
}
.guarantee-card {
  padding: 32px;
  background: white;
  box-shadow: var(--soft-shadow);
  min-height: 390px;
  display: flex;
  flex-direction: column;
}
.guarantee-card.featured {
  background: var(--deep);
  color: white;
}
.guarantee-icon {
  font-size: 25px;
  color: var(--emerald);
  margin: 68px 0 20px;
}
.guarantee-card h2 {
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.07em;
}
.guarantee-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 17px;
  max-width: 240px;
}
.featured p {
  color: #9fb1ae;
}
.guarantee-card > strong {
  margin-top: auto;
  color: var(--emerald);
  font:
    500 27px "DM Mono",
    monospace;
}
.guarantee-card small {
  font:
    10px Manrope,
    sans-serif;
  color: inherit;
}
.why-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 70px;
  padding-top: 18px;
  color: var(--muted);
  font:
    10px "DM Mono",
    monospace;
  text-transform: uppercase;
}
.why-footer b {
  color: var(--emerald);
}
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.policy-section {
  background: var(--white);
  padding: 34px;
  min-height: 250px;
  scroll-margin-top: 100px;
}
.policy-section h2 {
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: -0.06em;
  margin: 20px 0 14px;
}
.policy-section p:last-child {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  max-width: 480px;
}
.policy-section ul {
  display: grid;
  gap: 9px;
  padding: 0 0 0 18px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  max-width: 480px;
}
.policy-section li::marker {
  color: var(--emerald);
}
.site-footer {
  background: var(--deep);
  color: white;
  padding: 68px 5vw 25px;
}
.footer-main {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1.35fr;
  gap: 40px;
}
.footer-brand .brand {
  color: white;
  margin-bottom: 20px;
}
.footer-brand p,
.footer-newsletter p {
  color: #9fb1ae;
  font-size: 12px;
  line-height: 1.7;
  max-width: 240px;
}
.footer-support-link {
  display: inline-block;
  color: var(--emerald);
  font:
    500 10px "DM Mono",
    monospace;
  text-transform: uppercase;
  margin-top: 24px;
}
.footer-support-link span {
  margin-left: 7px;
}
.footer-column,
.footer-newsletter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-column h2,
.footer-newsletter h2 {
  font-size: 12px;
  margin: 4px 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-column a {
  color: #9fb1ae;
  font-size: 12px;
  margin-bottom: 12px;
}
.footer-column a:hover,
.footer-support-link:hover {
  color: var(--emerald);
}
.footer-newsletter form {
  display: flex;
  width: 100%;
  max-width: 300px;
  margin-top: 18px;
  border-bottom: 1px solid #49625e;
}
.footer-newsletter input {
  min-width: 0;
  flex: 1;
  padding: 12px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  font-size: 12px;
}
.footer-newsletter input::placeholder {
  color: #9fb1ae;
}
.footer-newsletter button {
  background: transparent;
  color: var(--emerald);
  font-size: 22px;
  padding: 0 0 0 12px;
}
.footer-payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
}
.footer-payments img {
  width: 35px;
  height: 22px;
  object-fit: contain;
  opacity: 0.85;
}
.footer-bottom {
  max-width: 1280px;
  margin: 60px auto 0;
  padding-top: 18px;
  border-top: 1px solid #29443e;
  display: flex;
  justify-content: space-between;
  color: #78918c;
  font:
    10px "DM Mono",
    monospace;
  text-transform: uppercase;
}
.support-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  padding: 12px 16px;
  background: var(--deep);
  color: white;
  box-shadow: var(--shadow);
  font:
    500 10px "DM Mono",
    monospace;
  text-transform: uppercase;
}
.support-button:hover {
  background: var(--emerald);
}
.support-button span {
  display: inline-block;
  font-size: 24px;
  line-height: 0;
  vertical-align: middle;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(7px);
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-overlay[hidden] {
  display: none;
}
#checkout-modal {
  align-items: flex-start;
  overflow-y: auto;
  padding: 20px;
}
.modal-card {
  background: white;
  box-shadow: var(--shadow);
  width: min(500px, 100%);
  padding: 45px;
  position: relative;
  border: 1px solid var(--line);
}
#checkout-modal .modal-card {
  width: min(720px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  margin: auto;
  padding: clamp(30px, 5vw, 52px);
  border-radius: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--emerald) transparent;
}
#checkout-modal .modal-card::-webkit-scrollbar {
  width: 7px;
}
#checkout-modal .modal-card::-webkit-scrollbar-thumb {
  background: var(--emerald);
  border-radius: 20px;
}
#checkout-modal .close-button {
  width: 36px;
  height: 36px;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--canvas);
  font-size: 24px;
  line-height: 1;
}
#checkout-modal .close-button:hover {
  color: var(--emerald);
  border-color: var(--emerald);
}
#checkout-modal .modal-copy {
  max-width: 520px;
  margin-bottom: 18px;
}
#checkout-modal .modal-card h2 {
  width: fit-content;
  position: relative;
  padding-bottom: 13px;
}
#checkout-modal .modal-card h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%;
  height: 2px;
  border-radius: 99px;
  background: var(--emerald);
}
.checkout-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 12px 14px;
  margin-bottom: 22px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.07);
  color: var(--muted);
  font:
    10px "DM Mono",
    monospace;
  text-transform: uppercase;
}
.checkout-trust b {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--deep);
  font-size: 11px;
}
#checkout-inputs.checkout-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
#checkout-inputs .checkout-field-wide,
#checkout-inputs .payment-method-fieldset,
#checkout-inputs .form-submit {
  grid-column: 1 / -1;
}
#checkout-inputs .checkout-field {
  min-width: 0;
}
#checkout-inputs .form-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 2px;
  border-radius: 8px;
}
.close-button {
  position: absolute;
  right: 22px;
  top: 18px;
  background: transparent;
  font-size: 27px;
  color: var(--muted);
}
.modal-card h2,
.success-card h2 {
  font-size: 43px;
  line-height: 1;
  margin: 15px 0;
}
.modal-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.modal-card form {
  display: grid;
  gap: 16px;
}
.modal-card label {
  font:
    500 10px "DM Mono",
    monospace;
  text-transform: uppercase;
  color: var(--muted);
}
.modal-card input {
  width: 100%;
  display: block;
  margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  outline: 0;
  background: #f8fafc;
  color: var(--ink);
  font: 600 13px Manrope;
  border-radius: 8px;
}
.modal-card input:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}
.modal-card textarea {
  width: 100%;
  display: block;
  margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  outline: 0;
  resize: vertical;
  background: #f8fafc;
  color: var(--ink);
  font: 600 13px Manrope;
  border-radius: 8px;
}
.modal-card textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}
#customer-phone,
#customer-address {
  min-height: 42px;
  padding: 10px 12px;
  font-size: 12px;
}
.payment-method-fieldset {
  border: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.payment-method-fieldset legend {
  flex: 0 0 100%;
  color: var(--muted);
  font:
    500 10px "DM Mono",
    monospace;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.payment-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 42px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  margin: 0;
  border-radius: 7px;
  color: var(--ink) !important;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}
.payment-option:hover,
.payment-option:has(input:checked) {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.08);
  transform: translateY(-1px);
}
.payment-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.payment-option img {
  width: 43px;
  height: 25px;
  object-fit: contain;
  pointer-events: none;
}
.checkout-success {
  display: block;
  color: #155724;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 15px;
  border-radius: 5px;
  margin-top: 15px;
  font-family: sans-serif;
}
.checkout-success h3 {
  margin-top: 0;
}
.checkout-success strong {
  color: #0b5115;
  font-size: 1.2em;
}
.checkout-success-note {
  margin-bottom: 0;
  font-size: 0.9em;
}
.optional-label {
  color: var(--muted);
  font:
    10px Manrope,
    sans-serif;
  text-transform: none;
}
.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;
}
.form-submit {
  max-width: none;
  margin-top: 10px;
}
.form-note {
  text-align: center;
  color: var(--muted);
  font-size: 10px;
}
.success-overlay {
  background: #0b3c1b;
  min-height: 100vh;
  padding: 32px;
  place-items: center;
}
.success-card {
  max-width: 680px;
  width: 100%;
  text-align: left;
  color: white;
  padding: 64px;
  background: #0b3c1b;
  border-left: 2px solid var(--emerald);
}
.success-check {
  display: grid;
  place-items: center;
  margin: 0 0 32px;
  width: 54px;
  height: 54px;
  background: var(--emerald);
  border-radius: 4px;
  color: #0b3c1b;
  font-size: 24px;
  font-weight: 800;
}
.success-card h2 {
  max-width: 560px;
  font-size: clamp(48px, 7vw, 78px);
  letter-spacing: -0.07em;
  margin: 18px 0 24px;
}
.success-card > p:not(.eyebrow) {
  color: #acc1be;
  max-width: 350px;
  margin: 0 0 34px;
  line-height: 1.8;
}
.success-card .eyebrow {
  color: #9ef5d1;
}
.success-card .button {
  min-width: 190px;
}
@media (max-width: 1000px) {
  .vehicle-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-copy {
    padding: 60px 7%;
  }
  .hero-proof {
    gap: 5px;
  }
  .section-intro {
    padding-left: 0;
    padding-right: 0;
  }
  .popular-cars {
    margin-top: 52px;
  }
  .popular-cars-heading {
    align-items: start;
    flex-direction: column;
  }
  .popular-cars-heading h2 {
    font-size: 34px;
  }
  .popular-car {
    grid-template-columns: 1fr;
  }
  .popular-car-image {
    min-height: 210px;
  }
  .popular-car-info {
    padding: 25px;
  }
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  #checkout-modal {
    padding: 10px;
    align-items: flex-start;
  }
  #checkout-modal .modal-card {
    max-height: calc(100dvh - 20px);
    padding: 32px 18px 22px;
    border-radius: 14px;
  }
  #checkout-modal .modal-card h2 {
    font-size: 37px;
    padding-right: 35px;
  }
  #checkout-inputs.checkout-fields {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  #checkout-inputs .checkout-field-wide,
  #checkout-inputs .payment-method-fieldset,
  #checkout-inputs .form-submit {
    grid-column: auto;
  }
  .checkout-trust {
    gap: 8px;
    line-height: 1.5;
  }
  .site-header {
    height: 70px;
    padding: 0 20px;
  }
  .menu-toggle {
    display: block;
    order: 3;
  }
  .mobile-cart-toggle {
    display: inline-flex;
    order: 3;
    margin-left: auto;
    margin-right: 4px;
  }
  .theme-toggle {
    margin-left: auto;
    margin-right: 8px;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px 20px 18px;
    background: rgba(248, 250, 252, 0.98);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
  }
  .main-nav.menu-open {
    display: grid;
    gap: 0;
  }
  .main-nav a {
    padding: 14px 0;
    font-size: 12px;
  }
  .main-nav a + a {
    border-top: 1px solid var(--line);
  }
  .main-nav a.active:after {
    bottom: 10px;
  }
  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(6px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }
  .page {
    padding: 35px 20px 70px;
  }
  .hero-grid {
    display: flex;
    flex-direction: column-reverse;
    min-height: 0;
  }
  .hero-visual {
    min-height: 370px;
  }
  .hero-copy {
    padding: 46px 26px 35px;
  }
  .hero-copy h1 {
    font-size: 53px;
  }
  .hero-proof {
    margin-top: 35px;
  }
  .section-intro {
    display: block;
    padding: 75px 0 30px;
  }
  .section-intro h2 {
    font-size: 40px;
    margin: 16px 0;
  }
  .mini-features {
    grid-template-columns: 1fr;
  }
  .mini-features article {
    padding: 24px;
  }
  .mini-features h3 {
    margin-top: 20px;
  }
  .page-heading {
    display: block;
    margin-bottom: 30px;
  }
  .page-heading h1,
  .why-heading h1 {
    font-size: 52px;
  }
  .heading-note {
    text-align: left;
    margin-top: 18px;
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-items-panel {
    padding: 22px 18px;
  }
  .invoice-card {
    position: static;
    padding: 26px 22px;
  }
  .cart-row {
    grid-template-columns: 80px minmax(0, 1fr) auto;
    gap: 12px;
  }
  .cart-thumb {
    width: 80px;
    height: 65px;
  }
  .cart-row-price {
    grid-column: 2;
    grid-row: 2;
    font-size: 14px;
  }
  .remove-button {
    grid-column: 3;
    grid-row: 2;
  }
  .control-bar {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .control-bar label {
    min-height: 69px;
    padding: 15px 18px;
  }
  .control-bar label + label {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .select-control:after {
    right: 20px;
    bottom: 23px;
  }
  .vehicle-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .car-details {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .vehicle-image {
    height: 120px;
  }
  .vehicle-info {
    padding: 12px;
  }
  .vehicle-info h3 {
    font-size: 13px;
  }
  .vehicle-meta {
    font-size: 10px;
    margin-bottom: 11px;
  }
  .vehicle-price {
    font-size: 12px;
  }
  .guarantee-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 45px;
  }
  .guarantee-card {
    min-height: 300px;
  }
  .policy-grid {
    grid-template-columns: 1fr;
  }
  .policy-section {
    min-height: 0;
    padding: 25px;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 35px 20px;
  }
  .footer-brand,
  .footer-newsletter {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    gap: 15px;
    flex-wrap: wrap;
  }
  .guarantee-icon {
    margin-top: 38px;
  }
  .why-footer {
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 45px;
  }
  .modal-card {
    padding: 35px 24px;
  }
  .success-card {
    padding: 20px;
  }
  .success-card h2 {
    font-size: 52px;
  }
}
@media (max-width: 430px) {
  .brand {
    font-size: 14px;
  }
  .brand-mark {
    width: 29px;
    height: 29px;
  }
  .main-nav {
    gap: 11px;
    margin-right: 11px;
  }
  .main-nav a {
    font-size: 10px;
  }
  .hero-visual {
    min-height: 280px;
  }
  .hero-copy h1 {
    font-size: 45px;
  }
  .vehicle-grid {
    grid-template-columns: 1fr;
  }
  .vehicle-image {
    height: 165px;
  }
  .results-meta {
    margin-top: 22px;
  }
  .page-heading h1,
  .why-heading h1 {
    font-size: 46px;
  }
}

html.dark-mode {
  --canvas: #0b1715;
  --ink: #ecfdf5;
  --muted: #9fb1ae;
  --line: #29443e;
  --deep: #071b1c;
  --white: #112522;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --soft-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
html.dark-mode body,
html.dark-mode .site-header {
  background: var(--canvas);
  color: var(--ink);
}
html.dark-mode .site-header {
  background: rgba(11, 23, 21, 0.94);
}
html.dark-mode .main-nav a,
html.dark-mode .heading-note,
html.dark-mode .vehicle-meta,
html.dark-mode .hero-lede,
html.dark-mode .cart-row p {
  color: var(--muted);
}
html.dark-mode .main-nav a:hover,
html.dark-mode .main-nav a.active {
  color: var(--ink);
}
html.dark-mode .hero-grid,
html.dark-mode .control-bar,
html.dark-mode .vehicle-card,
html.dark-mode .cart-items-panel,
html.dark-mode .invoice-card,
html.dark-mode .guarantee-card:not(.featured),
html.dark-mode .modal-card {
  background: var(--white);
}
html.dark-mode .search-control input,
html.dark-mode .select-control select,
html.dark-mode .modal-card input,
html.dark-mode .modal-card textarea {
  color: var(--ink);
  background: #17352f;
  border-color: #3c6259;
  caret-color: var(--emerald);
}
html.dark-mode .search-control input::placeholder {
  color: #b4c9c3;
}
html.dark-mode .modal-card input::placeholder,
html.dark-mode .modal-card textarea::placeholder {
  color: #9fbab2;
}
html.dark-mode .add-button {
  background: var(--emerald);
  color: #062b14;
}
html.dark-mode .add-button:hover {
  background: #6ee7b7;
}
html.dark-mode .add-button:disabled {
  background: #3c6259;
  color: #d7ebe5;
}
html.dark-mode .modal-card input:focus,
html.dark-mode .modal-card textarea:focus,
html.dark-mode .search-control input:focus,
html.dark-mode .select-control select:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}
html.dark-mode .payment-option img {
  filter: invert(1);
}
html.dark-mode .checkout-success {
  color: #d1fae5;
  background: #123d2b;
  border-color: #2f855a;
}
html.dark-mode .checkout-success strong {
  color: #ecfdf5;
}
html.dark-mode .success-card,
html.dark-mode .success-overlay {
  background: #062b14;
}
