/* =====================================================
   VYBLER — hero + funil animado (sobre base.css)
   ===================================================== */

/* hero sem vídeo: fundo com leve brilho violeta */
#header {
  min-height: auto;
  background:
    radial-gradient(820px 440px at 50% -6%, rgba(139,92,246,.09), transparent 70%),
    var(--bg);
}
.hero {
  min-height: auto;
  display: block;
  padding: 9rem 1rem 4.5rem;
  text-align: center;
}
.hero-inner { margin: 0 auto; max-width: 860px; }
.hero p { margin-top: 1.6rem; }

/* =====================================================
   FUNIL
   ===================================================== */
.funnel-wrap {
  width: min(1060px, 96%);
  margin: 3.6rem auto 0;
}
.funnel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

/* nó (card) */
.fnode {
  position: relative;
  flex: 0 0 auto;
  width: 168px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem .9rem 1rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
}
.fnode-ic {
  width: 42px; height: 42px; margin: 0 auto .6rem;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(139,92,246,.10);
  border: 1px solid rgba(139,92,246,.22);
  color: var(--brand);
}
.fnode-ic svg { width: 22px; height: 22px; }
.fnode-t {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: .98rem; color: var(--text);
  letter-spacing: -.01em;
}
.fnode-s { margin-top: .2rem; font-size: .72rem; color: var(--text-muted); line-height: 1.35; }
.lockchip {
  display: inline-block; margin-top: .55rem;
  font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #e9a59a;
  background: rgba(220,90,70,.12); border: 1px solid rgba(220,90,70,.25);
  padding: .2rem .5rem; border-radius: 999px;
}
.fnode--app { opacity: .92; }

/* nó-chave (Vybler) — sempre destacado */
.fnode--key {
  width: 196px;
  border-color: rgba(139,92,246,.5);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.fnode--key .fnode-ic {
  background: var(--brand); border-color: var(--brand); color: var(--on-brand);
}
.fnode--key .fnode-t { color: var(--text); }
.ext-chip {
  display: inline-block; margin-top: .55rem;
  font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); background: rgba(139,92,246,.12);
  border: 1px solid rgba(139,92,246,.3); padding: .2rem .5rem; border-radius: 999px;
}

/* conector reto (app -> vybler) */
.fwire {
  position: relative;
  flex: 0 0 58px; height: 2px;
  background: var(--border-strong);
  margin: 0 2px;
}
.fwire::after {
  content: ''; position: absolute; top: 50%; left: 0;
  width: 11px; height: 11px; margin: -6px 0 0 -5px;
  border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 14px rgba(139,92,246,.9);
  animation: sparkX 4.6s cubic-bezier(.5,0,.2,1) infinite;
}
@keyframes sparkX {
  0%   { left: 0;   opacity: 0; transform: scale(.5); }
  6%   { opacity: 1; transform: scale(1); }
  24%  { left: 100%; opacity: 1; }
  30%, 100% { left: 100%; opacity: 0; }
}

/* split (vybler -> 2 saídas) */
.fsplit { flex: 0 0 78px; align-self: stretch; position: relative; margin: 0 2px; }
.fsplit svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fsplit .base { fill: none; stroke: var(--border-strong); stroke-width: 2; }
.fsplit .flow {
  fill: none; stroke: var(--brand); stroke-width: 2;
  stroke-dasharray: 5 9; stroke-linecap: round;
  animation: dashflow 1.1s linear infinite;
  filter: drop-shadow(0 0 4px rgba(139,92,246,.55));
}
@keyframes dashflow { to { stroke-dashoffset: -28; } }

/* saídas */
.fends { display: flex; flex-direction: column; gap: .8rem; position: relative; }
.fends .or {
  position: absolute; left: -6px; top: 50%; transform: translate(-100%,-50%);
  font-size: .6rem; font-weight: 700; letter-spacing: .12em; color: var(--text-faint);
  text-transform: uppercase;
}
.fnode--end { width: 184px; padding: .9rem .8rem; }
.fnode--end .fnode-t { font-size: .9rem; }

/* sequência de brilho dos nós */
.fnode--app  { animation: fire 4.6s ease-in-out infinite; }
.fnode--key  { animation: fireKey 4.6s ease-in-out infinite; animation-delay: .85s; }
.fends .fnode--end:nth-child(1) { animation: fire 4.6s ease-in-out infinite; animation-delay: 1.9s; }
.fends .fnode--end:nth-child(2) { animation: fire 4.6s ease-in-out infinite; animation-delay: 2.15s; }
@keyframes fire {
  0%, 100% { border-color: var(--border); box-shadow: 0 6px 18px rgba(0,0,0,.22); }
  4%       { border-color: var(--brand); box-shadow: var(--shadow-glow); }
  16%      { border-color: var(--border); box-shadow: 0 6px 18px rgba(0,0,0,.22); }
}
@keyframes fireKey {
  0%, 100% { border-color: rgba(139,92,246,.5); box-shadow: 0 6px 18px rgba(0,0,0,.22); }
  6%       { border-color: var(--brand); box-shadow: var(--shadow-glow); transform: translateY(-2px); }
  20%      { border-color: rgba(139,92,246,.5); box-shadow: 0 6px 18px rgba(0,0,0,.22); }
}

.funnel-cap {
  text-align: center; margin: 1.8rem auto 0; max-width: 560px;
  color: var(--text-faint); font-size: .8rem;
  letter-spacing: .04em;
}

/* =====================================================
   FUNIL — responsivo (empilha vertical)
   ===================================================== */
