/* AIMS++ website. The palette and the bilingual "gloss" lines follow the
   extension itself: CityU magenta, an Apple-like neutral canvas, and a second
   language set smaller and quieter under the first. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  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;
}

:root {
  --magenta: #a50b5e;
  --magenta-deep: #8a0a4e;
  --band: #a50b5e;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --canvas: #f5f5f7;
  --paper: #ffffff;
  --rule: #d2d2d7;
  --link: #a50b5e;
  --chrome: #e8e8ed;
  --switch-off: #e3e3e8;
  --tint: #f7e6ef;
  --hero-shadow: 0 40px 90px -30px rgba(70, 4, 38, 0.45);
  --wrap: min(1080px, calc(100% - 48px));
  --text: 40rem;
  --font-en: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-hant: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "PingFang HK", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Segoe UI", sans-serif;
  --font-hans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --band: #8a0a4e;
    --ink: #f5f5f7;
    --ink-2: #a1a1a6;
    --canvas: #000000;
    --paper: #1c1c1e;
    --rule: #38383a;
    --link: #f06aa9;
    --chrome: #2c2c2e;
    --switch-off: #39393d;
    --tint: #3a1328;
    --hero-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  }
}

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

html {
  font-family: var(--font-en);
  line-height: 1.55;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}
html[lang^="zh"] { line-height: 1.7; }
[lang="en"] { font-family: var(--font-en); }
[lang="zh-Hant"] { font-family: var(--font-hant); }
[lang="zh-Hans"] { font-family: var(--font-hans); }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
code { font-family: var(--font-mono); }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible { outline-color: #fff; }

.skip {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--canvas);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }
.skip .gloss { color: inherit; opacity: 0.75; }

/* The second language under the first, as in the extension. */
.gloss {
  display: block;
  margin-top: 0.2em;
  color: var(--ink-2);
  font-size: 0.82em;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
}

h2 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h2 .gloss { margin-top: 0.45em; font-size: 0.42em; font-weight: 500; line-height: 1.3; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
h3 .gloss { font-size: 0.8em; font-weight: 500; }
html[lang^="zh"] :is(h1, h2, h3) { letter-spacing: 0.01em; }

/* ------------------------------------------------------------------ top bar */
.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 75%, transparent);
}
.bar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: var(--wrap);
  min-height: 52px;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { border-radius: 7px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  padding: 12px 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  opacity: 0.8;
}
.nav a:hover { opacity: 1; }
.nav a .gloss { margin-top: 1px; color: inherit; font-size: 11px; }

.lang { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  color: var(--ink);
  font-family: var(--font-hant);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.lang-btn:hover { background: color-mix(in srgb, var(--ink) 11%, transparent); }
.lang-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 256px;
  padding: 6px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  transform-origin: top right;
  animation: panel-in 0.16s ease-out;
}
@keyframes panel-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.lang-head { margin: 6px 10px 4px; color: var(--ink-2); font-size: 12px; line-height: 1.3; }
.lang-head .gloss { display: inline; margin: 0 0 0 4px; font-size: 1em; }
.lang-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.lang-opt:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.lang-opt[aria-pressed="true"] { font-weight: 600; }
.lang-opt[aria-pressed="true"]::after {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--link);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lang-sep { height: 1px; margin: 6px 4px; background: var(--rule); }
.lang-bi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  font-size: 15px;
  line-height: 1.3;
  cursor: pointer;
}
.lang-bi .gloss { font-size: 12px; }
.lang-script {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 10px 8px;
  color: var(--ink-2);
  font-size: 13px;
}
.lang-script[hidden] { display: none; }
.seg { display: inline-flex; padding: 2px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.seg button {
  min-width: 38px;
  padding: 3px 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--paper); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); font-weight: 600; }

.gh { display: inline-flex; color: var(--ink); opacity: 0.8; }
.gh:hover { opacity: 1; }

