:root {
  --ink: #13302C;
  --teal: #0F766E;
  --yellow: #FFC93C;
  --mint: #E8F5F1;
  --coral: #FF6B6B;
  --paper: #FFFFFF;
  --muted: #4E6662;
  --line: rgba(19, 48, 44, .14);
  --display: 'Baloo 2', system-ui, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
  --bar-h: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--ink); color: var(--ink); font-family: var(--body); overflow: hidden; -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
img { display: block; max-width: 100%; }

/* ---------- Palco ---------- */
#deck { position: fixed; inset: 0 0 var(--bar-h) 0; }
.slide {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
  display: grid; align-items: center; justify-items: center;
  padding: clamp(24px, 4.5vw, 72px) clamp(16px, 5vw, 88px);
  background: var(--paper);
  visibility: hidden; opacity: 0; transform: translateX(var(--from, 40px));
  transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .2, 1), visibility 0s .55s;
}
.slide.is-active { visibility: visible; opacity: 1; transform: none; transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .2, 1); }
.slide.is-before { --from: -40px; }

.s-mint { background: var(--mint); }
.s-dark { background: var(--ink); color: #fff; }
.s-cover, .s-try {
  background-color: var(--mint);
  background-image: radial-gradient(rgba(15, 118, 110, .14) 1.6px, transparent 1.6px);
  background-size: 26px 26px;
}

.split { width: min(1240px, 100%); display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.split.wide-visual { grid-template-columns: .8fr 1.2fr; }
.narrow { width: min(900px, 100%); }
.wide { width: min(1240px, 100%); }
.center { display: grid; justify-items: center; text-align: center; }

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.6vw, 84px); line-height: .98; font-weight: 800; margin-bottom: .32em; }
h2 { font-size: clamp(32px, 4.2vw, 62px); line-height: 1.02; font-weight: 800; margin-bottom: .5em; }
h3 { font-size: clamp(20px, 1.8vw, 28px); line-height: 1.1; font-weight: 700; }
p, li { font-size: clamp(17px, 1.55vw, 23px); line-height: 1.45; }
.lead { font-size: clamp(19px, 1.8vw, 27px); color: var(--muted); margin: 0 0 1em; max-width: 38ch; }
.s-dark .lead { color: #C9DCD8; }
.small { font-size: clamp(14px, 1.15vw, 17px); color: var(--muted); margin: .8em 0 0; }
.note { font-weight: 700; color: var(--teal); margin: 1.2em 0 0; }
.brand { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2vw, 30px); color: var(--teal); margin: 0 0 .6em; }
.kicker { display: inline-block; font-weight: 800; background: var(--yellow); border-radius: 999px; padding: 2px 14px; margin: 0 0 .8em; font-size: clamp(15px, 1.2vw, 18px); }
.caption { color: var(--muted); max-width: 30ch; margin: 1.2em 0 0; }

/* ---------- QR ---------- */
.qr-card {
  margin: 0; justify-self: center; width: min(440px, 82vw);
  background: var(--paper); border-radius: 32px; padding: clamp(18px, 2.4vw, 32px);
  box-shadow: 0 0 0 8px var(--teal), 0 30px 60px -30px rgba(19, 48, 44, .55);
  display: grid; gap: 18px; text-align: center;
}
.qr-card.yellow { box-shadow: 0 0 0 8px var(--yellow), 0 30px 60px -30px rgba(19, 48, 44, .55); }
.qr-card img { width: 100%; aspect-ratio: 1; }
.qr-card figcaption { display: grid; gap: 2px; }
.qr-card strong { font-family: var(--display); font-size: clamp(22px, 2vw, 30px); line-height: 1.1; }
.qr-card span { color: var(--muted); font-size: clamp(15px, 1.2vw, 18px); overflow-wrap: anywhere; }
.s-cover .qr-card { animation: qrIn .9s .2s both cubic-bezier(.2, 1.3, .4, 1); }
@keyframes qrIn { from { transform: scale(.85) rotate(-3deg); opacity: 0; } }

