/* =====================================================================
   Janidu Auto - homepage
   Structure/tokens: Material Design 3 (md.sys color roles, type scale,
   shape scale, state layers, motion easings).
   Feel: Apple fluid design (springs, materials, optical type, depth).
   ===================================================================== */

:root {
  /* ---- M3 color roles (custom dark scheme: xenon blue primary, racing red tertiary) ---- */
  --md-sys-color-primary: #8FD8FF;
  --md-sys-color-on-primary: #00344A;
  --md-sys-color-primary-container: #0E4C6B;
  --md-sys-color-on-primary-container: #CBEBFF;
  --md-sys-color-tertiary: #FF6B5E;
  --md-sys-color-tertiary-container: #C8231A;
  --md-sys-color-on-tertiary-container: #FFFFFF;
  --md-sys-color-surface: #0A0C0F;
  --md-sys-color-surface-container-lowest: #060709;
  --md-sys-color-surface-container-low: #0F1216;
  --md-sys-color-surface-container: #14181D;
  --md-sys-color-surface-container-high: #1A1F25;
  --md-sys-color-surface-container-highest: #21272E;
  --md-sys-color-on-surface: #E8ECF1;
  --md-sys-color-on-surface-variant: #9DA7B3;
  --md-sys-color-outline: #5F6873;
  --md-sys-color-outline-variant: #262D35;
  --md-sys-color-success: #7EE2A8;

  /* ---- M3 state layer opacities ---- */
  --md-sys-state-hover: .08;
  --md-sys-state-focus: .10;
  --md-sys-state-pressed: .10;

  /* ---- M3 shape scale ---- */
  --md-sys-shape-corner-extra-small: 4px;
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 12px;
  --md-sys-shape-corner-large: 16px;
  --md-sys-shape-corner-extra-large: 16px;
  --md-sys-shape-corner-extra-large-increased: 16px;
  /* the one radius scale: size decides the step, nested corners = outer minus padding */
  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-full: 999px;
  --md-sys-shape-corner-full: 9999px;

  /* ---- M3 motion easings ---- */
  --md-sys-motion-easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
  --md-sys-motion-easing-emphasized-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1);
  --md-sys-motion-easing-emphasized-accelerate: cubic-bezier(0.3, 0, 0.8, 0.15);
  --md-sys-motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);

  /* ---- Type ---- */
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Saira', -apple-system, 'Segoe UI', Roboto, sans-serif;

  --page-pad: clamp(1.25rem, 4vw, 3rem);
  --max: 1280px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* browser surfaces carry the palette too */
