/* /download: the desktop app's page. The demo desktop (download.js) is drawn here in the page's own light or dark: the
   wallpapers, bars and chips are its tokens (--ls-*); the liquid is the apps' own. */

.dl-hero { padding: clamp(28px, 6vw, 72px) 0 clamp(20px, 4vw, 40px); }
.dl-hero .crumb { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 0 0 18px; }
.dl-hero .crumb a { color: var(--muted); }
.dl-hero h1 { font-size: clamp(40px, 7.5vw, 92px); line-height: .98; margin: 0; }
.dl-hero h1 em { font-style: normal; color: var(--accent); }
.dl-lede { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 36em; margin: 18px 0 26px; }
.dl-get { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dl-btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; box-sizing: border-box; padding: 0 24px; background: var(--ink); color: var(--paper);
  font-weight: 650; font-size: 16px; text-decoration: none; border: 1px solid var(--ink); }
.dl-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.dl-btn svg { width: 20px; height: 20px; }
.dl-soon { display: inline-flex; align-items: center; gap: 10px; height: 54px; box-sizing: border-box; padding: 0 20px; border: 1px dashed var(--line-strong);
  color: var(--muted); font-weight: 650; font-size: 16px; }
.dl-soon small { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.dl-meta { font-family: var(--mono); font-size: 12px; color: var(--faint); margin: 14px 0 0; }
.dl-meta + .dl-meta { margin-top: 6px; }
.dl-get .peerlist { display: inline-block; line-height: 0; }
.dl-get .peerlist img { height: 54px; width: auto; }

/* ── the demo: a bar (what it is, which desktop), the desktop, the four steps ── */
.dl-demo { margin: 8px 0 clamp(36px, 6vw, 72px); }
.ls-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 12px; }
.ls-tag { margin: 0; color: var(--muted); font-size: 14px; }
.ls-tag b { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-right: 6px; }
.ls-ctl { display: flex; flex-wrap: wrap; gap: 6px; }
.ls-ctl[hidden], .ls-ctl [hidden] { display: none; }
.ls-os { display: inline-flex; }
.ls-os[hidden] { display: none; }
.ls-ctl button { font: 12px/1 var(--mono); padding: 8px 12px; border: 1px solid var(--line-strong); background: none; color: var(--muted); cursor: pointer; }
.ls-os button + button { margin-left: -1px; }
.ls-ctl button:hover { color: var(--ink); }
.ls-os button[aria-pressed="true"] { position: relative; background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ls-ctl button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.ls-stage { --cell: 100px;
  /* real photographs, CC0 (WordPress Photo Directory): Moraine Lake (Windows; mirrored on the Mac) */
  --ls-win: url("/static/demo/wall-win.webp") center / cover no-repeat #3E7E81;
  --ls-mac: url("/static/demo/wall-mac.webp") center / cover no-repeat #3E7E81;
  --ls-bar: rgba(246, 245, 241, .74); --ls-bar-ink: #191816; --ls-bar-line: rgba(25, 24, 22, .10); --ls-chip: rgba(20, 19, 17, .58);
  position: relative; width: 100%; max-width: 820px; margin-inline: auto; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ls-win); border: 1px solid var(--line-strong);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; isolation: isolate; font-family: var(--font); line-height: 1.3; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .ls-stage { --ls-win: linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.28)), url("/static/demo/wall-win.webp") center / cover no-repeat #1C3A3E;
    --ls-mac: linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.28)), url("/static/demo/wall-mac.webp") center / cover no-repeat #3F2D2C;
    --ls-bar: rgba(25, 25, 23, .74); --ls-bar-ink: #EDEBE5; --ls-bar-line: rgba(255, 255, 255, .10); --ls-chip: rgba(0, 0, 0, .6); }
}
:root[data-theme="dark"] .ls-stage { --ls-win: linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.28)), url("/static/demo/wall-win.webp") center / cover no-repeat #1C3A3E;
  --ls-mac: linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.28)), url("/static/demo/wall-mac.webp") center / cover no-repeat #3F2D2C;
  --ls-bar: rgba(25, 25, 23, .74); --ls-bar-ink: #EDEBE5; --ls-bar-line: rgba(255, 255, 255, .10); --ls-chip: rgba(0, 0, 0, .6); }
.ls-stage.mac { background: var(--ls-mac); }
@media (max-width: 640px) { .ls-stage { aspect-ratio: 4 / 5; } }
.ls-wall { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ls-layer { position: absolute; inset: 0; pointer-events: none; }
.ls-files { pointer-events: auto; }
.ls-goo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }

.ls-file { position: absolute; left: 0; top: 0; width: var(--cell); display: grid; justify-items: center; gap: 5px; padding: 7px 3px 6px; border-radius: 7px; cursor: grab; touch-action: none; }
.ls-glyph { width: calc(var(--cell) * .44); height: auto; aspect-ratio: 44 / 54; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .28)); pointer-events: none; }
.ls-name { font-size: 12px; line-height: 1.25; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 0 6px rgba(0, 0, 0, .55); text-align: center; max-width: 100%;
  overflow-wrap: break-word; padding: 1px 5px; border-radius: 4px; pointer-events: none; }
