/* ==============================================================
   VSFinder v4 — polish layer (LIGHT THEME ONLY)
   Dark mode has been fully removed. Contrast hardened throughout.
   ============================================================== */

/* Force light color-scheme so browser UI doesn't try to dark-mode form controls */
html { color-scheme: light; }

/* ---------- Typography rhythm & readability ---------- */
body {
  font-size: 17.5px;
  letter-spacing: -0.005em;
  color: #0f172a;                 /* very dark slate for max contrast on white */
  background: #ffffff;
}
h1, h2, h3, h4 { letter-spacing: -0.025em; color: #0f172a; }
h1 { font-weight: 800; }
h2 { font-weight: 800; }
p { line-height: 1.7; color: #1f2937; }

/* Focus ring (accessibility) */
:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.55);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Selection color */
::selection { background: rgba(139, 92, 246, 0.22); color: #0f172a; }

/* ---------- Scroll-reveal animation system ---------- */
/* Default: visible. Reveal animation disabled — was causing sections to appear blank. */
.v4-reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.v4-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
/* Safety net: if JS fails, IntersectionObserver is not available, or prefers-reduced-motion: render visible */
@media (prefers-reduced-motion: reduce) {
  .v4-reveal { opacity: 1 !important; transform: none !important; }
}
/* Fallback: after 2s any unrevealed block becomes visible (CSS-only safety) */
@keyframes v4FallbackReveal { to { opacity: 1; transform: none; } }
.v4-reveal { animation: v4FallbackReveal 0.01s linear 2.5s forwards; }

/* ---------- Hero enhancements ---------- */
.vsf-hero-v3 h1 { line-height: 1.05; color: #ffffff !important; }
.vsf-hero-v3 .lede { line-height: 1.65; color: rgba(255,255,255,0.88) !important; }
.vsf-hero-v3 .subtitle { color: rgba(255,255,255,0.88) !important; }

/* Homepage .hero container uses a LIGHT gradient — keep text DARK for contrast */
.hero {
  padding: 80px 0 64px !important;
}
.hero .eyebrow {
  color: #2563eb !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(37,99,235,0.10);
  margin-bottom: 14px;
}
.hero h1 {
  color: #0f172a !important;
  font-size: clamp(2.25rem, 5.5vw, 3.5rem) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.03em !important;
  margin-bottom: 18px;
}
.hero .subtitle {
  color: #475569 !important;
  font-size: clamp(1rem, 2vw, 1.2rem) !important;
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero .gradient-text {
  background: linear-gradient(135deg, #2563eb, #8b5cf6, #ec4899) !important;
  -webkit-background-clip: text !important;
          background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 900;
}
.hero-stats .stat { color: #334155 !important; font-weight: 600; font-size: 14px; }
.hero-stats .dot { background: #2563eb !important; }
.hero-cta-row .btn-secondary {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(15,23,42,0.06);
}
.hero-cta-row .btn-ghost { color: #2563eb !important; font-weight: 700; }
.hero-search input { color: #0f172a !important; }
.hero-search input::placeholder { color: #64748b !important; }

/* ---------- Smoother cards (hover animations) ---------- */
.product-card,
.vsf-browse-card,
.category-tile,
.matchup,
.vsf-pop-item,
.vsf-tc,
.vsf-pi,
.vsf-cc,
.vsf-fc {
  transition: transform 0.28s cubic-bezier(.2,.7,.2,1),
              box-shadow 0.28s cubic-bezier(.2,.7,.2,1),
              border-color 0.28s cubic-bezier(.2,.7,.2,1);
  background: #ffffff;
}
.product-card:hover .img-wrap img,
.vsf-browse-card:hover .img img,
.vsf-tc:hover .th img {
  transform: scale(1.06);
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1);
}
.product-card .img-wrap img,
.vsf-browse-card .img img,
.vsf-tc .th img {
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1);
}

/* Subtle shine sweep on product cards */
.product-card, .vsf-browse-card, .vsf-fc, .vsf-tc { position: relative; isolation: isolate; }
.product-card::before,
.vsf-browse-card::before,
.vsf-fc::before,
.vsf-tc::before {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 60%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 2;
  transition: left 0.85s ease;
}
.product-card:hover::before,
.vsf-browse-card:hover::before,
.vsf-fc:hover::before,
.vsf-tc:hover::before { left: 140%; }

/* Make category tiles pop with a gradient ring on hover */
.category-tile { position: relative; }
.category-tile::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, #2563eb, #8b5cf6, #ec4899);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.category-tile:hover::before { opacity: 1; }

/* ---------- CARD TEXT CONTRAST ---------- */
/* Product titles and labels — dark, never wash out */
.product-card .title,
.vsf-browse-card .title,
.vsf-tc .nm,
.vsf-pi .ti,
.vsf-fc .vp .nm,
.vsf-cc .nm,
.vsf-pop-item .ti,
.matchup .tl,
.matchup .thumb + .nm,
.matchup .nm {
  color: #0f172a !important;
  font-weight: 700;
}
.muted, .vsf-cc .ct, .vsf-rw p, .vsf-pi .mt, .vsf-sec-head p {
  color: #475569 !important;     /* slate-600 — passes WCAG on white */
}

/* ---------- Price tag polish ---------- */
.product-card .price,
.vsf-browse-card .meta .price {
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
}

/* ---------- Single product page polish ---------- */
.vsf-sp-grid {
  position: relative;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(37,99,235,.15), rgba(139,92,246,.15), rgba(236,72,153,.15)) border-box;
  border: 1px solid transparent !important;
  box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.18), 0 2px 6px -2px rgba(15, 23, 42, 0.05);
}
.vsf-sp-img {
  position: relative;
  background: radial-gradient(ellipse at 30% 20%, rgba(37,99,235,0.05), transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(139,92,246,0.05), transparent 60%),
              #f8fafc;
}
.vsf-sp-img::after {
  content: "";
  position: absolute;
  left: 10%; right: 10%;
  bottom: 6%;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(15,23,42,0.18), transparent 70%);
  filter: blur(8px);
  z-index: 0;
}
.vsf-sp-img img { position: relative; z-index: 1; }
.vsf-sp-info h1 { color: #0f172a !important; font-weight: 800; }

/* Price chip with gradient */
.vsf-sp-meta .vsf-price {
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.025em;
}
.vsf-sp-meta .vsf-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e !important;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px !important;
}
.vsf-sp-meta .vsf-rating .muted { color: #a16207 !important; }

/* Sticky quick-compare bar (appears when user scrolls past hero) */
.v4-sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) translateY(120%);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.96);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 20px 40px -12px rgba(15,23,42,0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(148,163,184,0.2);
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), opacity 0.35s;
  max-width: 92vw;
  opacity: 0;
  pointer-events: none;
}
.v4-sticky-cta.is-shown { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.v4-sticky-cta img {
  width: 36px; height: 36px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 3px;
}
.v4-sticky-cta .v4-sc-title {
  font-size: 13px;
  font-weight: 600;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffffff;
}
.v4-sticky-cta .v4-sc-price {
  font-size: 14px;
  font-weight: 800;
  color: #7dd3fc;
}
.v4-sticky-cta .v4-sc-btn {
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 8px 20px -8px rgba(245,158,11,0.7);
  white-space: nowrap;
}
.v4-sticky-cta .v4-sc-btn:hover { filter: brightness(1.06); }
@media (max-width: 540px) {
  .v4-sticky-cta .v4-sc-title { display: none; }
}

/* ---------- Spec table polish ---------- */
.vsf-spec-table { background: #ffffff; }
.vsf-spec-table tr { transition: background 0.15s ease; }
.vsf-spec-table tr:nth-child(even) td { background: #f8fafc; }
.vsf-spec-table tr:nth-child(even) td.vsf-win { background: var(--win-bg); }
.vsf-spec-table td {
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
  padding: 14px 16px;
}
.vsf-spec-table td.vsf-key {
  font-weight: 700;
  color: #334155;
  text-transform: capitalize;
}

/* Winner cell shimmer + star */
.vsf-spec-table td.vsf-win {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5) !important;
  color: #047857 !important;
  font-weight: 800 !important;
  position: relative;
  border-left: 3px solid #10b981;
}
.vsf-spec-table td.vsf-win::after {
  content: "★";
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: #10b981;
  font-size: 14px;
}

/* ---------- Compare page polish ---------- */
.vsf-vs-card {
  position: relative;
  background: #ffffff;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}
.vsf-vs-card h2 { color: #0f172a !important; }
.vsf-vs-card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -16px rgba(15,23,42,0.2); }
.vsf-vs-card.is-winner {
  background: linear-gradient(145deg, #fff 0%, #f0fdf4 100%);
  border-color: #10b981 !important;
  box-shadow: 0 0 0 1px rgba(16,185,129,0.3), 0 24px 48px -16px rgba(16,185,129,0.25);
}
.vsf-vs-card.is-winner::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(135deg, #10b981, #059669);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
  animation: v4Pulse 2.5s ease-in-out infinite;
}
@keyframes v4Pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.8; }
}

/* VS divider with pulse */
.vsf-vs-divider span { animation: v4VsBeat 2.4s ease-in-out infinite; }
@keyframes v4VsBeat {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(11, 94, 247, 0.35); }
  50% { transform: scale(1.06); box-shadow: 0 14px 32px rgba(11, 94, 247, 0.5); }
}

/* ---------- Skeleton loader ---------- */
.v4-skel {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: v4Skel 1.4s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes v4Skel {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Back-to-top button ---------- */
.v4-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(37,99,235,0.55);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.25s, transform 0.25s;
  z-index: 950;
  border: 0;
}
.v4-top.is-shown { opacity: 1; transform: translateY(0) scale(1); }
.v4-top:hover { filter: brightness(1.08); transform: translateY(-2px) scale(1.03); }
.v4-top svg { width: 22px; height: 22px; }

/* ---------- Kill any lingering dark-mode overrides ---------- */
html.v4-dark, html.v4-dark body,
html.v4-dark .site-header,
html.v4-dark .product-card,
html.v4-dark .vsf-browse-card,
html.v4-dark .vsf-vs-card,
html.v4-dark .vsf-sp-grid,
html.v4-dark .vsf-spec-group,
html.v4-dark .vsf-spec-table,
html.v4-dark .vsf-spec-table td,
html.v4-dark .hero,
html.v4-dark .section {
  background: initial !important;
  color: initial !important;
  border-color: initial !important;
}
html.v4-dark .v4-theme-toggle { display: none !important; }
.v4-theme-toggle { display: none !important; }

/* Force prefers-color-scheme:dark browsers to still render us in light */
@media (prefers-color-scheme: dark) {
  html { color-scheme: light !important; }
  body { background: #ffffff !important; color: #0f172a !important; }
  .site-header { background: #ffffff !important; }
  .product-card, .vsf-browse-card, .vsf-vs-card, .vsf-sp-grid, .vsf-spec-group, .v4-cat-card, .vsf-cat-card {
    background: #ffffff !important;
    color: #0f172a !important;
  }
}

/* ---------- Respect reduced-motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .v4-reveal { opacity: 1; transform: none; }
}

/* ---------- Mobile nav upgrade ---------- */
@media (max-width: 820px) {
  .primary-nav {
    border-radius: 0 0 20px 20px;
    padding: 20px 24px 24px !important;
    background: #ffffff !important;
  }
  .primary-nav a {
    font-size: 16px;
    font-weight: 600;
    padding: 14px 0 !important;
    color: #0f172a !important;
  }
}

/* ---------- Container width a little wider on xl screens ---------- */
@media (min-width: 1400px) {
  .container, .vsf-container { max-width: 1280px; }
}

/* ---------- Browse / categories landing page ---------- */
.vsf-browse .vsf-hero-title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin: 28px 0 10px;
  color: #0f172a;
}
.vsf-browse .vsf-hero-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #8b5cf6, #ec4899);
  margin: 14px auto 0;
}
.vsf-browse .vsf-hero-sub {
  text-align: center;
  font-size: 17px;
  color: #475569;
  margin: 0 auto 40px;
  max-width: 620px;
}
.vsf-browse .vsf-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.vsf-browse .vsf-cat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px 22px 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.vsf-browse .vsf-cat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #8b5cf6, #ec4899);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.vsf-browse .vsf-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -16px rgba(15,23,42,0.18);
  border-color: transparent;
}
.vsf-browse .vsf-cat-card:hover::before { opacity: 1; }
.vsf-browse .vsf-cat-card h2 {
  font-size: 19px !important;
  font-weight: 800;
  margin: 0 0 14px !important;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
}
.vsf-browse .vsf-cat-card h2 a {
  color: #0f172a !important;          /* Dark, fully readable. No gradient-to-transparent. */
  font-weight: 800;
}
.vsf-browse .vsf-cat-card h2 a:hover { color: #2563eb !important; }
.vsf-browse .vsf-cat-sub {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 14px;
}
.vsf-browse .vsf-cat-sub li {
  font-size: 13.5px;
  line-height: 1.5;
  padding: 4px 0;
}
.vsf-browse .vsf-cat-sub li a {
  color: #475569 !important;
  font-weight: 500;
  transition: color 0.15s;
}
.vsf-browse .vsf-cat-sub li a:hover { color: #2563eb !important; }
.vsf-browse .vsf-cat-sub li small {
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  background: #f1f5f9;
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: 4px;
}

@media (max-width: 540px) {
  .vsf-browse .vsf-cat-sub { grid-template-columns: 1fr; }
}

/* v4 enhanced browse cards (new template) */
.v4-cat-card { padding: 22px !important; background: #ffffff !important; }
.v4-cat-card .v4-cc-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.v4-cat-card .v4-cc-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 18px -8px rgba(37,99,235,0.55);
}
.v4-cat-card .v4-cc-icon svg { width: 26px; height: 26px; }
.v4-cat-card .v4-cc-titles { flex: 1; min-width: 0; }
.v4-cat-card h2 {
  margin: 0 !important;
  display: block !important;
}
.v4-cat-card h2 a {
  background: none !important;
  -webkit-text-fill-color: initial !important;
  color: #0f172a !important;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.v4-cat-card h2 a:hover { color: #2563eb !important; }
.v4-cat-card .v4-cc-count {
  display: inline-block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #2563eb;
  background: rgba(37,99,235,0.10);
  padding: 3px 10px;
  border-radius: 999px;
}
.v4-cat-card .v4-cc-arrow {
  position: absolute;
  right: 18px;
  top: 22px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f8fafc;
  color: #2563eb;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.v4-cat-card:hover .v4-cc-arrow {
  opacity: 1;
  transform: translateX(0);
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  color: #fff;
}
.v4-cat-card .v4-cc-arrow svg { width: 18px; height: 18px; }

/* Remove the gradient text treatment from old h2 > a when the v4 wrapper is present */
.vsf-browse .vsf-cat-card.v4-cat-card h2 a {
  background: none !important;
  -webkit-text-fill-color: initial !important;
  color: #0f172a !important;
}

/* ---------- POPULAR MATCHUPS — bigger, clearer, real images ---------- */
.matchup-grid {
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)) !important;
  gap: 22px !important;
}
.matchup {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  text-decoration: none !important;
}
.matchup:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 22px 40px -14px rgba(15,23,42,0.22) !important;
  border-color: transparent !important;
}
.matchup .thumbs {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  gap: 0 !important;
  align-items: stretch !important;
  background: linear-gradient(180deg, #f8fafc, #eef2ff) !important;
  padding: 22px 14px !important;
  position: relative !important;
}
.matchup .thumb {
  width: auto !important;
  height: 140px !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  padding: 12px !important;
  margin: 0 !important;
}
.matchup .thumb:nth-child(2) { margin-left: 0 !important; }
.matchup .thumb img {
  max-width: 100% !important;
  max-height: 110px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  mix-blend-mode: multiply !important;
}
.matchup .thumbs::before {
  content: "VS" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: linear-gradient(135deg, #2563eb, #8b5cf6) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  letter-spacing: 1.5px !important;
  padding: 9px 14px !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 18px -6px rgba(37,99,235,0.5), 0 0 0 4px #ffffff !important;
  z-index: 2 !important;
}
.matchup .info {
  padding: 16px 18px 18px !important;
  flex: 1 !important;
}
.matchup .info h4 {
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  margin: 0 0 6px !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
}
.matchup .info .sub {
  color: #475569 !important;
  font-size: 13.5px !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
}
.matchup .vs-badge {
  display: none !important;  /* replaced by big VS circle in thumbs */
}

/* Make matchups responsive */
@media (max-width: 640px) {
  .matchup-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .matchup .thumbs { padding: 18px 10px !important; }
  .matchup .thumb { height: 120px !important; }
}

/* ---------- Engine's floating compare tray ---------- */
/* Hide entirely until it has items (is-open triggers from JS when >= 1 compare). */
.vsfe-tray {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.vsfe-tray.is-open {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  bottom: 0 !important;
}
.vsfe-tray .vsfe-tray-cta {
  background: linear-gradient(135deg, #f59e0b, #ea580c) !important;
}

/* ---------- Cushion: ensure fonts breathe away from nearby objects ---------- */
.product-card .body, .product-card .info,
.vsf-browse-card .meta,
.vsf-tc .bd, .vsf-pi .bd, .vsf-fc .vp, .vsf-cc .bd {
  padding: 16px 16px 18px !important;
}
.vsf-sec-head h2, .section-head h2 {
  margin-bottom: 8px;
  color: #0f172a;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-weight: 800;
}
.vsf-sec-head p, .section-head p {
  font-size: 16px;
  color: #475569;
}

/* =================================================================
   CRITICAL: Disable scroll-reveal everywhere.
   Was leaving content at opacity:0 until scrolled past, causing the
   user to see a mostly-empty page that read as "dark/broken".
   ================================================================= */
.v4-reveal,
.vsfe-reveal,
.v4-reveal:not(.is-in),
.vsfe-reveal:not(.is-in) {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

/* Make sure all images are immediately shown, not lazy-hidden */
img[loading="lazy"] {
  opacity: 1 !important;
}

/* Ensure category grid tiles show properly with good size */
.category-grid,
.vsf-cat-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 16px !important;
  opacity: 1 !important;
}
.category-grid .category-card,
.category-grid a,
.vsf-cat-tile {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 20px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  text-align: center !important;
  color: #0f172a !important;
  text-decoration: none !important;
  transition: transform .2s, box-shadow .2s, border-color .2s !important;
  min-height: 140px !important;
}
.category-grid .category-card:hover,
.vsf-cat-tile:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 24px -12px rgba(15,23,42,.18) !important;
  border-color: #93c5fd !important;
}
.category-grid .category-card .icon,
.category-grid .icon,
.vsf-cat-tile .icon {
  width: 56px !important;
  height: 56px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #dbeafe, #e0e7ff) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 26px !important;
  color: #2563eb !important;
}
.category-grid .category-card .name,
.vsf-cat-tile .name {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}
.category-grid .category-card .count,
.vsf-cat-tile .count {
  font-size: 12px !important;
  color: #64748b !important;
  font-weight: 500 !important;
}

/* Matchup cards — ensure visible backgrounds and proper sized images */
.matchup-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
  gap: 18px !important;
  opacity: 1 !important;
}
.matchup,
.matchup-card,
.vsf-matchup {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  padding: 18px !important;
  display: block !important;
  text-decoration: none !important;
  color: #0f172a !important;
  transition: transform .2s, box-shadow .2s, border-color .2s !important;
}
.matchup:hover,
.matchup-card:hover,
.vsf-matchup:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 30px -12px rgba(15,23,42,.2) !important;
  border-color: #93c5fd !important;
}
.matchup .thumbs,
.matchup-card .thumbs {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px !important;
  background: #f8fafc !important;
  border-radius: 12px !important;
  margin-bottom: 12px !important;
  min-height: 140px !important;
}
.matchup .thumb,
.matchup-card .thumb {
  aspect-ratio: 1/1 !important;
  background: #ffffff !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px !important;
  max-width: 120px !important;
  margin: 0 auto !important;
}
.matchup .thumb img,
.matchup-card .thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  opacity: 1 !important;
  display: block !important;
}
.matchup .vs,
.matchup-card .vs {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #2563eb, #8b5cf6) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 6px 14px -4px rgba(37,99,235,.5) !important;
}
.matchup .info,
.matchup-card .info {
  font-size: 13.5px !important;
  color: #334155 !important;
  line-height: 1.45 !important;
  font-weight: 600 !important;
}

/* Hero — force clean light hero */
.hero {
  background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 50%, #fdf2f8 100%) !important;
  padding: 72px 0 64px !important;
  color: #0f172a !important;
}
.hero h1 {
  color: #0f172a !important;
  font-size: clamp(2rem, 4.5vw, 3.5rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.1 !important;
  margin-bottom: 16px !important;
  text-align: center !important;
}
.hero .gradient-text {
  background: linear-gradient(135deg, #2563eb, #8b5cf6, #ec4899) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}
.hero .subtitle,
.hero p {
  color: #475569 !important;
  font-size: 18px !important;
  text-align: center !important;
  max-width: 640px !important;
  margin: 0 auto 28px !important;
}
.hero .hero-search,
.hero form {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 8px !important;
  box-shadow: 0 20px 40px -24px rgba(15,23,42,.2) !important;
  display: flex !important;
  gap: 8px !important;
  max-width: 640px !important;
  margin: 0 auto !important;
}
.hero input[type="search"],
.hero input[type="text"] {
  flex: 1 !important;
  border: 0 !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  background: transparent !important;
  color: #0f172a !important;
  outline: none !important;
}
.hero button[type="submit"],
.hero .hero-search button {
  background: linear-gradient(135deg, #2563eb, #8b5cf6) !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 10px !important;
  padding: 12px 28px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  cursor: pointer !important;
}

/* =================================================================
   Footer LIGHT override — user complaint: "homepage is black or dark still"
   Root cause: theme style.css forces .site-footer { background: #0f172a !important }
   Fix: override to a soft light background with readable dark text.
   ================================================================= */
.site-footer,
footer.site-footer,
body .site-footer {
  background: #f8fafc !important;
  color: #334155 !important;
  border-top: 1px solid #e2e8f0 !important;
}
.site-footer::before,
.site-footer::after {
  background: none !important;
  display: none !important;
}
.site-footer .container { position: relative; z-index: 1; }
.site-footer h4,
.site-footer .footer-title,
.site-footer strong {
  color: #0f172a !important;
}
.site-footer a,
.site-footer p,
.site-footer li,
.site-footer span,
.site-footer .ti,
.site-footer .ti .ii {
  color: #334155 !important;
}
.site-footer a:hover {
  color: #2563eb !important;
}
.site-footer .trust-row {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}
.site-footer .ti .ii {
  background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(139,92,246,.1)) !important;
  color: #2563eb !important;
}
.site-footer input[type="email"],
.site-footer input[type="text"] {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}
.site-footer input::placeholder {
  color: #94a3b8 !important;
}
.site-footer button,
.site-footer .btn,
.site-footer [type="submit"] {
  background: linear-gradient(135deg, #2563eb, #8b5cf6) !important;
  color: #ffffff !important;
  border: 0 !important;
}

/* Kill any lingering dark hero just in case it was ever used on a page */
.vsf-hero-v3 {
  background: linear-gradient(135deg, #eef2ff, #e0e7ff 45%, #f5f3ff) !important;
  color: #0f172a !important;
}
.vsf-hero-v3::before,
.vsf-hero-v3::after { display: none !important; }
.vsf-hero-v3 h1,
.vsf-hero-v3 .lede,
.vsf-hero-v3 .eyebrow,
.vsf-hero-v3 .hero-chips a,
.vsf-hero-v3 .hero-chips .cl {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}
.vsf-hero-v3 .hero-search {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 40px -20px rgba(15,23,42,.15) !important;
}
.vsf-hero-v3 .hero-search input {
  color: #0f172a !important;
}
.vsf-hero-v3 .hero-search input::placeholder {
  color: #94a3b8 !important;
}

/* Promo block used dark gradient — lighten it too */
.vsf-rp {
  background: linear-gradient(135deg, #eff6ff, #f5f3ff) !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
}
.vsf-rp::before { display: none !important; }
.vsf-rp h3,
.vsf-rp p,
.vsf-rp .eb {
  color: #0f172a !important;
}
.vsf-rp .eb {
  background: rgba(37,99,235,.1) !important;
  color: #2563eb !important;
}
.vsf-rp .rv .rc {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #94a3b8 !important;
}

/* End v4 polish */
.skip-link {
	position: absolute;
	left: 16px;
	top: -56px;
	z-index: 1000;
	padding: 10px 14px;
	border-radius: 10px;
	background: #0f172a;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 16px 30px -18px rgba(15, 23, 42, 0.45);
	transition: top 0.2s ease;
}

.skip-link:focus {
	top: 16px;
}

.vsf-insight-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.vsf-insight-card {
	padding: 24px;
	border: 1px solid rgba(148, 163, 184, 0.18);
	border-radius: 22px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
	box-shadow: 0 24px 50px -34px rgba(15, 23, 42, 0.18);
}

.vsf-insight-card h2,
.vsf-insight-card h3 {
	margin: 0 0 12px;
}

.vsf-insight-card p {
	margin: 0;
	color: var(--text-muted);
	line-height: 1.7;
}

.vsf-copy-list {
	margin: 0;
	padding-left: 18px;
	color: var(--text-muted);
}

.vsf-copy-list li + li {
	margin-top: 10px;
}

.vsf-faq-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.vsf-faq-item {
	padding: 24px;
	border-radius: 22px;
	background: #fff;
	border: 1px solid rgba(148, 163, 184, 0.16);
	box-shadow: 0 18px 40px -30px rgba(15, 23, 42, 0.22);
}

.vsf-faq-item h3 {
	margin: 0 0 10px;
}

.vsf-faq-item p {
	margin: 0;
	color: var(--text-muted);
	line-height: 1.7;
}

@media (max-width: 980px) {
	.vsf-insight-grid,
	.vsf-faq-list {
		grid-template-columns: 1fr;
	}
}
