/* 首屏：白底、两条静态细线、桌面窗口与两侧手机浮窗。 */
.backdrop {
  position: absolute;
  inset: 0 0 auto;
  height: 100vh;
  height: 100svh;
  min-height: 760px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.backdrop::after {
  content: "";
  position: absolute;
  left: -14%;
  bottom: -22%;
  width: 64vw;
  height: 78%;
  background: radial-gradient(closest-side,var(--bg-panel-2),var(--clear));
  color: var(--text);
}
.bg-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg-line { fill: none; stroke: var(--hairline); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--head-h) - var(--peek));
  min-height: calc(100svh - var(--head-h) - var(--peek));
  display: grid;
  align-content: center;
  padding-top: 28px;
  padding-bottom: 36px;
  overflow-x: clip;
}
.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 32px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  padding: 5px 14px 5px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-xs);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .08em;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: var(--r-circle); background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 3px var(--accent-soft); flex-shrink: 0; }
.hero h1 { margin: 22px 0 0; font-size: clamp(30px,2.2vw + 16px,48px); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.h1-line { display: block; }
.h1-grad {
  padding-bottom: .04em;
  background: linear-gradient(100deg,var(--accent) 12%,var(--accent-dark) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--clear);
  -webkit-text-fill-color: var(--clear);
}
.lead { margin: 20px 0 0; max-width: 30em; font-size: 17px; line-height: 1.75; color: var(--text-muted); }
.lead strong { color: var(--text); font-weight: 600; }
.platforms { margin-top: 34px; padding-top: 20px; max-width: 470px; border-top: 1px solid var(--border); }
.plat-note { margin: 0 0 13px; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.plat-list { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 0; padding: 0; list-style: none; }
.plat-list a { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--text); }
.plat-list a:hover { color: var(--accent); }
.plat-list svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; }
.device-wrap { --k: 1; position: relative; justify-self: end; width: calc(800px * var(--k)); height: calc(524px * var(--k)); }
.device { position: absolute; top: 0; left: 0; width: 800px; height: 524px; transform: scale(var(--k)); transform-origin: 0 0; font-family: var(--font-body); color: var(--text); line-height: normal; }
.plate { position: absolute; left: 34px; top: 70px; width: 660px; height: 418px; border-radius: var(--r-phone); border: 1px solid var(--border); background: linear-gradient(180deg,var(--bg-panel),var(--bg-panel-2)); color: var(--text); }
.win { position: absolute; left: 64px; top: 24px; width: 600px; height: 420px; display: grid; grid-template-rows: 38px 1fr; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-window); overflow: hidden; }
.win-bar { display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; padding: 0 14px; border-bottom: 1px solid var(--border); }
.win-dots { display: flex; gap: 7px; }
.win-dots span { width: 10px; height: 10px; border-radius: var(--r-circle); background: var(--chrome-dot); color: var(--text); }
.win-title { text-align: center; font-size: 12px; font-weight: 500; color: var(--text-muted); letter-spacing: .02em; }
.win-body { display: grid; grid-template-columns: 140px 1fr; min-height: 0; }
.side { margin: 0; padding: 12px 10px; list-style: none; display: flex; flex-direction: column; gap: 2px; background: linear-gradient(180deg,var(--accent-dark),var(--accent)); color: var(--on-accent); }
.side li { height: 28px; display: flex; align-items: center; padding: 0 12px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 500; color: var(--on-accent-muted); }
.side li.is-on { background: var(--sidebar-active); color: var(--on-accent); font-weight: 600; box-shadow: inset 0 0 0 1px var(--sidebar-edge); }
.main { display: flex; flex-direction: column; gap: 14px; padding: 18px 76px 18px 22px; min-width: 0; }
.m-head { display: flex; align-items: center; justify-content: space-between; }
.m-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.m-add { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-size: 11.5px; font-weight: 600; }
.m-import { display: flex; gap: 8px; }
.m-field { flex: 1; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--r-control); background: var(--bg); font-size: 12px; color: var(--text-muted); }
.m-field .ic { width: 14px; height: 14px; }
.m-btn { display: flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--accent); border-radius: var(--r-control); font-size: 12px; font-weight: 600; color: var(--accent); }
.subs { display: flex; flex-direction: column; gap: 8px; }
.sub { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 8px 0 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg); color: var(--text); }
.sub.is-current { border-color: var(--accent); box-shadow: var(--shadow-current); }
.sub-tile { width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--bg-panel-2); color: var(--text); flex: none; }
.sub.is-current .sub-tile { background: var(--accent-soft); color: var(--accent); }
.sub-lines { flex: 1; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.sk { display: block; height: 7px; border-radius: var(--r-skeleton); background: var(--skeleton); color: var(--text); }
.sk-a { width: 62%; height: 8px; }
.sk-b { width: 88%; height: 6px; background: var(--skeleton-soft); color: var(--text); }
.sk-a.short { width: 48%; }
.sk-b.short { width: 70%; }
.sub-flag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: var(--r-pill); background: var(--accent-soft); font-size: 10.5px; font-weight: 600; color: var(--accent); flex: none; }
.acts { display: flex; gap: 2px; flex: none; }
.act { width: 24px; height: 24px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--accent); }
.act .ic { width: 15px; height: 15px; }
.act-more { color: var(--text-muted); }
.spin { animation: turn 3.6s cubic-bezier(.6,0,.3,1) infinite; transform-origin: 50% 50%; }
@keyframes turn { 0% { transform: rotate(0); } 34%,100% { transform: rotate(360deg); } }
.phone { position: absolute; display: flex; flex-direction: column; background: var(--bg); color: var(--text); border: 4px solid var(--rim); border-radius: var(--r-phone); box-shadow: var(--shadow-float); overflow: hidden; }
.ph-a { left: 16px; top: 174px; width: 172px; height: 316px; }
.ph-i { left: 608px; top: 134px; width: 188px; height: 352px; }
.ph-status { height: 20px; display: flex; align-items: center; justify-content: center; flex: none; }
.ph-hole { width: 7px; height: 7px; border-radius: var(--r-circle); background: var(--island); color: var(--on-accent); }
.ph-content { flex: 1; display: flex; flex-direction: column; gap: 11px; padding: 6px 12px 12px; min-height: 0; }
.ph-head { display: flex; align-items: center; justify-content: space-between; }
.ph-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.ph-plus { width: 22px; height: 22px; border-radius: var(--r-circle); display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.ph-plus .ic { width: 12px; height: 12px; stroke-width: 2.2; }
.seg { display: grid; grid-template-columns: repeat(3,1fr); height: 30px; padding: 3px; border-radius: var(--r-control); background: var(--bg-panel-2); color: var(--text); }
.seg span { display: grid; place-items: center; border-radius: var(--r-sm); font-size: 11px; font-weight: 500; color: var(--text-muted); }
.seg span.on { background: var(--bg); color: var(--accent); font-weight: 600; box-shadow: var(--shadow-xs); }
.msubs { display: flex; flex-direction: column; gap: 8px; }
.msub { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--r-control); }
.msub .sub-tile { width: 20px; height: 20px; border-radius: var(--r-xs); }
.msub .sub-lines { gap: 6px; }
.ph-btn { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border-radius: var(--r-control); background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 600; }
.ph-btn .ic { width: 14px; height: 14px; }
.tabs { flex: none; display: grid; grid-template-columns: repeat(3,1fr); height: 50px; border-top: 1px solid var(--border); background: var(--bg); color: var(--text); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10px; font-weight: 500; color: var(--text-muted); }
.tab .ic { width: 16px; height: 16px; stroke-width: 1.7; }
.tab.on { color: var(--accent); font-weight: 600; }
.ph-i .ph-status { height: 26px; background: var(--bg-panel); color: var(--text); }
.island { width: 56px; height: 16px; border-radius: var(--r-pill); background: var(--island); color: var(--on-accent); }
.ph-i .ph-content { background: var(--bg-panel); color: var(--text); gap: 10px; padding: 6px 12px 12px; }
.ph-i .ph-title { font-size: 18px; font-weight: 800; padding-left: 2px; }
.set-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg); color: var(--text); }
.set-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 38px; padding: 0 10px; font-size: 11px; font-weight: 500; color: var(--text); }
.set-list li + li { border-top: 1px solid var(--border); }
.tg { position: relative; width: 28px; height: 17px; border-radius: var(--r-pill); background: var(--skeleton); color: var(--text); flex: none; }
.tg::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: var(--r-circle); background: var(--bg); color: var(--text); box-shadow: var(--shadow-knob); }
.tg.on { background: var(--accent); color: var(--on-accent); }
.tg.on::after { left: 13px; }
.num-group { display: inline-flex; align-items: center; gap: 4px; }
.num { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 40px; height: 22px; padding: 0 6px; border: 1px solid var(--border); border-radius: var(--r-xs); background: var(--bg-panel); font-family: var(--font-mono); font-size: 10.5px; color: var(--text); }
.unit { font-size: 10px; color: var(--text-muted); }
.ph-i .tabs { height: 50px; position: relative; align-items: start; padding-top: 6px; }
.ph-i .tab { justify-content: flex-start; }
.ph-i .tabs::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 60px; height: 4px; margin-left: -30px; border-radius: var(--r-pill); background: var(--island); color: var(--on-accent); }

