/* A Porta Nova do Reinado — design system V4 "Apresentação da Entrega"
   Palco fixo 1920x1080, escalado para a tela. Nenhum texto lido pela plateia abaixo de 28px. */

:root {
  --v4: #FB2E0A;
  --v4-deep: #D61A0E;
  --v4-dark: #8A0D05;
  --v4-darker: #5A0802;
  --bordo: #240705;
  --bordo-2: #4A0D05;
  --bordo-ink: #2A0703;
  --card-red: #C21A0A;
  --wa-green: #075E54;
  --wa-bg: #EFE7DE;
  --wa-out: #D9FDD3;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; background: #0a0a0a; color: #fff; font-family: 'IBM Plex Sans', -apple-system, sans-serif; }

.viewport { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
.stage { width: 1920px; height: 1080px; position: relative; flex: none; transform-origin: center center; overflow: hidden; }

/* ---------- Slides ---------- */
.slide {
  position: absolute; inset: 0; padding: 72px 120px 96px; display: flex; flex-direction: column;
  background: radial-gradient(ellipse at center, #ff3a1f 0%, var(--v4-deep) 55%, var(--v4-dark) 100%);
  opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.slide--alt { background: linear-gradient(135deg, #ff5a2c 0%, #e6230e 60%, var(--v4-dark) 100%); }
.slide--diag { background: radial-gradient(circle at 30% 50%, #ff6a3c 0%, var(--v4-deep) 50%, var(--v4-darker) 100%); }
.slide--soft { background: linear-gradient(180deg, #b81409 0%, #f04823 100%); }
.slide--bordo { background: linear-gradient(135deg, var(--bordo) 0%, var(--bordo-2) 55%, #2a0703 100%); }
.slide--white { background: #fff; color: var(--bordo-ink); }

.slide__header { display: flex; align-items: center; height: 84px; flex: none; }
.logo-v4 { width: 84px; height: 84px; border-radius: 20px; background: #fff url("assets/v4.jpg") center/74% no-repeat; box-shadow: 0 8px 26px rgba(0,0,0,.18); }
.slide--white .logo-v4 { border: 1px solid rgba(0,0,0,.08); }
.tag {
  margin-left: auto; padding: 14px 28px; border-radius: 100px; background: #fff; color: var(--card-red);
  font-weight: 800; font-size: 26px; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 6px 20px rgba(0,0,0,.22);
}
.slide__body { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.slide__footer { flex: none; display: flex; justify-content: space-between; font-size: 22px; font-weight: 500; color: rgba(255,255,255,.55); }
.slide--white .slide__footer { color: rgba(42,7,3,.45); }

/* ---------- Tipografia ---------- */
.eyebrow {
  align-self: flex-start; display: inline-block; margin-bottom: 28px; padding: 12px 26px; border-radius: 100px;
  font-weight: 700; font-size: 26px; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
}
.slide--white .eyebrow { color: var(--card-red); background: #fdeeea; border-color: rgba(194,26,10,.18); }
.kicker { font-weight: 800; font-size: 28px; letter-spacing: .12em; text-transform: uppercase; color: var(--card-red); margin-bottom: 20px; }

.mega { font-weight: 700; font-size: 168px; line-height: .95; letter-spacing: -.035em; }
.title { font-weight: 700; font-size: 112px; line-height: 1; letter-spacing: -.03em; }
.statement { font-weight: 700; font-size: 84px; line-height: 1.04; letter-spacing: -.025em; }
.lead { font-weight: 500; font-size: 44px; line-height: 1.3; color: rgba(255,255,255,.92); margin-top: 36px; }
.slide--white .lead { color: #5a4742; }
.slide--white .mega, .slide--white .title { color: var(--v4); }
.lead b, .slide--white .lead b { color: inherit; font-weight: 700; }
.slide--white .lead b { color: var(--card-red); }

/* ---------- Componentes ---------- */
.cards { display: grid; gap: 28px; margin-top: 56px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 26px; padding: 40px 38px;
  backdrop-filter: blur(10px);
}
.card--hi { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.55); }
.card__num { font-weight: 700; font-size: 28px; letter-spacing: .08em; opacity: .85; }
.card__name { font-weight: 700; font-size: 52px; line-height: 1.05; letter-spacing: -.015em; margin-top: 8px; }
.card__text { font-size: 34px; line-height: 1.3; color: rgba(255,255,255,.92); margin-top: 16px; }
.card__text--quote { font-style: italic; }
.who { display: inline-block; margin-top: 22px; padding: 6px 14px; border-radius: 8px; background: #fff; color: var(--card-red); font-weight: 800; font-size: 24px; letter-spacing: .08em; text-transform: uppercase; }

.flow { display: flex; align-items: stretch; gap: 22px; margin-top: 56px; }
.flow .card { flex: 1; }
.flow__arrow { display: flex; align-items: center; font-size: 60px; font-weight: 800; }

.bridge {
  display: flex; gap: 20px; align-items: flex-start; margin-top: 48px; max-width: 760px;
  background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.06)); border-left: 6px solid #fff; border-radius: 16px; padding: 28px 32px;
}
.bridge__arrow { font-weight: 800; font-size: 44px; line-height: 1; }
.bridge__label { display: block; font-size: 24px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; margin-bottom: 8px; }
.bridge__text { font-weight: 700; font-size: 40px; line-height: 1.2; }

.hero-card {
  display: inline-flex; flex-direction: column; gap: 10px; align-self: flex-start; margin-top: 44px; padding: 34px 42px;
  background: #fff; border-left: 10px solid var(--v4); border-radius: 22px; box-shadow: 0 16px 40px rgba(0,0,0,.24);
}
.hero-card__label { font-size: 26px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--card-red); }
.hero-card__value { font-size: 88px; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--bordo-ink); }
.hero-card__sub { font-size: 30px; color: #6b4a42; }

.split { display: grid; grid-template-columns: 1fr 640px; gap: 96px; align-items: center; flex: 1; min-height: 0; }
.split__left { display: flex; flex-direction: column; }

.deco { position: absolute; border-radius: 28px; pointer-events: none; background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.06); }
.deco--1 { width: 460px; height: 460px; top: -120px; right: -120px; transform: rotate(15deg); }
.deco--2 { width: 300px; height: 300px; bottom: -90px; left: 6%; transform: rotate(-12deg); opacity: .5; }

/* Reveal (passo a passo com → ) */
[data-step] { transition: opacity .35s ease, transform .35s ease; }
[data-step]:not(.is-shown) { opacity: 0; transform: translateY(14px); pointer-events: none; }
.phone [data-step]:not(.is-shown) { display: none; }

/* ---------- Slide 2: nota ---------- */
.stars { font-size: 84px; color: #f5b301; letter-spacing: .12em; margin-top: 12px; }

/* ---------- Slide 4: fotos ---------- */
.photos { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; margin-top: 56px; }
.photo__cap { font-size: 28px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.photo { border-radius: 26px; overflow: hidden; box-shadow: 0 22px 54px rgba(0,0,0,.32); background: #fff; }
.photo img { display: block; width: 100%; height: auto; }

/* ---------- Slide 6: números ---------- */
.numbers { display: grid; grid-template-columns: 1fr 560px; gap: 80px; align-items: center; flex: 1; }
.stats { display: grid; grid-template-columns: repeat(3, auto); gap: 24px; margin-top: 48px; justify-content: start; }
.stat { background: #f6f1ef; border-radius: 22px; padding: 26px 32px; }
.stat__label { font-size: 24px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9a3c14; }
.stat__value { font-size: 60px; font-weight: 800; color: var(--bordo-ink); line-height: 1.05; margin-top: 6px; }
.ok { color: #1f8a4c; }
.dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 14px; }
.dot { aspect-ratio: 1; border-radius: 50%; background: var(--v4); transform: scale(0); }
.slide.is-active .dot { animation: pop .35s ease forwards; }
@keyframes pop { 70% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* ---------- Celular / WhatsApp ---------- */
.phone {
  width: 640px; height: 900px; align-self: center; justify-self: center; display: flex; flex-direction: column;
  background: var(--wa-bg); border: 14px solid #1d0402; border-radius: 52px; overflow: hidden; color: #111;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.phone__bar { flex: none; display: flex; align-items: center; gap: 18px; padding: 22px 26px; background: var(--wa-green); color: #fff; }
.phone__avatar { width: 58px; height: 58px; border-radius: 50%; background: #c9d6d3; color: var(--wa-green); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 28px; flex: none; }
.phone__name { font-weight: 700; font-size: 30px; line-height: 1.1; }
.phone__sub { font-size: 22px; opacity: .8; }
.phone__body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 22px 20px 26px; }
.msg { max-width: 88%; padding: 14px 18px 10px; border-radius: 16px; font-size: 30px; line-height: 1.32; box-shadow: 0 1px 1px rgba(0,0,0,.12); flex: none; }
.msg--in { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.msg--out { align-self: flex-end; background: var(--wa-out); border-top-right-radius: 4px; }
.msg--quick { outline: 3px dashed #25a35a; outline-offset: -3px; }
.msg__meta { display: block; text-align: right; font-size: 20px; color: #6b7c85; margin-top: 4px; }
.msg__ad { display: flex; gap: 14px; align-items: center; background: #f0f2f5; border-left: 5px solid #25a35a; border-radius: 10px; padding: 10px; margin-bottom: 10px; }
.msg__ad img { width: 92px; height: 92px; object-fit: cover; border-radius: 8px; flex: none; }
.msg__ad b { display: block; font-size: 24px; }
.msg__ad span { font-size: 21px; color: #54656f; }
.msg__video { position: relative; display: block; width: 100%; aspect-ratio: 16/10; border-radius: 10px; margin-bottom: 8px; background: #ccc center/cover no-repeat; }
.msg__video::after { content: "▶"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 64px; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.chat-end { align-self: center; flex: none; font-size: 24px; color: #54656f; background: #fff7c2; border-radius: 10px; padding: 8px 18px; margin-top: 6px; }
.typing { align-self: flex-start; background: #fff; border-radius: 16px; padding: 16px 20px; display: flex; gap: 8px; flex: none; }
.typing--out { align-self: flex-end; background: var(--wa-out); }
.typing i { width: 12px; height: 12px; border-radius: 50%; background: #8696a0; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* Tela do Instagram dentro do celular (slide 5) */
.phone--ig { position: relative; background: #fff; }
.ig { position: absolute; inset: 0; display: flex; flex-direction: column; }
.ig__top { display: flex; align-items: center; gap: 14px; padding: 22px 24px; font-weight: 700; font-size: 26px; }
.ig__top small { display: block; font-weight: 400; font-size: 20px; color: #737373; }
.ig__logo { width: 52px; height: 52px; border-radius: 50%; background: var(--v4) center/60% no-repeat; flex: none; }
.ig img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.ig__cta { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; background: #0095f6; color: #fff; font-weight: 700; font-size: 28px; }
.ig__cta.is-tapped { animation: tap .5s ease; }
@keyframes tap { 50% { filter: brightness(.75); transform: scale(.97); } }
.wa-screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--wa-bg); }
.wa-screen:not(.is-shown) { display: none; }

/* ---------- Slide 18: etiquetas ---------- */
.legend { display: flex; flex-direction: column; gap: 22px; margin-top: 44px; }
.legend__row { display: flex; align-items: baseline; gap: 22px; }
.label-chip { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 44px; color: var(--bordo-ink); white-space: nowrap; }
.label-chip::before { content: ""; width: 40px; height: 28px; border-radius: 4px 14px 14px 4px; background: var(--c); flex: none; }
.legend__desc { font-size: 34px; color: #6b4a42; }
.chats { flex: 1; overflow: hidden; background: #fff; }
.chat { position: relative; display: flex; gap: 18px; align-items: center; padding: 20px 22px; border-bottom: 1px solid #eee; cursor: pointer; }
.chat:hover { background: #f7f7f7; }
.chat.is-flash { animation: flash .8s ease; }
@keyframes flash { 30% { background: #e7f8ee; } }
.chat__main { flex: 1; min-width: 0; }
.chat__name { font-weight: 700; font-size: 30px; }
.chat__last { font-size: 24px; color: #667781; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__labels { display: flex; gap: 8px; margin-top: 8px; min-height: 34px; }
.chat__label { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 700; color: #3b4a54; background: #f0f2f5; border-radius: 8px; padding: 3px 10px; }
.chat__label::before { content: ""; width: 20px; height: 14px; border-radius: 2px 7px 7px 2px; background: var(--c); }
.label-menu { position: absolute; right: 18px; top: 70%; z-index: 3; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); padding: 8px; min-width: 280px; }
.label-menu button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 12px 14px; border: 0; background: none; font: inherit; font-size: 26px; font-weight: 600; color: #111; cursor: pointer; border-radius: 8px; text-align: left; }
.label-menu button:hover { background: #f0f2f5; }
.label-menu button::before { content: ""; width: 24px; height: 18px; border-radius: 3px 9px 9px 3px; background: var(--c); }

/* ---------- Fechamento ---------- */
.quote { font-weight: 700; font-size: 116px; line-height: 1.02; letter-spacing: -.035em; }

/* ---------- Chrome (fora do palco) ---------- */
.controls {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 12px 20px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.5)); opacity: 0; transition: opacity .3s;
}
body:hover .controls, .controls:focus-within { opacity: 1; }
.btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff; font-size: 18px; cursor: pointer; }
.btn:disabled { opacity: .3; cursor: default; }
.progress { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); overflow: hidden; }
.progress__fill { height: 100%; width: 0; background: #fff; transition: width .4s ease; }
.counter { font-weight: 600; font-size: 14px; min-width: 64px; text-align: center; }
.hint { position: fixed; top: 14px; right: 18px; z-index: 10; font-size: 13px; color: rgba(255,255,255,.6); transition: opacity .6s; pointer-events: none; }
.hint.is-hidden { opacity: 0; }
.notes {
  position: fixed; left: 20px; right: 20px; bottom: 70px; z-index: 20; display: none; max-height: 38vh; overflow-y: auto;
  background: rgba(10,10,10,.94); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 18px 22px; font-size: 18px; line-height: 1.5;
}
.notes b { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #ffb4a6; }
body.show-notes .notes { display: block; }
.slide-notes { display: none; }

/* Ajustes de encaixe no palco */
.phone { height: 790px; }
.phone__body { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 70px); mask-image: linear-gradient(to bottom, transparent 0, #000 70px); }
.photos { grid-template-columns: auto auto; justify-content: start; margin-top: 44px; }
.photo img { height: 470px; width: auto; }
.ig img { aspect-ratio: 1 / 0.88; }
.chat__label { font-size: 24px; }

/* Slide 2: avaliações reais do Google */
.split--reviews { grid-template-columns: 620px 1fr; gap: 80px; }
.reviews { display: flex; flex-direction: column; gap: 32px; }
.review { background: #f6f1ef; border-left: 10px solid var(--v4); border-radius: 22px; padding: 36px 44px; }
.review__stars { color: #f5b301; font-size: 34px; letter-spacing: .1em; }
.review blockquote { font-size: 46px; font-weight: 600; line-height: 1.22; color: var(--bordo-ink); margin-top: 10px; }
.review figcaption { font-size: 26px; color: #8a6a62; margin-top: 16px; }
