/* ============================================================
   Raydar Website UI Kit — component styles
   Imports tokens from ../../colors_and_type.css
   ============================================================ */

@import url("colors_and_type.css");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--neutral-925);
  color: var(--fg);
  font-family: var(--font-sans);
}
button { font-family: inherit; }
img { display: block; max-width: 100%; }

.rd-page {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  background: var(--neutral-925);
  container-type: inline-size;
  container-name: page;
}

.rd-bar { width: 96px; height: 4px; background: var(--red-600); }

.btn-primary--sm { padding: 10px 22px; font-size: 13px; }
.btn-primary--lg { padding: 20px 32px; font-size: 16px; }

/* ─── Top Nav ──────────────────────────────────────────────── */
.rd-nav {
  position: sticky; top: 0; z-index: 50;
  width: 100%; height: 80px;
  background: #000;
  box-shadow: var(--shadow-xs);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
/* Mobile-only nav controls — hidden on desktop, swapped in via container query */
.rd-nav__hamburger,
.rd-nav__mobile-icons { display: none; }
.rd-nav__hamburger {
  background: transparent; border: 0; padding: 0;
  width: 32px; height: 24px;
  flex-direction: column; justify-content: space-between;
  cursor: pointer;
}
.rd-nav__hamburger span {
  display: block;
  height: 2px; width: 100%;
  background: #fff; border-radius: 1px;
}
.rd-nav__mobile-icons {
  align-items: center; gap: 14px;
}
.rd-nav__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  color: #fff;
  text-decoration: none;
  transition: color .15s ease;
}
.rd-nav__icon:hover { color: var(--red-500); }
.rd-nav__logo {
  width: 104px; height: 48px;
  background: url(assets/logo-raydar.png) center / contain no-repeat;
}
.rd-nav__links { display: flex; gap: 28px; }
.rd-nav__links a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color .15s ease;
}
.rd-nav__links a:hover, .rd-nav__links a.is-active {
  color: var(--red-500);
  font-weight: 700;
}

/* ─── Hero ─────────────────────────────────────────────────── */
.rd-hero {
  position: relative;
  width: 100%; height: 870px;
  overflow: hidden;
}
.rd-hero__bg {
  position: absolute; inset: 0;
  background: url(assets/hero-bg.png) left center / cover no-repeat;
}
.rd-hero__layer {
  position: absolute; inset: 0;
  background-position: left center;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform;
}
.rd-hero__layer--bg  { background-image: url(assets/hero-1-bg.png);  z-index: 1; }
.rd-hero__layer--mid {
  background-image: url(assets/hero-2-mid.png);
  z-index: 3;
  mix-blend-mode: screen;
  transform: translate3d(0, calc(-100% + var(--mid-scroll, 0px)), 0);
  animation: rd-hero-mid-in 900ms cubic-bezier(0.22, 1, 0.36, 1) 250ms forwards;
}
.rd-hero__layer--fg {
  background-image: url(assets/hero-3-fg.png);
  z-index: 4;
  transform: translateX(100%);
  animation: rd-hero-fg-in 1800ms cubic-bezier(0.16, 0.84, 0.34, 1) 400ms forwards;
}
@keyframes rd-hero-mid-in {
  from { transform: translate3d(0, -100%, 0); }
  to   { transform: translate3d(0, var(--mid-scroll, 0px), 0); }
}
@keyframes rd-hero-fg-in {
  from { transform: translateX(100%); }
  to   { transform: translateX(0);    }
}
@media (prefers-reduced-motion: reduce) {
  .rd-hero__layer--mid,
  .rd-hero__layer--fg { animation: none; transform: none; }
}
.rd-hero__scrim {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.05) 100%);
}
.rd-hero__inner {
  position: relative; z-index: 5;
  padding: 222px 32px 0 64px;
  display: flex; flex-direction: column; gap: 24px;
  max-width: 720px;
}
.rd-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 96px;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #fff;
  text-transform: uppercase;
}
.rd-hero__sub {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.4;
  color: var(--neutral-300);
  max-width: 520px;
}
.rd-hero__lead {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}
.rd-search {
  display: flex; gap: 8px; align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  width: 576px;
  backdrop-filter: blur(12px);
}
.rd-search__field {
  flex: 1;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
}
.rd-search__field img { width: 16px; height: 20px; }
.rd-search__field input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-family: var(--font-mono-ish);
  font-weight: 500;
  font-size: 16px;
  color: var(--neutral-900);
}
.rd-search__field input::placeholder { color: var(--neutral-500); }
.rd-search__submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.rd-search__submit-icon { display: none; }

