/*
 * Copycat site. The motif is a Mac desktop: a flowing wallpaper with frosted-glass Copycat UI
 * on top. It appears in the hero (with a working popup), in small vignettes beside each main
 * feature, and in the closing download band. Everything between is quiet system type.
 */

:root {
  color-scheme: light dark;

  --paper: #f5f6f8;
  --ink: #1c1c1e;
  --ink-2: rgb(28 28 30 / 0.62);
  --rule: rgb(28 28 30 / 0.1);
  --accent: #2f6cf6;
  --accent-ink: #fff;

  --glass: rgb(255 255 255 / 0.6);
  --glass-strong: rgb(255 255 255 / 0.72);
  --glass-edge: rgb(0 0 0 / 0.1);
  --glass-shadow: 0 24px 60px -18px rgb(30 50 120 / 0.45), 0 0 0 0.5px rgb(0 0 0 / 0.06);
  --row: rgb(255 255 255 / 0.66);
  --row-edge:
    0 0 0 0.5px rgb(0 0 0 / 0.08), 0 1px 2px rgb(0 0 0 / 0.06),
    inset 0 1px 0 rgb(255 255 255 / 0.85);
  --menubar: rgb(255 255 255 / 0.42);
  --key: #fff;
  --key-edge: rgb(28 28 30 / 0.16);
  --wallpaper: url('/assets/wallpaper-light.svg');

  --font:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI',
    system-ui, sans-serif;
  --font-display:
    -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI Variable Display', 'Segoe UI',
    system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

  --measure: 34rem;
  --page: 70rem;
  /* The hero (menu bar, headline, video, popup) is wider than the rest of the page. */
  --hero: 80rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101217;
    --ink: #f2f2f4;
    --ink-2: rgb(242 242 244 / 0.64);
    --rule: rgb(242 242 244 / 0.12);
    --accent: #5b8cff;

    --glass: rgb(30 32 40 / 0.55);
    --glass-strong: rgb(30 32 40 / 0.7);
    --glass-edge: rgb(255 255 255 / 0.14);
    --glass-shadow: 0 24px 60px -18px rgb(0 0 0 / 0.7), 0 0 0 0.5px rgb(255 255 255 / 0.06);
    --row: rgb(255 255 255 / 0.11);
    --row-edge:
      inset 0 0 0 0.5px rgb(255 255 255 / 0.1), inset 0 1px 0 rgb(255 255 255 / 0.12),
      0 1px 2px rgb(0 0 0 / 0.25);
    --menubar: rgb(16 18 30 / 0.4);
    --key: #24262d;
    --key-edge: rgb(255 255 255 / 0.16);
    --wallpaper: url('/assets/wallpaper-dark.svg');
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin: 0;
}

.wallpaper {
  background: var(--wallpaper) center / cover no-repeat;
}

/* Keycaps */
kbd {
  display: inline-block;
  min-width: 1.7em;
  margin: 0 0.12em;
  padding: 0.05em 0.4em;
  border: 1px solid var(--key-edge);
  border-bottom-width: 2px;
  border-radius: 0.38em;
  background: var(--key);
  color: var(--ink);
  font: 600 0.82em/1.5 var(--font);
  text-align: center;
  vertical-align: 0.08em;
}

/* A key combination never wraps between its keys. */
.shortcut {
  white-space: nowrap;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.6em 1.15em;
  border: 1px solid var(--rule);
  border-radius: 0.7em;
  background: var(--key);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.button:hover {
  text-decoration: none;
  border-color: var(--accent);
}

.button.primary {
  padding: 0.8em 1.6em;
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.05rem;
  box-shadow:
    0 8px 22px -8px rgb(47 108 246 / 0.75),
    inset 0 1px 0 rgb(255 255 255 / 0.25);
}

.button.primary:hover {
  filter: brightness(1.07);
}

/* ---------- hero: the desktop ---------- */

.desktop {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* A screen that fills the first view: rounded bottom corners at the fold, a little inset
     from the page edges. svh keeps it to the visible area on mobile browsers. */
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 0.75rem;
  padding-bottom: 3rem;
  border-radius: 0 0 1.75rem 1.75rem;
}

.menubar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  /* Content lines up with the page edges, so the tray icon sits right above the popup. */
  padding: 0 max(1rem, calc((100% - var(--hero)) / 2 + 1.5rem));
  background: var(--menubar);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 0.5px solid var(--glass-edge);
  font-size: 13px;
}

.menubar-app {
  font-weight: 700;
}

