/* ============================================================
   미식 MISIK — 요금제 페이지 스타일시트
   pricing.css
   ============================================================ */

/* ── 1. 변수 & 리셋 ─────────────────────────────────────── */
:root {
  --purple:       #6B52E5;
  --purple-dark:  #5240c4;
  --purple-light: #EEEDFE;
  --yellow:       #FFC80D;
  --yellow-dark:  #e6b400;
  --white:        #FFFFFF;
  --gray-50:      #FAFAF8;
  --gray-100:     #F5F5F2;
  --gray-200:     #EBEBЕ8;
  --gray-300:     #D3D1C7;
  --gray-400:     #B4B2A9;
  --gray-600:     #5F5E5A;
  --gray-800:     #2C2C2A;
  --text-primary:   #1A1A18;
  --text-secondary: #5F5E5A;
  --green-bg:   #EAF3DE;
  --green-text: #3B6D11;
  --blue-bg:    #E6F1FB;
  --blue-text:  #185FA5;
  --amber-bg:   #FFF4D6;
  --amber-text: #9a6d00;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--gray-50);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── 2. 네비게이션 ──────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,248,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #E8E8E4;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 36px; height: 36px;
  background: var(--purple);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.logo-text { font-size: 18px; font-weight: 700; color: var(--purple); letter-spacing: -0.5px; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-link { font-size: 13px; color: var(--text-secondary); text-decoration: none; }
.nav-link:hover { color: var(--text-primary); }
.nav-cta {
  background: var(--purple);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 13px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--purple-dark); }

/* ── 3. 히어로 ──────────────────────────────────────────── */
.hero { text-align: center; padding: 68px 2rem 52px; max-width: 720px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: var(--purple-light); color: var(--purple);
  font-size: 12px; font-weight: 500;
  padding: 5px 14px; border-radius: 20px;
  margin-bottom: 20px; letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(26px, 5vw, 40px); font-weight: 700;
  color: var(--text-primary); line-height: 1.25;
  letter-spacing: -1px; margin-bottom: 16px;
}
.hero h1 span { color: var(--purple); }
.hero p { font-size: 15px; color: var(--text-secondary); line-height: 1.8; max-width: 540px; margin: 0 auto; }

/* ── 4. 공통 기능 배너 ──────────────────────────────────── */
.common-banner {
  background: white;
  border-top: 1px solid #E8E8E4;
  border-bottom: 1px solid #E8E8E4;
  padding: 20px 2rem;
}
.common-banner-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.common-label {
  font-size: 11px; font-weight: 700; color: var(--gray-400);
  letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap; margin-right: 4px;
}
.common-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--gray-100); border: 1px solid #E0E0DC;
  border-radius: 20px; padding: 4px 12px;
  font-size: 12px; color: var(--text-secondary); white-space: nowrap;
}
.common-chip svg { flex-shrink: 0; }

/* ── 5. 요금제 카드 ─────────────────────────────────────── */
.pricing-section { max-width: 1080px; margin: 0 auto; padding: 40px 2rem 72px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.plan-card {
  background: white;
  border: 1.5px solid #D8D6D2;
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.plan-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.09); }
.plan-card.featured { border: 2px solid var(--purple); padding-top: 44px; }

.featured-badge {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--purple); color: white;
  font-size: 11px; font-weight: 700;
  padding: 5px 18px; border-radius: 0 0 10px 10px;
  white-space: nowrap; letter-spacing: 0.04em;
}