/* ─── OEM Strip ────────────────────────────────────────────── */
.rd-oem {
  background: var(--red-deepest);
  border-top: 1px solid #000;
}
.rd-oem__title {
  height: 52px;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono-ish);
  font-weight: 700;
  font-size: 24px;
  color: #fff;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.rd-oem__row {
  height: 192px;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  gap: 96px;
  padding: 32px;
}
.rd-oem__logo {
  width: 100px; height: 100px;
  background-size: contain; background-position: center; background-repeat: no-repeat;
  opacity: 0.55;
  filter: grayscale(.4);
}

/* ─── Services (showroom) ──────────────────────────────────── */
.rd-services {
  position: relative;
  background: var(--grad-showroom);
  padding: 96px 32px 96px;
  overflow: hidden;
}
.rd-services__mark {
  position: absolute;
  left: 0; right: 0; top: 80px;
  font-family: var(--font-mono-ish);
  font-weight: 700;
  font-size: 240px;
  line-height: 1;
  color: #fff;
  opacity: 0.05;
  text-align: center;
  letter-spacing: 0;
  pointer-events: none;
}
.rd-services__title {
  position: relative; z-index: 2;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 48px;
  letter-spacing: -0.025em;
  text-align: center;
  color: #fff;
}
.rd-services__bar {
  position: relative; z-index: 2;
  margin: 18px auto 24px;
  width: 96px; height: 4px;
  background: var(--red-600);
}
.rd-services__stage {
  position: relative;
  width: 1011px; height: 620px;
  margin: 24px auto 0;
}
.rd-services__car {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.rd-pill {
  position: absolute;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(41,37,36,0.8);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  border-radius: 6px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  padding: 8px 16px;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
  color: #fff;
}
.rd-pill:hover { transform: translateY(-2px); background: rgba(41,37,36,0.95); }
.rd-pill.is-dimmed { opacity: 0.45; }
.rd-pill.is-dimmed:hover { opacity: 1; }
.rd-pill { transition: opacity 200ms ease, transform 200ms ease, background 200ms ease; }
.rd-pill span:first-child {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
}
.rd-pill__plus {
  width: 24px; height: 24px; border-radius: 12px;
  background: var(--red-800);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.rd-services__copy {
  position: relative; z-index: 2;
  max-width: 660px;
  margin-top: 32px;
  padding-left: 60px;
  display: flex; flex-direction: column; gap: 32px;
}
.rd-services__copy p {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.625;
  color: var(--neutral-400);
}
.rd-services__copy button { align-self: flex-start; }

/* ─── Service expand card ─────────────────────────────────── */
.rd-scard {
  position: absolute;
  width: 320px;
  /* height grows with content; ~440 with the placeholder image */
  background: rgba(23, 23, 23, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  padding: 12px 12px 20px;
  z-index: 4;
  animation: rd-scard-in 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes rd-scard-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1);    }
}
.rd-scard__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
  filter: grayscale(0.4) contrast(1.05);
}
.rd-scard__body {
  position: relative;
  padding: 20px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rd-scard__title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  line-height: 26px;
  color: #fff;
  padding-right: 56px;
}
.rd-scard__copy {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: var(--neutral-400);
  padding-right: 56px;
}
.rd-scard__cta {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--red-600);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 200ms ease, transform 200ms ease;
}
.rd-scard__cta:hover { background: var(--red-700, #c11a3a); transform: translate(2px, -2px); }
@media (prefers-reduced-motion: reduce) {
  .rd-scard { animation: none; }
}

/* ─── Social Proof ─────────────────────────────────────────── */
.rd-social {
  background: #000;
  padding: 96px 32px;
}
.rd-social__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px; margin-bottom: 48px;
}
.rd-social__head h2 {
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-weight: 900; font-size: 48px;
  letter-spacing: -0.05em;
  color: #fff;
}
.rd-social__head p {
  margin: 0; max-width: 640px;
  font-family: var(--font-sans);
  font-size: 20px; line-height: 1.4;
  color: var(--neutral-400);
}
.rd-social__rating { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-top: 8px; }
.rd-social__rating { position: relative; padding-right: 60px; }
.rd-social__stars { display: flex; gap: 4px; }
.rd-social__score {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}
.rd-social__g {
  position: absolute; right: 0; top: 0;
  width: 48px; height: 48px;
  border-radius: 12px; background: #fff;
  background-image: url(assets/google-logo.png);
  background-size: 32px; background-position: center; background-repeat: no-repeat;
}
.rd-social__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.rd-review {
  background: var(--neutral-100);
  border-radius: 16px;
  padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.rd-review header { display: flex; align-items: center; gap: 12px; position: relative; }
.rd-review__avatar {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--neutral-800) url(assets/avatar-1.jpg) center/cover no-repeat;
}
.rd-review__who { display: flex; flex-direction: column; }
.rd-review__name { font-family: var(--font-sans); font-weight: 700; font-size: 16px; color: var(--neutral-900); }
.rd-review__when { font-family: var(--font-mono-ish); font-weight: 500; font-size: 12px; letter-spacing: 0.10em; color: var(--neutral-500); text-transform: uppercase; }
.rd-review__google {
  position: absolute; right: 0; top: 8px;
  width: 20px; height: 20px;
  background: url(assets/google-logo.png) center/contain no-repeat;
  opacity: 0.4;
}
.rd-review__stars { display: flex; gap: 4px; padding: 4px 0; }
.rd-review__body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px; line-height: 1.6;
  color: var(--neutral-700);
}

