/* v6: hover life, how-it-works type, pilot highlight. Does not restyle #plans. */
:root{
  --v6-violet:#6558E8;
  --v6-ink:#20212a;
  --v6-body:#3A3A47;
  --v6-glow:0 8px 22px rgba(101,88,232,.16),0 0 0 1px rgba(101,88,232,.22);
  --v6-lift:translateY(-2px);
  --v6-ease:180ms ease;
}

/* ----- Calm hover / focus-visible (color always; motion only if allowed) ----- */
.door,
.mods li,
.hub,
.how .steps article,
.review,
.fork-a,
.fork-b,
.pilot-steps li{
  transition: border-color var(--v6-ease), box-shadow var(--v6-ease), background-color var(--v6-ease), color var(--v6-ease);
}

@media (prefers-reduced-motion: no-preference){
  .door,
  .mods li,
  .hub,
  .how .steps article,
  .review,
  .fork-a,
  .fork-b,
  .pilot-steps li{
    transition: transform var(--v6-ease), border-color var(--v6-ease), box-shadow var(--v6-ease), background-color var(--v6-ease), color var(--v6-ease);
  }
  .door:hover, .door:focus-within,
  .mods li:hover, .mods li:focus-visible,
  .hub:hover, .hub:focus-within,
  .how .steps article:hover, .how .steps article:focus-within,
  .review:hover, .review:focus-within,
  .fork-a:hover, .fork-b:hover, .fork-a:focus-within, .fork-b:focus-within,
  .pilot-steps li:hover, .pilot-steps li:focus-within{
    transform: var(--v6-lift);
  }
  /* Override legacy 4px / 8px lifts and scale bounce from base CSS and motion-v2 */
  .steps article:hover,
  .price-card:hover,
  html.m2 .m2-card-h.m2-in:hover{
    transform: var(--v6-lift);
    transition-duration: var(--v6-ease), var(--v6-ease), var(--v6-ease);
  }
  html.m2 .ticker-track span{transition: transform var(--v6-ease), color var(--v6-ease)}
  html.m2 .ticker-track span:hover{transform: translateY(-2px); /* no scale */}
  html.m2 .client-logo{transition: transform var(--v6-ease), box-shadow var(--v6-ease)}
  html.m2 .client-logo:hover{transform: translateY(-2px); /* no scale bounce */}
}

@media (prefers-reduced-motion: reduce){
  .door:hover, .door:focus-within,
  .mods li:hover, .mods li:focus-visible,
  .hub:hover, .hub:focus-within,
  .how .steps article:hover, .how .steps article:focus-within,
  .review:hover, .review:focus-within,
  .fork-a:hover, .fork-b:hover,
  .pilot-steps li:hover,
  .steps article:hover,
  .price-card:hover,
  html.m2 .m2-card-h.m2-in:hover,
  html.m2 .ticker-track span:hover,
  html.m2 .client-logo:hover{
    transform: none;
  }
}

/* Company bubbles */
.door:hover, .door:focus-within{
  border-color: var(--v6-violet);
  box-shadow: var(--v6-glow);
  outline: none;
}
.door:focus-within{
  box-shadow: var(--v6-glow), 0 0 0 3px rgba(101,88,232,.28);
}

/* Private hub + modules (Live P&L, costs, forecasts and siblings) */
.mods li:hover, .mods li:focus-visible,
.hub:hover, .hub:focus-within{
  border-color: var(--v6-violet);
  background: #f7f6fe;
  box-shadow: var(--v6-glow);
  outline: none;
}
.mods li:focus-visible{
  box-shadow: var(--v6-glow), 0 0 0 3px rgba(101,88,232,.28);
}
html.dark .mods li:hover, html.dark .mods li:focus-visible,
html.dark .hub:hover, html.dark .hub:focus-within{
  background: #221f45;
  border-color: #8f85ff;
  box-shadow: 0 8px 22px rgba(101,88,232,.32), 0 0 0 1px rgba(143,133,255,.4);
}

