/* RoadPilot brand — black / white (logo theme) */
:root {
  --rp-black: #000000;
  --rp-white: #ffffff;
  --rp-ink: #0a0a0a;
  --rp-mute: rgba(255, 255, 255, 0.55);
}

/* App start preloader — pure B/W like logo */
.rp-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background: var(--rp-black);
  color: var(--rp-white);
  transition: opacity .5s ease, visibility .5s ease;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}
.rp-preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.rp-preloader-inner {
  position: relative;
  text-align: center;
  padding: 1.5rem;
  width: min(88vw, 420px);
  animation: rp-fade-up .7s ease both;
}
.rp-preloader-logo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 1.35rem;
  filter: contrast(1.05);
}
.rp-preloader-road {
  width: 100%;
  height: 2px;
  margin: 0 auto;
  background: rgba(255, 255, 255, .18);
  border-radius: 99px;
  overflow: hidden;
}
.rp-preloader-road span {
  display: block;
  height: 100%;
  width: 34%;
  border-radius: inherit;
  background: var(--rp-white);
  animation: rp-dash 1.2s ease-in-out infinite;
}
@keyframes rp-dash {
  0% { transform: translateX(-130%); }
  100% { transform: translateX(300%); }
}
@keyframes rp-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Wordmark — dual assets (no CSS invert) */
.rp-wordmark {
  height: auto;
  max-width: min(220px, 72vw);
  background: transparent !important;
  filter: none !important;
}
body.rh-mobility .rh-mob-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
}
body.rh-mobility .rh-mob-brand .rp-wordmark {
  max-width: 140px;
}
body.rh-app-gate .rh-gate-brand-logo {
  display: block;
  margin-bottom: 1.25rem;
}
body.rh-app-gate .rh-gate-brand-logo .rp-wordmark {
  max-width: min(280px, 78vw);
  margin: 0 auto;
}
body.rh-cv .rh-site-header .rp-wordmark {
  max-width: 150px;
}
body.rh-cv .cv-footer-logo .rp-wordmark {
  max-width: 200px;
  height: 40px;
}
body.rh-cv .cv-hero-brand-wrap .rp-wordmark,
.cv-hero-copy .rp-wordmark {
  max-width: min(280px, 80vw);
  margin-bottom: .75rem;
}

/* Gate — light card (logo black). Don't force full-page black. */
body.rh-app-gate {
  color: var(--rp-ink);
}
body.rh-app-gate .rh-gate-brand-logo .rp-wordmark {
  max-width: min(240px, 82vw);
  filter: none !important;
}

/* Offer banners — keep existing below */
.rp-offer-story {
  display: grid;
  gap: 1.25rem;
}
.rp-offer-banner {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  min-height: 200px;
  color: #fff;
  text-decoration: none;
  background: #1a1a1a;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
}
.rp-offer-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .55s ease;
}
.rp-offer-banner:hover img {
  transform: scale(1.06);
}
.rp-offer-banner-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 15, 18, .15) 0%, rgba(12, 15, 18, .72) 55%, rgba(12, 15, 18, .92) 100%);
}
.rp-offer-banner-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 200px;
  padding: 1.15rem 1.2rem 1.25rem;
}
.rp-offer-banner .tag {
  align-self: flex-start;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .28rem .55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, .92);
  color: #111;
  margin-bottom: .65rem;
}
.rp-offer-banner h3 {
  margin: 0 0 .35rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.rp-offer-banner p {
  margin: 0 0 .75rem;
  font-size: .88rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, .82);
  max-width: 36rem;
}
.rp-offer-banner .story {
  margin: 0 0 .85rem;
  font-size: .8rem;
  font-style: italic;
  color: rgba(255, 255, 255, .68);
  line-height: 1.45;
}
.rp-offer-banner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.rp-offer-banner code {
  font-family: ui-monospace, monospace;
  font-size: .85rem;
  font-weight: 700;
  padding: .35rem .55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  letter-spacing: .04em;
}
.rp-offer-banner .rp-offer-cta {
  font-size: .78rem;
  font-weight: 700;
  opacity: .9;
}
.cv-offer-banners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}
@media (max-width: 860px) {
  .cv-offer-banners { grid-template-columns: 1fr; }
}
.cv-offer-banners .rp-offer-banner {
  min-height: 260px;
}
.cv-offer-banners .rp-offer-banner-body {
  min-height: 260px;
}
body.rh-mobility .rh-coupon-card.has-banner {
  padding: 0;
  overflow: hidden;
}
body.rh-mobility .rh-coupon-banner {
  position: relative;
  height: 132px;
  overflow: hidden;
}
body.rh-mobility .rh-coupon-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.rh-mobility .rh-coupon-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, .55));
}
body.rh-mobility .rh-coupon-card.has-banner .rh-coupon-inner {
  padding: .9rem 1rem 1rem;
}
body.rh-mobility .rh-home-offers-scroll {
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: .15rem 0 .35rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  scrollbar-width: thin;
}
body.rh-mobility .rh-home-offer-tile {
  flex: 0 0 min(78%, 280px);
  scroll-snap-align: start;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 148px;
  color: #fff;
  text-decoration: none;
  max-width: 280px;
}
body.rh-mobility .rh-home-offer-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.rh-mobility .rh-home-offer-tile .fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, .78));
}
body.rh-mobility .rh-home-offer-tile .copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 148px;
  padding: .85rem .9rem;
}
body.rh-mobility .rh-home-offer-tile strong {
  font-size: .95rem;
  line-height: 1.25;
}
body.rh-mobility .rh-home-offer-tile small {
  opacity: .8;
  font-size: .72rem;
  margin-top: .2rem;
}
