/* apresentação guiada */
.story { position: fixed; inset: 0; z-index: 100; background: #0c1628; color: #eef2f8; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; animation: st-in .5s var(--ease); }
.story.out { animation: st-out .45s ease forwards; }
@keyframes st-in { from { opacity: 0; } }
@keyframes st-out { to { opacity: 0; transform: scale(1.02); } }
.st-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px circle at 75% 30%, color-mix(in srgb, var(--brand) 38%, transparent), transparent 70%), radial-gradient(600px circle at 15% 90%, rgb(59 130 246 / .18), transparent 70%); animation: glow 12s ease-in-out infinite alternate; }
@keyframes glow { to { transform: translate(-4%, 3%) scale(1.06); } }
.st-top { position: relative; display: flex; align-items: center; gap: 10px; padding: 18px 28px; }
.st-top b { font-size: 16px; }
.st-sub { color: #a9b6cb; font-size: 13px; }
.st-skip { margin-left: auto; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); color: #eef2f8; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.st-skip:hover { background: rgb(255 255 255 / .14); }
.st-stage { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: center; max-width: 1120px; width: 100%; margin: 0 auto; padding: 0 28px; min-height: 0; }
.story.sem-chat .phone { opacity: 0; transform: translateX(-30px) scale(.94); pointer-events: none; position: absolute; }
.story.sem-chat .st-stage { grid-template-columns: 1fr; max-width: 820px; }

/* celular */
.phone { width: 300px; height: min(600px, 68vh); border-radius: 44px; background: #0b0f17; padding: 10px; box-shadow: 0 50px 100px -30px rgb(0 0 0 / .8), inset 0 0 0 2px rgb(255 255 255 / .08); display: grid; grid-template-rows: auto 1fr auto; position: relative; transition: opacity .4s, transform .5s var(--ease); animation: ph-in .9s var(--ease); }
@keyframes ph-in { from { transform: translateY(40px) rotate(-3deg); opacity: 0; } }
.ph-notch { position: absolute; top: 18px; left: 50%; translate: -50%; width: 90px; height: 24px; border-radius: 99px; background: #000; z-index: 2; }
.ph-head { display: flex; align-items: center; gap: 10px; padding: 46px 14px 12px; background: #008069; border-radius: 34px 34px 0 0; color: #fff; }
.ph-head .logo { width: 34px; height: 34px; border-radius: 50%; font-size: 13px; }
.ph-head b { display: block; font-size: 14px; line-height: 1.2; }
.ph-head small { font-size: 11px; opacity: .8; }
.ph-chat { background: #efeae2; padding: 12px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; scroll-behavior: smooth; scrollbar-width: none; }
.ph-input { background: #efeae2; border-radius: 0 0 34px 34px; padding: 8px 10px 18px; }
.ph-input span { display: block; background: #fff; border-radius: 99px; padding: 8px 14px; color: #8a8f98; font-size: 13px; }
.bub { max-width: 82%; padding: 7px 10px 5px; border-radius: 10px; font-size: 13.5px; line-height: 1.35; color: #111b21; box-shadow: 0 1px 1px rgb(0 0 0 / .08); animation: bub .4s var(--ease); white-space: pre-line; }
.bub small { display: block; text-align: right; font-size: 10px; color: #667781; margin-top: 2px; }
.bub.them { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.bub.me { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 2px; }
.bub .pixbox { display: block; margin: 6px 0 2px; padding: 8px; border-radius: 8px; background: #f0f2f5; font-size: 12px; white-space: normal; }
.bub .pixbox b { display: block; font-size: 15px; }
@keyframes bub { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.typing { display: flex; gap: 4px; padding: 10px 12px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8a8f98; animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { transform: translateY(-4px); opacity: .5; } }

/* lado do painel */
.st-side.in > * { animation: side-in .7s var(--ease) backwards; }
.st-side.in > :nth-child(2) { animation-delay: .06s; } .st-side.in > :nth-child(3) { animation-delay: .12s; } .st-side.in > :nth-child(4) { animation-delay: .2s; }
@keyframes side-in { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
.st-n { font-size: 13px; color: color-mix(in srgb, var(--brand) 60%, #fff); font-weight: 600; letter-spacing: .02em; }
.st-side h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -.03em; margin: 10px 0 12px; font-weight: 700; text-wrap: balance; }
.st-side p { color: #a9b6cb; font-size: 18px; max-width: 46ch; margin: 0 0 26px; }
.sp { background: #fff; color: var(--ink); border-radius: 18px; padding: 18px; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .7); max-width: 520px; }
.sp h4 { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); font-weight: 600; display: flex; justify-content: space-between; gap: 10px; }
.sp .big { font-size: 34px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sp .r { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.sp .r:first-of-type { border-top: 0; }
.sp .r.flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 0% { background: color-mix(in srgb, var(--ok) 28%, #fff); } }
.sp .paid { width: 64px; height: 64px; margin: 4px auto 10px; }
.sp table td, .sp table th { padding: 8px 6px; }
.st-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.btn.big { padding: 15px 24px; font-size: 16px; border-radius: 12px; text-decoration: none; }
.btn.ghost { background: rgb(255 255 255 / .08); color: #eef2f8; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); padding: 15px 24px; border-radius: 12px; }
.final-logo { width: 84px; height: 84px; border-radius: 24px; font-size: 30px; margin-bottom: 18px; animation: pop .8s var(--ease); }

/* rodapé da apresentação */
.st-foot { position: relative; display: flex; align-items: center; gap: 24px; padding: 18px 28px 24px; }
.st-bars { display: flex; gap: 6px; flex: 1; max-width: 520px; }
.st-bars i { flex: 1; height: 4px; border-radius: 4px; background: rgb(255 255 255 / .16); overflow: hidden; }
.st-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.st-bars i.done b { width: 100%; }
.st-bars i.run b { width: 100%; transition: width 3.2s linear; }
.st-nav { margin-left: auto; display: flex; gap: 8px; }
.st-nav button { border: 0; padding: 11px 20px; border-radius: 999px; font-weight: 600; cursor: pointer; }
.st-prev { background: rgb(255 255 255 / .08); color: #eef2f8; }
.st-prev:disabled { opacity: .35; cursor: default; }
.st-next { background: var(--brand); color: var(--brand-ink); }
.replay { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 9px; border-radius: 11px; border: 0; background: none; color: var(--ink-2); cursor: pointer; font-size: 13.5px; }
.replay:hover { color: var(--brand); }

@media (max-width: 860px) {
  .st-stage { grid-template-columns: 1fr; gap: 18px; align-content: start; overflow-y: auto; padding: 0 16px 12px; }
  .phone { width: 100%; max-width: 340px; height: 300px; margin: 0 auto; border-radius: 30px; order: 2; }
  .ph-head { padding-top: 14px; border-radius: 22px 22px 0 0; } .ph-notch { display: none; } .ph-input { border-radius: 0 0 22px 22px; }
  .st-side p { font-size: 16px; margin-bottom: 14px; }
  .st-top { padding: 14px 16px; } .st-sub { display: none; }
  .st-foot { padding: 12px 16px 18px; }
  .sp { padding: 14px; }
}
