/* ===================================================================
   PWA SPOTLIGHT  (js/pwa-spotlight.js)  — uses the site's theme tokens
   =================================================================== */
.pwa-section, .pwa-band { --pwa-c: var(--accent-lime, #c8f542); }
.pwa-section { position: relative; padding: clamp(48px, 7vw, 96px) 0; }
.pwa-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--pwa-c); font-weight: 700; margin-bottom: 14px; }

/* ── hero ── */
.pwa-hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.pwa-hero h2 { font-family: var(--font-display); font-size: clamp(44px, 7vw, 84px); line-height: .92; letter-spacing: .01em; margin: 0 0 18px; }
.pwa-hero h2 em { font-style: normal; color: var(--pwa-c); }
.pwa-lede { font-size: clamp(15px, 1.8vw, 18px); line-height: 1.75; color: var(--text-dim); max-width: 620px; }
.pwa-lede b { color: var(--text); }

.pwa-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pwa-cta.center { justify-content: center; }
.pwa-cta-lib { display: none; }
html.ls-aa .pwa-cta-join { display: none; }
html.ls-aa .pwa-cta-lib { display: inline-flex; }

/* phone illustration */
.pwa-device { display: grid; place-items: center; }
.pwa-phone { position: relative; width: min(240px, 60vw); aspect-ratio: 9 / 18; border-radius: 34px; padding: 10px; background: linear-gradient(160deg, #2a2a2a, #111); border: 1px solid var(--border-light); box-shadow: 0 30px 70px rgba(0,0,0,.45), 0 0 0 6px rgba(200,245,66,.05); transform: rotate(4deg); }
.pwa-notch { position: absolute; top: 12px; left: 50%; width: 70px; height: 18px; transform: translateX(-50%); background: #000; border-radius: 12px; z-index: 2; }
.pwa-screen { position: relative; height: 100%; border-radius: 26px; overflow: hidden; padding: 44px 14px 14px; background: radial-gradient(120% 80% at 50% 0%, rgba(200,245,66,.22), transparent 60%), #0b0b0b; display: flex; flex-direction: column; gap: 14px; }
.pwa-install { align-self: center; font-family: var(--font-mono); font-size: 10.5px; padding: 6px 12px; border-radius: 999px; background: var(--pwa-c); color: #0a0a0a; font-weight: 700; animation: pwaPulse 2.6s ease-in-out infinite; }
.pwa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 4px; }
.pwa-grid span { aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: linear-gradient(145deg, color-mix(in srgb, var(--c) 55%, #111), color-mix(in srgb, var(--c) 18%, #111)); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.pwa-status { margin-top: auto; align-self: center; font-family: var(--font-mono); font-size: 10.5px; color: #cfcfcf; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); }
@keyframes pwaPulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(200,245,66,.5); } 50% { transform: scale(1.04); box-shadow: 0 0 0 8px rgba(200,245,66,0); } }

/* ── benefits ── */
.pwa-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: clamp(32px, 5vw, 56px); }
.pwa-benefit { padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); transition: border-color .2s, transform .2s; }
.pwa-benefit:hover { border-color: rgba(200,245,66,.45); transform: translateY(-3px); }
.pwa-b-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 22px; background: rgba(200,245,66,.1); border: 1px solid rgba(200,245,66,.25); margin-bottom: 14px; }
.pwa-benefit h4 { font-size: 16px; margin-bottom: 6px; }
.pwa-benefit p { font-size: 13.5px; line-height: 1.65; color: var(--text-dim); }

/* ── live apps ── */
.pwa-live { margin-top: clamp(36px, 5vw, 60px); }
.pwa-live-head, .pwa-road-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.pwa-live-head h3, .pwa-road-head h3, .pwa-final h3 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 46px); line-height: 1; margin: 0; }
.pwa-live-head a { font-family: var(--font-mono); font-size: 12px; color: var(--pwa-c); }
.pwa-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pwa-apps.sm { grid-template-columns: 1fr; gap: 10px; }
.pwa-app { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); transition: border-color .2s, transform .2s, box-shadow .2s; }
.pwa-app:hover { border-color: rgba(200,245,66,.5); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,0,0,.28); }
.pwa-app.sm { padding: 12px; gap: 12px; border-radius: 14px; }
.pwa-app-icon { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: var(--bg-3) center / cover no-repeat; border: 1px solid var(--border-light); }
.pwa-app.sm .pwa-app-icon { width: 46px; height: 46px; border-radius: 12px; font-size: 20px; }
.pwa-app-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pwa-app-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--pwa-c); font-weight: 700; }
.pwa-app-body strong { font-size: 15.5px; line-height: 1.3; }
.pwa-app-desc { font-size: 12.5px; line-height: 1.5; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pwa-app-inc { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.pwa-inc-member { display: none; color: var(--pwa-c); }
html.ls-aa .pwa-inc-guest { display: none; }
html.ls-aa .pwa-inc-member { display: inline; }
.pwa-app.sk .sk, .pwa-app.sk { background: linear-gradient(100deg, var(--bg-3) 30%, var(--bg-2) 50%, var(--bg-3) 70%); background-size: 200% 100%; animation: pwaSk 1.3s linear infinite; border-radius: 12px; }
.pwa-app.sk { min-height: 96px; border-color: transparent; }
@keyframes pwaSk { to { background-position: -200% 0; } }

/* ── roadmap ── */
.pwa-roadmap { margin-top: clamp(44px, 6vw, 72px); padding: clamp(22px, 4vw, 40px); border: 1px solid var(--border); border-radius: 22px; background: radial-gradient(110% 120% at 100% 0%, rgba(200,245,66,.07), transparent 55%), var(--bg-2); scroll-margin-top: 90px; }
.pwa-road-head p { color: var(--text-dim); font-size: 14.5px; line-height: 1.65; max-width: 600px; margin-top: 10px; }
.pwa-road-head p b { color: var(--text); }
.pwa-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.pwa-chip { font-family: var(--font-mono); font-size: 12px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--border-light); background: transparent; color: var(--text-dim); cursor: pointer; transition: all .15s; -webkit-tap-highlight-color: transparent; }
.pwa-chip:hover { color: var(--text); border-color: var(--text-dim); }
.pwa-chip.active { background: var(--pwa-c); border-color: var(--pwa-c); color: #0a0a0a; font-weight: 700; }
.pwa-legend { display: flex; gap: 14px 28px; flex-wrap: wrap; margin: 4px 0 22px; font-size: 12.5px; color: var(--text-dim); }
.pwa-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.pwa-niches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pwa-niche { padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); display: flex; flex-direction: column; gap: 10px; }
.pwa-niche-head { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.pwa-niche-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-size: 18px; background: var(--bg-3); border: 1px solid var(--border-light); }
.pwa-niche-head h4 { font-size: 15px; }
.pwa-item { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; padding: 11px 12px; border-radius: 12px; background: var(--bg-3); border: 1px solid transparent; transition: border-color .15s; }
a.pwa-item:hover { border-color: rgba(200,245,66,.5); }
.pwa-item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pwa-item-text strong { font-size: 13.5px; line-height: 1.35; }
.pwa-item-text small { font-size: 12px; line-height: 1.45; color: var(--text-muted); }
.pwa-st { grid-column: 2; justify-self: start; font-family: var(--font-mono); font-size: 10.5px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border-light); color: var(--text-muted); }
.pwa-st.building { color: var(--pwa-c); border-color: rgba(200,245,66,.4); background: rgba(200,245,66,.08); }
.pwa-st.next { color: var(--accent-amber, #f5a623); border-color: rgba(245,166,35,.4); background: rgba(245,166,35,.08); }
.pwa-st.live { color: #0a0a0a; background: var(--pwa-c); border-color: var(--pwa-c); font-weight: 700; }
.pwa-lvl { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.pwa-lvl.basic { color: #42c8f5; background: rgba(66,200,245,.12); border: 1px solid rgba(66,200,245,.35); }
.pwa-lvl.master { color: #f5a623; background: rgba(245,166,35,.12); border: 1px solid rgba(245,166,35,.35); }
.pwa-notify { margin-top: 20px; font-size: 13px; color: var(--text-dim); }
.pwa-notify a { color: var(--pwa-c); text-decoration: underline; text-underline-offset: 3px; }

.pwa-final { text-align: center; margin-top: clamp(40px, 6vw, 64px); }
.pwa-final h3 { margin-bottom: 4px; }
.pwa-section.mid { padding-top: 56px; padding-bottom: 20px; }
.pwa-section.mid .pwa-hero h2 { font-size: clamp(38px, 5.5vw, 62px); }
.pwa-section.mid > .pwa-cta { margin-top: 28px; }

/* ── compact band (articles / catalog) ── */
.pwa-band { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(20px, 4vw, 40px); align-items: center; padding: clamp(22px, 4vw, 36px); margin: 52px 0; border: 1px solid rgba(200,245,66,.3); border-radius: 20px; background: radial-gradient(120% 140% at 0% 0%, rgba(200,245,66,.1), transparent 60%), var(--bg-2); }
.pwa-band h3 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 40px); line-height: 1.02; margin: 0 0 14px; }
.pwa-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 0; margin: 0 0 14px; }
.pwa-points li { font-size: 12.5px; padding: 6px 12px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--border-light); color: var(--text-dim); }
.pwa-soon { font-size: 13.5px; line-height: 1.65; color: var(--text-dim); max-width: 560px; }
.pwa-soon b { color: var(--text); }
.pwa-soon a { color: var(--pwa-c); white-space: nowrap; }
.pwa-band .pwa-cta { margin-top: 18px; }
.pwa-cta.left { justify-content: flex-start; }

/* ── responsive ── */
@media (max-width: 1000px) {
  .pwa-benefits { grid-template-columns: repeat(2, 1fr); }
  .pwa-apps, .pwa-niches { grid-template-columns: repeat(2, 1fr); }
  .pwa-band { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .pwa-hero { grid-template-columns: 1fr; }
  .pwa-device { order: -1; }
  .pwa-phone { width: 190px; transform: rotate(3deg); }
  .pwa-cta { flex-direction: column; align-items: stretch; }
  .pwa-cta .btn-primary, .pwa-cta .btn-ghost { justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
  .pwa-benefits, .pwa-apps, .pwa-niches { grid-template-columns: 1fr; }
  .pwa-filter { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .pwa-install, .pwa-app.sk { animation: none; } .pwa-benefit, .pwa-app { transition: none; } }

/* catalog page: the band sits under the product grid (also in the flattened tablet/phone layout) */
.catalog-main > .pwa-wrap { padding-top: 8px; }
@media (max-width: 1024px) { .catalog-main > .pwa-wrap { order: 7; padding: 0 24px; } }
@media (max-width: 640px)  { .catalog-main > .pwa-wrap { padding: 0 16px; } }

/* an odd niche left alone in the last row spans the full width (3-column layout only) */
@media (min-width: 1001px) {
  .pwa-niche:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
  .pwa-niche:last-child:nth-child(3n + 1) .pwa-item { display: grid; }
  .pwa-niche:last-child:nth-child(3n + 1) { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .pwa-niche:last-child:nth-child(3n + 1) .pwa-niche-head { grid-column: 1 / -1; }
}
