// ---------------------------------------------------------------------------
// Anonymized demo data for the marketing landing page.
// Source: real compramostucoche.es report, anonymized as "Bistro El Sol".
// Stripped: top_quotes, evidence, detail (contain real customer text).
// ---------------------------------------------------------------------------

export interface DemoTheme {
  label: string;
  domain: string;
  count: number;
  weight: number;
  primitive: string;
  valence: { positive: number; negative: number; neutral: number; mixed: number };
}

export interface DemoAction {
  action: string;
  owner: string;
  effort: "low" | "medium" | "high";
  impact: "low" | "medium" | "high";
  source: string;
  timeline: string;
  success_metric: string;
}

// Top 15 themes (dropped tail with count ≤ 2)
export const DEMO_THEMES: DemoTheme[] = [
  { label: "Manner/Attitude", domain: "P", count: 471, weight: 1.0, primitive: "MANNER", valence: { positive: 462, negative: 9, neutral: 0, mixed: 0 } },
  { label: "Speed/Wait", domain: "J", count: 129, weight: 1.0, primitive: "SPEED", valence: { positive: 129, negative: 0, neutral: 0, mixed: 0 } },
  { label: "Competence", domain: "P", count: 47, weight: 1.0, primitive: "COMPETENCE", valence: { positive: 47, negative: 0, neutral: 0, mixed: 0 } },
  { label: "Recommend", domain: "meta", count: 45, weight: 1.0, primitive: "RECOMMEND", valence: { positive: 45, negative: 0, neutral: 0, mixed: 0 } },
  { label: "Price Fairness", domain: "V", count: 41, weight: 1.0, primitive: "PRICE_FAIRNESS", valence: { positive: 38, negative: 3, neutral: 0, mixed: 0 } },
  { label: "Attentiveness", domain: "P", count: 27, weight: 1.0, primitive: "ATTENTIVENESS", valence: { positive: 26, negative: 1, neutral: 0, mixed: 0 } },
  { label: "Value for Money", domain: "V", count: 24, weight: 1.0, primitive: "VALUE_FOR_MONEY", valence: { positive: 19, negative: 5, neutral: 0, mixed: 0 } },
  { label: "Effectiveness", domain: "O", count: 23, weight: 1.0, primitive: "EFFECTIVENESS", valence: { positive: 22, negative: 1, neutral: 0, mixed: 0 } },
  { label: "Friction", domain: "J", count: 16, weight: 1.0, primitive: "FRICTION", valence: { positive: 13, negative: 3, neutral: 0, mixed: 0 } },
  { label: "Reliability", domain: "J", count: 15, weight: 1.0, primitive: "RELIABILITY", valence: { positive: 14, negative: 1, neutral: 0, mixed: 0 } },
  { label: "Communication", domain: "P", count: 14, weight: 1.0, primitive: "COMMUNICATION", valence: { positive: 14, negative: 0, neutral: 0, mixed: 0 } },
  { label: "Accuracy", domain: "O", count: 11, weight: 1.0, primitive: "ACCURACY", valence: { positive: 11, negative: 0, neutral: 0, mixed: 0 } },
  { label: "Price Transparency", domain: "V", count: 8, weight: 1.0, primitive: "PRICE_TRANSPARENCY", valence: { positive: 8, negative: 0, neutral: 0, mixed: 0 } },
  { label: "Honesty", domain: "meta", count: 6, weight: 1.0, primitive: "HONESTY", valence: { positive: 6, negative: 0, neutral: 0, mixed: 0 } },
  { label: "Taste/Flavor", domain: "O", count: 5, weight: 1.0, primitive: "TASTE", valence: { positive: 4, negative: 1, neutral: 0, mixed: 0 } },
];

// 5 anonymized actions (stripped evidence + detail)
export const DEMO_ACTIONS: DemoAction[] = [
  {
    action: "Address staff attitude during assessments",
    owner: "Manager",
    effort: "medium",
    impact: "high",
    source: "MANNER",
    timeline: "This month",
    success_metric: "50% reduction in negative attitude mentions within 60 days",
  },
  {
    action: "Improve online process documentation",
    owner: "Manager",
    effort: "medium",
    impact: "medium",
    source: "FRICTION",
    timeline: "This month",
    success_metric: "80% of customers report a clearer process within 90 days",
  },
  {
    action: "Review and adjust pricing estimates",
    owner: "Manager",
    effort: "high",
    impact: "high",
    source: "VALUE_FOR_MONEY",
    timeline: "This quarter",
    success_metric: "30% increase in positive pricing mentions within 90 days",
  },
  {
    action: "Strengthen post-service communication",
    owner: "Manager",
    effort: "medium",
    impact: "high",
    source: "RELIABILITY",
    timeline: "This month",
    success_metric: "95% satisfaction in payment communication within 60 days",
  },
  {
    action: "Reinforce customer service training",
    owner: "Manager",
    effort: "medium",
    impact: "medium",
    source: "ATTENTIVENESS",
    timeline: "This month",
    success_metric: "90% positive customer attention mentions within 90 days",
  },
];

// Domain color map (same as ThemeMatrix source)
export const DOMAIN_COLORS: Record<string, string> = {
  P: "#3b82f6",   // People/Service — blue
  J: "#f59e0b",   // Journey/Process — amber
  V: "#f43f5e",   // Value — rose
  O: "#22c55e",   // Output/Product — green
  E: "#8b5cf6",   // Environment — violet
  meta: "#6b7280", // Meta — gray
};
