/* Homepage lab: hero + sticky phone with tappable demos, and the 27 Nov finale.
   Everything is scoped to .lab / .lab-final so the rest of the site keeps its own theme. */
.lab, .lab-final {
  --lb: #16120a; --la: #ffb300; --lg: rgba(255,179,0,.35); --li: #fff7e6; --lm: rgba(255,247,230,.68);
  --ease: cubic-bezier(.2,.8,.2,1); --phone-w: min(330px, 78vw);
  position: relative; color: var(--li); background: var(--lb);
  transition: background-color .8s var(--ease); overflow-x: clip;
}
.lab a, .lab-final a { color: inherit; }

/* hero */
.lab-intro { position: relative; min-height: calc(100svh - 64px); display: grid; place-items: center; text-align: center; padding: 60px 22px 50px; }
.lab-intro::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50vmax 40vmax at 50% 55%, var(--lg), transparent 70%); }
.lab-intro > div { position: relative; }
.lab-tag { display: inline-flex; gap: 8px; align-items: center; font: 700 12px/1 Inter, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--la); padding: 9px 14px; border: 1px solid rgba(255,179,0,.35); border-radius: 999px; }
.lab-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--la); box-shadow: 0 0 12px var(--la); animation: lab-blink 1.6s infinite; }
@keyframes lab-blink { 50% { opacity: .25; } }
.lab-intro h1 { font-size: clamp(40px, 8.4vw, 104px); line-height: .98; letter-spacing: -.045em; margin: 26px auto 20px; max-width: 11em; font-weight: 900; color: var(--li); }
.lab-intro h1 em { font-style: normal; color: var(--la); }
.lab-intro p { color: var(--lm); font-size: clamp(16px, 2.2vw, 20px); max-width: 30em; margin: 0 auto; line-height: 1.55; }
.lab-tubes { display: flex; justify-content: center; gap: 14px; margin: 38px 0 0; }
.lab-tubes a { width: 54px; height: 54px; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.35); transform: translateY(20px); opacity: 0; animation: lab-rise .7s var(--ease) forwards; transition: transform .2s; }
.lab-tubes a:hover { transform: translateY(-4px) !important; }
.lab-tubes img { width: 100%; height: 100%; display: block; }
.lab-tubes a:nth-child(2) { animation-delay: .08s } .lab-tubes a:nth-child(3) { animation-delay: .16s } .lab-tubes a:nth-child(4) { animation-delay: .24s } .lab-tubes a:nth-child(5) { animation-delay: .32s }
@keyframes lab-rise { to { transform: none; opacity: 1; } }
.lab-skip { display: flex; gap: 10px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.lab-skip a { text-decoration: none; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.lab-hint { margin-top: 34px; font-size: 13px; color: var(--lm); display: grid; justify-items: center; gap: 10px; }
.lab-hint span { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px; position: relative; }
.lab-hint span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--la); animation: lab-wheel 1.6s infinite; }
@keyframes lab-wheel { 60% { transform: translateY(12px); opacity: 0; } 61% { transform: none; opacity: 0; } 100% { opacity: 1; } }

