.launcher-page { color-scheme: dark; }
/* styles.css animates every native scroll on the document (anchor, focus, find-in-page). A programmatic instant scroll
   that lands while one of those animations is in flight is continued by it and overshoots under the fixed header, so this
   page keeps native scrolling instant. */
html.lp-root { scroll-behavior: auto; }
.launcher-page [hidden] { display: none !important; }
.launcher-page p { color: var(--text-2); }
.launcher-page :focus-visible { outline: 2px solid var(--text-1); outline-offset: 3px; }
.launcher-main { max-width: 1120px; margin: auto; padding: calc(var(--header, 72px) + 56px) 32px 48px; }
.launcher-main h1, .launcher-main h2, .launcher-main h3 { color: var(--text-1); }

/* Hero */
.lp-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding-bottom: 24px; }
.lp-hero h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -.04em; line-height: 1.08; font-weight: 600; margin: 20px 0 20px; }
.lp-nowrap { white-space: nowrap; }
.lp-lede { font-size: 17px; line-height: 1.6; max-width: 54ch; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.lp-eyebrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--air) !important; font-size: 12px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; }
.lp-mark { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--bg-0); border: 1px solid var(--border); display: grid; place-items: center; flex: none; }
.lp-mark img { width: 24px; height: 24px; display: block; }
.lp-visual { margin: 0; }
.lp-visual img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg, 0 12px 40px rgba(0,0,0,.25)); background: var(--bg-1); }
.lp-visual figcaption { margin-top: 12px; font-size: 13px; color: var(--text-2); }

/* Buttons */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 22px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-1); font: inherit; font-size: 15px; font-weight: 550; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .15s; }
.lp-btn:hover { text-decoration: none; border-color: var(--text-2); background: rgba(127, 135, 160, .1); }
.lp-btn-primary { background: var(--accent); border-color: var(--accent); color: var(--bg-0); font-weight: 600; }
.lp-btn-primary:hover { background: var(--accent-4); border-color: var(--accent-4); color: var(--bg-0); }
.lp-btn-quiet { border-color: transparent; color: var(--text-2); font-weight: 500; }
/* Unavailable ("Coming soon") state. The shared disabled rule in styles.css and the light-theme primary
   colour both out-rank a bare .lp-btn:disabled, so lift specificity here and keep the label at full
   opacity: the muted surface, dashed border and not-allowed cursor carry the unavailable signal. */
html body.launcher-page .lp-btn:disabled, html body.launcher-page .lp-btn:disabled:hover { cursor: not-allowed; opacity: 1; background: var(--bg-2); border: 1px dashed var(--border-strong); color: var(--text-2); box-shadow: none; transform: none; }

/* Sections */
.lp-section { margin-top: 80px; scroll-margin-top: calc(var(--header, 72px) + 16px); }
.lp-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.lp-heading h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 580; letter-spacing: -.03em; margin-top: 10px; }
.lp-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-features li { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r-md); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.lp-features h3 { font-size: 17px; font-weight: 580; letter-spacing: -.01em; }
.lp-features p { font-size: 14px; line-height: 1.55; }
.lp-tag { margin-top: auto; padding-top: 8px; align-self: flex-start; font-size: 12px; color: var(--text-2); letter-spacing: .02em; }
.lp-tag-live { color: var(--air); }
.lp-note { margin-top: 24px; padding: 14px 18px; border-left: 2px solid var(--air); background: var(--bg-1); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 14px; line-height: 1.55; }
.lp-note strong { color: var(--text-1); font-weight: 600; }

