/* /download, Phase 7 (owner, 15 Oct 2026): "Jalten for Mac" with a real screenshot of the app beside it, the Mac
   download as a visibly disabled button with its "Coming soon" status, and the browser app as the working
   alternative. New rules only, built from the site's tokens (tokens.css, home.css): assets/jalten/download.css stays
   the prototype's, unchanged (scripts/site.test.mjs), and still styles the "Using Jalten at work" section. Loaded by
   download.html only, after site.css.

   Layout: one column on phones and tablets in reading order (the Mac app, the browser app, the picture); from 960px
   the picture sits beside the Mac app and the browser card runs the full width under both. */

.dlm-hero { padding: clamp(36px, 6vw, 72px) 0 0; }
.dlm-grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "alt" "shot";
  gap: 32px; align-items: center;
}
.dlm-copy { grid-area: copy; min-width: 0; }
.dlm-alt { grid-area: alt; }
.dlm-shot { grid-area: shot; }
@media (min-width: 960px) {
  .dlm-grid { grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr); grid-template-areas: "copy shot" "alt alt"; gap: 48px clamp(40px, 4.5vw, 64px); }
}

/* ---------- The app ---------- */
.dlm-id { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; }
.dlm-icon { display: block; width: 56px; height: 56px; border-radius: 20%; box-shadow: 0 1px 2px rgba(16, 27, 50, 0.06), 0 8px 22px rgba(16, 27, 50, 0.12); }
.dlm-id .dl-kicker { margin: 0; }
.dlm-copy h1 { margin: 0; font-size: clamp(38px, 5vw, 58px); line-height: 1.02; letter-spacing: -0.04em; color: var(--t1); }
.dlm-lead { margin: 16px 0 0; max-width: 44ch; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--t2); }

/* The Mac download while it is coming soon: a real <button disabled>, so it cannot be focused, clicked or submitted,
   and it says why in its own label and in the sentence it is described by. It looks unavailable without fading to
   an unreadable ghost: a quiet fill, the dashed edge the site uses for "not yet" (.soon-tag, .plat-tag), and text
   that still reads at about 4.8:1 (disabled controls are exempt from WCAG 1.4.3, but it should still be legible). */
.dlm-mac { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 30px; }
.dlm-mac:empty { display: none; }
.btn.dlm-soon-btn[disabled],
.btn.dlm-soon-btn[disabled]:hover,
.btn.dlm-soon-btn[disabled]:active {
  opacity: 1; min-height: 48px; padding: 0 20px; border: 1px dashed var(--line-strong); border-radius: 10px;
  background: var(--canvas-2); color: var(--t2); box-shadow: none; cursor: not-allowed; transform: none;
  font-size: 15px; font-weight: 600;
}
.dlm-soon-btn .icon { color: var(--ink-4); }
.dlm-badge {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px 0 10px;
  border-radius: 99px; background: var(--sky); border: 1px solid var(--sky-line);
  color: var(--blue-text); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.dlm-badge .icon { font-size: 15px; }
.dlm-note { margin: 14px 0 0; max-width: 52ch; font-size: 14px; line-height: 1.6; color: var(--t2); }
.dlm-note:empty { display: none; }
.dlm-note b { font-weight: 600; color: var(--t1); }
.dlm-note code { font-family: var(--mono); font-size: 12px; word-break: break-all; }
.dlm-copy .plat-guide { margin-top: 10px; }

/* ---------- The working alternative: the browser app ---------- */
.dlm-alt {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 22px; align-items: center;
  padding: 24px clamp(20px, 3vw, 32px); border-radius: 18px; background: var(--surface); border: 1px solid var(--hair);
  box-shadow: 0 1px 2px rgba(16, 27, 50, 0.04), 0 20px 50px rgba(16, 27, 50, 0.06);
}
.dlm-alt h2 { margin: 0; font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; }
.dlm-alt p { margin: 6px 0 0; max-width: 62ch; font-size: 14.5px; line-height: 1.55; color: var(--t2); }
.dlm-alt-acts { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dlm-alt-acts .text-link { min-height: 32px; font-size: 14.5px; color: var(--blue-text); }
.dlm-alt-acts .text-link:hover { color: var(--t1); }

/* ---------- The picture: the real workspace, in a plain rounded frame on a soft sky ground ---------- */
.dlm-shot { position: relative; margin: 0; padding: clamp(12px, 1.6vw, 20px) clamp(12px, 1.6vw, 20px) clamp(10px, 1.2vw, 14px); border-radius: 22px;
  background: radial-gradient(120% 90% at 85% 0%, #dcebff 0%, var(--sky) 45%, var(--sky-2) 100%); border: 1px solid var(--sky-line); }
.dlm-shot img {
  display: block; width: 100%; height: auto; aspect-ratio: 2560 / 1600; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--hair);
  box-shadow: 0 1px 2px rgba(16, 27, 50, 0.05), 0 18px 44px -10px rgba(16, 27, 50, 0.22);
}
.dlm-shot figcaption { margin: 10px 2px 0; font-size: 13px; line-height: 1.45; color: var(--t2); }

/* ---------- Using Jalten at work: the prototype's section, a little closer ---------- */
.download .dlm-hero + .dl-company.wrap { margin-top: clamp(56px, 7vw, 96px); }

@media (max-width: 900px) {
  .dlm-alt { grid-template-columns: auto minmax(0, 1fr); }
  .dlm-alt-acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
}
@media (max-width: 520px) {
  .dlm-mac .btn.dlm-soon-btn[disabled] { width: 100%; white-space: normal; text-align: center; padding: 10px 16px; }
  .dlm-alt { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .dlm-alt .plat-ic { width: 40px; height: 40px; border-radius: 10px; font-size: 20px; }
  .dlm-alt-acts .btn { width: 100%; }
}
