/**
 * LaunchPad Template - Startup SaaS
 * 
 * Modern, conversion-focused template for SaaS and tech startups.
 * Features bold hero with video support, social proof stats, and AI chat.
 */
import type { StarterTemplate } from './types';
import { launchpadBlogPosts } from '../template-blog-posts';
import { launchpadKbCategories } from '../template-kb-articles';

const launchpadPages: StarterTemplate['pages'] = [
  {
    title: 'Home',
    slug: 'home',
    isHomePage: true,
    menu_order: 1,
    showInMenu: true,
    meta: {
      seoTitle: 'LaunchPad — Launch Your Startup with AI-Powered Growth Tools',
      description: 'Launch your startup with AI-powered deployment, auto-scaling, and 120+ integrations. From idea to live product in days — start free.',
      showTitle: false,
      titleAlignment: 'center',
    },
    blocks: [
      {
        id: 'announcement-launch',
        type: 'announcement-bar',
        data: {
          message: '🚀 We just launched v2.0 with AI-powered features!',
          linkText: 'See what\'s new',
          linkUrl: '/product',
          variant: 'gradient',
          dismissable: true,
          sticky: false,
        },
      },
      {
        id: 'hero-1',
        type: 'hero',
        data: {
          title: 'Ship Faster. Scale Smarter.',
          subtitle: 'The all-in-one platform that turns your idea into a live product — in days, not months. Zero DevOps headaches, infinite scale.',
          backgroundType: 'video',
          videoType: 'direct',
          videoUrl: 'https://videos.pexels.com/video-files/3129671/3129671-uhd_2560_1440_30fps.mp4',
          videoPosterUrl: '/templates/blog/tech-network.jpg',
          videoLoop: true,
          videoMuted: true,
          heightMode: 'viewport',
          contentAlignment: 'center',
          overlayOpacity: 70,
          titleAnimation: 'slide-up',
          showScrollIndicator: true,
          primaryButton: { text: 'Ask FlowPilot', url: '#chat-launcher' },
          secondaryButton: { text: 'See How It Works', url: '/product' },
        },
      },
      {
        id: 'divider-hero-stats',
        type: 'section-divider',
        data: {
          shape: 'wave',
          height: 'sm',
        },
      },
      {
        id: 'stats-1',
        type: 'stats',
        data: {
          title: 'Built for Builders Who Move Fast',
          stats: [
            { value: '50K+', label: 'Active Users', icon: 'Users' },
            { value: '99.9%', label: 'Uptime SLA', icon: 'Shield' },
            { value: '120+', label: 'Integrations', icon: 'Plug' },
            { value: '<2min', label: 'Avg Deploy Time', icon: 'Zap' },
          ],
        },
      },
      {
        id: 'logos-1',
        type: 'logos',
        data: {
          title: 'Trusted by Industry Leaders',
          logos: [
            { id: 'l1', name: 'Spotify', logo: '' },
            { id: 'l2', name: 'Klarna', logo: '' },
            { id: 'l3', name: 'King', logo: '' },
            { id: 'l4', name: 'Truecaller', logo: '' },
            { id: 'l5', name: 'iZettle', logo: '' },
            { id: 'l6', name: 'Mojang', logo: '' },
          ],
          layout: 'scroll',
          variant: 'grayscale',
          logoSize: 'md',
          autoplaySpeed: 4,
        },
      },
      {
        id: 'marquee-stack',
        type: 'marquee',
        data: {
          items: [
            { id: 'ms1', text: 'Next.js', icon: '⚡' },
            { id: 'ms2', text: 'Stripe', icon: '💳' },
            { id: 'ms3', text: 'GitHub Actions', icon: '🔄' },
            { id: 'ms4', text: 'Vercel', icon: '▲' },
            { id: 'ms5', text: 'PostgreSQL', icon: '🗄️' },
            { id: 'ms6', text: 'Redis', icon: '🔴' },
            { id: 'ms7', text: 'OpenAI', icon: '🤖' },
            { id: 'ms8', text: 'Slack', icon: '💬' },
            { id: 'ms9', text: 'Zapier', icon: '⚙️' },
            { id: 'ms10', text: 'Twilio', icon: '📱' },
            { id: 'ms11', text: 'Datadog', icon: '📊' },
            { id: 'ms12', text: 'Figma', icon: '🎨' },
          ],
          speed: 'normal',
          direction: 'left',
        },
      },
      {
        id: 'two-col-1',
        type: 'two-column',
        data: {
          eyebrow: 'SPEED',
          title: 'Built for',
          accentText: 'Speed',
          accentPosition: 'end',
          content: {
            type: 'doc',
            content: [
              { type: 'paragraph', content: [{ type: 'text', text: 'Your competitors are already shipping. Stop wrestling with infrastructure and start winning the market. Our platform gets your code to production in under 2 minutes — every single time.' }] },
              { type: 'bulletList', content: [
                { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'One-click deploys from Git to global edge' }] }] },
                { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Auto-scaling that handles 1M requests without a config change' }] }] },
                { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Built-in CDN across 47 global regions' }] }] },
              ]},
            ],
          },
          imageSrc: '/templates/misc/team-office.jpg',
          imageAlt: 'Team collaborating on laptop',
          imagePosition: 'right',
          ctaText: 'See How It Works →',
          ctaUrl: '/product',
        },
      },
      {
        id: 'bento-features',
        type: 'bento-grid',
        data: {
          title: 'Everything Your Stack Needs',
          subtitle: 'One platform. Every capability. No glue code.',
          variant: 'glass',
          items: [
            { id: 'bg1', icon: 'Zap', title: 'Instant Deployments', description: 'Push to main and watch your app go live in under 90 seconds. Atomic deploys, instant rollbacks.', span: 'wide' },
            { id: 'bg2', icon: 'Shield', title: 'Zero-Trust Security', description: 'SOC 2 Type II certified. End-to-end encryption, secret scanning, and DDoS protection built in.' },
            { id: 'bg3', icon: 'BarChart3', title: 'Real-Time Analytics', description: 'P50/P99 latency, error rates, and custom events — all in a single dashboard.' },
            { id: 'bg4', icon: 'Cpu', title: 'AI-Native Runtime', description: 'Streaming LLM responses, vector search, and AI function calling with one SDK call.', span: 'wide' },
            { id: 'bg5', icon: 'Puzzle', title: '120+ Integrations', description: 'Stripe, Slack, GitHub, Jira, and more — connected in seconds, not sprints.' },
            { id: 'bg6', icon: 'GitBranch', title: 'Preview Environments', description: 'Every pull request gets its own live preview URL with full data isolation.' },
          ],
        },
      },
      {
        id: 'parallax-momentum',
        type: 'parallax-section',
        data: {
          title: 'The Best Startups Don\'t Build Infrastructure. They Build Products.',
          subtitle: 'Join 50,000+ founders who chose to focus on what matters — their users.',
          backgroundImage: '/templates/hero/tech-future.jpg',
          overlayOpacity: 60,
          buttonText: 'Start Building Free',
          buttonUrl: '/contact',
        },
      },
      {
        id: 'testimonials-1',
        type: 'testimonials',
        data: {
          title: 'What Our Customers Say',
          testimonials: [
            { id: 't1', content: 'We went from a Figma mockup to a live product serving real users in 11 days. LaunchPad killed every infrastructure excuse we had.', author: 'Sarah Chen', role: 'CTO', company: 'TechFlow', rating: 5 },
            { id: 't2', content: 'I\'ve worked at AWS, Heroku, and three Series B startups. This is the best developer experience I\'ve ever had — and I\'m not exaggerating.', author: 'Marcus Lindberg', role: 'Lead Engineer', company: 'InnovateCo', rating: 5 },
            { id: 't3', content: 'Our Black Friday campaign spiked to 80,000 concurrent users. Zero downtime, zero config changes. We literally just watched the revenue roll in.', author: 'Emily Rodriguez', role: 'Founder & CEO', company: 'GrowthLab', rating: 5 },
          ],
          layout: 'carousel',
          columns: 3,
          showRating: true,
          showAvatar: false,
          variant: 'cards',
          autoplay: true,
          autoplaySpeed: 5,
        },
      },
      {
        id: 'badge-trust',
        type: 'badge',
        data: {
          title: 'Trusted & Certified',
          subtitle: 'Built with security and compliance in mind',
          badges: [
            { id: 'b1', title: 'SOC 2 Type II', subtitle: 'Certified', icon: 'shield' },
            { id: 'b2', title: 'GDPR', subtitle: 'Compliant', icon: 'check' },
            { id: 'b3', title: '99.9%', subtitle: 'Uptime SLA', icon: 'award' },
            { id: 'b4', title: 'ISO 27001', subtitle: 'Certified', icon: 'medal' },
          ],
          variant: 'cards',
          columns: 4,
          size: 'md',
          showTitles: true,
        },
      },
      {
        id: 'chat-launcher-home',
        type: 'chat-launcher',
        data: {
          title: 'Have a Question?',
          subtitle: 'Our AI knows everything about our platform',
          placeholder: 'Ask about features, pricing, or getting started...',
          showQuickActions: true,
          quickActionCount: 4,
          variant: 'card',
        },
      },
      {
        id: 'accordion-home-faq',
        type: 'accordion',
        data: {
          title: 'Common Questions',
          items: [
            { question: 'What is LaunchPad?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'LaunchPad is a modern development platform that helps teams build, deploy, and scale applications faster. We handle the infrastructure complexity so you can focus on building your product.' }] }] } },
            { question: 'How do I get started?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Getting started is easy! Sign up for a free account, connect your code repository, and deploy your first application in minutes. No credit card required for the free tier.' }] }] } },
            { question: 'What does it cost?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'We offer a generous free tier that includes 1 project and 1,000 API calls per month. Pro plans start at $49/month with unlimited projects and 100,000 API calls. Enterprise pricing is available for larger organizations.' }] }] } },
            { question: 'Is my data secure?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Yes! We are SOC 2 Type II certified and GDPR compliant. All data is encrypted at rest and in transit. Enterprise plans include additional security features like SSO and audit logs.' }] }] } },
            { question: 'Can I try before I buy?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Absolutely! Our free tier includes everything you need to get started and test the platform. No credit card required, and you can upgrade anytime as your needs grow.' }] }] } },
          ],
        },
      },
      {
        id: 'newsletter-1',
        type: 'newsletter',
        data: {
          title: 'Get the Edge',
          description: 'Weekly drops: product updates, growth tactics, and engineering insights used by the fastest-moving startups.',
          buttonText: 'Subscribe Free',
          successMessage: 'Welcome aboard! Check your inbox — something good is on the way.',
          variant: 'default',
          showNameField: false,
        },
      },
      {
        id: 'cta-1',
        type: 'cta',
        data: {
          title: 'Your Next Big Thing Starts Today',
          subtitle: 'Free plan. No credit card. No BS. Just build.',
          buttonText: 'Start Building Free',
          buttonUrl: '/contact',
          gradient: true,
        },
      },
      {
        id: 'floating-cta-home',
        type: 'floating-cta',
        data: {
          text: 'Free plan available — no credit card required',
          buttonText: 'Start Building Free',
          buttonUrl: '/contact',
          variant: 'pill',
        },
      },
    ],
  },
  {
    title: 'Product',
    slug: 'product',
    menu_order: 2,
    showInMenu: true,
    meta: {
      seoTitle: 'Product — Ship Faster with AI-Powered Tools | LaunchPad',
      description: 'Explore our powerful features designed for modern teams',
      showTitle: false,
      titleAlignment: 'center',
    },
    blocks: [
      {
        id: 'hero-1',
        type: 'hero',
        data: {
          title: 'Everything You Need to Ship Fast',
          subtitle: 'A complete toolkit for modern development teams. From idea to production in record time.',
          backgroundType: 'color',
          heightMode: '60vh',
          contentAlignment: 'center',
          overlayOpacity: 0,
          titleAnimation: 'fade-in',
        },
      },
      {
        id: 'features-1',
        type: 'features',
        data: {
          title: 'Core Features',
          subtitle: 'Everything you need to build and scale.',
          features: [
            { id: 'f1', icon: 'Zap', title: 'Instant Deploy', description: 'Push to production in seconds with zero configuration.' },
            { id: 'f2', icon: 'Shield', title: 'Enterprise Security', description: 'SOC 2 compliant from day one with end-to-end encryption.' },
            { id: 'f3', icon: 'BarChart3', title: 'Analytics', description: 'Real-time insights and metrics to optimize performance.' },
            { id: 'f4', icon: 'Puzzle', title: 'Integrations', description: '50+ pre-built connectors to your favorite tools.' },
            { id: 'f5', icon: 'Users', title: 'Team Management', description: 'Collaborate seamlessly with role-based access control.' },
            { id: 'f6', icon: 'Cpu', title: 'AI-Powered', description: 'Smart automation built-in to accelerate your workflow.' },
          ],
          columns: 3,
          layout: 'grid',
          variant: 'cards',
          iconStyle: 'circle',
        },
      },
      {
        id: 'timeline-1',
        type: 'timeline',
        data: {
          title: 'How It Works',
          subtitle: 'Get started in three simple steps.',
          steps: [
            { id: 's1', icon: 'Download', title: 'Sign Up', description: 'Create your account in under a minute. No credit card required.', date: 'Step 1' },
            { id: 's2', icon: 'Settings', title: 'Configure', description: 'Connect your tools and customize your workspace.', date: 'Step 2' },
            { id: 's3', icon: 'Rocket', title: 'Launch', description: 'Deploy your first project and start growing.', date: 'Step 3' },
          ],
          variant: 'horizontal',
          showDates: true,
        },
      },
      {
        id: 'two-col-1',
        type: 'two-column',
        data: {
          eyebrow: 'DX FIRST',
          title: 'Developer Experience',
          accentText: 'First',
          accentPosition: 'end',
          content: {
            type: 'doc',
            content: [
              { type: 'paragraph', content: [{ type: 'text', text: 'We obsess over the details so you can focus on building. Every feature is designed to reduce friction and increase velocity.' }] },
            ],
          },
          imageSrc: '/templates/blog/dashboard-costs.jpg',
          imageAlt: 'Dashboard analytics',
          imagePosition: 'left',
          ctaText: 'Explore Docs →',
          ctaUrl: '/home',
        },
      },
      {
        id: 'two-col-2',
        type: 'two-column',
        data: {
          eyebrow: 'SCALABILITY',
          title: 'Scale Without',
          accentText: 'Limits',
          accentPosition: 'end',
          content: {
            type: 'doc',
            content: [
              { type: 'paragraph', content: [{ type: 'text', text: 'From your first 100 users to your first million. Our platform grows with you, automatically handling traffic spikes.' }] },
            ],
          },
          imageSrc: '/templates/misc/analytics-dashboard.jpg',
          imageAlt: 'Growth chart',
          imagePosition: 'right',
          ctaText: 'View Pricing →',
          ctaUrl: '/pricing',
        },
      },
      {
        id: 'cta-1',
        type: 'cta',
        data: {
          title: 'See It in Action',
          subtitle: 'Schedule a personalized demo with our team.',
          buttonText: 'Book Demo',
          buttonUrl: '/contact',
          gradient: true,
        },
      },
    ],
  },
  {
    title: 'Pricing',
    slug: 'pricing',
    menu_order: 3,
    showInMenu: true,
    meta: {
      seoTitle: 'Pricing Plans — Flexible Plans for Growing Startups | LaunchPad',
      description: 'Start free, scale as you grow. Compare Starter, Pro, and Team plans with transparent pricing and no hidden fees.',
      showTitle: false,
      titleAlignment: 'center',
    },
    blocks: [
      {
        id: 'hero-1',
        type: 'hero',
        data: {
          title: 'Simple, Transparent Pricing',
          subtitle: 'Start free, scale as you grow. No hidden fees, no surprises.',
          backgroundType: 'color',
          heightMode: 'auto',
          contentAlignment: 'center',
          overlayOpacity: 0,
        },
      },
      {
        id: 'countdown-earlybird',
        type: 'countdown',
        data: {
          title: 'Early Bird Pricing Ends Soon',
          subtitle: 'Lock in 30% off for life',
          targetDate: '2026-03-31T23:59:59',
          expiredMessage: 'Early bird pricing has ended',
          variant: 'cards',
          size: 'lg',
          showDays: true,
          showHours: true,
          showMinutes: true,
          showSeconds: true,
        },
      },
      {
        id: 'pricing-1',
        type: 'pricing',
        data: {
          tiers: [
            {
              id: 'tier-free',
              name: 'Starter',
              price: 'Free',
              period: 'forever',
              description: 'Perfect for getting started and testing ideas.',
              features: ['1 project', '1,000 API calls/month', 'Community support', 'Basic analytics'],
              buttonText: 'Get Started',
              buttonUrl: '/contact',
            },
            {
              id: 'tier-pro',
              name: 'Pro',
              price: '$49',
              period: '/month',
              description: 'For growing teams who need more power.',
              features: ['Unlimited projects', '100,000 API calls/month', 'Priority support', 'Advanced analytics', 'Team collaboration', 'Custom domains'],
              buttonText: 'Start Free Trial',
              buttonUrl: '/contact',
              highlighted: true,
              badge: 'Most Popular',
            },
            {
              id: 'tier-team',
              name: 'Team',
              price: '$199',
              period: '/month',
              description: 'For organizations that need enterprise features.',
              features: ['Everything in Pro', 'Unlimited API calls', 'SSO & SAML', 'Dedicated support', 'SLA guarantee', 'Audit logs'],
              buttonText: 'Contact Sales',
              buttonUrl: '/contact',
            },
          ],
          columns: 3,
          variant: 'cards',
        },
      },
      {
        id: 'comparison-1',
        type: 'comparison',
        data: {
          title: 'Compare Plans',
          products: [
            { id: 'p1', name: 'Starter' },
            { id: 'p2', name: 'Pro', highlighted: true },
            { id: 'p3', name: 'Team' },
          ],
          features: [
            { id: 'f1', name: 'Projects', values: ['1', 'Unlimited', 'Unlimited'] },
            { id: 'f2', name: 'API Calls', values: ['1K/mo', '100K/mo', 'Unlimited'] },
            { id: 'f3', name: 'Team Members', values: ['1', '5', 'Unlimited'] },
            { id: 'f4', name: 'Custom Domains', values: [false, true, true] },
            { id: 'f5', name: 'Priority Support', values: [false, true, true] },
            { id: 'f6', name: 'SSO/SAML', values: [false, false, true] },
            { id: 'f7', name: 'SLA Guarantee', values: [false, false, true] },
          ],
          variant: 'striped',
          showPrices: false,
          showButtons: false,
          stickyHeader: false,
        },
      },
      {
        id: 'accordion-1',
        type: 'accordion',
        data: {
          title: 'Pricing FAQ',
          items: [
            { question: 'Can I try before I buy?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Absolutely! Our free tier includes everything you need to get started. No credit card required.' }] }] } },
            { question: 'What happens if I exceed my limits?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'We\'ll notify you before you hit any limits. You can upgrade anytime, and we\'ll never shut off your service unexpectedly.' }] }] } },
            { question: 'Do you offer discounts for startups?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Yes! We offer 50% off for the first year for qualifying startups. Contact us for details.' }] }] } },
            { question: 'Can I cancel anytime?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Yes, you can cancel your subscription at any time. We don\'t believe in lock-ins.' }] }] } },
          ],
        },
      },
      {
        id: 'cta-1',
        type: 'cta',
        data: {
          title: 'Ready to Get Started?',
          subtitle: 'Join thousands of teams already building with us.',
          buttonText: 'Start Free Trial',
          buttonUrl: '/contact',
          gradient: true,
        },
      },
    ],
  },
  {
    title: 'Contact',
    slug: 'contact',
    menu_order: 4,
    showInMenu: true,
    meta: {
      seoTitle: 'Contact Us — Get in Touch with the LaunchPad Team',
      description: 'Questions about LaunchPad? Reach out for a personalized demo, enterprise pricing, or technical support. We respond fast.',
      showTitle: false,
      titleAlignment: 'center',
    },
    blocks: [
      {
        id: 'hero-1',
        type: 'hero',
        data: {
          title: 'Let\'s Talk',
          subtitle: 'Have questions? We\'d love to hear from you.',
          backgroundType: 'color',
          heightMode: 'auto',
          contentAlignment: 'center',
          overlayOpacity: 0,
        },
      },
      {
        id: 'chat-1',
        type: 'chat-launcher',
        data: {
          title: 'Quick Questions? Ask AI',
          subtitle: 'Get instant answers about our platform',
          placeholder: 'Ask about features, pricing, or getting started...',
          showQuickActions: true,
          quickActionCount: 4,
          variant: 'card',
        },
      },
      {
        id: 'booking-1',
        type: 'booking',
        data: {
          title: 'Book a Demo',
          description: 'See LaunchPad in action with a personalized walkthrough.',
          mode: 'smart',
          submitButtonText: 'Confirm Booking',
          successMessage: 'Your demo is booked! We\'ll send you a confirmation email.',
          showPhoneField: true,
          variant: 'card',
        },
      },
      {
        id: 'contact-1',
        type: 'contact',
        data: {
          title: 'Get in Touch',
          email: 'hello@launchpad.io',
          phone: '+1 (555) 123-4567',
          address: 'San Francisco, CA',
          hours: [
            { day: 'Sales', time: 'Mon-Fri 9AM-6PM' },
            { day: 'Support', time: '24/7 Available' },
          ],
        },
      },
    ],
  },
  {
    title: 'Privacy Policy',
    slug: 'privacy-policy',
    menu_order: 99,
    showInMenu: false,
    meta: {
      seoTitle: 'Privacy Policy — Data Protection | LaunchPad',
      description: 'How we collect, use and protect your personal data under GDPR',
      showTitle: true,
      titleAlignment: 'left',
    },
    blocks: [
      {
        id: 'text-1',
        type: 'text',
        data: {
          content: {
            type: 'doc',
            content: [
              { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Introduction' }] },
              { type: 'paragraph', content: [{ type: 'text', text: 'We are committed to protecting your privacy and handling your personal data with care. This policy describes how we collect, use, and protect your information in accordance with the General Data Protection Regulation (GDPR).' }] },
              { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Data Controller' }] },
              { type: 'paragraph', content: [{ type: 'text', text: 'LaunchPad Inc. is the data controller for the processing of your personal data. You can reach us at hello@launchpad.io.' }] },
              { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'What Data We Collect' }] },
              { type: 'paragraph', content: [{ type: 'text', text: 'We collect information that you provide to us, for example when you create an account, contact us, or use our services. This may include name, email address, phone number, and other relevant information.' }] },
              { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'How We Use Your Data' }] },
              { type: 'bulletList', content: [
                { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'To provide and improve our services' }] }] },
                { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'To communicate with you about your use of the service' }] }] },
                { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'To comply with legal obligations' }] }] },
                { type: 'listItem', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'To send relevant information and marketing (with your consent)' }] }] },
              ]},
              { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Your Rights' }] },
              { type: 'paragraph', content: [{ type: 'text', text: 'Under GDPR, you have the right to access, rectify, and erase your personal data. You also have the right to restrict processing, object to processing, and the right to data portability.' }] },
              { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Cookies' }] },
              { type: 'paragraph', content: [{ type: 'text', text: 'We use cookies to improve your experience on our website. You can manage your cookie preferences through your browser settings.' }] },
              { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Contact' }] },
              { type: 'paragraph', content: [{ type: 'text', text: 'Questions about how we handle your personal data? Contact us at hello@launchpad.io.' }] },
            ],
          },
        },
      },
    ],
  },
  {
    title: 'Terms of Service',
    slug: 'terms-of-service',
    menu_order: 100,
    showInMenu: false,
    meta: {
      seoTitle: 'Terms of Service | LaunchPad',
      description: 'Read the terms and conditions governing your use of the LaunchPad platform, including SLA, data handling, and acceptable use.',
      showTitle: true,
      titleAlignment: 'left',
    },
    blocks: [
      {
        id: 'text-1',
        type: 'text',
        data: {
          content: {
            type: 'doc',
            content: [
              { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Agreement to Terms' }] },
              { type: 'paragraph', content: [{ type: 'text', text: 'By accessing or using LaunchPad services, you agree to be bound by these Terms of Service. If you disagree with any part of these terms, you may not access our services.' }] },
              { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Use of Service' }] },
              { type: 'paragraph', content: [{ type: 'text', text: 'You may use our services only for lawful purposes and in accordance with these Terms. You agree not to use our services in any way that violates applicable laws or regulations.' }] },
              { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Account Registration' }] },
              { type: 'paragraph', content: [{ type: 'text', text: 'To access certain features, you must register for an account. You are responsible for maintaining the confidentiality of your account credentials and for all activities under your account.' }] },
              { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Intellectual Property' }] },
              { type: 'paragraph', content: [{ type: 'text', text: 'The service and its original content, features, and functionality are owned by LaunchPad and are protected by international copyright, trademark, and other intellectual property laws.' }] },
              { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Limitation of Liability' }] },
              { type: 'paragraph', content: [{ type: 'text', text: 'LaunchPad shall not be liable for any indirect, incidental, special, consequential, or punitive damages resulting from your use of the service.' }] },
              { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Termination' }] },
              { type: 'paragraph', content: [{ type: 'text', text: 'We may terminate or suspend your account and access to the service immediately, without prior notice, for conduct that we believe violates these Terms or is harmful to other users, us, or third parties.' }] },
              { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Changes to Terms' }] },
              { type: 'paragraph', content: [{ type: 'text', text: 'We reserve the right to modify these terms at any time. We will notify users of any material changes by posting the new Terms on this page.' }] },
              { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Contact' }] },
              { type: 'paragraph', content: [{ type: 'text', text: 'Questions about these Terms? Contact us at hello@launchpad.io.' }] },
            ],
          },
        },
      },
    ],
  },
  {
    title: 'Cookie Policy',
    slug: 'cookie-policy',
    menu_order: 101,
    showInMenu: false,
    meta: {
      seoTitle: 'Cookie Policy | LaunchPad',
      description: 'Information about how we use cookies on our website',
      showTitle: true,
      titleAlignment: 'left',
    },
    blocks: [
      {
        id: 'text-1',
        type: 'text',
        data: {
          content: {
            type: 'doc',
            content: [
              { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'What Are Cookies?' }] },
              { type: 'paragraph', content: [{ type: 'text', text: 'Cookies are small text files stored on your device when you visit our website. They help us provide you with a better experience by remembering your preferences and understanding how you use our platform.' }] },
              { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Types of Cookies We Use' }] },
              { type: 'heading', attrs: { level: 3 }, content: [{ type: 'text', text: 'Essential Cookies' }] },
              { type: 'paragraph', content: [{ type: 'text', text: 'Required for the website to function properly. These cookies enable core functionality such as security, authentication, and session management. You cannot opt out of these cookies.' }] },
              { type: 'heading', attrs: { level: 3 }, content: [{ type: 'text', text: 'Analytics Cookies' }] },
              { type: 'paragraph', content: [{ type: 'text', text: 'Help us understand how visitors interact with our website by collecting anonymous usage data. We use this information to improve our platform and user experience.' }] },
              { type: 'heading', attrs: { level: 3 }, content: [{ type: 'text', text: 'Functional Cookies' }] },
              { type: 'paragraph', content: [{ type: 'text', text: 'Remember your preferences and settings to provide enhanced, personalized features. These include language preferences and display settings.' }] },
              { type: 'heading', attrs: { level: 3 }, content: [{ type: 'text', text: 'Marketing Cookies' }] },
              { type: 'paragraph', content: [{ type: 'text', text: 'Used to track visitors across websites to display relevant advertisements. These cookies are set by our advertising partners and require your consent.' }] },
              { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Managing Your Cookie Preferences' }] },
              { type: 'paragraph', content: [{ type: 'text', text: 'You can manage your cookie preferences at any time through our cookie banner or your browser settings. Note that disabling certain cookies may affect website functionality.' }] },
              { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Third-Party Cookies' }] },
              { type: 'paragraph', content: [{ type: 'text', text: 'Some cookies are placed by third-party services that appear on our pages. We do not control these cookies. Please refer to the respective privacy policies of these providers for more information.' }] },
              { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Updates to This Policy' }] },
              { type: 'paragraph', content: [{ type: 'text', text: 'We may update this Cookie Policy from time to time. Any changes will be posted on this page with an updated revision date.' }] },
              { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Contact' }] },
              { type: 'paragraph', content: [{ type: 'text', text: 'Questions about our use of cookies? Contact us at hello@launchpad.io.' }] },
            ],
          },
        },
      },
    ],
  },
  {
    title: 'Help Center',
    slug: 'help',
    menu_order: 5,
    showInMenu: false,
    meta: {
      seoTitle: 'Help Center — Support & Resources | LaunchPad',
      description: 'Get answers to frequently asked questions about LaunchPad',
      showTitle: false,
      titleAlignment: 'center',
    },
    blocks: [
      {
        id: 'hero-help',
        type: 'hero',
        data: {
          title: 'How Can We Help?',
          subtitle: 'Find answers to common questions or reach out to our support team.',
          backgroundType: 'color',
          heightMode: 'auto',
          contentAlignment: 'center',
        },
      },
      {
        id: 'accordion-getting-started',
        type: 'accordion',
        data: {
          title: 'Getting Started',
          items: [
            { question: 'How do I create an account?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Click "Get Started Free" on our homepage. Enter your email and create a password. You\'ll receive a confirmation email to verify your account.' }] }] } },
            { question: 'What\'s included in the free tier?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'The free tier includes 1 project, 1,000 API calls per month, community support, and basic analytics. No credit card required.' }] }] } },
            { question: 'How do I invite team members?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Go to Settings → Team → Invite Members. Enter their email addresses and select their role (viewer, editor, or admin).' }] }] } },
          ],
        },
      },
      {
        id: 'accordion-billing',
        type: 'accordion',
        data: {
          title: 'Billing & Subscriptions',
          items: [
            { question: 'What payment methods do you accept?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'We accept all major credit cards (Visa, Mastercard, American Express), PayPal, and bank transfers for annual plans.' }] }] } },
            { question: 'Can I cancel my subscription anytime?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Yes, you can cancel at any time. Your access continues until the end of your billing period. No hidden fees or cancellation charges.' }] }] } },
            { question: 'Do you offer refunds?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'We offer a 14-day money-back guarantee. If you\'re not satisfied, contact support within 14 days of purchase for a full refund.' }] }] } },
          ],
        },
      },
      {
        id: 'accordion-technical',
        type: 'accordion',
        data: {
          title: 'Technical Questions',
          items: [
            { question: 'What are the API rate limits?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Free: 1,000 calls/month. Pro: 100,000 calls/month. Team: Unlimited. Rate limits reset on the 1st of each month.' }] }] } },
            { question: 'Do you offer an uptime SLA?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'Yes, we guarantee 99.9% uptime for Pro and Team plans. Check our status page at status.launchpad.io for real-time updates.' }] }] } },
            { question: 'How do I integrate with my existing tools?', answer: { type: 'doc', content: [{ type: 'paragraph', content: [{ type: 'text', text: 'We offer 50+ pre-built integrations. Go to Settings → Integrations to connect Slack, GitHub, Jira, and more. Custom webhooks are also available.' }] }] } },
          ],
        },
      },
      {
        id: 'cta-help',
        type: 'cta',
        data: {
          title: 'Still Need Help?',
          subtitle: 'Our support team is available 24/7 to assist you.',
          buttonText: 'Contact Support',
          buttonUrl: '/contact',
          gradient: false,
        },
      },
    ],
  },
];

