# features.yaml — What each ChurchWiseAI plan tier includes
#
# Source: C:\dev\churchwiseai-web\src\lib\pricing.ts (agentTiers array)
# Cross-referenced with: CLAUDE.md brand rules, PRICING.md billing rules
#
# This file describes FEATURES per tier. For pricing/Stripe IDs, see pricing.yaml.

tiers:
  starter:
    id: "starter"
    name: "Starter"
    tool_count: 12
    agents: ["Care Agent", "Coordinator Agent"]
    # Chatbot: 2 agents (Care + Coordinator). Voice: same 2 agents.
    tagline: "12 tools to get started"
    persona_label: "Perfect for Churches Testing AI Care"
    best_for: "Best for 50\u2013200 member churches wanting to capture visitors and prayer requests automatically."
    features:
      - "Prayer request capture"
      - "Visitor contact logging"
      - "Hosted care page"
      - "Service times & directions"
      - "Staff notifications"
      - "Theological lens (17 traditions)"
      - "AI Starter Kit included"
    chat_limits:
      faqs: 0              # Not available at Starter (Pro+ feature)
      documents: 0         # Not available at Starter (Pro+ feature)
      conversations_per_month: 200
      analytics_days: 0    # No analytics at Starter
    badge: null             # No "Most Popular" badge

  pro:
    id: "pro"
    name: "Pro"
    tool_count: 35
    agents: ["Care Agent", "Coordinator Agent", "Discipleship Agent", "Stewardship Agent"]
    # Chatbot: all 4 agents. Voice: Care + Coordinator only (2).
    tagline: "Your full AI ministry team"
    persona_label: "Your Full AI Ministry Team"
    best_for: "Ideal for churches ready to eliminate missed calls and automate follow-up."
    features:
      - "Everything in Starter"
      - "Premium Listing included ($4.95 value)"
      - "35 ministry tools"
      - "Theological lens (17 traditions)"
      - "Pastoral connect & booking"
      - "Small group finder"
      - "Embed widget + customization"
      - "FAQ management (50 FAQs)"
      - "Document upload (5 docs)"
      - "30-day analytics"
    chat_limits:
      faqs: 50
      documents: 5
      conversations_per_month: 1000
      analytics_days: 30
    badge: "Most Popular"
    highlighted: true

  suite:
    id: "suite"
    name: "Suite"
    tool_count: 39
    agents: ["Care Agent", "Coordinator Agent", "Discipleship Agent", "Stewardship Agent"]
    # Chatbot: all 4 agents. Voice: Care + Coordinator only (2).
    tagline: "Full platform + admin tools"
    persona_label: "Complete AI Ministry System"
    best_for: "For churches who want voice, chat, care pages, and workflow automation working together."
    features:
      - "Everything in Pro"
      - "All 39 ministry tools"
      - "Role-based team access (9 roles)"
      - "Unlimited documents & FAQs"
      - "Unlimited conversations/mo"
      - "90-day analytics + CSV/PDF export"
      - "API access"
      - "Remove ChurchWiseAI badge"
    chat_limits:
      faqs: "unlimited"
      documents: "unlimited"
      conversations_per_month: "unlimited"
      analytics_days: 90
    badge: null
    highlighted: false
    note: "Suite Voice is not available as standalone. Suite tier is chat-only or full bundle (voice+chat)."

# ═══════════════════════════════════════════════════════════════
# Add-On Products (not tiers, but have feature lists)
# ═══════════════════════════════════════════════════════════════

