/* /download (2026-11-20): the Haze Optimizer app page. Design canvas
   https://claude.ai/artifact/PzMA8xpoVGBWKyTVoeXEqU. Tokens from
   haze-tokens.css; logical properties so Arabic mirrors. Drawn from ui-lab's
   download-button, copy-button, sliding-tabs and progress-stepper. */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--label); font-family: var(--font-text); -webkit-font-smoothing: antialiased; }
a { color: var(--tint); }
a:hover { color: #c4ff85; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--tint); outline-offset: 3px; }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 16px; top: 16px; z-index: 50; background: var(--action); color: var(--bg); padding: 10px 14px; border-radius: var(--r-10); }

.dl-wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--page-gutter) 96px; }

.dl-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding: 72px 0 64px; }
.dl-hero-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.dl-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 12px; border-radius: var(--r-pill); background: rgba(157, 255, 58, .1); color: var(--tint); font-size: 13px; font-weight: 600; }
.dl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tint); }
.dl-hero h1 { margin: 0; font-family: var(--font-display); font-size: clamp(42px, 7vw, 68px); line-height: 1; font-weight: 800; font-stretch: 125%; text-transform: uppercase; letter-spacing: -.01em; }
.dl-lede { margin: 0; max-width: 560px; color: var(--label-2); font-size: 20px; line-height: 1.5; }
.dl-cta { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }
.dl-note { margin: 0; color: var(--label-3); font-size: 14px; }

.dl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 0; border-radius: var(--r-10); font: 600 16px/1 var(--font-text); text-decoration: none; cursor: pointer; transition: background-color .2s, box-shadow .2s, transform .15s; }
.dl-btn svg { width: 20px; height: 20px; flex: none; }
.dl-btn:active { transform: scale(.98); }
.dl-btn-primary { background: var(--action); color: var(--bg); }
.dl-btn-primary:hover { background: #fff; color: var(--bg); }
.dl-btn-quiet { background: transparent; color: var(--label); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.dl-btn-quiet:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }

.dl-phone { flex: 1 1 280px; display: flex; justify-content: center; }
.dl-phone-screen { width: 250px; height: 520px; padding: 44px 16px 0; border-radius: 44px; background: var(--bg); box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 14px var(--panel), 0 0 0 15px rgba(255, 255, 255, .12); display: flex; flex-direction: column; gap: 12px; overflow: hidden; font-size: 12px; }
.dl-ps-head { display: flex; justify-content: space-between; align-items: center; }
.dl-ps-head b { font-weight: 900; font-stretch: 125%; font-size: 21px; }
.dl-ps-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--r-pill); background: var(--panel); font-weight: 600; font-family: var(--font-data); }
.dl-ps-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--tint); }
.dl-ps-seg { display: flex; padding: 4px; border-radius: var(--r-pill); background: var(--panel); font-weight: 600; }
.dl-ps-seg span { flex: 1; padding: 8px 0; text-align: center; color: var(--label-2); border-radius: var(--r-pill); }
.dl-ps-seg .on { background: var(--action); color: var(--bg); }
.dl-ps-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 14px; border-radius: var(--r-20); background: var(--panel); }
.dl-ps-card b { font-size: 16px; }
.dl-ps-card small { color: var(--label-2); font-size: 11px; }
.dl-ps-ok { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(157, 255, 58, .12); color: var(--tint); }
.dl-ps-ok svg { width: 24px; height: 24px; }
.dl-ps-btn { width: 100%; padding: 10px 0; border-radius: var(--r-pill); background: var(--action); color: var(--bg); text-align: center; font-weight: 700; }
.dl-ps-row { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: var(--r-16); background: var(--panel); }
.dl-ps-th { width: 30px; height: 40px; flex: none; border-radius: 7px; background: linear-gradient(160deg, #2a2a31, #18181a); }
.dl-ps-row b { display: block; font-size: 12px; }
.dl-ps-row small { display: block; color: var(--label-2); font-size: 10.5px; margin-top: 2px; }
.dl-ps-tabs { margin-top: auto; margin-bottom: 14px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 10px 0; border-radius: var(--r-pill); background: var(--panel); color: var(--label-3); font-size: 9.5px; font-weight: 600; text-align: center; }
.dl-ps-tabs .on { color: var(--tint); }
.dl-ps-quiet { background: transparent; color: var(--label); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); font-weight: 500; }

.dl-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-bottom: 72px; }
.dl-card { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: var(--r-20); background: var(--panel); box-shadow: inset 0 0 0 1px var(--hairline); scroll-margin-top: 80px; }
.dl-card.is-yours { box-shadow: inset 0 0 0 1px rgba(157, 255, 58, .35); }
.dl-card-head { display: flex; align-items: center; gap: 14px; }
.dl-card-head h2 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 800; font-stretch: 112%; }
.dl-card-head p { margin: 4px 0 0; color: var(--label-2); font-size: 14px; }
.dl-tile { flex: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--r-10); background: var(--raised); color: var(--label); }
.dl-tile svg { width: 24px; height: 24px; }
.dl-yours { margin-inline-start: auto; padding: 6px 10px; border-radius: var(--r-pill); background: rgba(157, 255, 58, .1); color: var(--tint); font-size: 12px; font-weight: 600; white-space: nowrap; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--label-2); font-size: 13px; }
.dl-meta li { padding: 6px 10px; border-radius: var(--r-7); background: var(--raised); font-family: var(--font-data); }
.dl-row { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-row .dl-btn { flex: 1 1 180px; }
.dl-source { display: flex; align-items: center; gap: 10px; padding: 4px; padding-inline-start: 14px; border-radius: var(--r-10); background: var(--bg); }
.dl-source code { flex: 1; min-width: 0; overflow: hidden; color: var(--label-2); font: 13px/1.4 var(--font-code); white-space: nowrap; text-overflow: ellipsis; }
.dl-copy { flex: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-7); background: var(--raised); color: var(--label); font: 600 14px/1 var(--font-text); cursor: pointer; transition: background-color .2s, color .2s; }
.dl-copy:hover { background: var(--raised-2); }
.dl-copy.is-done { color: var(--tint); }
.dl-link { align-self: flex-start; margin-top: auto; font-size: 14px; }

