/* ═════════════════════════════════════════════════════════════════
   Screenchart — Download page styles (extends landing.css)
   ═════════════════════════════════════════════════════════════════ */

.dl-main { padding-bottom: 40px; }

/* ── hero ──────────────────────────────────────────────────────────── */
.dl-hero { text-align: center; padding: 76px 0 20px; }
.dl-logo {
  width: 74px; height: 74px; border-radius: 19px; margin: 0 auto 28px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  border: 1px solid var(--accent-line);
}
.dl-logo svg { width: 40px; height: 40px; }
.dl-hero h1 {
  font-size: 46px; line-height: 1.05; letter-spacing: -.035em; font-weight: 800;
  margin: 0 0 16px; text-wrap: balance;
}
.dl-sub {
  font-size: 18px; color: var(--muted); max-width: 600px; margin: 0 auto 32px;
  line-height: 1.55; text-wrap: pretty;
}
.dl-primary .ico { font-size: 21px; }
.dl-meta { margin-top: 18px; font-size: 13px; color: var(--muted); font-family: var(--mono); }
.dl-meta a { color: var(--accent); }
.dl-meta a:hover { text-decoration: underline; }
.dl-meta .sep { opacity: .45; margin: 0 9px; }
.dl-source {
  margin: 16px auto 0; max-width: 520px; font-size: 14px; color: var(--muted); line-height: 1.55;
}
.dl-source a { color: var(--accent); font-weight: 600; }
.dl-source a:hover { text-decoration: underline; }

/* ── platform cards ────────────────────────────────────────────────── */
.dl-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  max-width: 820px; margin: 20px auto 0;
}
.dl-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 30px 28px;
  display: flex; flex-direction: column; gap: 22px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.dl-card.matched { border-color: var(--accent-line); box-shadow: var(--shadow-md); }
.dl-you {
  position: absolute; top: 16px; right: 16px; display: none;
  align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); padding: 4px 10px 4px 8px; border-radius: 999px;
}
.dl-card.matched .dl-you { display: inline-flex; }
.dl-you .ico { font-size: 13px; }
.dl-os { display: flex; align-items: center; gap: 15px; }
.dl-os-ico {
  width: 50px; height: 50px; flex: 0 0 50px; border-radius: 13px;
  background: var(--surface-2); display: grid; place-items: center; color: var(--tx);
}
.dl-os-ico svg { width: 28px; height: 28px; }
.dl-os h3 {
  font-size: 21px; font-weight: 700; margin: 0; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 10px;
}
.dl-pill {
  font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px;
}
.dl-os-sub { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.dl-get { width: 100%; }
.dl-get .dl-size { font-weight: 500; opacity: .8; font-family: var(--mono); font-size: 13px; }
.dl-primary.dl-get .dl-size { opacity: .85; }

/* ── unsigned-app trust callout (confident, important — not a warning) ── */
.dl-trust {
  max-width: 820px; margin: 26px auto 0;
  display: flex; gap: 15px; align-items: flex-start;
  background:
    linear-gradient(0deg, var(--accent-soft), var(--accent-soft)),
    var(--surface);
  border: 1px solid var(--accent-line); border-radius: var(--r-lg);
  padding: 20px 24px; box-shadow: var(--shadow-sm);
}
.dl-trust-ico {
  font-size: 26px; color: var(--accent); flex: 0 0 auto; margin-top: 1px;
  font-variation-settings: 'FILL' 1;
}
.dl-trust-body { flex: 1; }
.dl-trust-lead {
  margin: 0 0 5px; font-size: 15px; font-weight: 700; color: var(--tx); letter-spacing: -.01em;
}
.dl-trust-body p {
  margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty;
}
.dl-trust-toggle {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  background: var(--surface); border: 1px solid var(--accent-line); border-radius: var(--r);
  padding: 7px 13px; cursor: pointer;
  font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--accent);
  transition: background .15s var(--ease);
}
.dl-trust-toggle:hover { background: var(--accent-soft); }
.dl-trust-toggle .ico { font-size: 17px; }
.dl-trust-toggle[aria-expanded="true"] .ico { }

