/* Homepage motion pieces: network graph, the six-piece loop, compact plan cards and the hero chat.
   Palette and type follow home-2026.css: #000 / #0b0b0c / #111113 surfaces, #26262a lines, lime #c9ff43, Inter. */

/* ---------- Hero phone: AI chat ---------- */
.ai-q{opacity:0;transform:translateY(4px);transition:opacity .3s ease,transform .3s ease;min-height:1.35em}
.ai-q.on{opacity:1;transform:none}
.ai-q.typing::after{content:"";display:inline-block;width:1px;height:1em;margin-left:1px;vertical-align:-.12em;background:currentColor;animation:aiCaret .8s steps(2) infinite}
@keyframes aiCaret{50%{opacity:0}}
.ai-dots{opacity:0;transition:opacity .25s ease}
.ai-dots.on{opacity:1}
.ai-a{opacity:0;transform:translateY(8px) scale(.97);transform-origin:left bottom;transition:opacity .4s ease,transform .45s cubic-bezier(.2,.8,.2,1)}
.ai-a.on{opacity:1;transform:none}

/* ---------- Network: You, Clients, Partners, Team ---------- */
.hn-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:56px;align-items:center}
.hn-copy .hn-body{margin:22px 0 0;max-width:600px;font:500 clamp(17px,1.6vw,20px)/1.55 Inter,sans-serif;letter-spacing:-.01em;color:#a1a1a6}
.hn-copy .hn-body b{color:#f5f5f7;font-weight:600}
.hn-ctas{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.hn-fig{margin:0;width:100%;max-width:520px;justify-self:center}
.hn-fig svg{display:block;width:100%;height:auto;overflow:visible}
.hn-line{fill:none;stroke:#3a3a3d;stroke-width:2;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:0}
.hn-ring{fill:none;stroke:#26262a;stroke-width:1.5;stroke-dasharray:4 7}
.hn-pulse{fill:none;stroke:#c9ff43;stroke-width:4;stroke-linecap:round;stroke-dasharray:7 100;stroke-dashoffset:7;opacity:0;filter:drop-shadow(0 0 4px rgba(201,255,67,.8))}
.hn-node circle{fill:#151517;stroke:#2c2c2f;stroke-width:1.5}
.hn-node text{font:600 15px Inter,sans-serif;fill:#f5f5f7;text-anchor:middle;dominant-baseline:central;letter-spacing:-.01em}
.hn-node,.hn-you{transform-box:fill-box;transform-origin:center}
.hn-you circle.core{fill:#c9ff43}
.hn-you text{font:800 22px Inter,sans-serif;fill:#000;text-anchor:middle;dominant-baseline:central;letter-spacing:-.02em}
.hn-halo{fill:none;stroke:#c9ff43;stroke-width:1.5;opacity:0;transform-box:fill-box;transform-origin:center}
/* motion: only once JS has marked the figure ready */
.hm-ready .hn-line{stroke-dashoffset:1;transition:stroke-dashoffset 1s cubic-bezier(.6,0,.3,1)}
.hm-ready .hn-line:nth-of-type(2){transition-delay:.18s}
.hm-ready .hn-line:nth-of-type(3){transition-delay:.36s}
.hm-ready .hn-ring{opacity:0;transition:opacity .8s ease 1.3s}
.hm-ready .hn-node{opacity:0;transform:scale(.6);transition:opacity .5s ease,transform .6s cubic-bezier(.2,1.4,.4,1)}
.hm-ready .hn-node.n1{transition-delay:.85s}.hm-ready .hn-node.n2{transition-delay:1.05s}.hm-ready .hn-node.n3{transition-delay:1.25s}
.hm-ready .hn-you{opacity:0;transform:scale(.7);transition:opacity .5s ease,transform .6s cubic-bezier(.2,1.4,.4,1)}
.hm-ready.is-on .hn-line{stroke-dashoffset:0}
.hm-ready.is-on .hn-ring{opacity:1}
.hm-ready.is-on .hn-node,.hm-ready.is-on .hn-you{opacity:1;transform:none}
.hm-ready.is-on .hn-pulse{animation:hnPulse 3.2s cubic-bezier(.45,0,.55,1) infinite}
.hm-ready.is-on .hn-pulse.p1{animation-delay:1.6s}.hm-ready.is-on .hn-pulse.p2{animation-delay:2.4s}.hm-ready.is-on .hn-pulse.p3{animation-delay:3.2s}
.hm-ready.is-on .hn-pulse.p4{animation-delay:2s}.hm-ready.is-on .hn-pulse.p5{animation-delay:2.8s}.hm-ready.is-on .hn-pulse.p6{animation-delay:3.6s}
.hm-ready.is-on .hn-halo{animation:hnHalo 3.2s ease-out 1.2s infinite}
@keyframes hnPulse{0%{stroke-dashoffset:7;opacity:0}8%{opacity:1}85%{opacity:1}100%{stroke-dashoffset:-100;opacity:0}}
@keyframes hnHalo{0%{opacity:.7;transform:scale(1)}100%{opacity:0;transform:scale(1.55)}}
@media (max-width:900px){.hn-grid{grid-template-columns:1fr;gap:36px}.hn-fig{max-width:440px}}

/* ---------- The loop: six connected pieces ---------- */
.hc-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px;align-items:center;margin-top:56px;text-align:left}
.hc-fig{margin:0;width:100%;max-width:440px;justify-self:center}
.hc-fig svg{display:block;width:100%;height:auto;overflow:visible}
.hc-base{fill:none;stroke:#26262a;stroke-width:2}
.hc-arc{fill:none;stroke:#c9ff43;stroke-width:3;stroke-linecap:round;stroke-dasharray:60;stroke-dashoffset:0;transition:stroke-dashoffset .65s cubic-bezier(.6,0,.3,1)}
.hc-comet{fill:none;stroke:#fff;stroke-width:4;stroke-linecap:round;stroke-dasharray:2.2 57.8;opacity:0;filter:drop-shadow(0 0 5px rgba(201,255,67,.9))}
.hc-chev{fill:none;stroke:#3a3a3d;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:stroke .4s ease}
.hc-node circle{fill:#c9ff43;stroke:#c9ff43;stroke-width:1.5;transition:fill .4s ease,stroke .4s ease}
.hc-node path,.hc-node rect,.hc-node circle.i{fill:none;stroke:#000;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:stroke .4s ease}
.hc-node .glow{fill:none;stroke:#c9ff43;stroke-width:1.5;opacity:0;transform-box:fill-box;transform-origin:center}
.hc-node.focus .glow{animation:hcGlow 1.5s ease-out}
@keyframes hcGlow{0%{opacity:.8;transform:scale(1)}100%{opacity:0;transform:scale(1.7)}}
.hc-bolt{fill:#c9ff43}
.hc-list{list-style:none;margin:0;padding:0;display:grid;gap:10px;counter-reset:hc}
.hc-list li{display:flex;align-items:baseline;gap:14px;padding:16px 20px;border-radius:18px;background:#111113;border:1px solid #c9ff43;transition:border-color .4s ease,background .4s ease,opacity .4s ease}
.hc-list li::before{counter-increment:hc;content:"0" counter(hc);flex:none;font:600 12px Inter,sans-serif;letter-spacing:.12em;color:#c9ff43}
.hc-list b{flex:none;min-width:104px;font:700 18px/1.2 Inter,sans-serif;letter-spacing:-.02em;color:#f5f5f7}
.hc-list span{font:400 15px/1.45 Inter,sans-serif;color:#a1a1a6}
.hc-list li.focus{background:#161a0d}
/* unlit states, only when JS runs the sequence */
.hm-ready .hc-arc{stroke-dashoffset:60}
.hm-ready .hc-node circle{fill:#111113;stroke:#2c2c2f}
.hm-ready .hc-node path,.hm-ready .hc-node rect,.hm-ready .hc-node circle.i{stroke:#6e6e73}
.hm-ready .hc-list li{border-color:#26262a;opacity:.55}
.hm-ready .hc-list li::before{color:#6e6e73}
.hm-ready .hc-node.lit circle{fill:#c9ff43;stroke:#c9ff43}
.hm-ready .hc-node.lit path,.hm-ready .hc-node.lit rect,.hm-ready .hc-node.lit circle.i{stroke:#000}
.hm-ready .hc-node.lit circle.glow{fill:none}
.hm-ready .hc-chev.lit{stroke:#c9ff43}
.hm-ready .hc-list li.lit{border-color:#c9ff43;opacity:1}
.hm-ready .hc-list li.lit::before{color:#c9ff43}
.hm-ready.looping .hc-comet{opacity:1;animation:hcComet 9s linear infinite}
@keyframes hcComet{from{stroke-dashoffset:2.2}to{stroke-dashoffset:-57.8}}
@media (max-width:900px){.hc-grid{grid-template-columns:1fr;gap:36px;margin-top:40px}.hc-fig{max-width:320px}}
@media (max-width:480px){.hc-list li{flex-wrap:wrap;gap:4px 12px;padding:14px 16px}.hc-list b{min-width:0}.hc-list span{flex-basis:100%;padding-left:32px;font-size:14px}}

/* ---------- Compact plan cards ---------- */
.hp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:52px}
.hp-card{position:relative;display:flex;flex-direction:column;gap:14px;padding:28px 26px 26px;border-radius:28px;background:#f5f5f7;color:#1d1d1f;border:1px solid #e5e5ea}
.hp-card.hp-dark{background:#000;color:#f5f5f7;border-color:#000}
.hp-lv{display:flex;gap:5px;height:8px}
.hp-lv i{flex:1;border-radius:4px;background:#d2d2d7;overflow:hidden;position:relative}
.hp-dark .hp-lv i{background:#2c2c2e}
.hp-lv i.on::after{content:"";position:absolute;inset:0;border-radius:4px;background:#3d6b00;transform-origin:left;transition:transform .7s cubic-bezier(.6,0,.3,1)}
.hp-dark .hp-lv i.on::after{background:#c9ff43}
.hp-lv i.on:nth-child(2)::after{transition-delay:.15s}.hp-lv i.on:nth-child(3)::after{transition-delay:.3s}
.hm-ready .hp-lv i.on::after{transform:scaleX(0)}
.hm-ready.is-on .hp-lv i.on::after{transform:none}
.hp-card h3{margin:6px 0 0;font:700 22px/1.15 Inter,sans-serif;letter-spacing:-.02em}
.hp-price{margin:0;font:700 clamp(40px,4vw,52px)/1 Inter,sans-serif;letter-spacing:-.045em}
.hp-price span{font-size:.38em;font-weight:600;letter-spacing:0;color:#6e6e73;margin-left:2px}
.hp-dark .hp-price span{color:#86868b}
.hp-card p.hp-line{margin:0 0 6px;font:400 16px/1.5 Inter,sans-serif;color:#6e6e73}
.hp-dark p.hp-line{color:#a1a1a6}
.hp-card .pill{margin-top:auto;align-self:flex-start}
.hp-teams{margin:26px 0 0;text-align:center;font:500 16px Inter,sans-serif;color:#6e6e73}
.hp-teams a{color:#1d1d1f;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.hp-teams a:hover{color:#3d6b00}
@media (max-width:860px){.hp-grid{grid-template-columns:1fr;max-width:460px;margin-left:auto;margin-right:auto}}

/* ---------- Weekly countdown: calendar buttons ---------- */
.lcd-cal{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.lcd-cal .pill svg{width:16px;height:16px;margin-right:8px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.lcd-cal .p-ghost-l{color:#f5f5f7}
@media (max-width:640px){.lcd-cal{flex-direction:column;align-self:stretch}.lcd-cal .pill{justify-content:center}}

/* ---------- Results tiles: arrow instead of "Case study" text ---------- */
.tile .t-go{display:inline-grid;place-items:center;width:30px;height:30px;margin-top:10px;border-radius:50%;background:#e8e8ed;color:#1d1d1f;transition:background .2s ease,transform .2s ease}
.tile:hover .t-go{background:#c9ff43;transform:translateX(3px)}
.tile .t-go svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

@media (prefers-reduced-motion:reduce){
  .hn-pulse,.hc-comet,.hn-halo{display:none}
  .ai-q.typing::after{display:none}
}
.hm-ready.paused .hc-comet{animation-play-state:paused}
