/* ===================== MOVIMENTO (suave, só transform/opacity) ===================== */
:root { --ease: cubic-bezier(.22, .61, .36, 1); --ease-soft: cubic-bezier(.4, 0, .2, 1); }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: var(--ease-soft); }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--violet), var(--coral), var(--sun), var(--mint)); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; pointer-events: none; }
.top { transition: box-shadow .4s var(--ease), background .4s var(--ease); } .top.scrolled { box-shadow: 0 10px 30px -22px rgba(30, 22, 51, .55); }

/* revelação: sobe e aparece, em sequência (--i) */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js .rv.l { transform: translateX(-26px); } .js .rv.r { transform: translateX(26px); } .js .rv.s { transform: scale(.96); }
.js .rv.in { opacity: 1; transform: none; }

/* hero: título que se escreve, grifo que se desenha, auras e palavras flutuando */
.hero .wrap { position: relative; z-index: 1; }
.split .w { display: inline-block; opacity: 0; transform: translateY(.5em); animation: wordIn .7s var(--ease) forwards; animation-delay: calc(var(--i) * 55ms + 120ms); }
@keyframes wordIn { to { opacity: 1; transform: none; } }
.hero h1 .ink { background: linear-gradient(transparent 62%, var(--sun) 62% 92%, transparent 92%) no-repeat 0 0 / 100% 100%; }
.js:not(.calm) .hero h1 .ink { background-size: 0% 100%; animation: ink 1.1s var(--ease) 1.1s forwards; }
@keyframes ink { to { background-size: 100% 100%; } }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(26px, -22px, 0) scale(1.08); } }
@keyframes bob { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-16px) rotate(3deg); } }

.portrait .tag { animation: tagSway 6s ease-in-out infinite alternate; } @keyframes tagSway { from { transform: rotate(-3deg); } to { transform: rotate(-1deg) translateY(-3px); } }

/* botões: leve "imã" com o cursor e brilho que passa */
.btn { transform: translate(var(--tx, 0), var(--ty, 0)); transition: transform .35s var(--ease), background .3s, box-shadow .35s var(--ease); position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); pointer-events: none; }
.btn:hover::after { transform: translateX(120%); } .btn:hover { transform: translate(var(--tx, 0), calc(var(--ty, 0px) - 2px)); }

/* planos: calmos. Entram em sequência, flutuam de leve e ganham um brilho suave sob o cursor */
.card { position: relative; overflow: hidden; transition: transform .7s var(--ease), box-shadow .7s var(--ease), border-color .7s var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(109, 40, 217, .16), transparent 65%); }
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-5px); border-color: var(--coral); box-shadow: 0 22px 40px -28px rgba(30, 22, 51, .45); }
.card > * { position: relative; }
.card .price .num { font-variant-numeric: tabular-nums; }
.promo { animation: breathe 5s ease-in-out infinite; } @keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.note, .steps li { position: relative; overflow: hidden; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.note:hover, .steps li:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -26px rgba(30, 22, 51, .45); }
.steps li::before { transition: transform .6s var(--ease), background .4s; } .steps li:hover::before { transform: rotate(-8deg) scale(1.08); background: var(--coral); }

/* jornada: o marcador "pousa" em cada módulo */
.path li.on::before { animation: pop .6s var(--ease); } @keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* faq e whatsapp */
.faq summary::after { transition: transform .45s var(--ease); } .faq details[open] summary::after { content: "+"; transform: rotate(135deg); }
.faq details { transition: border-color .4s, box-shadow .4s; } .faq details[open] { border-color: var(--coral); box-shadow: 0 14px 28px -24px rgba(30, 22, 51, .45); }
.faq details[open] p { animation: faqIn .5s var(--ease); } @keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1F6B4A; animation: ring 5s ease-out infinite; pointer-events: none; }
@keyframes ring { 0% { transform: scale(1); opacity: .5; } 60%, 100% { transform: scale(1.7); opacity: 0; } }

