/* ===========================================================================
   The hero: the RushPull window, recreated in HTML and CSS (never a video),
   with made-up data. It follows the real app as it is (0.9.0-beta.4,
   drafts/app-look/ and the handover's section 17): the toolbar in the title
   bar with the Beta badge beside the logo, a 520 px left column with the
   three steps and the download, the file list full height on the right, and
   a thin footer strip. Its sizes and spacing are the app's own (4 / 8 / 16 /
   24), not the site's scale: it is a picture of the app. One solid button
   at a time, as on every screen. js/hero.js plays it.

   Every colour, font, duration and curve comes from style.css. Nothing new
   is defined here; the only numbers are the app's own sizes.
   =========================================================================== */

/* The app's own sizes (app/src/styles.css "Layout"), so the picture matches
   the real window. */
.stage {
  --app-w: 1160px;
  --app-h: 792px;
  --left-w: 520px;
  --toolbar-h: 64px;
  --pad-y: 16px;
  --pad-x: 24px;
  --gap: 24px;
  --tool-gap: 12px;
  --ctl: 40px;
  --t-main: 14px;
  --l-main: 20px;
  --t-det: 13px;
  --l-det: 18px;
  --t-h: 12px;
  --l-h: 16px;
  --t-ttl: 15px;
  --l-ttl: 22px;
  /* js/hero.js sets this from the measured width; the media queries below
     are the fallback when JavaScript is off. */
  --s: 1;

  /* How far the window leans back before it lands, and the light under it.
     js/tilt.js reads these rather than carrying numbers of its own.

     The depth and the lift are both drawn at the window's real size, so
     both are multiplied by --s: a window shown at a third of its size
     leans by a third as much and through the same depth of field, and the
     lean looks the same on a phone as on a desktop. The angle needs no
     scaling — an angle is an angle. */
  --persp: calc(1500px * var(--s));
  --tilt-max: 22deg;
  /* How far the leaning window sits from where it lands. It is negative:
     leaning back foreshortens the window and pushes its top edge well down
     the page, so it is lifted by about as much and settles as it flattens.
     That keeps its top edge in sight at the bottom of the hero. */
  --lean-y: calc(-72px * var(--s));
  --zoom-min: 0.92;
  --land-shade: 0.36;
  /* Not a reason to change these anywhere else: see the light theme below,
     where both are much softer, as the window's own shadow is. */

  position: relative;
  width: 100%;
  max-width: var(--app-w);
  margin: 0 auto;
  /* The scaled window's height, so the page lays out around it. */
  height: calc(var(--app-h) * var(--s));
  user-select: none;
}

/* ---------- Standing up as you scroll ----------
   The window starts leaning back, the way a laptop screen does, and comes
   forward to flat and full size as it rises up the page. js/tilt.js writes
   one number, --land (0 leaning, 1 landed); every size below is worked out
   from it here, so the amounts live in the stylesheet and the script only
   says how far along it is. Without the script --land stays 1 and the window
   is simply flat.

   Only transform and opacity change, so none of it is ever painted again. */
.tilt {
  position: relative;
  height: 100%;
  transform-origin: 50% 92%;
  transform:
    perspective(var(--persp))
    translate3d(0, calc(var(--lean-y) * (1 - var(--land, 1))), 0)
    rotateX(calc(var(--tilt-max) * (1 - var(--land, 1))))
    scale(calc(var(--zoom-min) + (1 - var(--zoom-min)) * var(--land, 1)));
  will-change: transform;
}

/* The brand's colours pooling under the window, and a plain dark shadow
   under that for weight. Both grow and settle as it lands. */
/* The shadow the window stands in: it stays flat on the page while the
   window above it leans, and grows and settles as it lands. The colour
   under the window is the hero's own wash, which reaches down into that
   corner from behind — there is no light of its own here. */
.stage-shade {
  position: absolute;
  left: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
  bottom: -2%;
  width: 70%;
  height: 22%;
  margin-left: -35%;
  border-radius: 50%;
  background: #000;
  filter: blur(calc(50px * var(--s)));
  opacity: calc(var(--land, 1) * var(--land-shade));
  transform: scale(calc(0.78 + 0.22 * var(--land, 1)));
}

