/* PROT v3 motion layer. Scoped to html.fx (set by fx-core.js once gsap + motion are available) and to classes the fx-*.js files add,
   so no-JS, CDN-failure and reduced-motion pages look exactly like v2.1. Exceptions: marquee dots. */

/* ---------- Global: Text Roll Hover, header pill ---------- */
.fx-roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; white-space: nowrap; padding-block: .1em; margin-block: -.1em; }
.fx-roll-a, .fx-roll-b { display: inline-block; }
.fx-roll-b { position: absolute; left: 0; top: .1em; }
.fx-ch { display: inline-block; will-change: transform; }
.fx-pill { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: var(--radius-pill); background: var(--surface-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px var(--line); opacity: 0; pointer-events: none; }
@media (min-width: 900px) { .menu-panel a { position: relative; z-index: 1; } }

/* ---------- 01 Hero ---------- */
.fx .hero h1 .line { overflow: hidden; padding-block: .06em; margin-block: -.06em; }
.fx .hero-stage { position: relative; }
.fx .frame { border-radius: var(--fr, var(--radius-lg)); }
.hero.is-fx-pin .role-stage::before { opacity: var(--glow-o, .55); transform: scale(var(--glow-s, 1)); }
.hero.is-fx-pin .marquee { margin-top: calc(clamp(56px, 7vw, 104px) + var(--fx-grow, 0px)); }
/* floating example cards: aria-hidden DOM built by fx-hero.js, desktop pin mode only */
.fx-cards { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.fx-card { position: absolute; width: 214px; }
.fx-card--trainer { right: 1%; top: -3%; }
.fx-card--member { left: -3%; top: 44%; }
.fx-card--owner { right: -3%; top: 62%; }
.fx-card-p { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(19, 20, 24, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.fx-card-p b { display: block; font-size: 14px; line-height: 1.3; color: var(--ink); }
.fx-card-p small { display: block; font-size: 12px; line-height: 1.4; color: var(--muted); }
.fx-card-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); }

/* ---------- Marquee: dots in the brand color; JS drives the flow (the keyframes stop once fx is on) ---------- */
.marquee li::after { color: var(--brand); }
.fx .marquee-track { animation: none; }

/* ---------- 02 Problem: the number is a real element (scramble); CSS counter off ---------- */
.problem-list.fx-num li::before { content: none; }
.pl-n { font-size: clamp(28px, 4vw, 56px); line-height: 1; font-weight: 600; letter-spacing: -.03em; color: var(--muted); font-feature-settings: "tnum"; }

/* ---------- 03 #pt: pinned scene (fx-pt.js). The step list is lit by GSAP, the canvas is driven by one timeline ---------- */
.pt-pin.is-pinned.is-fx .pt-steps > li { transition: none; }
.pt-pin.is-fx .pt-count { position: absolute; left: 0; top: 22px; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--muted); font-feature-settings: "tnum"; }
.pt-count-n { display: inline-block; color: var(--ink); }
.pt-canvas.is-fx .pc-screen { opacity: 1; visibility: visible; transition: none; background: #fff; }
.pt-canvas.is-fx .pc-card, .pt-canvas.is-fx .pc-toast { opacity: 1; transform: none; transition: none; }
.pt-canvas.is-fx .pc-dots { display: none; }
.pt-canvas.is-fx .pc-cell.is-target { position: relative; background: transparent; border: 1px dashed var(--pc-dash); color: transparent; transition: none; }
.pc-fill { position: absolute; inset: -1px; display: flex; align-items: center; justify-content: center; border-radius: .55em; border: 1px solid var(--brand); background: var(--pc-tint); color: var(--brand-deep); font-style: normal; }
.pc-fill b { font-weight: 700; }
.pt-canvas.is-fx .pc-cta { position: relative; overflow: hidden; transition: none; }
.pc-ripple { position: absolute; left: 50%; top: 50%; width: 2em; height: 2em; margin: -1em 0 0 -1em; border-radius: 50%; background: rgba(255, 255, 255, .55); pointer-events: none; }
.pt-canvas.is-fx .pc-chips span { transition: none; }
/* toast with a check mark (the svg is in the markup; the stroke draw only exists in the pinned scene) */
.pc-toast { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .7em; align-items: center; }
.pc-check { grid-row: 1 / span 2; width: 1.7em; height: 1.7em; padding: .3em; border-radius: 50%; background: var(--brand-deep); fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pt-canvas.is-fx .pc-check path { stroke-dasharray: 1; }

/* ---------- 04 Member / 05 Admin ---------- */
.fx .feature-rows { perspective: 900px; }
.fx .admin-demo { perspective: 1200px; }
.adm-btn.is-morph { display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.adm-check { width: 20px; height: 20px; fill: none; stroke: var(--ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }

/* ---------- 06 Pricing: odometer, rotating ring, tilt, slider bubble ---------- */
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes fx-ring { to { --angle: 360deg; } }
.fx .plans { perspective: 1200px; }
.fx .plan-ring { background: conic-gradient(from var(--angle), var(--brand) 0deg, var(--brand-deep) 120deg, rgba(245, 67, 54, 0) 240deg, var(--brand) 360deg); animation: fx-ring 8s linear infinite; transition: opacity .3s; }
.fx .plans.is-ring-paused .plan-ring { animation-play-state: paused; }
.od-v { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.od-c { display: inline-block; overflow: clip; height: 1.1em; vertical-align: baseline; }
.od-r { display: block; font-style: normal; }
.od-r::before { content: "0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9"; display: block; white-space: pre; }
.calc-ctl { position: relative; }
.calc-bubble { position: absolute; z-index: 2; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--surface-2); box-shadow: 0 0 0 1px var(--brand), 0 8px 24px -8px rgba(0, 0, 0, .7); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap; pointer-events: none; font-feature-settings: "tnum"; }

/* ---------- 07 Start: horizontal track (desktop, pinned) ---------- */
#start.is-track { overflow-x: clip; }
#start.is-track .flow { display: flex; gap: 32px; width: max-content; }
#start.is-track .flow li { flex: none; width: min(420px, 32vw); padding: 28px 26px 32px; border: 0; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
#start.is-track .flow-rail, #start.is-track .flow-wrap .flow li::before { display: none; }

/* ---------- 09 Contact: the horizon glow rises with the sentence ---------- */
.fx .contact::after { opacity: var(--gl, 1); transform: translateX(-50%) translateY(var(--gy, 0%)); }
