/*
 * Motion layer for the landing page, driven by wow.js (GSAP + ScrollTrigger).
 * Everything here is scoped to html.wow, which wow.js sets only after GSAP has
 * loaded and only when the visitor has not asked for reduced motion — so without
 * it the page renders exactly as before.
 */

/* The earlier CSS-keyframe hero entrance and the .reveal transitions would fight
   GSAP's inline transforms, so they step aside. */
.wow .hero-photo > img, .wow .hero-copy > *, .wow .original-card, .wow .floating-quality, .wow .hero-reel-card { animation: none; }
.wow .reveal { transition: none; }
/* While GSAP drives an element's transform, a CSS transform transition would lag every frame. */
.wow .wow-anim { transition: none !important; }

/* Line masks for headings: each line rises out of its own clip. */
.wl { display: block; overflow: hidden; padding: 0 0.1em 0.18em; margin: 0 -0.1em -0.18em; }
.wl-in { display: block; }

/* A soft gold-white sheen that travels through the italic gold words. */
.wow em {
  --sx: -40%;
  --em-base: linear-gradient(100deg, var(--gold-deep) 0%, var(--gold-lit) 36%, var(--gold-dark) 64%, var(--gold-deep) 100%);
  background-image: linear-gradient(100deg, transparent calc(var(--sx) - 16%), rgba(255, 244, 214, 0.95) var(--sx), transparent calc(var(--sx) + 16%)), var(--em-base);
}
.wow .catalogue-copy em { --em-base: linear-gradient(100deg, #d2a964 0%, #f4e0b4 38%, #dcb878 66%, #cfa75f 100%); }
.wow .start-copy em { --em-base: linear-gradient(100deg, #d6ae60 0%, #f6e4bc 38%, #dfbd80 66%, #d2a964 100%); }

/* Hero: a warm bloom behind the photo, a light that follows the pointer across it. */
.wow .hero-art { isolation: isolate; }
.wow-bloom { position: absolute; inset: -14% -12% -8% -16%; z-index: -1; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, rgba(214, 174, 96, 0.34), rgba(214, 174, 96, 0) 72%); }
.wow-glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 240, 205, 0.36), rgba(255, 240, 205, 0) 45%); mix-blend-mode: soft-light; opacity: 0; transition: opacity 0.4s; }
@media (hover: hover) and (pointer: fine) { .wow .hero-photo:hover .wow-glare { opacity: 1; } }

/* Twinkling gem marks. */
@keyframes wow-twinkle { 0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 50% { transform: scale(1.28) rotate(45deg); opacity: 0.7; } }
.wow .tiny-gem, .wow .strip-inner > i { display: inline-block; animation: wow-twinkle 3.4s ease-in-out infinite; }
.wow .strip-inner > i:nth-of-type(2) { animation-delay: 0.7s; }
.wow .strip-inner > i:nth-of-type(3) { animation-delay: 1.4s; }

/* Dark sections: a gold spotlight that follows the pointer. */
.wow .catalogue-section, .wow .start-section { position: relative; }
.wow .catalogue-section > .container, .wow .start-section > .container { position: relative; z-index: 1; }
.wow-spot { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(640px circle at var(--mx, 50%) var(--my, 40%), rgba(214, 174, 96, 0.14), rgba(214, 174, 96, 0) 62%); opacity: 0; transition: opacity 0.6s; }
@media (hover: hover) and (pointer: fine) { .wow .catalogue-section:hover .wow-spot, .wow .start-section:hover .wow-spot { opacity: 1; } }

/* How it works: a gold line that draws along the steps as you scroll. */
.wow .steps { position: relative; isolation: isolate; }
.wow-step-line { position: absolute; left: 0; top: -1px; width: 100%; height: 2px; background: linear-gradient(90deg, #b88a35, #ecd08f 55%, #b88a35); transform-origin: 0 50%; pointer-events: none; }
.wow-step-line.is-vertical { top: 0; left: -12px; width: 2px; height: 100%; background: linear-gradient(180deg, #b88a35, #ecd08f 55%, #b88a35); transform-origin: 50% 0; z-index: -1; }

/* Pricing: numbers that count up hold their width; the popular plan carries a slow sheen. */
.wow .plan-price { font-variant-numeric: tabular-nums; }
.wow .plan-popular::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, rgba(240, 214, 150, 0) 38%, rgba(240, 214, 150, 0.16) 50%, rgba(240, 214, 150, 0) 62%) 0 0 / 260% 100% no-repeat; animation: wow-card-sheen 6s ease-in-out 1s infinite; }
@keyframes wow-card-sheen { 0% { background-position: 120% 0; } 45%, 100% { background-position: -20% 0; } }

/* Reels: a soft pulse around the big play button. */
.wow .big-play::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(255, 236, 196, 0.6); animation: wow-pulse 2.4s ease-out infinite; pointer-events: none; }
@keyframes wow-pulse { 0% { transform: scale(0.85); opacity: 0.9; } 100% { transform: scale(1.55); opacity: 0; } }

/* Catalogue note: a live dot. */
.wow .status-dot { animation: wow-dot 2s ease-in-out infinite; }
@keyframes wow-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(84, 191, 124, 0.55); } 50% { box-shadow: 0 0 0 7px rgba(84, 191, 124, 0); } }

/* Typing caret for the WhatsApp message preview. */
.wow-caret { display: inline-block; width: 1px; height: 1.1em; margin-left: 2px; vertical-align: -0.15em; background: currentColor; animation: wow-caret 0.9s steps(1) infinite; }
@keyframes wow-caret { 50% { opacity: 0; } }

/* Magnetic buttons move with the pointer; keep their colour transitions, drop the transform one. */
@media (hover: hover) and (pointer: fine) {
  .wow .wow-magnetic { transition: box-shadow 0.28s, border-color 0.28s, background-color 0.28s !important; }
}

/* FAQ answers open and close smoothly. */
.wow .faq-list details > p { overflow: hidden; }
