/* 首屏：使用官方应用截图。 */
.hero-shot {
  position: absolute;
  right: 8%;
  top: 38px;
  width: 280px;
  margin: 0;
  text-align: center;
}
.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.hero-shot figcaption {
  margin-top: 12px;
  color: var(--on-dark-muted);
  font-size: var(--size-sm);
}
@media (max-width: 1100px) {
  .hero-shot {
    position: static;
    width: min(280px, 100%);
    margin: 40px auto 0;
  }
}
.hero {
  padding-top: var(--space-16);
  padding-bottom: 0;
  padding-inline: var(--space-6);
  overflow-x: clip;
}
.hero__panel {
  position: relative;
  display: flex;
  align-items: center;
  height: 620px;
  border-radius: var(--radius-panel);
  background: var(--ink);
  color: var(--on-dark);
}
.hero__grid {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(circle, var(--dot) 1px, var(--clear) 1.4px);
  background-size: 24px 24px;
  background-position: 12px 12px;
  -webkit-mask-image: linear-gradient(90deg, var(--clear) 40%, var(--mask-solid) 74%);
  mask-image: linear-gradient(90deg, var(--clear) 40%, var(--mask-solid) 74%);
  pointer-events: none;
}
.hero__arc {
  position: absolute;
  left: var(--radius-panel);
  bottom: -18px;
  display: block;
  width: calc(100% - var(--radius-panel) * 2);
  height: 18px;
  overflow: visible;
}
.hero__arc path {
  fill: var(--ink);
}
.hero__copy {
  position: relative;
  z-index: 2;
  width: 560px;
  margin-left: var(--space-18);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 0;
  padding: 6px 14px 6px 12px;
  border: var(--stroke) solid var(--line-dark-strong);
  border-radius: var(--radius-pill);
  background: var(--glass);
  color: var(--on-dark-muted);
  font-size: var(--size-sm);
  line-height: 1.4;
}
.eyebrow__dot,
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--accent-on-dark);
  color: var(--ink);
  box-shadow: 0 0 0 4px var(--dot-ring);
}
.status-dot {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: none;
}
.hero__title {
  margin: var(--space-6) 0 0;
  color: var(--on-dark);
  font-size: clamp(28px, 3.3vw, 48px);
  font-weight: var(--weight-bold);
  line-height: var(--leading-title);
  letter-spacing: var(--tracking-title);
}
.hero__line {
  display: block;
}
.hero__line--accent {
  color: var(--accent-on-dark);
}
.hero__lead {
  max-width: 528px;
  margin: var(--space-5) 0 0;
  color: var(--on-dark-muted);
  font-size: var(--size-body);
  line-height: 1.75;
}
.hero__lead strong {
  color: var(--on-dark);
  font-weight: var(--weight-semibold);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.hero__fact {
  margin: var(--space-4) 0 0;
  color: var(--on-dark-dim);
  font-size: var(--size-sm);
}
.hero__fact code {
  color: var(--on-dark-muted);
  font-size: var(--size-fact-code);
}
.devices {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  margin: var(--space-7) 0 0;
  padding: var(--space-5) 0 0;
  border-top: var(--stroke) solid var(--line-dark);
  list-style: none;
}
.device {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--on-dark-muted);
  font-size: var(--size-sm);
  line-height: 1;
  text-decoration: none;
}
.device:hover {
  color: var(--on-dark);
}
.device__icon {
  width: var(--icon-size);
  height: var(--icon-size);
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.device__icon .solid {
  fill: currentColor;
  stroke: none;
}
.device__icon .thin {
  stroke-width: 0.8;
  opacity: 0.55;
}
.devices__sep {
  width: var(--stroke);
  height: var(--space-4);
  background: var(--line-dark-strong);
  color: var(--on-dark);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 26px;
  padding: var(--space-1) 11px;
  border: var(--stroke) solid var(--line-dark-strong);
  border-radius: var(--radius-pill);
  background: var(--glass);
  color: var(--on-dark);
  font-size: var(--size-xs);
  font-weight: var(--weight-medium);
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.chip:hover {
  color: var(--on-dark);
}
.stack {
  position: absolute;
  z-index: 1;
  right: var(--space-8);
  top: -44px;
  width: 700px;
  height: 600px;
  margin: 0;
  pointer-events: none;
}
.stack__tilt {
  position: relative;
  width: 100%;
  height: 100%;
  transform: rotate(-6deg);
}
.conf {
  position: absolute;
  overflow: hidden;
  border: var(--stroke) solid var(--line-dark);
  border-radius: var(--radius-card);
  color: var(--on-dark);
  font-family: var(--font-mono);
}
.conf--back {
  right: 0;
  top: 30px;
  width: 440px;
  height: 250px;
  background: var(--card-1);
  color: var(--on-dark);
  box-shadow: var(--shadow-l1);
}
.conf--mid {
  right: 90px;
  top: 120px;
  width: 460px;
  height: 260px;
  background: var(--card-2);
  color: var(--on-dark);
  box-shadow: var(--shadow-l2);
}
.conf--front {
  left: 20px;
  top: 210px;
  width: 500px;
  border-color: var(--line-dark-strong);
  background: var(--card-3);
  color: var(--on-dark);
  box-shadow: var(--shadow-l3);
}
.conf__bar {
  display: flex;
  align-items: stretch;
  gap: var(--icon-size);
  height: var(--space-10);
  padding-inline: var(--space-4);
  border-bottom: var(--stroke) solid var(--line-dark);
  font-size: var(--size-xs);
}
.conf__tab {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--on-dark-muted);
  white-space: nowrap;
}
.conf__tab--current {
  color: var(--on-dark);
}
.conf__tab--current::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: var(--radius-line);
  background: var(--accent-on-dark);
  color: var(--ink);
  content: "";
}
.conf__file {
  display: flex;
  align-items: center;
  margin-left: auto;
  color: var(--on-dark-muted);
  font-size: var(--size-code-small);
}
.conf__body {
  position: relative;
  padding-top: 10px;
  padding-bottom: 10px;
}
.conf__body::before {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--touch-size);
  border-right: var(--stroke) solid var(--line-dark);
  background: var(--gutter-shade);
  color: var(--on-dark);
  content: "";
}
.lines {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}
.line {
  display: grid;
  grid-template-columns: var(--touch-size) minmax(0, 1fr);
  align-items: center;
  height: var(--row-h);
  font-size: var(--size-sm);
  white-space: nowrap;
}
.line__no {
  padding-right: 14px;
  color: var(--on-dark-muted);
  font-size: var(--size-code-small);
  text-align: right;
}
.line__code {
  min-width: 0;
  padding-left: var(--space-4);
  font-family: var(--font-mono);
  overflow-wrap: normal;
}
.tk {
  color: var(--accent-on-dark);
}
.tp {
  color: var(--on-dark-muted);
}
.ts {
  color: var(--on-dark);
}
.conf__plain {
  margin: 0;
  padding: var(--space-4);
  border: 0;
  border-radius: 0;
  background: var(--clear);
  color: var(--on-dark-muted);
  font-size: var(--size-sm);
  line-height: 2.4;
}
.hitline {
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: 10px;
  height: var(--row-h);
  border-left: 2px solid var(--accent-on-dark);
  background: linear-gradient(90deg, var(--hit-fill), var(--hit-fade) 72%, var(--hit-clear));
  color: var(--on-dark);
  opacity: 0;
  will-change: transform, opacity;
  animation: hit-scan var(--hit-cycle) linear infinite;
}
@keyframes hit-scan {
  0% { opacity: 0; transform: translateY(0); }
  3% { opacity: 1; transform: translateY(0); }
  11% { transform: translateY(0); }
  12.5% { transform: translateY(var(--row-h)); }
  23.5% { transform: translateY(var(--row-h)); }
  25% { transform: translateY(calc(var(--row-h) * 2)); }
  36% { transform: translateY(calc(var(--row-h) * 2)); }
  37.5% { transform: translateY(calc(var(--row-h) * 3)); }
  48.5% { transform: translateY(calc(var(--row-h) * 3)); }
  50% { transform: translateY(calc(var(--row-h) * 4)); }
  61% { transform: translateY(calc(var(--row-h) * 4)); }
  62.5% { opacity: 1; transform: translateY(calc(var(--row-h) * 5)); }
  86% { opacity: 1; transform: translateY(calc(var(--row-h) * 5)); }
  96%, 100% { opacity: 0; transform: translateY(calc(var(--row-h) * 5)); }
}
.conf__foot {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 36px;
  padding-inline: var(--space-4);
  border-top: var(--stroke) solid var(--line-dark);
  color: var(--on-dark-muted);
  font-family: var(--font-body);
  font-size: var(--size-xs);
}
.conf__foot-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--accent-on-dark);
  color: var(--ink);
}
.next {
  padding-top: 100px;
  padding-bottom: 120px;
  padding-inline: var(--gutter);
}
.next__sub {
  margin: 14px auto 0;
  color: var(--text-muted);
  font-size: var(--size-label);
  text-align: center;
}

