/*
  GoCarSale UI v5 layer: "honest sticker"
  ------------------------------------------------------------
  Loaded last (after site.css, v3.css, v4.css). Re-tunes the shared design tokens so every page picks up the
  new identity, then restyles the components that carry it. Nothing here is required by scripts.

  Identity
   - Guide green  #0B6B4D  brand, primary actions, earned signals (US highway guide-sign green: "go")
   - Asphalt      #17202B  text, the heavy label frame and head bar
   - Fog          #F2F5F3  page background
   - Signal amber #F5B800  paid placement ONLY (Featured, Premium, Sponsored). Amber always means "someone paid".
   - Brake red    #B3401A  high prices, danger
   Type: Archivo Black (display, prices) + Source Sans 3 (text and UI), both self-hosted (/fonts, SIL OFL).
   Signature: the price check label, modelled on a window sticker. Ratings people earn are green;
   placements people buy are amber; the two never share a color.

  Sections
   1. Fonts and tokens          8. Home
   2. Base and typography       9. Price check label + deal meter
   3. Header and navigation    10. Listing page
   4. Trust bar and banners    11. Pricing
   5. Buttons and forms        12. Trust center and content pages
   6. Cards and badges         13. Search, sell and misc fixes
   7. Footer                   14. Dark theme, motion, print
*/

/* 1. Fonts and tokens ------------------------------------------------------ */

