/* ============================
   INFO SECTIONS - Isolated styles for Thrifters & Resellers pages
   These classes are COMPLETELY INDEPENDENT from other page styles
   ============================ */

/* ---------- INFO SECTION ROW ---------- */
.info-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 75vh;
  padding: 60px 0;
  background: #ffffff;
  box-sizing: border-box;
}

/* Home page info sections: soft radial gradient background with animation */
.home-page .info-section {
  position: relative;
  background: linear-gradient(180deg, #e8f8f6 0%, #f0f7ff 50%, #e8f8f6 100%);
  overflow: hidden;
}

/* Reusable animated gradient: smooth continuous rotation, no keyframe cuts.
   Apply .animated-gradient-bg to any section for a seamless rotating gradient (no jumps).
   Home page info sections use it by default. */
.animated-gradient-bg::before,
.home-page .info-section::before {
  content: '';
  position: absolute;
  /* Large centered layer so when rotated it still fully covers the section */
  left: -50%;
  top: -50%;
  width: 200%;
  height: 200%;
  z-index: 0;
  pointer-events: none;
  background: 
    radial-gradient(ellipse 70% 50% at 25% 25%, rgba(0, 255, 215, 0.4) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 75% 75%, rgba(56, 93, 245, 0.25) 0%, transparent 55%);
  /* Single smooth rotation: 0→360deg is seamless at loop, no direction changes */
  animation: gradientSmoothRotate 30s linear infinite;
}

/* Sections using the animated bg need overflow hidden and content above the layer */
.animated-gradient-bg {
  position: relative;
  overflow: hidden;
}
.animated-gradient-bg > *,
.home-page .info-section > * {
  position: relative;
  z-index: 1;
}

/* Single smooth rotation: no discrete keyframes, no direction changes, seamless loop */
@keyframes gradientSmoothRotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* How 2 only: flip gradient vertically + reverse rotation direction */
.home-page #info-2::before {
  background:
    radial-gradient(ellipse 70% 50% at 25% 75%, rgba(0, 255, 215, 0.4) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 75% 25%, rgba(56, 93, 245, 0.25) 0%, transparent 55%);
  animation: gradientSmoothRotate 30s linear infinite reverse;
}

/* ---------- WASHED OUT BACKGROUND VARIANTS ---------- */
/* Light indigo background */
.bg-indigo-wash {
  background: rgba(56, 93, 245, 0.06);
}

/* Light cyan background */
.bg-cyan-wash {
  background: rgba(139, 221, 208, 0.08);
}

/* White background (default/explicit) */
.bg-white {
  background: #ffffff;
}

/* Thrifters - Fun pastel tones (legacy, use thrifters-info-bg for unified look) */
.bg-mint-wash {
  background: rgba(139, 221, 208, 0.12);
}
.bg-periwinkle-wash {
  background: rgba(86, 120, 255, 0.08);
}
.bg-teal-wash {
  background: rgba(100, 200, 190, 0.10);
}

/* Thrifters page - primary teal + purple rotating gradient (thrifters only, not index) */
.thrifters-page .thrifters-info-bg,
.thrifters-info-bg {
  position: relative;
  background: linear-gradient(180deg, #e8f8f6 0%, #f5f0ff 50%, #e8f8f6 100%);
  overflow: hidden;
}
.thrifters-page .thrifters-info-bg > *,
.thrifters-info-bg > * {
  position: relative;
  z-index: 1;
}
.thrifters-page .thrifters-info-bg::before,
.thrifters-info-bg::before {
  content: '';
  position: absolute;
  left: -50%;
  top: -50%;
  width: 200%;
  height: 200%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 25% 25%, rgba(0, 199, 169, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 75% 75%, rgba(94, 97, 255, 0.28) 0%, transparent 55%);
  animation: gradientSmoothRotate 30s linear infinite;
}
.thrifters-page #info-2.thrifters-info-bg::before,
#info-2.thrifters-info-bg::before {
  background:
    radial-gradient(ellipse 70% 50% at 25% 75%, rgba(0, 199, 169, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 75% 25%, rgba(94, 97, 255, 0.28) 0%, transparent 55%);
  animation: gradientSmoothRotate 30s linear infinite reverse;
}

/* Resellers - Slick blue tones */
.bg-deep-blue-wash {
  background: rgba(45, 75, 180, 0.07);
}
.bg-royal-blue-wash {
  background: rgba(60, 100, 200, 0.06);
}
.bg-navy-wash {
  background: rgba(40, 65, 160, 0.08);
}
.bg-steel-blue-wash {
  background: rgba(70, 110, 190, 0.06);
}

/* ---------- INFO INNER CONTAINER ---------- */
.info-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  box-sizing: border-box;
  background: transparent;
}