.dl-section { display: flex; flex-direction: column; gap: 22px; padding-bottom: 80px; scroll-margin-top: 80px; }
.dl-section > h2 { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 800; font-stretch: 125%; text-transform: uppercase; }
.dl-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dl-feature { padding: 22px; border-radius: var(--r-16); background: var(--panel); box-shadow: inset 0 0 0 1px var(--hairline); }
.dl-feature h3 { margin: 0 0 8px; font-size: 17px; }
.dl-feature p { margin: 0; color: var(--label-2); font-size: 14px; line-height: 1.5; }

/* Tabs: a 12px track, 4px padding, 1px edge, so tabs are 7px (concentric). */
.dl-tabs { position: relative; display: flex; gap: 4px; max-width: 440px; padding: 4px; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hairline); }
.dl-tabs button { flex: 1; min-height: 44px; border: 0; border-radius: var(--r-7); background: transparent; color: var(--label-2); font: 600 15px/1 var(--font-text); cursor: pointer; transition: background-color .25s, color .25s; }
.dl-tabs button[aria-selected="true"] { background: var(--action); color: var(--bg); }
.dl-intro { margin: 0 0 14px; max-width: 760px; color: var(--label-2); font-size: 15px; line-height: 1.6; }
.dl-steps { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: dl-step; }
.dl-steps li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; padding-inline-start: 76px; border-radius: var(--r-16); background: var(--panel); box-shadow: inset 0 0 0 1px var(--hairline); counter-increment: dl-step; }
.dl-steps li::before { content: counter(dl-step); position: absolute; inset-inline-start: 22px; top: 20px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(157, 255, 58, .12); color: var(--tint); font-weight: 800; font-family: var(--font-data); }
.dl-steps h3 { margin: 0; font-size: 17px; }
.dl-steps p { margin: 0; color: var(--label-2); font-size: 15px; line-height: 1.6; }
.dl-steps b, .dl-tip b { color: var(--label); }
.dl-tip { margin: 14px 0 0; padding: 16px 18px; border-radius: var(--r-16); background: rgba(157, 255, 58, .06); color: var(--label-2); font-size: 14px; line-height: 1.6; }

.dl-q { padding: 20px 22px; border-radius: var(--r-16); background: var(--panel); box-shadow: inset 0 0 0 1px var(--hairline); }
.dl-q summary { cursor: pointer; font-size: 16px; font-weight: 700; }
.dl-q p { margin: 12px 0 0; color: var(--label-2); font-size: 15px; line-height: 1.6; }
.dl-section > .dl-q + .dl-q { margin-top: -8px; }

@media (max-width: 900px) {
  .dl-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-cards { grid-template-columns: minmax(0, 1fr); }
  .dl-card.is-yours { order: -1; }
}
@media (max-width: 560px) {
  .dl-hero { padding-top: 40px; gap: 40px; }
  .dl-phone { display: none; }
  .dl-features { grid-template-columns: minmax(0, 1fr); }
  .dl-card { padding: 20px; }
  .dl-cta .dl-btn { flex: 1 1 100%; }
  .dl-steps li { padding: 18px; padding-inline-start: 66px; }
  .dl-steps li::before { inset-inline-start: 18px; top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .dl-btn, .dl-copy, .dl-tabs button { transition: none; }
}

/* Haze Studio for Windows (2026-11-20): hidden until latest.json lists a Windows build. */
.dl-win[hidden] { display: none; }
.dl-win-lede { color: var(--label-2); margin: 0; }