.plan-tier { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #888680; margin-bottom: 5px; }
.plan-tier.featured { color: var(--purple); }
.plan-name { font-size: 20px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.4px; margin-bottom: 4px; }
.plan-tagline { font-size: 13px; color: #4A4845; line-height: 1.65; margin-bottom: 20px; min-height: 40px; }

.price-block { margin-bottom: 4px; }
.price-main { display: flex; align-items: baseline; gap: 3px; }
.price-num { font-size: 32px; font-weight: 700; letter-spacing: -1.5px; color: var(--text-primary); line-height: 1; }
.price-suffix { font-size: 13px; color: #4A4845; }
.price-note { font-size: 12px; color: #6E6C68; margin-top: 3px; margin-bottom: 20px; }

.plan-cta {
  display: block; width: 100%; padding: 12px;
  border-radius: 10px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 13px; font-weight: 700;
  cursor: pointer; text-align: center; text-decoration: none;
  transition: all 0.15s; margin-bottom: 20px; border: none;
}
.plan-cta.outline { background: white; border: 1.5px solid #C8C6C2; color: #1A1A18; }
.plan-cta.outline:hover { border-color: var(--purple); color: var(--purple); }
.plan-cta.solid { background: var(--purple); color: white; }
.plan-cta.solid:hover { background: var(--purple-dark); }
.plan-cta.muted { background: #F0EEEA; color: #3A3835; border: 1.5px solid #D0CEC8; }
.plan-cta.muted:hover { color: #1A1A18; border-color: #A0A09A; background: #E8E6E2; }

.card-divider { height: 1px; background: #ECEAE6; margin-bottom: 16px; }

.feat-group-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: #7A7874; margin-bottom: 10px; margin-top: 14px;
}
.feat-group-label:first-of-type { margin-top: 0; }

/* 카드 하단 고정을 위한 spacer */
.card-spacer { flex: 1; }

.feat-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feat-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: #2A2A28; line-height: 1.55; }
.feat-list li.dim { color: #7A7874; }

.dot-check {
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.dot-check.green  { background: #B8DCA0; }
.dot-check.purple { background: #C8C0F8; }
.dot-check.amber  { background: #FFD870; }
.dot-check.gray   { background: #D8D6D2; }
.dot-check svg { width: 8px; height: 8px; }

.overcharge-box {
  background: #F0EEEA;
  border: 1px solid #D8D6D2;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px; color: #3A3835; line-height: 1.65;
  margin-top: 16px;
}
.overcharge-box strong { color: #1A1A18; font-weight: 700; }

/* ── 6. 데이터 분석 섹션 ─────────────────────────────────── */
.data-section { background: white; border-top: 1px solid #E8E8E4; padding: 64px 2rem; }
.section-title { text-align: center; font-size: 24px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 10px; }
.section-sub { text-align: center; font-size: 14px; color: var(--text-secondary); margin-bottom: 48px; line-height: 1.7; }

.data-grid {
  max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
}
.data-card { background: var(--gray-100); border-radius: 14px; padding: 22px; }
.data-card-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.data-card h3 { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.data-card p { font-size: 12px; color: var(--text-secondary); line-height: 1.65; }
.data-card .card-tag { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 4px; margin-top: 10px; }
.tag-all { background: var(--gray-300); color: var(--gray-600); }
.tag-std { background: var(--purple-light); color: var(--purple); }
.tag-ent { background: var(--amber-bg); color: var(--amber-text); }

/* ── 7. AG-Grid 배너 ────────────────────────────────────── */
.aggrid-strip { background: var(--purple); padding: 40px 2rem; }
.aggrid-inner { max-width: 940px; margin: 0 auto; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.aggrid-left { flex: 1; min-width: 260px; }
.aggrid-left .badge {
  background: rgba(255,255,255,0.18); color: rgba(255,255,255,0.9);
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 4px;
  display: inline-block; margin-bottom: 10px; letter-spacing: 0.05em;
}
.aggrid-left h3 { color: white; font-size: 18px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 8px; }
.aggrid-left p { color: rgba(255,255,255,0.75); font-size: 13px; line-height: 1.7; }
.aggrid-right { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; min-width: 260px; }
.ag-chip {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px; padding: 10px 14px; min-width: 130px;
}
.ag-chip .ag-chip-icon { font-size: 18px; margin-bottom: 4px; }
.ag-chip .ag-chip-title { font-size: 12px; font-weight: 700; color: white; margin-bottom: 2px; }
.ag-chip .ag-chip-desc { font-size: 11px; color: rgba(255,255,255,0.65); line-height: 1.5; }

/* ── 8. 기능 비교표 ─────────────────────────────────────── */
.compare-section { max-width: 900px; margin: 0 auto; padding: 64px 2rem; }
.compare-section h2 { font-size: 22px; font-weight: 700; text-align: center; letter-spacing: -0.5px; margin-bottom: 32px; }

.compare-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  table-layout: fixed;
  border: 1px solid #E0DDD8; border-radius: 12px; overflow: hidden;
}
.compare-table th {
  padding: 14px 18px; text-align: center;
  font-size: 11px; font-weight: 700;
  border-bottom: 2px solid #D8D8D4;
  color: var(--text-secondary); letter-spacing: 0.06em; text-transform: uppercase;
}
.compare-table th.col-feat { text-align: left; width: 44%; }
.compare-table th.col-plan { color: var(--text-primary); font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 700; }
.compare-table th.col-featured { color: var(--purple); }
.compare-table td { padding: 13px 18px; border-bottom: 1px solid #ECEAE6; color: var(--text-primary); font-size: 14px; }
.compare-table td:not(:first-child) { text-align: center; }
.compare-table tr:hover td { background: #F8F7F4; }
.compare-table .group-row td {
  background: #F0EEEA;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #4A4845; padding: 9px 18px; border-bottom: none;
}
.ci { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-weight: 700; }
.ci-g { background: #C8E6B0; color: #2D5A0E; }
.ci-p { background: #D4CCFA; color: #4530B8; }
.ci-a { background: #FFE8A0; color: #7A5000; }
.ci-x { background: #E4E2DE; color: #888680; font-size: 13px; font-weight: 400; }
.ci-note { font-size: 13px; color: var(--text-primary); font-weight: 500; }

/* ── 9. 파트너 섹션 ─────────────────────────────────────── */
.partners-section { background: var(--gray-100); border-top: 1px solid #E8E8E4; padding: 56px 2rem; }
.partners-inner { max-width: 900px; margin: 0 auto; }
.partner-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 36px; }
.partner-card { background: white; border: 1px solid #E8E8E4; border-radius: 12px; padding: 18px; display: flex; align-items: flex-start; gap: 12px; }
.p-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.partner-card h4 { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.partner-card p { font-size: 11.5px; color: var(--text-secondary); line-height: 1.55; }

/* ── 10. FAQ ────────────────────────────────────────────── */
.faq-section { max-width: 680px; margin: 0 auto; padding: 64px 2rem; }
.faq-section h2 { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 36px; letter-spacing: -0.5px; }
.faq-item { border-bottom: 1px solid #EBEBЕ8; padding: 17px 0; cursor: pointer; }
.faq-q {
  font-size: 13.5px; font-weight: 500; color: var(--text-primary);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  user-select: none;
}
.faq-arrow { width: 18px; height: 18px; flex-shrink: 0; color: var(--gray-400); transition: transform 0.2s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { display: none; font-size: 13px; color: var(--text-secondary); line-height: 1.75; padding-top: 10px; }
.faq-item.open .faq-a { display: block; }

/* ── 11. CTA 배너 ───────────────────────────────────────── */
.cta-band { background: var(--purple); padding: 56px 2rem; text-align: center; }
.cta-band h2 { font-size: clamp(20px, 4vw, 28px); font-weight: 700; color: white; margin-bottom: 10px; letter-spacing: -0.5px; }
.cta-band p { color: rgba(255,255,255,0.75); font-size: 14px; margin-bottom: 28px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-w {
  background: white; color: var(--purple);
  padding: 12px 28px; border-radius: 10px;
  font-family: 'Noto Sans KR', sans-serif; font-size: 14px; font-weight: 700;
  border: none; cursor: pointer; text-decoration: none; transition: all 0.15s;
}
.btn-w:hover { background: #F0F0F8; }
.btn-ow {
  background: transparent; color: white;
  padding: 12px 28px; border-radius: 10px;
  font-family: 'Noto Sans KR', sans-serif; font-size: 14px; font-weight: 400;
  border: 1.5px solid rgba(255,255,255,0.45); cursor: pointer; text-decoration: none;
  transition: border-color 0.15s;
}
.btn-ow:hover { border-color: white; }

/* ── 12. 푸터 ───────────────────────────────────────────── */
footer { background: var(--gray-800); color: rgba(255,255,255,0.45); padding: 32px 2rem; text-align: center; font-size: 12px; line-height: 2; }
footer a { color: rgba(255,255,255,0.6); text-decoration: none; }
footer a:hover { color: white; }
.footer-disclaimer { margin-top: 12px; font-size: 11px; color: rgba(255,255,255,0.28); }

/* ── 13. 반응형 ─────────────────────────────────────────── */
@media (max-width: 780px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .compare-table { font-size: 11px; }
  .compare-table th,
  .compare-table td { padding: 8px 8px; }
  .aggrid-inner { gap: 24px; }
}