/* ============================================================================
   /tools/ — v2 skin (black & white). Loaded after shop.css and assets/tl.css:
   shop.js still draws every card; this only changes how they look.
============================================================================ */
body{ display:block; font-family:var(--font) }
main{ position:relative; z-index:2; max-width:1240px; padding:0 24px }
.tl-hero .ast{ display:inline-block; font-stretch:100%; animation:tl-ast 16s linear infinite; transform-origin:50% 56% }
@keyframes tl-ast{ to{ transform:rotate(360deg) } }

/* the apps' quick links */
.jump{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:30px }
.jump a{ height:38px; padding:0 16px; display:inline-flex; align-items:center; border-radius:999px; border:1px solid var(--line);
  background:var(--glass); color:var(--ink-2); font-size:13.5px; font-weight:500; text-decoration:none; transition:all .2s ease }
.jump a:hover{ color:#000; background:#fff; border-color:#fff }

/* one app = one big glass card */
#apps{ gap:28px; margin:40px 0 0 }
.app{ padding:clamp(18px, 2.6vw, 34px); border-radius:32px; border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.012)); scroll-margin-top:100px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07) }
.app + .app::before{ display:none }
.app-top{ align-items:center }
.app-kicker{ display:inline-flex; align-items:center; gap:9px; color:var(--ink-3); letter-spacing:.2em }
.app-kicker::before{ content:''; width:6px; height:6px; border-radius:50%; background:#fff; box-shadow:0 0 10px #fff }
.appname{ margin:14px 0 22px; font-family:var(--display); font-stretch:125%; font-weight:900; text-transform:uppercase;
  font-size:clamp(30px, 3.6vw, 52px); line-height:.95; letter-spacing:-.01em; text-shadow:var(--halo); transform:skewX(-10deg); transform-origin:0 100% }
.feat li{ color:var(--ink-2) }
.feat svg, .tier-list svg{ color:#fff; filter:drop-shadow(0 0 4px rgba(255,255,255,.5)) }
.more{ color:#fff; text-decoration:underline; text-underline-offset:4px }

/* the screenshot / live demo */
.shot{ border-radius:22px !important; border:1px solid var(--line-2) !important; box-shadow:0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04) }
.shot-cta{ background:#fff !important; color:#000 !important }

/* discount code */
.promo{ height:48px; border-radius:999px; padding:0 6px 0 16px; background:rgba(255,255,255,.04); border:1px solid var(--line) }
.promo button{ height:36px; border-radius:999px; padding:0 18px; background:#fff; color:#000; font-weight:650 }

/* the plans */
.tiers{ gap:14px }
.tier{ border-radius:24px; border:1px solid var(--line); background:rgba(255,255,255,.025); overflow:hidden }
.tier:hover{ border-color:rgba(255,255,255,.3); transform:translateY(-4px) }
.tier-head{ border-radius:22px }
.tier-name{ color:var(--ink-2) }
.tier-badge{ border:1px solid var(--line-2); background:rgba(255,255,255,.06); color:#fff }
.tier-main{ font-family:var(--display); font-stretch:125%; font-weight:900; font-size:38px; letter-spacing:-.02em; transform:skewX(-8deg); text-shadow:var(--halo-soft) }
.tier-per{ color:var(--ink-3) }
.tier-btn{ border-radius:999px; height:46px; background:rgba(255,255,255,.08) !important; color:#fff !important; border:1px solid var(--line-2);
  box-shadow:none !important; font-weight:650 }
.tier-btn:hover{ background:#fff !important; color:#000 !important; filter:none }
.tier-list li{ color:var(--ink-2) }

/* lifetime: the one that glows */
.tier.best{ border-color:rgba(255,255,255,.55); background:linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.02));
  box-shadow:0 0 0 1px rgba(255,255,255,.12), 0 20px 60px rgba(255,255,255,.07) }
.tier.best:hover{ border-color:#fff }
.tier.best .tier-btn{ background:#fff !important; color:#000 !important; border-color:#fff; box-shadow:0 10px 34px rgba(255,255,255,.25) !important }
.tier.best .tier-badge{ background:#fff; color:#000; border-color:#fff; font-weight:650 }

/* open source: a ticket on Discord */
.tier.source .tier-btn{ background:var(--blurple) !important; border-color:var(--blurple) }
.tier.source .tier-btn:hover{ background:#4752c4 !important; color:#fff !important }

/* the modal */
.modal{ background:rgba(0,0,0,.72); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px) }
.sheet{ border-radius:28px; border:1px solid var(--line-2); background:linear-gradient(180deg, #121214, #0a0a0b) }
.sheet h2{ font-family:var(--display); font-stretch:125%; font-weight:900; text-transform:uppercase; transform:skewX(-8deg); letter-spacing:-.01em }
.btn{ border-radius:999px }

/* open source strip */
.ticket{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:24px; margin-top:80px; padding:34px clamp(22px, 3vw, 40px);
  border-radius:32px; border:1px solid var(--line-2); background:radial-gradient(100% 140% at 0% 0%, rgba(255,255,255,.1), rgba(255,255,255,.015) 60%) }
.ticket h2{ margin:14px 0 0; font-size:clamp(30px, 4vw, 54px) }
.ticket p{ margin:14px 0 0; color:var(--ink-2); font-size:15.5px }

/* the account button lives in the new header */
.acct{ min-height:40px }
.signin{ height:40px; border-radius:999px; padding:0 16px; font-weight:650 }
.who{ height:40px; border-radius:999px; padding:0 8px 0 4px; border:1px solid var(--line); background:var(--glass) }
@media (max-width:980px){ .acct .nm{ display:none } }

/* ============================================================================
   v2.1 — every app is its own numbered stage
============================================================================ */
.tl-hero{ padding-bottom:30px }
.tstats{ display:flex; justify-content:center; flex-wrap:wrap; gap:12px; margin-top:30px }
.tstat{ min-width:150px; padding:16px 22px; border-radius:20px; text-align:left; border:1px solid var(--line);
  background:rgba(14,14,14,.7); -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px) }
.tstat b{ display:block; font-family:var(--display); font-stretch:125%; font-weight:900; font-size:28px; line-height:1;
  transform:skewX(-10deg); transform-origin:0 100%; text-shadow:var(--halo-soft) }
.tstat span{ display:block; margin-top:8px; font-size:12.5px; color:var(--ink-3) }

.jump{ position:sticky; top:86px; z-index:15; width:max-content; max-width:100%; margin:34px auto 0; padding:6px; gap:4px;
  border-radius:999px; border:1px solid var(--line); background:rgba(10,10,10,.78); -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px);
  box-shadow:0 18px 44px rgba(0,0,0,.45) }
.jump a{ height:36px; border:0; background:transparent }
.jump a.on{ background:#fff; color:#000 }

#apps{ counter-reset:app; gap:34px; margin-top:44px }
.app{ counter-increment:app; overflow:hidden; isolation:isolate;
  background:radial-gradient(500px circle at var(--mx, -500px) var(--my, -500px), rgba(255,255,255,.06), transparent 60%),
             linear-gradient(180deg, rgba(26,26,26,.82), rgba(9,9,9,.9));
  -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px) }
/* the app number sits above its name, outlined */
.app-info::before{ content:"0" counter(app); display:block; margin-bottom:8px; font:900 clamp(54px, 6vw, 84px)/1 var(--display); font-stretch:125%;
  letter-spacing:-.02em; color:transparent; -webkit-text-stroke:1.5px rgba(255,255,255,.4); transform:skewX(-10deg); transform-origin:0 100% }
/* every other app puts its screen on the right */
@media (min-width:961px){ .app:nth-child(even) .app-top > .shot{ order:2 } }
.app-top{ gap:clamp(26px, 3.6vw, 54px) }
.shot{ border-radius:20px !important; transition:transform .6s var(--e-out), box-shadow .6s ease, border-color .3s ease }
.shot:hover{ transform:translateY(-4px) scale(1.01) }
.shot-tag{ background:rgba(0,0,0,.7) }
.feat li{ padding:2px 0 }
.app .more{ margin-top:14px }

.tier{ background:radial-gradient(320px circle at var(--mx, -400px) var(--my, -400px), rgba(255,255,255,.08), transparent 60%), rgba(255,255,255,.025);
  transition:transform .45s var(--e-out), border-color .25s ease, box-shadow .45s ease }
.tier:hover{ box-shadow:0 30px 60px rgba(0,0,0,.5) }
.tier-head{ background:rgba(255,255,255,.04); border-color:rgba(255,255,255,.08) }
.tier.best{ animation:bestGlow 3.6s ease-in-out infinite }
@keyframes bestGlow{ 50%{ box-shadow:0 0 0 1px rgba(255,255,255,.2), 0 24px 70px rgba(255,255,255,.14) } }

.ticket{ position:relative; overflow:hidden; isolation:isolate }
.ticket::after{ content:''; position:absolute; z-index:-1; right:-80px; top:-80px; width:320px; height:320px; border-radius:50%;
  border:1px dashed rgba(255,255,255,.12); animation:tspin 40s linear infinite }
@keyframes tspin{ to{ transform:rotate(360deg) } }
@media (max-width:600px){ .jump{ width:auto; overflow-x:auto; flex-wrap:nowrap; justify-content:flex-start; scrollbar-width:none } .jump a{ flex:none } }
@media (max-width:700px){
  .tstats{ display:grid; grid-template-columns:repeat(3, 1fr); gap:8px }
  .tstat{ min-width:0; padding:14px 12px; text-align:center }
  .tstat b{ font-size:21px; white-space:nowrap; transform-origin:50% 100% }
  .tstat span{ font-size:11.5px }
}
