/* Product homes, premium motion: the styles public/ph-motion.js works with. The head of the page adds .phm-js at once
   (the hero waits hidden for its entrance, never more than 2.5 s); the script adds .phm when it runs. */
@media (prefers-reduced-motion: no-preference) {
  .phm-js .ph .hero h1, .phm-js .ph .hero .pbig, .phm-js .ph .hero .chip, .phm-js .ph .hero .sub, .phm-js .ph .hero .ctas, .phm-js .ph .hero .trust, .phm-js .ph .hero .stage { opacity: 0; animation: phmshow 0s 2.5s forwards; }
  .phm-js .ph .stat b i { animation-play-state: paused; }
  .phm-js .ph .stat.on b i { animation-play-state: running; }
}
@keyframes phmshow { to { opacity: 1; } }
/* the script reveals the sections itself: the CSS scroll rise steps aside */
.phm .ph section:not(.hero) { animation: none !important; }

/* scroll progress */
.phm-bar { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 1000; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--phm-c, #7c3aed), #22c98a, var(--phm-c, #7c3aed)); pointer-events: none; }
[dir=rtl] .phm-bar { transform-origin: right; }

/* the hero: soft color blobs drifting behind it */
.ph .hero { position: relative; isolation: isolate; }
.phm-aur { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; border-radius: 40px; }
.phm-aur i { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; filter: blur(70px); opacity: .45; animation: phmblob 18s ease-in-out infinite alternate; }
.phm-aur i:nth-child(1) { background: var(--c); top: -10%; inset-inline-end: 4%; }
.phm-aur i:nth-child(2) { background: #22c98a; bottom: -16%; inset-inline-end: 30%; width: 34%; animation-duration: 22s; animation-delay: -6s; opacity: .3; }
.phm-aur i:nth-child(3) { background: #a78bfa; top: 20%; inset-inline-start: -8%; width: 30%; animation-duration: 26s; animation-delay: -12s; opacity: .3; }
@keyframes phmblob { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8%, 10%) scale(1.15); } 100% { transform: translate(-10%, -4%) scale(.9); } }
.phm-w { display: inline-block; will-change: transform, filter; }
.phm-tilt { transform-style: preserve-3d; will-change: transform; }
.ph .stage .fl { will-change: transform; }

/* magnetic buttons: a sheen runs across on hover */
.phm-mag { position: relative; overflow: hidden; will-change: transform; }
.phm-mag::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; pointer-events: none; }
.phm-mag:hover::before { transform: translateX(120%); }

/* a light that follows the pointer on cards */
.phm-spot { position: relative; }
.phm-spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c) 30%, transparent), transparent 60%); }
.phm-spot:hover::after { opacity: 1; }
.ph .bx.lt.phm-spot::after, .ph .price.phm-spot::after, .ph .step.phm-spot::after, .ph .prob.phm-spot::after { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c) 14%, transparent), transparent 60%); }
.ph .bx > * { position: relative; z-index: 1; }

/* a light running around the wide bento cards and the best price */
@property --phA { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.ph .bx.w::before, .ph .price.best::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--phA), transparent 0 62%, var(--c) 78%, #fff 84%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: phmspin 6s linear infinite; }
.ph .price.best { position: relative; }
@keyframes phmspin { to { --phA: 360deg; } }

/* the end block: a slow shine over the dark background */
.ph .end { position: relative; overflow: hidden; isolation: isolate; }
.ph .end::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from var(--phA), #141a46, color-mix(in srgb, var(--c) 60%, #141a46), #141a46 40%, #1e3a8a, #141a46); animation: phmspin 14s linear infinite; opacity: .9; }

/* examples: a gentle zoom on hover; the ticker stops under the pointer */
.ph .gal figure, .ph .vids figure { overflow: hidden; border-radius: 18px; }
.ph .gal img, .ph .gal video, .ph .gal .post, .ph .scn .sp img, .ph .scn .sp video { transition: transform .6s cubic-bezier(.22,1,.36,1); }
.ph .gal figure:hover img, .ph .gal figure:hover video, .ph .gal figure:hover .post, .ph .scn figure:hover .sp img, .ph .scn figure:hover .sp video { transform: scale(1.05); }
.ph .marq:hover .tr { animation-play-state: paused; }
.ph .tabs2 .lbls label { transition: background .3s ease, color .3s ease, transform .2s ease; }
.ph .tabs2 .lbls label:hover { transform: translateY(-2px); }
.ph details[open] summary { color: var(--ct, var(--c)); }

