/* /download: ShiftHands for Mac (coming soon) + the waitlist form. Loaded after home.css and reuses
   its tokens, nav, buttons and footer. Meta blue only: no green, no orange, no purple. Mobile first. */
.dl-hero { position: relative; overflow-x: clip; isolation: isolate; padding: clamp(28px, 7vw, 88px) 0 clamp(24px, 4vw, 48px); }
.dl-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .dl-grid { grid-template-columns: 1.25fr .75fr; gap: 48px; } }
.dl-copy h1 { font-size: clamp(40px, 10vw, 72px); margin-top: 22px; line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.dl-copy h1 em { display: inline; }
.dl-copy .lede { font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); margin-top: 20px; max-width: 34em; text-wrap: pretty; }

.dl-form { margin-top: 30px; max-width: 540px; }
.dl-label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.dl-row { display: grid; gap: 10px; }
@media (min-width: 520px) { .dl-row { grid-template-columns: 1fr auto; } }
.dl-input {
  width: 100%; min-height: 52px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  font: 500 16px/1.2 var(--font); transition: border-color .2s, box-shadow .2s;
}
.dl-input::placeholder { color: var(--faint); }
.dl-input:hover { border-color: var(--sh-raised-hover); }
.dl-input:focus { outline: none; border-color: var(--blue-fb); box-shadow: 0 0 0 3px rgba(24, 119, 242, .28); }
.dl-input[aria-invalid="true"] { border-color: var(--sh-red); }
.dl-submit { width: 100%; }
@media (min-width: 520px) { .dl-submit { width: auto; } }
.dl-submit[disabled] { opacity: .7; cursor: progress; }
.dl-msg { margin-top: 10px; font-size: 14px; color: var(--muted); min-height: 1.4em; }
.dl-msg.err { color: var(--sh-red-text); }

.dl-done { display: flex; gap: 14px; align-items: flex-start; margin-top: 30px; max-width: 540px; padding: 18px 20px; border-radius: 20px; background: var(--blue-soft); border: 1px solid var(--sh-blue-line); }
.dl-done:focus { outline: none; }
.dl-done-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; }
.dl-done-title { font-weight: 700; font-size: 17px; }
.dl-done-sub { margin-top: 4px; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.dl-done-sub b { color: var(--text); font-weight: 600; }
.dl-fine { margin-top: 14px; color: var(--faint); font-size: 13px; }

.dl-art { position: relative; display: none; justify-items: center; align-items: center; min-height: 320px; }
@media (min-width: 900px) { .dl-art { display: grid; } }
.dl-halo { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(8, 102, 255, .22), transparent); }
.dl-art img { position: relative; width: 220px; height: auto; }

.dl-section { padding: clamp(40px, 7vw, 72px) 0 0; }
.dl-section:last-of-type { padding-bottom: clamp(56px, 9vw, 110px); }
.dl-h2 { font-size: clamp(26px, 5vw, 36px); font-weight: 750; }
.dl-reqs { display: grid; gap: 12px; margin-top: 22px; }
@media (min-width: 720px) { .dl-reqs { grid-template-columns: repeat(3, 1fr); } }
.dl-reqs li, .dl-steps li { display: grid; gap: 4px; padding: 20px 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line-2); }
.dl-reqs b { font-size: 20px; font-weight: 750; letter-spacing: -.01em; }
.dl-reqs span, .dl-steps li > span:last-child { color: var(--muted); font-size: 15px; }
.dl-note { margin-top: 14px; color: var(--faint); font-size: 14px; }
.dl-steps { display: grid; gap: 12px; margin-top: 22px; counter-reset: none; }
@media (min-width: 720px) { .dl-steps { grid-template-columns: repeat(3, 1fr); } }
.dl-steps b { font-size: 18px; font-weight: 700; margin-top: 8px; }
.dl-num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-text); font-weight: 800; font-size: 15px; }

/* No home.js on this page: keep the sticky nav readable over the content. */
.nav { background: rgba(24, 25, 26, .86); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom-color: var(--line); }

/* ?code=123456 (from the onboarding pairing link) and the Windows / Linux notice (download.js). */
.dl-code { margin-top: 22px; max-width: 540px; padding: 14px 18px; border-radius: 18px; background: var(--blue-soft); border: 1px solid var(--sh-blue-line); color: var(--muted); font-size: 15px; }
.dl-code b { color: var(--text); font-weight: 750; font-size: 20px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.dl-note a { color: var(--blue-text); text-underline-offset: 3px; }

/* Release flag (<html data-download="soon|live">, see download.html). */
html:not([data-download="live"]) .dl-live-only { display: none !important; }
html[data-download="live"] .dl-soon-only { display: none !important; }
.dl-get { margin-top: 28px; max-width: 540px; }
.dl-get-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; text-decoration: none; }
@media (min-width: 520px) { .dl-get-btn { width: auto; } }
.dl-get-meta { margin-top: 10px; color: var(--faint); font-size: 13px; }
html[data-download="live"] .dl-form { margin-top: 36px; }
/* Windows / Linux on a live page: the Mac button steps back, the waitlist leads. */
html[data-download="live"][data-platform] .dl-get-btn { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
/* Phones, PCs, Chromebooks: "Email me the download link" leads (site/get-app.css). */
.dl-mac-link { margin-top: 28px; }
/* A phone, PC or Chromebook: the download link leads; the Intel / Windows waitlist button steps back. */
html[data-device="other"] .dl-submit { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

/* After the Download click (site/download.js): what to do with the DMG. Intel Mac (Chromium's architecture hint): why the app won't open. */
.dl-next { margin-top: 18px; padding: 16px 20px; border-radius: 18px; background: var(--blue-soft); border: 1px solid var(--sh-blue-line); }
.dl-next:focus { outline: none; }
.dl-next-title { margin: 0 0 8px; color: var(--text); font-weight: 750; font-size: 16px; }
.dl-next-steps { margin: 0; padding-left: 22px; list-style: decimal; color: var(--muted); font-size: 15px; line-height: 1.6; }
.dl-next-steps b { color: var(--text); font-weight: 650; }
.dl-next-retry { margin: 10px 0 0; color: var(--faint); font-size: 13px; }
.dl-next-retry a, .dl-intel a { color: var(--blue-text); text-underline-offset: 3px; }
.dl-intel { margin-top: 14px; padding: 14px 18px; border-radius: 18px; background: var(--blue-soft); border: 1px solid var(--sh-blue-line); color: var(--text); font-size: 15px; line-height: 1.5; }
