/* ============================================================================
   Rove - download page
   Matches the Figma "DL1 - Download - Desktop" frame. Reuses the app.css design
   tokens (--bg, --text-2, --accent, ...). The install button is wired up by
   js/download.js from GET /api/update/windows/installer.
   ========================================================================== */

.dl-body {
  background: var(--bg);
  color: var(--text-heading);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* -- Navigation ------------------------------------------------------------ */
.dl-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 12, 16, .85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.dl-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 72px;
  padding: 0 clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.dl-links { display: flex; align-items: center; gap: 32px; }
.dl-links a { color: var(--text-2); font-size: 14px; text-decoration: none; transition: color .15s ease; }
.dl-links a:hover { color: var(--text); }
.dl-actions { display: flex; align-items: center; gap: 12px; }

/* -- Hero ------------------------------------------------------------------ */
.dl-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: 96px clamp(20px, 5vw, 48px) 72px;
}
.dl-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-subtle);
  color: var(--accent-hover);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}
.dl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.dl-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 700;
  text-wrap: balance;
}
.dl-sub {
  margin: 0;
  max-width: 620px;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.55;
  color: var(--text-2);
}
.dl-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.dl-ctas .btn { display: inline-flex; align-items: center; gap: 10px; }
.dl-ctas .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.is-disabled { opacity: .5; pointer-events: none; }
.dl-meta { margin: 0; font-size: 13px; color: var(--text-3); }
.dl-note { margin: 0; font-size: 13px; color: var(--warning); }

/* -- Sections -------------------------------------------------------------- */
.dl-section {
  padding: 24px clamp(20px, 5vw, 48px) 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.dl-section h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -.03em;
  font-weight: 700;
}

/* -- Feature cards --------------------------------------------------------- */
.dl-cards {
  width: 100%;
  max-width: 1344px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.dl-card {
  padding: 24px;
  border-radius: 16px;
  background: var(--surface-1);
  border: 1px solid var(--border);
}
.dl-card h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: var(--text-heading); }
.dl-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-2); }

/* -- Steps ----------------------------------------------------------------- */
.dl-steps {
  width: 100%;
  max-width: 1344px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.dl-step { display: flex; flex-direction: column; gap: 10px; }
.dl-num {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-subtle);
  color: var(--accent-hover);
  font-size: 15px;
  font-weight: 600;
}
.dl-step h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--text-heading); }
.dl-step p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-2); }

/* -- CTA card -------------------------------------------------------------- */
.dl-cta-card {
  width: 100%;
  max-width: 1344px;
  padding: clamp(32px, 5vw, 48px);
  border-radius: 20px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.dl-cta-card h2 { font-size: clamp(24px, 3vw, 32px); }
.dl-cta-card p { margin: 0; max-width: 520px; font-size: 16px; line-height: 1.5; color: var(--text-2); }

/* -- Footer ---------------------------------------------------------------- */
.dl-footer {
  border-top: 1px solid var(--border);
  padding: 56px clamp(20px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.dl-footer-top {
  max-width: 1344px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.dl-footer-brand .brand { margin-bottom: 12px; }
.dl-tagline { margin: 0; font-size: 14px; color: var(--text-3); }
.dl-footer-heading {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.dl-footer-col { display: flex; flex-direction: column; gap: 12px; }
.dl-footer-col a { color: var(--text-2); font-size: 15px; text-decoration: none; transition: color .15s ease; }
.dl-footer-col a:hover { color: var(--text); }
.dl-footer-bottom {
  max-width: 1344px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.dl-copy { margin: 0; font-size: 14px; color: var(--text-3); }
.dl-copy a { color: var(--text-3); text-decoration: none; }
.dl-copy a:hover { color: var(--text); }

/* -- Responsive ------------------------------------------------------------ */
@media (max-width: 900px) {
  .dl-links { display: none; }
  .dl-cards, .dl-steps { grid-template-columns: 1fr; }
  .dl-footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .dl-footer-top { grid-template-columns: 1fr; gap: 28px; }
  .dl-ctas { width: 100%; flex-direction: column; align-items: stretch; }
  .dl-ctas .btn { justify-content: center; }
}