/* The switch from the AIMS++ toolbar menu. */
.switch {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  flex: none;
  width: 42px;
  height: 26px;
  margin: 0;
  border-radius: 999px;
  background: var(--switch-off);
  cursor: pointer;
  transition: background-color 0.25s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s cubic-bezier(0.3, 0.7, 0.4, 1);
}
.switch:checked { background: var(--magenta); }
.switch:checked::after { transform: translateX(16px); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 26px;
  border: 0;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.btn .gloss { margin-top: 2px; color: inherit; font-size: 12px; font-weight: 500; opacity: 0.75; }
.btn-light { background: #fff; color: var(--magenta); }
.btn-light:hover { background: #f7e6ef; }
.btn-outline { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.65); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn-primary { min-height: 44px; margin-top: 18px; padding: 10px 22px; background: var(--magenta); color: #fff; font-size: 16px; }
.btn-primary:hover { background: var(--magenta-deep); }
.btn-tint { margin-top: 30px; background: var(--tint); color: var(--link); font-size: 16px; }
.btn-tint:hover { background: color-mix(in srgb, var(--tint) 80%, var(--magenta)); }

/* ------------------------------------------------------------------- hero */
.hero {
  padding: 92px 24px 250px;
  background: var(--band);
  color: #fff;
  text-align: center;
}
/* Says up front that this is not a CityU product; links to the disclaimer. */
.chip {
  display: inline-block;
  margin-bottom: 26px;
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}
.chip:hover { background: rgba(255, 255, 255, 0.12); }
.chip .gloss { font-size: 12px; }
.hero h1 {
  max-width: 13em;
  margin: 0 auto;
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.hero h1 .gloss {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.36em;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
}
.lede {
  max-width: 33em;
  margin: 30px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
}
html[lang^="zh"] .lede { line-height: 1.7; }
.hero .gloss { color: rgba(255, 255, 255, 0.72); }
.hero .btn .gloss { color: inherit; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.meta { margin-top: 18px; color: rgba(255, 255, 255, 0.72); font-size: 14px; }

/* The browser window that holds a screenshot. */
.window {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 9%, transparent);
}
.window.is-dark { background: #000; }
.window-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  background: var(--chrome);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}
.url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 16px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 75%, transparent);
  color: var(--ink-2);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.demo { position: relative; width: min(1120px, calc(100% - 32px)); margin: -206px auto 0; }
.demo-window { box-shadow: var(--hero-shadow), 0 0 0 1px rgba(0, 0, 0, 0.06); }
.shots { display: grid; }
.shots img { grid-area: 1 / 1; width: 100%; transition: opacity 0.7s ease; }
.demo.is-off .shot-after { opacity: 0; }

/* A copy of the toolbar menu's first rows, so the switch reads as the real one. */
.popup {
  position: absolute;
  top: 58px;
  right: 22px;
  width: 290px;
  padding: 14px 12px 12px;
  border-radius: 16px;
  background: var(--canvas);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.07);
  text-align: left;
}
.popup-head { display: flex; align-items: center; gap: 11px; padding: 0 4px 12px; }
.popup-head img { border-radius: 7px; }
.popup-head strong { display: block; font-size: 15px; line-height: 1.25; }
.popup-head span { color: var(--ink-2); font-size: 12.5px; }
.popup-unofficial {
  margin: -2px 0 10px;
  padding: 8px 11px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--magenta) 9%, var(--paper));
  font-size: 12px;
  line-height: 1.45;
}
.popup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
}
.popup-label { display: block; font-size: 15px; font-weight: 500; line-height: 1.3; }
.popup-hint { display: block; color: var(--ink-2); font-size: 12.5px; line-height: 1.4; }
.caption { max-width: 40em; margin: 20px auto 0; color: var(--ink-2); font-size: 14px; text-align: center; }

