/* 首页：已确认的近白画布、三客户端入口与透视网格。 */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - var(--nav-h) - var(--peek));
  padding: 46px var(--gutter) 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 58%, var(--bg-soft) 100%);
  color: var(--text);
}
.horizon {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: -1px;
  width: 2800px;
  height: 2000px;
  margin-left: -1400px;
  pointer-events: none;
  transform-origin: 50% 100%;
  transform: perspective(700px) rotateX(64deg);
  background-image: linear-gradient(to right, var(--grid-line) 1px, var(--mask-clear) 1px), linear-gradient(to bottom, var(--grid-line) 1px, var(--mask-clear) 1px);
  background-size: 76px 76px;
  background-position: center bottom;
  -webkit-mask-image: radial-gradient(ellipse 46% 100% at 50% 100%, var(--mask-solid) 0%, var(--mask-solid) 22%, var(--mask-clear) 78%);
  mask-image: radial-gradient(ellipse 46% 100% at 50% 100%, var(--mask-solid) 0%, var(--mask-solid) 22%, var(--mask-clear) 78%);
  animation: horizon-breath 18s ease-in-out infinite alternate;
}
@keyframes horizon-breath { from { opacity: 0.5; } to { opacity: 1; } }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 100%; }
.badge { display: inline-flex; align-items: center; gap: 10px; min-height: 30px; max-width: 100%; padding: 5px 14px 5px 12px; font-size: 13px; font-weight: var(--weight-medium); color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill); box-shadow: var(--shadow-hairline); overflow-wrap: anywhere; }
.badge-dot { width: 7px; height: 7px; border-radius: var(--r-circle); background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.badge-key { color: var(--text); font-weight: var(--weight-semibold); }
.title { margin: 22px 0 0; font-family: var(--font-display); font-size: clamp(28px, 2.4vw + 14px, 48px); font-weight: var(--weight-display); line-height: 1.12; letter-spacing: var(--tracking-title); color: var(--text); }
.title-line { display: block; }
.lede { max-width: 620px; margin: 22px 0 0; font-size: 16px; line-height: 1.65; color: var(--text-muted); }
.lede strong { color: var(--text); font-weight: var(--weight-semibold); }
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.plat { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 10px; font-size: 13px; font-weight: var(--weight-medium); color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill); transition: color var(--transition) var(--ease), border-color var(--transition) var(--ease); }
.plat svg { width: 14px; height: 14px; flex-shrink: 0; }
.plat:hover { color: var(--text); border-color: var(--border-strong); }
.device { position: relative; z-index: 2; width: 100%; max-width: var(--container); margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; overflow: visible; }
.entry { position: relative; display: block; min-width: 0; height: 240px; color: var(--text); background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--r-card); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease); }
.entry:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-card-hover); }
.entry-copy { position: absolute; top: 22px; left: 24px; width: 44%; }
.entry-kicker { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: var(--weight-medium); letter-spacing: 0.01em; color: var(--text-muted); }
.entry-name { margin: 8px 0 0; font-family: var(--font-display); font-size: 22px; font-weight: var(--weight-heavy); line-height: 1.2; letter-spacing: var(--tracking-title); }
.entry-desc { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--text-muted); }
.entry-go { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 13px; font-weight: var(--weight-semibold); color: var(--accent-dark); }
.stage { position: absolute; inset: 0; pointer-events: none; }
.stage-clip { position: absolute; top: 22px; right: 0; bottom: 0; width: 50%; overflow: hidden; border-bottom-right-radius: calc(var(--r-card) - 1px); }
.sk { display: block; height: 5px; border-radius: var(--r-tiny); background: var(--skeleton); }
.sk-w30 { width: 30%; }
.sk-w45 { width: 45%; }
.sk-w55 { width: 55%; }
.sk-w65 { width: 65%; }
.sk-w75 { width: 75%; }
.sk-w85 { width: 85%; }
.dot { display: inline-block; width: 6px; height: 6px; flex-shrink: 0; border-radius: var(--r-circle); }
.dot-ok { background: var(--success); }
.dot-warn { background: var(--warn); }
.dot-error { background: var(--error); }
.win { position: absolute; top: 0; bottom: 0; left: 14px; width: 340px; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-bottom: 0; border-radius: var(--r-win) var(--r-win) 0 0; box-shadow: var(--shadow-win); }
.win-bar { display: flex; align-items: center; gap: 7px; height: 26px; flex-shrink: 0; padding: 0 10px; font-size: 11px; font-weight: var(--weight-semibold); border-bottom: 1px solid var(--border); }
.win-app { width: 11px; height: 11px; border-radius: var(--r-tiny); background: var(--text); }
.win-ctl { display: flex; gap: 14px; margin-left: auto; font-size: 10px; color: var(--text-muted); }
.win-menu { display: flex; align-items: center; gap: 12px; height: 24px; flex-shrink: 0; padding: 0 10px; font-size: 10.5px; color: var(--text-muted); white-space: nowrap; border-bottom: 1px solid var(--border); }
.win-thead, .win-row { display: grid; grid-template-columns: 50px 78px 1fr; align-items: center; flex-shrink: 0; padding: 0 10px; }
.win-thead { height: 22px; font-size: 10px; font-weight: var(--weight-semibold); color: var(--text-muted); background: var(--bg-panel); border-bottom: 1px solid var(--border); }
.win-row { height: 22px; border-bottom: 1px solid var(--bg-panel-2); }
.win-row .proto { font-family: var(--font-mono); font-size: 9.5px; font-weight: var(--weight-semibold); color: var(--text); }
.win-row .sk { margin-right: 12px; }
.win-row.is-sel { background: var(--accent-soft); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.win-row.is-sel .proto { color: var(--accent-dark); }
.win-fill { flex: 1; }
.win-status { display: flex; align-items: center; gap: 16px; height: 26px; flex-shrink: 0; padding: 0 10px; font-size: 10px; color: var(--text-muted); white-space: nowrap; background: var(--bg-panel); border-top: 1px solid var(--border); }
.win-status-item { display: inline-flex; align-items: center; gap: 5px; }
.win-status-item b { color: var(--text); font-weight: var(--weight-semibold); }
.phone { position: absolute; top: 0; bottom: -6px; left: 50px; width: 134px; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); color: var(--text); border: 5px solid var(--ink); border-bottom-width: 0; border-radius: var(--r-phone) var(--r-phone) 0 0; box-shadow: var(--shadow-win); }
.phone::before { content: ""; position: absolute; top: 5px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: var(--r-circle); background: var(--ink); }
.ph-status { display: flex; align-items: center; justify-content: flex-end; gap: 3px; height: 16px; flex-shrink: 0; padding: 0 10px; }
.ph-sig { width: 8px; height: 4px; border-radius: var(--r-tiny); background: var(--skeleton); }
.ph-sig-wide { width: 12px; }
.ph-bar { display: flex; align-items: center; gap: 8px; height: 28px; flex-shrink: 0; padding: 0 9px; font-size: 11px; font-weight: var(--weight-bold); letter-spacing: var(--tracking-small); color: var(--text); border-bottom: 1px solid var(--border); }
.ph-burger { width: 9px; height: 1.5px; background: currentColor; box-shadow: 0 3px 0 currentColor, 0 -3px 0 currentColor; }
.ph-act { display: flex; gap: 8px; margin-left: auto; font-size: 12px; font-weight: var(--weight-medium); color: var(--text-muted); }
.ph-row { display: flex; align-items: center; gap: 6px; height: 27px; flex-shrink: 0; padding: 0 8px; border-bottom: 1px solid var(--bg-panel-2); }
.ph-row.is-sel { background: var(--accent-soft); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.ph-tag { flex-shrink: 0; padding: 1px 4px; font-family: var(--font-mono); font-size: 7.5px; font-weight: var(--weight-semibold); color: var(--text-muted); background: var(--bg-panel-2); border-radius: var(--r-tiny); }
.ph-row.is-sel .ph-tag { color: var(--accent-dark); background: var(--surface); }
.ph-lines { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.ph-lines .sk { height: 4px; }
.ph-foot { display: flex; align-items: center; justify-content: space-between; height: 42px; flex-shrink: 0; margin-top: auto; padding: 0 8px; background: var(--bg-panel); color: var(--text); border-top: 1px solid var(--border); }
.ph-core { padding: 2px 6px; font-family: var(--font-mono); font-size: 8px; font-weight: var(--weight-semibold); color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill); }
.ph-note { font-size: 8.5px; font-weight: var(--weight-medium); color: var(--text-muted); }
.ph-fab { display: grid; place-items: center; width: 38px; height: 38px; margin-top: -26px; border-radius: var(--r-circle); color: var(--on-accent); background: var(--accent); box-shadow: var(--shadow-fab); }
.ph-fab svg { width: 15px; height: 15px; }
.phone-dark { background: var(--ink-2); color: var(--on-ink); }
.phone-dark .ph-sig { background: var(--skeleton-ink); }
.phone-dark .ph-bar { color: var(--on-ink); border-color: var(--ink-line); }
.phone-dark .ph-act { color: var(--on-ink-muted); }
.phone-dark .ph-row { border-color: var(--ink-line); }
.phone-dark .ph-tag { color: var(--on-ink-muted); background: var(--ink-3); }
.phone-dark .ph-row.is-sel { background: var(--ink-3); color: var(--on-ink); }
.phone-dark .ph-row.is-sel .ph-tag { color: var(--on-ink); background: var(--skeleton-ink); }
.phone-dark .sk { background: var(--skeleton-ink); }
.phone-dark .ph-foot { background: var(--ink-3); color: var(--on-ink); border-color: var(--ink-line); }
.phone-dark .ph-note { color: var(--on-ink-muted); }
.pop { position: absolute; z-index: 3; left: 100px; bottom: -20px; width: 156px; padding: 10px 12px 11px; font-size: 12px; color: var(--text); background: var(--surface); border-radius: var(--r-pop); box-shadow: var(--shadow-pop); }
.pop-label { display: flex; align-items: center; justify-content: space-between; font-size: 10px; font-weight: var(--weight-semibold); letter-spacing: 0.04em; color: var(--text-muted); }
.pop-pill { padding: 1px 6px; font-size: 9.5px; font-weight: var(--weight-semibold); letter-spacing: 0; color: var(--text-muted); background: var(--bg-panel-2); border-radius: var(--r-pill); }
.pop-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; font-size: 13px; font-weight: var(--weight-bold); letter-spacing: var(--tracking-small); }
.pop-row-start { justify-content: flex-start; }
.pop-code { margin-top: 5px; font-family: var(--font-mono); font-size: 9.5px; color: var(--text-muted); white-space: nowrap; }
.pop-code-mono { font-family: var(--font-mono); font-size: 12px; font-weight: var(--weight-bold); }
.toggle { position: relative; width: 28px; height: 16px; flex-shrink: 0; border-radius: var(--r-pill); background: var(--accent); }
.toggle::after { content: ""; position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: var(--r-circle); background: var(--surface); }
.radio { position: relative; width: 13px; height: 13px; flex-shrink: 0; border: 1.5px solid var(--accent); border-radius: var(--r-circle); }
.radio::after { content: ""; position: absolute; inset: 2px; border-radius: var(--r-circle); background: var(--accent); }
.pop-menu { padding: 6px; }
.pop-item { display: flex; align-items: center; justify-content: space-between; min-height: 23px; padding: 3px 8px; font-size: 11.5px; font-weight: var(--weight-medium); color: var(--text-muted); border-radius: var(--r-ctl); }
.pop-item.is-on { font-weight: var(--weight-semibold); color: var(--accent-dark); background: var(--accent-soft); }
.statusbar { min-height: 56px; font-family: var(--font-mono); font-size: 12px; color: var(--on-ink-muted); background: var(--ink); border-top: 1px solid var(--ink-line); }
.statusbar-inner { max-width: var(--container); min-height: 56px; margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.sb-item { display: inline-flex; align-items: center; gap: 8px; }
.sb-item b { font-weight: var(--weight-medium); color: var(--on-ink); }

/* tabs：横排平台与暗色演示舱共用同一语义结构。 */
.tabs { min-width: 0; }
.tablist, [role="tablist"] { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
[role="tab"] { min-height: 44px; padding: 10px 18px; background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); border-radius: var(--r-ctl); font-weight: var(--weight-medium); }
[role="tab"]:hover { background: var(--bg-panel); color: var(--text); }
[role="tab"][aria-selected="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: var(--weight-bold); }
[role="tabpanel"] { min-width: 0; }
.demo-bay { overflow-x: clip; background: var(--ink); color: var(--on-ink); border-block: 1px solid var(--ink-line); }
.demo-bay h2, .demo-bay h3 { color: var(--on-ink); }
.demo-bay .muted { color: var(--on-ink-muted); }
.feature-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; }
.demo-bay [role="tablist"] { display: flex; flex-direction: column; gap: 12px; align-self: start; }
.demo-bay [role="tab"] { position: relative; text-align: left; padding: 14px 20px; background: var(--ink); color: var(--on-ink-muted); border: 0; border-radius: var(--r-ctl); }
.demo-bay [role="tab"][aria-selected="true"] { color: var(--on-ink); font-weight: var(--weight-heavy); }
.demo-bay [role="tab"][aria-selected="true"]::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 0; width: 3px; background: var(--accent); }
.client-demo { position: relative; min-width: 0; padding-bottom: 40px; margin-bottom: 24px; }
.demo-window { padding: 0 24px 56px; background: var(--ink-2); color: var(--on-ink); border: 1px solid var(--skeleton-ink); border-radius: var(--r-card); box-shadow: var(--shadow-win); }
.demo-chrome { display: flex; align-items: center; gap: 7px; padding-block: 18px; border-bottom: 1px solid var(--skeleton-ink); font-size: var(--text-xs); }
.demo-chrome span:last-child { margin-left: 10px; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 18px; border-bottom: 1px solid var(--ink-line); font-size: var(--text-sm); }
.setting-row > * { min-width: 0; overflow-wrap: anywhere; }
.json-float { position: absolute; right: 20px; bottom: 0; max-width: calc(100% - 40px); padding: 16px 20px; background: var(--surface); color: var(--text); border-radius: var(--r-pop); box-shadow: var(--shadow-pop); }
.json-float pre { margin: 8px 0 0; padding: 0; border: 0; background: var(--surface); color: var(--text); font-size: var(--text-xs); }
.feature-copy { max-width: 750px; color: var(--on-ink-muted); line-height: 1.85; }

