/* ===== base ===== */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{margin:0;padding:0;background:#0d1024;color:#f5f5f7}
body{font-family:-apple-system,BlinkMacSystemFont,'SF Pro Display','SF Pro Text','Helvetica Neue',Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;overflow-x:clip}
a{color:#f5f5f7;text-decoration:none}
a:hover{color:#5eb0ff}
h1,h2{margin:0;font-weight:700;letter-spacing:-.03em;text-wrap:balance}
p{margin:0}
kbd{font-family:inherit;padding:1px 6px;border-radius:5px;background:rgba(255,255,255,.12);font-size:12px}

.btn{display:inline-flex;align-items:center;gap:8px;padding:14px 24px;border-radius:999px;background:#0a84ff;color:#fff;font-weight:600;font-size:15px;box-shadow:0 10px 30px rgba(10,132,255,.35);transition:transform .3s cubic-bezier(.34,1.56,.64,1),box-shadow .3s,background .2s}
.btn:hover{color:#fff;transform:translateY(-2px) scale(1.03);box-shadow:0 16px 40px rgba(10,132,255,.5)}
.btn-sm{padding:7px 14px;font-size:13px;box-shadow:none}
.btn-sm:hover{transform:scale(1.04);background:#2b94ff;box-shadow:none}
.btn-ghost{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);box-shadow:none}
.btn-ghost:hover{background:rgba(255,255,255,.18);box-shadow:none}
.btn-white{background:#fff;color:#0d1024;box-shadow:0 10px 40px rgba(255,255,255,.15)}
.btn-white:hover{color:#0d1024;box-shadow:0 14px 44px rgba(255,255,255,.22)}

.logo{display:inline-flex;flex-direction:column;align-items:center;gap:3px}
.logo-bar{border-radius:2px;background:#fff}
.logo-tray{border:2px solid #fff;border-top:none;border-radius:0 0 5px 5px}
.logo-sm{width:18px}.logo-sm .logo-bar{width:11px;height:2px}.logo-sm .logo-tray{width:18px;height:10px}
.logo-xl{width:44px;margin-bottom:8px}.logo-xl .logo-bar{width:26px;height:4px}.logo-xl .logo-tray{width:44px;height:24px;border-width:4px;border-radius:0 0 12px 12px}
.logo-lg{width:9%;opacity:.5;gap:6%}.logo-lg .logo-bar{width:58%;height:6px}.logo-lg .logo-tray{width:100%;aspect-ratio:2/1;border-width:4px;border-radius:0 0 40% 40% / 0 0 100% 100%;border-color:#c9c9d1}.logo-lg .logo-bar{background:#c9c9d1}

.eyebrow{font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#5eb0ff;margin-bottom:14px}
.bounce{display:inline-block;animation:bounceDown 1.6s ease-in-out infinite}

@keyframes bounceDown{0%,100%{transform:translateY(0)}50%{transform:translateY(5px)}}
@keyframes riseIn{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
@keyframes floatY{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
.rise{animation:riseIn .9s cubic-bezier(.2,.7,.2,1) var(--d,0s) both}

/* reveal on scroll */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .9s cubic-bezier(.2,.7,.2,1) var(--d,0s),transform .9s cubic-bezier(.2,.7,.2,1) var(--d,0s)}
.reveal.in{opacity:1;transform:none}

/* ===== nav ===== */
.nav{position:fixed;left:0;right:0;top:0;z-index:100;height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(16px,4vw,40px);background:rgba(13,16,36,0);backdrop-filter:blur(24px) saturate(180%);-webkit-backdrop-filter:blur(24px) saturate(180%);border-bottom:1px solid rgba(255,255,255,0);transition:background .4s,border-color .4s}
.nav.scrolled{background:rgba(13,16,36,.72);border-color:rgba(255,255,255,.08)}
.nav-brand{display:flex;align-items:center;gap:9px;font-weight:700;font-size:15px;letter-spacing:-.01em}
.nav-links{display:flex;gap:28px;align-items:center;font-size:13px;color:rgba(235,235,245,.75)}
.nav-links a{color:inherit}.nav-links a:hover{color:#fff}
.nav-links .btn{color:#fff}
@media (max-width:640px){.nav-links{gap:16px}.nav-links a:not(.btn){display:none}}

/* ===== hero ===== */
.hero{position:relative;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:120px clamp(16px,5vw,48px) 80px;background:radial-gradient(120% 90% at 20% 0%,#3a3f6b 0%,#1c2140 45%,#0d1024 100%);overflow:hidden}
.blob{position:absolute;border-radius:50%;filter:blur(40px);pointer-events:none}
.blob-orange{left:55%;top:55%;width:60vw;height:60vw;background:radial-gradient(circle,rgba(255,140,90,.32),rgba(255,140,90,0) 60%);animation:floatY 9s ease-in-out infinite}
.blob-blue{left:-15%;top:30%;width:50vw;height:50vw;background:radial-gradient(circle,rgba(90,130,255,.35),rgba(90,130,255,0) 60%);animation:floatY 11s ease-in-out infinite reverse}
.hero-copy{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:22px;max-width:820px}
.pill{display:inline-flex;align-items:center;gap:8px;padding:6px 12px 6px 8px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.14);font-size:12px;font-weight:600;letter-spacing:.02em;color:rgba(235,235,245,.85)}
.pill .dot{width:6px;height:6px;border-radius:50%;background:#34c759;box-shadow:0 0 10px #34c759}
.hero h1{font-size:clamp(40px,7vw,88px);line-height:.98;letter-spacing:-.035em}
.hero p{max-width:560px;font-size:clamp(16px,1.6vw,20px);line-height:1.45;color:rgba(235,235,245,.72);text-wrap:pretty}
.hero-cta{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;margin-top:6px}

.hero-visual{position:relative;z-index:1;width:min(640px,92vw);height:320px;margin-top:56px;transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.ghost{position:absolute;border-radius:12px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);padding:12px;opacity:.6}
.ghost i{display:block;border-radius:4px;background:rgba(255,255,255,.14)}
.ghost-a{left:8%;top:6%;width:120px;height:150px;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ghost-b{right:6%;bottom:4%;width:170px;height:120px;display:flex;flex-direction:column;gap:8px}
.ghost-b .line{height:8px}.ghost-b .dash{margin-top:auto;height:26px;border-radius:8px;border:1.5px dashed rgba(255,255,255,.25);background:none}
.tray{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(380px,88vw);padding:14px 14px 10px;border-radius:22px;background:rgba(255,255,255,.62);backdrop-filter:blur(30px) saturate(190%);-webkit-backdrop-filter:blur(30px) saturate(190%);border:1px solid rgba(255,255,255,.7);color:#1d1d1f;animation:heroGlow 5.5s ease-in-out infinite}
.tray-well{position:relative;height:92px}
.tray-empty{position:absolute;inset:0;border-radius:10px;border:2px dashed #6e6e73;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:13px;color:#6e6e73;animation:heroEmpty 5.5s ease infinite}
.tray-empty .small{font-size:11px;opacity:.75}
.tray-cards{position:absolute;left:2px;top:6px;display:flex;gap:4px}
.fcard{width:76px;display:flex;flex-direction:column;align-items:center;gap:5px;padding:8px 4px 6px;animation:heroDrop 5.5s cubic-bezier(.34,1.56,.64,1) var(--d,0s) infinite}
.ficon{width:46px;height:58px;border-radius:5px;box-shadow:0 2px 6px rgba(0,0,0,.3),inset 0 0 0 .5px rgba(255,255,255,.35);display:flex;align-items:flex-end;justify-content:center;padding-bottom:5px;color:#fff;font-size:9px;font-weight:700;letter-spacing:.5px;flex-shrink:0}
.fname{font-size:11px;line-height:1.2;max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tray-foot{display:flex;justify-content:space-between;margin-top:6px;padding:0 4px;font-size:12px;color:#6e6e73;animation:heroText 5.5s ease infinite}
@keyframes heroDrop{0%{opacity:0;transform:translate(-170px,-150px) rotate(-14deg) scale(.8)}14%{opacity:1;transform:none}78%{opacity:1;transform:none}88%{opacity:0;transform:translate(130px,90px) rotate(8deg) scale(.85)}100%{opacity:0;transform:translate(-170px,-150px) rotate(-14deg) scale(.8)}}
@keyframes heroGlow{0%,6%{box-shadow:0 24px 60px rgba(0,0,0,.35),0 0 0 .5px rgba(0,0,0,.15);transform:translate(-50%,-50%) scale(1)}13%{box-shadow:0 0 0 3px rgba(10,132,255,.75),0 0 40px rgba(10,132,255,.55),0 24px 60px rgba(0,0,0,.3);transform:translate(-50%,-50%) scale(1.03)}24%,100%{box-shadow:0 24px 60px rgba(0,0,0,.35),0 0 0 .5px rgba(0,0,0,.15);transform:translate(-50%,-50%) scale(1)}}
@keyframes heroText{0%,22%{opacity:0}30%,78%{opacity:1}86%,100%{opacity:0}}
@keyframes heroEmpty{0%,10%{opacity:1}18%,88%{opacity:0}96%,100%{opacity:1}}

/* ===== sections ===== */
.section{padding:120px clamp(16px,5vw,48px);max-width:1140px;margin:0 auto}
.section-head{max-width:640px}
.section h2{font-size:clamp(30px,4.2vw,52px);line-height:1.05}

.section-features{padding-top:60px}
.specs{list-style:none;margin:56px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:44px 56px}
.spec{display:flex;align-items:flex-start;gap:20px}
.spec-text h3{margin:0;font-size:17px;font-weight:600;letter-spacing:-.02em}
.spec-text p{margin-top:6px;max-width:380px;font-size:14.5px;line-height:1.5;color:rgba(235,235,245,.68);text-wrap:pretty}

/* Specimens: tiny slices of the real shelf, drawn in CSS, instead of icons. All share one 128x80 desktop swatch. */
.specimen{position:relative;flex-shrink:0;width:128px;height:80px;overflow:hidden;border-radius:14px;background:radial-gradient(120% 90% at 20% 0%,#3a3f6b 0%,#1c2140 55%,#141838 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.specimen .sp-menubar,.specimen .sp-notch::before{position:absolute;left:0;right:0;top:0;height:20px;background:rgba(255,255,255,.14)}
.sp-menubar{display:flex;align-items:center;justify-content:space-between;padding:0 8px;font-size:9px;font-weight:600;color:#fff}
.sp-menuicon{display:flex;align-items:center;justify-content:center;width:20px;height:15px;border-radius:4px;background:rgba(255,255,255,.28)}
.sp-menuicon .logo{width:12px;gap:2px}.sp-menuicon .logo-bar{width:7px;height:1.5px}.sp-menuicon .logo-tray{width:12px;height:6px;border-width:1.5px;border-radius:0 0 3px 3px}
.sp-keys{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:6px}
.sp-key{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:30px;padding:0 8px;border-radius:7px;background:#ececf1;color:#1d1d1f;font-family:inherit;font-size:12px;font-weight:600;box-shadow:0 2px 0 #9a9aa6,0 3px 6px rgba(0,0,0,.35)}
.sp-key-wide{min-width:58px;font-size:10px;font-weight:500}
.sp-stack{position:absolute;inset:0}
.sp-stack .ficon{position:absolute;left:50%;top:50%;width:30px;height:38px;margin:-19px 0 0 -15px;font-size:7px;padding-bottom:3px;border-radius:4px;transform:translate(var(--x),0) rotate(var(--r))}
.sp-stack .ficon:nth-child(1){--x:-14px;--r:-10deg}.sp-stack .ficon:nth-child(2){--x:0px;--r:0deg}.sp-stack .ficon:nth-child(3){--x:14px;--r:10deg}
.sp-stack .ficon:not(:last-child){color:transparent}
.sp-stack b{position:absolute;right:30px;top:14px;display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#0a84ff;color:#fff;font-size:10px;box-shadow:0 0 0 2px #1c2140}
.sp-notch{position:absolute;inset:0}
.sp-notch::before{content:"";height:16px}
/* The open notch panel is the notch itself grown wider: black, square top, rounded bottom, cards inside. */
.sp-notch-panel{position:absolute;left:50%;top:0;display:flex;align-items:center;justify-content:center;gap:6px;width:64px;height:31px;margin-left:-32px;padding-top:3px;border-radius:0 0 12px 12px;background:#000;box-shadow:0 10px 24px rgba(0,0,0,.5)}
.sp-notch-panel::before,.sp-notch-panel::after{content:"";position:absolute;top:0;width:8px;height:8px;background:radial-gradient(circle at 0 100%,transparent 7.5px,#000 8px)}
.sp-notch-panel::before{left:-8px}
.sp-notch-panel::after{right:-8px;transform:scaleX(-1)}
.sp-tray{position:absolute;border-radius:8px;display:flex;align-items:center;justify-content:center;gap:5px;background:rgba(255,255,255,.62);border:1px solid rgba(255,255,255,.7);box-shadow:0 8px 20px rgba(0,0,0,.35)}
.sp-notch-panel i,.sp-tray i{width:12px;height:15px;border-radius:2.5px;background:linear-gradient(160deg,#7cc4ff,#2b7fd6);box-shadow:0 1px 2px rgba(0,0,0,.4)}
.sp-notch-panel i:first-child,.sp-tray i:first-child{background:linear-gradient(160deg,#ff6b6b,#d63a3a)}
.sp-notch-panel i:last-child,.sp-tray i:last-child{background:linear-gradient(160deg,#5ba4ff,#1d5fd1)}
.sp-hide{position:absolute;inset:0}
.sp-hide .sp-tray{left:50%;top:50%;width:78px;height:30px;margin:-15px 0 0 -39px;transform:translateX(62px);opacity:.55}
.sp-hide::before{content:"";position:absolute;left:50%;top:50%;width:78px;height:30px;margin:-15px 0 0 -39px;border-radius:8px;border:1.5px dashed rgba(255,255,255,.28)}
.sp-toggle{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:8px;font-size:10px;font-weight:500;white-space:nowrap;color:rgba(255,255,255,.9)}
.sp-switch{position:relative;width:28px;height:17px;border-radius:999px;background:#34c759}
.sp-switch::after{content:"";position:absolute;right:2px;top:2px;width:13px;height:13px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.35)}

/* ===== pricing ===== */
.section-lead{margin-top:18px;font-size:17px;line-height:1.5;color:rgba(235,235,245,.68);max-width:460px;text-wrap:pretty}
.text-link{color:#5eb0ff;text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(94,176,255,.4)}
.text-link:hover{text-decoration-color:#5eb0ff}
.section-pricing{padding-top:60px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,480px);gap:40px 64px;align-items:center}
.price-card{position:relative;overflow:hidden;padding:36px;border-radius:24px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;gap:24px}
.price-tag{position:relative;display:flex;align-items:center;gap:14px}
.price-amount{font-size:clamp(56px,8vw,84px);font-weight:700;letter-spacing:-.045em;line-height:1}
.price-amount sup{font-size:.42em;font-weight:600;vertical-align:top;position:relative;top:.22em;margin-right:2px;color:rgba(235,235,245,.7)}
.price-per{font-size:14px;line-height:1.25;font-weight:600;color:rgba(235,235,245,.55);text-transform:uppercase;letter-spacing:.06em}
.price-list{list-style:none;margin:0;padding:0;display:grid;gap:12px;font-size:15px;color:rgba(235,235,245,.8)}
.price-list li{display:flex;align-items:flex-start;gap:12px;line-height:1.45}
.price-list li::before{content:"";flex-shrink:0;margin-top:1px;width:20px;height:20px;border-radius:50%;background:rgba(10,132,255,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6' fill='none' stroke='%235eb0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat}
.price-card .btn{align-self:flex-start}
.price-note{font-size:13px;color:rgba(235,235,245,.5)}

/* ===== questions ===== */
.section-faq{padding-top:40px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,640px);gap:40px 64px;align-items:start}
.section-faq .section-head{position:sticky;top:96px}
.faq{border-top:1px solid rgba(255,255,255,.08)}
.faq details{border-bottom:1px solid rgba(255,255,255,.08)}
.faq summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 0;font-size:18px;font-weight:600;letter-spacing:-.02em;transition:color .2s}
.faq summary::-webkit-details-marker{display:none}
.faq summary:hover{color:#5eb0ff}
.faq summary::after{content:"";flex-shrink:0;width:9px;height:9px;margin-right:6px;border-right:1.5px solid #5eb0ff;border-bottom:1.5px solid #5eb0ff;transform:rotate(45deg) translate(-2px,-2px);transition:transform .3s}
.faq details[open] summary::after{transform:rotate(-135deg) translate(-2px,-2px)}
.faq-a{max-width:640px;padding:0 0 22px;font-size:15px;line-height:1.55;color:rgba(235,235,245,.68);text-wrap:pretty}
.faq details[open] .faq-a{animation:riseIn .4s cubic-bezier(.2,.7,.2,1) both}

/* ===== maker ===== */
.section-maker{padding-top:40px}
.section-maker .section-lead{max-width:560px}
.maker-links{display:flex;flex-wrap:wrap;gap:12px 32px;margin-top:26px}
.maker-link{display:inline-flex;align-items:center;gap:9px;font-size:15px;font-weight:600;color:#f5f5f7;text-decoration:underline;text-underline-offset:4px;text-decoration-color:rgba(255,255,255,.25);transition:color .2s,text-decoration-color .2s}
.maker-link:hover{color:#5eb0ff;text-decoration-color:#5eb0ff}
.maker-link svg{width:18px;height:18px;flex-shrink:0}

.download{position:relative;padding:140px clamp(16px,5vw,48px) 60px;text-align:center;overflow:hidden;background:radial-gradient(80% 60% at 50% 100%,#25305e 0%,#0d1024 70%)}
.download-inner{display:flex;flex-direction:column;align-items:center;gap:22px}
.download h2{font-size:clamp(36px,6vw,76px);line-height:1;letter-spacing:-.035em}
.download p{font-size:17px;color:rgba(235,235,245,.7);max-width:440px;text-wrap:pretty}
.download-alt{margin-top:-8px;font-size:14px;color:rgba(235,235,245,.55);text-decoration:underline;text-underline-offset:4px;text-decoration-color:rgba(255,255,255,.2)}
.download-alt:hover{color:#fff;text-decoration-color:#fff}
.footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;max-width:1140px;margin:120px auto 0;font-size:12px;color:rgba(235,235,245,.45)}
.footer div{display:flex;gap:20px}.footer a{color:inherit}

/* ===== demo: scroll-driven MacBook ===== */
/* The heading sits under the nav; the laptop is centred in whatever is left, so the room above it (to the heading)
   and below it (to the bottom of the screen) is always the same: --stage-gap plus half the leftover. */
.demo{position:relative;height:340vh;--stage-gap:40px}
.demo-sticky{position:sticky;top:0;height:100vh;padding:84px clamp(12px,3vw,40px) var(--stage-gap);display:flex;flex-direction:column;align-items:center;gap:var(--stage-gap);overflow:hidden}
.stage-fill{flex:1;min-height:0;width:100%;container-type:size;display:flex;align-items:center;justify-content:center}
.demo-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:10px 32px;width:min(1400px,96vw)}
.demo-copy{max-width:560px}.demo-copy .eyebrow{font-size:12px;margin-bottom:6px}
.demo h2{display:grid;font-size:clamp(22px,2.6vw,34px);line-height:1.05}
.demo h2 span{grid-area:1/1;transition:opacity .35s}
.demo h2 span:last-child,.demo h2.open span:first-child{opacity:0}
.demo h2.open span:last-child{opacity:1}
.demo-steps{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 22px;font-size:13px;color:rgba(235,235,245,.7);line-height:1.45;max-width:640px;opacity:0;transform:translateY(6px);transition:opacity .5s,transform .5s}
.demo-steps.on{opacity:1;transform:none}
.demo-steps li{display:flex;gap:8px}.demo-steps b{color:#5eb0ff}

/* The first width is a fallback for browsers without container units. */
.stage{position:relative;flex-shrink:0;width:min(1200px,calc(100vw - 2 * clamp(28px,6vw,80px)),calc((100vh - 300px) / .603));width:min(1200px,calc(100vw - 2 * clamp(28px,6vw,80px)),calc(100cqh / .603))}
.hint{position:absolute;left:50%;top:36%;transform:translate(-50%,-50%);z-index:5;display:flex;align-items:center;gap:8px;padding:9px 16px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(12px);font-size:13px;font-weight:600;white-space:nowrap;pointer-events:none;transition:opacity .3s,transform .3s}
.hint.off{opacity:0;transform:translate(-50%,-40%)}

/* .mac is the full laptop box: lid + deck + feet. Its width = deck width; it is .603 of that tall. */
/* perspective + perspective-origin are set by js/laptop.js from the real lid size (see fitScreen). */
.mac{position:relative;width:100%;padding-bottom:3.925%;transform-origin:50% 60%;will-change:transform}
/* scene = the lid's box, 1922x1304. Everything is measured from it. */
.mac-scene{position:relative;width:82.278%;margin:0 auto;aspect-ratio:4002/2740;transform-style:preserve-3d;transform-origin:50% 100%}
.deck{position:absolute;left:-10.795%;top:100%;will-change:transform;width:121.539%;aspect-ratio:4864/172;filter:drop-shadow(0 28px 44px rgba(0,0,0,.55));transform:translateZ(0)}
.deck-img,.deck-shut{position:absolute;inset:0;background:url(../assets/mbp-deck.png) center/100% 100% no-repeat}
.deck-img{filter:brightness(.74) saturate(.85)}
/* Closed, the lid rests on the deck, so its top surface (the top 39.5% of the artwork) is hidden: repaint the whole base as its front
   face under a dark seam, with the thumb scoop cut in and the ends turning away. Fades out as the lid lifts (--closed, js/laptop.js). */
.deck-shut{opacity:var(--closed,1);-webkit-mask:url(../assets/mbp-deck.png) center/100% 100% no-repeat;mask:url(../assets/mbp-deck.png) center/100% 100% no-repeat;
  background:
    linear-gradient(180deg,rgba(0,0,0,.6) 0,rgba(0,0,0,.6) 2.4%,rgba(0,0,0,0) 3.4%),
    linear-gradient(90deg,rgba(0,0,0,.28) 0,rgba(0,0,0,0) .3%,rgba(255,255,255,.16) 1.1%,rgba(255,255,255,0) 2.4%,rgba(255,255,255,0) 97.6%,rgba(255,255,255,.16) 98.9%,rgba(0,0,0,0) 99.7%,rgba(0,0,0,.28) 100%),
    linear-gradient(180deg,#7a7b80 0,#6d6e73 30%,#5d5e63 62%,#4e4f54 84%,#76777c 93%,#56575c 100%)}
.deck-shut::before{content:"";position:absolute;left:42.1%;top:0;width:15.8%;height:50%;border-radius:0 0 9% 9% / 0 0 90% 90%;
  background:linear-gradient(180deg,#0f0f11 0,#1a1a1d 30%,#313134 65%,#48494d 100%);
  box-shadow:0 1px 0 rgba(255,255,255,.3),inset 0 -1px 1px rgba(255,255,255,.08)}
.deck-foot{position:absolute;top:100%;width:7.2%;height:11%;background:linear-gradient(180deg,#333336,#18181a);border-radius:0 0 3px 3px}
.deck-foot:first-of-type{left:5.2%}
.deck-foot:last-of-type{right:5.2%}
.lid{position:absolute;inset:0;transform-origin:50% 100%;transform-style:preserve-3d;transform:rotateX(-90deg);will-change:transform;pointer-events:none}
/* screen side */
.lid-front{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.lid-img{position:absolute;inset:0;background:url(../assets/mbp-lid.png) center/100% 100% no-repeat;pointer-events:none}
.screen{position:absolute;left:1.624%;top:2.591%;width:96.702%;height:91.752%;overflow:hidden;background:#000;border-radius:1.55% 1.55% 0 0 / 2.39% 2.39% 0 0;clip-path:inset(0 round 1.55% 1.55% 0 0 / 2.39% 2.39% 0 0)}
.screen-proj{position:absolute;inset:0;transform-origin:0 0;will-change:transform}
.screen-inner{position:absolute;left:0;top:0;width:1440px;height:934px;transform-origin:0 0;transform:scale(.5)}
/* Fold effect while the lid turns (js/laptop.js): copies of the picture, each blurred a little more and masked to a band
   nearer the far edge, fade in one after another as the lid folds; the far edge also goes dark. Same recipe as the
   iPhone Duo web replicas: blur up to 9% of the screen height, dark from about two thirds up. */
.screen-fold{position:absolute;inset:0;pointer-events:none}
/* No frosted glass inside the copies: a backdrop filter under a moving warp is recomputed every frame, once per copy, and that alone drops frames. */
.screen-fold *{animation:none!important;transition:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.fold-layer{position:absolute;inset:0;background:#000;opacity:0;will-change:opacity}
.screen-shade{position:absolute;inset:0;transform-origin:50% 100%;pointer-events:none;will-change:transform,opacity}
.screen-glare{position:absolute;inset:-20% 0;background:linear-gradient(170deg,rgba(255,255,255,0) 30%,rgba(255,255,255,.18) 50%,rgba(255,255,255,0) 62%);opacity:0;pointer-events:none;mix-blend-mode:screen}
/* aluminium back: a true back face (flipped 180deg), so culling decides which side you see */
.lid-back{position:absolute;inset:0;transform:rotateX(180deg) translateZ(.5px);backface-visibility:hidden;-webkit-backface-visibility:hidden;--lit:1}
.back-skin{position:absolute;inset:0;border-radius:2.4% 2.4% 2% 2% / 3.5% 3.5% 3% 3%;overflow:hidden;
  background:
    radial-gradient(110% 80% at 50% -10%,rgba(255,255,255,.16),rgba(255,255,255,0) 60%),
    linear-gradient(180deg,#5a5a5f 0%,#4b4b50 40%,#414146 80%,#38383d 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),inset 0 -2px 3px rgba(0,0,0,.35);
  display:flex;align-items:center;justify-content:center}
.back-skin::after{content:"";position:absolute;inset:0;background:#000;opacity:calc(1 - var(--lit));pointer-events:none}
.back-skin .logo{width:8.5%;opacity:.95;gap:6%;filter:drop-shadow(0 1px 0 rgba(0,0,0,.5))}
.back-skin .logo-bar{width:58%;height:5px;background:#b9babf;border-radius:3px}
.back-skin .logo-tray{width:100%;aspect-ratio:2/1;border:5px solid #b9babf;border-top:none;border-radius:0 0 40% 40% / 0 0 100% 100%}
/* lid thickness: an SVG band drawn over the scene each frame (see drawEdge in js/laptop.js) */
.lid-edge{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:2}
.mac.rest .lid,.mac.rest .mac-scene{transform:none;transform-style:flat}
.mac.rest .lid{pointer-events:auto}
.mac.rest .lid-back{visibility:hidden}

/* ===== doc pages (privacy, support) ===== */
.page{padding:140px clamp(16px,5vw,48px) 0;max-width:1140px;margin:0 auto}
.page-head{max-width:640px}
.page-head h1{font-size:clamp(34px,5vw,60px);line-height:1.02}
.page-meta{margin-top:18px;font-size:13px;color:rgba(235,235,245,.5)}
.page-body{display:grid;grid-template-columns:200px minmax(0,680px);gap:40px 64px;margin-top:72px;align-items:start}
.toc{position:sticky;top:96px;display:flex;flex-direction:column;gap:2px;font-size:13px}
.toc a{padding:7px 12px;border-radius:9px;color:rgba(235,235,245,.6);transition:background .2s,color .2s}
.toc a:hover{color:#fff;background:rgba(255,255,255,.06)}
.toc a.on{color:#fff;background:rgba(255,255,255,.08)}
.prose h2{font-size:clamp(22px,2.6vw,28px);line-height:1.15;margin-top:56px;scroll-margin-top:96px}
.prose h2:first-child{margin-top:0}
.prose p,.prose li{font-size:16px;line-height:1.6;color:rgba(235,235,245,.72);text-wrap:pretty}
.prose p{margin-top:14px}
.prose ul,.prose ol{margin:14px 0 0;padding-left:22px}
.prose li{margin-top:8px;padding-left:4px}
.prose li::marker{color:#5eb0ff;font-weight:600}
.prose strong{color:#f5f5f7;font-weight:600}
.prose a{color:#5eb0ff;text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(94,176,255,.4)}
.prose a:hover{text-decoration-color:#5eb0ff}
.prose .faq{margin-top:20px}
.prose .faq summary{font-size:16px;padding:18px 0}
.callout{margin-top:24px;padding:18px 22px;border-radius:16px;background:rgba(10,132,255,.1);border:1px solid rgba(10,132,255,.25)}
.callout p{margin:0;font-size:15px;line-height:1.55;color:rgba(235,235,245,.88)}
.callout p+p{margin-top:10px}
.channels{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin-top:48px;max-width:760px}
.channel{display:flex;flex-direction:column;gap:12px;padding:26px;border-radius:20px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);transition:background .3s,transform .3s cubic-bezier(.34,1.56,.64,1)}
.channel:hover{color:inherit;background:rgba(255,255,255,.08);transform:translateY(-3px)}
.channel .glyph svg{width:18px;height:18px}
.channel-title{font-size:18px;font-weight:600;letter-spacing:-.02em}
.channel-body{font-size:14px;line-height:1.5;color:rgba(235,235,245,.68);text-wrap:pretty}
.channel-cta{margin-top:auto;padding-top:6px;font-size:14px;font-weight:600;color:#5eb0ff}
.page-footer{margin-top:120px;padding:0 clamp(16px,5vw,48px) 40px}

/* ===== thanks page ===== */
.btn.busy{pointer-events:none;opacity:.7}
.thanks{min-height:calc(100vh - 200px)}
.license-state{display:none}
.thanks[data-state="loading"] [data-for="loading"],.thanks[data-state="paid"] [data-for="paid"],.thanks[data-state="pending"] [data-for="pending"],.thanks[data-state="error"] [data-for="error"]{display:block;animation:riseIn .5s cubic-bezier(.2,.7,.2,1) both}
.thanks-status{display:flex;align-items:center;gap:12px;font-size:16px;color:rgba(235,235,245,.6)}
.spinner{width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.14);border-top-color:#5eb0ff;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.thanks-action{margin-top:32px;border:0;font:inherit;font-weight:600;font-size:15px;cursor:pointer}
.key-row{display:flex;align-items:center;gap:20px;max-width:640px;margin-top:44px;padding:22px 0;border-top:1px solid rgba(255,255,255,.1);border-bottom:1px solid rgba(255,255,255,.1)}
.key-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.key-label{font-size:13px;color:rgba(235,235,245,.5)}
.key-main code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:clamp(17px,2.4vw,23px);font-weight:600;letter-spacing:.04em;user-select:all;overflow-wrap:anywhere}
.key-copy{flex-shrink:0;padding:9px 16px;border-radius:999px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#fff;font:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:background .2s,border-color .2s,color .2s}
.key-copy:hover{background:rgba(255,255,255,.16)}
.key-copy.done{background:rgba(52,199,89,.18);border-color:rgba(52,199,89,.35);color:#34c759}
.activate{max-width:640px;margin-top:56px}
.activate .spec-text p{max-width:440px}
.activate .btn{margin-top:22px}
.specimen.specimen-tall{width:128px;height:116px}
.sp-menuicon-open{background:rgba(255,255,255,.4)}
/* The status menu as macOS draws it: icon column, label, shortcut on the right. */
.sp-menu{position:absolute;right:3px;top:22px;display:flex;flex-direction:column;width:122px;padding:3px;border-radius:8px;background:rgba(240,240,246,.96);box-shadow:0 8px 20px rgba(0,0,0,.4),inset 0 0 0 .5px rgba(255,255,255,.6);font-size:8px;font-weight:500;color:#1d1d1f}
.sp-menu span{display:flex;align-items:center;gap:2px;height:14px;padding:0 5px 0 3px;border-radius:4px;white-space:nowrap}
.sp-menu i{display:grid;place-items:center;width:11px;height:11px;margin-right:2px;flex-shrink:0}
.sp-menu svg{width:9px;height:9px;fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round}
.sp-menu kbd{margin-left:auto;padding:0;background:none;font-size:7px;letter-spacing:-.02em;color:rgba(29,29,31,.4)}
.sp-menu .on{background:#0a84ff;color:#fff}
.sp-menu .on kbd{color:rgba(255,255,255,.6)}
.sp-menu .off{color:rgba(29,29,31,.35)}
.sp-menu hr{margin:3px 5px;border:0;border-top:1px solid rgba(0,0,0,.1)}
.signoff{max-width:520px;margin-top:56px;font-size:15px;line-height:1.6;color:rgba(235,235,245,.68);text-wrap:pretty}
.signoff-name{margin-top:10px;font-size:15px;font-weight:600}
.confetti{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:200}

@media (max-width:900px){
  .section-pricing,.section-faq{grid-template-columns:minmax(0,1fr)}
  .specs{grid-template-columns:minmax(0,1fr);gap:36px}
  .spec-text p{max-width:560px}
  .page-body{grid-template-columns:minmax(0,1fr);gap:32px;margin-top:56px}
  .toc{position:static;flex-direction:row;flex-wrap:wrap;gap:6px}
  .toc a{background:rgba(255,255,255,.06)}
  .section-pricing .price-card{max-width:520px}
  .section-faq .section-head{position:static}
}
@media (max-width:720px){
  .price-card{padding:28px}
  .spec{gap:16px}
  .specimen{width:112px;height:70px}
  .faq summary{font-size:16px;padding:18px 0}
  .page{padding-top:110px}
  .key-row{flex-wrap:wrap}
  .key-copy{width:100%}
  .prose h2{margin-top:44px}
  .channel{padding:22px}
  .demo{height:260vh}
  .demo-steps{display:none}
  .demo{--stage-gap:24px}
  .stage{width:min(96vw,calc((100vh - 220px) / .603));width:min(96vw,calc(100cqh / .603))}
}
@media (prefers-reduced-motion:reduce){
  .rise,.bounce,.fcard,.tray,.tray-empty,.tray-foot,.blob,.license-state{animation:none!important}
  .reveal{opacity:1;transform:none;transition:none}
}

/* ===== Shelf demo (inside the screen) ===== */
.sd{position:relative;width:100%;height:100%;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text','Helvetica Neue',Helvetica,sans-serif;color:#1d1d1f;background:radial-gradient(120% 90% at 20% 0%,#3a3f6b 0%,#1c2140 45%,#0d1024 100%);user-select:none;-webkit-user-select:none;-webkit-font-smoothing:antialiased;font-size:13px}
.sd *{box-sizing:border-box}
.sd-bg{position:absolute;border-radius:50%;filter:blur(40px);pointer-events:none}
.sd-bg1{left:55%;top:60%;width:60%;height:80%;background:radial-gradient(circle,rgba(255,140,90,.35),rgba(255,140,90,0) 60%)}
.sd-bg2{left:-10%;top:40%;width:50%;height:70%;background:radial-gradient(circle,rgba(90,130,255,.35),rgba(90,130,255,0) 60%)}
.sd-menubar{position:absolute;left:0;top:0;right:0;height:36px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:rgba(255,255,255,.14);backdrop-filter:blur(40px) saturate(180%);color:#fff;font-size:13px;font-weight:600}
.sd-menubar .l,.sd-menubar .r{display:flex;gap:18px;align-items:center;white-space:nowrap;max-width:calc(50% - 116px)}
.sd-menubar .r{gap:14px;font-weight:400;justify-content:flex-end}
.sd-menubar .l span:not(:first-child):not(:nth-child(2)){font-weight:400}
.sd-menuicon{display:flex;align-items:center;justify-content:center;width:30px;height:22px;border-radius:5px;cursor:default}
.sd-menuicon.on{background:rgba(255,255,255,.25)}
.sd-menuicon .logo{width:16px}.sd-menuicon .logo-bar{width:10px;height:2px}.sd-menuicon .logo-tray{width:16px;height:9px;border-radius:0 0 4px 4px}
.sd-ear{position:absolute;top:0;width:10px;height:10px}
.sd-ear.l{left:-10px;background:radial-gradient(circle at 0 100%,transparent 9.5px,#000 10px)}
.sd-ear.r{right:-10px;background:radial-gradient(circle at 100% 100%,transparent 9.5px,#000 10px)}

@keyframes sdMenuIn{from{opacity:0;transform:scale(.96) translateY(-4px)}to{opacity:1;transform:none}}
@keyframes sdPanelIn{from{opacity:0;transform:scale(.88) translateY(8px)}to{opacity:1;transform:scale(1) translateY(0)}}
@keyframes sdPanelOut{to{opacity:0;transform:scale(.88) translateY(8px)}}
@keyframes sdEmptyIn{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:none}}
@keyframes sdCardIn{from{opacity:0;transform:scale(.6) translateY(10px)}to{opacity:1;transform:scale(1) translateY(0)}}
@keyframes sdToastIn{from{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translate(-50%,0)}}

.sd-menu{position:absolute;right:170px;top:40px;width:230px;padding:5px;border-radius:10px;background:rgba(240,240,245,.85);backdrop-filter:blur(40px) saturate(180%);box-shadow:0 10px 40px rgba(0,0,0,.35),0 0 0 .5px rgba(0,0,0,.2);font-size:13px;animation:sdMenuIn .18s ease-out;z-index:30}
.sd-menu .it{display:flex;justify-content:space-between;padding:5px 10px;border-radius:6px;cursor:default}
.sd-menu .it:hover{background:#0a84ff;color:#fff}
.sd-menu .it span:last-child{opacity:.6}
.sd-menu .info{padding:5px 10px;opacity:.5;font-variant-numeric:tabular-nums}
.sd-menu .sep{height:1px;background:rgba(0,0,0,.12);margin:5px 10px}

.sd-win{position:absolute;border-radius:12px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.45),0 0 0 .5px rgba(0,0,0,.3)}
.sd-lights{display:flex;gap:8px}.sd-lights i{width:12px;height:12px;border-radius:50%}
.sd-lights i:nth-child(1){background:#ff5f57}.sd-lights i:nth-child(2){background:#febc2e}.sd-lights i:nth-child(3){background:#28c840}

.sd-finder{left:6%;top:11%;width:46%;height:64%;min-width:420px;background:rgba(255,255,255,.92);display:grid;grid-template-columns:170px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.sd-side{background:rgba(235,235,240,.9);border-right:1px solid rgba(0,0,0,.08);padding:12px 10px;display:flex;flex-direction:column;gap:2px}
.sd-side .sd-lights{margin:0 2px 18px}
.sd-side .h{font-size:11px;font-weight:600;color:#8a8a8e;padding:0 8px 4px}
.sd-side .it{display:flex;align-items:center;gap:8px;padding:5px 8px;border-radius:6px}
.sd-side .it.on{background:rgba(0,0,0,.08)}
.sd-side .it i{width:14px;height:11px;border-radius:2px;background:#4aa3ff}.sd-side .it i.g{background:#8e8e93}
.sd-main{display:flex;flex-direction:column;min-width:0;min-height:0}
.sd-tb{height:52px;display:flex;align-items:center;gap:14px;padding:0 16px;border-bottom:1px solid rgba(0,0,0,.08);font-size:15px;font-weight:600}
.sd-tb .arrows{display:flex;gap:6px;color:#8a8a8e;font-weight:400}
.sd-tb .right{margin-left:auto;display:flex;align-items:center;gap:12px;font-size:12px;font-weight:400;color:#8a8a8e;min-width:0;flex:1;justify-content:flex-end}
.sd-tb .right .hint{position:static;transform:none;background:none;border:0;padding:0;font:inherit;color:inherit;backdrop-filter:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.sd-tb .selbtn{padding:3px 9px;border-radius:6px;background:rgba(0,0,0,.06);color:#1d1d1f;cursor:default;white-space:nowrap;flex-shrink:0}
.sd-tb .selbtn:hover{background:rgba(0,0,0,.1)}
.sd-grid{flex:1;padding:18px;display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));grid-auto-rows:110px;gap:8px;align-content:start;overflow:auto}
.sd-file{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 4px;border-radius:8px;cursor:grab;transition:background .15s}
.sd-file:hover{background:rgba(0,0,0,.05)}
.sd-file.sel{background:rgba(10,132,255,.14)}
.sd-file .ficon{width:50px;height:62px;font-size:10px;padding-bottom:6px;box-shadow:0 1px 3px rgba(0,0,0,.25),inset 0 0 0 .5px rgba(255,255,255,.4)}
.sd-file .nm{font-size:11px;text-align:center;line-height:1.25;max-width:88px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:1px 5px;border-radius:4px}
.sd-file.sel .nm{background:#0a84ff;color:#fff}

.sd-mail{right:5%;top:22%;width:36%;height:58%;min-width:340px;background:rgba(255,255,255,.96);display:flex;flex-direction:column}
.sd-mail .tb{height:52px;display:flex;align-items:center;gap:12px;padding:0 14px;background:rgba(240,240,245,.9);border-bottom:1px solid rgba(0,0,0,.08)}
.sd-mail .tb .t{font-size:13px;font-weight:600;color:#6e6e73;margin:0 auto}
.sd-mail .send{width:60px;height:22px;border-radius:6px;background:#0a84ff;color:#fff;font-size:12px;font-weight:600;display:flex;align-items:center;justify-content:center}
.sd-mail .fld{display:flex;gap:8px;padding:9px 0;border-bottom:1px solid rgba(0,0,0,.08);margin:0 16px;font-size:13px}
.sd-mail .fld span:first-child{color:#8a8a8e;width:56px}
.sd-mail .tag{background:rgba(10,132,255,.15);color:#0a84ff;border-radius:10px;padding:1px 8px}
.sd-body{flex:1;margin:12px 16px 16px;border-radius:10px;padding:12px;font-size:13px;line-height:1.5;color:#3a3a3c;border:2px dashed rgba(0,0,0,.08);transition:all .3s cubic-bezier(.34,1.56,.64,1);display:flex;flex-direction:column;gap:10px;min-height:0}
.sd-body.glow{border-color:#0a84ff;background:rgba(10,132,255,.06)}
.sd-att{display:flex;flex-wrap:wrap;gap:8px}
.sd-att .a{display:flex;align-items:center;gap:8px;padding:6px 10px 6px 6px;border-radius:8px;background:rgba(0,0,0,.05);font-size:12px;animation:sdCardIn .4s cubic-bezier(.34,1.56,.64,1)}
.sd-att .a i{width:18px;height:22px;border-radius:3px}.sd-att .a b{font-weight:500}.sd-att .a span{color:#8a8a8e}
.sd-mailhint{margin-top:auto;font-size:12px;color:#8a8a8e;text-align:center}

/* shelf panel */
.sd-panelwrap{position:absolute;z-index:20;transition:left .5s cubic-bezier(.34,1.56,.64,1),top .5s cubic-bezier(.34,1.56,.64,1)}
.sd-panelwrap.notch{left:50%;top:0;transform:translateX(-50%);z-index:26;transition:none}
.sd-panel{min-width:280px;max-width:420px;padding:12px;border-radius:22px;background:rgba(255,255,255,.62);backdrop-filter:blur(30px) saturate(190%);-webkit-backdrop-filter:blur(30px) saturate(190%);border:1px solid rgba(255,255,255,.7);color:#1d1d1f;animation:sdPanelIn .45s cubic-bezier(.34,1.56,.64,1);transition:box-shadow .35s cubic-bezier(.34,1.56,.64,1),transform .35s cubic-bezier(.34,1.56,.64,1),width .45s cubic-bezier(.34,1.56,.64,1);box-shadow:0 24px 60px rgba(0,0,0,.3),0 0 0 .5px rgba(0,0,0,.15)}
.sd-panelwrap.out .sd-panel{animation:sdPanelOut .25s ease-out forwards;pointer-events:none}
.sd-panel.glow{transform:scale(1.03);box-shadow:0 0 0 3px rgba(10,132,255,.75),0 0 36px rgba(10,132,255,.55),0 24px 60px rgba(0,0,0,.3)}
.notch .sd-panel{min-width:0;max-width:none;padding:0;border:0;border-radius:0 0 12px 12px;background:#000;color:#f5f5f7;animation:none;overflow:hidden;box-shadow:none;transition:width .6s cubic-bezier(.34,1.56,.64,1),height .6s cubic-bezier(.34,1.56,.64,1),border-radius .6s cubic-bezier(.34,1.56,.64,1),background .3s ease,box-shadow .3s ease;transform:none}
.notch .sd-panel.open{border-radius:0 0 24px 24px;box-shadow:0 20px 50px rgba(0,0,0,.5)}
.notch .sd-panel.glow{background:#06101c;box-shadow:inset 0 0 28px rgba(10,132,255,.35),0 20px 50px rgba(0,0,0,.5)}
.sd-pc{width:100%}
.notch .sd-pc{position:relative;opacity:0;transform:translateY(-10px) scale(.94);transform-origin:top center;transition:opacity .15s ease,transform .2s ease;pointer-events:none;padding:var(--nh) 12px 12px}
.notch .sd-pc.on{opacity:1;transform:none;pointer-events:auto;transition:opacity .3s ease .22s,transform .5s cubic-bezier(.34,1.56,.64,1) .18s}
.sd-glow{position:absolute;left:-10px;top:0;opacity:0;transition:opacity .25s ease;pointer-events:none;z-index:3;overflow:visible}
.sd-glow.on{opacity:1}
.sd-empty{height:72px;border-radius:10px;animation:sdEmptyIn .45s cubic-bezier(.34,1.56,.64,1);border:2px dashed #6e6e73;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:13px;color:#6e6e73;pointer-events:none}
.sd-empty .s{font-size:11px;opacity:.75}
.notch .sd-empty{width:336px;border-radius:12px;border-color:rgba(235,235,245,.6);color:rgba(235,235,245,.6)}
.sd-panel.glow .sd-empty{border-color:#0a84ff;color:#0a84ff}
.sd-row{display:flex;gap:6px;overflow-x:auto;overflow-y:hidden;border-radius:12px}
.sd-group{position:relative;flex-shrink:0;height:72px;cursor:grab;border-radius:12px;transition:width .45s cubic-bezier(.34,1.56,.64,1),background .25s,box-shadow .25s,opacity .2s;animation:sdCardIn .5s cubic-bezier(.34,1.56,.64,1) var(--d,0s) both}
.sd-group.lit{background:rgba(0,0,0,.06);box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}
.sd-group.open{background:rgba(0,0,0,.04);box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.notch .sd-group.lit{background:rgba(255,255,255,.16);box-shadow:inset 0 0 0 1px rgba(255,255,255,.25)}
.notch .sd-group.open{background:rgba(255,255,255,.09);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
.sd-group.open.noline{box-shadow:none}
.sd-target{position:absolute;inset:0;border-radius:12px;border:2px dashed #0a84ff;background:rgba(10,132,255,.12);opacity:0;transform:scale(.9);transition:all .25s cubic-bezier(.34,1.56,.64,1);pointer-events:none;z-index:0}
.notch .sd-target{border-color:#5eb0ff;background:rgba(94,176,255,.22)}
.sd-group.tgt .sd-target{opacity:1;transform:scale(1)}
.sd-card{position:absolute;width:76px;height:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:4px 4px 6px;border-radius:12px;transform-origin:50% 80%;transition:left .45s cubic-bezier(.34,1.56,.64,1),top .45s cubic-bezier(.34,1.56,.64,1),transform .45s cubic-bezier(.34,1.56,.64,1),background .2s,opacity .2s}
.sd-card.single{cursor:grab}
.sd-card.single:hover{background:rgba(0,0,0,.05)}
.notch .sd-card.single:hover{background:rgba(255,255,255,.16);box-shadow:inset 0 0 0 1px rgba(255,255,255,.25)}
.sd-card .ficon{width:33px;height:42px;font-size:8px;padding-bottom:4px;pointer-events:none}
.sd-card .nm{font-size:11px;line-height:1.2;text-align:center;max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;transition:opacity .25s}
.sd-x{position:absolute;width:20px;height:20px;border-radius:50%;background:rgba(40,40,45,.85);color:#fff;font-size:11px;line-height:20px;text-align:center;opacity:0;transform:scale(.6);transition:all .2s cubic-bezier(.34,1.56,.64,1);z-index:2;cursor:default}
.sd-x:hover{background:#e5484d!important;color:#fff!important}
.sd-x.on{opacity:1;transform:scale(1)}
.sd-card .sd-x{left:4px;top:4px}
.sd-card.single:hover .sd-x{opacity:1;transform:scale(1)}
.sd-stackx{left:4px;top:4px;z-index:6}
.sd-group.stack:not(.open):hover .sd-stackx{opacity:1;transform:scale(1)}
.sd-stacklabel{position:absolute;left:0;bottom:6px;width:76px;text-align:center;pointer-events:none;transition:opacity .25s;font-size:11px;line-height:1.2;font-weight:500}
.sd-badge{position:absolute;right:2px;top:2px;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:#0a84ff;color:#fff;font-size:11px;font-weight:700;line-height:20px;text-align:center;box-shadow:0 2px 6px rgba(0,0,0,.3);pointer-events:none;opacity:0;transform:scale(.5);transition:all .3s cubic-bezier(.34,1.56,.64,1);z-index:5}
.sd-group.stack:not(.open) .sd-badge{opacity:1;transform:scale(1)}
.sd-group:not(.stack) .sd-stacklabel,.sd-group.open .sd-stacklabel{opacity:0}
.sd-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:4px;padding:0 8px;font-size:12px;color:#6e6e73}
.sd-head{position:absolute;left:0;right:0;top:0;height:var(--nh);display:flex;align-items:center;justify-content:space-between;padding:0 12px;font-size:12px;color:rgba(235,235,245,.6);transition:color .2s}
.sd-head .side{flex-shrink:0;white-space:nowrap}.sd-head .sum{overflow:hidden}.sd-head .long{display:inline-block}.sd-head .long[hidden]{display:none}.sd-head .end{text-align:right}
.sd-panel.glow .sd-foot,.sd-panel.glow .sd-head{color:#0a84ff}
.sd-foot span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.clr{cursor:default;flex-shrink:0}.clr:hover{color:#e5484d}

/* settings */
.sd-settings{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:380px;border-radius:12px;background:rgba(240,240,245,.96);backdrop-filter:blur(40px);box-shadow:0 30px 80px rgba(0,0,0,.5),0 0 0 .5px rgba(0,0,0,.3);font-size:13px;animation:sdMenuIn .2s ease-out;z-index:40;overflow:hidden}
.sd-settings .tb{height:44px;display:flex;align-items:center;padding:0 14px;border-bottom:1px solid rgba(0,0,0,.08)}
.sd-settings .tb .close{width:12px;height:12px;border-radius:50%;background:#ff5f57;cursor:default}
.sd-settings .tb .t{margin:0 auto;font-weight:600;color:#6e6e73}
.sd-settings .bd{padding:14px 18px 18px;display:flex;flex-direction:column;gap:10px}
.sd-settings .row{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;border-radius:8px;background:#fff;box-shadow:0 0 0 .5px rgba(0,0,0,.1)}
.sd-settings .row.col{flex-direction:column;align-items:stretch;gap:8px;padding-bottom:10px}
.sd-settings .lb{font-weight:500}.sd-settings .sb{font-size:11px;color:#8a8a8e}
.sd-toggle{width:38px;height:22px;border-radius:11px;background:rgba(120,120,128,.32);position:relative;transition:background .25s;flex-shrink:0}
.sd-toggle.on{background:#34c759}
.sd-toggle i{position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:left .25s cubic-bezier(.34,1.56,.64,1)}
.sd-toggle.on i{left:18px}
.sd-seg{display:flex;gap:2px;padding:2px;border-radius:7px;background:rgba(120,120,128,.14)}
.sd-seg span{flex:1;text-align:center;padding:4px 0;border-radius:5px;font-size:12px;transition:all .25s cubic-bezier(.34,1.56,.64,1);cursor:default}
.sd-seg span.on{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.18);font-weight:600}
.sd-settings .ft{font-size:11px;color:#8a8a8e;text-align:center;margin-top:4px}

.sd-toast{position:absolute;left:50%;bottom:28px;transform:translateX(-50%);padding:9px 16px;border-radius:12px;background:rgba(30,30,35,.85);backdrop-filter:blur(20px);color:#fff;font-size:13px;box-shadow:0 10px 30px rgba(0,0,0,.4);animation:sdToastIn .3s cubic-bezier(.34,1.56,.64,1);z-index:50;white-space:nowrap}
