1import{w as i,j as d,q as e,k as u,r as p}from"./index-DOuuq3mX.js";import{H as h}from"./Header-DaIARs16.js";import{F as f}from"./Footer-B0RAD7lq.js";import{F as j}from"./Faq-Cf4GhQvx.js";import{S as y}from"./search-ClI0O9lr.js";import{P as b}from"./phone-Dnwrshok.js";import{A as v}from"./arrow-right-Cmwt3YCM.js";import"./chevron-down-G6w2TT4J.js";function g({children:t}){return e.jsx("span",{className:"inline-block text-xs font-semibold uppercase tracking-[0.22em] text-blue",children:t})}function z(){const[t,o]=i.useState(""),a=i.useMemo(()=>{const s=t.toLowerCase().split(/\s+/).filter(Boolean);return d.map(r=>{if(s.length===0)return r;const m=r.items.filter(l=>{const c=`${l.q} ${l.a}`.toLowerCase();return s.every(x=>c.includes(x))});return{...r,items:m}}).filter(r=>r.items.length>0)},[t]),n=a.reduce((s,r)=>s+r.items.length,0);return e.jsxs("div",{id:"top",className:"overflow-x-clip",children:[e.jsx(h,{}),e.jsx("main",{children:e.jsx("section",{className:"bg-canvas",children:e.jsxs("div",{className:"mx-auto max-w-3xl px-5 py-20 sm:px-8 lg:py-24",children:[e.jsxs("div",{className:"text-center",children:[e.jsx(g,{children:"Common questions"}),e.jsx("h1",{className:"mt-4 text-4xl text-navy sm:text-5xl",children:"Frequently asked questions"}),e.jsx("p",{className:"mt-5 text-lg leading-relaxed text-navy-soft",children:"The questions we hear most â answered honestly. Search by keyword to jump straight to what you need."})]}),e.jsxs("div",{className:"relative mt-10",children:[e.jsx(y,{size:18,className:"pointer-events-none absolute left-4 top-1/2 -translate-y-1/2 text-navy-faint"}),e.jsx("input",{type:"search",value:t,onChange:s=>o(s.target.value),placeholder:"Search questionsâ¦","aria-label":"Search frequently asked questions",className:"w-full rounded-full border border-line bg-paper py-3.5 pl-11 pr-4 text-navy placeholder:text-navy-faint focus:border-blue focus:outline-none focus:ring-2 focus:ring-blue/30"})]}),e.jsx("p",{className:"mt-4 text-sm text-navy-faint",children:t.trim()?`${n} ${n===1?"result":"results"} for â${t.trim()}â`:`${u.length} questions`}),e.jsx("div",{className:"mt-6",children:a.length>0?e.jsx("div",{className:"space-y-12",children:a.map(s=>e.jsxs("div",{children:[e.jsx("h2",{className:"mb-4 text-xs font-semibold uppercase tracking-[0.22em] text-blue",children:s.label}),e.jsx(j,{items:s.items})]},s.label))}):e.jsxs("div",{className:"rounded-2xl border border-line bg-paper px-6 py-12 text-center",children:[e.jsxs("p",{className:"font-display text-lg font-medium text-navy",children:["No questions match â",t.trim(),"â."]}),e.jsx("p",{className:"mt-2 text-navy-soft",children:"Try a different keyword, or ask us directly on a quick call."})]})}),e.jsxs("div",{className:"mt-12 flex flex-col items-start gap-6 rounded-2xl border border-line bg-mist px-6 py-6 sm:flex-row sm:items-center sm:justify-between sm:px-8",children:[e.jsxs("div",{className:"max-w-md",children:[e.jsx("p",{className:"font-display text-lg font-medium text-navy",children:"Still not sure? Letâs talk."}),e.jsx("p",{className:"mt-1.5 text-navy-soft",children:"15 minutes with someone who knows your industry. No pitch â just honest answers about whether cirQQles is the right fit for your business."})]}),e.jsxs("a",{href:p.discoverCall,className:"inline-flex shrink-0 items-center justify-center gap-2 rounded-full bg-blue px-7 py-3.5 text-sm font-semibold text-paper transition-colors hover:bg-blue-deep",children:[e.jsx(b,{size:16}),"Book a discovery call"]})]}),e.jsx("div",{className:"mt-10 text-center",children:e.jsxs("a",{href:"/",className:"inline-flex items-center gap-1.5 font-semibold text-blue underline-offset-4 hover:underline",children:["Back to homepage",e.jsx(v,{size:16})]})})]})})}),e.jsx(f,{})]})}export{z as component};
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.