/* 长文目录的直接父容器必须覆盖全部章节。 */
.toc { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 16px; margin-bottom: 32px; border: 1px solid var(--border); border-radius: var(--r-win); background: var(--surface); color: var(--text); }
.toc a { display: inline-flex; align-items: center; min-height: 32px; color: var(--text-muted); font-size: var(--text-sm); }
.toc a:hover, .toc a[aria-current] { color: var(--accent-dark); }
.faq-item { background: var(--surface); color: var(--text); border-bottom: 1px solid var(--border); }
.faq-item summary { position: relative; padding: 22px 40px 22px 0; cursor: pointer; list-style: none; font-weight: var(--weight-semibold); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 8px; top: 20px; font-size: 20px; color: var(--text-muted); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-bottom: 22px; color: var(--text-muted); line-height: 1.8; }
.faq-answer p:last-child { margin-bottom: 0; }
.term-card { background: var(--surface); color: var(--text); }
.term-card dt { font-family: var(--font-mono); font-size: var(--text-lg); font-weight: var(--weight-bold); margin-bottom: 12px; }
.term-card dd { margin: 0; color: var(--text-muted); line-height: 1.8; }
.client-card { background: var(--surface); color: var(--text); }
.client-card-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.client-card-head h3 { margin: 0; }
.app-icon { width: 56px; height: 56px; flex-shrink: 0; }
.client-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.tag { display: inline-flex; align-items: center; max-width: 100%; padding: 4px 9px; border: 1px solid var(--border); border-radius: var(--r-ctl); background: var(--bg-panel); color: var(--text-muted); font-size: var(--text-xs); font-weight: var(--weight-semibold); overflow-wrap: anywhere; }
.tag-primary { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--border); }
.tag-recommended { background: var(--bg-panel-2); color: var(--text); }
.tag-retired { background: var(--bg-panel); color: var(--text-muted); border-style: dashed; }
.article-card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; background: var(--surface); color: var(--text); }
.article-card h3 { margin: 0; line-height: 1.5; }
.article-card p { color: var(--text-muted); margin: 0; line-height: 1.8; }
.article-card time { color: var(--text-muted); font-family: var(--font-mono); font-size: var(--text-xs); margin-top: auto; }
.callout { margin: 24px 0; padding: 20px 24px; border-left: 3px solid var(--accent); border-radius: var(--r-ctl); background: var(--bg-panel); color: var(--text); line-height: 1.8; }
.callout p:last-child { margin-bottom: 0; }
.callout-warning { border-left-color: var(--warn); }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--r-win); }
.data-table { width: 100%; border-collapse: collapse; color: var(--text); background: var(--surface); }
.data-table th, .data-table td, .prose table th, .prose table td {
  min-width: 7em;
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
  border-bottom: 1px solid var(--border);
}
.data-table th, .prose table th { background: var(--bg-panel); color: var(--text); font-weight: var(--weight-semibold); }
.data-table tr:last-child td { border-bottom: 0; }
.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; background: var(--surface); color: var(--text); }
.prose table code { overflow-wrap: anywhere; }
.article-download { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 40px; background: var(--bg-panel); color: var(--text); }
.article-download h2 { font-size: 24px; margin-top: 0; }
.article-download p { margin-bottom: 0; color: var(--text-muted); }
.dl-fab { position: fixed; z-index: 15; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 36px); padding: 14px 18px; background: var(--accent); color: var(--on-accent); border-radius: var(--r-ctl); box-shadow: var(--shadow-fab); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.dl-fab:hover { background: var(--accent-dark); color: var(--on-accent); }
.dl-fab svg { width: 20px; height: 20px; flex-shrink: 0; }

