/* /download - the desktop app's page (new/templ/page/download.templ).
   Self-contained: the page does not load main.css. It wears the app's own look,
   the one /welcome sets (pages/welcome.css): a soft backdrop, glass cards with a
   hairline border, brand blue, Poppins 800 headlines with one blue phrase. Light
   is the default; dark only swaps the token layer below. */

/* ---------- Tokens ---------- */
.dl-body {
	--dl-ink: #0f172a;
	--dl-muted: #5b6b85;
	--dl-line: rgba(148, 163, 184, .28);
	--dl-card: rgba(255, 255, 255, .84);
	--dl-solid: #ffffff;
	--dl-shadow: 0 14px 40px -18px rgba(15, 23, 42, .18);
	--dl-blue: #2563eb;
	--dl-sky: #0ea5e9;
	--dl-toast: #f6f8fb;
	--dl-ease: cubic-bezier(.2, .7, .2, 1);
	--dl-spring: cubic-bezier(.3, 1.5, .5, 1);
	--c1: #3b82f6; --c2: #8b5cf6;
	position: relative; isolation: isolate; margin: 0; min-height: 100vh; overflow-x: hidden;
	color: var(--dl-ink); font: 16px/1.5 "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased;
	background: linear-gradient(180deg, #f6f9ff 0, #eef3ff 38%, #f4f7ff 70%, #f8fbff 100%);
}
html[data-theme="dark"] .dl-body {
	--dl-ink: #eef2ff;
	--dl-muted: #9aa8c2;
	--dl-line: rgba(148, 163, 184, .16);
	--dl-card: rgba(18, 26, 46, .78);
	--dl-solid: #121a2e;
	--dl-shadow: 0 20px 50px -22px rgba(0, 0, 0, .6);
	--dl-blue: #7fb4ff;
	--dl-sky: #67e8f9;
	--dl-toast: #1c2740;
	background: linear-gradient(180deg, #070b16 0, #0b1120 45%, #080d1a 100%);
}
.dl-body *, .dl-body *::before, .dl-body *::after { box-sizing: border-box; }
:where(.dl-body) a { color: inherit; }
:where(.dl-body) :where(h1, h2, h3, p, ul) { margin: 0; padding: 0; }
.dl-body ul { list-style: none; }
.dl-body :focus-visible { outline: 3px solid var(--dl-blue); outline-offset: 3px; border-radius: 12px; }
.dl-body main { position: relative; }
html { scroll-behavior: smooth; }
.dl-section, .dl-hero { scroll-margin-top: 70px; }

/* One blue phrase per headline. */
.dl-body h1 em, .dl-body h2 em { font-style: normal; color: var(--dl-blue); background: linear-gradient(95deg, var(--dl-blue) 10%, var(--dl-sky) 95%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: .1em; }

/* ---------- Backdrop: soft blobs and a dot grid behind the hero ---------- */
.dl-backdrop { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.dl-backdrop i { position: absolute; display: block; }
.dl-blob { border-radius: 50%; filter: blur(100px); opacity: .34; animation: dl-drift 30s ease-in-out infinite alternate; }
.dl-blob-1 { width: 620px; height: 620px; top: -240px; left: -200px; background: linear-gradient(135deg, #93c5fd, #c4b5fd); }
.dl-blob-2 { width: 560px; height: 560px; top: 380px; right: -220px; background: linear-gradient(135deg, #6ee7b7, #7dd3fc); animation-delay: -12s; }
.dl-blob-3 { width: 640px; height: 640px; bottom: 140px; left: -240px; background: linear-gradient(135deg, #a5b4fc, #7dd3fc); animation-delay: -20s; }
html[data-theme="dark"] .dl-blob { opacity: .2; }
html[data-theme="dark"] .dl-blob-1 { background: linear-gradient(135deg, #2563eb, #7c3aed); }
html[data-theme="dark"] .dl-blob-2 { background: linear-gradient(135deg, #059669, #0284c7); }
html[data-theme="dark"] .dl-blob-3 { background: linear-gradient(135deg, #4f46e5, #0284c7); }
@keyframes dl-drift { to { transform: translate(40px, 24px); } }
.dl-dots { inset: 0 0 auto; height: 900px; background-image: radial-gradient(color-mix(in srgb, var(--dl-blue) 22%, transparent) 1.4px, transparent 1.8px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(720px 520px at 50% 30%, #000, transparent 78%); mask-image: radial-gradient(720px 520px at 50% 30%, #000, transparent 78%); }

/* ---------- Nav: a glass bar that stays with you ---------- */
.dl-nav { position: sticky; z-index: 20; top: 12px; display: flex; align-items: center; gap: 18px; width: min(1160px, calc(100% - 28px)); height: 62px; margin: 12px auto 0; padding: 0 10px 0 22px; border-radius: 999px; border: 1px solid var(--dl-line); background: var(--dl-card); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: var(--dl-shadow); }
.dl-brand { display: flex; margin-right: auto; }
.dl-brand img { display: block; height: 30px; width: auto; }
.dl-brand .dl-logo-dark, html[data-theme="dark"] .dl-brand .dl-logo-light { display: none; }
html[data-theme="dark"] .dl-brand .dl-logo-dark { display: block; }
.dl-nav-links { display: flex; gap: 2px; }
.dl-nav-links a { padding: 9px 15px; border-radius: 999px; color: var(--dl-muted); font-size: 14px; font-weight: 600; text-decoration: none; transition: color .2s, background-color .2s; }
.dl-nav-links a:hover { color: var(--dl-ink); background: color-mix(in srgb, var(--dl-blue) 9%, transparent); }
.dl-nav-cta { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; background: color-mix(in srgb, var(--dl-blue) 11%, transparent); color: var(--dl-blue); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color .2s; }
.dl-nav-cta:hover { background: color-mix(in srgb, var(--dl-blue) 19%, transparent); }
.dl-nav-cta i { font-size: 12px; transition: transform .25s var(--dl-ease); }
.dl-nav-cta:hover i { transform: translateX(3px); }

/* ---------- Shared type ---------- */
.dl-kicker, .dl-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dl-kicker { height: 34px; padding: 0 15px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--dl-blue) 22%, var(--dl-line)); background: color-mix(in srgb, var(--dl-blue) 8%, var(--dl-card)); color: var(--dl-blue); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.dl-tag { color: color-mix(in srgb, var(--c1) 82%, var(--dl-ink)); }
html[data-theme="dark"] .dl-tag { color: color-mix(in srgb, var(--c1) 70%, #fff); }
.dl-section { max-width: 1208px; margin: 0 auto; padding: 128px 24px 0; }
.dl-head { margin-bottom: 46px; text-align: center; }
.dl-head h2 { margin-top: 18px; font-size: clamp(30px, 3.7vw, 48px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.dl-head p { margin-top: 12px; color: var(--dl-muted); font-size: 17px; font-weight: 500; }

/* ---------- Hero ---------- */
.dl-hero { position: relative; padding: 78px 24px 0; text-align: center; }
.dl-hero > * { animation: dl-rise .7s var(--dl-ease) both; }
.dl-hero > :nth-child(2) { animation-delay: .06s; } .dl-hero > :nth-child(3) { animation-delay: .12s; } .dl-hero > :nth-child(4) { animation-delay: .18s; }
.dl-hero > :nth-child(5) { animation-delay: .24s; } .dl-hero > :nth-child(6) { animation-delay: .32s; }
@keyframes dl-rise { from { opacity: 0; transform: translateY(18px); } }
.dl-hero h1 { max-width: 940px; margin: 24px auto 16px; font-size: clamp(38px, 5.9vw, 80px); line-height: 1.04; font-weight: 800; letter-spacing: -.04em; text-wrap: balance; }
.dl-sub { max-width: 600px; margin: 0 auto; color: var(--dl-muted); font-size: clamp(16px, 1.6vw, 20px); font-weight: 500; text-wrap: balance; }
.dl-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 34px; }
.dl-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 24px; margin-top: 24px; color: var(--dl-muted); font-size: 13.5px; font-weight: 500; }
.dl-meta span { display: inline-flex; align-items: center; gap: 8px; }
.dl-meta i { font-size: 11px; opacity: .7; }

/* ---------- Buttons: pills, as everywhere in the app ---------- */
.dl-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 11px; border: 0; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .25s var(--dl-ease), box-shadow .25s var(--dl-ease), background-color .2s, border-color .2s; -webkit-tap-highlight-color: transparent; }
.dl-btn:active { transform: scale(.98); }
.dl-btn-main { isolation: isolate; overflow: hidden; height: 64px; padding: 0 34px; font-size: 18px; color: #fff; background: linear-gradient(120deg, #2563eb 0, #3b82f6 55%, #0ea5e9 100%); box-shadow: 0 20px 40px -16px rgba(37, 99, 235, .75), inset 0 1px 0 rgba(255, 255, 255, .3); }
.dl-btn-main i { font-size: 21px; }
.dl-btn-main::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .32), transparent); transform: skewX(-18deg); animation: dl-shine 5s var(--dl-ease) 1.2s infinite; }
@keyframes dl-shine { 0% { left: -40%; } 32%, 100% { left: 120%; } }
.dl-btn-main:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 26px 48px -16px rgba(37, 99, 235, .85), inset 0 1px 0 rgba(255, 255, 255, .3); }
.dl-btn-ghost { height: 64px; padding: 0 28px; font-size: 16px; color: var(--dl-ink); border: 1px solid var(--dl-line); background: var(--dl-card); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--dl-shadow); }
.dl-btn-ghost:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--dl-blue) 45%, var(--dl-line)); }
.dl-state { display: inline-flex; align-items: center; justify-content: center; gap: 11px; height: 60px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--dl-line); background: var(--dl-card); color: var(--dl-muted); font-size: 16.5px; font-weight: 700; }
.dl-state-done { color: var(--dl-ink); }
.dl-state-done i { color: #10b981; }

/* ---------- The stage: the app window, Rio and what the app does around it.
   --p runs 0 (tipped back) to 1 (flat), --px / --py follow the pointer;
   download.js drives all three. ---------- */
@property --g1 { syntax: "<color>"; inherits: false; initial-value: #8b5cf6; }
@property --g2 { syntax: "<color>"; inherits: false; initial-value: #3b82f6; }
.dl-stage { --px: 0; --py: 0; position: relative; max-width: 1080px; margin: 104px auto 0; perspective: 1800px; perspective-origin: 50% 0; }
/* Each part of the app has its colour pair; the glow, dock and stickers take it. */
.dl-stage[data-scene="live"], .dl-stage [data-scene="live"] { --c1: #8b5cf6; --c2: #3b82f6; }
.dl-stage[data-scene="plan"], .dl-stage [data-scene="plan"] { --c1: #6366f1; --c2: #ec4899; }
.dl-stage[data-scene="progress"], .dl-stage [data-scene="progress"] { --c1: #0ea5e9; --c2: #10b981; }
.dl-stage[data-scene="learn"], .dl-stage [data-scene="learn"] { --c1: #f97316; --c2: #f59e0b; }
.dl-glow { --g1: var(--c1); --g2: var(--c2); position: absolute; inset: 8% 0 2%; border-radius: 40%; background: linear-gradient(90deg, var(--g1), var(--g2)); filter: blur(90px); opacity: .5; transition: --g1 .9s ease, --g2 .9s ease; }
html[data-theme="dark"] .dl-glow { opacity: .5; }
.dl-tilt { --p: 1; position: relative; transform-origin: 50% 100%; transform: rotateX(calc((1 - var(--p)) * 12deg)) scale(calc(.95 + var(--p) * .05)); will-change: transform; }
.dl-frame { padding: 8px; border-radius: 20px; border: 1px solid var(--dl-line); background: color-mix(in srgb, var(--dl-solid) 55%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 50px 100px -30px rgba(30, 58, 138, .45), 0 18px 36px -18px rgba(15, 23, 42, .3); }
html[data-theme="dark"] .dl-frame { background: rgba(255, 255, 255, .06); box-shadow: 0 50px 110px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(127, 180, 255, .08); }

.dl-float { position: absolute; z-index: 3; transform: translate(calc(var(--px, 0) * var(--z, 1) * -12px), calc(var(--py, 0) * var(--z, 1) * -9px)) rotate(var(--r, 0deg)); animation: dl-bob var(--t, 6s) ease-in-out infinite; }
@keyframes dl-bob { 50% { translate: 0 -10px; } }
/* Stickers belong to one scene and pop in with it. */
.dl-float[data-scene] { opacity: 0; scale: .8; visibility: hidden; transition: opacity .3s ease, scale .3s ease, visibility 0s .3s; }
.dl-float[data-scene].is-on { opacity: 1; scale: 1; visibility: visible; transition: opacity .35s ease .25s, scale .6s var(--dl-spring) .25s, visibility 0s; }
.dl-at-a { --z: 2.2; --r: -4deg; --t: 6.4s; left: -5%; top: 15%; }
.dl-at-b { --z: 1.9; --r: 3deg; --t: 5.4s; right: -6%; bottom: 20%; animation-delay: -2.5s; }
.dl-float.dl-toastcard { right: -7%; }
.dl-show-narrow { width: 19%; right: -4%; bottom: 10%; }
.dl-show-narrow .dl-win { box-shadow: 0 0 0 1px rgba(8, 12, 40, .14), 0 30px 60px -16px rgba(15, 23, 42, .55); }
/* Rio sits on the window's top edge and tips back with it. */
.dl-rio { position: absolute; z-index: 2; right: 7%; bottom: calc(100% - 13px); width: clamp(56px, 8.4%, 92px); height: auto; pointer-events: none; transform-origin: 50% 100%; filter: drop-shadow(0 8px 10px rgba(15, 23, 42, .22)); animation: dl-perch 5s ease-in-out infinite; }
@keyframes dl-perch { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-2px); } }

/* The hero window holds one screen per scene, stacked. */
.dl-win-show { transition: background-color .5s; }
.dl-win-show[data-scene="learn"] { --bg: #fff; }
.dl-win-show .dl-win-bar { transition: background-color .5s; }
.dl-shots { position: relative; aspect-ratio: 2720 / 1450; overflow: hidden; background: var(--bg); }
.dl-shot { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; transform: scale(1.025); transition: opacity .55s ease, transform .9s var(--dl-ease); }
.dl-shot.is-on { opacity: 1; transform: none; }

/* The dock under the window picks the scene; the lit pill fills as it plays. */
.dl-dock { position: relative; z-index: 5; display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 22px auto 0; padding: 5px; border-radius: 999px; border: 1px solid var(--dl-line); background: var(--dl-card); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 24px 50px -18px rgba(15, 23, 42, .4); }
.dl-dock-btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--dl-muted); font: inherit; font-size: 14.5px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: color .25s, background-color .25s; -webkit-tap-highlight-color: transparent; }
.dl-dock-btn i { font-size: 14px; color: var(--c1); transition: color .25s; }
.dl-dock-btn:hover { color: var(--dl-ink); background: color-mix(in srgb, var(--c1) 11%, transparent); }
.dl-dock-btn.is-on, .dl-dock-btn.is-on:hover { color: #fff; background: linear-gradient(120deg, var(--c1), var(--c2)); box-shadow: 0 12px 24px -12px var(--c1), inset 0 1px 0 rgba(255, 255, 255, .3); }
.dl-dock-btn.is-on i { color: #fff; }
.dl-dock-btn.is-on::after { content: ""; position: absolute; z-index: -1; inset: 0; background: rgba(255, 255, 255, .24); transform-origin: 0 50%; transform: scaleX(0); animation: dl-fill 5.5s linear forwards; }
.dl-stage:hover .dl-dock-btn.is-on::after { animation-play-state: paused; }
@keyframes dl-fill { to { transform: scaleX(1); } }
.dl-caption { margin-top: 18px; color: var(--dl-muted); font-size: 15.5px; font-weight: 500; text-wrap: balance; }
.dl-caption.is-swap { animation: dl-rise .5s var(--dl-ease) both; }
.dl-chip { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 8px; border-radius: 999px; border: 1px solid var(--dl-line); background: var(--dl-solid); color: var(--dl-ink); font-size: 14.5px; font-weight: 700; white-space: nowrap; box-shadow: 0 18px 36px -14px rgba(15, 23, 42, .35); }
.dl-chip i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 13px; background: linear-gradient(135deg, var(--c1), var(--c2)); }

/* The desktop app's window. Sizes hang off its own width (cqw). */
.dl-win { --bg: #f8fafc; --fg: #0f172a; --k: 1; position: relative; container-type: inline-size; border-radius: 10px; overflow: hidden; background: var(--bg); box-shadow: 0 0 0 1px rgba(8, 12, 40, .14), 0 24px 50px -16px rgba(15, 23, 42, .4); }
.dl-win.is-dark { --bg: #0b1120; --fg: #f1f5f9; }
.dl-win-student_home, .dl-win-practice_narrow { --bg: #fff; }
.dl-win.is-mac { border-radius: 13px; }
.dl-frame .dl-win { border-radius: 13px; box-shadow: 0 0 0 1px rgba(8, 12, 40, .12); }
.dl-win-bar { position: relative; display: flex; align-items: center; height: max(20px, calc(var(--k) * 2.94cqw)); padding-left: calc(var(--k) * 1.2cqw); background: var(--bg); color: var(--fg); font-size: max(7px, calc(var(--k) * .96cqw)); line-height: 1; }
.dl-win-nav { display: flex; gap: calc(var(--k) * 1.5cqw); opacity: .7; }
.dl-win-nav i:nth-child(2) { opacity: .4; }
.dl-win-title { position: absolute; left: 50%; top: 0; height: 100%; max-width: 56%; transform: translateX(-50%); display: flex; align-items: center; gap: .55em; font-family: "Segoe UI", system-ui, sans-serif; font-weight: 600; white-space: nowrap; }
.dl-win-title img { width: 1.4em; height: 1.4em; flex: none; }
.dl-win-title span { overflow: hidden; text-overflow: ellipsis; }
.dl-win-caps { display: flex; height: 100%; margin-left: auto; font-size: .92em; }
.dl-win-caps i { display: grid; place-items: center; width: calc(var(--k) * 3.4cqw); height: 100%; opacity: .8; }
.dl-win-caps .fa-square { font-size: .82em; }
.dl-win-lights { display: none; gap: .62em; margin-right: 1.5em; }
.dl-win-lights i { width: .92em; height: .92em; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .18); }
.dl-win-lights i:nth-child(2) { background: #febc2e; } .dl-win-lights i:nth-child(3) { background: #28c840; }
.dl-win.is-mac .dl-win-lights { display: flex; }
.dl-win.is-mac .dl-win-caps { display: none; }
.dl-win-shot { display: block; width: 100%; height: auto; aspect-ratio: 2720 / 1450; }
.dl-win-practice_narrow { --k: 2.6; }
.dl-win-practice_narrow .dl-win-shot { aspect-ratio: 520 / 853; object-fit: cover; object-position: 50% 0; }
.dl-win-practice_narrow .dl-win-nav i:nth-child(n+2) { display: none; }

/* A system notification, as the app raises them. */
.dl-toastcard { position: absolute; z-index: 4; display: block; width: 290px; padding: 13px 16px 15px; border-radius: 14px; border: 1px solid var(--dl-line); background: var(--dl-toast); color: var(--dl-ink); text-align: left; font: 13.5px/1.35 "Segoe UI", system-ui, sans-serif; box-shadow: 0 26px 50px -14px rgba(15, 23, 42, .45); }
.dl-toastcard > span { display: block; color: var(--dl-muted); }
.dl-toastcard strong { display: block; font-weight: 700; }
.dl-toastcard .dl-toastcard-app { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; }
.dl-toastcard-app em { margin-left: auto; font-style: normal; opacity: .75; }

/* ---------- What you get: glass cards, each with its own colour wash ---------- */
.dl-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.dl-feat { position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; border-radius: 28px; border: 1px solid var(--dl-line); background: var(--dl-card); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--dl-shadow); transition: transform .35s var(--dl-ease), box-shadow .35s var(--dl-ease), border-color .35s; }
.dl-feat::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(520px 300px at 100% 0, color-mix(in srgb, var(--c1) 13%, transparent), transparent 70%); }
.dl-feat:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c1) 40%, var(--dl-line)); box-shadow: 0 30px 60px -28px color-mix(in srgb, var(--c1) 55%, transparent); }
.dl-feat-live { --c1: #8b5cf6; --c2: #3b82f6; grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); align-items: stretch; }
.dl-feat-streak { --c1: #f97316; --c2: #f59e0b; }
.dl-feat-alerts { --c1: #0ea5e9; --c2: #10b981; }
.dl-feat-head { padding: 32px 32px 0; }
.dl-feat-live .dl-feat-head { align-self: center; padding: 44px 20px 44px 44px; }
.dl-feat h3 { margin: 14px 0 8px; font-size: clamp(23px, 2.3vw, 30px); line-height: 1.14; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.dl-feat-live h3 { font-size: clamp(26px, 2.9vw, 38px); }
.dl-feat-head p { color: var(--dl-muted); font-size: 16px; line-height: 1.55; }
.dl-ticks { display: grid; gap: 10px; margin-top: 22px; }
.dl-ticks li { display: flex; align-items: center; gap: 11px; font-size: 14.5px; font-weight: 500; }
.dl-ticks i { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 10px; color: var(--c1); background: color-mix(in srgb, var(--c1) 14%, transparent); }
/* The art is a tinted panel the window sits in, running off the card's edge. */
.dl-feat-art { position: relative; flex: 1; min-height: 300px; margin: 28px 32px 0; overflow: hidden; border-radius: 22px 22px 0 0; background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 20%, var(--dl-solid)), color-mix(in srgb, var(--c2) 16%, var(--dl-solid))); }
.dl-feat-art > .dl-win { position: absolute; left: 8%; top: 12%; width: 124%; }
.dl-feat-live .dl-feat-art { min-height: 440px; margin: 32px 32px 0 12px; }
.dl-feat-live .dl-feat-art > .dl-win { left: 7%; top: 10%; width: 112%; }
.dl-share { position: absolute; z-index: 4; left: 4%; bottom: 9%; display: flex; align-items: center; gap: 13px; padding: 12px 14px 12px 12px; border-radius: 20px; border: 1px solid var(--dl-line); background: var(--dl-solid); color: var(--dl-ink); text-align: left; box-shadow: 0 24px 48px -12px rgba(15, 23, 42, .5); transform: rotate(-3deg); animation: dl-bob 7s ease-in-out infinite; }
.dl-float.dl-share { left: auto; right: -6%; bottom: 20%; transform: translate(calc(var(--px, 0) * var(--z, 1) * -12px), calc(var(--py, 0) * var(--z, 1) * -9px)) rotate(var(--r, 0deg)); animation: dl-bob var(--t, 6s) ease-in-out -2.5s infinite; }
.dl-share-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; font-size: 18px; }
.dl-share-text b { display: block; font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.dl-share-text small { display: block; color: var(--dl-muted); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.dl-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: color-mix(in srgb, var(--dl-muted) 14%, transparent); }
.dl-seg span { padding: 6px 11px; border-radius: 8px; color: var(--dl-muted); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.dl-seg .is-on { background: var(--dl-blue); color: #fff; }
html[data-theme="dark"] .dl-seg .is-on { color: #0b1120; }
.dl-win-narrow { position: absolute; z-index: 2; right: 6%; top: 8%; width: 31%; transform: rotate(3deg); }
.dl-sticker { position: absolute; z-index: 2; top: 20px; right: 22px; width: 84px; height: auto; pointer-events: none; filter: drop-shadow(0 14px 20px rgba(194, 65, 12, .35)); animation: dl-bob 5s ease-in-out infinite; }
.dl-feat-alerts .dl-toastcard { right: 5%; width: min(290px, 66%); }
.dl-note-a { top: 13%; } .dl-note-b { top: 53%; }
.dl-js .dl-feat-alerts .dl-toastcard { opacity: 0; }
.dl-js .dl-feat-alerts.is-in .dl-toastcard { opacity: 1; animation: dl-notify .8s var(--dl-spring) .5s backwards; }
.dl-js .dl-feat-alerts.is-in .dl-note-b { animation-delay: .95s; }
@keyframes dl-notify { from { opacity: 0; transform: translateX(60px); } }
.dl-appicon { position: absolute; z-index: 3; left: 6%; bottom: 10%; width: 72px; filter: drop-shadow(0 16px 24px rgba(0, 5, 30, .5)); }
.dl-appicon img { display: block; width: 100%; height: auto; border-radius: 22%; }
.dl-appicon b { position: absolute; right: -14%; bottom: -12%; display: grid; place-items: center; min-width: 44%; aspect-ratio: 1; border-radius: 999px; border: 3px solid var(--dl-solid); background: #e11d48; color: #fff; font-size: 14px; font-weight: 700; line-height: 1; animation: dl-pop 3.6s var(--dl-ease) infinite; }
@keyframes dl-pop { 0%, 78%, 100% { transform: none; } 86% { transform: scale(1.22); } }

/* ---------- Built in: four quiet tiles ---------- */
.dl-perks ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.dl-perks li { position: relative; overflow: hidden; padding: 26px 24px 24px; border-radius: 24px; border: 1px solid var(--dl-line); background: var(--dl-card); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--dl-shadow); transition: transform .35s var(--dl-ease), border-color .35s, box-shadow .35s var(--dl-ease); }
.dl-perks li::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(260px 160px at 100% 0, color-mix(in srgb, var(--c1) 12%, transparent), transparent 70%); }
.dl-perks li:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c1) 40%, var(--dl-line)); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--c1) 45%, transparent); }
.dl-perks li:nth-child(2) { --c1: #f59e0b; --c2: #f97316; }
.dl-perks li:nth-child(3) { --c1: #8b5cf6; --c2: #ec4899; }
.dl-perks li:nth-child(4) { --c1: #10b981; --c2: #0ea5e9; }
.dl-perks li > i { position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; color: #fff; font-size: 19px; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 12px 22px -12px var(--c1); }
.dl-perks h3 { position: relative; margin: 18px 0 5px; font-size: 17.5px; font-weight: 800; letter-spacing: -.015em; }
.dl-perks p { position: relative; color: var(--dl-muted); font-size: 14.5px; line-height: 1.5; }

/* ---------- Downloads ---------- */
.dl-platforms { padding-bottom: 96px; text-align: center; }
.dl-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 1000px; margin: 0 auto; }
.dl-happy { position: absolute; z-index: 0; right: 34px; bottom: calc(100% - 52px); width: 132px; height: auto; pointer-events: none; }
.dl-card { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding: 36px 26px 26px; border-radius: 26px; border: 1px solid var(--dl-line); background: var(--dl-solid); box-shadow: var(--dl-shadow); transition: transform .35s var(--dl-ease), border-color .35s, box-shadow .35s var(--dl-ease); }
.dl-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(300px 190px at 50% 0, color-mix(in srgb, var(--c1) 11%, transparent), transparent 72%); }
.dl-card > * { position: relative; }
.dl-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c1) 40%, var(--dl-line)); box-shadow: 0 28px 56px -26px color-mix(in srgb, var(--c1) 50%, transparent); }
.dl-card-windows { --c1: #2563eb; --c2: #0ea5e9; }
.dl-card-mac { --c1: #6366f1; --c2: #8b5cf6; }
.dl-card-linux { --c1: #f59e0b; --c2: #f97316; }
.dl-card.is-yours { border: 2px solid var(--c1); padding: 35px 25px 25px; box-shadow: 0 30px 60px -26px color-mix(in srgb, var(--c1) 60%, transparent); }
.dl-yours { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); height: 28px; padding: 0 14px; border-radius: 999px; background: linear-gradient(120deg, var(--c1), var(--c2)); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; line-height: 28px; text-transform: uppercase; white-space: nowrap; box-shadow: 0 10px 20px -10px var(--c1); }
.dl-card > .dl-yours { position: absolute; }
.dl-card-icon { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 24px; color: var(--c1); font-size: 34px; background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 16%, var(--dl-solid)), color-mix(in srgb, var(--c2) 13%, var(--dl-solid))); }
.dl-card-mac .dl-card-icon { color: var(--dl-ink); }
.dl-card h3 { margin: 20px 0 4px; font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.dl-card p { min-height: 42px; margin-bottom: 22px; color: var(--dl-muted); font-size: 13.5px; line-height: 1.55; }
.dl-card-row { display: flex; gap: 8px; width: 100%; margin-top: auto; }
.dl-body .dl-btn-card { flex: none; width: 100%; height: 52px; margin-top: auto; padding: 0 16px; font-size: 15px; color: var(--dl-blue); background: color-mix(in srgb, var(--dl-blue) 11%, transparent); }
.dl-btn-card i { font-size: 13px; }
.dl-body .dl-btn-card:hover { color: var(--dl-blue); background: color-mix(in srgb, var(--dl-blue) 19%, transparent); transform: translateY(-2px); }
.dl-body .dl-card.is-yours .dl-btn-card:not(.dl-btn-alt) { color: #fff; background: linear-gradient(120deg, #2563eb, #3b82f6 55%, #0ea5e9); box-shadow: 0 14px 28px -14px rgba(37, 99, 235, .8), inset 0 1px 0 rgba(255, 255, 255, .28); }
.dl-body .dl-card-row .dl-btn-card { flex: 1; width: auto; }
.dl-body .dl-card-row .dl-btn-alt { flex: 0 0 34%; }
html[data-theme="dark"] .dl-body .dl-btn-card { background: color-mix(in srgb, var(--dl-blue) 17%, transparent); }
html[data-theme="dark"] .dl-body .dl-btn-card:hover { background: color-mix(in srgb, var(--dl-blue) 26%, transparent); }
.dl-state-card { width: 100%; height: 52px; margin-top: auto; font-size: 15px; background: color-mix(in srgb, var(--dl-muted) 9%, transparent); border-color: transparent; }
.dl-foot { margin-top: 44px; color: var(--dl-muted); font-size: 14.5px; }
.dl-foot a { color: var(--dl-blue); font-weight: 600; text-decoration: none; }
.dl-foot a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Footer ---------- */
.dl-footer { padding: 30px 24px 44px; border-top: 1px solid var(--dl-line); text-align: center; color: var(--dl-muted); font-size: 13px; }
.dl-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.dl-footer a { text-decoration: none; transition: color .2s; }
.dl-footer a:hover { color: var(--dl-blue); }

/* Rise in on scroll (download.js adds .dl-js, then .is-in). */
.dl-js [data-reveal] { opacity: 0; }
.dl-js [data-reveal].is-in { opacity: 1; animation: dl-rise .8s var(--dl-ease) var(--d, 0s) backwards; }

/* ---------- "Your download has started" ---------- */
.dl-toast { position: fixed; z-index: 30; left: 50%; bottom: 26px; transform: translate(-50%, 28px) scale(.96); display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 14px 24px 16px 14px; border-radius: 22px; overflow: hidden; border: 1px solid var(--dl-line); background: var(--dl-solid); color: var(--dl-ink); box-shadow: 0 30px 70px -16px rgba(15, 23, 42, .5); opacity: 0; transition: transform .45s var(--dl-spring), opacity .25s; }
.dl-toast[hidden] { display: none; }
.dl-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.dl-toast > i { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, #34d399, #0ea371); color: #fff; font-size: 17px; box-shadow: 0 12px 22px -12px rgba(14, 163, 113, 1); }
.dl-toast.is-in > i::before { display: block; animation: dl-drop 1.3s ease-in-out infinite; }
@keyframes dl-drop { 0% { transform: translateY(-5px); opacity: 0; } 40%, 70% { transform: none; opacity: 1; } 100% { transform: translateY(5px); opacity: 0; } }
.dl-toast span { display: block; font-size: 13.5px; color: var(--dl-muted); }
.dl-toast strong { display: block; color: var(--dl-ink); font-size: 15px; }
.dl-toast u { position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: linear-gradient(90deg, #34d399, #3b82f6); transform-origin: 0 50%; transform: scaleX(0); }
.dl-toast.is-in u { animation: dl-count 9s linear forwards; }
@keyframes dl-count { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---------- Narrower screens ---------- */
@media (max-width: 1260px) {
	.dl-at-a { left: -1%; } .dl-at-b, .dl-float.dl-share, .dl-float.dl-toastcard, .dl-show-narrow { right: -1%; }
	.dl-stage { max-width: 940px; }
}
@media (max-width: 980px) {
	.dl-nav-links { display: none; }
	.dl-section { padding-top: 96px; }
	.dl-bento { grid-template-columns: minmax(0, 1fr); }
	.dl-feat-live { display: flex; }
	.dl-feat-live .dl-feat-head { align-self: stretch; padding: 32px 32px 0; }
	.dl-feat-live .dl-feat-art { min-height: 380px; margin: 28px 32px 0; }
	.dl-feat-art { min-height: 340px; }
	.dl-perks ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dl-grid { grid-template-columns: minmax(0, 1fr); max-width: 420px; gap: 26px; }
	.dl-happy { display: none; }
	.dl-card p { min-height: 0; }
	.dl-chip { height: 40px; font-size: 13px; }
	.dl-chip i { width: 26px; height: 26px; font-size: 11px; }
	.dl-toastcard { width: 240px; padding: 10px 13px 12px; font-size: 12px; }
}
@media (max-width: 640px) {
	.dl-nav { height: 54px; padding: 0 7px 0 16px; }
	.dl-brand img { height: 24px; }
	.dl-nav-cta { height: 38px; padding: 0 14px; font-size: 13px; }
	.dl-hero { padding: 52px 18px 0; }
	.dl-hero h1 { margin: 20px auto 14px; }
	.dl-cta { flex-direction: column; align-items: stretch; max-width: 360px; margin-inline: auto; }
	.dl-btn-main, .dl-btn-ghost { height: 58px; font-size: 16.5px; padding: 0 20px; }
	.dl-btn-ghost { height: 52px; font-size: 15px; }
	.dl-stage { margin-top: 84px; }
	.dl-float[data-scene] { display: none; }
	.dl-rio { bottom: calc(100% - 8px); }
	.dl-dock { margin-top: 16px; }
	.dl-dock-btn { height: 42px; padding: 0 14px; font-size: 13.5px; }
	.dl-dock-btn:not(.is-on) span { display: none; }
	.dl-caption { font-size: 14.5px; }
	.dl-frame { padding: 5px; border-radius: 13px; }
	.dl-win, .dl-win.is-mac, .dl-frame .dl-win { border-radius: 8px; }
	.dl-section { padding: 80px 16px 0; }
	.dl-head { margin-bottom: 30px; }
	.dl-feat { border-radius: 24px; }
	.dl-feat-head, .dl-feat-live .dl-feat-head { padding: 24px 22px 0; }
	.dl-feat-art, .dl-feat-live .dl-feat-art { min-height: 250px; margin: 22px 16px 0; border-radius: 18px 18px 0 0; }
	.dl-feat-live .dl-feat-art > .dl-win { width: 130%; }
	.dl-share { left: 3%; bottom: 7%; gap: 10px; padding: 9px 12px 9px 9px; border-radius: 16px; }
	.dl-share-ic { width: 36px; height: 36px; border-radius: 12px; font-size: 15px; }
	.dl-seg { display: none; }
	.dl-sticker { width: 62px; top: 14px; right: 14px; }
	.dl-feat-alerts .dl-toastcard { width: 70%; padding: 8px 11px 10px; font-size: 11px; border-radius: 11px; }
	.dl-toastcard .dl-toastcard-app { margin-bottom: 4px; font-size: 10.5px; }
	.dl-appicon { width: 54px; }
	.dl-perks ul { gap: 12px; }
	.dl-perks li { padding: 20px 16px 18px; border-radius: 20px; }
	.dl-perks li > i { width: 42px; height: 42px; border-radius: 14px; font-size: 16px; }
	.dl-perks h3 { margin-top: 14px; font-size: 15.5px; }
	.dl-perks p { font-size: 13px; }
	.dl-platforms { padding-bottom: 72px; }
	.dl-toast { bottom: 14px; padding: 12px 18px 14px 12px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.dl-body *, .dl-body *::before, .dl-body *::after { animation: none !important; transition: none !important; }
	.dl-js .dl-feat-alerts .dl-toastcard { opacity: 1; }
}