/* A light passing over the glass as it comes forward. js/tilt.js brings it up
   and takes it away again across the move, so at either end there is nothing
   to see. */
.win::after {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: -70%;
  width: 55%;
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.11), transparent);
  transform: translate3d(calc(var(--land, 1) * 290%), 0, 0);
  opacity: var(--sheen, 0);
}

@media (prefers-reduced-motion: reduce) {
  /* No lean, no sweep and no drifting light: the window simply fades in
     with the rest. */
  .tilt { transform: none; }
  .win::after { display: none; }
}

.win {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--app-w);
  height: var(--app-h);
  transform: scale(var(--s));
  transform-origin: top left;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: var(--menu-blur);
  -webkit-backdrop-filter: var(--menu-blur);
  /* A real window sits above its desktop: one soft ambient shadow, not a
     styled card. */
  box-shadow: 0 32px 80px rgb(0 0 0 / 0.38), 0 2px 8px rgb(0 0 0 / 0.2);
  overflow: hidden;
  color: var(--main);
  font: var(--w-body) var(--t-main) / var(--l-main) var(--font);
}
:root[data-theme="light"] .win { box-shadow: 0 32px 80px rgb(0 0 0 / 0.16), 0 2px 8px rgb(0 0 0 / 0.08); }
/* On a pale page the light under the window is much gentler, in the same
   proportion as the window's own shadow above. */
:root[data-theme="light"] .stage { --land-shade: 0.18; }

.win h2, .win h3 { font-weight: var(--w-title); }
.win p { margin: 0; }
.wdetail { color: var(--detail); font-size: var(--t-det); line-height: var(--l-det); }
.whint { color: var(--hint); font-size: var(--t-h); line-height: var(--l-h); }
.wmain-text { color: var(--main); font-size: var(--t-main); line-height: var(--l-main); }
.win .ok { color: var(--ok); }
.win .bad { color: var(--bad); }
.wrule { height: 1px; margin: 8px 0; background: var(--divider); }

/* ---------- The toolbar, in the title bar ---------- */
.wtoolbar {
  flex: none;
  height: var(--toolbar-h);
  display: flex;
  align-items: center;
  gap: var(--gap);
  padding: 0 var(--pad-x);
  border-bottom: 1px solid var(--divider);
}
/* macOS's traffic lights, 24 px in. */
.lights { flex: none; display: flex; gap: 8px; width: 52px; }
.lights i { width: 12px; height: 12px; border-radius: 999px; background: var(--field-border); }
.wbrand { display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: start; line-height: 0; }
.wbrand img { grid-area: 1 / 1; display: block; height: 22px; transition: opacity var(--t-change) var(--ease-move); }
/* Beta, like a superscript: its top on the logo's top, 12 px from it and
   12 px before the tabs (it takes back 12 of the toolbar's 24). */
.wbeta { grid-area: 1 / 2; display: inline-flex; align-items: center; height: 16px; margin: 0 -12px 0 0; padding: 0 5px; border: 1px solid var(--field-border); border-radius: var(--radius); color: var(--detail); font-size: 10px; line-height: 1; letter-spacing: 0.03em; white-space: nowrap; }
.wtabs { position: relative; display: flex; gap: var(--gap); align-self: stretch; }
.wtab { display: flex; align-items: center; gap: 8px; padding-top: 2px; color: var(--detail); font-size: var(--t-main); transition: color var(--t-change) var(--ease-move); }
.wtab.on { color: var(--main); }
.wtab .whint { margin: 0; }
/* js/hero.js sets its width and place to the tab that's on, and it glides
   there when the window switches to Upload and back. */
.wtabline { position: absolute; left: 0; bottom: 0; width: 72px; height: 2px; background: var(--main); transition: transform var(--t-layout) var(--ease-move), width var(--t-layout) var(--ease-move); }
.wtools { margin-left: auto; display: flex; align-items: center; gap: var(--tool-gap); }