/* 静态设计预览家具。 */
.spec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.swatch { min-width: 0; border: 1px solid var(--border); border-radius: var(--r-ctl); overflow: hidden; background: var(--surface); color: var(--text); }
.swatch-color { display: block; height: 64px; border-bottom: 1px solid var(--border); }
.swatch code { display: block; padding: 10px; font-size: 11px; }
.sw-bg { background: var(--bg); }
.sw-bg-soft { background: var(--bg-soft); }
.sw-bg-panel { background: var(--bg-panel); }
.sw-bg-panel-2 { background: var(--bg-panel-2); }
.sw-surface { background: var(--surface); }
.sw-border { background: var(--border); }
.sw-border-strong { background: var(--border-strong); }
.sw-grid-line { background: var(--grid-line); }
.sw-skeleton { background: var(--skeleton); }
.sw-accent { background: var(--accent); }
.sw-accent-dark { background: var(--accent-dark); }
.sw-accent-soft { background: var(--accent-soft); }
.sw-on-accent { background: var(--on-accent); }
.sw-text { background: var(--text); }
.sw-text-muted { background: var(--text-muted); }
.sw-text-faint { background: var(--text-faint); }
.sw-success { background: var(--success); }
.sw-success-soft { background: var(--success-soft); }
.sw-warn { background: var(--warn); }
.sw-error { background: var(--error); }
.sw-ink { background: var(--ink); }
.sw-ink-2 { background: var(--ink-2); }
.sw-ink-3 { background: var(--ink-3); }
.sw-ink-line { background: var(--ink-line); }
.sw-skeleton-ink { background: var(--skeleton-ink); }
.sw-on-ink { background: var(--on-ink); }
.sw-on-ink-muted { background: var(--on-ink-muted); }
.sw-mask-solid { background: var(--mask-solid); }
.sw-mask-clear { background: var(--mask-clear); }
.sw-veil { background: var(--veil); }
.button-spec { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-block: 24px; }
.type-display { font-family: var(--font-display); font-size: var(--title-size); font-weight: var(--weight-display); line-height: 1.12; letter-spacing: var(--tracking-title); }
.preview-footer { margin-top: 40px; }

@media (max-width: 1120px) {
  .hero { min-height: 0; }
  .device { max-width: 440px; grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 768px) {
  .title, .type-display { font-size: 28px; }
  .feature-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .demo-bay [role="tablist"] { flex-direction: row; gap: 6px; }
  .demo-bay [role="tab"] { padding: 12px 14px; }
  .spec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero { padding: 36px var(--gutter) 72px; }
  .hero .actions { flex-direction: column; width: 100%; }
  .hero .btn { width: 100%; }
  .lede { font-size: 15px; }
  .entry-copy { width: 46%; left: 20px; }
  .pop { left: 70px; }
  .phone { left: 25px; }
  .platforms { flex-direction: row; flex-wrap: wrap; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-window { padding-inline: 16px; }
  .setting-row { gap: 12px; }
  .json-float { right: 8px; max-width: calc(100% - 16px); padding: 12px; }
  .toc { position: static; }
  .dl-fab { right: 18px; bottom: 18px; }
  .article-has-fab { padding-bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  .horizon { animation: none; opacity: 0.8; }
  .entry:hover { transform: none; }
}