.menubar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* The tray icon: a real button that opens and closes the demo, like the app's. */
.menubar-icon {
  display: grid;
  width: 26px;
  height: 22px;
  padding: 0;
  place-items: center;
  border: none;
  border-radius: 5px;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.menubar-icon[aria-expanded='true'] {
  background: rgb(0 0 0 / 0.1);
}

@media (prefers-color-scheme: dark) {
  .menubar-icon[aria-expanded='true'] {
    background: rgb(255 255 255 / 0.16);
  }
}

.menubar-icon svg,
.mini-tray svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menubar-icon .fill,
.mini-tray .fill {
  fill: currentColor;
}

.menubar-clock {
  font-variant-numeric: tabular-nums;
}

.hero {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 3.5rem;
  align-items: center;
  width: 100%;
  /* Sit slightly above the geometric centre, which reads as centred. */
  padding-bottom: 4rem;
  /* Wider than the rest of the page, so the headline and the video both get room. */
  max-width: var(--hero);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Headline and video sit in the middle of the screen; the popup hangs from the menu bar. */
.hero-copy {
  max-width: 34rem;
  padding: 2rem 0;
}

/* "Try the menu bar demo": a small glass button that opens the interactive popup. */
.demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.1rem;
  padding: 0.45rem 0.55rem 0.45rem 0.9rem;
  border: 0.5px solid var(--glass-edge);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  color: var(--ink);
  font: 500 0.88rem/1.2 var(--font);
  cursor: pointer;
}

.demo-chip:hover {
  border-color: var(--accent);
}

.demo-chip kbd {
  font-size: 0.78em;
}

/* The real app, framed as a Mac window on the desktop. */
.hero-video {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 0.5px solid var(--glass-edge);
  border-radius: 14px;
  background: #000;
  box-shadow:
    0 0 140px -30px rgb(91 140 255 / 0.55),
    0 40px 90px -30px rgb(10 20 80 / 0.65),
    var(--glass-shadow);
}

.window-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 0.5px solid var(--glass-edge);
}

.traffic {
  position: absolute;
  left: 12px;
  display: flex;
  gap: 7px;
}

.traffic i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.traffic i:nth-child(2) {
  background: #febc2e;
}

.traffic i:nth-child(3) {
  background: #28c840;
}

.window-title {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

/* One quiet load-in: the headline, then the window, rise into place. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-video {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero-video {
    animation-delay: 0.12s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* The interactive popup: an overlay under the tray icon, aligned with the page edges. */
.popup-anchor {
  position: absolute;
  top: 30px;
  right: 0;
  left: 0;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  max-width: var(--hero);
  margin: 0 auto;
  padding: 0 1.5rem;
  pointer-events: none;
}

.demo {
  margin: 0;
  pointer-events: auto;
}

.app-icon {
  display: block;
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 10px 18px rgb(20 40 120 / 0.28));
}

h1 {
  font-size: clamp(2.3rem, 3.5vw, 3.4rem);
  font-weight: 720;
  letter-spacing: -0.038em;
  line-height: 1.02;
}

.lede {
  max-width: var(--measure);
  margin-top: 1.2rem;
  color: var(--ink-2);
  font-size: 1.2rem;
  line-height: 1.5;
}

.lede kbd {
  font-size: 0.78em;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
}

.cta-alt {
  font-weight: 500;
}

.cta-note {
  margin-top: 0.9rem;
  color: var(--ink-2);
  font-size: 0.9rem;
}

/* ---------- Copycat UI: popup, rows (shared by the demo and the vignettes) ---------- */

.popup,
.mini-popup {
  border: 0.5px solid var(--glass-edge);
  border-radius: 12px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  backdrop-filter: blur(28px) saturate(1.8);
  box-shadow: var(--glass-shadow);
  font: 12px/1.36 var(--font);
  text-align: left;
}

.popup {
  display: flex;
  flex-direction: column;
  width: 300px;
  height: 400px;
  overflow: hidden;
  outline: none;
  transform-origin: 80% top;
  /* Opening: visible at once (so the search field can take focus), then fade in. */
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0s;
}

/* Closed with ⌘⇧V, Esc or the tray icon. Fades out, then hides. */
.popup.closed {
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  visibility: hidden;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0s linear 0.16s;
}

.popup-search {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px 8px;
  border-bottom: 1px solid var(--rule);
}

.popup-search svg {
  flex: none;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.popup-search input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: none;
  background: none;
  color: var(--ink);
  font: 13.5px/1.3 var(--font);
  caret-color: var(--accent);
  outline: none;
}

