/* =====================================================================
   De-OrganicMaster visual effects (React Three Fiber + liquid glass).
   Structural styles for the 3D islands and the glass wrappers. Every
   effect has a static fallback, so the page looks complete without JS,
   without WebGL, or with Visual Effects switched off in admin.
   ===================================================================== */

/* ---- 3D canvas islands ---- */
.fx-canvas { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s cubic-bezier(.16,1,.3,1); }
.fx-canvas canvas { display: block; }
.fx-ready > .fx-canvas { opacity: 1; }

/* Hero backdrop: living botanicals behind the hero copy */
.fx-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
[data-theme="aurora"] .au-hero > .au-hero__inner { position: relative; z-index: 1; }
.fx-on [data-theme="aurora"] .au-hero::before { z-index: 0; }

/* Beating glass heart (Free Health Assessment) */
.fx-heart { position: relative; width: clamp(180px, 22vw, 260px); aspect-ratio: 1; flex: 0 0 auto; margin: -1rem 0; }
.fx-heart--card { width: 150px; margin: -.6rem auto .2rem; }
@media (max-width: 760px) { .fx-heart { width: 190px; margin: 0 auto; } }

/* Product stage: the product photo as a floating, tiltable glass card */
.fx-stage { position: relative; width: 100%; aspect-ratio: 5 / 4; max-width: 560px; margin-inline: auto; touch-action: pan-y; }
.fx-stage > .fx-fallback { position: absolute; inset: 8% 14%; width: 72%; height: 84%; object-fit: contain; border-radius: 14px; transition: opacity .8s ease; }
.fx-stage.fx-ready > .fx-fallback { opacity: 0; }
.fx-stage .fx-canvas { cursor: grab; }
.fx-stage .fx-canvas:active { cursor: grabbing; }
.fx-stage__chip { position: absolute; left: 6%; bottom: 7%; z-index: 2; }
.fx-stage__hint { position: absolute; right: 6%; bottom: 8%; z-index: 2; font-size: .78rem; color: rgba(255,255,255,.6); pointer-events: none; transition: opacity .6s; opacity: 0; }
.fx-stage.fx-ready .fx-stage__hint { opacity: 1; }
.fx-price { display: inline-flex; flex-direction: column; gap: 2px; padding: .7rem 1.1rem; border-radius: 18px; color: #fff; line-height: 1.15; white-space: nowrap; }
.fx-price small { font-size: .74rem; opacity: .8; font-weight: 500; }
.fx-price b { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
/* funnel (light-on-dark) */
.fnl .fx-stage { margin: 26px auto 4px; max-width: 520px; }

/* ---- Liquid glass (liquid-glass-react) ---- */
.fx-glass-host { position: relative; display: inline-block; vertical-align: middle; }
.fx-glass-host--block { display: block; }
.fx-glass-host .fx-glass-slot { display: block; font: inherit; font-size: 1rem; line-height: 1.5; text-shadow: none; color: inherit; }
.fx-glass-lens--block .glass { display: flex !important; width: 100%; }
.fx-glass-lens--block .fx-glass-slot { width: 100%; }
/* Tailwind utilities the library expects */
.fx-glass-host .bg-black { background: #000; }
.fx-glass-host .opacity-0 { opacity: 0; }
.fx-glass-host .opacity-20 { opacity: .2; }
.fx-glass-host .opacity-100 { opacity: 1; }
.fx-glass-host .pointer-events-none { pointer-events: none; }
.fx-glass-host .mix-blend-overlay { mix-blend-mode: overlay; }
.fx-glass-host .relative { position: relative; }
.fx-glass-host .cursor-pointer { cursor: pointer; }

/* Elements living inside a lens drop their own fill so the glass shows */
.fx-glass-inner.au-btn--light, .fx-glass-inner.btn-outline { background: transparent !important; border-color: transparent !important; }
.fx-glass-inner.au-btn--gold { background: rgba(216,184,74,.72) !important; box-shadow: none !important; }
.fx-glass-inner.au-btn { margin: 0 !important; }
.fx-glass-inner.au-hero__stats { border-top: 0 !important; margin: 0 !important; padding: 1rem 1.3rem !important; }
.fx-glass-inner.fx-price { background: transparent; }
.au-hero__cta .fx-glass-host + .fx-glass-host, .au-hero__cta .fx-glass-host + .au-btn, .au-hero__cta .au-btn + .fx-glass-host { margin-left: .2rem; }

/* Frosted fallback (Safari, Firefox, iOS) */
.fx-glass-fallback { -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(255,255,255,.18), 0 10px 30px -12px rgba(0,0,0,.45); }
.fx-glass-fallback.au-btn--light, .fx-glass-fallback.fx-price, .fx-glass-fallback.au-hero__stats { background: rgba(255,255,255,.12) !important; }
.fx-glass-fallback.au-hero__stats { border-top: 0 !important; padding: 1rem 1.3rem !important; border-radius: 18px; }

@media (prefers-reduced-motion: reduce) { .fx-canvas { transition: none; } }
/* Assessment intro: heart floats beside the title on wider screens */
@media (min-width: 640px) { .ri-screen > .fx-heart--card { float: right; margin: -1.2rem -.6rem .4rem 1rem; } }
html:not(.fx-gl) .fx-heart { display: none; }
/* Lenses fill their measured host so content never re-wraps inside the glass */
.fx-glass-lens .glass { display: flex !important; width: 100%; }
.fx-glass-host .fx-glass-slot { width: 100%; }
.fx-glass-inner.au-btn, .fx-glass-inner.btn-gold, .fx-glass-inner.btn-outline { width: 100%; white-space: nowrap; }
.au-hero__cta + .fx-glass-host--block { margin-top: 1.6rem; }
@media (max-width: 600px) { .fx-stage { aspect-ratio: 1 / 1; } .fx-stage__hint { display: none; } }
/* Oct 2026: background-free product cut-out - bigger stage, no card */
.fx-stage--cut { max-width: 640px; }
.fnl .fx-stage--cut { max-width: 600px; }
.fx-stage--cut > .fx-fallback { inset: 2% 6%; width: 88%; height: 92%; border-radius: 0; filter: drop-shadow(0 18px 28px rgba(0,0,0,.35)); }
@media (max-width: 600px) { .fx-stage--cut { aspect-ratio: 10 / 11; } .fx-stage--cut .fx-stage__chip { bottom: 1%; } }
