import type { Metadata } from 'next' import Link from 'next/link' import { ArrowLeft } from 'lucide-react' import { Footer } from '@/components/layout/Footer' import { notFound } from 'next/navigation' const useCases: Record = { 'ecommerce-price-monitoring': { title: 'E-Commerce Price Monitoring', metaDescription: 'Monitor competitor prices on Shopify, Amazon, and any e-commerce site. SiteChangeMonitor tracks price changes and inventory status with AI-powered noise filtering.', intro: 'SiteChangeMonitor tracks competitor product prices and inventory status across Shopify, Amazon, WooCommerce, and any e-commerce site — filtering out false alerts from rotating ads and dynamic page elements.', benefits: [ 'Lock onto specific price elements automatically — no CSS selectors needed', 'Filter out false positives from ads, banners, and session-specific content', 'Get instant email alerts (or Slack/webhook on Pro+) when a competitor changes pricing', 'Track inventory status changes (in stock → sold out)', 'Historical price snapshots with visual proof', ], howItWorks: [ { step: 'Paste the product URL', description: 'Our system auto-detects the page type and locks onto the price element.' }, { step: 'Set your alert preferences', description: 'Choose email (all plans) or Slack/webhook (Pro+). Set thresholds for price changes.' }, { step: 'Get notified on real changes', description: 'AI filters out noise. You only hear about actual price or inventory changes.' }, ], whoIsItFor: [ 'E-commerce managers tracking competitor pricing', 'Marketplace sellers monitoring Buy Box prices', 'Procurement teams watching supplier pricing', 'Deal hunters tracking product price drops', ], }, 'seo-serp-tracking': { title: 'SEO & SERP Change Tracking', metaDescription: 'Monitor SERP changes, featured snippet updates, and competitor ranking movements. SiteChangeMonitor alerts SEO teams to meaningful search result changes.', intro: 'SiteChangeMonitor helps SEO teams track changes to search engine results pages, including ranking shifts, featured snippet appearances, and competitor movements — without noise from personalized or localized results.', benefits: [ 'Track SERP changes for your target keywords', 'Monitor featured snippet ownership changes', 'Detect when competitors appear or disappear from page 1', 'Filter out localized and personalized result variations', 'Get visual diff proof of every SERP change', ], howItWorks: [ { step: 'Enter the Google search URL for your keyword', description: 'We capture the SERP as it appears to a clean, non-personalized browser session.' }, { step: 'Configure keyword triggers', description: 'Set alerts for when your brand or competitor names appear or disappear.' }, { step: 'Review changes with visual diffs', description: 'See exactly what changed with side-by-side screenshot comparisons.' }, ], whoIsItFor: [ 'SEO managers tracking keyword rankings', 'Content teams monitoring featured snippets', 'Agencies reporting SERP changes to clients', 'Growth teams tracking competitive search landscape', ], }, 'compliance-policy-monitoring': { title: 'Compliance & Policy Change Monitoring', metaDescription: 'Track changes to terms of service, privacy policies, and regulatory pages. SiteChangeMonitor provides audit-proof snapshots for compliance teams.', intro: 'SiteChangeMonitor provides compliance and legal teams with automated tracking of terms of service, privacy policies, and regulatory pages — with audit-proof snapshots and instant change alerts.', benefits: [ 'Automatically monitor ToS, privacy policies, and regulatory pages', 'Audit-proof timestamped snapshots of every version', 'AI filtering removes irrelevant changes (dates, formatting, ads)', 'Instant alerts when material policy changes occur', 'Full version history with diff comparison', ], howItWorks: [ { step: 'Add the policy or regulatory page URL', description: 'SiteChangeMonitor begins tracking the page content immediately.' }, { step: 'AI filters noise automatically', description: 'Copyright year changes, formatting tweaks, and boilerplate updates are ignored.' }, { step: 'Get alerted on material changes', description: 'Only substantive policy changes trigger notifications to your team.' }, ], whoIsItFor: [ 'Legal teams monitoring vendor terms of service', 'Compliance officers tracking regulatory changes', 'Privacy teams monitoring third-party data policies', 'Risk managers tracking contractual obligations', ], }, 'competitor-intelligence': { title: 'Competitor Intelligence Monitoring', metaDescription: 'Monitor competitor websites for product launches, pricing changes, hiring signals, and strategic shifts. SiteChangeMonitor automates competitive intelligence.', intro: 'SiteChangeMonitor automates competitive intelligence by monitoring competitor websites for product launches, pricing changes, team growth signals, and strategic messaging shifts — delivering only meaningful changes to your team.', benefits: [ 'Monitor competitor homepages, pricing pages, and product pages', 'Detect new product launches and feature announcements', 'Track hiring page changes as growth signals', 'Keyword alerts for strategic terms (e.g., "enterprise", "AI")', 'Weekly digest emails for competitive intelligence summaries (coming soon)', ], howItWorks: [ { step: 'Add competitor page URLs', description: 'Monitor pricing pages, about pages, careers pages, and product pages.' }, { step: 'Set keyword triggers', description: 'Get alerted when competitors mention specific terms or remove them.' }, { step: 'Review changes in context', description: 'Visual diffs show exactly what changed, so your team can act fast.' }, ], whoIsItFor: [ 'Product managers tracking competitor features', 'Marketing teams monitoring competitor messaging', 'Sales teams tracking competitor pricing changes', 'Strategy teams monitoring industry shifts', ], }, } export function generateStaticParams() { return Object.keys(useCases).map((slug) => ({ slug })) } export function generateMetadata({ params }: { params: { slug: string } }): Metadata { const data = useCases[params.slug] if (!data) return {} return { title: data.title, description: data.metaDescription, alternates: { canonical: `/use-cases/${params.slug}` }, openGraph: { title: data.title, description: data.metaDescription, url: `/use-cases/${params.slug}` }, } } export default function UseCasePage({ params }: { params: { slug: string } }) { const data = useCases[params.slug] if (!data) notFound() const howToJsonLd = { '@context': 'https://schema.org', '@type': 'HowTo', name: `How to use SiteChangeMonitor for ${data.title}`, step: data.howItWorks.map((s, i) => ({ '@type': 'HowToStep', position: i + 1, name: s.step, text: s.description, })), } return (