/* Source of truth for everything we build.
 * Each entry powers both the /products index and its own /products/<slug>.html detail page.
 *
 * Keep `evidence` honest — it's quoted directly on the marketing pages. When in doubt,
 * describe at a high level and let prospects ask for specifics on the call.
 */
const PRODUCTS = [
  {
    slug: "whatsapp-chatbot",
    name: "WhatsApp Chatbot",
    eyebrow: "WhatsApp Cloud API",
    title: "A WhatsApp number that sells while you sleep.",
    sub: "A branded bot on your own business number — answers, books, tracks orders, hands off to a human only when it matters.",
    icon: "bot",
    color: "ink",
    capabilities: [
      { title: "First reply in 11 seconds", body: "Even at 2am. The 90% of customer queries that are repeat questions never make your team blink." },
      { title: "Bookings & reservations", body: "Slot-based scheduling with calendar reminders, no-show follow-ups, and rebooking flows." },
      { title: "Order & listing lookups", body: "Wire stock, order status, and product catalogues into chat so customers stop calling to ask." },
      { title: "Quiet human handoff", body: "When intent gets serious, the bot pings your team and gracefully fades out of the thread." },
      { title: "Persistent sessions", body: "Threads survive across days. The bot remembers what the customer asked yesterday." },
      { title: "Multilingual", body: "English + Hindi + your regional language. We tune the bot's voice to match how your shop talks." },
    ],
    howItWorks: [
      { n: "01", t: "List the 20 questions your customers actually ask.", b: "We sit in your store's WhatsApp for a day and pull real threads." },
      { n: "02", t: "Bot draft + Cloud API wiring.", b: "We script the flows, connect to Cloud API, and tune templates for Meta approval." },
      { n: "03", t: "Pilot week.", b: "Bot runs alongside a human. We tune copy and handoff timing using actual conversations." },
      { n: "04", t: "Live, 24/7.", b: "Bot answers solo. Your team only sees the high-intent threads it routes to them." },
    ],
    evidence: {
      label: "Live deployment",
      headline: "Running on an RV dealership in India — routes buyer leads, inventory queries, test-drive bookings, and workshop appointments.",
      points: [
        "WhatsApp Cloud API + Meta Webhooks, no third-party bot platform",
        "Stateful session store so conversations persist across days",
        "Routes leads into a sales pipeline with claim/reassign flow",
        "Order, inspection, and workshop bookings all wired into chat",
      ],
    },
    tech: ["WhatsApp Cloud API", "Meta Webhooks", "Template messaging", "Session store", "Node.js"],
    related: ["crm", "meta-onboarding", "pixel-tracking"],
  },

  {
    slug: "website",
    name: "Website",
    eyebrow: "Built in a week",
    title: "A website that looks like you mean business.",
    sub: "Fast, mobile-first, Google-ready. Built around the one job a website actually has: turning a visit into a chat.",
    icon: "web",
    color: "paper",
    capabilities: [
      { title: "Mobile-first by default", body: "India is mobile. Your site loads in under 2s on a 4G handset, looks right at any width." },
      { title: "WhatsApp as the CTA", body: "Every page ends in a wa.me link with prefilled context — name, page, what they were looking at." },
      { title: "Catalog + inventory pages", body: "Product, collection, dealer, or service pages — whatever your business actually sells." },
      { title: "Policies that pass Meta review", body: "Privacy + terms written for WhatsApp Cloud API verification, not copy-pasted from a template." },
      { title: "SEO foundations", body: "Sitemap, schema.org, OG tags, fast LCP. Set up so Google indexes you the day you launch." },
      { title: "You own everything", body: "Code, domain, hosting account, analytics. We hand over keys at the end. No retainer trap." },
    ],
    howItWorks: [
      { n: "01", t: "Half-day discovery.", b: "We map the customer journey and pick the 5–10 pages that matter for your business." },
      { n: "02", t: "Wireframes → design.", b: "You see real mockups in 4 days. Two rounds of revisions baked in." },
      { n: "03", t: "Build & QA.", b: "Code + content + photos. Lighthouse score above 90 before we ship." },
      { n: "04", t: "Launch + handover.", b: "Vercel/Cloudflare set up, domain pointed, you get the GitHub + dashboards." },
    ],
    evidence: {
      label: "Two recent builds",
      headline: "An RV dealership and a saree retailer in Ranchi — both shipped in under 10 days, both hit Meta verification on first review.",
      points: [
        "Dealership: Next.js + custom inventory feed, 40+ pages, full CRM/admin under it",
        "Retail: Next.js verification site with policies tuned for WhatsApp Cloud API approval",
        "Both deployed on Vercel with edge caching and zero server upkeep",
        "Both ranked on local SEO within 6 weeks of launch",
      ],
    },
    tech: ["Next.js 14", "React", "Tailwind CSS", "Vercel", "TypeScript", "Drizzle/Postgres (where needed)"],
    related: ["seo", "meta-onboarding", "catalog-feed"],
  },

  {
    slug: "crm",
    name: "CRM & Customer DB",
    eyebrow: "Lead pipeline",
    title: "Every lead in one place — and someone owns it.",
    sub: "WhatsApp chats, form fills, ad leads, walk-ins. One pipeline, one source of truth, one team that knows whose lead is whose.",
    icon: "crm",
    color: "paper",
    capabilities: [
      { title: "Unified inbox", body: "WhatsApp + form + Meta lead ads + calls roll into one Kanban your sales team actually opens." },
      { title: "Claim & reassign", body: "Sales execs claim leads. If a lead goes stale, it gets reassigned. No dropped balls." },
      { title: "Activity log per lead", body: "Every message, call, and status change is timestamped. Audits don't take a week." },
      { title: "Templates & quick replies", body: "WhatsApp template library + saved replies so your team isn't typing 'available' fifty times a day." },
      { title: "KPIs that match P&L", body: "Lead → contact → qualified → won, with conversion at each stage. The numbers tie to actual revenue." },
      { title: "Role-based access", body: "Sales execs see their pipeline. Managers see everyone's. Owners see the dashboard." },
    ],
    howItWorks: [
      { n: "01", t: "Map your current lead flow.", b: "Where do leads come from today, where do they leak, who picks them up?" },
      { n: "02", t: "Build the pipeline.", b: "Stages, ownership rules, SLAs. We tune to how your sales team actually works." },
      { n: "03", t: "Migrate + wire integrations.", b: "Existing contacts in, WhatsApp/forms/ads wired up, templates loaded." },
      { n: "04", t: "Train + measure.", b: "Your team uses it for 2 weeks. We tune dashboards to the questions you actually ask." },
    ],
    evidence: {
      label: "Live deployment",
      headline: "Running for an RV dealership — buyer leads, seller leads (C2C), and inspection requests in one pipeline, claimed by sales execs in real time.",
      points: [
        "Buyer + seller + inspection + workshop pipelines, role-based access",
        "WhatsApp threads attach to the lead so reps see full history before the next call",
        "Call-task scheduling with reminders, plus call analysis from Deepgram + GPT",
        "KPI snapshots feed an admin dashboard owners actually open",
      ],
    },
    tech: ["MongoDB / Postgres", "Next.js admin", "Role-based auth", "WhatsApp Cloud API", "Call analysis (Deepgram, GPT)"],
    related: ["whatsapp-chatbot", "analytics", "pixel-tracking"],
  },

  {
    slug: "meta-onboarding",
    name: "Meta Business Onboarding",
    eyebrow: "WhatsApp Cloud API",
    title: "Get verified. Get the green tick.",
    sub: "WABA setup, Business Manager, domain verification, catalog, shop, CTWA. We handle the maze so you don't get stuck in review for 6 weeks.",
    icon: "meta",
    color: "accent",
    capabilities: [
      { title: "Business Manager + WABA", body: "Brand-new or migrating from an existing setup. We file the right paperwork and pick the right phone number policy." },
      { title: "Domain & business verification", body: "DNS records, business documents, legal entity matching. We file once, not three times." },
      { title: "Privacy + terms that pass review", body: "Policy pages written with reviewers' checklists in mind, not lifted from a generic template." },
      { title: "Catalog + commerce", body: "Product catalog uploaded, shop set up, CTWA (Click-to-WhatsApp) ads wired to it." },
      { title: "Green tick (official badge)", body: "Once eligible, we file the official business display name and chase it to approval." },
      { title: "Template message approval", body: "Marketing, utility, and authentication templates drafted to pass Meta's policy filters first try." },
    ],
    howItWorks: [
      { n: "01", t: "Audit current state.", b: "What's already set up, what's broken, what's missing. 30-minute call." },
      { n: "02", t: "Documents + verification.", b: "We collect the legal documents and submit the verification ticket." },
      { n: "03", t: "Domain + policies.", b: "DNS records, privacy/terms pages, contact info — everything reviewers look for." },
      { n: "04", t: "Catalog + templates + green tick.", b: "Product catalog uploaded, templates approved, green tick filed when eligible." },
    ],
    evidence: {
      label: "Shipped end-to-end",
      headline: "Built a Cloud API verification site for a Ranchi-based saree retailer — passed Meta review on first submission.",
      points: [
        "Next.js + TypeScript verification site (Home, About, Contact, Privacy, Terms)",
        "Privacy policy explicitly covers WhatsApp messaging consent, STOP, data retention",
        "Business Manager + WABA set up in parallel with site deployment",
        "Live on production domain within 10 days of brief",
      ],
    },
    tech: ["Meta Business Manager", "WhatsApp Cloud API", "Domain verification", "Catalog API", "Template messaging"],
    related: ["whatsapp-chatbot", "website", "catalog-feed"],
  },

  {
    slug: "catalog-feed",
    name: "Catalog & Meta Business AI",
    eyebrow: "Live product feed",
    title: "Your inventory, fed straight into Meta Business AI.",
    sub: "A live CSV/JSON feed of your catalog at a URL Meta polls. Edit a product, the feed updates. No nightly export script, no stale data.",
    icon: "database",
    color: "ink",
    capabilities: [
      { title: "Always-live feed", body: "One URL Meta Business AI polls on its own cadence. Edit a product in your admin, the feed reflects within 10 minutes." },
      { title: "RFC 4180-compliant CSV", body: "Proper escaping, no hand-rolled bugs. Meta accepts the feed without rejection emails." },
      { title: "JSON debug endpoint", body: "Same data, JSON shape, for sanity checks and 3rd-party integrations." },
      { title: "Filtered by status", body: "Sold/archived rows filtered upstream. Only available inventory hits the feed." },
      { title: "Multi-source merge", body: "Owned inventory + marketplace listings + dealer partners — merged into one canonical catalog." },
      { title: "No GitHub Action, no cron", body: "Built on Next.js route handlers. Stateless, free to run, scales with traffic." },
    ],
    howItWorks: [
      { n: "01", t: "Map your inventory schema.", b: "Where data lives (DB, sheet, ERP), what fields matter, what gets filtered out." },
      { n: "02", t: "Build the route handler.", b: "Stateless Next.js route that fetches + transforms on demand, cached 5 minutes." },
      { n: "03", t: "Plug into Meta Business Suite.", b: "Paste the URL into Business AI → Knowledge → Price list. Meta takes it from there." },
      { n: "04", t: "Monitor + iterate.", b: "Watch what Meta surfaces, tune your descriptions and key features, repeat." },
    ],
    evidence: {
      label: "In production",
      headline: "Live inventory feed for an RV dealership at /inventory.csv — owned stock + C2C marketplace listings merged into one Meta-ready feed.",
      points: [
        "Next.js route handler fetches from listings API on each request, 5-min revalidate",
        "Single transform module maps DB documents to Meta's CSV schema, zero dependencies",
        "18 columns: name, year, make, model, price, mileage, fuel, features, image URLs",
        "Plugged into Meta Business AI → Business AI surfaces products in WhatsApp threads",
      ],
    },
    tech: ["Next.js route handlers", "MongoDB / Postgres", "Meta Business AI", "CSV / JSON feeds", "Edge caching"],
    related: ["whatsapp-chatbot", "meta-onboarding", "meta-ads"],
  },

  {
    slug: "meta-ads",
    name: "Meta Ads",
    eyebrow: "Facebook + Instagram",
    title: "Spend less. Sell more. See why.",
    sub: "Campaigns set up properly: pixel wired, audiences sharp, creative tested weekly. No agency black box.",
    icon: "ads",
    color: "paper",
    capabilities: [
      { title: "Pixel + Conversions API", body: "Server-side events so iOS 14 doesn't eat your tracking. Match quality 8/10 or we tune it." },
      { title: "CTWA (Click-to-WhatsApp)", body: "Ads that open a chat instead of a form. Conversion rate beats every other format we've tested." },
      { title: "Audience strategy", body: "Lookalike layering, exclusion rules, retargeting windows. We build out the structure, then test inside it." },
      { title: "Weekly creative refresh", body: "New angles every 7 days. Old creative is the #1 reason ROAS slides — we keep the deck topped up." },
      { title: "Transparent reporting", body: "Every metric you ask about, every spend line. You see what we see, in your own ad account." },
      { title: "Catalog ads", body: "Dynamic Product Ads from your inventory feed. Customers see the products they actually browsed." },
    ],
    howItWorks: [
      { n: "01", t: "Audit current account.", b: "What's wasting money, what's working, what's missing. 30-minute screen share." },
      { n: "02", t: "Wire tracking first.", b: "Pixel + CAPI + GA4 + UTM strategy. Nothing else matters if you can't measure." },
      { n: "03", t: "Launch + test.", b: "Test budget across 3–4 audience/creative combos. Cut what loses, scale what wins." },
      { n: "04", t: "Weekly rhythm.", b: "Creative refresh, audience tuning, weekly readout call. Spend grows when ROAS justifies it." },
    ],
    evidence: {
      label: "Past wins",
      headline: "3.4x ROAS for a furniture retailer in Bangalore via CTWA + Meta Ads + WhatsApp bot. Tracked end-to-end through Conversions API.",
      points: [
        "Conversions API set up server-side, match quality consistently 8+",
        "CTWA as primary objective for businesses with a working WhatsApp bot",
        "Creative refresh weekly, audience layering monthly",
        "Reports show CAC, ROAS, LTV-to-CAC — the numbers owners actually care about",
      ],
    },
    tech: ["Meta Ads Manager", "Pixel + CAPI", "GA4", "CTWA", "Dynamic Product Ads"],
    related: ["pixel-tracking", "catalog-feed", "analytics"],
  },

  {
    slug: "pixel-tracking",
    name: "Pixel & Tracking",
    eyebrow: "Conversions API",
    title: "Every click, counted correctly.",
    sub: "Meta Pixel, Conversions API, GA4 — set up the way iOS 14 actually wants. So your ad reports stop lying.",
    icon: "pixel",
    color: "paper",
    capabilities: [
      { title: "Server-side events", body: "Conversions API installed properly. Events fire from your server, not just the browser. iOS-proof." },
      { title: "Dedup setup", body: "Browser + server events deduped by event_id. No double-counting in your ROAS." },
      { title: "Match quality 8+", body: "Hashed email, phone, IP, FBP, FBC all passed through. Match quality moves from 4 to 8 within a week." },
      { title: "GA4 + UTM strategy", body: "Channel attribution that actually works. UTM templates per campaign so you know what brought the buyer." },
      { title: "CRM round-trip", body: "Offline conversions sent back to Meta so the algorithm learns from your actual closed deals, not just web events." },
      { title: "Privacy-compliant", body: "Consent gating where required, hashed PII only, server-side opt-out honored. Set up to survive a privacy audit." },
    ],
    howItWorks: [
      { n: "01", t: "Audit current setup.", b: "What's firing, what's missing, what's broken. Test events panel + browser inspector + server logs." },
      { n: "02", t: "Wire server events.", b: "CAPI events from your backend, dedup IDs, full match payload. We instrument the events that matter." },
      { n: "03", t: "Verify match quality.", b: "Watch match quality climb in Events Manager. We tune until 8+." },
      { n: "04", t: "Wire CRM offline events.", b: "Closed deals + qualified leads sent back to Meta. Algorithm gets smarter, ad costs go down." },
    ],
    evidence: {
      label: "In production",
      headline: "Facebook Conversions API service running for an RV dealership — server-side events with full match payload, integrated into the lead lifecycle.",
      points: [
        "Dedicated CAPI service in our backend, hashed PII, full event payload",
        "Event_id dedup so browser + server events never double-count",
        "Offline events fired when leads convert, not just on page views",
        "GA4 + Pixel both wired with UTM-aware attribution",
      ],
    },
    tech: ["Meta Pixel", "Conversions API", "GA4", "Server-side tagging", "Hashed PII", "Event dedup"],
    related: ["meta-ads", "analytics", "crm"],
  },

  {
    slug: "analytics",
    name: "Reporting & Analytics",
    eyebrow: "Dashboards",
    title: "Watch the money move.",
    sub: "One dashboard that stitches Meta Ads, WhatsApp, your website, and CRM into numbers you actually use to make decisions.",
    icon: "sparkle",
    color: "ink",
    capabilities: [
      { title: "Unified KPI snapshot", body: "Daily/weekly/monthly snapshots stored, not computed live. Reports load in 200ms, audits are easy." },
      { title: "Funnel by source", body: "See what each channel actually returns — Meta Ads vs Google vs organic vs walk-ins." },
      { title: "Cohort retention", body: "Customer cohorts by acquisition month. Watch which channel brings the customers who come back." },
      { title: "Sales rep dashboards", body: "Per-exec pipelines, conversion rates, response times. Coaching gets data-backed." },
      { title: "Operations metrics", body: "Inspection turnaround, workshop throughput, payment cycle times — whatever your business actually runs on." },
      { title: "Owner view", body: "One screen, the 8 numbers you check daily. No dashboard fatigue." },
    ],
    howItWorks: [
      { n: "01", t: "Find the 8 numbers that matter.", b: "We interview you for an hour about what you actually check. Strip the rest." },
      { n: "02", t: "Pick the source of truth.", b: "Decide which system owns each number. No two dashboards disagreeing." },
      { n: "03", t: "Build snapshot pipeline.", b: "Nightly KPI snapshots written to DB, exposed via admin dashboard. Backfilled where data exists." },
      { n: "04", t: "Iterate on use.", b: "After 2 weeks of you using it, we add the metrics you wanted you had and remove the ones you ignored." },
    ],
    evidence: {
      label: "Live deployment",
      headline: "KPI snapshot pipeline for an RV dealership — buyer leads, seller leads, sales rep performance, inventory turnover, all in one admin view.",
      points: [
        "KpiSnapshot model: nightly job writes a row per business unit per day",
        "Admin dashboard with chart.js, exec dashboards filtered by role",
        "Call analysis (Deepgram + GPT) folded into sales rep dashboards",
        "Owner-only view shows the 8 numbers actually checked daily",
      ],
    },
    tech: ["MongoDB / Postgres", "Chart.js", "Next.js admin", "Nightly cron snapshots", "Role-based dashboards"],
    related: ["crm", "pixel-tracking", "meta-ads"],
  },

  {
    slug: "seo",
    name: "SEO",
    eyebrow: "Local + organic",
    title: "Rank for what your neighbours search.",
    sub: "Local SEO, Google Business, schema, reviews — the unsexy work that puts you on page one when someone in your area searches for what you sell.",
    icon: "seo",
    color: "paper",
    capabilities: [
      { title: "Local SEO foundations", body: "Google Business Profile, NAP consistency across directories, review velocity strategy." },
      { title: "Technical SEO", body: "Sitemap, robots, schema.org markup, canonicals, Core Web Vitals. Done right at build time, not retrofitted." },
      { title: "Content strategy", body: "The 20 long-tail queries your future customers actually type. Mapped to pages, scheduled to ship." },
      { title: "On-page optimisation", body: "Titles, meta, headings, internal links. Boring, important, done." },
      { title: "Review management", body: "Post-purchase review flows via WhatsApp. Your review count climbs, your stars stay high." },
      { title: "Reporting", body: "Search Console + rank tracker. Monthly readout of which queries you're winning and which need help." },
    ],
    howItWorks: [
      { n: "01", t: "SEO audit.", b: "Technical + content + local. We rank what's hurting you most, in order." },
      { n: "02", t: "Fix the foundations.", b: "Sitemap, schema, GBP, NAP. Everything before content because content on a broken site is wasted." },
      { n: "03", t: "Content sprint.", b: "10 pages targeting your top long-tail queries. We brief, you approve, we publish." },
      { n: "04", t: "Monitor + iterate.", b: "Monthly rank check, what's working, what to double down on." },
    ],
    evidence: {
      label: "What we've built",
      headline: "Full SEO foundation on an RV dealership site — sitemap, schema, content strategy doc, and 40+ optimised pages.",
      points: [
        "Next.js sitemap.ts auto-generated from inventory + content",
        "Schema.org markup on product, dealer, and review pages",
        "Content strategy doc covering 50+ long-tail RV queries",
        "Local Business + Product schema validated in Google's Rich Results Test",
      ],
    },
    tech: ["Next.js sitemaps", "Schema.org", "Google Business Profile", "Search Console", "Core Web Vitals"],
    related: ["website", "catalog-feed", "digital-marketing"],
  },

  {
    slug: "digital-marketing",
    name: "Digital Marketing (the rest of it)",
    eyebrow: "Everything else",
    title: "Google Ads · Instagram · Email · Content · Landing pages.",
    sub: "When the full playbook is needed, we bring it. We'll tell you honestly what will actually move your numbers — and skip the rest.",
    icon: "sparkle",
    color: "paper",
    capabilities: [
      { title: "Google Ads", body: "Search + Performance Max, with proper exclusions and audience signals. Tracked through to revenue." },
      { title: "Instagram Reels strategy", body: "Hooks, scripts, posting cadence. The format is doing the heavy lifting — we plan around that." },
      { title: "Email + newsletter", body: "Welcome flows, abandoned cart, post-purchase. Built in your tool (Mailchimp/Klaviyo/Loops/etc)." },
      { title: "Landing pages", body: "One-page funnels for ad traffic. Built to convert one cold visitor into one chat." },
      { title: "Content calendar", body: "What goes out, when, on which channel. Brief + approve + ship rhythm so the team isn't ad-libbing." },
      { title: "Reviews + UGC + referrals", body: "The compounding stuff. Hard to measure week-to-week, irreplaceable over a year." },
    ],
    howItWorks: [
      { n: "01", t: "Honest channel audit.", b: "Which channels actually fit your customer? We'll tell you which to skip." },
      { n: "02", t: "Pick 2–3 to do well.", b: "Better to run 2 channels at 10/10 than 6 at 4/10. We choose with you." },
      { n: "03", t: "Build + ship.", b: "Creative, copy, landing pages, lists. We do the work, you approve." },
      { n: "04", t: "Measure + cut.", b: "Monthly review. What's earning its keep stays. What isn't, dies." },
    ],
    evidence: {
      label: "Past wins",
      headline: "₹12L in new orders for a D2C tea brand via an abandoned-cart WA flow. 68% fewer phone calls for a dental clinic via WA bookings.",
      points: [
        "Abandoned-cart WA flow tied to Shopify events",
        "WA-based booking with reminders for a clinic",
        "Content calendar templates we reuse across clients",
        "Landing-page library tuned for Indian mobile traffic",
      ],
    },
    tech: ["Google Ads", "Meta Suite", "Klaviyo / Mailchimp / Loops", "Notion content ops", "WhatsApp template messaging"],
    related: ["meta-ads", "seo", "analytics"],
  },
];

window.PRODUCTS = PRODUCTS;
window.getProduct = (slug) => PRODUCTS.find(p => p.slug === slug);
