/* ============================================================
   SnapVideo – página de download (anúncio "vídeos de bom dia")
   Pensada para celular e para um público que lê com calma:
   letras grandes, botões grandes, contraste alto.
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --sol: #FFC52E;          /* amarelo do app */
  --sol-forte: #E8A90E;
  --sol-claro: #FFF5D1;
  --cafe: #3B2416;         /* texto */
  --cafe-suave: #6E5442;
  --laranja: #EE5A0B;      /* botão de download */
  --laranja-escuro: #C94600;
  --zap: #1FA855;
  --branco: #FFFFFF;
  --linha: #F0E2BC;

  --fonte: "Baloo 2", "Trebuchet MS", "Segoe UI", Roboto, Arial, sans-serif;
  --fonte-assinatura: "Pacifico", "Brush Script MT", "Segoe Script", cursive;

  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(64px + env(safe-area-inset-top, 0px)); }

body {
  font-family: var(--fonte);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.5;
  color: var(--cafe);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 96px; /* espaço para a barra fixa */
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
b { font-weight: 700; }

.coluna {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 22px;
}

h1, h2, h3 { line-height: 1.15; font-weight: 800; }
h2 { font-size: 30px; text-align: center; margin-bottom: 10px; }
.sub { text-align: center; color: var(--cafe-suave); margin-bottom: 26px; }

:focus-visible { outline: 3px solid var(--cafe); outline-offset: 3px; }

/* ---------- Topo ---------- */
.topo {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 233, 160, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 41;
  background: rgba(255, 233, 160, 0.92);
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 23px;
  font-weight: 800;
  text-decoration: none;
}
.logo svg { width: 30px; height: 30px; }

/* ---------- Abertura (o sol nascendo) ---------- */
.abertura {
  text-align: center;
  padding: 18px 0 44px;
  background:
    radial-gradient(90% 55% at 50% 0%, #FFE07A 0%, #FFEFB5 45%, rgba(255, 255, 255, 0) 80%),
    var(--branco);
}

.assinatura {
  font-family: var(--fonte-assinatura);
  font-size: 58px;
  line-height: 1.3;
  color: var(--cafe);
  transform: rotate(-4deg);
  margin-bottom: 4px;
}

.abertura h1 {
  font-size: 31px;
  max-width: 15em;
  margin: 0 auto 10px;
}
.abertura-sub {
  color: var(--cafe-suave);
  font-size: 20px;
  margin-bottom: 26px;
}

.demo {
  position: relative;
  width: min(66vw, 270px);
  margin: 0 auto 26px;
}
.demo-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 28px;
  border: 6px solid var(--branco);
  box-shadow: 0 20px 44px rgba(122, 72, 0, 0.28);
  background: var(--sol-claro);
}

/* Balões de resposta: o único movimento automático da página */
.balao {
  position: absolute;
  background: var(--branco);
  padding: 8px 14px 9px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(59, 36, 22, 0.18);
  opacity: 0;
  animation: balao-entra 0.45s cubic-bezier(.2, 1.3, .4, 1) forwards;
}
.balao b { display: block; font-size: 13px; font-weight: 700; }
.nome-rosa { color: #D63384; }
.nome-roxo { color: #7B4DDB; }
.balao-1 { right: -34px; top: 48%; border-bottom-left-radius: 4px; animation-delay: 1.4s; }
.balao-2 { left: -34px; top: 66%; border-bottom-right-radius: 4px; animation-delay: 2.3s; }

@keyframes balao-entra {
  from { opacity: 0; transform: translateY(10px) scale(0.85); }
  to   { opacity: 1; transform: none; }
}

.selos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 18px;
}
.selos li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--zap);
  color: var(--branco);
  font-size: 13px;
  font-weight: 800;
  vertical-align: 2px;
}

/* ---------- Botão de download ---------- */
.btn-baixar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 400px;
  min-height: 64px;
  margin: 0 auto;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  background: var(--laranja);
  color: var(--branco);
  font-family: var(--fonte);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--laranja-escuro), 0 12px 24px rgba(238, 90, 11, 0.3);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-baixar svg { width: 26px; height: 26px; flex-shrink: 0; }
.btn-baixar:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--laranja-escuro), 0 6px 14px rgba(238, 90, 11, 0.3);
}