::selection { background: rgb(143 216 255 / .32); color: #fff; }
html { caret-color: var(--md-sys-color-primary); }
/* keep the scrollbar's space reserved even while the intro hides overflow, so nothing shifts when it returns */
html { scrollbar-gutter: stable; }
@supports not selector(::-webkit-scrollbar) { html { scrollbar-color: #2E3742 transparent; scrollbar-width: thin; } }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: var(--r-full); background: #2E3742 padding-box; }
::-webkit-scrollbar-thumb:hover { background: #8FD8FF padding-box; }
body {
  margin: 0;
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font: 400 1rem/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.intro body, html.intro-run body { overflow: hidden; }
/* Browser autofill keeps the shop's font, text colour and dark field: the light fill is held off by a never-ending
   transition. Chrome's hover preview of a suggestion stays in a system font; browsers do not let pages style it. */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-text-fill-color: var(--md-sys-color-on-surface); caret-color: var(--md-sys-color-on-surface);
  transition: background-color 600000s 0s, color 600000s 0s;
}
input:-webkit-autofill::first-line { font-family: var(--font-body); }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; }
p { margin: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* The finder's server-rendered heading and part links: for crawlers and no-JS visitors; bay.js replaces them */
html:not(.no-js) .sf-ssr { display: none; }
.sf-ssr { padding: 7rem 1.25rem 3rem; max-width: 60rem; margin: 0 auto; }
.sf-ssr ul { columns: 16rem; padding-left: 1.1rem; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem; border-radius: var(--md-sys-shape-corner-small); background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
.skip-link:focus-visible { top: 1rem; }

:focus-visible { outline: 3px solid var(--md-sys-color-primary); outline-offset: 3px; border-radius: var(--r-xs); }

/* =========================== BUTTONS & CHIPS =========================== */
.btn {
  --sl: transparent;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.4rem;
  border: 0; border-radius: var(--md-sys-shape-corner-full);
  font-weight: 650; letter-spacing: .01em; cursor: pointer;
  transition: transform 120ms ease-out, box-shadow 300ms var(--md-sys-motion-easing-standard);
}
/* M3 state layer */
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor; opacity: 0; transition: opacity 150ms linear; }
.btn:hover::after { opacity: var(--md-sys-state-hover); }
.btn:focus-visible::after { opacity: var(--md-sys-state-focus); }
/* Apple: feedback on press, instant */
.btn:active { transform: scale(.97); transition-duration: 80ms; }
.btn:active::after { opacity: var(--md-sys-state-pressed); }

.btn--primary {
  background: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .08) inset, 0 10px 30px -8px rgb(200 35 26 / .7);
}
.btn--primary:hover { box-shadow: 0 0 0 1px rgb(255 255 255 / .14) inset, 0 14px 44px -6px rgb(255 70 50 / .85); }
.btn--ghost {
  background: rgb(255 255 255 / .04);
  color: var(--md-sys-color-on-surface);
  box-shadow: 0 0 0 1px var(--md-sys-color-outline) inset;
}
.btn--lg { min-height: 56px; padding: 0 2rem; font-size: 1.05rem; }

.chip {
  position: relative; overflow: hidden;
  min-height: 36px; padding: 0 1rem;
  border-radius: var(--md-sys-shape-corner-full);
  border: 1px solid var(--md-sys-color-outline-variant);
  background: rgb(255 255 255 / .03);
  color: var(--md-sys-color-on-surface-variant);
  font-size: .875rem; font-weight: 600; letter-spacing: .02em;
  cursor: pointer;
  transition: color 200ms, background-color 200ms, border-color 200ms, transform 100ms ease-out;
}
.chip:hover { color: var(--md-sys-color-on-surface); background: rgb(143 216 255 / var(--md-sys-state-hover)); }
.chip:active { transform: scale(.96); }
.chip.is-on {
  color: var(--md-sys-color-on-primary-container);
  background: var(--md-sys-color-primary-container);
  border-color: transparent;
  box-shadow: 0 0 24px -6px rgb(143 216 255 / .6);
}

/* =========================== NAV (translucent material) =========================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  height: 68px; padding: 0 var(--page-pad);
  background: rgb(10 12 15 / .35);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  transition: background-color 300ms var(--md-sys-motion-easing-standard), box-shadow 300ms;
}
/* scroll-edge effect instead of a hard divider */
.nav.is-scrolled { background: linear-gradient(rgb(14 17 21 / .62), rgb(10 12 15 / .5)); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); box-shadow: inset 0 -1px 0 rgb(255 255 255 / .07), 0 18px 36px -24px rgb(0 0 0 / .9); }
.nav__brand { position: relative; display: flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -.01em; }
.nav__brand em, .footer__brand em { font-style: normal; font-weight: 500; color: var(--md-sys-color-on-surface-variant); margin-left: .4em; }
.nav__links { display: flex; gap: .25rem; margin-left: auto; }
.nav__links a {
  position: relative; padding: .6rem .9rem; border-radius: var(--md-sys-shape-corner-full);
  color: var(--md-sys-color-on-surface-variant); font-size: .925rem; font-weight: 550;
  transition: color 200ms, background-color 200ms;
}
.nav__links a:hover { color: var(--md-sys-color-on-surface); background: rgb(255 255 255 / var(--md-sys-state-hover)); }
.nav__links a[aria-current="page"] { color: var(--md-sys-color-on-surface); background: rgb(143 216 255 / .1); }
.nav__account-icon { display: none; }
.nav__cart, .nav__search {
  flex: none; position: relative; display: grid; place-items: center;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgb(255 255 255 / .05); cursor: pointer;
  transition: background-color 200ms, transform 100ms ease-out;
}
.nav__cart:hover, .nav__search:hover { background: rgb(255 255 255 / .1); }
.nav__cart:active, .nav__search:active { transform: scale(.94); }
.nav__search { color: inherit; }
.nav__badge {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-full);
  display: grid; place-items: center;
  background: var(--md-sys-color-tertiary-container); color: #fff;
  font-size: .7rem; font-weight: 700;
  transform: scale(0); transition: transform 300ms var(--md-sys-motion-easing-emphasized-decelerate);
}
.nav__badge.has-items { transform: scale(1); }


/* ---- Logo: a coupe drives in from the right, reveals the wordmark, brakes and parks left of it ---- */
.brand-car { position: relative; flex: none; width: 61px; height: 20px; will-change: transform; }
.brand-car__img { display: block; width: 100%; height: 100%; }
.brand-car__svg { position: relative; z-index: 1; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 92%; }
.bc-spin { transform-box: fill-box; transform-origin: center; }
.bc-head { opacity: .45; mix-blend-mode: screen; filter: blur(1px) drop-shadow(0 0 2px #BFE9FF); }
.bc-tail { opacity: .3; mix-blend-mode: screen; filter: blur(.6px) drop-shadow(0 0 2px #FF3B2E); }
.brand-car__beam {
  position: absolute; right: calc(100% - 4px); top: 50%; width: 64px; height: 22px; translate: 0 -50%;
  background: linear-gradient(to left, rgb(205 240 255 / .55), rgb(143 216 255 / .12) 60%, transparent);
  clip-path: polygon(100% 44%, 0 0, 0 100%, 100% 56%);
  filter: blur(1.2px); mix-blend-mode: screen; opacity: .28; pointer-events: none;
}
.brand-car__trail {
  position: absolute; left: 88%; top: 50%; width: 110px; height: 12px; translate: 0 -50%;
  background:
    linear-gradient(90deg, rgb(143 216 255 / .85), transparent) 0 30% / 100% 1.5px no-repeat,
    linear-gradient(90deg, rgb(255 70 50 / .8), transparent) 0 62% / 75% 1.5px no-repeat,
    linear-gradient(90deg, rgb(143 216 255 / .35), transparent) 0 90% / 55% 1px no-repeat;
  transform-origin: left center; opacity: 0; filter: blur(.4px); pointer-events: none;
}
.brand-text { display: inline-block; white-space: nowrap; line-height: 0; }
.brand-logo { display: block; width: auto; height: 36px; }
@media (max-width: 560px) { .brand-logo { height: 30px; } }
html.brand-pending .brand-text { clip-path: inset(-20px -20px -20px 100%); }
html.brand-pending .brand-car { opacity: 0; }

/* =========================== HERO =========================== */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh; min-height: max(100svh, 760px);
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(6.5rem, 14vh, 9rem) var(--page-pad) 0;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__aurora {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 30% at 50% 78%, rgb(92 196 255 / .22), transparent 70%),
    radial-gradient(30% 25% at 18% 30%, rgb(14 76 107 / .5), transparent 70%),
    radial-gradient(25% 20% at 85% 25%, rgb(200 35 26 / .18), transparent 70%);
}
/* Cursor headlight: a grid revealed only inside a beam that follows the pointer */
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgb(143 216 255 / .09) 1px, transparent 1px),
    linear-gradient(90deg, rgb(143 216 255 / .09) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(320px 260px at var(--mx, 50%) var(--my, 40%), #000 0%, transparent 75%);
  mask-image: radial-gradient(320px 260px at var(--mx, 50%) var(--my, 40%), #000 0%, transparent 75%);
}
.hero__grid::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(260px 200px at var(--mx, 50%) var(--my, 40%), rgb(143 216 255 / .10), transparent 70%);
}

.hero__copy { position: relative; z-index: 2; width: min(100%, 1200px); text-align: center; }

/* Apple optical type: big = tight tracking, tight leading */
.hero__title {
  /* height-aware so the lit headlamps stay above the fold on laptops */
  font-size: clamp(2.6rem, min(7.4vw, 10.5vh), 6.6rem);
  line-height: .98; letter-spacing: -.045em; font-weight: 800;
  perspective: 800px;
}
/* gradient lives on each word so per-word transforms don't break background-clip:text */
.hero__title .w {
  display: inline-block; transform-origin: 50% 100%;
  background: linear-gradient(180deg, #FFFFFF 30%, #9FB0C2 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.hero__title .accent {
  background: linear-gradient(100deg, #8FD8FF 0%, #E6F7FF 45%, #8FD8FF 60%, #3FA9E8 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: chrome 6s var(--md-sys-motion-easing-standard) infinite;
  filter: drop-shadow(0 0 24px rgb(143 216 255 / .35));
}
@keyframes chrome { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

/* Search: the hero's primary action, frosted glass + glowing edge */
.search {
  position: relative; display: flex; align-items: center; gap: .75rem;
  width: min(100%, 640px); margin: 2.4rem auto 0; padding: .5rem .5rem .5rem 1.25rem;
  border-radius: var(--md-sys-shape-corner-full);
  background: rgb(20 24 29 / .55);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  box-shadow:
    0 0 0 1px rgb(143 216 255 / .25) inset,
    0 1px 0 rgb(255 255 255 / .08) inset,
    0 20px 60px -20px rgb(0 0 0 / .9),
    0 0 50px -10px rgb(92 196 255 / .35);
  transition: box-shadow 300ms var(--md-sys-motion-easing-standard), transform 300ms var(--md-sys-motion-easing-emphasized);
}
.search:focus-within {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1.5px rgb(143 216 255 / .7) inset,
    0 1px 0 rgb(255 255 255 / .1) inset,
    0 24px 70px -20px rgb(0 0 0 / .9),
    0 0 80px -6px rgb(92 196 255 / .55);
}
.search:has(:focus-visible) { outline: none; }
.search input:focus-visible { outline: none; }
.search__icon { flex: none; color: var(--md-sys-color-primary); }
.search input {
  flex: 1; min-width: 0; height: 48px; border: 0; background: none; outline: none;
  color: var(--md-sys-color-on-surface); font-size: 1.1rem; font-weight: 500; letter-spacing: .005em;
}
.search input::placeholder { color: transparent; }
.search input::-webkit-search-cancel-button { display: none; }
/* Typewriter placeholder cycling through models */
.search__ghost {
  position: absolute; left: calc(1.25rem + 22px + .75rem); top: 50%; translate: 0 -50%;
  pointer-events: none; color: var(--md-sys-color-on-surface-variant); font-size: 1.1rem; font-weight: 500;
  white-space: nowrap;
}
.search__ghost::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -3px; background: var(--md-sys-color-primary); animation: caret 1s steps(1) infinite; }
.search.has-value .search__ghost { opacity: 0; }
@keyframes caret { 50% { opacity: 0; } }
.search__go { flex: none; }

.hero__quick { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; margin-top: 1.1rem; color: var(--md-sys-color-on-surface-variant); font-size: .85rem; }

/* Car: two pixel-aligned photos (lights off / on). The car box takes the page colour and the
   photos blend with "lighten", so the photo's pure black melts into the page instead of showing a box. */
.car-parallax {
  --car-w: min(1180px, 112vw, max(620px, (100vh - 27rem) * 2.1));
  --car-w: min(1180px, 112vw, max(620px, (100svh - 27rem) * 2.1));
  position: relative; z-index: 1; width: var(--car-w);
  margin-top: calc(var(--car-w) * -0.10); /* roof tucks under the search glass */
  will-change: transform;
}
@media (min-width: 561px) { .car-suv .car-parallax { margin-top: calc(var(--car-w) * -0.03); } } /* tall SUV (index-lc300): roof just clears the quick chips */
.car {
  position: relative; transform-origin: 50% 47%;
  background: var(--md-sys-color-surface);
  -webkit-mask-image: linear-gradient(to bottom, transparent 2%, #000 24%, #000 80%, transparent 99%), linear-gradient(to right, transparent 4%, #000 16%, #000 84%, transparent 96%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 2%, #000 24%, #000 80%, transparent 99%), linear-gradient(to right, transparent 4%, #000 16%, #000 84%, transparent 96%);
  mask-composite: intersect;
}
.car__img { display: block; width: 100%; height: auto; mix-blend-mode: lighten; user-select: none; -webkit-user-drag: none; }
.car__on { position: absolute; inset: 0; }
/* Traced light elements (generated by tools/trace_lights.py): during the intro the real lit
   pixels are revealed along each DRL's own centreline, led by a bright travelling head. */
.car__trace { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; mix-blend-mode: lighten; pointer-events: none; filter: brightness(var(--e, 1)); }
.trace__m { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; filter: url(#traceSoft); }
.trace__lens { fill: #fff; filter: url(#traceSoft); }
.trace__head { fill: none; stroke: #F2FBFF; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: .07 2; stroke-dashoffset: .07; opacity: 0; filter: url(#traceGlow); }
/* power surge on hover / click: shockwave ring from each lamp */
.car__shock {
  position: absolute; left: var(--x); top: var(--y); width: 26%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; pointer-events: none; mix-blend-mode: screen; opacity: 0;
  background: radial-gradient(closest-side, transparent 58%, rgb(200 238 255 / .75) 70%, rgb(92 196 255 / .25) 80%, transparent);
}
.car.is-hot { cursor: pointer; }
/* electric arcs crackling along the blades (generated per burst in JS) */
.trace__arc { fill: none; stroke: #8FD8FF; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; filter: url(#traceGlow); }
.trace__arc--core { stroke: #FFFFFF; stroke-width: 1.3; filter: none; }
.trace__arc--fork { stroke: #CFEFFF; stroke-width: 1.2; filter: url(#traceGlow); opacity: .85; }
.car__glow {
  position: absolute; left: var(--x); top: var(--y, 46.5%); width: 30%; aspect-ratio: 2.6; translate: -50% -50%;
  background: radial-gradient(closest-side, rgb(215 240 255 / .45), rgb(92 196 255 / .16) 55%, transparent);
  mix-blend-mode: screen; pointer-events: none;
}
.car__flare {
  position: absolute; left: var(--x); top: var(--y, 46%); width: 62%; height: 2px; translate: -50% -50%;
  background: linear-gradient(90deg, transparent, rgb(120 205 255 / .5) 30%, rgb(235 248 255 / .95) 50%, rgb(120 205 255 / .5) 70%, transparent);
  mix-blend-mode: screen; opacity: .4; pointer-events: none;
}
.car__floor {
  position: absolute; left: 50%; bottom: 4%; width: 90%; height: 30%; translate: -50% 0;
  background: radial-gradient(50% 50% at 50% 50%, rgb(143 216 255 / .16), transparent 70%);
  mix-blend-mode: screen; pointer-events: none;
}

.hero__scroll {
  /* bottom of the first screen, or of the hero if that is shorter: the hero often runs past the fold */
  position: absolute; left: 50%; top: min(100% - 1.5rem - 42px, 100svh - 1.5rem - 42px); translate: -50% 0; z-index: 3;
  width: 26px; height: 42px; border-radius: var(--r-lg); box-shadow: 0 0 0 1.5px rgb(255 255 255 / .3) inset;
}
.hero__scroll span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--md-sys-color-primary); animation: wheel 1.8s var(--md-sys-motion-easing-emphasized) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* =========================== INTRO (headlamp sequence) =========================== */
.intro-sweep, .intro-mark, .intro-skip { display: none; }
html.intro .intro-sweep, html.intro .intro-mark, html.intro .intro-skip,
html.intro-run .intro-sweep, html.intro-run .intro-mark, html.intro-run .intro-skip { display: block; }
/* Hide everything but the lamps until JS takes over the timeline */
html.intro .nav, html.intro .hero__copy, html.intro .hero__bg, html.intro .car__img,
html.intro .car__glow, html.intro .car__flare, html.intro .car__trace, html.intro .car__floor, html.intro .hero__scroll { opacity: 0; }
/* the rest of the page waits off stage until the intro hands over (on phones the hero is shorter than the screen) */
.hero ~ section, .footer { transition: opacity 800ms var(--md-sys-motion-easing-emphasized-decelerate, ease-out) 250ms; }
html.intro .hero ~ section, html.intro .footer, html.intro-run .hero ~ section, html.intro-run .footer { opacity: 0; transition: none; }

.intro-sweep {
  position: fixed; inset: -10% auto -10% 0; z-index: 60; width: 38vw;
  background: linear-gradient(90deg, transparent, rgb(143 216 255 / .10) 30%, rgb(235 248 255 / .55) 50%, rgb(143 216 255 / .10) 70%, transparent);
  filter: blur(8px); mix-blend-mode: screen; pointer-events: none;
  transform: translateX(-60vw) skewX(-14deg);
}
.intro-mark {
  position: fixed; left: 50%; top: 6svh; z-index: 61; translate: -50% 0;
  text-align: center; pointer-events: none; white-space: nowrap;
  clip-path: inset(-120px calc(100% + 120px) -120px -120px); /* margins well past the 30px drop-shadow glow */
}
.intro-mark__logo { display: block; width: min(84vw, 620px); height: auto; }
.intro-skip {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 62;
  min-height: 44px; padding: 0 1.1rem; border: 0; border-radius: var(--md-sys-shape-corner-full);
  background: rgb(255 255 255 / .06); color: var(--md-sys-color-on-surface-variant);
  font-size: .85rem; font-weight: 600; letter-spacing: .04em; cursor: pointer;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .12) inset;
}
.intro-skip:hover { color: var(--md-sys-color-on-surface); background: rgb(255 255 255 / .1); }

/* =========================== MARQUEE =========================== */
.marquee { padding: 4.5rem 0 1rem; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__row { display: flex; width: max-content; }
.marquee__track { display: flex; flex: none; gap: 3.5rem; padding-right: 3.5rem; }
.marquee__track span { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -.03em; line-height: 1.25; color: #2B333D; white-space: nowrap; transition: color 300ms; }
.marquee__track span:hover { color: var(--md-sys-color-primary); }
.marquee__row--outline span { color: transparent; -webkit-text-stroke: 1px #3A4450; }
.marquee__row--outline span:hover { color: transparent; -webkit-text-stroke-color: var(--md-sys-color-tertiary); }

/* =========================== SECTIONS =========================== */
.section { width: min(100% - 2 * var(--page-pad), var(--max)); margin: 0 auto; padding: clamp(5rem, 10vw, 8rem) 0 0; }
.section.sf-narrow { width: min(100% - 2 * var(--page-pad), 560px); }
.sf-narrow > p + .btn { margin-top: 1rem; }
.section__head { margin-bottom: 2.75rem; }
.kicker { color: var(--md-sys-color-primary); font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1rem; }
.section__head h2, .cta h2 { font-size: clamp(2rem, 4.6vw, 3.75rem); line-height: 1.04; letter-spacing: -.035em; }
.muted { color: var(--md-sys-color-on-surface-variant); }

/* Scroll reveal: materialize (opacity + rise + blur), M3 emphasized decelerate */
[data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 700ms var(--md-sys-motion-easing-emphasized-decelerate), transform 900ms var(--md-sys-motion-easing-emphasized-decelerate), filter 700ms var(--md-sys-motion-easing-emphasized-decelerate); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }
html.no-js [data-reveal] { opacity: 1; transform: none; filter: none; }

/* =========================== VEHICLE PANEL + GRID =========================== */
.vehicle {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.75rem 2rem; margin-bottom: 1.5rem;
  border-radius: var(--md-sys-shape-corner-extra-large);
  background: linear-gradient(120deg, rgb(14 76 107 / .35), rgb(20 24 29 / .6) 55%);
  box-shadow: 0 0 0 1px rgb(143 216 255 / .15) inset;
}
.vehicle::before { content: ""; position: absolute; right: -10%; top: -60%; width: 50%; height: 220%; background: radial-gradient(closest-side, rgb(143 216 255 / .12), transparent); pointer-events: none; }
.vehicle__label { color: var(--md-sys-color-on-surface-variant); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.vehicle__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.03em; line-height: 1.15; }
.vehicle__meta { color: var(--md-sys-color-on-surface-variant); font-size: .95rem; margin-top: .2rem; }
.vehicle__chips { display: flex; flex-wrap: wrap; gap: .5rem; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; } }
/* homepage card: whole card opens the product page (stretched link), + stays its own button */
.grid .pc { position: relative; }
.grid .pc[hidden] { display: none; }
.pc__name a { color: inherit; }
.pc__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pc__name a:focus-visible { outline: none; }
.grid .pc:has(.pc__name a:focus-visible) { outline: 2px solid var(--xenon); outline-offset: 3px; }
.grid .pc__stamp, .grid .pc__add { z-index: 2; }
.grid .pc__add { position: relative; }
@media (hover: hover) {
  .grid .pc { transition: transform 400ms cubic-bezier(.16, 1, .3, 1), box-shadow 300ms; }
  .grid .pc:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgb(143 216 255 / .28), 0 18px 34px -18px rgb(0 0 0 / .9); }
}
.catalog__more { display: grid; justify-items: center; gap: .75rem; margin-top: 2.5rem; text-align: center; color: var(--md-sys-color-on-surface-variant); font-size: .9rem; }
.empty { padding: 3rem 0; text-align: center; color: var(--md-sys-color-on-surface-variant); }
.empty a { color: var(--md-sys-color-primary); text-decoration: underline; text-underline-offset: 3px; }

/* =========================== BENTO TILES (tilt + glare) =========================== */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 1.25rem; perspective: 1200px; }
.tile {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%; --ga: 0;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.6rem; border-radius: var(--md-sys-shape-corner-extra-large-increased);
  background:
    radial-gradient(70% 70% at 70% 30%, hsl(var(--hue) 80% 55% / .22), transparent 70%),
    linear-gradient(160deg, #181D24, #0C0F13);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .07) inset, 0 30px 60px -30px rgb(0 0 0 / .9);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
}
.tile--xl { grid-column: span 2; grid-row: span 2; }
.tile--wide { grid-column: 1 / -1; }
.tile[data-cat="seat"] { grid-column: span 2; }
.tile__glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: var(--ga); background: radial-gradient(400px circle at var(--gx) var(--gy), rgb(255 255 255 / .16), transparent 45%); mix-blend-mode: screen; transition: opacity 300ms; }
.tile__img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%);
  transform: scale(1.04); filter: brightness(.9) saturate(.95);
  transition: transform 1200ms cubic-bezier(.16, 1, .3, 1), filter 600ms;
}
.tile:hover .tile__img { transform: scale(1.1); filter: none; }
/* scrim: the copy sits in the dark corner of every photo */
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgb(8 10 13 / .92), rgb(8 10 13 / .45) 38%, transparent 68%), linear-gradient(to right, rgb(8 10 13 / .55), transparent 60%);
}
.tile[data-cat="carpet"] { --fx: 40%; }
.tile[data-cat="seat"] { --fx: 70%; }
.tile[data-cat="light"] { --fx: 72%; --fy: 58%; }
.tile__text { position: relative; z-index: 1; transform: translateZ(30px); }
.tile h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); letter-spacing: -.025em; line-height: 1.1; }
.tile--xl h3 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.tile p { margin-top: .4rem; color: var(--md-sys-color-on-surface-variant); font-size: .95rem; max-width: 32ch; }

/* =========================== STATS =========================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stat { padding: 2rem 1.5rem; border-radius: var(--md-sys-shape-corner-extra-large); background: var(--md-sys-color-surface-container-low); box-shadow: 0 0 0 1px var(--md-sys-color-outline-variant) inset; }
.stat b, .stat > span { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4.5vw, 3.6rem); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat > span { color: var(--md-sys-color-primary); }
.stat p { margin-top: .7rem; color: var(--md-sys-color-on-surface-variant); font-size: .95rem; }

/* =========================== CTA =========================== */
.cta { position: relative; overflow: hidden; isolation: isolate; margin: clamp(5rem, 10vw, 8rem) auto 0; padding: clamp(5rem, 10vw, 8rem) var(--page-pad); text-align: center; }
.cta__beam { position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 60% at 50% 100%, rgb(200 35 26 / .28), transparent 70%), radial-gradient(30% 40% at 50% 110%, rgb(255 107 94 / .35), transparent 70%); }
.cta p { margin: 1rem auto 0; max-width: 46ch; color: var(--md-sys-color-on-surface-variant); font-size: 1.1rem; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2.2rem; }

/* =========================== FOOTER (cinematic) =========================== */
.footer {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(3rem, 6vw, 4.5rem) var(--page-pad) 0;
  background: linear-gradient(#0A0C0F, #050608 70%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .06);
  color: var(--md-sys-color-on-surface-variant);
}
/* the wordmark sits on a wet road: a low cool glow and a thin horizon line */
.footer__glow {
  position: absolute; inset: auto 0 0; z-index: -1; height: 70%; pointer-events: none;
  background: radial-gradient(55% 60% at 50% 100%, rgb(143 216 255 / .09), transparent 70%);
}
.footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 3rem; width: min(100%, var(--max)); margin: 0 auto; }
.footer__logo { height: 48px; display: flex; align-items: center; }
.footer__brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 700 1rem var(--font-display); letter-spacing: -.01em; color: var(--md-sys-color-on-surface);
  scale: 1.7; transform-origin: 0 50%;
}
.footer__brand.is-pending .brand-text { clip-path: inset(-20px -20px -20px 100%); }
.footer__brand.is-pending .brand-car { opacity: 0; }
.footer__intro p { margin-top: 1.6rem; max-width: 40ch; font-size: 1.05rem; line-height: 1.55; }
.footer__cta { margin-top: 1.6rem; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer__cols h2 { margin-bottom: .9rem; font: 600 .75rem var(--font-body); font-stretch: 115%; letter-spacing: .16em; text-transform: uppercase; color: var(--md-sys-color-on-surface-variant); }
.footer__cols ul { margin: 0; padding: 0; list-style: none; }
.footer__cols a {
  display: inline-block; padding: .4rem 0; color: var(--md-sys-color-on-surface); font-weight: 550;
  background: linear-gradient(var(--xenon), var(--xenon)) 0 calc(100% - .3rem) / 0 1px no-repeat;
  transition: color 200ms, background-size 350ms cubic-bezier(.16, 1, .3, 1);
}
.footer__cols a:hover { color: var(--xenon); background-size: 100% 1px; }
.footer__mark {
  position: relative; margin: clamp(3rem, 7vw, 5rem) 0 0; text-align: center; white-space: nowrap; user-select: none;
  font: 800 calc((100vw - 2 * var(--page-pad)) / 5.75) / .82 var(--font-display); letter-spacing: -.045em;
  color: rgb(255 255 255 / .045);
  -webkit-box-reflect: below -.04em linear-gradient(transparent 50%, rgb(0 0 0 / .22));
}
/* a headlight crosses the letters right to left, the way the logo car drives */
.footer__mark::after {
  content: attr(data-text); position: absolute; inset: 0;
  color: rgb(214 242 255 / .78); text-shadow: 0 0 .2em rgb(143 216 255 / .45);
  mask: linear-gradient(100deg, transparent 38%, #000 50%, transparent 62%) -10% 0 / 250% 100% no-repeat;
  opacity: 0;
}
.footer.is-in .footer__mark::after { animation: mark-sweep 8s cubic-bezier(.4, 0, .6, 1) .5s infinite; }
@keyframes mark-sweep {
  0% { mask-position: -10% 0; opacity: 1; }
  32% { mask-position: 110% 0; opacity: 1; }
  33%, 100% { mask-position: 110% 0; opacity: 0; }
}
.footer__bar {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem;
  width: min(100%, var(--max)); margin: 0 auto; padding: 1.4rem 0 1.8rem; font-size: .85rem;
  box-shadow: 0 -1px 0 rgb(255 255 255 / .06);
}
.footer__credit { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .55rem; }
.footer__dayani { display: inline-flex; align-items: center; gap: .45rem; color: var(--md-sys-color-on-surface); font-weight: 650; }
.footer__dayani-logo { display: block; width: 28px; height: 28px; border-radius: 50%; background: #fff; overflow: hidden; }
.footer__dayani-logo img { display: block; width: 100%; height: 100%; }
@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr; gap: 2.75rem; }
}
@media (max-width: 560px) {
  .footer__logo { height: 32px; }
  .footer__brand { scale: 1.3; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; }
  .footer__cols > div:last-child { grid-column: 1 / -1; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
}

/* Fly-to-cart ghost */
.fly { position: fixed; z-index: 80; pointer-events: none; object-fit: cover; border-radius: var(--r-md); box-shadow: 0 0 0 1px rgb(143 216 255 / .5), 0 0 24px rgb(143 216 255 / .45); }

/* Contact page */
.contact__list { list-style: none; margin: 0 0 clamp(3rem, 8vw, 6rem); padding: 0; display: grid; gap: .75rem; max-width: 40rem; }
.contact__list li { display: grid; grid-template-columns: 7rem 1fr; align-items: baseline; gap: 1rem; padding: 1rem 1.25rem; border-radius: var(--r-md); background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); }
.contact__list span { color: var(--md-sys-color-on-surface-variant); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.contact__list a { color: var(--md-sys-color-on-surface); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; text-decoration-color: rgb(143 216 255 / .5); }
.contact__list address { font-style: normal; line-height: 1.6; }
@media (max-width: 560px) { .contact__list li { grid-template-columns: 1fr; gap: .25rem; } }

/* =========================== RESPONSIVE =========================== */
@media (max-width: 340px) { .nav { padding: 0 12px; } }
@media (max-width: 960px) {
  /* phones keep only the account link (Log in / first name) beside the cart */
  .nav__links { margin-left: auto; }
  .nav { gap: .5rem; }
  .nav__links a:not(.nav__account) { display: none; }
  .nav__links .nav__account { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; }
  .nav__account-icon { display: block; }
  .nav__account-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .search { padding-left: 1rem; }
  .search__ghost { left: calc(1rem + 22px + .75rem); font-size: 1rem; }
  .search__go span { display: none; }
  .search__go { width: 48px; padding: 0; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .tile--xl, .tile--wide, .tile[data-cat="seat"] { grid-column: auto; grid-row: auto; }
  .tile--xl { grid-row: span 2; }
  .vehicle { padding: 1.4rem; }
  /* phones: whole car in frame (mirrors included), breathing room under the chips, no tall empty band */
  .hero { min-height: 0; padding-bottom: 1.5rem; }
  .car-parallax { width: 106vw; margin-top: .5rem; }
  .car {
    -webkit-mask-image: linear-gradient(to bottom, transparent 2%, #000 22%, #000 82%, transparent 99%), linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 2%, #000 22%, #000 82%, transparent 99%), linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
  }
  .hero__quick { flex-wrap: nowrap; gap: .35rem; font-size: .8rem; }
  .hero__quick .chip { min-height: 34px; padding: 0 .75rem; font-size: .8rem; letter-spacing: 0; }
  .hero__scroll { display: none; }
}


/* =====================================================================
   SHARED PARTS UI: product card, price, fit stamp, part photo.
   One definition for the homepage, the finder layouts and the product page.
   ===================================================================== */
.stock { color: var(--ok); font-size: .78rem; font-weight: 650; }
.stock.is-low { color: var(--warn); }
.stock.is-out { color: #FF8A80; }
:root { --line: rgb(255 255 255 / .08); --red: #C8231A; --xenon: #8FD8FF; --ok: #7EE2A8; --warn: #FFC861; }
.part-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.part-photo.is-drawn { display: grid; place-items: center; padding: 18%; color: var(--xenon); background: radial-gradient(70% 70% at 50% 40%, #1b2530, #0d1015); }
.part-photo.is-drawn svg { width: 100%; height: auto; }
.stamp {
  display: inline-flex; align-items: center; gap: .3em; min-height: 24px; padding: 0 .55em;
  border: 1.5px solid currentColor; border-radius: var(--r-xs); background: none;
  font: 800 .72rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
button.stamp { cursor: pointer; }
.stamp--ok { color: var(--ok); }
.stamp--ok::before { content: ""; width: .7em; height: .4em; border: solid currentColor; border-width: 0 0 2px 2px; transform: translateY(-.1em) rotate(-45deg); }
.stamp--check { color: var(--warn); }
.stamp--check::after { content: "?"; }
.stamp--no { color: #FF8A80; opacity: .8; }
.stamp--uni { color: var(--xenon); }
.stamp--none { color: var(--md-sys-color-on-surface-variant); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .5rem; }
.price b { font: 700 1.05rem var(--font-display); letter-spacing: -.02em; }
.price s { color: var(--md-sys-color-on-surface-variant); font-size: .82rem; }
.price { font-variant-numeric: tabular-nums; }
.price .cur { margin-right: .28em; font: 600 max(11px, .6em) var(--font-body); font-stretch: 112%; letter-spacing: .06em; color: var(--md-sys-color-on-surface-variant); vertical-align: .12em; }
.pc { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-md); background: #101318; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow 200ms, transform 200ms; }
.pc:hover { box-shadow: inset 0 0 0 1px rgb(143 216 255 / .35); }
.pc.is-no { opacity: .5; }
.pc__art { position: relative; aspect-ratio: 1; }
.pc__off { position: absolute; right: .5rem; top: .5rem; padding: .2rem .45rem; border-radius: var(--r-xs); background: var(--red); color: #fff; font: 800 .72rem var(--font-display); }
.pc__stamp { position: absolute; left: .5rem; bottom: .5rem; }
.pc__stamp .stamp { background: rgb(10 12 15 / .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pc__body { display: flex; flex-direction: column; flex: 1; gap: .2rem; padding: .7rem .8rem .8rem; }
.pc__cat { color: var(--md-sys-color-on-surface-variant); font-size: .78rem; font-weight: 600; }
.pc__name { font: 650 .9rem/1.25 var(--font-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc__row { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-top: auto; padding-top: .4rem; }
.pc__row .price { flex-direction: column; gap: 0; }
.pc__row .price b { font-size: .92rem; }
.pc__row .price s { font-size: .72rem; }
.pc__add { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--red); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 14px -6px rgb(0 0 0 / .8); }
.pc__add:active { transform: scale(.92); }
.pc__art { background: linear-gradient(160deg, #161b21, #0c0f13); overflow: hidden; }
.pc__art .part-photo { transition: transform 900ms cubic-bezier(.16, 1, .3, 1); }
@media (hover: hover) { .pc:hover .part-photo { transform: scale(1.05); } }

/* =========================== ACCESSIBILITY PREFERENCES =========================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  [data-reveal] { transform: none; filter: none; transition: opacity 250ms ease; }
  .tile { transform: none !important; }
  .marquee__row { transform: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .nav.is-scrolled { background: var(--md-sys-color-surface-container); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .search { background: var(--md-sys-color-surface-container-high); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --md-sys-color-on-surface-variant: #C9D1DA; --md-sys-color-outline-variant: #5F6873; }
  .pc, .stat, .tile { box-shadow: 0 0 0 1.5px var(--md-sys-color-outline) inset; }
}

/* ---------- Landing pages: /cars/<model>, /parts/<category> (includes/storefront/landing_view.php) ---------- */
.lp { padding-top: clamp(6.5rem, 12vw, 8.5rem); padding-bottom: 2rem; }
.lp-crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.75rem; padding: 0; list-style: none; color: var(--md-sys-color-on-surface-variant); font-size: .85rem; }
.lp-crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.lp-crumbs a { color: inherit; }
.lp-crumbs a:hover { color: var(--md-sys-color-on-surface); }
.lp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); }
.lp-hero--part { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.lp-hero--text { grid-template-columns: 1fr; max-width: 46rem; }
.lp-hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -.035em; }
.lp-intro { margin-top: 1.1rem; color: var(--md-sys-color-on-surface-variant); font-size: 1.05rem; line-height: 1.6; max-width: 38rem; }
.lp-intro p + p { margin-top: .75rem; }
.lp-gens { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.lp-hero__photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: inset 0 0 0 1px var(--line); }
.lp-hero__photo img { display: block; width: 100%; height: auto; }
.lp-hero__photo--part { justify-self: end; width: min(100%, 360px); aspect-ratio: 1; }
.lp-sec { margin-top: clamp(2.5rem, 6vw, 4rem); }
.lp-sec h2 { margin-bottom: 1.1rem; font-size: clamp(1.25rem, 2.4vw, 1.7rem); letter-spacing: -.02em; }
.lp-n { margin-left: .35rem; color: var(--md-sys-color-on-surface-variant); font-family: var(--font-body); font-size: .9em; font-weight: 600; }
.lp-grid .pc { position: relative; cursor: default; }
.lp-fits { color: var(--md-sys-color-primary); font-size: .76rem; font-weight: 600; line-height: 1.3; }
.lp-empty p { color: var(--md-sys-color-on-surface-variant); }
.lp-empty a { color: var(--md-sys-color-primary); text-decoration: underline; }
.lp-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.lp-pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border-radius: var(--r-full); background: var(--md-sys-color-surface-container); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); color: var(--md-sys-color-on-surface); font-size: .9rem; font-weight: 600; transition: box-shadow 200ms, background-color 200ms; }
.lp-pill:hover { background: var(--md-sys-color-surface-container-high); box-shadow: inset 0 0 0 1px rgb(143 216 255 / .35); }
@media (max-width: 860px) {
  .lp-hero, .lp-hero--part { grid-template-columns: 1fr; }
  .lp-hero__photo { order: -1; }
  .lp-hero__photo--part { justify-self: start; width: min(100%, 240px); }
}