/* the numbers (31.10.2026, the user: "too plain, premium, animated"): a deep card in the product's color, a light running
   around its edge, a sheen crossing it, a gradient number, and a ring the script draws around it when it is counted */
body .ph .stats { gap: 18px; }
body .ph .stats > .stat { position: relative; overflow: hidden; isolation: isolate; border-radius: 26px; padding: 34px 18px 26px; border: 1px solid rgba(255,255,255,.08);
  background: radial-gradient(130% 120% at 50% -10%, color-mix(in srgb, var(--c) 48%, #1a1c4a) 0%, #12143a 62%); box-shadow: 0 26px 54px -30px color-mix(in srgb, var(--c) 75%, #000); transition: transform .35s cubic-bezier(.22,1,.36,1); }
body .ph .stats > .stat:hover { transform: translateY(-6px); }
body .ph .stats > .stat::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: 2; pointer-events: none;
  background: conic-gradient(from var(--phA), transparent 0 60%, color-mix(in srgb, var(--c) 80%, #fff) 76%, #fff 82%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: phmspin 5s linear infinite; }
body .ph .stats > .stat:nth-child(2)::before { animation-delay: -1.7s; } body .ph .stats > .stat:nth-child(3)::before { animation-delay: -3.4s; }
body .ph .stats > .stat::after { content: ""; position: absolute; inset: -20% -60%; z-index: 1; pointer-events: none; background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.12) 50%, transparent 58%); transform: translateX(-60%); animation: phmsheen 6s ease-in-out infinite; }
body .ph .stats > .stat:nth-child(2)::after { animation-delay: 2s; } body .ph .stats > .stat:nth-child(3)::after { animation-delay: 4s; }
@keyframes phmsheen { 0%, 55% { transform: translateX(-60%); } 85%, 100% { transform: translateX(60%); } }
body .ph .stats > .stat b { position: relative; z-index: 3; font-size: 64px; line-height: 1; background: linear-gradient(180deg, #fff 35%, color-mix(in srgb, var(--c) 55%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 8px 22px color-mix(in srgb, var(--c) 60%, transparent)); }
body .ph .stats > .stat > span { position: relative; z-index: 3; color: rgba(255,255,255,.78); font-weight: 700; margin-top: 12px; }
.phm-ring { position: absolute; top: 8px; left: 50%; width: 112px; height: 112px; transform: translateX(-50%) rotate(-90deg); z-index: 1; pointer-events: none; }
.phm-ring circle { fill: none; stroke-width: 3; }
.phm-ring .t { stroke: rgba(255,255,255,.07); }
.phm-ring .p { stroke: color-mix(in srgb, var(--c) 75%, #fff); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 2.2s cubic-bezier(.22,1,.36,1); filter: drop-shadow(0 0 6px var(--c)); }
.stat.on .phm-ring .p { stroke-dashoffset: 0; }
@media (max-width: 520px) { body .ph .stats > .stat b { font-size: 38px; } .phm-ring { width: 76px; height: 76px; top: 10px; } body .ph .stats > .stat { padding: 22px 6px 16px; } }

/* how it works: the line the script draws across the steps */
.ph .steps { position: relative; }
.phm-line { position: absolute; top: 50%; inset-inline: 4%; height: 3px; border-radius: 3px; z-index: 0; transform-origin: right; transform: scaleX(0); background: linear-gradient(90deg, var(--c), #22c98a); pointer-events: none; }
[dir=ltr] .phm-line { transform-origin: left; }
.ph .steps > .step { position: relative; z-index: 1; }
@media (max-width: 900px) { .phm-line { display: none; } }

/* the page glow under the pointer */
.phm-glow { position: fixed; top: 0; left: 0; width: 600px; height: 600px; border-radius: 50%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .6s ease;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--phm-c, #7c3aed) 16%, transparent), transparent); }
.th-main, .th-foot { position: relative; z-index: 1; }

/* the mocks inside the bento breathe a little */
.ph .phn { animation: phmbob 6s ease-in-out infinite; }
.ph .scr, .ph .chat2 { animation: phmbob 7s ease-in-out infinite reverse; }
@keyframes phmbob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

@media (prefers-reduced-motion: reduce) {
  .ph .phn, .ph .scr, .ph .chat2, .phm-glow { animation: none; display: revert; }
  body .ph .stats > .stat::before, body .ph .stats > .stat::after { animation: none; }
  .phm-aur i, .ph .bx.w::before, .ph .price.best::before, .ph .end::before { animation: none; }
  .phm-mag::before { display: none; }
}
