/* yonogamesplus.com shared shell
   Light product desk, technical grotesk, single high-contrast install action.
   Dials: DESIGN_VARIANCE 6, MOTION_INTENSITY 3, VISUAL_DENSITY 5.
*/

:root {
  --primary: #0F6E4F;
  --primary-deep: #0A4F37;
  --accent: #84CC16;
  --accent-deep: #65A30D;
  --ink: #0F172A;
  --ink-2: #1F2937;
  --muted: #64748B;
  --muted-2: #94A3B8;
  --paper: #FFFFFF;
  --band: #F1F5F4;
  --band-2: #ECFDF5;
  --line: rgba(15, 23, 42, 0.10);
  --line-2: rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 18px;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--primary-deep); text-decoration: none; }
a:hover { color: var(--primary); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
button { font: inherit; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

/* native [hidden] wins over explicit display on components */
[hidden] { display: none !important; }

h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 4.6vw, 44px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
small { font-size: 13px; color: var(--muted); }

.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; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 99999; }
.skip-link:focus { left: 12px; color: #fff; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.brand small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.primary-nav {
  display: none;
  gap: 6px;
  margin-left: auto;
  align-items: center;
}
.primary-nav > li { list-style: none; }
.primary-nav a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.primary-nav a[aria-current="page"] { background: var(--band); color: var(--primary-deep); }
.primary-nav a:hover { background: var(--band); }

.header-cta {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
}
.btn {
  --bg: var(--primary);
  --bg-2: var(--primary-deep);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  transition: background 160ms ease, transform 120ms ease;
}
.btn:hover { background: var(--bg-2); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--band); color: var(--ink); }
.btn--accent { background: var(--accent); color: #0F1A06; }
.btn--accent:hover { background: var(--accent-deep); color: #0F1A06; }
.btn--lg { height: 52px; padding: 0 22px; font-size: 15px; border-radius: 14px; }
.btn--block { width: 100%; }

.hamburger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: auto;
  right: 0;
  width: min(360px, 88vw);
  background: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.20);
  display: none;
}
.mobile-drawer[data-open="true"] {
  display: flex;
  animation: drawer-in 240ms ease;
}
@keyframes drawer-in {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-drawer[data-open="true"] { animation: none; }
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer-head .brand img { width: 32px; height: 32px; border-radius: 8px; }
.drawer-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--ink);
}
.drawer-nav { padding: 12px 16px; overflow-y: auto; flex: 1; }
.drawer-nav ul { list-style: none; padding: 0; margin: 0; }
.drawer-nav li { padding: 0; }
.drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--ink);
  font-size: 16px;
}
.drawer-nav a:hover { background: var(--band); }
.drawer-foot {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.drawer-scrim[data-open="true"] { opacity: 1; pointer-events: auto; }

/* Desktop nav */
@media (min-width: 980px) {
  .primary-nav { display: flex; }
  .hamburger { display: none; }
  .header-cta { display: inline-flex; }
}

/* ---------- BRAND APP PROFILE (homepage lead) ---------- */
.brand-app {
  background: linear-gradient(180deg, #fff 0%, var(--band) 100%);
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--line-2);
}
.brand-app > section.block:last-of-type { border-bottom: 0; }
.brand-app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
@media (min-width: 880px) {
  .brand-app-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 36px;
  }
}