/* 内容组件 */
.app-store {
  min-height: 48px;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-btn);
}
.app-store:hover {
  background: var(--accent-dark);
  color: var(--on-accent);
}
.app-store__text {
  display: block;
  text-align: left;
}
.app-store__overline {
  display: block;
  font-size: var(--size-xs);
  font-weight: var(--weight-medium);
  line-height: 1.4;
}
.app-store__title {
  display: block;
  font-size: var(--size-label);
  line-height: 1.4;
}
.fact-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.fact,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  padding: 6px 11px;
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--text-muted);
  font-size: var(--size-xs);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.badge--accent {
  border-color: var(--accent);
  background: var(--bg);
  color: var(--accent);
}
.fact-row--dark .fact {
  border-color: var(--line-dark-strong);
  background: var(--glass);
  color: var(--on-dark-muted);
}
.feature-tabs {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: var(--space-8);
  align-items: start;
}
.feature-tabs > * {
  min-width: 0;
}
.feature-tabs [role="tablist"] {
  overflow: hidden;
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-card);
}
.feature-tabs [role="tab"] {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 62px;
  padding: var(--space-4) var(--space-5);
  border: 0;
  border-bottom: var(--stroke) solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: var(--size-nav);
  text-align: left;
}
.feature-tabs [role="tab"]:last-child {
  border-bottom: 0;
}
.feature-tabs [role="tab"]::before {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  content: "";
}
.feature-tabs [role="tab"]::after {
  margin-left: auto;
  color: var(--text-muted);
  content: "›";
}
.feature-tabs [role="tab"][aria-selected="true"] {
  background: var(--bg-panel);
  color: var(--text);
  font-weight: var(--weight-semibold);
  box-shadow: inset 3px 0 0 var(--accent);
}
.feature-tabs [role="tabpanel"] {
  padding: var(--space-8);
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
  color: var(--text);
}
.feature-tabs [role="tabpanel"] h3 {
  margin-top: 0;
}
.tab-strip {
  display: flex;
  gap: var(--space-2);
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: var(--space-2);
}
.tab-strip [role="tab"] {
  flex-shrink: 0;
  min-height: var(--touch-size);
  padding: var(--space-2) var(--space-4);
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--text-muted);
}
.tab-strip [aria-selected="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}
.code-card {
  position: relative;
  min-width: 0;
  margin-top: var(--space-7);
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-panel);
  color: var(--text);
}
.code-card__bar {
  display: flex;
  justify-content: flex-end;
  padding: var(--space-3) var(--space-4) 0;
}
.code-card pre {
  margin: 0;
  border: 0;
  background: var(--clear);
  color: var(--text);
}
.rule-key {
  color: var(--accent);
}
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  max-width: 100%;
  margin-bottom: var(--space-10);
  padding: var(--space-3);
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
  color: var(--text);
}
.toc a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-size);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-btn);
  color: var(--text-muted);
  font-size: var(--size-nav);
  text-decoration: none;
}
.toc a:hover,
.toc a[aria-current="location"] {
  background: var(--bg-panel);
  color: var(--accent);
}
/* 默认不吸顶；长页可将目录直接放进覆盖所有章节的父容器。 */
.faq-item {
  border-bottom: var(--stroke) solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.faq-item summary {
  position: relative;
  min-height: 60px;
  padding: var(--space-5) var(--space-10) var(--space-5) 0;
  font-weight: var(--weight-semibold);
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  position: absolute;
  right: var(--space-3);
  top: var(--space-5);
  color: var(--accent);
  content: "+";
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item__body {
  padding-bottom: var(--space-5);
  color: var(--text-muted);
}
.faq-item__body > :last-child {
  margin-bottom: 0;
}
.term-card {
  border-top: 3px solid var(--accent);
}
.term-card dt {
  margin-bottom: var(--space-3);
  font-family: var(--font-mono);
  font-weight: var(--weight-semibold);
  overflow-wrap: anywhere;
}
.term-card dd {
  margin-left: 0;
  color: var(--text-muted);
}
.official-shot {
  width: 100%;
  max-width: 280px;
  min-width: 0;
  margin-inline: auto;
  flex-shrink: 0;
}
.official-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.official-shot img,
.shot-placeholder {
  outline: var(--stroke) solid var(--border);
  outline-offset: -1px;
}
.official-shot figcaption {
  margin-top: var(--space-3);
  color: var(--text-muted);
  font-size: var(--size-sm);
  line-height: 1.6;
}
.shot-row {
  display: flex;
  align-items: start;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-8);
}
.device-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: var(--space-5);
}
.device-card__icon {
  width: 52px;
  height: 64px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
}
.device-card h3 {
  margin-top: 0;
  margin-bottom: var(--space-3);
}
.device-card p {
  color: var(--text-muted);
}
.article-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}
.article-card h3,
.article-card p {
  margin: 0;
}
.article-card h3 {
  font-size: var(--size-lead);
}
.article-card h3 a {
  color: var(--text);
  text-decoration: none;
}
.article-card h3 a:hover {
  color: var(--accent);
}
.article-card p {
  color: var(--text-muted);
}
.article-card__link {
  margin-top: auto;
  font-size: var(--size-nav);
}
.callout {
  margin-inline: 0;
  padding: var(--space-6);
  border: var(--stroke) solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-btn);
  background: var(--bg-panel);
  color: var(--text);
}
.callout > :last-child {
  margin-bottom: 0;
}
.table-scroll {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-card);
  -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  color: var(--text);
  font-size: var(--size-nav);
}
.data-table :where(th, td),
.prose table :where(th, td),
.article-body table :where(th, td) {
  min-width: 7em;
  padding: var(--space-4) var(--space-5);
  border-bottom: var(--stroke) solid var(--border);
  text-align: left;
  vertical-align: top;
  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: var(--weight-semibold);
}
.prose table,
.article-body table {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border-collapse: collapse;
  -webkit-overflow-scrolling: touch;
}
.dl-fab {
  position: fixed;
  z-index: 30;
  right: max(var(--gutter), env(safe-area-inset-right));
  bottom: max(var(--space-6), env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  max-width: calc(100% - var(--gutter) * 2);
  min-height: 52px;
  padding: var(--space-3) var(--space-5);
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-card);
  font-size: var(--size-nav);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}