.popup-search input::placeholder {
  color: var(--ink-2);
}

.popup-search input::-webkit-search-cancel-button {
  appearance: none;
}

.popup-list {
  flex: 1;
  overflow-y: auto;
  margin: 0;
  padding: 4px 5px 26px;
  list-style: none;
}

.row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 8px;
  border-radius: 5px;
}

.popup .row {
  cursor: pointer;
}

.row.selected {
  background: var(--row);
  box-shadow: var(--row-edge);
}

/* Divider between pinned items and the rest, as in the app. */
.row.last-pinned {
  margin-bottom: 9px;
}

.row.last-pinned::after {
  content: '';
  position: absolute;
  right: 8px;
  bottom: -5px;
  left: 8px;
  height: 1px;
  background: var(--rule);
}

.row-text {
  display: -webkit-box;
  flex: 1;
  min-width: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
}

.row-text.mono {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.4;
}

.row-aside {
  display: grid;
  flex: none;
  width: 30px;
  place-items: center end;
}

.row-age,
.row-copy,
.row-done,
.row-pin {
  grid-area: 1 / 1;
}

.row-age {
  color: var(--ink-2);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.row-pin,
.row-copy,
.row-lock {
  flex: none;
  width: 11px;
  height: 11px;
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.row-copy {
  width: 12px;
  height: 12px;
  visibility: hidden;
}

.popup .row.selected .row-age,
.popup .row.selected .row-pin {
  visibility: hidden;
}

.popup .row.selected .row-copy {
  visibility: visible;
}

.row-done {
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
}

/* A row that was just copied on the page: a brief accent wash, answering the copy. */
.row.arrived {
  animation: arrive 1.4s ease-out;
}

@keyframes arrive {
  from {
    background: rgb(47 108 246 / 0.3);
  }
  to {
    background: transparent;
  }
}

.popup-empty {
  padding: 2rem 1rem;
  color: var(--ink-2);
  text-align: center;
}

.popup-credit {
  position: relative;
  height: 22px;
  margin-top: -22px;
  padding-top: 8px;
  color: var(--ink-2);
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  pointer-events: none;
}

.popup-credit::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  mask-image: linear-gradient(to bottom, transparent, #000 60%);
}

.heart {
  color: #e5484d;
}

.popup-footer {
  display: flex;
  gap: 12px;
  padding: 6px 12px;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 11px;
}

.popup-footer .spacer {
  flex: 1;
}

.demo figcaption {
  max-width: 300px;
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: center;
}

.demo figcaption kbd {
  font-size: 0.78em;
}

/* ---------- product demo video (hero) ---------- */

.product-demo {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

/* Pause/play for the autoplaying demo (motion longer than 5 s must be stoppable). */
.video-toggle {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  place-items: center;
  border: 0.5px solid var(--glass-edge);
  border-radius: 50%;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  color: var(--ink);
  cursor: pointer;
}

.video-toggle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.video-toggle .icon-pause {
  fill: none;
}

.video-toggle .icon-play,
.video-toggle.paused .icon-pause {
  display: none;
}

.video-toggle.paused .icon-play {
  display: block;
}

/* ---------- feature rows with vignettes ---------- */

main > section {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main > .showcase {
  display: grid;
  gap: 6rem;
  padding-top: 7rem;
}

.show-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 4.5rem;
  align-items: center;
}

.show-row.reverse .show-text {
  order: 2;
}

.show-text p {
  max-width: var(--measure);
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: 1.1rem;
}

/* A little crop of the desktop with real Copycat UI on it. */
.vignette {
  display: grid;
  min-height: 320px;
  padding: 2.5rem 2rem;
  place-items: center;
  border-radius: 1.5rem;
  box-shadow: inset 0 0 0 0.5px var(--glass-edge);
}

.mini-popup {
  width: min(320px, 100%);
  padding: 5px;
}

.row.skipped {
  margin: 3px 0;
  border: 1px dashed var(--rule);
  color: var(--ink-2);
}

.row.skipped .row-text {
  letter-spacing: 0.08em;
}

.row-note {
  flex: none;
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 600;
}

.mini-stack {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  width: 100%;
}

.mini-menubar {
  display: flex;
  gap: 0.5rem;
  padding: 5px;
  border: 0.5px solid var(--glass-edge);
  border-radius: 10px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: var(--glass-shadow);
  font-size: 12px;
}

.mini-tray {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 6px;
  border-radius: 6px;
  color: var(--ink-2);
}

.mini-tray.paused {
  background: var(--row);
  box-shadow: var(--row-edge);
  color: var(--ink);
}

/* The shortcut, as big glass keycaps. */
.big-keys {
  display: flex;
  gap: 0.9rem;
}

.big-keys kbd {
  display: grid;
  width: 1.65em;
  height: 1.65em;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 0.5px solid var(--glass-edge);
  border-radius: 0.3em;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow:
    var(--glass-shadow),
    inset 0 -3px 0 rgb(0 0 0 / 0.06);
  font: 600 clamp(2.6rem, 6vw, 4rem) / 1 var(--font-display);
}

/* ---------- extras ---------- */

main > .extras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-top: 6.5rem;
}

.extras svg {
  width: 26px;
  height: 26px;
  margin-bottom: 0.75rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.extras p {
  margin-top: 0.35rem;
  color: var(--ink-2);
}

/* ---------- keyboard ---------- */

main > .keys {
  padding-top: 6.5rem;
}

.keys-lede {
  margin-top: 0.6rem;
  color: var(--ink-2);
}

.key-table {
  width: 100%;
  max-width: var(--measure);
  margin-top: 1.75rem;
  border-collapse: collapse;
}

.key-table td {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}

.key-table td:first-child {
  width: 9rem;
  white-space: nowrap;
}

.key-table tr:first-child td {
  border-top: 1px solid var(--rule);
}

.keys-note {
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: 0.9rem;
}

/* ---------- download band ---------- */

.download {
  margin: 7rem 0.75rem 0;
  padding: 5rem 1.5rem;
  border-radius: 1.75rem;
}

.download-panel {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 2.5rem 2rem;
  border: 0.5px solid var(--glass-edge);
  border-radius: 1.4rem;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: var(--glass-shadow);
}

.download-icon {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 1.1rem;
  filter: drop-shadow(0 8px 14px rgb(20 40 120 / 0.25));
}

.download-version {
  margin-top: 0.4rem;
  color: var(--ink-2);
}

.platforms {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.platforms li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.platforms li:first-child {
  border-top: 1px solid var(--rule);
}

.platforms p {
  margin-top: 0.15rem;
  color: var(--ink-2);
  font-size: 0.9rem;
}

/* The platform detected for this visitor. */
.platforms li.recommended .button {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
}

.platforms .this-computer {
  margin-left: 0.5rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Mac installation walkthrough video. */
.install-guide {
  margin: 1.75rem 0 0;
}

.install-guide video {
  display: block;
  width: 100%;
  height: auto;
  border: 0.5px solid var(--glass-edge);
  border-radius: 12px;
  background: #000;
  box-shadow: 0 14px 34px -14px rgb(20 40 120 / 0.45);
}

.install-guide figcaption {
  margin-top: 0.75rem;
  color: var(--ink-2);
  font-size: 0.9rem;
}

.install-guide figcaption strong {
  color: var(--ink);
  font-weight: 600;
}

.first-launch {
  margin-top: 1.5rem;
}

.first-launch summary {
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.first-launch p {
  margin-top: 0.6rem;
  color: var(--ink-2);
}

.first-launch code {
  padding: 0.05em 0.35em;
  border-radius: 0.3em;
  background: var(--key);
  font: 0.85em var(--mono);
}

.first-launch strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  width: min(100% - 3rem, var(--page) - 3rem);
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
  color: var(--ink-2);
  font-size: 0.9rem;
}

.site-footer span:last-child {
  margin-left: auto;
}

/* ---------- smaller screens ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .hero-copy {
    padding: 3.5rem 0 0;
  }

  .desktop {
    padding-bottom: 3rem;
  }

  main > .showcase {
    gap: 4rem;
    padding-top: 4.5rem;
  }

  .show-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .show-row.reverse .show-text {
    order: 0;
  }

  main > .extras {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding-top: 4.5rem;
  }

  main > .keys {
    padding-top: 4.5rem;
  }

  .download {
    margin-top: 4.5rem;
    padding: 3rem 1rem;
  }

  .download-panel {
    padding: 2rem 1.5rem 1.5rem;
  }

  .site-footer span:last-child {
    margin-left: 0;
  }
}

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

  /* Small enough that "one shortcut away." fits on one line. */
  h1 {
    font-size: 2.2rem;
  }

  .desktop,
  .download {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }

  .vignette {
    min-height: 260px;
    padding: 2rem 1rem;
  }

  .platforms li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .row.arrived {
    animation: none;
  }

  .popup {
    transition: none;
  }
}
