/* ============================================================
   THESMALLBOOK — 🛍️ TSB STORE (store.css) · v224
   Premium deal store. Real brand logos, editor's-picks rail,
   sticky shelves, Paytm/Blinkit-style reveal sheet.
   Neo-brutalist bones (ink borders, hard shadows) with soft
   radii + spring motion so it feels smooth, not cheap.
   ============================================================ */

:root {
  --st-r: 18px;            /* card radius */
  --st-r-sm: 12px;
  --st-ease: cubic-bezier(.22, 1, .36, 1);
  --st-ink: var(--ink, #111);
  --st-paper: var(--paper, #fffdf5);
  --st-muted: #6b665c;
}
html.dark { --st-muted: #b8b09e; }

/* ---------- motion primitives ---------- */
@keyframes st-rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes st-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes st-sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes st-pop { 0% { transform: scale(.9); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes st-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes st-shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .st-card, .st-pick, .st-hero, .st-unlock, .st-modal, .st-ovl, .st-ticker__track { animation: none !important; transition: none !important; }
}

/* ============================================================
   YOU-WINDOW BANNER (login.html)
   ============================================================ */
.acc__store { margin: 14px 0 6px; }
.st-banner {
  position: relative; display: flex; flex-direction: column; gap: 4px; width: 100%;
  border: 3px solid #111; border-radius: 18px; overflow: hidden;
  background: linear-gradient(120deg, #ffd93d 0%, #ffc800 55%, #ffb300 100%);
  box-shadow: 5px 5px 0 #111; padding: 14px 15px 13px; text-decoration: none; color: #111;
  transition: transform .18s var(--st-ease), box-shadow .18s var(--st-ease);
}
.st-banner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(160px 80px at 95% 0%, rgba(255,255,255,.6), transparent 70%); pointer-events: none; }
.st-banner:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 #111; }
.st-banner:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 #111; }
.st-banner__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; position: relative; z-index: 1; }
.st-banner__logos { display: flex; }
.st-banner__logos img {
  width: 32px; height: 32px; border-radius: 50%; border: 2.5px solid #111; background: #fff; object-fit: cover;
  margin-left: -10px; box-shadow: 0 2px 0 rgba(0,0,0,.18);
}
.st-banner__logos img:first-child { margin-left: 0; }
.st-banner b { font-family: 'Archivo Black', sans-serif; font-size: 16px; letter-spacing: .3px; display: block; color: #111; position: relative; z-index: 1; }
.st-banner small { font-weight: 700; font-size: 11.5px; line-height: 1.4; color: #3d3627; display: block; position: relative; z-index: 1; }
.st-banner__chip {
  flex: 0 0 auto; border: 2.5px solid #111; border-radius: 999px; background: #fffdf5; color: #111;
  font-family: 'Archivo Black', sans-serif; font-size: 9.5px; letter-spacing: .4px; padding: 6px 10px;
  box-shadow: 3px 3px 0 #111; white-space: nowrap;
}
.st-banner__chip.on { background: var(--green, #00c48c); }
.st-banner__go { display: inline-block; margin-top: 8px; font-family: 'Archivo Black', sans-serif; font-size: 10.5px; letter-spacing: .8px; color: #111; position: relative; z-index: 1; }

/* ============================================================
   STORE PAGE
   ============================================================ */
body.stpage { background: var(--bg, #f2ede2); }
.st-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  background: rgba(255, 200, 0, .96); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 3px solid var(--st-ink); padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top, 0px));
}
html.dark .st-top { background: rgba(255, 200, 0, .94); }
.st-top .back {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border: 3px solid #111; border-radius: 12px; background: #fffdf5; color: #111; font-size: 17px; font-weight: 900;
  text-decoration: none; box-shadow: 3px 3px 0 #111; transition: transform .15s var(--st-ease), box-shadow .15s var(--st-ease);
}
.st-top .back:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #111; }
.st-top h1 { font-family: 'Archivo Black', sans-serif; font-size: 17px; letter-spacing: .3px; color: #111; margin: 0; }
.st-top__ver {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; border: 2.5px solid #111; border-radius: 999px;
  background: #111; color: #ffc800; font-family: 'Archivo Black', sans-serif; font-size: 9px; letter-spacing: .5px; padding: 6px 10px;
}
.st-top__ver i { width: 7px; height: 7px; border-radius: 50%; background: var(--green, #00c48c); box-shadow: 0 0 0 3px rgba(0,196,140,.25); }

/* ---- hero ---- */
.st-hero { padding: 18px 14px 6px; animation: st-rise .5s var(--st-ease) both; }
.st-hero__kicker { font-family: 'Archivo Black', sans-serif; font-size: 10px; letter-spacing: 2px; color: var(--st-muted); margin-bottom: 6px; }
.st-hero h2 { font-family: 'Archivo Black', sans-serif; font-size: clamp(24px, 6.4vw, 34px); line-height: 1.02; letter-spacing: -.3px; margin: 0 0 8px; color: var(--st-ink); }
.st-hero h2 em { font-style: normal; background: linear-gradient(transparent 55%, var(--yellow, #ffc800) 55%); padding: 0 2px; }
html.dark .st-hero h2 em { background: linear-gradient(transparent 55%, #7a5f00 55%); }
.st-hero p { font-weight: 600; font-size: 13.5px; line-height: 1.5; color: var(--st-muted); margin: 0; max-width: 560px; }
.st-stats { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.st-stat { border: 2.5px solid var(--st-ink); border-radius: 999px; background: var(--st-paper); padding: 6px 11px; font-family: 'Archivo Black', sans-serif; font-size: 10px; letter-spacing: .3px; color: var(--st-ink); }
.st-stat b { color: var(--blue, #4d7cff); }

/* ---- brand ticker ---- */
.st-ticker { position: relative; overflow: hidden; margin: 14px 0 0; padding: 10px 0; border-top: 2px dashed rgba(17,17,17,.15); border-bottom: 2px dashed rgba(17,17,17,.15); }
html.dark .st-ticker { border-color: rgba(242,234,216,.15); }
.st-ticker::before, .st-ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 44px; z-index: 2; pointer-events: none; }
.st-ticker::before { left: 0; background: linear-gradient(90deg, var(--bg, #f2ede2), transparent); }
.st-ticker::after { right: 0; background: linear-gradient(270deg, var(--bg, #f2ede2), transparent); }
.st-ticker__track { display: flex; gap: 22px; width: max-content; animation: st-marquee 28s linear infinite; }
.st-ticker:hover .st-ticker__track { animation-play-state: paused; }
.st-ticker__item { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12px; color: var(--st-ink); white-space: nowrap; }
.st-ticker__item img { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--st-ink); background: #fff; object-fit: contain; padding: 2px; }

/* ---- founder ribbon ---- */
.st-founder {
  margin: 12px 14px 0; border: 3px solid var(--st-ink); border-radius: 14px; background: #111; color: #ffc800;
  font-family: 'Archivo Black', sans-serif; font-size: 11px; line-height: 1.45; padding: 10px 14px; box-shadow: 5px 5px 0 var(--pink, #ff90e8);
  animation: st-rise .5s var(--st-ease) both;
}

/* ---- unlock panel ---- */
.st-unlock {
  margin: 14px 14px 4px; border: 3px solid var(--st-ink); border-radius: var(--st-r); background: var(--st-paper);
  box-shadow: 7px 7px 0 var(--pink, #ff90e8); padding: 16px; animation: st-rise .55s .05s var(--st-ease) both; position: relative; overflow: hidden;
}
.st-unlock::before { content: "🔓"; position: absolute; right: -6px; top: -14px; font-size: 74px; opacity: .08; transform: rotate(-12deg); }
.st-unlock h2 { font-family: 'Archivo Black', sans-serif; font-size: 17px; margin: 0 0 4px; color: var(--st-ink); }
.st-unlock > p { font-size: 12.5px; font-weight: 600; color: var(--st-muted); margin: 0 0 12px; line-height: 1.5; }
.st-unlock__paths { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 500px) { .st-unlock__paths { grid-template-columns: 1fr; } }
.st-path {
  border: 3px solid var(--st-ink); border-radius: 14px; padding: 13px; background: var(--st-paper); box-shadow: 4px 4px 0 var(--st-ink);
  display: flex; flex-direction: column; transition: transform .18s var(--st-ease), box-shadow .18s var(--st-ease);
}
.st-path:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--st-ink); }
.st-path--gold { background: linear-gradient(160deg, #fff7d1, #ffe98a); }
.st-path--writer { background: linear-gradient(160deg, #e6fff5, #b9f5dd); }
html.dark .st-path--gold { background: linear-gradient(160deg, #3a2f0a, #2a2208); }
html.dark .st-path--writer { background: linear-gradient(160deg, #0d3328, #0a261e); }
.st-path b { font-family: 'Archivo Black', sans-serif; font-size: 12px; display: block; margin-bottom: 5px; color: var(--st-ink); }
.st-path p { font-size: 11.5px; font-weight: 600; color: var(--st-muted); margin: 0 0 10px; line-height: 1.45; flex: 1; }
.st-path button {
  align-self: flex-start; border: 3px solid var(--st-ink); border-radius: 11px; font-family: 'Archivo Black', sans-serif; font-size: 11px;
  padding: 10px 13px; cursor: pointer; color: #111; box-shadow: 3px 3px 0 var(--st-ink); transition: transform .15s var(--st-ease), box-shadow .15s var(--st-ease);
}
.st-path button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--st-ink); }
.st-path--gold button { background: var(--yellow, #ffc800); }
.st-path--writer button { background: var(--green, #00c48c); }
.st-prog { display: block; margin-top: 10px; font-size: 10.5px; font-weight: 800; color: var(--st-ink); }
.st-prog__bar { height: 8px; border: 2px solid var(--st-ink); border-radius: 999px; background: var(--st-paper); overflow: hidden; margin-top: 6px; }
.st-prog__bar i { display: block; height: 100%; width: 0; background: var(--green, #00c48c); transition: width .8s var(--st-ease); }

/* ---- editor's picks rail ---- */
.st-sec { display: flex; align-items: baseline; gap: 8px; padding: 18px 14px 8px; }
.st-sec h3 { font-family: 'Archivo Black', sans-serif; font-size: 13px; letter-spacing: 1.2px; margin: 0; color: var(--st-ink); }
.st-sec span { font-size: 11px; font-weight: 700; color: var(--st-muted); }
.st-rail { display: flex; gap: 12px; overflow-x: auto; padding: 4px 14px 14px; scroll-snap-type: x mandatory; scroll-padding-left: 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.st-rail::-webkit-scrollbar { display: none; }
.st-pick {
  flex: 0 0 min(78vw, 300px); scroll-snap-align: start; position: relative; border: 3px solid var(--st-ink); border-radius: var(--st-r);
  background: var(--st-paper); box-shadow: 6px 6px 0 var(--st-ink); padding: 14px; cursor: pointer; overflow: hidden;
  animation: st-rise .5s var(--st-ease) both; animation-delay: calc(var(--i, 0) * 60ms);
  transition: transform .2s var(--st-ease), box-shadow .2s var(--st-ease);
}
.st-pick:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--st-ink); }
.st-pick:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--st-ink); }
.st-pick__glow { position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--c, #ffc800); opacity: .22; filter: blur(2px); }
.st-pick__row { display: flex; align-items: center; gap: 12px; position: relative; }
.st-pick .st-logo { width: 58px; height: 58px; }
.st-pick__brand { font-family: 'Archivo Black', sans-serif; font-size: 13px; color: var(--st-ink); display: block; }
.st-pick__worth { font-size: 11px; font-weight: 800; color: var(--st-muted); }
.st-pick__val { display: inline-block; margin-top: 12px; border: 2.5px solid #111; border-radius: 10px; background: #111; color: #ffc800; font-family: 'Archivo Black', sans-serif; font-size: 12px; padding: 7px 10px; position: relative; }
.st-pick__t { display: block; margin-top: 9px; font-size: 13px; font-weight: 700; line-height: 1.35; color: var(--st-ink); position: relative; }
.st-pick__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-family: 'Archivo Black', sans-serif; font-size: 10.5px; letter-spacing: .5px; color: var(--blue, #4d7cff); position: relative; }

/* ---- logo tile ---- */
.st-logo {
  flex: 0 0 auto; width: 52px; height: 52px; border: 3px solid var(--st-ink); border-radius: 15px; background: #fff; overflow: hidden;
  display: flex; align-items: center; justify-content: center; box-shadow: 3px 3px 0 var(--st-ink);
}
.st-logo img { width: 100%; height: 100%; object-fit: contain; padding: 7px; display: block; }
.st-logo img.is-full { padding: 0; object-fit: cover; }
.st-logo .st-logo__mono { font-family: 'Archivo Black', sans-serif; font-size: 20px; color: #111; }

/* ---- category chips (sticky) ---- */
.st-cats {
  position: sticky; top: calc(61px + env(safe-area-inset-top, 0px)); z-index: 15; display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px;
  background: linear-gradient(var(--bg, #f2ede2) 75%, transparent); scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.st-cats::-webkit-scrollbar { display: none; }
.st-cat {
  flex: 0 0 auto; border: 2.5px solid var(--st-ink); border-radius: 999px; background: var(--st-paper); color: var(--st-ink);
  font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 12px; padding: 8px 13px; cursor: pointer; box-shadow: 3px 3px 0 var(--st-ink);
  transition: transform .15s var(--st-ease), box-shadow .15s var(--st-ease), background .15s;
}
.st-cat:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--st-ink); }
.st-cat.on { background: var(--st-ink); color: var(--yellow, #ffc800); }
.st-cat small { opacity: .6; font-weight: 700; margin-left: 4px; }

/* ---- grid ---- */
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; padding: 4px 14px 18px; }
@media (min-width: 720px) { .st-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; } }
.st-card {
  position: relative; display: flex; flex-direction: column; border: 3px solid var(--st-ink); border-radius: var(--st-r); background: var(--st-paper);
  box-shadow: 5px 5px 0 var(--st-ink); padding: 13px; cursor: pointer; overflow: hidden;
  animation: st-rise .45s var(--st-ease) both; animation-delay: calc(var(--i, 0) * 40ms);
  transition: transform .2s var(--st-ease), box-shadow .2s var(--st-ease);
}
.st-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--st-ink); }
.st-card:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--st-ink); }
.st-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.st-card__tag { border: 2px solid var(--st-ink); border-radius: 999px; font-family: 'Archivo Black', sans-serif; font-size: 8px; letter-spacing: .6px; padding: 4px 7px; background: var(--st-paper); color: var(--st-ink); white-space: nowrap; }
.st-card__tag--trial { background: var(--green, #00c48c); color: #111; }
.st-card__tag--student { background: var(--blue, #4d7cff); color: #fff; }
.st-card__tag--new { background: var(--pink, #ff90e8); color: #111; }
.st-card__tag--free { background: var(--yellow, #ffc800); color: #111; }
.st-card__brand { display: block; margin-top: 10px; font-family: 'Archivo Black', sans-serif; font-size: 12px; color: var(--st-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-card__val { display: inline-block; align-self: flex-start; margin-top: 6px; border: 2.5px solid var(--st-ink); border-radius: 9px; background: var(--yellow, #ffc800); color: #111; font-family: 'Archivo Black', sans-serif; font-size: 10px; letter-spacing: .2px; padding: 5px 8px; }
.st-card__t { display: block; margin-top: 8px; font-size: 12.5px; line-height: 1.35; font-weight: 700; color: var(--st-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 10px; }
.st-card__worth { font-size: 10.5px; font-weight: 800; color: var(--st-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-card__go { flex: 0 0 auto; width: 26px; height: 26px; border: 2.5px solid var(--st-ink); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px; background: var(--st-paper); color: var(--st-ink); transition: background .15s, color .15s; }
.st-card:hover .st-card__go { background: var(--st-ink); color: var(--yellow, #ffc800); }

/* locked cards — content stays readable enough to tempt, details blurred */
.st-card--lock { cursor: pointer; }
.st-card--lock .st-card__t, .st-card--lock .st-card__val, .st-card--lock .st-card__worth,
.st-pick.st-card--lock .st-pick__t, .st-pick.st-card--lock .st-pick__val, .st-pick.st-card--lock .st-pick__worth { filter: blur(4px); user-select: none; }
.st-pick.st-card--lock .st-pick__cta { visibility: hidden; }
.st-pick.st-card--lock::after { bottom: 16px; }
.st-card--lock .st-logo { filter: grayscale(.6); opacity: .85; }
.st-card--lock::after {
  content: "🔒 UNLOCK"; position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap;
  border: 2.5px solid #111; border-radius: 999px; background: #111; color: #ffc800;
  font-family: 'Archivo Black', sans-serif; font-size: 9.5px; letter-spacing: .6px; padding: 6px 11px; box-shadow: 3px 3px 0 var(--pink, #ff90e8);
}
html.dark .st-card--lock::after { background: #ffc800; color: #111; border-color: #ffc800; box-shadow: 3px 3px 0 #000; }
.st-card--lock .st-card__go { display: none; }

/* empty shelf */
.st-empty { grid-column: 1 / -1; border: 3px dashed var(--st-ink); border-radius: var(--st-r); padding: 26px 14px; text-align: center; font-weight: 700; color: var(--st-muted); }

/* skeleton */
.st-skel { border: 3px solid rgba(17,17,17,.12); border-radius: var(--st-r); height: 190px; background: linear-gradient(90deg, rgba(0,0,0,.04) 25%, rgba(0,0,0,.09) 37%, rgba(0,0,0,.04) 63%); background-size: 400% 100%; animation: st-shimmer 1.4s ease infinite; }

/* fine print */
.st-fine { padding: 6px 14px 30px; font-size: 10.5px; font-weight: 600; color: var(--st-muted); line-height: 1.55; }
.st-fine a { color: inherit; }

/* ============================================================
   REVEAL SHEET (Paytm / Blinkit style)
   ============================================================ */
.st-ovl { position: fixed; inset: 0; z-index: 99980; background: rgba(17,17,17,.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; animation: st-fade .2s ease both; }
.st-ovl.is-closing { animation: st-fade .18s ease reverse both; }
@media (min-width: 720px) { .st-ovl { align-items: center; padding: 20px; } }
.st-modal {
  position: relative; background: var(--st-paper); width: min(560px, 100%); max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column;
  border: 3px solid var(--st-ink); border-radius: 24px 24px 0 0; box-shadow: 0 -10px 0 var(--green, #00c48c);
  animation: st-sheet .38s var(--st-ease) both; overflow: hidden;
}
@media (min-width: 720px) { .st-modal { border-radius: 24px; box-shadow: 10px 10px 0 var(--green, #00c48c); } }
.st-ovl.is-closing .st-modal { animation: st-sheet .2s ease reverse both; }
.st-modal__grab { width: 44px; height: 5px; border-radius: 999px; background: rgba(17,17,17,.25); margin: 10px auto 0; }
html.dark .st-modal__grab { background: rgba(242,234,216,.3); }
.st-modal__head { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px; border-bottom: 3px solid var(--st-ink); background: var(--st-paper); }
.st-modal__head .st-logo { width: 50px; height: 50px; }
.st-modal__head b { font-family: 'Archivo Black', sans-serif; font-size: 15px; display: block; color: var(--st-ink); }
.st-modal__head small { font-weight: 700; font-size: 10.5px; color: var(--st-muted); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.st-modal__head small i { width: 6px; height: 6px; border-radius: 50%; background: var(--green, #00c48c); }
.st-modal__x { margin-left: auto; width: 36px; height: 36px; border: 2.5px solid var(--st-ink); border-radius: 50%; background: var(--st-paper); color: var(--st-ink); font-family: 'Archivo Black', sans-serif; font-size: 13px; cursor: pointer; box-shadow: 2px 2px 0 var(--st-ink); display: inline-flex; align-items: center; justify-content: center; }
.st-modal__body { padding: 14px 14px 18px; overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; }

.st-val { display: inline-block; border: 3px solid var(--st-ink); border-radius: 12px; background: var(--st-ink); color: var(--yellow, #ffc800); font-family: 'Archivo Black', sans-serif; font-size: 16px; padding: 9px 13px; box-shadow: 4px 4px 0 var(--green, #00c48c); margin-bottom: 12px; animation: st-pop .45s var(--st-ease) both; }
.st-modal h2.st-title { font-family: 'Archivo Black', sans-serif; font-size: 17px; line-height: 1.3; margin: 0 0 8px; color: var(--st-ink); }
.st-desc { font-size: 13.5px; font-weight: 600; line-height: 1.6; color: var(--st-ink); opacity: .85; margin: 0 0 12px; }
.st-worth { display: flex; align-items: center; gap: 8px; border: 2.5px dashed var(--st-ink); border-radius: 12px; padding: 9px 12px; margin-bottom: 12px; font-weight: 800; font-size: 12px; color: var(--st-ink); background: rgba(0,196,140,.08); }
.st-worth span { margin-left: auto; font-family: 'Archivo Black', sans-serif; font-size: 11px; color: var(--green, #00b57f); }

.st-codebox { display: flex; align-items: center; gap: 10px; border: 3px dashed var(--st-ink); border-radius: 14px; background: #fff; padding: 12px; margin-bottom: 14px; }
html.dark .st-codebox { background: #17130b; }
.st-codebox code { flex: 1; font-family: 'Archivo Black', sans-serif; font-size: 19px; letter-spacing: 2px; color: var(--st-ink); }
.st-codebox button { border: 3px solid var(--st-ink); border-radius: 10px; background: var(--yellow, #ffc800); color: #111; font-family: 'Archivo Black', sans-serif; font-size: 11px; padding: 9px 12px; cursor: pointer; box-shadow: 3px 3px 0 var(--st-ink); }
.st-nocode { display: flex; align-items: center; gap: 10px; border: 2.5px solid var(--st-ink); border-radius: 12px; background: rgba(77,124,255,.08); padding: 10px 12px; margin-bottom: 14px; font-size: 12px; font-weight: 700; color: var(--st-ink); line-height: 1.4; }
.st-nocode em { font-style: normal; font-family: 'Archivo Black', sans-serif; font-size: 10px; letter-spacing: .5px; color: var(--blue, #4d7cff); }

.st-lbl { font-family: 'Archivo Black', sans-serif; font-size: 10.5px; letter-spacing: 1.2px; margin: 14px 0 8px; color: var(--st-muted); }
.st-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.st-steps li { position: relative; padding: 0 0 12px 36px; font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--st-ink); counter-increment: st; }
.st-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border: 2.5px solid var(--st-ink); border-radius: 50%; background: var(--yellow, #ffc800); color: #111; font-family: 'Archivo Black', sans-serif; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.st-steps li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 26px; bottom: 0; border-left: 2px dashed rgba(17,17,17,.25); }
html.dark .st-steps li:not(:last-child)::after { border-color: rgba(242,234,216,.25); }

.st-tnc-wrap { border: 2.5px solid var(--st-ink); border-radius: 12px; overflow: hidden; }
.st-tnc-wrap summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-family: 'Archivo Black', sans-serif; font-size: 10.5px; letter-spacing: 1px; color: var(--st-ink); background: rgba(17,17,17,.04); }
html.dark .st-tnc-wrap summary { background: rgba(242,234,216,.06); }
.st-tnc-wrap summary::-webkit-details-marker { display: none; }
.st-tnc-wrap summary::after { content: "+"; margin-left: auto; font-size: 16px; }
.st-tnc-wrap[open] summary::after { content: "–"; }
.st-tnc { margin: 0; padding: 10px 12px 12px 28px; font-size: 11.5px; font-weight: 600; color: var(--st-muted); line-height: 1.6; }
.st-disc { margin-top: 12px; font-size: 10px; font-weight: 600; color: var(--st-muted); line-height: 1.55; }

.st-modal__foot { padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 3px solid var(--st-ink); background: var(--st-paper); }
.st-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 3px solid var(--st-ink); border-radius: 14px; background: var(--green, #00c48c); color: #111; font-family: 'Archivo Black', sans-serif; font-size: 13.5px; letter-spacing: .3px; padding: 15px; text-decoration: none; box-shadow: 4px 4px 0 var(--st-ink); transition: transform .15s var(--st-ease), box-shadow .15s var(--st-ease); }
.st-cta:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--st-ink); }
.st-cta img { width: 22px; height: 22px; border-radius: 6px; background: #fff; border: 2px solid #111; object-fit: contain; padding: 1px; }
.st-dead { display: block; text-align: center; margin-top: 9px; font-size: 10.5px; font-weight: 700; color: var(--st-muted); text-decoration: underline; }

/* locked-tap nudge sheet */
.st-nudge { text-align: center; padding: 24px 18px 8px; }
.st-nudge .st-logo { width: 64px; height: 64px; margin: 0 auto 12px; }
.st-nudge h2 { font-family: 'Archivo Black', sans-serif; font-size: 18px; margin: 0 0 6px; color: var(--st-ink); }
.st-nudge p { font-size: 13px; font-weight: 600; color: var(--st-muted); line-height: 1.5; margin: 0 0 14px; }
.st-nudge__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-nudge__btns a { display: block; border: 3px solid var(--st-ink); border-radius: 12px; padding: 12px 10px; text-decoration: none; color: #111; font-family: 'Archivo Black', sans-serif; font-size: 11px; box-shadow: 3px 3px 0 var(--st-ink); }
.st-nudge__btns a:first-child { background: var(--yellow, #ffc800); }
.st-nudge__btns a:last-child { background: var(--green, #00c48c); }

/* toast (shared look with studio) */
.st-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 99999; background: #111; color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px; padding: 12px 18px; border: 3px solid #fff; border-radius: 14px; box-shadow: 5px 5px 0 #ffc800; max-width: 88vw; text-align: center; animation: st-rise .3s var(--st-ease) both; }
html.tsb-hasbar .st-toast { bottom: calc(var(--bar-total, 70px) + 30px); }


/* ---------------------------------------------------------------------
   8 · store: the "fit" system — no logo is ever a smudge again
   --------------------------------------------------------------------- */
.st-logo img.st-fit--wide { padding: 5px 7px; }
.st-logo img.st-fit--mid  { padding: 7px 9px; }
.st-logo--wide img.st-fit--wide { padding: 6px 8px; }
.st-ticker__item img.st-fit--wide { padding: 1px 2px; }
.st-cta img.st-fit--wide { padding: 0 1px; }
.st-logo img.is-full { border-radius: 12px; }
/* a full-bleed artwork inside a white tile would show its own white box —
   give those tiles the artwork's own colour instead of a grey halo */
.st-logo img.is-full { background: transparent; }
