/* playchat v4: vidro, degradê e movimento. Carregado depois de site.css e site-v3.css */
:root {
  --lime: #C9FB50;
  --grad: linear-gradient(120deg, #6B4CFF 0%, #B829FF 42%, #00B8E6 100%);
  --grad-soft: linear-gradient(135deg, rgba(107, 76, 255, .34), rgba(184, 41, 255, .2) 50%, rgba(0, 240, 255, .16));
  --glass: linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .035));
  --glass-line: rgba(255, 255, 255, .17);
}

/* ---------- botões de vidro ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid var(--glass-line); border-radius: 999px;
  background: var(--glass); color: #fff;
  -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), inset 0 -8px 16px rgba(255, 255, 255, .03), 0 8px 26px rgba(0, 0, 0, .32);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-position .5s ease;
}
.btn::after {
  content: ""; position: absolute; z-index: -1; top: -50%; bottom: -50%; left: -35%; width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent);
  transform: skewX(-20deg) translateX(-140%); transition: transform .7s ease;
}
.btn:hover::after { transform: skewX(-20deg) translateX(520%); }
.btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .34); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 12px 34px rgba(107, 76, 255, .38); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary, .btn-accent {
  color: #fff; border-color: rgba(255, 255, 255, .3);
  background: linear-gradient(120deg, rgba(107, 76, 255, .9), rgba(168, 41, 240, .86) 45%, rgba(0, 150, 215, .86), rgba(107, 76, 255, .9));
  background-size: 260% 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 10px 30px rgba(107, 76, 255, .46);
  animation: v4-flow 9s linear infinite;
}
.btn-primary:hover, .btn-accent:hover { color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 14px 42px rgba(184, 41, 255, .55); }
.btn-ghost, .btn-white { color: #fff; background: var(--glass); }
.btn-ghost:hover, .btn-white:hover { color: #fff; background: linear-gradient(135deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06)); }
@keyframes v4-flow { to { background-position: -260% 0; } }

/* ---------- topo de vidro ---------- */
.site-header {
  background: rgba(9, 9, 11, .42); border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  transition: background .25s ease, border-color .25s ease;
}
.site-header.is-scrolled { background: rgba(9, 9, 11, .72); border-bottom-color: rgba(255, 255, 255, .09); }
.v4-progress { position: fixed; z-index: 400; inset: 0 0 auto; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* ---------- aurora ---------- */
.v4-hero, .page-hero { position: relative; overflow: hidden; }
.v4-aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.v4-aurora i { position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%; opacity: .62; will-change: transform; }
.v4-aurora i:nth-child(1) { left: -22vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(107, 76, 255, .78), transparent); animation: v4-a 19s ease-in-out infinite alternate; }
.v4-aurora i:nth-child(2) { right: -24vmax; top: -18vmax; background: radial-gradient(closest-side, rgba(184, 41, 255, .55), transparent); animation: v4-b 23s ease-in-out infinite alternate; }
.v4-aurora i:nth-child(3) { left: 24%; bottom: -44vmax; background: radial-gradient(closest-side, rgba(0, 200, 240, .36), transparent); animation: v4-c 27s ease-in-out infinite alternate; }
@keyframes v4-a { to { transform: translate(13vw, 9vh) scale(1.15); } }
@keyframes v4-b { to { transform: translate(-12vw, 12vh) scale(.9); } }
@keyframes v4-c { to { transform: translate(-9vw, -14vh) scale(1.2); } }
.v4-hero .container, .page-hero .container { position: relative; z-index: 1; }
.v4-grad-live { background: linear-gradient(100deg, #A78BFF, #E46BFF 35%, #38DCF5 68%, #C9FB50, #A78BFF); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: v4-flow 11s linear infinite; }
.grad-text { background-image: linear-gradient(100deg, #A78BFF, #E46BFF 45%, #38DCF5); }

/* ---------- vidro em painéis ---------- */
.v4-glass { position: relative; padding: 1rem; border: 1px solid var(--glass-line); border-radius: 26px; background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 30px 70px rgba(0, 0, 0, .46); }
[data-tilt] { transition: transform .18s ease-out; will-change: transform; }
.v3-demo.v4-glass { max-width: 440px; }
.v3-msg.out { background: linear-gradient(135deg, #5A3DE8, #8C2FE0); }
.v3-demo-tabs button[aria-selected="true"] { background: var(--grad); box-shadow: 0 4px 14px rgba(107, 76, 255, .5); }

/* ---------- cartões com brilho ---------- */
.glow { position: relative; overflow: hidden; isolation: isolate; }
.glow::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: 0; transition: opacity .25s ease; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(140, 90, 255, .3), transparent 70%); }
.glow:hover::before { opacity: 1; }
.feature-card, .v3-seg, .plan-card, .v3-plan-mini a, .faq-item { background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); border-color: rgba(255, 255, 255, .1); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.feature-card:hover, .v3-seg:hover, .v3-plan-mini a:hover { transform: translateY(-4px); border-color: rgba(167, 139, 255, .45); box-shadow: 0 18px 44px rgba(107, 76, 255, .2); }
.plan-card.featured { border-color: transparent; background: linear-gradient(#101015, #101015) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: 0 24px 70px rgba(107, 76, 255, .28); }
.icon-tile { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
.section-soft { background: linear-gradient(180deg, rgba(107, 76, 255, .06), rgba(0, 240, 255, .025) 60%, transparent); }
.cta-band { background: linear-gradient(120deg, #4A2FD8, #8B24D6 50%, #0C8FC4); background-size: 220% 100%; animation: v4-flow 16s linear infinite; }
.reveal { transition-delay: calc(var(--d, 0) * 70ms); }
.v3-seg-grid > :nth-child(2), .cards-grid > :nth-child(3n+2), .v4-bento > :nth-child(2n) { --d: 1; }
.v3-seg-grid > :nth-child(4), .cards-grid > :nth-child(3n) { --d: 2; }

/* ---------- fatos ---------- */
.v4-facts b { background: var(--grad); background-image: linear-gradient(100deg, #fff, #BBA8FF 60%, #7CE8FA); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* ---------- seções em duas colunas ---------- */
.v4-clip { overflow: clip; }
.v4-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem; align-items: center; }
.v4-small { margin-top: 1rem; font-size: .86rem; color: var(--text-mute); }
.v4-center { margin: 2.2rem 0 0; text-align: center; }
.v4-link { display: inline-flex; gap: .35rem; margin-top: 1rem; color: #BBA8FF; font-weight: 600; font-size: .92rem; text-decoration: none; }
.v4-link:hover { color: #fff; }

/* ---------- órbita de canais ---------- */
.v4-orbit { --r: 178px; position: relative; width: 100%; max-width: 480px; aspect-ratio: 1; margin-inline: auto; }
.v4-ring { position: absolute; inset: 50%; border: 1px dashed rgba(167, 139, 255, .28); border-radius: 50%; transform: translate(-50%, -50%); }
.v4-ring.r1 { width: calc(var(--r) * 2); height: calc(var(--r) * 2); }
.v4-ring.r2 { width: var(--r); height: var(--r); border-style: solid; border-color: rgba(0, 240, 255, .15); animation: v4-pulse 4s ease-out infinite; }
@keyframes v4-pulse { 0% { box-shadow: 0 0 0 0 rgba(107, 76, 255, .4); } 100% { box-shadow: 0 0 0 54px rgba(107, 76, 255, 0); } }
.v4-orbit-track { position: absolute; inset: 0; animation: v4-spin 60s linear infinite; }
.v4-orbit-item { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(calc(var(--i) * 40deg)) translateY(calc(var(--r) * -1)) rotate(calc(var(--i) * -40deg)); }
.v4-orbit-item b { display: block; padding: .38rem .72rem; border: 1px solid var(--glass-line); border-radius: 999px; background: rgba(24, 22, 38, .82); color: #fff; font: 600 .8rem/1.2 var(--font-body); white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 6px 18px rgba(0, 0, 0, .4); animation: v4-spin 60s linear infinite reverse; }
.v4-hub { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 136px; height: 136px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .15), rgba(107, 76, 255, .2)); border: 1px solid var(--glass-line); box-shadow: 0 0 60px rgba(107, 76, 255, .42), inset 0 1px 0 rgba(255, 255, 255, .3); }
.v4-hub img { width: 92px; height: auto; }
@keyframes v4-spin { to { rotate: 360deg; } }

/* ---------- jornada ---------- */
.v4-journey { position: relative; display: grid; gap: 1.3rem; max-width: 760px; margin: 0 auto; padding: 0; list-style: none; }
.v4-journey-line { position: absolute; left: 25px; top: 10px; bottom: 10px; width: 2px; background: rgba(255, 255, 255, .1); }
.v4-journey-line i { position: absolute; inset: 0; background: linear-gradient(180deg, #6B4CFF, #B829FF, #00F0FF); transform: scaleY(0); transform-origin: top; }
.v4-step { position: relative; display: flex; gap: 1.2rem; align-items: flex-start; opacity: .48; transition: opacity .35s ease; }
.v4-step.lit { opacity: 1; }
.v4-step-ic { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--glass-line); background: #15131f; color: #BBA8FF; transition: background .35s ease, color .35s ease, box-shadow .35s ease; }
.v4-step-ic svg { width: 23px; height: 23px; }
.v4-step.lit .v4-step-ic { background: var(--grad); color: #fff; box-shadow: 0 0 26px rgba(107, 76, 255, .6); }
.v4-step b { display: block; margin: .3rem 0 .15rem; font: 600 1.15rem/1.3 var(--font-display); }
.v4-step p { margin: 0; color: var(--text-soft); }

/* ---------- bento da IA ---------- */
.v4-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.v4-cell { display: flex; flex-direction: column; min-height: 248px; padding: 1.35rem; border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); }
.v4-cell.wide { grid-column: span 2; }
.v4-bento > :nth-child(1) { grid-column: span 2; }
.v4-cell h3 { margin: 0 0 .3rem; font-size: 1.07rem; }
.v4-cell p { margin: 0 0 1rem; font-size: .9rem; color: var(--text-soft); }
.v4-cell > div { margin-top: auto; }
.v4-wave { display: flex; align-items: center; gap: 3px; height: 62px; }
.v4-wave i { flex: 1; height: 100%; border-radius: 3px; background: linear-gradient(180deg, #A78BFF, #38DCF5); transform: scaleY(.18); animation: v4-wave 1.5s ease-in-out infinite alternate; }
.v4-wave i:nth-child(3n) { animation-delay: -.5s; animation-duration: 1.1s; }
.v4-wave i:nth-child(4n+1) { animation-delay: -.9s; }
.v4-wave i:nth-child(5n) { animation-delay: -.25s; animation-duration: 1.8s; }
.v4-wave i:nth-child(7n+2) { animation-delay: -1.2s; animation-duration: .95s; }
@keyframes v4-wave { to { transform: scaleY(1); } }
.v4-scan { position: relative; display: grid; gap: 7px; padding: .9rem; overflow: hidden; border: 1px solid var(--glass-line); border-radius: 12px; background: rgba(255, 255, 255, .05); }
.v4-scan span { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .16); }
.v4-scan span:nth-child(1) { width: 56%; } .v4-scan span:nth-child(3) { width: 78%; } .v4-scan span:nth-child(4) { width: 40%; }
.v4-scan em { position: absolute; inset: 0 0 auto; height: 2px; background: #38DCF5; box-shadow: 0 0 16px 4px rgba(56, 220, 245, .55); animation: v4-scan 2.8s ease-in-out infinite alternate; }
@keyframes v4-scan { to { transform: translateY(68px); } }
.v4-query { display: grid; gap: .35rem; }
.v4-query span { display: flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--text-soft); opacity: .25; animation: v4-line 6s infinite; }
.v4-query span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.v4-query span:nth-child(2) { animation-delay: .8s; } .v4-query span:nth-child(3) { animation-delay: 1.6s; }
@keyframes v4-line { 0%, 6% { opacity: .25; } 14%, 86% { opacity: 1; } 100% { opacity: .25; } }
.v4-kan { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; height: 74px; }
.v4-kan span { border-radius: 9px; background: rgba(255, 255, 255, .06); }
.v4-kan i { position: absolute; left: 6px; top: 12px; width: calc((100% - 36px) / 3); height: 26px; border-radius: 7px; background: var(--grad); box-shadow: 0 6px 16px rgba(107, 76, 255, .5); animation: v4-kan 7s ease-in-out infinite; }
@keyframes v4-kan { 0%, 22% { translate: 0 0; } 40%, 62% { translate: calc(100% + 12px) 0; } 80%, 100% { translate: calc(200% + 24px) 0; } }
.v4-confirm { display: grid; gap: .4rem; font-size: .84rem; }
.v4-confirm span { justify-self: start; padding: .42rem .65rem; border-radius: 11px; background: linear-gradient(135deg, #5A3DE8, #8C2FE0); }
.v4-confirm b { justify-self: end; padding: .34rem .8rem; border-radius: 11px; background: #23262f; font-weight: 500; animation: v4-yes 5s ease infinite; }
@keyframes v4-yes { 0%, 28% { opacity: 0; transform: translateY(6px) scale(.92); } 38%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.v4-learn { display: flex; flex-wrap: wrap; gap: .45rem; }
.v4-learn span { padding: .38rem .7rem; border: 1px solid rgba(201, 251, 80, .3); border-radius: 999px; font-size: .8rem; color: var(--lime); animation: v4-float 5s ease-in-out infinite alternate; }
.v4-learn span:nth-child(2) { animation-delay: -1.6s; } .v4-learn span:nth-child(3) { animation-delay: -3.1s; }
@keyframes v4-float { to { transform: translateY(-5px); } }

/* ---------- tour ---------- */
.v4-tour-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; max-width: 720px; margin: 0 auto 1.3rem; }
.v4-tour-tabs button { position: relative; overflow: hidden; min-height: 46px; padding: 0 .4rem; border: 1px solid var(--glass-line); border-radius: 13px; background: var(--glass); color: var(--text-soft); font: 600 .92rem/1 var(--font-display); cursor: pointer; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: color .2s ease, border-color .2s ease; }
.v4-tour-tabs button[aria-selected="true"] { color: #fff; border-color: rgba(167, 139, 255, .7); }
.v4-tour-tabs i { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.v4-tour-tabs button[aria-selected="true"] i { transform: scaleX(1); }
.is-auto .v4-tour-tabs button[aria-selected="true"] i { animation: v4-fill 6s linear; }
@keyframes v4-fill { from { transform: scaleX(0); } }
.v4-window { max-width: 1000px; margin: 0 auto; overflow: hidden; border: 1px solid var(--glass-line); border-radius: 18px; background: #14141c; box-shadow: 0 34px 90px rgba(0, 0, 0, .6), 0 0 80px rgba(107, 76, 255, .18); }
.v4-window-bar { display: flex; gap: 6px; padding: .65rem .85rem; background: rgba(255, 255, 255, .05); }
.v4-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.v4-window img { display: block; width: 100%; height: auto; animation: v3-up .35s ease-out; }
.v4-tour-cap { max-width: 640px; min-height: 3.2rem; margin: 1.1rem auto 0; text-align: center; color: var(--text-soft); }

/* ---------- faixa de integrações ---------- */
.v4-marquee { display: flex; gap: .7rem; margin-bottom: .7rem; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.v4-track { flex: none; display: flex; gap: .7rem; animation: v4-slide 58s linear infinite; }
.v4-marquee.rev .v4-track { animation-direction: reverse; }
.v4-marquee:hover .v4-track { animation-play-state: paused; }
@keyframes v4-slide { to { transform: translateX(calc(-100% - .7rem)); } }
.v4-pill { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .9rem .45rem .5rem; border: 1px solid rgba(255, 255, 255, .11); border-radius: 999px; background: rgba(255, 255, 255, .05); color: var(--text); font-size: .88rem; font-weight: 500; white-space: nowrap; }
.v4-pill:not(:has(i)) { padding-left: .9rem; }
.v4-pill i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; }
.v4-pill img { width: 20px; height: 20px; object-fit: contain; }

/* ---------- comparação ---------- */
.v4-switch { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 1rem; padding: 4px; border: 1px solid var(--glass-line); border-radius: 999px; background: var(--glass); }
.v4-switch button { min-height: 42px; padding: 0 1.1rem; border: 0; border-radius: 999px; background: transparent; color: var(--text-soft); font: 600 .92rem/1 var(--font-display); cursor: pointer; }
.v4-switch button[aria-pressed="true"] { background: var(--grad); color: #fff; }
.v4-compare { padding: 1.5rem; min-height: 262px; }
.v4-compare-list { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; }
.v4-compare-list li { display: flex; gap: .6rem; align-items: flex-start; animation: v3-up .25s ease-out both; }
.v4-compare-list svg { flex: none; margin-top: 3px; color: var(--success); }
.v4-compare-list .x { flex: none; width: 17px; text-align: center; color: var(--coral); font-weight: 700; }

/* ---------- funcionalidades ---------- */
.v4-subnav { position: sticky; top: var(--nav-h); z-index: 20; border-block: 1px solid rgba(255, 255, 255, .08); background: rgba(9, 9, 11, .66); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.v4-subnav .container { display: flex; gap: .4rem; padding-block: .55rem; overflow-x: auto; scrollbar-width: none; }
.v4-subnav a { flex: none; padding: .4rem .85rem; border-radius: 999px; color: var(--text-soft); font-size: .88rem; font-weight: 500; text-decoration: none; }
.v4-subnav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.v4-sectors { display: grid; gap: 1.1rem; }
.v4-sector { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 2rem; padding: 1.7rem; border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); scroll-margin-top: calc(var(--nav-h) + 72px); }
.v4-sector h3 { margin: 1rem 0 .3rem; }
.v4-sector p { margin: 0; color: var(--text-soft); }
.v4-sector .checklist { margin: 0; padding: 0; list-style: none; }
#recursos { scroll-margin-top: calc(var(--nav-h) + 60px); }

@media (max-width: 1040px) {
  .v4-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .v4-split, .v4-sector { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .v4-orbit { --r: 142px; max-width: 356px; }
  .v4-hub { width: 110px; height: 110px; }
  .v4-hub img { width: 76px; }
}
@media (max-width: 620px) {
  .v4-bento { grid-template-columns: minmax(0, 1fr); }
  .v4-cell.wide, .v4-bento > :nth-child(1) { grid-column: auto; }
  .v4-cell { min-height: 0; }
  .v4-tour-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v3-demo.v4-glass { padding: .6rem; border-radius: 20px; }
  .v4-switch { display: grid; }
  .v4-switch button { padding: 0 .6rem; }
}
@media (max-width: 390px) {
  .v4-orbit { --r: 122px; }
  .v4-orbit-item b { padding: .3rem .55rem; font-size: .72rem; }
  .v4-hub { width: 92px; height: 92px; }
  .v4-hub img { width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .v4-wave i { transform: scaleY(.6); }
  .v4-confirm b, .v4-query span { opacity: 1; }
}

/* ajustes da conferência visual */
.v4-facts b span { display: inline; font: inherit; color: inherit; }
.v4-facts b { font-size: clamp(2rem, 4vw, 2.7rem); }
.v4-split .checklist { padding-left: 0; list-style: none; }
.v4-hub img { width: 106px; }
