/* =========================================================
   YONO VIP Game — V10 Brand App Profile
   Theme: light-editorial-marketplace + electric-cyan
   Type: premium-modern-sans (Inter)
   Surface: tonal layering, hairline borders, no glossy gradients
   ========================================================= */

:root {
  --ink: #0F172A;
  --ink-soft: #1E293B;
  --ink-mute: #475569;
  --ink-fade: #64748B;
  --paper: #FFFFFF;
  --paper-warm: #FAFAFB;
  --surface: #F8FAFC;
  --surface-2: #F1F5F9;
  --surface-3: #E2E8F0;
  --line: #E2E8F0;
  --line-soft: #EEF2F7;
  --line-strong: #CBD5E1;
  --accent: #2DD4BF;
  --accent-deep: #0F766E;
  --accent-soft: #CCFBF1;
  --accent-tint: #F0FDFA;
  --warn: #B45309;
  --warn-soft: #FEF3C7;
  --danger: #B91C1C;
  --good: #15803D;
  --dark-band: #0B1220;
  --dark-band-2: #111A2E;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-frame: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
  --max: 1240px;
  --pad-x: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --dock-h: 60px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: env(safe-area-inset-bottom);
  overflow-x: hidden;
}
html.is-drawer-open, html.is-drawer-open body { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1rem; color: var(--ink-soft); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: -9999px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 16px;
  border-radius: var(--radius-s);
  z-index: 1000;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  outline: 3px solid var(--accent);
}

/* ============== HEADER (sticky, persistent) ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 250;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 var(--pad-x);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-mark__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0F766E 0%, #14B8A6 100%);
  display: block;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 14px;
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  object-fit: cover;
  flex: 0 0 auto;
}
.brand-mark__name {
  font-size: 16px;
  line-height: 1;
  display: block;
}
.brand-mark__tag {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-fade);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 3px;
}
.main-nav {
  display: flex;
  gap: 6px;
  margin-left: 8px;
}
.main-nav a {
  padding: 10px 12px;
  border-radius: var(--radius-s);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.main-nav a:hover { color: var(--ink); background: var(--surface); }
.main-nav a.is-active { color: var(--accent-deep); background: var(--accent-tint); }
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-m);
  background: var(--accent);
  color: #042F2E;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(45, 212, 191, 0.32);
}
.header-cta:hover { background: var(--accent-deep); color: #FFFFFF; }
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  position: relative;
  z-index: 300;
}
.hamburger:hover { background: var(--surface); }
.hamburger__bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .18s, opacity .18s;
}
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--paper);
  z-index: 240;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  display: none;
  overflow-y: auto;
  padding: 16px var(--pad-x) calc(var(--dock-h) + 24px);
  border-top: 1px solid var(--line);
}
.mobile-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  display: block;
  transition: transform .2s ease, opacity .2s ease;
}
.mobile-drawer__close {
  position: sticky;
  top: 0;
  display: block;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  border-radius: 10px;
  cursor: pointer;
  z-index: 5;
}
.mobile-drawer__close:hover { background: var(--surface-2); }
.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-drawer nav a {
  padding: 14px 16px;
  border-radius: var(--radius-s);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-drawer nav a:hover { background: var(--surface); }
.mobile-drawer__install {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--accent);
  color: #042F2E;
  border-radius: var(--radius-m);
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}
.mobile-drawer__install:hover { background: var(--accent-deep); color: #FFFFFF; }
.scrim {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 230;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

/* ============== MOBILE STICKY CTA ============== */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 220;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 10px var(--pad-x) calc(10px + env(safe-area-inset-bottom));
}
.sticky-cta__inner {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}
.sticky-cta__label {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-cta__label strong { color: var(--ink); display: block; font-size: 14px; font-weight: 700; }
.sticky-cta__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  background: var(--accent);
  color: #042F2E;
  border-radius: var(--radius-m);
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(45, 212, 191, 0.35);
  width: 100%;
  max-width: 260px;
}
.sticky-cta__btn:hover { background: var(--accent-deep); color: #FFFFFF; }

/* ============== SECTIONS ============== */
section { padding: clamp(40px, 6vw, 72px) 0; }
.section-tight { padding: clamp(28px, 4vw, 48px) 0; }
.section--surface { background: var(--surface); }
.section--surface-2 { background: var(--surface-2); }
.section--dark { background: var(--dark-band); color: #E2E8F0; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #FFFFFF; }
.section--dark p { color: #CBD5E1; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section--dark .eyebrow { background: rgba(45, 212, 191, 0.18); color: #5EEAD4; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-head__lead {
  max-width: 56ch;
  color: var(--ink-mute);
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.55;
}
.section-head__aside {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-deep);
}
.section-head__aside::after {
  content: "→";
  display: inline-block;
  transition: transform .15s;
}
.section-head__aside:hover { color: var(--ink); }
.section-head__aside:hover::after { transform: translateX(3px); }

/* ============== BRAND APP IDENTITY (homepage hero block) ============== */
.brand-identity {
  background: linear-gradient(180deg, var(--paper) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--line);
}
.brand-identity__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.brand-identity__icon {
  display: inline-block;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(15, 23, 42, 0.06);
  background: var(--surface);
  margin-bottom: 18px;
}
.brand-identity__icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.brand-identity__intro h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.035em;
}
.brand-identity__intro h1 span {
  color: var(--accent-deep);
}
.brand-identity__lede {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--ink-mute);
  margin: 12px 0 24px;
  max-width: 52ch;
}
.brand-identity__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-m);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn--accent { background: var(--accent); color: #042F2E; box-shadow: 0 8px 20px rgba(45, 212, 191, 0.34); }
.btn--accent:hover { background: var(--accent-deep); color: #FFFFFF; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink-fade); }
.btn--block { width: 100%; }

/* Fact strip — annotated image ledger */
.fact-ledger {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  box-shadow: var(--shadow-md);
}
.fact-ledger__row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.fact-ledger__row:last-child { border-bottom: 0; padding-bottom: 0; }
.fact-ledger__row:first-child { padding-top: 0; }
.fact-ledger__mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid var(--accent-soft);
  flex-shrink: 0;
}
.fact-ledger__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-fade);
  margin-bottom: 2px;
}
.fact-ledger__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
.fact-ledger__value small {
  display: block;
  font-weight: 500;
  color: var(--ink-mute);
  font-size: 12px;
  margin-top: 2px;
}

