/* List2Scale homepage hero reel (drafts A and B). Loaded after home.css. */
:root{--hold:1s}
/* the headline stays lit; only the photo and the tag change */
.reel-a .hero h1 .sell,.reel-b .hero h1 .sell{opacity:1;transition:none}

/* ---- slides (both) ---- */
.reel .slide{position:absolute;inset:0;margin:0;opacity:0;transition:opacity .25s linear}
.reel .slide.is-on{opacity:1}
.reel .slide img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.reel .slide .after{opacity:0}
.reel .slide.shot .after{opacity:1;transition:opacity .01s linear .18s}
.reel .wipe{display:none}

/* ---- pause button (both) ---- */
.reel-pause{flex:none;width:44px;height:44px;border-radius:50%;border:2px solid rgba(255,255,255,.4);background:none;cursor:pointer;display:grid;place-items:center;padding:0}
.reel-pause:hover{border-color:var(--white)}
.reel-pause i{display:block;width:12px;height:14px;border-left:4px solid var(--white);border-right:4px solid var(--white)}
.reel-pause[aria-pressed="true"] i{width:0;height:0;border-style:solid;border-width:8px 0 8px 13px;border-color:transparent transparent transparent var(--white);margin-left:4px}

/* progress: the current example's bar runs for --hold; its end moves the reel on (hero-reel.js) */
@keyframes reel-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.reel [data-go] i{transform-origin:left;transform:scaleX(0)}
.reel [data-go][aria-current] i{transform:scaleX(0)}
.reel [data-go].run i{animation:reel-fill var(--hold) linear forwards}
.reel.hold [data-go].run i,.reel.paused [data-go].run i{animation-play-state:paused}