/* 资料浏览器与通用 tab。 */
.features { position: relative; z-index: 1; padding-bottom: 96px; overflow-x: clip; }
.ft-panel { padding: 56px 56px 64px; border-radius: var(--r-xl); background: var(--bg-panel); color: var(--text); }
.ft-head { display: flex; align-items: flex-start; gap: 16px; }
.ft-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg); color: var(--accent); box-shadow: var(--shadow-xs); }
.ft-ico .ic { width: 22px; height: 22px; }
.ft-head h2 { margin: 2px 0 0; font-size: 28px; font-weight: 800; line-height: 1.3; }
.ft-head p { margin: 8px 0 0; font-size: 16px; line-height: 1.7; color: var(--text-muted); }
.tab-list { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.tab-list [role="tab"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.5;
}
.tab-list [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: var(--shadow-xs); }
.tab-panel { min-width: 0; }
.feature-browser { display: grid; grid-template-columns: minmax(240px,.8fr) minmax(0,1.2fr); gap: 36px; margin-top: 36px; padding-right: 24px; }
.feature-tabs { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 0; }
.feature-tabs [role="tab"] { position: relative; justify-content: flex-start; text-align: left; padding: 18px 20px; border: 1px solid var(--clear); border-radius: var(--r-md); background: var(--clear); color: var(--text); overflow: hidden; }
.feature-tabs [role="tab"] .ic { color: var(--accent); }
.tab-copy { display: grid; gap: 4px; min-width: 0; }
.tab-copy small { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.feature-tabs [role="tab"][aria-selected="true"] { background: var(--bg); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-card); }
.feature-tabs [role="tab"][aria-selected="true"]::before { content: ""; position: absolute; inset: 12px auto 12px 0; width: 3px; background: var(--accent); color: var(--on-accent); }
.tab-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--accent); color: var(--on-accent); transform: scaleX(0); transform-origin: left; }
[data-autoplay].is-playing [aria-selected="true"] .tab-progress { animation: tab-clock var(--tab-duration) linear forwards; }
@keyframes tab-clock { to { transform: scaleX(1); } }
.feature-detail { position: relative; padding: 32px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg); color: var(--text); box-shadow: var(--shadow-card); }
.feature-detail h3 { margin: 0 0 16px; }
.feature-detail p { color: var(--text-muted); }
.config-sample { position: relative; right: -24px; bottom: -24px; margin: 12px 0 0; background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-window); }

