/*
  IWindowFlinger product page.

  The page holds itself to the product's own rules: no frameworks, no web fonts, no
  third-party requests, system colours and type, and motion that only ever explains.
  The demo's sizes and timings are the app's own (GridMetrics, SwitcherStyle, Tuning.swift);
  if those change, change them here too.
*/

:root {
  color-scheme: light dark;

  --bg: #fbfbfd;
  --bg-raised: #ffffff;
  --bg-sunken: #f2f2f5;
  --text: #1d1d1f;
  --text-2: #62626a;
  --hairline: rgba(0, 0, 0, 0.1);
  --accent: #0071e3;
  --accent-text: #0066cc;
  --heart: #d6336c;
  --kbd-bg: #ffffff;
  --kbd-edge: rgba(0, 0, 0, 0.2);

  /* The switcher panel, light appearance. */
  --glass: rgba(246, 246, 248, 0.66);
  --glass-edge: rgba(0, 0, 0, 0.1);
  --panel-text: #1d1d1f;
  --panel-text-2: rgba(29, 29, 31, 0.78);
  --plate: rgba(0, 0, 0, 0.1);
  --plate-quiet: rgba(0, 0, 0, 0.09);
  --plate-hover: rgba(0, 0, 0, 0.06);
  --ring: #007aff;
  --badge: rgba(250, 250, 252, 0.86);
  --wallpaper:
    radial-gradient(80% 70% at 12% 0%, #cfe0ff 0%, rgba(207, 224, 255, 0) 62%),
    radial-gradient(70% 70% at 96% 100%, #cdbcff 0%, rgba(205, 188, 255, 0) 60%),
    linear-gradient(160deg, #9dbcff 0%, #7b8ff5 55%, #6a62de 100%);

  /* Motion. Same numbers as the app: arriving 160 ms, leaving 90 ms, the highlight about 200 ms. */
  --reveal: 160ms;
  --dismiss: 90ms;
  --select: 200ms;
  --jump: 110ms;
  --settle: cubic-bezier(0.22, 0.9, 0.3, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue",
    "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b;
    --bg-raised: #151518;
    --bg-sunken: #101013;
    --text: #f5f5f7;
    --text-2: #a1a1a8;
    --hairline: rgba(255, 255, 255, 0.13);
    --accent: #0a84ff;
    --accent-text: #4aa3ff;
    --heart: #ff6b9d;
    --kbd-bg: #232327;
    --kbd-edge: rgba(255, 255, 255, 0.22);

    --glass: rgba(34, 34, 38, 0.6);
    --glass-edge: rgba(255, 255, 255, 0.16);
    --panel-text: #f5f5f7;
    --panel-text-2: rgba(245, 245, 247, 0.78);
    --plate: rgba(255, 255, 255, 0.1);
    --plate-quiet: rgba(255, 255, 255, 0.09);
    --plate-hover: rgba(255, 255, 255, 0.06);
    --ring: #0a84ff;
    --badge: rgba(58, 58, 64, 0.86);
    --wallpaper:
      radial-gradient(80% 70% at 12% 0%, #406eff 0%, rgba(64, 110, 255, 0) 62%),
      radial-gradient(70% 70% at 96% 100%, #5b2fd6 0%, rgba(91, 47, 214, 0) 60%),
      linear-gradient(160deg, #262c94 0%, #151447 60%, #0c0b2a 100%);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  text-wrap: balance;
  letter-spacing: -0.022em;
  line-height: 1.08;
}

p {
  text-wrap: pretty;
}

/* Chinese sets looser than Latin: no negative tracking, taller lines. */
:lang(zh-CN) body {
  line-height: 1.7;
}

:lang(zh-CN) h1,
:lang(zh-CN) h2 {
  letter-spacing: 0;
  line-height: 1.22;
}

/* Sized so that each half of the headline fits on one line of a phone, and the line breaks
   at the comma instead of in the middle of a word. */
:lang(zh-CN) .hero h1 {
  max-width: none;
  font-size: clamp(2rem, 5.6vw, 3.9rem);
}

.clause {
  display: inline-block;
}

.wrap {
  max-width: 1088px;
  margin-inline: auto;
  padding-inline: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0 0.42em;
  border: 1px solid var(--kbd-edge);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--kbd-bg);
  color: var(--text);
  /* Small enough to sit inside a line of text without pushing the lines apart. */
  font: 500 0.8em/1.45 var(--font);
  text-align: center;
  white-space: nowrap;
  vertical-align: 0.06em;
}

/* A keycap and the punctuation after it stay on one line. */
.nb {
  white-space: nowrap;
}

/* ---------- Top bar ---------- */

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 64px;
  font-size: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
}

.nav-link {
  color: var(--text-2);
}

.nav-link:hover {
  color: var(--text);
  text-decoration: none;
}

.sponsor-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.heart {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  fill: var(--heart);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.74em 1.4em;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-outline {
  box-shadow: inset 0 0 0 1px var(--hairline);
  background: var(--bg-raised);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--bg-sunken);
}

.btn-small {
  padding: 0.5em 1.05em;
  font-size: 14px;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 36px;
  text-align: center;
}

.hero-icon {
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto 10px;
}

.hero h1 {
  max-width: 13em;
  margin-inline: auto;
  font-size: clamp(2.5rem, 6.2vw, 4.25rem);
  font-weight: 700;
}

.lead {
  max-width: 36em;
  margin: 18px auto 0;
  color: var(--text-2);
  font-size: clamp(1.06rem, 1.9vw, 1.3rem);
  line-height: 1.5;
  text-wrap: balance;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 14px;
  margin-top: 26px;
}

.fineprint {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 14px;
}

/* The "no such page" page: the hero on its own, in the middle of the window. */
.notfound {
  display: grid;
  align-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 48px;
}

/* ---------- The demo ---------- */

.demo {
  margin-top: 44px;
}

/* Everything inside the stage is sized in --u, one point of the real panel, so the whole
   picture scales with the stage the way a screenshot would. */
.stage {
  container: stage / inline-size;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 1040px;
  aspect-ratio: 1040 / 620;
  margin-inline: auto;
  border-radius: 20px;
  box-shadow:
    0 0 0 1px var(--hairline),
    0 36px 70px -28px rgba(0, 0, 0, 0.45);
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
  text-align: left;
  transition: box-shadow 120ms ease-out;
}

/* Listening for the shortcut. */
.stage.is-armed,
.stage:focus-visible {
  outline: none;
  border-radius: 20px;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--accent) 70%, transparent),
    0 36px 70px -28px rgba(0, 0, 0, 0.45);
}

.desk {
  --u: calc(100cqw / 1040);
  --cols: 3;
  position: absolute;
  inset: 0;
  background: var(--wallpaper);
}

.menubar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 14);
  height: calc(var(--u) * 24);
  padding-inline: calc(var(--u) * 16);
  background: rgba(255, 255, 255, 0.16);
}

.menubar i {
  width: calc(var(--u) * 30);
  height: calc(var(--u) * 6);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.62);
}

