/* FlowCraft Proof Slider — catalogue demo styles (extends site.css)
   Mirrors the buyer-delivered Tailwind widget with the site's own tokens.
   Every selector is prefixed .ps- to avoid clashing with other demos. */

.ps { margin: 0; background: var(--surface); border-radius: 16px; padding: 10px; }
@media (min-width: 600px) { .ps { padding: 12px; } }
.ps-stage {
  position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 12px; background: var(--bg-soft);
  cursor: ew-resize; user-select: none; -webkit-user-select: none;
  touch-action: pan-y; -webkit-tap-highlight-color: transparent;
}
.ps-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none; border-radius: 0;
}
.ps-before { clip-path: inset(0 50% 0 0); will-change: clip-path; }

.ps-label {
  position: absolute; top: 10px; z-index: 2;
  padding: .22rem .7rem; border-radius: 999px;
  font-size: .7rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
  transition: opacity .2s ease; pointer-events: none;
}
.ps-label-before { left: 10px; background: rgba(15, 27, 61, .78); color: #fff; }
.ps-label-after { right: 10px; background: rgba(255, 255, 255, .9); color: var(--ink); }

.ps-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; z-index: 3;
  width: 40px; transform: translateX(-50%); outline: none;
}
.ps-line {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%);
  background: #fff; box-shadow: 0 0 0 1px rgba(15, 27, 61, .15);
}
.ps-grip {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--ink);
  box-shadow: 0 6px 18px rgba(15, 27, 61, .25), 0 0 0 1px rgba(15, 27, 61, .08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ps-grip svg { width: 22px; height: 22px; }
.ps-stage:hover .ps-grip, .ps-stage.is-dragging .ps-grip { transform: translate(-50%, -50%) scale(1.08); }
.ps-stage.is-dragging { cursor: grabbing; }
.ps-handle:focus-visible .ps-grip { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--accent); }
.ps-stage.is-animating .ps-before { transition: clip-path .25s ease; }
.ps-stage.is-animating .ps-handle { transition: left .25s ease; }

.ps-cap {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px;
  padding: 10px 4px 2px; font-size: .88rem; color: var(--ink-muted);
}
.ps-cap strong { color: var(--ink); }
.ps-hint { display: inline-flex; align-items: center; gap: 6px; }
.ps-hint svg { width: 16px; height: 16px; }

@media (prefers-reduced-motion: reduce) {
  .ps-label, .ps-grip, .ps-stage.is-animating .ps-before, .ps-stage.is-animating .ps-handle { transition: none; }
}
/* Without JavaScript the handle can't move; say so via the noscript note and dim the grip. */
html:not(.js-proof-slider) .ps-grip { opacity: .5; }

@media (max-width: 479px) {
  #proof-slider .product-head { padding: 24px 14px; }
  .ps-grip { width: 40px; height: 40px; }
  .ps-label { font-size: .64rem; top: 8px; }
}
