/* TinyBuu · página inicial
   Paleta tirada do logo: azul-noite, azul royal, menta do "Buu", dourado das estrelas. */
:root {
  --night: #050b2e; --navy: #0a1450; --royal: #2a3fb8; --violet: #6b4fd8;
  --mint: #6ff0cf; --gold: #ffd76a; --ink: #f4f6ff; --muted: #b6bfe6; --line: rgba(255,255,255,.12);
  --glass: rgba(255,255,255,.07);
  --round: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 17px/1.6 var(--body);
  background: radial-gradient(1200px 700px at 75% -10%, #23308f 0%, transparent 60%),
              radial-gradient(900px 600px at 0% 30%, #1a1666 0%, transparent 60%),
              linear-gradient(180deg, var(--navy) 0%, var(--night) 60%, #03071f 100%);
  background-attachment: fixed; min-height: 100vh; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--mint); }
h1, h2, h3 { font-family: var(--round); line-height: 1.12; margin: 0; letter-spacing: -.01em; }
.center { text-align: center; }
.eyebrow { color: var(--mint); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: 22px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* Céu com estrelas (desenhadas por home.js) */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.sky i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff;
  animation: twinkle var(--d, 4s) ease-in-out infinite; animation-delay: var(--delay, 0s); opacity: .2; }
.sky i.g { background: var(--gold); width: 3px; height: 3px; box-shadow: 0 0 6px var(--gold); }
@keyframes twinkle { 0%,100% { opacity: .15 } 50% { opacity: .9 } }

/* Topo */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 22px;
  max-width: 1160px; margin: 0 auto; padding: 14px 20px; padding-top: max(14px, env(safe-area-inset-top)); }
.nav::before { content: ""; position: absolute; inset: 8px 10px; border-radius: 20px; z-index: -1;
  background: rgba(8,14,56,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none;
  font: 800 22px var(--round); }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand b { color: var(--mint); }
.nav nav { display: flex; gap: 20px; margin-left: 10px; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav nav a:hover { color: #fff; }
.langs { margin-left: auto; display: flex; gap: 6px; }
.langs button { border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 99px; padding: 5px 11px; font: 600 13px var(--body); cursor: pointer; }
.langs button.on { background: var(--mint); border-color: var(--mint); color: var(--night); }

main { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
section { margin: 110px 0; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; margin-top: 50px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--mint), #9fb8ff);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 19px; max-width: 34em; margin: 20px 0 30px; }
.cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #000;
  border-radius: 14px; padding: 9px 20px 9px 16px; text-decoration: none; opacity: .95; }
.store svg { width: 28px; height: 28px; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 11px; }
.store strong { font: 700 20px var(--body); }
.trial { margin: 0; color: var(--gold); font-weight: 600; font-size: 15px; }

.hero-art { position: relative; display: flex; justify-content: center; }
.phone { width: 300px; aspect-ratio: 9 / 19.5; border-radius: 46px; padding: 11px;
  background: linear-gradient(145deg, #2b2f55, #10132e); box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08),
  0 0 80px rgba(91,108,255,.35); }
.screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #160c22; }
.scene { width: 100%; height: 56%; object-fit: cover;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.ui { position: absolute; inset: 0; padding: 40px 14px 14px; display: flex; flex-direction: column; }
.hello { margin: 0; font: 800 20px var(--round); text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.ui .card { margin-top: auto; padding: 14px 16px; background: rgba(30,16,40,.72); border-color: rgba(255,215,106,.35); }
.label { margin: 0; font-size: 12px; color: var(--muted); font-weight: 600; }
.big { margin: 2px 0; font: 800 30px var(--round); }
.sub { margin: 0; font-size: 12px; color: var(--muted); }
.btn { display: block; margin-top: 10px; text-align: center; background: var(--gold); color: #2b1608;
  border-radius: 12px; padding: 8px; font-weight: 700; font-size: 13px; }
.row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 8px; }
.mini { padding: 8px 6px; text-align: center; background: rgba(30,16,40,.72); border-radius: 14px; }
.mini span { display: block; font-size: 16px; }
.mini b { display: block; font-size: 12px; }
.mini small { color: var(--muted); font-size: 10px; }
.bubble { position: absolute; background: rgba(255,255,255,.95); color: #1c1f4a; font-weight: 700; font-size: 14px;
  padding: 10px 14px; border-radius: 16px; box-shadow: 0 14px 30px rgba(0,0,0,.35); white-space: nowrap; }
.b1 { left: -10px; top: 22%; border-bottom-left-radius: 4px; }
.b2 { right: -10px; bottom: 16%; border-bottom-right-radius: 4px; }

/* Sono e como a previsão funciona */
.intro { color: var(--muted); max-width: 760px; margin: 0 auto; font-size: 18px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.steps article { padding: 26px; position: relative; }
.num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--mint), var(--royal)); color: var(--night); font: 800 19px var(--round); }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Prints reais do app dentro do celular */
.shot { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.phone.sm { width: 230px; border-radius: 38px; padding: 9px; box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08); }
.phone.sm .screen { border-radius: 30px; }

/* Vitrine de telas */
.shots { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 34px 6px 20px;
  margin: 0 -20px; padding-left: 20px; padding-right: 20px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.shots figure { margin: 0; flex: 0 0 auto; width: 230px; scroll-snap-align: center; }
.shots figcaption { margin-top: 16px; text-align: center; }
.shots figcaption b { display: block; font: 800 17px var(--round); }
.shots figcaption span { color: var(--muted); font-size: 14px; }
.shots figure:nth-child(even) { margin-top: 30px; }
/* Centraliza quando cabe, sem cortar o começo quando não cabe. */
.shots > :first-child { margin-left: auto; }
.shots > :last-child { margin-right: auto; }

/* Previsão */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; margin-bottom: 16px; }
.split-text p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 20px 0; }
.checks li { position: relative; padding-left: 32px; margin: 10px 0; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(111,240,207,.15); color: var(--mint); font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.predict { padding: 26px; max-width: 440px; margin: 0 auto; }
.predict .when { font: 800 44px var(--round); margin: 4px 0 12px; color: #fff; }
.bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--royal)); border-radius: 99px; }
.predict .sub { margin: 10px 0 18px; font-size: 14px; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { padding: 6px 0 6px 18px; position: relative; display: flex; gap: 14px; font-size: 15px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); }
.timeline li.next::before { background: transparent; border: 2px dashed var(--gold); }
.timeline span { color: var(--muted); font-variant-numeric: tabular-nums; width: 46px; }
.timeline li.next b { color: var(--gold); }

/* Recursos */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
.grid article { padding: 22px; transition: transform .25s ease, border-color .25s ease; }
.grid article:hover { transform: translateY(-4px); border-color: rgba(111,240,207,.4); }
.ico { font-size: 30px; display: block; margin-bottom: 12px; }
.grid h3 { font-size: 19px; margin-bottom: 8px; }
.grid p { margin: 0; color: var(--muted); font-size: 15px; }

/* Temas */
.themes { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.gallery { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.scenes { display: grid; gap: 16px; }
.scenes img { border-radius: 22px; aspect-ratio: 1; object-fit: cover; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.scenes img:nth-child(2) { transform: translateX(-18px); }

/* Sons */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.chip { padding: 16px 22px; display: flex; flex-direction: column; align-items: center; min-width: 170px; }
.chip span { font-size: 30px; }
.chip b { margin-top: 6px; }
.chip small { color: var(--muted); }
.note { color: var(--muted); font-size: 15px; margin-top: 22px; }

/* Privacidade */
.privacy { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: center; padding: 40px; }
.privacy img { width: 100%; filter: drop-shadow(0 20px 30px rgba(0,0,0,.4)); }
.link { font-weight: 700; text-decoration: none; }

/* Planos */
.plan-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.plan { position: relative; padding: 28px; width: 320px; }
.plan h3 { font-size: 20px; }
.price { font: 800 36px var(--round); margin: 8px 0; }
.price small { font-size: 16px; color: var(--muted); font-weight: 600; }
.plan p { color: var(--muted); margin: 0; }
.plan .price { color: #fff; }
.best { border-color: rgba(255,215,106,.55); box-shadow: 0 0 50px rgba(255,215,106,.12); }
.tag { position: absolute; top: -13px; left: 24px; background: var(--gold); color: #2b1608; font-weight: 800; font-size: 12px;
  padding: 4px 12px; border-radius: 99px; }

/* Perguntas */
.faq { max-width: 760px; margin-left: auto; margin-right: auto; }
.faq details { padding: 16px 22px; margin: 12px 0; border-radius: 18px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mint); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Rodapé */
.foot { max-width: 1160px; margin: 0 auto; padding: 50px 20px 40px; padding-bottom: max(40px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); display: grid; justify-items: center; gap: 12px; text-align: center; }
.foot p { margin: 0; color: var(--muted); font-style: italic; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.foot nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.foot small { color: var(--muted); font-size: 12px; }

/* Entrada suave ao rolar */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .sky i { animation: none; opacity: .5; } .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Telas menores */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .nav nav { display: none; }
}
@media (max-width: 820px) {
  section { margin: 80px 0; }
  .hero, .split, .themes { grid-template-columns: 1fr; }
  .hero { margin-top: 24px; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .split-art { order: 2; }
  .privacy { grid-template-columns: 1fr; text-align: center; padding: 28px 22px; }
  .privacy img { width: 180px; margin: 0 auto; }
  .privacy .checks { text-align: left; display: inline-block; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .phone { width: 260px; }
  .bubble { font-size: 12px; padding: 8px 11px; }
  .b1 { left: 0; top: 8%; } .b2 { right: 0; bottom: 6%; }
  .chip { min-width: 46%; }
  .gallery { grid-template-columns: 1fr; justify-items: center; }
  .scenes { grid-template-columns: 1fr 1fr; width: 100%; }
  .scenes img:nth-child(2) { transform: none; }
  .phone.sm, .shots figure { width: 210px; }
  .brand span { font-size: 20px; }
}
