/* The /download page: one calm, centred composition. Loaded by tools/site/pages/download.html only. */
.dl2 {
  min-height: calc(100vh - var(--nav-h));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 32px; padding: calc(var(--nav-h) + 12px) 16px 56px;
  background: radial-gradient(120% 70% at 50% 0%, #fff 0%, #f1f2f3 55%, #e9eaec 100%);
  text-align: center;
}

/* The fan: centre card in front, the two side cards tucked behind and a little lower. */
/* the box is as tall as the front card plus its lift, so no empty band sits above the fan */
.dl2-fan { position: relative; width: min(100%, 560px); height: calc(var(--mid) + 22px); --mid: 190px; --side: 130px; }
.dl2-card {
  position: absolute; bottom: 0; left: 50%; margin: 0;
  background: #fff; padding: 6px; border-radius: 28px;
  box-shadow: 0 2px 4px rgb(0 0 0 / 6%), 0 18px 40px -12px rgb(0 0 0 / 22%);
  transform: translateX(-50%) rotate(var(--rot, 0deg));
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.dl2-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.dl2-mid { width: var(--mid); height: var(--mid); z-index: 2; bottom: 14px; }
.dl2-mid img { object-position: 0 0; }   /* a square crop made for this card: rail, Queue, one job */
.dl2-left, .dl2-right { width: var(--side); height: var(--side); z-index: 1; bottom: 0; }
.dl2-left { --rot: -6deg; left: calc(50% - var(--mid) * .62); }
.dl2-right { --rot: 6deg; left: calc(50% + var(--mid) * .62); }
.dl2-right img { object-position: 70% 50%; }   /* a photo: its left edge sits under the middle card */
@media (min-width: 640px) {
  .dl2-fan { --mid: 280px; --side: 210px; }
  .dl2-mid { bottom: 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  .dl2-fan:hover .dl2-left { transform: translateX(-50%) translateX(-10px) rotate(-9deg); }
  .dl2-fan:hover .dl2-right { transform: translateX(-50%) translateX(10px) rotate(9deg); }
  .dl2-fan { animation: dl2-in .9s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes dl2-in { from { opacity: 0; transform: translateY(16px); } }
}

.dl2-text { width: 100%; max-width: 560px; display: flex; flex-direction: column; align-items: center; }
.dl2-text h1 {
  font-family: var(--font); font-size: clamp(40px, 3vw + 28px, 52px); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.1; margin: 0 0 12px; color: var(--ink);
}
.dl2-tagline { max-width: 34ch; margin: 0 0 28px; font-size: 17px; line-height: 26px; color: var(--muted); }
.dl2-state { display: flex; flex-direction: column; align-items: center; width: 100%; }
.dl2-quiet { margin: 0; font-size: 15px; line-height: 24px; color: var(--muted); max-width: 44ch; }
.dl2-quiet a { color: var(--ink); }

.dl2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 14px; white-space: nowrap;
  background: var(--ink); color: #fff; font: 600 17px/1 var(--font); text-decoration: none;
  box-shadow: 0 1px 2px rgb(0 0 0 / 20%), 0 10px 22px -8px rgb(0 0 0 / 40%);
  transition: transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .2s;
}
.dl2-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgb(0 0 0 / 20%), 0 14px 26px -8px rgb(0 0 0 / 45%); }
.dl2-btn:active { transform: translateY(0); }
.dl2-btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 14px; }
.dl2-win { width: 18px; height: 18px; flex: none; }
.dl2-meta { margin: 14px 0 0; font-size: 13.5px; line-height: 20px; color: var(--soft); font-variant-numeric: tabular-nums; }
.dl2-x86 { margin: 8px 0 0; font-size: 13px; line-height: 20px; color: var(--soft); }
.dl2-x86 a, .dl2-steps a { color: var(--ink); }

.dl2-note { margin: 22px 0 0; max-width: 440px; color: var(--muted); }
.dl2-note h2 { font-size: 14.5px; line-height: 22px; font-weight: 500; letter-spacing: 0; margin: 0 0 6px; color: var(--muted); }
/* download.js still fills the body per platform; the heading already says it, so it is kept for screen readers only */
.dl2-note p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
.dl2-note .dl2-small { min-height: 40px; padding: 0 10px; border: 0; background: none; box-shadow: none;
                       font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.dl2-note .dl2-small .copy-icon { display: none; }
.dl2-note .dl2-small:hover { color: var(--green); }
.dl2-note-actions, .dl2-check-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.dl2-small {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--ink);
  font: 500 14px/1 var(--font); text-decoration: none; cursor: pointer;
}
.dl2-small:hover { border-color: var(--ink); }
.dl2-small:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.dl2-small .copy-icon { width: 16px; height: 16px; }
/* download.js adds .copied for two seconds after a copy; the label already says so, the colour confirms it */
.dl2-small.copied { color: var(--green); border-color: var(--green); background: var(--tint); }

.dl2-steps { margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--line-strong); width: 100%; max-width: 420px; }
.dl2-steps h2 { font-size: 15px; line-height: 22px; font-weight: 600; letter-spacing: 0; margin: 0 0 10px; }
.dl2-steps ol { margin: 0 0 12px; padding: 0; list-style: none; counter-reset: s; text-align: left; display: grid; gap: 8px; }
.dl2-steps li { counter-increment: s; display: flex; gap: 12px; font-size: 15px; line-height: 24px; color: var(--text); }
.dl2-steps li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; line-height: 24px; text-align: center; font-variant-numeric: tabular-nums; }
.dl2-steps p { margin: 0; font-size: 13.5px; color: var(--muted); }
.dl2-steps code { font-size: 13.5px; }

