/* ==========================================================================
   Storm Jam — TV apps site
   Dark storefront, purple calls to action, gold highlight pills.
   Sections: tokens · base · header · buttons · platforms · hero & spotlight ·
   filters · rails & cards · art · home sections · browse · app page ·
   platform page · footer · motion · responsive

   To retune the look, change the tokens below. Nothing else needs to move.
   ========================================================================== */

:root {
  --bg: #020816;
  --bg-2: #07152a;
  --panel: rgba(12, 28, 55, .78);
  --text: #f7fbff;
  --text-2: #dbe8fa;
  --muted: #a9bdd5;
  --line: rgba(183, 217, 255, .16);
  --line-strong: rgba(173, 212, 255, .28);
  --accent: #8e3df6;
  --accent-deep: #6128d9;
  --accent-2: #49b9ff;
  --sky: #83d8ff;
  --gold: #ffd166;
  --ok: #7ee2b0;                                    /* check marks in the promise */
  --shadow: 0 24px 90px rgba(0, 0, 0, .45);
  --radius: 22px;
  --gutter: clamp(1rem, 5vw, 4rem);
  --maxw: 1480px;                                   /* content never runs wider than this */
  --edge: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(circle at 20% 0%, rgba(45, 136, 255, .20), transparent 34rem),
    radial-gradient(circle at 85% 12%, rgba(138, 61, 246, .25), transparent 30rem),
    linear-gradient(180deg, #020816 0%, #030b1b 52%, #041022 100%);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.site-shell { min-height: 100vh; overflow-x: clip; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 800; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { color: var(--sky); font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .8rem; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1; margin: 0 0 1.1rem; letter-spacing: -.04em; font-weight: 800; }
h2, h3 { font-weight: 800; }
.hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.9rem); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.noscript { padding: 3rem var(--edge); line-height: 1.7; }
.noscript a { color: var(--gold); text-decoration: underline; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(2, 8, 22, .84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header-inner { display: flex; align-items: center; gap: 1.25rem; padding: .65rem var(--edge); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; font-size: 1.28rem; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.brand img { width: 46px; height: auto; flex: none; }
.nav { display: flex; gap: clamp(.9rem, 2.2vw, 2.1rem); align-items: center; margin-inline: auto; color: #d7e4f5; font-weight: 700; }
.nav > a, .nav-dd-btn { position: relative; padding: .55rem 0; background: none; border: 0; cursor: pointer; font-weight: 700; color: #d7e4f5; white-space: nowrap; }
.nav > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .1rem; height: 2px; background: linear-gradient(90deg, var(--accent), #ff77d9); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav > a:hover::after, .nav > a.active::after { transform: scaleX(1); }
.nav > a.active, .nav > a:hover, .nav-dd-btn:hover { color: #fff; }
.nav-dd { position: relative; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: .35rem; }
.nav-dd-btn .caret { font-size: .8em; transition: transform .2s; }
.nav-dd.is-open .caret { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute; top: calc(100% + .6rem); left: 50%; transform: translateX(-50%);
  width: min(560px, 92vw); padding: .5rem; display: none; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-strong); border-radius: 16px;
  background: rgba(7, 18, 38, .98); box-shadow: var(--shadow);
}
.nav-dd.is-open .nav-dd-menu { display: grid; }
.nav-dd-menu a { display: grid; grid-template-columns: 1.6rem 1fr auto; align-items: center; gap: .5rem; padding: .55rem .7rem; border-radius: 10px; font-weight: 700; font-size: .95rem; }
.nav-dd-menu a:hover { background: rgba(142, 61, 246, .22); }
.nav-dd-menu small { color: var(--muted); font-weight: 700; }
.nav-dd-menu .dd-all { grid-column: 1 / -1; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: .3rem; padding-top: .8rem; color: var(--gold); }
.mobile-menu { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255, 255, 255, .04); cursor: pointer; align-content: center; }
.mobile-menu span { display: block; width: 18px; height: 2px; margin: 2px auto; border-radius: 2px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.mobile-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons & pills ---------- */
.header-cta, .primary-btn, .secondary-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.15rem; border-radius: 12px;
  font-weight: 800; white-space: nowrap; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.header-cta { min-height: 42px; padding: .55rem 1rem; font-size: .95rem; }
.header-cta, .primary-btn { background: linear-gradient(135deg, #9747ff, var(--accent-deep)); color: #fff; border: 0; box-shadow: 0 14px 34px rgba(103, 44, 220, .38); }
.header-cta:hover, .primary-btn:hover { transform: translateY(-1px); box-shadow: 0 18px 40px rgba(103, 44, 220, .5); }
.secondary-btn { border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .06); color: #eef6ff; }
.secondary-btn:hover { background: rgba(255, 255, 255, .12); }
.pill { display: inline-flex; align-items: center; width: max-content; max-width: 100%; border-radius: 999px; padding: .38rem .7rem; background: rgba(142, 61, 246, .84); color: #fff; text-transform: uppercase; font-size: .74rem; font-weight: 800; letter-spacing: .07em; }
.feature-tags { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.2rem 0 0; }
.feature-tags span, .meta-pill {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  padding: .42rem .72rem; font-weight: 800; letter-spacing: .02em; color: var(--gold);
  background: linear-gradient(180deg, rgba(255, 209, 102, .22), rgba(255, 209, 102, .14));
  border: 1px solid rgba(255, 209, 102, .38);
}
.meta-pill { padding: .28rem .55rem; font-size: .74rem; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-block; }

/* ---------- platforms: tile, chips, picker, switch ---------- */
/* --pc is the platform's accent color, set from data/apps.js */
.plat-mark { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 7px; background: var(--pc, var(--accent)); color: #fff; font-weight: 800; font-size: .85rem; line-height: 1; }
.plat-chips { position: absolute; left: .5rem; bottom: .5rem; z-index: 2; display: flex; flex-wrap: wrap; gap: .3rem; max-width: calc(100% - 1rem); pointer-events: none; }
.plat-chip { display: inline-flex; align-items: center; gap: .32rem; padding: .2rem .48rem; border-radius: 7px; background: rgba(2, 8, 22, .8); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.plat-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pc, var(--accent)); }
.spot-plats { margin: .9rem 0 0; }
.spot-plats .plat-chips { position: static; max-width: none; }
.spot-plats .plat-chip { font-size: .74rem; padding: .26rem .55rem; background: rgba(255, 255, 255, .06); }

.picker-label { margin: 0 0 .6rem; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.plat-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .7rem; max-width: 720px; }
.plat-picker.is-single { max-width: 300px; }
.plat-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .1rem .75rem;
  padding: .85rem .95rem; border-radius: 16px; border: 1px solid var(--line-strong);
  background: rgba(7, 18, 35, .64); transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.plat-card:hover { transform: translateY(-2px); border-color: var(--pc); background: rgba(14, 30, 58, .85); }
.plat-card .plat-mark { grid-row: span 2; width: 40px; height: 40px; border-radius: 11px; font-size: 1.15rem; }
.plat-card-name strong { display: block; font-size: 1.02rem; line-height: 1.2; }
.plat-card-name small { color: var(--muted); font-size: .8rem; font-weight: 600; }
.plat-card-count { grid-column: 2; color: var(--text-2); font-size: .82rem; font-weight: 600; }
.plat-card-count b { color: var(--gold); font-weight: 800; }

.seg { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .28rem; max-width: 100%; border: 1px solid var(--line); border-radius: 14px; background: rgba(7, 18, 35, .62); }
.seg-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .45rem .85rem; border: 0; border-radius: 10px; background: none; color: #dbe8fa; font-weight: 700; white-space: nowrap; cursor: pointer; }
.seg-btn small { color: var(--muted); font-size: .76rem; font-weight: 800; }
.seg-btn .plat-mark { width: 20px; height: 20px; border-radius: 5px; font-size: .7rem; }
.seg-btn:hover { background: rgba(255, 255, 255, .08); }
.seg-btn[aria-pressed="true"], .seg-btn[aria-current="true"], .seg-btn[aria-selected="true"] { background: linear-gradient(135deg, #9747ff, var(--accent-deep)); color: #fff; }
.seg-btn[aria-pressed="true"] small, .seg-btn[aria-current="true"] small { color: rgba(255, 255, 255, .82); }
.seg-btn[aria-pressed="true"] .plat-mark { background: #fff; color: var(--pc, var(--accent)); }
.hero .seg { margin-top: 1.4rem; }

/* ---------- hero + spotlight (home and platform pages) ---------- */
.hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr); align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2.5rem, 5vw, 4.2rem) var(--edge) 3rem;
}
.hero-bg, .page-hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(2, 8, 22, .95), rgba(2, 8, 22, .62) 55%, rgba(2, 8, 22, .85)), url('../assets/site/hero-bg.jpg') center/cover no-repeat;
}
.hero-bg::after, .page-hero-bg::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(transparent, var(--bg)); }
.hero-lede { color: #ecf6ff; font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.55; max-width: 620px; margin: 0 0 1.8rem; }
.hero-actions, .detail-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
.hero-copy .hero-actions { margin: 0; }

.spotlight { position: relative; min-width: 0; }
.spot-slides { display: grid; }
.featured-card {
  grid-area: 1 / 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(8, 24, 52, .9), rgba(13, 30, 63, .74));
  box-shadow: var(--shadow); backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .55s ease, transform .55s ease, visibility .55s;
}
.featured-card.is-active { opacity: 1; visibility: visible; transform: none; }
.spot-art { display: block; padding: 1rem; }
.spot-art .art { border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }
.featured-details { padding: 1.2rem 1.4rem 1.2rem .4rem; min-width: 0; }
.featured-details h2 { font-size: clamp(1.45rem, 2.1vw, 2.1rem); line-height: 1.06; margin: .8rem 0 .6rem; letter-spacing: -.02em; }
.featured-details p { color: var(--text-2); line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.featured-details .hero-actions { margin-top: 1.1rem; }
.featured-details .primary-btn, .featured-details .secondary-btn { min-height: 44px; padding: .65rem .95rem; font-size: .95rem; }
.spot-controls { display: flex; justify-content: center; align-items: center; gap: .6rem; margin-top: 1rem; }
.spot-dots { display: flex; gap: .5rem; }
.spot-dot { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: rgba(215, 228, 245, .35); cursor: pointer; transition: width .25s, background .25s; }
.spot-dot[aria-selected="true"] { width: 28px; background: var(--accent); }
.spot-arrow { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); cursor: pointer; display: grid; place-items: center; font-size: 1.1rem; }
.spot-arrow:hover { background: rgba(142, 61, 246, .35); }

/* ---------- category chips + search ---------- */
.quick-filters {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
  padding: 1rem var(--edge); background: rgba(1, 5, 15, .45); border-block: 1px solid var(--line);
}
.chips { display: flex; flex-wrap: wrap; gap: .55rem; padding: .15rem; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: .55rem .9rem; min-height: 40px;
  color: #eaf4ff; background: rgba(255, 255, 255, .045); font-weight: 700; font-size: .95rem;
}
.chip small { color: var(--muted); font-weight: 800; font-size: .78rem; }
.chip:hover { background: rgba(142, 61, 246, .3); }
.chip[aria-pressed="true"] { background: linear-gradient(135deg, #9747ff, var(--accent-deep)); border-color: transparent; color: #fff; }
.chip[aria-pressed="true"] small { color: rgba(255, 255, 255, .8); }
.search-form, .search-field { position: relative; display: flex; align-items: center; flex: 0 0 auto; }
.search-form input, .search-field input {
  width: 260px; min-height: 44px; padding: .6rem 1rem .6rem 2.5rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .06); color: #fff;
}
.search-field input { width: 100%; }
.search-form input::placeholder, .search-field input::placeholder { color: #93a8c2; }
.search-form::before, .search-field::before { content: ""; position: absolute; left: 1rem; width: 14px; height: 14px; border: 2px solid #a9bdd5; border-radius: 50%; box-shadow: 6px 6px 0 -4px #a9bdd5; pointer-events: none; }

/* ---------- catalog rails ---------- */
.app-catalog { padding: clamp(2rem, 4vw, 3.2rem) var(--edge) 1rem; }
.section-intro { max-width: 860px; margin-bottom: 1.8rem; }
.section-intro h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.08; margin: 0; letter-spacing: -.035em; text-wrap: balance; }
.section-intro.compact h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.app-section { margin: 0 0 2.2rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: .85rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin: 0; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; letter-spacing: -.015em; line-height: 1.15; }
.section-head h2 > span { flex: 0 1 auto; min-width: 0; }
.section-head > a { color: #d7e4f5; font-size: .92rem; font-weight: 800; white-space: nowrap; }
.section-head > a:hover { color: var(--gold); }
.season-tag { font-style: normal; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: #0b1020; background: var(--gold); padding: .25rem .55rem; border-radius: 999px; font-weight: 800; }
.rail-wrap { position: relative; }
.rail {
  --per: 6; --gap: .95rem;
  display: grid; grid-auto-flow: column; gap: var(--gap);
  grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: .2rem .15rem 1rem; scrollbar-width: thin; scrollbar-color: rgba(142, 61, 246, .5) transparent;
}
.rail-btn {
  position: absolute; top: calc(50% - 1.6rem); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: rgba(5, 14, 32, .88); color: #fff; font-size: 1.5rem; line-height: 1;
  cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: opacity .2s, background .2s;
}
.rail-btn:hover { background: var(--accent); }
.rail-btn.prev { left: -18px; }
.rail-btn.next { right: -18px; }

.app-card {
  position: relative; scroll-snap-align: start; min-width: 0;
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.app-card:hover, .app-card:focus-within { transform: translateY(-4px); border-color: rgba(142, 61, 246, .6); background: linear-gradient(180deg, rgba(142, 61, 246, .16), rgba(255, 255, 255, .035)); }
.app-card-media { position: relative; }
.app-body { padding: .8rem .85rem .9rem; display: flex; flex: 1; flex-direction: column; gap: .4rem; }
.app-body h3 { margin: 0; font-size: 1rem; line-height: 1.2; font-weight: 700; }
.app-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.app-body h3 a:focus-visible { outline: none; }
.app-card:has(h3 a:focus-visible) { outline: 3px solid var(--sky); outline-offset: 2px; }
.app-body p { color: var(--muted); font-size: .86rem; line-height: 1.38; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.app-meta { margin-top: auto; padding-top: .35rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem .5rem; color: #bcd0e7; font-size: .78rem; }
.app-meta small { text-align: right; font-size: inherit; }
.app-meta s, .store-btn s, .detail-stats s { color: var(--muted); font-weight: 600; }
.sale-price { color: var(--gold); font-weight: 800; }
.price-on { color: var(--muted); font-weight: 600; }
.new-tag { position: absolute; top: .6rem; right: .6rem; z-index: 2; padding: .25rem .5rem; border-radius: 8px; background: var(--gold); color: #1a1200; font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.soon-tag { background: #9db4d4; color: #0b1730; }
.sale-tag { background: #ff5d7a; color: #fff; }

/* ---------- app art (image, or drawn title card when no image) ---------- */
.art { position: relative; aspect-ratio: var(--tile-ratio, 16 / 9); overflow: hidden; background: linear-gradient(135deg, #0d1d3a, #07122a); container-type: inline-size; }
.art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art.has-img .art-ph { visibility: hidden; }
.art--natural.has-img { aspect-ratio: auto; }
.art--natural.has-img > img { position: relative; height: auto; }
.art-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 6.5cqi 7cqi;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, .28), transparent 42%),
    radial-gradient(circle at 10% 110%, rgba(0, 0, 0, .45), transparent 55%),
    linear-gradient(135deg, var(--c1), var(--c2));
}
.art-ph::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 14px); }
.art-ph-title {
  position: relative; max-width: 78%; color: #fff; font-weight: 900; text-transform: uppercase;
  font-size: clamp(11px, 8.4cqi, 46px); line-height: .98; letter-spacing: -.01em;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .45);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.art-ph-foot { position: relative; display: flex; align-items: flex-end; justify-content: space-between; }
.art-ph-brand { font-size: clamp(7px, 3.4cqi, 15px); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.art-ph-icon { font-size: clamp(18px, 17cqi, 96px); line-height: 1; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .45)); }
/* the platform chips sit where the brand line is on a drawn card, so tuck that away */
.app-card-media:has(.plat-chips) .art-ph-brand { visibility: hidden; }

/* ---------- home: category tiles, more from Storm Jam, about, benefits ---------- */
.cat-section, .more-section { padding: 1.2rem var(--edge) 2.6rem; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.cat-tile {
  display: grid; align-content: start; gap: .15rem; padding: 1rem 1rem 1.05rem; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(135deg, #16284a, #07122a);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 42%, #07122a), color-mix(in srgb, var(--c2) 46%, #050d1f));
  transition: transform .18s ease, border-color .18s ease;
}
.cat-tile:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .38); }
.cat-icon { font-size: 1.7rem; line-height: 1; margin-bottom: .5rem; }
.cat-tile strong { font-size: 1rem; line-height: 1.2; }
.cat-tile small { color: rgba(255, 255, 255, .74); font-size: .8rem; font-weight: 600; }

.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.more-grid.is-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }   /* four cards: one even row */
.more-grid.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }    /* two cards: side by side */
@media (min-width: 621px) {   /* two wide cards: picture beside the text, so it isn't cropped or stretched */
  .more-grid.is-two .more-card { flex-direction: row; align-items: stretch; }
  .more-grid.is-two .more-media { flex: 0 0 42%; aspect-ratio: 4 / 3; position: relative; padding: 0; }
  .more-grid.is-two .more-media img { position: absolute; inset: 0; }
  .more-grid.is-two .more-media.is-contain img { inset: 1.1rem; width: calc(100% - 2.2rem); height: calc(100% - 2.2rem); }
  .more-grid.is-two .more-body { align-self: center; }
}
.more-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); transition: transform .18s ease, border-color .18s ease; }
.more-card:hover { transform: translateY(-3px); border-color: rgba(255, 209, 102, .55); }
.more-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(circle at 50% 35%, #1c2d5c, #0a1330 75%); }
.more-media img { width: 100%; height: 100%; object-fit: cover; }
.more-media.is-contain { padding: 7%; }
.more-media.is-contain img { object-fit: contain; }
.more-media { display: grid; place-items: center; }
.more-icon { font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .45)); }
.more-body { display: grid; align-content: start; gap: .35rem; flex: 1; padding: 1rem 1.1rem 1.15rem; }
.more-body strong { font-size: 1.08rem; }
.more-body > span { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.more-body em { font-style: normal; color: var(--gold); font-weight: 800; font-size: .88rem; margin-top: .4rem; }

.about-band { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(1rem, 3vw, 2.4rem); margin: 0 var(--edge) 2rem; padding: clamp(1.3rem, 3vw, 2.2rem); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(7, 18, 35, .55); }
.about-band img { width: clamp(64px, 9vw, 108px); height: auto; }
.about-band h2 { margin: 0 0 .6rem; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.02em; line-height: 1.1; }
.about-band p:not(.eyebrow) { margin: 0; color: var(--text-2); line-height: 1.65; max-width: 78ch; }

.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  margin: 0 var(--edge) 3rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius);
  border: 1px solid rgba(142, 61, 246, .4); box-shadow: var(--shadow);
  background: radial-gradient(circle at 0 40%, rgba(112, 72, 255, .38), transparent 24rem), linear-gradient(135deg, rgba(35, 16, 75, .9), rgba(8, 21, 51, .88));
}
.cta-band h2 { margin: .75rem 0 0; font-size: clamp(1.5rem, 2.8vw, 2.4rem); line-height: 1.12; max-width: 900px; letter-spacing: -.02em; text-wrap: balance; }
.cta-band .hero-actions { margin: 0; flex: 0 0 auto; }

/* ---------- the Storm Jam promise ---------- */
.ico { width: 1em; height: 1em; flex: none; }
.text-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--gold); font-weight: 800; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.promise-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin: 0; padding: 0; }
.promise-chips li { display: inline-flex; align-items: center; gap: .35rem; color: var(--text-2); font-weight: 700; font-size: .92rem; white-space: nowrap; }
.promise-chips .ico { width: 1.15em; height: 1.15em; color: var(--ok); stroke-width: 2.6; }
.promise-chips.in-hero { margin: -.6rem 0 1.8rem; }
/* home hero: one line when there's room, otherwise a tidy two-by-two */
.hero-copy { container-type: inline-size; min-width: 0; }
.hero-copy .promise-chips { display: grid; grid-template-columns: repeat(2, max-content); }
@container (min-width: 680px) { .hero-copy .promise-chips { display: flex; } }
.page-hero .promise-chips.in-hero { margin: 1.3rem 0 0; }
.promise-chips.in-detail { margin: 1rem 0 0; gap: .4rem 1rem; }
.promise-chips.in-detail li { font-size: .88rem; }
.promise-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: var(--sky); background: rgba(131, 216, 255, .1); border: 1px solid rgba(131, 216, 255, .26); }
.promise-ico .ico { width: 26px; height: 26px; }
.promise-ico.is-big { width: 64px; height: 64px; border-radius: 18px; color: var(--ok); background: rgba(126, 226, 176, .1); border-color: rgba(126, 226, 176, .3); }
.promise-ico.is-big .ico { width: 32px; height: 32px; }
.promise {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  margin: .5rem var(--edge) 3rem; padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  background: radial-gradient(circle at 0 0, rgba(73, 185, 255, .16), transparent 26rem), radial-gradient(circle at 100% 100%, rgba(142, 61, 246, .2), transparent 28rem), linear-gradient(135deg, rgba(10, 26, 54, .92), rgba(7, 16, 36, .92));
}
.promise-copy h2 { margin: 0 0 1rem; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.promise-lede { margin: 0 0 1rem; color: var(--text-2); font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; max-width: 56ch; }
.promise-closing { margin: 0; color: var(--text); font-weight: 700; line-height: 1.55; max-width: 52ch; }
.promise-copy .hero-actions { align-items: center; gap: .6rem 1.4rem; margin-top: 1.6rem; }
.promise-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.promise-grid > .promise-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.promise-card { display: grid; align-content: start; padding: 1.3rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(2, 8, 22, .45); }
.promise-card .promise-ico { margin-bottom: 1rem; }
.promise-card h3 { margin: 0 0 .4rem; font-size: 1.12rem; }
.promise-card p { margin: 0; color: var(--muted); line-height: 1.5; font-size: .95rem; }
.promise-strip { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin: 0 var(--edge) 3rem; padding: 1.1rem 1.4rem; border: 1px solid var(--line-strong); border-radius: 18px; background: rgba(7, 18, 35, .6); }
.promise-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: .8rem 1.8rem; margin: 0; padding: 0; }
.promise-strip li { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; }
.promise-strip .promise-ico { width: 38px; height: 38px; border-radius: 11px; }
.promise-strip .promise-ico .ico { width: 20px; height: 20px; }
.promise-strip > a { color: var(--gold); font-weight: 800; white-space: nowrap; }
.privacy-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.4rem; margin: 0 var(--edge) 3rem; padding: clamp(1.4rem, 3.5vw, 2.4rem); border: 1px solid rgba(126, 226, 176, .28); border-radius: var(--radius); background: radial-gradient(circle at 0 0, rgba(126, 226, 176, .09), transparent 24rem), rgba(7, 18, 35, .62); }
.privacy-panel h2 { margin: 0 0 .5rem; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.025em; }
.privacy-panel > div > p { margin: 0; color: var(--text-2); line-height: 1.6; }
.check-list { list-style: none; display: grid; gap: .7rem; margin: 1.1rem 0 1.3rem; padding: 0; max-width: 78ch; }
.check-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem; line-height: 1.5; color: var(--text); }
.check-list .ico { width: 1.25em; height: 1.25em; margin-top: .1em; color: var(--ok); stroke-width: 2.6; }
.privacy-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.4rem; color: var(--muted) !important; font-size: .95rem; }
.privacy-links a { color: var(--gold); font-weight: 800; }
.faq { display: grid; gap: .7rem; max-width: 900px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: rgba(7, 18, 35, .55); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; font-weight: 800; font-size: 1.05rem; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--sky); font-weight: 700; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0; padding: 0 1.2rem 1.15rem; color: var(--text-2); line-height: 1.6; max-width: 75ch; }
.faq-item a { color: var(--gold); font-weight: 700; }
.about-more { margin: 1rem 0 0 !important; }
.app-catalog--more { padding-top: 0; }
.page-hero--about { padding-bottom: 2.6rem; }
.page-hero--about h1 { max-width: 20ch; text-wrap: balance; }