/* ─── Resources ────────────────────────────────────────────── */
.rd-resources {
  background: #fff;
  padding: 96px 32px;
}
.rd-resources > header { display: flex; flex-direction: column; gap: 16px; margin-bottom: 34px; }
.rd-resources h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 48px;
  letter-spacing: -0.05em;
  color: var(--neutral-900);
}
.rd-resources > header p {
  margin: 8px 0 0; max-width: 660px;
  font-family: var(--font-sans); font-size: 20px; line-height: 1.4;
  color: var(--neutral-700);
}
.rd-resources__rail {
  display: flex; gap: 24px; overflow-x: auto;
  padding: 4px 0 32px;
  scroll-snap-type: x mandatory;
}
.rd-resources__rail::-webkit-scrollbar { height: 6px; }
.rd-resources__rail::-webkit-scrollbar-thumb { background: var(--neutral-200); border-radius: 3px; }
.rd-rcard {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--neutral-150);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.rd-rcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.rd-rcard.is-featured {
  flex: 0 0 380px;
  border-color: rgba(239,68,68,0.15);
  box-shadow: var(--shadow-md);
  transform: scale(1.06);
  transform-origin: center;
}
.rd-rcard__img {
  height: 200px; position: relative;
  background-size: cover; background-position: center; background-color: #111;
}
.rd-rcard__tag {
  position: absolute; left: 12px; top: 12px;
  background: var(--red-500);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.10em;
  padding: 4px 10px;
  border-radius: 5px;
  text-transform: uppercase;
}
.rd-rcard__body { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 8px; }
.rd-rcard__body h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--neutral-900);
}
.rd-rcard__body p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13px; line-height: 1.55;
  color: var(--neutral-700);
}
.rd-rcard__cta {
  align-self: flex-start;
  background: var(--red-500);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 3px;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
}
.rd-rcard__cta img { width: 10px; height: 10px; filter: brightness(0) invert(1); }
.rd-resources__cta { display: flex; justify-content: center; margin-top: 16px; }