/* What's left: a brand-gradient bar, "418.36 GB left" and a small Buy. */
.wusage { width: 264px; padding: 8px; display: flex; flex-direction: column; gap: 8px; border-radius: var(--radius); }
.wminibar { position: relative; display: block; width: 100%; height: 6px; }
.wminibar .wtrack { position: absolute; inset: 0; border-radius: 999px; background: var(--track); overflow: hidden; }
.wminibar .wglow { position: absolute; inset: 0; filter: blur(6px); opacity: var(--glow); pointer-events: none; }
.wminibar .wfill, .wminibar .wfill i { position: absolute; inset: 0; display: block; border-radius: 999px; }
.wminibar .wfill { overflow: hidden; transform: translateX(calc(var(--p, 0%) - 100%)); transition: transform var(--t-layout) var(--ease-move); }
.wminibar .wfill i { background: linear-gradient(90deg, var(--red), var(--green), var(--blue)); transform: translateX(calc(100% - var(--p, 0%))); transition: transform var(--t-layout) var(--ease-move); }
/* What's left on the pretend account. It starts full and falls as files
   finish; js/hero.js moves it frame by frame, in step with the counting
   number, so it wants no transition of its own. */
.wusage .wfill { --p: 100%; }
.wusage .wfill, .wusage .wfill i { transition: none; }
/* Back to the top of the loop behind a fade, never a jump. */
.wusage { transition: opacity var(--t-change) var(--ease-move); }
.wusage.resetting { opacity: 0; }
.wusage .wunder { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wusage .wlabel { color: var(--detail); font-size: var(--t-h); line-height: 14px; font-variant-numeric: tabular-nums; }
.wusage .wbuy { color: var(--detail); font-size: var(--t-h); line-height: 14px; white-space: nowrap; }
/* The account button: round, 40 px, the email's first letter. */
.wavatar { flex: none; width: var(--ctl); height: var(--ctl); display: grid; place-items: center; border: 1px solid var(--field-border); border-radius: 999px; background: var(--field-fill); color: var(--main); font-size: var(--t-ttl); line-height: 1; font-weight: var(--w-title); }

/* ---------- Two columns ---------- */
.wmain { flex: 1; min-height: 0; display: grid; grid-template-columns: var(--left-w) minmax(0, 1fr); transition: opacity var(--t-change) var(--ease-move); }
/* Switching tab: the window's contents fade out, change, and fade back. */
.wmain.wswap { opacity: 0; }
.wsteps { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-right: 1px solid var(--divider); }
.wsec { flex: none; padding: var(--pad-y) var(--pad-x); border-bottom: 1px solid var(--divider); min-width: 0; }
.wsec.wdl { flex: 1; min-height: 0; border-bottom: 0; display: flex; flex-direction: column; }
.wsec > label { display: block; margin: 0 0 8px; font-size: var(--t-ttl); line-height: var(--l-ttl); font-weight: var(--w-title); }
.wsec > label .num { color: var(--faint); font-weight: var(--w-light); }
.wrow { display: flex; gap: 8px; align-items: center; }
/* A title with something on its right: "✓ Connected" opposite "1. Google account". */
.wtitle { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 8px; }
.wtitle > label { display: block; margin: 0; font-size: var(--t-ttl); line-height: var(--l-ttl); font-weight: var(--w-title); }
.wtitle > label .num { color: var(--faint); font-weight: var(--w-light); }
.wstate { color: var(--detail); font-size: var(--t-det); line-height: var(--l-det); white-space: nowrap; }
.wrow .wfield { flex: 1; min-width: 0; }

/* Fields and menus: clear with a muted grey outline. */
.wfield {
  display: flex;
  align-items: center;
  height: var(--ctl);
  padding: 0 15px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  color: var(--main);
  font-size: var(--t-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* A long link is cut at the field's inner edge, as a text box cuts it. */
.wfield.wclip > span { min-width: 0; overflow: hidden; text-overflow: clip; }
.wfield.wmenu {
  position: relative;
  display: block;
  padding: 0 40px 0 15px;
  border-color: var(--field-muted);
  line-height: calc(var(--ctl) - 2px);
  transition: border-color var(--t-change) var(--ease-move), color var(--t-change) var(--ease-move);
}
.wfield.wmenu::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 15px;
  width: 6px;
  height: 6px;
  border: solid var(--field-muted);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  transition: border-color var(--t-change) var(--ease-move);
}
.wfield.wmenu.off { border-color: var(--btn-off-border); color: var(--btn-off-text); }
.wfield.wmenu.off::after { border-color: var(--btn-off-border); }
.wbtn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--ctl);
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--btn);
  color: var(--on-btn);
  font-size: var(--t-main);
  white-space: nowrap;
  transition: background-color var(--t-change) var(--ease-move), color var(--t-change) var(--ease-move),
    border-color var(--t-change) var(--ease-move);
}
/* A secondary action (the round +, Choose…): clear, an outline at the
   hover tone, full-strength text — available, but not the screen's one
   solid button. */
