/* Starping — quiet, open layouts; locally hosted type and two accessible palettes. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Fallback metric adjustments; actual layout shift requires a rendered check. */
@font-face {
  font-family: 'Manrope Fallback';
  src: local('Arial');
  size-adjust: 101%;
  ascent-override: 97%;
  descent-override: 27%;
  line-gap-override: 0%;
}

:root {
  --bg: #0b0d14;
  --surface: #151824;
  --surface-button: #171a24;
  --text: #eceef5;
  --text-muted: #a0a7ba;
  --text-faint: #8a90a3;
  --hairline: #232735;
  --stroke: #5b6175;
  --knob-off: #8a90a3;
  --accent: #7ccbf2;
  --on-accent: #0b0d14;
  --acc-rgb: 124, 203, 242;
  --link: #7ccbf2;
  --font: 'Manrope', 'Manrope Fallback', sans-serif;
  --gutter: clamp(22px, 5vw, 72px);
  --header-h: 88px;
  --section-gap: clamp(72px, 9vw, 128px);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}
html[data-theme='light'] {
  --bg: #f4f5f8;
  --surface: #ffffff;
  --surface-button: #e9ebf1;
  --text: #0b0d14;
  --text-muted: #5e6476;
  --text-faint: #667084;
  --hairline: #d9dce5;
  --stroke: #8a90a3;
  --knob-off: #8a90a3;
  --accent: #2e8dc0;
  --on-accent: #0b0d14;
  --link: #216d95;
  --acc-rgb: 46, 141, 192;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scrollbar-color: var(--stroke) var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
::selection { color: var(--on-accent); background: var(--accent); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: var(--link); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { max-width: 100%; }
section[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
.container { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 12px 18px; background: var(--accent); color: var(--on-accent); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 54px; padding: 12px 24px; border: 1px solid transparent; border-radius: 6px; color: var(--text); font-size: 15px; font-weight: 700; text-align: center; transition: background 160ms, color 160ms, border-color 160ms; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--text); color: var(--bg); }
.btn-secondary, .btn-outline { border-color: var(--stroke); }
.btn-secondary:hover, .btn-outline:hover { background: var(--surface-button); }
.btn-inverse { background: var(--text); color: var(--bg); }
.btn-inverse:hover { background: var(--accent); color: var(--on-accent); }
.btn-s { min-height: 44px; padding: 9px 16px; font-size: 13px; }
.btn-m { min-height: 48px; padding: 10px 20px; }
.btn-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 18px; min-height: 48px; font-size: 15px; font-weight: 700; }
.header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--hairline); }
.header.is-scrolled { border-bottom-color: var(--stroke); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; letter-spacing: -0.035em; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-pill { display: inline-block; width: 10px; height: 24px; border-radius: 5px; background: var(--accent); flex: none; }
.nav { display: flex; gap: 26px; }
.nav a { padding-block: 12px; color: var(--text-muted); font-size: 13px; font-weight: 600; }
.nav a:hover, .nav a.is-active { color: var(--text); text-decoration: underline; text-underline-offset: 7px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 6px; color: var(--text); flex: none; }
.icon-btn:hover { background: var(--surface-button); }
.icon-btn svg { width: 19px; height: 19px; }
html[data-theme='light'] .icon-moon, html:not([data-theme='light']) .icon-sun { display: none; }
.lang { display: inline-flex; align-items: center; gap: 2px; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 44px; color: var(--text-muted); font-size: 12px; font-weight: 600; }
.lang a[aria-current] { color: var(--text); text-decoration: underline; text-underline-offset: 6px; }
.menu-btn { display: none; }
.menu { position: fixed; inset: 0; z-index: 60; padding: 24px var(--gutter); background: var(--bg); display: none; flex-direction: column; gap: 24px; overflow-y: auto; }
.menu[data-open='true'] { display: flex; }
.menu-top, .menu-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a { padding-block: 12px; border-bottom: 1px solid var(--hairline); font-size: 24px; font-weight: 600; color: var(--text); }
.menu-bottom { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
body[data-menu-open='true'] { overflow: hidden; }

/* First screen: a large typographic invitation and an honest connection demo. */
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 7vw, 100px); padding-block: 80px 100px; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(44px, 5.4vw, 76px); line-height: 1.06; font-weight: 650; letter-spacing: -0.04em; }
.hero h1 span { color: var(--text-muted); }
.hero-sub { max-width: 440px; margin-top: 30px; color: var(--text-muted); font-size: 17px; line-height: 1.65; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; }
.hero-note { margin-top: 16px; color: var(--text-faint); font-size: 12px; }
.connection-panel { --bg: #0b0d14; --surface: #151824; --text: #eceef5; --text-muted: #a0a7ba; --accent: #7ccbf2; --stroke: #5b6175; --knob-off: #8a90a3; background: var(--bg); color: var(--text); border: 1px solid #232735; border-radius: 12px; padding: 24px 28px 8px; }
.connection-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid #232735; font-size: 11px; color: var(--text-muted); }
.connection-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 16px; font-weight: 700; }
.connection-brand .logo-pill { width: 7px; height: 18px; }
.demo { display: flex; flex-direction: column; align-items: center; gap: 24px; padding-block: 26px; }
.demo-status { text-align: center; min-height: 64px; }
.demo-title { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.demo-sub { margin-top: 5px; color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.demo-hint { color: var(--text-muted); text-align: center; font-size: 12px; line-height: 1.7; }
/* Keep the original switch geometry: OFF at top=95px, connecting=51px, ON=7px. */
.toggle { position: relative; width: 88px; height: 176px; border-radius: 44px; border: 1px solid var(--stroke); background: var(--surface); flex: none; transition: background 350ms, border-color 350ms; }
.toggle-knob { position: absolute; left: 7px; top: 95px; width: 72px; height: 72px; border-radius: 50%; background: var(--knob-off); transition: top 450ms var(--ease-spring), background 350ms; }
.toggle[aria-checked='true'] { background: var(--accent); border-color: transparent; }
.toggle[aria-checked='true'] .toggle-knob { top: 7px; background: var(--bg); }
.toggle[data-state='connecting'] .toggle-knob { top: 51px; animation: sp-pulse 800ms ease-in-out infinite alternate; }
@keyframes sp-pulse { to { opacity: 0.5; } }
.connection-settings { margin: 0; font-size: 12px; }
.connection-settings div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 13px; border-top: 1px solid #232735; }
.connection-settings dt { color: var(--text-muted); }
.connection-settings dd { margin: 0; }

/* Open sections: rules and typography provide the structure. */
.section { padding-block: 0 var(--section-gap); }
.section h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.15; font-weight: 600; letter-spacing: -0.035em; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 40px; padding-top: 30px; border-top: 1px solid var(--hairline); }
.section-sub { max-width: 520px; font-size: 15px; color: var(--text-muted); }
.section-sub a { text-decoration: underline; }
.features-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 100px); }
.feature-intro { padding-top: 32px; border-top: 1px solid var(--text); }
.feature-intro > p { margin-top: 24px; max-width: 460px; font-size: 20px; line-height: 1.6; }
.feature-intro .feature-caption { font-size: 14px; color: var(--text-muted); }
.feature-list { border-top: 1px solid var(--hairline); }
.feature { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--hairline); }
.feature h3 { font-size: 16px; font-weight: 650; line-height: 1.4; text-wrap: pretty; }
.feature p { font-size: 14px; color: var(--text-muted); }
.grid { display: grid; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Platform tiles group independent downloads, with room for the four Linux variants. */
.platforms {
  align-items: stretch;
}
.platform {
  position: relative;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  transition: box-shadow 0.3s;
}
.platform.is-current {
  border-color: var(--accent);
}
.platform.is-flash {
  box-shadow: 0 0 0 4px rgba(var(--acc-rgb), 0.2);
}
.platform-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.platform-identity {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 140px;
}
.platform-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.platform-icon {
  display: block;
  align-self: flex-start;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--link);
}
.platform-name {
  font-size: 18px;
  font-weight: 800;
}
.platform-req {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
}
.platform-badge {
  display: none;
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.platform.is-current .platform-badge {
  display: block;
}
.download-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}
.act {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
  font-weight: 700;
  color: var(--link);
}
a.act {
  padding: 0 10px;
  margin: 0 -10px;
  border-radius: 0;
  transition: background 0.15s;
}
a.act:hover {
  color: var(--link);
  background: var(--surface-button);
  border-radius: 10px;
}
.act-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.act-soon {
  font-weight: 600;
  color: var(--text-muted);
}
.pill {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
/* Linux (§1.4): interface, package and architecture segments stacked; the rows of the chosen combination
   (GUI DEB/RPM: the GUI and its CLI engine). Without JS the segments stay hidden and every file is a row. */
.linux-downloads {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}
.linux-downloads .download-actions {
  flex: 1;
  justify-content: flex-end;
}
.linux-segments {
  display: flex;
  gap: 8px;
}
.segment {
  flex: 1;
  display: flex;
  padding: 3px;
  border-radius: 9px;
  background: var(--surface-button);
}
.segment button {
  flex: 1;
  height: 26px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.segment button[aria-checked='true'] {
  background: var(--bg);
  color: var(--text);
}
.linux-fallback, .linux-selected {
  display: flex;
  flex-direction: column;
}
.linux-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}
/* Files and checksums (§1.5): an accordion in the FAQ style; a table on wide screens, a list below 600. */
.files {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.files summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.files summary::-webkit-details-marker {
  display: none;
}
.files-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
}
.files-sub {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}
.files-body {
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}
.file-head,
.file-row {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) 72px minmax(0, 1.6fr) 96px;
  gap: 16px;
  align-items: center;
}
.file-head {
  padding-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.file-row {
  min-height: 44px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
}
.file-name {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-size {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.file-sha {
  overflow-wrap: anywhere;
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--text-muted);
}
.file-copy {
  justify-self: end;
  font-size: 13px;
  font-weight: 700;
  color: var(--link);
}
.file-copy:hover {
  color: var(--text);
}
.files-note {
  padding-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.platforms { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--hairline); border-left: 1px solid var(--hairline); }
.platform { border: 0; border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); border-radius: 0; padding: 24px 20px; gap: 26px; }
.platform.is-current { background: var(--surface); }
.platform.is-flash { outline: 2px solid var(--accent); outline-offset: -2px; box-shadow: none; }
.platform-identity { min-width: 0; align-items: flex-start; gap: 12px; }
.platform-icon { width: 26px; height: 26px; color: var(--text-muted); }
.platform-name { font-size: 16px; font-weight: 650; }
.platform-req { font-size: 12px; }
.platform-badge { border-radius: 3px; font-size: 10px; }
.act { font-size: 13px; min-height: 48px; flex-wrap: wrap; gap: 4px 12px; padding-block: 8px; }
a.act:hover { border-radius: 3px; }
.pill { border-radius: 3px; }
.linux-segments { flex-direction: column; }
.segment { border-radius: 4px; min-width: 88px; }
.segment button { height: 34px; border-radius: 2px; }
.files { margin-top: 24px; }
.files-title { font-size: 15px; }
.file-name, .file-sha { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.file-copy { min-height: 44px; }


#start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
#start > h2 { padding-top: 24px; border-top: 1px solid var(--hairline); }
.steps { margin: 0; padding: 0; list-style: none; }
.step { display: grid; grid-template-columns: 32px minmax(0, 1fr) minmax(0, 1.6fr); gap: 20px; padding-block: 24px; border-top: 1px solid var(--hairline); }
.step-n { font-size: 14px; font-weight: 600; color: var(--text-faint); }
.step h3 { font-size: 17px; line-height: 1.5; font-weight: 650; }
.step p { font-size: 14px; color: var(--text-muted); }
.step a, .faq-answer a { text-decoration: underline; }
.plans { gap: 0; border-block: 1px solid var(--hairline); }
.plan { display: flex; flex-direction: column; gap: 28px; padding: 32px; border-right: 1px solid var(--hairline); }
.plan:first-child { border-left: 1px solid var(--hairline); }
.plan.is-highlight { background: var(--surface); }
.plan h3 { font-size: 22px; font-weight: 650; }
.plan-description { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.plan-price { display: flex; gap: 10px; align-items: baseline; margin-top: 24px; font-variant-numeric: tabular-nums; }
.plan-price strong { white-space: nowrap; font-size: 60px; font-weight: 550; line-height: 1; letter-spacing: -0.04em; }
.plan-price > span { font-size: 14px; color: var(--text-muted); }
.plan-rows { display: flex; flex-direction: column; font-size: 14px; }
.plan-row { display: flex; justify-content: space-between; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--hairline); }
.plan-row span:first-child { color: var(--text-muted); }
.plan-row span:last-child { font-weight: 650; text-align: right; }
.plan > .btn { margin-top: auto; }
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.faq h2 { padding-top: 24px; border-top: 1px solid var(--hairline); }
.faq-list { border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding-block: 22px; font-size: 17px; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-mark { position: relative; color: var(--text-muted); flex: none; width: 18px; height: 24px; }
.faq-mark::before, .faq-mark::after { content: ''; position: absolute; background: currentColor; }
.faq-mark::before { width: 14px; height: 1px; top: 12px; left: 2px; }
.faq-mark::after { width: 1px; height: 14px; top: 5px; left: 9px; }
.faq-item[open] .faq-mark::after, .files[open] .faq-mark::after { display: none; }
.faq-answer { max-width: 65ch; padding: 0 36px 24px 0; font-size: 15px; line-height: 1.7; color: var(--text-muted); }
.support { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 48px 64px; border-top: 1px solid var(--hairline); }
.support h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 600; line-height: 1.2; letter-spacing: -0.03em; }
.support p { margin-top: 14px; max-width: 500px; font-size: 15px; color: var(--text-muted); }
.support-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
.footer { max-width: 1360px; margin-inline: auto; display: flex; justify-content: space-between; gap: 48px; padding: 32px var(--gutter) 40px; border-top: 1px solid var(--hairline); font-size: 12px; color: var(--text-faint); }
.footer > span { white-space: nowrap; padding-top: 12px; }
.footer-right { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; max-width: 780px; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-muted); }

/* The same visual language, with a reading measure, on all ten content pages. */
.legal { max-width: 940px; padding-top: 48px; padding-bottom: var(--section-gap); }
.legal-back { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; margin-bottom: 32px; font-size: 14px; }
.legal h1 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.14; font-weight: 600; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.legal-date { margin-block: 20px 40px; font-size: 13px; color: var(--text-muted); }
.article-content { font-size: 16px; line-height: 1.8; }
.article-content > p:first-child { font-size: 18px; color: var(--text-muted); }
.article-content h2 { margin: 48px 0 16px; font-size: 26px; line-height: 1.3; font-weight: 650; letter-spacing: -0.025em; }
.article-content h3 { margin: 28px 0 12px; font-size: 19px; font-weight: 650; }
.article-content p, .article-content li { margin-bottom: 16px; }
.article-content ul, .article-content ol { padding-left: 24px; }
.article-content a { text-decoration: underline; overflow-wrap: anywhere; }
.article-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin-block: 28px; border-block: 1px solid var(--hairline); }
.article-content th, .article-content td { padding: 16px; border-bottom: 1px solid var(--hairline); text-align: left; white-space: nowrap; font-size: 14px; }
.article-content th { color: var(--text-muted); font-weight: 600; }
.article-content td:first-child { font-weight: 700; }