/* ---------- INFO TEXT ---------- */
.info-text {
  flex: 0 0 56%;
  max-width: 56%;
}

/* ---------- INFO MEDIA ---------- */
.info-media {
  flex: 0 0 40%;
  max-width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: transparent;
}

/* Ensure ALL .how-media containers have transparent backgrounds - no exceptions */
.how-media,
.info-section .how-media,
.home-page .info-section .how-media,
.home-page .info-inner .how-media,
.info-inner .how-media,
#info-1 .how-media,
#info-2 .how-media,
#info-3 .how-media {
  background: transparent !important;
  background-color: transparent !important;
}

/* ---------- INFO IMAGE ---------- */
.info-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Home page: consistent image height across info 1, 2, 3 */
.home-page #info-1 .photoscan-collage,
.home-page #info-2 .how-media,
.home-page #info-3 .how-media {
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-page #info-2 .how-img,
.home-page #info-3 .how-img {
  height: 520px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

/* Transparent (VP9 alpha) listing video — replaces the static #info-2/#info-3 graphics.
   #info-2's element serves both breakpoints so we don't decode two copies; #info-3
   keeps its own mobile still and hides the video below 880px (see the mobile block). */
.home-page #info-2 .how-video-listing,
.home-page #info-3 .how-video-listing {
  height: 520px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: transparent;
  display: block;
}

/* Safari renders VP9 alpha as an opaque black box, so a probe swaps in the PNG.
   The fallback is hidden until `.no-alpha-video` is set on <html>; the img is
   lazy so browsers that never need it don't pay for the download. */
.home-page #info-2 .how-video-listing-fallback,
.home-page #info-3 .how-video-listing-fallback {
  display: none;
  height: 520px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.no-alpha-video .home-page #info-2 .how-video-listing,
.no-alpha-video .home-page #info-3 .how-video-listing,
html.no-alpha-video #info-2 .how-video-listing,
html.no-alpha-video #info-3 .how-video-listing {
  display: none;
}
.no-alpha-video .home-page #info-2 .how-video-listing-fallback,
.no-alpha-video .home-page #info-3 .how-video-listing-fallback,
html.no-alpha-video #info-2 .how-video-listing-fallback,
html.no-alpha-video #info-3 .how-video-listing-fallback {
  display: block;
}

/* .how-media is only 464px wide at desktop, so `object-fit: contain` scales these
   by WIDTH and leaves the height slack — raising height alone paints nothing bigger.
   integrations.webm is cropped tight to the phone (604x980) so that 464px of width
   goes to artwork instead of empty keyed space; this taller box then lets the phone
   grow past #info-2's. Desktop only in effect: the mobile block hides both of these
   below 880px in favour of .info-mobile-img. Keep video and fallback in lockstep. */
.home-page #info-3 .how-video-listing,
.home-page #info-3 .how-video-listing-fallback {
  height: 560px;
}

/* Photoscan collage: phone photo top-left, scan video bottom-right */
.photoscan-collage {
  position: relative;
  width: 100%;
  height: 520px;
}

.photoscan-collage__photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 108%;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
  z-index: 1;
}

/* marketplace-comps-native.png is a tall native capture (937x1571, aspect 0.60)
   where the old comps graphic was nearly square (0.91). With height:auto the same
   width would render ~53% taller and spill far past the collage, so the width is
   trimmed. It sits low (~100px below where the height alone would put it) so it
   clears the phone's scan area — the headphones being scanned stay visible — which
   means it overhangs the collage more than the old graphic did. */
.photoscan-collage__comps {
  position: absolute;
  top: 40%;
  right: -15%;
  left: auto;
  width: 56%;
  height: auto;
  background: none;
  z-index: 2;
}