.wbtn.secondary { background: transparent; border-color: var(--field-hover); color: var(--main); }
.wbtn.round { width: var(--ctl); padding: 0; border-radius: 999px; font-size: 20px; line-height: 1; }
/* Not available: clear, a thin outline, washed-out text. */
.wbtn.off { background: transparent; border-color: var(--btn-off-border); color: var(--btn-off-text); }
/* Only while a button is being put back after the window stopped being
   drawn: it settles where it belongs instead of finishing a fade nobody
   saw the start of. */
.wbtn.wnofade { transition: none; }
.wsec .winfo { margin: 8px 0 0; color: var(--detail); font-size: var(--t-det); line-height: var(--l-det); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Good news under a field ("Folder link", the drive's line) is green, at main size. */
.wsec .winfo.ok { color: var(--ok); font-size: var(--t-main); line-height: var(--l-main); }
.wsec .whint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wsec .whint { margin: 0; }

/* ---------- The download ---------- */
.wbuttons { flex: none; display: flex; align-items: center; gap: 8px; }
.wbuttons .wend { margin-left: auto; display: flex; align-items: center; gap: 16px; }
/* A small link (Cancel download, ↻ Refresh, Technical log): grey, 13 px. */
.wlink { color: var(--detail); font-size: var(--t-det); line-height: var(--l-det); white-space: nowrap; }
/* Shown only when it applies (Cancel download, while paused); it fades in
   and out, and takes no room once it has gone, so Done's buttons fit. */
.wfade { max-width: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity var(--t-change) var(--ease-move), visibility 0s linear var(--t-change), max-width 0s linear var(--t-change), margin 0s linear var(--t-change); }
.wfade.shown { max-width: 240px; opacity: 1; visibility: visible; transition: opacity var(--t-appear) var(--ease-in-view); }
.wbuttons > .wlink.shown { margin-left: 8px; }

/* The main bar: the brand gradient laid across the whole track and
   uncovered as it fills (never stretched), with a soft glow underneath in
   the same colours. Paused: frozen, at half brightness. */
.wmeter { position: relative; flex: none; margin: 16px 0 8px; }
.wmeter .wbar { position: relative; height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.wmeter .wfill, .wmeter .wfill i { position: absolute; inset: 0; display: block; border-radius: 999px; }
.wmeter .wfill { overflow: hidden; transform: translateX(calc(var(--p, 0%) - 100%)); transition: transform var(--t-bar) var(--ease-move); }
.wmeter .wfill i {
  background: linear-gradient(90deg, var(--red), var(--green), var(--blue));
  transform: translateX(calc(100% - var(--p, 0%)));
  transition: transform var(--t-bar) var(--ease-move), filter var(--t-layout) var(--ease-move);
}
.wmeter .wglow { position: absolute; left: 0; right: 0; top: 0; height: 8px; filter: blur(8px); opacity: var(--glow); pointer-events: none; transition: opacity var(--t-layout) var(--ease-move); }
/* A jump (a new download, or Done): the layout timing, not the bar's. */
.wmeter.jump .wfill, .wmeter.jump .wfill i { transition-duration: var(--t-layout); }
/* Paused: the gradient frozen at half brightness, the glow dimmed. */
.win.paused .wmeter .wbar .wfill i { filter: brightness(0.5); }
.win.paused .wmeter .wglow { opacity: calc(var(--glow) * 0.4); }

.wstatus { flex: 0 1 auto; min-height: 0; overflow: hidden; }
.wstatus p { margin: 4px 0 0; transition: color var(--t-change) var(--ease-move); }
.wstatus p:first-child { margin-top: 0; }
.wstatus p:empty { display: none; }
.wsec.wdl .wrule { flex: none; }
/* The hint under the download wraps onto a second line when it needs one,
   as the app's does (its French one does). */
.wsec.wdl > .whint { flex: none; margin-top: 8px; white-space: normal; }

/* ---------- The files, full height on the right ---------- */
/* No space under the column: the list runs down to the footer's line (its
   own 16 px sit inside it, or the Technical log's strip). */
.wfiles { display: flex; flex-direction: column; min-height: 0; padding: var(--pad-y) var(--pad-x) 0; }
.wpanel-head { flex: none; }
.wpanel-head h2 { margin: 0; font-size: var(--t-ttl); line-height: var(--l-ttl); }
.wpanel-head p { margin: 4px 0 0; min-height: var(--l-det); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The whole download by file type, between two lines: 16 above, inside and
   below them. The extension, the count in a pill, the size; a short upright
   line between types (2 px short of the text's top and bottom), about 12 px
   either side; a wrapped line 8 below. No line starts with a separator. */
.wtypes { margin: 16px 0 0; padding: 16px 0; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); overflow: hidden; color: var(--detail); font-size: var(--t-det); line-height: var(--l-det); font-variant-numeric: tabular-nums; }
.wtypes-row { display: flex; flex-wrap: wrap; row-gap: 8px; margin: 0 -11.5px 0 -13px; }
.wtype { position: relative; flex: none; display: inline-flex; align-items: center; padding: 0 11.5px 0 13.5px; white-space: nowrap; }
.wtype::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 1px; background: var(--divider); }
.wpill { margin: 0 6px; padding: 0 6px; border: 1px solid var(--field-border); border-radius: 999px; background: var(--field-fill); color: var(--detail); font-size: 11px; line-height: 16px; transition: color var(--t-change) var(--ease-move), border-color var(--t-change) var(--ease-move); }
/* Every file of this type is done: green, like the app's other good states. */
.wpill.complete { color: var(--ok); border-color: var(--ok); }

.wpanel-list { position: relative; flex: 1; min-height: 0; overflow: hidden; padding-bottom: var(--pad-y); }
/* A section heading: 16 below the file types' line when it comes first,
   24 below the section before it; 8 down to its first row. Which section
   comes first changes as files move, so the gap goes with what's above. */
.wgroup { display: flex; justify-content: space-between; gap: 16px; margin: 16px 0 8px; color: var(--detail); font-size: var(--t-det); line-height: var(--l-det); }
.wpanel-list > [data-group]:not([hidden]) ~ [data-group] .wgroup { margin-top: 24px; }
/* Before anything is listed: one quiet line. */
.wnote { margin: 16px 0 0; color: var(--hint); font-size: var(--t-h); line-height: var(--l-h); }
/* Every row 8 above and below its line, one height everywhere. */
.wfile { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; padding: 8px 0; border-top: 1px solid var(--divider); }
.wfile .wname { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.wfile .wname > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color var(--t-change) var(--ease-move); }
.wfile .wtag { flex: none; font-size: var(--t-det); transition: opacity var(--t-change) var(--ease-move); }
.wfile .wtag.going { opacity: 0; }
.wfile .wsize { color: var(--detail); font-size: var(--t-det); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wfile.waiting .wname > span:first-child { color: var(--detail); }
/* Each file's bar: plain, pill-shaped, 3 px, 4 under its name. */
.wfile .wmini { position: relative; grid-column: 1 / -1; height: 3px; margin: 4px 0 0; border-radius: 999px; background: var(--track); overflow: hidden; }
.wfile .wmini i { position: relative; display: block; height: 100%; border-radius: 999px; background: var(--file-bar); transform-origin: left; transform: scaleX(var(--f, 0)); transition: transform var(--t-bar) var(--ease-move); }
/* Finishing: the bar cross-fades into the brand gradient with the same soft
   glow, holds, then the row moves to Finished. */
.wfile .wmini i::after, .wfile .wmini::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--green), var(--blue));
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-change) var(--ease-move);
}
.wfile .wmini::before { filter: blur(6px); }
.wfile.finishing .wmini { overflow: visible; }
.wfile.finishing .wmini i::after { opacity: 1; }
.wfile.finishing .wmini::before { opacity: var(--glow); }
@media (prefers-reduced-motion: reduce) { .wfile.finishing .wmini::before { opacity: 0; } }

