'use client' import { useState } from 'react' import { Button, CheckCircleIcon } from '@ciphera-net/ui' // Pricing Tiers Configuration const TIERS = [ { name: 'Starter', description: 'For personal sites and startups', basePrice: 9, // Base price for lowest tier features: [ '1 site', '1 year data retention', 'Email reports', '100% Data ownership' ] }, { name: 'Growth', description: 'For growing businesses', basePrice: 19, features: [ 'Up to 3 sites', '3 years data retention', 'Team dashboard', 'Shared links' ] }, { name: 'Business', description: 'For large organizations', basePrice: 49, features: [ 'Up to 10 sites', 'Unlimited data retention', 'Priority support', 'Custom events' ] } ] // Slider Steps (Pageviews) const TRAFFIC_TIERS = [ { label: '10k', value: 10000, multiplier: 1 }, { label: '100k', value: 100000, multiplier: 2 }, { label: '500k', value: 500000, multiplier: 5 }, { label: '1M', value: 1000000, multiplier: 8 }, { label: '10M+', value: 10000000, multiplier: 15 }, ] export default function PricingSection() { const [isYearly, setIsYearly] = useState(false) const [sliderIndex, setSliderIndex] = useState(2) // Default to middle tier (500k) const currentTraffic = TRAFFIC_TIERS[sliderIndex] const calculatePrice = (basePrice: number, multiplier: number) => { let price = basePrice * multiplier if (isYearly) { price = price * 0.8 // 20% discount (approx 2 months free) } return Math.round(price) } return (

Traffic based plans that match your growth

Sign up for 30-day free trial. No credit card required.

{/* Controls Container */}
{/* Slider */}
10k Up to {currentTraffic.label} monthly pageviews 10M+
setSliderIndex(parseInt(e.target.value))} className="w-full h-2 bg-neutral-200 rounded-lg appearance-none cursor-pointer dark:bg-neutral-700 accent-brand-orange" />
{/* Toggle */}
Monthly Yearly 2 months free
{/* Pricing Cards Grid */}
{TIERS.map((tier) => (

{tier.name}

€{calculatePrice(tier.basePrice, currentTraffic.multiplier)} /{isYearly ? 'mo' : 'month'}
{isYearly && (

Billed yearly

)}
    {tier.features.map((feature) => (
  • {feature}
  • ))}
))} {/* Enterprise Card (Dark Style) */}

Enterprise

Custom

For high volume sites

    {[ 'Everything in Business', '10+ sites', 'Unlimited team members', 'SLA & Priority Support', 'Managed Proxy', 'Raw data export' ].map((feature) => (
  • {feature}
  • ))}
) }