TBOY CONCEPT LEAD FUNNEL
=========================

FILES:
- index.php: landing page
- submit-lead.php: validates/saves leads and triggers email
- thank-you.php: WhatsApp community page
- config.php: database, SMTP and URLs
- database.sql: MySQL database/table
- admin/: simple lead dashboard
- composer.json: PHPMailer dependency

INSTALL:
1. Create a MySQL database or import database.sql in phpMyAdmin.
2. Edit config.php with DB_HOST, DB_NAME, DB_USER and DB_PASS.
3. Set FROM_EMAIL to an address on your domain.
4. Install PHPMailer:
   composer install
   OR upload vendor/ after running composer locally.
5. Put your real SMTP host, port, username and password in config.php.
6. Replace GUIDE_URL after the free PDF is uploaded.
7. Upload the project to your hosting.
8. Open index.php.
9. Admin: /admin/login.php
   Change ADMIN_PASSWORD in admin/login.php before launch.

EMAIL AUTOMATION:
A lead is saved first. If PHPMailer is installed and SMTP settings are valid,
the system immediately sends the guide email. If the email fails, the lead
is still saved and the visitor still reaches the thank-you page.

SECURITY:
- Uses PDO prepared statements.
- Includes a basic honeypot.
- Do not leave the sample admin password in production.
- For production, add CSRF protection, rate limiting, HTTPS, and stronger
  admin authentication.
