/* ==============================================================
   Download page (download.html)
   Hero (.dla): launcher download + compact what's new; Supporters (.dls).
   Content: assets/data/download.<locale>.md (download-page.js).
   ============================================================== */

.download-page { background: #070d0c; }
.download-page .vs-page__main { overflow-x: clip; }

/* shared pieces (same as campaign.css) */
.cl-section { padding: clamp(64px, 8vw, 110px) 0; }
.cl-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 10px; font-family: var(--title-font); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--vs-theme-color2); }
.cl-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.cl-h2 { margin: 0 0 14px; font-family: var(--title-font); font-size: clamp(1.8rem, 1rem + 2.2vw, 3rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--title-color); }
.cl-lead { max-width: 620px; margin: 0 0 24px; color: var(--text-color2); font-size: 1.02rem; line-height: 1.65; }
.cl-ghost { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px; font-family: var(--title-font); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--title-color); border: 1px solid rgba(246, 245, 245, 0.35); background: rgba(10, 19, 17, 0.4); transition: border-color .2s, background-color .2s; }
.cl-ghost:hover { color: #fff; border-color: var(--vs-theme-color2); background: rgba(84, 184, 147, 0.12); }
.cl-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; animation: cl-blink 1.4s steps(2) infinite; }
@keyframes cl-blink { 50% { opacity: .25; } }

/* ---------------- Hero (fits one screen on desktop) ---------------- */
.dla { position: relative; display: flex; align-items: center; min-height: max(720px, 100svh); padding: 120px 0 56px; overflow: hidden; }
.dla__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.dla::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #070d0c 15%, rgba(7, 13, 12, 0.72) 55%, rgba(7, 13, 12, 0.45)), linear-gradient(180deg, rgba(7, 13, 12, 0.6), transparent 30%, transparent 70%, #070d0c); }
.dla__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.dla__title { margin: 0 0 16px; font-family: var(--title-font); font-size: clamp(2rem, 0.8rem + 2.6vw, 3.4rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; text-transform: uppercase; color: var(--title-color); }
.dla__title-top { display: block; margin-bottom: 6px; font-size: .5em; font-weight: 700; letter-spacing: 0.08em; color: var(--vs-theme-color2); }
.dla .cl-lead { margin-bottom: 22px; }
.dla__dl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 14px; }
.dla .dla__primary { margin: 0; height: 64px; padding: 0 32px; font-size: 1rem; }
.dla__primary i { margin-right: 6px; }
.dla__primary-note { font-size: 0.82rem; color: var(--text-color4); }
/* portable + offline: real buttons, one step below the installer */
.dla__alt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 560px; margin-bottom: 26px; }
.dla__alt-btn { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; background: rgba(8, 17, 15, 0.75); border: 1px solid rgba(246, 245, 245, 0.18); transition: border-color .2s, background-color .2s; }
.dla__alt-btn b { font-family: var(--title-font); font-size: 0.82rem; text-transform: uppercase; color: var(--title-color); }
.dla__alt-btn span { font-size: 0.76rem; line-height: 1.4; color: var(--text-color4); }
.dla__alt-btn:hover, .dla__alt-btn:focus-visible { border-color: var(--vs-theme-color2); background: rgba(84, 184, 147, 0.1); }
.dla__alt-btn:hover b { color: #8affd4; }
.dla__specs { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 0; padding: 16px 0 0; list-style: none; border-top: 1px solid rgba(246, 245, 245, 0.12); }
.dla__specs b { display: flex; align-items: center; gap: 5px; height: 22px; font-family: var(--title-font); font-size: 0.92rem; color: var(--title-color); }
.dla__specs span { font-size: 0.72rem; letter-spacing: 0.04em; color: var(--text-color4); }
.dla__langs img { display: block; width: 22px; height: 16px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15); }
.dla__side { display: grid; gap: 12px; }
.dla__shot { margin: 0; border: 1px solid rgba(84, 184, 147, 0.35); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(84, 184, 147, 0.1); }
.dla__shot img { display: block; width: 100%; height: auto; }
/* compact what's new, under the screenshot */
.dla__news { position: relative; padding: 12px 16px 14px; background: linear-gradient(180deg, rgba(84, 184, 147, 0.07), transparent 46px), rgba(8, 17, 15, 0.88); border: 1px solid rgba(84, 184, 147, 0.3); border-left: 3px solid var(--vs-theme-color2); }
.dla__news-k { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: var(--title-font); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--vs-theme-color2); }
.dla__news-k b { margin-left: auto; padding: 2px 8px; color: var(--title-color); letter-spacing: 0.08em; background: rgba(84, 184, 147, 0.14); border: 1px solid rgba(84, 184, 147, 0.4); }
.dla__news ul { margin: 0; padding: 0; list-style: none; }
.dla__news li b { font-size: 0.84rem; font-weight: 600; color: var(--title-color); }
.dla__news li > span { display: block; font-size: 0.76rem; line-height: 1.45; color: var(--text-color2); }
/* highlights: "- " lines right under the "##" title, shown as chips */
.dla__news-hl { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px !important; }
.dla__news-hl[hidden] { display: none; }
.dla__news-hl li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; background: rgba(84, 184, 147, 0.1); border: 1px solid rgba(84, 184, 147, 0.32); }
.dla__news-hl li::before { content: ""; width: 6px; height: 6px; background: var(--vs-theme-color2); transform: rotate(45deg); box-shadow: 0 0 6px var(--vs-theme-color2); }
.dla__news-hl li b { font-size: 0.78rem; }
/* groups: one per "###", side by side */
.dla__news-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 22px; }
.dla__news-groups:empty { display: none; }
.dla__news-gh { display: flex; align-items: center; gap: 8px; margin: 0 0 7px; padding-bottom: 6px; font-family: var(--title-font); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--title-color); border-bottom: 1px solid rgba(246, 245, 245, 0.1); }
.dla__news-gh svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--vs-theme-color2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dla__news-group ul { display: grid; gap: 4px; }
.dla__news li { line-height: 1.4; }
.dla__news-group li { position: relative; padding-left: 16px; }
.dla__news-group li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 7px; height: 4px; border-left: 1.5px solid var(--vs-theme-color2); border-bottom: 1.5px solid var(--vs-theme-color2); transform: rotate(-45deg); }
.dla__news-group li b { font-size: 0.8rem; font-weight: 500; color: var(--text-color2); }

