export type MailPlanCardKey = "free" | "growth" | "team";

export type MailPlanCardDefinition = {
  cta: string | null;
  description: string;
  featured: boolean;
  features: string[];
  key: MailPlanCardKey;
  label: string;
  note: string;
  price: string;
  priceSuffix: string;
  title: string;
};

export const MAIL_FREE_PLAN_CARD: MailPlanCardDefinition = {
  key: "free",
  label: "Free",
  title: "무료",
  description: "대표자 1명이 가장 먼저 쓰는 시작 플랜",
  price: "0원",
  priceSuffix: "",
  note: "대표 메일 1개는 무료로 시작",
  features: [
    "이메일 계정 1개",
    "커스텀 도메인 연결",
    "웹메일 · 모바일 대응",
    "메일 송수신 · 스팸 필터",
  ],
  cta: "무료로 시작하기",
  featured: false,
};

export const MAIL_GROWTH_PLAN_CARD: MailPlanCardDefinition = {
  key: "growth",
  label: "Growth",
  title: "성장",
  description: "AI 어시스트와 팀 메일 운영을 시작하는 시점",
  price: "3,900원",
  priceSuffix: "/사용자 · 월",
  note: "성장 플랜 팀 인원 기준 과금",
  features: [
    "직원 계정 추가",
    "사용량 증가 · 팀 확장",
    "AI 어시스트 브릿지",
  ],
  cta: "성장 플랜 시작",
  featured: true,
};

export const MAIL_TEAM_PLAN_CARD: MailPlanCardDefinition = {
  key: "team",
  label: "Team",
  title: "팀",
  description: "권한 분리와 운영 정책이 필요한 조직",
  price: "준비 중",
  priceSuffix: "",
  note: "고급 팀 기능은 순차 공개",
  features: [
    "성장 플랜 전 기능 포함",
    "권한 분리 · 정책 관리",
    "공유 주소 운영 고도화",
    "도입 상담 우선 대응",
  ],
  cta: null,
  featured: false,
};

export const MAIL_PLAN_CARDS: readonly MailPlanCardDefinition[] = [
  MAIL_FREE_PLAN_CARD,
  MAIL_GROWTH_PLAN_CARD,
  MAIL_TEAM_PLAN_CARD,
];
