{"version":3,"file":"HowItWorks.BkDC5cTQ.mjs","names":["React.useRef","React.useState"],"sources":["https:/framerusercontent.com/modules/zLPF0e7AuxN1ywK02NWH/QIpezpPlxvpyfTt2GdQU/HowItWorks.js"],"sourcesContent":["// VELNORA How it works — three connected step cards. On desktop/tablet the section pins while you scroll and each\n// card activates in turn (the connector fills between them). On phones the cards stack and activate as they enter view.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{useScroll,useMotionValueEvent,useInView,motion}from\"framer-motion\";import{Section,Head,Icon,Node,useStill,useWidth,lines,cells,iconFor,headControls,toneControl,idControl,EASE_OUT,T}from\"https://framerusercontent.com/modules/m8GZi090azqY4HCeGc1x/vEO3BBkGZ6s6IMmPZ7fw/Kit.js\";const CSS=`\n.vn-how{padding:0}\n.vn-how .pin{position:sticky;top:0;min-height:100vh;display:flex;align-items:center;padding:112px 0 72px}\n.vn-how .free .pin{position:relative;min-height:0;padding:128px 0}\n.vn-how[data-w=\"md\"] .free .pin{padding:96px 0}\n.vn-how[data-w=\"sm\"] .free .pin{padding:72px 0}\n.vn-how .grid{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:56px}\n.vn-how .wire{position:absolute;left:calc(16.66% + 30px);right:calc(16.66% + 30px);top:58px;height:2px;background:var(--line2);border-radius:2px;overflow:hidden}\n.vn-how .wire i{position:absolute;inset:0;transform-origin:left;background:var(--grad)}\n.vn-how .card{position:relative;display:flex;flex-direction:column;gap:14px;padding:28px;border-radius:24px;background:#fff;box-shadow:0 0 0 1px var(--line2),var(--sh-sm);transition:box-shadow .5s var(--e-out),opacity .5s,transform .5s var(--e-out)}\n.vn-how .card[data-on]{box-shadow:0 0 0 1.5px color-mix(in srgb,var(--c) 55%,transparent),0 24px 60px -24px color-mix(in srgb,var(--c) 55%,transparent)}\n.vn-how .card:not([data-on]){opacity:.55}\n.vn-how .card .top{display:flex;align-items:center;justify-content:space-between}\n.vn-how .card .num{font-family:var(--mono);font-size:12px;color:var(--text3)}\n.vn-how .card .vn-h3{margin-top:10px}\n.vn-how .vis{margin-top:auto;padding-top:18px}\n.vn-how .vis .box{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:64px;padding:12px;border-radius:16px;background:var(--subtle);box-shadow:inset 0 0 0 1px var(--line)}\n.vn-how .vis .app{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 12px 0 6px;border-radius:999px;background:#fff;box-shadow:0 0 0 1px var(--line2);font-size:13px;font-weight:500;color:var(--text)}\n.vn-how .vis .app i{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--brand-soft);color:var(--brand)}\n.vn-how .vis .prompt{flex:1;display:flex;align-items:center;gap:10px;height:40px;padding:0 6px 0 14px;border-radius:12px;background:#fff;box-shadow:0 0 0 1px var(--line2);font-size:13.5px;color:var(--text2);min-width:0}\n.vn-how .vis .prompt span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n.vn-how .vis .prompt b{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;color:#fff;background:var(--brand)}\n.vn-how .vis .tg{display:inline-flex;align-items:center;width:40px;height:24px;padding:3px;border-radius:999px;background:var(--line2);transition:background .4s}\n.vn-how .vis .tg i{width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:var(--sh-xs);transition:transform .4s var(--e-out)}\n.vn-how .card[data-on] .vis .tg{background:var(--ok)}\n.vn-how .card[data-on] .vis .tg i{transform:translateX(16px)}\n.vn-how .vis .on{font-size:13.5px;font-weight:500;color:var(--text);margin-right:auto}\n@container (max-width:1000px){.vn-how .card{padding:22px}.vn-how .grid{gap:16px}}\n@container (max-width:680px){.vn-how .grid{grid-template-columns:minmax(0,1fr);margin-top:40px}.vn-how .wire{display:none}.vn-how .card:not([data-on]){opacity:.7}}\n`;function Visual({i,detail}){const items=String(detail||\"\").split(\",\").map(x=>x.trim()).filter(Boolean);if(i%3===0)return /*#__PURE__*/_jsx(\"div\",{className:\"box\",children:items.map((a,k)=>/*#__PURE__*/_jsxs(\"span\",{className:\"app\",children:[/*#__PURE__*/_jsx(\"i\",{children:/*#__PURE__*/_jsx(Icon,{name:iconFor(a,\"plug\"),size:13,stroke:2})}),a]},k))});if(i%3===1)return /*#__PURE__*/_jsx(\"div\",{className:\"box\",children:/*#__PURE__*/_jsxs(\"div\",{className:\"prompt\",children:[/*#__PURE__*/_jsx(Icon,{name:\"sparkles\",size:16,style:{color:T.brand,flexShrink:0}}),/*#__PURE__*/_jsx(\"span\",{children:detail}),/*#__PURE__*/_jsx(\"b\",{children:/*#__PURE__*/_jsx(Icon,{name:\"arrow-right\",size:15,stroke:2.2})})]})});return /*#__PURE__*/_jsxs(\"div\",{className:\"box\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"on\",children:items[0]||detail}),items[1]&&/*#__PURE__*/_jsx(\"span\",{className:\"vn-chip ok\",children:items[1]}),/*#__PURE__*/_jsx(\"span\",{className:\"tg\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"i\",{})})]});}function Card({s,i,on,onView,color}){const[title,body,detail,icon]=cells(s);const ref=React.useRef(null);const seen=useInView(ref,{margin:\"-40% 0px -40% 0px\"});React.useEffect(()=>{if(seen&&onView)onView(i);},[seen]);return /*#__PURE__*/_jsxs(\"article\",{ref:ref,className:\"card\",\"data-on\":on?\"\":undefined,style:{[\"--c\"]:color},children:[/*#__PURE__*/_jsxs(\"div\",{className:\"top\",children:[/*#__PURE__*/_jsx(Node,{icon:icon||iconFor(title,[\"plug\",\"wand\",\"zap\"][i%3]),color:color,size:60,off:!on,ring:on}),/*#__PURE__*/_jsx(\"span\",{className:\"num\",children:String(i+1).padStart(2,\"0\")})]}),/*#__PURE__*/_jsx(\"h3\",{className:\"vn-h3\",children:title}),/*#__PURE__*/_jsx(\"p\",{className:\"vn-body\",children:body}),/*#__PURE__*/_jsx(\"div\",{className:\"vis\",children:/*#__PURE__*/_jsx(Visual,{i:i,detail:detail})})]});}export default function HowItWorks(props){const{tone,sectionId,eyebrow,title,subtitle,steps,pinned,style}=props;const list=lines(steps);const n=Math.max(1,list.length);const still=useStill();const[ref,w]=useWidth();const free=still||!pinned||w>0&&w<=680;const[active,setActive]=React.useState(0);const{scrollYProgress}=useScroll({target:ref,offset:[\"start start\",\"end end\"]});useMotionValueEvent(scrollYProgress,\"change\",p=>{if(free)return;setActive(Math.min(n-1,Math.max(0,Math.floor(p*n*1.0001))));});const colors=[T.coral,T.brand,T.mint,T.sky];const fill=still?1:n>1?active/(n-1):1;return /*#__PURE__*/_jsx(Section,{tone:tone,id:sectionId,className:\"vn-how\",css:CSS,style:style,children:/*#__PURE__*/_jsx(\"div\",{ref:ref,className:free?\"free\":\"\",style:free?undefined:{height:`${100+n*45}vh`},children:/*#__PURE__*/_jsx(\"div\",{className:\"pin\",children:/*#__PURE__*/_jsxs(\"div\",{className:\"vn-wrap\",children:[/*#__PURE__*/_jsx(Head,{eyebrow:eyebrow,title:title,subtitle:subtitle,align:\"center\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"grid\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"wire\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(motion.i,{initial:false,animate:{scaleX:fill},transition:{duration:.6,ease:EASE_OUT}})}),list.map((s,i)=>/*#__PURE__*/_jsx(Card,{s:s,i:i,color:colors[i%colors.length],on:still||(free?i<=active:i<=active),onView:free?k=>setActive(a=>Math.max(a,k)):undefined},i))]})]})})})});}addPropertyControls(HowItWorks,{tone:toneControl,sectionId:idControl(\"how-it-works\"),...headControls({eyebrow:\"How it works\",title:\"From busywork to done\\n*in three steps.*\",subtitle:\"\"}),steps:{type:ControlType.String,title:\"Steps\",displayTextArea:true,defaultValue:\"Connect | Bring your tools together. | Email, CRM, Sheets\\nBuild | Choose a template or describe the workflow you need. | When a form is submitted, add it to the CRM\\nAutomate | Test it, turn it on, and monitor every run. | Workflow on, Last run passed\",description:\"One per line: Title | Body | Card detail | [optional icon]. Card 1 detail = comma list of apps; card 2 = prompt text; card 3 = status, badge.\"},pinned:{type:ControlType.Boolean,title:\"Pin on scroll\",defaultValue:true,description:\"Cards activate one by one while the section is pinned (phones always stack).\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HowItWorks\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"qZA+BE,SAAS,EAAO,CAAC,IAAE,UAAQ,CAAC,IAAM,EAAM,OAAO,GAAQ,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,OAAO,EAA6lB,OAAxlB,EAAE,GAAI,EAAsB,EAAK,MAAM,CAAC,UAAU,MAAM,SAAS,EAAM,KAAK,EAAE,IAAiB,EAAM,OAAO,CAAC,UAAU,MAAM,SAAS,CAAc,EAAK,IAAI,CAAC,SAAsB,EAAK,EAAK,CAAC,KAAK,EAAQ,EAAE,MAAM,EAAE,KAAK,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAK,EAAE,GAAI,EAAsB,EAAK,MAAM,CAAC,UAAU,MAAM,SAAsB,EAAM,MAAM,CAAC,UAAU,SAAS,SAAS,CAAc,EAAK,EAAK,CAAC,KAAK,WAAW,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,WAAW,CAAC,CAAC,CAAC,EAAe,EAAK,OAAO,CAAC,SAAS,CAAM,CAAC,EAAe,EAAK,IAAI,CAAC,SAAsB,EAAK,EAAK,CAAC,KAAK,cAAc,KAAK,GAAG,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAsB,EAAM,MAAM,CAAC,UAAU,MAAM,SAAS,CAAc,EAAK,OAAO,CAAC,UAAU,KAAK,SAA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