/* Página /baixar (app de desktop). Só usa as variáveis dos temas. */
body.dl-page { overflow-y: auto; overflow-x: hidden; min-height: 100%; height: auto; background: var(--bg-rail); }
:root:not([data-theme=midnight]):not([data-theme=contrast]) body.dl-page {
  --brand: #6b38e8; --brand-hover: #5a2ad0;
  --bg-rail: #120b22; --bg-sidebar: #1f1640; --bg-panel: #26174f;
}

.dl-top {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1080px; margin: 0 auto; padding: 18px 24px;
}
.dl-brand { display: flex; align-items: center; gap: 10px; color: var(--text-strong); font-size: 17px; font-weight: 800; letter-spacing: -.01em; text-decoration: none; }
.dl-brand .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
.dl-open {
  display: inline-flex; align-items: center; gap: 2px; padding: 8px 10px 8px 14px; border-radius: 999px;
  color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s;
}
.dl-open:hover { background: var(--hover-strong); color: var(--text-strong); }
.dl-open .ico { transition: transform .2s; }
.dl-open:hover .ico { transform: translateX(2px); }

.dl-main { max-width: 1080px; margin: 0 auto; padding: 0 24px 48px; display: grid; gap: 72px; }

/* ---------- Destaque ---------- */
.dl-hero { position: relative; display: grid; justify-items: center; gap: 18px; padding: 72px 0 8px; text-align: center; }
.dl-glow {
  display: none;
}
.dl-hero > :not(.dl-glow) { position: relative; }
.dl-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--text-strong); font-size: 13px; font-weight: 700; letter-spacing: .01em;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 30%, transparent);
}
.dl-eyebrow .ico { color: var(--brand); }
.dl-hero h1 { margin: 4px 0 0; max-width: 720px; color: var(--text-strong); font-size: clamp(32px, 5.2vw, 52px); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.dl-lead { margin: 0; max-width: 620px; color: var(--text-muted); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.dl-cta { display: grid; justify-items: center; gap: 12px; margin-top: 14px; }
.dl-button {
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 30px 0 24px; border-radius: 16px;
  background: var(--brand); color: #fff; font-size: 17px; font-weight: 700; text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
  transition: background .15s, box-shadow .2s, transform .15s;
}
.dl-button:hover { background: var(--brand-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.dl-button:active { transform: translateY(0) scale(.98); }
.dl-button:hover .dl-button-icon .ico { animation: dl-nudge .7s ease-in-out infinite; }
.dl-button.disabled { pointer-events: none; background: var(--bg-input); color: var(--text-muted); box-shadow: none; }
.dl-button-icon { display: grid; }
.dl-meta { margin: 0; color: var(--text-muted); font-size: 13px; }
.dl-alt {
  margin-top: -4px; color: var(--text); font-size: 13px; font-weight: 600;
  text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px;
  transition: color .15s, text-decoration-color .15s;
}
.dl-alt:hover { color: var(--text-strong); text-decoration-color: currentColor; }
.dl-note {
  display: flex; align-items: flex-start; gap: 8px; max-width: 520px; margin: 4px 0 0; padding: 12px 14px; border-radius: 12px;
  background: var(--bg-panel); color: var(--text); font-size: 14px; line-height: 1.5; text-align: left; box-shadow: inset 0 0 0 1px var(--divider);
}
.dl-note .ico { flex-shrink: 0; margin-top: 2px; color: var(--brand); }

/* ---------- Passos ---------- */
.dl-steps h2 { margin: 0 0 20px; color: var(--text-strong); font-size: 24px; font-weight: 800; letter-spacing: -.02em; text-align: center; }
.dl-steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.dl-steps li {
  display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 16px;
  background: var(--bg-sidebar); box-shadow: inset 0 0 0 1px var(--divider);
}
.dl-steps li[hidden] { display: none; }
.dl-steps h3, .dl-features h3 { margin: 0; color: var(--text-strong); font-size: 16px; font-weight: 700; }
.dl-steps p, .dl-features p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.dl-steps strong { color: var(--text); font-weight: 600; }
.dl-step-num {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px;
  background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand); font-size: 14px; font-weight: 800;
}
.dl-step-warning .dl-step-num { background: color-mix(in srgb, var(--yellow, #f0b232) 18%, transparent); color: var(--yellow, #f0b232); }

/* Miniatura do aviso do Windows, para reconhecer a tela na hora. */
.dl-smartscreen {
  display: grid; gap: 6px; margin-top: auto; padding: 12px 14px 14px; border-radius: 8px; justify-items: start;
  background: #0f5fa8; color: #fff; font-size: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.dl-ss-title { font-size: 14px; font-weight: 600; }
.dl-ss-link { text-decoration: underline; opacity: .9; }
.dl-ss-button { justify-self: end; margin-top: 4px; padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .8); font-weight: 600; }
.dl-ss-link, .dl-ss-button { position: relative; }
.dl-ss-link::after, .dl-ss-button::after {
  content: ''; position: absolute; inset: -4px -6px; border: 2px solid #ffd54a; border-radius: 6px; animation: dl-pulse 1.8s ease-in-out infinite;
}
.dl-ss-button::after { animation-delay: .9s; }

/* Miniatura do aviso do Android: o botão Configurações e a chave "Permitir desta fonte". */
.dl-android-dialog {
  display: grid; gap: 10px; margin-top: auto; padding: 14px 16px; border-radius: 18px;
  background: #2b2930; color: #e6e1e5; font-size: 12px; line-height: 1.45; box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.dl-ad-actions { display: flex; justify-content: flex-end; gap: 18px; color: #d0bcff; font-weight: 600; }
.dl-ad-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; font-weight: 600;
}
.dl-ad-switch { position: relative; flex-shrink: 0; width: 34px; height: 20px; border-radius: 999px; background: #d0bcff; }
.dl-ad-switch::before { content: ''; position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%; background: #381e72; }
.dl-ad-settings, .dl-ad-switch { position: relative; }
.dl-ad-settings::after, .dl-ad-switch::after {
  content: ''; position: absolute; inset: -5px -7px; border: 2px solid #ffd54a; border-radius: 999px; animation: dl-pulse 1.8s ease-in-out infinite;
}
.dl-ad-switch::after { animation-delay: .9s; }

/* Windows ou Android: o script do <head> marca o sistema antes de pintar. */
:root:not([data-os=android]) .dl-page .only-android, :root[data-os=android] .dl-page .only-windows { display: none !important; }

/* ---------- Recursos ---------- */
.dl-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dl-features article { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 16px; transition: background .2s; }
.dl-features article:hover { background: var(--bg-sidebar); }
.dl-feature-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 4px; border-radius: 12px; background: var(--bg-panel); color: var(--text-strong); box-shadow: inset 0 0 0 1px var(--divider); }
.dl-features article:hover .dl-feature-icon { color: var(--brand); }

.dl-footer { padding: 28px 24px 36px; color: var(--text-muted); font-size: 13px; text-align: center; border-top: 1px solid var(--divider); }
.dl-footer a { color: var(--text); text-decoration: none; }
.dl-footer a:hover { color: var(--text-strong); text-decoration: underline; }

@keyframes dl-nudge { 50% { transform: translateY(3px); } }
@keyframes dl-pulse { 0%, 100% { opacity: 0; transform: scale(.96); } 40%, 60% { opacity: 1; transform: scale(1); } }

@media (max-width: 860px) {
  .dl-steps ol { grid-template-columns: 1fr; }
  .dl-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .dl-top { padding: 14px 16px; }
  .dl-main { padding: 0 16px 40px; gap: 56px; }
  .dl-hero { padding-top: 40px; }
  .dl-lead { font-size: 16px; }
  .dl-button { width: 100%; justify-content: center; }
  .dl-cta { width: 100%; }
  .dl-features { grid-template-columns: 1fr; }
  .dl-features article { padding: 16px 4px; }
}
:root[data-reduce-motion=true] .dl-page *, .dl-page.reduce-motion * { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .dl-page * { animation: none !important; transition: none !important; } }

/* ---------- Política de privacidade ---------- */
.pv-doc { max-width: 720px; margin: 0 auto; padding: 40px 24px 64px; color: var(--text); font-size: 15px; line-height: 1.7; }
.pv-doc h1 { margin: 0 0 6px; color: var(--text-strong); font-size: clamp(30px, 4.4vw, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; }
.pv-doc h2 { margin: 36px 0 8px; color: var(--text-strong); font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.pv-doc p, .pv-doc ul { margin: 0 0 12px; }
.pv-doc ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.pv-doc li::marker { color: var(--brand); }
.pv-doc strong { color: var(--text-strong); font-weight: 600; }
.pv-updated { color: var(--text-muted); font-size: 13px; }
.pv-summary {
  margin-top: 24px !important; padding: 16px 18px; border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 10%, var(--bg-sidebar)); color: var(--text-strong);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 26%, transparent);
}
.pv-contact { margin-top: 36px !important; padding-top: 20px; border-top: 1px solid var(--divider); color: var(--text-muted); font-size: 14px; }
@media (max-width: 520px) { .pv-doc { padding: 24px 16px 48px; } }
