/* ---------- Design tokens (white + ink/brand layout pair) ---------- */
:root {
  /* Layout pair: paper (white) + panel (ink → brand), like xuperapk.tv white + #27204a/#3d365c */
  --ink: #151c26;
  --ink-soft: #1e2733;
  --panel: #151c26;
  --panel-mid: #1a2740;
  --paper: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --bg-raise: #ffffff;
  --bg-tint: #eef2f8;
  --text: #151c26;
  --text-mute: #5a6472;
  --line: #d8dee8;
  --brand: #1a56db;
  --brand-ink: #1443b0;
  --brand-soft: #e8effc;
  --accent: #1a56db;
  --accent-ink: #1443b0;
  --download: #1a56db;
  --download-ink: #1443b0;
  --warn-bg: #fff8e8;
  --warn-line: #ecd089;
  --warn-ink: #6d5210;
  --danger-bg: #fdf2f1;
  --danger-line: #ebc0bb;
  --danger-ink: #8f2f24;
  --shadow: none;
  --radius: 8px;
  --wrap: 1080px;
  --ff: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 60px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff;
  padding: 10px 14px; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.head-inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-img {
  display: block; width: auto; height: 40px;
  border-radius: 0; box-shadow: none; background: transparent;
}
.foot-logo { height: 48px; margin-bottom: 14px; border-radius: 0; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 15px;
}
.logo-text { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.logo-text strong { color: var(--brand); }
.nav { margin-left: auto; display: flex; gap: 0; flex-wrap: wrap; align-items: center; }
.nav a {
  color: var(--text-mute); padding: 8px 11px; border-radius: 6px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
}
.nav a:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
.nav a[aria-current='page'] { color: var(--brand); background: var(--brand-soft); }
.nav-drop { position: relative; }
.nav-drop-btn {
  color: var(--text-mute); padding: 8px 11px; border-radius: 6px; border: 0;
  background: transparent; font: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
}
.nav-drop-btn:hover, .nav-drop-btn[aria-expanded='true'] {
  background: var(--bg-soft); color: var(--text);
}
.nav-drop-btn::after { content: ' ▾'; font-size: 10px; }
.nav-drop-menu {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; min-width: 180px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 6px; box-shadow: 0 10px 28px rgba(15,23,42,.08); z-index: 60;
}
.nav-drop-btn[aria-expanded='true'] + .nav-drop-menu { display: flex; flex-direction: column; }
.nav-drop-menu a { display: block; padding: 10px 12px; border-radius: 6px; }
.foot-grid-compact { grid-template-columns: 1.5fr repeat(3, 1fr); }
@media (max-width: 960px) { .foot-grid-compact { grid-template-columns: repeat(2, 1fr); } }
.blog-list { display: grid; gap: 16px; list-style: none; margin: 24px 0 0; padding: 0; }
.blog-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 18px 16px;
  background: var(--paper); border-left: 3px solid var(--brand);
}
.blog-card h2 { margin: 0 0 8px; font-size: 1.2rem; }
.blog-meta { margin: 0 0 8px; color: var(--text-mute); font-size: 12.5px; }
.blog-post .prose { max-width: none; margin-inline: 0; }
.kicker {
  margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brand);
}
.legal-updated { margin: 8px 0 20px; font-size: 13.5px; color: var(--text-mute); }
.related-policies {
  margin-top: 36px; padding: 20px 18px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--bg-tint);
}
.related-policies h2 { margin: 0 0 12px; font-size: 1.15rem; }
.related-policies ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 560px) { .related-policies ul { grid-template-columns: 1fr; } }
.related-policies a { font-size: 14px; font-weight: 600; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.soft-redirect { padding: 48px 0; }
.soft-redirect .btn { width: auto; min-width: 220px; }


/* Homepage AEO blocks — white body; color lives in hero panel + footer, not section tints */
.home-shell { padding-top: 4px; }
.home-shell .article-main > section {
  margin-bottom: 0;
  background: transparent;
  border-block: 0;
  padding-inline: 0;
  margin-inline: 0;
  padding-block: 22px;
}
.home-shell .article-main > section.tint,
.home-shell .article-main > section.features-short,
.home-shell .article-main > section.showcase-section,
.home-shell .article-main > section.pros-section,
.home-shell .article-main > section.faq-home {
  background: transparent;
  border-block: 0;
}
.home-shell .article-main > section.features-short,
.home-shell .article-main > section.showcase-section {
  padding-block: 28px;
}
.quick-summary {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft, #f8fafc);
  padding: 16px 18px 14px;
  margin: 0 0 14px;
  padding-block: 16px !important;
}
.quick-summary h2 { margin: 0 0 8px; font-size: 1.25rem; }
.quick-summary p { margin: 0 0 10px; color: var(--text-mute); font-size: 0.95rem; line-height: 1.6; }
.quick-summary ul { margin: 0; padding-left: 1.15rem; color: var(--text-mute); font-size: 0.94rem; line-height: 1.5; }
.quick-summary li + li { margin-top: 4px; }
.quick-summary code {
  font-size: 0.88em;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.takeaways code,
.article-main code,
.article-main pre {
  word-break: break-word;
  overflow-wrap: anywhere;
}
/* HBK author card — end of blog main column (ps2hub AuthorCard parity on light theme) */
.author-box {
  position: relative;
  margin: 40px 0 20px;
  padding: 22px 22px 20px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft, #f4f6f9) 100%);
  box-shadow: 0 10px 28px rgba(21, 28, 38, 0.07);
  scroll-margin-top: calc(var(--header-h) + 16px);
  overflow: hidden;
}
.author-box::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--brand);
}
.author-box-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}
.author-box-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 12px;
}
.author-box-avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #3d7a6a;
  flex-shrink: 0;
}
.author-box-name {
  margin: 0 !important;
  font-size: 1.15rem !important;
  line-height: 1.3;
  color: var(--ink);
}
.author-box-fullname { font-weight: 500; color: var(--text-mute); }
.author-box-role {
  margin: 4px 0 0 !important;
  font-size: 0.9rem;
  color: var(--text-mute);
}
.author-box-bio {
  margin: 14px 0 0 !important;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-mute);
}
.author-box-link {
  margin: 14px 0 0 !important;
  font-size: 0.95rem;
}
.author-box-link a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent);
}
.blog-post {
  padding-bottom: 1.5rem;
}
@media (max-width: 1023px) {
  /* Keep author card clear of the fixed mobile download bar */
  .blog-post {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }
}
.direct-answer { margin: 0 0 8px; }
.direct-answer .kicker { margin-bottom: 6px; }
.direct-answer h1 { margin-top: 0; }
.direct-answer > p:last-child {
  margin: 12px 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-mute);
  max-width: 70ch;
}
.takeaways {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 16px 18px 14px;
  margin: 0 0 14px;
  padding-block: 16px !important;
}
.takeaways h2 { margin: 0 0 8px; font-size: 1.2rem; }
.takeaways ul { margin: 0; padding-left: 1.15rem; color: var(--text-mute); font-size: 0.94rem; line-height: 1.5; }
.takeaways li + li { margin-top: 5px; }
.page-toc {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 12px;
  background: #fff;
  padding-block: 12px !important;
}
.page-toc-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.page-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2;
  column-gap: 28px;
  font-size: 0.92rem;
  line-height: 1.55;
}
.page-toc li { break-inside: avoid; margin-bottom: 4px; }
.page-toc a { color: var(--text-mute); }
.page-toc a:hover { color: var(--brand); }
@media (max-width: 640px) {
  .page-toc ol { columns: 1; }
}
.verdict {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft, #f8fafc) 100%);
  padding: 24px 22px;
  margin: 12px 0 8px;
}
.verdict h2 { margin: 0 0 12px; font-size: 1.35rem; }
.verdict p { margin: 0 0 12px; color: var(--text-mute); line-height: 1.65; }
.verdict p:last-child { margin-bottom: 0; }
#quick-summary, #takeaways, #who, #whats-new, #catalog-vs-mod, #tv, #how-to-use, #safety, #optimization, #verdict, #pros-cons {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* OnStream-style article + sidebar */
.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
  gap: 32px;
  align-items: start;
  padding-block: 20px 36px;
}
.article-main,
.article-sidebar {
  min-width: 0;
  max-width: 100%;
}
.home-shell.article-shell { padding-block: 12px 32px; }
.article-main > section > .wrap,
.article-main > .wrap {
  max-width: none;
  padding-inline: 0;
  margin: 0;
}
.article-main .prose { max-width: none; }
.article-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.side-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  padding: 18px 16px 16px 18px;
  box-shadow: 0 8px 24px rgba(21, 28, 38, 0.06);
  overflow: hidden;
}
.side-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--brand);
}
.side-card-alt::before { background: var(--ink); }
.side-card-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.side-card ul { list-style: none; margin: 0; padding: 0; }
.side-card li + li { margin-top: 2px; }
.side-card a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-mute);
}
.side-card a:hover { background: var(--bg-soft); color: var(--brand); text-decoration: none; }
.side-link-title { display: block; font-size: 13.5px; font-weight: 600; color: inherit; line-height: 1.35; }
.side-link-note { display: block; font-size: 11.5px; color: var(--text-mute); margin-top: 2px; }
.side-card-more { margin: 12px 10px 0; font-size: 13px; }
.side-card-more a { padding: 0; font-weight: 600; color: var(--brand); }
@media (max-width: 900px) {
  .article-shell { grid-template-columns: 1fr; gap: 24px; }
  .article-sidebar { position: static; }
}
#download, #install, #faq, #features, #quick-info { scroll-margin-top: calc(var(--header-h) + 16px); }
.hero .app-heading h1 { font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.35rem); max-width: 18ch; }
.features-short { padding: 28px 0 20px; }
.features-short-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.features-short-grid li {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 14px 16px; background: #fff;
  display: flex; flex-direction: column; gap: 6px;
}
.features-short-grid strong { font-size: 0.98rem; letter-spacing: -0.01em; }
.features-short-grid span { color: var(--text-mute); font-size: 0.92rem; line-height: 1.45; }
@media (max-width: 960px) {
  .features-short-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .features-short-grid { grid-template-columns: 1fr; }
}
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; margin-left: 8px;
  border: 1px solid var(--line); border-radius: 6px; padding: 2px; flex-shrink: 0;
}
.lang-switch a {
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--text-mute); padding: 6px 9px; border-radius: 4px; text-decoration: none;
}
.lang-switch a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.lang-switch a[aria-current='true'] { color: #fff; background: var(--brand); }
.nav-toggle {
  margin-left: auto; display: none; width: 40px; height: 40px; border: 1px solid var(--line);
  background: var(--bg); border-radius: 6px; cursor: pointer; padding: 0;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 16px; height: 2px; background: var(--text); }
@media (max-width: 900px) {
  .nav-toggle { display: flex; margin-left: auto; }
  .lang-switch { margin-left: 0; order: 3; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 8px 12px 12px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 15px; }
  .nav-drop { width: 100%; }
  .nav-drop-btn { width: 100%; text-align: left; padding: 12px; font-size: 15px; }
  .nav-drop-menu {
    position: static; display: none; box-shadow: none; border: 0; padding: 0 0 0 12px;
  }
  .nav-drop-btn[aria-expanded='true'] + .nav-drop-menu { display: flex; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs { border-bottom: 1px solid var(--line); background: #ffffff; font-size: 13px; }
.crumbs .wrap { padding-block: 9px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.crumbs a { color: var(--text-mute); }
.crumbs span[aria-current] { color: var(--text); font-weight: 600; }
.crumbs .sep { color: #b0b6c1; }

/* ---------- Sections & typography ---------- */
section { padding-block: 28px; }
@media (min-width: 768px) { section { padding-block: 36px; } }
section.tint { background: var(--bg-tint); border-block: 1px solid var(--line); }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.25rem); }
h2 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem); margin-top: 1.35em; }
h3 { font-size: 1.05rem; margin-top: 1.2em; }
h2:first-child, h3:first-child { margin-top: 0; }
p, ul, ol { margin: 0 0 0.9em; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: 0.35em; }
li::marker { color: var(--text-mute); }
.lead { font-size: 1.05em; color: var(--text-mute); max-width: 62ch; }
.prose { max-width: 68ch; }
.prose h2, .prose h3 { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- Hero (layout-level two-color: white + ink/brand panel) ---------- */
.hero {
  position: relative;
  padding-block: 40px 44px;
  color: var(--text);
  background: var(--paper);
  border-bottom: 0;
  overflow: hidden;
}
/* Angled brand panel behind media — inspired by xuperapk.tv #home_bg */
.hero-shape {
  display: block;
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: min(62vw, 980px);
  height: 26rem;
  top: -12rem;
  right: -4%;
  transform: rotate(118deg);
  border-radius: 2.75rem;
  opacity: 0.92;
  background: linear-gradient(119deg, var(--panel) 0%, var(--panel) 34%, var(--brand) 100%);
  overflow: hidden;
}
.hero .wrap {
  position: relative;
  z-index: 1;
}
.hero-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 40px; align-items: center; }
.hero-copy { max-width: 560px; }
.app-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.app-heading h1 { margin: 0; font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3rem); letter-spacing: -0.03em; }
.app-heading .eyebrow {
  display: inline-block; margin-top: 6px;
  color: var(--text); background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 10px; font-size: 12px; letter-spacing: .04em;
}
.app-icon {
  position: relative; width: auto; height: 52px; flex: 0 0 auto;
  display: block; border-radius: 0; overflow: visible; padding: 0; border: 0;
  box-shadow: none; background: transparent;
}
.app-icon img { width: auto; height: 52px; object-fit: contain; display: block; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 2px; }
.hero-actions .btn + .btn { margin-top: 0; }
.hero .hero-primary {
  width: auto; min-width: 220px; min-height: 52px; font-size: 15px;
  background: linear-gradient(135deg, var(--panel-mid) 0%, var(--panel) 55%, var(--brand-ink) 100%);
  box-shadow: 0 8px 22px rgba(21, 28, 38, 0.22);
}
.hero .hero-primary:hover {
  background: linear-gradient(135deg, var(--panel) 0%, var(--brand-ink) 100%);
}
.hero .hero-secondary {
  width: auto; min-width: 0; min-height: 52px;
  background: var(--paper); color: var(--panel); border: 2px solid var(--panel);
}
.hero .hero-secondary:hover {
  background: var(--bg-soft); color: var(--panel); text-decoration: none;
}
.hero-update { margin: 10px 0 0; color: var(--text-mute); font-size: 13px; }

/* Compact antivirus reminder row under CTAs (download-page polish) */
.scanner-badges {
  margin-top: 12px;
  max-width: 420px;
}
.scanner-badges-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.scanner-badges ul {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px 8px;
  align-items: start;
  justify-items: center;
}
.scanner-badges li {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 4.25rem;
  border: 0;
  background: transparent;
  overflow: visible;
}
.scanner-badge-icon {
  display: flex; height: 34px; align-items: center; justify-content: center;
}
.scanner-badges img {
  width: auto; height: 34px; max-width: 52px; object-fit: contain; display: block;
}
.scanner-badge-name {
  text-align: center; font-size: 10px; font-weight: 600; line-height: 1.1; color: var(--text-mute);
}
.scanner-badges-note {
  margin: 6px 0 0; max-width: 36rem;
  font-size: 11px; line-height: 1.4; color: var(--text-mute);
}

.hero-media { margin: 0; position: relative; z-index: 1; }
.hero-media img {
  width: min(100%, 420px); margin-inline: auto; border-radius: 12px; background: transparent;
  box-shadow: 0 22px 48px rgba(16, 24, 40, 0.28);
}

.showcase-section { background: transparent; }
.section-heading { max-width: 640px; margin-bottom: 18px; }
.section-heading h2 { margin-top: 0; }
.section-heading p { color: var(--text-mute); margin: 0; }
.showcase-list { display: grid; gap: 28px; }
.showcase-item {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 28px; align-items: center;
}
.showcase-item.reverse .showcase-image { order: 2; }
.showcase-image { overflow: hidden; border-radius: 10px; background: transparent; }
.showcase-image img { width: min(100%, 420px); margin-inline: auto; }
.showcase-copy { max-width: 420px; }
.showcase-number {
  display: inline-block; margin-bottom: 8px; color: var(--brand);
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
}
.showcase-copy h3 { margin: 0 0 10px; font-size: 1.35rem; }
.showcase-copy p { margin: 0; color: var(--text-mute); }

.faq-home .prose { margin-inline: auto; max-width: 68ch; }
.intro-section { background: var(--bg); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 36px; align-items: start; }
.section-label { display: block; margin-bottom: 7px; color: var(--brand); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.intro-grid h2 { margin-top: 0; }
.app-facts { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #ffffff; }
.app-facts h2 { margin: 0 0 15px; font-size: 16px; }
.app-facts .dl-meta { margin-bottom: 16px; }

.pros-section { background: transparent; border-block: 0; }
.pros-section .section-heading { margin-bottom: 14px; }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .pc { grid-template-columns: 1fr; } }
.pc .pros, .pc .cons {
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 20px 18px;
  box-shadow: 0 8px 24px rgba(21, 28, 38, 0.04);
}
.pc-highlight .pros { border-color: #b7c9f0; background: var(--brand-soft); }
.pc-highlight .cons { border-color: #f0c7c2; background: #fff7f6; }
.pc h3 { margin: 0 0 12px; font-size: 1.15rem; }
.pc-highlight .pros h3 { color: var(--brand-ink); }
.pc-highlight .cons h3 { color: var(--danger-ink); }
.pc ul { list-style: none; padding: 0; margin: 0; }
.pc li { margin-bottom: 10px; color: var(--text); font-size: 15px; line-height: 1.45; padding-left: 0; }
.pc li:last-child { margin-bottom: 0; }
.pc .pros li::before { content: '+ '; color: var(--brand); font-weight: 700; }
.pc .cons li::before { content: '− '; color: var(--danger-ink); font-weight: 700; }

@media (max-width: 880px) {
  .hero { padding-block: 24px 28px; }
  .hero-shape { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero-copy { max-width: none; }
  .hero-media { order: 2; max-width: 300px; width: 100%; margin-inline: auto; }
  .hero-copy { order: 1; }
  .scanner-badges { max-width: 380px; }
  .showcase-item { grid-template-columns: 1fr; gap: 14px; }
  .showcase-item.reverse .showcase-image { order: 0; }
  .showcase-copy { max-width: 680px; }
  .intro-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; line-height: 1.6; }
  .wrap {
    padding-left: max(18px, env(safe-area-inset-left, 0px));
    padding-right: max(18px, env(safe-area-inset-right, 0px));
  }
  section { padding-block: 24px; }
  .home-shell .article-main > section { padding-block: 18px; }
  .app-heading { align-items: center; gap: 12px; margin-bottom: 14px; }
  .app-icon { height: 42px; }
  .app-icon img { height: 42px; }
  .app-heading h1 { font-size: 1.85rem; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 10px; }
  .hero .hero-primary,
  .hero .hero-secondary { width: 100%; min-width: 0; }
  .scanner-badges { max-width: none; }
  .scanner-badges ul { gap: 4px 2px; }
  .scanner-badges img { height: 28px; max-width: 44px; }
  .scanner-badge-icon { height: 28px; }
  .scanner-badge-name { font-size: 9px; }
  .scanner-badges-note { margin-top: 5px; font-size: 10.5px; }
  .hero-media { max-width: min(240px, 100%); width: 100%; }
  .hero-media img,
  .showcase-image img { width: 100%; height: auto; max-width: 100%; }
  .showcase-list { gap: 22px; }
  .showcase-image { max-width: min(320px, 100%); margin-inline: auto; }
  .showcase-copy h3 { font-size: 1.15rem; }
  .card { padding: 14px; }
  .prose, .lead { max-width: none; }
  .quick-summary,
  .takeaways { max-width: 100%; }
  details.faq summary { padding: 13px 14px; font-size: 14.5px; }
}

/* ---------- Download card ---------- */
.dl-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky; top: calc(var(--header-h) + 12px);
}
@media (max-width: 880px) { .dl-card { position: static; } }
.dl-card h2 { font-size: 1rem; margin: 0 0 14px; }
.dl-meta { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; font-size: 14px; margin-bottom: 18px; }
.dl-meta dt { color: var(--text-mute); }
.dl-meta dd { margin: 0; font-weight: 600; text-align: right; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 15px;
  padding: 12px 18px; border-radius: 6px; width: 100%; border: 0; cursor: pointer;
}
.btn:hover { background: var(--brand-ink); text-decoration: none; color: #fff; }
.btn.btn-download, .btn-download {
  background: var(--download); color: #fff;
}
.btn.btn-download:hover, .btn-download:hover { background: var(--download-ink); color: #fff; }
.btn.secondary {
  background: var(--bg); color: var(--brand); border: 1px solid var(--line);
}
.btn.secondary:hover { background: var(--bg-soft); color: var(--brand-ink); }
.btn + .btn { margin-top: 8px; }
.dl-note { font-size: 12.5px; color: var(--text-mute); margin: 12px 0 0; text-align: center; }
.note .btn { width: auto; min-width: min(100%, 260px); margin-top: 6px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 12px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  height: 100%;
}
.card h3 { margin: 0 0 6px; font-size: 1rem; }
.card p { color: var(--text-mute); font-size: 14.5px; margin-bottom: 0.7em; }
.card p:last-child { margin-bottom: 0; }
.card .ico {
  font-size: 18px; line-height: 1; margin-bottom: 10px; display: block;
}
a.card { color: inherit; display: block; }
a.card:hover {
  text-decoration: none;
  border-color: #c5cad3;
  background: var(--bg-soft);
}
a.card h3 { color: var(--text); }
a.card .more { color: var(--brand); font-weight: 600; font-size: 13.5px; margin-top: 8px; }

/* ---------- Steps ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps > li {
  counter-increment: s; position: relative; padding-left: 48px; padding-bottom: 22px; margin: 0;
  border-left: 2px solid var(--line); margin-left: 14px;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(s); position: absolute; left: -15px; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.steps > li h3 { margin: 2px 0 6px; font-size: 1rem; }
.steps > li p:last-child { margin-bottom: 0; }

/* ---------- Tables ---------- */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.25em;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.table-scroll .table-wide { border-collapse: collapse; width: 100%; font-size: 14.5px; background: var(--bg); }
.table-scroll .table-cards { display: none; }
.table-scroll th,
.table-scroll td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll th { background: #ffffff; font-weight: 600; font-size: 13px; color: var(--text-mute); }
.table-scroll tbody tr:last-child td { border-bottom: 0; }

/* Mobile / tablet: card list instead of wide table (no horizontal scroll) */
@media (max-width: 1023px) {
  .table-scroll {
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .table-scroll .table-wide { display: none !important; }
  .table-scroll .table-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .table-card {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
  }
  .table-card-title {
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
  }
  .table-card-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 10px;
  }
  .table-card-row:first-of-type { margin-top: 0; }
  .table-card-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-mute);
  }
  .table-card-value {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* ---------- Callouts ---------- */
.note, .warn, .danger {
  border: 1px solid var(--line); border-left-width: 3px; background: var(--bg-soft);
  border-radius: 6px; padding: 14px 16px; margin: 0 0 1.2em;
}
.note { border-left-color: var(--brand); }
.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.danger { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger-ink); }
.note > :last-child, .warn > :last-child, .danger > :last-child { margin-bottom: 0; }
.note strong, .warn strong, .danger strong { display: block; margin-bottom: 3px; }

/* ---------- FAQ ---------- */
details.faq {
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg);
  margin-bottom: 8px;
}
details.faq summary {
  cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  font-size: 15px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; color: var(--text-mute); font-size: 18px; font-weight: 400; }
details.faq[open] summary::after { content: '−'; }
details.faq[open] summary { border-bottom: 1px solid var(--line); }
details.faq .faq-body { padding: 14px 16px; color: var(--text-mute); }
details.faq .faq-body > :last-child { margin-bottom: 0; }

/* ---------- TOC ---------- */
.toc {
  background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 28px;
}
.toc h2 {
  font-size: 12px; margin: 0 0 10px; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-mute); font-weight: 700;
}
.toc ol { margin: 0; columns: 2; column-gap: 24px; padding-left: 1.15em; }
@media (max-width: 620px) { .toc ol { columns: 1; } }
.toc li { margin-bottom: 5px; break-inside: avoid; }
.toc a { font-size: 14.5px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: #ffffff; border: 1px solid var(--line); border-radius: 6px;
  padding: 12px 10px; text-align: center;
}
.stat b { display: block; font-size: 1.25rem; letter-spacing: -0.02em; font-weight: 700; }
.stat span { font-size: 12px; color: var(--text-mute); }

/* ---------- Footer (dark band = second layout color) ---------- */
.site-foot {
  background: linear-gradient(135deg, var(--panel-mid) 0%, var(--panel) 55%, var(--brand-ink) 100%);
  color: rgba(255, 255, 255, 0.78);
  border-top: 0; padding-block: 48px 28px; margin-top: 32px; font-size: 14px;
}
.site-foot .foot-logo { filter: brightness(1.05); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; gap: 20px; } }
.foot-about p { color: rgba(255, 255, 255, 0.65); margin-top: 8px; font-size: 13.5px; max-width: 36ch; }
.foot-col h2 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
  color: #8eb0ff; margin: 0 0 10px; font-weight: 700;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 6px; }
.foot-col a { color: rgba(255, 255, 255, 0.88); font-size: 13.5px; }
.foot-col a:hover { color: #fff; }
.foot-risk p { color: rgba(255, 255, 255, 0.55); font-size: 12.5px; line-height: 1.55; margin: 0; max-width: 32ch; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 28px; padding-top: 16px; }
.foot-bottom p { color: rgba(255, 255, 255, 0.5); font-size: 12.5px; margin: 0; }

/* ---------- Share rail (OnStream) — fixed right on mobile + desktop ---------- */
.share-page-shell {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
}
.share-page-content {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  /* OnStream pr-12: leave room for fixed share rail on phones */
  padding-right: 3.5rem;
}
#main {
  padding-bottom: 5rem;
}
@media (min-width: 1024px) {
  #main { padding-bottom: 0; }
  .share-page-shell {
    display: flex;
    align-items: flex-start;
  }
  .share-page-content {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 0;
  }
}

.share-rail {
  display: block;
  position: relative;
  z-index: 40;
  box-sizing: border-box;
  flex: 0 0 0;
  width: 0;
  min-width: 0;
  overflow: visible;
}
.share-rail-panel {
  position: fixed;
  top: 5rem;
  right: max(0.35rem, env(safe-area-inset-right, 0px));
  z-index: 40;
  display: flex;
  width: 2.75rem;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.share-rail-label {
  display: none;
  max-width: 2.75rem;
  margin: 0;
  text-align: center;
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.share-rail-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.share-rail .share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border-radius: 9999px;
  border: 1px solid rgba(21, 28, 38, 0.35);
  background: rgba(21, 28, 38, 0.92);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.share-rail .share-btn:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  transform: scale(1.06);
  text-decoration: none;
}

/* Bottom share row — desktop fallback only; mobile uses fixed rail */
.mobile-share-bar { display: none; }

@media (min-width: 640px) {
  .share-rail-panel {
    top: 5.25rem;
    right: max(0.45rem, env(safe-area-inset-right, 0px));
    gap: 0.5rem;
    width: 3.1rem;
  }
  .share-rail .share-btn {
    width: 2.35rem;
    height: 2.35rem;
  }
}
@media (min-width: 1024px) {
  .share-rail {
    display: block;
    flex: 0 0 4rem;
    width: 4rem;
    min-width: 4rem;
    align-self: stretch;
  }
  .share-rail-panel {
    top: 5.5rem;
    right: max(0.55rem, env(safe-area-inset-right, 0px));
    gap: 0.55rem;
    width: 3.5rem;
  }
  .share-rail-label { display: block; }
  .share-rail .share-btn {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Phones & tablets: full-width column, no overlap, images contained */
@media (max-width: 1023px) {
  .share-rail {
    display: block !important;
  }
  .share-rail-panel {
    display: flex !important;
  }
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }
  .share-page-shell,
  .share-page-content,
  .hero,
  .article-shell,
  .home-shell,
  #main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .wrap {
    padding-left: max(18px, env(safe-area-inset-left, 0px));
    padding-right: max(18px, env(safe-area-inset-right, 0px));
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .article-shell,
  .hero-grid,
  .showcase-item,
  .showcase-item.reverse,
  .intro-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px;
  }
  .article-main,
  .article-sidebar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }
  .showcase-item.reverse .showcase-image { order: 0; }
  .article-sidebar { position: static; }
  .hero-shape { display: none !important; }
  .hero-copy { max-width: none; }
  .hero-media,
  .showcase-image {
    width: 100%;
    max-width: min(280px, 100%);
    margin-inline: auto;
  }
  .hero-media img,
  .showcase-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    margin-inline: auto;
  }
  .quick-summary,
  .takeaways,
  .features-short-grid,
  .table-scroll,
  .section-heading,
  .prose,
  .lead {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .quick-summary p,
  .quick-summary li,
  .takeaways li,
  .prose p,
  .prose li {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .features-short-grid { grid-template-columns: 1fr !important; }
  .table-scroll {
    display: block;
    width: 100%;
    overflow-x: visible;
  }
  .article-main > section > .wrap,
  .article-main > .wrap {
    padding-inline: 0;
  }
  .head-inner { gap: 8px; }
  .lang-switch a { padding: 6px 8px; }
}

/* ---------- Mobile download bar ---------- */
.mobile-download-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(21, 28, 38, 0.96);
  padding: 10px 12px max(0.65rem, env(safe-area-inset-bottom));
  backdrop-filter: blur(8px);
  transform: translateY(100%);
  pointer-events: none;
  transition: transform 0.3s ease-out;
}
.mobile-download-bar.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-download-bar .mobile-download-btn {
  width: 100%;
  margin: 0;
  min-height: 48px;
  font-size: 14px;
}
@media (min-width: 1024px) {
  .mobile-download-bar { display: none; }
}

@media print {
  .site-head, .site-foot, .crumbs, .nav-toggle, .share-rail, .mobile-download-bar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .share-rail .share-btn, .mobile-download-bar { transition: none; }
}
@media (max-width: 620px) {
  .btn { min-height: 44px; }
}
