/* my11-app.com — App Discovery Marketplace
   - White app-store theme with emerald accent
   - Dense, mobile-first, utility bar navigation
   - DESIGN_VARIANCE: 4, MOTION_INTENSITY: 2, VISUAL_DENSITY: 8
*/

:root {
  --primary: #047857;
  --primary-deep: #065F46;
  --primary-soft: #D1FAE5;
  --accent: #10B981;
  --accent-bright: #34D399;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-rail: #F1F5F9;
  --surface-1: #FFFFFF;
  --surface-2: #F8FAFC;
  --surface-3: #EEF2F7;
  --ink: #0F172A;
  --ink-soft: #1E293B;
  --ink-muted: #475569;
  --ink-light: #64748B;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --line-soft: #F1F5F9;
  --danger: #DC2626;
  --warning: #D97706;
  --success: #059669;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --header-h: 64px;
  --gutter: clamp(16px, 4vw, 28px);
  --max: 1240px;
  --txt: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--txt);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, picture, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
  overflow-wrap: break-word;
}
p { margin: 0 0 1em; overflow-wrap: break-word; }
ul, ol { padding-left: 1.2em; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 250;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.utility-bar {
  background: var(--primary-deep);
  color: #fff;
  font-size: 12px;
  padding: 6px 0;
}
.utility-bar .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.utility-bar a { color: #fff; opacity: 0.92; }
.utility-bar a:hover { opacity: 1; text-decoration: underline; }
.utility-bar .left { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.utility-bar .right { display: flex; gap: 10px; align-items: center; }
.utility-bar .badge {
  background: rgba(255, 255, 255, 0.16);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.nav-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 6px rgba(4, 120, 87, 0.32);
}
.brand-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-left: 1px solid var(--line);
  padding-left: 10px;
  margin-left: 4px;
}

.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}
.main-nav a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 8px;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--primary); text-decoration: none; }
.main-nav a.active { color: var(--primary); background: var(--primary-soft); font-weight: 600; }

.header-cta {
  display: flex;
  gap: 8px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.1;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(4, 120, 87, 0.25);
}
.btn-primary:hover { background: var(--primary-deep); border-color: var(--primary-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--line-strong); color: var(--primary); }
.btn-soft {
  background: var(--primary-soft);
  color: var(--primary-deep);
  border-color: var(--primary-soft);
}
.btn-soft:hover { background: #A7F3D0; color: var(--primary-deep); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 22px; font-size: 16px; }
.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 7px; }

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  position: relative;
  z-index: 400;
  cursor: pointer;
}
.hamburger span {
  display: block;
  position: absolute;
  left: 11px;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.hamburger span:nth-child(1) { top: 13px; }
.hamburger span:nth-child(2) { top: 20px; }
.hamburger span:nth-child(3) { top: 27px; }
.hamburger.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  z-index: 240;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.mobile-drawer.is-open { opacity: 1; pointer-events: auto; }
.mobile-drawer .panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(86vw, 360px);
  height: 100dvh;
  background: #fff;
  padding: 86px 22px 32px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.18);
}
.mobile-drawer.is-open .panel { transform: translateX(0); }
.mobile-drawer nav { display: grid; gap: 4px; }
.mobile-drawer a {
  padding: 14px 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-drawer a:hover { background: var(--bg-soft); }
.mobile-drawer .mob-cta { margin-top: 20px; display: grid; gap: 10px; }

/* ---------- HOMEPAGE BLUEPRINT ---------- */
.page { width: 100%; }

.catalogue-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--gutter) 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.catalogue-head h1 {
  font-size: clamp(22px, 3vw, 28px);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.catalogue-head .meta {
  font-size: 13px;
  color: var(--ink-light);
  margin-top: 4px;
}
.catalogue-head .meta strong { color: var(--ink); font-weight: 700; }

.filter-bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}
.search-row {
  position: relative;
  display: flex;
  align-items: center;
}
.search-row input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  background: var(--bg-soft);
  color: var(--ink);
  font-family: inherit;
}
.search-row input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.12);
}
.search-row svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--ink-light);
  pointer-events: none;
}
.sort-row select {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
}

