/* Página de download (pt, en, es). Usa as cores, fontes, topo e rodapé de legal.css.
   Um sistema por vez no centro (download.js escolhe), os outros numa linha logo abaixo, e a ajuda recolhida. */

/* o rodapé fica no fim da tela mesmo com pouca coisa na página (telas altas) */
.dl-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.dl-page main { flex: 1 0 auto; width: 100%; }

.dl { max-width: 640px; text-align: center; padding-top: clamp(48px, 10vh, 120px); }
.dl h1 { margin-bottom: 0; }
.dl [hidden] { display: none !important; }

.dl-chan { display: inline-block; margin-top: 14px; padding: 3px 10px; border-radius: 999px; background: #f4a94022; color: #f4a940; font-size: 13px; font-weight: 600; }

/* o sistema escolhido */
.dl-panel { margin: 32px 0 0; }
.dl-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 30px; border-radius: 999px; background: var(--brand); color: #01022f; font: 700 18px/1.2 var(--body); text-decoration: none; margin: 0; }
.dl-btn:hover { filter: brightness(1.08); }
.dl-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.dl-btn--line { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.dl-btn--line:hover { filter: none; background: color-mix(in srgb, var(--brand) 12%, transparent); }
.dl-pair { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.dl-pair .dl-btn { min-width: 200px; }
.dl-meta { margin: 14px 0 0; color: var(--faint); font-size: 14px; line-height: 1.5; }
.dl-pick { margin: 14px auto 0; max-width: 420px; font-size: 15px; line-height: 1.5; }
.dl-soon { margin: 0; color: var(--muted); font-size: 17px; }

/* Selos oficiais das lojas: arte original, sem mudar cor, proporção nem texto; nunca menos de 40 px de altura,
   com área livre de 1/4 da altura em volta. No celular o selo é o botão principal (56 px); a Microsoft Store,
   alternativa ao instalador, fica com 40 px. */
.dl-badge { display: inline-block; line-height: 0; border-radius: 8px; vertical-align: middle; }
.dl-badge img { display: block; height: 40px; width: auto; }
.dl-badge--main img { height: 56px; }
.dl-alt { margin: 18px 0 0; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--faint); font-size: 14px; }
.dl-alt .dl-badge { position: relative; top: 1px; } /* "ou" só de minúsculas: centra no selo */

/* os outros sistemas: uma linha discreta */
.dl-others { margin: 40px auto 0; padding-top: 20px; max-width: 560px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-size: 15px; line-height: 1.6; }
.dl-others span { color: var(--faint); }
.dl-others a { color: var(--muted); text-decoration: none; }
.dl-others a:hover { color: var(--text); text-decoration: underline; }

/* ajuda recolhida */
.dl-help { margin: 56px auto 0; max-width: 560px; text-align: left; }
.dl-help details { border-bottom: 1px solid var(--line); }
.dl-help details:first-of-type { border-top: 1px solid var(--line); }
.dl-help summary { cursor: pointer; list-style: none; position: relative; padding: 14px 32px 14px 0; color: var(--text); font-size: 15px; font-weight: 600; }
.dl-help summary::-webkit-details-marker { display: none; }
.dl-help summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; margin-top: -8px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg); transition: transform .15s; }
.dl-help details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.dl-help summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.dl-help details p, .dl-help details li { font-size: 15px; line-height: 1.6; }
.dl-help details p { margin: 0 0 12px; }
.dl-help ol { margin: 0 0 12px; padding-left: 22px; }
.dl-help li { margin: 4px 0; }
.dl-help code { font-size: 13.5px; }
.dl-contact { margin: 20px 0 0; color: var(--faint); font-size: 14px; text-align: center; }

@media (max-width: 560px) {
  .dl { padding-top: 40px; }
  .dl-btn { width: 100%; }
  .dl-pair .dl-btn { min-width: 0; }
  .dl-others { gap: 4px 14px; }
  .dl-others span { flex-basis: 100%; }
  .dl-help { margin-top: 44px; }
}
/* telas muito grandes: a mesma página, um degrau maior */
@media (min-width: 2200px) {
  .dl { max-width: 760px; }
  .dl h1 { font-size: 56px; }
  .dl-btn { min-height: 64px; padding: 0 36px; font-size: 20px; }
  .dl-meta, .dl-others, .dl-pick, .dl-soon, .dl-help summary, .dl-help details p, .dl-help details li { font-size: 17px; }
  .dl-alt, .dl-contact { font-size: 16px; }
}
