/* ScriptNova Enterprise — camadas de imersão (carregado depois de styles.css). */
.dust { position: absolute; inset: 0; width: 100%; height: 100%; }
.spot { position: absolute; width: 900px; height: 900px; left: 0; top: 0; margin: -450px 0 0 -450px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(110, 168, 255, .16), transparent); transform: translate3d(var(--mx, 50vw), var(--my, 30vh), 0); transition: transform .9s var(--ease); }

/* janela: luz e cursor fantasma */
.window { transform: rotateX(calc(var(--tilt, 22deg) + var(--ry, 0deg))) rotateY(var(--rx, 0deg)) scale(var(--sc, .92)); }
.sheen { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(600px circle at var(--gx, 50%) var(--gy, 0%), rgba(140, 190, 255, .14), transparent 60%); }
.ghost { position: absolute; left: 0; right: 0; bottom: 0; top: 34px; pointer-events: none; }
.hl { position: absolute; left: 62.3%; width: 34.4%; height: 3.6%; top: 27.2%; border-radius: 8px;
  background: rgba(110, 168, 255, .16); box-shadow: inset 0 0 0 1px rgba(110, 168, 255, .6), 0 0 24px rgba(43, 102, 240, .35);
  opacity: 0; transition: top .55s var(--ease), opacity .4s; }
