/* The apps' made-up previews (pure CSS, no product copy): the sample business card (.hc) and the
   stream overlay (.ov), as assets/shop-tile.js draws them. The shop home's app panels
   (assets/shop.js), the app pages' stage (shop/app.html, turned by assets/product.js) and the home
   page's "From Our Shop" row (index.html, loaded by assets/home-shop.js when it nears the screen).
   Linked by the shop pages after shop.css; kept out of shop.css so the home page can load the
   previews without the shop's styles. .hc-sway on a wrapper: the card sways on its own, its foil
   and light shifting with it (only without prefers-reduced-motion), as on the shop home. */
:root{--holo:linear-gradient(115deg,#3fd8ff 0%,#8f7bff 18%,#ff6fd8 36%,#ffcf6b 54%,#6dffb8 72%,#3fd8ff 100%)}
/* ---------- the holographic business card preview (pure CSS) ---------- */
.hc{position:relative;width:100%;aspect-ratio:1000/571;container-type:inline-size;perspective:1400px}
.hc-tilt{position:absolute;inset:0;transform:rotateY(var(--ry,-14deg)) rotateX(var(--rx,8deg)) rotateZ(-3deg);transform-style:preserve-3d}
.hc-face,.hc-back{position:absolute;inset:0;border-radius:4.4cqw;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden;
  background:linear-gradient(45deg,#3a2370,#0d1226);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12),inset 0 1px 0 rgba(255,255,255,.16)}
.hc-face{transform:rotateY(0deg) translateZ(.1px)}
.hc-back{transform:rotateY(180deg) translateZ(.1px);display:flex;align-items:center;gap:6cqw;padding:0 8cqw;color:#fff}
.hc-back svg{width:30cqw;height:30cqw;padding:2cqw;border-radius:2.4cqw;background:#fff;flex-shrink:0}
.hc-back b{display:block;font-size:5cqw;font-weight:600;letter-spacing:-.02em}
.hc-back span{display:block;font-family:"Geist Mono","Geist Mono Fallback",monospace;font-size:2.4cqw;letter-spacing:.16em;text-transform:uppercase;color:#ffcf6b;margin-top:1.6cqw}
.hc-foilwrap{position:absolute;inset:0;-webkit-mask-image:linear-gradient(100deg,transparent 28%,#000 72%);mask-image:linear-gradient(100deg,transparent 28%,#000 72%)}
.hc-foil{--foil:var(--holo);position:absolute;inset:0;background:radial-gradient(circle at 78% 22%,rgba(255,255,255,.9),rgba(255,255,255,.2) 10%,transparent 26%),var(--foil);background-size:100% 100%,180% 180%;background-position:0 0,30% 40%;
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'40'%20height%3D'69.28'%3E%3Cpath%20d%3D'M0%200H40M0%2034.64H40M0%2069.28L40%200M0%200L40%2069.28'%20stroke%3D'%23000'%20stroke-width%3D'1.3'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'40'%20height%3D'69.28'%3E%3Cpath%20d%3D'M0%200H40M0%2034.64H40M0%2069.28L40%200M0%200L40%2069.28'%20stroke%3D'%23000'%20stroke-width%3D'1.3'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");-webkit-mask-size:8cqw auto;mask-size:8cqw auto;opacity:.95;filter:saturate(1.15)}
.hc[data-foil="gold"] .hc-foil{--foil:linear-gradient(115deg,#fff6c2,#e0b24c 18%,#8f6420 34%,#ffe9a3 50%,#b8862e 66%,#fff3bf 82%,#9a6c22)}
.hc[data-foil="silver"] .hc-foil{--foil:linear-gradient(115deg,#ffffff,#c9d1dd 18%,#6f7a8c 34%,#f7f9fc 50%,#8e98a8 66%,#ffffff 82%,#737e90)}
.hc[data-foil="rose"] .hc-foil{--foil:linear-gradient(115deg,#fff0ea,#f0a8a0 18%,#b0606a 34%,#ffd8cf 50%,#c97a7e 66%,#fff0ea 82%,#a5545e)}
.hc[data-foil="copper"] .hc-foil{--foil:linear-gradient(115deg,#ffe2c6,#e08a4e 18%,#8a3f18 34%,#ffc79c 50%,#b5602c 66%,#ffd9b8 82%,#7d3814)}
.hc-glint{position:absolute;right:6cqw;top:5cqw;width:22cqw;height:22cqw;border-radius:50%;background:radial-gradient(closest-side,rgba(160,220,255,.35),transparent);mix-blend-mode:screen}
.hc-sheen{position:absolute;inset:-10% -60%;background:linear-gradient(105deg,transparent 38%,rgba(255,255,255,.12) 43%,rgba(255,255,255,.42) 50%,rgba(255,255,255,.12) 57%,transparent 62%);mix-blend-mode:screen}
/* The card's logo (top left) and photo (top right), as the real card's classic layout places them (card app shared/card.css .bc-logo, .bc-avatar). */
.hc-logo{position:absolute;left:6.5cqw;top:6.5cqw;height:8cqw;width:auto;max-width:34cqw}
.hc-av{position:absolute;right:6.5cqw;top:6.5cqw;width:20cqw;height:20cqw;border-radius:50%;object-fit:cover;background:rgba(255,255,255,.08);box-shadow:0 0 0 .45cqw #ffcf6b,0 1.4cqw 3.6cqw rgba(0,0,0,.35)}
.hc-txt{position:absolute;left:6.5cqw;bottom:6.5cqw;display:flex;flex-direction:column;color:#fff;text-align:left}
.hc-txt i{display:block;width:7cqw;height:.55cqw;border-radius:1cqw;background:#ffcf6b;margin-bottom:2.4cqw}
.hc-txt b{font-size:6.4cqw;font-weight:700;letter-spacing:-.012em;line-height:1.04}
.hc-txt span{font-size:2.9cqw;color:rgba(255,255,255,.75);margin-top:1.3cqw}
.hc-txt em{font-style:normal;font-size:2.15cqw;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:#ffcf6b;margin-top:1.1cqw}
.hc-mark{position:absolute;left:8cqw;width:30cqw;bottom:3.4cqw;text-align:center;font:500 1.5cqw/1 "Geist Mono","Geist Mono Fallback",monospace;letter-spacing:.03em;white-space:nowrap;color:rgba(234,242,255,.72);opacity:.75}
/* The Free sample card: the card app's free Blueprint template (blue, a fine grid, matte, no foil), its light-blue accent. */
.hc--free .hc-face,.hc--free .hc-back{background:linear-gradient(rgba(159,208,255,.09) 1px,transparent 1px) 0 0/20cqw 20cqw,linear-gradient(90deg,rgba(159,208,255,.09) 1px,transparent 1px) 0 0/20cqw 20cqw,linear-gradient(rgba(234,242,255,.035) 1px,transparent 1px) 0 0/4cqw 4cqw,linear-gradient(90deg,rgba(234,242,255,.035) 1px,transparent 1px) 0 0/4cqw 4cqw,linear-gradient(180deg,#1a4fa0,#0d2f66)}
.hc--free .hc-av{box-shadow:0 0 0 .45cqw #9fd0ff,0 1.4cqw 3.6cqw rgba(0,0,0,.35)}
.hc--free .hc-txt,.hc--free .hc-back{color:#eaf2ff}
.hc--free .hc-txt i{background:#9fd0ff}
.hc--free .hc-txt span{color:rgba(234,242,255,.75)}
.hc--free .hc-txt em,.hc--free .hc-back span{color:#9fd0ff}
/* The app page: the plan's own sample card (#pdApp data-plan), and the foils on Pro only. */
.pd-app[data-plan="free"] .hc--pro,.pd-app:not([data-plan="free"]) .hc--free,.pd-app[data-plan="free"] .pd-foils{display:none}
.hc-shadow{position:absolute;left:10%;right:10%;bottom:-9%;height:14%;border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.6),transparent);filter:blur(8px)}
@media (prefers-reduced-motion:no-preference){
  .sh-fstage .hc-tilt,.hc-sway .hc-tilt,.pd-card:not(.is-touched) .hc-tilt{animation:hc-sway 10s ease-in-out infinite}
  .pd-card .hc-tilt{transition:transform .6s cubic-bezier(.2,.7,.2,1)}
  .pd-card.is-dragging .hc-tilt{transition:none}
  /* The foil and sheen shift with the sway, as real foil does when a card turns in the light. Only
     the holographic foil changes colour; the metals keep theirs and just catch the light. Once the
     card is touched it stops swaying, and the light follows the turn instead (--t, --tx: product.js). */
  .sh-fstage .hc-foil,.hc-sway .hc-foil,.pd-card:not(.is-touched) .hc-foil{animation:hc-metal 10s ease-in-out infinite}
  .sh-fstage .hc:not([data-foil]) .hc-foil,.sh-fstage .hc[data-foil="holo"] .hc-foil,.hc-sway .hc:not([data-foil]) .hc-foil,.pd-card:not(.is-touched) .hc:not([data-foil]) .hc-foil,.pd-card:not(.is-touched) .hc[data-foil="holo"] .hc-foil{animation-name:hc-foil}
  .sh-fstage .hc-sheen,.hc-sway .hc-sheen,.pd-card:not(.is-touched) .hc-sheen{animation:hc-sheen 10s ease-in-out infinite}
  .sh-fstage .hc-glint,.hc-sway .hc-glint,.pd-card:not(.is-touched) .hc-glint{animation:hc-glint 10s ease-in-out infinite}
}
.pd-card.is-touched .hc-sheen{transform:translateX(calc(var(--t, 0) * 32%))}
.pd-card.is-touched .hc-glint{transform:translate(calc(var(--t, 0) * -27cqw), calc(var(--tx, 0) * 12cqw))}
.pd-card.is-touched .hc-foil{background-position:0 0,calc(50% + var(--t, 0) * 40%) calc(50% + var(--tx, 0) * 20%);filter:brightness(calc(1 + var(--t, 0) * .12)) saturate(1.15)}
.pd-card.is-touched .hc:not([data-foil]) .hc-foil,.pd-card.is-touched .hc[data-foil="holo"] .hc-foil{filter:hue-rotate(calc(var(--t, 0) * 70deg)) saturate(1.2)}
@keyframes hc-foil{0%,100%{background-position:0 0,10% 30%;filter:hue-rotate(0deg) saturate(1)}50%{background-position:0 0,90% 70%;filter:hue-rotate(70deg) saturate(1.25)}}
@keyframes hc-metal{0%,100%{background-position:0 0,10% 30%;filter:brightness(.92) saturate(1.1)}50%{background-position:0 0,90% 70%;filter:brightness(1.12) saturate(1.2)}}
@keyframes hc-sheen{0%,100%{transform:translateX(-32%)}50%{transform:translateX(32%)}}
@keyframes hc-glint{0%,100%{transform:translate(0,0);opacity:.7}50%{transform:translate(-55cqw,12cqw);opacity:1}}
@keyframes hc-sway{0%,100%{transform:rotateY(-24deg) rotateX(7deg) rotateZ(-3deg)}50%{transform:rotateY(20deg) rotateX(4deg) rotateZ(2deg) translateY(-1.5%)}}

.hc-sway.is-paused .hc-tilt,.hc-sway.is-paused .hc-sheen,.hc-sway.is-paused .hc-foil,.hc-sway.is-paused .hc-glint{animation-play-state:paused}

/* ---------- the stream overlay preview (.ov): a made-up game scene with the overlay on top ---------- */
.ov{position:relative;width:100%;aspect-ratio:16/9;container-type:inline-size;overflow:hidden;border-radius:12px;background:#0b1030;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);text-align:left}
.ov-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ov-top{position:absolute;left:3cqw;top:3cqw;display:flex;gap:1.2cqw;align-items:center}
.ov-live{display:inline-flex;align-items:center;gap:.9cqw;padding:.8cqw 1.6cqw;border-radius:5cqw;background:#ff4d6d;color:#fff;font-weight:700;font-size:1.9cqw;letter-spacing:.08em}
.ov-live i{width:1.1cqw;height:1.1cqw;border-radius:50%;background:#fff}
.ov-view{padding:.8cqw 1.6cqw;border-radius:5cqw;background:rgba(7,13,24,.7);color:#fff;font-size:1.8cqw;font-family:"Geist Mono","Geist Mono Fallback",monospace}
.ov-alert{position:absolute;right:3cqw;top:3cqw;display:flex;align-items:center;gap:1.4cqw;padding:1.2cqw 2.2cqw 1.2cqw 1.2cqw;border-radius:2cqw;background:rgba(10,16,34,.82);box-shadow:0 0 0 .25cqw rgba(143,123,255,.7),0 1cqw 4cqw rgba(0,0,0,.4)}
.ov-av{width:4.4cqw;height:4.4cqw;border-radius:50%;background:var(--holo)}
.ov-alert b{display:block;color:#fff;font-size:2.1cqw}
.ov-alert small{display:block;color:rgba(255,255,255,.7);font-size:1.6cqw}
.ov-chat{position:absolute;right:3cqw;bottom:13cqw;width:27cqw;padding:1.6cqw 2cqw;border-radius:1.6cqw;background:rgba(7,13,24,.62);display:flex;flex-direction:column;gap:.8cqw}
.ov-chat p{font-size:1.65cqw;color:rgba(255,255,255,.88)}
.ov-cam{position:absolute;left:3cqw;bottom:12.5cqw;width:24cqw;aspect-ratio:4/3;border-radius:1.6cqw;background:linear-gradient(160deg,#2b3d63,#121a30);overflow:hidden;box-shadow:0 0 0 .35cqw rgba(255,255,255,.08),0 0 0 .5cqw rgba(100,181,246,.6)}
.ov-head{position:absolute;left:50%;top:22%;width:28%;aspect-ratio:1;border-radius:50%;transform:translateX(-50%);background:#5b6f96}
.ov-body{position:absolute;left:50%;top:62%;width:66%;height:60%;border-radius:50% 50% 0 0;transform:translateX(-50%);background:#4a5c82}
.ov-bar{position:absolute;left:0;right:0;bottom:0;height:9cqw;display:flex;align-items:center;gap:2.4cqw;padding:0 3cqw;background:linear-gradient(90deg,rgba(7,13,24,.92),rgba(7,13,24,.7));color:#fff}
.ov-bar::before{content:"";position:absolute;left:0;right:0;top:0;height:.45cqw;background:var(--holo)}
.ov-bar b{font-size:2.4cqw}
.ov-bar span{font-size:1.9cqw;color:rgba(255,255,255,.7);font-family:"Geist Mono","Geist Mono Fallback",monospace}