.ls-stage.small .ls-name { font-size: 11px; padding: 1px 3px; }
.ls-stage.win .ls-file.picked { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38); }
.ls-stage.mac .ls-file.picked .ls-name { background: #2F6FDB; text-shadow: none; }
.ls-stage.mac .ls-file.picked .ls-glyph { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .28)) brightness(.9); }
.ls-file.lifted { opacity: .38; }
.ls-file.pending { visibility: hidden; }
.ls-file.born { animation: ls-born .75s cubic-bezier(.2, 1.55, .35, 1) both; }
@keyframes ls-born { from { transform: translate(var(--bx), var(--by)) scale(.3); } to { transform: translate(var(--bx), var(--by)) scale(1); } }
.ls-file.ghost { cursor: grabbing; z-index: 5; }
.ls-file:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.ls-stk { position: relative; width: calc(var(--cell) * .44); aspect-ratio: 44 / 54; pointer-events: none; }
.ls-sg { position: absolute; inset: 0; display: block; }
.ls-sg .ls-glyph { width: 100%; }
.ls-count { position: absolute; right: -13px; top: -10px; z-index: 5; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--accent); color: #fff;
  font: 700 12.5px/24px var(--font); text-align: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.ls-marquee { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; border: 1px solid rgba(150, 195, 255, .95); background: rgba(47, 111, 219, .22); }
.ls-stage.mac .ls-marquee { border-color: rgba(255, 255, 255, .78); background: rgba(255, 255, 255, .18); border-radius: 3px; }

.ls-drop { position: absolute; left: 0; top: 0; display: grid; justify-items: center; color: #191816; font: 700 14px/1 var(--font); letter-spacing: .01em; pointer-events: none; white-space: nowrap; }
.ls-drop small { font: 600 9.5px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; opacity: .8; margin-bottom: 3px; }
.ls-drop.lit { color: #191816; }   /* on water, text is always black */

/* the desktop's own bars: a taskbar (Windows), a menu bar and a dock (Mac) */
.ls-taskbar, .ls-menubar, .ls-dock { background: var(--ls-bar); color: var(--ls-bar-ink); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
.ls-taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 48px; display: flex; align-items: center; justify-content: center; gap: 4px; border-top: 1px solid var(--ls-bar-line); }
.ls-taskbar .ls-app { width: 38px; height: 38px; border-radius: 7px; display: grid; place-items: center; }
.ls-tray { position: absolute; right: 14px; top: 0; bottom: 0; display: grid; align-content: center; justify-items: end; font-size: 11.5px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.ls-menubar { position: absolute; left: 0; right: 0; top: 0; height: 28px; display: flex; align-items: center; gap: 16px; padding: 0 14px; font-size: 13px; border-bottom: 1px solid var(--ls-bar-line); }
.ls-menubar .ls-r { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ls-menubar .ls-kn svg { width: 15px; height: 15px; display: block; }
.ls-dock { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 18px; box-shadow: 0 0 0 1px var(--ls-bar-line); }
.ls-dock .ls-app { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; }
@media (max-width: 640px) { .ls-menubar .ls-opt { display: none; } .ls-dock .ls-app { width: 36px; height: 36px; } .ls-dock { gap: 4px; padding: 5px; } }
@media (max-width: 420px) { .ls-tray span:last-child { display: none; } }
.ls-app i { display: grid; place-items: center; width: 78%; height: 78%; border-radius: 24%; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 78%, #fff), var(--c)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.ls-app i svg { width: 58%; height: 58%; }
.ls-kn { position: relative; }
.ls-app .ls-kn-ic { width: 78%; height: 78%; }
.ls-app.ls-kn::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ls-bar-ink); opacity: .55; }
.ls-kn.live .ls-kn-ic { animation: ls-live 1.1s ease-in-out infinite; }
@keyframes ls-live { 50% { transform: scale(1.12); } }

.ls-hint, .ls-toast { position: absolute; left: 50%; max-width: calc(100% - 32px); margin: 0; background: var(--ls-chip); color: #fff; text-align: center; pointer-events: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ls-hint { top: 14px; transform: translateX(-50%); width: max-content; padding: 7px 13px; border-radius: 999px; font: 600 12.5px/1.25 var(--font); transition: opacity .25s; }
.ls-stage.mac .ls-hint { top: 40px; }
/* a narrow desktop: the hint keeps to the side the files aren't on (Mac's are on the right, Windows' on the left) */
.ls-stage.small .ls-hint { width: auto; max-width: calc(50% - 24px); left: 12px; transform: none; border-radius: 12px; text-align: left; }
.ls-stage.small.win .ls-hint { left: auto; right: 12px; }
.ls-toast { bottom: 62px; width: max-content; transform: translate(-50%, 8px); opacity: 0; padding: 9px 14px; border-radius: 12px; font: 500 12.5px/1.35 var(--font); transition: opacity .3s, transform .3s; }
.ls-stage.mac .ls-toast { bottom: 76px; }
.ls-toast.on { opacity: 1; transform: translate(-50%, 0); }
.ls-toast b { font-family: var(--mono); font-weight: 600; }
.ls-cursor { position: absolute; left: 0; top: 0; width: 22px; height: 30px; pointer-events: none; z-index: 9; opacity: 0; transition: opacity .3s; }
.ls-cursor.on { opacity: 1; }

/* the four steps: hairline cells, the one happening now marked in red */
.ls-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-strong); border-top: 0; counter-reset: s; }
.ls-steps li { counter-increment: s; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-content: start; padding: 14px 16px; min-width: 0;
  border-right: 1px solid var(--line); transition: background .2s; }
.ls-steps li:last-child { border-right: 0; }
.ls-steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line-strong);
  font: 600 12px/1 var(--mono); color: var(--muted); transition: background .2s, color .2s, border-color .2s; }
