/* Home page (SER-594, docs/redesign/boards/Main.html). The page renders with body class "crl",
   so the tokens, motion kit and shared components come from base.css (.wrap, .disp, .eyebrow,
   .btn, .chip, .car, .tile, .state-card, .rank-row, .co-logo, .hbar, .marquee, .faq, .field…).
   Only page layout lives here, every rule under .crl, every value from the tokens. */

.crl .site-main { display: block; }
.crl a:focus-visible, .crl button:focus-visible, .crl summary:focus-visible, .crl input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.crl .eyebrow { margin: 0; }
.crl .chip { min-height: var(--tap); }

/* ---- hero */
.crl .home-hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 780px; background: var(--bg); }
.crl .home-hero .hero-bg { overflow: hidden; }
.crl .home-hero .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center right; display: block; }
.crl .home-hero .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,11,.96) 0%, rgba(10,10,11,.78) 34%, rgba(10,10,11,.1) 70%), linear-gradient(0deg, var(--bg) 0%, rgba(10,10,11,0) 30%); }
.crl .hero-inner { position: relative; z-index: 1; width: 100%; padding-top: 140px; padding-bottom: 72px; }
.crl .hero-inner > .eyebrow { margin-bottom: 20px; }
.crl .hero-title { margin: 0; font-size: var(--fs-hero); max-width: 1100px; }
.crl .hero-lead { margin: 24px 0 0; max-width: 580px; font-size: var(--fs-lead); color: var(--tx-2); }

.crl .hero-search { margin-top: 40px; max-width: 980px; display: flex; flex-wrap: wrap; background: rgba(18,18,20,.92); border: 1px solid var(--line-strong); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.crl .hero-search .field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 180px; min-width: 0; padding: 10px 18px; border-right: 1px solid var(--line); }
.crl .hero-search .field:focus-within { outline: 2px solid var(--accent); outline-offset: -2px; }
.crl .hero-search select { width: 100%; min-height: 32px; padding: 0 22px 0 0; border: 0; border-radius: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ABA69D' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right center; color: var(--tx); font: 600 17px var(--font-body); -webkit-appearance: none; appearance: none; cursor: pointer; text-overflow: ellipsis; }
.crl .hero-search select:focus { outline: none; }
.crl .hero-search select:disabled { opacity: .5; cursor: default; }
.crl .hero-search option, .crl .hero-search optgroup { background: var(--s1); color: var(--tx); }
.crl .search-go { display: flex; flex: 0 0 auto; padding: 8px; }
.crl .search-go .btn { min-width: 160px; }
.crl .hero-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.crl .hero-chips .muted { margin-right: 6px; font-size: var(--fs-small); }

/* ---- search results (filled by the page script) */
.crl .search-results { padding-top: 56px; }
.crl .search-results[hidden] { display: none; }
.crl .results-note { margin: 0; color: var(--mu); }
.crl .results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.crl .results-count { margin: 0; font-size: var(--fs-h3); }
.crl .photo-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); cursor: pointer; color: var(--mu); }
.crl .photo-toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
.crl .results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.crl .vehicle-card { display: flex; flex-direction: column; background: var(--s1); border: 1px solid var(--line); }
.crl .vehicle-card img { display: none; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.crl .results-grid.show-photos .vehicle-card img { display: block; }
.crl .vehicle-card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px; flex: 1; }
.crl .vehicle-card-body h3 { margin: 0; font-size: 17px; }
.crl .vehicle-card-body .price { font-size: 20px; }
.crl .vehicle-card .details { display: flex; flex-wrap: wrap; gap: 6px; }
.crl .vehicle-card .detail-tag { font-size: 12px; padding: 2px 8px; border: 1px solid var(--line); color: var(--mu); }
.crl .vehicle-card .view-btn { margin-top: auto; align-self: flex-start; min-height: var(--tap); }

/* ---- stats strip */
.crl .stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.crl .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); }
.crl .stat { display: flex; flex-direction: column; padding: 28px 0; }
.crl .stat-n { font-size: 34px; line-height: 1.15; }

/* ---- sections */
.crl .home-sec { padding-top: var(--section); }
.crl .sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.crl .sec-title { margin: 12px 0 0; font-size: var(--fs-h2); }
.crl .sec-title-gap { margin-bottom: 32px; }
.crl .sec-title-sm { font-size: 36px; margin-bottom: 28px; }
.crl .sec-lead { margin: -16px 0 24px; max-width: 720px; }

/* On the lot */
.crl .lot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.crl .lot-card img { height: auto; background: var(--s2); }
.crl .lot-ph { display: none; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--s2); color: var(--tx); font-size: 22px; }
.crl .lot-card.img-failed .lot-ph { display: flex; }
.crl .lot-card:hover .lot-ph .make-mark { color: var(--accent); }
.crl .state-card.img-failed { background: var(--s1); }
.crl .lot-body { display: flex; flex-direction: column; gap: 6px; padding: 20px; flex: 1; }
.crl .lot-title { font-weight: 700; font-size: 18px; }
.crl .lot-co { font-size: var(--fs-small); }
.crl .lot-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-top: auto; padding-top: 10px; }
.crl .lot-price { font-size: 22px; }
.crl .lot-price-none { font-weight: 700; font-size: 17px; }
.crl .lot-unit { font: 500 14px var(--font-body); color: var(--mu); }
.crl .lot-src { font-size: 13px; }

