/* STB Loaders — marketing site
   Palette matches the Android app's own dark theme (UiKit.java) for brand
   consistency between the site and the product itself. */

:root {
  --bg: #07090d;
  --surface: #11151c;
  --surface-2: #1a1f28;
  --inset: #0c1016;
  --border: #282f3a;
  --border-soft: #1d232d;
  --text: #e8edf3;
  --muted: #9ba7b6;
  --dim: #6e7a8a;

  --primary: #7aa2ff;
  --on-primary: #0b1220;
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #f87171;

  --gx: #7aa2ff;
  --ali: #b79cff;
  --sunplus: #fb923c;
  --montage: #2dd4bf;

  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1180px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-lg: 0 40px 90px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 20px 50px rgba(0, 0, 0, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
section { position: relative; }
section[id] { scroll-margin-top: 92px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Background: soft blueprint grid, same visual language as the app's own
   engineering-blueprint page background. */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1.5px, transparent 1.5px),
    radial-gradient(rgba(255, 255, 255, 0.05) 1.3px, transparent 1.5px);
  background-size: 96px 96px, 96px 96px, 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 20%, transparent);
}

h1, h2, h3 { font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-top: 14px; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15.5px;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 16px 36px rgba(122, 162, 255, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 44px rgba(122, 162, 255, 0.38); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(122, 162, 255, 0.5); background: rgba(122, 162, 255, 0.06); }

/* Play Store button: a tasteful custom badge (not Google's own artwork) —
   a filled triangle mark plus a two-line label, in the site's own style. */
.btn-play {
  background: linear-gradient(180deg, #171c26, #10141b);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 0 22px 0 18px;
}
.btn-play:hover { border-color: rgba(122, 162, 255, 0.55); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-play svg { flex-shrink: 0; }
.btn-play .label { text-align: left; line-height: 1.25; }
.btn-play .label .top { display: block; font-size: 11px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
.btn-play .label .bottom { display: block; font-size: 17px; font-weight: 650; }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 13, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 650; font-size: 17px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; color: var(--muted); transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav .btn { height: 44px; padding: 0 18px; font-size: 14px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1.5px solid var(--border);
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { display: none; }
.nav-toggle svg { width: 20px; height: 20px; }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--bg);
  z-index: 49;
  padding: 8px 24px 32px;
  overflow-y: auto;
}
.mobile-menu a:not(.btn) {
  display: block;
  padding: 16px 4px;
  font-size: 18px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
}
.mobile-menu .btn { display: inline-flex; width: 100%; margin-top: 22px; }
body.menu-open .mobile-menu { display: block; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 60px; overflow: hidden; }
.hero .glow.g1 { left: -260px; top: -220px; width: 780px; height: 780px; background: radial-gradient(circle, rgba(67, 56, 202, 0.55), transparent 68%); }
.hero .glow.g2 { right: -280px; top: 40px; width: 720px; height: 720px; background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent 68%); }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  margin-top: 20px;
}
.hero h1 em { font-style: normal; background: linear-gradient(120deg, #7aa2ff, #b79cff 60%, #2dd4bf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin-top: 22px; font-size: 18px; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
.trust-row span { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--dim); }
.trust-row svg { width: 15px; height: 15px; color: var(--success); flex-shrink: 0; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 1.5px;
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.035);
  border: 1.5px solid var(--border-soft);
  display: flex; align-items: center; gap: 8px;
  color: #c9d2de;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; display: block; }

/* Hero phone visual */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone-frame {
  position: relative;
  width: min(320px, 78vw);
  padding: 14px;
  border-radius: 46px;
  background: linear-gradient(150deg, #3a414e 0%, #1a1e26 18%, #0c0f14 60%, #262b35 100%);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.1), inset 0 0 0 2px rgba(0, 0, 0, 0.6), var(--shadow-lg);
}
.phone-frame .screen { border-radius: 34px; overflow: hidden; display: block; background: #090c11; }
.hero-visual .float-card {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  background: rgba(17, 21, 28, 0.92);
  border: 1.5px solid var(--border);
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  font-size: 13px;
  animation: float 5s ease-in-out infinite;
}
.hero-visual .float-1 { top: 8%; left: -6%; animation-delay: 0.2s; }
.hero-visual .float-2 { bottom: 12%; right: -8%; animation-delay: 1.1s; }
.float-card .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18); }
.float-card strong { font-weight: 650; }
.float-card .sub { color: var(--dim); font-size: 11.5px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 720px) { .hero-visual .float-card { display: none; } }

/* ---------- Logo strip / stats ---------- */
.stat-strip {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 30px 0;
}
.stat-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; }
.stat .num { font-family: var(--mono); font-size: 26px; font-weight: 500; color: var(--text); }
.stat .lbl { font-size: 12.5px; color: var(--dim); margin-top: 6px; letter-spacing: 0.3px; }

/* ---------- Section spacing ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(122, 162, 255, 0.35); box-shadow: var(--shadow-md); }
.feature-card .ic {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(122, 162, 255, 0.12);
  color: var(--primary);
  margin-bottom: 18px;
}
.feature-card .ic svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 17px; font-weight: 650; }
.feature-card p { color: var(--muted); font-size: 14.5px; margin-top: 10px; line-height: 1.55; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before {
  content: "";
  position: absolute;
  top: 27px; left: 8%; right: 8%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent);
}
.step { position: relative; padding: 0 18px; text-align: left; }
.step .idx {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 18px; color: var(--primary);
  position: relative; z-index: 1;
  margin-bottom: 20px;
}
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---------- Chipset cards ---------- */
.chipset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.chipset-card {
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px 22px;
  border-top: 3px solid var(--accent, var(--primary));
}
.chipset-card .head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.chipset-card .badge {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent, var(--primary)) 16%, transparent);
  color: var(--accent, var(--primary));
  font-family: var(--mono); font-weight: 600; font-size: 13px;
}
.chipset-card h3 { font-size: 17px; }
.chipset-card p { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-bottom: 14px; }
.profile-list { display: flex; flex-direction: column; gap: 7px; }
.profile-list li {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 12px;
  background: var(--inset);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 8px 10px;
  color: #c9d2de;
}
.profile-list li .tag { color: var(--success); font-size: 10.5px; letter-spacing: 0.5px; }
.chipset-note { color: var(--dim); font-size: 12.5px; margin-top: 14px; line-height: 1.5; }