/* --------------------------------------------------------------- sections */
.section { padding: 120px 0; }
.section.alt { background: var(--paper); }
.wrap { width: var(--wrap); margin: 0 auto; }
.wrap.narrow { width: min(760px, calc(100% - 48px)); }
.section-head { max-width: var(--text); margin-bottom: 52px; }
.section-head p { margin-top: 18px; color: var(--ink-2); font-size: 19px; line-height: 1.5; }
html[lang^="zh"] .section-head p { line-height: 1.7; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 80px; }
.pair figcaption { margin-top: 14px; color: var(--ink-2); font-size: 14px; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 44px; }
.specs > div { padding: 22px 0 30px; border-top: 1px solid var(--rule); }
.specs dt { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.specs dt .gloss { font-size: 0.8em; font-weight: 500; }
.specs dd { margin-top: 8px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.split-media { justify-self: end; width: 100%; max-width: 520px; }
.split-text p { margin-top: 18px; color: var(--ink-2); font-size: 18px; }
.split-text h2 + p { margin-top: 26px; }

/* The disclaimer gets the one tinted band on the page. */
.section.disclaimer {
  --ink-2: color-mix(in srgb, var(--ink) 72%, var(--tint));
  background: var(--tint);
}
.disclaimer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.disclaimer-head p { margin-top: 20px; color: var(--ink-2); font-size: 18px; }
.disclaimer-head .disclaimer-license { margin-top: 24px; font-size: 15px; }
.disclaimer-list { margin: 0; }
.disclaimer-list > div { padding: 22px 0 24px; border-top: 1px solid color-mix(in srgb, var(--magenta) 22%, transparent); }
.disclaimer-list > div:first-child { padding-top: 6px; border-top: 0; }
.disclaimer-list dt { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.disclaimer-list dt .gloss { font-size: 0.8em; font-weight: 500; }
.disclaimer-list dd { margin-top: 8px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }

.checks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checks li { position: relative; padding-left: 40px; }
.checks li::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--magenta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.checks p { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.tip {
  max-width: var(--text);
  margin-top: 64px;
  padding: 24px 28px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--paper);
}
.tip p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }

.browser-pick {
  display: inline-flex;
  margin-bottom: 36px;
  padding: 2px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}
.browser-pick label { position: relative; }
.browser-pick input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.browser-pick span { display: block; padding: 7px 18px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.browser-pick input:checked + span { background: var(--paper); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14); font-weight: 600; }
.section.alt .browser-pick input:checked + span { background: var(--canvas); }
.browser-pick input:focus-visible + span { outline: 2px solid var(--magenta); outline-offset: 2px; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps > li {
  position: relative;
  padding: 28px 0 30px 68px;
  border-top: 1px solid var(--rule);
  counter-increment: step;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  top: 24px;
  left: 0;
  color: var(--magenta);
  font-family: var(--font-en);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.steps p { margin-top: 8px; color: var(--ink-2); }
.code {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--canvas);
}
.code code { flex: 1; min-width: 0; overflow-x: auto; font-size: 14.5px; white-space: nowrap; }
.copy {
  flex: none;
  padding: 7px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--rule);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.copy:hover { background: color-mix(in srgb, var(--paper) 90%, var(--ink)); }
.after-install { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--rule); }
.after-install p { margin-top: 10px; color: var(--ink-2); }

.use-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.use-card { overflow: hidden; border-radius: 22px; background: var(--paper); }
.use-media {
  display: flex;
  justify-content: center;
  height: 420px;
  padding: 44px 36px 0;
  overflow: hidden;
  background: var(--tint);
}
.use-popup img { width: 300px; border-radius: 16px 16px 0 0; box-shadow: 0 20px 50px -14px rgba(70, 4, 38, 0.4); }
.use-menu img { width: 100%; max-width: 460px; align-self: flex-start; border-radius: 14px 14px 0 0; box-shadow: 0 20px 50px -14px rgba(70, 4, 38, 0.4); }
.use-card figcaption { padding: 26px 30px 32px; }
.use-card figcaption p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }

.faq { margin-top: 40px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative;
  padding: 22px 44px 22px 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 6px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after { top: 32px; transform: rotate(-135deg); }
.faq summary .gloss { font-size: 0.8em; font-weight: 500; }
.faq details p { padding: 0 44px 26px 0; color: var(--ink-2); }

/* ----------------------------------------------------------------- footer */
.foot { padding: 52px 0 68px; color: var(--ink-2); font-size: 13px; }
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.foot-brand img { border-radius: 5px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 18px 0; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.foot-note { max-width: 52em; }
.foot-note + .foot-note { margin-top: 8px; }

/* ------------------------------------------------------------ small screens */
@media (max-width: 1000px) {
  .specs, .checks { grid-template-columns: 1fr 1fr; }
  .split, .disclaimer-grid { grid-template-columns: 1fr; gap: 44px; }
  .split-media { justify-self: start; }
  .nav { gap: 18px; }
}

@media (max-width: 760px) {
  :root { --wrap: calc(100% - 32px); }
  .nav { display: none; }
  .lang { margin-left: auto; }
  .bar-inner { gap: 16px; }
  .hero { padding: 64px 16px 150px; }
  .demo { width: calc(100% - 24px); margin-top: -118px; }
  .popup { position: static; width: auto; margin: 12px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07); }
  .section { padding: 76px 0; }
  .wrap.narrow { width: calc(100% - 32px); }
  .pair, .use-grid, .specs, .checks { grid-template-columns: 1fr; }
  .pair { gap: 32px; margin-bottom: 56px; }
  .checks { gap: 32px; }
  .steps > li { padding-left: 48px; }
  .steps > li::before { font-size: 32px; }
  .use-media { height: 340px; padding: 32px 24px 0; }
  .use-menu { padding: 32px 0 0 24px; }
  .use-popup img { width: 260px; }
  .use-menu img { width: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
