:root {
  --ink: #f2f3f5;
  --muted: #9aa0a8;
  --brand: #e10600;
  --brand-dark: #a80400;
  --chrome: #c8ccd2;
  --bg: #0a0b0d;
  --card: #14161a;
  --line: #26292f;
  --ok: #22c55e;
  --warn: #f59e0b;
  --err: #ef4444;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
.wrap { max-width: 1024px; margin: 0 auto; padding: 0 20px; }
a { color: #ff5a4d; }
.muted { color: var(--muted); }
.small { font-size: 0.85em; }
.pre { white-space: pre-wrap; }

/* header */
.site-header { background: #000; color: #fff; padding: 10px 0; border-bottom: 2px solid var(--brand); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand img { height: 44px; width: auto; display: block; }
.site-header nav a { color: var(--chrome); text-decoration: none; margin-left: 18px; font-size: 0.95rem; }
.site-header nav a:hover { color: #fff; }

main.wrap { padding-top: 28px; padding-bottom: 48px; }
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; background: #000; }
.site-footer strong span { color: var(--brand); }

/* hero */
.hero { text-align: center; padding: 48px 0 32px; }
.hero h1 { font-size: 2.6rem; margin: 0 0 12px; }
.hero h1 .red { color: var(--brand); }
.lede { font-size: 1.2rem; color: var(--chrome); max-width: 640px; margin: 0 auto 24px; }
.cta-row { display: flex; gap: 12px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }

/* buttons */
.btn { display: inline-block; background: var(--brand); color: #fff; border: 1px solid var(--brand); padding: 10px 20px; border-radius: 8px; text-decoration: none; cursor: pointer; font-size: 1rem; font-weight: 700; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 1.1rem; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }
.btn-xs { padding: 4px 10px; font-size: 0.8rem; }
.btn-ghost { background: transparent; color: #ff5a4d; border-color: var(--line); }
.btn-ghost:hover { background: #1c1e22; color: #ff7a6e; }
.site-header .btn-sm { margin-left: 18px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 32px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.card h3 { margin-top: 0; }
.how { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px 28px; margin-bottom: 32px; }
.how ol { margin: 0; padding-left: 20px; }
.how li { margin: 8px 0; }

/* forms */
.form { max-width: 560px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.form label { display: block; margin-bottom: 14px; font-weight: 600; }
.form input, .form textarea, .form select { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; font-weight: 400; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.form label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.form label.check input { width: auto; margin-top: 4px; }

/* panels & tables */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin: 20px 0; }
.panel h2 { margin-top: 0; display: flex; align-items: center; gap: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; }

.alert { padding: 12px 16px; border-radius: 8px; margin: 16px 0; }
.alert.ok { background: #052e16; color: #86efac; border: 1px solid #14532d; }
.alert.warn { background: #451a03; color: #fcd34d; border: 1px solid #78350f; }
.alert.error { background: #450a0a; color: #fca5a5; border: 1px solid #7f1d1d; }

.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: #26292f; color: var(--chrome); }
.pill-approved, .pill-active { background: #052e16; color: #86efac; }
.pill-pending, .pill-past_due, .pill-suspended { background: #451a03; color: #fcd34d; }
.pill-rejected, .pill-inactive, .pill-none { background: #450a0a; color: #fca5a5; }

/* verified badge */
.verified-badge { display: inline-block; background: var(--brand); color: #fff; font-weight: 800; font-size: 0.85rem; padding: 3px 12px; border-radius: 999px; letter-spacing: 0.5px; }
.verified-badge.sm { font-size: 0.7rem; padding: 1px 8px; vertical-align: middle; }

/* listings */
.board-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.board-head h1 { margin: 0; }
.partner-card { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 12px; padding: 16px 18px; max-width: 340px; flex: 1 1 260px; }
.partner-label { margin: 0 0 6px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.partner-headline { margin: 0 0 6px; font-size: 1.15rem; }
.partner-copy { margin: 0 0 12px; font-size: 0.9rem; color: var(--chrome); }
@media (max-width: 640px) { .partner-card { max-width: none; flex-basis: 100%; } }
.filters { display: flex; gap: 10px; margin: 16px 0 24px; flex-wrap: wrap; }
.filters input { padding: 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.listing-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; overflow: hidden; }
.listing-card:hover { border-color: var(--brand); }
.listing-card-body { padding: 16px; }
.listing-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.price { font-weight: 800; font-size: 1.25rem; color: #ff5a4d; margin: 4px 0; }
.price-lg { font-weight: 800; font-size: 2rem; color: #ff5a4d; margin: 4px 0 20px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 16px 0 24px; }
.photo-grid img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.specs { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; max-width: 560px; }
.specs dt { color: var(--muted); font-weight: 600; }
/* install banner */
.install-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: flex; align-items: center; gap: 10px; background: #14161a; border: 1px solid var(--brand); border-radius: 12px; padding: 12px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.5); font-size: 0.9rem; }
.install-banner[hidden] { display: none; }
.install-banner span { flex: 1; }
.install-dismiss { background: none; border: none; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 4px 8px; }

/* mobile */
@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .header-inner { flex-wrap: wrap; gap: 8px; }
  .brand img { height: 34px; }
  .site-header nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .site-header nav a { margin-left: 0; font-size: 0.9rem; padding: 6px 0; }
  .site-header .btn-sm { margin-left: 0; }
  .hero { padding: 32px 0 24px; }
  .hero h1 { font-size: 1.9rem; }
  .lede { font-size: 1.05rem; }
  main.wrap { padding-top: 20px; }
  .form { padding: 18px 14px; }
  .form input, .form textarea, .form select { font-size: 16px; padding: 12px; } /* 16px stops iOS zoom */
  .form input[type="file"] { padding: 12px; min-height: 52px; }
  .btn { padding: 12px 22px; }
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .price-lg { font-size: 1.6rem; }
  .specs { grid-template-columns: 110px 1fr; }
}

/* Show/hide password toggle */
.pw-wrap { position: relative; display: block; }
.pw-wrap input[type="password"], .pw-wrap input[type="text"] { padding-right: 44px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; font-size: 1.15rem; line-height: 1;
  padding: 8px; cursor: pointer; opacity: 0.75;
}
.pw-toggle:hover { opacity: 1; }
.temp-password {
  font-size: 1.6rem; font-weight: 700; letter-spacing: 0.08em;
  background: #141619; border: 1px dashed var(--line); border-radius: 8px;
  padding: 14px 18px; display: inline-block; margin: 12px 0; user-select: all;
}

/* VIN decode */
.vin-wrap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vin-wrap input { flex: 1; min-width: 180px; }
.vin-wrap .btn { flex-shrink: 0; }

/* VIN camera scanner */
.vin-scan-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.85); display: flex; align-items: flex-start; justify-content: center; padding: 16px 12px; overflow-y: auto; }
.vin-scan-overlay[hidden] { display: none; }
.vin-scan-panel { background: var(--card); border: 1px solid var(--brand); border-radius: 12px; padding: 16px; width: 100%; max-width: 520px; margin: auto 0; }
.vin-scan-head { display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; margin-bottom: 10px; }
.vin-scan-close { background: none; border: none; color: var(--chrome); font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 2px 8px; }
.vin-scan-video { width: 100%; max-height: 46vh; object-fit: cover; background: #000; border: 1px solid var(--line); border-radius: 8px; display: block; }
.vin-scan-status { color: var(--muted); font-size: 0.9rem; margin: 10px 0; }
.vin-scan-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.vin-scan-actions label.btn { margin: 0; font-weight: 700; }
.vin-scan-note { color: var(--warn); font-size: 0.9rem; margin: 8px 0 4px; }
.vin-scan-found { font-size: 1.25rem; font-weight: 800; letter-spacing: 0.06em; word-break: break-all; background: var(--bg); border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; margin: 4px 0 10px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

/* Driver's-license scan check (signup) */
.form fieldset.dl-verify { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px 4px; margin: 0 0 14px; }
.form fieldset.dl-verify legend { font-weight: 700; padding: 0 6px; }
.form fieldset.dl-verify p { margin: 6px 0 10px; }

/* Admin DL verification block (pending approvals) */
.dl-check { font-size: 0.85rem; line-height: 1.45; min-width: 200px; }
.dl-check .dl-expired { color: #fff; background: var(--brand); font-weight: 800; padding: 1px 6px; border-radius: 4px; letter-spacing: 0.04em; }
.dl-check .dl-ok { color: var(--ok); font-weight: 700; }
.dl-check .dl-bad { color: var(--warn); font-weight: 700; }

/* Live auctions */
.live-badge {
  display: inline-block; background: #e10600; color: #fff; font-size: 0.68rem;
  font-weight: 700; letter-spacing: 0.08em; padding: 2px 7px; border-radius: 4px;
  vertical-align: middle; animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.live-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: #e10600; vertical-align: middle; animation: live-pulse 1.6s ease-in-out infinite;
}
.auction-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 720px) { .auction-grid { grid-template-columns: 1fr; } }
.countdown { font-size: 1.05rem; font-weight: 700; }
.high-bid { font-size: 2rem; font-weight: 800; margin: 6px 0 2px; }
.bid-list { list-style: none; padding: 0; margin: 0; }
.bid-list li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.bid-list li:last-child { border-bottom: 0; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.ok-text { color: #2ecc71; }
.filters select, .filters input { margin-right: 6px; }

/* ============ Landing page (scroll-story) ============ */
.landing section[id] { scroll-margin-top: 84px; }
.landing-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* sticky landing nav */
.landing-nav { position: sticky; top: 0; z-index: 60; background: rgba(0,0,0,.92); backdrop-filter: blur(8px); border-bottom: 2px solid var(--brand); }
.landing-nav-inner { max-width: 1200px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.landing-brand img { height: 44px; width: auto; display: block; }
.landing-links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; }
.landing-links a { color: var(--chrome); text-decoration: none; font-size: 0.95rem; }
.landing-links a:hover { color: #fff; }
.landing-links a.landing-apply { color: #fff; margin-left: 4px; }
.landing-links a.landing-apply:hover { color: #fff; }

/* chrome headline */
.landing-headline {
  font-size: clamp(2.4rem, 7.5vw, 5.2rem); line-height: 1.02; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.01em; margin: 0 0 18px; color: #fff;
  filter: drop-shadow(0 3px 14px rgba(0,0,0,.65));
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .landing-headline {
    background: linear-gradient(180deg, #ffffff 0%, #dfe3e8 32%, #868c95 52%, #f4f6f8 72%, #a7adb6 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
  }
}
.landing-headline-md { font-size: clamp(2rem, 5.5vw, 3.6rem); }
.landing-sub { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: #e8eaed; max-width: 640px; margin: 0 auto 26px; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.landing-h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 22px; text-transform: uppercase; letter-spacing: 0.02em; }

/* section 1 — hero */
.landing-hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 72px 0 96px;
  background-image: linear-gradient(rgba(0,0,0,.58), rgba(0,0,0,.34) 45%, rgba(0,0,0,.8)), url('/img/hero-night-lot.webp');
  background-size: cover; background-position: center;
}
.landing-cta { margin-bottom: 14px; }
.landing-outline-btn { background: rgba(10,11,13,.55); }
.landing-fineprint { color: var(--chrome); font-size: 0.88rem; max-width: 560px; margin: 0 auto; text-shadow: 0 1px 6px rgba(0,0,0,.9); }
.landing-sample-card {
  position: absolute; right: 28px; bottom: 72px; text-align: left;
  background: rgba(16,18,22,.93); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; min-width: 252px; box-shadow: 0 12px 32px rgba(0,0,0,.55);
}
.landing-sample-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.landing-sample-title { font-weight: 700; font-size: 1.02rem; }
.landing-sample-price { margin: 6px 0 2px; }
.landing-sample-caption { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; }
.landing-scroll-hint {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  color: var(--chrome); text-decoration: none; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.22em; text-align: center;
}
.landing-scroll-hint:hover { color: #fff; }
.landing-scroll-arrow { display: block; font-size: 1.15rem; letter-spacing: 0; animation: landing-bounce 2s ease-in-out infinite; }
@keyframes landing-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* section 2 — split story */
.landing-split { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.landing-split-panel { background-size: cover; background-position: center; min-height: 100vh; }
.landing-split-old { background-image: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.45)), url('/img/hero-auction-bw.webp'); }
.landing-split-new { background-image: linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.4)), url('/img/hero-dealer-dusk.webp'); }
.landing-split-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 24px 20px; pointer-events: none;
}
.landing-split-overlay .landing-split-card {
  pointer-events: auto; text-align: center; max-width: 660px;
  background: rgba(5,6,8,.74); border: 1px solid var(--line); border-radius: 16px;
  padding: 38px 34px; backdrop-filter: blur(4px);
}
.landing-split-card .landing-sub { margin-bottom: 22px; }

/* generic landing sections */
.landing-section { padding: 84px 0; }
.landing-section + .landing-section { border-top: 1px solid var(--line); }

/* section 3 — steps */
.landing-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.landing-steps li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.landing-steps p { margin: 12px 0 0; color: var(--chrome); }
.landing-steps p strong { color: #fff; }
.landing-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--brand); color: #ff5a4d; font-weight: 800; font-size: 1.15rem;
}

/* section 4 — app */
.landing-app-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: center; }
.landing-app-icon { border-radius: 26px; box-shadow: 0 10px 30px rgba(0,0,0,.55); margin-bottom: 18px; display: block; }
.landing-app-copy p { color: var(--chrome); max-width: 520px; }
.landing-install-help { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 8px; padding: 12px 16px; max-width: 520px; }
.landing-install-help p { margin: 6px 0; }
.landing-app-qr { text-align: center; }
.landing-app-qr img { background: #fff; padding: 12px; border-radius: 12px; max-width: 100%; height: auto; }

/* section 5 — pricing cards */
.landing-cards { margin: 0; }

/* reveal on scroll */
.landing .landing-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.landing .landing-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .landing-brand img { height: 34px; }
  .landing-links { gap: 2px 14px; }
  .landing-links a { font-size: 0.9rem; padding: 6px 0; }
  .landing-hero { padding: 56px 0 40px; }
  .landing-sample-card { position: static; margin: 28px auto 0; min-width: 0; width: min(320px, calc(100% - 40px)); }
  .landing-scroll-hint { display: none; }
  .landing-split { grid-template-columns: 1fr; min-height: 0; }
  .landing-split-panel { min-height: 46vh; }
  .landing-section { padding: 56px 0; }
  .landing-app-grid { grid-template-columns: 1fr; }
  .landing-app-qr { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .landing .landing-reveal { opacity: 1; transform: none; transition: none; }
  .landing-scroll-arrow { animation: none; }
}
