/* ============================================================
   EXPERIMENTS LAYER — Jake's Aug 2 audit, step 5
   Loaded AFTER styles.css. Nothing here is required by the site.
   TO REVERT EVERYTHING: set EXPERIMENTS = False in build-v33.py
   and redeploy. No other file references these rules.

   Three things Jake asked for:
     A. hover feedback on "What you can expect" + cards
     B. a subtle glass treatment on boxes
     C. gentle motion in the solid backgrounds (no colour change)
   ============================================================ */

/* ---------- A. Hover feedback ---------- */

/* "What you can expect" — each line lifts and its check brightens */
.compare-col li {
  transition: background 0.18s ease, padding-left 0.18s ease;
  border-radius: var(--radius);
}
.compare-col.compare-mathieu li:hover {
  background: rgba(46, 191, 160, 0.10);
  padding-left: 2.2rem;
}
.compare-col.compare-mathieu li::before {
  transition: transform 0.18s ease, color 0.18s ease;
}
.compare-col.compare-mathieu li:hover::before {
  transform: scale(1.25);
  color: var(--white);
}

/* Cards that were static get the same lift the others already had */
.services-detail-card,
.faq-item,
.vendor-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.services-detail-card:hover,
.vendor-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(46, 191, 160, 0.55);
}
.faq-item:hover { border-color: rgba(46, 191, 160, 0.55); }

/* Credential blocks respond too */
.credential-text { transition: color 0.18s ease; }
.credentials-strip .credential-text:hover { color: var(--teal-2); }

/* ---------- B. Glass ---------- */
/* Light frosted panel. Kept subtle: the text sits on near-white either way,
   so contrast is unchanged if backdrop-filter is unsupported. */
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  .service-card,
  .services-detail-card,
  .audience-card,
  .faq-item,
  .post-card,
  .vendor-card,
  .treats-pill {
    background: rgba(255, 255, 255, 0.62);
    -webkit-backdrop-filter: blur(10px) saturate(1.15);
    backdrop-filter: blur(10px) saturate(1.15);
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 1px 2px rgba(14, 17, 22, 0.04), 0 8px 24px rgba(14, 17, 22, 0.06);
  }
  .treats-pill { background: rgba(255, 255, 255, 0.55); }

  /* dark panel gets the same treatment in reverse */
  .compare-col.compare-mathieu {
    background: rgba(14, 17, 22, 0.72);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    backdrop-filter: blur(12px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius);
  }
}

/* ---------- C. Background motion ---------- */
/* A very slow sheen drifting across the solid dark panels. Same hue family —
   it reads as depth, not colour change. Sits behind content via ::before. */
.page-hero,
.cta-strip,
.trust-strip {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before,
.cta-strip::before,
.trust-strip::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 55% at 22% 30%, rgba(56, 155, 213, 0.20), transparent 70%),
    radial-gradient(34% 50% at 78% 68%, rgba(46, 191, 160, 0.16), transparent 70%);
  animation: mb-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes mb-drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1.02); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.10); }
}

/* the light hero gets a much quieter version */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  inset: -35%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 55% at 78% 22%, rgba(56, 155, 213, 0.10), transparent 70%),
    radial-gradient(36% 50% at 18% 78%, rgba(46, 191, 160, 0.08), transparent 70%);
  animation: mb-drift 34s ease-in-out infinite alternate;
  will-change: transform;
}

/* Anyone who has asked their device to reduce motion gets none of it. */
@media (prefers-reduced-motion: reduce) {
  .page-hero::before,
  .cta-strip::before,
  .trust-strip::before,
  .hero::before {
    animation: none;
    transform: none;
  }
  .compare-col li,
  .services-detail-card,
  .faq-item,
  .vendor-card,
  .credential-text { transition: none; }
}