.nota {
  margin-top: 14px;
  font-size: 16px;
  color: var(--cafe-suave);
  text-align: center;
}

/* ---------- Escolha do tipo de mensagem ---------- */
.escolha { padding: 52px 0 56px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}
.chips button {
  min-height: 50px;
  padding: 8px 18px;
  border: 2px solid var(--linha);
  border-radius: 999px;
  background: var(--branco);
  color: var(--cafe);
  font-family: var(--fonte);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}
.chips button[aria-checked="true"] {
  background: var(--sol);
  border-color: var(--sol-forte);
  font-weight: 800;
}

.cartao {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  margin-bottom: 26px;
  overflow: hidden;
  text-align: center;
  transition: background 0.35s ease, color 0.35s ease;
}
.cartao-texto {
  font-family: var(--fonte-assinatura);
  font-size: clamp(34px, 10vw, 50px);
  line-height: 1.25;
  transform: rotate(-3deg);
}
.cartao-legenda { font-size: 19px; font-weight: 600; }
.cartao-play {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
}
.cartao-play::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 13px;
  border-left: 14px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.cartao-tempo {
  position: absolute;
  right: 16px;
  bottom: 18px;
  padding: 2px 9px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.tema-bomdia      { background: radial-gradient(60% 70% at 78% 18%, #FFF6C4 0 18%, transparent 19%), linear-gradient(165deg, #FFE27A, #FFA24A); color: #4A240A; }
.tema-boatarde    { background: radial-gradient(70% 60% at 20% 80%, #FFD9A0 0 16%, transparent 17%), linear-gradient(165deg, #FFB46E, #E9573A); color: #fff; }
.tema-boanoite    { background: radial-gradient(40% 40% at 80% 20%, #FFF1B8 0 14%, transparent 15%), linear-gradient(165deg, #33458F, #141D49); color: #FFE9A8; }
.tema-fe          { background: radial-gradient(80% 80% at 50% 0%, #FFFFFF 0%, transparent 60%), linear-gradient(165deg, #FFF0CC, #F2C96A); color: #5C3710; }
.tema-aniversario { background: radial-gradient(30% 30% at 15% 20%, #FFE3EE 0 20%, transparent 21%), linear-gradient(165deg, #FFB3D0, #EE5E97); color: #fff; }

/* ---------- Passos ---------- */
.passos { padding: 54px 0; background: var(--sol-claro); }
.passos h2 { margin-bottom: 30px; }

.passos-lista { list-style: none; display: grid; gap: 26px; }
.passos-lista li {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 18px;
  align-items: center;
}
.passos-lista figure { position: relative; }
.passos-lista img {
  width: 128px;
  height: auto;
  aspect-ratio: 420 / 743;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(122, 72, 0, 0.2);
}
.passo-num {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cafe);
  color: var(--sol);
  font-size: 21px;
  font-weight: 800;
  border: 3px solid var(--sol-claro);
}
.passos-lista h3 { font-size: 26px; margin-bottom: 4px; }

/* ---------- Vantagens ---------- */
.vantagens { padding: 54px 0; }
.vantagens h2 { margin-bottom: 22px; }
.vantagens-lista { list-style: none; }
.vantagens-lista li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 2px dashed var(--linha);
}
.vantagens-lista li:last-child { border-bottom: none; }
.icone {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sol-claro);
  font-size: 27px;
}
.vantagens-lista h3 { font-size: 22px; margin-bottom: 2px; }
.vantagens-lista p { color: var(--cafe-suave); }

/* ---------- Como instalar ---------- */
.instalar { padding: 54px 0; background: #FFF9E8; border-top: 2px solid var(--linha); border-bottom: 2px solid var(--linha); }

.instalar-lista {
  list-style: none;
  counter-reset: passo;
  display: grid;
  gap: 14px;
  margin-bottom: 30px;
}
.instalar-lista li {
  counter-increment: passo;
  position: relative;
  padding-left: 50px;
  min-height: 36px;
}
.instalar-lista li::before {
  content: counter(passo);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sol);
  font-weight: 800;
}

.android-aviso {
  max-width: 330px;
  margin: 0 auto;
  background: var(--branco);
  border-radius: 26px;
  padding: 24px 22px 18px;
  box-shadow: 0 14px 34px rgba(59, 36, 22, 0.16);
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
}
.android-app { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; margin-bottom: 10px; }
.android-app svg { width: 34px; height: 34px; }
.android-aviso p { font-size: 18px; margin-bottom: 22px; }
.android-botoes { display: flex; justify-content: flex-end; gap: 26px; font-weight: 700; color: #3B6FD4; font-size: 17px; }
.android-instalar {
  position: relative;
  padding: 4px 12px;
  margin: -4px -12px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px var(--laranja);
}
.android-instalar i { position: absolute; right: -8px; top: 22px; font-style: normal; font-size: 28px; }

/* ---------- Dúvidas ---------- */
.duvidas { padding: 54px 0; }
.duvidas h2 { margin-bottom: 22px; }
.duvidas details {
  border: 2px solid var(--linha);
  border-radius: 18px;
  margin-bottom: 12px;
  background: var(--branco);
}
.duvidas summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 56px 16px 20px;
  font-size: 20px;
  font-weight: 700;
  position: relative;
}
.duvidas summary::-webkit-details-marker { display: none; }
.duvidas summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sol-claro);
  font-size: 22px;
}
.duvidas details[open] summary::after { content: "–"; }
.duvidas details p { padding: 0 20px 18px; color: var(--cafe-suave); }

/* ---------- Final ---------- */
.final {
  padding: 56px 0 64px;
  text-align: center;
  background: radial-gradient(90% 80% at 50% 100%, #FFE07A 0%, #FFF1BE 45%, rgba(255, 255, 255, 0) 80%);
}
.final h2 { font-size: 30px; max-width: 13em; margin: 0 auto 26px; }

/* ---------- Rodapé ---------- */
.rodape { padding: 26px 22px 30px; text-align: center; font-size: 15px; color: var(--cafe-suave); }
.rodape p + p { margin-top: 6px; display: flex; justify-content: center; gap: 20px; }

/* ---------- Barra fixa ---------- */
.barra-fixa {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -6px 22px rgba(59, 36, 22, 0.14);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.barra-fixa.visivel { transform: none; }
.barra-fixa .btn-baixar { min-height: 58px; font-size: 21px; }

/* ---------- Janelas (depois do clique / iPhone) ---------- */
.janela {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(40, 24, 10, 0.55);
}
.janela[hidden] { display: none; }
.janela-caixa {
  width: 100%;
  max-width: 520px;
  background: var(--branco);
  border-radius: 28px 28px 0 0;
  padding: 28px 24px calc(22px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  animation: sobe 0.28s ease-out;
}
@keyframes sobe { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.janela-caixa h2 { font-size: 27px; margin-bottom: 8px; }
.janela-caixa > p { color: var(--cafe-suave); margin-bottom: 12px; }
.janela-caixa ol { text-align: left; padding-left: 26px; margin: 0 auto 22px; max-width: 380px; display: grid; gap: 8px; }
.janela-check {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--sol);
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 10px;
}
.btn-janela {
  width: 100%;
  max-width: 380px;
  min-height: 58px;
  border: none;
  border-radius: 999px;
  background: var(--cafe);
  color: var(--branco);
  font-family: var(--fonte);
  font-size: 21px;
  font-weight: 800;
  cursor: pointer;
}
.link-janela {
  display: block;
  margin: 14px auto 0;
  padding: 8px;
  border: none;
  background: none;
  color: var(--cafe-suave);
  font-family: var(--fonte);
  font-size: 17px;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Telas maiores ---------- */
@media (min-width: 700px) {
  .assinatura { font-size: 72px; }
  .abertura h1 { font-size: 40px; }
  h2, .final h2 { font-size: 36px; }
  .demo { width: 300px; }
  .balao-1 { right: -120px; }
  .balao-2 { left: -110px; }
  body { padding-bottom: 0; }
}

/* Telas bem estreitas: os balões não podem sair da tela */
@media (max-width: 360px) {
  .balao-1 { right: -14px; }
  .balao-2 { left: -14px; }
  .passos-lista li { grid-template-columns: 104px 1fr; }
  .passos-lista img { width: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .balao { animation: none; opacity: 1; }
  .janela-caixa { animation: none; }
  .barra-fixa, .btn-baixar, .cartao { transition: none; }
}
