/*
 * The Download page (`download.html` → /download/), in home.css's system and page.css's opening.
 * This file adds only what no other page draws: Clario recording on its painting, the two installer
 * cards (the Windows half is filled by the build, as a link or as "coming soon"), the three steps
 * after installing, and the four things you need.
 */

/* ─── The opening ──────────────────────────────────────────────────────── */
.dl-hero {
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
}

.dl-hero .lede {
  max-width: 440px;
}

.lede .more {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
  white-space: nowrap;
}

.lede .more:hover {
  text-decoration-color: currentcolor;
}

.dl-hero .actions {
  margin-top: var(--s6);
}

.fine {
  margin-top: var(--s4);
  font-size: var(--small);
  line-height: var(--small-lh);
  color: var(--text-3);
}

.hero-shot {
  left: 56px;
  top: 40px;
  width: 730px;
}

.dl-hero .f-note {
  --depth: 18px;

  left: 20px;
  top: 112px;
}

/* ─── The two installers ───────────────────────────────────────────────── */
.installs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5);
}

.install {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--s7);
  border-radius: var(--r-md);
  background: var(--paper);
}

.platform-icon {
  width: 40px;
  height: 40px;
  color: var(--text);
}

.install h3 {
  margin-top: var(--s5);
  font-size: var(--h4);
  line-height: var(--h4-lh);
  letter-spacing: -0.01em;
}

.need {
  margin-top: var(--s1);
  color: var(--text-2);
}

.get-row {
  margin-top: var(--s6);
}

.install .get,
.install .soon {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  height: 56px;
  padding: 0 28px;
  border-radius: var(--r-pill);
  font-size: var(--small);
  font-weight: 560;
  text-decoration: none;
}

.install .get {
  background: var(--ink);
  color: var(--white);
  transition:
    transform 160ms var(--ease),
    background-color 160ms var(--ease);
}

.install .get:hover {
  background: var(--ink-hover);
}

.install .get:active {
  transform: scale(0.97);
}

.install .get svg,
.install .soon svg {
  width: 16px;
  height: 18px;
}

.install .soon {
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--text-2);
}

.meta {
  margin-top: var(--s4);
  font: 560 var(--label) / var(--label-lh) var(--font-sans);
  color: var(--text-3);
}

.note {
  max-width: 460px;
  margin-top: var(--s5);
  padding-top: var(--s5);
  box-shadow: 0 -1px 0 var(--line);
  font-size: var(--small);
  line-height: var(--small-lh);
  color: var(--text-2);
}

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

/* ─── After you install: each step beside the real thing ───────────────── */
.after .row-art {
  height: 540px;
}

.step-face {
  --bg: #1a1a1d;

  position: absolute;
  left: 50%;
  top: 34%;
  width: 180px;
  translate: -50% -50%;
  color: #ededef;
}

.f-offline {
  --depth: 16px;

  left: 50%;
  bottom: 56px;
  translate: -50% 0;
}

.picker {
  left: 50%;
  top: 48px;
  width: 640px;
  margin-left: -320px;
}

.after .sheet {
  top: 40px;
}

/* ─── What you need ────────────────────────────────────────────────────── */
.needs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s6);
}

.needs div {
  display: grid;
  align-content: start;
  gap: var(--s3);
  padding-top: var(--s5);
  box-shadow: 0 -1px 0 var(--line-2);
}

.needs dt {
  font: 370 var(--h4) / var(--h4-lh) var(--font-display);
  letter-spacing: -0.01em;
}

.needs dd {
  margin: 0;
  color: var(--text-2);
}

.needs a {
  color: var(--text);
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}

.needs .icons {
  margin-top: var(--s3);
}

.needs .icons img {
  width: 24px;
  height: 24px;
}

@media (width <= 1100px) {
  .dl-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .needs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--s7);
  }

  .hero-shot {
    width: 840px;
  }
}

@media (width <= 860px) {
  .installs {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (width <= 720px) {
  .dl-hero .f-note,
  .f-offline {
    display: none;
  }

  .hero-shot {
    left: 24px;
    top: 28px;
    width: 600px;
  }

  .install {
    padding: var(--s6) var(--s5);
  }

  .after .row-art {
    height: 440px;
  }

  .step-face {
    width: 140px;
  }

  .picker {
    top: 28px;
    left: 12px;
    width: 520px;
    margin-left: 0;
  }

  .after .sheet {
    top: 28px;
    width: 320px;
    margin-left: -160px;
  }

  .needs {
    grid-template-columns: minmax(0, 1fr);
  }
}
