/* ============================================================
   SOSSOLDI — site styles
   Product-first web layer, approved 04/11/2026.
   Palette, type and rules come from tokens.css, generated from
   sossoldi-social-kit/design/tokens.json.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sos-tint);
  color: var(--sos-ink);
  font-family: var(--sos-sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--sos-focus); outline-offset: 3px; }
::selection { background: var(--sos-struct); color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--sos-ink); color: #fff; padding: 10px 16px;
  border-radius: var(--sos-r-sm); font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }

/* ---------- header ---------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(244, 247, 251, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}

.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 900; letter-spacing: -.02em; font-size: 18px;
}
.brand-mark { width: 34px; height: 34px; border-radius: 9px; }

.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  text-decoration: none; font-weight: 700; font-size: 14px; color: #44576B;
  padding: 8px 13px; border-radius: var(--sos-r-pill);
  transition: background .15s ease, color .15s ease;
}
.site-nav a:hover { color: var(--sos-ink); background: rgba(2, 59, 121, .06); }
.site-nav a[aria-current="page"] { color: var(--sos-ink); background: rgba(2, 59, 121, .09); }

.header-tools { display: flex; align-items: center; gap: 6px; }

.icon-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: inherit; cursor: pointer; text-decoration: none;
  transition: background .15s ease;
}
.icon-button:hover { background: rgba(2, 59, 121, .07); }

.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 30px; padding: 0 9px;
  border: 1px solid var(--sos-line); border-radius: var(--sos-r-pill);
  font-weight: 800; font-size: 11px; letter-spacing: .08em; text-decoration: none; color: #44576B;
}
.lang-switch:hover { border-color: var(--sos-ink); color: var(--sos-ink); }

.menu-btn { display: none; }
.mobile-menu { display: none; }

/* ---------- type ------------------------------------------ */

h1, h2, h3, h4 {
  margin: 0 0 .5em; font-weight: 800; letter-spacing: -.035em;
  line-height: 1.05; text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); letter-spacing: -.045em; line-height: .98; }
h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--sos-r-pill);
  background: #E4EDF8; color: var(--sos-struct);
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sos-pos); }

.eyebrow {
  font-size: .72rem; font-weight: 800; letter-spacing: .2em;
  text-transform: uppercase; color: var(--sos-muted-on-paper); margin: 0 0 14px;
}
.eyebrow a { text-decoration: none; }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.55;
  color: #5A6B7D; max-width: 62ch;
}

/* ---------- buttons --------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border: 1px solid transparent; border-radius: var(--sos-r-pill);
  background: transparent; color: var(--sos-ink);
  font: inherit; font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sos-ink); color: #fff; box-shadow: 0 12px 30px rgba(0, 21, 45, .18); }
.btn-primary:hover { background: var(--sos-struct); }
.btn-ghost { border-color: var(--sos-line); background: var(--sos-surface); }
.btn-ghost:hover { border-color: var(--sos-ink); }
.btn-link { padding-inline: 4px; border: 0; }
.btn-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-sm { padding: 9px 14px; font-size: 13px; }

/* ---------- hero ------------------------------------------ */

.hero { position: relative; padding: clamp(48px, 6vw, 84px) 0 0; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero h1 { margin: 22px auto 0; max-width: 15ch; }
.hero .lead { margin: 20px auto 0; max-width: 56ch; }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 28px; flex-wrap: wrap; }
.stores { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.store-badge img { height: 34px; width: auto; }

.stage {
  position: relative; width: min(1180px, 100%); height: 700px;
  margin: 60px auto 0;
}
.glow {
  position: absolute; left: 50%; top: -30px; width: 880px; height: 520px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(2, 59, 121, .20), rgba(2, 59, 121, 0));
}
.phone {
  position: absolute; padding: 8px; background: var(--sos-ink);
  border-radius: 40px; box-shadow: var(--sos-shadow-lift);
}
.phone img { width: 100%; border-radius: 32px; }
.phone::after {
  content: ""; position: absolute; top: 16px; left: 50%; width: 78px; height: 22px;
  transform: translateX(-50%); border-radius: 12px; background: var(--sos-ink); z-index: 2;
}
.p-left { width: 230px; left: 118px; top: 96px; transform: rotate(-9deg); }
.p-mid { width: 300px; left: 50%; margin-left: -150px; top: 6px; z-index: 3; }
.p-right { width: 230px; right: 118px; top: 96px; transform: rotate(9deg); }

