CAPA Master Toolkit

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>The Complete CAPA Master Toolkit - Kintavo</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/lucide@latest"></script>
    <script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>
</head>
<body class="min-h-screen bg-white">

    <!-- Success Screen (hidden by default) -->
    <div id="success-screen" class="hidden min-h-screen bg-white flex items-center justify-center px-4">
        <div class="max-w-2xl w-full text-center">
            <div class="mb-6 flex justify-center">
                <div class="w-20 h-20 bg-blue-50 rounded-full flex items-center justify-center">
                    <i data-lucide="check-circle-2" class="w-12 h-12" style="color: #0693e3;"></i>
                </div>
            </div>
            <h1 class="text-4xl font-bold mb-4" style="color: #2c3e50;">
                Check your inbox!
            </h1>
            <p class="text-xl mb-8" style="color: #666666;">
                Your CAPA Master Toolkit is on its way.
            </p>
            <div class="flex flex-col sm:flex-row gap-4 justify-center">
                <a
                    href="https://go.kintavo.com/demo"
                    class="px-8 py-4 text-white rounded-full font-semibold hover:opacity-90 transition-opacity"
                    style="background-color: #0693e3;"
                >
                    Schedule a Demo
                </a>
                <a
                    href="mailto:info@kintavo.com"
                    class="px-8 py-4 border-2 rounded-full font-semibold hover:bg-blue-50 transition-colors"
                    style="border-color: #0693e3; color: #0693e3;"
                >
                    Contact Us
                </a>
            </div>
        </div>
    </div>

    <!-- Main Content -->
    <div id="main-content">
        <!-- Header -->
        <header class="border-b border-gray-200">
            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4">
                <div class="flex justify-between items-center">
                    <div class="text-2xl font-bold" style="color: #0693e3;">Kintavo</div>
                    <a
                        href="mailto:info@kintavo.com"
                        class="hover:opacity-80 transition-opacity"
                        style="color: #666666;"
                    >
                        info@kintavo.com
                    </a>
                </div>
            </div>
        </header>

        <!-- Hero Section -->
        <section class="py-16 lg:py-24 px-4 sm:px-6 lg:px-8 bg-gray-50">
            <div class="max-w-7xl mx-auto">
                <div class="grid lg:grid-cols-2 gap-12 items-center relative">
                    <div class="relative z-10">
                        <div class="inline-flex items-center gap-2 bg-gray-200 text-gray-700 px-4 py-2 rounded-full mb-8">
                            <i data-lucide="file-text" class="w-4 h-4"></i>
                            <span class="text-sm font-medium">Free 65-Page Guide</span>
                        </div>

                        <h1 class="text-5xl lg:text-6xl font-bold mb-6 leading-tight" style="color: #2c3e50;">
                            The Complete CAPA Master Toolkit
                        </h1>

                        <p class="text-xl text-gray-600 mb-4">
                            Your 65-Page Guide to Audit-Ready Corrective and Preventive Action
                        </p>

                        <p class="text-base text-gray-600 mb-8">
                            Built for quality professionals in blood centers, clinical labs, pharmaceutical manufacturing, OPOs, and life sciences organizations.
                        </p>

                        <a
                            href="#download-form"
                            class="inline-flex items-center gap-2 px-8 py-4 text-white rounded-lg font-semibold hover:opacity-90 transition-opacity shadow-lg mb-12"
                            style="background-color: #0693e3;"
                        >
                            Download Free Toolkit
                            <i data-lucide="download" class="w-5 h-5"></i>
                        </a>

                        <div class="flex flex-wrap gap-6">
                            <div class="flex items-center gap-2 text-gray-700">
                                <div class="w-6 h-6 rounded-full flex items-center justify-center" style="background-color: #0693e3;">
                                    <i data-lucide="check" class="w-4 h-4 text-white"></i>
                                </div>
                                <span class="text-sm font-medium">FDA & ISO Compliant</span>
                            </div>
                            <div class="flex items-center gap-2 text-gray-700">
                                <div class="w-6 h-6 rounded-full flex items-center justify-center" style="background-color: #0693e3;">
                                    <i data-lucide="check" class="w-4 h-4 text-white"></i>
                                </div>
                                <span class="text-sm font-medium">Ready-to-Use Templates</span>
                            </div>
                            <div class="flex items-center gap-2 text-gray-700">
                                <div class="w-6 h-6 rounded-full flex items-center justify-center" style="background-color: #0693e3;">
                                    <i data-lucide="check" class="w-4 h-4 text-white"></i>
                                </div>
                                <span class="text-sm font-medium">Real Examples</span>
                            </div>
                        </div>
                    </div>

                    <div class="relative">
                        <div class="absolute top-4 right-4 px-6 py-2 rounded-full font-bold text-lg z-10" style="background-color: #D4A84B; color: #2c3e50;">
                            FREE
                        </div>
                        <div class="rounded-2xl p-12 shadow-2xl min-h-[500px] flex items-center justify-center" style="background: linear-gradient(to bottom right, #8ed1fc, #0693e3);">
                            <div class="bg-white rounded-lg shadow-2xl p-8 transform -rotate-6 hover:rotate-0 transition-transform duration-300">
                                <div class="w-48 h-64 flex flex-col items-center justify-center border-l-4 border-gray-300">
                                    <i data-lucide="file-text" class="w-20 h-20 mb-4" style="color: #0693e3;"></i>
                                    <div class="text-center">
                                        <div class="text-2xl font-bold mb-2" style="color: #2c3e50;">CAPA<br/>MASTER<br/>TOOLKIT</div>
                                        <div class="text-xs text-gray-500 mt-4">A field kit by Kintavo</div>
                                        <div class="text-xs text-gray-400 mt-2">www.kintavo.com</div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- What's Inside Section -->
        <section class="py-16 px-4 sm:px-6 lg:px-8" style="background-color: #E3F5FF;">
            <div class="max-w-7xl mx-auto">
                <h2 class="text-4xl font-bold text-center mb-12" style="color: #2c3e50;">
                    What's Inside
                </h2>
                <div class="grid md:grid-cols-2 lg:grid-cols-4 gap-8">
                    <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition-shadow">
                        <div class="mb-4" style="color: #0693e3;">
                            <i data-lucide="refresh-cw" class="w-8 h-8"></i>
                        </div>
                        <h3 class="font-bold mb-2" style="color: #2c3e50;">Complete CAPA Lifecycle Guide</h3>
                        <p class="text-sm" style="color: #666666;">From detection to closure</p>
                    </div>
                    <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition-shadow">
                        <div class="mb-4" style="color: #0693e3;">
                            <i data-lucide="target" class="w-8 h-8"></i>
                        </div>
                        <h3 class="font-bold mb-2" style="color: #2c3e50;">Problem Statement Formula</h3>
                        <p class="text-sm" style="color: #666666;">Write audit-proof statements every time</p>
                    </div>
                    <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition-shadow">
                        <div class="mb-4" style="color: #0693e3;">
                            <i data-lucide="trending-up" class="w-8 h-8"></i>
                        </div>
                        <h3 class="font-bold mb-2" style="color: #2c3e50;">RCA Tool Selection Guide</h3>
                        <p class="text-sm" style="color: #666666;">When to use 5 Whys, Fishbone, or FMEA</p>
                    </div>
                    <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition-shadow">
                        <div class="mb-4" style="color: #0693e3;">
                            <i data-lucide="clipboard-list" class="w-8 h-8"></i>
                        </div>
                        <h3 class="font-bold mb-2" style="color: #2c3e50;">Ready-to-Use Templates</h3>
                        <p class="text-sm" style="color: #666666;">CAPA forms, RCA worksheets, VOE checklists</p>
                    </div>
                    <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition-shadow">
                        <div class="mb-4" style="color: #0693e3;">
                            <i data-lucide="book-open" class="w-8 h-8"></i>
                        </div>
                        <h3 class="font-bold mb-2" style="color: #2c3e50;">Real-World Examples</h3>
                        <p class="text-sm" style="color: #666666;">Sample completed CAPAs</p>
                    </div>
                    <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition-shadow">
                        <div class="mb-4" style="color: #0693e3;">
                            <i data-lucide="check-square" class="w-8 h-8"></i>
                        </div>
                        <h3 class="font-bold mb-2" style="color: #2c3e50;">Maturity Model Assessment</h3>
                        <p class="text-sm" style="color: #666666;">Benchmark your CAPA system</p>
                    </div>
                    <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition-shadow">
                        <div class="mb-4" style="color: #0693e3;">
                            <i data-lucide="trending-up" class="w-8 h-8"></i>
                        </div>
                        <h3 class="font-bold mb-2" style="color: #2c3e50;">KPI Dashboard Guide</h3>
                        <p class="text-sm" style="color: #666666;">Track metrics that matter to auditors</p>
                    </div>
                    <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition-shadow">
                        <div class="mb-4" style="color: #0693e3;">
                            <i data-lucide="gift" class="w-8 h-8"></i>
                        </div>
                        <h3 class="font-bold mb-2" style="color: #2c3e50;">Bonus: 1-Page Cheat Sheet</h3>
                        <p class="text-sm" style="color: #666666;">Quick reference for your team</p>
                    </div>
                </div>
            </div>
        </section>

        <!-- Struggles Section -->
        <section class="py-16 px-4 sm:px-6 lg:px-8">
            <div class="max-w-4xl mx-auto">
                <h2 class="text-4xl font-bold text-center mb-12" style="color: #2c3e50;">
                    Are You Struggling With...
                </h2>
                <div class="space-y-6">
                    <div class="flex items-start gap-4 p-6 bg-white border-2 rounded-xl hover:border-blue-500 transition-colors" style="border-color: #E3F5FF;">
                        <div class="flex-shrink-0" style="color: #D4A84B;">
                            <i data-lucide="alert-circle" class="w-6 h-6"></i>
                        </div>
                        <p class="text-lg" style="color: #2c3e50;">CAPAs that drag on for months without resolution?</p>
                    </div>
                    <div class="flex items-start gap-4 p-6 bg-white border-2 rounded-xl hover:border-blue-500 transition-colors" style="border-color: #E3F5FF;">
                        <div class="flex-shrink-0" style="color: #D4A84B;">
                            <i data-lucide="file-question" class="w-6 h-6"></i>
                        </div>
                        <p class="text-lg" style="color: #2c3e50;">Audit findings citing "inadequate root cause analysis"?</p>
                    </div>
                    <div class="flex items-start gap-4 p-6 bg-white border-2 rounded-xl hover:border-blue-500 transition-colors" style="border-color: #E3F5FF;">
                        <div class="flex-shrink-0" style="color: #D4A84B;">
                            <i data-lucide="refresh-cw" class="w-6 h-6"></i>
                        </div>
                        <p class="text-lg" style="color: #2c3e50;">Recurring problems that keep coming back?</p>
                    </div>
                    <div class="flex items-start gap-4 p-6 bg-white border-2 rounded-xl hover:border-blue-500 transition-colors" style="border-color: #E3F5FF;">
                        <div class="flex-shrink-0" style="color: #D4A84B;">
                            <i data-lucide="user-x" class="w-6 h-6"></i>
                        </div>
                        <p class="text-lg" style="color: #2c3e50;">Team members who don't know how to write effective CAPAs?</p>
                    </div>
                    <div class="flex items-start gap-4 p-6 bg-white border-2 rounded-xl hover:border-blue-500 transition-colors" style="border-color: #E3F5FF;">
                        <div class="flex-shrink-0" style="color: #D4A84B;">
                            <i data-lucide="check-square" class="w-6 h-6"></i>
                        </div>
                        <p class="text-lg" style="color: #2c3e50;">Verification of Effectiveness that's just a checkbox exercise?</p>
                    </div>
                </div>
            </div>
        </section>

        <!-- Form Section -->
        <section id="download-form" class="py-16 px-4 sm:px-6 lg:px-8" style="background: linear-gradient(to bottom right, #0693e3, #0578c7);">
            <div class="max-w-2xl mx-auto">
                <div class="text-center mb-8">
                    <h2 class="text-4xl font-bold text-white mb-4">
                        Download Your Free Toolkit
                    </h2>
                    <p class="text-white text-lg" style="opacity: 0.9;">
                        Get instant access to all 65 pages of templates, guides, and examples
                    </p>
                </div>

                <form id="downloadForm" class="bg-white rounded-2xl p-8 shadow-2xl">
                    <div id="error-message" class="hidden mb-6 p-4 bg-red-50 border border-red-200 rounded-lg text-red-700"></div>

                    <div class="grid md:grid-cols-2 gap-4 mb-4">
                        <div>
                            <label for="firstName" class="block text-sm font-semibold mb-2" style="color: #2c3e50;">
                                First Name *
                            </label>
                            <input
                                type="text"
                                id="firstName"
                                name="firstName"
                                required
                                class="w-full px-4 py-3 border-2 border-gray-200 rounded-lg focus:border-blue-500 focus:outline-none transition-colors"
                            />
                        </div>
                        <div>
                            <label for="lastName" class="block text-sm font-semibold mb-2" style="color: #2c3e50;">
                                Last Name *
                            </label>
                            <input
                                type="text"
                                id="lastName"
                                name="lastName"
                                required
                                class="w-full px-4 py-3 border-2 border-gray-200 rounded-lg focus:border-blue-500 focus:outline-none transition-colors"
                            />
                        </div>
                    </div>

                    <div class="mb-4">
                        <label for="workEmail" class="block text-sm font-semibold mb-2" style="color: #2c3e50;">
                            Work Email *
                        </label>
                        <input
                            type="email"
                            id="workEmail"
                            name="workEmail"
                            required
                            class="w-full px-4 py-3 border-2 border-gray-200 rounded-lg focus:border-blue-500 focus:outline-none transition-colors"
                        />
                    </div>

                    <div class="mb-4">
                        <label for="organization" class="block text-sm font-semibold mb-2" style="color: #2c3e50;">
                            Organization *
                        </label>
                        <input
                            type="text"
                            id="organization"
                            name="organization"
                            required
                            class="w-full px-4 py-3 border-2 border-gray-200 rounded-lg focus:border-blue-500 focus:outline-none transition-colors"
                        />
                    </div>

                    <div class="mb-4">
                        <label for="roleTitle" class="block text-sm font-semibold mb-2" style="color: #2c3e50;">
                            Role/Title
                        </label>
                        <input
                            type="text"
                            id="roleTitle"
                            name="roleTitle"
                            class="w-full px-4 py-3 border-2 border-gray-200 rounded-lg focus:border-blue-500 focus:outline-none transition-colors"
                        />
                    </div>

                    <div class="mb-6">
                        <label for="organizationType" class="block text-sm font-semibold mb-2" style="color: #2c3e50;">
                            Organization Type *
                        </label>
                        <select
                            id="organizationType"
                            name="organizationType"
                            required
                            class="w-full px-4 py-3 border-2 border-gray-200 rounded-lg focus:border-blue-500 focus:outline-none transition-colors"
                        >
                            <option value="">Select your organization type</option>
                            <option value="Blood Center">Blood Center</option>
                            <option value="Clinical Laboratory">Clinical Laboratory</option>
                            <option value="Pharmaceutical/Biotech">Pharmaceutical/Biotech</option>
                            <option value="Hospital/Health System">Hospital/Health System</option>
                            <option value="OPO/Tissue Bank">OPO/Tissue Bank</option>
                            <option value="Other Life Sciences">Other Life Sciences</option>
                        </select>
                    </div>

                    <div class="mb-6">
                        <label class="flex items-start gap-3 cursor-pointer">
                            <input
                                type="checkbox"
                                id="subscribedToUpdates"
                                name="subscribedToUpdates"
                                class="mt-1 w-5 h-5 text-blue-600 border-gray-300 rounded focus:ring-blue-500"
                            />
                            <span class="text-sm" style="color: #666666;">
                                Yes, I'd like to receive quality management tips and updates from Kintavo
                            </span>
                        </label>
                    </div>

                    <button
                        type="submit"
                        id="submitButton"
                        class="w-full py-4 text-white rounded-full font-bold text-lg hover:opacity-90 transition-opacity disabled:opacity-50 disabled:cursor-not-allowed"
                        style="background-color: #0693e3;"
                    >
                        Download Free Toolkit
                    </button>

                    <p class="text-xs text-center mt-4" style="color: #666666;">
                        Your information is secure. We never share your data with third parties.
                    </p>
                </form>
            </div>
        </section>

        <!-- Trusted By Section -->
        <section class="py-16 px-4 sm:px-6 lg:px-8" style="background-color: #2c3e50;">
            <div class="max-w-6xl mx-auto text-center">
                <h2 class="text-3xl font-bold mb-8" style="color: #8ed1fc;">
                    Trusted by Quality Leaders at:
                </h2>
                <div class="grid md:grid-cols-3 gap-6 max-w-4xl mx-auto">
                    <div class="flex items-center justify-center gap-2 text-white">
                        <i data-lucide="droplet" class="w-5 h-5" style="color: #8ed1fc;"></i>
                        <span class="font-normal">Regional blood centers</span>
                    </div>
                    <div class="flex items-center justify-center gap-2 text-white">
                        <i data-lucide="building-2" class="w-5 h-5" style="color: #8ed1fc;"></i>
                        <span class="font-normal">Hospital transfusion services</span>
                    </div>
                    <div class="flex items-center justify-center gap-2 text-white">
                        <i data-lucide="microscope" class="w-5 h-5" style="color: #8ed1fc;"></i>
                        <span class="font-normal">Clinical and reference laboratories</span>
                    </div>
                    <div class="flex items-center justify-center gap-2 text-white">
                        <i data-lucide="flask-conical" class="w-5 h-5" style="color: #8ed1fc;"></i>
                        <span class="font-normal">Pharmaceutical manufacturers</span>
                    </div>
                    <div class="flex items-center justify-center gap-2 text-white">
                        <i data-lucide="dna" class="w-5 h-5" style="color: #8ed1fc;"></i>
                        <span class="font-normal">Cell and gene therapy organizations</span>
                    </div>
                    <div class="flex items-center justify-center gap-2 text-white">
                        <i data-lucide="heart" class="w-5 h-5" style="color: #8ed1fc;"></i>
                        <span class="font-normal">Organ procurement organizations (OPOs)</span>
                    </div>
                </div>
            </div>
        </section>

        <!-- About Section -->
        <section class="py-16 px-4 sm:px-6 lg:px-8">
            <div class="max-w-4xl mx-auto text-center">
                <h2 class="text-3xl font-bold mb-6" style="color: #2c3e50;">
                    About Kintavo
                </h2>
                <p class="text-lg mb-8 leading-relaxed" style="color: #666666;">
                    Kintavo is the modern Quality Management System built for regulated industries.
                    We help blood centers, labs, and life sciences organizations automate quality processes,
                    reduce audit risk, and save time.
                </p>
                <a
                    href="https://go.kintavo.com/demo"
                    class="inline-block px-8 py-4 border-2 rounded-full font-semibold hover:bg-blue-50 transition-colors"
                    style="border-color: #0693e3; color: #0693e3;"
                >
                    Want to see Kintavo in action? Schedule a Demo
                </a>
            </div>
        </section>

        <!-- Footer -->
        <footer class="py-12 px-4 sm:px-6 lg:px-8 text-white" style="background-color: #2c3e50;">
            <div class="max-w-7xl mx-auto">
                <div class="grid md:grid-cols-3 gap-8 mb-8">
                    <div>
                        <div class="text-2xl font-bold mb-4">Kintavo</div>
                        <p style="opacity: 0.8;">
                            Modern Quality Management for Regulated Industries
                        </p>
                    </div>
                    <div>
                        <h3 class="font-bold mb-4">Links</h3>
                        <ul class="space-y-2" style="opacity: 0.8;">
                            <li><a href="#" class="hover:text-white transition-colors">Privacy Policy</a></li>
                            <li><a href="#" class="hover:text-white transition-colors">Terms of Service</a></li>
                            <li><a href="mailto:info@kintavo.com" class="hover:text-white transition-colors">Contact</a></li>
                        </ul>
                    </div>
                    <div>
                        <h3 class="font-bold mb-4">Contact</h3>
                        <p style="opacity: 0.8;">
                            <a href="mailto:info@kintavo.com" class="hover:text-white transition-colors">
                                info@kintavo.com
                            </a>
                        </p>
                    </div>
                </div>
                <div class="border-t pt-8 text-center" style="border-color: rgba(6, 147, 227, 0.3); opacity: 0.8;">
                    <p>&copy; 2024 Kintavo. All rights reserved.</p>
                </div>
            </div>
        </footer>
    </div>

    <script>
        lucide.createIcons();

        const { createClient } = supabase;
        const supabaseClient = createClient(
            'https://xmlizynelsbhlgxpjrao.supabase.co',
            'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InhtbGl6eW5lbHNiaGxneHBqcmFvIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjUyNDAxMzcsImV4cCI6MjA4MDgxNjEzN30.CKfMqrhJwWI6En00_tQql5cWpEEjsbBfnSXcKD8xfC8'
        );

        const form = document.getElementById('downloadForm');
        const submitButton = document.getElementById('submitButton');
        const errorMessage = document.getElementById('error-message');
        const mainContent = document.getElementById('main-content');
        const successScreen = document.getElementById('success-screen');

        form.addEventListener('submit', async (e) => {
            e.preventDefault();

            errorMessage.classList.add('hidden');
            submitButton.disabled = true;
            submitButton.textContent = 'Submitting...';

            const formData = {
                firstName: document.getElementById('firstName').value,
                lastName: document.getElementById('lastName').value,
                workEmail: document.getElementById('workEmail').value,
                organization: document.getElementById('organization').value,
                roleTitle: document.getElementById('roleTitle').value || null,
                organizationType: document.getElementById('organizationType').value,
                subscribedToUpdates: document.getElementById('subscribedToUpdates').checked
            };

            try {
                const { error } = await supabaseClient
                    .from('capa_toolkit_leads')
                    .insert([
                        {
                            first_name: formData.firstName,
                            last_name: formData.lastName,
                            work_email: formData.workEmail,
                            organization: formData.organization,
                            role_title: formData.roleTitle,
                            organization_type: formData.organizationType,
                            subscribed_to_updates: formData.subscribedToUpdates
                        }
                    ]);

                if (error) {
                    if (error.code === '23505') {
                        errorMessage.textContent = 'This email has already been registered. Please check your inbox for the toolkit.';
                    } else {
                        errorMessage.textContent = 'An error occurred. Please try again.';
                    }
                    errorMessage.classList.remove('hidden');
                    submitButton.disabled = false;
                    submitButton.textContent = 'Download Free Toolkit';
                    return;
                }

                mainContent.classList.add('hidden');
                successScreen.classList.remove('hidden');
                lucide.createIcons();
                window.scrollTo(0, 0);
            } catch (err) {
                errorMessage.textContent = 'An error occurred. Please try again.';
                errorMessage.classList.remove('hidden');
                submitButton.disabled = false;
                submitButton.textContent = 'Download Free Toolkit';
            }
        });

        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                const target = document.querySelector(this.getAttribute('href'));
                if (target) {
                    target.scrollIntoView({ behavior: 'smooth' });
                }
            });
        });
    </script>
</body>
</html>