/* ─── FAQ ──────────────────────────────────────────────────── */
.rd-faq {
  background: var(--neutral-100);
  border-top: 1px solid var(--neutral-150);
  padding: 101px 192px;
}
.rd-faq > header {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  margin-bottom: 64px;
}
.rd-faq h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 900; font-size: 48px;
  letter-spacing: -0.05em;
  color: var(--neutral-900);
  text-align: center;
}
.rd-faq__list { display: flex; flex-direction: column; gap: 16px; }
.rd-faq__item {
  border: 1px solid var(--neutral-200);
  background: #fff;
  overflow: hidden;
  transition: border-color .15s ease;
}
.rd-faq__item.is-open { border-color: var(--red-500); }
.rd-faq__item > button {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  background: transparent; border: 0; cursor: pointer; text-align: left;
  padding: 24px 24px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.025em;
  color: var(--neutral-900);
}
.rd-faq__chev { width: 12px; height: 7.4px; transition: transform .25s ease; }
.rd-faq__item.is-open .rd-faq__chev { transform: rotate(180deg); }
.rd-faq__answer {
  padding: 0 24px 24px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--neutral-700);
  max-width: 760px;
}

/* ─── Footer ───────────────────────────────────────────────── */
.rd-footer {
  background: var(--neutral-950);
  border-top: 1px solid var(--neutral-900);
  color: #fff;
}
.rd-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 80px 48px;
}
.rd-footer__brand p {
  margin: 16px 0 0;
  font-family: var(--font-sans);
  font-size: 14px; line-height: 1.625;
  color: var(--neutral-500);
}
.rd-footer__logo {
  width: 200px; height: 92px;
  background: url(assets/logo-raydar.png) left center/contain no-repeat;
}
.rd-footer__col { display: flex; flex-direction: column; gap: 16px; }
.rd-footer__h {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.rd-footer__col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.rd-footer__col a {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--neutral-500);
  text-decoration: none;
  transition: color .15s ease;
}
.rd-footer__col a:hover { color: #fff; }
.rd-footer__social { display: flex; gap: 12px; margin-top: 12px; }
.rd-footer__social a {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--neutral-900);
  display: inline-flex; align-items: center; justify-content: center;
}
.rd-footer__social img { width: 16px; filter: brightness(0) invert(1); }
.rd-footer__legal {
  background: rgba(23,23,23,0.5);
  padding: 32px 48px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono-ish);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.10em;
  color: var(--neutral-300);
}


/* ─── Location Finder ──────────────────────────────────────── */
.rd-finder {
  width: 100%;
  display: grid;
  grid-template-columns: 360px 1fr;
  background: var(--white);
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

/* Sidebar */
.rd-finder__sidebar {
  padding: 32px 24px 24px;
  border-right: 1px solid var(--border-light);
  display: flex; flex-direction: column;
  background: var(--white);
  min-height: 0;
  overflow: hidden;
}
.rd-finder__title {
  margin: 0 0 20px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 22px;
  line-height: 28px;
  color: var(--neutral-900);
}
.rd-finder__search {
  position: relative;
  display: flex; align-items: center;
  background: var(--neutral-150);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 0 12px;
  height: 44px;
  color: var(--neutral-500);
}
.rd-finder__search input {
  flex: 1; min-width: 0;
  background: transparent;
  border: 0; outline: 0;
  margin-left: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--neutral-900);
}
.rd-finder__search input::placeholder { color: var(--neutral-500); }
.rd-finder__use-loc {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 14px 0 18px;
  background: transparent; border: 0; padding: 0;
  font-family: var(--font-sans);
  font-weight: 700; font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--neutral-900);
  cursor: pointer;
}
.rd-finder__use-loc:hover { color: var(--red-700); }