.review:hover, .review:focus-within,
.fork-a:hover, .fork-b:hover, .fork-a:focus-within, .fork-b:focus-within,
.pilot-steps li:hover, .pilot-steps li:focus-within{
  border-color: var(--v6-violet);
  box-shadow: var(--v6-glow);
}

/* ----- From first call to live system ----- */
.how .steps article{
  border: 1.5px solid #e8e6ef;
  border-radius: 16px;
  padding: 24px 22px 26px;
  background: #fff;
  position: relative;
}
.how .steps article:hover,
.how .steps article:focus-within{
  border-color: var(--v6-violet);
  box-shadow: var(--v6-glow);
}
.how .step-top{
  align-items: center;
  margin-bottom: 20px;
}
.how .step-top > span:first-child{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: var(--v6-violet);
  color: #fff !important;
  opacity: 1 !important;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1;
  box-shadow: 0 0 0 4px rgba(101,88,232,.12);
}
.how .step-pill{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--v6-violet);
  border: 1px solid #d9d4f8;
  background: #f7f6fe;
  padding: 6px 10px;
  border-radius: 999px;
}
.how .steps h3{
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.3px;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--v6-ink);
}
.how .steps p{
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
  color: var(--v6-body);
  margin: 0;
}
/* Subtle connector behind the numbered markers on desktop */
@media (min-width: 901px){
  .how .steps{
    position: relative;
    gap: 20px;
  }
  .how .steps::before{
    content: "";
    position: absolute;
    top: 42px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c4beff 15%, var(--v6-violet) 50%, #c4beff 85%, transparent);
    pointer-events: none;
    z-index: 0;
  }
  .how .steps article{z-index: 1; background: #fff;}
}

html.dark .how .steps article{
  background: #171821;
  border-color: #2a2b3a;
}
html.dark .how .steps article:hover,
html.dark .how .steps article:focus-within{
  border-color: #8f85ff;
  box-shadow: 0 8px 22px rgba(101,88,232,.32), 0 0 0 1px rgba(143,133,255,.4);
}
html.dark .how .step-top > span:first-child{
  background: #8f85ff;
  color: #0f1016 !important;
  box-shadow: 0 0 0 4px rgba(143,133,255,.18);
}
html.dark .how .step-pill{
  color: #C4BEFF;
  border-color: #3A3478;
  background: #221F45;
}
html.dark .how .steps h3{color: #f2f1f8}
html.dark .how .steps p{color: #c9c7d6}
html.dark .how .steps::before{
  background: linear-gradient(90deg, transparent, #3A3478 15%, #8f85ff 50%, #3A3478 85%, transparent);
}

/* ----- 14-day pilot block: Most popular-style highlight ----- */
#pilot.pilot{
  background: transparent;
  border-top: 0;
}
#pilot.pilot{position:relative;contain:paint;background:transparent;border-top:0}
#pilot.pilot::before{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:0;
  background:radial-gradient(ellipse at 50% 40%,rgba(101,88,232,.18),transparent 68%);
}
#pilot .wrap{
  position:relative;z-index:1;
  border: 1.5px solid var(--v6-violet);
  border-radius: 24px;
  background: #fff;
  box-shadow: none;
  padding: 40px 36px 44px;
}
html.dark #pilot.pilot{background: transparent}
html.dark #pilot.pilot::before{
  background:radial-gradient(ellipse at 50% 40%,rgba(143,133,255,.22),transparent 70%);
}
html.dark #pilot .wrap{
  background: #171821;
  border-color: #8f85ff;
  box-shadow: none;
}
@media (max-width: 700px){
  #pilot .wrap{padding: 28px 18px 32px; border-radius: 18px}
}

/* Links already in the tab order keep a visible focus ring */
.door-link:focus-visible,
.rh-btn:focus-visible,
.button:focus-visible,
.demo-link:focus-visible{
  outline: 3px solid rgba(101,88,232,.55);
  outline-offset: 3px;
}