/* 长文、下载、资料卡。 */
.toc { position: sticky; top: 16px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; margin-bottom: 32px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg); color: var(--text); box-shadow: var(--shadow-card); }
.toc a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border-radius: var(--r-pill); color: var(--text-muted); text-decoration: none; }
.toc a:hover,.toc a[aria-current] { background: var(--bg-panel); color: var(--accent); }
.faq-item { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg); color: var(--text); margin-bottom: 12px; box-shadow: var(--shadow-xs); }
.faq-item summary { position: relative; padding: 20px 52px 20px 24px; font-weight: 650; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 24px; top: 18px; color: var(--accent); font-size: 22px; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 24px 22px; color: var(--text-muted); }
.faq-answer p:last-child { margin-bottom: 0; }
.term-card { border-top: 3px solid var(--accent); }
.term-card dt { font-family: var(--font-display); font-weight: 700; font-size: 21px; }
.term-card dd { margin: 12px 0 0; color: var(--text-muted); }
.term-key { display: block; margin-top: 4px; font: 12px/1.6 var(--font-mono); color: var(--accent); overflow-wrap: anywhere; }
.client-card { display: flex; flex-direction: column; gap: 20px; }
.client-card.is-featured { border-color: var(--accent); box-shadow: var(--shadow-current),var(--shadow-card); }
.client-head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.client-head > div { min-width: 0; }
.client-icon { width: 56px; height: 56px; flex-shrink: 0; }
.client-head h3 { margin: 0 0 6px; }
.client-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-muted); }
[data-version]:empty { display: none; }
.client-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 10px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg-panel); color: var(--text-muted); font-size: 12px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.badge-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.badge-recommended { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--rim); }
.badge-archived { background: var(--bg-panel-2); color: var(--text-muted); }
.status-dot { width: 6px; height: 6px; border-radius: var(--r-circle); background: var(--success); color: var(--on-accent); flex-shrink: 0; }
.post-card { display: flex; flex-direction: column; gap: 16px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; color: var(--text-muted); }
.post-card h3 { margin: 0; font-size: 20px; line-height: 1.55; }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { margin: 0; color: var(--text-muted); font-size: 14px; }
.post-card .post-link { margin-top: auto; font-size: 14px; font-weight: 600; }
.callout { margin: 24px 0; padding: 20px 24px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r-md); background: var(--bg-panel); color: var(--text); }
.callout p:last-child { margin-bottom: 0; }
.callout-title { display: block; margin-bottom: 8px; font-weight: 700; color: var(--accent-dark); }
.callout-warning { border-left-color: var(--warn); }
.callout-error { border-left-color: var(--error); }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--r-md); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--bg); color: var(--text); }
.data-table th,.data-table td,.prose table th,.prose table td,.article-body table th,.article-body table td {
  min-width: 7em;
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  overflow-wrap: normal;
  word-break: normal;
}
.data-table th,.prose table th,.article-body table th { background: var(--bg-panel); color: var(--text); font-weight: 650; }
.data-table tr:last-child td { border-bottom: 0; }
.prose table,.article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; }
.prose table code,.article-body table code { overflow-wrap: anywhere; }
.download-endcap { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-block: 40px; padding: 28px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--bg-panel); color: var(--text); }
.download-endcap h2 { margin: 0 0 8px; font-size: 23px; }
.download-endcap p { margin: 0; color: var(--text-muted); }
.download-endcap .btn { flex-shrink: 0; }
.dl-fab { position: fixed; right: 24px; bottom: 24px; z-index: var(--layer-fab); display: inline-flex; align-items: center; justify-content: center; gap: 12px; max-width: calc(100% - 40px); min-height: 56px; padding: 12px 22px; border: 1px solid var(--accent); border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-btn); text-decoration: none; font-size: 14px; font-weight: 600; }
.dl-fab:hover { background: var(--accent-dark); color: var(--on-accent); text-decoration: none; }
body.has-dl-fab { padding-bottom: 88px; }

