/* download.<parent>: Ten Star's apps and Ten Star Setup. The Dashboard's look: ink text, black buttons, a navy rail
   colour, the star's yellow as the one accent. Light by default, dark when the computer is. */
:root {
  --bg: #ffffff;
  --tint: #f5f7fa;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #5b6474;
  --line: #e5e7eb;
  --navy: #14233a;
  --star: #f5c542;
  --blue: #2563eb;
  --green-bg: #dcfce7;
  --green-ink: #166534;
  --btn: #111827;
  --btn-ink: #ffffff;
  --shadow: 0 1px 2px rgb(17 24 39 / 0.06), 0 8px 24px rgb(17 24 39 / 0.08);
  --r: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --tint: #0f1829;
    --panel: #121d31;
    --ink: #eef2f8;
    --muted: #9aa6ba;
    --line: #22304a;
    --navy: #0a1424;
    --blue: #7aa2ff;
    --green-bg: #12321f;
    --green-ink: #86efac;
    --btn: #f5f7fa;
    --btn-ink: #0b1220;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--muted); }

/* The logo that fits the background. */
.logo { display: block; height: auto; }
.logo-dark-bg { display: none; }
@media (prefers-color-scheme: dark) {
  .logo-light-bg { display: none; }
  .logo-dark-bg { display: block; }
}

/* Buttons: black, square-ish, like the Dashboard's. */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 8px; border: 1px solid transparent; font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-dark { background: var(--btn); color: var(--btn-ink); }
.btn-dark:hover { opacity: 0.88; }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--panel); }
.btn-line:hover { border-color: var(--muted); }
.btn-small { padding: 9px 14px; font-size: 14px; }
.btn[aria-disabled='true'] { background: var(--tint); color: var(--muted); border-color: var(--line); cursor: default; pointer-events: none; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; font-style: normal; white-space: nowrap; }
.tag-green { background: var(--green-bg); border-color: transparent; color: var(--green-ink); }

/* The bar along the top. */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { flex: none; }
.top-nav { display: flex; gap: 22px; margin-left: auto; }
.top-nav a { color: var(--muted); font-size: 15px; font-weight: 500; }
.top-nav a:hover { color: var(--ink); text-decoration: none; }

/* Hero: the words on the left, what Setup looks like on the right. */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--tint), var(--bg)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ''; width: 10px; height: 10px; background: var(--star); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.hero h1 { margin-top: 14px; font-size: clamp(34px, 4.6vw, 52px); font-weight: 750; }
.lead { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fine { margin-top: 14px; font-size: 14px; color: var(--muted); }

.setup-mock { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; font-size: 14px; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--tint); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-bar b { margin-left: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.mock-body { display: grid; grid-template-columns: 0.9fr 1.3fr; min-height: 250px; }
.mock-apps, .mock-releases { list-style: none; margin: 0; padding: 8px; }
.mock-apps { border-right: 1px solid var(--line); }
.mock-apps li, .mock-releases li { display: grid; gap: 1px; padding: 8px 10px; border-radius: 6px; }
.mock-releases li { grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
.mock-releases li small { grid-column: 1 / -1; }
.mock-releases li .tag { justify-self: start; }
.mock-apps li.on { background: color-mix(in srgb, var(--blue) 14%, transparent); }
.mock-releases li.on { background: color-mix(in srgb, var(--blue) 10%, transparent); box-shadow: inset 3px 0 0 var(--blue); }
.mock-apps li.dim { opacity: 0.55; }
.mock-apps b, .mock-releases b { font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-apps small, .mock-releases small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-foot { display: flex; justify-content: flex-end; padding: 10px 14px; border-top: 1px solid var(--line); }
.mock-btn { padding: 7px 12px; border-radius: 6px; background: var(--btn); color: var(--btn-ink); font-size: 13px; font-weight: 600; }

/* Four reasons, in a row. */
.points { padding: 8px 0 64px; }
.points-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; border-top: 1px solid var(--line); padding-top: 36px; }
.point h3 { font-size: 17px; }
.point p { margin-top: 8px; color: var(--muted); font-size: 15px; }

.section { padding: 72px 0; }
.section-tint { background: var(--tint); }
.section h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 750; }
.section-lead { margin-top: 10px; color: var(--muted); font-size: 17px; max-width: 64ch; }

/* The apps, from apps.json. */
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.app { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.app.featured { grid-column: span 2; background: linear-gradient(135deg, var(--panel), color-mix(in srgb, var(--star) 9%, var(--panel))); }
.app-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.app-head h3 { font-size: 18px; margin-right: auto; }
.app p { color: var(--muted); font-size: 15px; flex: 1; }
.app .btn { align-self: flex-start; }
.app .app-version { font-size: 13px; color: var(--muted); }

/* How to install: numbered steps. */
.steps { list-style: none; counter-reset: step; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps li { counter-increment: step; display: grid; gap: 8px; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); font-weight: 700; font-size: 14px; }
.steps b { font-size: 16px; }
.steps span { color: var(--muted); font-size: 15px; }

/* Releases, newest first. */
.releases { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.releases > p { padding: 20px; }
.release { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.release:last-child { border-bottom: 0; }
.release-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.release-title b { font-size: 16px; font-weight: 650; }
.release-meta { color: var(--muted); font-size: 14px; text-align: right; white-space: nowrap; }
.release ul { grid-column: 1 / -1; margin: 2px 0 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.release ul li + li { margin-top: 2px; }

/* Requirements. */
.req-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 40px; align-items: start; }
.req { margin: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.req > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.req > div:last-child { border-bottom: 0; }
.req dt { font-weight: 650; }
.req dd { margin: 0; color: var(--muted); }

.foot { border-top: 1px solid var(--line); padding: 28px 0; }
.foot-row { display: flex; align-items: center; gap: 20px; }
.foot-row p { margin-right: auto; font-size: 14px; }
.foot-row a { font-size: 14px; }

@media (max-width: 980px) {
  .hero-grid, .req-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .points-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .top-nav { display: none; }
  .top-row { justify-content: space-between; }
  .hero { padding: 44px 0 40px; }
  .points-grid, .steps, .apps { grid-template-columns: minmax(0, 1fr); }
  .app.featured { grid-column: auto; }
  .mock-body { grid-template-columns: minmax(0, 1fr); }
  .mock-apps { border-right: 0; border-bottom: 1px solid var(--line); }
  .release { grid-template-columns: minmax(0, 1fr); }
  .release-meta { text-align: left; }
  .req > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .foot-row { flex-wrap: wrap; }
}