.provider-tabs {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: var(--header-h);
  z-index: 50;
}
.provider-tabs .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.provider-tabs .inner::-webkit-scrollbar { display: none; }
.tab-btn {
  flex: 0 0 auto;
  padding: 14px 14px;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: -0.01em;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn[aria-selected="true"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.inventory-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--gutter) 32px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.app-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  min-height: 240px;
}
.app-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.app-card .rank {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--ink-muted);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 2;
}
.app-card .art {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-rail);
  display: block;
  overflow: hidden;
}
.app-card .art img { width: 100%; height: 100%; object-fit: cover; }
.app-card .body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.app-card .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.app-card .provider {
  font-size: 11px;
  color: var(--ink-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.app-card .facts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--ink-muted);
}
.app-card .facts span { display: inline-flex; align-items: center; gap: 3px; }
.app-card .actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: auto;
}
.app-card .actions a {
  font-size: 12px;
  padding: 8px 6px;
  text-align: center;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--bg-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.app-card .actions a:hover { background: var(--surface-3); text-decoration: none; }
.app-card .actions a.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.app-card .actions a.primary:hover { background: var(--primary-deep); border-color: var(--primary-deep); }

.load-more-row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 32px;
  text-align: center;
}
.skeleton-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  height: 240px;
  position: relative;
  overflow: hidden;
}
.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.empty-state {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--gutter);
  text-align: center;
  color: var(--ink-light);
}
.empty-state h3 { color: var(--ink); margin: 0 0 6px; }

/* ---------- HOMEPAGE AUXILIARY BLOCKS ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px) var(--gutter);
}
.section.tight { padding: clamp(20px, 4vw, 32px) var(--gutter); }
.section.tinted { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 {
  font-size: clamp(22px, 3.2vw, 30px);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.section .lead {
  font-size: 15px;
  color: var(--ink-muted);
  max-width: 680px;
  margin: 0 0 24px;
}

.split-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
}
@media (max-width: 900px) {
  .split-grid { grid-template-columns: 1fr; gap: 20px; }
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 900px) {
  .feature-row { grid-template-columns: repeat(2, 1fr); }
}
.feature-tile {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-tile .icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
}
.feature-tile h3 { font-size: 15px; margin: 0; }
.feature-tile p { font-size: 13px; color: var(--ink-muted); margin: 0; }

.callout-band {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 1px solid #A7F3D0;
  border-radius: 16px;
  padding: 26px 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}
@media (max-width: 700px) { .callout-band { grid-template-columns: 1fr; } }
.callout-band h3 { margin: 0 0 4px; font-size: 18px; color: var(--primary-deep); }
.callout-band p { margin: 0; color: var(--ink-muted); font-size: 14px; }

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: step;
}
@media (max-width: 900px) { .steps-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps-row { grid-template-columns: 1fr; } }
.step-tile {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  position: relative;
  counter-increment: step;
}
.step-tile::before {
  content: counter(step);
  position: absolute;
  top: -10px;
  left: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.step-tile h3 { font-size: 14px; margin: 6px 0 4px; }
.step-tile p { font-size: 13px; color: var(--ink-muted); margin: 0; }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 800px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-grid details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
}
.faq-grid details[open] { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.08); }
.faq-grid summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after {
  content: "+";
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
  transition: transform 0.2s ease;
}
.faq-grid details[open] summary::after { content: "−"; }
.faq-grid details p { margin: 10px 0 0; font-size: 14px; color: var(--ink-muted); }

.news-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) { .news-rail { grid-template-columns: 1fr; } }
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.news-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.news-card .img-box {
  aspect-ratio: 16 / 9;
  background: var(--bg-rail);
  overflow: hidden;
}
.news-card .img-box img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-card .meta {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}
.news-card .title { font-size: 15px; font-weight: 600; line-height: 1.3; margin: 0; }
.news-card .deck { font-size: 13px; color: var(--ink-muted); margin: 4px 0 0; }
.news-card time { font-size: 11px; color: var(--ink-light); margin-top: auto; }

table.fact-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 14px;
}
table.fact-table th, table.fact-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
table.fact-table th {
  background: var(--bg-soft);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}
table.fact-table tr:last-child td { border-bottom: 0; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: 48px 0 24px;
  margin-top: 32px;
}
.site-footer a { color: #CBD5E1; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 900px) {
  .site-footer .top { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; font-size: 14px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-tag { color: #94A3B8; border-color: #334155; }
.footer-brand p { font-size: 13px; color: #94A3B8; max-width: 36ch; margin-top: 10px; }

.footer-disclaimer {
  max-width: var(--max);
  margin: 36px auto 0;
  padding: 24px var(--gutter) 0;
  border-top: 1px solid #1E293B;
  font-size: 12px;
  color: #94A3B8;
  line-height: 1.6;
}
.footer-disclaimer .affiliate-note {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #1E293B;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.footer-bottom {
  max-width: var(--max);
  margin: 20px auto 0;
  padding: 16px var(--gutter) 0;
  border-top: 1px solid #1E293B;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #94A3B8;
}
.footer-bottom .legal-links { display: flex; gap: 14px; flex-wrap: wrap; }
#cookie-settings-btn {
  background: transparent;
  border: 1px solid #334155;
  color: #CBD5E1;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 12px;
  cursor: pointer;
}
#cookie-settings-btn:hover { background: rgba(255,255,255,0.06); }

/* ---------- MOBILE STICKY CTA ---------- */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 10px 12px max(10px, env(safe-area-inset-bottom));
  z-index: 190;
  display: none;
}
.mobile-sticky-cta .btn { width: 100%; }
body.has-sticky-cta { padding-bottom: 80px; }
@media (max-width: 768px) {
  .mobile-sticky-cta { display: block; }
}

