/* Lingostep · depth.css
   The 3D layer and the polish that goes with it. Loaded after site.css so it can refine it.
   Everything here degrades to the flat design when transforms or motion are unavailable. */

/* ---------- utilities ---------- */
.skip{position:fixed;z-index:200;left:16px;top:-80px;padding:12px 18px;border-radius:12px;background:var(--gold);color:#2a1206;font-weight:700;text-decoration:none;transition:top .2s}
.skip:focus{top:calc(env(safe-area-inset-top,0px) + 12px)}
.nojs{position:relative;z-index:100;padding:14px 20px;background:var(--gold);color:#2a1206;font-weight:600;text-align:center}
.nojs a{color:inherit}
::selection{background:var(--gold);color:#2a1206}

/* ---------- 3D section entrances: content swings up out of the floor ---------- */
.rv{transform-origin:50% 100%}
.rv.pre{opacity:0;transform:perspective(1100px) rotateX(18deg) translateY(46px) scale(.97);filter:blur(8px)}

/* ---------- tilt surfaces ---------- */
.card,.bud,.steps li,.taste,.shot,.qbox{transform-style:preserve-3d;will-change:auto}
.card,.bud,.steps li{overflow:visible}           /* preserve-3d needs it; the light layers clip themselves */
.is-tilting{transition:border-color .3s,box-shadow .3s!important;will-change:transform}
.taste{--tilt-z:1.4deg}
.shot{--tilt-z:1.2deg}
@media (max-width:860px){.taste{--tilt-z:0deg}}
@media (max-width:720px){.shot{--tilt-z:0deg}}
.taste.rv:not(.pre),.shot{transform:rotateZ(var(--tilt-z))}

/* parallax layers: these float above their card when it tilts */
.is-3d .lvl,.is-3d .price,.is-3d .pill{transform:translateZ(38px)}
.is-3d h4,.is-3d h3{transform:translateZ(24px)}
.is-3d .btn.buy,.is-3d .mini{transform:translateZ(30px)}
.bud.is-3d svg{filter:drop-shadow(0 26px 30px rgba(240,173,60,.45))}
.lvl,.price,.pill,.card h4,.bud h3,.steps h3,.btn.buy,.mini{transition:transform .5s var(--ease)}

/* glare: a soft specular highlight that follows the pointer */
.glare{position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:3;opacity:var(--glare,0);mix-blend-mode:soft-light;
  background:radial-gradient(520px circle at var(--gx,50%) var(--gy,50%),rgba(255,255,255,.55),rgba(255,255,255,.08) 38%,transparent 62%)}
.taste .glare,.shot .glare{mix-blend-mode:overlay}

/* lifted surfaces cast a deeper shadow */
.card.is-tilting{box-shadow:0 40px 70px -30px rgba(0,0,0,.85),0 0 0 1px rgba(255,255,255,.08)}
.bud.is-tilting,.steps li.is-tilting{box-shadow:0 40px 70px -34px rgba(0,0,0,.8)}

/* ---------- the laptop opens like a lid ---------- */
.laptop.unfold{--open:0;transform-origin:50% 100%;
  transform:perspective(1800px) rotateX(calc((1 - var(--open)) * 32deg)) scale(calc(.9 + var(--open) * .1)) translateY(calc((1 - var(--open)) * 40px));
  opacity:calc(.35 + var(--open) * .65)}
.laptop.unfold .frame{filter:brightness(calc(.55 + var(--open) * .45))}

/* ---------- shop head + the language cube ---------- */
.shop-head{display:grid;grid-template-columns:1fr auto;gap:clamp(24px,5vw,72px);align-items:center}
.cube-wrap{display:grid;justify-items:center;gap:14px;--cs:180px}
.cube-wrap[hidden]{display:none}
.cube-scene{position:relative;width:var(--cs);height:var(--cs);perspective:900px;perspective-origin:50% 40%;cursor:grab;touch-action:pan-y;border-radius:24px;-webkit-user-select:none;user-select:none}
.cube-scene.grabbing{cursor:grabbing}
.cube{position:absolute;inset:0;transform-style:preserve-3d}
.face{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:2px;padding:0;border-radius:22px;
  border:1px solid color-mix(in srgb,var(--fc) 70%,white 10%);color:var(--chalk);cursor:inherit;
  background:
    radial-gradient(120% 90% at 30% 15%,rgba(255,255,255,calc(var(--lit,.5) * .32)),transparent 60%),
    linear-gradient(160deg,color-mix(in srgb,var(--fc) 55%,#2a0c1a),color-mix(in srgb,var(--fc) 18%,#12060c));
  filter:brightness(calc(.42 + var(--lit,.5) * .78));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),inset 0 -18px 40px rgba(0,0,0,.35);
  -webkit-backface-visibility:hidden;backface-visibility:hidden}
.face .f-code{font:600 calc(var(--cs) * .3)/.9 var(--f-disp);letter-spacing:-.05em;color:#fff;text-shadow:0 6px 24px color-mix(in srgb,var(--fc) 70%,transparent)}
.face .f-hello{font:500 calc(var(--cs) * .1)/1.1 var(--f-disp);color:var(--fc);filter:brightness(1.35)}
.face .f-name{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mute)}
.face.on{border-color:var(--fc);box-shadow:inset 0 0 0 1px rgba(255,255,255,.15),inset 0 -18px 40px rgba(0,0,0,.3),0 0 40px -6px var(--fc)}
.f-front{transform:translateZ(calc(var(--cs) / 2))}
.f-back{transform:rotateY(180deg) translateZ(calc(var(--cs) / 2))}
.f-right{transform:rotateY(90deg) translateZ(calc(var(--cs) / 2))}
.f-left{transform:rotateY(-90deg) translateZ(calc(var(--cs) / 2))}
.f-top{transform:rotateX(90deg) translateZ(calc(var(--cs) / 2))}
.f-bottom{transform:rotateX(-90deg) translateZ(calc(var(--cs) / 2))}
.cube-floor{position:absolute;left:50%;bottom:calc(var(--cs) * -.42);width:calc(var(--cs) * 1.25);height:calc(var(--cs) * .22);transform:translateX(-50%);border-radius:50%;pointer-events:none;
  background:radial-gradient(closest-side,rgba(0,0,0,.6),rgba(240,173,60,.08) 70%,transparent);filter:blur(6px)}
.cube-scene:focus-visible{outline:3px solid var(--gold);outline-offset:18px}
.cube-hint{margin-top:calc(var(--cs) * .32);color:var(--dim);font-size:13.5px;text-align:center}
@media (max-width:860px){.shop-head{grid-template-columns:1fr}.cube-wrap{--cs:140px;order:-1;margin-block:10px 20px}.cube-hint{margin-top:calc(var(--cs) * .36)}}

/* ---------- trust row under the shop ---------- */
.assure{list-style:none;margin:28px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.assure li{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:18px;border:1px solid var(--edge);background:var(--glass);color:var(--mute);font-size:14.5px;line-height:1.4}
.assure b{font-size:18px;line-height:1.2}

/* ---------- reduced motion: keep the depth, drop the movement ---------- */
@media (prefers-reduced-motion:reduce){
  .rv.pre{transform:none;filter:none}
  .laptop.unfold{transform:none;opacity:1}
  .laptop.unfold .frame{filter:none}
}
