/* Loja de apps ACESSO+ TV. Paleta e fontes do manual da marca (as mesmas do site). */
@font-face {
  font-family: "Montserrat";
  src: url("/fontes/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Orbitron";
  src: url("/fontes/orbitron.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --noite: #0a0d12;
  --painel: #10151d;
  --linha: #1f2732;
  --grafite: #2b2f38;
  --ciano: #00e5ff;
  --azul: #1a86ff;
  --prata: #e6eaf0;
  --nevoa: #8a93a3;
  --texto: #c2cad6;
  --largura: 68rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--noite);
  color: var(--prata);
  font: 400 1rem/1.6 "Montserrat", system-ui, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { color: var(--prata); font-weight: 700; }
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ciano);
  outline-offset: 3px;
}

.topo, main, .rodape {
  width: 100%;
  max-width: var(--largura);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* topo */
.topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}
.marca {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  border-radius: 8px;
}
.marca img { width: auto; height: 2rem; }
.marca span {
  font: 700 0.95rem/1 "Orbitron", sans-serif;
  letter-spacing: 0.04em;
}
.marca b { color: var(--ciano); font-size: 1.25em; }
.ir-site {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nevoa);
  text-underline-offset: 4px;
}
.ir-site:hover { color: var(--prata); }

/* abertura: o arco de luz do manual atras do titulo */
.abertura {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
}
.abertura::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: -1.25rem;
  bottom: -1rem;
  width: 75%;
  background: url("/imagens/arco.svg") no-repeat center / 100% 100%;
  pointer-events: none;
}
.abertura h1 {
  font: 700 clamp(2.4rem, 8vw, 4.25rem)/1.02 "Orbitron", sans-serif;
  letter-spacing: -0.01em;
}
.abertura p {
  max-width: 34rem;
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: var(--texto);
}
.axo {
  width: auto;
  height: clamp(8rem, 24vw, 15rem);
  filter: drop-shadow(0 1.25rem 2.5rem rgba(0, 150, 255, 0.28));
}

/* lista de apps */
.apps { margin-top: 2.75rem; }
.apps-topo {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.apps-topo h2, .passos h2, .ajuda h2 {
  font: 600 1.375rem/1.25 "Orbitron", sans-serif;
}
.apps-topo p { font-size: 0.875rem; color: var(--nevoa); }
.lista { display: grid; gap: 1rem; }

.app {
  display: grid;
  grid-template-columns: 4rem 1fr;
  grid-template-areas: "icone info" "acoes acoes";
  gap: 1rem 1rem;
  padding: 1.25rem;
  background: var(--painel);
  border: 1px solid var(--linha);
  border-radius: 1.25rem;
}
.app-icone {
  grid-area: icone;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
}
.app-info { grid-area: info; min-width: 0; }
.app-nome { font: 600 1.25rem/1.3 "Orbitron", sans-serif; }
.versao {
  display: inline-block;
  font: 500 0.8125rem/1 "Montserrat", sans-serif;
  color: var(--nevoa);
  white-space: nowrap;
  vertical-align: 0.15em;
}
.app-resumo {
  max-width: 34rem;
  margin: 0.4rem 0 0.85rem;
  font-size: 0.9375rem;
  color: var(--texto);
}
.aparelhos { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.aparelhos li {
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--grafite);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #c9d1dc;
}
.app-meta { margin-top: 0.7rem; font-size: 0.8125rem; color: var(--nevoa); }

.app-acoes {
  grid-area: acoes;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--linha);
}
.codigo-rotulo {
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--nevoa);
}

