PageSourceSearch

https://evkii.com/assets/AIGrowthAudit-CiEmszA4.js

js evkii.com collected 2026-10-08 04:39:12 UTC 33,713 bytes, 35 lines download raw bytes

1import{d as V,r as c,al as ge,j as e,am as W,an as re,ao as ie,ap as ne,aq as fe,f as be,S as we,e as O,a6 as R,a as J,L as U,a2 as ve,a5 as je,a0 as le,X as ye}from"./index-CeBKV1R4.js";import{I as L}from"./input-CBYPG4hi.js";import{T as Ne}from"./textarea-BHkTQQKR.js";import{L as N}from"./label-x5jAe_ol.js";import{P as Ce,u as ke,L as Ie,m as E}from"./proxy-BZuIVH0Z.js";import{S as Se}from"./shield-check-DvfhfS-Q.js";import{T as _e}from"./target-DAZE8i0z.js";import{G as Ae}from"./gauge-34Tqs0IK.js";import{C as X}from"./calendar-BL-2_ztR.js";import{L as Re}from"./loader-circle-BQpEbU7m.js";import{Z as Ee}from"./zap-Bq9nh4rF.js";import{S as Pe}from"./send-FSKxQ85X.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const Le=V("ChartLine",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]);/**
7 * @license lucide-react v0.462.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const D=V("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
12 * @license lucide-react v0.462.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */const $e=V("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
17 * @license lucide-react v0.462.0 - ISC
18 *
19 * This source code is licensed under the ISC license.
20 * See the LICENSE file in the root directory of this source tree.
21 */const Te=V("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);function Z(t,r){if(typeof t=="function")return t(r);t!=null&&(t.current=r)}function Me(...t){return r=>{let a=!1;const i=t.map(n=>{const m=Z(n,r);return!a&&typeof m=="function"&&(a=!0),m});if(a)return()=>{for(let n=0;n<i.length;n++){const m=i[n];typeof m=="function"?m():Z(t[n],null)}}}}function Ge(...t){return c.useCallback(Me(...t),t)}class Fe extends c.Component{getSnapshotBeforeUpdate(r){const a=this.props.childRef.current;if(W(a)&&r.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const i=a.offsetParent,n=W(i)&&i.offsetWidth||0,m=W(i)&&i.offsetHeight||0,s=getComputedStyle(a),d=this.props.sizeRef.current;d.height=parseFloat(s.height),d.width=parseFloat(s.width),d.top=a.offsetTop,d.left=a.offsetLeft,d.right=n-d.width-d.left,d.bottom=m-d.height-d.top,d.direction=s.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function Oe({children:t,isPresent:r,anchorX:a,anchorY:i,root:n,pop:m}){var l;const s=c.useId(),d=c.useRef(null),x=c.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:w}=c.useContext(ge),u=((l=t.props)==null?void 0:l.ref)??(t==null?void 0:t.ref),C=Ge(d,u);return c.useInsertionEffect(()=>{const{width:o,height:p,top:j,left:g,right:b,bottom:S,direction:k}=x.current;if(r||m===!1||!d.current||!o||!p)return;const v=k==="rtl",I=a==="left"?v?`right: ${b}`:`left: ${g}`:v?`left: ${g}`:`right: ${b}`,_=i==="bottom"?`bottom: ${S}`:`top: ${j}`;d.current.dataset.motionPopId=s;const y=document.createElement("style");w&&(y.nonce=w);const f=n??document.head;return f.appendChild(y),y.sheet&&y.sheet.insertRule(`
22          [data-motion-pop-id="${s}"] {
23            position: absolute !important;
24            width: ${o}px !important;
25            height: ${p}px !important;
26            ${I}px !important;
27            ${_}px !important;
28          }
29        `),()=>{var h;(h=d.current)==null||h.removeAttribute("data-motion-pop-id"),f.contains(y)&&f.removeChild(y)}},[r]),e.jsx(Fe,{isPresent:r,childRef:d,sizeRef:x,pop:m,children:m===!1?t:c.cloneElement(t,{ref:C})})}const qe=({children:t,initial:r,isPresent:a,onExitComplete:i,custom:n,presenceAffectsLayout:m,mode:s,anchorX:d,anchorY:x,root:w})=>{const u=re(Ve),C=c.useId(),l=c.useRef(a),o=c.useRef(i);ie(()=>{l.current=a,o.current=i});let p=!0,j=c.useMemo(()=>(p=!1,{id:C,initial:r,isPresent:a,custom:n,onExitComplete:g=>{u.set(g,!0);for(const b of u.values())if(!b)return;i&&i()},register:g=>(u.set(g,!1),()=>{var b;u.delete(g),!l.current&&!u.size&&((b=o.current)==null||b.call(o))})}),[a,u,i]);return m&&p&&(j={...j}),c.useMemo(()=>{u.forEach((g,b)=>u.set(b,!1))},[a]),c.useEffect(()=>{!a&&!u.size&&i&&i()},[a]),t=e.jsx(Oe,{pop:s==="popLayout",isPresent:a,anchorX:d,anchorY:x,root:w,children:t}),e.jsx(Ce.Provider,{value:j,children:t})};function Ve(){return new Map}const M=t=>t.key||"";function Q(t){const r=[];
29return c.Children.forEach(t,a=>{c.isValidElement(a)&&r.push(a)}),r}const ee=({children:t,custom:r,initial:a=!0,onExitComplete:i,presenceAffectsLayout:n=!0,mode:m="sync",propagate:s=!1,anchorX:d="left",anchorY:x="top",root:w})=>{const[u,C]=ke(s),l=c.useMemo(()=>Q(t),[t]),o=s&&!u?[]:l.map(M),p=c.useRef(!0),j=c.useRef(l),g=re(()=>new Map),b=c.useRef(new Set),[S,k]=c.useState(l),[v,I]=c.useState(l);ie(()=>{p.current=!1,j.current=l;for(let f=0;f<v.length;f++){const h=M(v[f]);o.includes(h)?(g.delete(h),b.current.delete(h)):g.get(h)!==!0&&g.set(h,!1)}},[v,o.length,o.join("-")]);const _=[];if(l!==S){let f=[...l];for(let h=0;h<v.length;h++){const A=v[h],P=M(A);o.includes(P)||(f.splice(h,0,A),_.push(A))}return m==="wait"&&_.length&&(f=_),I(Q(f)),k(l),null}const{forceRender:y}=c.useContext(Ie);return e.jsx(e.Fragment,{children:v.map(f=>{const h=M(f),A=s&&!u?!1:l===v||o.includes(h),P=()=>{if(b.current.has(h))return;if(g.has(h))b.current.add(h),g.set(h,!0);else return;let $=!0;g.forEach(T=>{T||($=!1)}),$&&(y==null||y(),I(j.current),s&&(C==null||C()),i&&i())};return e.jsx(qe,{isPresent:A,initial:!p.current||a?void 0:!1,custom:r,presenceAffectsLayout:n,mode:m,root:w,onExitComplete:A?void 0:P,anchorX:d,anchorY:x,children:f},h)})})};var B="Progress",H=100,[Ke]=fe(B),[We,Ue]=Ke(B),oe=c.forwardRef((t,r)=>{const{__scopeProgress:a,value:i=null,max:n,getValueLabel:m=ze,...s}=t;(n||n===0)&&!te(n)&&console.error(De(`${n}`,"Progress"));const d=te(n)?n:H;i!==null&&!se(i,d)&&console.error(Be(`${i}`,"Progress"));const x=se(i,d)?i:null,w=q(x)?m(x,d):void 0;return e.jsx(We,{scope:a,value:x,max:d,children:e.jsx(ne.div,{"aria-valuemax":d,"aria-valuemin":0,"aria-valuenow":q(x)?x:void 0,"aria-valuetext":w,role:"progressbar","data-state":me(x,d),"data-value":x??void 0,"data-max":d,...s,ref:r})})});oe.displayName=B;var ce="ProgressIndicator",de=c.forwardRef((t,r)=>{const{__scopeProgress:a,...i}=t,n=Ue(ce,a);return e.jsx(ne.div,{"data-state":me(n.value,n.max),"data-value":n.value??void 0,"data-max":n.max,...i,ref:r})});de.displayName=ce;function ze(t,r){return`${Math.round(t/r*100)}%`}function me(t,r){return t==null?"indeterminate":t===r?"complete":"loading"}function q(t){return typeof t=="number"}function te(t){return q(t)&&!isNaN(t)&&t>0}function se(t,r){return q(t)&&!isNaN(t)&&t<=r&&t>=0}function De(t,r){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${H}\`.`}function Be(t,r){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${r}\`. The \`value\` prop must be:
30  - a positive number
31  - less than the value passed to \`max\` (or ${H} if no \`max\` prop is set)
32  - \`null\` or \`undefined\` if the progress is indeterminate.
33
34Defaulting to \`null\`.`}var he=oe,He=de;const xe=c.forwardRef(({className:t,value:r,...a},i)=>e.jsx(he,{ref:i,className:be("relative h-4 w-full overflow-hidden rounded-full bg-secondary",t),...a,children:e.jsx(He,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(r||0)}%)`}})}));xe.displayName=he.displayName;const Ye={fullName:"",email:"",phone:"",company:"",website:"",industry:"",growthGoal:"",monthlyAdSpend:"",currentChannel:"",hasLandingPages:"",usesUgcAiCreative:"",needsWebsite:"",painPoint:""},Je=["Generate more leads","Increase ecommerce sales","Improve website conversion","Lower CPA/CPL","Create better ad creative","Build landing pages","Improve Amazon presence","Launch paid ads","Not sure"],Xe=["$0","<$2K","$2K-$5K","$5K-$10K","$10K+"],Ze=["Meta","TikTok","Google","Amazon","LinkedIn","Organic","None"],z=["Yes","No","Not Sure"];function ue(){if(typeof window>"u")return"ssr";let t=localStorage.getItem("evkii_audit_session");return t||(t=crypto.randomUUID(),localStorage.setItem("evkii_audit_session",t)),t}const Qe=()=>e.jsxs(E.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.3},className:"relative rounded-2xl border border-white/10 bg-gradient-to-br from-white/5 to-white/[0.02] p-6 backdrop-blur-xl shadow-[0_30px_90px_-20px_rgba(255,10,145,0.35)]",children:[e.jsx("div",{className:"absolute -inset-px rounded-2xl bg-gradient-to-br from-primary/30 via-trans
34parent to-transparent opacity-50 pointer-events-none"}),e.jsxs("div",{className:"relative space-y-5",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"h-2 w-2 rounded-full bg-primary animate-pulse"}),e.jsx("span",{className:"text-xs uppercase tracking-widest text-white/60",children:"EVKII Growth Audit"})]}),e.jsx("span",{className:"text-xs text-white/40",children:"AI · Live"})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-baseline justify-between mb-2",children:[e.jsx("span",{className:"text-white/70 text-sm",children:"Overall growth score"}),e.jsxs("span",{className:"text-3xl font-bold text-white",children:["82",e.jsx("span",{className:"text-primary",children:"/100"})]})]}),e.jsx("div",{className:"h-2 rounded-full bg-white/10 overflow-hidden",children:e.jsx(E.div,{initial:{width:0},animate:{width:"82%"},transition:{duration:1.2,delay:.8},className:"h-full bg-gradient-to-r from-primary to-primary-glow"})})]}),e.jsx("div",{className:"grid grid-cols-2 gap-3",children:[{label:"Website score",v:74},{label:"Conversion gaps",v:3,suffix:" found"},{label:"Creative opportunity",v:"High"},{label:"Funnel readiness",v:68}].map((t,r)=>e.jsxs("div",{className:"rounded-xl border border-white/10 bg-black/30 p-3 min-w-0",children:[e.jsx("div",{className:"text-[12px] uppercase tracking-wider text-white/50 truncate",children:t.label}),e.jsxs("div",{className:"text-lg font-semibold text-white mt-1 truncate",children:[t.v,t.suffix||""]})]},r))}),e.jsxs("div",{className:"rounded-xl border border-primary/30 bg-primary/10 p-4",children:[e.jsx("div",{className:"text-[12px] uppercase tracking-widest text-primary mb-1",children:"Recommended package"}),e.jsx("div",{className:"text-white font-semibold",children:"Website Build + Lead Funnel + AI Creative"}),e.jsx("div",{className:"text-primary text-sm mt-2 font-mono",children:"Est. $7,500 – $15,000"})]})]})]}),G=4;function et({step:t,form:r,set:a}){const i="bg-white/5 border-white/15 text-white placeholder:text-white/30 focus-visible:ring-primary",n="text-white/80 text-sm font-medium",m="w-full h-10 rounded-md bg-white/5 border border-white/15 text-white px-3 text-sm focus:outline-none focus:ring-2 focus:ring-primary";return t===1?e.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx(N,{className:n,children:"Full name *"}),e.jsx(L,{className:i,value:r.fullName,onChange:s=>a("fullName",s.target.value),placeholder:"Jane Smith"})]}),e.jsxs("div",{children:[e.jsx(N,{className:n,children:"Work email *"}),e.jsx(L,{type:"email",className:i,value:r.email,onChange:s=>a("email",s.target.value),placeholder:"[email protected]"})]}),e.jsxs("div",{children:[e.jsx(N,{className:n,children:"Phone"}),e.jsx(L,{className:i,value:r.phone,onChange:s=>a("phone",s.target.value),placeholder:"+1 555 0100"})]}),e.jsxs("div",{children:[e.jsx(N,{className:n,children:"Company *"}),e.jsx(L,{className:i,value:r.company,onChange:s=>a("company",s.target.value),placeholder:"Acme Co"})]}),e.jsxs("div",{children:[e.jsx(N,{className:n,children:"Website URL *"}),e.jsx(L,{className:i,value:r.website,onChange:s=>a("website",s.target.value),placeholder:"acme.com"})]}),e.jsxs("div",{children:[e.jsx(N,{className:n,children:"Industry"}),e.jsx(L,{className:i,value:r.industry,onChange:s=>a("industry",s.target.value),placeholder:"Ecommerce, SaaS, Local…"})]})]}):t===2?e.jsx("div",{className:"space-y-4",children:e.jsxs("div",{children:[e.jsx(N,{className:n,children:"What's your #1 growth goal? *"}
34),e.jsxs("select",{className:m,value:r.growthGoal,onChange:s=>a("growthGoal",s.target.value),children:[e.jsx("option",{value:"",children:"Select a goal…"}),Je.map(s=>e.jsx("option",{value:s,className:"bg-black",children:s},s))]})]})}):t===3?e.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx(N,{className:n,children:"Monthly ad spend"}),e.jsxs("select",{className:m,value:r.monthlyAdSpend,onChange:s=>a("monthlyAdSpend",s.target.value),children:[e.jsx("option",{value:"",children:"Select…"}),Xe.map(s=>e.jsx("option",{className:"bg-black",children:s},s))]})]}),e.jsxs("div",{children:[e.jsx(N,{className:n,children:"Main current channel"}),e.jsxs("select",{className:m,value:r.currentChannel,onChange:s=>a("currentChannel",s.target.value),children:[e.jsx("option",{value:"",children:"Select…"}),Ze.map(s=>e.jsx("option",{className:"bg-black",children:s},s))]})]}),e.jsxs("div",{children:[e.jsx(N,{className:n,children:"Dedicated landing pages?"}),e.jsxs("select",{className:m,value:r.hasLandingPages,onChange:s=>a("hasLandingPages",s.target.value),children:[e.jsx("option",{value:"",children:"Select…"}),z.map(s=>e.jsx("option",{className:"bg-black",children:s},s))]})]}),e.jsxs("div",{children:[e.jsx(N,{className:n,children:"Using UGC or AI video creative?"}),e.jsxs("select",{className:m,value:r.usesUgcAiCreative,onChange:s=>a("usesUgcAiCreative",s.target.value),children:[e.jsx("option",{value:"",children:"Select…"}),z.map(s=>e.jsx("option",{className:"bg-black",children:s},s))]})]}),e.jsxs("div",{className:"sm:col-span-2",children:[e.jsx(N,{className:n,children:"Need a new or improved website?"}),e.jsxs("select",{className:m,value:r.needsWebsite,onChange:s=>a("needsWebsite",s.target.value),children:[e.jsx("option",{value:"",children:"Select…"}),z.map(s=>e.jsx("option",{className:"bg-black",children:s},s))]})]})]}):e.jsxs("div",{children:[e.jsx(N,{className:n,children:"What's the biggest thing holding back your growth right now?"}),e.jsx(Ne,{rows:6,className:`${i} mt-2`,value:r.painPoint,onChange:s=>a("painPoint",s.target.value),placeholder:"e.g. We get traffic from Meta but it barely converts. Our website feels outdated and our offer isn't clear."})]})}const ae=["Reviewing website positioning","Checking CTA clarity","Evaluating funnel readiness","Identifying creative gaps","Building recommended EVKII package","Estimating quote range"],tt=()=>{const[t,r]=c.useState(0);return c.useEffect(()=>{const a=setInterval(()=>r(i=>Math.min(i+1,ae.length)),900);return()=>clearInterval(a)},[]),e.jsxs("div",{className:"rounded-2xl border border-white/10 bg-white/[0.02] backdrop-blur-xl p-8 sm:p-12",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx(Re,{className:"h-6 w-6 text-primary animate-spin"}),e.jsx("h3",{className:"text-xl sm:text-2xl font-semibold text-white",children:"Analyzing your website, offer, funnel, creative, and conversion gaps…"})]}),e.jsx("ul",{className:"space-y-3",children:ae.map((a,i)=>e.jsxs(E.li,{initial:{opacity:.3,x:-8},animate:{opacity:i<t?1:.4,x:0},className:"flex items-center gap-3 text-white/80",children:[i<t?e.jsx(D,{className:"h-5 w-5 text-primary"}):e.jsx("div",{className:"h-5 w-5 rounded-full border-2 border-white/20"}),e.jsx("span",{children:a})]},a))})]})},F=({label:t,value:r})=>e.jsxs("div",{className:"rounded-xl border border-white/10 bg-white/[0.03] p-4",children:[e.jsx("div",{className:"text-[12px] uppercase tracking-widest text-white/50 mb-2",children:t}),e.jsxs("div",{className:"flex items-baseline gap-2 mb-2",children:[e.jsx("span",{className:"text-3xl font-bold text-white",children:r}),e.jsx("span",{className:"text-white/40 text-sm",children:"/100"})]}),e.jsx("div",{className:"h-1.5 rounded-full bg-white/10 overflow-hidden",children:e.jsx(E.div,{initial:{width:0},animate:{width:`${r}%`},transition:{duration:1},className:"h-full bg-gradient-to-r from-primary to-primary-glow"})})]}),st=({result:t})=>e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-primary/40 bg-primary/10 px-4 py-1.5 text-xs uppercase tracking-widest text-primary mb-4",children:[e.jsx(O,{className:"h-3.5 w-3.5"})," Your AI Growth Audit"]}),e.jsxs("div",{className:"text-7xl sm:text-8xl font-bold text-white",children:[t.scores.overall,e.jsx("span",{className:"text-primary",children:"/100"})]}),e.jsx("div",{className:"text-white/60 mt-2",children:"Overall Growth Score"}),t.headlineInsight&&e.jsx("p",{className:"text-white/80 max-w-2xl mx-auto mt-4 text-lg",children:t.headlineInsight})]}),e.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[e.jsx(F,{label:"Website conversion",value:t.scores.website_conversion}),e.jsx(F,{label:"Offer clarity",value:t.scores.offer_clarity}),e.jsx(F,{label:"Creative strength",value:t.scores.creative_strength}),e.jsx(F,{label:"Funnel readiness",value:t.scores.funnel_readiness})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"rounded-2xl border border-white/10 bg-white/[0.03] p-6",children:[e.jsxs("h3",{className:"text-white font-semibold mb-4 flex items-center gap-2",children:[e.jsx(Te,{className:"h-5 w-5 text-primary"})," Top growth leaks"]}),e.jsx("ul",{className:"space-y-2",children:t.growthLeaks.slice(0,3).map((r,a)=>e.jsxs("li",{className:"text-white/80 flex gap-2",children:[e.jsxs("span",{className:"text-primary",children:[a+1,"."]}
34),r]},a))})]}),e.jsxs("div",{className:"rounded-2xl border border-white/10 bg-white/[0.03] p-6",children:[e.jsxs("h3",{className:"text-white font-semibold mb-4 flex items-center gap-2",children:[e.jsx(Ee,{className:"h-5 w-5 text-primary"})," Top recommended fixes"]}),e.jsx("ul",{className:"space-y-2",children:t.recommendedFixes.slice(0,3).map((r,a)=>e.jsxs("li",{className:"text-white/80 flex gap-2",children:[e.jsx(D,{className:"h-5 w-5 text-primary shrink-0 mt-0.5"}),r]},a))})]})]}),e.jsxs("div",{className:"rounded-2xl border border-primary/30 bg-gradient-to-br from-primary/10 to-transparent p-6 sm:p-8",children:[e.jsx("div",{className:"text-[12px] uppercase tracking-widest text-primary mb-2",children:"Recommended EVKII services"}),e.jsx("ul",{className:"grid sm:grid-cols-2 gap-2 mb-6",children:t.recommendedServices.map((r,a)=>e.jsxs("li",{className:"text-white flex items-start gap-2",children:[e.jsx(D,{className:"h-5 w-5 text-primary shrink-0 mt-0.5"}),r]},a))}),e.jsxs("div",{className:"border-t border-white/10 pt-6",children:[e.jsx("div",{className:"text-[12px] uppercase tracking-widest text-white/50 mb-2",children:"Estimated quote range"}),e.jsxs("div",{className:"text-3xl sm:text-4xl font-bold text-white font-mono",children:["$",t.quoteRange.min.toLocaleString()," – $",t.quoteRange.max.toLocaleString()]}),e.jsx("div",{className:"text-white/60 text-sm mt-1",children:t.quoteRange.label}),e.jsx("p",{className:"text-white/50 text-xs mt-4 italic",children:"Your quote is an estimated range based on your audit inputs. Final scope and pricing are confirmed after a strategy call."})]})]})]}),at=({auditContext:t})=>{const[r,a]=c.useState(!1),[i,n]=c.useState([{role:"assistant",content:"Hey — I'm the **EVKII Growth Assistant**. I can recommend the right package, estimate pricing ranges, or book you a free strategy call. What would you like help with?"}]),[m,s]=c.useState(""),[d,x]=c.useState(!1),w=c.useRef(null),u=c.useRef(!1);c.useEffect(()=>{var o;(o=w.current)==null||o.scrollTo({top:w.current.scrollHeight,behavior:"smooth"})},[i]),c.useEffect(()=>{const o=p=>{p.clientY<=0&&!u.current&&!r&&(u.current=!0,a(!0),n(j=>[...j,{role:"assistant",content:"Before you go — want a free AI growth recommendation for your business?"}]))};return document.addEventListener("mouseout",o),()=>document.removeEventListener("mouseout",o)},[r]);const C=async o=>{var j,g,b;if(!o.trim()||d)return;const p=[...i,{role:"user",content:o}];n(p),s(""),x(!0),n(S=>[...S,{role:"assistant",content:""}]);try{const k=await fetch("https://yayhatpgnkanlmyursbr.supabase.co/functions/v1/growth-audit-chat",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer sb_publishable_URw_3sNNPtraptvrqSJqhA_87R8GUu6",apikey:"sb_publishable_URw_3sNNPtraptvrqSJqhA_87R8GUu6"},body:JSON.stringify({sessionId:ue(),messages:p,auditContext:t})});if(!k.ok||!k.body){const f=await k.text().catch(()=>"");throw new Error(f||`Chat error ${k.status}`)}const v=k.body.getReader(),I=new TextDecoder;let _="",y="";for(;;){const{done:f,value:h}=await v.read();if(f)break;_+=I.decode(h,{stream:!0});const A=_.split(`
35`);_=A.pop()||"";for(const P of A){if(!P.startsWith("data: "))continue;const $=P.slice(6).trim();if($!=="[DONE]")try{const T=JSON.parse($),Y=(b=(g=(j=T==null?void 0:T.choices)==null?void 0:j[0])==null?void 0:g.delta)==null?void 0:b.content;Y&&(y+=Y,n(pe=>{const K=[...pe];return K[K.length-1]={role:"assistant",content:y},K}))}catch{}}}}catch(S){const k=S instanceof Error?S.message:"Chat failed";n(v=>{const I=[...v];return I[I.length-1]={role:"assistant",content:`Sorry — I hit an error: ${k}. Try again or [request a teardown](/3-fix-teardown).`},I}),le.error("Chat error")}finally{x(!1)}},l=["What package is best for my business?","Can EVKII improve my website?","How much would this cost?","Book me a free strategy call"];return e.jsxs(e.Fragment,{children:[e.jsx(ee,{children:!r&&e.jsxs(E.button,{initial:{scale:0,opacity:0},animate:{scale:1,opacity:1},exit:{scale:0,opacity:0},onClick:()=>a(!0),className:"fixed bottom-4 right-4 z-50 group flex items-center gap-2 rounded-full bg-primary text-primary-foreground pl-3 pr-4 py-2.5 sm:pl-4 sm:pr-5 sm:py-3 shadow-[0_10px_40px_-10px_rgba(255,10,145,0.7)] hover:shadow-[0_15px_50px_-10px_rgba(255,10,145,0.9)] transition-shadow",children:[e.jsx($e,{className:"h-5 w-5"}),e.jsx("span",{className:"text-xs sm:text-sm font-semibold",children:"Ask Assistant"})]})}),e.jsx(ee,{children:r&&e.jsxs(E.div,{initial:{opacity:0,y:30,scale:.95}
35,animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:30,scale:.95},className:"fixed bottom-5 right-5 z-50 w-[calc(100vw-2.5rem)] sm:w-[400px] h-[600px] max-h-[80vh] rounded-2xl border border-white/15 bg-black/95 backdrop-blur-xl shadow-[0_30px_80px_-20px_rgba(255,10,145,0.5)] flex flex-col overflow-hidden",children:[e.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-white/10 bg-gradient-to-r from-primary/20 to-transparent",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"h-8 w-8 rounded-full bg-primary flex items-center justify-center",children:e.jsx(O,{className:"h-4 w-4 text-primary-foreground"})}),e.jsxs("div",{children:[e.jsx("div",{className:"text-white font-semibold text-sm",children:"EVKII Growth Assistant"}),e.jsxs("div",{className:"text-white/50 text-[12px] flex items-center gap-1",children:[e.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-green-400 animate-pulse"})," AI · Online"]})]})]}),e.jsx("button",{onClick:()=>a(!1),className:"text-white/60 hover:text-white",children:e.jsx(ye,{className:"h-5 w-5"})})]}),e.jsx("div",{ref:w,className:"flex-1 overflow-y-auto p-4 space-y-3",children:i.map((o,p)=>e.jsx("div",{className:o.role==="user"?"flex justify-end":"",children:e.jsx("div",{className:o.role==="user"?"bg-primary text-primary-foreground rounded-2xl rounded-tr-sm px-4 py-2 max-w-[85%] text-sm":"text-white/90 text-sm leading-relaxed max-w-[95%]",children:o.content||(d&&p===i.length-1?e.jsxs("span",{className:"inline-flex gap-1",children:[e.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-primary animate-pulse"}),e.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-primary animate-pulse [animation-delay:150ms]"}),e.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-primary animate-pulse [animation-delay:300ms]"})]}):null)})},p))}),i.length<=2&&e.jsx("div",{className:"px-3 pb-2 flex gap-2 flex-wrap",children:l.map(o=>e.jsx("button",{onClick:()=>C(o),className:"text-xs text-white/70 border border-white/15 hover:border-primary/50 hover:text-white rounded-full px-3 py-1.5 transition-colors",children:o},o))}),e.jsxs("form",{onSubmit:o=>{o.preventDefault(),C(m)},className:"border-t border-white/10 p-3 flex gap-2",children:[e.jsx("input",{value:m,onChange:o=>s(o.target.value),placeholder:"Ask about packages, pricing, or your audit…",className:"flex-1 bg-white/5 border border-white/15 rounded-full px-4 py-2 text-sm text-white placeholder:text-white/30 focus:outline-none focus:ring-2 focus:ring-primary"}),e.jsx("button",{type:"submit",disabled:d||!m.trim(),className:"h-9 w-9 rounded-full bg-primary text-primary-foreground flex items-center justify-center disabled:opacity-50",children:e.jsx(Pe,{className:"h-4 w-4"})})]})]})})]})},gt=()=>{const[t,r]=c.useState(1),[a,i]=c.useState(Ye),[n,m]=c.useState("form"),[s,d]=c.useState(null),x=c.useRef(null),w=(l,o)=>i(p=>({...p,[l]:o})),u=c.useMemo(()=>t===1?a.fullName&&/\S+@\S+\.\S+/.test(a.email)&&a.company&&a.website:t===2?!!a.growthGoal:!0,[t,a]),C=async()=>{m("loading"),setTimeout(()=>{var l;return(l=x.current)==null?void 0:l.scrollIntoView({behavior:"smooth",block:"start"})},50);try{const{data:l,error:o}=await ve.functions.invoke("generate-growth-audit",{body:{sessionId:ue(),...a}});if(o)throw o;if(l!=null&&l.error)throw new Error(l.error);d(l),m("result"),je()}catch(l){const o=l instanceof Error?l.message:"Audit failed";le.error(o),m("form")}};return e.jsxs("div",{className:"dark min-h-screen bg-[hsl(0_0%_4%)] text-white",children:[e.jsx(we,{title:"Free AI Growth Audit + Custom EVKII Quote",description:"Free AI-powered growth audit of your website, ads, SEO, and funnel — surfacing the highest-leverage fixes for CPA, conversion, and revenue.",path:"/ai-growth-audit"}),e.jsxs("div",{className:"fixed inset-0 pointer-events-none",children:[e.jsx("div",{className:"absolute inset-0 [background:radial-gradient(60%_50%_at_50%_0%,rgba(255,10,145,0.18),transparent_70%)]"}),e.jsx("div",{className:"absolute inset-0 [background:radial-gradient(40%_40%_at_80%_60%,rgba(255,10,145,0.10),transparent_70%)]"})]}),e.jsx("section",{className:"relative px-5 sm:px-8 pt-10 sm:pt-24 pb-10 sm:pb-12 max-w-7xl mx-auto",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-8 lg:gap-16 items-center",children:[e.jsxs(E.div,{initial:{opacity:0,y:20}
35,animate:{opacity:1,y:0},transition:{duration:.7},children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-primary/40 bg-primary/10 px-3 py-1 text-xs uppercase tracking-widest text-primary mb-5",children:[e.jsx(O,{className:"h-3.5 w-3.5"})," AI Growth Audit · Free"]}),e.jsxs("h1",{className:"text-4xl sm:text-5xl lg:text-6xl font-bold tracking-tight leading-[1.05]",children:["Get a Free AI Growth Audit ",e.jsx("span",{className:"text-primary",children:"+ Custom EVKII Quote"})]}),e.jsx("p",{className:"mt-5 text-lg text-white/70 max-w-xl",children:"Enter your website and goals. Our AI reviews your funnel, offer, creative, and conversion gaps — then recommends the EVKII services most likely to improve leads, sales, and acquisition costs."}),e.jsxs("div",{className:"mt-7 flex flex-wrap gap-3",children:[e.jsxs(R,{size:"lg",className:"bg-primary hover:bg-primary-glow text-primary-foreground shadow-[0_10px_30px_-10px_rgba(255,10,145,0.7)]",onClick:()=>{var l;return(l=document.getElementById("audit-form"))==null?void 0:l.scrollIntoView({behavior:"smooth"})},children:["Start My Free Audit ",e.jsx(J,{className:"h-4 w-4"})]}),e.jsx(R,{asChild:!0,size:"lg",variant:"outline",className:"border-white/20 bg-white/5 text-white hover:bg-white/10 hover:text-white",children:e.jsx(U,{to:"/3-fix-teardown.html",children:"Request a Free 15-Minute Teardown"})})]}),e.jsxs("p",{className:"mt-5 text-sm text-white/50 flex items-center gap-2",children:[e.jsx(Se,{className:"h-4 w-4 text-primary"})," Built for brands that need better websites, better creative, and more qualified leads."]})]}),e.jsx(Qe,{})]})}),e.jsxs("section",{className:"relative px-5 sm:px-8 py-10 sm:py-16 max-w-7xl mx-auto",children:[e.jsxs("div",{className:"text-center mb-8 sm:mb-12",children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold",children:"How it works"}),e.jsx("p",{className:"text-white/60 mt-3",children:"Three steps. Under 90 seconds."})]}),e.jsx("div",{className:"grid sm:grid-cols-2 md:grid-cols-3 gap-4 sm:gap-5",children:[{icon:_e,n:"01",t:"Enter your website",d:"Tell us about your business, goal, and current marketing setup."},{icon:Ae,n:"02",t:"Get an AI growth audit",d:"Our AI scores your funnel, offer, creative, and conversion readiness."},{icon:Le,n:"03",t:"Get a recommended package + quote",d:"Receive the EVKII services most likely to move your numbers — with an estimated range."}].map((l,o)=>e.jsxs("div",{className:"relative rounded-2xl border border-white/10 bg-white/[0.03] backdrop-blur-xl p-6 hover:border-primary/40 transition-colors",children:[e.jsx("div",{className:"absolute top-4 right-5 font-mono text-xs text-white/30",children:l.n}),e.jsx("div",{className:"h-11 w-11 rounded-xl bg-primary/15 border border-primary/30 flex items-center justify-center mb-4",children:e.jsx(l.icon,{className:"h-5 w-5 text-primary"})}),e.jsx("h3",{className:"text-lg font-semibold mb-1",children:l.t}),e.jsx("p",{className:"text-white/60 text-sm",children:l.d})]},o))})]}),e.jsxs("section",{id:"audit-form",ref:x,className:"relative px-5 sm:px-8 py-10 sm:py-16 max-w-4xl mx-auto",children:[n==="form"&&e.jsxs("div",{className:"rounded-2xl border border-white/10 bg-white/[0.03] backdrop-blur-xl p-5 sm:p-10",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2 text-sm",children:[e.jsxs("span",{className:"text-white/60",children:["Step ",t," of ",G]}),e.jsxs("span",{className:"text-primary font-mono",children:[Math.round(t/G*100),"%"]})]}),e.jsx(xe,{value:t/G*100,className:"h-1 bg-white/10 mb-8 [&>div]:bg-primary"}),e.jsxs("h2",{className:"text-2xl sm:text-3xl font-bold mb-2",children:[t===1&&"Business info",t===2&&"Your #1 growth goal",t===3&&"Current marketing",t===4&&"Biggest growth blocker"]}),e.jsxs("p",{className:"text-white/60 mb-8 text-sm",children:[t===1&&"Where can we send your audit and recommended quote?",t===2&&"Pick the outcome that matters most right now.",t===3&&"Helps us scope the right package for you.",t===4&&"Be honest — this drives the AI's recommendations."]}),e.jsx(et,{step:t,form:a,set:w}),e.jsxs("div",{className:"flex flex-col-reverse sm:flex-row justify-between gap-3 mt-10 pt-6 border-t border-white/10",children:[e.jsx(R,{variant:"outline",disabled:t===1,onClick:()=>r(l=>l-1),className:"border-white/20 bg-transparent text-white hover:bg-white/10 hover:text-white disabled:opacity-30",children:"Back"}),t<G?e.jsxs(R,{disabled:!u,onClick:()=>r(l=>l+1),className:"bg-primary hover:bg-primary-glow text-primary-foreground",children:["Continue ",e.jsx(J,{className:"h-4 w-4"})]}):e.jsxs(R,{onClick:C,className:"bg-primary hover:bg-primary-glow text-primary-foreground shadow-[0_10px_30px_-10px_rgba(255,10,145,0.7)]",children:["Generate My AI Growth Audit ",e.jsx(O,{className:"h-4 w-4"})]})]})]}),n==="loading"&&e.jsx(tt,{}),n==="result"&&s&&e.jsxs(e.Fragment,{children:[e.jsx(st,{result:s}),e.jsxs("div",{className:"mt-12 rounded-2xl border border-primary/30 bg-gradient-to-br from-primary/15 via-primary/5 to-transparent p-8 sm:p-12 text-center",children:[e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold mb-3",children:"Your AI Growth Plan Is Ready"}),e.jsx("p",{className:"text-white/70 max-w-2xl mx-auto mb-7",children:"We'll review your audit, confirm your highest-impact opportunities, and recommend the fastest path to more leads, sales, or booked calls."}),e.jsx(R,{asChild:!0,size:"lg",className:"bg-primary hover:bg-primary-glow text-primary-foreground shadow-[0_10px_30px_-10px_rgba(255,10,145,0.7)]",children:e.jsxs(U,{to:"/3-fix-teardown.html",children:[e.jsx(X,{className:"h-4 w-4"})," Request Your Free 15-Minute Teardown"]})}),e.jsx("p",{className:"text-white/40 text-xs mt-4",children:"This AI audit is an initial diagnostic. Final scope and pricing are confirmed on the call."})]})]})]}),n!=="result"&&e.jsx("section",{className:"relative px-5 sm:px-8 py-16 max-w-5xl mx-auto",children:e.jsxs("div",{className:"rounded-2xl border border-white/10 bg-white/[0.02] backdrop-blur-xl p-8 sm:p-12 text-center",children:[e.jsx("h2",{className:"text-2xl sm:text-3xl font-bold mb-3",children:"Prefer to skip the audit?"}),e.jsx("p",{className:"text-white/60 mb-6",children:"Jump straight to a free 15-minute 3-Fix Teardown with Heath."}),e.jsx(R,{asChild:!0,size:"lg",variant:"outline",className:"border-white/20 bg-white/5 text-white hover:bg-white/10 hover:text-white",children:e.jsxs(U,{to:"/3-fix-teardown.html",children:[e.jsx(X,{className:"h-4 w-4"})," Request My Free Teardown"]})})]})}),e.jsx(at,{auditContext:s?{auditId:s.auditId,scores:s.scores,services:s.recommendedServices,quote:s.quoteRange}:void 0}),e.jsxs("footer",{className:"text-center text-white/40 text-xs py-10",children:["© ",new Date().getFullYear()," EVKII · AI Growth Audit is an initial diagnostic. Final scope confirmed on call."]})]})};export{gt as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.