/* ---------- Adapters ---------- */
.adapter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.adapter-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.adapter-card .ic {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  background: var(--inset); border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.adapter-card .ic svg { width: 17px; height: 17px; }
.adapter-card h3 { font-size: 14.5px; margin-bottom: 4px; }
.adapter-card p { font-size: 12.5px; color: var(--dim); line-height: 1.5; }
.adapter-note {
  margin-top: 22px;
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 13.5px; color: #e3c88a; line-height: 1.55;
}
.adapter-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--warning); }

/* ---------- Screenshot carousel ---------- */
.shot-carousel-wrap { position: relative; }
.shot-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 0 26px;
  scrollbar-width: none;
}
.shot-carousel::-webkit-scrollbar { display: none; }
.shot-item {
  scroll-snap-align: center;
  flex: 0 0 auto;
  width: 250px;
}
.shot-item .frame {
  border-radius: 28px;
  padding: 9px;
  background: linear-gradient(150deg, #3a414e 0%, #1a1e26 18%, #0c0f14 60%, #262b35 100%);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.09), var(--shadow-md);
}
.shot-item .frame img { border-radius: 20px; width: 100%; }
.shot-item .cap { margin-top: 14px; font-size: 13.5px; color: var(--muted); text-align: center; line-height: 1.5; padding: 0 6px; }
.shot-nav { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.shot-nav button {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
}
.shot-nav button:hover { border-color: var(--primary); color: var(--primary); }
.shot-nav button svg { width: 17px; height: 17px; }
.shot-dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.shot-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--border); transition: background 0.2s, width 0.2s; }
.shot-dots span.active { background: var(--primary); width: 18px; border-radius: 3px; }