.dl-fab:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.dl-fab svg {
  width: var(--space-5);
  height: var(--space-5);
  flex-shrink: 0;
}
.article-store-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-top: var(--space-12);
  padding: var(--space-7);
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-panel);
  color: var(--text);
}
.article-store-card__copy {
  flex: 1 1 100%;
  min-width: 0;
}
.article-store-card h2 {
  margin-top: 0;
  font-size: var(--size-h3);
}
.article-store-card p {
  margin-bottom: 0;
  color: var(--text-muted);
}

/* 仅供根目录设计预览。 */
.topbar--preview .topbar__inner {
  max-width: none;
  padding-inline: var(--space-8);
}
.preview-block {
  margin-top: var(--space-12);
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}
.preview-grid > * {
  min-width: 0;
}
.preview-palette {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-10);
}
.swatch {
  min-width: 0;
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
  color: var(--text);
}
.swatch__paint {
  display: block;
  height: 64px;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: var(--bg);
  color: var(--text);
}
.swatch code {
  display: block;
  padding: var(--space-3);
  color: var(--text);
  font-size: var(--size-xs);
}
.paint-bg { background: var(--bg); color: var(--text); }
.paint-panel { background: var(--bg-panel); color: var(--text); }
.paint-ink { background: var(--ink); color: var(--on-dark); }
.paint-border { background: var(--border); color: var(--text); }
.paint-accent { background: var(--accent); color: var(--on-accent); }
.paint-accent-dark { background: var(--accent-dark); color: var(--on-accent); }
.paint-accent-light { background: var(--accent-on-dark); color: var(--ink); }
.paint-text { background: var(--text); color: var(--bg); }
.paint-muted { background: var(--text-muted); color: var(--bg); }
.paint-success { background: var(--success); color: var(--bg); }
.paint-warn { background: var(--warn); color: var(--ink); }
.paint-error { background: var(--error); color: var(--bg); }
.paint-card-1 { background: var(--card-1); color: var(--on-dark); }
.paint-card-2 { background: var(--card-2); color: var(--on-dark); }
.paint-card-3 { background: var(--card-3); color: var(--on-dark); }
.paint-on-dark { background: var(--on-dark); color: var(--ink); }
.paint-on-muted { background: var(--on-dark-muted); color: var(--ink); }
.paint-on-dim { background: var(--on-dark-dim); color: var(--ink); }
.paint-on-faint { background: var(--on-dark-faint); color: var(--on-dark); }
.paint-line { background: var(--line-dark); color: var(--text); }
.paint-line-strong { background: var(--line-dark-strong); color: var(--text); }
.paint-glass { background: var(--glass); color: var(--text); }
.paint-glass-hover { background: var(--glass-hover); color: var(--text); }
.paint-gutter { background: var(--gutter-shade); color: var(--text); }
.paint-dot { background: var(--dot); color: var(--text); }
.paint-mask { background: var(--mask-solid); color: var(--on-dark); }
.paint-hit { background: var(--hit-fill); color: var(--text); }
.paint-hit-fade { background: var(--hit-fade); color: var(--text); }
.paint-hit-clear { background: var(--hit-clear); color: var(--text); }
.paint-dot-ring { background: var(--dot-ring); color: var(--text); }
.paint-focus { background: var(--focus-ring); color: var(--text); }
.paint-veil { background: var(--veil); color: var(--text); }
.paint-on-accent { background: var(--on-accent); color: var(--text); }
.paint-clear { background: var(--clear); color: var(--text); }
.shot-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 750 / 1334;
  border-radius: var(--radius-shot);
  background: var(--bg-panel);
  color: var(--text-muted);
  font: var(--weight-medium) var(--size-sm)/1.8 var(--font-mono);
  text-align: center;
}
.preview-dark {
  padding: var(--space-7);
  border-radius: var(--radius-card);
  background: var(--ink);
  color: var(--on-dark);
}
.preview-h1 {
  margin-top: 0;
  font-size: var(--size-h1);
  line-height: var(--leading-title);
}
@media (max-width: 1320px) {
  .stack {
    right: var(--space-4);
    transform: scale(0.84);
    transform-origin: right top;
  }
  .hero__copy {
    width: 520px;
    margin-left: var(--space-14);
  }
}
@media (max-width: 1100px) {
  .topbar--preview {
    height: auto;
  }
  .topbar--preview .topbar__inner {
    flex-wrap: wrap;
    gap: 0 var(--space-4);
    padding: var(--space-3) var(--space-5) 0;
  }
  .topbar--preview .lang {
    margin-left: auto;
  }
  .topbar--preview .tabs {
    order: 3;
    width: 100%;
    height: var(--touch-size);
    margin: var(--space-2) 0 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .topbar--preview .tabs::-webkit-scrollbar {
    display: none;
  }
  .topbar--preview .tabs__link {
    padding-inline: var(--space-3);
  }
  .hero {
    padding-top: var(--space-6);
    padding-inline: var(--space-4);
  }
  .hero__panel {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: var(--touch-size) var(--space-7) var(--space-14);
  }
  .hero__grid {
    -webkit-mask-image: linear-gradient(180deg, var(--clear) 45%, var(--mask-solid) 85%);
    mask-image: linear-gradient(180deg, var(--clear) 45%, var(--mask-solid) 85%);
  }
  .hero__copy {
    width: auto;
    max-width: 600px;
    margin: 0;
  }
  .stack {
    position: relative;
    right: auto;
    top: auto;
    width: auto;
    height: auto;
    min-width: 0;
    margin: var(--space-12) 0 0;
    transform: none;
  }
  .stack__tilt {
    display: flex;
    flex-direction: column;
    height: auto;
    transform: none;
  }
  .conf {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: auto;
    height: auto;
  }
  .conf--back { margin-left: var(--space-14); }
  .conf--mid { margin: -44px 16px 0 28px; }
  .conf--front { margin: -44px 32px 0 0; }
  .next { padding-top: 96px; }
}
@media (max-width: 768px) {
  .hero__title {
    font-size: var(--size-hero-mobile);
  }
  .feature-tabs {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
  }
  .feature-tabs [role="tablist"] {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    padding-bottom: var(--space-2);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .feature-tabs [role="tab"] {
    flex-shrink: 0;
    width: auto;
    min-height: var(--touch-size);
    padding: var(--space-2) var(--space-4);
    border: var(--stroke) solid var(--border);
    border-radius: var(--radius-pill);
    white-space: nowrap;
  }
  .feature-tabs [role="tab"]:last-child {
    border-bottom: var(--stroke) solid var(--border);
  }
  .feature-tabs [role="tab"]::after {
    content: none;
  }
  .feature-tabs [role="tab"][aria-selected="true"] {
    border-color: var(--accent);
    box-shadow: inset 0 -2px 0 var(--accent);
  }
  .preview-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .preview-palette {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fact-row {
    justify-content: center;
  }
}
@media (max-width: 640px) {
  .hero__panel {
    padding: 36px var(--space-5) var(--space-12);
  }
  .hero__title {
    font-size: var(--size-hero-mobile);
  }
  .hero__lead {
    font-size: var(--size-label);
  }
  .hero .btn {
    min-height: 46px;
    padding-inline: 18px;
  }
  .hero .app-store {
    min-height: 48px;
  }
  .devices {
    gap: var(--space-3) var(--space-4);
  }
  .conf--back { margin-left: var(--space-7); }
  .conf--mid { margin: -44px 8px 0 14px; }
  .conf--front { margin-right: 0; }
  .conf__file { display: none; }
  .line { font-size: var(--size-xs); }
  .line__code {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .conf--front .line {
    min-height: var(--row-h);
    height: auto;
    padding-block: 3px;
  }
  .conf__plain {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  .feature-tabs [role="tabpanel"] {
    padding: var(--space-5);
  }
  .shot-row {
    flex-direction: column;
    align-items: center;
  }
  .article-store-card {
    padding: var(--space-5);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hitline {
    animation: none;
    opacity: 1;
    transform: translateY(calc(var(--row-h) * 5));
  }
}