/* Used-car landing page (Control) — Figma 1019:2118. Canvas 1729px, content column 1180px.
   Test B (landing-b.html) reuses this file and adds css/landing-b.css. */

/* ---------- Hero ---------- */
.lp-hero {
  position: relative;
  min-height: 765.85px;           /* 723.35px visible + 42.5px under the rounded white sheet */
  padding-bottom: 42.5px;
  overflow: hidden;
  background: linear-gradient(130deg, #061230 11%, var(--navy) 72%);
  color: #fff;
}
.lp-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.lp-hero__photo {
  position: absolute;
  left: calc(50% - 626.02px);
  top: -290.7px;
  width: 2065.5px;
  height: 1162.8px;
  max-width: none;
  object-fit: cover;
}
/* Navy panel with the diagonal edge (rotated rectangle 1019:2129, -20.64deg) */
.lp-hero__panel {
  position: absolute;
  inset: 0;
  background: linear-gradient(119deg, #061230 11%, var(--navy) 72%);
  background-size: 1190px 100%;
  background-repeat: no-repeat;
  background-color: var(--navy);
  clip-path: polygon(0 0, calc(50% - 73.52px) 0, calc(50% + 230.78px) 808.35px, 0 808.35px);
}

.lp-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20.4px;
  padding-top: 56.95px;
}
.lp-header__logo img { width: 194.65px; height: 32.3px; object-fit: cover; }
.lp-contact {
  display: flex;
  align-items: center;
  height: 52.7px;
  padding: 0 16.15px 0 17.85px;
  border-radius: 6.21px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 2.46px 12.41px rgba(0, 0, 0, 0.15);
}
/* 58x58 SVGs = 42px circle + drop-shadow bleed (offsets from the Figma export) */
.lp-contact__icon { display: block; width: 35.83px; height: 35.83px; position: relative; flex: none; }
.lp-contact__icon img { position: absolute; left: -6.8px; top: -3.4px; width: 49.43px; height: 49.43px; max-width: none; }
.lp-contact__icon + .lp-contact__icon { margin-left: 8.84px; }
.lp-contact__phone {
  display: flex;
  align-items: center;
  gap: 10.2px;
  margin-left: 17.85px;
  font-size: 16.54px;
  color: var(--navy);
  white-space: nowrap;
}
.lp-contact__phone img { width: 19.97px; height: 19.64px; }

.lp-hero__content { position: relative; z-index: 1; padding-top: 59.5px; }
.lp-hero__copy { width: 480.25px; max-width: 100%; }
.lp-hero__eyebrow { font-weight: 600; font-size: 16.72px; letter-spacing: 1.7px; line-height: 24.99px; }
.lp-hero__title { margin-top: 11.9px; font-weight: 700; font-size: 39.96px; line-height: 1.05; max-width: 447.95px; }
.lp-hero__title span { color: var(--yellow); }
.lp-hero__text { margin-top: 20.4px; font-size: 16.54px; line-height: 1.5; max-width: 429.25px; }
.lp-hero__actions { margin-top: 40.8px; display: flex; flex-direction: column; gap: 12.41px; }
.lp-btn-lg {
  width: 100%;
  height: 52.29px;
  border-radius: 9.01px;
  font-weight: 600;
  font-size: 18.14px;
  gap: 26.35px;
}
.btn--white.lp-btn-lg { color: var(--navy); gap: 25.5px; }
.lp-ico-search { width: 24.22px; height: 23.89px; }
.lp-ico-calc { width: 17.85px; height: 23.89px; }

.lp-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 28.9px;
  font-family: 'Roboto', var(--font);
  font-weight: 500;
  font-size: 15.08px;
  color: #fff;
  white-space: nowrap;
}
.lp-rating__logo { width: 86.44px; height: 20.91px; margin-top: -2.55px; }
.lp-rating__stars { width: 89.5px; height: 16.57px; margin-left: 10.54px; }
.lp-rating__score { margin-left: 9.35px; font-size: 14.94px; }
.lp-rating__dot { margin: 0 9.35px 0 15.3px; }

