:root {
  --noite: #1b0d3b;
  --roxo: #2a1457;
  --roxo-claro: #4b2c7a;
  --lilas: #cdbfe3;
  --papel: #f6f1fd;
  --laranja: #ff8a1f;
  --laranja-escuro: #c25a00;
  --fonte: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--noite);
  color: var(--papel);
  font-family: var(--fonte);
  font-size: 1.0625rem;
  line-height: 1.55;
}
a { color: var(--laranja); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--laranja);
  outline-offset: 3px;
  border-radius: 6px;
}
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; line-height: 1.12; }

.miolo { width: min(100% - 2rem, 62rem); margin-inline: auto; }

/* topo */
.topo { padding: 3rem 0 2.5rem; }
.marca { font-weight: 700; color: var(--lilas); margin-bottom: 2.2rem; letter-spacing: .02em; }
.topo h1 {
  font-size: clamp(2.3rem, 8.2vw, 4.6rem);
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.02;
  max-width: 16ch;
}
.sub { font-size: 1.15rem; color: var(--lilas); max-width: 40rem; margin-top: 1.4rem; }
.acoes { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* botões */
.btn {
  display: inline-block;
  min-height: 48px;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
}
.btn-principal { background: var(--laranja); color: var(--noite); }
.btn-principal:hover { background: #ffa04d; }
.btn-quieto { color: var(--papel); border-color: var(--roxo-claro); }
.btn-quieto:hover { border-color: var(--lilas); }
.btn-contorno { color: var(--laranja); border-color: var(--laranja); }
.btn-contorno:hover { background: rgba(255, 138, 31, .12); }

/* seções */
.secao { padding: 3rem 0; }
.secao h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; }
.intro { color: var(--lilas); margin-top: .6rem; max-width: 40rem; }

/* tira de filme */
.tira {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0 1rem 1rem;
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.filme { flex: 0 0 min(74vw, 17rem); scroll-snap-align: center; }
.filme:nth-child(2) { margin-top: 1.4rem; }
.capa {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid var(--laranja);
  background: var(--roxo);
}
.capa img, .capa video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.play {
  position: absolute; inset: auto 12px 12px auto;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--laranja);
}
.play::after {
  content: ""; position: absolute; left: 21px; top: 15px;
  border-left: 16px solid var(--noite);
  border-top: 12px solid transparent; border-bottom: 12px solid transparent;
}
.filme h3 { font-size: 1.05rem; font-weight: 700; margin: .9rem 0 .4rem; line-height: 1.25; }
.fontes summary { cursor: pointer; color: var(--laranja); font-weight: 650; padding: .35rem 0; }
.fontes ul { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .92rem; color: var(--lilas); }
.fontes li { margin-bottom: .35rem; }

/* passos */
.passos { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: passo; max-width: 42rem; }
.passos li {
  counter-increment: passo;
  position: relative;
  padding: 0 0 1.6rem 3.4rem;
  border-left: 2px solid var(--roxo-claro);
  margin-left: 1.15rem;
}
.passos li:last-child { border-left-color: transparent; padding-bottom: 0; }
.passos li::before {
  content: counter(passo);
  position: absolute; left: -1.2rem; top: -.1rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--laranja); color: var(--noite);
  font-weight: 850; text-align: center; line-height: 2.2rem;
}
.passos strong { display: block; font-size: 1.1rem; }

/* caminhos */
.caminhos { display: grid; gap: 1.2rem; margin-top: 1.8rem; }
.caminhos article { padding: 1.6rem; border-radius: 20px; }
.caminhos h3 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: .9rem; }
.aprender { background: var(--roxo); border: 2px solid var(--roxo-claro); }
.encomendar { border: 2px solid var(--laranja); }
.preco { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.valor { font-size: 2.6rem; font-weight: 850; letter-spacing: -.03em; }
.detalhe { color: var(--lilas); }
.nota { font-size: .95rem; color: var(--lilas); margin-top: 1rem; margin-bottom: 0; }

/* perguntas */
.faq { margin-top: 1.6rem; max-width: 46rem; }
.faq details { border-top: 1px solid var(--roxo-claro); padding: .2rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--roxo-claro); }
.faq summary { cursor: pointer; font-weight: 700; padding: .9rem 0; list-style-position: outside; }
.faq details p { color: var(--lilas); padding-bottom: .6rem; }

/* rodapé */
.rodape { background: var(--roxo); padding: 2.2rem 0 2.6rem; margin-top: 2rem; font-size: .95rem; color: var(--lilas); }
.rodape .links { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 0; }

@media (min-width: 52rem) {
  .topo { padding: 4.5rem 0 3.5rem; }
  .tira { width: min(100% - 2rem, 62rem); margin-inline: auto; padding: 0 0 1rem; overflow: visible; gap: 1.6rem; }
  .filme { flex: 1 1 0; }
  .filme:nth-child(2) { margin-top: 2.2rem; }
  .caminhos { grid-template-columns: 1.15fr 1fr; align-items: start; }
}

/* fundo 3D: o canvas fica atrás de tudo; o conteúdo vem por cima */
body {
  background:
    radial-gradient(70rem 42rem at 88% -8%, rgba(110, 70, 190, .50), transparent 62%),
    radial-gradient(56rem 40rem at -12% 55%, rgba(255, 138, 31, .12), transparent 62%),
    radial-gradient(60rem 40rem at 70% 105%, rgba(75, 44, 122, .55), transparent 60%),
    var(--noite);
  background-attachment: fixed;
}
#fundo3d { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
.topo, main, .rodape { position: relative; z-index: 1; }
.topo h1, .sub, .intro, .secao h2 { text-shadow: 0 2px 18px rgba(27, 13, 59, .85); }

/* topo: texto + capa do vídeo mais visto */
.topo-grade { display: grid; gap: 2rem; align-items: center; }
.topo-capa {
  display: block;
  width: min(62vw, 15rem);
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  border: 3px solid var(--laranja);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 0 8px rgba(255, 138, 31, .08);
  transform: rotate(2deg);
  justify-self: center;
}
.topo-capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.origem { margin: 0 0 .3rem; font-size: .85rem; color: var(--lilas); opacity: .85; }
.filme h3 { margin-bottom: .25rem; }

/* entrada suave ao rolar (só quando o JavaScript está ativo) */
.js .revela {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(18px);
  transition: opacity .7s ease, filter .7s ease, transform .7s ease;
}
.js .revela.visivel { opacity: 1; filter: none; transform: none; }
.js .filme.revela:nth-child(2) { transition-delay: .08s; }
.js .filme.revela:nth-child(3) { transition-delay: .16s; }
.js .filme.revela:nth-child(4) { transition-delay: .24s; }

@media (min-width: 52rem) {
  .topo-grade { grid-template-columns: 1.4fr 1fr; gap: 3rem; }
  .topo-capa { width: min(100%, 17rem); justify-self: end; }
  .filme:nth-child(even) { margin-top: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .revela { opacity: 1; filter: none; transform: none; transition: none; }
  .topo-capa { transform: none; }
}

/* páginas legais */
.texto-legal { max-width: 42rem; }
.texto-legal h1 { font-size: 2rem; margin: 1.2rem 0 1rem; }
.texto-legal h2 { font-size: 1.2rem; margin: 1.6rem 0 .4rem; }
.texto-legal .nota { background: var(--roxo); padding: .8rem 1rem; border-radius: 12px; color: var(--papel); }

/* vídeo depois do toque (antes era estilo embutido pelo JS) */
.player { width: 100%; aspect-ratio: 9 / 16; border-radius: 18px; border: 3px solid var(--laranja); background: #000; object-fit: cover; display: block; }
