:root {
  --bg: #0c0c0e;
  --bg-soft: #131316;
  --text: #f5f1ec;
  --text-dim: #b8b2a9;
  --accent: #d9a86c;
  --whatsapp: #25d366;
  --radius: 14px;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
}

img, video { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(12, 12, 14, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo {
  font-size: 15px;
  letter-spacing: 2px;
  font-weight: 400;
  color: var(--text-dim);
}
.logo strong { color: var(--text); font-weight: 700; }

.header-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  gap: 16px;
}

.hero h1 {
  font-size: clamp(26px, 6vw, 40px);
  line-height: 1.2;
  font-weight: 700;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 15px;
  max-width: 380px;
}

.badge {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(217, 168, 108, 0.4);
  background: rgba(217, 168, 108, 0.08);
  padding: 8px 16px;
  border-radius: 999px;
}

.scroll-hint {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-dim);
  font-size: 12px;
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: .6; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ---------- Video feed ---------- */
.feed {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100dvh;
  scrollbar-width: none;
}
.feed::-webkit-scrollbar { display: none; }

.video-slide {
  position: relative;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  overflow: hidden;
}

.video-frame {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.video-slide video,
.video-slide .poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.video-slide .poster {
  transition: opacity .25s ease;
}
.video-slide.is-loaded .poster {
  opacity: 0;
  pointer-events: none;
}

.video-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 78%, rgba(0,0,0,.35) 100%);
  pointer-events: none;
}

.caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 28px;
  z-index: 2;
  color: #fff;
}
.caption .nome { font-weight: 700; font-size: 16px; }
.caption .estado { font-size: 13px; color: rgba(255,255,255,.8); margin-top: 2px; }

/* Dica "arraste para cima" — aparece 10s depois de parar num vídeo */
.swipe-hint {
  position: absolute;
  left: 50%;
  bottom: 100px;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.swipe-hint.show {
  opacity: 1;
  animation: swipe-bounce 1.4s ease-in-out infinite;
}

@keyframes swipe-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}

.counter {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 2;
  font-size: 12px;
  color: rgba(255,255,255,.75);
  background: rgba(0,0,0,.35);
  padding: 4px 10px;
  border-radius: 999px;
}

.sound-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: padding .25s ease, background .25s ease;
}

.sound-btn-label {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  transition: max-width .25s ease, opacity .2s ease, margin .25s ease;
}

/* Depois que o som é ativado, o botão encolhe pra virar só o ícone (menos poluição visual) */
.sound-btn:not(.pulse) {
  padding: 0;
  width: 44px;
  justify-content: center;
  background: rgba(0,0,0,.4);
}
.sound-btn:not(.pulse) .sound-btn-label {
  max-width: 0;
  opacity: 0;
  margin: 0;
}

.sound-btn-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid var(--accent);
  opacity: 0;
}

.sound-btn.pulse {
  background: rgba(217, 168, 108, 0.18);
  border-color: var(--accent);
  animation: sound-bounce 1.8s ease-in-out infinite;
}
.sound-btn.pulse .sound-btn-ring {
  animation: sound-ring 1.8s ease-out infinite;
}

@keyframes sound-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes sound-ring {
  0% { opacity: .55; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.35); }
}

/* ---------- Slide final "ver mais" (dentro do feed) ---------- */
.end-slide {
  position: relative;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, #1a1712 0%, #0c0c0e 70%);
  padding: 24px;
}

.end-card {
  max-width: 340px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.end-card h2 { font-size: 24px; font-weight: 700; }
.end-card p { color: var(--text-dim); margin-bottom: 10px; }

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 64px 24px 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.final-cta h2 { font-size: 24px; font-weight: 700; }
.final-cta p { color: var(--text-dim); margin-bottom: 18px; }

.btn {
  width: 100%;
  max-width: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  margin-top: 10px;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #08210f;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 30px 20px 40px;
  color: var(--text-dim);
  font-size: 13px;
}
.footer a {
  color: var(--accent);
  text-decoration: none;
}

/* ---------- Desktop ---------- */
@media (min-width: 860px) {
  .video-slide { background: linear-gradient(180deg, #101013, #0c0c0e); }
  .video-frame {
    max-width: 420px;
    height: 88vh;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.55);
    border: 1px solid rgba(255,255,255,.08);
  }
}
