/* Homepage UX pass, 23 Nov 2026 (homepage only):
   1. Store sheet: Theme Store CTA (Signal stroke) in place of the Launchpad row
   2. Pricing sheet: "See Launchpad" gets the Signal stroke
   3. Desktop: the mobile glass sheets open as a centred half-height card
   4. Desktop decks: grab cursor, arrow buttons, wheel / trackpad swipe */
.v4-store{position:relative;display:flex;align-items:center;gap:14px;margin-top:14px;padding:16px 18px;min-height:76px;box-sizing:border-box;border-radius:16px;text-decoration:none;color:var(--fg,#F2F2F5);border:1px solid #FF5B2E;background:rgba(255,91,46,.05);box-shadow:0 0 0 1px rgba(255,91,46,.22),0 0 22px -6px rgba(255,91,46,.45),inset 0 0 16px rgba(255,91,46,.08);transition:background .3s,box-shadow .35s}
.v4-store:hover,.v4-store:focus-visible{background:rgba(255,91,46,.1);box-shadow:0 0 0 1px rgba(255,91,46,.45),0 0 28px -4px rgba(255,91,46,.6),inset 0 0 18px rgba(255,91,46,.14)}
.v4-store-l{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.v4-store-k{font-size:10.5px!important;letter-spacing:.16em;text-transform:uppercase;color:#FF5B2E!important}
.v4-store-t{font:400 17px/1.25 var(--disp);color:var(--fg,#F2F2F5)}
.v4-store-n{font-size:10px!important;letter-spacing:.08em;text-transform:uppercase;color:var(--g2,#767676)!important}
.v4-store .arr{display:grid;place-items:center;width:40px;height:40px;border-radius:999px;border:1px solid #FF5B2E;color:#FF5B2E;font-size:16px;flex:none;transition:transform .3s var(--ease,ease),background .3s}
.v4-store:hover .arr{transform:translateX(3px);background:rgba(255,91,46,.12)}
html[data-theme=light] .v4-store{color:#0A0A0A;background:rgba(255,91,46,.06)}
html[data-theme=light] .v4-store-t{color:#0A0A0A}
/* Pricing sheet: See Launchpad */
.v4-lph-go{border-color:#FF5B2E!important;background:rgba(255,91,46,.05);box-shadow:0 0 0 1px rgba(255,91,46,.22),0 0 16px -4px rgba(255,91,46,.45)}
.v4-lph:hover .v4-lph-go,.v4-lph:focus-visible .v4-lph-go{border-color:#FF5B2E!important;background:rgba(255,91,46,.12);box-shadow:0 0 0 1px rgba(255,91,46,.45),0 0 24px -4px rgba(255,91,46,.6)}

/* Desktop sheets: same glass sheet, centred, max 600px wide, about 80% of the screen tall */
@media (min-width:761px){
 html .v4-scrim.sheet-mode:not([hidden]){display:block!important}
 html .v4-sheet:not([hidden]){display:flex!important}
 .v4-sheet{left:0;right:0;margin:0 auto;bottom:16px;width:min(600px,calc(100vw - 48px));max-height:min(82vh,900px);min-height:min(56vh,520px);border-radius:28px;border-bottom:1px solid rgba(255,255,255,.12);padding:10px 22px 22px;transform:translateY(calc(100% + 40px))}
 .v4-sheet.on{transform:translate3d(0,0,0)}
 .v4-grab{cursor:grab;width:52px;height:5px;margin-bottom:10px;position:relative}
 .v4-grab::before{content:"";position:absolute;inset:-12px -40px}
 .v4-sh{cursor:grab}
 .v4-sheet.dragging,.v4-sheet.dragging .v4-sh,.v4-sheet.dragging .v4-grab{cursor:grabbing;transition:none!important;user-select:none}
 .v4-links-desk a[aria-expanded=true]{color:#fff;background:rgba(255,255,255,.08)}
}

/* Desktop decks: mouse drag affordance, arrows, keyboard */
@media (hover:hover) and (pointer:fine){
 .cr-deck{cursor:grab;-webkit-user-select:none;user-select:none}
 .cr-deck.grabbing,.cr-deck.grabbing *{cursor:grabbing!important}
 .cr-deck img,.cr-deck video,.cr-deck a{-webkit-user-drag:none}
 .ux-scope{position:relative}
 .ux-arr{position:absolute;z-index:30;top:var(--ux-y,50%);width:48px;height:48px;margin-top:-24px;place-items:center;border-radius:999px;cursor:pointer;color:#F2F2F5;background:rgba(18,18,20,.62);-webkit-backdrop-filter:blur(16px) saturate(160%);backdrop-filter:blur(16px) saturate(160%);border:1px solid rgba(255,91,46,.75);box-shadow:0 0 18px -4px rgba(255,91,46,.5);transition:background .25s,transform .25s,opacity .25s;padding:0}
 .ux-arr svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
 .ux-arr:hover{background:rgba(255,91,46,.16);transform:scale(1.06)}
 .ux-arr:focus-visible{outline:2px solid #FF5B2E;outline-offset:3px}
 .ux-arr.p{left:var(--ux-l,8px)}.ux-arr.n{right:var(--ux-r,8px)}
 html[data-theme=light] .ux-arr{color:#0A0A0A;background:rgba(255,253,249,.8)}
}
@media (prefers-reduced-motion:reduce){.ux-arr{transition:none}}
.ux-arr{display:none}
@media (hover:hover) and (pointer:fine) and (min-width:761px){.ux-arr{display:grid}}
/* keep the Theme Store CTA in reach while the deck scrolls inside the sheet */
#v4-themes .v4-store{position:sticky;bottom:0;z-index:6;background:linear-gradient(rgba(255,91,46,.07),rgba(255,91,46,.07)),rgba(20,20,22,.96);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
html[data-theme=light] #v4-themes .v4-store{background:linear-gradient(rgba(255,91,46,.07),rgba(255,91,46,.07)),rgba(255,253,249,.96)}
/* fit-23: sheets fit the visible viewport (dvh/svh + safe areas); CTA row sticks to the sheet bottom with a fade (Theme Store CTA is already sticky, above) */
.v4-sheet{max-height:92vh;max-height:min(92svh,calc(100svh - env(safe-area-inset-top,0px) - 24px));max-height:min(92dvh,calc(100dvh - env(safe-area-inset-top,0px) - 24px));min-height:55vh;min-height:min(55dvh,calc(100dvh - env(safe-area-inset-top,0px) - 24px))}
.v4-sheet .v4-body{min-height:0;flex:0 1 auto}
.v4-sheet .cr-deck.cr-gr{--gr-h:clamp(290px,92dvh - 325px,1000px);width:min(64vw,250px,calc(var(--gr-h) * .72));height:min(calc(min(64vw,250px) * 14 / 9),var(--gr-h));aspect-ratio:auto}
.v4-sheet .cr-deck.cr-gr figcaption{left:8px;right:8px;bottom:8px;padding:8px 11px;gap:8px}
.v4-sheet .v4-body>.v4-acts{position:sticky;bottom:0;z-index:8}
.v4-sheet .v4-body>.v4-acts{padding-bottom:14px;margin-bottom:-8px}
.v4-sheet .v4-body>.v4-acts::before{content:"";position:absolute;z-index:-1;left:-20px;right:-20px;top:-28px;bottom:-8px;pointer-events:none;opacity:0;transition:opacity .25s ease;background:linear-gradient(to bottom,rgba(18,18,20,0),#121214 24px)}
.v4-sheet .v4-body.ux-more>.v4-acts::before{opacity:1}
html[data-theme=light] .v4-sheet .v4-body>.v4-acts::before{background:linear-gradient(to bottom,rgba(255,252,247,0),#fffcf7 24px)}
/* fit-23b: Grow proof card as a slim strip (meta line + inline numerals), reclaimed height goes to the film deck */
.v4-proof.v4-proof2{padding:7px 14px 8px;border-radius:14px;box-shadow:0 8px 22px -12px rgba(0,0,0,.5)}
.v4-proof2 .pf-top{min-height:0;justify-content:flex-start;align-items:center;gap:6px}
.v4-proof2 .pf-brand,.v4-proof2 .pf-date{font:500 8.5px/1.2 var(--mono,ui-monospace,monospace)!important;letter-spacing:.12em;text-transform:uppercase;color:var(--g1)}
.v4-proof2 .pf-date::before{content:"·";margin-right:6px}
.v4-proof2 .pf-kv{display:flex;align-items:center;gap:12px;margin-top:3px}
.v4-proof2 .pf-kv>span{flex-direction:row;align-items:center;gap:7px;min-width:0}
.v4-proof2 .pf-kv b{height:24px;font-size:23px;line-height:24px}
.v4-proof2 .pf-kv .mono{font-size:8.5px;line-height:1.15;letter-spacing:.1em;max-width:8.6ch;white-space:normal}
.v4-proof2 .pf-div{height:20px;flex:none}
.v4-sheet#v4-grow .v4-body{gap:10px}
.v4-sheet#v4-grow .cr-deck.cr-gr{margin-bottom:18px}
@media (min-width:761px){
 .v4-sheet{max-height:min(82vh,900px);max-height:min(82dvh,900px,calc(100dvh - 32px));min-height:min(56vh,520px);min-height:min(56dvh,520px)}
 .v4-sheet .cr-deck.cr-gr{--gr-h:clamp(300px,min(82dvh,900px) - 290px,1000px);width:min(60vw,300px,calc(var(--gr-h) * .72));height:min(calc(min(60vw,300px) * 14 / 9),var(--gr-h))}
 .v4-sheet .cr-deck.cr-gr figcaption{left:12px;right:12px;bottom:12px;padding:10px 14px;gap:10px}
}
@media (prefers-reduced-motion:reduce){.v4-sheet .v4-body>.v4-acts::before{transition:none}}
