/* Mini-site do Roll: visual 8bit do app (fonte Perfect, cantos retos), mas
   enxuto: quem mostra o app sao as capturas, nao a moldura. As cores vem das
   variaveis de tema em themes.css, as mesmas do app (DaisyUI, oklch). */

@font-face {
  font-family: 'Perfect';
  src: url('../perfect.ttf') format('truetype');
  font-display: swap;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Perfect', 'Segoe UI', system-ui, sans-serif;
  background-color: oklch(var(--b1));
  color: oklch(var(--bc));
  line-height: 1.6;
}

img { image-rendering: pixelated; }

h1, h2 { line-height: 1.15; margin: 0; }

/* todos os links em rosa, em qualquer tema. Rosa mais fechado no claro e mais
   aberto no escuro para segurar o contraste; o color-scheme vem do tema
   DaisyUI. A primeira linha e o fallback de quem nao tem light-dark(). */
a {
  color: #db2777;
  color: light-dark(#db2777, #f472b6);
}

a:hover { filter: brightness(1.15); }

/* ---- botoes 8bit: a unica moldura pesada da pagina ---- */
.btn8 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-family: inherit;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  color: oklch(var(--bc));
  background-color: oklch(var(--b1));
  border: 2px solid oklch(var(--bc));
  box-shadow: 4px 4px 0 oklch(var(--bc) / 0.8);
}

.btn8:hover { background-color: oklch(var(--b2)); }

.btn8:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 oklch(var(--bc) / 0.8);
}

.btn8.primario {
  background-color: oklch(var(--p));
  color: oklch(var(--pc));
}

.btn8.primario:hover { filter: brightness(1.06); }

.btn8-mini {
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  box-shadow: 2px 2px 0 oklch(var(--bc) / 0.6);
}

/* ---- seletores de idioma e tema: soltos no canto, sem barra ---- */
.canto {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 40;
  display: flex;
  gap: 0.5rem;
}

.tema-caixa { position: relative; }

.tema-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 240px;
  padding: 6px;
  background-color: oklch(var(--b1));
  border: 2px solid oklch(var(--bc));
}

/* precisa vencer o display:grid acima, senao o [hidden] nao esconde nada */
.tema-menu[hidden] { display: none; }

.tema-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0.5rem;
  font-family: inherit;
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
  color: oklch(var(--bc));
  background-color: transparent;
  border: none;
}

.tema-menu button:hover { background-color: oklch(var(--b2)); }

.tema-menu button.ativo {
  background-color: oklch(var(--p));
  color: oklch(var(--pc));
}

/* ---- miolo ---- */
main { max-width: 940px; margin: 0 auto; padding: 0 1rem; }

/* hero */
.hero { text-align: center; padding: 5rem 0 3rem; }

.logo-grande { width: 96px; height: 96px; }

.hero h1 {
  font-size: 4rem;
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
}

.tagline { font-size: 1.2rem; margin: 0.4rem 0 0; }

.sub {
  max-width: 520px;
  margin: 0.8rem auto 2rem;
  opacity: 0.6;
  font-size: 0.95rem;
}

.sub a { text-underline-offset: 3px; }

.btn-baixar { font-size: 1.2rem; padding: 0.85rem 1.7rem; }

.detalhes { font-size: 0.8rem; opacity: 0.5; margin: 1rem 0 0; }

/* galeria: a estrela da pagina */
.tela { margin: 0; }

.tela img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: auto;
  border: 2px solid oklch(var(--bc) / 0.5);
}

.tela figcaption {
  margin-top: 0.7rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.55;
}

.miniaturas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.miniaturas button {
  padding: 0;
  line-height: 0;
  cursor: pointer;
  background: none;
  border: 2px solid transparent;
  opacity: 0.55;
}

.miniaturas button:hover { opacity: 1; }

.miniaturas button.ativa {
  opacity: 1;
  border-color: oklch(var(--p));
}

.miniaturas img {
  width: 128px;
  height: auto;
  display: block;
  image-rendering: auto;
}

/* o que vem junto: texto corrido, coluna estreita, sem caixas */
.caixa {
  max-width: 620px;
  margin: 0 auto;
  padding: 4rem 0 1rem;
}

.caixa h2 { font-size: 1.4rem; margin-bottom: 0.9rem; }

.caixa h2.segundo { margin-top: 3.5rem; }

.caixa p { margin: 0 0 1.1rem; font-size: 0.95rem; }

/* itens com icone: uma coluna fixa para o simbolo e o texto alinhado ao lado.
   Os icones sao os mesmos do app (UM.ICONS, estilo lucide). O rotulo se
   destaca pela cor, nao pelo negrito (a Perfect nao tem bold de verdade) */
.itens {
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.itens li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.7rem;
}

.itens .icone { display: block; color: oklch(var(--p)); }

.itens svg { width: 22px; height: 22px; display: block; }

/* rotulo e frase na mesma linha; quem separa e a cor, nao a quebra */
.itens b {
  font-weight: normal;
  color: oklch(var(--p));
  margin-right: 0.4rem;
}

.itens p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: oklch(60% 0 0);
}

/* duas colunas dentro da coluna estreita: da para varrer sem virar parede */
.lista-sf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 1.5rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  line-height: 1.9;
  color: oklch(60% 0 0);
}

.obs {
  font-size: 0.8rem;
  line-height: 1.7;
  color: oklch(60% 0 0);
}

/* chamada final */
.chamada { text-align: center; padding: 3.5rem 0 1rem; }

/* rodape */
.rodape {
  padding: 3.5rem 1rem 2.5rem;
  text-align: center;
  font-size: 0.8rem;
}

.rodape p { max-width: 620px; margin: 0 auto; }

/* cinza neutro de verdade (croma zero), legivel em tema claro e escuro */
.rodape .tecnologias {
  font-size: 0.7rem;
  color: oklch(60% 0 0);
}

.rodape .assinatura { margin-top: 1rem; opacity: 0.55; }

.rodape a { text-underline-offset: 3px; }

@media (max-width: 640px) {
  .hero { padding-top: 4rem; }
  .hero h1 { font-size: 2.8rem; }
  .miniaturas img { width: 92px; }
}