/* agendamento: cada etapa entra suave; seleção "pousa" */
#flow.enter .panel, #flow.enter .msg { animation: rise .55s var(--ease) both; } @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pick, .time { transition: transform .35s var(--ease), border-color .3s, background .3s, color .3s, box-shadow .35s var(--ease); }
.pick:hover, .time:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -18px rgba(30, 22, 51, .5); }
.pick[aria-pressed="true"], .time[aria-pressed="true"], .dc[aria-pressed="true"] { animation: pop .45s var(--ease); }
.codebox { animation: rise .7s var(--ease) both; }
.confetti { position: fixed; left: 50%; top: 38%; width: 0; height: 0; z-index: 70; pointer-events: none; } .confetti i { position: absolute; width: 9px; height: 14px; border-radius: 3px; opacity: 0; }

/* sem animação para quem prefere menos movimento: tudo já no estado final */
/* fotos e planos: halo que gira, foto que flutua, turma que respira */
.portrait picture { animation: float 9s ease-in-out infinite alternate; } @keyframes float { from { transform: translateY(0); } to { transform: translateY(-8px); } }
.portrait::before { animation: halo 22s linear infinite; } @keyframes halo { to { transform: rotate(360deg); } }
.seats i { animation: seat 2.6s ease-in-out infinite; } .seats i:nth-child(2) { animation-delay: .15s; } .seats i:nth-child(3) { animation-delay: .3s; } .seats i:nth-child(4) { animation-delay: .45s; } .seats i:nth-child(5) { animation-delay: .6s; } .seats i:nth-child(6) { animation-delay: .75s; }
@keyframes seat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.card.team { isolation: isolate; } .card.team::after { content: ""; position: absolute; z-index: -1; inset: -70%; pointer-events: none; background: conic-gradient(from 0deg, transparent 0 62%, rgba(255, 107, 157, .22) 80%, rgba(251, 191, 36, .22) 92%, transparent); animation: spin 11s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.group-badge::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); animation: badgeShine 4.5s ease-in-out infinite; }
@keyframes badgeShine { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* folha do dia vira como página de agenda quando o dia muda */
.page.flip { animation: pageIn .6s var(--ease) both; } @keyframes pageIn { from { opacity: 0; transform: perspective(900px) rotateX(-14deg) translateY(-6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  section::before, section::after, footer::before { animation: none !important; }
  .page.flip { animation: none !important; }
  .js .rv, .split .w { opacity: 1 !important; transform: none !important; }
  .js:not(.calm) .hero h1 .ink { background-size: 100% 100%; }
  .bg-live i, .bg-live::before, .bg-live::after, .portrait picture, .portrait::before, .portrait .tag, .card.team::after, .seats i, .group-badge::after, .promo, .wa::after { animation: none !important; }
  .progress { display: none; } ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ===================== FUNDOS VIVOS (um por seção) ===================== */
section, footer { position: relative; isolation: isolate; overflow: clip; }
.bg-live { position: absolute; inset: -48px 0; z-index: -2; pointer-events: none; transform: translate3d(0, calc(var(--py, 0) * -.07px), 0); -webkit-mask-image: linear-gradient(to bottom, transparent 48px, #000 calc(48px + 140px), #000 calc(100% - 188px), transparent calc(100% - 48px)); mask-image: linear-gradient(to bottom, transparent 48px, #000 calc(48px + 140px), #000 calc(100% - 188px), transparent calc(100% - 48px)); --c1: #c4b5fd; --c2: #f0abfc; --c3: #93c5fd; --wash: #f5eeff; --dot: #6d28d9;
  background: linear-gradient(180deg, transparent 0, var(--wash) 16%, var(--wash) 84%, transparent 100%); }
.bg-live[data-tone="sky"] { --c1: #7dd3fc; --c2: #c4b5fd; --c3: #a7f3d0; --wash: #eaf7ff; --dot: #0369a1; }
.bg-live[data-tone="coral"] { --c1: #ffa8c5; --c2: #fde68a; --c3: #c4b5fd; --wash: #fff0f5; --dot: #be185d; }
.bg-live[data-tone="mint"] { --c1: #6ee7b7; --c2: #7dd3fc; --c3: #fde68a; --wash: #ecfdf5; --dot: #047857; }
.bg-live[data-tone="sun"] { --c1: #fde68a; --c2: #ffa8c5; --c3: #6ee7b7; --wash: #fff8e1; --dot: #b45309; }
.bg-live[data-tone="dark"] { -webkit-mask-image: none; mask-image: none; --c1: #6d28d9; --c2: #ff6b9d; --c3: #38bdf8; --wash: var(--ink); --dot: #fff; background: var(--ink); }
.bg-live i { position: absolute; width: clamp(240px, 42vw, 520px); aspect-ratio: 1; border-radius: 50%; opacity: .6; will-change: transform; animation: drift var(--t, 24s) ease-in-out infinite alternate; }
.bg-live i:nth-child(1) { top: -14%; right: -8%; background: radial-gradient(circle at 40% 40%, var(--c1), transparent 68%); }
.bg-live i:nth-child(2) { bottom: -18%; left: -10%; --t: 29s; animation-delay: -6s; background: radial-gradient(circle at 40% 40%, var(--c2), transparent 68%); }
.bg-live i:nth-child(3) { top: 34%; left: 40%; width: clamp(180px, 30vw, 360px); opacity: .4; --t: 21s; animation-delay: -11s; background: radial-gradient(circle at 40% 40%, var(--c3), transparent 68%); }
.bg-live[data-tone="dark"] i { opacity: .28; }
/* estrelinhas que cintilam (duas camadas defasadas) */
.bg-live::before, .bg-live::after { content: ""; position: absolute; inset: 0; opacity: .25; animation: twinkle 5s ease-in-out infinite alternate; }
.bg-live::before { background:
  radial-gradient(circle at 9% 18%, var(--dot) 0 2px, transparent 2.5px), radial-gradient(circle at 31% 72%, #fbbf24 0 2.5px, transparent 3px),
  radial-gradient(circle at 58% 14%, var(--dot) 0 1.5px, transparent 2px), radial-gradient(circle at 83% 61%, #fbbf24 0 2px, transparent 2.5px), radial-gradient(circle at 94% 12%, var(--dot) 0 2px, transparent 2.5px); }
.bg-live::after { animation-delay: -2.5s; background:
  radial-gradient(circle at 19% 44%, #ff6b9d 0 2px, transparent 2.5px), radial-gradient(circle at 47% 88%, var(--dot) 0 2px, transparent 2.5px),
  radial-gradient(circle at 71% 33%, #38bdf8 0 2.5px, transparent 3px), radial-gradient(circle at 90% 85%, #fbbf24 0 1.5px, transparent 2px), radial-gradient(circle at 4% 80%, #34d399 0 2px, transparent 2.5px); }
@keyframes twinkle { from { opacity: .12; } to { opacity: .8; } }
@media (max-width: 859px) { .bg-live i:nth-child(3) { display: none; } .bg-live i { opacity: .5; } }
.plans { background: none; } .top { background: rgba(255, 255, 255, .86); }

/* ===== transição entre seções: ondas que deslizam + borda dissolvida (nada de corte seco) ===== */
section::before, section::after { content: ""; position: absolute; z-index: -1; left: 0; bottom: -1px; width: 200%; height: clamp(44px, 7vw, 96px); pointer-events: none; will-change: transform; background-repeat: repeat-x; background-size: 50% 100%; }
section::before { bottom: 6px; opacity: .9; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cpath d='M0 62 Q300 12 600 62 T1200 62 V100 H0Z' fill='%23c4b5fd' fill-opacity='.38'/%3E%3C/svg%3E"); animation: waveL 34s linear infinite reverse; }
section::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cpath d='M0 56 Q300 6 600 56 T1200 56 V100 H0Z' fill='%23fff7ef' fill-opacity='.94'/%3E%3C/svg%3E"); animation: waveL 24s linear infinite; }
@keyframes waveL { to { transform: translate3d(-50%, 0, 0); } }
footer::before { content: ""; position: absolute; z-index: -1; left: 0; top: -1px; width: 200%; height: clamp(40px, 6vw, 84px); pointer-events: none; will-change: transform; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cpath d='M0 44 Q300 94 600 44 T1200 44 V0 H0Z' fill='%23fff7ef' fill-opacity='1'/%3E%3C/svg%3E") repeat-x 0 0 / 50% 100%; animation: waveL 26s linear infinite; }
section:last-of-type::before, section:last-of-type::after { opacity: 1; }