/* ---------- Download CTA ---------- */
.cta-panel {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  padding: 64px 48px;
  text-align: center;
  background: linear-gradient(160deg, #141a2e 0%, #0d1018 70%);
  border: 1.5px solid var(--border-soft);
}
.cta-panel .glow { left: 50%; top: -40%; transform: translateX(-50%); width: 900px; height: 500px; background: radial-gradient(ellipse, rgba(122, 162, 255, 0.22), transparent 70%); }
.cta-panel .icon-tile {
  width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 24px;
  overflow: hidden; box-shadow: var(--shadow-md);
  position: relative; z-index: 1;
}
.cta-panel h2 { position: relative; z-index: 1; font-size: clamp(26px, 3.6vw, 36px); }
.cta-panel p { position: relative; z-index: 1; color: var(--muted); margin-top: 14px; font-size: 16px; }
.cta-panel .hero-cta { justify-content: center; position: relative; z-index: 1; margin-top: 30px; }
.cta-panel .trust-row { justify-content: center; position: relative; z-index: 1; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-weight: 550;
  font-size: 15.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { flex-shrink: 0; width: 20px; height: 20px; color: var(--dim); transition: transform 0.2s ease; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .body { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--border-soft); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-weight: 650; margin-bottom: 12px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-col h2 { font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: var(--muted); }
.footer-col a:hover { color: var(--text); }
.footer-p { color: var(--dim); font-size: 13.5px; max-width: 320px; line-height: 1.6; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--dim);
}
.footer-bottom .disclaimer { max-width: 640px; line-height: 1.6; }

/* ---------- Scroll reveal ----------
   Content is visible by default — safe for search crawlers, share-preview
   bots and no-JS visitors. JS only pre-hides elements confirmed below the
   fold, then reveals them on scroll (with a timed fallback either way). */
[data-reveal] { transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].pre { opacity: 0; transform: translateY(22px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .chipset-grid { grid-template-columns: repeat(2, 1fr); }
  .adapter-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .container { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 8px; }
  .hero p.lead { max-width: none; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .section { padding: 68px 0; }
  .section-tight { padding: 52px 0; }
  .feature-grid, .chipset-grid, .adapter-grid { grid-template-columns: 1fr; }
  .cta-panel { padding: 44px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-cta .btn-play { padding: 0 14px; height: 44px; }
  .nav-cta .btn-play .label { display: none; }
  .hero { padding: 44px 0 40px; }
  .stat-strip .container { grid-template-columns: 1fr 1fr; }
}

/* ---------- Sub pages (guide, support, legal, 404) ---------- */
.page { position: relative; padding: 56px 0 96px; }
.container.narrow { max-width: 820px; }
.doc-head { max-width: 760px; margin: 0 0 40px; }
.doc-head .eyebrow { margin-bottom: 14px; }
.doc-head h1 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.12; margin-top: 4px; }
.doc-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--dim); margin-bottom: 22px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.doc-body { display: flex; flex-direction: column; gap: 14px; }
.doc-section { background: var(--surface); border: 1.5px solid var(--border-soft); border-radius: var(--radius); padding: 22px 24px; }
.doc-section h2 { font-size: 17px; margin-bottom: 10px; }
.doc-section p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.doc-section p + p { margin-top: 10px; }
.doc-foot { margin-top: 28px; color: var(--dim); font-size: 14px; }
.doc-foot a, .prose a, .center-link a { color: var(--primary); }
.doc-foot a:hover, .prose a:hover, .center-link a:hover { text-decoration: underline; }

.doc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc-inner { position: sticky; top: 100px; background: var(--surface); border: 1.5px solid var(--border-soft); border-radius: var(--radius); padding: 20px; }
.toc h2 { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; font-weight: 600; }
.toc ol { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.toc a { color: var(--muted); font-size: 14px; }
.toc a:hover { color: var(--text); }

.prose { display: flex; flex-direction: column; gap: 48px; min-width: 0; }
.prose section { scroll-margin-top: 96px; }
.prose h2 { font-size: clamp(22px, 2.8vw, 27px); margin-bottom: 16px; }
.prose p { color: var(--muted); font-size: 15.5px; line-height: 1.75; margin: 12px 0; }
.prose b, .prose strong { color: var(--text); font-weight: 600; }
.container.narrow .prose { margin-top: 48px; }

.tick-list { display: flex; flex-direction: column; gap: 12px; margin: 14px 0; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 15px; line-height: 1.6; }
.tick-list li b { color: var(--text); font-weight: 600; }
.tick-list svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--success); }

.num-list { counter-reset: n; list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 14px 0; }
.num-list li { counter-increment: n; position: relative; padding: 16px 18px 16px 62px; background: var(--surface); border: 1.5px solid var(--border-soft); border-radius: var(--radius-sm); color: var(--muted); font-size: 15px; line-height: 1.6; }
.num-list li::before { content: counter(n); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: rgba(122, 162, 255, 0.12); color: var(--primary); font-family: var(--mono); font-size: 13.5px; }
.num-list li b { color: var(--text); font-weight: 600; }

.table-wrap { overflow-x: auto; border: 1.5px solid var(--border-soft); border-radius: var(--radius-sm); margin: 18px 0; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: top; line-height: 1.55; }
.table-wrap th { background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 13px; }
.table-wrap td { color: var(--muted); }
.table-wrap tr:last-child td { border-bottom: none; }

.note-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.note-card { background: var(--surface); border: 1.5px solid var(--border-soft); border-left: 3px solid var(--accent, var(--primary)); border-radius: var(--radius-sm); padding: 18px 20px; }
.note-card h3 { font-size: 16px; color: var(--accent, var(--primary)); margin-bottom: 6px; }
.note-card p { margin: 0; font-size: 14.5px; }

.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.support-card { display: block; background: var(--surface); border: 1.5px solid var(--border-soft); border-radius: var(--radius); padding: 24px 22px; transition: border-color .2s, transform .2s; }
a.support-card:hover { border-color: rgba(122, 162, 255, 0.45); transform: translateY(-3px); }
.support-card .ic { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: rgba(122, 162, 255, 0.12); color: var(--primary); margin-bottom: 16px; }
.support-card .ic svg { width: 20px; height: 20px; }
.support-card h2 { font-size: 16px; margin-bottom: 6px; }
.support-card p { color: var(--muted); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }

.nf { text-align: center; padding: 110px 0 130px; }
.nf-code { font-family: var(--mono); font-size: 72px; color: var(--primary); line-height: 1; }
.nf h1 { font-size: clamp(28px, 4vw, 40px); margin-top: 18px; }
.nf-lead { color: var(--muted); margin-top: 12px; font-size: 17px; }
.nf-cta { justify-content: center; }

/* ---------- Home additions ---------- */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { left: 12px; }
a:focus-visible, button:focus-visible, summary:focus-visible, .shot-carousel:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0.025)); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.center-link { text-align: center; margin-top: 44px; font-size: 15px; }
.profile-list li { gap: 10px; }
.profile-list li span:first-child { min-width: 0; overflow-wrap: anywhere; }
.profile-list li .tag { flex-shrink: 0; }
.profile-list li .tag-soft { color: var(--dim); }

.lang-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.lang-copy h2 { font-size: clamp(28px, 4vw, 40px); margin-top: 14px; }
.lang-copy p { color: var(--muted); font-size: 16.5px; margin-top: 14px; line-height: 1.65; }
.lang-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.lang-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; background: var(--surface); border: 1.5px solid var(--border-soft); border-radius: var(--radius-sm); padding: 14px 16px; }
.lang-card .code { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--inset); border: 1px solid var(--border-soft); font-family: var(--mono); font-size: 12.5px; color: var(--primary); }
.lang-card .native { font-weight: 600; font-size: 16px; }
.lang-card .native[dir="rtl"] { text-align: left; }
.lang-card .en { font-size: 12.5px; color: var(--dim); }

@media (max-width: 1024px) {
  .doc-layout { grid-template-columns: 1fr; gap: 28px; }
  .toc-inner { position: static; }
  .toc ol { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
  .lang-wrap { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  .support-grid, .note-grid { grid-template-columns: 1fr; }
  .page { padding: 36px 0 72px; }
}
@media (max-width: 420px) {
  .lang-grid { grid-template-columns: 1fr; }
}
.prose .faq-list { max-width: none; margin: 0; }