/* ---------------- Supporters ---------------- */
.dls { background: radial-gradient(ellipse 60% 70% at 85% 50%, rgba(255, 102, 0, 0.1), transparent 70%), #070d0c; }
.dls__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.dls__eyebrow { color: #ff7a3d; }
.dls__steps { display: grid; gap: 8px; margin: 6px 0 26px; padding: 0; list-style: none; }
.dls__steps li { display: flex; gap: 14px; align-items: flex-start; }
.dls__steps li > span { flex: none; display: grid; place-items: center; width: 30px; height: 30px; font-family: var(--title-font); font-size: 0.8rem; font-weight: 800; color: #ff7a3d; border: 1.5px solid #ff7a3d; border-radius: 50%; }
.dls__steps b { display: block; font-family: var(--title-font); font-size: 0.9rem; color: var(--title-color); }
.dls__steps p { margin: 2px 0 0; font-size: 0.88rem; color: var(--text-color2); }
.dls__steps p b { display: inline; font-family: inherit; font-size: inherit; color: #ff9a6a; }
.dls__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.dls .dls__patreon { margin: 0; padding: 18px 26px; background-color: #ff6a3d; }
.dls__shot { margin: 0; border: 1px solid rgba(255, 122, 61, 0.35); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55); }
.dls__shot img { display: block; width: 100%; height: auto; }

@media (max-width: 991px) {
  .dla__grid, .dls__grid { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .dla { padding-top: 110px; }
  .dla .dla__primary { width: 100%; justify-content: center; }
  .dla__alt { grid-template-columns: 1fr; }
}

/* "Windows 10+": the inner span is part of the value, not a label */
.dla__specs b span { font: inherit; letter-spacing: inherit; color: inherit; }
/* screenshot + what's new scale with the screen height, so the hero always fits */
/* (only the screenshot shrinks: the what's new box keeps the column width, so it doesn't wrap taller) */
.dla__shot { justify-self: end; width: min(100%, calc((100svh - 440px) * 1.41)); }
@media (max-height: 820px) {
  .dla { padding: 104px 0 28px; }
  .dla .cl-lead { margin-bottom: 16px; }
  .dla__alt { margin-bottom: 18px; }
}
@media (max-width: 991px) { .dla__shot { width: 100%; } }

.dls__title strong { color: #ff6a3d; }

/* ---------------- screenshots crossfade ---------------- */
.dla__shot { position: relative; aspect-ratio: 1104 / 782; background: #050a09; }
.dla__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; opacity: 0; transition: opacity 1.2s ease; }
.dla__shot img.is-on { opacity: 1; }

/* ---------------- download status (replaces the buttons, same spot) ---------------- */
.dla__choice, .dla__status { min-height: 172px; margin-bottom: 26px; }
.dla__status { display: flex; align-items: center; gap: 22px; max-width: 560px; padding: 18px 20px; background: rgba(8, 17, 15, 0.85); border: 1px solid rgba(84, 184, 147, 0.4); }
.dla__status[hidden] { display: none; }
.dla__status-copy { display: grid; gap: 4px; min-width: 0; }
.dla__status-name { font-family: var(--title-font); font-size: 0.95rem; text-transform: uppercase; color: var(--title-color); }
.dla__status-toast { font-size: 0.82rem; color: var(--vs-theme-color2); }
.dla__status-line { margin: 4px 0 0; font-size: 0.92rem; color: var(--text-color1); }
.dla__count { display: inline-block; min-width: 1ch; font-family: var(--title-font); color: #8affd4; animation: dla-tick 1s ease-out infinite; }
.dla__status-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 0; font-size: 0.82rem; }
.dla__status-links a { color: var(--text-color4); text-decoration: underline; text-underline-offset: 3px; }
.dla__status-links a:hover { color: var(--title-color); }
.dla__status-retry strong { color: var(--vs-theme-color2); font-weight: 600; }
.dla__anim { flex: none; width: 76px; height: 76px; }
.dla__anim-svg { display: none; width: 100%; height: 100%; fill: none; stroke: var(--vs-theme-color2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dla__status[data-kind="installer"] .dla__anim--installer,
.dla__status[data-kind="portable"] .dla__anim--portable,
.dla__status[data-kind="offline"] .dla__anim--offline { display: block; }
/* installer: arrow drops into the tray while the ring fills */
.dla__anim--installer .ring-bg { stroke: rgba(84, 184, 147, 0.2); }
.dla__anim--installer .ring { stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: 32px 32px; animation: dla-ring 2.4s ease-in-out infinite; }
.dla__anim--installer .arrow { animation: dla-drop 1.2s ease-in infinite; }
/* portable: the file drops and lands */
.dla__anim--portable .file { animation: dla-fall 1.4s cubic-bezier(.5, 0, .6, 1.4) infinite; }
.dla__anim--portable .floor { stroke: rgba(84, 184, 147, 0.4); }
/* offline: the package lid lifts */
.dla__anim--offline .lid { transform-origin: 14px 28px; animation: dla-lid 2s ease-in-out infinite; }
/* finished: everything settles, ring full */
.dla__status.is-done .dla__anim-svg * { animation: none; }
.dla__status.is-done .ring { stroke-dashoffset: 0; }
@keyframes dla-ring { 0% { stroke-dashoffset: 100; } 70%, 100% { stroke-dashoffset: 0; } }
@keyframes dla-drop { 0% { transform: translateY(-10px); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(4px); opacity: 1; } 100% { transform: translateY(4px); opacity: 0; } }
@keyframes dla-fall { 0% { transform: translateY(-14px); opacity: 0; } 25% { opacity: 1; } 70%, 100% { transform: translateY(0); opacity: 1; } }
@keyframes dla-lid { 0%, 20% { transform: rotate(0); } 50%, 70% { transform: rotate(-24deg); } 100% { transform: rotate(0); } }
@keyframes dla-tick { 0% { transform: scale(1.4); } 100% { transform: scale(1); } }

/* Downloads picked by the visitor's system (download-page.js detectOS) */
.dla__os { margin: -14px 0 26px; font-size: 0.8rem; color: var(--text-color4); }
.dla__os b { color: var(--title-color); font-weight: 600; }
.dla__os-all { color: var(--vs-theme-color2); text-decoration: underline; text-underline-offset: 3px; }
.dla__os-all:hover, .dla__os-all:focus-visible { color: #8affd4; }
/* Mac: the launcher isn't available yet */
.dla__notice { display: flex; align-items: flex-start; gap: 16px; max-width: 560px; margin-bottom: 26px; padding: 18px 20px; background: rgba(8, 17, 15, 0.75); border: 1px solid rgba(84, 184, 147, 0.4); border-left-width: 3px; }
.dla__notice svg { flex: none; width: 30px; height: 30px; margin-top: 2px; fill: none; stroke: var(--vs-theme-color2); stroke-width: 1.6; stroke-linecap: round; }
.dla__notice b { display: block; margin-bottom: 6px; font-family: var(--title-font); font-size: 0.95rem; text-transform: uppercase; color: var(--title-color); }
.dla__notice span { display: block; margin-bottom: 10px; font-size: 0.86rem; line-height: 1.55; color: var(--text-color2); }
.dla__notice .dla__os-all { font-size: 0.82rem; }

@media (prefers-reduced-motion: reduce) {
  .dla *, .dla *::before, .dla *::after { animation: none !important; transition: none !important; }
}