/* A row that just arrived in its new section fades in; the rest glide. */
.wfile.enter { animation: wenter var(--t-appear) var(--ease-in-view) both; }
@keyframes wenter { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { @keyframes wenter { from { opacity: 0; } } }

/* A list that has just appeared comes in a row at a time, each a little
   after the one before (js/hero.js sets --d and only on what can be seen).
   The headings and the file-type summary join the same cascade. */
.wcasc { animation: wenter var(--t-cascade) var(--ease-in-view) var(--d, 0ms) both; }
@media (prefers-reduced-motion: reduce) {
  /* Reduce motion: they are simply there. */
  .wcasc { animation: none; }
}

/* The Technical log's strip, under the list once a download has begun:
   8 above its link and the column's 16 below; it opens with its height
   and a fade, as in the app. */
.wpanel-foot { flex: none; display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows var(--t-layout) var(--ease-move), opacity var(--t-change) var(--ease-move); }
.wpanel-foot.open { grid-template-rows: 1fr; opacity: 1; }
.wpanel-foot > div { min-height: 0; overflow: hidden; }
.wpanel-foot .wlink { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 var(--pad-y); }
.wpanel-foot svg { flex: none; width: 8px; height: 8px; }

/* ---------- The footer strip ---------- */
.wfoot { flex: none; display: flex; align-items: center; gap: var(--gap); padding: var(--tool-gap) var(--pad-x); border-top: 1px solid var(--divider); color: var(--detail); font-size: var(--t-h); line-height: var(--l-h); }

/* ---------- The loader, beside "Checking…" ---------- */
.win .wheel { width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; }

/* ===========================================================================
   One window at every width.

   RushPull is a Mac app, so this never becomes a phone layout: it is the
   same 1160 x 792 window with the same two columns, the same toolbar and
   the same sections at 375 px as at 1440, drawn at its real size and
   scaled down whole, the way a screenshot shrinks. js/hero.js measures the
   room there is and sets --s; .stage keeps the scaled height, so the page
   lays out around the picture and nothing overlaps it. The download goes
   on playing inside at whatever size it is shown.

   On a small phone the writing inside is too small to read. That is the
   point: what it shows there is the shape of a desktop app, and the line
   underneath says which app it is.

   The ladder below is only for a browser with JavaScript turned off, where
   nothing can be measured. Each step is a little under the room that width
   really has, so the window always fits.
   =========================================================================== */
@media (max-width: 1207px) { .stage { --s: 0.9; } }
@media (max-width: 1100px) { .stage { --s: 0.8; } }
@media (max-width: 980px) { .stage { --s: 0.72; } }
@media (max-width: 880px) { .stage { --s: 0.7; } }
@media (max-width: 768px) { .stage { --s: 0.6; } }
@media (max-width: 720px) { .stage { --s: 0.57; } }
@media (max-width: 620px) { .stage { --s: 0.48; } }
@media (max-width: 520px) { .stage { --s: 0.4; } }
@media (max-width: 430px) { .stage { --s: 0.32; } }
@media (max-width: 380px) { .stage { --s: 0.28; } }
@media (max-width: 340px) { .stage { --s: 0.24; } }

/* The line under it on a phone: there, the window is a picture of a Mac
   app rather than anything you could tap. It is the picture's caption, so
   it sits close under it, and the section's own air comes after it. */
.stage-cap { margin-top: var(--sp-m); text-align: center; color: var(--hint); font-size: var(--t-hint); }
@media (min-width: 621px) { .stage-cap { display: none; } }