@media (max-width: 1199px) {
  .nav { gap: 16px; }
  .header-inner { gap: 16px; }
  .platforms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { gap: 36px; }
  .feature { grid-template-columns: 1fr; gap: 10px; }
  .plan { padding: 28px 22px; }
}
@media (max-width: 999px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hero { padding-block: 56px 80px; }
  .hero h1 { font-size: clamp(44px, 5.8vw, 60px); }
  .hero-cta { gap: 8px 20px; }
  .connection-panel { padding-inline: 20px; }
  .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #start { grid-template-columns: 1fr; gap: 32px; }
  .support { align-items: flex-start; flex-direction: column; gap: 24px; }
  .file-head, .file-row { gap: 10px; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) 60px minmax(0, 1.2fr) 90px; }
}
@media (max-width: 699px) {
  :root { --header-h: 76px; }
  .header-actions > .lang, .header-actions > [data-theme-toggle] { display: none; }
  .header-actions { gap: 6px; }
  .header-inner { gap: 12px; }
  .logo { font-size: 21px; }
  .btn-s { font-size: 12px; padding-inline: 12px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 44px 72px; }
  .hero h1 { font-size: clamp(42px, 8.8vw, 60px); }
  .hero-sub { margin-top: 24px; font-size: 16px; }
  .hero-cta { margin-top: 24px; }
  .hero-note { max-width: 32ch; }
  .connection-panel { width: 100%; max-width: 440px; justify-self: center; }
  .features-section { grid-template-columns: 1fr; gap: 32px; }
  .feature { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 20px; }
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px; }
  .section h2 { font-size: 34px; }
  .platform { padding: 22px 16px; }
  .platform-identity { flex-direction: column; }
  .platform-req { min-height: 36px; }
  .plans { grid-template-columns: 1fr; border: 0; gap: 0; }
  .plan, .plan:first-child { padding: 28px 24px; border: 1px solid var(--hairline); border-bottom: 0; }
  .plan:last-child { border-bottom: 1px solid var(--hairline); }
  .plan-head { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 20px; }
  .plan-price { grid-column: 2; grid-row: 1 / 3; margin-top: 0; }
  .plan-price strong { white-space: nowrap; font-size: 48px; }
  .plan-description { grid-column: 1; }
  .step { grid-template-columns: 24px minmax(0, 1fr); gap: 10px 16px; }
  .step p { grid-column: 2; }
  .faq { grid-template-columns: 1fr; gap: 28px; }
  .faq h2 { padding-top: 0; border-top: 0; }
  .faq-item summary { font-size: 16px; }
  .faq-answer { padding-right: 0; }
  .footer { flex-direction: column; gap: 16px; }
  .footer-right { gap: 4px 20px; }
  .file-head { display: none; }
  .file-row { grid-template-columns: 1fr auto; gap: 6px 12px; padding-block: 16px; }
  .file-name { grid-column: 1 / -1; white-space: normal; overflow-wrap: anywhere; }
  .file-platform, .file-size { font-size: 12px; }
  .file-sha { overflow-wrap: anywhere; }
  .file-copy { font-size: 12px; }
  .legal { padding-top: 24px; }
}
@media (max-width: 399px) {
  .header .logo { font-size: 18px; gap: 7px; }
  .header-inner { gap: 8px; }
  .btn-s { padding-inline: 9px; font-size: 11px; }
  .hero-cta { align-items: stretch; flex-direction: column; gap: 10px; }
  .hero-cta .text-link { justify-content: center; }
  .platforms { grid-template-columns: 1fr; }
  .platform-identity { flex-direction: row; }
  .platform-req { min-height: 0; }
  .feature { grid-template-columns: 1fr; gap: 10px; }
  .plan-head { display: block; }
  .plan-price { margin-top: 20px; }
  .support-actions { flex-direction: column; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Router packages: both architectures remain visible and usable without JavaScript. */
.router-variants { display: grid; gap: 20px; }
.router-variant { min-width: 0; border-top: 1px solid var(--hairline); padding-top: 16px; }
.router-variant h4 { margin: 0 0 8px; font-size: 14px; font-weight: 650; }
.router-variant .platform-req, .file-platform { overflow-wrap: anywhere; }
.router-size, .router-status { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.router-checksum { margin-top: 12px; font-size: 12px; }
.router-checksum summary { cursor: pointer; padding-block: 8px; }
.router-checksum .file-sha { display: block; overflow-wrap: anywhere; }
.router-checksum .file-copy { margin-right: 16px; }
.router-guide { font-size: 13px; min-height: 44px; display: inline-flex; align-items: center; }
.preview-note { padding: 14px var(--gutter); border-bottom: 1px solid var(--stroke); background: var(--surface); font-size: 14px; }
.article-content pre { overflow-x: auto; padding: 16px; background: var(--surface); font-size: 13px; line-height: 1.6; }
.article-content :not(pre) > code { overflow-wrap: anywhere; }

.router-platform { min-width: 0; }
.router-platform > .segment { margin: 0; flex: none; }
.router-panel-title { margin: 0 0 8px; font-size: 14px; font-weight: 650; }
.router-os-picker { flex: none; }

.platform-router[data-router-enhanced] .router-panel-title,
.router-platform[data-router-enhanced] .router-variant-label { display: none; }
.platform-router[data-router-enhanced] .router-platform {
  display: grid; grid-template-rows: 44px 48px 44px; gap: 12px;
}
.platform-router[data-router-enhanced] .router-variant { border: 0; padding: 0; }
.platform-router[data-router-enhanced] .router-guide { margin: 0; }
.router-os-picker, .router-platform > .segment { min-height: 44px; }
.router-os-picker button, .router-platform > .segment button { height: 38px; }
.router-platform .act { flex-wrap: nowrap; }
.router-platform .act-meta svg { display: none; }