export const launchpadTemplate: StarterTemplate = {
  id: 'launchpad',
  name: 'LaunchPad',
  description: 'Modern, conversion-focused template for SaaS and tech startups. Features bold hero with video support, social proof stats, and a helpful AI chat widget.',
  category: 'startup',
  icon: 'Rocket',
  tagline: 'Perfect for startups & SaaS',
  aiChatPosition: 'Small card widget for quick support',
  pages: launchpadPages,
  blogPosts: launchpadBlogPosts,
  kbCategories: launchpadKbCategories,
  requiredModules: ['blog', 'knowledgeBase', 'chat', 'newsletter', 'leads', 'forms'],
  branding: {
    logo: '',
    organizationName: 'LaunchPad',
    brandTagline: 'Launch Your Vision',
    primaryColor: '250 84% 54%',
    headingFont: 'Space Grotesk',
    bodyFont: 'Inter',
    borderRadius: 'md',
    shadowIntensity: 'medium',
  },
  chatSettings: {
    enabled: true,
    aiProvider: 'openai',
    n8nWebhookUrl: '',
    widgetEnabled: true,
    widgetPosition: 'bottom-right',
    widgetStyle: 'pill',
    widgetSize: 'md',
    widgetMaxPrompts: 3,
    widgetShowOnMobile: true,
    blockEnabled: true,
    landingPageEnabled: true,
    welcomeMessage: 'Hi! How can we help you today?',
    systemPrompt: 'You are an intelligent AI assistant for FlowWink, a self-hosted Business Operating System. You have complete knowledge of all site content, pages, and knowledge base articles. Answer questions accurately based on the actual content. Be helpful, concise, and friendly.',
    suggestedPrompts: [
      'How do I create my first page?',
      'What AI providers are supported?',
      'Walk me through the template system',
    ],
    includeContentAsContext: true,
    contentContextMaxTokens: 50000,
    includedPageSlugs: ['*'],
    includeKbArticles: true,
    showContextIndicator: true,
    toolCallingEnabled: true,
    allowGeneralKnowledge: true,
  },
  headerSettings: {
    variant: 'sticky',
    stickyHeader: true,
    backgroundStyle: 'blur',
    headerShadow: 'sm',
    showBorder: true,
  },
  footerSettings: {
    variant: 'full',
    email: 'hello@launchpad.io',
    phone: '+46 8 123 456 78',
    address: 'Birger Jarlsgatan 57',
    postalCode: '113 56 Stockholm',
    weekdayHours: 'Mon-Fri 9-18',
    weekendHours: 'Closed',
    linkedin: 'https://linkedin.com/company/launchpad',
    twitter: 'https://twitter.com/launchpad',
    legalLinks: [
      { id: 'help', label: 'Help Center', url: '/help', enabled: true },
      { id: 'privacy', label: 'Privacy Policy', url: '/privacy-policy', enabled: true },
      { id: 'terms', label: 'Terms of Service', url: '/terms-of-service', enabled: true },
      { id: 'cookies', label: 'Cookie Policy', url: '/cookie-policy', enabled: true },
    ],
  },
  seoSettings: {
    siteTitle: 'LaunchPad',
    titleTemplate: '%s | LaunchPad',
    defaultDescription: 'The platform that scales with your ambition. Build faster, iterate smarter, grow exponentially.',
    robotsIndex: true,
    robotsFollow: true,
    developmentMode: false,
  },
  aeoSettings: {
    enabled: true,
    organizationName: 'LaunchPad',
    shortDescription: 'The platform that scales with your ambition. Build faster, iterate smarter, grow exponentially.',
    schemaOrgEnabled: true,
    schemaOrgType: 'Organization',
    faqSchemaEnabled: true,
    articleSchemaEnabled: true,
    sitemapEnabled: true,
    llmsTxtEnabled: true,
    llmsFullTxtEnabled: true,
  },
  cookieBannerSettings: {
    enabled: true,
  },
  siteSettings: {
    homepageSlug: 'home',
  },
};