@font-face{
  font-family:"Source Sans 3";
  src:url("/fonts/source-sans-3-var.woff") format("woff");
  font-weight:200 900;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Source Sans 3";
  src:url("/fonts/source-sans-3-italic-var.woff") format("woff");
  font-weight:200 900;
  font-style:italic;
  font-display:swap;
}
@font-face{
  font-family:"Archivo Black";
  src:url("/fonts/archivo-black.woff") format("woff");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

:root{
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-display: "Archivo Black", "Source Sans 3", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --v5-green: #0B6B4D;
  --v5-green-600: #095C42;
  --v5-green-700: #084C37;
  --v5-green-50: #E7F3EE;
  --v5-green-100: #D2E9DE;
  --v5-ink: #17202B;
  --v5-ink-2: #3E4C5A;
  --v5-amber: #F5B800;
  --v5-amber-50: #FFF6D6;
  --v5-amber-ink: #7A5200;
  --v5-red: #B3401A;
  --v5-red-50: #FBEBE4;
  --v5-caution-bg: #FCEFE3;
  --v5-caution-border: rgba(180, 83, 9, 0.32);
  --v5-caution-ink: #92400E;
  --v5-label: #17202B;          /* the heavy frame of the price check label */
  --v5-label-head-text: #FFFFFF;

  /* deal scale (bars and pills) */
  --v5-great: #0B6B4D;  --v5-great-bg: #E1F1E9;  --v5-great-ink: #0A5A40;
  --v5-good:  #5E9E4B;  --v5-good-bg:  #ECF5DF;  --v5-good-ink:  #3D6A1E;
  --v5-fair:  #8A96A3;  --v5-fair-bg:  #EDF0F3;  --v5-fair-ink:  #3E4C5A;
  --v5-high:  #C4521F;  --v5-high-bg:  #FBEBE4;  --v5-high-ink:  #9A3412;

  /* shared tokens used by site.css, v3.css and v4.css */
  --bg: #F2F5F3;
  --surface: #FFFFFF;
  --surface2: #EEF2F0;
  --surface3: #E2E8E5;
  --text: #17202B;
  --muted: #5B6875;
  --muted2: #7A8692;
  --border: rgba(23, 32, 43, 0.13);
  --border-strong: rgba(23, 32, 43, 0.24);
  --line: var(--border);
  --line-strong: var(--border-strong);
  --accent: #0B6B4D;
  --accent-contrast: #FFFFFF;
  --onAccent: #FFFFFF;
  --brand: #0B6B4D;
  --link: #0B6B4D;
  --success: #0B6B4D;
  --danger: #B3401A;
  --warning: #B7791F;
  --info: #1F5F8B;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(23, 32, 43, 0.06);
  --shadow-md: 0 10px 24px -14px rgba(23, 32, 43, 0.28);
  --shadow-lg: 0 24px 48px -22px rgba(23, 32, 43, 0.38);
  --ring: 0 0 0 4px rgba(11, 107, 77, 0.20);

  --v3-radius: 14px;
  --v3-accent-soft: #E7F3EE;
  --v3-good: #0B6B4D;
  --v3-drop: #B3401A;
}

/* 2. Base and typography ---------------------------------------------------- */

body{
  background: var(--bg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
input, select, textarea, button{font-family: var(--font);}

h1, h2, h3{color: var(--text); letter-spacing: -0.01em;}
h1{font-weight: 800; line-height: 1.08;}
h2{font-weight: 750; font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem); line-height: 1.15;}
h3{font-weight: 700; font-size: 1.15rem; line-height: 1.25;}

a{color: var(--link);}
a:hover{color: var(--v5-green-700);}

::selection{background: var(--v5-green-100); color: var(--v5-ink);}

:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{
  outline: 3px solid var(--v5-green);
  outline-offset: 2px;
}

/* Prices and money read like a window sticker: heavy display face, figures that line up. */
.price, .v4-price, .v5-pc-price, .v4-plan-price, .v3-budget-price, .v3-pulse-num, .v3-budget-chip strong{
  font-family: var(--font-display);
  font-weight: 400;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* Small labels stay in sentence case (no shouting). */
.section-kicker, .v4-keyfact-label, .v4-fpro-label, .v4-fpro-more > summary{
  text-transform: none;
  letter-spacing: 0;
}
.section-kicker::before{display: none;}

.muted{color: var(--muted);}

/* 3. Header and navigation -------------------------------------------------- */

.site-header{
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
}
@supports (backdrop-filter: blur(12px)){
  .site-header{background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.4) blur(12px);}
}
.header-row{padding: 10px 18px; min-height: 64px; gap: 18px;}
.nav-badge[hidden]{display: none;}

.brand{gap: 10px; color: var(--v5-ink); font-weight: 400;}
.brand:hover{color: var(--v5-ink); text-decoration: none;}
.brand-logo{width: 32px; height: 32px; display: block; flex: 0 0 auto;}
.brand-name{font-family: var(--font-display); font-size: 1.28rem; line-height: 1; letter-spacing: -0.015em;}

.nav{gap: 16px;}
.nav-links{gap: 2px;}
.nav a{
  color: var(--v5-ink-2);
  font-weight: 650;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 8px;
  border: 0;
  opacity: 1;
}
.nav a:hover{background: var(--surface2); color: var(--v5-ink); text-decoration: none; border: 0;}
.nav a.current{background: var(--v5-green-50); color: var(--v5-green-700); border: 0;}
.nav-badge{background: var(--v5-green); color: #fff;}
.nav-actions{gap: 8px;}
.nav-actions .btn{min-height: 40px; padding: 8px 14px;}
/* Only one green button in the header: "Sell your car". Account buttons step back. */
.nav-actions .btn.primary:not(.nav-sell){
  background: var(--surface);
  color: var(--v5-ink);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.nav-actions .btn.primary:not(.nav-sell):hover{border-color: var(--v5-ink);}
.nav-actions .btn.ghost{color: var(--v5-ink); font-weight: 650;}
.nav-actions .icon-btn{width: 40px; height: 40px; box-shadow: none;}

.theme-toggle .ico-sun{display: none;}
html[data-theme="dark"] .theme-toggle .ico-sun{display: block;}
html[data-theme="dark"] .theme-toggle .ico-moon{display: none;}

.user-chip{border-radius: 10px;}
.avatar{background: var(--v5-green);}
.menu-panel{border-radius: 12px;}

@media (max-width: 860px){
  .nav{top: 70px; border-radius: 14px; padding: 12px; gap: 8px;}
  .nav a{background: transparent; padding: 12px; font-size: 1.05rem;}
  .nav a.current{background: var(--v5-green-50);}
  .nav-actions{border-top: 1px solid var(--border); padding-top: 10px;}
  .nav-sell-mobile.btn{min-height: 36px; padding: 6px 14px;}
}

/* 4. Trust bar and banners -------------------------------------------------- */

.trust-bar{background: var(--v5-green-50); border-bottom: 1px solid var(--v5-green-100);}
.trust-inner{font-size: 0.92rem; min-height: 42px; padding: 8px 0;}
.trust-text{color: var(--v5-green-700); gap: 10px;}
.trust-text .trust-icon{flex: 0 0 auto; color: var(--v5-green);}
.trust-link{color: var(--v5-green-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap;}
.trust-close{background: transparent; border-color: transparent; box-shadow: none; color: var(--v5-green-700);}
.trust-close:hover{background: var(--v5-green-100);}

.v4-announce{background: var(--v5-ink); font-weight: 650;}
.v4-announce a, .v4-announce span{color: #fff;}

.v3-demo-bar{background: var(--v5-amber-50); color: var(--v5-amber-ink); border-bottom: 1px solid rgba(245, 184, 0, 0.45);}

.banner, .notice, .callout{border-radius: 12px;}

/* 5. Buttons and forms ------------------------------------------------------ */

.btn{
  border-radius: 10px;
  font-weight: 700;
  padding: 10px 16px;
  box-shadow: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover{box-shadow: none; border-color: var(--v5-ink);}
.btn.primary{background: var(--v5-green); color: #fff; border: 1px solid var(--v5-green);}
.btn.primary:hover{background: var(--v5-green-600); border-color: var(--v5-green-600); color: #fff; box-shadow: none;}
.btn.primary:active{background: var(--v5-green-700);}
.btn.secondary{background: var(--surface); border: 1px solid var(--border-strong); color: var(--v5-ink);}
.btn.secondary:hover{background: var(--surface); border-color: var(--v5-ink);}
.btn.ghost{background: transparent; border-color: transparent; color: var(--v5-ink);}
.btn.ghost:hover{background: var(--surface2); border-color: transparent; box-shadow: none;}
.btn.danger{color: var(--v5-red);}
.btn.small{border-radius: 9px;}
button:hover{box-shadow: none;}

input, select, textarea{
  border-radius: 10px;
  border-color: var(--border-strong);
  background-color: var(--surface);
  color: var(--text);
}
input:focus, select:focus, textarea:focus{
  border-color: var(--v5-green);
  box-shadow: var(--ring);
  outline: none;
}
label{font-weight: 650;}
.chip{border-radius: 999px; font-weight: 650; color: var(--v5-ink-2);}
a.chip:hover{border-color: var(--v5-green); color: var(--v5-green-700);}
.chip.success{background: var(--v5-great-bg); border-color: rgba(11, 107, 77, 0.28); color: var(--v5-great-ink);}
/* Caution is burnt orange, not amber: amber is reserved for paid placement. */
.chip.warn{background: var(--v5-caution-bg); border-color: var(--v5-caution-border); color: var(--v5-caution-ink);}
.v4-badge-warn{background: var(--v5-caution-bg); border-color: var(--v5-caution-border); color: var(--v5-caution-ink);}
.desc-eyebrow{text-transform: none; letter-spacing: 0;}
.v3-filter-title{text-transform: none; letter-spacing: 0; font-size: 0.86rem; font-weight: 700; color: var(--v5-ink-2);}
.ad-pill{background: var(--v5-amber); color: var(--v5-ink); border-color: transparent; font-weight: 800;}
.chip.danger{background: var(--v5-red-50); border-color: rgba(179, 64, 26, 0.32); color: var(--v5-high-ink);}

kbd{border-radius: 5px;}

/* 6. Cards and badges -------------------------------------------------------- */

.card{border-radius: 12px; box-shadow: none; border: 1px solid var(--border);}
.card:hover{transform: none; box-shadow: var(--shadow-md); border-color: var(--border-strong);}
.card.listing-card .card-media{border-top-left-radius: 12px; border-top-right-radius: 12px;}
.card-body{padding: 14px 16px 16px; gap: 8px;}
.card-title{font-weight: 700; font-size: 1.06rem; line-height: 1.25; min-height: 2.5em;}
.card-title a{color: var(--v5-ink);}
.card-title a:hover{color: var(--v5-green-700); text-decoration: none;}
.card-subtitle{font-size: 0.93rem;}
.card-meta{gap: 6px;}
.card-meta .chip{font-size: 0.78rem; padding: 2px 9px; background: transparent;}
.card .card-actions .icon-btn{box-shadow: var(--shadow-sm);}

.listing-card .price-row{display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: auto; padding-top: 4px;}
.listing-card .price{font-size: 1.38rem; line-height: 1.1;}
.listing-card .price-row .v5-deal{margin-left: auto;}

/* Paid placement is always amber, and only paid placement is amber. */
.v4-badge-featured, .badge.sponsored{
  background: var(--v5-amber);
  color: var(--v5-ink);
  border: 0;
  border-radius: 6px;
  font-weight: 800;
  backdrop-filter: none;
}
.v4-badge-premium{
  background: var(--v5-ink);
  color: var(--v5-amber);
  border: 0;
  border-radius: 6px;
  font-weight: 800;
}
.badge{border-radius: 6px; padding: 4px 9px; font-size: 0.78rem;}
.listing-card.is-featured{box-shadow: 0 0 0 2px rgba(245, 184, 0, 0.75);}
.listing-card.is-premium{box-shadow: 0 0 0 2px var(--v5-ink);}
.v3-flag.new{background: var(--v5-ink); color: #fff;}
.v3-flag.drop{background: var(--v5-great-bg); color: var(--v5-great-ink);}
.v3-flag{border-radius: 6px;}

.v4-featured-strip{
  background: var(--v5-amber-50);
  border: 1px solid rgba(245, 184, 0, 0.55);
  border-radius: 14px;
  padding: 16px;
}
.v4-featured-strip-head h2{font-size: 1.1rem;}
.v4-featured-strip-head a{color: var(--v5-amber-ink);}

/* 7. Footer ------------------------------------------------------------------ */

.site-footer{
  margin-top: 56px;
  background: #141B22;
  color: #C9D2DA;
  border-top: 0;
}
.site-footer .footer-top{
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2.2fr);
  gap: 40px;
  padding-top: 44px;
  padding-bottom: 28px;
}
.site-footer .brand{color: #fff;}
.site-footer .brand:hover{color: #fff;}
.footer-promise{color: #C9D2DA; max-width: 46ch; margin: 14px 0 16px; font-size: 0.98rem;}
.site-footer .footer-grid{display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;}
.site-footer .footer-title{color: #fff; font-weight: 700; margin-bottom: 8px; font-size: 1rem;}
.site-footer .footer-grid .footer-link{color: #C9D2DA; padding: 4px 0; font-size: 0.96rem;}
.site-footer .footer-grid .footer-link:hover{color: #fff; text-decoration: underline;}
.site-footer .footer-bottom{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
  padding-bottom: 26px;
  color: #9AA6B2;
  font-size: 0.88rem;
}
.site-footer :focus-visible{outline-color: #7FD6B0;}
@media (max-width: 960px){
  .site-footer .footer-top{grid-template-columns: 1fr; gap: 28px;}
  .site-footer .footer-grid{grid-template-columns: repeat(2, minmax(0, 1fr));}
}

/* 8. Home -------------------------------------------------------------------- */

.v3-section{margin-top: 48px;}
.v3-section-head{margin-bottom: 14px;}
.v3-more{color: var(--v5-green-700); font-weight: 700;}
@media (max-width: 640px){
  .v3-section-head, .v4-featured-strip-head{flex-direction: column; align-items: flex-start; gap: 4px;}
}

.v5-status{
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 14px;
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--v5-green-700);
}
.v5-status-dot{width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: 0 0 auto; margin-top: 0.5em;}

/* Seller-first band (cold start) */
.v4-seller-first.v5-seller-band{
  background: var(--v5-green);
  color: #fff;
  border-radius: 16px;
  padding: 34px 36px;
  gap: 32px;
  box-shadow: none;
  margin: 10px 0 20px;
}
.v5-seller-band .v5-status{color: #CDEBDD;}
.v5-seller-band h2{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.55rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 12px;
  max-width: 20ch;
}
.v5-seller-band p, .v5-seller-copy{color: rgba(255, 255, 255, 0.9); max-width: 58ch;}
.v5-seller-band .v4-sf-offer{
  display: inline-block;
  background: var(--v5-amber);
  color: var(--v5-ink) !important;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600;
}
.v5-seller-band .v4-sf-actions{margin-top: 18px;}
.btn.primary.v5-on-dark{background: #fff; color: var(--v5-green-700); border-color: #fff;}
.btn.primary.v5-on-dark:hover{background: var(--bg); border-color: var(--bg); color: var(--v5-green-700);}
.v4-sf-actions .btn.ghost.v5-ghost-on-dark{color: #fff; border: 1px solid rgba(255, 255, 255, 0.6); background: transparent;}
.v4-sf-actions .btn.ghost.v5-ghost-on-dark:hover{background: rgba(255, 255, 255, 0.1);}
.v5-seller-band .v4-sf-steps li{background: rgba(0, 0, 0, 0.16); border-radius: 12px; padding: 14px;}
.v5-seller-band .v4-sf-steps li::before{background: #fff; color: var(--v5-green-700);}
.v5-seller-band .v4-sf-steps span{color: rgba(255, 255, 255, 0.82);}
@media (max-width: 800px){ .v4-seller-first.v5-seller-band{padding: 24px 20px;} }

/* Buyer hero */
.v3-hero.v5-hero{grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: 28px; margin: 10px 0 8px;}
.v5-hero .v3-hero-main{
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: none;
  padding: 38px 38px 30px;
}
.v5-hero h1{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.15rem, 1.35rem + 2.7vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 14ch;
  margin: 0 0 16px;
}
.v5-hero .v3-lead{color: var(--v5-ink-2); font-size: 1.15rem; max-width: 52ch; margin-bottom: 22px;}
.v5-hero .v3-quicksearch{background: var(--bg); border: 1px solid var(--border); border-radius: 12px; box-shadow: none; padding: 12px;}
.v5-hero .v3-qs-field label{font-size: 0.86rem; font-weight: 650; color: var(--v5-ink-2); text-transform: none; letter-spacing: 0;}
.v5-hero .v3-qs-field input, .v5-hero .v3-qs-field select{min-height: 46px; background-color: var(--surface);}
.v5-hero .v3-qs-submit{min-height: 46px;}
.v5-hero .v3-chip-scroller .chip{background: var(--surface);}
.v3-count{background: var(--surface2);}
@media (max-width: 960px){ .v3-hero.v5-hero{grid-template-columns: 1fr;} }
@media (max-width: 600px){
  .v5-hero .v3-hero-main{padding: 24px 18px 20px;}
  .v3-hint{display: none;}
}
.v5-hero-side{display: flex; flex-direction: column; justify-content: center; gap: 12px;}
.v5-pc-more{font-weight: 700; align-self: flex-start; padding-left: 4px;}

/* Promises: four plain commitments, ruled like lane markings rather than boxed in cards */
.v5-promise-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.v5-promise-list li{border-top: 3px solid var(--v5-green); padding-top: 16px;}
.v5-promise-list svg{color: var(--v5-green); display: block; margin-bottom: 10px;}
.v5-promise-list h3{margin: 0 0 6px; font-size: 1.12rem;}
.v5-promise-list p{margin: 0; color: var(--muted);}
@media (max-width: 960px){ .v5-promise-list{grid-template-columns: repeat(2, minmax(0, 1fr));} }
@media (max-width: 560px){ .v5-promise-list{grid-template-columns: 1fr; gap: 20px;} }

/* Tiles, budget, pulse, explore */
.v3-body-tile{border-radius: 12px; transition: border-color .15s ease;}
.v3-body-tile:hover{transform: none; box-shadow: none; border-color: var(--v5-green);}
.v3-body-name{font-weight: 700;}

.v5-budget-layout{display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); gap: 28px; align-items: start;}
.v5-budget-intro h2{margin: 0 0 4px;}
.v5-budget-intro > p{margin: 0 0 16px;}
.v5-budget-layout .v3-budget-chips{grid-template-columns: repeat(3, minmax(0, 1fr));}
.v3-budget-chip{border-radius: 12px; padding: 14px 16px;}
.v3-budget-chip:hover{border-color: var(--v5-green);}
.v3-budget-chip strong{font-size: 1.4rem; line-height: 1.15;}
.v3-budget-chip.v5-chip-deal{border-color: rgba(11, 107, 77, 0.35); background: var(--v5-green-50);}
.v3-budget-chip.v5-chip-deal strong{color: var(--v5-green-700);}
.v3-budget{border-radius: 14px; box-shadow: none; padding: 22px;}
.v3-budget h3{font-size: 1.2rem; margin: 0 0 4px;}
.v3-budget-out{background: var(--v5-green-50); border-radius: 12px;}
.v3-budget-price{font-size: 2.1rem;}
@media (max-width: 900px){
  .v5-budget-layout{grid-template-columns: 1fr;}
  .v5-budget-layout .v3-budget-chips{grid-template-columns: repeat(2, minmax(0, 1fr));}
}

.v3-pulse{margin-top: 18px;}
.v3-pulse-item{border-radius: 12px;}
.v3-pulse-item:hover{transform: none; border-color: var(--v5-green);}

.v3-explore-links a{border-radius: 12px;}
.v3-explore-links a:hover{border-color: var(--v5-green);}

.v3-empty{border-radius: 14px;}

.v3-sell-band{background: var(--v5-green); border-radius: 16px;}
.v3-sell-band h2{font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em;}
.v3-sell-band .btn.primary{background: #fff; color: var(--v5-green-700); border-color: #fff;}
.v3-sell-band .btn.ghost{color: #fff; border: 1px solid rgba(255, 255, 255, 0.6);}

/* How we make money: the same label language as the price check, because it is the same promise */
.v5-money{
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 32px;
  align-items: center;
  padding: 26px 30px;
  border: 2px solid var(--v5-label);
  border-radius: 14px;
  background: var(--surface);
}
.v5-money h2{font-family: var(--font-display); font-weight: 400; font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.8rem); margin: 0 0 8px;}
.v5-money p{margin: 0; color: var(--v5-ink-2); max-width: 72ch;}
.v5-money-actions{display: flex; gap: 10px; flex-wrap: wrap;}
@media (max-width: 860px){ .v5-money{grid-template-columns: 1fr; padding: 22px 20px;} }

/* 9. Price check label + deal meter -------------------------------------- */

.v5-pc{
  background: var(--surface);
  border: 2px solid var(--v5-label);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
}
.v5-pc-example{box-shadow: 0 22px 44px -26px rgba(23, 32, 43, 0.55);}
.v5-pc-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  background: var(--v5-label);
  color: var(--v5-label-head-text);
}
.v5-pc-title{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.005em;
  color: var(--v5-label-head-text);
  margin: 0;
}
.v5-pc-tag{
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--v5-label-head-text);
}
.v5-pc-body{padding: 16px 18px 18px;}
.v5-pc-car{margin: 0 0 12px; font-weight: 650; color: var(--v5-ink-2);}
.v5-pc-figures{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border-strong);
}
.v5-pc-k{font-size: 0.84rem; font-weight: 650; color: var(--muted);}
.v5-pc-price{font-size: 2rem; line-height: 1.1;}
.v5-pc-range{font-weight: 750; font-size: 1.08rem; line-height: 1.3; margin-top: 6px; font-variant-numeric: tabular-nums;}

.v5-scale{
  list-style: none;
  margin: 16px 0 6px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}
.v5-scale li{
  position: relative;
  padding-top: 20px;
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--muted);
  text-align: center;
}
.v5-scale li::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--tone, var(--v5-fair));
  opacity: 0.28;
}
.v5-scale li.is-on{color: var(--text); font-weight: 800;}
.v5-scale li.is-on::before{opacity: 1; top: 6px; height: 12px;}
.v5-scale li.is-on::after{
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--v5-ink);
}
.v5-scale-great{--tone: var(--v5-great);}
.v5-scale-good{--tone: var(--v5-good);}
.v5-scale-fair{--tone: var(--v5-fair);}
.v5-scale-high{--tone: var(--v5-high);}

.v5-pc-delta{margin: 10px 0 0; font-size: 0.98rem;}
.v5-pc-note{margin: 12px 0 0; font-size: 0.88rem; color: var(--muted);}
.v5-pc-note a{font-weight: 700;}
.v5-band-legend{display: flex; justify-content: space-between; margin-top: 6px;}
.v5-pc .price-band{margin-top: 14px;}

/* Deal pill with a 4-bar meter: more bars, better deal. Works on .chip (cards) and .v4-badge (listing page). */
.v5-deal{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 7px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.3;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
}
a.v5-deal:hover{text-decoration: underline;}
.v5-deal-meter{display: inline-flex; align-items: flex-end; gap: 2px; height: 11px;}
.v5-deal-meter i{display: block; width: 3px; border-radius: 1px; background: currentColor; opacity: 0.25;}
.v5-deal-meter i:nth-child(1){height: 5px;}
.v5-deal-meter i:nth-child(2){height: 7px;}
.v5-deal-meter i:nth-child(3){height: 9px;}
.v5-deal-meter i:nth-child(4){height: 11px;}
.v5-deal-great .v5-deal-meter i{opacity: 1;}
.v5-deal-good .v5-deal-meter i:nth-child(-n+3){opacity: 1;}
.v5-deal-fair .v5-deal-meter i:nth-child(-n+2){opacity: 1;}
.v5-deal-high .v5-deal-meter i:nth-child(1){opacity: 1;}
.chip.v5-deal-great, .v4-badge.v5-deal-great, .v5-rate-def.v5-deal-great dt{background: var(--v5-great-bg); color: var(--v5-great-ink); border-color: rgba(11, 107, 77, 0.25);}
.chip.v5-deal-good, .v4-badge.v5-deal-good, .v5-rate-def.v5-deal-good dt{background: var(--v5-good-bg); color: var(--v5-good-ink); border-color: rgba(94, 158, 75, 0.3);}
.chip.v5-deal-fair, .v4-badge.v5-deal-fair, .v5-rate-def.v5-deal-fair dt{background: var(--v5-fair-bg); color: var(--v5-fair-ink); border-color: rgba(62, 76, 90, 0.2);}
.chip.v5-deal-high, .v4-badge.v5-deal-high, .v5-rate-def.v5-deal-high dt{background: var(--v5-high-bg); color: var(--v5-high-ink); border-color: rgba(196, 82, 31, 0.3);}

/* 10. Listing page ------------------------------------------------------------ */

.v4-vdp-title h1{font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.35rem); line-height: 1.1; letter-spacing: -0.02em;}
.v4-price{font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem);}
.v4-monthly{color: var(--v5-ink-2);}
.v4-monthly:hover{color: var(--v5-green-700);}
.v4-badge{border-radius: 6px; font-size: 0.8rem; padding: 3px 9px;}
.v4-badge-info{background: var(--v5-green-50); border-color: rgba(11, 107, 77, 0.25); color: var(--v5-green-700);}
.v4-badge-success{background: var(--v5-great-bg); border-color: rgba(11, 107, 77, 0.25); color: var(--v5-great-ink);}
.v4-keyfact{border-radius: 10px; box-shadow: none;}
.v4-keyfact-label{font-size: 0.82rem; font-weight: 650;}
.v4-keyfact-value{font-weight: 750;}
.panel{border-radius: 14px; box-shadow: none; padding: 18px;}
.panel h2{font-size: 1.2rem;}
.panel.v5-pc{padding: 0;}
.listing-sidebar .panel.v5-pc{margin-bottom: 14px;}
.next-steps .price{font-size: 1.7rem;}
.trust-meter-fill{background: var(--v5-green);}
.trust-meter.warn .trust-meter-fill{background: #B7791F;}
.trust-meter.danger .trust-meter-fill{background: var(--v5-red);}
.price-band{height: 12px; border-radius: 6px;}
.price-band-range{background: rgba(11, 107, 77, 0.18);}
.price-band-median{background: var(--v5-ink);}
.price-band-listing{background: var(--v5-green); width: 4px;}
.price-band-listing.warn{background: #B7791F;}
.price-band-listing.danger{background: var(--v5-red);}
.v4-owner-promo{border-color: rgba(245, 184, 0, 0.65); background: var(--v5-amber-50); border-radius: 12px;}
.v3-mobile-cta{border-top: 1px solid var(--border);}

.v5-checklist{list-style: none; margin: 0 0 10px; padding: 0;}
.v5-checklist li{position: relative; padding-left: 26px; margin: 8px 0; color: var(--v5-ink-2);}
.v5-checklist li::before{
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--v5-green);
  border-bottom: 2.5px solid var(--v5-green);
  transform: rotate(-45deg);
}

/* 11. Pricing ----------------------------------------------------------------- */

.v5-page-hero{padding: 22px 0 6px;}
.v5-page-hero h1{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 1.35rem + 2.3vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 22ch;
  margin: 0 0 14px;
}
.v5-lead{font-size: 1.15rem; color: var(--v5-ink-2); max-width: 64ch; margin: 0;}
.v5-pricing section{margin-top: 40px;}
.v5-pricing section > h2{margin-bottom: 6px;}

.v5-fair{border: 2px solid var(--v5-label); border-radius: 14px; overflow: hidden; background: var(--surface);}
.v5-pricing section.v5-fair{margin-top: 28px;}
.v5-fair > h2{
  margin: 0;
  padding: 12px 18px;
  background: var(--v5-label);
  color: var(--v5-label-head-text);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.005em;
}
.v5-fair-grid{display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));}
.v5-fair-col{padding: 18px 22px 20px;}
.v5-fair-col + .v5-fair-col{border-left: 1px solid var(--border);}
.v5-fair-col h3{display: flex; align-items: center; gap: 8px; margin: 0 0 10px;}
.v5-fair-col h3::before{content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--dot);}
.v5-fair-free{--dot: var(--v5-green);}
.v5-fair-paid{--dot: var(--v5-amber);}
.v5-fair-never{--dot: var(--v5-red);}
.v5-fair-col ul{list-style: none; margin: 0; padding: 0;}
.v5-fair-col li{position: relative; padding-left: 20px; margin: 7px 0; color: var(--v5-ink-2);}
.v5-fair-col li::before{position: absolute; left: 0; top: 0; font-weight: 800;}
.v5-fair-free li::before{content: "\2713"; color: var(--v5-green);}
.v5-fair-paid li::before{content: "+"; color: var(--v5-amber-ink);}
.v5-fair-never li::before{content: "\2715"; color: var(--v5-red);}
@media (max-width: 860px){
  .v5-fair-grid{grid-template-columns: 1fr;}
  .v5-fair-col + .v5-fair-col{border-left: 0; border-top: 1px solid var(--border);}
}

.v4-plans{gap: 16px;}
.v4-plan{border-radius: 14px; box-shadow: none; padding: 22px;}
.v4-plan.is-highlight{border: 2px solid var(--v5-green); box-shadow: none;}
.v4-plan-tag{background: var(--v5-green); border-radius: 6px;}
.v4-plan h3{font-size: 1.2rem;}
.v4-plan-price{font-size: 2.2rem; line-height: 1.1;}
.v4-plan-price small{font-family: var(--font); font-weight: 600; letter-spacing: 0;}
.v4-plan ul{color: var(--v5-ink-2);}
.v4-plan.v5-plan-paid{border-top: 4px solid var(--v5-amber);}
.v5-fineprint{font-size: 0.94rem; color: var(--muted); max-width: 78ch; margin: 12px 0 0;}
.v4-faq details{padding: 12px 0;}
.v4-faq summary{font-weight: 700;}
.v4-faq details p{margin: 8px 0 0;}

/* 12. Trust center and content pages ---------------------------------------- */

.v5-jump{display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px;}
.v5-jump a{
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--v5-ink);
  font-weight: 650;
  font-size: 0.94rem;
}
.v5-jump a:hover{border-color: var(--v5-green); color: var(--v5-green-700); text-decoration: none;}

.v5-trust-section{margin-top: 44px; scroll-margin-top: 96px;}
.v5-trust-section > h2{margin-bottom: 14px;}
.v5-trust-section > p{max-width: 72ch; color: var(--v5-ink-2);}

.v5-steps{
  list-style: none;
  counter-reset: v5step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
}
.v5-steps li{counter-increment: v5step; border-top: 3px solid var(--v5-green); padding-top: 14px;}
.v5-steps li::before{
  content: counter(v5step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--v5-green);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.v5-steps h3{margin: 0 0 4px;}
.v5-steps p{margin: 0; color: var(--muted);}

.v5-rate-layout{display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 32px; align-items: start;}
.v5-rate-layout p{color: var(--v5-ink-2); max-width: 68ch;}
.v5-rate-defs{display: grid; gap: 8px; margin: 16px 0;}
.v5-rate-def{display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: center;}
.v5-rate-def dt{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 750;
  font-size: 0.92rem;
}
.v5-rate-def dd{margin: 0; color: var(--v5-ink-2);}
.v5-rate-aside{border: 2px solid var(--v5-label); border-radius: 14px; padding: 18px 20px; background: var(--surface);}
.v5-rate-aside h3{margin-top: 0;}
@media (max-width: 900px){
  .v5-rate-layout{grid-template-columns: 1fr;}
  .v5-rate-def{grid-template-columns: 1fr; gap: 4px;}
  .v5-rate-def dt{justify-self: start;}
}

.v5-money-list{list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;}
.v5-money-list li{border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; background: var(--surface);}
.v5-money-list h3{margin: 0 0 6px; font-size: 1.08rem;}
.v5-money-list p{margin: 0; color: var(--v5-ink-2);}
@media (max-width: 760px){ .v5-money-list{grid-template-columns: 1fr;} }

.v5-never{margin-top: 16px; border: 2px solid var(--v5-label); border-radius: 14px; overflow: hidden; background: var(--surface);}
.v5-never h3{margin: 0; padding: 11px 18px; background: var(--v5-label); color: var(--v5-label-head-text); font-family: var(--font-display); font-weight: 400; font-size: 1rem;}
.v5-never ul{list-style: none; margin: 0; padding: 12px 18px 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px;}
.v5-never li{position: relative; padding-left: 22px; margin: 5px 0; color: var(--v5-ink-2);}
.v5-never li::before{content: "\2715"; position: absolute; left: 0; top: 0; color: var(--v5-red); font-weight: 800;}
@media (max-width: 760px){ .v5-never ul{grid-template-columns: 1fr;} }

.v5-trust .card{border-radius: 14px;}
.v5-trust .card:hover{box-shadow: none; border-color: var(--border);}
.v5-trust .cta-row{display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px;}

/* 13. Search, sell and misc fixes -------------------------------------------- */

/* Sell form: the "miles" select took the whole row and squeezed the mileage box to ~20px. */
.qs-step .qs-inline input{flex: 1 1 auto; width: auto; min-width: 0;}
.qs-step .qs-inline select.qs-unit{flex: 0 0 auto; width: 88px; min-width: 0; padding-left: 10px; padding-right: 22px;}
.qs-step .qs-inline input{min-width: 72px;}
@media (min-width: 900px){ .qs-grid > .field:has(> .qs-inline){grid-column: span 2;} }
.eyebrow{text-transform: none; letter-spacing: 0; color: var(--v5-green-700);}
.qs-hero h1{font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em;}
.qs-step{border-radius: 14px;}
.qs-num{background: var(--v5-green);}
.qs-promises li{background: var(--surface);}
.qs-promises li::before{color: var(--v5-green);}
.qs-offer{background: var(--v5-amber-50); border-color: rgba(245, 184, 0, 0.6);}

.v4-fpro-label, .v4-fpro-more > summary{font-size: 0.86rem; font-weight: 700; color: var(--v5-ink-2);}
.v4-fpro-count{background: var(--v5-green);}
.v4-fpro-reset{color: var(--v5-green-700);}
.v4-fpro input:not([type=checkbox]):focus, .v4-fpro select:focus{border-color: var(--v5-green); box-shadow: var(--ring);}

.compare-tray{border-radius: 14px;}
.toast{border-radius: 12px;}
.gcs-modal-dialog{border-radius: 14px;}

/* 14. Dark theme, motion, print ---------------------------------------------- */

html[data-theme="dark"]{
  --bg: #11161C;
  --surface: #171E26;
  --surface2: #1E2731;
  --surface3: #263140;
  --text: #E9EEF1;
  --muted: #A8B3BD;
  --muted2: #8C98A4;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --accent: #19805B;
  --brand: #5FD0A3;
  --link: #5FD0A3;
  --success: #5FD0A3;
  --danger: #F08A65;
  --ring: 0 0 0 4px rgba(95, 208, 163, 0.25);

  --v5-green: #19805B;
  --v5-green-600: #1B8F66;
  --v5-green-700: #7FD6B0;
  --v5-green-50: rgba(95, 208, 163, 0.12);
  --v5-green-100: rgba(95, 208, 163, 0.22);
  --v5-ink: #E9EEF1;
  --v5-ink-2: #C3CDD5;
  --v5-amber-50: rgba(245, 184, 0, 0.14);
  --v5-amber-ink: #F7CD4A;
  --v5-red-50: rgba(240, 138, 101, 0.14);
  --v5-caution-bg: rgba(251, 146, 60, 0.14);
  --v5-caution-border: rgba(251, 146, 60, 0.35);
  --v5-caution-ink: #FDBA74;
  --v5-label: #C3CDD5;
  --v5-label-head-text: #11161C;

  --v5-great: #4CC08F;  --v5-great-bg: rgba(76, 192, 143, 0.16);  --v5-great-ink: #7FD6B0;
  --v5-good:  #9CCB6B;  --v5-good-bg:  rgba(156, 203, 107, 0.16); --v5-good-ink:  #B8DB92;
  --v5-fair:  #8C98A4;  --v5-fair-bg:  rgba(140, 152, 164, 0.18); --v5-fair-ink:  #C3CDD5;
  --v5-high:  #F08A65;  --v5-high-bg:  rgba(240, 138, 101, 0.16); --v5-high-ink:  #F5A88B;

  --v3-accent-soft: rgba(95, 208, 163, 0.12);
  --v3-good: #5FD0A3;
}
html[data-theme="dark"] .site-header{background: rgba(17, 22, 28, 0.9);}
html[data-theme="dark"] .brand, html[data-theme="dark"] .brand:hover{color: #E9EEF1;}
html[data-theme="dark"] a:hover{color: #9BE3C3;}
html[data-theme="dark"] .btn.primary{color: #fff;}
html[data-theme="dark"] .v4-badge-featured, html[data-theme="dark"] .badge.sponsored{color: #11161C;}
html[data-theme="dark"] .v4-badge-premium{background: #E9EEF1; color: #7A5200;}
html[data-theme="dark"] .v3-flag.new{background: #E9EEF1; color: #11161C;}
html[data-theme="dark"] .v5-seller-band .v4-sf-offer, html[data-theme="dark"] .v5-seller-band .v4-sf-offer strong{color: #11161C !important;}
html[data-theme="dark"] .btn.primary.v5-on-dark{background: #fff; color: #084C37; border-color: #fff;}
html[data-theme="dark"] .v3-sell-band .btn.primary{color: #084C37;}
html[data-theme="dark"] .v5-scale li.is-on::after{border-top-color: #E9EEF1;}
html[data-theme="dark"] .v5-pc-tag{border-color: rgba(17, 22, 28, 0.45);}
html[data-theme="dark"] .site-footer{background: #0B0F13;}
html[data-theme="dark"] .listing-card.is-premium{box-shadow: 0 0 0 2px #E9EEF1;}
html[data-theme="dark"] ::selection{background: rgba(95, 208, 163, 0.3); color: #fff;}

@media (prefers-reduced-motion: reduce){
  .btn, .v3-body-tile{transition: none;}
}

@media print{
  .site-footer, .trust-bar, .v5-hero-side, .v5-money{display: none !important;}
  .v5-pc{border-color: #000;}
  .v5-pc-head{background: #000 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact;}
}