/* Best companies */
.crl .rank-list { display: flex; flex-direction: column; }
.crl .rank-no { font-size: 30px; color: var(--accent); }
.crl .rank-logo { width: 140px; height: 54px; }
.crl .rank-name { display: flex; flex-direction: column; min-width: 0; }
.crl .rank-co { font-weight: 800; font-size: 19px; color: var(--tx); }
.crl .rank-meta { font-size: var(--fs-small); }
.crl .rank-score { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.crl .rank-score .hbar { height: 4px; background: var(--line); }
.crl .rank-go { font-weight: 700; color: var(--tx); white-space: nowrap; }
.crl .rank-row:hover .rank-go { color: var(--accent); }

/* Top states */
.crl .state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.crl .state-card { overflow: hidden; }
.crl .state-card-plain { background: var(--s1); }
.crl .state-name { font-size: 26px; color: var(--tx); }
.crl .state-nums { color: var(--tx-2); font-size: var(--fs-small); }
.crl .state-cities { color: var(--mu); font-size: 13px; }
.crl .state-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.crl .chip-n { margin-left: 8px; color: var(--mu); font-weight: 500; }
.crl .chip-all { border-color: var(--accent); color: var(--accent); }

/* Rent by brand */
.crl .marquee .mq-sep { color: var(--accent); }
.crl .brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 12px; margin-top: 28px; }
.crl .brand-tile { color: var(--tx); }
.crl .brand-mark { display: flex; align-items: center; height: 46px; }
.crl .brand-tile:hover .make-mark { color: var(--accent); }
.crl .brand-name { font-size: 18px; }
.crl .brand-tile-word .brand-name { font-size: 22px; margin-top: auto; }
.crl .brand-all .brand-name { font-size: 20px; }
.crl .brand-all-go { color: var(--accent); font-weight: 700; }

/* News */

/* How it works + FAQ */
.crl .how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 56px; border-top: 1px solid var(--line); padding-top: 56px; }
.crl .how-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.crl .how-no { color: var(--accent); font-size: 18px; }
.crl .how-steps h3 { margin: 6px 0; font-size: 20px; }
.crl .how-steps p, .crl .faq p { margin: 10px 0 0; }
.crl .how-steps p { margin-top: 0; }
.crl .faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: var(--tap); }
.crl .faq summary::-webkit-details-marker { display: none; }
.crl .faq summary::after { content: "+"; flex: 0 0 auto; font-weight: 500; font-size: 22px; color: var(--mu); }
.crl .faq[open] summary::after { content: "\2212"; }

/* About + featured guide */
.crl .about-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; align-items: start; border-top: 1px solid var(--line); padding-top: 56px; }
.crl .about-text p { margin: 0 0 14px; color: var(--tx-2); line-height: 1.7; }
.crl .guide-card { gap: 14px; justify-content: flex-start; }
.crl .guide-card .badge { align-self: flex-start; }
.crl .guide-title { font-weight: 800; font-size: 20px; }
.crl .guide-go { margin-top: auto; font-weight: 700; color: var(--accent); }

/* Owners band */
.crl .owners-band { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 560px; margin-top: 128px; }
.crl .owners-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.crl .owners-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(10,10,11,.92) 10%, rgba(10,10,11,.35) 70%); }
.crl .owners-inner { position: relative; z-index: 2; width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: 72px; }
.crl .owners-copy { max-width: 640px; }
.crl .owners-title { margin: 14px 0 16px; font-size: clamp(32px, 5vw, 64px); }
.crl .owners-lead { margin: 0; color: var(--tx-2); font-size: 18px; }
.crl .owners-cta { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 860px) {
  .crl .home-hero { min-height: 0; }
  .crl .hero-inner { padding-top: 96px; padding-bottom: 48px; }
  .crl .hero-search .field { flex-basis: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .crl .search-go { flex: 1 1 100%; }
  .crl .search-go .btn { width: 100%; }
  .crl .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .crl .rank-row .hide-sm { display: none; }
  .crl .home-hero .hero-bg::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(10,10,11,.86) 45%, rgba(10,10,11,.55) 100%); }
}
@media (max-width: 600px) {
  .crl .hero-inner { padding-top: 64px; }
  .crl .hero-lead { font-size: 17px; }
  .crl .sec-title-sm { font-size: 30px; }
  .crl .stat { padding: 20px 0; }
  .crl .stat-n { font-size: 28px; }
  .crl .marquee-track { font-size: 24px; }
  .crl .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crl .brand-tile, .crl .brand-all { min-height: 120px; padding: 16px; }
  .crl .brand-name, .crl .brand-tile-word .brand-name, .crl .brand-all .brand-name { font-size: 14px; overflow-wrap: anywhere; }
  .crl .how-grid, .crl .about-grid { gap: 40px; padding-top: 40px; }
  .crl .owners-band { min-height: 480px; margin-top: 96px; }
  .crl .owners-inner { padding-bottom: 48px; }
  .crl .rank-row { gap: 12px; }
  .crl .rank-no { font-size: 24px; }
}