/* ============== PRODUCT MEDIA RAIL ============== */
.media-rail {
  background: var(--surface);
}
.media-rail__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.media-frame {
  background: var(--dark-band);
  border-radius: var(--radius-l);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  aspect-ratio: 9/16;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}
.media-frame::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
}
.media-frame__screen {
  background: linear-gradient(180deg, #111A2E 0%, #0B1220 100%);
  border-radius: 18px;
  border: 1px solid rgba(45, 212, 191, 0.16);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.media-frame__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame__chip {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(45, 212, 191, 0.92);
  color: #042F2E;
  padding: 4px 8px;
  border-radius: 999px;
}
.media-frame__caption {
  font-size: 13px;
  font-weight: 600;
  color: #F1F5F9;
  text-align: center;
  margin-top: 10px;
}
.media-frame__caption small {
  display: block;
  font-weight: 500;
  font-size: 11px;
  color: #CBD5E1;
  margin-top: 2px;
}

/* ============== FEATURE GRID (used on /features/) ============== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  min-height: 168px;
}
.feature-card__num {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: 6px;
}
.feature-card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  line-height: 1.25;
}
.feature-card p {
  font-size: 14px;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.55;
}
.feature-card p code {
  font-size: 13px;
  background: var(--surface);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--ink-soft);
}

/* ============== FEATURE BENTO ============== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.bento {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 180px;
  position: relative;
  overflow: hidden;
}
.bento--lg { grid-column: span 3; }
.bento--md { grid-column: span 2; }
.bento--sm { grid-column: span 3; }
.bento--accent { background: var(--accent-tint); border-color: var(--accent-soft); }
.bento--dark { background: var(--dark-band); color: #E2E8F0; border-color: var(--dark-band-2); }
.bento--dark h3 { color: #FFFFFF; }
.bento--dark p { color: #CBD5E1; }
.bento__num {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
  align-self: flex-start;
}
.bento--dark .bento__num { background: rgba(45, 212, 191, 0.18); color: #5EEAD4; }
.bento h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  margin: 0 0 8px;
}
.bento p {
  font-size: 14px;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.55;
}
.bento--dark p { color: #CBD5E1; }

/* ============== SETUP STEPS ============== */
.setup-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -14px;
  left: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  border: 3px solid var(--paper);
}
.step h3 { margin: 6px 0 4px; font-size: 1.05rem; }
.step p { font-size: 14px; color: var(--ink-mute); margin: 0; line-height: 1.55; }

/* ============== HOT SHELF (4 groups) ============== */
.hot-shelf {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 20px;
}
.hot-shelf__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.hot-shelf__title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-fade);
}
.hot-shelf__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--good);
}
.hot-shelf__live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.15);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.15); }
  50% { box-shadow: 0 0 0 7px rgba(21, 128, 61, 0); }
}
.hot-shelf__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.hot-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 14px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  transition: border-color .15s, background .15s, transform .15s;
  text-decoration: none;
  color: inherit;
}
.hot-card:hover {
  border-color: var(--accent);
  background: var(--accent-tint);
}
.hot-card__art {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0F766E 0%, #14B8A6 100%);
  display: grid;
  place-items: center;
  color: #FFFFFF;
  font-size: 28px;
  flex-shrink: 0;
  overflow: hidden;
}
.hot-card__art img { width: 100%; height: 100%; object-fit: cover; }
.hot-card__label {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}
.hot-card__intent {
  font-size: 12px;
  color: var(--ink-mute);
  margin: 0 0 8px;
  line-height: 1.35;
}
.hot-card__action {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hot-card__action::after {
  content: "→";
  display: inline-block;
  transition: transform .15s;
}
.hot-card:hover .hot-card__action::after { transform: translateX(3px); }

/* ============== APP ROWS (compact horizontal) ============== */
.app-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.app-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 14px 18px;
  transition: border-color .15s, background .15s;
  text-decoration: none;
  color: inherit;
}
.app-row:hover {
  border-color: var(--accent);
  background: var(--accent-tint);
}
.app-row__art {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.app-row__art img { width: 100%; height: 100%; object-fit: cover; }
.app-row__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}
.app-row__meta {
  font-size: 13px;
  color: var(--ink-mute);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.app-row__meta span { display: inline-flex; align-items: center; gap: 4px; }
.app-row__meta strong { color: var(--ink); font-weight: 600; }
.app-row__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--accent);
  color: #042F2E;
  border-radius: var(--radius-m);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.app-row__action:hover { background: var(--accent-deep); color: #FFFFFF; }
.app-row__action--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.app-row__action--ghost:hover { background: var(--surface); border-color: var(--ink-fade); }

/* ============== GAME CARDS (for /app/ directory) ============== */
.game-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.game-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 12px 16px;
  transition: border-color .15s, background .15s;
  text-decoration: none;
  color: inherit;
}
.game-row:hover {
  border-color: var(--accent);
  background: var(--accent-tint);
}
.game-row__art {
  width: 96px;
  height: 72px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.game-row__art img { width: 100%; height: 100%; object-fit: cover; }
.game-row__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.game-row__name small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-fade);
  text-transform: uppercase;
}
.game-row__meta {
  font-size: 12px;
  color: var(--ink-mute);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.game-row__cta {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: var(--radius-s);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.game-row:hover .game-row__cta { background: var(--accent); border-color: var(--accent); color: #042F2E; }

/* ============== PROVIDER TABS / search ============== */
.toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
}
.tab {
  padding: 8px 14px;
  border-radius: var(--radius-s);
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.tab:hover { background: var(--surface); }
.tab.is-active { background: var(--ink); color: var(--accent); }
.tab-count {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  margin-left: 6px;
}
.tab:not(.is-active) .tab-count { background: var(--surface-2); color: var(--ink-fade); }
.search {
  display: flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  padding: 8px 12px;
  min-width: 240px;
}
.search input {
  border: 0;
  background: transparent;
  outline: 0;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  flex: 1;
  padding: 4px;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.result-count {
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.result-count strong { color: var(--ink); }

/* ============== PROMO / VIP COMMANDS ============== */
.command-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.command-card {
  background: var(--dark-band);
  color: #E2E8F0;
  border-radius: var(--radius-l);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(45, 212, 191, 0.18);
}
.command-card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.18) 0%, transparent 70%);
}
.command-card__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5EEAD4;
  background: rgba(45, 212, 191, 0.14);
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
}
.command-card h3 { color: #FFFFFF; margin: 4px 0; }
.command-card p { color: #CBD5E1; font-size: 14px; margin: 0; }
.command-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5EEAD4;
  font-weight: 700;
  font-size: 14px;
  align-self: flex-start;
}
.command-card__cta::after { content: "→"; transition: transform .15s; }
.command-card__cta:hover { color: #FFFFFF; }
.command-card__cta:hover::after { transform: translateX(3px); }

/* ============== FAQ ============== */
.faq-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
details.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 0;
  overflow: hidden;
  transition: border-color .15s;
}
details.faq-item[open] { border-color: var(--accent); }
details.faq-item > summary {
  cursor: pointer;
  padding: 18px 22px;
  list-style: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
details.faq-item > summary::-webkit-details-marker { display: none; }
details.faq-item > summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-deep);
  transition: transform .2s;
  flex-shrink: 0;
}
details.faq-item[open] > summary::after { content: "−"; }
details.faq-item > .faq-body {
  padding: 0 22px 20px;
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.65;
}
details.faq-item > .faq-body p { margin: 0 0 8px; }

/* ============== NEWS TRIO ============== */
.news-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.news-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  text-decoration: none;
  color: inherit;
}
.news-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.news-card__media {
  aspect-ratio: 16/10;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}