/* ── inline first-launch steps (accordion) ──────────────────────────── */
.dl-howto {
  max-width: 820px; margin: 14px auto 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.dl-howto-tabs { display: flex; gap: 2px; padding: 8px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.dl-tab {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: var(--r);
  background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 13.5px; font-weight: 600; color: var(--muted);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.dl-tab .ico { font-size: 17px; }
.dl-tab:hover { color: var(--tx); }
.dl-tab.active { background: var(--surface); color: var(--tx); box-shadow: var(--shadow-sm); }
.dl-howto .dl-steps { padding: 24px 26px 26px; }

/* ── first-launch modal ─────────────────────────────────────────────── */
.dl-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.dl-modal[hidden] { display: none; }
.dl-modal-backdrop {
  position: absolute; inset: 0; background: rgba(15, 18, 26, .55);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: dlFade .18s var(--ease);
}
.dl-modal-card {
  position: relative; width: 100%; max-width: 500px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); padding: 28px 30px 26px;
  animation: dlPop .22s var(--ease);
}
@keyframes dlFade { from { opacity: 0; } }
@keyframes dlPop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.dl-modal-x {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 9px;
  background: none; border: 1px solid transparent; color: var(--muted); cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.dl-modal-x:hover { background: var(--surface-2); color: var(--tx); }
.dl-modal-x .ico { font-size: 20px; }
.dl-modal-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; padding-right: 34px; }
.dl-modal-ico {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); display: grid; place-items: center;
  border: 1px solid var(--accent-line);
}
.dl-modal-ico .ico { font-size: 25px; }
.dl-modal-head h3 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; margin: 3px 0 6px; }
.dl-modal-sub {
  display: flex; align-items: center; gap: 6px; margin: 0;
  font-size: 13px; font-weight: 600; color: var(--ok);
}
.dl-modal-sub .ico { font-size: 16px; }
.dl-modal-why {
  margin: 14px 0 0; font-size: 13px; line-height: 1.55; color: var(--muted); text-wrap: pretty;
}
.dl-modal-foot { margin-top: 22px; display: flex; justify-content: flex-end; }
.dl-steps ol li {
  position: relative; padding: 0 0 14px 40px; counter-increment: step;
  font-size: 14.5px; line-height: 1.55; color: var(--tx);
}
.dl-steps ol li:last-child { padding-bottom: 0; }
.dl-steps ol li::before {
  content: counter(step); position: absolute; left: 0; top: -1px;
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border-2); color: var(--muted);
}
.dl-steps ol li b { font-weight: 650; color: var(--tx); }
.dl-steps-alt {
  display: flex; align-items: flex-start; gap: 9px; margin: 18px 0 0; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px; line-height: 1.55; color: var(--muted);
}
.dl-steps-alt .ico { font-size: 17px; color: var(--muted); flex: 0 0 auto; margin-top: 1px; }
.dl-steps-alt a { color: var(--accent); }
.dl-steps-alt a:hover { text-decoration: underline; }

/* ── prefer the terminal callout ───────────────────────────────────── */
.dl-cli {
  max-width: 820px; margin: 40px auto 0; text-align: center;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 38px 28px;
}
.dl-cli h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; }
.dl-cli p { font-size: 15px; color: var(--muted); margin: 0 auto 22px; max-width: 480px; line-height: 1.55; }
.dl-cli-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* placeholder emphasis (subtle dashed underline so unfilled values are visible) */
.ph { border-bottom: 1px dashed var(--border-2); }

/* ── responsive ────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .dl-cards { grid-template-columns: 1fr; max-width: 440px; }
  .dl-hero h1 { font-size: 38px; }
}