.menubar i:first-child {
  width: calc(var(--u) * 44);
  background: rgba(255, 255, 255, 0.92);
}

.menubar .menubar-app {
  width: calc(var(--u) * 15);
  height: calc(var(--u) * 15);
  margin-left: auto;
  fill: none;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 1.6;
}

.win {
  /* Traffic lights of a window that is not in front are grey. */
  --l1: rgba(140, 140, 150, 0.55);
  --l2: rgba(140, 140, 150, 0.55);
  --l3: rgba(140, 140, 150, 0.55);
  position: absolute;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: calc(var(--u) * 10);
  box-shadow:
    0 0 0 calc(var(--u) * 0.6) rgba(0, 0, 0, 0.22),
    0 calc(var(--u) * 8) calc(var(--u) * 24) rgba(0, 0, 0, 0.24);
}

.win.is-front {
  --l1: #ff5f57;
  --l2: #febc2e;
  --l3: #28c840;
  box-shadow:
    0 0 0 calc(var(--u) * 0.6) rgba(0, 0, 0, 0.26),
    0 calc(var(--u) * 18) calc(var(--u) * 46) rgba(0, 0, 0, 0.42);
}

.win.is-minimized {
  visibility: hidden;
}

.win svg,
.thumb-art {
  display: block;
  width: 100%;
  height: 100%;
}

.win-browser  { left: 3%;  top: 9%;  width: 40%; }
.win-sheet    { left: 58%; top: 7%;  width: 39%; }
.win-weather  { left: 5%;  top: 50%; width: 37%; }
.win-terminal { left: 60%; top: 49%; width: 37%; }
.win-photos   { left: 30%; top: 26%; width: 44%; }
.win-editor   { left: 27%; top: 20%; width: 46%; }