.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-card__date {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.78);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.news-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.news-card__cat {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.news-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.35;
}
.news-card__lede {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.55;
}

/* ============== TRUST / RESPONSIBLE ============== */
.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}
.trust-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-mute);
  font-weight: 500;
}
.trust-strip__item strong { color: var(--ink); font-weight: 700; }
.trust-strip__item a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.trust-strip__item a:hover { color: var(--ink); text-decoration-color: var(--accent-deep); }
.trust-strip__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--accent-deep);
}

/* ============== FOOTER ============== */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 56px 0 24px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-fade);
  margin: 0 0 14px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a {
  font-size: 14px;
  color: var(--ink-mute);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.footer-col a:hover { color: var(--ink); text-decoration-color: var(--accent-deep); }
.footer-brand p {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 14px 0 0;
  line-height: 1.55;
  max-width: 36ch;
}
.footer-meta {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-fade);
}
.footer-meta__legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-meta__legal a { color: var(--ink-fade); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.footer-meta__legal a:hover { color: var(--ink); text-decoration-color: var(--accent-deep); }
.responsible-line {
  background: var(--warn-soft);
  border: 1px solid #FDE68A;
  border-radius: var(--radius-m);
  padding: 14px 18px;
  font-size: 13px;
  color: #78350F;
  margin-bottom: 32px;
  display: flex;
  gap: 12px;
  align-items: start;
}
.responsible-line strong { color: #422006; }

/* ============== COOKIE BANNER ============== */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 280;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-lg);
  padding: 20px 22px;
  display: none;
  max-width: 540px;
  margin: 0 auto;
}
.cookie-banner.is-open { display: block; }
.cookie-banner h3 { font-size: 1rem; margin: 0 0 6px; }
.cookie-banner p { font-size: 13px; color: var(--ink-mute); margin: 0 0 12px; }
.cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============== COOKIE PANEL (settings) ============== */
.cookie-panel {
  position: fixed;
  inset: 0;
  z-index: 290;
  background: rgba(15, 23, 42, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cookie-panel.is-open { display: flex; }
.cookie-panel__inner {
  background: var(--paper);
  border-radius: var(--radius-l);
  padding: 24px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.cookie-panel__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.cookie-panel__row:last-of-type { border-bottom: 0; }
.cookie-panel__name { font-weight: 700; font-size: 14px; color: var(--ink); }
.cookie-panel__desc { font-size: 12px; color: var(--ink-mute); margin-top: 2px; }
.cookie-panel__switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
}
.cookie-panel__switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform .15s;
}
.cookie-panel__switch[aria-checked="true"] { background: var(--accent); }
.cookie-panel__switch[aria-checked="true"]::after { transform: translateX(20px); }
.cookie-panel__switch[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }

/* ============== HUB PAGE LAYOUT ============== */
.hub-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: clamp(40px, 6vw, 64px) 0 clamp(32px, 4vw, 48px);
}
.hub-hero__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.hub-hero__intro h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}
.hub-hero__lede {
  font-size: 17px;
  color: var(--ink-mute);
  margin: 0 0 24px;
  max-width: 56ch;
}
.toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 18px 20px;
}
.toc h4 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-fade);
  margin: 0 0 12px;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.toc li {
  counter-increment: toc;
}
.toc a {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 8px 10px;
  border-radius: var(--radius-s);
  align-items: center;
}
.toc a:hover { background: var(--surface); color: var(--ink); }
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-deep);
  background: var(--accent-tint);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.prose {
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.prose h2 {
  margin: 48px 0 16px;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.prose h3 {
  margin: 32px 0 12px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  font-size: 14px;
}
.comparison-table th, .comparison-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.comparison-table th {
  background: var(--surface);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-fade);
}
.comparison-table tr:last-child td { border-bottom: 0; }

/* ============== GENERIC UTILITIES ============== */
.cta-band {
  background: linear-gradient(135deg, var(--accent-tint) 0%, var(--surface) 100%);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-l);
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.cta-band h3 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: var(--ink-mute); }