/* sticky showcase */
.lab-show { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 0 6vw; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.lab-steps { padding: 0 0 16vh; }
.lab-step { min-height: calc(100svh - 64px); display: flex; flex-direction: column; justify-content: center; max-width: 470px; opacity: .25; transition: opacity .5s var(--ease); }
.lab-step.on { opacity: 1; }
.lab-step .no { font: 800 13px/1 Inter, sans-serif; letter-spacing: .2em; color: var(--la); }
.lab-step .head { display: flex; align-items: center; gap: 16px; margin: 18px 0 16px; }
.lab-step .head img { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.lab-step h2 { font-size: clamp(36px, 5vw, 58px); letter-spacing: -.035em; margin: 0; line-height: 1; font-weight: 900; color: var(--li); }
.lab-step p { font-size: 18px; line-height: 1.6; color: var(--lm); margin: 0 0 22px; }
.lab-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; padding: 8px 14px; border-radius: 999px; width: fit-content; }
.lab-status.live { background: rgba(46,204,113,.16); color: #4be08c; }
.lab-status.soon { background: rgba(255,255,255,.12); color: var(--li); }
.lab-status b { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.lab-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.lab-try { font-size: 14px; font-weight: 700; color: var(--la); display: flex; align-items: center; gap: 8px; }
.lab-try::after { content: "→"; animation: lab-nudge 1.2s infinite; }
@keyframes lab-nudge { 50% { transform: translateX(5px); } }
.lab-cta { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 800; padding: 14px 22px; border-radius: 14px; background: var(--la); color: #140f00 !important; width: fit-content; transition: transform .2s var(--ease), background-color .8s; }
.lab-cta:hover { transform: translateY(-2px); }
.lab-credit { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--lm); margin-top: 16px; }
.lab-credit img { height: 28px; }

.lab-stage { position: sticky; top: 64px; height: calc(100svh - 64px); display: grid; place-items: center; }
.lab-stage::before { content: ""; position: absolute; inset: -10% -40%; pointer-events: none; background: radial-gradient(closest-side, var(--lg), transparent); transition: background .8s; }
.lab-phone {
  width: var(--phone-w); aspect-ratio: 9 / 19.2; max-height: calc(100svh - 110px); border-radius: 48px; padding: 11px; position: relative;
  background: linear-gradient(145deg, #2b2b30, #0d0d10); box-shadow: 0 0 0 2px #3a3a40, 0 40px 90px rgba(0,0,0,.55);
}
.lab-phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 90px; height: 24px; margin-left: -45px; background: #000; border-radius: 14px; z-index: 5; }
.lab-screen { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #000; isolation: isolate; }
.lab-app { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .55s var(--ease), transform .55s var(--ease); pointer-events: none; display: flex; flex-direction: column; }
.lab-app.on { opacity: 1; transform: none; pointer-events: auto; }
.lab-bar { display: flex; justify-content: space-between; padding: 16px 26px 0; font: 700 12px/1 Inter, sans-serif; height: 44px; }
.lab-tip { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font: 700 11px/1 Inter, sans-serif; padding: 8px 12px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; white-space: nowrap; pointer-events: none; transition: opacity .4s; z-index: 4; }
.lab-app.used .lab-tip { opacity: 0; }

/* Planote */
.lab-pl { background: #fff8e1; color: #1c1b1f; }
.lab-pl h4 { margin: 10px 20px 4px; font-size: 22px; }
.lab-pl small { margin: 0 20px 14px; color: #777; font-size: 11px; }
.lab-pl .tags { display: flex; gap: 6px; margin: 0 20px 14px; }
.lab-pl .tags span { font-size: 11px; padding: 4px 9px; border-radius: 999px; background: #ffe7a3; font-weight: 700; }
.lab-calc { margin: 0 16px; padding: 14px; background: #fff; border-radius: 18px; box-shadow: 0 6px 18px rgba(80,60,0,.1); font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
.lab-calc label { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px dashed #eee; }
.lab-calc input { width: 92px; text-align: right; font: 700 14px ui-monospace, Consolas, monospace; color: #e08a00; border: 0; background: #fff4d6; border-radius: 8px; padding: 6px 8px; }
.lab-calc .sum { display: flex; justify-content: space-between; padding-top: 10px; font-weight: 800; }
.lab-calc .sum b { color: #2e7d32; transition: transform .2s; display: inline-block; }
.lab-calc .sum b.pop { transform: scale(1.18); }
.lab-goal { margin: 14px 16px 0; padding: 12px 14px; border-radius: 16px; background: #e8f5e9; font-size: 12.5px; }
.lab-goal .track { height: 8px; border-radius: 6px; background: #c8e6c9; margin-top: 8px; overflow: hidden; }
.lab-goal .fill { height: 100%; background: #43a047; width: 40%; transition: width .4s var(--ease); }

/* NovaHero */
.lab-nh video { width: 100%; height: 100%; object-fit: cover; }
.lab-nh .by { position: absolute; top: 52px; right: 14px; display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.92); color: #0c163e; font: 800 11px Inter, sans-serif; padding: 6px 10px 6px 6px; border-radius: 12px; }
.lab-nh .by img { height: 20px; }

/* Zikrihal */
.lab-zk { background: radial-gradient(120% 70% at 50% 10%, #1d5c45, #0b2a1f); color: #f3efe2; align-items: center; text-align: center; }
.lab-zk .lab-bar { align-self: stretch; }
.lab-zk .name { margin-top: 18px; font-size: 13px; opacity: .7; letter-spacing: .14em; text-transform: uppercase; }
.lab-zk .ar { font-size: 30px; margin: 10px 0 2px; font-family: "Amiri", "Traditional Arabic", serif; }
.lab-zk .tr { font-size: 15px; opacity: .85; }
.lab-zk .ring { position: relative; width: 210px; height: 210px; margin: 26px 0 16px; border: 0; background: none; color: inherit; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; }
.lab-zk .ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.lab-zk .core { position: absolute; inset: 18px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #2f7d60, #154535); box-shadow: inset 0 -8px 20px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.35); display: grid; place-content: center; transition: transform .12s; }
.lab-zk .ring:active .core { transform: scale(.95); }
.lab-zk .count { font-size: 64px; font-weight: 900; line-height: 1; }
.lab-zk .of { font-size: 13px; opacity: .7; margin-top: 4px; }
.lab-zk .done { font-size: 13px; min-height: 18px; color: #ffd97a; font-weight: 700; }
.lab-zk .ripple { position: absolute; inset: 18px; border-radius: 50%; border: 2px solid #ffd97a; opacity: 0; pointer-events: none; }
.lab-zk .ripple.go { animation: lab-rip .6s ease-out; }
@keyframes lab-rip { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.25); } }

/* Redix */
.lab-rx { background: #fffaf0; color: #2b2200; }
.lab-rx h4 { margin: 14px 20px 2px; font-size: 21px; }
.lab-rx small { margin: 0 20px 14px; color: #8a7a50; font-size: 12px; }
.lab-rx ul { list-style: none; margin: 0 14px; padding: 0; display: grid; gap: 9px; }
.lab-rx li button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 16px; border: 0; background: #fff; box-shadow: 0 4px 14px rgba(120,90,0,.1); font: 700 14px Inter, sans-serif; color: inherit; cursor: pointer; text-align: left; transition: background .25s; -webkit-tap-highlight-color: transparent; }
.lab-rx li .em { font-size: 20px; }
.lab-rx li .ck { margin-left: auto; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #e8d9a8; display: grid; place-items: center; transition: all .25s var(--ease); }
.lab-rx li.ok button { background: #fff3c4; }
.lab-rx li.ok .ck { background: #ffc61a; border-color: #ffc61a; transform: scale(1.1); }
.lab-rx li.ok .ck::after { content: "✓"; font-weight: 900; color: #2b2200; }
.lab-rx .ready { margin: 16px 14px 0; padding: 16px; border-radius: 18px; background: #ffc61a; text-align: center; font-weight: 900; transform: translateY(14px) scale(.96); opacity: 0; transition: all .45s var(--ease); }
.lab-rx .ready.on { transform: none; opacity: 1; }
.lab-rx .prog { margin: 0 20px 12px; font-size: 12px; font-weight: 700; color: #8a7a50; }

/* Null Star */
.lab-ns { background: #07040f; }
.lab-ns canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.lab-ns .hud { position: absolute; top: 50px; left: 16px; right: 16px; display: flex; justify-content: space-between; font: 800 13px Inter, sans-serif; color: #ffd36b; text-shadow: 0 0 8px rgba(255,180,0,.6); pointer-events: none; }

/* finale */
.lab-final { text-align: center; padding: 96px 22px; }
.lab-final::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50vmax 30vmax at 50% 50%, var(--lg), transparent 70%); }
.lab-final > div { position: relative; }
.lab-final h2 { font-size: clamp(36px, 6.4vw, 80px); letter-spacing: -.04em; line-height: 1; margin: 0 auto 18px; max-width: 12em; font-weight: 900; color: var(--li); }
.lab-final h2 em { font-style: normal; color: var(--la); }
.lab-final p { color: var(--lm); font-size: 18px; margin: 0 0 30px; }
.lab-clock { display: flex; gap: 12px; justify-content: center; margin-bottom: 34px; }
.lab-clock div { min-width: 78px; padding: 14px 8px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.lab-clock b { display: block; font-size: 34px; font-weight: 900; font-variant-numeric: tabular-nums; }
.lab-clock span { font-size: 12px; color: var(--lm); }
.lab-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.lab-links a { text-decoration: none; padding: 11px 16px; border-radius: 12px; background: rgba(255,255,255,.08); font-weight: 700; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.lab-links img { width: 22px; height: 22px; border-radius: 6px; }

/* phones: the phone stays at the top, the text scrolls below it */
@media (max-width: 860px) {
  .lab { --phone-w: min(232px, 52vw, calc(52svh / 2.13)); }
  .lab-show { grid-template-columns: 1fr; padding: 0 18px; }
  .lab-stage { grid-row: 1; height: auto; padding: 10px 18px 14px; margin: 0 -18px; z-index: 3;
    background: linear-gradient(var(--lb) calc(100% - 16px), transparent); transition: background .8s var(--ease); }
  .lab-stage::before { display: none; }
  .lab-phone { border-radius: 36px; padding: 8px; max-height: none; }
  .lab-phone::before { top: 15px; width: 66px; height: 18px; margin-left: -33px; }
  .lab-screen { border-radius: 29px; }
  .lab-steps { grid-row: 2; }
  .lab-step { min-height: 58svh; justify-content: flex-start; padding-top: 3svh; }
  .lab-step .head img { width: 50px; height: 50px; border-radius: 14px; }
  .lab-step p { font-size: 16px; }
  .lab-try { display: none; }
  .lab-app { zoom: .72; }
  .lab-clock div { min-width: 0; flex: 1; max-width: 78px; }
  .lab-clock b { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .lab *, .lab *::before, .lab *::after, .lab-final * { animation: none !important; transition: none !important; }
  .lab-tubes a { opacity: 1; transform: none; }
}

/* Unreleased icons fill from the bottom, one step per day, in step with the cards. */
.lab-rv { position: relative; display: block; width: 100%; height: 100%; }
.lab-rv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.lab-rv .ghost { filter: grayscale(1) blur(2px); opacity: .28; }
.lab-rv .fill { clip-path: inset(100% 0 0 0); transition: clip-path .8s ease; }
.lab-step .head .lab-rv { width: 64px; height: 64px; flex: none; border-radius: 18px; }
.lab-links .lab-rv { width: 22px; height: 22px; border-radius: 6px; }
@media (max-width: 860px) { .lab-step .head .lab-rv { width: 50px; height: 50px; border-radius: 14px; } }
