/* ============================================================
   OK Rummy — Brand App Profile (Cobalt Command · Dark Product Lobby)
   v1 / 2026-08-31
   Single stylesheet — homepage, /app/, /app/ok-rummy/, /setup/,
   /faq/, /news/, /news/article/, /legal/ + sibling policy pages.
   Locked visual system: dark cobalt surfaces, single cobalt accent,
   technical-grotesk type, layered panels, hairline borders.
   ============================================================ */

/* ----------------------------------------------------------
   0. TOKENS
   ---------------------------------------------------------- */
:root {
  /* Cobalt command palette */
  --c-bg-0:   #060c18;        /* page */
  --c-bg-1:   #0a1424;        /* panel */
  --c-bg-2:   #0f1c30;        /* nested */
  --c-bg-3:   #142339;        /* hover/raised */
  --c-line:   rgba(122, 165, 232, .14);
  --c-line-2: rgba(122, 165, 232, .22);
  --c-line-3: rgba(122, 165, 232, .34);

  --c-ink:    #eaf1fb;
  --c-ink-2:  #c2cee0;
  --c-ink-3:  #8a9bb5;
  --c-ink-4:  #5d6c84;

  --c-accent: #1f7af8;        /* cobalt command */
  --c-accent-2: #4d9bff;      /* cobalt hover */
  --c-accent-3: #1862cf;      /* cobalt deep */
  --c-accent-glow: rgba(31, 122, 248, .28);

  --c-pos:    #34d399;
  --c-warn:   #f6b94b;
  --c-neg:    #ef5b6b;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-1: 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 24px rgba(0,0,0,.32);
  --shadow-2: 0 1px 0 rgba(255,255,255,.05) inset, 0 18px 60px rgba(0,0,0,.5);
  --shadow-3: 0 1px 0 rgba(255,255,255,.05) inset, 0 28px 90px rgba(0,0,0,.55);

  --t-fast: 160ms cubic-bezier(.2,.7,.3,1);
  --t-med:  280ms cubic-bezier(.2,.7,.3,1);
  --t-slow: 480ms cubic-bezier(.2,.7,.3,1);

  --w-shell: 1240px;
  --w-prose: 720px;

  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:  "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

/* ----------------------------------------------------------
   1. RESET
   ---------------------------------------------------------- */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--c-ink);
  background:
    radial-gradient(circle at 12% -8%, rgba(31,122,248,.10), transparent 38%),
    radial-gradient(circle at 92% 6%, rgba(78,155,255,.06), transparent 30%),
    var(--c-bg-0);
  background-attachment: fixed;
  line-height: 1.55;
  font-size: 16px;
  min-height: 100dvh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, video, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--c-accent-2); text-decoration: none; }
a:hover { color: var(--c-accent-2); text-decoration: underline; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--c-ink); font-weight: 700; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.05; letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 2.4vw, 2.05rem); line-height: 1.15; letter-spacing: -.015em; }
h3 { font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.25; }
h4 { font-size: 1rem; line-height: 1.3; }
p  { margin: 0 0 1em; color: var(--c-ink-2); }
hr { border: 0; height: 1px; background: var(--c-line); margin: 24px 0; }

/* skip link */
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--c-accent); color: #fff; padding: 10px 16px;
  border-radius: var(--r-sm); font-weight: 700; z-index: 1000;
  clip-path: inset(0 0 0 0);
}
.skip-link:focus { left: 12px; clip-path: none; }

/* ----------------------------------------------------------
   2. APP SHELL — DOCKED HEADER, PERSISTENT NAV, STICKY CTA
   ---------------------------------------------------------- */
.app-header {
  position: sticky; top: 0; z-index: 80;
  background: linear-gradient(180deg, rgba(6,12,24,.96), rgba(6,12,24,.86));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--c-line);
}
.app-header__inner {
  width: 100%; max-width: var(--w-shell); margin: 0 auto;
  padding: 12px 20px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--c-ink);
}
.brand:hover { text-decoration: none; color: var(--c-ink); }
.brand__mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(160deg, #2b86f9, #0f4cc1);
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 8px 24px rgba(31,122,248,.4);
  flex: 0 0 auto;
}
.brand__mark img { width: 36px; height: 36px; display: block; border-radius: 10px; object-fit: cover; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.005em; }
.brand__name b { color: var(--c-ink); }
.brand__name i { color: var(--c-accent-2); font-style: normal; }
.brand__tag  { display: block; font-size: 11px; color: var(--c-ink-3); letter-spacing: .14em; text-transform: uppercase; margin-top: 2px; }

