/* ===== AI Employee industries hub: animation layer (decorative only; copy/images/links untouched) ===== */
.ac-ico{--c:var(--accent,#6F0BC2);display:inline-grid;place-items:center;width:46px;height:46px;border-radius:14px;color:var(--c);background:color-mix(in srgb,var(--c) 11%,transparent);border:1px solid color-mix(in srgb,var(--c) 30%,transparent);flex:none;vertical-align:middle;transition:transform .5s cubic-bezier(.3,1.6,.5,1),background .3s}
.ac-ico svg{width:28px;height:28px;overflow:visible;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.ac-ico .f{fill:currentColor;stroke:none}
.ac-ico.blk{display:grid;margin:0 0 14px}
.ac-ico.sm{width:30px;height:30px;border-radius:9px;margin-right:8px}
.ac-ico.sm svg{width:18px;height:18px;stroke-width:2.3}
.ac-ico.xs{width:22px;height:22px;border-radius:7px;margin-right:7px;vertical-align:-5px}
.ac-ico.xs svg{width:14px;height:14px;stroke-width:2.5}
.ac-ico.corner{position:absolute;top:22px;right:22px;width:42px;height:42px}
.ac-host{position:relative}
*:hover>.ac-ico,.ac-ico:hover{transform:translateY(-2px) rotate(-4deg)}
/* reveal: icons and illustrations only (live copy keeps its own reveal) */
.ac-js:not(.ac-rm) .ac-rv{opacity:0;transform:scale(.55) rotate(-14deg);transition:opacity .6s ease,transform .7s cubic-bezier(.3,1.6,.5,1);transition-delay:var(--ad,0ms)}
.ac-js:not(.ac-rm) .ac-rv.ac-in{opacity:1;transform:none}
.ac-js:not(.ac-rm) .ac-illus.ac-rv{transform:translateY(10px)}
.ac-js:not(.ac-rm) .ac-illus.ac-rv.ac-in{transform:none}
/* pause offscreen */
.ac-js [data-ac]:not(.ac-play) .ac-a,.ac-js [data-ac]:not(.ac-play) .ac-a *,.ac-js [data-ac]:not(.ac-play) .ac-a::before,.ac-js [data-ac]:not(.ac-play) .ac-a::after{animation-play-state:paused!important}

/* --- icon part animations --- */
.ac-wave{opacity:0;animation:acWave 2.2s ease-out infinite}
.ac-wave.d2{animation-delay:.35s}
@keyframes acWave{0%{opacity:0}30%{opacity:1}100%{opacity:0}}
.ac-shake{transform-box:fill-box;transform-origin:center;animation:acShake 2.2s ease-in-out infinite}
@keyframes acShake{0%,40%,100%{transform:none}5%,15%,25%{transform:rotate(-12deg)}10%,20%,30%{transform:rotate(12deg)}}
.ac-spin{transform-box:view-box;transform-origin:24px 26px;animation:acSpin 4s linear infinite}
.ac-spinc{transform-box:fill-box;transform-origin:center;animation:acSpin 6s linear infinite}
@keyframes acSpin{to{transform:rotate(360deg)}}
.ac-blink{animation:acBlink 2.4s ease-in-out infinite}
.ac-blink.d2{animation-delay:.8s}.ac-blink.d3{animation-delay:1.6s}
@keyframes acBlink{0%,100%{opacity:.15}50%{opacity:1}}
.ac-drop{animation:acDrop 2.4s cubic-bezier(.5,0,.8,.6) infinite}
.ac-drop.d2{animation-delay:1.2s}
@keyframes acDrop{0%{transform:translateY(-4px);opacity:0}15%{opacity:1}100%{transform:translateY(16px);opacity:0}}
.ac-bob{animation:acBob 3s ease-in-out infinite}
@keyframes acBob{50%{transform:translateY(-3px)}}
.ac-tap{animation:acTap 2.4s ease-in-out infinite}
@keyframes acTap{0%,100%{transform:translate(4px,4px)}40%,60%{transform:none}50%{transform:scale(.9)}}
.ac-ripple{transform-box:fill-box;transform-origin:center;animation:acRipple 2.4s ease-out infinite}
@keyframes acRipple{0%,45%{transform:scale(.2);opacity:0}55%{opacity:1}100%{transform:scale(1.6);opacity:0}}
.ac-travel{animation:acTravel 2.6s ease-in-out infinite}
@keyframes acTravel{0%{transform:translateX(-8px);opacity:0}20%,80%{opacity:1}100%{transform:translateX(8px);opacity:0}}
.ac-eq{transform-box:fill-box;transform-origin:center bottom;animation:acEq 1s ease-in-out infinite}
.ac-eq:nth-child(2){animation-delay:-.2s}.ac-eq:nth-child(3){animation-delay:-.45s}.ac-eq:nth-child(4){animation-delay:-.7s}.ac-eq:nth-child(5){animation-delay:-.1s}
@keyframes acEq{0%,100%{transform:scaleY(.35)}50%{transform:scaleY(1)}}
.ac-eye{transform-box:fill-box;transform-origin:center;animation:acEye 4s ease-in-out infinite}
@keyframes acEye{0%,44%,52%,100%{transform:none}48%{transform:scaleY(.1)}}
.ac-draw{stroke-dasharray:40;stroke-dashoffset:40;animation:acDraw 3s ease infinite}
@keyframes acDraw{0%{stroke-dashoffset:40}35%,85%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:0;opacity:0}}
.ac-node{transform-box:fill-box;transform-origin:center;animation:acNode 2.4s ease-in-out infinite}
.ac-node.d2{animation-delay:.4s}.ac-node.d3{animation-delay:.8s}.ac-node.d4{animation-delay:1.2s}
@keyframes acNode{0%,100%{transform:scale(.7);opacity:.45}50%{transform:scale(1.15);opacity:1}}
.ac-wig{transform-box:fill-box;transform-origin:30% 70%;animation:acWig 2.6s ease-in-out infinite}
@keyframes acWig{0%,60%,100%{transform:none}70%{transform:rotate(-18deg)}85%{transform:rotate(10deg)}}
.ac-steam{animation:acSteam 2.4s ease-in-out infinite}
.ac-steam.d2{animation-delay:.6s}.ac-steam.d3{animation-delay:1.2s}
@keyframes acSteam{0%{transform:translateY(4px);opacity:0}40%{opacity:1}100%{transform:translateY(-6px);opacity:0}}
.ac-glow{animation:acGlow 2.8s ease-in-out infinite}
@keyframes acGlow{0%,100%{opacity:.25}50%{opacity:1}}
.ac-beat{stroke-dasharray:60;animation:acBeat 2.2s linear infinite}
@keyframes acBeat{from{stroke-dashoffset:60}to{stroke-dashoffset:-60}}
.ac-hit{animation:acHit 2.6s cubic-bezier(.3,1.4,.5,1) infinite}
@keyframes acHit{0%{transform:translate(12px,-12px);opacity:0}30%,80%{transform:none;opacity:1}100%{opacity:0}}
.ac-slide{animation:acSlideIn 3s ease-in-out infinite}
.ac-slide.d2{animation-delay:.3s}.ac-slide.d3{animation-delay:.6s}
@keyframes acSlideIn{0%{transform:translateY(-8px);opacity:0}25%,80%{transform:none;opacity:1}100%{opacity:0}}
.ac-ring{transform-box:fill-box;transform-origin:50% 10%;animation:acRingBell 2.4s ease-in-out infinite}
@keyframes acRingBell{0%,50%,100%{transform:none}55%,65%,75%{transform:rotate(14deg)}60%,70%{transform:rotate(-14deg)}}
.ac-fly{animation:acFly 3s ease-in-out infinite}
@keyframes acFly{0%{transform:translate(-6px,6px);opacity:0}25%{opacity:1}70%{transform:translate(4px,-4px);opacity:1}100%{transform:translate(10px,-10px);opacity:0}}
.ac-stack{animation:acStack 3.2s cubic-bezier(.3,1.5,.5,1) infinite}
.ac-stack.d2{animation-delay:.25s}.ac-stack.d3{animation-delay:.5s}
@keyframes acStack{0%{transform:translateY(-10px);opacity:0}20%,85%{transform:none;opacity:1}100%{opacity:0}}
.ac-grow{transform-box:fill-box;transform-origin:center bottom;animation:acGrow 3s ease-in-out infinite}
.ac-grow.d2{animation-delay:.2s}.ac-grow.d3{animation-delay:.4s}
@keyframes acGrow{0%{transform:scaleY(.2)}40%,85%{transform:none}100%{transform:scaleY(.2)}}
.ac-star{transform-box:fill-box;transform-origin:center;animation:acStar 2.7s ease-in-out infinite}
.ac-star.d2{animation-delay:.3s}.ac-star.d3{animation-delay:.6s}
@keyframes acStar{0%,100%{transform:scale(.6);opacity:.3}30%,70%{transform:scale(1.1);opacity:1}}
.ac-twinkle{transform-box:fill-box;transform-origin:center;animation:acTw 2.4s ease-in-out infinite}
@keyframes acTw{0%,100%{transform:scale(.7) rotate(0)}50%{transform:scale(1.1) rotate(45deg)}}
.ac-pin{animation:acPin 2.6s cubic-bezier(.3,1.6,.5,1) infinite}
@keyframes acPin{0%{transform:translateY(-8px);opacity:0}25%,85%{transform:none;opacity:1}100%{opacity:0}}
.ac-slider{animation:acSlider 2.6s ease-in-out infinite alternate}
.ac-slider.d2{animation-delay:-1.3s}
@keyframes acSlider{from{transform:translateX(-5px)}to{transform:translateX(5px)}}
.ac-sway{transform-box:fill-box;transform-origin:center bottom;animation:acSway 3s ease-in-out infinite}
@keyframes acSway{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(4deg)}}
.ac-press{transform-box:fill-box;transform-origin:center;animation:acPress 2.4s ease-in-out infinite}
.ac-press.d2{animation-delay:.3s}.ac-press.d3{animation-delay:.6s}.ac-press.d4{animation-delay:.9s}
@keyframes acPress{0%,100%{opacity:.3}20%{opacity:1;transform:scale(1.3)}40%{transform:none}}

/* --- list check pop (pricing / twin / industries bullets) --- */
.ac-js:not(.ac-rm) .ac-chk li::before{display:inline-block;transform:scale(0) rotate(-40deg);transition:transform .45s cubic-bezier(.3,1.7,.5,1);transition-delay:calc(var(--li,0) * 60ms + 150ms)}
.ac-js:not(.ac-rm) .ac-chk.ac-in li::before{transform:none}

/* --- step number pulse (demo) + how track --- */
.ac-numring{position:relative}
.ac-numring::after{content:"";position:absolute;inset:-4px;border-radius:10px;border:2px solid var(--accent,#6F0BC2);opacity:0;animation:acNum 2.6s ease-out infinite;pointer-events:none}
.ac-numring.n2::after{animation-delay:.6s}.ac-numring.n3::after{animation-delay:1.2s}
@keyframes acNum{0%{opacity:.7;transform:scale(1)}100%{opacity:0;transform:scale(1.35)}}
.ac-track{height:30px;margin:-14px 0 -18px;position:relative}
.ac-track svg{width:100%;height:30px;overflow:visible}
.ac-track .t-base{stroke:var(--line,#E7DCD2);stroke-width:3;stroke-linecap:round}
.ac-track .t-fill{stroke:var(--accent,#2563EB);stroke-width:3;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;animation:acTrack 5s ease-in-out infinite}
@keyframes acTrack{0%{stroke-dashoffset:1}60%,90%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:0;opacity:0}}
.ac-track .t-node{fill:var(--card,#fff);stroke:var(--accent,#2563EB);stroke-width:3;transform-box:fill-box;transform-origin:center;animation:acNode 2.4s ease-in-out infinite}
.ac-track .t-dot{fill:var(--accent,#2563EB);animation:acDot 5s ease-in-out infinite}
@keyframes acDot{0%{offset-distance:0%;opacity:0}8%{opacity:1}60%{offset-distance:100%;opacity:1}75%,100%{offset-distance:100%;opacity:0}}
@media(max-width:760px){.ac-track{display:none}}

/* --- transformation knob pulse --- */
.ac-knobpulse{position:absolute;left:50%;top:50%;width:54px;height:54px;margin:-27px 0 0 -27px;border-radius:50%;pointer-events:none;border:2px solid var(--accent,#059669);animation:acKnob 2.4s ease-out infinite}
.ac-knobpulse.b{animation-delay:1.2s}
@keyframes acKnob{0%{transform:scale(.8);opacity:.8}100%{transform:scale(1.9);opacity:0}}

/* --- illustrations --- */
.ac-illus{color:var(--accent,#6F0BC2);pointer-events:none}
.ac-illus svg{width:100%;height:auto;overflow:visible;display:block}
.ac-illus .s{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.ac-illus .l{fill:none;stroke:var(--line2,#D6C8BB);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ac-illus .p{fill:var(--card,#fff);stroke:var(--line2,#D6C8BB);stroke-width:1.6}
.ac-illus .k{fill:var(--line,#E7DCD2)}
.ac-illus .a{fill:currentColor}
.ac-illus .as{fill:color-mix(in srgb,currentColor 14%,transparent);stroke:currentColor;stroke-width:1.6}
.ac-side{width:min(300px,86%);margin:-8px 0 -6px}
.ac-side.ac-sot,.ac-side.ac-opt{margin:4px 0 6px;width:min(250px,80%)}
@media(max-width:760px){.ac-side,.ac-side.ac-sot,.ac-side.ac-opt{margin:0 auto}}
.ac-inline{width:min(320px,100%);margin:6px auto 8px}
.ac-final-floaters{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:0;color:var(--accent,#6F0BC2)}
.ac-final-floaters svg{position:absolute;width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:.22;animation:acFloat 9s ease-in-out infinite}
@keyframes acFloat{50%{transform:translateY(-20px) rotate(8deg);opacity:.4}}
#final.ac-host>*:not(.ac-final-floaters){position:relative;z-index:1}

@media(prefers-reduced-motion:reduce){
  .ac-a,.ac-a *,.ac-a::before,.ac-a::after,.ac-illus *,.ac-final-floaters *,.ac-knobpulse,.ac-numring::after,.ac-track *{animation:none!important;transition:none!important}
  .ac-wave,.ac-ripple,.ac-drop,.ac-steam{opacity:1}
  .ac-track .t-fill{stroke-dashoffset:0}
  .ac-knobpulse{display:none}
}

/* --- hub-specific placement (AIE industries page) --- */
.rc-card.ac-host{position:relative}
.rc-card .ac-ico.corner{top:14px;right:14px;z-index:2;background:var(--card,#fff);box-shadow:0 1px 6px color-mix(in srgb,var(--ink,#1C1917) 10%,transparent)}
.rc-card:has(.rc-card-media) .ac-ico.corner{top:22px;right:22px}
.rc-hero.ac-host,.rc-final.ac-host,#transformation.ac-host{position:relative}
.ac-hero-floaters{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:0;color:var(--accent,#6F0BC2)}
.ac-hero-floaters svg{position:absolute;width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:.2;animation:acFloat 9s ease-in-out infinite}
.rc-hero .rc-in{position:relative;z-index:1}
.ac-hero-ill{position:absolute;right:3%;top:88px;width:min(300px,26vw);z-index:0;pointer-events:none}
.ac-hero-ill.ac-rv{transform:none}
.ac-js:not(.ac-rm) .ac-hero-ill.ac-rv{transform:none;opacity:0}
.ac-js:not(.ac-rm) .ac-hero-ill.ac-rv.ac-in{opacity:1}
@media(max-width:1100px){.ac-hero-ill{opacity:.4;width:min(240px,30vw)}}
@media(max-width:860px){.ac-hero-ill,.ac-hero-floaters{display:none}}
.ac-js main.rc,.ac-js #pricing,.ac-js #faq,.ac-js .rc-final{overflow-x:clip}
#faq .ac-ico.xs{flex:none}
.ac-final-floaters svg{opacity:.18}
/* keep check-pop from shifting pricing layout */
.ac-js:not(.ac-rm) .ac-chk li{position:relative}

@media(prefers-reduced-motion:reduce){
  .ac-hero-floaters *,.ac-hero-ill{animation:none!important}
  .ac-hero-ill{opacity:1}
}

/* .num is a block-level full-width div; shrink the pulse ring to the number itself */
.rc-card .num.ac-numring{display:inline-block;align-self:flex-start;width:auto}

/* ===== hub-v2: richer icons, scroll motion, overflow safety ===== */
.ac-ico{
  background:
    radial-gradient(120% 90% at 30% 20%, color-mix(in srgb,var(--c) 22%,transparent), transparent 60%),
    color-mix(in srgb,var(--c) 10%,transparent);
  box-shadow:inset 0 1px 0 color-mix(in srgb,#fff 35%,transparent);
}
.ac-js:not(.ac-rm) [data-ac].ac-play .ac-ico{
  animation:acIcoBreathe 3.8s ease-in-out infinite;
}
@keyframes acIcoBreathe{
  0%,100%{box-shadow:inset 0 1px 0 color-mix(in srgb,#fff 35%,transparent)}
  50%{background:
    radial-gradient(120% 90% at 30% 20%, color-mix(in srgb,var(--c) 30%,transparent), transparent 62%),
    color-mix(in srgb,var(--c) 16%,transparent)}
}
/* draw-on for illustration strokes once they scroll in */
.ac-js:not(.ac-rm) .ac-illus.ac-rv .s{
  stroke-dasharray:220;
  stroke-dashoffset:220;
}
.ac-js:not(.ac-rm) .ac-illus.ac-rv.ac-in .s{
  animation:acIllusDraw .95s ease forwards;
  animation-delay:var(--ad,80ms);
}
@keyframes acIllusDraw{to{stroke-dashoffset:0}}

/* slightly stronger, still light hero/final floaters */
.ac-hero-floaters svg,.ac-final-floaters svg{
  width:34px;height:34px;opacity:.28;filter:drop-shadow(0 2px 6px color-mix(in srgb,var(--accent,#6F0BC2) 25%,transparent));
}
.ac-js:not(.ac-rm) .ac-hero-floaters svg,
.ac-js:not(.ac-rm) .ac-final-floaters svg{
  animation:acFloat 8.5s ease-in-out infinite, acFloaterFade 7s ease-in-out infinite;
}
@keyframes acFloaterFade{0%,100%{opacity:.2}50%{opacity:.38}}

/* cards: keep corner icons on the photo, never spill horizontally */
.rc-card{overflow-x:clip}
.rc-card .ac-ico.corner{
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  background:color-mix(in srgb,var(--card,#fff) 88%,transparent);
}
@media (max-width:375px){
  .rc-card .ac-ico.corner{top:10px;right:10px;width:36px;height:36px}
  .ac-hero-floaters,.ac-hero-ill{display:none}
  .ac-side,.ac-inline{max-width:100%}
  .ms-niche-tabs{max-width:100%}
}

@media (prefers-reduced-motion:reduce){
  .ac-ico,.ac-hero-floaters svg,.ac-final-floaters svg,.ac-illus .s{animation:none!important}
  .ac-illus .s{stroke-dasharray:none;stroke-dashoffset:0}
}

/* ===== hero v3: large prominent visual (Espo Nov 11 10:19 AM) ===== */
.rc-hero .rc-in.rc-hero-split{
  max-width:min(1280px,100%);
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);
  gap:24px 32px;
  align-items:center;
}
.rc-hero-copy{min-width:0;position:relative;z-index:1}
.rc-hero-copy .lede{max-width:38rem}
.ac-hero-stage{
  position:relative;
  width:100%;
  max-width:none;
  aspect-ratio:1/1;
  justify-self:stretch;
  pointer-events:none;
  color:var(--accent,#6F0BC2);
  background:radial-gradient(circle at 50% 48%, color-mix(in srgb,var(--accent,#6F0BC2) 16%,transparent), transparent 68%);
}
.ac-hero-viz{position:absolute;inset:0}
.ac-hero-viz svg.ac-hero-core{width:100%;height:100%;display:block;overflow:visible}
.ac-hero-ring{transform-origin:260px 260px;transform-box:fill-box}
.ac-js:not(.ac-rm) .ac-hero-ring.r1{animation:acSpin 48s linear infinite}
.ac-js:not(.ac-rm) .ac-hero-ring.r2{animation:acSpin 72s linear infinite reverse}
.ac-js:not(.ac-rm) .ac-hero-phone{transform-origin:center center;animation:acHeroBob 5.5s ease-in-out infinite}
.ac-orbiter{position:absolute;inset:7%;pointer-events:none}
.ac-orbiter-spin{width:100%;height:100%;transform:rotate(var(--d,0deg))}
.ac-orbiter-counter{position:absolute;top:0;left:50%;transform:translate(-50%,-50%) rotate(calc(-1 * var(--d,0deg)))}
.ac-js:not(.ac-rm) .ac-orbiter-spin{animation:acHeroOrbit var(--dur,28s) linear infinite}
.ac-js:not(.ac-rm) .ac-orbiter-counter{animation:acHeroUnorbit var(--dur,28s) linear infinite}
@keyframes acHeroOrbit{to{transform:rotate(calc(var(--d,0deg) + 360deg))}}
@keyframes acHeroUnorbit{to{transform:translate(-50%,-50%) rotate(calc(-1 * var(--d,0deg) - 360deg))}}
.ac-hero-chip{
  display:grid;place-items:center;
  width:56px;height:56px;border-radius:16px;
  color:var(--accent,#6F0BC2);
  background:var(--card,#fff);
  border:1px solid var(--line,#D1C8C0);
  box-shadow:
    0 10px 28px color-mix(in srgb,var(--ink,#1C1917) 12%,transparent),
    0 0 0 1px color-mix(in srgb,var(--accent,#6F0BC2) 10%,transparent);
}
.ac-hero-chip svg{width:30px;height:30px;overflow:visible;fill:none;stroke:currentColor;stroke-width:2.15;stroke-linecap:round;stroke-linejoin:round}
.ac-js:not(.ac-rm) .ac-hero-chip{animation:acHeroChip 3.6s ease-in-out infinite}
@keyframes acHeroChip{50%{box-shadow:0 10px 28px color-mix(in srgb,var(--accent,#6F0BC2) 22%,transparent),0 0 0 1px color-mix(in srgb,var(--accent,#6F0BC2) 18%,transparent)}}
.ac-hero-dot{transform-box:fill-box;transform-origin:center}
.ac-js:not(.ac-rm) .ac-hero-dot{animation:acGlow 2.2s ease-in-out infinite}

/* old small overlay no longer used in the hero; don't let leftover rules shrink the stage */
.rc-hero .ac-hero-ill,.rc-hero .ac-hero-floaters{display:none}

@media (max-width:860px){
  .rc-hero .rc-in.rc-hero-split{grid-template-columns:1fr;gap:8px 0}
  .ac-hero-stage{justify-self:stretch;max-width:420px;width:100%;margin:8px auto 0;aspect-ratio:1/1}
  .ac-hero-chip{width:48px;height:48px;border-radius:14px}
  .ac-hero-chip svg{width:26px;height:26px}
  /* un-hide: previous rules hid .ac-hero-ill; the new stage must stay visible */
  .ac-hero-stage,.ac-hero-viz{display:block}
}
@media (max-width:375px){
  .ac-hero-stage{max-width:100%;margin-top:4px}
  .ac-hero-chip{width:44px;height:44px}
}

@media (prefers-reduced-motion:reduce){
  .ac-hero-ring,.ac-hero-phone,.ac-orbiter-spin,.ac-orbiter-counter,.ac-hero-chip,.ac-hero-dot{animation:none!important}
  .ac-orbiter-spin{transform:rotate(var(--d,0deg))}
  .ac-orbiter-counter{transform:translate(-50%,-50%) rotate(calc(-1 * var(--d,0deg)))}
}

/* ===== hero v4: animated chat, ticking dashboard, labeled niche chips ===== */
.ac-hero-core{position:absolute;inset:0;width:100%;height:100%;display:block;overflow:visible;pointer-events:none;color:inherit}
.ac-hero-dash{
  position:absolute;left:2%;top:16%;width:58%;height:54%;z-index:3;
  background:var(--card,#fff);
  border:1px solid var(--line,#D1C8C0);
  border-radius:22px;
  padding:20px 22px 18px;
  color:var(--ink,#1C1917);
  box-shadow:
    0 22px 48px color-mix(in srgb,var(--ink,#1C1917) 16%,transparent),
    0 0 0 1px color-mix(in srgb,var(--accent,#6F0BC2) 8%,transparent);
  transform:rotate(-7deg);
  display:flex;flex-direction:column;gap:8px;
  font-family:"Source Sans 3","Segoe UI",sans-serif;
}
.ac-hero-dash-head{
  font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--muted,#6B645C);
}
.ac-hero-metric{display:flex;align-items:baseline;gap:10px}
.ac-hero-metric strong{
  font-family:"Barlow Condensed","Source Sans 3",sans-serif;
  font-weight:800;font-size:44px;line-height:1;letter-spacing:-.03em;
  color:var(--ink,#1C1917);min-width:1.4ch;
}
.ac-hero-metric span{font-size:14px;font-weight:650;color:var(--muted,#6B645C)}
.ac-hero-leads strong{font-size:32px}
.ac-hero-bars{display:flex;align-items:flex-end;gap:7px;height:72px;margin:4px 0 2px;flex:1}
.ac-hero-bars i{
  flex:1;height:var(--h,40%);display:block;
  background:color-mix(in srgb,var(--accent,#6F0BC2) 55%, var(--line,#D1C8C0));
  border-radius:7px 7px 3px 3px;
  transform-origin:bottom center;
}
.ac-js:not(.ac-rm) .ac-hero-bars i{animation:acHeroBar 12s ease-in-out infinite}
.ac-hero-bars i:nth-child(2){animation-delay:-1.4s}
.ac-hero-bars i:nth-child(3){animation-delay:-2.8s}
.ac-hero-bars i:nth-child(4){animation-delay:-4.2s}
.ac-hero-bars i:nth-child(5){animation-delay:-5.6s}
.ac-hero-bars i:nth-child(6){animation-delay:-7s}
@keyframes acHeroBar{0%,100%{transform:scaleY(.72)}40%{transform:scaleY(1)}70%{transform:scaleY(.86)}}
.ac-hero-phone{
  position:absolute;right:8%;top:7%;
  width:42%;max-width:260px;
  aspect-ratio:188/360;
  background:var(--card,#fff);
  border:2px solid var(--line2,#B5AB9F);
  border-radius:36px;
  box-shadow:
    0 28px 56px color-mix(in srgb,var(--ink,#1C1917) 22%,transparent),
    0 0 0 1px color-mix(in srgb,var(--accent,#6F0BC2) 10%,transparent);
  transform:rotate(-9deg);
  transform-origin:center center;
  overflow:hidden;
  z-index:4;
  color:var(--ink,#1C1917);
  font-family:"Source Sans 3","Segoe UI",sans-serif;
}
.ac-js:not(.ac-rm) .ac-hero-phone{animation:acHeroBob 5.5s ease-in-out infinite}
@keyframes acHeroBob{50%{transform:rotate(-9deg) translateY(-6px)}}
.ac-hero-phone-screen{position:absolute;inset:10px 8px 10px;border-radius:28px;overflow:hidden;display:flex;flex-direction:column;background:var(--bg2,#F4F1EC)}
.ac-hero-phone-head{
  display:flex;align-items:center;gap:8px;
  padding:10px 10px 12px;
  background:var(--accent,#6F0BC2);color:#fff;flex:0 0 auto;
}
.ac-hero-avatar{width:22px;height:22px;border-radius:50%;background:#fff;flex:0 0 22px;position:relative}
.ac-hero-avatar:before,.ac-hero-avatar:after{content:"";position:absolute;background:var(--accent,#6F0BC2);border-radius:50%}
.ac-hero-avatar:before{width:8px;height:8px;left:7px;top:5px}
.ac-hero-avatar:after{width:14px;height:8px;left:4px;top:13px;border-radius:8px 8px 0 0}
.ac-hero-phone-head b{display:block;font-size:12px;font-weight:700;line-height:1.15}
.ac-hero-phone-head span{display:block;font-size:10px;font-weight:600;opacity:.85}
.ac-hero-phone-head .ac-hero-dot{width:8px;height:8px;border-radius:50%;background:#86efac;margin-left:auto;flex:0 0 8px;box-shadow:0 0 0 3px rgba(134,239,172,.25)}
.ac-hero-chat{flex:1;padding:10px 10px 8px;display:flex;flex-direction:column;gap:8px;min-height:0}
.ac-hero-msg{
  max-width:92%;padding:8px 10px;border-radius:14px;
  font-size:11px;font-weight:600;line-height:1.35;
  color:var(--ink,#1C1917);
}
.ac-hero-msg.bot{background:var(--card,#fff);border:1px solid var(--line,#D1C8C0);align-self:flex-start;border-bottom-left-radius:4px}
.ac-hero-msg.user{background:var(--accent,#6F0BC2);color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.ac-hero-typing{display:flex;align-items:center;gap:4px;padding:8px 10px;background:var(--card,#fff);border:1px solid var(--line,#D1C8C0);border-radius:12px;align-self:flex-start;width:fit-content}
.ac-hero-typing i{width:6px;height:6px;border-radius:50%;background:var(--ink,#1C1917);opacity:.35}
.ac-js:not(.ac-rm) .ac-hero-typing i{animation:acHeroDots 1s ease-in-out infinite}
.ac-hero-typing i:nth-child(2){animation-delay:.15s}
.ac-hero-typing i:nth-child(3){animation-delay:.3s}
@keyframes acHeroDots{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:.8;transform:translateY(-2px)}}
.ac-hero-compose{margin:4px 10px 10px;padding:8px 12px;border-radius:999px;background:var(--card,#fff);border:1px solid var(--line,#D1C8C0);font-size:11px;color:var(--muted,#6B645C);font-weight:600}
/* chat sequence, 12s loop. reduced-motion shows the finished thread. */
.ac-js:not(.ac-rm) .ac-ht-1,
.ac-js:not(.ac-rm) .ac-ht-2,
.ac-js:not(.ac-rm) .ac-hm-1,
.ac-js:not(.ac-rm) .ac-hm-2,
.ac-js:not(.ac-rm) .ac-hm-3{
  animation-duration:12s;animation-timing-function:linear;animation-iteration-count:infinite;
  overflow:hidden;
}
.ac-js:not(.ac-rm) .ac-ht-1{animation-name:acHt1}
.ac-js:not(.ac-rm) .ac-ht-2{animation-name:acHt2}
.ac-js:not(.ac-rm) .ac-hm-1{animation-name:acHm1}
.ac-js:not(.ac-rm) .ac-hm-2{animation-name:acHm2}
.ac-js:not(.ac-rm) .ac-hm-3{animation-name:acHm3}
@keyframes acHt1{
  0%,2%{opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;border-width:0}
  4%,14%{opacity:1;max-height:40px;padding-top:8px;padding-bottom:8px;border-width:1px}
  16%,100%{opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;border-width:0}
}
@keyframes acHm1{
  0%,14%{opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;border-width:0}
  16%,94%{opacity:1;max-height:80px;padding-top:8px;padding-bottom:8px;border-width:1px}
  96%,100%{opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;border-width:0}
}
@keyframes acHm2{
  0%,32%{opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0}
  36%,94%{opacity:1;max-height:80px;padding-top:8px;padding-bottom:8px}
  96%,100%{opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0}
}
@keyframes acHt2{
  0%,40%{opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;border-width:0}
  42%,52%{opacity:1;max-height:40px;padding-top:8px;padding-bottom:8px;border-width:1px}
  54%,100%{opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;border-width:0}
}
@keyframes acHm3{
  0%,52%{opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;border-width:0}
  56%,94%{opacity:1;max-height:80px;padding-top:8px;padding-bottom:8px;border-width:1px}
  96%,100%{opacity:0;max-height:0;padding-top:0;padding-bottom:0;margin:0;border-width:0}
}
.ac-rm .ac-ht-1,.ac-rm .ac-ht-2,.ac-hero-static .ac-ht-1,.ac-hero-static .ac-ht-2{display:none}
.ac-rm .ac-hero-msg,.ac-hero-static .ac-hero-msg{opacity:1;max-height:none}
.ac-orbiter{inset:5%;z-index:2}
.ac-hero-chip{
  width:auto;height:auto;min-width:76px;
  padding:8px 9px 7px;gap:3px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
}
.ac-hero-chip-label{
  font:650 8px/1.1 "Source Sans 3","Segoe UI",sans-serif;
  color:var(--ink,#1C1917);
  letter-spacing:.01em;text-align:center;white-space:nowrap;
}
html[data-theme="dark"] .ac-hero-dash,
html[data-theme="dark"] .ac-hero-phone{
  box-shadow:0 28px 56px rgba(0,0,0,.45),0 0 0 1px color-mix(in srgb,var(--accent,#6F0BC2) 22%,transparent);
}

@media (max-width:860px){
  .ac-hero-stage{max-width:none;width:100%;margin:12px auto 0;aspect-ratio:1/1}
  .ac-hero-phone{width:46%;right:6%;max-width:none}
  .ac-hero-dash{width:60%;height:50%}
  .ac-hero-chip{min-width:58px;padding:6px 6px 5px}
  .ac-hero-chip-label{font-size:8px}
  .ac-hero-metric strong{font-size:36px}
}
@media (max-width:375px){
  .ac-hero-stage{max-width:100%;margin-top:8px}
  .ac-hero-chip{min-width:52px}
  .ac-hero-metric strong{font-size:28px}
  .ac-hero-dash-head{font-size:10px}
}
@media (prefers-reduced-motion:reduce){
  .ac-hero-phone,.ac-hero-bars i,.ac-ht-1,.ac-ht-2,.ac-hm-1,.ac-hm-2,.ac-hm-3,.ac-hero-typing i{animation:none!important}
  .ac-hero-phone{transform:rotate(-9deg)}
}