.brand-app-gallery-wrap {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
  grid-column: 1 / -1;
}
.brand-app-gallery-wrap .gallery-title {
  font-size: 18px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.brand-app-gallery-wrap .gallery-lede {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 720px) {
  /* Brand-app first-block compact: identity → compact facts → compact gallery → compact install.
     Lets the gallery reach the first viewport on mobile (was 1590-1880px, now ~780-900px). */
  .brand-app-grid {
    grid-template-areas:
      "identity"
      "facts"
      "gallery"
      "install";
    gap: 16px;
  }
  .brand-summary-l { grid-area: identity; }
  dl.brand-facts { grid-area: facts; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
  dl.brand-facts dt, dl.brand-facts dd { font-size: 13px; margin: 0; }
  .brand-app-gallery-wrap { grid-area: gallery; margin-top: 4px; padding-top: 14px; }
  .install-card { grid-area: install; padding: 16px; gap: 10px; }
  .install-card h2 { font-size: 17px; }
  .install-card > p, .install-card > ul.checks { display: none; }
  /* Compact 3-column mini-gallery on mobile (was 3 stacked rows). */
  .brand-app-gallery-wrap .gallery-title { font-size: 14px; margin-bottom: 2px; }
  .brand-app-gallery-wrap .gallery-lede { display: none; }
  .brand-app-gallery-wrap .gallery-band { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .brand-app-gallery-wrap .gallery-band figcaption { display: none; }
  .brand-app-gallery-wrap .gallery-band img { aspect-ratio: 1 / 1; }
}

.brand-identity {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: center;
}
.brand-identity .mark {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  background: #fff;
  padding: 8px;
  object-fit: contain;
}
@media (min-width: 600px) {
  .brand-identity { grid-template-columns: 120px 1fr; }
  .brand-identity .mark { width: 120px; height: 120px; }
}
.brand-identity h1 { margin: 0 0 4px; }
.brand-identity .subtitle { color: var(--muted); font-size: 15px; margin: 6px 0 0; }
.brand-identity .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin-bottom: 8px;
}
.brand-identity .eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.brand-facts {
  margin-top: 20px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-m);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.brand-facts ul {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}
.brand-facts li { display: grid; gap: 2px; }
.brand-facts dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.brand-facts dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.brand-facts dd .noval { color: var(--muted-2); font-weight: 500; }

.install-card {
  background: #fff;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 14px;
}
.install-card h2 { font-size: 20px; font-weight: 700; }
.install-card p { font-size: 14px; color: var(--muted); margin: 0; }
.install-card ul.checks {
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: 8px;
}
.install-card ul.checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}
.install-card ul.checks li::before {
  content: "✓";
  flex: 0 0 auto;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--band-2);
  color: var(--primary-deep);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.install-meta {
  display: grid; gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.install-meta strong { color: var(--ink); font-weight: 700; }

/* ---------- SECTIONS ---------- */
section.block {
  padding: 56px 0;
  border-bottom: 1px solid var(--line-2);
}
section.block.alt { background: var(--band); }
section.block.deep { background: var(--ink); color: #E2E8F0; }
section.block.deep h2, section.block.deep h3 { color: #fff; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}
.section-head .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-deep);
}
.section-head p { color: var(--muted); margin: 6px 0 0; max-width: 60ch; }
.section-head .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--band-2);
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- APP DIRECTORY ROWS ---------- */
.directory {
  display: grid;
  gap: 12px;
}
.app-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, transform 160ms ease;
}
.app-row:hover { border-color: var(--primary); transform: translateY(-1px); }
.app-row .thumb {
  width: 96px; height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--band);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.app-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.app-row .info { min-width: 0; }
.app-row h3, .app-row .row-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.app-row .row-title { display: block; }
.app-row .row-title a { color: inherit; text-decoration: none; }
.app-row .meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.app-row .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.app-row .btn { height: 38px; font-size: 13px; padding: 0 14px; }

@media (max-width: 720px) {
  .app-row { grid-template-columns: 64px minmax(0, 1fr); }
  .app-row .thumb { width: 64px; height: 64px; }
  .app-row .actions { grid-column: 1 / -1; justify-content: stretch; }
  .app-row .actions .btn { flex: 1 1 auto; }
}

/* ---------- HOT shelf (Fantasy/Rummy/Sports/Games) ---------- */
.hot-shelf {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}
.hot-shelf .app-row { grid-template-columns: 72px minmax(0, 1fr); }
@media (max-width: 880px) {
  .hot-shelf {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    grid-template-columns: none;
    margin-inline: -16px;
    padding: 0 16px 12px;
    gap: 10px;
  }
  .hot-shelf .app-row {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
}

/* ---------- GALLERY (overview + features) ---------- */
.gallery-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.gallery-band > img {
  grid-row: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-sm);
  background: var(--band);
}
.gallery-band > figure.thumb {
  grid-row: 2;
  margin: 0;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--muted);
  background: #fff;
  border-radius: var(--radius-m);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.gallery-band figure {
  margin: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--band);
  box-shadow: var(--shadow-sm);
  display: grid;
}
.gallery-band img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-band figcaption {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) {
  .gallery-band { grid-template-columns: 1fr; }
}

/* Two-up grid for overview/features/install */
.two-up {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 880px) {
  .two-up { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.feature-list, .step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.feature-list li, .step-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.step-list { counter-reset: stepc; }
.step-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
}
.step-list li::before {
  counter-increment: stepc;
  content: counter(stepc);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.step-list li h4 { margin-bottom: 4px; }
.feature-list li h4 { margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.feature-list li h4 .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); flex: 0 0 auto; }

/* install / troubleshooting blocks */
.callout {
  border-radius: var(--radius-m);
  background: var(--band-2);
  border: 1px solid rgba(15, 110, 79, 0.18);
  padding: 18px 20px;
}
.callout p { color: var(--ink-2); margin: 0; }

.support-card {
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: #fff;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 14px;
}
.support-card .row {
  display: flex; gap: 14px; align-items: center;
}
.support-card .row .pic {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--band);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--primary-deep);
  font-weight: 800;
}

