/* /download/: the landing's palette and type, light and dark (portal/account-theme.js sets data-theme). */
:root {
  color-scheme: light;
  --paper: #f7f7f5;
  --surface: #fff;
  --ink: #19191c;
  --muted: #626269;
  --line: #dedee2;
  --soft: #efeff2;
  --violet: #6440eb;
  --action: #19191c;
  --action-hover: #34343a;
  --on-action: #fff;
  --note: #fff3d6;
  --note-ink: #5c3d00;
  --gutter: clamp(16px, 4.6vw, 72px);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #19191c;
  --surface: #27272d;
  --ink: #f5f5f7;
  --muted: #aaaab5;
  --line: #41414a;
  --soft: #222226;
  --violet: #9b81fa;
  --action: #4919f5;
  --action-hover: #4016d8;
  --on-action: #fff;
  --note: #3c3020;
  --note-ink: #ffdaa0;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.5; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, p, ol, ul { margin: 0; }
h1, h2 { font-weight: 600; letter-spacing: -.045em; text-wrap: balance; }
p, li { text-wrap: pretty; }
[hidden] { display: none !important; }
:is(a, button):focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; border-radius: 6px; }
.skip-link {
  position: fixed;
  z-index: 30;
  top: 12px;
  left: 12px;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.dl-container { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.dl-nowrap { white-space: nowrap; }

.dl-bar { border-bottom: 1px solid var(--line); background: var(--paper); }
.dl-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.dl-brand { display: inline-flex; align-items: center; min-height: 44px; }
.dl-brand img { width: 136px; }
[data-theme="dark"] .dl-brand img { filter: invert(1); }
.dl-bar-links { display: flex; gap: 8px; font-size: 14px; font-weight: 500; }
.dl-bar-links a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; color: var(--muted); text-decoration: none; }
.dl-bar-links a:hover { color: var(--violet); }

.dl-hero { padding: clamp(48px, 9vw, 96px) 0 clamp(32px, 5vw, 48px); text-align: center; }
.dl-kicker { color: var(--violet); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dl-hero h1 { max-width: 14ch; margin: 14px auto 0; font-size: clamp(42px, 7vw, 76px); line-height: .98; }
.dl-lead { max-width: 560px; margin: 20px auto 0; color: var(--muted); font-size: clamp(17px, 2vw, 19px); }
.dl-version { margin-top: 14px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.dl-device-note {
  max-width: 520px;
  margin: 22px auto 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-size: 15px;
}

.dl-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 860px; }
.dl-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
.dl-card.is-recommended { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet); }
.dl-card-badge { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--violet); font-size: 12px; font-weight: 650; }
.dl-card h2 { font-size: 32px; line-height: 1.05; }
.dl-facts { display: grid; gap: 4px; padding: 0; color: var(--muted); font-size: 15px; list-style: none; }
.dl-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  margin-top: auto;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--action);
  color: var(--on-action);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms ease-out;
}
.dl-button:hover { background: var(--action-hover); }
.dl-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dl-file { color: var(--muted); font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dl-note { padding: 12px 14px; border-radius: 14px; background: var(--note); color: var(--note-ink); font-size: 14px; line-height: 1.45; }
.dl-note q { quotes: "“" "”"; }

.dl-steps { max-width: 860px; padding: clamp(48px, 8vw, 80px) 0 clamp(56px, 8vw, 88px); }
.dl-steps h2 { font-size: clamp(26px, 3.4vw, 34px); }
.dl-steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 22px; padding: 0; list-style: none; counter-reset: step; }
.dl-steps li { position: relative; padding-top: 44px; color: var(--muted); font-size: 15px; counter-increment: step; }
.dl-steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.dl-steps li strong { display: block; color: var(--ink); font-weight: 600; }
.dl-web { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.dl-web a { color: var(--violet); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.dl-footer { border-top: 1px solid var(--line); }
.dl-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 18px 0 28px; color: var(--muted); font-size: 13px; }
.dl-footer nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.dl-footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.dl-footer a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 720px) {
  .dl-cards, .dl-steps ol { grid-template-columns: 1fr; }
  .dl-bar-inner { min-height: 64px; }
  .dl-brand img { width: 118px; }
  .dl-bar-links a { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .dl-button { transition: none; }
}
@media (forced-colors: active) {
  .dl-card, .dl-card.is-recommended { border-color: CanvasText; }
  .dl-button { border: 1px solid ButtonText; }
}