/* ---------- Main sheet ---------- */
.lp-main {
  position: relative;
  z-index: 2;
  margin-top: -42.5px;
  border-radius: 42.5px 42.5px 0 0;
  background:
    url(../assets/landing/ellipse-glow.svg) center 134.3px / 1403.35px 1403.35px no-repeat,
    linear-gradient(to bottom, #fff 0, #fff 2006px, #dcedfd 100%);
  overflow: hidden;
}
.lp-section { padding-top: 68.85px; }
.lp-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.lp-title { font-weight: 700; font-size: 38.18px; line-height: 1.05; color: var(--navy); }
.lp-sub {
  margin-top: 21.25px;
  max-width: 481.95px;
  font-size: 16.79px;
  line-height: 1.52;
  color: rgba(0, 19, 51, 0.6);
}
.lp-sub--wide { max-width: 629px; }
.lp-sub--popular { max-width: 605.2px; }
.lp-center { display: flex; justify-content: center; }
.lp-btn-wide { width: 479.82px; max-width: 100%; height: 52.78px; }

/* ---------- Carousel shell (reviews + popular cars) ---------- */
.lp-carousel { position: relative; }
.lp-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 20.4px;
  scrollbar-width: none;
  /* room for card shadows inside the scroll clip */
  padding: 10.2px 20.4px 22.1px;
  margin: -10.2px -20.4px -22.1px;
}
.lp-track::-webkit-scrollbar { display: none; }
.lp-track > * { flex: none; scroll-snap-align: start; }
.lp-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 50.15px;
  height: 50.15px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transform: translateY(-50%);
}
.lp-arrow img { width: 50.15px; height: 50.15px; }
.lp-arrow--prev { left: -76.5px; }
.lp-arrow--next { right: -74.8px; }
.lp-arrow--cars.lp-arrow--prev { left: -87.55px; }
.lp-arrow--cars img { width: 51px; height: 51px; }