.app-nav { display: none; }
.app-nav ul { display: flex; gap: 4px; align-items: center; }
.app-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 10px;
  color: var(--c-ink-2); font-weight: 600; font-size: 14px;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}
.app-nav a:hover, .app-nav a[aria-current="page"] {
  background: rgba(31,122,248,.10);
  color: var(--c-ink);
  text-decoration: none;
}
.app-nav .nav-cta {
  background: var(--c-accent);
  color: #fff;
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset, 0 10px 28px var(--c-accent-glow);
}
.app-nav .nav-cta:hover { background: var(--c-accent-2); color: #fff; }

.hamburger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--c-line-2);
  border-radius: 10px;
  color: var(--c-ink);
  position: relative;
  z-index: 300;
}
.hamburger:hover { background: rgba(31,122,248,.14); border-color: var(--c-line-3); }
.hamburger__bars { display: inline-block; width: 18px; height: 12px; position: relative; }
.hamburger__bars::before,
.hamburger__bars::after,
.hamburger__bars i {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: currentColor; border-radius: 2px;
}
.hamburger__bars::before { top: 0; }
.hamburger__bars i { top: 5px; display: block; }
.hamburger__bars::after { bottom: 0; }
.hamburger[aria-expanded="true"] .hamburger__bars::before { transform: translateY(5px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__bars i { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* drawer */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
  overflow: hidden;
}
.drawer.is-open { pointer-events: auto; visibility: visible; }
.drawer__scrim {
  position: absolute; inset: 0;
  background: rgba(2,6,14,.7);
  opacity: 0; transition: opacity var(--t-med);
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw);
  background: linear-gradient(180deg, #0c1a2e, #060c18);
  border-left: 1px solid var(--c-line-2);
  transition: clip-path var(--t-med), opacity var(--t-med), visibility var(--t-med);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 18px 18px 22px;
  box-shadow: -20px 0 60px rgba(0,0,0,.6);
  overflow-y: auto;
  overscroll-behavior: contain;
  clip-path: inset(0 0 0 100%);
  opacity: 0;
  visibility: hidden;
}
.drawer.is-open .drawer__panel { clip-path: inset(0 0 0 0); opacity: 1; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 18px; border-bottom: 1px solid var(--c-line); }
.drawer__title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--c-ink); }
.drawer__close {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--c-line-2);
  background: rgba(255,255,255,.04); color: var(--c-ink); display: grid; place-items: center;
}
.drawer__close:hover { background: rgba(31,122,248,.16); }
.drawer__nav { display: flex; flex-direction: column; gap: 2px; padding: 14px 0 4px; }
.drawer__nav a {
  padding: 12px 12px; border-radius: 10px;
  color: var(--c-ink); font-weight: 600; font-size: 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.drawer__nav a:hover, .drawer__nav a[aria-current="page"] { background: rgba(31,122,248,.12); text-decoration: none; }
.drawer__nav a[aria-current="page"] { color: var(--c-ink); }
.drawer__nav a span:last-child { color: var(--c-ink-3); font-size: 12px; }
.drawer__cta { margin-top: 14px; }
.drawer__cta a {
  display: grid; place-items: center; width: 100%;
  padding: 14px 18px; border-radius: 12px;
  background: var(--c-accent); color: #fff; font-weight: 700; text-align: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 12px 32px var(--c-accent-glow);
}
.drawer__cta a:hover { background: var(--c-accent-2); color: #fff; text-decoration: none; }
.drawer__legal { padding-top: 14px; border-top: 1px solid var(--c-line); display: flex; flex-wrap: wrap; gap: 10px 14px; }
.drawer__legal a { color: var(--c-ink-3); font-size: 12px; }

@media (min-width: 980px) {
  .app-nav { display: block; }
  .hamburger { display: none; }
}

/* ----------------------------------------------------------
   3. PRIMITIVES — chip, card, stat, button
   ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.005em;
  border: 0;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn--primary {
  background: var(--c-accent); color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 14px 36px var(--c-accent-glow);
}
.btn--primary:hover { background: var(--c-accent-2); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn--ghost {
  background: rgba(255,255,255,.04); color: var(--c-ink);
  border: 1px solid var(--c-line-2);
}
.btn--ghost:hover { background: rgba(31,122,248,.14); color: var(--c-ink); text-decoration: none; }
.btn--lg { padding: 16px 26px; font-size: 16px; border-radius: 14px; }
.btn--full { width: 100%; }
.btn--icon { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; }
.btn:focus-visible { outline: 2px solid var(--c-accent-2); outline-offset: 2px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: var(--c-ink-2);
  background: rgba(31,122,248,.10);
  border: 1px solid rgba(31,122,248,.32);
  text-transform: uppercase;
}
.chip--solid { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.chip--muted { background: rgba(255,255,255,.05); border-color: var(--c-line-2); color: var(--c-ink-3); }
.chip--pos { background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.4); color: #7eedc2; }
.chip--warn { background: rgba(246,185,75,.10); border-color: rgba(246,185,75,.4); color: #f8d18b; }
.chip i { width: 6px; height: 6px; border-radius: 999px; background: currentColor; display: inline-block; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: .18em;
  color: var(--c-accent-2);
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }

.panel {
  background: linear-gradient(180deg, var(--c-bg-1), var(--c-bg-2));
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.panel--raised { background: linear-gradient(180deg, var(--c-bg-2), var(--c-bg-1)); box-shadow: var(--shadow-2); border-color: var(--c-line-2); }

.divider { height: 1px; background: var(--c-line); margin: 36px 0; }

/* utility */
.hairline { height: 1px; background: var(--c-line); width: 100%; }
.shell { width: 100%; max-width: var(--w-shell); margin: 0 auto; padding: 0 20px; }
.prose-shell { max-width: var(--w-prose); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--c-ink-3); }
.dim { color: var(--c-ink-4); }
.mono { font-family: var(--font-mono); font-size: .9em; }
.eyebrow-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.metric { display: flex; align-items: baseline; gap: 6px; }
.metric b { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--c-ink); }
.metric small { color: var(--c-ink-3); font-size: 12px; }

/* ----------------------------------------------------------
   4. HOMEPAGE — BRAND APP PROFILE
   ---------------------------------------------------------- */
/* 4.1 hero — left = brand identity + fact strip + CTA, right = product mock */
.hero {
  position: relative;
  padding: 36px 0 12px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 80% 8%, rgba(31,122,248,.18), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(78,155,255,.10), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(20px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; gap: 28px; } }

.hero__copy h1 {
  font-size: clamp(2.15rem, 5.4vw, 3.85rem);
  line-height: 1.02;
  letter-spacing: -.025em;
}
.hero__copy h1 em { color: var(--c-accent-2); font-style: normal; }
.hero__sub { color: var(--c-ink-2); font-size: 17px; max-width: 56ch; margin-top: 18px; }

.fact-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px; margin-top: 28px;
}
@media (max-width: 700px) { .fact-strip { grid-template-columns: repeat(2, 1fr); } }
.fact {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid; gap: 4px;
}
.fact small { color: var(--c-ink-3); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.fact b { color: var(--c-ink); font-family: var(--font-display); font-weight: 700; font-size: 15px; }

.cta-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 28px;
}
.cta-row .btn { flex: 1 1 200px; }
.hero__copy .cta-row { max-width: 540px; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 22px;
  color: var(--c-ink-3); font-size: 12px;
}
.hero-trust span { display: inline-flex; gap: 8px; align-items: center; }
.hero-trust b { color: var(--c-ink-2); font-weight: 600; }

/* product phone mock — exposes the staged product photograph */
.product-mock {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 560px;
  margin-left: auto;
  border-radius: 20px;
  background: linear-gradient(180deg, #0e1a30, #060c18);
  border: 1px solid var(--c-line-2);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.product-mock__art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 4.2 product gallery — game screenshot rail */
.gallery {
  padding: 28px 0;
}
.gallery__head {
  display: flex; align-items: end; justify-content: space-between; gap: 16px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.gallery__head p { color: var(--c-ink-3); max-width: 50ch; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(180px, 24vw, 240px);
  gap: 14px; overflow-x: auto; padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-track { background: transparent; }
.rail::-webkit-scrollbar-thumb { background: var(--c-line-2); border-radius: 999px; }
.shot {
  scroll-snap-align: start;
  background: linear-gradient(180deg, var(--c-bg-1), var(--c-bg-2));
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 12px;
  display: grid; gap: 10px;
  transition: transform var(--t-fast), border-color var(--t-fast);
}
.shot:hover { transform: translateY(-2px); border-color: var(--c-line-3); }
.shot__art {
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  display: grid; place-items: center;
  overflow: hidden;
}
.shot__art img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.shot__name { color: var(--c-ink); font-weight: 600; font-size: 14px; }
.shot__meta { color: var(--c-ink-3); font-size: 12px; display: flex; justify-content: space-between; }
.shot--frame { padding: 0; overflow: hidden; }
.shot--frame .shot__art { aspect-ratio: 3 / 4; background: var(--c-bg-3); padding: 0; border-radius: 0; }
.shot--frame .shot__art img { object-fit: cover; border-radius: 0; }
.shot--frame .shot__name,
.shot--frame .shot__meta { padding: 10px 14px 14px; }

/* 4.3 features + setup + evidence — split sections */
.split { padding: 30px 0; }
.split__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 980px) { .split__grid { grid-template-columns: 1fr; } }
.split h2 { margin-bottom: 8px; }
.split p.lead { color: var(--c-ink-2); max-width: 60ch; }

.feature-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 18px; }
@media (max-width: 700px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: linear-gradient(180deg, var(--c-bg-1), var(--c-bg-2));
  border: 1px solid var(--c-line);
  border-radius: 14px;
  padding: 16px 18px;
  display: grid; gap: 6px;
}
.feature h3 { color: var(--c-ink); font-size: 16px; }
.feature p { color: var(--c-ink-2); font-size: 14px; margin: 0; }
.feature__icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(31,122,248,.10);
  border: 1px solid rgba(31,122,248,.32);
  display: grid; place-items: center;
  color: var(--c-accent-2);
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  margin-bottom: 4px;
}

/* directory overview — copy + editorial photo split */
.directory-overview { padding: 30px 0; }
.overview-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
  background: linear-gradient(180deg, var(--c-bg-1), var(--c-bg-2));
  border: 1px solid var(--c-line);
  border-radius: 18px;
  padding: 24px;
}
@media (max-width: 900px) { .overview-grid { grid-template-columns: 1fr; gap: 18px; padding: 20px; } }
.overview-grid__copy h2 { margin: 10px 0 12px; }
.overview-grid__copy p { color: var(--c-ink-2); margin: 0 0 12px; font-size: 15px; line-height: 1.65; }
.overview-grid__copy code {
  font-family: var(--font-mono); font-size: 13px;
  background: rgba(255,255,255,.04); border: 1px dashed var(--c-line-2);
  border-radius: 6px; padding: 1px 6px; color: var(--c-ink-2);
}
.overview-grid__art {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--c-line-2);
  background: var(--c-bg-3);
  aspect-ratio: 3 / 4;
  position: relative;
}
.overview-grid__art img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.overview-grid__art figcaption {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  padding: 8px 10px;
  background: rgba(6,12,24,.7);
  border: 1px solid var(--c-line-2);
  border-radius: 10px;
  color: var(--c-ink-3);
  font-size: 12px;
  line-height: 1.4;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* related-news — 3-up news grid mirroring .news-grid */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr; } }
.related-grid .news-card { height: 100%; }

/* step list */
.steps { counter-reset: step; display: grid; gap: 10px; }
.step {
  display: grid; grid-template-columns: 36px 1fr; gap: 14px;
  padding: 14px;
  background: linear-gradient(180deg, var(--c-bg-1), var(--c-bg-2));
  border: 1px solid var(--c-line);
  border-radius: 14px;
}
.step__num {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--c-accent);
  color: #fff; font-family: var(--font-display); font-weight: 700;
  display: grid; place-items: center;
  counter-increment: step;
}
.step__num::before { content: counter(step); }
.step h3 { font-size: 15px; color: var(--c-ink); }
.step p { font-size: 14px; color: var(--c-ink-2); margin: 4px 0 0; }
.step__code { font-family: var(--font-mono); font-size: 12px; color: var(--c-ink-3); background: rgba(255,255,255,.04); border: 1px dashed var(--c-line-2); border-radius: 8px; padding: 6px 10px; margin-top: 8px; display: inline-block; }

/* troubleshoot */
.trouble {
  display: grid; gap: 8px;
}
.trouble details {
  background: linear-gradient(180deg, var(--c-bg-1), var(--c-bg-2));
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 12px 14px;
}
.trouble summary {
  cursor: pointer; list-style: none;
  color: var(--c-ink); font-weight: 600; font-size: 15px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.trouble summary::-webkit-details-marker { display: none; }
.trouble summary::after { content: "+"; color: var(--c-accent-2); font-size: 18px; font-weight: 700; }
.trouble details[open] summary::after { content: "−"; }
.trouble details p { margin: 10px 0 0; color: var(--c-ink-2); font-size: 14px; }

/* 4.4 app directory preview */
.apps-preview { padding: 30px 0; }
.apps-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  margin-top: 18px;
}
@media (max-width: 1100px) { .apps-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 800px) { .apps-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .apps-grid { grid-template-columns: repeat(2, 1fr); } }
.app-card {
  background: linear-gradient(180deg, var(--c-bg-1), var(--c-bg-2));
  border: 1px solid var(--c-line);
  border-radius: 14px;
  padding: 14px 12px;
  display: grid; gap: 8px;
  text-decoration: none; color: var(--c-ink);
  transition: transform var(--t-fast), border-color var(--t-fast);
}
.app-card:hover { transform: translateY(-3px); border-color: var(--c-accent); text-decoration: none; color: var(--c-ink); }
.app-card__logo {
  aspect-ratio: 1 / 1; background: #fff; border-radius: 12px; padding: 8px;
  display: grid; place-items: center; overflow: hidden;
}
.app-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.app-card__name { color: var(--c-ink); font-weight: 700; font-size: 14px; line-height: 1.2; }
.app-card__cat { color: var(--c-ink-3); font-size: 12px; }
.app-card--featured { grid-column: span 2; background: linear-gradient(160deg, rgba(31,122,248,.16), rgba(15,28,48,.5)); border-color: rgba(31,122,248,.4); }
.app-card--featured .app-card__logo { background: #fff; }
.app-card--text .app-card__logo--text {
  background: linear-gradient(160deg, rgba(31,122,248,.14), rgba(15,28,48,.55));
  color: var(--c-ink);
  font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.01em;
  border: 1px solid var(--c-line-2);
}
@media (max-width: 480px) { .app-card--text .app-card__logo--text { font-size: 18px; } }

/* 4.5 FAQ */
.faq-block { padding: 30px 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
@media (max-width: 800px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-card {
  background: linear-gradient(180deg, var(--c-bg-1), var(--c-bg-2));
  border: 1px solid var(--c-line);
  border-radius: 14px;
  padding: 14px 16px;
}
.faq-card summary { cursor: pointer; list-style: none; color: var(--c-ink); font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.faq-card summary::-webkit-details-marker { display: none; }
.faq-card summary::after { content: "+"; color: var(--c-accent-2); font-weight: 700; font-size: 18px; }
.faq-card[open] summary::after { content: "−"; }
.faq-card p { margin: 10px 0 0; color: var(--c-ink-2); font-size: 14px; }

/* 4.6 news */
.news-block { padding: 30px 0; }
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 18px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  background: linear-gradient(180deg, var(--c-bg-1), var(--c-bg-2));
  border: 1px solid var(--c-line);
  border-radius: 14px;
  padding: 16px;
  text-decoration: none; color: var(--c-ink);
  display: grid; gap: 10px;
  transition: transform var(--t-fast), border-color var(--t-fast);
}
.news-card:hover { transform: translateY(-2px); border-color: var(--c-line-3); text-decoration: none; color: var(--c-ink); }
.news-card time { color: var(--c-ink-3); font-size: 12px; letter-spacing: .04em; }
.news-card h3 { color: var(--c-ink); font-size: 16px; line-height: 1.3; }
.news-card p { color: var(--c-ink-2); font-size: 14px; margin: 0; }
.news-card__more { color: var(--c-accent-2); font-size: 13px; font-weight: 600; }

/* 4.7 promos + VIP + support */
.promos { padding: 30px 0; }
.promo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 18px; }
@media (max-width: 900px) { .promo-grid { grid-template-columns: 1fr; } }
.promo {
  background: linear-gradient(160deg, rgba(31,122,248,.10), rgba(7,17,31,.7));
  border: 1px solid var(--c-line-2);
  border-radius: 16px;
  padding: 18px;
  display: grid; gap: 8px;
}
.promo small { color: var(--c-accent-2); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.promo h3 { color: var(--c-ink); font-size: 18px; }
.promo p { color: var(--c-ink-2); font-size: 14px; margin: 0; }
.promo .cta-row { margin-top: 8px; }
.promo .btn { flex: 1 1 auto; padding: 10px 14px; font-size: 14px; }

/* 4.8 legal mini */
.legal-mini { padding: 30px 0; border-top: 1px solid var(--c-line); }
.legal-mini__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: start; margin-top: 12px; }
@media (max-width: 900px) { .legal-mini__grid { grid-template-columns: 1fr; } }
.legal-mini ul { display: grid; gap: 8px; color: var(--c-ink-2); font-size: 14px; }
.legal-mini ul li { display: flex; gap: 10px; align-items: start; }
.legal-mini ul li::before { content: "•"; color: var(--c-accent-2); margin-top: 2px; }

/* ----------------------------------------------------------
   5. APP DIRECTORY (full listing)
   ---------------------------------------------------------- */
.directory-hero { padding: 40px 0 16px; }
.directory-hero h1 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); }
.directory-hero p { color: var(--c-ink-2); max-width: 60ch; margin-top: 12px; }
.directory-controls {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  margin-top: 20px;
}
@media (max-width: 700px) { .directory-controls { grid-template-columns: 1fr; } }
.search {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--c-line-2);
  border-radius: 12px;
}
.search input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  color: var(--c-ink); font: inherit; font-size: 15px;
}
.search input::placeholder { color: var(--c-ink-3); }
.search svg { color: var(--c-ink-3); flex: 0 0 auto; }
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-pills button {
  padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.04); color: var(--c-ink-2);
  border: 1px solid var(--c-line-2);
}
.filter-pills button[aria-pressed="true"] { background: rgba(31,122,248,.16); color: var(--c-ink); border-color: var(--c-accent); }

.directory-grid {
  display: grid; grid-template-columns: repeat(5,1fr); gap: 14px;
  margin-top: 22px;
}
@media (max-width: 1100px) { .directory-grid { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 800px) { .directory-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 480px) { .directory-grid { grid-template-columns: repeat(2,1fr); } }
.directory-grid .app-card .app-card__cat { display: block; }

.directory-empty {
  text-align: center; padding: 50px 20px;
  color: var(--c-ink-3); border: 1px dashed var(--c-line-2); border-radius: 14px;
  margin-top: 22px;
}

/* ----------------------------------------------------------
   6. APP DETAIL (ok-rummy)
   ---------------------------------------------------------- */
.detail-hero { padding: 32px 0 20px; }
.detail-hero__grid { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
@media (max-width: 760px) { .detail-hero__grid { grid-template-columns: 1fr; text-align: center; } }
.detail-hero__logo {
  width: 200px; height: 200px; border-radius: 28px;
  background: #fff; padding: 12px;
  display: grid; place-items: center;
  box-shadow: 0 24px 60px rgba(31,122,248,.25);
  margin: 0 auto;
}
.detail-hero__logo img { width: 100%; height: 100%; object-fit: contain; }
.detail-hero h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.detail-hero p { color: var(--c-ink-2); max-width: 60ch; margin-top: 12px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 14px; }
.detail-meta span { color: var(--c-ink-3); font-size: 13px; }
.detail-meta b { color: var(--c-ink); }

.detail-body { padding: 30px 0 50px; }
.detail-body__grid { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; }
@media (max-width: 980px) { .detail-body__grid { grid-template-columns: 1fr; } }

.detail-prose h2 { margin: 22px 0 10px; }
.detail-prose p { color: var(--c-ink-2); }
.detail-prose ul { display: grid; gap: 8px; margin: 12px 0 0; color: var(--c-ink-2); font-size: 15px; }
.detail-prose ul li { display: flex; gap: 10px; align-items: start; }
.detail-prose ul li::before { content: "▸"; color: var(--c-accent-2); margin-top: 2px; }

.detail-side { position: sticky; top: 84px; display: grid; gap: 14px; }
.detail-side .panel { padding: 18px; }
.detail-side h3 { font-size: 14px; color: var(--c-ink-3); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-bottom: 10px; }
.detail-side .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--c-line); font-size: 14px; }
.detail-side .row:last-child { border-bottom: 0; }
.detail-side .row span { color: var(--c-ink-3); }
.detail-side .row b { color: var(--c-ink); font-weight: 600; }
.detail-side .btn { width: 100%; }
.detail-side .muted-note { color: var(--c-ink-3); font-size: 12px; line-height: 1.5; }

/* ----------------------------------------------------------
   7. SETUP, FAQ, NEWS, LEGAL, POLICY PAGES
   ---------------------------------------------------------- */
.page-hero { padding: 40px 0 20px; border-bottom: 1px solid var(--c-line); }
.page-hero h1 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); }
.page-hero p { color: var(--c-ink-2); max-width: 60ch; margin-top: 12px; font-size: 16px; }

.breadcrumb { color: var(--c-ink-3); font-size: 13px; padding: 14px 0; }
.breadcrumb a { color: var(--c-ink-3); }
.breadcrumb a:hover { color: var(--c-ink-2); }
.breadcrumb span { margin: 0 6px; }

.page-body { padding: 30px 0 50px; }
.page-body h2 { margin: 22px 0 10px; }
.page-body h3 { margin: 18px 0 8px; }
.page-body p, .page-body li { color: var(--c-ink-2); font-size: 15px; line-height: 1.7; }
.page-body ul, .page-body ol { display: grid; gap: 8px; padding-left: 18px; }
.page-body ul li, .page-body ol li { list-style: disc; }
.page-body ol li { list-style: decimal; }
.page-body a { text-decoration: underline; text-underline-offset: 2px; }

.callout {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(31,122,248,.08);
  border: 1px solid rgba(31,122,248,.32);
  color: var(--c-ink-2);
  font-size: 14px;
}
.callout b { color: var(--c-ink); }
.callout--warn { background: rgba(246,185,75,.08); border-color: rgba(246,185,75,.4); }
.callout--neg { background: rgba(239,91,107,.10); border-color: rgba(239,91,107,.4); }

/* FAQ page */
.faq-page-grid { display: grid; gap: 10px; margin-top: 18px; }
.faq-page-grid details {
  background: linear-gradient(180deg, var(--c-bg-1), var(--c-bg-2));
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 14px 16px;
}
.faq-page-grid summary { cursor: pointer; list-style: none; color: var(--c-ink); font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.faq-page-grid summary::-webkit-details-marker { display: none; }
.faq-page-grid summary::after { content: "+"; color: var(--c-accent-2); font-weight: 700; font-size: 18px; }
.faq-page-grid details[open] summary::after { content: "−"; }
.faq-page-grid p { margin: 10px 0 0; color: var(--c-ink-2); font-size: 14px; line-height: 1.65; }

/* news list */
.news-list { display: grid; gap: 12px; margin-top: 18px; }
.news-list a {
  display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center;
  background: linear-gradient(180deg, var(--c-bg-1), var(--c-bg-2));
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 14px;
  text-decoration: none; color: var(--c-ink);
}
@media (max-width: 600px) { .news-list a { grid-template-columns: 1fr; } }
.news-list time { color: var(--c-ink-3); font-size: 12px; letter-spacing: .04em; }
.news-list h3 { color: var(--c-ink); font-size: 16px; line-height: 1.3; }
.news-list p { color: var(--c-ink-2); font-size: 14px; margin: 4px 0 0; }

/* article */
.article { max-width: 760px; margin: 0 auto; padding: 20px 20px 50px; }
.article h1 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); line-height: 1.1; }
.article .meta { display: flex; gap: 12px; align-items: center; margin-top: 14px; color: var(--c-ink-3); font-size: 13px; }
.article .hero-photo {
  margin: 22px 0; aspect-ratio: 16/9;
  background: linear-gradient(160deg, rgba(31,122,248,.18), rgba(7,17,31,.7));
  border: 1px solid var(--c-line-2);
  border-radius: 16px;
  display: grid; place-items: center;
  color: var(--c-ink-3);
  font-family: var(--font-display); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 12px;
  position: relative; overflow: hidden;
}
.article .hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 30% 30%, rgba(78,155,255,.18), transparent 60%);
  pointer-events: none;
}
.article .hero-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; position: relative; z-index: 1; }
.article .hero-photo span { position: relative; z-index: 2; padding: 6px 10px; border-radius: 999px; background: rgba(6,12,24,.55); color: #c2cee0; }
.article .hero-figure { margin: 22px 0; }
.article .hero-figure img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 16px; border: 1px solid var(--c-line-2); display: block; }
.article .hero-figure figcaption { color: var(--c-ink-3); font-size: 12px; margin-top: 8px; }

.page-hero .hero-figure { margin-top: 18px; }
.page-hero .hero-figure img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 16px; border: 1px solid var(--c-line-2); display: block; }
.page-hero .hero-figure figcaption { color: var(--c-ink-3); font-size: 13px; margin-top: 8px; }

.news-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: center; background: linear-gradient(180deg, var(--c-bg-1), var(--c-bg-2)); border: 1px solid var(--c-line); border-radius: 16px; padding: 18px; margin-top: 20px; }
@media (max-width: 700px) { .news-feature { grid-template-columns: 1fr; } }
.news-feature img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; border: 1px solid var(--c-line-2); display: block; }
.news-feature h3 { color: var(--c-ink); font-size: 18px; margin: 0 0 8px; }
.news-feature p { color: var(--c-ink-2); font-size: 14px; margin: 0; }
.news-feature time { color: var(--c-ink-3); font-size: 12px; letter-spacing: .04em; }
.article h2 { margin: 24px 0 8px; font-size: 22px; }
.article h3 { margin: 18px 0 6px; font-size: 17px; }
.article p, .article li { color: var(--c-ink-2); font-size: 15.5px; line-height: 1.7; }
.article ul, .article ol { display: grid; gap: 6px; padding-left: 22px; margin: 8px 0 14px; }
.article ul li, .article ol li { list-style: disc; }
.article ol li { list-style: decimal; }
.article a { text-decoration: underline; text-underline-offset: 2px; }