/* ---------- inner page hero (All Apps) ---------- */
.page-hero { position: relative; isolation: isolate; padding: 2rem var(--edge) 2.2rem; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin-bottom: .7rem; }
.page-hero h1 > span[aria-hidden] { margin-right: .6rem; }
.title-on { color: var(--sky); white-space: nowrap; }
.page-lede { color: var(--text-2); font-size: clamp(1rem, 1.8vw, 1.2rem); line-height: 1.55; max-width: 760px; margin: 0; }
.breadcrumbs { position: relative; color: #c8d8eb; font-size: .92rem; margin-bottom: 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumbs a { color: #f1f8ff; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span[aria-hidden] { color: var(--muted); }

/* ---------- browse ---------- */
.browse { padding: 0 var(--edge) 3rem; }
.browse-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.sort-field { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-weight: 700; }
.sort-field select { min-height: 44px; padding: .5rem 2.2rem .5rem .9rem; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(8, 20, 42, .95); color: #fff; font-weight: 700; }
.browse .seg { margin-bottom: .9rem; }
.browse .chips { flex-wrap: wrap; overflow: visible; margin-bottom: 1.2rem; }
.result-count { color: var(--muted); margin: 0 0 1rem; font-weight: 600; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 1.1rem; }
.empty-state { text-align: center; padding: 3rem 1rem; border: 1px dashed var(--line-strong); border-radius: 20px; color: var(--text-2); }
.empty-state h2 { margin: 0 0 .5rem; }
.soon-tile { display: grid; align-content: center; gap: .4rem; min-height: 200px; padding: 1.2rem; border: 1px dashed var(--line-strong); border-radius: 18px; color: var(--text-2); }
.soon-tile strong { font-size: 1.05rem; line-height: 1.25; }
.soon-tile span { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.empty-state p { color: var(--muted); margin: 0 0 1.2rem; }

/* ---------- app page ---------- */
.detail-hero { position: relative; isolation: isolate; padding: 1.8rem var(--edge) 3rem; overflow: hidden; }
.detail-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.detail-hero-bg::before { content: ""; position: absolute; inset: -60px; background: var(--hero-img, url('../assets/site/hero-bg.jpg')) center/cover no-repeat; filter: blur(48px) saturate(1.25); opacity: .5; }
.detail-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 8, 22, .92), rgba(2, 8, 22, .72) 55%, rgba(2, 8, 22, .88)), linear-gradient(transparent 70%, var(--bg)); }
.detail-grid { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.2rem); align-items: center; }
.detail-visual .art { border-radius: 24px; border: 1px solid rgba(183, 217, 255, .22); box-shadow: var(--shadow); }
.detail-content h1 { margin: .8rem 0 1rem; font-size: clamp(2.2rem, 4.4vw, 4rem); text-wrap: balance; }
.detail-lede { color: #e5eef9; font-size: clamp(1.05rem, 1.8vw, 1.22rem); line-height: 1.6; max-width: 760px; margin: 0; }
.detail-content { container-type: inline-size; min-width: 0; }

/* where to get it: one button per store */
.store-list { display: grid; gap: .6rem; max-width: 600px; margin: 1.4rem 0 0; }
.store-btn {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: .8rem;
  min-height: 62px; padding: .65rem 1rem; border-radius: 14px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .06); color: #fff;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.store-btn .plat-mark { width: 36px; height: 36px; border-radius: 10px; font-size: 1.05rem; }
.store-txt small { display: block; color: var(--muted); font-size: .76rem; font-weight: 600; }
.store-txt strong { font-size: 1.02rem; line-height: 1.25; }
.store-txt i { font-style: normal; font-weight: 600; font-size: .86rem; color: var(--text-2); margin-left: .3rem; white-space: nowrap; }
.store-btn em { font-style: normal; font-weight: 800; color: var(--gold); white-space: nowrap; }
.store-go { font-size: 1.1rem; }
a.store-btn:hover { transform: translateY(-1px); border-color: var(--pc); background: rgba(255, 255, 255, .11); }
.store-btn.is-primary { border-color: transparent; background: linear-gradient(135deg, #9747ff, var(--accent-deep)); box-shadow: 0 14px 34px rgba(103, 44, 220, .38); }
.store-btn.is-primary:hover { border-color: transparent; background: linear-gradient(135deg, #a55cff, #6b31e6); box-shadow: 0 18px 40px rgba(103, 44, 220, .5); }
.store-btn.is-primary .plat-mark { background: #fff; color: var(--pc, var(--accent)); }
.store-btn.is-primary .store-txt small, .store-btn.is-primary .store-txt i { color: rgba(255, 255, 255, .84); }
.store-btn.is-primary em { color: #fff; }
.store-btn.is-primary s { color: rgba(255, 255, 255, .7); }
.store-btn.is-soon { grid-template-columns: auto minmax(0, 1fr); background: rgba(255, 255, 255, .03); border-style: dashed; color: #cfe0f5; }
.store-btn.is-soon .plat-mark { opacity: .7; }
.sticky-cta { display: none; }

.detail-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 1.5rem 0 0; }
.detail-stats.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@container (min-width: 640px) { .detail-stats.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .detail-stats.n5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.detail-stats dd { overflow-wrap: break-word; }
.detail-stats div, .glass-panel { border: 1px solid var(--line); background: rgba(7, 18, 35, .58); border-radius: 18px; padding: 1rem; backdrop-filter: blur(12px); }
.detail-stats dt, .quick-specs dt { color: var(--muted); font-size: .82rem; margin-bottom: .28rem; }
.detail-stats dd, .quick-specs dd { margin: 0; color: #fff; font-weight: 700; }
.detail-stats dd small { color: var(--muted); font-weight: 600; font-size: .82em; }
.detail-stats dd a, .quick-specs dd a { color: var(--gold); }
.detail-section { padding: 0 var(--edge) 3rem; }
.overview-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1rem; }
.glass-panel { padding: 1.4rem; }
.glass-panel h2 { margin: 0 0 .8rem; font-size: 1.3rem; }
.glass-panel p { color: #d3e0ef; line-height: 1.65; margin: 0; }
.detail-list { margin: 1rem 0 0; padding-left: 1.2rem; color: #dce8f5; }
.detail-list li { margin: .45rem 0; }
.detail-list li::marker { color: var(--gold); }
.quick-specs { display: grid; gap: .9rem; margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 1rem; }
.feature-panel { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)); border-radius: 20px; padding: 1.2rem; }
.feature-panel .num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 209, 102, .16); border: 1px solid rgba(255, 209, 102, .4); color: var(--gold); font-weight: 800; margin-bottom: .9rem; }
.feature-panel h3 { margin: 0 0 .45rem; font-size: 1.08rem; }
.feature-panel p { color: var(--muted); line-height: 1.5; margin: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(var(--gcols, 3), minmax(0, 1fr)); gap: 1rem; }
.gallery-card { position: relative; margin: 0; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); border-radius: 20px; overflow: hidden; }
.gallery-card a { display: block; }
.gallery-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s ease; }
.gallery-card:hover img { transform: scale(1.03); }
.gallery-card figcaption { padding: .9rem 1rem 1rem; color: #d7e4f5; font-size: .92rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
.steps li { position: relative; padding: 1.3rem 1.3rem 1.3rem 4.4rem; border: 1px solid var(--line); border-radius: 20px; background: rgba(7, 18, 35, .5); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 1.2rem; top: 1.2rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #9747ff, var(--accent-deep)); font-weight: 800; }
.steps strong { display: block; margin-bottom: .3rem; }
.steps span { color: var(--muted); line-height: 1.5; }
.not-found { padding: 5rem var(--edge); text-align: center; }
.not-found p:not(.eyebrow) { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 60; transform: translate(-50%, 1rem); opacity: 0; padding: .8rem 1.1rem; border-radius: 12px; background: #111c33; border: 1px solid var(--line-strong); font-weight: 700; transition: opacity .25s, transform .25s; pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- platform page: devices, other platforms ---------- */
.app-catalog + .detail-section { padding-top: 1.6rem; }
.device-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1rem; }
.device-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; padding: 1.25rem; border: 1px solid var(--line); border-left: 3px solid var(--pc, var(--accent)); border-radius: 18px; background: rgba(7, 18, 35, .5); }
.device-card .plat-mark { width: 42px; height: 42px; border-radius: 12px; font-size: 1.15rem; }
.device-card h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.device-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.device-card .device-links { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; margin-top: .75rem; }
.device-links a { color: var(--gold); font-weight: 800; font-size: .9rem; }
.cross-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin: 0 var(--edge) 2.5rem; }
.cross-card { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; border: 1px solid var(--line-strong); border-radius: 18px; background: rgba(7, 18, 35, .6); font-size: 1.2rem; transition: border-color .15s ease, transform .15s ease; }
.cross-card:hover { border-color: var(--pc, var(--accent)); transform: translateY(-2px); }
.cross-card > span:nth-of-type(2) { flex: 1; min-width: 0; }
.cross-card small { display: block; color: var(--muted); font-size: .78rem; font-weight: 700; }
.cross-card strong { font-size: 1.08rem; }
.cross-card .plat-mark { width: 40px; height: 40px; border-radius: 11px; font-size: 1.1rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: #d6e4f5; }
.footer-inner { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 2rem; padding: 2.6rem var(--edge) 1.4rem; }
.footer-brand .brand { margin-bottom: .9rem; }
.footer-brand p { margin: 0; color: var(--muted); max-width: 400px; line-height: 1.55; }
.site-footer nav { display: grid; gap: .5rem; align-content: start; font-weight: 600; font-size: .95rem; }
.site-footer nav h2 { margin: 0 0 .3rem; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.site-footer nav a:hover { color: var(--gold); }
.copyright { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: .6rem 2rem; flex-wrap: wrap; margin: 1rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.legal-note { font-size: .78rem; max-width: 70ch; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) { .rail { --per: 5; } }
@media (max-width: 1120px) {
  .promise { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .spotlight { max-width: 760px; }
  .rail { --per: 4; }
  .detail-grid, .overview-grid { grid-template-columns: 1fr; }
  .detail-visual { max-width: 720px; }
  .feature-grid { --cols: 2 !important; }
  .footer-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .more-grid, .more-grid.is-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: .5rem 1rem; }
  .mobile-menu { display: grid; margin-left: auto; }
  .nav { order: 10; width: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: .2rem 0 .8rem; max-height: calc(100vh - 76px); overflow-y: auto; }
  .nav.is-open { display: flex; }
  .nav > a, .nav-dd-btn { display: flex; justify-content: space-between; width: 100%; padding: .95rem .15rem; border-bottom: 1px solid var(--line); text-align: left; font-size: 1.05rem; }
  .nav > a::after { display: none; }
  .nav > a.active { color: var(--gold); }
  .nav-dd-menu { position: static; transform: none; width: auto; box-shadow: none; margin: .5rem 0; }
  .nav-dd-menu a { grid-template-columns: 1.5rem minmax(0, 1fr); padding: .6rem .5rem; line-height: 1.25; }
  .nav-dd-menu a small { display: none; }
  .nav-dd-menu .dd-all { grid-template-columns: 1.5rem minmax(0, 1fr) auto; }
  .nav-dd-menu .dd-all small { display: inline; }
  .header-cta { display: none; }
  .brand { font-size: 1.15rem; }
  .brand img { width: 40px; }
  .quick-filters { flex-direction: column; align-items: stretch; }
  .search-form input { width: 100%; }
  .quick-filters .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--edge) * -1); padding-inline: var(--edge); }
  .search-form { width: 100%; }
  .rail { --per: 2.3; }
  .rail-btn { display: none; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  /* phones: keep the store button in reach while reading an app page */
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom, 0px));
    background: rgba(2, 8, 22, .94); border-top: 1px solid var(--line-strong);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .sticky-cta.is-on { transform: none; }
  .site-shell:has(.sticky-cta) .site-footer { padding-bottom: 76px; }
  .sticky-cta .store-btn { min-height: 54px; max-width: 600px; margin: 0 auto; }
}
@media (max-width: 620px) {
  .hero { padding-top: 2rem; }
  .plat-picker { grid-template-columns: 1fr; }
  .plat-card { grid-template-columns: auto minmax(0, 1fr) auto; }
  .plat-card .plat-mark { grid-row: auto; }
  .plat-card-count { grid-column: auto; text-align: right; }
  .featured-card { grid-template-columns: 1fr; }
  .spot-art { padding: .9rem .9rem 0; }
  .featured-details { padding: 1rem 1.1rem 1.2rem; }
  .hero-actions, .detail-actions { flex-direction: column; align-items: stretch; }
  .detail-actions { flex-direction: row; }
  .detail-actions > * { flex: 1; }
  .rail { --per: 1.45; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .app-grid .app-body p, .app-grid .app-meta .meta-pill { display: none; }
  .app-grid .app-meta small { text-align: left; }
  .browse-toolbar { grid-template-columns: 1fr; }
  .browse .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--edge) * -1); padding-inline: var(--edge); }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more-grid, .more-grid.is-four, .more-grid.is-two { grid-template-columns: 1fr; }
  .more-card { flex-direction: row; }
  .more-media { flex: 0 0 38%; aspect-ratio: auto; min-height: 120px; }
  .about-band { grid-template-columns: 1fr; }
  .feature-grid { --cols: 1 !important; }
  .promise-grid { grid-template-columns: 1fr; }
  .promise-card { grid-template-columns: auto minmax(0, 1fr); column-gap: .9rem; }
  .promise-card .promise-ico { grid-row: span 2; margin: 0; }
  .promise-strip { flex-direction: column; align-items: flex-start; }
  .privacy-panel { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .detail-stats, .detail-stats.n3 { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .store-btn { gap: .65rem; padding: .6rem .8rem; }
  .steps li { padding: 1.1rem 1.1rem 1.1rem 4rem; }
}
@media (max-width: 380px) { .app-grid { grid-template-columns: 1fr; } .app-grid .app-body p { display: -webkit-box; } }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
