import { motion, AnimatePresence } from 'framer-motion'; import { Crown, Users, Check, X, ArrowRight } from 'lucide-react'; import { useFocusTrap } from '@/hooks/useFocusTrap'; interface TrialExpiredModalProps { open: boolean; onDismiss: () => void; onUpgrade: (tier: 'TEAMS') => void; } // Solo (free) keeps every personal capability — the trial only ever gated the // collaboration/governance layer, so those are the only things "lost". const KEEP_FEATURES = [ 'Memory & Harvest — unlimited, forever', 'Unlimited workspaces & connectors', 'Marketplace skills & connectors', 'Self-evolving skills', 'All built-in agents', 'PDF & advanced exports', ]; const LOSE_FEATURES = [ 'Shared team workspaces', 'Sync across devices', 'Team skill library', 'Team governance & audit', 'SSO & role-based access', ]; export default function TrialExpiredModal({ open, onDismiss, onUpgrade }: TrialExpiredModalProps) { // A11y (WCAG 2.1.1/2.4.3): Escape closes, Tab is trapped, focus moves in on // open and restores on close. Replaces the prior Escape-only handler. const dialogRef = useFocusTrap(open, onDismiss); return ( {open && (