/* ---------- ARTICLE/TEMPLATE PAGES ---------- */
.article-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px) var(--gutter);
}
.article-shell .crumbs {
  font-size: 12px;
  color: var(--ink-light);
  margin-bottom: 16px;
}
.article-shell .crumbs a { color: var(--ink-muted); }
.article-shell h1 {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.18;
  margin: 0 0 14px;
}
.article-shell .lede {
  font-size: 18px;
  color: var(--ink-muted);
  margin: 0 0 6px;
  font-weight: 500;
}
.article-shell .byline {
  font-size: 13px;
  color: var(--ink-light);
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.article-shell .byline .pip { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.article-shell .hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-rail);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
}
.article-shell .hero-img img { width: 100%; height: 100%; object-fit: cover; }
.article-shell .media-rail-intro {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
  background: var(--bg-rail);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 24px;
}
.article-shell .media-rail-intro a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 600px) {
  .article-shell .media-rail-intro { font-size: 13px; padding: 10px 14px; }
}
.article-shell h2 {
  font-size: clamp(20px, 2.5vw, 24px);
  margin: 32px 0 10px;
}
.article-shell h3 { font-size: 18px; margin: 24px 0 8px; }
.article-shell p { font-size: 16px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 16px; }
.article-shell ul { font-size: 16px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 20px; }
.article-shell ul li { margin-bottom: 8px; }
.article-shell blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  border-left: 3px solid var(--primary);
  background: var(--primary-soft);
  border-radius: 0 10px 10px 0;
  color: var(--primary-deep);
  font-weight: 500;
}

.article-cta {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 1px solid #A7F3D0;
  border-radius: 14px;
  padding: 24px 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin: 32px 0;
}
@media (max-width: 600px) { .article-cta { grid-template-columns: 1fr; } }
.article-cta h3 { margin: 0 0 4px; color: var(--primary-deep); font-size: 18px; }
.article-cta p { margin: 0; color: var(--ink-muted); font-size: 14px; }