/* Scrolling list */
.rd-finder__list {
  flex: 1;
  overflow-y: auto;
  margin: 0 -24px;
  padding: 0 24px 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.rd-finder__list::-webkit-scrollbar { width: 6px; }
.rd-finder__list::-webkit-scrollbar-thumb { background: var(--neutral-200); border-radius: 3px; }

/* Location card */
.rd-loc {
  position: relative;
  display: block; width: 100%;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 18px 18px 16px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  font-family: var(--font-sans);
}
.rd-loc:hover { border-color: var(--neutral-400); }
.rd-loc.is-selected {
  border-color: var(--red-500);
  box-shadow: -3px 0 0 0 var(--red-500);
}
.rd-loc__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
}
.rd-loc__name {
  margin: 0;
  font-weight: 700;
  font-size: 15px;
  line-height: 20px;
  color: var(--neutral-900);
}
.rd-loc__distance {
  flex-shrink: 0;
  font-family: var(--font-mono-ish);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--red-500);
}
.rd-loc__addr {
  margin: 8px 0 10px;
  font-size: 12px;
  line-height: 18px;
  color: var(--neutral-500);
}
.rd-loc__addr.is-accent { color: var(--red-700); }
.rd-loc__status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700; font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--neutral-700);
  margin-bottom: 14px;
}
.rd-loc__dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
}
.rd-loc__dot--open   { background: #16A34A; box-shadow: 0 0 0 3px rgba(22,163,74,0.15); }
.rd-loc__dot--closed { background: #F59E0B; box-shadow: 0 0 0 3px rgba(245,158,11,0.15); }
.rd-loc__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.rd-loc__btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 38px;
  border-radius: 3px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  transition: filter 160ms ease;
}
.rd-loc__btn:hover { filter: brightness(1.1); }
.rd-loc__btn--dark { background: var(--neutral-900); color: var(--white); }
.rd-loc__btn--red  { background: var(--red-500);     color: var(--white); }

/* Map column */
.rd-finder__map {
  position: relative;
  overflow: hidden;
  background: #EFEAE0;
  height: 100%;
  overscroll-behavior: contain;
  touch-action: none;
}
.rd-map__viewport {
  position: absolute; inset: 0;
  transform-origin: center center;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.rd-map__svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}

/* Pins */
.rd-map__pin {
  position: absolute;
  transform: translate(-50%, -100%);
  background: transparent; border: 0; padding: 0;
  cursor: pointer;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.rd-map__pin:hover { transform: translate(-50%, -104%); }
.rd-map__pin.is-selected { transform: translate(-50%, -100%) scale(1.18); z-index: 3; }
.rd-map__pin-diamond {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: var(--red-500);
  transform: rotate(45deg);
  border-radius: 3px;
  border: 2px solid var(--white);
}
.rd-map__pin-glyph {
  width: 8px; height: 8px;
  background: var(--white);
  border-radius: 50%;
  transform: rotate(-45deg);
}
.rd-map__pin.is-selected .rd-map__pin-diamond { background: var(--red-700); }

/* Info card */
.rd-map__info {
  position: absolute;
  width: 320px;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  padding: 22px 24px 22px;
  z-index: 4;
  font-family: var(--font-sans);
  animation: rd-map-info-in 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes rd-map-info-in {
  from { opacity: 0; transform: translateY(4px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
.rd-map__info-tag {
  display: inline-block;
  background: var(--red-500);
  color: var(--white);
  font-weight: 700; font-size: 10px;
  letter-spacing: 0.10em;
  padding: 5px 9px;
  border-radius: 2px;
  margin-bottom: 14px;
}
.rd-map__info-name {
  margin: 0 0 10px;
  font-weight: 800;
  font-size: 22px;
  line-height: 28px;
  color: var(--neutral-900);
}
.rd-map__info-meta {
  display: flex; align-items: center; gap: 6px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--neutral-900);
  margin-bottom: 16px;
}
.rd-map__info-rating {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--neutral-900);
}
.rd-map__info-rating svg { color: var(--neutral-900); }
.rd-map__info-dim { color: var(--neutral-500); font-weight: 500; }
.rd-map__info-dot { color: var(--neutral-300); }
.rd-map__info-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 22px;
  color: var(--neutral-700);
}
.rd-map__info-list li {
  position: relative;
  padding-left: 14px;
}
.rd-map__info-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--neutral-700);
}
.rd-map__info-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red-500); color: var(--white);
  padding: 12px 18px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 160ms ease;
}
.rd-map__info-cta:hover { background: var(--red-700); }