/* ---------- Listas ---------- */
.pains { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(14px, 2vw, 26px); }
.pains li { padding-left: 1.4em; position: relative; color: #C9DCD8; }
.pains li::before { content: ''; position: absolute; left: 0; top: .5em; width: .6em; height: .6em; border-radius: 50%; background: var(--coral); }
.pains strong { color: #fff; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: clamp(12px, 1.6vw, 22px); }
.steps li { counter-increment: s; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: baseline; }
.steps li::before {
  content: counter(s); grid-row: span 2; align-self: start;
  width: 1.9em; height: 1.9em; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal); color: #fff; font-family: var(--display); font-weight: 800; font-size: clamp(18px, 1.6vw, 24px);
}
.steps b { font-family: var(--display); font-size: clamp(22px, 2.1vw, 32px); line-height: 1.1; }
.steps span { color: var(--muted); }
.steps.compact b { font-size: clamp(20px, 1.8vw, 26px); }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .55em; }
.checks li { padding-left: 1.6em; position: relative; }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 800; }
.s-dark .checks li::before { color: var(--yellow); }

.flow { list-style: none; padding: 0; margin: 0 0 .4em; display: flex; flex-wrap: wrap; gap: 8px; }
.flow li { font-size: clamp(14px, 1.15vw, 17px); font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--mint); border: 2px solid var(--teal); color: var(--teal); }
.flow li.q { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.flow li.prize { background: var(--coral); border-color: var(--coral); color: #fff; }

/* ---------- Cartões ---------- */
.places, .trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 22px); }
.places article, .trust article, .data-cols article, .modes article {
  border-radius: 24px; padding: clamp(18px, 1.8vw, 26px);
}
.places article { background: var(--mint); }
.places .ico { font-size: clamp(34px, 3.2vw, 48px); display: block; margin-bottom: 10px; }
.places p, .trust p, .modes p { font-size: clamp(15px, 1.25vw, 19px); color: var(--muted); margin: .5em 0 0; }
.trust article { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.trust h3 { color: var(--yellow); }
.trust p { color: #C9DCD8; }

.data-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 22px); }
.data-cols article { background: var(--mint); }
.data-cols article:nth-child(2) { background: #FFF4D1; }
.data-cols article:nth-child(3) { background: #FFE6E6; }
.data-cols ul { margin: .6em 0 0; padding-left: 1.1em; display: grid; gap: .25em; }
.data-cols li { font-size: clamp(16px, 1.35vw, 20px); }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 1.2em; }
.modes article { background: var(--mint); padding: 16px; border-radius: 18px; }
.modes article:first-child { background: var(--teal); color: #fff; }
.modes article:first-child p { color: #D6EEE9; }

/* ---------- Telas ---------- */
.phones { display: grid; gap: clamp(12px, 2vw, 28px); justify-content: center; }
.phones.four { grid-template-columns: repeat(4, minmax(0, 220px)); }
.phones.two { grid-template-columns: repeat(2, minmax(0, 250px)); }
.phones figure { margin: 0; display: grid; gap: 12px; }
.phones figcaption { font-size: clamp(14px, 1.1vw, 17px); color: var(--muted); text-align: center; }
.phone {
  border: 8px solid var(--ink); border-radius: 34px; overflow: hidden; background: var(--ink);
  aspect-ratio: 390 / 800; box-shadow: 0 24px 50px -24px rgba(19, 48, 44, .6);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phones.two .phone:nth-child(2) { transform: translateY(32px); }

.browser {
  border-radius: 18px; overflow: hidden; background: #F3F6F5; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(19, 48, 44, .5);
}
.browser::before { content: ''; display: block; height: 26px; background: #E3EAE8; border-bottom: 1px solid var(--line); }
.browser img { width: 100%; }
.browser.tall { max-height: 68vh; overflow: hidden; }

/* ---------- Caixa-surpresa (mesma do jogo) ---------- */
.mbox { position: relative; width: clamp(200px, 22vw, 320px); aspect-ratio: 1; animation: boxFloat 3.2s ease-in-out infinite; }
.mbox-body { position: absolute; left: 12%; right: 12%; bottom: 3%; height: 59%; border-radius: 18px 18px 26px 26px;
  background: linear-gradient(90deg, transparent 42%, var(--yellow) 42% 58%, transparent 58%), var(--teal);
  box-shadow: inset 0 -12px 0 rgba(0,0,0,.14), 0 20px 30px -14px rgba(0,0,0,.45); display: grid; place-items: center; }
.mbox-q { font-family: var(--display); font-weight: 800; font-size: clamp(54px, 6vw, 86px); color: #fff; background: var(--coral);
  width: 36%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; line-height: 1; padding-top: 8px; }
.mbox-lid { position: absolute; left: 6%; right: 6%; top: 28%; height: 20%; border-radius: 16px; z-index: 2;
  background: linear-gradient(90deg, transparent 42%, var(--yellow) 42% 58%, transparent 58%), #2E8A80;
  box-shadow: inset 0 -8px 0 rgba(0,0,0,.12); transform-origin: 20% 100%; animation: lidPeek 3.2s ease-in-out infinite; }
.mbox-bow { position: absolute; left: 50%; top: -42%; width: 34%; height: 90%; translate: -50% 0; }
.mbox-bow::before, .mbox-bow::after { content: ''; position: absolute; top: 4px; width: 48%; height: 80%; border: 10px solid var(--yellow); border-radius: 50% 50% 10% 50%; }
.mbox-bow::before { left: 0; transform: rotate(-20deg); }
.mbox-bow::after { right: 0; transform: rotate(20deg) scaleX(-1); }
.mbox-glow { position: absolute; inset: -18%; border-radius: 50%; opacity: .55;
  background: repeating-conic-gradient(from 0deg, rgba(255, 201, 60, .7) 0 10deg, transparent 10deg 30deg);
  mask: radial-gradient(circle, black 30%, transparent 70%); animation: spin 12s linear infinite; }
@keyframes boxFloat { 50% { transform: translateY(-10px); } }
@keyframes lidPeek { 0%, 70%, 100% { transform: none; } 78% { transform: translateY(-12px) rotate(-6deg); } 86% { transform: translateY(-4px) rotate(3deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Fim ---------- */
.cta { font-weight: 800; font-size: clamp(19px, 1.7vw, 26px); }
.cta a { display: inline-flex; align-items: center; gap: 10px; background: #25D366; color: #073b1c; text-decoration: none; padding: 14px 26px; border-radius: 999px; }
.cta a:hover { filter: brightness(1.05); }

/* ---------- Barra de navegação ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--bar-h); z-index: 10;
  display: flex; align-items: center; gap: 10px; padding: 0 12px calc(env(safe-area-inset-bottom) / 2);
  background: var(--ink); color: #fff;
}
.bar button { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.bar button:hover { background: rgba(255,255,255,.2); }
.bar button:disabled { opacity: .3; cursor: default; }
.bar .bar-small { font-size: 20px; }
.bar-mid { flex: 1; min-width: 0; display: grid; gap: 4px; justify-items: center; }
.bar-title { margin: 0; font-size: 14px; font-weight: 700; color: #C9DCD8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bar-title #count { color: var(--yellow); }
.trail { display: flex; gap: 6px; }
.trail button { width: 10px; height: 10px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.25); }
.trail button.on { background: var(--yellow); transform: scale(1.3); }
.trail button:hover { background: rgba(255,255,255,.5); }

.live {
  position: fixed; top: 12px; right: 12px; z-index: 11; display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 8px 6px 14px; font-size: 14px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.live .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); animation: blink 1.4s infinite; }
.live button { border: 0; border-radius: 999px; padding: 5px 12px; background: var(--yellow); color: var(--ink); font: inherit; cursor: pointer; }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- Celular em pé ---------- */
@media (max-width: 900px), (orientation: portrait) {
  .slide { align-items: start; padding-top: 28px; padding-bottom: 40px; }
  .split, .split.wide-visual { grid-template-columns: 1fr; gap: 28px; }
  .places, .trust { grid-template-columns: 1fr 1fr; }
  .data-cols { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
  .phones.four { grid-template-columns: repeat(2, minmax(0, 200px)); }
  .phones.two { grid-template-columns: repeat(2, minmax(0, 200px)); }
  .phones.two .phone:nth-child(2) { transform: none; }
  .browser.tall { max-height: none; }
  .lead { max-width: none; }
  .s-cover .split { gap: 32px; }
}
@media (max-width: 560px) {
  :root { --bar-h: 58px; }
  .places, .trust { grid-template-columns: 1fr; }
  .bar-title { font-size: 12px; }
  .trail { display: none; }
  .bar button { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.live[hidden] { display: none; }

.play-link {
  display: block; text-align: center; text-decoration: none; font-weight: 800; font-size: clamp(16px, 1.3vw, 19px);
  background: var(--teal); color: #fff; border-radius: 999px; padding: 12px 18px;
}
.play-link:hover { filter: brightness(1.1); }

@media (max-width: 900px), (orientation: portrait) {
  /* Quem está no celular já escaneou: o QR da capa não faz sentido ali. */
  .qr-follow { display: none; }
  .live { top: 0; left: 0; right: 0; border-radius: 0; height: 44px; box-shadow: none; }
  .live button { margin-left: auto; }
  body.has-live #deck { top: 44px; }
}