.photoscan-collage__scan {
  position: absolute;
  bottom: 0;
  right: -65%;
  width: 93%;
  height: auto;
  border-radius: 14px;
  z-index: 3;
}

/* Mobile-only images for info sections 2 and 3 */
.info-mobile-img {
  display: none;
}

/* ---------- INFO BOX (feature highlight boxes) ---------- */
.info-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  margin-top: 14px;
  margin-bottom: 16px;
}

/* Warning variant */
.info-box.warning {
  background: #FFF5F5;
}

/* ---------- INFO LIST ---------- */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-size: 0.95em; /* Slightly under body copy, as before the rem->em pass */
  color: var(--text-dark);
  line-height: 1.5;
}

.info-list li::before {
  content: "";
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  background: url('images/icon-checkcircle.svg') no-repeat center / contain;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Warning list styling */
.info-box.warning .info-list li {
  color: #8B0000;
}

.info-box.warning .info-list li::before {
  content: "";
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  background: url('images/icon-exclamationcircle.svg') no-repeat center / contain;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- BACKGROUNDS HANDLED BY bg-indigo-wash AND bg-cyan-wash CLASSES ---------- */

/* ---------- MARKETPLACE ICONS ROW ---------- */
.info-marketplaces {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
}

.info-marketplaces img {
  height: 36px;
  width: auto;
}

/* ---------- #info-3 SATURN-RING ORBIT ----------
   The marketplace icons ride a tilted ellipse around the phone: the near half of
   the sweep paints over the graphic, the far half behind it, like a planet's ring.

   Position comes from cos()/sin() of --orbit-a, a registered custom property, so a
   single keyframe pair (0deg -> 360deg) drives a true elliptical path instead of a
   polygon of translate keyframes. Depth cues (scale, opacity) are derived from the
   same angle, so they stay in sync for free.

   Layering rules that are easy to break:
   - .orbit-stage is the stacking context (isolation), the graphic sits at z-index 2,
     satellites flip between 3 (near) and 1 (far).
   - .orbit-belt must NOT create a stacking context — no transform, filter, opacity,
     will-change or z-index on it — or every satellite would be trapped at the ring's
     single z-index and could never cross behind the graphic. */
@property --orbit-a {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.home-page #info-3 .orbit-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

/* Fallback (no html.orbit-ok): the ring degrades to the same static icon row it
   replaced, parked under the graphic. Same 36px sizing as .info-marketplaces. */
.home-page #info-3 .orbit-belt {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.home-page #info-3 .orbit-sat img {
  display: block;
  height: 36px;
  width: auto;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.16));
}

html.orbit-ok .home-page #info-3 .orbit-stage {
  flex-direction: row;
  gap: 0;
}

html.orbit-ok .home-page #info-3 .orbit-belt {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}

html.orbit-ok .home-page #info-3 .orbit-stage > .how-video-listing,
html.orbit-ok .home-page #info-3 .orbit-stage > .how-video-listing-fallback {
  position: relative;
  z-index: 2;
}

html.orbit-ok .home-page #info-3 .orbit-sat {
  /* 7 satellites; the literal 7 is shared by the angle offset and the phase delay */
  --dur: 26s;
  --rx: 205px;
  --ry: 78px;
  /* Positive tilt so the ring's plane leans with the phone in integrations.webm,
     which is itself rotated a few degrees clockwise. */
  --tilt: 8deg;
  --size: 54px;
  /* Static spread also doubles as the animation's start phase, so nothing jumps
     when the animation takes over the property. */
  --orbit-a: calc(360deg / 7 * var(--i));
  /* 0 = far side of the ring, 1 = nearest the viewer */
  --depth: calc(0.5 + 0.5 * sin(var(--orbit-a)));

  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--size);
  height: var(--size);
  /* The tilt pair rotates the offset vector without rotating the icon itself. */
  transform:
    translate(-50%, -50%)
    rotate(var(--tilt))
    translate(calc(var(--rx) * cos(var(--orbit-a))), calc(var(--ry) * sin(var(--orbit-a))))
    rotate(calc(-1 * var(--tilt)))
    scale(calc(0.8 + 0.28 * var(--depth)));
  opacity: calc(0.62 + 0.38 * var(--depth));
  will-change: transform, opacity;
  animation: orbitSweep var(--dur) linear infinite, orbitCross var(--dur) linear infinite;
  animation-delay: calc(-1 * var(--dur) / 7 * var(--i));
}

