// Pricing data — credit packs (one-time) + monthly plans + FAQ.
// Numbers are sourced from the locked pricing in the project memory:
// pack: Creator $15/3k, Studio $36/8k (featured), Scale $80/20k, Business $180/50k
// plans (≈15% off packs): Creator $13/3k, Studio $30/8k (featured), Scale $68/20k
// 2K image = 100cr, 4K image = 200cr, Standard 5s video = 150cr, Premium 5s video = 500cr.
// Social Studio generation = 300cr (gives 2 variations, single fixed resolution).
// Bulk shoot = 100cr per on-model image (same as a 2K image); run total shown before generating.
// Image counts derive from credits ÷ 100 (2K) or ÷ 200 (4K).
// Video counts derive from credits ÷ 150 (standard) or ÷ 500 (premium).
// Social Studio counts derive from credits ÷ 300.

const CREDIT_PACKS = [
  {
    id: "creator",
    name: "Creator",
    price: 15,
    credits: 3000,
    blurb: "A launch shoot.",
    perHundred: 0.50,
    images: "30 × 2K / or 15 × 4K",
    videos: "20 standard / or 6 premium",
    expires: "Never",
  },
  {
    id: "studio",
    name: "Studio",
    price: 36,
    credits: 8000,
    blurb: "A season of imagery.",
    perHundred: 0.45,
    images: "80 × 2K / or 40 × 4K",
    videos: "53 standard / or 16 premium",
    expires: "Never",
    featured: true,
  },
  {
    id: "scale",
    name: "Scale",
    price: 80,
    credits: 20000,
    blurb: "A brand campaign.",
    perHundred: 0.40,
    images: "200 × 2K / or 100 × 4K",
    videos: "133 standard / or 40 premium",
    expires: "Never",
  },
  {
    id: "business",
    name: "Business",
    price: 180,
    credits: 50000,
    blurb: "Year-round.",
    perHundred: 0.36,
    images: "500 × 2K / or 250 × 4K",
    videos: "333 standard / or 100 premium",
    expires: "Never",
  },
];

const MONTHLY_PLANS = [
  {
    id: "creator-m",
    name: "Creator",
    price: 13,
    credits: 3000,
    blurb: "Monthly, lightly.",
    perHundred: 0.43,
    images: "30 × 2K / or 15 × 4K",
    videos: "20 standard / or 6 premium",
    cancel: "Anytime",
  },
  {
    id: "studio-m",
    name: "Studio",
    price: 30,
    credits: 8000,
    blurb: "A working cadence.",
    perHundred: 0.38,
    images: "80 × 2K / or 40 × 4K",
    videos: "53 standard / or 16 premium",
    cancel: "Anytime",
    featured: true,
  },
  {
    id: "scale-m",
    name: "Scale",
    price: 68,
    credits: 20000,
    blurb: "Full pipeline.",
    perHundred: 0.34,
    images: "200 × 2K / or 100 × 4K",
    videos: "133 standard / or 40 premium",
    cancel: "Anytime",
  },
];

const FAQ_ITEMS = [
  {
    q: "What's a credit?",
    a: "It's the unit you spend each time the AI generates something. 100 credits = one 2K image. 200 = one 4K image. 150 = a 5-second standard video clip; 500 = a 5-second premium clip with audio. 10-second clips cost double. 300 = one Social Studio generation, which gives you two ad or social post variations to choose from. In Bulk shoot, each on-model image uses 100 credits, the same as a 2K image, and the total for your run is shown before you start. Sound Studio is priced by length, and the length doubles so the credits double: 100 credits for a 15 second track, 200 for 30 seconds, and 400 for 60. The exact number is shown on the button before you cut.",
  },
  {
    q: "How does Bulk shoot work?",
    a: "Bulk shoot is built for clothing brands with a lot of pieces. Upload up to 50 outfits, pick your models, scenes and angles, then choose how big a shoot you want. Each image uses 100 credits and the run total is shown before you generate. Images land in your library as they finish, so keep your browser tab open until the run completes. If you close the tab, the images already made are saved and the rest are simply not generated and not charged.",
  },
  {
    q: "Do credits expire?",
    a: "Neither expires. Pack credits never expire, and plan credits roll over too, so anything you don't use stays on your balance month to month.",
  },
  {
    q: "Standard vs premium video?",
    a: "Standard runs on a faster engine: silent, single source image, accepts portraits, ~2 minutes per clip. Premium runs on a higher-quality engine with native audio and multi-image references, but its safety system blocks forward-facing portraits to prevent deepfakes. Use Standard for portraits, Premium for hero spots.",
  },
  {
    q: "Switch or cancel?",
    a: "Anytime. Upgrades take effect immediately and prorate the charge. Downgrades take effect at the start of your next billing cycle and you keep the higher tier's credits for the current month.",
  },
  {
    q: "Need something bigger?",
    a: "For 100K+ credits a month, custom invoicing, or volume pricing, get in touch at studio@thevaultstock.com.",
  },
  {
    q: "Failed generations?",
    a: "Refunded automatically. If the AI returns no image (content safety rejection, network error, or any other failure) the credits go straight back to your balance. You only pay for generations that produce.",
  },
];

window.CREDIT_PACKS = CREDIT_PACKS;
window.MONTHLY_PLANS = MONTHLY_PLANS;
window.FAQ_ITEMS = FAQ_ITEMS;