/* ============== RESPONSIVE ============== */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .hamburger { display: block; }
  .header-cta-ghost { display: none; }
  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento--lg, .bento--md, .bento--sm { grid-column: span 1; }
  .hub-hero__grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col--wide { grid-column: span 3; }
  .command-grid { grid-template-columns: 1fr; }
  .news-trio { grid-template-columns: 1fr; }
  .media-rail__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hot-shelf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-identity__grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .toolbar { grid-template-columns: 1fr; }
  .search { min-width: 0; }
  .cta-band { grid-template-columns: 1fr; }
  .app-row { grid-template-columns: 64px 1fr; padding: 12px 14px; }
  .app-row__art { width: 56px; height: 56px; }
  .app-row__action { grid-column: span 2; justify-content: center; }
  .game-row { grid-template-columns: 72px 1fr; }
  .game-row__art { width: 72px; height: 56px; }
  .game-row__cta { grid-column: span 2; justify-content: center; }
  .section-head { flex-direction: column; align-items: start; }
  .sticky-cta { display: block; }
  body { padding-bottom: calc(var(--dock-h) + 24px); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .footer-col--wide { grid-column: span 2; }
  .bento-grid { grid-template-columns: 1fr; }
  .setup-steps { grid-template-columns: 1fr; }
  .news-trio { grid-template-columns: 1fr; }
  .hot-shelf__grid { grid-template-columns: 1fr; }
  .hot-card { grid-template-columns: 64px 1fr; }
  .hot-card__art { width: 64px; height: 64px; }
  .media-rail__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .command-grid { grid-template-columns: 1fr; }
  .comparison-table { font-size: 13px; }
  .comparison-table th, .comparison-table td { padding: 10px 8px; }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  /* Keep header contents inside the viewport at small widths.
     The desktop Install App CTA duplicates the drawer + sticky CTA, so
     it is hidden at mobile. The hamburger must always be reachable. */
  .header-cta { display: none !important; }
  .site-header__inner { gap: 10px; }
  .brand-mark { gap: 8px; min-width: 0; }
  .brand-mark > span:last-child { min-width: 0; }
  .brand-mark__name {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 38vw;
  }
}
@media (max-width: 430px) {
  :root { --pad-x: 14px; }
  .brand-mark__tag { display: none; }
  .media-rail__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .media-frame { padding: 10px; }
  .sticky-cta__label { display: none; }
  .sticky-cta__btn { max-width: 100%; }
  .header-right { gap: 6px; }
  .hamburger { width: 36px; height: 36px; padding: 6px; }
  .brand-mark__name { max-width: 30vw; }
}

/* ============== FOCUS ============== */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============== REDUCED MOTION ============== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hot-shelf__live::before { animation: none; }
}

/* ============== GRID TRACK MINMAX ============== */
.brand-identity__grid,
.media-rail__grid,
.bento-grid,
.setup-steps,
.hot-shelf__grid,
.app-row,
.game-row,
.command-grid,
.news-trio,
.site-footer__grid,
.cta-band,
.toolbar,
.fact-ledger {
  grid-auto-rows: minmax(0, auto);
}
.app-row > *, .game-row > * { min-width: 0; }
.app-row__art img, .game-row__art img, .media-frame__screen img { display: block; width: 100%; height: 100%; object-fit: cover; }