import { useEffect, useState } from "react"; export default function PricingModal({ onClose }: { onClose: () => void }) { const [visible, setVisible] = useState(false); // Animate in useEffect(() => { requestAnimationFrame(() => setVisible(true)); }, []); const handleClose = () => { setVisible(false); setTimeout(onClose, 200); }; return (
e.stopPropagation()} > {/* Decorative top bar */}
{/* Close */}
{/* Header */}

Choose Your Plan

Unlock smarter exam prep. All prices in HKD per month.

{/* Plans grid */}
{/* ── Free ── */}
{/* Hover glow */}

Free

Get started

$0 / month
    {[ "Browse public papers", "View AI solutions", "Basic error book", ].map((f, i) => (
  • {f}
  • ))}
{/* ── Standard (current, with early bird) ── */}
{/* Animated shimmer */}
{/* Badge */} Your Plan

Standard

Most popular

$19.9
$9.9 / month
EARLY BIRD PRICE
    {[ "Unlimited paper uploads", "AI question extraction", "Step-by-step solutions", "Photo auto-grading", "Similar question retrieval", "Course analytics", "Error book + review", ].map((f, i) => (
  • {f}
  • ))}
{/* ── Exam ── */}
{/* Hover glow */}
Best Value

Exam

Finals season

$29.9 / month
    {[ "Everything in Standard", "AI Tutor (RAG-powered)", "Priority processing", "Unlimited variant generation", "Cross-course analytics", "Export & print", ].map((f, i) => (
  • {f}
  • ))}

All registered users enjoy Early Bird pricing during beta. Payment integration coming soon.

); }