html.orbit-ok .home-page #info-3 .orbit-sat img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.22));
}

@keyframes orbitSweep {
  from { --orbit-a: 0deg; }
  to   { --orbit-a: 360deg; }
}

/* z-index can't be interpolated, so the near/far swap happens at 0% and 50% — the
   ring's left and right extremes, where a satellite is clear of the graphic and the
   swap is invisible. The duplicated stops hold each value across its half. */
@keyframes orbitCross {
  0%, 49.99% { z-index: 3; }
  50%, 100%  { z-index: 1; }
}

/* Reduced motion: freeze rather than remove, so the negative delays keep the icons
   spread around the ellipse (and keep their near/far layering) instead of stacking. */
@media (prefers-reduced-motion: reduce) {
  html.orbit-ok .home-page #info-3 .orbit-sat {
    animation-play-state: paused;
  }
}

/* ---------- IMAGE CAROUSEL (for market value section) ---------- */
.info-carousel {
  position: relative;
  width: 100%;
  max-width: 280px;
  min-height: 300px;
}

.info-carousel img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
  z-index: 1;
  transition: opacity 0.8s ease;
}

.info-carousel img.active {
  opacity: 1;
  z-index: 2;
}

/* First image sets container height */
.info-carousel img:first-child {
  position: relative;
}

/* ---------- CHECKBOX ANIMATION CONTAINER ---------- */
.info-checkbox-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-checkbox-container .info-img {
  position: relative;
  z-index: 1;
}

.info-checkboxes-stack {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  z-index: 5;
  flex-direction: column;
  gap: 8px;
  z-index: 1;
}