/* ---------- Reviews ---------- */
.lp-reviews .lp-carousel { margin-top: 45.9px; }
.lp-track--reviews { gap: 12.24px; }
.lp-review {
  width: 241.49px;
  min-height: 160.39px;
  padding: 31.45px 17px 17px 25.5px;
  border-radius: 11.47px;
  background: rgba(221, 236, 252, 0.2);
  backdrop-filter: blur(19.55px);
  -webkit-backdrop-filter: blur(19.55px);
  box-shadow: 0 4.59px 4.59px rgba(0, 0, 0, 0.25);
  font-family: 'Roboto', var(--font);
  color: #000;
}
.lp-stars { position: relative; width: 99.79px; height: 18.36px; }
.lp-stars > img { width: 99.02px; height: 18.36px; }
.lp-stars__fix { position: absolute; left: 81.09px; top: 0; width: 18.7px; height: 18.36px; }
.lp-review__title { margin-top: 10.2px; font-weight: 600; font-size: 14.87px; line-height: 16.91px; }
.lp-review__body { margin-top: 4.25px; font-size: 13.53px; line-height: 1.25; max-width: 184.45px; }
.lp-review__meta { margin-top: 5.95px; font-size: 13.53px; line-height: 1.25; }
.lp-reviews__note { margin-top: 32.3px; text-align: center; font-size: 14.85px; line-height: 1.25; color: rgba(41, 54, 128, 0.9); }
.lp-reviews__note strong { font-weight: 600; }
.lp-tp {
  margin-top: 18.7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto', var(--font);
}
.lp-tp__logo { width: 94.94px; height: 22.95px; }
.lp-tp__stars { width: 88.4px; height: 16.41px; margin-left: 12.75px; }
.lp-tp__label { margin-left: 20.4px; font-weight: 500; font-size: 19.27px; line-height: 21.9px; color: #000; }

/* ---------- Search ---------- */
.lp-search { padding-top: 99.45px; }
.lp-filters {
  margin-top: 41.65px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19.55px 23.46px;
}
.lp-field { display: flex; flex-direction: column; align-items: center; gap: 6.8px; }
.lp-field label { font-weight: 600; font-size: 16.44px; line-height: 24.88px; color: var(--ink); }
.lp-field select {
  width: 100%;
  height: 50.4px;
  padding: 0 51px 0 22.61px;
  border: 1.4px solid rgba(0, 0, 0, 0.3);
  border-radius: 8.5px;
  background: #fafaf9 url(../assets/landing/select-chevron.svg) right 21.25px center / 17.17px 9.27px no-repeat;
  font-size: 15.8px;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.lp-field select:focus-visible { outline: 1.7px solid var(--navy); outline-offset: 1.7px; }
.lp-filters__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 26.35px;
}
.lp-filters__links {
  width: 479.82px;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12.41px;
  font-size: 14.94px;
  line-height: 22.41px;
}
.lp-adv { display: inline-flex; align-items: center; gap: 8.5px; font-weight: 600; color: rgba(0, 19, 51, 0.75); }
.lp-adv img { width: 15.13px; height: 15.13px; }
.lp-reset {
  padding: 0;
  border: 0;
  background: none;
  font-size: 14.94px;
  color: rgba(0, 19, 51, 0.8);
  text-decoration: underline;
  text-underline-offset: 2.55px;
  cursor: pointer;
}

/* ---------- Popular cars ---------- */
.lp-popular { padding-top: 98.6px; }
.lp-popular .lp-carousel { margin-top: 48.45px; }
.lp-track--cars { gap: 15.3px; }
.lp-track--cars .car-card { width: 239.44px; }
.lp-popular .lp-center { margin-top: 44.2px; }

/* ---------- Sell ---------- */
.lp-sell { padding-top: 103.7px; }
.lp-sell .lp-sub { margin-top: 21.25px; }
.lp-steps {
  list-style: none;
  width: 682.55px;
  max-width: 100%;
  margin: 36.55px auto 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 25.5px;
}
.lp-step {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 137.7px;
  padding: 17px 51px 17px 127.5px;
  border-radius: 16.49px;
  background: linear-gradient(to bottom, #fff, #ddecfc);
  box-shadow: 0 3.06px 9.78px rgba(0, 0, 0, 0.5);
}
.lp-step__badge { position: absolute; left: -20.4px; top: 37.4px; width: 109.48px; height: 69.1px; }
.lp-step__badge img { width: 109.48px; height: 69.1px; }
.lp-step__badge span {
  position: absolute;
  left: 3.4px;
  top: 2.55px;
  width: 102.68px;
  text-align: center;
  font-weight: 700;
  font-size: 36.57px;
  line-height: 48.84px;
  color: #28387f;
}
.lp-step__icon { flex: none; width: 92.65px; display: flex; justify-content: flex-start; }
.lp-step__icon--img { margin-left: -9.35px; width: 102px; }
.lp-step__icon--img .crop { width: 77.6px; height: 63.15px; }
.lp-step__copy { max-width: 396.95px; }
.lp-step__copy h3 { font-weight: 700; font-size: 21.24px; line-height: 1.1; color: #28387f; }
.lp-step__copy p { margin-top: 6.8px; font-family: 'Roboto', var(--font); font-size: 15.56px; line-height: 1.3; color: rgba(0, 0, 0, 0.8); }
.lp-sell .lp-center { margin-top: 45.05px; }
.lp-powered {
  margin-top: 29.75px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 37.74px;
}
.lp-powered__mm { display: flex; align-items: flex-start; height: 37.74px; }
.lp-powered__mm-icon { display: block; width: 42.16px; height: 24.82px; margin-top: 6.8px; }
.lp-powered__mm-word { display: block; width: 144.24px; height: 35.02px; margin-top: 2.72px; margin-left: 7.65px; }
.lp-powered__divider { width: 0.9px; height: 33.83px; margin: 0 20.91px 0 22.1px; background: var(--navy); align-self: flex-start; }
.lp-powered__label { font-weight: 500; font-size: 16.76px; color: var(--navy); white-space: nowrap; }
.lp-powered__hg { width: 176.8px; height: 29.58px; margin-left: 19.21px; object-fit: cover; }

/* ---------- CTA banner (shared .cta-banner, landing car line-up) ---------- */
.lp-cta { padding: 90.1px 0 0; }
.lp-cta .cta-banner { box-shadow: 0 3.4px 21.25px rgba(0, 0, 0, 0.3); padding-left: 58.65px; }
.lp-cta__cars.cta-banner__car { width: 494.7px; height: 109.2px; align-self: flex-end; margin: 0 -13.6px 68px 0; }
.lp-cta__shadow { position: absolute; left: 2.8px; top: 71.14px; width: 491.98px; height: 50.61px; object-fit: cover; opacity: 0.85; }
.lp-cta__img.crop { position: absolute; inset: 0 0 auto 0; height: 103.32px; }

/* ---------- Location + areas ---------- */
.lp-area { padding-top: 79.05px; }
.lp-area__inner { display: flex; gap: 58.65px; align-items: flex-start; }
.lp-area__map { width: 441.4px; flex: none; }
.lp-area__map img { width: 441.4px; height: 243.1px; border-radius: 8.5px; object-fit: cover; }
.lp-area__map address {
  margin-top: 11.9px;
  font-style: normal;
  font-size: 15.8px;
  line-height: 23.7px;
  color: rgba(0, 19, 51, 0.75);
  white-space: nowrap;
}
.lp-area__map address strong { display: block; font-weight: 600; }
.lp-area__links { flex: 1; }
.lp-area__links h2 { font-weight: 600; font-size: 23.36px; line-height: 35.04px; color: #263379; }
.lp-area__links ul {
  list-style: none;
  margin: 24.31px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 174.76px 179.86px auto;
  row-gap: 21.42px;
}
.lp-area__links a { font-weight: 500; font-size: 13px; line-height: 19.5px; color: rgba(0, 19, 51, 0.6); white-space: nowrap; }
.lp-area__links a:hover { color: var(--navy); }

/* ---------- Slim footer ---------- */
.lp-footer { padding: 90.1px 0 109.65px; }
.lp-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 27.2px; }
.lp-footer__logo img { width: 365.16px; height: 61.12px; object-fit: cover; }
.lp-footer__links { display: flex; gap: 38.59px; }
.lp-footer__links a { font-weight: 600; font-size: 16.24px; line-height: 24.51px; color: var(--navy); white-space: nowrap; }
.lp-footer__links a:hover { text-decoration: underline; text-underline-offset: 3.4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1190px) {
  .lp-arrow--prev, .lp-arrow--cars.lp-arrow--prev { left: -15.3px; }
  .lp-arrow--next { right: -15.3px; }
  .lp-arrow { box-shadow: 0 2.55px 8.5px rgba(0, 0, 0, 0.15); }
}
@media (max-width: 1054px) {
  .lp-cta__cars.cta-banner__car { width: 374px; height: 82.6px; }
  .lp-cta__shadow { top: 53.55px; width: 100%; height: 38.5px; }
  .lp-cta__img.crop { height: 78.12px; }
  .lp-area__inner { gap: 34px; }
  .lp-area__links ul { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 935px) {
  .lp-hero { min-height: 0; padding-bottom: 323px; }
  .lp-hero__photo { left: 0; top: auto; bottom: 0; width: 100%; height: 374px; object-position: 70% 60%; }
  .lp-hero__panel { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 365.5px), 0 calc(100% - 306px)); background-size: 100% 100%; }
  .lp-hero__content { padding-top: 47.6px; }
  .lp-title { font-size: 29.2px; }
  .lp-sub { font-size: 15.39px; }
  .lp-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-banner.container { align-items: flex-start; }
  .lp-cta__cars.cta-banner__car { width: min(494.7px, 100%); height: auto; aspect-ratio: 582 / 156; margin: 0; align-self: center; }
  .lp-cta__shadow { top: 53.6%; width: 99.4%; height: 46.3%; }
  .lp-cta__img.crop { height: 94.6%; }
  .lp-area__inner { flex-direction: column; }
  .lp-area__map, .lp-area__map img { width: 100%; }
  .lp-area__map img { height: auto; aspect-ratio: 519 / 286; }
  .lp-footer__inner { flex-direction: column; align-items: flex-start; }
  .lp-footer__links { flex-wrap: wrap; gap: 13.6px 27.2px; }
}
@media (max-width: 760px) {
  .lp-header { padding-top: 21.6px; }
  .lp-header__logo img { width: 144px; height: auto; }
  .lp-contact { height: 45px; padding: 0 9px; }
  .lp-contact__phone span { display: none; }
  .lp-contact__phone { margin-left: 10.8px; }
  .lp-hero { padding-bottom: 270px; }
  .lp-hero__photo { height: 306px; }
  .lp-hero__panel { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 297px), 0 calc(100% - 252px)); }
  .lp-hero__eyebrow { font-size: 14.4px; line-height: 21.6px; }
  .lp-hero__title { font-size: 32.4px; }
  .lp-hero__text { font-size: 15.3px; margin-top: 14.4px; }
  .lp-hero__actions { margin-top: 25.2px; }
  .lp-btn-lg { height: 54px; font-size: 17.1px; gap: 14.4px; }
  .btn--white.lp-btn-lg { gap: 14.4px; }
  .lp-ico-search { width: 19.8px; height: 19.8px; }
  .lp-ico-calc { width: 14.4px; height: 19.8px; }
  .lp-rating { flex-wrap: wrap; row-gap: 7.2px; font-size: 14px; }
  .lp-rating__dot { display: none; }
  .lp-rating__score { margin-right: 9px; }
  .lp-hero__photo { object-position: 62% 80%; }
  .lp-contact__icon { transform: scale(0.85); }
  .lp-contact__icon + .lp-contact__icon { margin-left: 1.8px; }
  .lp-main { border-radius: 25.2px 25.2px 0 0; margin-top: -27px; }
  .lp-section, .lp-search, .lp-popular, .lp-sell { padding-top: 57.6px; }
  .lp-title { font-size: 27px; }
  .lp-sub { font-size: 14.4px; margin-top: 12.6px; }
  .lp-arrow { display: none; }
  .lp-reviews .lp-carousel, .lp-popular .lp-carousel { margin-top: 28.8px; }
  .lp-review { width: 244.8px; }
  .lp-reviews__note { font-size: 14px; }
  .lp-tp { flex-wrap: wrap; gap: 9px; }
  .lp-tp__stars, .lp-tp__label { margin-left: 0; }
  .lp-filters { grid-template-columns: minmax(0, 1fr); gap: 14.4px; margin-top: 28.8px; }
  .lp-field label { font-size: 16.2px; }
  .lp-filters__actions { margin-top: 14.4px; }
  .lp-steps { gap: 21.6px; margin-top: 28.8px; }
  .lp-step { flex-direction: column; align-items: flex-start; gap: 14.4px; padding: 81px 19.8px 23.4px; }
  .lp-step__badge { left: -7.2px; top: 10.8px; transform: scale(0.8); transform-origin: left top; }
  .lp-step__icon { position: absolute; right: 19.8px; top: 12.6px; width: auto; transform: scale(0.8); transform-origin: right top; }
  .lp-step__icon--img { margin: 0; }
  .lp-step__copy h3 { font-size: 19.8px; }
  .lp-step__copy p { font-size: 14.4px; }
  .lp-powered { flex-wrap: wrap; height: auto; row-gap: 10.8px; }
  .lp-powered__divider { display: none; }
  .lp-powered__mm { width: 100%; justify-content: center; }
  .lp-powered__label { font-size: 16.2px; }
  .lp-powered__hg { width: 144px; height: auto; margin-left: 10.8px; }
  .lp-cta { padding-top: 57.6px; }
  .lp-cta .cta-banner { padding: 28.8px 18px; }
  .lp-area { padding-top: 57.6px; }
  .lp-area__links h2 { font-size: 21.6px; }
  .lp-area__links ul { grid-template-columns: 1fr 1fr; column-gap: 10.8px; row-gap: 12.6px; }
  .lp-area__links a { white-space: normal; }
  .lp-area__map address { white-space: normal; font-size: 14.4px; line-height: 21.6px; }
  .lp-footer { padding: 57.6px 0 64.8px; }
  .lp-footer__logo img { width: 234px; height: auto; }
  .lp-footer__links a { font-size: 15.3px; }
}