/* ---------- GAME DETAIL ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 800px) { .profile-grid { grid-template-columns: 1fr; gap: 18px; } }
.profile-hero {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.profile-hero .art {
  aspect-ratio: 1 / 1;
  background: var(--bg-rail);
}
.profile-hero .art img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero .body { padding: 18px 20px; }
.profile-hero .body .name { font-size: 22px; margin: 0 0 4px; }
.profile-hero .body .provider { font-size: 12px; color: var(--ink-light); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

.fact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}
.fact-card h3 { margin: 0 0 12px; font-size: 16px; }
.fact-card dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.fact-card dt { font-size: 12px; color: var(--ink-light); text-transform: uppercase; letter-spacing: 0.04em; }
.fact-card dd { margin: 0; font-size: 14px; color: var(--ink); font-weight: 600; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 800px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: 100px;
  left: 16px;
  right: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.14);
  padding: 18px 20px;
  z-index: 230;
  display: none;
}
.cookie-banner.is-open { display: block; }
.cookie-banner h2 { font-size: 16px; margin: 0 0 6px; }
.cookie-banner p { font-size: 13px; color: var(--ink-muted); margin: 0 0 12px; }
.cookie-banner .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-panel {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 240;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cookie-panel.is-open { display: flex; }
.cookie-panel .box {
  background: #fff;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 24px 26px;
}
.cookie-panel h2 { margin: 0 0 8px; font-size: 18px; }
.cookie-panel .cat { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); gap: 16px; }
.cookie-panel .cat strong { font-size: 14px; display: block; margin-bottom: 2px; }
.cookie-panel .cat small { color: var(--ink-muted); font-size: 12px; }
.cookie-panel .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.cookie-panel label.toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.cookie-panel input[type="checkbox"] { accent-color: var(--primary); width: 18px; height: 18px; }
.cookie-panel input[type="checkbox"][disabled] { opacity: 0.5; }

/* ---------- RESPONSIVE NAV ---------- */
@media (max-width: 1024px) {
  .nav-shell { grid-template-columns: auto 1fr auto; gap: 12px; }
  .main-nav { display: none; }
  .brand-tag { display: none; }
  .header-cta .btn-ghost { display: none; }
  .hamburger { display: block; }
}
@media (max-width: 768px) {
  .inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .app-card { min-height: 220px; }
  .utility-bar .left { gap: 8px; font-size: 11px; }
  .utility-bar .right { gap: 6px; }
  .catalogue-head { padding: 12px var(--gutter) 6px; }
  .filter-bar { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 430px) {
  .inventory-grid { grid-template-columns: 1fr 1fr; }
  .app-card { min-height: 200px; }
  .app-card .actions { grid-template-columns: 1fr; }
  .app-card .actions a.primary { padding: 10px; }
}
@media (max-width: 360px) {
  .inventory-grid { grid-template-columns: 1fr; }
}

/* ---------- ACCESSIBILITY ---------- */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -200px;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 500;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; }

/* ---------- UTILITY ---------- */
.text-center { text-align: center; }
.muted { color: var(--ink-muted); }
.no-border { border: 0 !important; }
.flex-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; padding: 4px 10px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--ink-soft); font-weight: 500; }
.no-scroll { overflow: hidden; }
.disclosure-note {
  font-size: 12px;
  color: var(--ink-light);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 14px 0;
}

/* ---------- APP ARTWORK RAIL (apps hub) ---------- */
.app-art-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 24px;
}
.app-art-rail .art-tile {
  margin: 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.app-art-rail .art-tile img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.app-art-rail .art-tile figcaption {
  font-size: 12px;
  color: var(--ink-soft);
  padding: 10px 12px;
  line-height: 1.45;
}
@media (max-width: 720px) {
  .app-art-rail { grid-template-columns: 1fr; }
}