/* The panel. Hidden is the resting state; leaving is quicker than arriving. */
.panel {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 30;
  padding: calc(var(--u) * 14);
  border-radius: calc(var(--u) * 26);
  background: var(--glass);
  -webkit-backdrop-filter: blur(calc(var(--u) * 28)) saturate(1.8);
  backdrop-filter: blur(calc(var(--u) * 28)) saturate(1.8);
  box-shadow:
    0 0 0 0.5px var(--glass-edge),
    0 calc(var(--u) * 16) calc(var(--u) * 60) rgba(0, 0, 0, 0.3);
  color: var(--panel-text);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.965);
  transition:
    opacity var(--dismiss) linear,
    transform var(--dismiss) linear,
    visibility 0s linear var(--dismiss);
}

.stage.is-open .panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
  transition:
    opacity var(--reveal) ease-out,
    transform var(--reveal) var(--settle),
    visibility 0s;
}

.grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--cols), auto);
  gap: calc(var(--u) * 4);
}

/* The highlight: a plate under the cell and a ring around it. Within a row it glides to its
   neighbour; across rows it fades out where it was and in where it lands (two elements). */
.hl {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--u) * 192);
  height: calc(var(--u) * 163);
  border-radius: calc(var(--u) * 14);
  background: var(--plate);
  box-shadow: inset 0 0 0 calc(var(--u) * 2.5) var(--ring);
  opacity: 0;
  pointer-events: none;
  transform: translate(calc(var(--col, 0) * var(--u) * 196), calc(var(--row, 0) * var(--u) * 167));
  transition:
    transform var(--select) var(--settle),
    opacity var(--jump) ease-out;
}

.hl.is-on {
  opacity: 1;
}

.hl.is-snapping,
.stage.is-resizing .hl {
  transition: none;
}

.tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 7);
  width: calc(var(--u) * 192);
  padding: calc(var(--u) * 9);
  border-radius: calc(var(--u) * 14);
}

.tile-head {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 7);
  height: calc(var(--u) * 22);
  padding-inline: calc(var(--u) * 1);
  color: var(--panel-text-2);
  font-size: calc(var(--u) * 12.5);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.tile-head svg {
  flex: none;
  width: calc(var(--u) * 18);
  height: calc(var(--u) * 18);
}

.tile-head span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile[aria-selected="true"] .tile-head {
  color: var(--panel-text);
  font-weight: 600;
}

.thumb {
  position: relative;
  height: calc(var(--u) * 116);
  overflow: hidden;
  border-radius: calc(var(--u) * 7);
  box-shadow:
    0 0 0 0.5px rgba(128, 128, 128, 0.4),
    0 calc(var(--u) * 1.5) calc(var(--u) * 4) rgba(0, 0, 0, 0.22);
}

.thumb-icon {
  display: none;
}

/* A minimized window has no preview: its app icon on a quiet plate, with a badge. */
.tile.is-minimized .thumb {
  background: var(--plate-quiet);
  box-shadow: inset 0 0 0 0.5px rgba(128, 128, 128, 0.25);
}

.tile.is-minimized .thumb-art {
  display: none;
}

.tile.is-minimized .thumb-icon {
  position: absolute;
  inset: 0;
  display: block;
  width: calc(var(--u) * 53);
  height: calc(var(--u) * 53);
  margin: auto;
  opacity: 0.55;
}

.tile.is-minimized .thumb::after {
  content: "";
  position: absolute;
  bottom: calc(var(--u) * 6);
  left: calc(var(--u) * 6);
  width: calc(var(--u) * 22);
  height: calc(var(--u) * 22);
  border-radius: 50%;
  background:
    linear-gradient(var(--panel-text), var(--panel-text)) center / calc(var(--u) * 9) calc(var(--u) * 2) no-repeat,
    var(--badge);
}

@media (hover: hover) {
  .stage.is-live .tile:not([aria-selected="true"]):hover::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--plate-hover);
  }
}

/* Narrow stages: the same panel, two columns, on a portrait desktop. */
@media (max-width: 767.98px) {
  .stage {
    max-width: 520px;
    aspect-ratio: 480 / 640;
  }
}

@container stage (max-width: 719.98px) {
  .desk {
    --u: calc(100cqw / 480);
    --cols: 2;
  }

  .win-browser  { left: 4%;  top: 6%;  width: 60%; }
  .win-sheet    { left: 37%; top: 12%; width: 60%; }
  .win-weather  { left: 3%;  top: 63%; width: 60%; }
  .win-terminal { left: 37%; top: 68%; width: 60%; }
  .win-photos   { left: 16%; top: 36%; width: 68%; }
  .win-editor   { left: 14%; top: 33%; width: 72%; }
}

.demo-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  min-height: 3.4em;
  margin-top: 18px;
  color: var(--text-2);
  font-size: 15px;
}