.ls-steps b { font-weight: 650; }
.ls-steps span { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.ls-steps li.on { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.ls-steps li.on::before { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (max-width: 820px) { .ls-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ls-steps li:nth-child(2) { border-right: 0; } .ls-steps li:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 480px) { .ls-steps { grid-template-columns: 1fr; } .ls-steps li { border-right: 0; border-bottom: 1px solid var(--line); } .ls-steps li:last-child { border-bottom: 0; } }
@media (prefers-reduced-motion: reduce) { .ls-file.born, .ls-kn.live .ls-kn-ic { animation: none; } }

/* ── what it does, and install ── */
.dl-what { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border: 1px solid var(--line-strong); margin-bottom: clamp(36px, 6vw, 64px); }
.dl-what article { padding: clamp(18px, 3vw, 28px); border-right: 1px solid var(--line); min-width: 0; }
.dl-what article:last-child { border-right: 0; }
.dl-what h2, .dl-install h2 { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; letter-spacing: -.03em; font-size: 22px; margin: 0 0 16px; }
.dl-what h2 svg { flex: none; width: 24px; height: 24px; color: var(--accent); }
.dl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.dl-chips span { font-family: var(--mono); font-size: 12px; padding: 4px 8px; border: 1px solid var(--line-strong); }
.pairs { display: grid; gap: 8px; margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.pairs:last-child { margin-bottom: 0; }
.pairs code { font-family: var(--mono); font-size: 12px; padding: 2px 6px; background: var(--soft); color: var(--ink); }
.dl-on { display: block; margin: 0 0 8px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.pairs .dl-on { margin: 0 0 2px; }
.dl-what .dl-on:not(:first-of-type) { margin-top: 18px; }
.dl-install { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); border: 1px solid var(--line-strong); margin-bottom: clamp(36px, 6vw, 72px); }
.dl-install article { padding: clamp(18px, 3vw, 28px); border-right: 1px solid var(--line); min-width: 0; }
.dl-install article:last-child { border-right: 0; }
.dl-install ol { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 8px; font-size: 16px; }
.dl-soon-note { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 600px) {
  .dl-what article, .dl-install article { border-right: 0; border-bottom: 1px solid var(--line); }
  .dl-what article:last-child, .dl-install article:last-child { border-bottom: 0; }
}

/* /download and /nothing-explorer stand alone (no tools sidebar): the page centred, the hero in the middle, each demo a real
   screen: rounded, lifted on a soft glow of the accent, the steps a little apart from it */
.solo { max-width: 1120px; margin: 0 auto; }
.solo .dl-hero { text-align: center; padding-top: clamp(44px, 8vw, 110px); padding-bottom: clamp(28px, 5vw, 56px); }
.solo .dl-hero h1 { font-size: clamp(44px, 8.4vw, 112px); }
.solo .dl-lede { margin-inline: auto; }
.solo .dl-get { justify-content: center; }
.solo .ne-name { flex-direction: column; justify-content: center; gap: 14px; margin-bottom: 26px; font-size: 20px; }
.solo .ne-name img { width: 88px; height: 88px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .22)); }
.solo .dl-demo { position: relative; isolation: isolate; }
.solo .dl-demo::before { content: ""; position: absolute; z-index: -1; inset: 18% 8% -4%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 26%, transparent), transparent); filter: blur(30px); }
.solo .ls-stage, .solo .ne-stage { border: 0; border-radius: 18px; box-shadow: 0 0 0 1px var(--line-strong), 0 50px 110px -40px rgba(0, 0, 0, .55); }
.solo .ne-stage { max-width: 980px; margin-inline: auto; aspect-ratio: 16 / 10; }
.solo .ne-panel { width: min(600px, 86%); height: 80%; }
.solo .ls-bar { max-width: 980px; margin-inline: auto; }
.solo .ls-stage + *, .solo .ne-stage + * { margin-top: 18px; }
