#!/bin/bash
# Product Hunt Screenshot Capture Script
# Run this when scripter.app is live
# Time: 10 minutes

set -e

OUTPUT_DIR="/home/mike/code/FrenoCorp/marketing/product-hunt-assets/screenshots"
mkdir -p "$OUTPUT_DIR"

echo "📸 Product Hunt Screenshot Capture"
echo "=================================="
echo ""

# Check if site is live
echo "Checking if scripter.app is live..."
if curl -s --max-time 10 https://scripter.app > /dev/null; then
    echo "✅ scripter.app is accessible"
else
    echo "❌ scripter.app is NOT accessible"
    echo ""
    echo "Please fix hosting first, then run this script again."
    echo "Or capture screenshots manually from browser."
    exit 1
fi

echo ""
echo "Instructions for manual capture:"
echo "================================="
echo ""
echo "1. Open Chrome/Firefox in normal mode"
echo "2. Set resolution to 1920x1080"
echo "3. Use Shift+Cmd+5 (Mac) or Win+Shift+S (Windows)"
echo ""
echo "Required shots:"
echo "1. Homepage - https://scripter.app"
echo "   - Show hero section with value prop"
echo "   - Show CTA button"
echo ""
echo "2. Pricing - https://scripter.app/pricing"
echo "   - Show Free vs Pro comparison"
echo "   - Show pricing ($0 and $9.99/mo)"
echo ""
echo "3. Editor (if accessible) - https://scripter.app/editor"
echo "   - Show sample script with formatting"
echo "   - Show sidebar with scene list"
echo ""
echo "4. Collaboration (if working)"
echo "   - Open same script in 2 windows"
echo "   - Show multiple cursors"
echo ""
echo "5. Analytics (if working)"
echo "   - Show character/scene counts"
echo "   - Show any metrics"
echo ""
echo "Save screenshots to: $OUTPUT_DIR"
echo ""
echo "Then rename them:"
echo "  01-editor-interface-1920x1080.png"
echo "  02-pricing-page-1920x1080.png"
echo "  03-collaboration-view-1920x1080.png"
echo "  04-analytics-dashboard-1920x1080.png"
echo "  05-export-dialog-1920x1080.png"
echo ""
echo "✅ Done! Ready for PH submission."