.info-checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border-radius: 10px;
  padding: 10px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 160px;
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.info-checkbox-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.info-checkbox-item .checkbox-label {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.info-checkbox-item .checkbox-check {
  display: block;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  background: url('images/icon-checkcircle.svg') no-repeat center / contain;
  flex-shrink: 0;
  font-size: 0;
  overflow: hidden;
  text-indent: -9999px;
}

/* Animated state */
.info-checkbox-item.slide-in {
  opacity: 1;
  transform: translateX(120px);
}

/* Stagger delays */
.info-checkbox-item[data-index="0"] { transition-delay: 0s; }
.info-checkbox-item[data-index="1"] { transition-delay: 0.12s; }
.info-checkbox-item[data-index="2"] { transition-delay: 0.24s; }
.info-checkbox-item[data-index="3"] { transition-delay: 0.36s; }
.info-checkbox-item[data-index="4"] { transition-delay: 0.48s; }
.info-checkbox-item[data-index="5"] { transition-delay: 0.60s; }
.info-checkbox-item[data-index="6"] { transition-delay: 0.72s; }

/* ---------- POP-UP ANIMATION (reusable) ---------- */
/* Apply .pop-up to container, children get .pop-up-item */
.pop-up-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* When container has .pop-up-active, reveal children */
.pop-up-active .pop-up-item {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for up to 20 items */
.pop-up-item[data-index="0"] { transition-delay: 0s; }
.pop-up-item[data-index="1"] { transition-delay: 0.08s; }
.pop-up-item[data-index="2"] { transition-delay: 0.16s; }
.pop-up-item[data-index="3"] { transition-delay: 0.24s; }
.pop-up-item[data-index="4"] { transition-delay: 0.32s; }
.pop-up-item[data-index="5"] { transition-delay: 0.40s; }
.pop-up-item[data-index="6"] { transition-delay: 0.48s; }
.pop-up-item[data-index="7"] { transition-delay: 0.56s; }
.pop-up-item[data-index="8"] { transition-delay: 0.64s; }
.pop-up-item[data-index="9"] { transition-delay: 0.72s; }
.pop-up-item[data-index="10"] { transition-delay: 0.80s; }
.pop-up-item[data-index="11"] { transition-delay: 0.88s; }
.pop-up-item[data-index="12"] { transition-delay: 0.96s; }
.pop-up-item[data-index="13"] { transition-delay: 1.04s; }
.pop-up-item[data-index="14"] { transition-delay: 1.12s; }
.pop-up-item[data-index="15"] { transition-delay: 1.20s; }
.pop-up-item[data-index="16"] { transition-delay: 1.28s; }
.pop-up-item[data-index="17"] { transition-delay: 1.36s; }
.pop-up-item[data-index="18"] { transition-delay: 1.44s; }
.pop-up-item[data-index="19"] { transition-delay: 1.52s; }

/* ---------- CHECKBOX GRID (reusable row layout) ---------- */
.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.checkbox-grid .checkbox-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.checkbox-grid .checkbox-tag::before {
  content: "";
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  background: url('images/icon-checkcircle.svg') no-repeat center / contain;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Icon variant: Search (magnifying glass only) */
.checkbox-grid--search .checkbox-tag::before {
  content: "";
  background: transparent url('images/icon-magnifying-glass.svg') no-repeat center center;
  background-size: 16px 16px;
  border: none;
  filter: brightness(0) saturate(100%) opacity(0.65);
}

.checkbox-grid--search .checkbox-tag {
  position: relative;
  overflow: hidden;
}

.checkbox-grid--search .checkbox-tag::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

/* Icon variant: Check (icon-checkcircle.svg) */
.checkbox-grid--check .checkbox-tag::before {
  content: "";
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  background: url('images/icon-checkcircle.svg') no-repeat center / contain;
  flex-shrink: 0;
}

.checkbox-grid--check .checkbox-tag {
  position: relative;
  overflow: hidden;
}

.checkbox-grid--check .checkbox-tag::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

@media (max-width: 880px) {
  .checkbox-grid--check .checkbox-tag::before {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
  }
  
  .checkbox-grid--check .checkbox-tag::after {
    height: 2px;
  }
}

/* Icon variant: Star (gold) */
.checkbox-grid--star .checkbox-tag::before {
  content: "★";
  background: #F59E0B;
  font-size: 12px;
}

/* Icon variant: Heart (red) */
.checkbox-grid--heart .checkbox-tag::before {
  content: "♥";
  background: #EF4444;
  font-size: 11px;
}

@media (max-width: 880px) {
  .checkbox-grid {
    gap: 10px;
  }
  
  .checkbox-grid .checkbox-tag {
    padding: 6px;
    gap: 6px;
    font-size: 12px;
  }
  
  .checkbox-grid .checkbox-tag::before {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }
  
  .checkbox-grid--search .checkbox-tag::before {
    background-size: 12px 12px;
  }
  
  .checkbox-grid--search .checkbox-tag::after {
    height: 2px;
  }
}

/* ==========================================================================
   USE CASE LIST SECTION
   - .use-case-section: full section wrapper (use when you want a standalone section)
   - .use-case-list: the list itself (can be used inside any container)
   ========================================================================== */

/* ---------- USE CASE SECTION (standalone section wrapper) ---------- */
.use-case-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  background: 
    radial-gradient(ellipse 120% 80% at 20% 20%, rgba(0, 255, 215, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 100% 60% at 80% 80%, rgba(56, 93, 245, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f8fafc 100%);
}

.use-case-section .container {
  max-width: var(--container-width, 1200px);
  margin: 0 auto;
  padding: 0 var(--container-padding, 24px);
}

.use-case-section .section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.use-case-section .section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark, #1a1a2e);
  margin: 0 0 12px 0;
}

.use-case-section .section-sub {
  font-size: 1.125em;
  color: var(--text-muted, #64748b);
  margin: 0;
}

@media (max-width: 880px) {
  .use-case-section {
    padding: 60px 0;
  }
  
  .use-case-section .section-title {
    font-size: 1.5rem;
  }
  
  .use-case-section .section-sub {
    font-size: 1em;
  }
  
  .use-case-section .section-heading {
    margin-bottom: 24px;
  }
}

/* ---------- USE CASE LIST (the list component, usable anywhere) ---------- */
.use-case-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* When inside a section, center the list and remove top margin */
.use-case-section .use-case-list {
  justify-content: center;
  margin-top: 0;
}

/* ==========================================================================
   USE CASE MARQUEE (animated scrolling rows)
   - Items scroll horizontally in alternating directions per row
   - Creates a zigzag visual effect
   - Auto-initializes via data-marquee attribute
   ========================================================================== */

.use-case-marquee {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  width: 100%;
}

.marquee-row {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, white 5%, white 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, white 5%, white 95%, transparent);
}

.marquee-content {
  display: flex;
  gap: 12px;
  padding: 0 6px;
  animation: marquee-scroll 40s linear infinite;
  will-change: transform;
}

/* Pause animation on hover for readability */
.use-case-marquee:hover .marquee-content {
  animation-play-state: paused;
}

/* Alternating directions */
.marquee-row:nth-child(odd) .marquee-content {
  animation-direction: normal;
}

.marquee-row:nth-child(even) .marquee-content {
  animation-direction: reverse;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 880px) {
  .use-case-marquee {
    gap: 10px;
  }
  
  .marquee-content {
    gap: 10px;
    animation-duration: 30s; /* Faster on mobile since less distance */
  }
}

/* ---------- USE CASE ITEM (standalone styling, works in list or marquee) ---------- */
.use-case-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.use-case-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Default icon (magnifying glass) */
.use-case-item::before {
  content: "";
  width: 20px;
  height: 20px;
  background: transparent url('images/icon-magnifying-glass.svg') no-repeat center center;
  background-size: 16px 16px;
  border-radius: 50%;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) opacity(0.65);
}

/* Underline accent */
.use-case-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent, #5E61FF) 0%, var(--accent-alt, #a855f7) 100%);
}

/* Most Scanned Items: match reseller page – purple to magenta (no yellow) */
#most-scanned {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f8fafc 100%) !important;
}
#most-scanned::before {
  content: '';
  position: absolute;
  left: -50%;
  top: -50%;
  width: 200%;
  height: 200%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 25% 25%, rgba(94, 97, 255, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 75% 75%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
  animation: gradientSmoothRotate 28s linear infinite;
}