.float-card {
  position: absolute; z-index: 4; width: 210px; padding: 16px 18px;
  background: var(--sos-surface); border-radius: 18px; box-shadow: var(--sos-shadow);
  text-align: left;
}
.float-card .label {
  display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 800; color: #5A6B7D;
}
.float-card strong { display: block; font-size: 26px; font-weight: 900; letter-spacing: -.03em; margin-top: 4px; }
.float-card .note { display: block; font-size: 11px; font-weight: 800; color: #5A6B7D; margin-top: 2px; }
.float-card .bar { display: block; height: 6px; border-radius: 999px; background: #E6EDF5; margin-top: 12px; overflow: hidden; }
.float-card .bar span { display: block; height: 100%; width: 42%; border-radius: 999px; background: var(--sos-pos); }
.c1 { left: 4px; top: 116px; }
.c2 { right: 0; top: 396px; width: 200px; }

/* ---------- screens strip --------------------------------- */

.screens { padding: clamp(56px, 7vw, 96px) 0; }
.screens-head { text-align: center; margin-bottom: 36px; }
.screens-head h2 { margin-bottom: 8px; }
.screens-head p { margin: 0; color: #5A6B7D; }

.screens-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr);
  gap: 18px; overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x mandatory;
}
.screen {
  margin: 0; scroll-snap-align: start; background: var(--sos-surface);
  border-radius: 20px; padding: 10px; box-shadow: var(--sos-shadow);
}
.screen img { border-radius: 14px; width: 100%; }
.screen figcaption {
  font-size: .68rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: #5A6B7D; padding: 10px 6px 2px;
}

/* ---------- features -------------------------------------- */

.features { padding: clamp(56px, 7vw, 96px) 0; }
.features-head { max-width: 720px; margin-bottom: 36px; }
.features-head .lead { margin-bottom: 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { background: var(--sos-surface); border-radius: 22px; padding: 24px; box-shadow: var(--sos-shadow); }
.feature-number { display: block; font-size: .66rem; font-weight: 800; letter-spacing: .18em; color: #5A6B7D; margin-bottom: 14px; }
.feature h3 { font-size: 1.02rem; margin-bottom: 8px; letter-spacing: -.01em; }
.feature p { margin: 0; font-size: .92rem; color: #5A6B7D; line-height: 1.5; }
.feature .mini { margin-top: 20px; background: var(--sos-tint); border-radius: 14px; padding: 16px; }
.feature .mini .label { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: #5A6B7D; }
.feature .mini strong { display: block; font-size: 26px; font-weight: 900; letter-spacing: -.03em; margin-top: 4px; }
.feature .mini .note { display: block; font-size: 11px; font-weight: 800; color: #5A6B7D; margin-top: 2px; }
.feature .mini .bar { display: block; height: 6px; border-radius: 999px; background: #E1E9F3; margin-top: 12px; overflow: hidden; }
.feature .mini .bar span { display: block; height: 100%; width: 42%; border-radius: 999px; background: var(--sos-pos); }
.feature .mini .row { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; padding: 4px 0; }
.feature .mini .pillrow { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.feature .mini .pill { padding: 5px 10px; border-radius: 999px; background: var(--sos-surface); font-size: 11px; font-weight: 800; color: #44576B; }

/* ---------- pillars --------------------------------------- */

.pillars { padding: clamp(56px, 7vw, 96px) 0; }
.pillars-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.pillar { background: var(--sos-surface); border-radius: 22px; padding: 26px; box-shadow: var(--sos-shadow); }
.pillar h3 { font-size: 1.25rem; }
.pillar p { color: #5A6B7D; font-size: .96rem; margin: 0; }

/* ---------- ink band -------------------------------------- */

.band { background: var(--sos-ink); color: #F2F6FB; padding: clamp(56px, 7vw, 88px) 0; }
.band .eyebrow, .band .lead { color: var(--sos-muted-on-ink); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.band h2 { color: #F2F6FB; }
.band ul { list-style: none; margin: 0; padding: 0; }
.band li { padding: 12px 0; border-top: 1px solid rgba(241, 245, 249, .16); font-weight: 600; }
.band li:first-child { border-top: 0; }
.band .btn { background: #F2F6FB; color: var(--sos-ink); border-color: #F2F6FB; }

.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: rgba(241, 245, 249, .16); border: 1px solid rgba(241, 245, 249, .16);
  border-radius: var(--sos-r-lg); overflow: hidden; align-self: start;
}
.stat { background: var(--sos-ink); padding: 26px 22px; }
.stat strong { display: block; font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: .72rem; color: var(--sos-muted-on-ink); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }

/* ---------- changelog teaser ------------------------------ */

.teaser { padding: clamp(56px, 7vw, 96px) 0; }
.teaser-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.release-card { background: var(--sos-surface); border-radius: var(--sos-r-lg); padding: 28px; box-shadow: var(--sos-shadow); }
.release-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; }
.release-meta { font-size: .82rem; color: #5A6B7D; margin-bottom: 14px; }
.release-notes { font-size: .92rem; color: #5A6B7D; }
.release-notes ul { margin: 0; padding-left: 18px; }
.release-link { font-weight: 800; }

/* ---------- faq ------------------------------------------- */

.faq { padding: clamp(56px, 7vw, 96px) 0; }
.faq-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px;
  align-items: start; margin-top: 24px; background: var(--sos-surface);
  border-radius: var(--sos-r-lg); padding: 6px 26px; box-shadow: var(--sos-shadow);
}
.faq details { border-top: 1px solid var(--sos-line); }
.faq details:first-child, .faq details:nth-child(2) { border-top: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 34px 18px 0; font-weight: 800; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.3rem; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: #5A6B7D; max-width: 58ch; }

/* ---------- community ------------------------------------- */

.community { padding: clamp(56px, 7vw, 96px) 0 96px; }
.community-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- page / post ----------------------------------- */

.page-hero { padding: clamp(48px, 6vw, 84px) 0 20px; }
.page-hero .lead { margin-top: 12px; }
.page-body { padding-bottom: clamp(56px, 7vw, 96px); max-width: 820px; }

.post {
  padding: clamp(28px, 4vw, 48px); margin-top: clamp(32px, 5vw, 64px);
  margin-bottom: 96px; max-width: 860px; background: var(--sos-surface);
  border-radius: var(--sos-r-lg); box-shadow: var(--sos-shadow);
}
.post-head { margin-bottom: 28px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: #5A6B7D; }
.post-cover { margin: 0 0 32px; border-radius: var(--sos-r-md); overflow: hidden; }
.post-cover img { width: 100%; }
.post-footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--sos-line);
  font-weight: 700; font-size: .92rem;
}

/* ---------- prose ----------------------------------------- */

.prose { max-width: 72ch; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 2em; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.prose h3 { margin-top: 1.8em; }
.prose h2, .prose h3 { scroll-margin-top: 96px; }
.prose p, .prose li { color: #22334a; }
.prose a { color: var(--sos-struct); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote {
  margin: 1.6em 0; padding: 2px 0 2px 20px;
  border-left: 3px solid var(--sos-struct); color: #5A6B7D;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em;
  background: #EAEFF6; border-radius: 6px; padding: 2px 5px;
}
.prose pre {
  background: var(--sos-ink); color: #F2F6FB; border-radius: 14px;
  padding: 20px; overflow-x: auto; margin: 1.6em 0; line-height: 1.5;
}
.prose pre code {
  background: none; padding: 0; font-size: .86rem; color: inherit;
  white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2;
}
.prose table {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.6em 0;
  font-size: .92rem; border: 1px solid var(--sos-line); border-radius: 14px; overflow: hidden;
}
.prose th, .prose td { border-top: 1px solid var(--sos-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose tr:first-child th { border-top: 0; }
.prose th { background: #F0F4F9; font-weight: 800; }
.prose img { margin: 1.6em 0; border-radius: 14px; }
.prose hr { border: 0; border-top: 1px solid var(--sos-line); margin: 2.4em 0; }
.heading-anchor { text-decoration: none; color: #5A6B7D; margin-left: 8px; font-size: .8em; opacity: 0; }
h2:hover .heading-anchor, h3:hover .heading-anchor { opacity: 1; }

/* ---------- docs ------------------------------------------ */

.docs-mobile { display: none; }

.docs-shell {
  display: grid; grid-template-columns: 210px minmax(0, 1fr) 190px;
  gap: clamp(24px, 4vw, 52px); padding: 40px 0 clamp(64px, 8vw, 104px); align-items: start;
}
.docs-sidebar, .docs-toc { position: sticky; top: 92px; font-size: .9rem; }
.sidebar-title { font-size: .66rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #5A6B7D; margin: 0 0 12px; }
.docs-nav, .docs-toc ul { list-style: none; margin: 0; padding: 0; }
.docs-nav a, .docs-toc a { text-decoration: none; display: block; padding: 6px 10px; border-radius: 9px; color: #44576B; }
.docs-nav a:hover, .docs-toc a:hover { background: rgba(2, 59, 121, .06); color: var(--sos-ink); }
.docs-nav a[aria-current="page"] { font-weight: 800; color: var(--sos-ink); background: rgba(2, 59, 121, .09); }
.docs-nav-children { list-style: none; margin: 2px 0 10px; padding: 0 0 0 10px; }
.docs-nav-children a { font-size: .85rem; }
.breadcrumb { font-size: .8rem; color: #5A6B7D; display: flex; gap: 8px; margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; }
.docs-article {
  min-width: 0; background: var(--sos-surface); border-radius: var(--sos-r-lg);
  padding: clamp(24px, 3.4vw, 44px); box-shadow: var(--sos-shadow);
}
.docs-article h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.doc-meta { font-size: .8rem; color: #5A6B7D; }
.doc-footer { margin-top: 48px; border-top: 1px solid var(--sos-line); padding-top: 18px; }
.doc-edit { font-size: .85rem; font-weight: 700; text-decoration: none; }
.doc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.doc-pager a {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none;
  background: var(--sos-tint); border-radius: 14px; padding: 14px 16px; font-weight: 800;
}
.doc-pager a:hover { background: #E9EFF7; }
.doc-pager span { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: #5A6B7D; font-weight: 800; }
.pager-next { text-align: right; }
.docs-toc .toc-level-3 { padding-left: 12px; font-size: .84rem; }

/* ---------- changelog ------------------------------------- */

.changelog-list { display: flex; flex-direction: column; gap: 16px; max-width: 900px; }
.release { background: var(--sos-surface); border-radius: var(--sos-r-lg); padding: 28px; box-shadow: var(--sos-shadow); }
.release header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.release h2 { margin: 0; font-size: 1.5rem; }
.release time { color: #5A6B7D; font-size: .85rem; }
.badge-pre { background: #EEF1F5; color: #5A6B7D; }
.release-notes-body { font-size: .95rem; }
.release-notes-body h2 { font-size: 1.1rem; margin: 1.2em 0 .4em; letter-spacing: -.01em; }
.release-notes-body p { color: #22334a; }
.release-notes-body ul { padding-left: 20px; }
.release-notes-body h3 { font-size: 1rem; margin-top: 1.2em; }
.release-link { font-size: .85rem; font-weight: 700; }

/* ---------- blog index ------------------------------------ */

.posts { display: grid; gap: 16px; max-width: 960px; }
.post-card {
  background: var(--sos-surface); border-radius: var(--sos-r-lg); padding: 26px;
  box-shadow: var(--sos-shadow); display: grid; grid-template-columns: 1fr 180px;
  gap: 24px; align-items: center;
}
.post-card h2 { font-size: 1.45rem; margin-bottom: 6px; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.post-card p { margin: 0; color: #5A6B7D; font-size: .95rem; }
.post-card time { font-size: .8rem; color: #5A6B7D; }
.post-card img { border-radius: 14px; width: 100%; }

/* ---------- footer ---------------------------------------- */

.site-footer { background: #07101B; color: #C9D6E4; padding: clamp(48px, 6vw, 72px) 0 26px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, .75fr)); gap: 36px; }
.footer-brand .brand { color: #F2F6FB; margin-bottom: 14px; }
.footer-brand p { color: #9FB3C8; font-size: .9rem; max-width: 34ch; }
.footer-licence { font-size: .82rem; }
.footer-licence a { color: #F2F6FB; }
.site-footer h2 { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: #7DA1C4; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer li a { color: #DCE6F0; text-decoration: none; font-size: .9rem; }
.site-footer li a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 18px; border-top: 1px solid rgba(201, 214, 228, .16);
  font-size: .76rem; color: #7DA1C4;
}
.footer-bottom p { margin: 0; }

/* ---------- search ---------------------------------------- */

.search-dialog {
  width: min(680px, calc(100% - 32px)); max-height: 80vh;
  border: 0; border-radius: 20px; background: var(--sos-surface);
  color: var(--sos-ink); padding: 22px; margin: 8vh auto auto;
  box-shadow: 0 40px 90px rgba(0, 21, 45, .35);
}
.search-dialog::backdrop { background: rgba(0, 21, 45, .45); backdrop-filter: blur(3px); }
.search-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.search-head h2 { margin: 0; font-size: 1.1rem; }
.search-dialog input[type="search"] {
  width: 100%; margin-top: 12px; padding: 13px 15px; border: 1px solid var(--sos-line);
  border-radius: 12px; background: var(--sos-tint); font: inherit; color: inherit;
}
.search-hint { font-size: .78rem; color: #5A6B7D; margin: 8px 0 16px; }
.search-results { display: flex; flex-direction: column; overflow-y: auto; max-height: 52vh; }
.search-result { padding: 12px 10px; text-decoration: none; border-radius: 12px; }
.search-result:hover { background: var(--sos-tint); }
.search-result strong { display: block; font-size: .98rem; }
.search-result p { margin: 4px 0 0; font-size: .85rem; color: #5A6B7D; }
.search-result .search-lang { font-size: .64rem; letter-spacing: .14em; font-weight: 800; color: var(--sos-struct); }

/* ---------- responsive ------------------------------------ */

@media (max-width: 1100px) {
  .docs-shell { grid-template-columns: 200px minmax(0, 1fr); }
  .docs-toc { display: none; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-left, .p-right { width: 200px; }
  .p-left { left: 40px; }
  .p-right { right: 40px; }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; padding: 0; border: 0; background: none;
    color: var(--sos-ink); cursor: pointer;
  }
  .mobile-menu {
    display: block; position: absolute; left: 0; right: 0; top: 72px; z-index: 55;
    background: var(--sos-tint); border-top: 1px solid #E4EBF3; border-bottom: 1px solid #E4EBF3;
    padding: 4px 24px 16px;
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { display: block; padding: 14px 0; text-decoration: none; font-weight: 700; font-size: 15px; }
  .mobile-menu a + a { border-top: 1px solid #E4EBF3; }
  .mobile-menu .mobile-menu-lang { font-weight: 800; color: #44576B; }

  .hero { padding-top: 40px; }
  .stage { height: 600px; margin-top: 40px; }
  .glow { width: 420px; height: 460px; }
  .p-left, .p-right { display: none; }
  .p-mid { width: 260px; margin-left: -130px; }
  .float-card { width: 158px; padding: 12px 14px; }
  .float-card strong { font-size: 19px; }
  .c1 { left: 12px; top: 70px; }
  .c2 { right: 12px; top: 360px; width: 158px; }

  .pillars-grid { grid-template-columns: 1fr; }
  .band-grid, .teaser-grid { grid-template-columns: 1fr; }
  .faq-list { grid-template-columns: 1fr; padding: 6px 22px; }
  .faq details:nth-child(2) { border-top: 1px solid var(--sos-line); }
  .docs-shell { grid-template-columns: 1fr; }
  .docs-sidebar { display: none; }
  .docs-mobile {
    display: block; background: var(--sos-surface); border-radius: var(--sos-r-md);
    padding: 2px 18px; box-shadow: var(--sos-shadow); margin-bottom: 4px;
  }
  .docs-mobile summary {
    cursor: pointer; list-style: none; padding: 14px 0; font-weight: 800;
    display: flex; justify-content: space-between; align-items: center;
  }
  .docs-mobile summary::-webkit-details-marker { display: none; }
  .docs-mobile summary::after { content: "+"; font-weight: 400; font-size: 1.2rem; }
  .docs-mobile[open] summary::after { content: "−"; }
  .docs-mobile nav { padding-bottom: 10px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-card { grid-template-columns: 1fr; }
  .post-card img { max-width: 240px; }
}

@media (max-width: 720px) {
  .screens-head { text-align: left; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .header-tools .icon-button[href] { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .doc-pager { grid-template-columns: 1fr; }
  .pager-next { text-align: left; }
  .stores { gap: 8px; }
  .store-badge img { height: 30px; }
  .community-actions > a { flex: 1 1 100%; }
  .stage { height: 600px; }
  .p-mid { width: 240px; margin-left: -120px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