/* Map controls */
.rd-map__zoom {
  position: absolute;
  right: 16px; bottom: 84px;
  display: flex; flex-direction: column;
  background: var(--white);
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  overflow: hidden;
}
.rd-map__zoom button {
  width: 36px; height: 36px;
  background: var(--white);
  border: 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 20px;
  font-weight: 400;
  color: var(--neutral-700);
  cursor: pointer;
}
.rd-map__zoom button:last-child { border-bottom: 0; }
.rd-map__zoom button:hover { background: var(--neutral-150); }
.rd-map__layers {
  position: absolute;
  right: 16px; bottom: 32px;
  width: 36px; height: 36px;
  background: var(--red-500); color: var(--white);
  border: 0; border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.rd-map__layers:hover { background: var(--red-700); }
.rd-map__attrib {
  position: absolute;
  right: 64px; bottom: 12px;
  font-family: system-ui;
  font-size: 10px;
  color: rgba(0,0,0,0.55);
  background: rgba(255,255,255,0.6);
  padding: 2px 6px;
  border-radius: 2px;
}


/* ─── Mobile (container queries) ───────────────────────────── */
/* Fires when .rd-page renders narrower than 720px — true responsive on the
   real site, and also in the inline phone-mockup wrapper used by the deck. */

@container page (max-width: 720px) {

  /* Top Nav — hamburger left, logo center, phone+pin icons right */
  .rd-nav { height: 64px; padding: 0 16px; }
  .rd-nav__hamburger    { display: flex; }
  .rd-nav__mobile-icons { display: flex; }
  .rd-nav__links,
  .rd-nav__cta          { display: none; }
  .rd-nav__logo {
    width: 132px; height: 36px;
    /* Center the logo: pull from both sides with auto margins so it sits
       optically centered between hamburger and icons */
    margin: 0 auto;
  }

  /* Hero — title at top, search anchored at bottom; subtitle hidden */
  .rd-hero {
    height: auto;
    min-height: 620px;
    display: flex; flex-direction: column;
  }
  /* BG (road/forest) stays full-bleed via cover */
  .rd-hero__layer--bg,
  .rd-hero__bg {
    background-size: cover !important;
    background-position: center center !important;
  }
  /* Light streaks — also full-bleed; screen blend reads fine when cropped */
  .rd-hero__layer--mid {
    background-size: cover !important;
    background-position: center center !important;
  }
  /* FG (car) — tight-cropped mobile asset, positioned off-right and
     sized to fill the band between hero title and search bar */
  .rd-hero__layer--fg {
    background-image: url(assets/hero-3-fg-mobile.png) !important;
    background-size: auto 36% !important;
    background-position: right 0 bottom 110px !important;
  }
  .rd-hero__scrim {
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.10) 60%, rgba(0,0,0,0.75) 100%);
  }
  .rd-hero__inner {
    flex: 1;
    padding: 28px 20px 28px;
    max-width: 100%;
    gap: 12px;
    min-height: inherit;
  }
  .rd-hero__title {
    font-size: 56px;
    line-height: 0.95;
    letter-spacing: -0.04em;
  }
  .rd-hero__sub { display: none; }
  /* Push the lead + search to the bottom of the hero */
  .rd-hero__lead {
    margin-top: auto;
    font-size: 16px;
    font-weight: 600;
  }
  .rd-search {
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 6px 6px 6px 6px;
    width: 100%;
    border-radius: 100px;
  }
  .rd-search__field { flex: 1; min-width: 0; padding: 10px 16px; }
  .rd-search__field input { font-size: 14px; }
  .rd-search__submit {
    flex: 0 0 48px;
    width: 48px; height: 48px;
    padding: 0;
    border-radius: 50%;
    gap: 0;
  }
  .rd-search__submit-text { display: none; }
  .rd-search__submit-icon { display: inline-block; color: #fff; }

  /* OEM strip */
  .rd-oem__title { height: 40px; font-size: 13px; letter-spacing: 0.2em; }
  .rd-oem__row {
    height: auto;
    flex-wrap: wrap;
    gap: 18px 24px;
    padding: 18px 16px;
    justify-content: center;
  }
  .rd-oem__logo { width: 58px; height: 58px; }

  /* Services — keep car visible with small "+" circles overlaid; title and
     copy stack above/below as in the CARSTAR reference */
  .rd-services {
    background: var(--neutral-925);
    padding: 48px 16px 48px;
    text-align: center;
  }
  .rd-services__mark {
    position: absolute;
    top: 100px; left: 0; right: 0;
    font-size: 96px;
    line-height: 1;
    opacity: 0.04;
    text-align: center;
  }
  .rd-services__title { font-size: 32px; }
  .rd-services__bar { margin: 14px auto 24px; }
  .rd-services__stage {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
    margin: 8px 0 0;
    display: block;
  }
  .rd-services__car { display: block; }

  /* Pills become small red "+" circles anchored on the car */
  .rd-pill {
    position: absolute;
    width: 36px; height: 36px;
    padding: 0;
    gap: 0;
    background: var(--red-500);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transform: translate(-50%, -50%);
    backdrop-filter: none;
  }
  .rd-pill:hover { transform: translate(-50%, -50%) scale(1.08); background: var(--red-500); }
  .rd-pill.is-dimmed { opacity: 1; }
  .rd-pill > span:first-child { display: none; }   /* hide label */
  .rd-pill__plus {
    width: 100%; height: 100%;
    background: transparent;
    color: #fff;
    font-size: 22px;
    border-radius: 50%;
  }

  /* Expand card on mobile: full-width, anchored below the car */
  .rd-scard {
    position: absolute;
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;
    bottom: auto !important;
    width: 100%;
    margin-top: 12px;
    transform-origin: top center !important;
  }
  .rd-scard__img { aspect-ratio: 16 / 10; }

  .rd-services__copy {
    margin-top: 28px;
    padding-left: 0;
    gap: 20px;
    text-align: left;
  }
  .rd-services__copy p { font-size: 14px; font-weight: 400; color: var(--neutral-300); }
  .rd-services__copy button {
    width: 100%;
    align-self: stretch;
    border-radius: 100px;
    padding: 16px;
    font-size: 16px;
  }

  /* Social proof */
  .rd-social { padding: 56px 16px; }
  .rd-social__head { flex-direction: column; gap: 20px; margin-bottom: 28px; }
  .rd-social__head h2 { font-size: 32px; }
  .rd-social__head p { font-size: 15px; }
  .rd-social__rating { flex-direction: row; align-items: center; padding-right: 0; gap: 12px; }
  .rd-social__rating .rd-social__g { position: static; }
  .rd-social__grid { grid-template-columns: 1fr; gap: 12px; }
  .rd-review { padding: 22px; }

  /* Resources */
  .rd-resources { padding: 56px 16px; }
  .rd-resources h2 { font-size: 32px; }
  .rd-resources > header p { font-size: 15px; }
  .rd-resources__rail { gap: 14px; }
  .rd-rcard { flex: 0 0 76%; }
  .rd-rcard.is-featured { flex: 0 0 80%; transform: none; }
  .rd-rcard__img { height: 170px; }

  /* FAQ */
  .rd-faq { padding: 56px 16px; }
  .rd-faq h2 { font-size: 32px; }
  .rd-faq > header { margin-bottom: 28px; }
  .rd-faq__item > button { padding: 18px 18px; font-size: 15px; }
  .rd-faq__answer { padding: 0 18px 18px; font-size: 14px; }

  /* Footer */
  .rd-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 20px;
  }
  .rd-footer__logo { width: 160px; height: 72px; }
  .rd-footer__brand p { font-size: 13px; }
  .rd-footer__legal {
    flex-direction: column;
    gap: 8px;
    padding: 20px 20px;
    text-align: center;
    align-items: center;
  }
}
