/* download.html: the desktop app page. Site colours are tokens; the drawings of macOS and
   Windows screens (.mk-*) use those systems' own fixed colours on purpose. */
.dl { max-width: 1120px; margin: 0 auto; padding: 28px 24px 120px; color: var(--paper); }
.dl code { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .86em; background: rgba(var(--fg-rgb), .06); padding: 1px 6px; border-radius: 6px; word-break: break-all; }
.dl-k { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }

/* hero */
.dl-hero { position: relative; overflow: hidden; text-align: center; padding: 64px 24px 56px; border-radius: 32px; background: var(--ink); color: #fff; isolation: isolate; }
.dl-hero__glow { position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1; background: radial-gradient(40% 50% at 30% 40%, rgba(227, 114, 57, .45), transparent 70%), radial-gradient(35% 45% at 72% 30%, rgba(249, 152, 47, .3), transparent 70%), radial-gradient(30% 40% at 55% 75%, rgba(217, 187, 255, .18), transparent 70%); filter: blur(10px); animation: dl-drift 14s ease-in-out infinite alternate; }
@keyframes dl-drift { to { transform: translate3d(4%, 6%, 0) scale(1.08); } }
.dl-hero__icon img { width: 112px; height: 112px; filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .5)); animation: dl-float 5s ease-in-out infinite; }
@keyframes dl-float { 50% { transform: translateY(-8px) rotate(-1.5deg); } }
.dl-pill { display: inline-block; margin: 18px 0 10px; padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, .1); color: #FFC9A8; font-size: 12.5px; font-weight: 700; }
.dl-hero h1 { margin: 0; font-size: clamp(34px, 6vw, 58px); font-weight: 900; letter-spacing: -.03em; line-height: 1.02; }
.dl-lead { max-width: 600px; margin: 14px auto 0; color: rgba(255, 255, 255, .72); font-size: 17px; line-height: 1.55; }
.dl-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; margin-top: 30px; }
.dl-btn { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: 99px; background: var(--orange); color: #fff; font-size: 17px; font-weight: 700; text-decoration: none; box-shadow: 0 16px 34px -14px rgba(227, 114, 57, .8); transition: transform .25s cubic-bezier(0.32, 0.72, 0, 1), box-shadow .25s; }
.dl-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 20px 40px -14px rgba(227, 114, 57, .9); }
.dl-btn svg { width: 20px; height: 20px; }
.dl-alt { display: inline-flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .8); font-weight: 600; text-decoration: none; }
.dl-alt:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.dl-alt svg { width: 15px; height: 15px; }
.dl-meta { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .5); }
.dl-meta a { color: inherit; }
.dl-in { display: inline-flex; gap: 8px; align-items: center; margin-top: 26px; padding: 12px 18px; border-radius: 16px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .85); }
.dl-in svg { width: 18px; height: 18px; color: #7BE0A0; }
.dl svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* features */
.dl-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.dl-feat { padding: 22px; border-radius: var(--r, 26px); background: var(--card); }
.dl-feat__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 14px; }
.dl-feat:nth-child(1) .dl-feat__ic { background: var(--lav); } .dl-feat:nth-child(2) .dl-feat__ic { background: var(--sun); }
.dl-feat:nth-child(3) .dl-feat__ic { background: var(--sky); } .dl-feat:nth-child(4) .dl-feat__ic { background: var(--mint); }
.dl-feat__ic svg { width: 22px; height: 22px; color: var(--paper); }
.dl-feat b { font-size: 16px; } .dl-feat p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* guide */
.dl-guide, .dl-faq { margin-top: 56px; }
.dl-h { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; margin-bottom: 22px; }
.dl-h h2 { margin: 0; font-size: clamp(26px, 4vw, 36px); font-weight: 900; letter-spacing: -.02em; }
.dl-h p { margin: 6px 0 0; color: var(--muted); }
.dl-tabs { display: inline-flex; padding: 4px; border-radius: 99px; background: var(--card); box-shadow: 0 1px 0 var(--line); }
.dl-tabs button { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 18px; border: 0; border-radius: 99px; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; transition: background-color .25s, color .25s; }
.dl-tabs button svg { width: 16px; height: 16px; }
.dl-tabs button.is-on { background: var(--ink); color: #fff; }
html[data-theme="dark"] .dl-tabs button.is-on { background: var(--orange); }
.dl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dl-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 26px; align-items: center; padding: 22px; border-radius: var(--r, 26px); background: var(--card); }
.dl-step--plain { grid-template-columns: 1fr; }
.dl-step.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .7s cubic-bezier(0.32, 0.72, 0, 1); transition-delay: calc(var(--i) * 40ms); }
.dl-step.rv.is-in { opacity: 1; transform: none; }
.dl-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; margin-bottom: 12px; }
.dl-step h3 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.dl-step p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
.dl-step p b { color: var(--paper); }
.dl-step__pic { display: grid; place-items: center; min-height: 230px; padding: 22px; border-radius: 20px; background: linear-gradient(150deg, var(--navy), var(--navy-2)); overflow: hidden; }
.dl-term { margin-top: 14px; padding: 16px 20px; border-radius: 20px; background: var(--card); }
.dl-term summary { cursor: pointer; font-weight: 700; }
.dl-term p { color: var(--muted); }
.dl-code { display: flex; gap: 10px; align-items: center; padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--ink); }
.dl-code code { flex: 1; background: none; color: #fff; padding: 0; }
.dl-code button { display: inline-flex; gap: 6px; align-items: center; height: 34px; padding: 0 12px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.dl-code button svg { width: 15px; height: 15px; }

/* FAQ */
.dl-faq details { padding: 18px 22px; border-radius: 20px; background: var(--card); margin-bottom: 10px; }
.dl-faq summary { cursor: pointer; font-weight: 700; font-size: 16px; }
.dl-faq details p { margin: 10px 0 0; color: var(--muted); line-height: 1.6; }
.dl-sums { margin-top: 18px; padding: 18px 22px; border-radius: 20px; border: 1px dashed rgba(var(--fg-rgb), .18); font-size: 13px; }
.dl-sums div { display: grid; gap: 2px; margin-top: 10px; } .dl-sums div span { font-weight: 600; }
.dl-sums p { color: var(--muted); margin: 12px 0 0; line-height: 1.8; }

/* ---------- the drawings ---------- */
.dl-step .mk p { color: inherit; line-height: 1.4; }
.dl-step .mk-alert__card p { color: #3A3A3C; margin: 0 0 6px; }
.dl-step .mk-ss p { margin: 0 0 8px; }
.mk { width: 100%; max-width: 400px; font: 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; color: #1D1D1F; text-align: left; }
.mk .is-hit { position: relative; animation: mk-hit 2.4s ease-in-out infinite; }
@keyframes mk-hit { 0%, 100% { box-shadow: 0 0 0 0 rgba(227, 114, 57, 0); } 50% { box-shadow: 0 0 0 5px rgba(227, 114, 57, .45); } }
.mk-mac__tb { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; background: #ECECEE; border-bottom: 1px solid #D9D9DD; }
.mk-mac__tb i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; } .mk-mac__tb i:nth-child(2) { background: #FEBC2E; } .mk-mac__tb i:nth-child(3) { background: #28C840; }
.mk-mac__tb span { flex: 1; text-align: center; margin-right: 40px; font-weight: 600; color: #4A4A4F; }
/* browser download */
.mk-dl { border-radius: 12px; background: #fff; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .35); overflow: hidden; }
.mk-dl__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; background: #F1F3F4; }
.mk-dl__bar i { width: 9px; height: 9px; border-radius: 50%; background: #D5D7DA; }
.mk-dl__bar span { flex: 1; margin-left: 8px; padding: 3px 10px; border-radius: 99px; background: #fff; color: #5F6368; }
.mk-dl__btn { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #D3E3FD; color: #0B57D0; }
.mk-dl__btn svg { width: 14px; height: 14px; }
.mk-dl__pop { margin: 10px; padding: 12px; border-radius: 10px; border: 1px solid #E3E5E8; }
.mk-dl__file { display: flex; gap: 10px; align-items: center; } .mk-dl__file b { display: block; word-break: break-all; } .mk-dl__file small { display: flex; align-items: center; gap: 8px; color: #5F6368; }
.mk-file { flex: none; display: grid; place-items: center; width: 34px; height: 40px; border-radius: 6px; background: #E8EAED; color: #3C4043; font-size: 10px; font-weight: 800; }
.mk-file--warn { background: #FEF7E0; color: #B06000; font-size: 18px; }
.mk-dl__prog { width: 80px; height: 4px; border-radius: 4px; background: #E8EAED; overflow: hidden; } .mk-dl__prog i { display: block; height: 100%; width: 40%; background: #0B57D0; animation: mk-prog 2.6s ease-in-out infinite; }
@keyframes mk-prog { from { width: 5%; } 70%, to { width: 100%; } }
.mk-dl__acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; } .mk-dl__acts span { padding: 4px 12px; border-radius: 99px; border: 1px solid #DADCE0; color: #0B57D0; font-weight: 600; }
/* dmg window */
.mk-dmg { border-radius: 12px; background: #fff; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .35); overflow: hidden; }
.mk-dmg__body { position: relative; display: flex; align-items: center; justify-content: space-around; height: 170px; padding: 0 18px; }
.mk-dmg__app, .mk-dmg__apps { display: grid; justify-items: center; gap: 6px; font-weight: 500; }
.mk-dmg__icon { width: 64px; height: 64px; }
.mk-folder { position: relative; width: 66px; height: 52px; border-radius: 6px; background: linear-gradient(#6FC3FF, #3A9BF0); }
.mk-folder::before { content: ""; position: absolute; left: 0; top: -7px; width: 26px; height: 10px; border-radius: 4px 4px 0 0; background: #5AB3FA; }
.mk-folder i { position: absolute; inset: 14px 20px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 50% 50% 4px 4px; }
.mk-dmg__arrow { width: 90px; stroke: #B9BEC6; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mk-dmg__ghost { position: absolute; left: 50px; top: 42px; opacity: 0; animation: mk-drag 3.2s cubic-bezier(0.32, 0.72, 0, 1) infinite; }
.mk-dmg__ghost img { width: 64px; height: 64px; }
@keyframes mk-drag { 0%, 12% { transform: translate(0, 0); opacity: 0; } 20% { opacity: .85; } 70% { transform: translate(min(23vw, 238px), 0) scale(.9); opacity: .85; } 80%, 100% { transform: translate(min(23vw, 238px), 0) scale(.6); opacity: 0; } }
/* macOS alert */
.mk-alert { display: grid; place-items: center; }
.mk-alert__card { width: 250px; display: grid; justify-items: center; gap: 6px; padding: 18px 16px 14px; border-radius: 14px; background: rgba(246, 246, 248, .98); box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .45), 0 0 0 .5px rgba(0, 0, 0, .15); text-align: center; }
.mk-alert__icon { width: 52px; height: 52px; }
.mk-alert__card b { font-size: 13px; } .mk-alert__card p { margin: 0 0 6px; color: #3A3A3C; font-size: 11px; }
.mk-alert__btn { width: 100%; padding: 5px 0; border-radius: 7px; background: #E3E3E7; font-weight: 500; }
.mk-alert__btn.is-hit { background: #0A7CFF; color: #fff; }
/* System Settings */
.mk-set { border-radius: 12px; background: #fff; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .35); overflow: hidden; }
.mk-set__body { display: grid; grid-template-columns: 112px 1fr; min-height: 170px; }
.mk-set aside { display: grid; align-content: start; gap: 2px; padding: 8px 6px; background: #F2F2F4; border-right: 1px solid #E2E2E6; }
.mk-set aside span { padding: 3px 7px; border-radius: 6px; color: #3A3A3C; font-size: 11px; } .mk-set aside .is-on { background: #0A7CFF; color: #fff; }
.mk-set__main { padding: 12px; } .mk-set__main small { display: block; margin-bottom: 6px; font-weight: 700; color: #6E6E73; }
.mk-set__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 8px; background: #F5F5F7; margin-bottom: 6px; font-size: 11px; }
.mk-set__row em { font-style: normal; color: #6E6E73; }
.mk-set__row b { flex: none; padding: 3px 9px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .2), 0 1px 2px rgba(0, 0, 0, .1); font-weight: 500; }
/* SmartScreen */
.mk-ss { padding: 18px 18px 14px; background: #0067B8; color: #fff; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45); font-family: "Segoe UI", system-ui, sans-serif; }
.mk-ss b { display: block; font-size: 19px; font-weight: 400; margin-bottom: 8px; } .mk-ss p { margin: 0 0 8px; font-size: 11.5px; opacity: .95; }
.mk-ss u { display: inline-block; text-decoration: underline; margin-bottom: 8px; border-radius: 3px; }
.mk-ss__more p { opacity: .85; }
.mk-ss__btns { display: flex; justify-content: flex-end; gap: 6px; } .mk-ss__btns span { min-width: 84px; padding: 5px 10px; text-align: center; border: 1px solid #fff; }
.mk-ss__run.is-hit { background: #fff; color: #0067B8; }
/* installer */
.mk-ins { background: #F3F3F3; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45), 0 0 0 1px #CFCFCF; font-family: "Segoe UI", system-ui, sans-serif; }
.mk-ins__tb { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; background: #fff; } .mk-ins__tb img { width: 16px; height: 16px; } .mk-ins__tb span { flex: 1; } .mk-ins__tb i { font-style: normal; }
.mk-ins__body { padding: 14px; background: #fff; border-top: 1px solid #E5E5E5; border-bottom: 1px solid #E5E5E5; } .mk-ins__body p { margin: 4px 0 10px; color: #444; }
.mk-ins__path { padding: 5px 8px; border: 1px solid #ADADAD; background: #fff; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-ins__bar { height: 12px; margin-top: 12px; border: 1px solid #BCBCBC; background: #E6E6E6; } .mk-ins__bar i { display: block; height: 100%; width: 0; background: #06B025; animation: mk-prog 3s ease-in-out infinite; }
.mk-ins__btns { display: flex; justify-content: flex-end; gap: 6px; padding: 10px; } .mk-ins__btns span { min-width: 64px; padding: 3px 8px; text-align: center; border: 1px solid #ADADAD; background: #E1E1E1; }
.mk-ins__btns .is-hit { border-color: #0078D7; }
/* Lock in card + list (ai45's own look) */
.mk-li { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-family: inherit; }
.mk-li__card { display: flex; gap: 10px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .3); }
.mk-li__card svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 11px; background: #DCE8FD; color: #2F6FE4; }
.mk-li__card b { display: block; } .mk-li__card small { color: #6B6F78; }
.mk-li__list { display: grid; gap: 4px; padding: 12px; border-radius: 16px; background: #18181C; color: #F4F4F5; }
.mk-li__list b { margin-bottom: 4px; }
.mk-li__list span { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 9px; }
.mk-li__list span i { width: 16px; height: 16px; border-radius: 5px; background: rgba(255, 255, 255, .14); }
.mk-li__list span em { margin-left: auto; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); }
.mk-li__list span.is-on { background: rgba(255, 106, 43, .14); } .mk-li__list span.is-on em { background: #FF6A2B; border-color: #FF6A2B; }
/* menu bar / tray */
.mk-tray { justify-self: center; width: 280px; }
.mk-tray__bar { display: flex; justify-content: flex-end; gap: 14px; padding: 5px 12px; border-radius: 8px; background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .15); font-weight: 600; }
.mk-tray__bar svg { width: 13px; height: 13px; }
.mk-tray__ai { padding: 0 6px; border-radius: 5px; background: rgba(0, 0, 0, .1); }
.mk-tray__menu { display: grid; margin: 6px 0 0 auto; width: 200px; padding: 5px; border-radius: 10px; background: rgba(246, 246, 248, .98); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .4), 0 0 0 .5px rgba(0, 0, 0, .15); }
.mk-tray__menu span { padding: 3px 9px; border-radius: 5px; } .mk-tray__menu span:nth-child(3) { background: #0A7CFF; color: #fff; }
.mk-tray__menu .dim { color: #8E8E93; } .mk-tray__menu hr { width: 100%; border: 0; border-top: 1px solid #DCDCE0; margin: 4px 0; }

@media (max-width: 960px) { .dl-feats { grid-template-columns: 1fr 1fr; } .dl-step { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .dl { padding: 16px 16px 120px; } .dl-hero { padding: 44px 18px 40px; border-radius: 26px; }
  .dl-feats { grid-template-columns: 1fr; } .dl-step { padding: 18px; } .dl-step__pic { padding: 14px; min-height: 0; }
  .mk-li { grid-template-columns: 1fr; } .mk-set__body { grid-template-columns: 1fr; } .mk-set aside { display: none; }
}
@media (prefers-reduced-motion: reduce) { .dl *, .dl *::before { animation: none !important; } .dl-step.rv { opacity: 1; transform: none; } }