#most-scanned .most-scanned-stripe-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    45deg,
    #5E61FF 0px,
    #a855f7 48px,
    transparent 48px,
    transparent 96px
  );
}

#most-scanned::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.33;
  background: repeating-linear-gradient(
    -45deg,
    #5E61FF 0px,
    #a855f7 48px,
    transparent 48px,
    transparent 96px
  );
}
#most-scanned {
  padding: 120px 0;
}

#most-scanned .container {
  position: relative;
  z-index: 1;
}

#most-scanned .section-title {
  font-size: 4rem;
  margin-bottom: 4px;
  line-height: 1.1;
}

#most-scanned .use-case-hashtag-text {
  font-size: 120px;
}

#most-scanned .section-sub {
  font-size: 1.75rem;
  line-height: 1.2;
}

@media (max-width: 880px) {
  #most-scanned {
    padding: 80px 0;
  }
  #most-scanned .section-title {
    font-size: 2.75rem;
  }
  #most-scanned .use-case-hashtag-text {
    font-size: 88px;
  }
}

#most-scanned .use-case-item::after {
  background: linear-gradient(90deg, #5E61FF 0%, #a855f7 100%);
}

@media (max-width: 880px) {
  .use-case-list {
    gap: 10px;
  }
  
  .use-case-item {
    padding: 6px 10px;
    gap: 6px;
    font-size: 12px;
  }
  
  .use-case-item::before {
    width: 16px;
    height: 16px;
    background-size: 12px 12px;
  }
  
  .use-case-item::after {
    height: 2px;
  }
}

/* ---------- OVERLAY GRAPHICS ---------- */
.info-overlay-wrap {
  position: absolute;
  left: 50%;
  bottom: -20%;
  width: 70%;
  max-width: 280px;
  z-index: 3;
  pointer-events: none;
  transform: translateX(-50%);
}