/* trios */
.trio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 880px) {
  .trio { grid-template-columns: repeat(3, 1fr); }
}
.metric-card {
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px;
  display: grid;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}
.metric-card .k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.metric-card .v { font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.metric-card .sub { font-size: 13px; color: var(--muted); }

/* news */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 880px) {
  .news-grid { grid-template-columns: repeat(3, 1fr); }
}
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.news-card a.cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--band); }
.news-card a.cover img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 14px 16px 16px; display: grid; gap: 6px; flex: 1; }
.news-card h3 { font-size: 17px; }
.news-card .meta { color: var(--muted); font-size: 12px; display: flex; gap: 10px; }
.news-card p { font-size: 14px; color: var(--ink-2); }

/* FAQ */
.faq-grid {
  display: grid;
  gap: 10px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 600;
  color: var(--muted);
  transition: transform 200ms ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .ans {
  padding: 0 18px 16px;
  color: var(--ink-2);
  font-size: 15px;
}

/* data-table */
.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ledger th, .ledger td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.ledger th {
  background: var(--band);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-deep);
}
.ledger tr:last-child td { border-bottom: 0; }

/* filter/search */
.toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
@media (min-width: 720px) {
  .toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}
.search-input {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  width: 100%;
  font: inherit;
  background: #fff;
}
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs .tab {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-2);
}
.tabs .tab[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: #08241B;
  color: #CBD5E1;
  padding: 48px 0 24px;
}
.site-footer a { color: #E2E8F0; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.footer-grid h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.footer-legal {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: #94A3B8;
  display: flex; flex-wrap: wrap; gap: 8px 18px;
}
.footer-brand-card {
  display: grid; gap: 10px;
}
.footer-brand-card img { width: 44px; height: 44px; border-radius: 12px; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  color: #E2E8F0;
  font-size: 14px;
  font-weight: 700;
}
.socials a:hover { background: rgba(255,255,255,0.14); }

/* ---------- MOBILE STICKY CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 14px;
  left: 14px; right: 14px;
  z-index: 90;
  background: var(--primary);
  color: #fff;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.30);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mobile-cta strong { font-size: 14px; display: block; }
.mobile-cta small { display: block; font-size: 11px; color: rgba(255,255,255,0.86); }
.mobile-cta a {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 16px;
  border-radius: 12px;
  background: #fff;
  color: var(--primary-deep);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}
@media (max-width: 720px) {
  .mobile-cta { display: flex; }
  body.has-sticky { padding-bottom: 96px; }
}

/* ---------- APP DETAIL ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 880px) {
  .profile-grid { grid-template-columns: 280px minmax(0, 1fr); gap: 36px; }
}
.profile-side .panel {
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: grid; gap: 12px;
}
.profile-side .panel img { width: 84px; height: 84px; border-radius: 18px; }
.profile-side dl { display: grid; gap: 8px; margin: 0; font-size: 14px; }
.profile-side dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.profile-side dd { margin: 0; font-weight: 600; color: var(--ink); }

.prose {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.75;
}
.prose h2 { margin-top: 28px; margin-bottom: 12px; }
.prose h3 { margin-top: 22px; margin-bottom: 8px; }
.prose p { margin-bottom: 12px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  margin: 16px 0;
  border-left: 4px solid var(--accent);
  background: var(--band);
  padding: 14px 16px;
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  color: var(--ink-2);
  font-style: normal;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }

/* page hero */
.page-hero {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--line-2);
  background: linear-gradient(180deg, #fff 0%, var(--band) 100%);
}
.page-hero h1 { margin-bottom: 8px; }
.page-hero p { color: var(--muted); max-width: 70ch; }

/* ---------- COOKIE / CONSENT ---------- */
.cookie-bar {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 110;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15,23,42,0.30);
  padding: 20px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 640px;
  margin-inline: auto;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar h3 { font-size: 17px; }
.cookie-bar .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-bar .actions .btn { height: 38px; font-size: 13px; padding: 0 14px; }

/* place this on body when sticky is visible so last content isn't covered */
@media (max-width: 720px) {
  body.has-sticky { padding-bottom: 84px; }
}

/* focus and motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
