/* ==========================================================================
   RideLens
   Near-black, RideCheck blue, and the posters doing the talking.
   ========================================================================== */

.theme-ridelens {
  --accent: #3ea7fd;
  --accent-2: #8fcbff;
  --rl-grad: linear-gradient(135deg, #4db8ff, #006bf5);
}

.rl-hero::before {
  background:
    radial-gradient(42% 52% at 76% 50%, rgba(62, 167, 253, 0.2), transparent 70%),
    radial-gradient(28% 36% at 90% 85%, rgba(249, 114, 26, 0.08), transparent 70%);
}

.rl-title {
  display: flex;
  align-items: center;
  gap: 0.22em;
}

.rl-title__icon {
  width: 0.78em;
  height: 0.78em;
  border-radius: 22%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 18px 40px -16px rgba(62, 167, 253, 0.6);
}

.rl-hero .lead em {
  font-style: italic;
  color: var(--fg);
}

/* ── Hero: three posters fanned out ──────────────────────────────────────── */

.rl-fan {
  position: relative;
  height: clamp(420px, 44vw, 600px);
}

.rl-fan__card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(180px, 19vw, 270px);
  aspect-ratio: 9 / 16;
  height: auto;
  object-fit: cover;
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 90px -30px rgba(0, 0, 0, 0.85);
  transition: transform 0.9s var(--ease-out);
}

.rl-fan__card--c {
  z-index: 2;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 50px 100px -30px rgba(0, 0, 0, 0.9),
    0 0 120px -30px rgba(62, 167, 253, 0.4);
}

.rl-fan__card--l {
  transform: translate(-112%, -47%) rotate(-9deg);
}

.rl-fan__card--r {
  transform: translate(12%, -47%) rotate(9deg);
}

.rl-fan:hover .rl-fan__card--l {
  transform: translate(-122%, -48%) rotate(-12deg);
}

.rl-fan:hover .rl-fan__card--r {
  transform: translate(22%, -48%) rotate(12deg);
}

.rl-fan__chip {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--accent-2);
  background: rgba(8, 9, 11, 0.82);
  border: 1px solid rgba(62, 167, 253, 0.32);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

@media (max-width: 900px) {
  .rl-fan {
    height: clamp(380px, 110vw, 520px);
  }

  .rl-fan__card {
    width: clamp(150px, 42vw, 230px);
  }

  .rl-fan__card--l {
    transform: translate(-100%, -47%) rotate(-8deg);
  }

  .rl-fan__card--r {
    transform: translate(0%, -47%) rotate(8deg);
  }
}

/* ── Before / after ──────────────────────────────────────────────────────── */

.rl-compare {
  display: grid;
  gap: 18px;
}

.rl-compare__frame {
  --pos: 50%;
  position: relative;
  aspect-ratio: 1800 / 1164;
  border-radius: var(--r-l);
  overflow: hidden;
  background: #08090b;
  border: 1px solid var(--line);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.9);
  touch-action: pan-y;
}

.rl-compare__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/* The edit is on top, clipped to the right of the handle. */
.rl-compare__after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--pos));
}

.rl-compare__after::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.rl-compare__handle {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: var(--pos);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  color: #08090b;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  transition: transform 0.3s var(--ease-spring);
}

.rl-compare__handle .i {
  font-size: 15px;
  stroke-width: 2.4;
}

.rl-compare__frame:has(.rl-compare__range:focus-visible) .rl-compare__handle {
  box-shadow: 0 0 0 4px var(--accent), 0 10px 30px rgba(0, 0, 0, 0.45);
}

.rl-compare__frame:active .rl-compare__handle {
  transform: translate(-50%, -50%) scale(0.92);
}

/* The real control: a full-size, invisible range input. */
.rl-compare__range {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}

.rl-compare__tag {
  position: absolute;
  z-index: 2;
  top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(8, 9, 11, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.rl-compare__tag--before {
  left: 16px;
}

.rl-compare__tag--after {
  right: 16px;
  background: rgba(62, 167, 253, 0.75);
}

.rl-compare__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.rl-seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.rl-seg button {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-3);
  transition: color 0.25s, background-color 0.3s;
}

.rl-seg button:hover {
  color: var(--fg);
}

.rl-seg button[aria-pressed="true"] {
  color: #fff;
  background: var(--rl-grad);
  box-shadow: 0 6px 18px -6px rgba(0, 107, 245, 0.6);
}

.rl-credit {
  max-width: 620px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--fg-3);
}

/* ── Posters rail ────────────────────────────────────────────────────────── */

.rl-rail {
  gap: 16px;
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  outline: none;
}

.rl-rail:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.rl-poster {
  width: clamp(190px, 21vw, 260px);
  border-radius: 16px;
  overflow: hidden;
  background: #08090b;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  transition: transform 0.6s var(--ease-out), border-color 0.4s;
}

.rl-poster:hover {
  transform: translateY(-6px);
  border-color: var(--line-2);
}

.rl-poster img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  cursor: zoom-in;
}

.rl-rail-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.rl-rail-foot .ws-note {
  margin-top: 0;
}

.rl-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--fg-2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  transition: color 0.25s, background-color 0.25s;
}

.rl-arrow:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.09);
}

/* ── Stickers + Reel ─────────────────────────────────────────────────────── */

.rl-duo {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.rl-stickers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.rl-stickers img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: transform 0.6s var(--ease-out);
}

.rl-stickers img:hover {
  transform: translateY(-4px);
}

.rl-reel {
  display: grid;
  justify-items: center;
  gap: 18px;
}

/* Reels are 9:16, taller than a 402:874 phone is wide — so the frame grows
   around the video instead of cropping its sides. Smaller corners keep the
   type in the corners of the export visible. */
.rl-reel .phone {
  aspect-ratio: auto;
  border-radius: calc(var(--pw) * 0.12);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 40px 90px -30px rgba(0, 0, 0, 0.8),
    0 0 120px -30px rgba(62, 167, 253, 0.35);
}

.rl-reel .phone__screen {
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: calc(var(--pw) * 0.09);
}

.rl-reel__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.rl-reel figcaption {
  max-width: 280px;
  text-align: center;
  font-size: 13.5px;
  color: var(--fg-3);
}

@media (max-width: 900px) {
  .rl-duo {
    grid-template-columns: minmax(0, 1fr);
  }

  .rl-stickers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Honest status ───────────────────────────────────────────────────────── */

.rl-next {
  margin-top: 16px;
  border-color: rgba(255, 179, 64, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 179, 64, 0.05), transparent 70%),
    var(--surface);
}

.rl-next__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffd08a;
}

.rl-next p:last-child {
  margin-top: 12px;
  max-width: 820px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-2);
}

@media (prefers-reduced-motion: reduce) {
  .rl-fan__card,
  .rl-poster,
  .rl-stickers img {
    transition: none;
  }
}
