/* pulse.vitra.ai/downloads: the landing brand (tokens copied from landing/landing/landing.css) on a small page of its own,
   so the downloads page does not load the whole landing stylesheet. Light by default; dark only when the visitor picks it. */
:root {
  --page: #FAFAFB; --surface: #FFFFFF; --subtle: #F4F4F5; --line: #E7E9EE; --line-strong: #D5D8DF;
  --ink: #101014; --ink-2: #3F3F46; --muted: #52525B; --faint: #6B6B76;
  --accent: #8143FD; --accent-deep: #5E18EA; --accent-ink: #5E18EA; --accent-wash: #EFE7FF; --accent-hover: #F6F3FF;
  --ok: #12B76A; --needs-ink: #C2410C;
  --shadow: 0 1px 2px rgb(16 16 20 / .05), 0 10px 30px -14px rgb(16 16 20 / .18);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --sans: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0F0F11; --surface: #18181B; --subtle: #1F1F23; --line: #2A2A30; --line-strong: #3A3A42;
  --ink: #F4F4F5; --ink-2: #D4D4D8; --muted: #A1A1AA; --faint: #8E8E98;
  --accent-ink: #A67AFF; --accent-wash: rgb(129 67 253 / .18); --accent-hover: rgb(129 67 253 / .12);
  --needs-ink: #FB923C;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 30px -14px rgb(0 0 0 / .7);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--page); color: var(--ink); font: 500 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--page); padding: 8px 12px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Buttons, theme toggle and nav: same shapes as the landing page. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; font: 700 14px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .18s var(--ease), background .18s, box-shadow .18s, border-color .18s; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn.primary { color: #fff; background: linear-gradient(180deg, #8143FD, #5E18EA); box-shadow: 0 8px 24px -10px rgb(129 67 253 / .7), inset 0 1px 0 rgb(255 255 255 / .2); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgb(129 67 253 / .8), inset 0 1px 0 rgb(255 255 255 / .2); }
.btn.ghost { color: var(--ink); background: var(--surface); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--accent-hover); border-color: var(--accent); }
.btn.lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav { position: sticky; top: 0; z-index: 60; background: color-mix(in oklab, var(--page) 92%, transparent); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { max-width: 1120px; margin: 0 auto; height: 56px; padding: 0 var(--gutter); display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.brand small { font-weight: 500; color: var(--faint); font-size: 14px; margin-left: 2px; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pulse-mark { width: 30px; height: 30px; border-radius: 22%; flex: none; display: block; }
.pulse-mark.sm { width: 26px; height: 26px; }
.theme-btn { width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; transition: background .18s, border-color .18s; }
.theme-btn:hover { background: var(--accent-hover); border-color: var(--accent); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-moon path { fill: currentColor; stroke: none; }
.theme-btn .i-sun, .theme-btn[aria-pressed="true"] .i-moon { display: none; }
.theme-btn[aria-pressed="true"] .i-sun { display: block; }

/* Page */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter) 72px; }
.kicker { font: 500 12px/1 var(--mono); letter-spacing: .06em; color: var(--faint); margin-bottom: 16px; }
.hero { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; padding: clamp(40px, 6vw, 72px) 0 32px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; font-weight: 900; letter-spacing: -.04em; }
.hero .sub { margin-top: 18px; max-width: 560px; color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); }
.robot { width: clamp(120px, 16vw, 190px); height: auto; filter: drop-shadow(0 24px 30px rgb(40 20 90 / .18)); }
.loading, .empty { color: var(--muted); padding: 24px 0; }
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); font-weight: 700; font-size: 14px; text-decoration: none; margin-top: 32px; }
.back:hover { color: var(--accent-ink); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cards.one { grid-template-columns: minmax(0, 760px); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.card-head { display: flex; align-items: center; gap: 14px; }
.glyph { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-ink); }
.glyph svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.1; letter-spacing: -.03em; }
.chip { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; vertical-align: middle; padding: 4px 10px; border-radius: 999px; font: 500 11px/1 var(--mono); letter-spacing: .04em; background: var(--accent-wash); color: var(--accent-ink); }
.meta { font: 400 13px/1.6 var(--mono); color: var(--faint); margin-top: 4px; }
.meta span { white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.textlink { color: var(--ink-2); font-weight: 700; font-size: 14px; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.install { font-size: 14px; color: var(--muted); padding: 12px 14px; border-radius: 12px; background: var(--subtle); }
.notes h3 { font: 500 12px/1 var(--mono); letter-spacing: .06em; color: var(--faint); text-transform: uppercase; margin-bottom: 10px; }
.notes p + p, .notes p + ul, .notes ul + p { margin-top: 8px; }
.notes ul { margin: 0; padding-left: 20px; }
.notes li { margin: 4px 0; color: var(--ink-2); }
.notes li::marker { color: var(--accent); }
.notes p { color: var(--ink-2); }
.shot { border-radius: 12px; border: 1px solid var(--line); }
.sha { font: 400 12px/1.5 var(--mono); color: var(--faint); }
.sha summary { cursor: pointer; width: max-content; }
.sha code { display: block; margin-top: 6px; overflow-wrap: anywhere; color: var(--ink-2); }

.before { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.before div { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.before b { display: block; font-size: 15px; margin-bottom: 4px; }
.before span { color: var(--muted); font-size: 14px; }

.older { margin-top: 40px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.older > summary { list-style: none; cursor: pointer; padding: 20px clamp(20px, 3vw, 28px); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 17px; }
.older > summary::-webkit-details-marker { display: none; }
.older > summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg); transition: transform .2s var(--ease); flex: none; margin-right: 4px; }
.older[open] > summary::after { transform: rotate(-135deg); }
.older > summary small { font: 400 13px/1 var(--mono); color: var(--faint); margin-left: 8px; }
.rows { list-style: none; margin: 0; padding: 0 clamp(20px, 3vw, 28px) 12px; }
.row { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 8px 20px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.row .rv { font-weight: 700; font-size: 15px; }
.row .rv small { display: block; font: 400 12px/1.6 var(--mono); color: var(--faint); margin-top: 2px; }
.row .rn { color: var(--muted); font-size: 14px; }
.row .ra { display: flex; gap: 14px; align-items: center; white-space: nowrap; }
.row .ra a { font-size: 14px; }

.foot { border-top: 1px solid var(--line); }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 28px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.foot-links { display: flex; gap: 20px; font-size: 14px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

@media (max-width: 820px) {
  .cards, .before { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row .ra { white-space: normal; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr) 96px; gap: 16px; }
  .robot { width: 96px; }
  .actions .btn.lg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* v4 (27 Sep): notes toggle, older releases grouped by platform, verify and share on a release page. */
.notes li[hidden] { display: none; }
.textlink.more, .share .textlink { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 700; margin-top: 8px; }
.older-h { font: 500 12px/1 var(--mono); color: var(--faint); margin: 18px 0 8px; letter-spacing: .04em; }
.sha-l { font: 500 11px/1 var(--mono); color: var(--faint); margin: 10px 0 6px; }
.share { margin-top: 14px; }
.empty .btn { margin-top: 14px; }

/* Review round 1: Windows first-run help folded away, and an admin card under the downloads. */
.first-win { font-size: 14px; color: var(--muted); margin-top: -8px; }
.first-win summary { cursor: pointer; color: var(--ink-2); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.first-win p { margin-top: 8px; }
.admin-card { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow); }
.admin-card h2 { font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.admin-card p { margin-top: 6px; color: var(--muted); font-size: 15px; max-width: 60ch; }