@media (max-width: 860px) {
  .funnel { flex-direction: column; }
  .fnode, .fnode--key, .fnode--end { width: min(320px, 86vw); }
  .fwire { width: 2px; height: 42px; flex-basis: 42px; margin: 2px 0; }
  .fwire::after { animation: sparkY 4.6s cubic-bezier(.5,0,.2,1) infinite; left: 50%; }
  @keyframes sparkY {
    0% { top: 0; opacity: 0; transform: scale(.5); }
    6% { opacity: 1; transform: scale(1); }
    24% { top: 100%; opacity: 1; }
    30%, 100% { top: 100%; opacity: 0; }
  }
  .fsplit { width: 2px; height: 36px; flex-basis: 36px; align-self: center; }
  .fsplit svg { display: none; }
  .fsplit::before {
    content: ''; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
    width: 2px; height: 100%; background: var(--brand);
    background-image: repeating-linear-gradient(var(--brand) 0 6px, transparent 6px 14px);
    animation: dashY 1.1s linear infinite;
  }
  @keyframes dashY { to { background-position: 0 20px; } }
  .fends { flex-direction: column; gap: .8rem; }
  .fends .or { position: static; transform: none; margin: .1rem 0; }
}

/* respeita reduce motion (base.css já zera animações, reforçando) */
@media (prefers-reduced-motion: reduce) {
  .fwire::after, .fsplit .flow, .fnode { animation: none !important; }
}

/* =====================================================
   Bloco "dois modos" — cards lado a lado
   ===================================================== */
.modes2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem,1.6vw,1.4rem); }
.mode2 {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.9rem;
  transition: transform .3s, border-color .3s, box-shadow .3s, background .3s;
}
.mode2:hover { transform: translateY(-4px); border-color: rgba(139,92,246,.35); background: var(--surface-2); box-shadow: 0 16px 40px rgba(0,0,0,.32); }
.mode2 .tag {
  display: inline-block; font-size: .64rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--brand);
  background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.25);
  padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem;
}
.mode2 h3 { margin: 0 0 .5rem; font-size: 1.25rem; color: var(--text); text-transform: uppercase; letter-spacing: .03em; }
.mode2 p { margin: 0 0 1rem; color: var(--text-muted); font-size: .96rem; line-height: 1.6; }
.mode2 ul { margin: 0; padding-left: 1.1rem; color: var(--text-muted); font-size: .92rem; }
.mode2 li { margin: .35rem 0; }
@media (max-width: 720px) { .modes2 { grid-template-columns: 1fr; } }

/* tira "redes" (pills) */
.nets { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 2rem; }
.net {
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: .55rem 1.1rem; color: var(--text-muted); font-size: .82rem;
  font-weight: 600; letter-spacing: .04em;
}

/* passos (como funciona) — numerados */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1rem,1.6vw,1.4rem); }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.7rem; position: relative; }
.step .num {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 2.2rem;
  color: var(--brand); line-height: 1; opacity: .9;
}
.step h3 { margin: .7rem 0 .4rem; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text); }
.step p { margin: 0; color: var(--text-muted); font-size: .94rem; line-height: 1.55; }
.step b { color: var(--text); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* =====================================================
   Marquee (ticker correndo) — violeta, texto escuro (estilo buteor)
   ===================================================== */
.marquee {
  overflow: hidden;
  background: var(--brand);
  padding: .9rem 0;
  margin: 0 0 3.2rem;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: inline-flex; align-items: center;
  white-space: nowrap; will-change: transform;
  animation: vy-marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-item {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: .9rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: #15121c; padding: 0 1.3rem;
}
.mq-dot { color: rgba(13,12,18,.45); font-size: .55rem; }
@keyframes vy-marquee { to { transform: translateX(-50%); } }

/* =====================================================
   Pricing — aberto, sem peso de quadrados
   ===================================================== */
.pricing {
  width: min(var(--container), 92%);
  margin: 2.6rem auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; align-items: stretch;
}
.tier {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.9rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent);
}
.tier--pop { border-color: var(--brand); box-shadow: var(--shadow-glow); }
.tier-badge {
  position: absolute; top: -11px; left: 1.5rem;
  background: var(--brand); color: var(--on-brand);
  font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px;
}
.tier-name {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 1.05rem; color: var(--text); letter-spacing: .03em; text-transform: uppercase;
}
.tier-price {
  display: flex; align-items: flex-start; gap: .12rem;
  margin: 1rem 0 .15rem; color: var(--text);
  font-family: 'Space Grotesk', sans-serif; line-height: 1;
}
.tier-price .cur { font-size: 1.25rem; font-weight: 600; margin-top: .45rem; color: var(--text-muted); }
.tier-price .amt { font-size: 2.9rem; font-weight: 700; }
.tier-price .per { font-size: .82rem; font-weight: 500; color: var(--text-muted); align-self: flex-end; margin: 0 0 .55rem .25rem; }
.tier-links { color: var(--brand-soft); font-weight: 600; font-size: .9rem; margin-bottom: 1.3rem; }
.tier-feats {
  list-style: none; padding: 0; margin: 0 0 1.6rem;
  display: flex; flex-direction: column; gap: .6rem; flex: 1;
}
.tier-feats li {
  position: relative; padding-left: 1.45rem;
  color: var(--text-muted); font-size: .9rem; line-height: 1.4;
}
.tier-feats li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 700; }
.btn.block { display: flex; justify-content: center; width: 100%; }
.pricing-note { text-align: center; color: var(--text-faint); font-size: .82rem; margin-top: 1.7rem; }
@media (max-width: 960px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing { grid-template-columns: 1fr; } }