.info-overlay {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ---------- MOBILE RESPONSIVE ---------- */
@media (max-width: 880px) {
  .info-section {
    min-height: var(--section-height-mobile, 100vh);
    padding: 48px 0;
    box-sizing: border-box;
  }
  
  .info-inner {
    flex-direction: column;
    align-items: center;
    text-align: left;
    gap: 24px;
    padding: 0 var(--container-padding);
    box-sizing: border-box;
  }

  /* Normalize header/description spacing on mobile (avoid stacked default h3/p margins) */
  .info-text h3{
    margin: 0 0 8px 0;
  }
  .info-text p{
    margin-top: 0;
  }
  
  .info-text {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    order: 2;
    text-align: left;
    padding: 0 var(--container-padding);
    box-sizing: border-box;
  }
  
  .info-media {
    flex: 0 0 100%;
    max-width: 100%;
    order: 1;
    background: transparent !important;
    background-color: transparent !important;
  }
  
  /* Resellers page - ensure mobile images align with content padding */
  .resellers-page .info-section .how-media {
    width: 100%;
    padding: 0 var(--container-padding);
    margin: 0;
    box-sizing: border-box;
  }
  
  /* Businesses page - same mobile image alignment */
  .businesses-page .info-section .how-media {
    width: 100%;
    padding: 0 var(--container-padding);
    margin: 0;
    box-sizing: border-box;
  }
  
  /* Ensure .how-media is transparent on mobile too */
  .info-section .how-media,
  .home-page .info-section .how-media {
    background: transparent !important;
    background-color: transparent !important;
  }
  
  .info-img {
    max-width: 200px;
    width: 70%;
  }
  
  .info-box {
    text-align: left;
  }
  
  .info-list li {
    font-size: 0.95em;
  }
  
  .info-marketplaces {
    justify-content: flex-start;
  }
  
  .info-carousel {
    max-width: 200px;
    min-height: 240px;
  }
  
  /* Home page: consistent height on mobile */
  .home-page #info-1 .photoscan-collage {
    min-height: 0;
    height: 300px;
    max-width: 420px;
  }

  .home-page #info-2 .how-media,
  .home-page #info-3 .how-media {
    min-height: 0;
  }

  .photoscan-collage {
    height: 300px;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    overflow: visible;
  }

  /* Same trim as desktop, and dropped the same ~100px — at 15% this card covered
     254px of the 299px phone, hiding the item being scanned. */
  .photoscan-collage__comps {
    width: 40%;
    top: 45%;
    right: -5%;
  }

  .info-mobile-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 0;
  }

  .home-page #info-2 .how-media .how-img,
  .home-page #info-3 .how-media .how-img {
    display: none !important;
  }

  /* #info-3 now runs the alpha video on mobile too (the old .info-mobile-img
     still has been removed). Sized by HEIGHT, not width: integrations.webm is
     portrait 604x980, so a full-width box would tower over #info-2's square
     video. Capping height at 420px matches #info-2's mobile height instead.
     Deliberately no `display` here — that's left to the .no-alpha-video rules
     so Safari still swaps in the PNG on mobile. */
  .home-page #info-3 .how-video-listing,
  .home-page #info-3 .how-video-listing-fallback {
    height: 420px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
  }

  .home-page #info-2 .how-img,
  .home-page #info-3 .how-img {
    height: 400px;
    max-width: none;
  }

  /* Orbit shrinks with the phone: 138 + half a 38px icon = 157px of reach each way,
     so the ring clears 320px viewports without touching the container padding. */
  html.orbit-ok .home-page #info-3 .orbit-sat {
    --rx: 138px;
    --ry: 48px;
    --size: 38px;
  }

  .home-page #info-2 .how-video-listing,
  .home-page #info-2 .how-video-listing-fallback {
    height: auto;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
  
  /* Checkbox container mobile */
  .info-checkboxes-stack {
    gap: 6px;
  }
  
  .info-checkbox-item {
    padding: 8px 12px;
    min-width: 130px;
    transform: translateX(-60px);
  }
  
  .info-checkbox-item.slide-in {
    transform: translateX(80px);
  }
  
  .info-checkbox-item img {
    width: 22px;
    height: 22px;
  }
  
  .info-checkbox-item .checkbox-label {
    font-size: 12px;
  }
  
  .info-checkbox-item .checkbox-check {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
  
  .info-overlay-wrap {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: 70%;
    margin: 16px auto 0;
  }
}

/* ==========================================================================
   FORCE TRANSPARENT BACKGROUND ON ALL IMAGE CONTAINERS - NO EXCEPTIONS
   This rule must override everything else
   ========================================================================== */
.how-media,
div.how-media,
.info-section .how-media,
.info-inner .how-media,
.home-page .info-section .how-media,
.home-page .info-inner .how-media,
.info-section div.how-media,
.info-inner div.how-media,
#info-1 .how-media,
#info-2 .how-media,
#info-3 .how-media,
#info-1 div.how-media,
#info-2 div.how-media,
#info-3 div.how-media {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