/* Download: one card per supported operating system (Windows and Linux) */
.lp-platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; margin-top: 14px; }
.lp-platform { position: relative; background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r-md); padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; transition: border-color .15s; }
.lp-platform[data-state="live"]:hover { border-color: var(--border-strong); }
.lp-platform[data-recommended] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.lp-platform-button { margin-top: auto; }
.lp-platform-head { display: flex; align-items: center; gap: 14px; }
.lp-platform-head svg { color: var(--air); flex: none; }
.lp-platform[data-state="soon"] .lp-platform-head svg { color: var(--text-2); }
.lp-platform h3 { font-size: 20px; font-weight: 580; }
.lp-rec { position: absolute; top: -12px; left: 20px; max-width: calc(100% - 40px); font-size: 12px; font-weight: 600; letter-spacing: .02em; line-height: 1.5; color: var(--accent); background: var(--bg-0); border: 1px solid var(--accent); border-radius: 999px; padding: 1px 12px; }
.lp-platform-meta { margin: 0; font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; }
.lp-platform-button { width: 100%; }
.lp-platform-note { margin: 18px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.lp-link { align-self: flex-start; padding: 6px 0; min-height: 44px; border: 0; background: none; color: var(--text-2); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lp-link:hover { color: var(--text-1); }
html body.launcher-page .lp-link:disabled { cursor: not-allowed; opacity: 1; color: var(--text-2); text-decoration-style: dashed; }
.lp-platform:not([data-recommended]) .lp-rec { color: var(--text-2); border-color: var(--border); }
/* Architecture switch: a small two-option segmented control that re-targets both downloads. */
.lp-arch { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.lp-arch-label { font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--text-2); }
/* The two options always share one row at every width: equal columns, no wrapping, labels on one line. */
.lp-arch-options { display: inline-grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; width: 100%; padding: 3px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--bg-0); }
.lp-arch-option { display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 12px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; }
/* Keep labels at the shared 14px readability floor; its inherited 1em rule would make these 16px. */
body.launcher-page .lp-arch-option { font-size: 14px !important; padding-inline: 6px; }
.lp-arch-option:hover { color: var(--text-1); background: rgba(127, 135, 160, .12); }
.lp-arch-option[aria-pressed="true"] { background: var(--bg-3); border-color: var(--accent); color: var(--text-1); font-weight: 600; }
.lp-arch-option:disabled { cursor: progress; }
/* Package-type pill above the OS cards: same segmented look as the architecture switch, four equal options. */
.lp-types { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.lp-type-label { font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--text-2); }
.lp-type-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 3px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--bg-0); }
.lp-type-option { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 10px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 500; text-align: center; line-height: 1.25; cursor: pointer; }
/* Keep labels at the shared 14px readability floor; the inherited 1em rule would make these 16px. */
body.launcher-page .lp-type-option { font-size: 14px !important; }
.lp-type-option:hover { color: var(--text-1); background: rgba(127, 135, 160, .12); }
.lp-type-option[aria-checked="true"] { background: var(--bg-3); border-color: var(--accent); color: var(--text-1); font-weight: 600; }
.lp-type-option:disabled { cursor: progress; }
.lp-type-option:focus-visible, .lp-cli-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-type-hint { margin: 0; min-height: 1.5em; }
/* Command line type: the silent-install command with its copy button, then the supported flags. */
.lp-cli-title { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--text-1); }
.lp-cli-box { display: flex; align-items: flex-start; gap: 8px; padding: 8px 8px 8px 10px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; }
.lp-cli-command { flex: 1 1 auto; min-width: 0; padding-top: 6px; font-family: var(--font-mono); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; user-select: all; }
.lp-cli-copy { flex: none; min-height: 36px; padding: 6px 14px; font-size: 14px; border-color: var(--border-strong); }
.lp-cli-flags { margin: 12px 0 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.lp-cli-flags li + li { margin-top: 6px; }
.lp-cli-flags code { font-family: var(--font-mono); font-size: 12px; color: var(--text-1); overflow-wrap: anywhere; }
.lp-hint { margin: -6px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.lp-pkg { display: inline-block; margin-left: 8px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.lp-file { border-top: 1px solid var(--border); padding-top: 12px; }
.lp-file summary { cursor: pointer; font-size: 14px; color: var(--text-1); }
.lp-file .lp-package { margin-top: 14px; padding-top: 2px; border-top: 1px dashed var(--border); }
.lp-file .lp-package > dt:first-child, .lp-file .lp-package > dd:nth-child(2) { margin-top: 12px; }
.lp-file dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 16px 0 0; font-size: 13px; }
.lp-file dt { color: var(--text-2); }
.lp-file dd { min-width: 0; overflow-wrap: anywhere; color: var(--text-1); }
.lp-file code { font-family: var(--font-mono); font-size: 12px; }
.lp-install { margin-top: 16px; scroll-margin-top: calc(var(--header, 72px) + env(safe-area-inset-top, 0px) + 16px); }
.lp-install-title { margin: 0; font-weight: 600; color: var(--text-1); }
.lp-steps { margin: 8px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.5; color: var(--text-1); }
.lp-steps li + li { margin-top: 10px; }
.lp-steps code { display: block; margin-top: 6px; padding: 8px 10px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; overflow-wrap: anywhere; white-space: pre-wrap; user-select: all; }
.launcher-notice { margin-top: 16px; padding-left: 12px; border-left: 2px solid var(--border-strong); font-size: 13px; line-height: 1.5; }
.launcher-notice > span + span::before { content: ' '; }
.lp-file > div p:not(.launcher-notice) { font-size: 13px; line-height: 1.5; margin-top: 12px; }
.lp-status-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; }
.lp-status { margin: 0; font-size: 14px; color: var(--text-1) !important; }
.lp-status:empty { display: none; }
.lp-more { margin-top: 20px; font-size: 14px; }
.lp-more a { color: var(--text-2); text-underline-offset: 3px; }
.lp-more a:hover { color: var(--text-1); }

/* FAQ */
.lp-faq-list { border-top: 1px solid var(--border); }
.lp-faq-list details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.lp-faq-list summary { cursor: pointer; font-size: 16px; font-weight: 550; color: var(--text-1); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.lp-faq-list summary::-webkit-details-marker { display: none; }
.lp-faq-list summary::after { content: '+'; color: var(--air); font-weight: 400; font-size: 20px; line-height: 1; }
.lp-faq-list details[open] summary::after { content: '\2212'; }
.lp-faq-list p { margin-top: 12px; font-size: 15px; line-height: 1.6; max-width: 70ch; }

@media (max-width: 980px) {
  .lp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .lp-hero { grid-template-columns: 1fr; gap: 36px; }
  .lp-section { margin-top: 64px; }
  .lp-platforms { grid-template-columns: 1fr; gap: 24px; }
  .lp-platform[data-recommended] { order: -1; }
}
@media (max-width: 640px) {
  .lp-type-options { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 24px; }
  .launcher-main { padding: calc(var(--header, 72px) + 32px) 20px 32px; }
  .lp-features { grid-template-columns: 1fr; }
  .lp-nowrap { white-space: normal; }
  .lp-actions .lp-btn { flex: 1 1 100%; }
  .lp-platform { padding: 26px 20px 20px; }
  .lp-file dl { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .lp-pkg { margin: 4px 0 0; }
  .lp-file dd { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .lp-hero-copy, .lp-visual { animation: lp-rise .6s cubic-bezier(.16, 1, .3, 1) backwards; }
  .lp-visual { animation-delay: .08s; }
  @keyframes lp-rise { from { opacity: 0; transform: translateY(12px); } }
}
/* Light only when the visitor saved aer_theme=light (theme.js sets html[data-theme]);
   the operating-system colour preference is never followed (as-nuqn). */
html[data-theme="light"] .launcher-page {
  color-scheme: light;
  --bg-0: #F6F7FA; --bg-1: #FFFFFF; --bg-2: #EBEDF3;
  --bg-3: #DEE3EE; --bg-4: #D0D8E6;
  --control-hover: var(--bg-3); --control-press: var(--bg-4);
  --text-1: #202534; --text-2: #505B70; --text-3: #505B70; --text-4: #505B70;
  --air: #4E6283; --warn: #944F28;
  --accent: #986316; --accent-2: #986316; --accent-3: #986316; --accent-4: #805212;
  --border: rgba(32,37,52,.15); --border-strong: rgba(32,37,52,.25);
  background: var(--bg-0); color: var(--text-1);
}
html[data-theme="light"] .launcher-page .lp-btn-primary,
html[data-theme="light"] .launcher-page .lp-btn-primary:hover { color: #FFFFFF; }
html[data-theme="light"] .launcher-page .lp-mark { background: #202534; }
html[data-theme="light"] .launcher-page.site-frame .site-footer { background: var(--bg-1); }
html[data-theme="light"] .launcher-page.site-frame .footer-brand-mark,
html[data-theme="light"] .launcher-page.site-frame .logo-mark img { filter: brightness(.35); }