/* ----- Lena: resting/ambient glows are static radial-gradients.
   No animation, no filter:blur, no animated box-shadow. Parents use contain:paint.
   Motion is hover/focus only (handled above). ----- */
.rh,
.cta-band,
.how,
.rh-mesh,
.cta-aurora,
.m2-glow,
html.m2 .m2-bgsec,
#plans .mp-glow{
  contain:paint;
}

/* Hero mesh: drop filter:blur; keep a static pre-softened gradient (same hues). */
.rh-mesh i,
html.m2 .rh-mesh i{
  filter:none !important;
  animation:none !important;
}
.rh-mesh i:nth-child(1),
html.m2 .rh-mesh i:nth-child(1){
  background:radial-gradient(closest-side,#6558e8 0%,rgba(101,88,232,.55) 40%,rgba(101,88,232,0) 100%) !important;
  opacity:.16;
}
.rh-mesh i:nth-child(2),
html.m2 .rh-mesh i:nth-child(2){
  background:radial-gradient(closest-side,#a99fff 0%,rgba(169,159,255,.55) 40%,rgba(169,159,255,0) 100%) !important;
  opacity:.16;
}

/* CTA aurora: no blur, no orbit animation. Static gradients. */
.cta-aurora,
html.m2 .cta-aurora{filter:none !important}
.cta-aurora i,
html.m2 .cta-aurora i{animation:none !important}
.cta-aurora i,html.m2 .cta-aurora i{mix-blend-mode:normal !important}
.cta-aurora i:nth-child(1),
html.m2 .cta-aurora i:nth-child(1){background:radial-gradient(closest-side,#4f42d6,rgba(79,66,214,0)) !important}
.cta-aurora i:nth-child(2),
html.m2 .cta-aurora i:nth-child(2){background:radial-gradient(closest-side,#6558e8,rgba(101,88,232,0)) !important}
.cta-aurora i:nth-child(3),
html.m2 .cta-aurora i:nth-child(3){background:radial-gradient(closest-side,#8f85ff,rgba(143,133,255,0)) !important}

/* Ambient m2-glow orbs stay put — no 24s drift. */
html.m2 .m2-glow i,
html.m2 .m2-glow i:nth-child(1),
html.m2 .m2-glow i:nth-child(2){animation:none !important}

/* Leftover .hero glow (not used on the current homepage, but keep it static if it appears). */
.hero::after{filter:none !important;animation:none !important}
.hero::before,
.cta-band::before,
.closing-inner::before{animation:none !important}

/* Subpage ambient layer, if this stylesheet is shared later. */
.mp-bg{contain:paint}
.mp-bg i{filter:none !important;animation:none !important}


/* v6.1: explicit door/hub/module lift and dark door border (keep glow rules above unchanged) */
@media (prefers-reduced-motion: no-preference){
  article.door:hover, article.door:focus-within,
  ul.mods li:hover, ul.mods li:focus-visible,
  .hubviz .hub:hover, .hubviz .hub:focus-within{
    transform:translateY(-2px);
  }
  /* After reveal, html.m2 .rv1.in{transform:none} would otherwise cancel the 2px lift. */
  html.m2 article.door.rv1.in:hover,
  html.m2 article.door.rv1.in:focus-within,
  html.m2 ul.mods li.rv1.in:hover,
  html.m2 ul.mods li.rv1.in:focus-visible,
  html.m2 .hubviz .hub.rv1.in:hover,
  html.m2 .hubviz .hub.rv1.in:focus-within{
    transform:translateY(-2px);
  }
}
html.dark .door:hover, html.dark .door:focus-within{border-color:#8f85ff}

/* v6.1: FAQ '+' in toggle dark — #6558E8 on the FAQ dark band is ~3.4:1 */
html.dark .faq summary>span{color:#C4BEFF}
