/* eslint-disable */
// Single source of truth for all FAQs.
// Each FAQ has:
//   id, stable string for anchor links
//   cat, aggregator category (for /faqs page)
//   pages, which pages this FAQ shows up on
//   q, a, question & answer

const FAQ_CATEGORIES = [
  { key: "about",            label: "About Intelligence Assist" },
  { key: "getting-started",  label: "Getting started" },
  { key: "why-ai",           label: "Why AI?" },
  { key: "services",         label: "Our services" },
  { key: "pricing",          label: "Pricing" },
  { key: "security",         label: "Security & Privacy" },
  { key: "tools",            label: "Tools & implementation" },
];

const FAQS = [
  // ---------- ABOUT ----------
  {
    id: "story", cat: "about", pages: ["about"],
    q: "What's the story behind Intelligence Assist?",
    a: "Intelligence Assist was born from Janey's personal experience. Janey's parents were small business owners who were eager to adopt new technologies but often struggled to find the right guidance. Janey realised that while many tech advancements could be easily integrated into existing business models, AI presents a unique challenge, it requires a more integrative approach, which can be complex for small businesses to navigate on their own."
  },
  {
    id: "what-sets-apart", cat: "about", pages: ["about"],
    q: "What sets Intelligence Assist apart from other AI consultancies?",
    a: "We're not just AI specialists or prompt engineers, we're passionate process people. Our approach is simple: we talk, understand, identify, and optimise. We engage in meaningful conversations with business operators, understand their models, identify areas for efficiency, and optimise processes through adaptive AI solutions."
  },
  {
    id: "team", cat: "about", pages: ["about"],
    q: "Can you tell me about the team?",
    a: "Janey Treleaven, founder and CEO, brings over two decades of experience across financial services, technology and payments. Issey Stevens leads AI Solutions Engineering. The rest of the team covers AI optimisation, engineering, marketing and CX, and project coordination, each member bringing unique skills that contribute to our holistic approach to AI implementation."
  },
  {
    id: "ai-replacing-jobs", cat: "about", pages: ["about"],
    q: "I'm worried about AI replacing jobs. How do you address this concern?",
    a: "We're dedicated to easing the fear of AI. Our goal is to empower businesses to stay competitive without fearing technological advancement or job displacement. We see AI as a tool to enhance human capabilities, not replace them."
  },
  {
    id: "vision", cat: "about", pages: ["about"],
    q: "What's your vision for the future of small businesses and AI?",
    a: "We envision a future where AI is not just accessible, but an indispensable tool for small businesses to compete, succeed and flourish. We're working towards a thriving, AI-powered small business ecosystem in Australia, where entrepreneurs can leverage AI to make data-driven decisions, automate processes and deliver unparalleled customer experiences."
  },

  // ---------- GETTING STARTED ----------
  {
    id: "where-to-start", cat: "getting-started", pages: ["services", "blueprint"],
    q: "I'm interested in AI, but I'm not sure where to start. How can Intelligence Assist help?",
    a: "Start with an AI Blueprint, a structured engagement that maps your operations, scores your AI readiness, and identifies prioritised AI opportunities. Most clients begin here. It's the lowest-risk way to figure out what's actually worth doing."
  },
  {
    id: "blueprint-deliverables", cat: "getting-started", pages: ["blueprint"],
    q: "What do I walk away with from a Blueprint?",
    a: "A detailed audit report covering your operations, a map of your current digital tools, at least 6 actionable AI adoption recommendations, and a roadmap walkthrough to help prioritise your AI journey. You also leave with a short \"future state\" walkthrough you can share internally."
  },
  {
    id: "ready-for-ai", cat: "getting-started", pages: ["blueprint", "services"],
    q: "How do I know if my business is ready for AI?",
    a: "Every business can benefit from AI in some way, regardless of size or industry. We start by assessing your current processes, challenges and goals to determine where AI can have the most impact. Even if you're just starting out, there are likely areas where AI can streamline operations or improve decision-making. The Blueprint engagement is built for exactly this."
  },
  {
    id: "technical-knowledge", cat: "getting-started", pages: ["services"],
    q: "Do I need any technical knowledge to work with Intelligence Assist?",
    a: "Not at all! We specialise in making AI accessible to all businesses, regardless of their technical expertise. Our team will guide you through every step of the process, explaining concepts in plain language and providing all the support you need."
  },

  // ---------- WHY AI ----------
  {
    id: "why-consider-ai", cat: "why-ai", pages: ["blueprint"],
    q: "Why should my small business consider adopting AI?",
    a: "AI offers numerous benefits for small businesses. It can help you automate repetitive tasks, enhance decision-making through data analysis, improve customer experiences, and even create new revenue streams. By leveraging AI, you can compete more effectively with larger companies and free up time to focus on strategic growth."
  },
  {
    id: "improve-efficiency", cat: "why-ai", pages: [],
    q: "How can AI improve my business's efficiency?",
    a: "AI can significantly boost efficiency by automating routine tasks like data entry, scheduling, and basic customer inquiries. This allows your team to focus on more complex, value-adding activities. Additionally, AI can process and analyse large amounts of data quickly, providing insights that can help streamline your operations."
  },
  {
    id: "better-decisions", cat: "why-ai", pages: [],
    q: "Can AI really help me make better business decisions?",
    a: "Definitely. AI-powered analytics can process vast amounts of data to provide actionable insights. This can help you make more informed decisions about inventory management, pricing strategies, market trends, and more. It's like having a powerful business analyst working for you 24/7."
  },
  {
    id: "understand-customers", cat: "why-ai", pages: [],
    q: "How can AI help me understand my customers better?",
    a: "AI excels at analysing customer data to uncover patterns and insights. It can help you understand customer preferences, predict buying behaviours, and personalise your marketing efforts. This deeper understanding can lead to improved customer satisfaction and loyalty."
  },
  {
    id: "stay-competitive", cat: "why-ai", pages: [],
    q: "How can AI help me stay competitive in my industry?",
    a: "AI can give you a competitive edge by helping you operate more efficiently, make data-driven decisions, and provide better customer experiences. It can also help you identify new opportunities and adapt quickly to market changes. In today's fast-paced business environment, AI is becoming increasingly crucial for staying competitive."
  },

  // ---------- OUR SERVICES ----------
  {
    id: "approach", cat: "services", pages: ["services", "how-we-work"],
    q: "What's your approach to helping small businesses adopt AI?",
    a: "Our work is organised across three pillars, Strategy, Foundations and Build. Strategy starts with an AI Blueprint to figure out what's worth doing. Foundations cover AI Literacy (your people), AI Setup (your tools) and AI Governance (your rules), getting your team, your toolset, and your guardrails in place. Build is where we implement, either as Fixed-Scope Builds (productized, fixed scope) or Custom Builds (bespoke). We engage either through per-project Targeted AI Initiatives or an ongoing AI Partnership."
  },
  {
    id: "right-solution", cat: "services", pages: ["services", "build"],
    q: "How do you ensure the AI solutions are right for my specific business?",
    a: "We take a personalised approach throughout our process. We start by thoroughly understanding your business model and goals, then tailor our recommendations and implementations to your specific needs and industry context. No one-size-fits-all."
  },
  {
    id: "ongoing-support", cat: "services", pages: ["how-we-work", "build", "quick-wins"],
    q: "Do you offer ongoing support after implementation?",
    a: "Yes. Ongoing support comes through an AI Partnership, a simple monthly arrangement where we stay involved, refining and extending your AI as your business grows. If you'd rather keep things contained, Targeted AI Initiatives let you take on one defined project at a time instead."
  },
  {
    id: "timeline", cat: "services", pages: ["how-we-work", "blueprint"],
    q: "How long does the whole process take?",
    a: "It depends on the engagement. An AI Blueprint is a focused, structured piece of work; Fixed-Scope Builds are deliberately small and self-contained; Custom Builds and ongoing optimisation are larger and paced to your needs. We confirm the timing for each once we've scoped it, as gradually or as quickly as you're comfortable with."
  },
  {
    id: "issues-after-launch", cat: "services", pages: ["how-we-work"],
    q: "What if I encounter issues with the AI tools after launch?",
    a: "We provide ongoing support and maintenance to ensure your AI tools keep running smoothly. If you encounter any problems, we'll be there to help you resolve them promptly, either as part of a Retainer engagement or an AIO Subscription."
  },

  // ---------- PRICING ----------
  {
    id: "cost-to-start", cat: "pricing", pages: ["contact"],
    q: "How much does it cost to get started with Intelligence Assist?",
    a: "An initial 30-minute scoping call is complimentary, that's where we figure out whether we're a fit and what shape engagement makes sense. From there, all pricing is shared in conversation so we can match it to your scope."
  },
  {
    id: "other-service-costs", cat: "pricing", pages: ["contact"],
    q: "What about the costs for your other services?",
    a: "Our pricing is flexible and tailored to your needs. AI Blueprint engagements have a fixed price we share on the scoping call. Fixed-Scope Builds are productized with fixed pricing per build. Custom Builds, Retainers and AIO Subscriptions are custom-quoted based on your specific AI requirements and the scope of implementation."
  },
  {
    id: "hidden-fees", cat: "pricing", pages: ["contact", "quick-wins"],
    q: "Are there any hidden fees or long-term contracts?",
    a: "Transparency is key for us. We provide a clear, detailed cost breakdown before you make any commitments. There are no hidden fees, and our contract terms are flexible to suit your business needs."
  },
  {
    id: "value-for-money", cat: "pricing", pages: ["contact"],
    q: "How do you ensure I'm getting value for money?",
    a: "We're committed to your ROI. Every AI investment we recommend comes with a strong business case. We work with various tool providers to secure the best pricing for our clients, ensuring the benefits of AI far outweigh the costs."
  },
  {
    id: "payment-plans", cat: "pricing", pages: ["contact", "how-we-work"],
    q: "Do you offer any payment plans or financing options?",
    a: "While we don't currently offer financing directly, we're happy to discuss flexible payment options that work for your business. Our goal is to make AI accessible to small businesses, so we're always open to finding solutions that fit your budget."
  },

  // ---------- SECURITY & PRIVACY ----------
  {
    id: "data-security", cat: "security", pages: ["governance"],
    q: "How do you ensure the security of my business data when using AI tools?",
    a: "We take data security very seriously. All AI solutions we implement adhere to industry best practices for data protection. We use encryption, secure cloud storage, and access controls to safeguard your information. We also ensure compliance with relevant data protection regulations to give you peace of mind."
  },
  {
    id: "third-parties", cat: "security", pages: ["governance"],
    q: "Will my business information be shared with third parties?",
    a: "Absolutely not without your explicit consent. We treat your business information as strictly confidential. Any data used for AI training or analysis is anonymised and aggregated to protect your privacy. We're here to help your business, not to share your secrets."
  },
  {
    id: "sensitive-customer-data", cat: "security", pages: ["governance"],
    q: "How do you handle sensitive customer data when implementing AI solutions?",
    a: "We follow a 'privacy by design' approach. This means we consider data protection from the very beginning of any AI implementation. We'll work with you to identify sensitive data and implement appropriate safeguards, such as data minimisation and pseudonymisation techniques."
  },
  {
    id: "au-privacy-law", cat: "security", pages: ["governance"],
    q: "Are your AI solutions compliant with Australian privacy laws?",
    a: "Yes, we ensure all our AI solutions comply with Australian privacy laws, including the Privacy Act 1988 and the Australian Privacy Principles. We stay up-to-date with any changes in legislation and adjust our practices accordingly to keep your business compliant."
  },

  // ---------- TOOLS & IMPLEMENTATION ----------
  {
    id: "what-tools", cat: "tools", pages: ["toolbox"],
    q: "What kind of AI tools do you recommend?",
    a: "We're tool-agnostic. Our AI Toolbox lists vetted options across agentic AI, conversational AI, data AI, knowledge AI and task AI. We'll help you find the right combination to meet your specific business needs, not push you toward a particular vendor."
  },
  {
    id: "tools-work-for-business", cat: "tools", pages: ["toolbox", "build"],
    q: "How do you ensure the AI tools actually work for my business?",
    a: "We take a personalised approach, starting with a thorough audit of your business. We identify areas where AI can make the biggest impact and then create a customised implementation plan. It's not about forcing complex technology on you, it's about finding practical solutions that genuinely benefit your business."
  },
  {
    id: "time-to-results", cat: "tools", pages: ["quick-wins", "build"],
    q: "How long until I see results from these AI tools?",
    a: "It depends on the build. Fixed-Scope Builds are deliberately small and self-contained; Custom Builds are larger and paced to the outcome and the scope. Either way, we confirm the timing once we've scoped your work, and we provide training and support so the tools start earning their keep."
  },
  {
    id: "stay-current", cat: "tools", pages: ["toolbox"],
    q: "Can you help me stay up-to-date with AI technology advancements?",
    a: "Definitely! We're always monitoring the latest AI developments and maintain partnerships with local AI developers. As part of our service, we'll keep you informed about new opportunities and help you adapt your AI strategy as technology evolves."
  },
];

// Helper: get FAQs for a given page id, in canonical order
function getFAQsForPage(pageId) {
  return FAQS.filter((f) => f.pages && f.pages.includes(pageId));
}

window.FAQS = FAQS;
window.FAQ_CATEGORIES = FAQ_CATEGORIES;
window.getFAQsForPage = getFAQsForPage;