/* o codigo do Downloader: uma tecla do controle por digito */
.teclas { display: flex; gap: 0.375rem; }
.tecla {
  display: grid;
  place-items: center;
  flex: 1 1 0;
  max-width: 2.6rem;
  height: 2.9rem;
  border: 1px solid #263040;
  border-radius: 0.625rem;
  background: linear-gradient(180deg, #19212c, #0e131a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 3px 0 #05070a, 0 6px 14px rgba(0, 0, 0, 0.35);
  /* Montserrat, nao Orbitron: no codigo cada digito precisa ser lido sem duvida (o 7 da Orbitron parece um L) */
  font: 700 1.5rem/1 "Montserrat", sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--ciano);
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.45);
  animation: apertar 0.3s ease-out both;
}
.tecla:nth-child(1) { animation-delay: 0.45s; }
.tecla:nth-child(2) { animation-delay: 0.56s; }
.tecla:nth-child(3) { animation-delay: 0.67s; }
.tecla:nth-child(4) { animation-delay: 0.78s; }
.tecla:nth-child(5) { animation-delay: 0.89s; }
.tecla:nth-child(6) { animation-delay: 1s; }
.tecla:nth-child(7) { animation-delay: 1.11s; }
.tecla:nth-child(8) { animation-delay: 1.22s; }
.tecla:nth-child(9) { animation-delay: 1.33s; }
.tecla:nth-child(10) { animation-delay: 1.44s; }
@keyframes apertar {
  45% {
    transform: translateY(3px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 0 #05070a, 0 2px 6px rgba(0, 0, 0, 0.35);
    color: #fff;
  }
}
.copiar {
  align-self: flex-start;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 0.625rem;
  background: none;
  font: 600 0.875rem/1.2 "Montserrat", sans-serif;
  color: var(--ciano);
  cursor: pointer;
}
.copiar:hover { border-color: var(--ciano); }
.copiar-aviso {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* sem codigo ainda: o endereco curto, como fica no campo do Downloader */
.endereco {
  padding: 0.75rem 0.9rem;
  border: 1px solid #263040;
  border-radius: 0.75rem;
  background: #0e131a;
  font-weight: 700;
  color: var(--ciano);
  overflow-wrap: anywhere;
}
.codigo-nota { margin-top: 0.5rem; font-size: 0.8125rem; color: var(--nevoa); }

.baixar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.25rem;
  border-radius: 0.875rem;
  background: linear-gradient(90deg, var(--ciano), var(--azul));
  font-weight: 700;
  color: #06080c;
  text-decoration: none;
}
.baixar:hover { filter: brightness(1.08); }
.baixar:focus-visible { outline-color: #fff; }

/* passo a passo */
.passos { margin-top: 4rem; }
.passos ol {
  counter-reset: passo;
  display: grid;
  gap: 0;
  margin-top: 1.25rem;
}
.passos li {
  counter-increment: passo;
  position: relative;
  padding: 1.1rem 0 1.1rem 3.5rem;
  border-top: 1px solid var(--linha);
}
.passos li::before {
  content: counter(passo);
  position: absolute;
  left: 0;
  top: 0.9rem;
  font: 700 1.75rem/1 "Orbitron", sans-serif;
  color: var(--ciano);
}
.passos h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.25rem; }
.passos p { font-size: 0.9375rem; color: var(--texto); max-width: 36rem; }
.celular {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--azul);
  border-radius: 0 0.75rem 0.75rem 0;
  background: rgba(26, 134, 255, 0.07);
}
.celular h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.25rem; }
.celular p { font-size: 0.9375rem; color: var(--texto); }

/* ajuda */
.ajuda {
  display: grid;
  justify-items: start;
  gap: 0.5rem;
  margin: 4rem 0 3.5rem;
}
.ajuda p { color: var(--texto); }
.whats {
  display: inline-flex;
  align-items: center;
  height: 3rem;
  margin-top: 0.5rem;
  padding: 0 1.25rem;
  border: 1px solid var(--ciano);
  border-radius: 0.875rem;
  font-weight: 700;
  color: var(--ciano);
  text-decoration: none;
}
.whats:hover { background: rgba(0, 229, 255, 0.08); }

.rodape {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--linha);
  font-size: 0.875rem;
  color: var(--nevoa);
}
.rodape nav { display: flex; gap: 1.25rem; }
.rodape a { text-decoration: none; }
.rodape a:hover { color: var(--prata); }

@media (min-width: 46rem) {
  .abertura { padding-top: 3rem; }
  .passos ol { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
}

@media (min-width: 58rem) {
  .app {
    grid-template-columns: 6rem 1fr 21rem;
    grid-template-areas: "icone info acoes";
    gap: 1.75rem;
    padding: 1.75rem;
  }
  .app-icone { width: 6rem; height: 6rem; border-radius: 1.4rem; }
  .app-nome { font-size: 1.5rem; }
  .app-acoes {
    justify-content: center;
    padding: 0 0 0 1.75rem;
    border-top: 0;
    border-left: 1px solid var(--linha);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tecla { animation: none; }
}
