/* Rateous: fast car feel. Big, bold, dark asphalt, racing red. */
:root {
  --asphalt: #0b0b0e;
  --asphalt-2: #131318;
  --panel: #1a1a21;
  --line: #2a2a33;
  --red: #e8102e;
  --red-hot: #ff2442;
  --white: #f5f5f7;
  --gray: #9a9aa5;
  --yellow: #ffc400;
  --display: 'Anton', 'Arial Black', sans-serif;
  --body: 'Barlow', 'Helvetica Neue', sans-serif;
  --condensed: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--asphalt);
  color: var(--white);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
/* Full-bleed app pages (shop, vehicle, garage): grow with the browser, and
   let copy run the full frame width instead of condensing into a column. */
.wrap-wide { max-width: min(96vw, 1760px); }
.wrap-wide .lead, .wrap-wide .section-sub, .wrap-wide .disclaimer { max-width: none; }

/* ---------- Price drop spotlight ---------- */
.car-img { position: relative; }
.drop-ribbon {
  position: absolute; top: 14px; left: -8px; z-index: 4;
  background: linear-gradient(90deg, var(--yellow), #ffd84d);
  color: #111; font-family: var(--condensed); font-weight: 700;
  font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 16px 6px 18px; transform: skewX(-8deg);
  box-shadow: 0 4px 16px rgba(255, 184, 0, .35);
}
.car.dropped { border-color: var(--yellow); }
.car.dropped:hover { border-color: var(--yellow); box-shadow: 0 14px 40px rgba(255, 184, 0, .28); }
.was-price {
  color: var(--gray); font-size: 17px; font-family: var(--condensed);
  font-weight: 600; margin-left: 6px;
}

/* Featured (paid placement) dealers */
.featured-flag {
  position: absolute; top: 14px; right: -6px; z-index: 4;
  background: var(--white); color: #111;
  font-family: var(--condensed); font-weight: 700; font-size: 13px;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 14px; transform: skewX(-8deg);
}

/* Pit Crew picks dropping into the grid */
@keyframes dropIn {
  0% { opacity: 0; transform: translateY(-60px) scale(.96); }
  70% { opacity: 1; transform: translateY(6px) scale(1); }
  100% { opacity: 1; transform: translateY(0); }
}
.drop-in { animation: dropIn .55s cubic-bezier(.16, 1, .3, 1) both; }
.car.pc-pick { border-color: var(--red-hot); }
.pc-flag {
  position: absolute; bottom: 10px; left: -6px; z-index: 4;
  background: var(--red); color: #fff;
  font-family: var(--condensed); font-weight: 700; font-size: 13px;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 14px; transform: skewX(-8deg);
}

/* Pit Crew in the nav */
.nav-pitcrew {
  background: var(--red); color: #fff !important; border: 0; cursor: pointer;
  font-family: var(--condensed); font-weight: 700; font-size: 16px;
  letter-spacing: 2px; text-transform: uppercase; padding: 9px 18px;
  transform: skewX(-8deg); display: inline-block;
  transition: box-shadow .25s, transform .25s;
}
.nav-pitcrew span { display: inline-block; transform: skewX(8deg); }
.nav-pitcrew:hover { box-shadow: 0 6px 20px rgba(232, 16, 46, .5); transform: skewX(-8deg) translateY(-2px); }
@media (max-width: 640px) {
  .nav-pitcrew { font-size: 13px; padding: 6px 10px; letter-spacing: 1px; }
  .nav-links { gap: 10px; }
}

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

.car, .g-card, .spec, .addon, .chip, .hv-chip, .btn, .car-cta, .car-save {
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease,
    background .25s ease, color .25s ease;
}
.car:hover, .g-card:hover {
  transform: translateY(-6px);
  border-color: var(--red);
  box-shadow: 0 14px 40px rgba(232, 16, 46, .22);
}
.car-img img, .g-img img { transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.car:hover .car-img img, .g-card:hover .g-img img { transform: scale(1.06); }
.spec:hover { background: var(--panel); transform: translateX(4px); border-left: 3px solid var(--red); }
.hv-chip:hover { background: var(--red); border-color: var(--red); transform: skewX(-6deg); }
.chip:hover { color: var(--white); border-color: var(--red-hot); }
.btn:hover, .car-cta:hover { transform: translateY(-2px) skewX(-2deg); }
.btn-red:hover { box-shadow: 0 8px 26px rgba(232, 16, 46, .45); }

.sec-title { position: relative; padding-bottom: 8px; }
.sec-title::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 4px; width: 0;
  background: linear-gradient(90deg, var(--red), var(--red-hot));
  transition: width .7s cubic-bezier(.16, 1, .3, 1);
}
.reveal.in.sec-title::after, .sec-title.in::after { width: 90px; }

/* ---------- Nav ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,11,14,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: 1px;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  font-style: italic;
}
.logo em { color: var(--red-hot); font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--gray); text-decoration: none;
  font-family: var(--condensed); font-weight: 600;
  font-size: 18px; letter-spacing: 1.5px; text-transform: uppercase;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.cta {
  background: var(--red); color: #fff;
  padding: 10px 22px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.nav-links a.cta:hover { background: var(--red-hot); }
@media (max-width: 720px) {
  .nav-inner { height: 62px; }
  .logo { font-size: 24px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.cta):not(.keep) { display: none; }
  .nav-links a.keep { font-size: 15px; }
  .nav-links a.cta { font-size: 15px; padding: 8px 14px; white-space: nowrap; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 130px;
  background:
    linear-gradient(115deg, rgba(232,16,46,.16) 0%, transparent 45%),
    repeating-linear-gradient(115deg, transparent 0 140px, rgba(255,255,255,.025) 140px 143px),
    var(--asphalt);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(90deg, var(--red) 0 60px, var(--asphalt-2) 60px 120px);
}
.kicker {
  font-family: var(--condensed);
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--red-hot);
  font-size: 20px;
  margin-bottom: 18px;
}
h1 {
  font-family: var(--display);
  font-size: clamp(56px, 9vw, 118px);
  line-height: .96;
  text-transform: uppercase;
  letter-spacing: 1px;
}
h1 .stroke {
  color: transparent;
  -webkit-text-stroke: 2px var(--white);
}
h1 .redline { color: var(--red-hot); }
.hero p.lead {
  margin-top: 28px;
  max-width: 640px;
  font-size: 24px;
  font-weight: 500;
  color: var(--gray);
}
.hero p.lead strong { color: var(--white); }
.hero-ctas { margin-top: 42px; display: flex; gap: 18px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 38px;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  cursor: pointer;
  border: 0;
  transition: transform .12s ease, background .12s ease;
}
.btn:active { transform: translateX(3px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hot); }
.btn-ghost {
  background: transparent; color: var(--white);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--white); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
section.dark { background: var(--asphalt-2); }
h2 {
  font-family: var(--display);
  font-size: clamp(40px, 5.5vw, 68px);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 18px;
}
h2 .redline { color: var(--red-hot); }
.section-sub { color: var(--gray); font-size: 22px; max-width: 700px; font-weight: 500; }

.grid4 {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.factor {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  padding: 30px 26px;
}
.factor .num {
  font-family: var(--display);
  font-size: 44px;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red-hot);
}
.factor h3 {
  font-family: var(--condensed);
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 10px 0 8px;
}
.factor p { color: var(--gray); font-size: 17px; }

/* ---------- Dealer strip ---------- */
.dealer-strip {
  background:
    linear-gradient(100deg, var(--red) 0%, #8f0a1d 100%);
  padding: 80px 0;
}
.dealer-strip h2 { color: #fff; }
.dealer-strip p { color: rgba(255,255,255,.85); font-size: 22px; max-width: 760px; font-weight: 500; }
.dealer-strip .btn { background: #0b0b0e; color: #fff; margin-top: 34px; }
.dealer-strip .btn:hover { background: #000; }

.checklist { margin-top: 34px; display: grid; gap: 14px; max-width: 760px; }
.checklist li {
  list-style: none;
  font-size: 20px; font-weight: 600;
  padding-left: 34px; position: relative;
}
.checklist li::before {
  content: '';
  position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px;
  background:
    conic-gradient(#fff 0 25%, #000 0 50%, #fff 0 75%, #000 0);
  background-size: 9px 9px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 60px;
  color: var(--gray);
  font-size: 15px;
}
footer .foot-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer a { color: var(--gray); }
.disclaimer { margin-top: 22px; font-size: 13px; line-height: 1.75; max-width: none; }
/* Long legal paragraph fills the footer width in balanced columns. */
footer .disclaimer {
  columns: 3 340px;
  column-gap: 52px;
  text-align: justify;
}
/* The short lines after it (Terms links, company credit) stay single-column. */
footer .disclaimer ~ .disclaimer { columns: auto; text-align: left; }

/* ---------- Calculator page ---------- */
.calc-shell { max-width: 860px; margin: 0 auto; padding: 60px 24px 120px; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  padding: 42px 40px;
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--condensed);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 17px;
  color: var(--gray);
  margin-bottom: 8px;
}
.field label .req { color: var(--red-hot); }
.field input, .field select {
  width: 100%;
  background: var(--asphalt);
  border: 1px solid var(--line);
  color: var(--white);
  font-family: var(--body);
  font-size: 22px;
  font-weight: 600;
  padding: 14px 16px;
  outline: none;
}
.field input:focus, .field select:focus { border-color: var(--red-hot); }
.field input.err { border-color: var(--red-hot); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }

.form-error {
  display: none;
  background: rgba(232,16,46,.12);
  border: 1px solid var(--red);
  color: var(--red-hot);
  font-weight: 600;
  padding: 14px 18px;
  margin-bottom: 22px;
}

/* Result */
.result { display: none; text-align: center; padding: 30px 0 8px; }
.result .r-label {
  font-family: var(--condensed); font-weight: 700; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gray); font-size: 19px;
}
.result .r-rate {
  font-family: var(--display);
  font-size: clamp(80px, 14vw, 150px);
  line-height: 1;
  color: var(--red-hot);
  margin: 8px 0 4px;
}
.result .r-payment {
  font-family: var(--display);
  font-size: 42px;
  color: var(--white);
  margin-top: 18px;
}
.result .r-meta {
  margin-top: 20px;
  display: flex; justify-content: center; gap: 26px; flex-wrap: wrap;
  font-family: var(--condensed); text-transform: uppercase; letter-spacing: 1px;
  color: var(--gray); font-size: 16px;
}
.result .r-meta b { color: var(--white); }
.result .again { margin-top: 34px; }

.breakdown {
  max-width: 460px;
  margin: 30px auto 0;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--asphalt);
  padding: 20px 24px;
}
.bd-title {
  font-family: var(--condensed); font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gray); font-size: 16px;
  margin-bottom: 12px;
}
.bd-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0; font-size: 17px; color: var(--gray);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.bd-row b { color: var(--white); font-variant-numeric: tabular-nums; }
.bd-total { border-top: 2px solid var(--red); border-bottom: 0; margin-top: 6px; padding-top: 10px; }
.bd-total span { color: var(--white); font-weight: 700; }

/* Gate */
.gate { max-width: 520px; margin: 0 auto; text-align: center; }
.gate h1 { font-size: clamp(44px, 8vw, 72px); }
.gate p { color: var(--gray); margin: 18px 0 30px; font-size: 20px; }
.gate input {
  width: 100%;
  background: var(--asphalt);
  border: 2px solid var(--line);
  color: var(--white);
  font-family: var(--display);
  text-align: center;
  letter-spacing: 6px;
  text-transform: uppercase;
  font-size: 30px;
  padding: 16px;
  outline: none;
  margin-bottom: 18px;
}
.gate input:focus { border-color: var(--red-hot); }

.small-note { font-size: 13px; color: var(--gray); margin-top: 26px; line-height: 1.6; }

/* Branded photo placeholder for listings without real images */
.ph-tile {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  background:
    linear-gradient(115deg, rgba(232,16,46,.18) 0%, transparent 55%),
    repeating-linear-gradient(115deg, transparent 0 34px, rgba(255,255,255,.03) 34px 36px),
    var(--asphalt-2);
  position: relative;
}
.ph-tile::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: repeating-linear-gradient(90deg, var(--red) 0 26px, var(--asphalt) 26px 52px);
}
.ph-tile .ph-logo {
  font-family: var(--display); font-style: italic; font-size: 26px;
  letter-spacing: 1px; color: var(--white); text-transform: uppercase;
}
.ph-tile .ph-logo em { color: var(--red-hot); font-style: italic; }
.ph-tile .ph-msg {
  font-family: var(--condensed); font-weight: 700; font-size: 13px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--gray);
}
/* In the large VDP gallery frame, the placeholder fills the space. */
.gallery-main .ph-tile { gap: 14px; }
.gallery-main .ph-tile .ph-logo { font-size: clamp(54px, 7.5vw, 120px); letter-spacing: 2px; }
.gallery-main .ph-tile .ph-msg { font-size: clamp(15px, 1.6vw, 24px); letter-spacing: 6px; }
.gallery-main .ph-tile::after { height: 10px; background: repeating-linear-gradient(90deg, var(--red) 0 40px, var(--asphalt) 40px 80px); }

.spin {
  display: none;
  width: 18px; height: 18px;
  border: 3px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
  margin-right: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }
