/* ============================================================
   rs9 — fantasyrs9.com
   Light-product-desk design system
   Palette: soft-green canvas, crisp white surface, ice-blue accent (#275FC7)
   Typography: Inter (technical-grotesk UI)
   ============================================================ */

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
body { overflow-x: clip; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }

/* Tokens */
:root {
  /* Surface */
  --bg-page: #F4F8F3;
  --bg-page-2: #ECF3EB;
  --bg-band: #E5EFE3;
  --bg-surface: #FFFFFF;
  --bg-surface-2: #F8FBF6;
  --bg-deep: #243B2A;
  /* Ink */
  --ink-1: #1A2B22;
  --ink-2: #3D5246;
  --ink-3: #6B7D72;
  --ink-4: #95A39A;
  --ink-on-deep: #F0F5EF;
  --ink-on-deep-2: #B8C9BD;
  /* Accent (ice-blue trust) */
  --accent: #275FC7;
  --accent-dk: #1B4A9D;
  --accent-soft: #E2ECFB;
  /* Brand */
  --brand-green: #3E7A4E;
  --brand-green-2: #5F9E6E;
  --brand-green-soft: #D8E8DB;
  /* Status */
  --warn: #B8462E;
  --warn-soft: #F4DCD4;
  /* Lines */
  --line: #D7E2D3;
  --line-2: #C2D3BC;
  --line-strong: #A6BAA0;
  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Menlo, monospace;
  --fs-h1: clamp(34px, 5.2vw, 56px);
  --fs-h2: clamp(26px, 3.6vw, 36px);
  --fs-h3: clamp(20px, 2.4vw, 24px);
  --fs-body: 17px;
  --fs-sm: 14px;
  --fs-xs: 12px;
  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-body: 1.65;
  /* Layout */
  --max: 1200px;
  --max-wide: 1320px;
  --header-h: 64px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-1);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   Header & Navigation
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 250;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  height: var(--header-h);
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-green-2), var(--brand-green));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--ink-1); }
.brand-tag { font-size: var(--fs-xs); color: var(--ink-3); margin-top: -2px; letter-spacing: 0.02em; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  flex-wrap: nowrap;
}
.primary-nav a {
  padding: 8px 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.primary-nav a:hover { background: var(--bg-surface-2); color: var(--ink-1); }
.primary-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

.header-cta { display: flex; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--r-md); font-weight: 700; font-size: 14px; line-height: 1; transition: transform 0.12s, background 0.15s, box-shadow 0.15s; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(39, 95, 199, 0.22); }
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--bg-surface-2); color: var(--ink-1); }
.btn-large { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* Hamburger */
.hamburger { display: none; width: 40px; height: 40px; border-radius: var(--r-sm); align-items: center; justify-content: center; background: var(--bg-surface-2); z-index: 300; }
.hamburger span { display: block; width: 18px; height: 2px; background: var(--ink-1); border-radius: 2px; position: relative; transition: background 0.15s; }
.hamburger span::before, .hamburger span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink-1); border-radius: 2px; transition: transform 0.2s; }
.hamburger span::before { top: -6px; }
.hamburger span::after { top: 6px; }
.hamburger[aria-expanded="true"] { background: var(--accent); }
.hamburger[aria-expanded="true"] span { background: transparent; }
.hamburger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); background: #fff; }
.hamburger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); background: #fff; }

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 92vw);
  height: 100dvh;
  background: var(--bg-surface);
  border-left: 1px solid var(--line);
  box-shadow: -10px 0 30px rgba(0,0,0,0.08);
  padding: calc(var(--header-h) + var(--s-4)) var(--s-5) var(--s-5);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.25s;
  z-index: 280;
  display: none;
}
.mobile-drawer[data-open="true"] { display: block; transform: translateX(0); }
.mobile-drawer[data-open="false"] { display: none; }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer nav a { padding: 12px 14px; border-radius: var(--r-md); color: var(--ink-1); font-size: 16px; font-weight: 500; }
.mobile-drawer nav a:hover, .mobile-drawer nav a[aria-current="page"] { background: var(--bg-surface-2); color: var(--accent); }
.mobile-drawer .drawer-cta { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }

/* ===========================
   Layout helpers
   =========================== */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--s-5); }
.wrap-wide { width: 100%; max-width: var(--max-wide); margin: 0 auto; padding: 0 var(--s-5); }
.section { padding: var(--s-8) 0; }
.section-tight { padding: var(--s-7) 0; }
.section-deep { padding: var(--s-9) 0; }
.band { background: var(--bg-band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-soft { background: var(--bg-page-2); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-green); margin-bottom: 12px; }
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--brand-green); }
.eyebrow-muted { color: var(--ink-3); }
.eyebrow-muted::before { background: var(--ink-4); }

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: -0.025em; font-weight: 800; color: var(--ink-1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-snug); letter-spacing: -0.02em; font-weight: 700; color: var(--ink-1); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); letter-spacing: -0.015em; font-weight: 700; color: var(--ink-1); }
h4 { font-size: 17px; font-weight: 700; color: var(--ink-1); }
p { color: var(--ink-2); }
.lede { font-size: clamp(17px, 1.8vw, 19px); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }
.tiny { font-size: var(--fs-xs); }
.mono { font-family: var(--font-mono); }
.break-word { overflow-wrap: anywhere; word-break: normal; }

a { transition: color 0.15s; }
a:hover { color: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ===========================
   Hero (asymmetric-split)
   =========================== */
.hero {
  position: relative;
  background: var(--bg-page);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/img/backgrounds/band-soft-green.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.65;
  z-index: 0;
}
.hero-wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: var(--s-7) var(--s-5) var(--s-8);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  min-height: 560px;
}
.brand-app-profile {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.brand-app-identity {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
}
.brand-app-icon {
  width: 96px;
  height: 96px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--brand-green-2), var(--brand-green));
  display: grid;
  place-items: center;
  box-shadow: 0 18px 40px rgba(62, 122, 78, 0.18), 0 0 0 6px rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}
.brand-app-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }
.brand-app-meta { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.brand-app-name { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.03em; color: var(--ink-1); line-height: 1; }
.brand-app-tag { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.brand-app-cat { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--brand-green-soft); color: var(--brand-green); border-radius: 100px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; align-self: flex-start; }

.brand-app-overview { color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 56ch; }
.brand-app-install { display: flex; gap: 10px; flex-wrap: wrap; }
.brand-app-install .btn-primary { padding: 14px 22px; font-size: 15px; }

/* Modular score strip */
.brand-app-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: var(--s-3);
}
.fact-module {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.fact-module::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-green);
  opacity: 0.7;
}
.fact-module-label { font-size: 11px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.fact-module-value { font-size: 17px; color: var(--ink-1); font-weight: 700; letter-spacing: -0.01em; }

/* Hero gallery rail */
.hero-rail {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hero-rail .shot {
  border-radius: var(--r-lg);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.2s;
}
.hero-rail .shot:hover { transform: translateY(-2px); }
.hero-rail .shot img { border-radius: 12px; }
.hero-rail .shot:nth-child(1) { transform: translateY(0); }
.hero-rail .shot:nth-child(2) { transform: translateY(28px); }
.hero-rail .shot:nth-child(3) { transform: translateY(-12px); }
.hero-rail .shot:nth-child(4) { transform: translateY(14px); }

/* ===========================
   HOT shelf
   =========================== */
.hot-shelf {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.hot-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s, box-shadow 0.15s;
  text-align: center;
  align-items: center;
}
.hot-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,0.06); }
.hot-art { width: 100%; aspect-ratio: 4/3; border-radius: var(--r-md); overflow: hidden; background: var(--bg-surface-2); display: grid; place-items: center; }
.hot-art img { width: 100%; height: 100%; object-fit: cover; }
.hot-label { font-size: 16px; font-weight: 700; color: var(--ink-1); }
.hot-intent { font-size: 13px; color: var(--ink-3); }
.hot-cta { font-size: 13px; color: var(--accent); font-weight: 700; padding: 6px 14px; border-radius: 100px; background: var(--accent-soft); }

/* ===========================
   YONO + Mixed app rows
   =========================== */
.app-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.15s, transform 0.12s;
}
.app-row:hover { border-color: var(--line-strong); transform: translateX(2px); }
.app-row + .app-row { margin-top: 8px; }
.app-thumb { width: 80px; height: 80px; border-radius: var(--r-md); overflow: hidden; background: var(--bg-surface-2); border: 1px solid var(--line); }
.app-thumb img { width: 100%; height: 100%; object-fit: cover; }
.app-info { min-width: 0; }
.app-name { font-size: 16px; font-weight: 700; color: var(--ink-1); }
.app-meta { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.app-provider { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; background: var(--bg-surface-2); color: var(--ink-2); border-radius: 100px; font-size: 11px; font-weight: 600; }
.app-row .btn { padding: 8px 16px; font-size: 13px; }

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.app-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.12s, border-color 0.15s;
}
.app-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.app-card .app-thumb { width: 100%; height: 100px; }
.app-card .app-name { font-size: 14px; }

/* ===========================
   Modular feature grid
   =========================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
}
.feature-title { font-size: 17px; font-weight: 700; color: var(--ink-1); }
.feature-desc { font-size: 14px; color: var(--ink-3); line-height: 1.5; }

/* ===========================
   Stats / score strip (alt)
   =========================== */
.score-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.score-strip .fact-module { background: var(--bg-surface-2); }

/* ===========================
   Steps
   =========================== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  counter-reset: step;
}
.step {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4);
  position: relative;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  top: -12px;
  left: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(39, 95, 199, 0.3);
}
.step-title { font-size: 15px; font-weight: 700; color: var(--ink-1); margin-top: 8px; }
.step-desc { font-size: 13px; color: var(--ink-3); margin-top: 4px; line-height: 1.5; }

/* ===========================
   Tables
   =========================== */
.data-table {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  border-collapse: collapse;
  overflow: hidden;
  font-size: 14px;
}
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.data-table th { background: var(--bg-surface-2); color: var(--ink-2); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: var(--bg-surface-2); }

/* ===========================
   FAQ
   =========================== */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-1);
  background: transparent;
}
.faq-q::after {
  content: '+';
  font-size: 22px;
  color: var(--ink-3);
  font-weight: 300;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); color: var(--accent); }
.faq-a {
  padding: 0 18px 16px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
  display: none;
}
.faq-q[aria-expanded="true"] + .faq-a { display: block; }

/* ===========================
   News / Changelog
   =========================== */
.news-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--s-4);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4);
  align-items: start;
}
.news-card .news-thumb { width: 200px; aspect-ratio: 5/3; border-radius: var(--r-sm); overflow: hidden; }
.news-card .news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card h3 { font-size: 18px; }
.news-card time { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.news-card p { font-size: 14px; margin-top: 6px; }
.news-card .tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tag-release { background: var(--brand-green-soft); color: var(--brand-green); }
.tag-feature { background: var(--accent-soft); color: var(--accent); }
.tag-responsible { background: var(--warn-soft); color: var(--warn); }

.changelog-table { font-family: var(--font-mono); font-size: 13px; }
.changelog-table td { padding: 10px 14px; }
.changelog-table .version { color: var(--brand-green); font-weight: 700; }

/* ===========================
   Footer
   =========================== */
.site-footer {
  background: var(--bg-deep);
  color: var(--ink-on-deep);
  padding: var(--s-8) 0 var(--s-5);
  margin-top: var(--s-9);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: var(--s-5);
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.footer-grid h5 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-on-deep);
  margin-bottom: 14px;
}
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a { color: var(--ink-on-deep-2); font-size: 14px; }
.footer-grid ul li a:hover { color: #fff; }
.footer-grid p { color: var(--ink-on-deep-2); font-size: 14px; line-height: 1.5; }
.footer-bottom {
  max-width: var(--max-wide);
  margin: var(--s-6) auto 0;
  padding: var(--s-5) var(--s-5) 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  font-size: 12px;
  color: var(--ink-on-deep-2);
}
.cookie-bar {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: 0 14px 40px rgba(0,0,0,0.18);
  z-index: 220;
  display: none;
}
.cookie-bar[data-shown="true"] { display: block; }
.cookie-bar p { font-size: 14px; margin-bottom: 12px; }
.cookie-bar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-bar .btn { padding: 8px 16px; font-size: 13px; }

/* ===========================
   Page hero (sub-pages)
   =========================== */
.page-lead {
  position: relative;
  padding: var(--s-7) 0 var(--s-6);
  border-bottom: 1px solid var(--line);
  background: var(--bg-page);
  overflow: hidden;
}
.page-lead::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/assets/img/backgrounds/band-soft-green.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}
.page-lead > .wrap-wide { position: relative; z-index: 1; }
.page-lead h1 { max-width: 22ch; }
.page-lead .lede { margin-top: 12px; }
.breadcrumb {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--ink-1); font-weight: 600; }

/* ===========================
   Mobile sticky install CTA
   =========================== */
.sticky-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-surface);
  border-top: 1px solid var(--line);
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(0,0,0,0.06);
  display: none;
}
.sticky-mobile-cta .btn { width: 100%; }
body.has-sticky { padding-bottom: 80px; }

/* ===========================
   Mobile responsive
   =========================== */
@media (max-width: 1023px) {
  .primary-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 960px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    padding: var(--s-6) var(--s-5) var(--s-7);
    min-height: auto;
  }
  .hero-rail { grid-template-columns: 1fr 1fr; }
  .hot-shelf { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .news-card { grid-template-columns: 1fr; }
  .news-card .news-thumb { width: 100%; }
  .sticky-mobile-cta[data-show="mobile"] { display: block; }
}

@media (max-width: 540px) {
  .hot-shelf { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-rail .shot:nth-child(2), .hero-rail .shot:nth-child(4) { transform: translateY(0); }
  .brand-app-icon { width: 72px; height: 72px; border-radius: 20px; }
  .brand-app-name { font-size: 36px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-app-facts { grid-template-columns: 1fr 1fr; }
}

/* ===========================
   Article page
   =========================== */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--s-7) var(--s-5) var(--s-8);
}
.article h1 { font-size: clamp(28px, 4.5vw, 44px); margin-bottom: 16px; }
.article .meta { font-size: 14px; color: var(--ink-3); margin-bottom: var(--s-5); display: flex; gap: 12px; flex-wrap: wrap; }
.article h2 { font-size: 24px; margin: var(--s-6) 0 12px; }
.article h3 { font-size: 19px; margin: var(--s-5) 0 8px; }
.article p { margin-bottom: var(--s-4); }
.article ul, .article ol { margin: var(--s-4) 0; padding-left: var(--s-5); }
.article ul li, .article ol li { margin-bottom: 8px; list-style: disc; color: var(--ink-2); }
.article ol li { list-style: decimal; }
.article figure { margin: var(--s-5) 0; }
.article figure img { border-radius: var(--r-md); }
.article figcaption { font-size: 13px; color: var(--ink-3); margin-top: 8px; text-align: center; }
.article blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 16px;
  margin: var(--s-5) 0;
  background: var(--accent-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--ink-2);
  font-style: normal;
}

/* ===========================
   Utilities
   =========================== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.flex-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spacer-2 { height: 8px; } .spacer-3 { height: 12px; } .spacer-4 { height: 16px; } .spacer-6 { height: 32px; }
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

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

/* ===========================
   Accessibility
   =========================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}


/* Route-specific raster editorial media */
.editorial-visual { margin:0; overflow:hidden; border:1px solid var(--line); border-radius:16px; background:var(--bg-surface); }
.editorial-visual img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; }
.editorial-visual figcaption { padding:12px 16px; color:var(--ink-3); font-size:13px; }
.editorial-visual-section { padding-top:var(--s-5); }
.grid-2 > div > img, .grid-2 figure > img { width:100%; aspect-ratio:4/3; object-fit:cover; }