.hl.is-on { opacity: 1; }
.cursor { position: absolute; width: clamp(14px, 1.7vw, 22px); height: auto; left: var(--cx, 50%); top: var(--cy, 60%);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.6)); opacity: 0; transition: left .9s var(--ease), top .9s var(--ease), opacity .4s; }
.ghost.is-live .cursor { opacity: 1; }
.ripple { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid rgba(110, 168, 255, .9); opacity: 0; left: var(--cx); top: var(--cy); }
.ripple.go { animation: rip .6s var(--ease); }
@keyframes rip { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.stage::before { content: ""; position: absolute; left: 8%; right: 8%; bottom: -6%; height: 30%; background: radial-gradient(50% 50% at 50% 50%, rgba(43, 102, 240, .45), transparent 70%); filter: blur(30px); z-index: -1; }

/* faixa de tarefas */
.marq { padding: clamp(56px, 8vw, 100px) 0 0; overflow: hidden; display: grid; gap: 14px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marq-row { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; width: max-content; animation: marq 48s linear infinite; }
.marq-row.rev { animation-direction: reverse; animation-duration: 56s; }
.marq:hover .marq-row { animation-play-state: paused; }
.marq-row li { flex: none; padding: 12px 20px; border-radius: 999px; font: 500 1rem "Barlow", sans-serif; color: var(--muted); background: rgba(12, 21, 40, .7); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.marq-row li:nth-child(3n+1) { color: var(--text); box-shadow: inset 0 0 0 1px rgba(110,168,255,.3); }
@keyframes marq { to { transform: translateX(calc(-50% - 7px)); } }

/* sequência presa à rolagem */
.replay { position: relative; height: 340vh; }
.replay-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; overflow: hidden; }
.replay-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; z-index: 1; }
.phase { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(12, 21, 40, .85); box-shadow: inset 0 0 0 1px var(--line-strong); font: 600 .9rem "Sora", sans-serif; color: var(--muted); transition: box-shadow .4s, color .4s; }
.phase[data-mode="rec"] { box-shadow: inset 0 0 0 1px rgba(255, 90, 110, .5); color: #ffd3d9; }
.phase[data-mode="play"] { box-shadow: inset 0 0 0 1px rgba(110, 168, 255, .6); color: #d6e6ff; }
.phase[data-mode="done"] { box-shadow: inset 0 0 0 1px rgba(95, 224, 168, .55); color: #c9f5e2; }
.replay .headline { display: grid; }
.replay .headline span { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); filter: blur(8px); transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease); }
.replay .headline span.is-on { opacity: 1; transform: none; filter: none; }
.meter { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; max-width: 360px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--rec), var(--signal) 50%, var(--ok)); transform-origin: left; transform: scaleX(var(--m, 0)); }
.flow { border-radius: 18px; background: linear-gradient(180deg, rgba(17, 29, 54, .92), rgba(8, 14, 28, .96)); box-shadow: inset 0 0 0 1px var(--line-strong), 0 50px 100px -40px rgba(15, 50, 140, .8); padding: 8px; transform: perspective(1200px) rotateY(-8deg) rotateX(4deg); transition: transform 1s var(--ease); }
.replay.is-done .flow { transform: none; }
.flow-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 12px; font: 600 .92rem "Sora", sans-serif; }
.flow-head b { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.flow-steps li { position: relative; isolation: isolate; display: grid; grid-template-columns: 34px auto 1fr; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 11px; overflow: hidden;
  opacity: 0; transform: translateX(24px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.flow-steps li.is-rec { opacity: 1; transform: none; }
.flow-steps li::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43,102,240,.3), rgba(43,102,240,.04)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); z-index: -1; }
.flow-steps li.run::after { transform: none; }
.flow-steps .n { font: 600 .75rem "Sora", sans-serif; color: var(--faint); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(160,196,255,.06); transition: background-color .3s, color .3s; }
.flow-steps li.ok .n { background: rgba(95, 224, 168, .16); color: var(--ok); }
.flow-steps .t { font-weight: 600; white-space: nowrap; }
.flow-steps code { justify-self: end; font: 500 .82rem/1.2 ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.flow-foot { display: flex; align-items: center; gap: 10px; margin: 8px; padding: 12px 14px; border-radius: 11px; background: rgba(95, 224, 168, .1); color: #c9f5e2; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(95, 224, 168, .3);
  opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.flow-foot svg { color: var(--ok); }
.replay.is-done .flow-foot { opacity: 1; transform: none; }

/* brilho de borda que segue o ponteiro */
[data-glow] { position: relative; }
[data-glow]::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; padding: 1px;
  background: radial-gradient(240px circle at var(--px, 50%) var(--py, 0%), rgba(140, 190, 255, .75), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; }
[data-glow]:hover::before { opacity: 1; }
.step[data-glow]::before { inset: 0 0 auto; aspect-ratio: 16 / 10.5; border-radius: var(--r); }

/* linha de luz entre seções */
.sec + .sec::before, .replay + .sec::before { content: ""; position: absolute; top: 0; left: 50%; width: min(900px, 80%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(110, 168, 255, .45), transparent); }

@media (max-width: 1000px) {
  .replay { height: 300vh; }
  .replay-in { grid-template-columns: 1fr; gap: 26px; }
  .replay .headline { font-size: clamp(1.8rem, 7vw, 2.6rem); margin-bottom: .3em; }
  .replay .lead { display: none; }
  .flow { transform: none; }
  .flow-steps li { padding: 9px 12px; grid-template-columns: 28px auto 1fr; }
  .spot { display: none; }
}
@media (max-width: 760px) { .flow-steps code { font-size: .74rem; } .marq-row li { font-size: .9rem; padding: 10px 16px; } }
@media (prefers-reduced-motion: reduce) {
  .marq { overflow-x: auto; scrollbar-width: none; } .marq-row { animation: none; }
}
@media (max-width: 760px) {
  .replay-pin { align-items: start; padding-top: 84px; }
  .flow-head { padding: 10px 12px 8px; }
  .flow-steps li { padding: 7px 10px; gap: 10px; }
  .flow-foot { margin: 6px; padding: 10px 12px; }
}

/* Gravar → executar (substitui a tecla F8 no primeiro passo). Ciclo de 6s. */
.rv { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; --T: 6s; }
.rv-btns { display: flex; align-items: center; gap: 14px; }
.rv-rec, .rv-play { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.rv-rec { background: radial-gradient(circle at 50% 35%, #2a1420, #160c14); box-shadow: inset 0 0 0 1.5px rgba(255, 90, 110, .55); animation: rv-rec var(--T) var(--ease) infinite; }
.rv-rec i { width: 20px; height: 20px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 18px rgba(255, 90, 110, .8); }
.rv-rec::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(255, 90, 110, .5); animation: rv-ping var(--T) ease-out infinite; }
.rv-play { color: #fff; background: radial-gradient(circle at 50% 35%, #173068, #0d1a3a); box-shadow: inset 0 0 0 1.5px rgba(110, 168, 255, .35); animation: rv-play var(--T) var(--ease) infinite; }
.rv-play svg { width: 22px; height: 22px; margin-left: 3px; }
.rv-link { width: 46px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255,90,110,.6), rgba(110,168,255,.6)); background-size: 200% 100%; animation: rv-link var(--T) linear infinite; }
.rv-track { position: relative; display: flex; gap: 6px; padding: 8px; border-radius: 12px; background: rgba(5, 9, 19, .6); box-shadow: inset 0 0 0 1px var(--line); }
.rv-track i { width: 26px; height: 10px; border-radius: 4px; background: rgba(160, 196, 255, .1); animation: var(--T) linear infinite; }
.rv-track i:nth-child(1) { animation-name: rv-c0; }
@keyframes rv-c0 { 0%, 3.9% { background: rgba(160,196,255,.1); } 4.0%, 55.3% { background: rgba(255,90,110,.6); } 55.4%, 96% { background: rgba(110,168,255,.75); } 100% { background: rgba(160,196,255,.1); } }
.rv-track i:nth-child(2) { animation-name: rv-c1; }
@keyframes rv-c1 { 0%, 10.4% { background: rgba(160,196,255,.1); } 10.5%, 62.199999999999996% { background: rgba(255,90,110,.6); } 62.3%, 96% { background: rgba(110,168,255,.75); } 100% { background: rgba(160,196,255,.1); } }
.rv-track i:nth-child(3) { animation-name: rv-c2; }
@keyframes rv-c2 { 0%, 16.9% { background: rgba(160,196,255,.1); } 17.0%, 69.10000000000001% { background: rgba(255,90,110,.6); } 69.2%, 96% { background: rgba(110,168,255,.75); } 100% { background: rgba(160,196,255,.1); } }
.rv-track i:nth-child(4) { animation-name: rv-c3; }
@keyframes rv-c3 { 0%, 23.4% { background: rgba(160,196,255,.1); } 23.5%, 76.0% { background: rgba(255,90,110,.6); } 76.1%, 96% { background: rgba(110,168,255,.75); } 100% { background: rgba(160,196,255,.1); } }
.rv-track i:nth-child(5) { animation-name: rv-c4; }
@keyframes rv-c4 { 0%, 29.9% { background: rgba(160,196,255,.1); } 30.0%, 82.9% { background: rgba(255,90,110,.6); } 83.0%, 96% { background: rgba(110,168,255,.75); } 100% { background: rgba(160,196,255,.1); } }
.rv-track i:nth-child(6) { animation-name: rv-c5; }
@keyframes rv-c5 { 0%, 36.4% { background: rgba(160,196,255,.1); } 36.5%, 89.7% { background: rgba(255,90,110,.6); } 89.8%, 96% { background: rgba(110,168,255,.75); } 100% { background: rgba(160,196,255,.1); } }
.rv-head { position: absolute; top: 4px; bottom: 4px; left: 8px; width: 2px; border-radius: 2px; background: #fff; box-shadow: 0 0 10px var(--signal); opacity: 0; animation: rv-head var(--T) linear infinite; }
.rv-lbl { display: grid; margin: 0; font: 600 .85rem "Sora", sans-serif; letter-spacing: .01em; }
.rv-lbl span { grid-area: 1 / 1; text-align: center; }
.rv-lbl .a { color: #ffb3bf; animation: rv-a var(--T) linear infinite; }
.rv-lbl .b { color: #bcd6ff; animation: rv-b var(--T) linear infinite; }
@keyframes rv-rec { 0%, 45% { transform: scale(1); opacity: 1; } 52%, 94% { transform: scale(.86); opacity: .45; } 100% { transform: scale(1); opacity: 1; } }
@keyframes rv-ping { 0% { box-shadow: 0 0 0 0 rgba(255,90,110,.5); } 15% { box-shadow: 0 0 0 14px rgba(255,90,110,0); } 16%, 100% { box-shadow: 0 0 0 0 rgba(255,90,110,0); } }
@keyframes rv-play { 0%, 45% { transform: scale(.86); opacity: .5; } 52%, 94% { transform: scale(1.06); opacity: 1; box-shadow: inset 0 0 0 1.5px rgba(110,168,255,.8), 0 0 30px rgba(43,102,240,.6); } 100% { transform: scale(.86); opacity: .5; } }
@keyframes rv-link { 0%, 45% { background-position: 100% 0; } 52%, 100% { background-position: 0 0; } }
@keyframes rv-head { 0%, 50% { opacity: 0; transform: translateX(0); } 52% { opacity: 1; transform: translateX(0); } 92% { opacity: 1; transform: translateX(186px); } 95%, 100% { opacity: 0; transform: translateX(186px); } }
@keyframes rv-a { 0%, 46% { opacity: 1; } 50%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes rv-b { 0%, 46% { opacity: 0; } 50%, 96% { opacity: 1; } 100% { opacity: 0; } }

/* 3 em 1: painel único em três fatias que se abrem */
.tri-panel { display: flex; gap: 10px; height: clamp(380px, 46vw, 600px); margin-top: clamp(36px, 5vw, 64px); }
.tri-col { position: relative; flex: 1; min-width: 0; border-radius: 18px; overflow: hidden; cursor: pointer; background: #0b0d12;
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 40px 80px -40px rgba(15, 50, 140, .7); transition: flex-grow .8s var(--ease), box-shadow .5s; outline-offset: 4px; }
.tri-col.is-open { flex-grow: 3.2; box-shadow: inset 0 0 0 1px rgba(110,168,255,.45), 0 50px 100px -40px rgba(43, 102, 240, .7); }
.tri-col img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; transform: scale(1.04); transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.8) brightness(.7); }
.tri-col.is-open img { transform: none; filter: none; }
.tri-col::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5, 9, 19, .94)); pointer-events: none; }
.tri-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(18px, 2.4vw, 30px); }
.tri-cap b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; margin-bottom: 12px; background: var(--blue); font: 700 .85rem "Sora", sans-serif; color: #fff; box-shadow: 0 8px 20px -6px rgba(43,102,240,.9); }
.tri-cap h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); margin: 0 0 .3em; white-space: nowrap; }
.tri-cap p { margin: 0; color: var(--muted); max-width: 40ch; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease) .15s, transform .5s var(--ease) .15s; }
.tri-col.is-open .tri-cap p { opacity: 1; transform: none; }

