/* Download: the sky and all three desktop packages fill the first screen,
   then the server edition and what to set up after installing. The sky's
   height lives in site.css (.screen-sky) and assumes these cards. */

/* Every platform, side by side, straddling the edge of the sky. */
.dl { position: relative; z-index: 4; padding: 0 0 44px; scroll-margin-top: 24px; }
.plats { margin-top: -82px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plat { padding: 24px; display: flex; flex-direction: column; box-shadow: 0 18px 44px rgba(13, 18, 26, 0.08); }
.plat.is-current { border: 2px solid var(--yellow); padding: 23px; box-shadow: 0 20px 48px rgba(13, 18, 26, 0.12); }
.plat .head { display: flex; align-items: center; gap: 14px; }
.plat .icon { width: 44px; height: 44px; object-fit: contain; image-rendering: pixelated; flex: none; }
.plat h3 { font-size: 22px; line-height: 1.2; }
.plat .here { margin-left: auto; font-size: 13px; color: var(--muted); }
.plat .here[hidden] { display: none; }
.plat .req { margin-top: 14px; font-size: 14.5px; }
.seg { margin: 18px 0 0; padding: 3px; border: 0; display: flex; gap: 3px; background: #f3efe4; border-radius: 10px; font-size: 13.5px; min-width: 0; }
.seg label, .seg > span { position: relative; flex: 1; display: block; }
.seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg label span, .seg > span { display: block; text-align: center; padding: 6px 4px; border-radius: 8px; color: var(--muted); white-space: nowrap; }
.seg input:checked + span, .seg > span { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(24, 32, 58, 0.12); }
.seg input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 1px; }
.seg label:hover span { color: var(--ink); }
.plat .btn { margin-top: 16px; width: 100%; height: 50px; }
.plat .file { margin-top: 10px; font-size: 13px; text-align: center; min-height: 1.6em; }
.plat .file a { color: var(--ink); border-bottom: 1px solid var(--rule); }
.plat .file a:hover { border-color: var(--ink); }
.dl .foot { margin-top: 18px; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.dl .foot p { font-size: inherit; display: flex; gap: 12px; align-items: center; }
.dl .foot .links { display: flex; gap: 24px; flex-wrap: wrap; }
.dl .foot a:hover { color: var(--ink); }
.dl .foot button { padding: 0; border: 0; background: none; font-weight: 600; color: var(--teal-ink); cursor: pointer; }
.dl .foot button[hidden] { display: none; }
.dl noscript p { margin-top: 12px; font-size: 13.5px; }

/* Server edition: one sentence and the command. */
.server { padding: 44px 0 68px; border-top: 1px solid var(--line); }
.server .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
.server h2 { margin-top: 0; }
.server p { margin-top: 14px; font-size: 16.5px; }
.term { border-radius: 16px; background: var(--deep); overflow: hidden; box-shadow: 0 18px 40px rgba(13, 18, 26, 0.14); min-width: 0; }
.term .bar { display: flex; align-items: center; padding: 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; color: #8b94a5; }
.term .bar button { margin-left: auto; padding: 2px 10px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.16); background: none; color: #c9ced8; font-size: 13px; cursor: pointer; }
.term .bar button:hover { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.term pre { margin: 0; padding: 18px 22px 20px; font: 14.5px/1.75 var(--mono); color: #f1f3f6; overflow-x: auto; }
.term .c { color: #8b94a5; }

/* After install: what to set up, in order. */
.after { background: var(--bg-2); border-top: 1px solid var(--line); padding: 80px 0 92px; }
.after h2 { margin-top: 0; }
.after .steps { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.after .step { padding-top: 22px; border-top: 2px solid var(--rule); }
.after .num { display: inline-block; padding: 1px 9px; background: var(--yellow); color: #1b2030; font: 700 13px var(--mono); }
.after h3 { margin-top: 16px; font-size: 20px; }
.after p { margin-top: 8px; font-size: 15px; }
.after code { display: inline-block; margin-top: 14px; padding: 6px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--ink); }

.final p { font-size: 17px; }

@media (max-width: 1080px) {
  .plats { gap: 16px; }
  .plat { padding: 20px; }
  .plat.is-current { padding: 19px; }
  .plat .head { gap: 10px; }
  .plat .icon { width: 38px; height: 38px; }
  .plat h3 { font-size: 20px; }
  .server .wrap { grid-template-columns: 1fr; gap: 28px; }
}
/* A 1366×768 laptop leaves about 650px of window; keep the row under the
   cards on screen there too. */
@media (min-width: 821px) and (max-height: 760px) {
  .dl-hero .hero-copy { padding-top: 92px; padding-bottom: 104px; }
  .dl-hero h1 { margin-top: 12px; }
  .plat { padding: 20px; }
  .plat.is-current { padding: 19px; }
  .dl { padding-bottom: 28px; }
}
@media (max-width: 820px) {
  .plats { grid-template-columns: 1fr; max-width: 520px; margin: -56px auto 0; gap: 16px; }
  .dl .foot { max-width: 520px; margin-inline: auto; }
  .after .steps { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .plats { margin-top: -48px; max-width: none; }
  .dl .foot { max-width: none; }
  .dl .foot .links { gap: 16px; }
  .server, .after { padding: 64px 0; }
  .term pre { padding: 16px 18px; font-size: 13px; }
}
