/* Xeno Leads fx (2026-11-25): a little motion and glow on top of the "dispatch sheet" look.
   Loaded only when site.json "fx" is true (or build.py --fx). Same palette: ink, violet for things you click,
   the yellow highlighter as the one warm glow. Everything that moves stops under prefers-reduced-motion
   (site.css also kills all animation/transition there). Reveal and count-up only run when <html> has class "fx",
   which the head script adds only if motion is allowed and IntersectionObserver exists. */

/* 1. Announcement bar (free Lead Leak Checklist). Fixed height, so sliding the content in moves nothing else. */
.fx-bar{background:var(--ink);color:#CFC9CA;height:42px;overflow:hidden;font:600 .82rem/1.2 var(--f-body)}
.fx-bar-in{height:100%;display:flex;align-items:center;justify-content:center;gap:14px}
.fx-bar-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.fx-pill{flex:none;display:inline-flex;align-items:center;gap:6px;padding:5px 13px;border-radius:999px;color:#fff;text-decoration:none;white-space:nowrap;
  border:1px solid rgba(255,225,90,.8);box-shadow:0 0 0 1px rgba(255,225,90,.12),0 0 14px rgba(255,225,90,.3);transition:background-color .2s ease,color .2s ease,box-shadow .2s ease}
.fx-pill:hover,.fx-pill:focus-visible{background:var(--mark);color:var(--ink);box-shadow:0 0 0 1px rgba(255,225,90,.3),0 0 20px rgba(255,225,90,.5)}
.fx-pill span{transition:transform .2s ease}
.fx-pill:hover span{transform:translateX(3px)}
.fx .fx-bar-in{animation:fx-slide .6s cubic-bezier(.2,.7,.2,1) .15s both}
@keyframes fx-slide{from{transform:translateY(-100%);opacity:0}to{transform:none;opacity:1}}
@media (max-width:760px){.fx-bar-text{display:none}}

/* 2. Trades marquee (homepage, under the hero). Two copies of the list; the track slides exactly one copy. */
.fx-marquee{background:var(--paper);border-top:1px solid var(--line);border-bottom:1px solid var(--line);overflow:hidden;padding:14px 0;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent)}
.fx-track{display:flex;width:max-content;animation:fx-marquee 42s linear infinite}
.fx-marquee:hover .fx-track{animation-play-state:paused}
.fx-track ul{display:flex;list-style:none;margin:0;padding:0}
.fx-track li{position:relative;padding:0 26px;white-space:nowrap;font:600 .8rem/1.2 var(--f-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2)}
.fx-track li::after{content:"/";position:absolute;right:-5px;color:var(--violet);font-weight:700}
@keyframes fx-marquee{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){
  .fx-marquee{-webkit-mask-image:none;mask-image:none}
  .fx-track{width:auto;justify-content:center;animation:none}
  .fx-track ul{flex-wrap:wrap;justify-content:center;row-gap:8px}
  .fx-track ul[aria-hidden]{display:none}
  .fx-track li:last-child::after{content:none}
}

/* 3. Gentle glow pulse on the main "book a call" buttons. The glow is a pseudo-element fading in and out
   (opacity only, so it stays on the compositor). */
.hero .cta-row .btn-primary,.start-hero .cta-row .btn-primary,.cta-band .btn-primary{position:relative}
.hero .cta-row .btn-primary::after,.start-hero .cta-row .btn-primary::after,.cta-band .btn-primary::after{
  content:"";position:absolute;inset:-2px;border-radius:inherit;pointer-events:none;
  box-shadow:0 0 0 3px rgba(106,39,196,.16),0 0 24px 3px rgba(106,39,196,.5);opacity:.2;animation:fx-glow 3.2s ease-in-out infinite}
@keyframes fx-glow{0%,100%{opacity:.2}50%{opacity:1}}

/* 4. Plan and price rows: glowing outline + small lift on hover (mouse only). Drawn on the cells so the
   table's own clipping can't cut it off. */
.rate tbody td{transition:background-color .2s ease,box-shadow .2s ease,transform .2s ease}
@media (hover:hover){
  .rate tbody tr:hover td{background:#FAF7FF;
    box-shadow:inset 0 1.5px 0 var(--violet),inset 0 -1.5px 0 var(--violet),0 12px 18px -14px rgba(106,39,196,.65)}
  .rate tbody tr:hover td:first-child{box-shadow:inset 1.5px 0 0 var(--violet),inset 0 1.5px 0 var(--violet),inset 0 -1.5px 0 var(--violet),0 12px 18px -14px rgba(106,39,196,.65)}
  .rate tbody tr:hover td:last-child{box-shadow:inset -1.5px 0 0 var(--violet),inset 0 1.5px 0 var(--violet),inset 0 -1.5px 0 var(--violet),0 12px 18px -14px rgba(106,39,196,.65)}
}
@media (hover:hover) and (prefers-reduced-motion:no-preference){.rate tbody tr:hover td{transform:translateY(-2px)}}
/* The page's main price table (first .rate on the page, marked by fx.js) carries a slow glowing rim. */
.fx-rim{box-shadow:0 0 0 1px rgba(106,39,196,.12),0 0 18px -6px rgba(106,39,196,.3)}
.fx-rim.fx-on{animation:fx-rim 5s ease-in-out infinite}
@keyframes fx-rim{0%,100%{box-shadow:0 0 0 1px rgba(106,39,196,.08),0 0 16px -6px rgba(106,39,196,.22)}50%{box-shadow:0 0 0 1px rgba(106,39,196,.32),0 0 30px -4px rgba(106,39,196,.42)}}

/* Result cards on the dark case study: warm (highlighter yellow) outline + lift on hover. */
.case-card{transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease}
@media (hover:hover){.case-card:hover{border-color:rgba(255,225,90,.6);box-shadow:0 0 0 1px rgba(255,225,90,.14),0 16px 32px -16px rgba(255,225,90,.38)}}

@media (hover:hover) and (prefers-reduced-motion:no-preference){.case-card:hover{transform:translateY(-4px)}}

/* 5. Count-up numbers: width is reserved at the final value so nothing reflows while it counts. */
span.fx-nw{display:inline;white-space:nowrap;margin:0;padding:0;font:inherit;color:inherit}
.fx-nw .fx-num{display:inline-block;margin:0;padding:0;font:inherit;color:inherit;text-align:right;font-variant-numeric:tabular-nums}

/* 6. Fade-up reveal, once per block. Only blocks that start below the fold get .fx-r (see fx.js). */
.fx .fx-r{opacity:0;transform:translateY(22px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
.fx .fx-r.in{opacity:1;transform:none}

@media print{.fx .fx-r{opacity:1!important;transform:none!important}.fx-bar,.fx-marquee{display:none!important}}