/* 预览页家具；不承担业务状态。 */
.preview-section { padding-top: 64px; padding-bottom: 64px; }
.preview-section > h2 { margin-top: 0; margin-bottom: 28px; }
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 16px; }
.swatch { min-width: 0; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--bg); color: var(--text); }
.swatch-color { display: block; height: 64px; background: var(--bg); color: var(--text); }
.swatch code { display: block; padding: 10px 12px; font-size: 12px; }
.sw-bg { background: var(--bg); color: var(--text); }
.sw-panel { background: var(--bg-panel); color: var(--text); }
.sw-panel2 { background: var(--bg-panel-2); color: var(--text); }
.sw-border { background: var(--border); color: var(--text); }
.sw-accent { background: var(--accent); color: var(--on-accent); }
.sw-dark { background: var(--accent-dark); color: var(--on-accent); }
.sw-text { background: var(--text); color: var(--on-accent); }
.sw-muted { background: var(--text-muted); color: var(--on-accent); }
.sw-success { background: var(--success); color: var(--on-accent); }
.sw-warn { background: var(--warn); color: var(--text); }
.sw-error { background: var(--error); color: var(--on-accent); }
.sw-hairline { background: var(--hairline); color: var(--text); }
.sw-skeleton { background: var(--skeleton); color: var(--text); }
.sw-soft { background: var(--skeleton-soft); color: var(--text); }
.sw-dot { background: var(--chrome-dot); color: var(--text); }
.sw-rim { background: var(--rim); color: var(--text); }
.sw-accent-soft { background: var(--accent-soft); color: var(--text); }
.sw-on { background: var(--on-accent); color: var(--text); }
.sw-on-muted { background: var(--accent-dark); color: var(--on-accent-muted); }
.sw-sidebar { background: var(--accent-dark); color: var(--on-accent); box-shadow: inset 0 0 0 32px var(--sidebar-active); }
.sw-sidebar-edge { background: var(--accent-dark); color: var(--on-accent); box-shadow: inset 0 0 0 8px var(--sidebar-edge); }
.sw-island { background: var(--island); color: var(--on-accent); }
.sw-veil { background: var(--veil); color: var(--text); }
.sw-clear { background: var(--clear); color: var(--text); border: 1px dashed var(--border); }
.button-gallery { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.type-display { font: 800 48px/1.2 var(--font-display); letter-spacing: -.01em; margin: 0 0 20px; }
.type-subtitle { font-size: 20px; color: var(--text-muted); }
.preview-panel { background: var(--bg-panel); color: var(--text); }
@media (max-width:1360px) { .device-wrap { --k: .86; } }
@media (max-width:1180px) { .device-wrap { --k: .76; } }
@media (max-width:1120px) {
  .hero-grid { grid-template-columns: minmax(0,1fr); gap: 48px; }
  .device-wrap { --k: .82; justify-self: center; }
}
@media (max-width:900px) {
  .device-wrap { --k: .66; }
  .ft-panel { padding: 36px 24px 40px; }
  .feature-browser { grid-template-columns: minmax(0,1fr); gap: 24px; padding-right: 0; }
  .feature-tabs { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; align-items: stretch; padding-bottom: 8px; }
  .feature-tabs [role="tab"] { flex-shrink: 0; padding: 12px 18px; border-radius: var(--r-pill); }
  .feature-tabs [role="tab"][aria-selected="true"]::before { display: none; }
  .feature-tabs .tab-copy small { display: none; }
  .feature-tabs .tab-progress { left: 18px; right: 18px; }
  .config-sample { right: 0; }
}
@media (max-width:640px) {
  .device-wrap { --k: .4; }
  .hero h1 { font-size: 30px; }
  .lead { font-size: 15.5px; }
  .ft-head h2 { font-size: 22px; }
  .ft-head { gap: 12px; }
  .ft-panel { padding-inline: 20px; }
  .feature-detail { padding: 22px; }
  .config-sample { bottom: 0; padding: 16px; }
  .tab-list { flex-wrap: nowrap; overflow-x: auto; padding: 3px 3px 8px; }
  .tab-list [role="tab"] { flex-shrink: 0; }
  .feature-tabs { flex-direction: row; }
  .download-endcap { flex-direction: column; align-items: flex-start; padding: 22px; }
  .dl-fab { right: 20px; bottom: 16px; }
  .type-display { font-size: 30px; }
  .preview-section { padding-top: 40px; padding-bottom: 40px; }
  .toc { position: static; }
}
@media (max-width:359px) { .device-wrap { --k: .35; } }
@media (prefers-reduced-motion:reduce) { .spin,.tab-progress { animation: none !important; } }