/* ============================================================================
   Product pages - the LIVE plugin (16.11.2026, first on RONE Reverb). Liran: "the page
   is dry - GIFs and small animations of the mouse on it, like the other plugins".
   Each .ldemo holds a screenshot of the plugin (the poster: no script, reduced motion,
   or while it loads). Near the screen, assets/<plugin>-demo.js lays the plugin's REAL
   page over it in an iframe (demo/<slug>/, built by scripts/demo-ui/build.py) and a
   cursor that turns its knobs and drags its picture with pointer events - the plugin
   draws every change itself. Visitors watch; the iframe takes no clicks.
   Sizes in the plugin's design pixels: --u = one of them on the page.
   ============================================================================ */

.ld-demos { padding: 96px 0 40px; }
.ld-rows { display: grid; gap: 80px; margin-top: 8px; }
.ld-row { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.ld-row.flip { flex-wrap: wrap-reverse; }
.ld-row .copy { flex: 1 1 320px; min-width: 0; }
.ld-row .copy .n { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; color: var(--kn); }
.ld-row .copy h3 { font-family: var(--font-disp); font-size: clamp(24px, 2.8vw, 32px); line-height: 1.15; margin: 10px 0 14px; }
.ld-row .copy p { color: var(--text2); font-size: 16px; line-height: 1.65; margin: 0; }
.ld-row .pic { flex: 1.5 1 480px; min-width: 0; }

.ldemo { position: relative; overflow: hidden; border-radius: 14px; --u: 1px; border: 1px solid var(--line2);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px var(--kn-soft); background: #14161A; }
.ldemo > img { display: block; width: 100%; height: auto; }
.ld-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; pointer-events: none;
    opacity: 0; transition: opacity .35s ease; background: transparent; }
.ld-frame.on { opacity: 1; }

.ld-layer { position: absolute; inset: 0; pointer-events: none; font-family: var(--font-body); z-index: 2; }
.ld-layer > * { position: absolute; }
.ld-cursor { left: 0; top: 0; width: max(15px, calc(var(--u) * 17)); height: max(15px, calc(var(--u) * 17));
    margin: calc(var(--u) * -2) 0 0 calc(var(--u) * -3.5); z-index: 9; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); opacity: 0; transition: opacity .3s; }
.ld-cursor.on { opacity: 1; }
.ld-cursor svg { width: 100%; height: 100%; display: block; transform-origin: 25% 15%; }
.ld-cursor path { fill: #fff; stroke: #0B0C0E; stroke-width: 1.4; stroke-linejoin: round; }
.ld-ripple { width: max(22px, calc(var(--u) * 30)); height: max(22px, calc(var(--u) * 30)); border-radius: 50%;
    border: 2px solid rgba(255,255,255,.85); z-index: 8; }
.ld-toast { transform: translateX(-50%); white-space: nowrap; z-index: 7; display: flex; align-items: center; gap: 0.6em;
    font-size: max(9px, calc(var(--u) * 11)); font-weight: 700; color: var(--text);
    background: #1B1E23; border: 1px solid #383D45; border-radius: 0.8em; padding: 0.6em 1em; box-shadow: 0 12px 30px rgba(0,0,0,.55); }
.ld-toast i { width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--kn); box-shadow: 0 0 8px var(--kn-glow); flex: none; display: inline-block; }

@media (max-width: 700px) {
    .ld-demos { padding: 64px 0 24px; }
    .ld-rows { gap: 56px; }
    .ld-row { gap: 24px; }
    .ld-row .pic { flex-basis: 100%; }
}