/* policy pages */
.policy { max-width: 780px; margin: 0 auto; padding: 20px 20px 50px; }
.policy h1 { font-size: clamp(1.85rem, 3.6vw, 2.4rem); }
.policy .updated { color: var(--c-ink-3); font-size: 13px; margin-top: 10px; }
.policy h2 { margin: 24px 0 8px; font-size: 20px; }
.policy h3 { margin: 16px 0 6px; font-size: 16px; }
.policy p, .policy li { color: var(--c-ink-2); font-size: 15px; line-height: 1.7; }
.policy ul, .policy ol { display: grid; gap: 6px; padding-left: 20px; }
.policy ul li, .policy ol li { list-style: disc; }
.policy ol li { list-style: decimal; }
.policy a { text-decoration: underline; text-underline-offset: 2px; }
.policy table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.policy table th, .policy table td { padding: 10px 12px; border: 1px solid var(--c-line); text-align: left; color: var(--c-ink-2); }
.policy table th { color: var(--c-ink); font-weight: 700; background: rgba(255,255,255,.04); }

/* ----------------------------------------------------------
   8. FOOTER
   ---------------------------------------------------------- */
.app-footer {
  margin-top: 60px;
  padding: 36px 0 28px;
  background: linear-gradient(180deg, var(--c-bg-1), var(--c-bg-0));
  border-top: 1px solid var(--c-line);
}
.app-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .app-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .app-footer__grid { grid-template-columns: 1fr; } }
.app-footer h4 { color: var(--c-ink-3); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.app-footer ul { display: grid; gap: 8px; }
.app-footer a { color: var(--c-ink-2); font-size: 14px; }
.app-footer a:hover { color: var(--c-ink); text-decoration: underline; }
.app-footer__brand p { color: var(--c-ink-3); font-size: 13px; max-width: 36ch; margin-top: 12px; }
.app-footer__legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--c-line); display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.app-footer__legal a { color: var(--c-ink-3); font-size: 12px; }
.app-footer__legal a:hover { color: var(--c-ink-2); }
.app-footer__legal small { color: var(--c-ink-4); font-size: 12px; }
.app-footer__legal button { background: transparent; border: 1px solid var(--c-line-2); color: var(--c-ink-2); border-radius: 8px; padding: 6px 12px; font-size: 12px; }
.app-footer__legal button:hover { color: var(--c-ink); border-color: var(--c-line-3); }

/* ----------------------------------------------------------
   9. MOBILE STICKY AFFILIATE CTA
   ---------------------------------------------------------- */
.sticky-cta {
  display: none;
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
  padding: 10px 12px;
  background: rgba(6,12,24,.94);
  border: 1px solid var(--c-line-2);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(31,122,248,.10) inset;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}
.sticky-cta__btn {
  display: grid; place-items: center; width: 100%;
  padding: 14px 16px;
  background: var(--c-accent); color: #fff; border-radius: 10px;
  font-weight: 800; font-size: 16px;
  text-decoration: none;
  box-shadow: 0 10px 28px var(--c-accent-glow);
  white-space: nowrap;
}
.sticky-cta__btn:hover { background: var(--c-accent-2); color: #fff; text-decoration: none; }
.sticky-cta__note { display: block; text-align: center; margin-top: 6px; font-size: 11px; color: var(--c-ink-3); }

@media (max-width: 760px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 96px; }
}
@media (min-width: 761px) {
  .sticky-cta { display: none; }
}

/* ----------------------------------------------------------
   10. COOKIE CONSENT
   ---------------------------------------------------------- */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 95;
  background: rgba(7, 17, 31, .98);
  border: 1px solid var(--c-line-2);
  border-radius: 14px;
  padding: 16px 18px;
  display: grid; gap: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  max-width: 720px; margin: 0 auto;
  transform: translateY(150%); transition: transform var(--t-slow);
}
.consent.is-visible { transform: translateY(0); }
.consent h3 { color: var(--c-ink); font-size: 16px; }
.consent p { color: var(--c-ink-2); font-size: 13px; margin: 0; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent__actions .btn { flex: 1 1 auto; padding: 10px 14px; font-size: 14px; }
.consent__settings { background: rgba(255,255,255,.04); border: 1px solid var(--c-line-2); border-radius: 12px; padding: 12px; display: grid; gap: 10px; }
.consent__settings label { display: flex; align-items: center; gap: 10px; color: var(--c-ink-2); font-size: 14px; }
.consent__settings input[type=checkbox] { accent-color: var(--c-accent); width: 16px; height: 16px; }
.consent__settings small { color: var(--c-ink-3); font-size: 12px; display: block; margin-left: 26px; }
@media (min-width: 761px) {
  .consent { left: auto; right: 24px; bottom: 24px; max-width: 480px; }
  .consent.is-visible { transform: none; }
}