add_ons:
  premium_page:
    id: "premium-page"
    name: "Premium Church Page"
    price_suffix: "/mo"
    description: "A beautiful, SEO-optimized church page on PewSearch — 218K+ listings strong."
    features:
      - "Branded church profile page"
      - "SEO-optimized listing"
      - "Service times & contact info"
      - "Events & ministries section"
      - "Photo gallery"
      - "Priority placement in directory"
    cta: "Claim Your Page"
    cta_href: "https://pewsearch.com/claim"
    accent_color: "from-emerald-500 to-emerald-700"
    note: "Premium Listing ($4.95 value) included with Pro tier. Pro Website ($19.95 value) included with Suite tier."

  congregation_care:
    id: "congregation-care"
    name: "Congregation Care"
    description: "Topic-based messaging to opted-in church members via SMS and email."
    features:
      - "Member self-signup (no accounts needed)"
      - "Topic-based opt-in (prayer chains, announcements, grief support, etc.)"
      - "QR code generation for bulletins"
      - "Member management dashboard"
    broadcast_status: "DISABLED — pending proper email/SMS infrastructure"
    broadcast_requirements:
      - "Tier gating: Pro+ only (not Starter)"
      - "Per-church daily send limits (e.g., 200/day Pro, 1000/day Suite)"
      - "Church's own Twilio number as SMS sender (not our shared number)"
      - "Proper email infrastructure (church-specific sending domain or dedicated IP)"
      - "Unsubscribe compliance (CAN-SPAM, TCPA)"
    tier_access:
      starter: "Subscribe page + member management only (NO broadcasting)"
      pro: "Full broadcasting when re-enabled"
      suite: "Full broadcasting + higher send limits when re-enabled"
    care_broadcast_limits:
      starter:
        broadcasts_per_month: 0
        max_recipients: 0
        emails_per_month: 0
        note: "Subscribe page + member management only, NO broadcasting"
      pro:
        broadcasts_per_month: 4
        max_recipients: 250
        emails_per_month: 1000
      suite:
        broadcasts_per_month: 12
        max_recipients: "unlimited"
        emails_per_month: 5000
        note: "Soft cap"
    subscribe_url_pattern: "https://churchwiseai.com/care/{church-slug}/subscribe"
    admin_location: "Admin Dashboard > Care Tab"
    db_tables: ["congregation_care_members", "congregation_care_messages"]
    note: "Broadcasting was disabled 2026-03-26 because it sent mass emails from hello@churchwiseai.com (our domain) and SMS from our shared Twilio number — domain reputation and cost risk at scale."

  ai_starter_kit:
    id: "ai-starter-kit"
    name: "AI Starter Kit"
    price_suffix: " one-time"
    description: "The FAITH Framework — your church's guide to implementing AI responsibly."
    features:
      - "FAITH Framework PDF guide"
      - "AI policy templates"
      - "Staff training checklist"
      - "Theological considerations"
      - "Vendor evaluation rubric"
    cta: "Get the Kit"
    cta_href: "/api/stripe/checkout?price=ai_starter_kit"
    accent_color: "from-amber-500 to-amber-700"
    note: "Included free with any Starter tier or above."

# ═══════════════════════════════════════════════════════════════
# Badge Rules
# ═══════════════════════════════════════════════════════════════

badge_rules:
  starter: "Powered by ChurchWiseAI badge (not removable)"
  pro: "Powered by ChurchWiseAI badge (not removable)"
  suite: "Badge removable (white-label)"

# ═══════════════════════════════════════════════════════════════
# Theological Traditions
# ═══════════════════════════════════════════════════════════════

theological_traditions: 17
# Note: sai_theological_lenses table has 18 rows (17 traditions + 1 universal).
# Marketing says "17 Theological Traditions" — this counts only the denomination-specific ones.

# ═══════════════════════════════════════════════════════════════
# Channel Availability per Tier
# ═══════════════════════════════════════════════════════════════

channels:
  starter:
    chat: true
    voice: true
    bundle: true
  pro:
    chat: true
    voice: true
    bundle: true
  suite:
    chat: true
    voice: false   # Suite Voice standalone does not exist
    bundle: true   # Suite is available as chat-only or full bundle (voice+chat)

# ═══════════════════════════════════════════════════════════════
# RBAC Roles (all tiers — unlimited team members)
# ═══════════════════════════════════════════════════════════════

rbac_roles:
  count: 9
  # Source: premium-shared.ts TeamRole enum — 9 roles confirmed.
  # PewSearch has 7 roles (excludes spiritual_leader and care_leader — those are CWA-specific).
  roles:
    - { role: "admin", purpose: "Full access to all data and settings" }
    - { role: "office_admin", purpose: "Full access to pastoral and operational data" }
    - { role: "prayer_team", purpose: "Access to non-confidential prayer requests" }
    - { role: "care_team", purpose: "Access to visitor contacts, non-confidential prayer, care notes" }
    - { role: "treasurer", purpose: "Access to financial data (giving, pledges, budget)" }
    - { role: "volunteer_coordinator", purpose: "Access to volunteer signups, event RSVPs, visitor contacts" }
    - { role: "worship_leader", purpose: "Access to service schedules, worship-related data" }
    - { role: "spiritual_leader", purpose: "Access to training content and theological resources" }
    - { role: "care_leader", purpose: "Access to training content, care oversight" }