.dl2-check { margin: 40px 0 0; font-size: 13px; color: var(--muted); max-width: 420px; }
.dl2-check summary { cursor: pointer; padding: 12px 8px; min-height: 48px; display: inline-block; text-decoration: underline; text-underline-offset: 3px; }
.dl2-check summary:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.dl2-check p { margin: 0 0 8px; line-height: 20px; }
.dl2-sha code { display: block; overflow-wrap: anywhere; font-size: 12px; line-height: 18px; }
.dl2-date { align-self: center; font-variant-numeric: tabular-nums; }

/* Two ways to install, equal in weight: winget first, the installer second. */
.dl2-text:has(.dl2-paths) { max-width: 640px; }
.dl2-paths { width: 100%; display: grid; gap: 16px; text-align: left; }
.dl2-path { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.dl2-path-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 8px; }
.dl2-path h2 { font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.dl2-path-lede { margin: 0 0 16px; font-size: 15.5px; line-height: 24px; color: var(--muted); }
.dl2-path .dl2-state { align-items: flex-start; }
.dl2-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line-strong); color: var(--muted); background: #fff; }
.dl2-tag-ok { border-color: var(--green); color: var(--green); background: var(--tint); }
.dl2-cmd { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.dl2-cmd code { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; line-height: 22px; overflow-x: auto; white-space: nowrap; }
.dl2-hint { margin: 10px 0 0; font-size: 14px; line-height: 22px; color: var(--muted); }
.dl2-hint code { font-size: 13px; overflow-wrap: anywhere; }
.dl2-hint a { color: var(--ink); }
.dl2-soon { margin: 0; padding: 12px 14px; border-radius: 12px; background: color-mix(in oklch, var(--warn) 8%, white); border: 1px solid color-mix(in oklch, var(--warn) 30%, transparent); color: color-mix(in oklch, var(--warn) 80%, black); font-size: 15px; line-height: 22px; font-weight: 500; }
.dl2-future code { white-space: normal; }
.dl2-smart { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.dl2-smart h3 { margin: 0 0 4px; font-size: 14.5px; line-height: 22px; font-weight: 600; }
.dl2-smart p { margin: 0; font-size: 14px; line-height: 22px; color: var(--muted); }
.dl2-path .dl2-check { margin-top: 16px; }
.dl2-path .dl2-steps { margin-top: 20px; max-width: none; }
.dl2-path .dl2-note { max-width: none; }
.dl2-path .dl2-note-actions, .dl2-path .dl2-check-row { justify-content: flex-start; }
/* when winget is the live path, the installer button steps back to an outline */
.dl2-paths[data-winget="live"] .dl2-exe .dl2-btn { background: #fff; color: var(--ink); box-shadow: none; border: 1px solid var(--line-strong); }

/* Click-to-play video: a still picture and a play mark; the frame is made on click (download.js). */
.dl2-video { margin: 20px 0 0; }
.yt { position: relative; display: block; aspect-ratio: 16 / 9; width: 100%; border-radius: 14px; overflow: hidden; background: var(--ink); text-decoration: none; color: #fff; }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: var(--green); display: grid; place-items: center; box-shadow: 0 8px 24px -6px rgb(0 0 0 / 50%); transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
.yt-play svg { width: 28px; height: 28px; margin-left: 3px; }
.yt:hover .yt-play { transform: scale(1.06); }
.yt:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.yt-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px; font-size: 14px; font-weight: 600; background: linear-gradient(transparent, rgb(0 0 0 / 70%)); }
.dl2-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; background: #000; }
@media (max-width: 480px) { .dl2-path { padding: 18px; } }