/* ================= A: viewfinder reel ================= */
.reel-a .finder .focus{animation:focus 1.1s var(--ease) .4s both}
.reel-a.swap .finder .focus{animation:focus2 .55s var(--ease) both}
@keyframes focus2{0%{transform:scale(1.25);opacity:0}60%{transform:scale(.96);opacity:1}100%{transform:scale(1)}}
.reel-a.snapped .finder .focus,.reel-a.snapped .finder .corners{opacity:0}
.reel-a .reel-bars{position:absolute;left:14px;right:14px;top:8px;display:flex;gap:6px;z-index:3}
.reel-a .reel-bars button{flex:1;height:24px;padding:10px 0;border:0;background:none;cursor:pointer}
.reel-a .reel-bars button::before{content:"";display:block;height:4px;border-radius:2px;background:rgba(255,255,255,.38);box-shadow:0 1px 3px rgba(0,0,0,.25)}
.reel-a .reel-bars button i{display:block;height:4px;margin-top:-4px;border-radius:2px;background:var(--white)}
/* bars before the current one stay full */
.reel-a .reel-bars button:has(~ [aria-current]) i{transform:scaleX(1)}
.reel-a .shot-row{justify-content:flex-end}
/* pause sits in the photo's bottom-right corner, clear of the tag */
.reel-a .reel-pause{position:absolute;right:12px;bottom:12px;z-index:3;width:38px;height:38px;border:0;background:rgba(15,31,56,.55);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.reel-a .reel-pause i{width:10px;height:12px;border-left-width:3px;border-right-width:3px}
.reel-a .reel-pause[aria-pressed="true"] i{border-width:7px 0 7px 11px}
/* the first photo is on screen at once: no flash on load, only on later shots */
.reel-a .flash{animation:none}
.reel-a.snapped.cycled .flash{animation:flash .55s ease-out}
/* the tag shows the marketplace above the title */
.reel .mk{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:800;letter-spacing:.01em}
.reel .mk i{width:10px;height:10px;border-radius:50%;background:var(--mk);flex:none;margin-top:.2em}
/* longer notes in other languages wrap inside the tag, clear of the punched hole */
.reel .mk{align-items:flex-start;line-height:1.25;padding-right:16px}
.reel .mk span{min-width:0;overflow-wrap:anywhere}
:lang(zh) .reel .mk span{word-break:keep-all}
.reel-a .front .what{margin-top:6px}
.reel .front .price,.reel .back .p{white-space:nowrap;overflow:hidden}
.reel .back .t{margin-top:8px;font-size:16px}
.reel .back .try{margin-top:10px;font-weight:800;font-size:13px;color:var(--night)}
.reel .back .row{margin-top:auto;flex-wrap:wrap;row-gap:4px}
.reel .back .ex{font-size:10.5px;line-height:1.3}

/* ================= B: photo stack, diagonal wipe, price sticker ================= */
.reel-b .cam{width:min(100%,400px)}
.reel-b .finder.deck{background:none;box-shadow:none;overflow:visible;border-radius:0}
.reel-b .slide{opacity:1;border:10px solid var(--white);border-radius:24px;overflow:hidden;background:var(--white);
  box-shadow:0 30px 60px -30px rgba(0,0,0,.9);transition:transform .7s var(--ease),opacity .3s linear;transform-origin:50% 90%}
.reel-b .slide[data-pos="0"]{z-index:3;transform:rotate(-2.5deg)}
.reel-b .slide[data-pos="1"]{z-index:2;transform:translate(7%,-4%) rotate(5deg) scale(.93)}
.reel-b .slide[data-pos="2"]{z-index:1;transform:translate(-7%,-6%) rotate(-8deg) scale(.88)}
.reel-b .slide:not([data-pos="0"]) img{filter:brightness(.72)}
/* the on-model photo is wiped in along the same diagonal as the app's photo slider */
.reel-b .slide .after{opacity:1;clip-path:polygon(-20% 0,-10% 0,-20% 100%,-20% 100%)}
.reel-b .slide.shot .after{opacity:1;clip-path:polygon(-20% 0,120% 0,100% 100%,-20% 100%);transition:clip-path .4s cubic-bezier(.6,0,.3,1)}
.reel-b .wipe{display:block;position:absolute;top:-15%;height:130%;width:6px;margin-left:-3px;left:-15%;background:var(--yellow);transform:rotate(9.09deg);opacity:0;pointer-events:none;box-shadow:0 0 18px rgba(255,197,61,.6)}
.reel-b.snapped.cycled .slide.shot .wipe{animation:wipe .4s cubic-bezier(.6,0,.3,1)}
@keyframes wipe{0%{left:-15%;opacity:1}92%{opacity:1}100%{left:110%;opacity:0}}

.reel-b .sticker-pin{position:absolute;right:-74px;bottom:-46px;z-index:5;transform:rotate(5deg)}
.reel-b .tag{position:relative;left:auto;top:auto;width:206px;height:262px}
.reel-b .face{clip-path:none;border-radius:16px;padding:20px 18px 16px;filter:none;box-shadow:0 18px 30px -12px rgba(0,0,0,.6)}
.reel-b .face::before{left:auto;right:16px;top:18px;margin:0;width:12px;height:12px}
.reel-b .front .what{margin-top:8px;font-size:14px}
.reel-b .front .price{font-size:78px}
.reel-b.snapped .tag{animation:slap .3s cubic-bezier(.3,1.6,.5,1) .2s both}
@keyframes slap{0%{transform:scale(1.35) rotate(-8deg);opacity:0}100%{transform:none;opacity:1}}
.reel-b.swap .sticker-pin{opacity:0;transition:opacity .15s}

.reel-b .chips{display:flex;align-items:center;gap:10px;margin-top:62px}
.reel-b .chip{position:relative;display:flex;align-items:center;gap:8px;padding:5px 14px 5px 5px;border:2px solid rgba(255,255,255,.25);border-radius:999px;background:none;color:var(--white);cursor:pointer;overflow:hidden}
.reel-b .chip img{width:34px;height:34px;border-radius:50%;object-fit:cover}
.reel-b .chip span{font-family:var(--display);font-size:22px;line-height:1;position:relative;z-index:1}
.reel-b .chip i{position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--yellow)}
.reel-b .chip[aria-current]{border-color:var(--yellow)}
.reel-b .chips .reel-pause{margin-left:auto}
/* prices never wrap; longer local prices (NT$2,800, 1 800 Kč) get a smaller chip */
.reel-b .chip span{white-space:nowrap}
.reel-b .chips.long{gap:8px}
.reel-b .chips.long .chip{padding:4px 10px 4px 4px;gap:6px}
.reel-b .chips.long .chip img{width:28px;height:28px}
.reel-b .chips.long .chip span{font-size:17px}
/* French: "Photographiez." is too wide for the headline column at desktop sizes, so the full stop
   fell onto its own line (already so before the reel). A little smaller keeps the word whole. */
:lang(fr) .reel-b .hero h1{font-size:clamp(50px,5.8vw,88px)}