.strengths { margin-top: clamp(64px, 8vw, 110px); display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 4vw, 64px); }
.strengths-h { font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -.02em; margin: 0; }
.str-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(28px, 4vw, 64px); margin: 0; }
.str-list > div { padding: 20px 0; border-top: 1px solid var(--line); }
.str-list dt { font: 600 1.05rem "Sora", sans-serif; letter-spacing: -.01em; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.str-list dt::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--signal); box-shadow: 0 0 10px rgba(110,168,255,.8); flex: none; }
.str-list dd { margin: 0; color: var(--muted); }

@media (max-width: 860px) {
  .tri-panel { flex-direction: column; height: auto; }
  .tri-col, .tri-col.is-open { flex: none; aspect-ratio: 16 / 10; }
  .tri-col img { filter: none; transform: none; }
  .tri-cap p { opacity: 1; transform: none; }
  .tri-col::after { background: linear-gradient(180deg, rgba(5,9,19,.1) 10%, rgba(5, 9, 19, .97) 72%); }
  .strengths { grid-template-columns: 1fr; }
  .str-list { grid-template-columns: 1fr; }
}

.pdot { width: 10px; height: 10px; margin-left: 4px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 10px rgba(255,90,110,.8); animation: blink 1s steps(2) infinite; }
.phase[data-mode="play"] .pdot { background: var(--signal); box-shadow: 0 0 10px rgba(110,168,255,.8); animation: none; }
.phase[data-mode="done"] .pdot { background: var(--ok); box-shadow: 0 0 10px rgba(95,224,168,.8); animation: none; }

/* Planos: título centralizado, oferta da Black Friday no texto, seção mais alta */
.plans { padding-top: clamp(64px, 8vw, 110px); }
.headline.center, .lead.center { margin-inline: auto; }
.plans-h { max-width: 22ch; }
.plans-lead { max-width: 54ch; text-wrap: balance; }
.plans-lead strong { color: var(--text); font-weight: 600; white-space: nowrap; }
[data-oferta][hidden] { display: none; }
