/* website-product.html — the builder's showcase (11.2026): designs strip,
   Studio clip, Premium hero types, motion demos, before/after, by field.
   Uses the site's own tokens (--text, --surface, --border, --primary…),
   so it follows the light and dark themes. Motion only without
   prefers-reduced-motion (js/wp-showcase.js adds .wpx-in when a card
   scrolls into view). */
.wpx { padding: clamp(40px, 5vw, 72px) 0; position: relative; }
.wpx + .wpx { padding-top: clamp(24px, 4vw, 48px); }
.wpx-head { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 44px); text-align: center; }
.wpx-head h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.18; margin: 10px 0 12px; letter-spacing: -.01em; }
.wpx-head p { font-size: clamp(15px, 1.4vw, 17px); line-height: 1.75; color: var(--text-secondary, var(--grey)); margin: 0; }
.wpx-center { text-align: center; margin-top: clamp(24px, 3vw, 36px); }
.wpx-cta { display: inline-block; font-size: 16px; padding: 15px 34px; text-decoration: none; }
.wpx-note { text-align: center; font-size: 13px; color: var(--text-secondary, var(--grey)); margin: 18px 0 0; }

/* ---- 1. designs ---- */
.wpx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 860px; margin: 0 auto; }
.wpx-stat { text-align: center; padding: 18px 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.wpx-stat b { display: block; font-family: "Space Grotesk", Heebo, sans-serif; font-size: clamp(34px, 5vw, 54px); line-height: 1; letter-spacing: -.03em;
  background: linear-gradient(120deg, var(--primary, #14B8A6), #6366F1 60%, #EC4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wpx-stat span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--text-secondary, var(--grey)); }
@media (max-width: 640px) { .wpx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wpx-strip { margin-top: clamp(28px, 4vw, 44px); display: grid; gap: 14px; overflow: hidden; direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.wpx-strip-row { overflow: hidden; }
.wpx-strip-track { display: flex; gap: 14px; width: max-content; }
.wpx-strip-track img { width: clamp(210px, 22vw, 300px); height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: top; border-radius: 14px;
  border: 1px solid var(--border); box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .55); background: var(--surface); }
@media (prefers-reduced-motion: no-preference) {
  .wpx-strip-track { animation: wpx-marquee 90s linear infinite; }
  .wpx-strip-row.is-rev .wpx-strip-track { animation-direction: reverse; animation-duration: 80s; }
  .wpx-strip:hover .wpx-strip-track { animation-play-state: paused; }
}
@keyframes wpx-marquee { to { transform: translateX(calc(-50% - 7px)); } }
@media (prefers-reduced-motion: reduce) { .wpx-strip-row { overflow-x: auto; } }

/* ---- 2. studio clip ---- */
.wpx-studio-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.wpx-studio-copy h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; margin: 10px 0 12px; }
.wpx-studio-copy p { color: var(--text-secondary, var(--grey)); line-height: 1.75; margin: 0 0 16px; }
.wpx-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wpx-ticks li { position: relative; padding-inline-start: 30px; line-height: 1.6; font-size: 15px; }
.wpx-ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff; background: var(--primary, #14B8A6); }
.wpx-video { position: relative; margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .65), 0 0 0 6px rgba(20, 184, 166, .08); background: #0b1020; aspect-ratio: 1280 / 764; }
.wpx-video-el { display: block; width: 100%; height: 100%; object-fit: cover; }
.wpx-video-btn { position: absolute; inset-inline-end: 12px; bottom: 12px; border: 0; border-radius: 999px; padding: 7px 14px; font: 600 12.5px Heebo, sans-serif;
  color: #fff; background: rgba(11, 16, 32, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; }
.wpx-video-btn:focus-visible { outline: 2px solid var(--primary, #14B8A6); outline-offset: 2px; }
@media (max-width: 860px) { .wpx-studio-grid { grid-template-columns: 1fr; } .wpx-studio-copy { order: 2; } }

/* ---- 3. hero types ---- */
.wpx-hero-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.wpx-hero-card, .wpx-biz-card { margin: 0; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--border);
  transition: transform .45s cubic-bezier(.22, .61, .36, 1), box-shadow .45s cubic-bezier(.22, .61, .36, 1); }
.wpx-hero-card img, .wpx-biz-card img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; }
.wpx-hero-card figcaption, .wpx-biz-card figcaption { padding: 12px 14px 14px; display: grid; gap: 4px; }
.wpx-hero-card b, .wpx-biz-card b { font-size: 15.5px; }
.wpx-hero-card figcaption span { font-size: 13.5px; color: var(--text-secondary, var(--grey)); line-height: 1.55; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .wpx-hero-card:hover, .wpx-biz-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(0, 0, 0, .6); }
}
@media (max-width: 900px) { .wpx-hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .wpx-hero-grid { grid-template-columns: 1fr; } }

/* ---- 4. motion demos ---- */
.wpx-anim-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.wpx-anim-card { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); display: grid; gap: 4px; text-align: center; }
.wpx-anim-card b { font-family: "Space Grotesk", Heebo, sans-serif; font-size: 15px; direction: ltr; }
.wpx-anim-card > span { font-size: 13px; color: var(--text-secondary, var(--grey)); }
.wpx-anim-demo { height: 92px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 12px; background: var(--ice, rgba(127, 127, 127, .08)); overflow: hidden; }
.wpx-anim-box { width: 70%; height: 54px; border-radius: 12px; background: linear-gradient(120deg, var(--primary, #14B8A6), #6366F1 70%, #EC4899); box-shadow: 0 14px 30px -16px rgba(99, 102, 241, .8); }
.wpx-anim-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.wpx-anim-panel { position: relative; overflow: hidden; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); display: grid; gap: 8px; align-content: start; }
.wpx-anim-panel > b { font-size: 15px; position: relative; }
.wpx-anim-panel > span { font-size: 13.5px; color: var(--text-secondary, var(--grey)); position: relative; }
.wpx-aurora { min-height: 170px; }
.wpx-aurora::before, .wpx-aurora::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; filter: blur(40px); opacity: .55; pointer-events: none; }
.wpx-aurora::before { background: #6366F1; inset-inline-start: -20%; top: -40%; }
.wpx-aurora::after { background: var(--primary, #14B8A6); inset-inline-end: -25%; bottom: -55%; }
.wpx-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.wpx-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 13.5px;
  color: #fff; background: linear-gradient(120deg, var(--primary, #14B8A6), #6366F1); cursor: default; user-select: none;
  transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s cubic-bezier(.22, .61, .36, 1); }
.wpx-btn i { font-style: normal; display: inline-block; transition: transform .35s cubic-bezier(.22, .61, .36, 1); }
.wpx-btn.fx-shine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); }
.wpx-mini-card { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); transition: transform .45s cubic-bezier(.22, .61, .36, 1), box-shadow .45s; }
.wpx-mini-card img { display: block; width: 100%; height: auto; transition: transform .7s cubic-bezier(.22, .61, .36, 1); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .wpx-btn.fx-lift:hover { transform: translateY(-3px); box-shadow: 0 16px 28px -14px rgba(99, 102, 241, .9); }
  .wpx-btn.fx-glow:hover { box-shadow: 0 0 0 4px rgba(99, 102, 241, .18), 0 0 28px rgba(99, 102, 241, .75); }
  .wpx-btn.fx-shine:hover::after { transform: translateX(120%); transition: transform .8s cubic-bezier(.22, .61, .36, 1); }
  [dir="rtl"] .wpx-btn.fx-arrow:hover i { transform: translateX(-5px); }
  [dir="ltr"] .wpx-btn.fx-arrow:hover i { transform: translateX(5px); }
  .wpx-card-hover:hover .wpx-mini-card { transform: translateY(-4px); box-shadow: 0 20px 36px -22px rgba(0, 0, 0, .6); }
  .wpx-card-hover:hover .wpx-mini-card img { transform: scale(1.06); }
}
@media (prefers-reduced-motion: no-preference) {
  .wpx-aurora::before { animation: wpx-drift 9s ease-in-out infinite alternate; }
  .wpx-aurora::after { animation: wpx-drift 11s ease-in-out infinite alternate-reverse; }
  /* entrance demos: hidden until js/wp-showcase.js marks the card .wpx-in */
  .wpx-js [data-wpx-anim] .wpx-anim-box { opacity: 0; transition: opacity .8s cubic-bezier(.22, .61, .36, 1), transform .8s cubic-bezier(.22, .61, .36, 1), filter .8s, clip-path .9s cubic-bezier(.22, .61, .36, 1); }
  .wpx-js [data-wpx-anim="fade-up"] .wpx-anim-box { transform: translateY(26px); }
  .wpx-js [data-wpx-anim="zoom"] .wpx-anim-box { transform: scale(.6); }
  .wpx-js [data-wpx-anim="blur"] .wpx-anim-box { filter: blur(12px); }
  .wpx-js [data-wpx-anim="clip"] .wpx-anim-box { opacity: 1; clip-path: inset(0 0 0 100%); }
  .wpx-js [data-wpx-anim].wpx-in .wpx-anim-box { opacity: 1; transform: none; filter: none; clip-path: inset(0); }
  .wpx-js .wpx-words .wpx-w { display: inline-block; opacity: 0; transform: translateY(.45em); transition: opacity .6s cubic-bezier(.22, .61, .36, 1), transform .6s cubic-bezier(.22, .61, .36, 1); transition-delay: calc(var(--i) * 90ms); }
  .wpx-js .wpx-words.wpx-in .wpx-w { opacity: 1; transform: none; }
  /* the sections' own cards rise in once */
  .wpx-js .wpx-rise { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.22, .61, .36, 1), transform .6s cubic-bezier(.22, .61, .36, 1); transition-delay: calc(var(--i, 0) * 60ms); }
  .wpx-js .wpx-rise.wpx-in { opacity: 1; transform: none; }
}
@keyframes wpx-drift { to { transform: translate(18%, 12%) scale(1.15); } }
@media (max-width: 900px) { .wpx-anim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wpx-anim-row { grid-template-columns: 1fr; } }

/* ---- 5. before / after ---- */
.wpx-ba-frame { position: relative; max-width: 1040px; margin: 0 auto; border-radius: 18px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 40px 80px -44px rgba(0, 0, 0, .7); aspect-ratio: 8 / 5; direction: ltr; user-select: none; touch-action: pan-y; }
.wpx-ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
/* "before" shows on the RIGHT of the line (the reading start in Hebrew) */
.wpx-ba-before { clip-path: inset(0 0 0 var(--pos)); }
.wpx-ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .35); pointer-events: none; }
.wpx-ba-line i { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.wpx-ba-line i::before, .wpx-ba-line i::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent; }
.wpx-ba-line i::before { left: 7px; border-right-color: #0b1020; }
.wpx-ba-line i::after { right: 7px; border-left-color: #0b1020; }
.wpx-ba-tag { position: absolute; bottom: 14px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #fff; background: rgba(11, 16, 32, .7); pointer-events: none; }
.wpx-ba-tag.is-before { right: 14px; }
.wpx-ba-tag.is-after { left: 14px; }
.wpx-ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; direction: ltr; }
.wpx-ba-range:focus-visible + * , .wpx-ba-frame:focus-within { outline: 3px solid var(--primary, #14B8A6); outline-offset: 3px; }

/* ---- 6. by field ---- */
.wpx-biz-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 20px); }
.wpx-biz-card figcaption { gap: 8px; }
.wpx-chip { justify-self: start; display: inline-flex; gap: 4px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: var(--primary-dark, #0F766E); background: rgba(20, 184, 166, .12); border: 1px solid rgba(20, 184, 166, .28); }
html:not(.hv-light) body.theme-v2 .wpx-chip { color: #5eead4; }
@media (max-width: 1000px) { .wpx-biz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .wpx-biz-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .wpx-video-btn { padding: 5px 10px; font-size: 11.5px; inset-inline-end: 8px; bottom: 8px; } }