@media (max-width:560px){
  .reel-a .reel-bars{left:10px;right:10px}
  /* phones: a smaller tag hangs in the top-left corner so the item stays in view */
  .reel-a .tag-anchor{left:9%;top:8%}
  .reel-a .string{height:44px;transform:rotate(-12deg)}
  .reel-a .tag{left:-18px;top:40px;width:146px;height:226px}
  .reel-a .face{padding:34px 11px 11px}
  .reel-a .face::before{top:13px;width:12px;height:12px;margin-left:-6px}
  .reel-a .front .what{font-size:12px}
  .reel-a .front .price{font-size:60px}
  .reel-a .front .hint{font-size:11px}
  .reel-a .back{padding-top:30px;font-size:12px}
  .reel-a .back .t{font-size:13px}
  /* B on phones: the headline, the photo and the main button fit in the first screen.
     The card is narrower, the sticker sits beside it, the buttons come before the paragraph. */
  :lang(en) .reel-b .hero h1{font-size:clamp(56px,19vw,84px)}
  .reel-b .hero h1{margin-bottom:16px}
  .reel-b .cam{width:100%}
  .reel-b .finder-wrap{width:55%;margin-left:3%}
  .reel-b .slide{border-width:7px;border-radius:18px}
  .reel-b .sticker-pin{right:-136px;bottom:18px;transform:rotate(4deg)}
  .reel-b .tag{width:140px;height:212px}
  .reel-b .face{padding:14px 11px 10px;border-radius:13px}
  .reel-b .face::before{right:11px;top:13px;width:9px;height:9px}
  .reel-b .mk{font-size:10px}
  .reel-b .front .what{font-size:11.5px;line-height:1.25;margin-top:5px}
  .reel-b .front .price{font-size:46px}
  .reel-b .front .hint{font-size:10px;padding-top:6px}
  .reel-b .back{padding-top:12px}
  .reel-b .back .t{font-size:11.5px;margin-top:4px;line-height:1.25}
  .reel-b .back .p{font-size:20px}
  .reel-b .back .flip-back{font-size:10px;padding:4px 7px}
  .reel-b .back .try{font-size:10.5px;margin-top:5px}
  .reel-b .back .ex{font-size:10px;margin-top:3px}
  .reel-b .chips{margin-top:18px;gap:6px}
  .reel-b .chip{padding:3px 9px 3px 3px;gap:6px}
  .reel-b .chip img{width:28px;height:28px}
  .reel-b .chip span{font-size:17px}
  .reel-b .chips .reel-pause{width:38px;height:38px}
  .reel-b .chips.long .chip{padding:3px 7px 3px 3px;gap:5px}
  .reel-b .chips.long .chip img{width:24px;height:24px}
  .reel-b .chips.long .chip span{font-size:14px}
  .reel-b .h-copy{display:flex;flex-direction:column;margin-top:24px}
  .reel-b .ctas{order:-2}
  .reel-b .fine{order:-1;margin:12px 0 22px}
  .reel-b .lead{margin:0}
}
}
@media (max-width:560px){
  /* A on phones: the back of the tag is small, so the listing is set tighter */
  .reel-a .back .mk{font-size:10.5px}
  .reel .back .t{font-size:12.5px;margin-top:5px}
  .reel .back .p{font-size:24px}
  .reel .back .flip-back{font-size:11px;padding:5px 9px}
  .reel .back .try{font-size:11.5px;margin-top:6px}
  .reel .back .ex{font-size:9.5px;margin-top:4px}
  .reel-b .back{padding-top:14px}
}
@media (prefers-reduced-motion:reduce){
  .reel-b .slide.shot .after{clip-path:none}
}

/* portrait tablets: headline, card and main button in the first screen (the phone layout, larger) */
@media (min-width:561px) and (max-width:900px){
  .reel-b .cam{width:100%}
  .reel-b .finder-wrap{width:310px;margin-left:14px}
  .reel-b .sticker-pin{right:-196px;bottom:26px}
  .reel-b .chips{margin-top:28px}
  .reel-b .h-copy{display:flex;flex-direction:column;margin-top:26px}
  .reel-b .ctas{order:-2}
  .reel-b .fine{order:-1;margin:12px 0 22px}
  .reel-b .lead{margin:0}
}
/* small desktops: keep the whole sticker on screen (it was cut 35px at 1024) */
@media (min-width:901px) and (max-width:1240px){
  .reel-b .sticker-pin{right:-18px}
}