.demo-hint [hidden] {
  display: none;
}

.only-coarse {
  display: none;
}

@media (hover: none), (pointer: coarse) {
  .only-fine {
    display: none;
  }

  .only-coarse {
    display: inline;
  }
}

.demo-play {
  padding: 0.38em 0.95em;
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--hairline);
  background: var(--bg-raised);
  color: var(--text);
  font: 500 14px/1.3 var(--font);
  cursor: pointer;
}

.demo-play:hover {
  background: var(--bg-sunken);
}

/* ---------- Sections ---------- */

.section {
  padding-top: 112px;
}

.section-head {
  max-width: 40em;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  font-weight: 700;
}

.section-head p {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 1.1rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.stats li {
  padding: 26px 24px 0 0;
}

.stat-num {
  display: block;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-num small {
  margin-left: 0.14em;
  color: var(--text-2);
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0;
}

.stat-text {
  display: block;
  margin-top: 12px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
}

.footnote {
  max-width: 52em;
  margin-top: 30px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.55;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.card {
  padding: 26px 26px 28px;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px var(--hairline);
  background: var(--bg-raised);
}

.card svg {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.14rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15.5px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: start;
}

.keys {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.keys li {
  display: grid;
  grid-template-columns: 9.5em 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--hairline);
}

.keys .combo {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.keys .what {
  color: var(--text-2);
  font-size: 16px;
}

.keys .what b {
  color: var(--text);
  font-weight: 600;
}

.duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-2);
  font-size: 15.5px;
}

.plain-list li:first-child {
  padding-top: 0;
}

.plain-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.plain-list b {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-weight: 600;
}

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0.1em 0.55em;
  border-radius: 99px;
  background: var(--bg-sunken);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  vertical-align: 0.1em;
}

.limits {
  max-width: 46em;
  margin: 36px 0 0;
  padding-left: 1.2em;
  color: var(--text-2);
  font-size: 16px;
}

.limits li {
  padding: 5px 0 5px 4px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  color: var(--text-2);
  font-size: 16px;
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 700;
}

.steps b {
  color: var(--text);
  font-weight: 600;
}

.get .actions {
  justify-content: flex-start;
  margin-top: 36px;
}

.get .fineprint {
  margin-top: 14px;
}

/* ---------- Sponsor ---------- */

.sponsor {
  margin-top: 112px;
  padding: 56px 32px 60px;
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px var(--hairline);
  background:
    radial-gradient(60% 120% at 50% 0%, color-mix(in srgb, var(--heart) 13%, transparent) 0%, transparent 70%),
    var(--bg-raised);
  text-align: center;
}

.sponsor > .heart {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
}

.sponsor h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 700;
}

.sponsor p {
  max-width: 34em;
  margin: 14px auto 0;
  color: var(--text-2);
}

.btn-sponsor {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--heart) 45%, transparent);
  background: color-mix(in srgb, var(--heart) 10%, var(--bg-raised));
  color: var(--text);
}

.btn-sponsor:hover {
  background: color-mix(in srgb, var(--heart) 17%, var(--bg-raised));
}

/* ---------- Footer ---------- */

.footer {
  margin-top: 96px;
  padding: 28px 0 56px;
  border-top: 1px solid var(--hairline);
  color: var(--text-2);
  font-size: 13px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-row a {
  color: var(--text-2);
}

.footer-row a:hover {
  color: var(--text);
}

.footer-row .push {
  margin-right: auto;
}

.footer p {
  margin-top: 10px;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 899.98px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats li {
    padding-bottom: 26px;
    border-bottom: 1px solid var(--hairline);
  }

  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 639.98px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding-inline: 20px;
  }

  .nav {
    gap: 16px;
  }

  .nav .nav-hide {
    display: none;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-icon {
    width: 80px;
    height: 80px;
  }

  .demo {
    margin-top: 40px;
  }

  .section,
  .sponsor {
    margin-top: 0;
    padding-top: 80px;
  }

  .sponsor {
    margin-top: 80px;
    padding: 44px 22px 48px;
  }

  .cards,
  .duo,
  .steps {
    grid-template-columns: 1fr;
  }

  .keys li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .btn {
    font-size: 16px;
  }
}

/* Reduce Motion: only opacity changes remain. (The script cross-fades the highlight instead
   of sliding it when this is on.) */
@media (prefers-reduced-motion: reduce) {
  .panel,
  .stage.is-open .panel {
    transform: translate(-50%, -50%);
  }

  .hl {
    transition: opacity var(--jump) ease-out;
  }
}
