:root {
  --navy: #13306a;
  --navy-escuro: #0a1c44;
  --amarelo: #ffd33f;
  --azul: #1f6fe0;
  --texto: #14306b;
  --texto-suave: #5b6b8c;
  --fundo: #ffffff;
  --fundo-card: #eef3fd;
  --borda: #d4e0f5;
  --destaque: #1f6fe0;
  --aparelho: #0a1c44;
  --aparelho-borda: #2a3f70;
}
@media (prefers-color-scheme: dark) {
  :root {
    --texto: #e8edf7;
    --texto-suave: #9fb0cc;
    --fundo: #0e1a33;
    --fundo-card: #16233f;
    --borda: #26355c;
    --azul: #7db0ff;
    --destaque: #ffd33f;
    --aparelho: #050b1c;
    --aparelho-borda: #34497a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Baloo 2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--texto);
  background: var(--fundo);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.estreito { max-width: 720px; }

/* Topo */
.topo { background: var(--navy); }
.topo .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.marca { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: 1px; }
.marca img { width: 36px; height: 36px; border-radius: 9px; }
.topo nav a { color: #dbe5fb; text-decoration: none; margin-left: 18px; font-weight: 600; font-size: 16px; }
.topo nav a:hover { color: var(--amarelo); }

/* Botão da loja */
.btn-loja {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--amarelo); color: var(--navy-escuro);
  text-decoration: none; font-weight: 800; font-size: 18px;
  padding: 14px 24px; border-radius: 14px;
  box-shadow: 0 4px 0 #c9a10f;
}
.btn-loja:hover { transform: translateY(-1px); }
.btn-loja svg { width: 22px; height: 22px; }

/* Herói */
.heroi { background: var(--navy); color: #fff; padding: 48px 0 64px; overflow: hidden; }
.heroi .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.heroi h1 { font-size: 46px; }
.heroi h1 span { color: var(--amarelo); }
.heroi p { font-size: 20px; color: #dbe5fb; margin: 0 0 28px; }
.heroi .selo { font-size: 15px; color: #a9c2ea; margin-top: 16px; }
.heroi .nota { font-size: 17px; margin: 18px 0 0; color: #fff; }
.heroi .nota .estrelas { color: var(--amarelo); letter-spacing: 2px; }
.heroi .selo { margin-top: 4px; }

/* Dois celulares no herói: a escolha na frente, o fim da vida atrás */
.aparelhos { position: relative; width: 100%; max-width: 420px; margin: 0 auto; aspect-ratio: 420 / 560; }
.aparelhos .celular { position: absolute; padding: 10px; border-radius: 40px; box-shadow: 0 0 0 2px #2a3f70, 0 30px 60px rgba(0, 0, 0, .45); }
.aparelhos .celular img { border-radius: 30px; width: 100%; }
.aparelhos .frente { width: 62%; left: 0; bottom: 0; z-index: 2; }
.aparelhos .atras { width: 54%; right: 0; top: 0; transform: rotate(6deg); opacity: .92; }

/* Seções */
section { padding: 56px 0; }
section h2 { font-size: 34px; text-align: center; }
.sub { text-align: center; color: var(--texto-suave); max-width: 640px; margin: 0 auto 32px; }

/* Vitrine: as telas dentro de um celular, passando pro lado */
.vitrine { display: flex; align-items: center; justify-content: center; gap: 28px; }
.celular {
  width: 300px; max-width: 100%; flex: 0 0 auto;
  padding: 12px; border-radius: 46px;
  background: var(--aparelho);
  box-shadow: 0 0 0 2px var(--aparelho-borda), 0 24px 60px rgba(10, 28, 68, .30);
}
.trilho {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  border-radius: 34px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.trilho::-webkit-scrollbar { display: none; }
.trilho:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 4px; }
.slide { width: 100%; flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 560 / 1041; object-fit: cover; }
.seta {
  width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%;
  border: 2px solid var(--borda); background: var(--fundo-card); color: var(--texto);
  font: 700 30px/1 system-ui, sans-serif; cursor: pointer; padding: 0 0 4px;
}
.seta:hover { border-color: var(--azul); color: var(--azul); }
.seta:focus-visible, .pontos button:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }
.legenda { text-align: center; font-size: 24px; font-weight: 800; line-height: 1.2; margin: 28px auto 14px; min-height: 2.4em; text-wrap: balance; }
.legenda span { color: var(--destaque); display: block; }
.pontos { display: flex; justify-content: center; gap: 0; }
.pontos button { width: 24px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.pontos button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--borda); transition: width .2s; }
.pontos button[aria-current="true"]::before { width: 26px; border-radius: 6px; background: var(--azul); }
@media (prefers-reduced-motion: reduce) { .pontos button::before { transition: none; } }

.grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--fundo-card); border: 2px solid var(--borda); border-radius: 16px; padding: 20px 22px; }
.card h3 { font-size: 21px; }
.card p { margin: 0; color: var(--texto-suave); font-size: 17px; }

.faixa { background: var(--navy); color: #fff; text-align: center; }
.faixa h2 { color: #fff; }
.faixa p { color: #dbe5fb; max-width: 620px; margin: 0 auto 28px; }

/* Páginas de texto (suporte, privacidade) */
.texto { padding: 40px 0 64px; }
.texto h1 { font-size: 34px; margin-bottom: 4px; }
.texto h2 { font-size: 22px; margin-top: 32px; text-align: left; }
.texto .meta { color: var(--texto-suave); font-size: 15px; margin-bottom: 24px; }
.texto p { margin: 8px 0; }
.texto .card { margin: 18px 0; }
.texto .card p { color: var(--texto); }
.btn { display: inline-block; background: var(--azul); color: #fff; text-decoration: none; padding: 12px 20px; border-radius: 10px; font-weight: 700; margin-top: 8px; }
@media (prefers-color-scheme: dark) { .btn { color: var(--navy-escuro); } }

/* Rodapé */
footer { border-top: 2px solid var(--borda); padding: 28px 0 40px; font-size: 15px; color: var(--texto-suave); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: var(--texto-suave); }

@media (max-width: 820px) {
  .heroi .wrap { grid-template-columns: 1fr; }
  .heroi h1 { font-size: 36px; }
  .aparelhos { max-width: 320px; }
  .grade { grid-template-columns: 1fr; }
  section h2 { font-size: 28px; }
  .topo nav a { margin-left: 12px; font-size: 15px; }
  .vitrine { gap: 0; }
  .seta { display: none; }
  .celular { width: 270px; }
  .legenda { font-size: 21px; }
}
@media (max-width: 400px) {
  .topo nav a.opcional { display: none; }
}
