/* Moxel's download page (D-041). The app's own look: a dark tool, one blue accent. */
:root {
  --bg: #141518;
  --panel: #1b1c1f;
  --line: #2c2e33;
  --text: #e8e9ec;
  --muted: #a3a6ad;
  --accent: #2f6fed;
  --accent-hover: #4a82f2;
  --danger: #ff8a80;
  --radius: 10px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

a {
  color: inherit;
}

.top,
main,
.foot {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 650;
  text-decoration: none;
}

.button {
  display: inline-block;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 12px 20px;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-hover);
}

.button.small {
  padding: 8px 16px;
}

.button:disabled {
  opacity: 0.6;
  cursor: progress;
}

:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}

h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  margin: 0 0 16px;
}

h2 {
  font-size: 26px;
  margin: 0 0 16px;
}

h3 {
  font-size: 17px;
  margin: 0 0 6px;
}

.lead {
  font-size: 18px;
  color: var(--text);
  max-width: 34em;
}

.note {
  color: var(--muted);
  font-size: 14px;
}

section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: center;
  border-top: 0;
}

.hero-shot {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.45);
}

.features ul,
.needs ul,
.download-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.features li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.features p {
  margin: 0;
  color: var(--muted);
}

.download {
  max-width: 720px;
}

.who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.who-name {
  color: var(--muted);
  font-size: 14px;
}

.button.quiet {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.button.quiet:hover,
.button.quiet:focus-visible {
  border-color: var(--accent);
  background: transparent;
}

.version {
  font-weight: 600;
  margin: 0 0 12px;
}

.message {
  min-height: 1.5em;
  margin: 10px 0 0;
}

.message.error {
  color: var(--danger);
}

.downloads {
  margin-top: 8px;
}

.download-list {
  display: grid;
  gap: 10px;
}

.download-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-decoration: none;
  font-weight: 600;
}

.download-list a:hover,
.download-list a:focus-visible {
  border-color: var(--accent);
}

/* The button for the person's own computer: big, blue. */
.download-list.big {
  margin-bottom: 20px;
}

.download-list.big a {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-size: 18px;
  padding: 18px 22px;
}

.download-list.big a:hover,
.download-list.big a:focus-visible {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.download-list.big .size {
  color: rgb(255 255 255 / 0.8);
}

#others h3 {
  margin-top: 8px;
}

code {
  font: 14px ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

.download-list .size {
  color: var(--muted);
  font-weight: 400;
  font-size: 14px;
  white-space: nowrap;
}

.install-help {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 18px;
}

.install-help summary {
  cursor: pointer;
  font-weight: 600;
}

.needs li {
  padding: 4px 0;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .features ul {
    grid-template-columns: 1fr;
  }
}
