/* Página /app — download dos apps Android (tema claro, responsivo). */
:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --ink: #111317;
  --soft: #45494f;
  --muted: #69717c;
  --line: #e1e4e8;
  --orange: #ff6a00;
  --orange-ink: #c24d00;
  --radius: 16px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    'Inter',
    'Segoe UI',
    system-ui,
    -apple-system,
    Roboto,
    sans-serif;
  line-height: 1.5;
}
[hidden] {
  display: none !important;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--orange-ink);
}
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.dl-top {
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.dl-brand img {
  display: block;
  width: 168px;
  height: auto;
}
.dl-link {
  font-weight: 700;
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.dl-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px 16px 48px;
}
.dl-hero {
  max-width: 640px;
  margin: 24px 0 32px;
}
.dl-eyebrow {
  margin: 0;
  color: var(--orange-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dl-hero h1 {
  margin: 6px 0 10px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.dl-lead {
  margin: 0;
  color: var(--soft);
  font-size: 17px;
}

/* Escanear: QR grande à esquerda, explicação à direita. */
.dl-scan {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(17, 19, 23, 0.04);
}
.dl-scan-qr {
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  line-height: 0;
}
.dl-scan-qr img {
  width: 220px;
  height: 220px;
  display: block;
}
.dl-scan-text h2 {
  margin: 0 0 6px;
  font-size: 22px;
}
.dl-scan-text p {
  margin: 0;
  color: var(--soft);
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.dl-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  grid-template-areas:
    'icon body qr'
    'button button qr';
  gap: 16px 18px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(17, 19, 23, 0.04);
}
.dl-icon {
  grid-area: icon;
  width: 64px;
  height: 64px;
  border-radius: 14px;
}
.dl-body {
  grid-area: body;
  min-width: 0;
}
.dl-kind {
  margin: 0 0 2px;
  color: var(--orange-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dl-body h2 {
  margin: 0 0 4px;
  font-size: 20px;
}
.dl-body p {
  margin: 0;
  color: var(--soft);
}
.dl-body .dl-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.dl-body .dl-ota {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
/* Impressão digital (SHA-256) do APK publicado, para conferir o download. */
.dl-body .dl-sha {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.dl-body .dl-sha p {
  margin: 0;
}
.dl-body .dl-sha-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.dl-body .dl-sha code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--soft);
  overflow-wrap: anywhere;
}
.dl-body .dl-sha-help {
  margin-top: 4px;
  font-size: 12px;
}
.dl-copy {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 8px;
  padding: 2px 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.dl-copy:hover,
.dl-copy:focus-visible {
  border-color: var(--orange);
  color: var(--orange-ink);
}
.dl-mini-qr {
  grid-area: qr;
  margin: 0;
  align-self: start;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.dl-mini-qr img {
  display: block;
  width: 124px;
  height: 124px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.dl-mini-qr figcaption {
  margin-top: 4px;
}
.dl-button {
  grid-area: button;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.dl-button:hover {
  background: #e85f00;
}
.dl-button[aria-disabled='true'] {
  background: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

.dl-help {
  margin-top: 32px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.dl-help h2 {
  margin: 0 0 8px;
  font-size: 18px;
}
.dl-help ol {
  margin: 0;
  padding-left: 20px;
  color: var(--soft);
}
.dl-help li + li {
  margin-top: 6px;
}
.dl-help h3 {
  margin: 18px 0 8px;
  font-size: 16px;
}
.dl-updates {
  margin: 0;
  padding-left: 20px;
  color: var(--soft);
}
.dl-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.dl-foot {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px 32px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 920px) {
  .dl-card {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas:
      'icon body'
      'qr qr'
      'button button';
  }
  .dl-mini-qr {
    justify-self: start;
  }
}
@media (max-width: 720px) {
  .dl-grid {
    grid-template-columns: 1fr;
  }
  .dl-button {
    justify-self: stretch;
  }
  .dl-scan {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .dl-scan-qr img {
    width: min(220px, 60vw);
    height: auto;
  }
}
/* No celular o QR some: o cartão volta ao formato simples. */
.dl-on-phone .dl-card {
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-areas:
    'icon body'
    'button button';
}

/* Telas de toque: os links do rodapé ganham área de toque de 40 px. */
@media (max-width: 820px), (pointer: coarse) {
  .dl-foot a {
    display: inline-block;
    padding-block: 11px;
  }
}
