/* AICreator Pricing Section(TASK-009) — 독립 CSS, pr- 프리픽스.
   Brain/Workflow/Publishing/ContentOps/Success와 같은 다크 톤을 재사용한다.
   결제주기 Toggle 없음 — Starter 월간/연간/Brain 3개 상품을 한 화면에서 비교. */

.pr-root {
  --pr-bg-0: #05060a;
  --pr-bg-1: #0a0d16;
  --pr-text: #f8fafc;
  --pr-text-dim: rgba(248, 250, 252, 0.72);
  --pr-text-faint: rgba(248, 250, 252, 0.45);
  --pr-border: rgba(255, 255, 255, 0.12);
  --pr-accent-a: #5b7cff;
  --pr-accent-b: #8b5cf6;
  --pr-accent-c: #22d3ee;
  --pr-good: #34d399;
  --pr-ease: cubic-bezier(0.16, 1, 0.3, 1);

  position: relative;
  background: linear-gradient(180deg, var(--pr-bg-1), var(--pr-bg-0));
  color: var(--pr-text);
  padding: clamp(64px, 9vw, 120px) max(24px, 4vw);
  font-family: 'Noto Sans KR', sans-serif;
}
.pr-root * { box-sizing: border-box; }
.pr-container { max-width: 1200px; margin: 0 auto; }

.pr-heading { text-align: center; max-width: 640px; margin: 0 auto clamp(20px, 3vw, 28px); }
.pr-eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #8b9bff; margin-bottom: 16px; }
.pr-title { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; line-height: 1.3; margin: 0 0 16px; word-break: keep-all; }
.pr-desc { font-size: clamp(0.95rem, 1.2vw, 1.05rem); color: var(--pr-text-dim); line-height: 1.7; margin: 0 0 10px; word-break: keep-all; }
.pr-support { font-size: 13px; color: var(--pr-text-faint); margin: 0; }

/* ── Pricing Grid ──────────────────────────────────────── */
/* 연간 플랜을 내리면서 카드가 2개(Starter 월간/Brain)가 되어 2열로 맞춘다.
   연간을 되살릴 때 repeat(3, 1fr) + max-width 해제로 되돌릴 것. */
.pr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
  align-items: start;
  max-width: 800px;
  margin: clamp(48px, 6vw, 72px) auto;
}

.pr-card {
  display: flex; flex-direction: column;
  padding: clamp(28px, 2.6vw, 36px) clamp(24px, 2.2vw, 30px);
  border-radius: 28px; border: 1px solid var(--pr-border);
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  transition: transform 0.25s var(--pr-ease), border-color 0.25s var(--pr-ease), box-shadow 0.25s var(--pr-ease);
}
.pr-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.24); }

.pr-card[data-highlighted="true"] {
  border-color: rgba(91,124,255,0.55);
  background: linear-gradient(135deg, rgba(91,124,255,0.12), rgba(139,92,246,0.05));
  box-shadow: 0 24px 70px rgba(91,124,255,0.25);
  transform: translateY(-10px);
}
.pr-card[data-highlighted="true"]:hover { transform: translateY(-14px); }

.pr-card[data-plan="brain"] .pr-plan-icon { background: rgba(196,181,253,0.16); color: #c4b5fd; }

.pr-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em;
  color: #05070d; background: linear-gradient(120deg, var(--pr-accent-a), var(--pr-accent-c));
  padding: 5px 14px; border-radius: 999px; margin-bottom: 18px;
}

.pr-plan-name { font-size: 19px; font-weight: 800; margin: 0 0 6px; }
.pr-plan-desc { font-size: 13.5px; color: var(--pr-text-dim); line-height: 1.6; margin: 0 0 20px; min-height: 42px; word-break: keep-all; }

.pr-price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.pr-price-value { font-size: clamp(1.9rem, 2.6vw, 2.4rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.pr-price-unit { font-size: 14px; font-weight: 700; color: var(--pr-text-faint); }
.pr-price-secondary { font-size: 12.5px; color: var(--pr-text-faint); margin: 0 0 4px; }
.pr-price-savings { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #6ee7b7; margin: 4px 0 0; }

.pr-features { list-style: none; margin: 24px 0 28px; padding: 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pr-feature { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--pr-text-dim); }
.pr-feature-icon { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.pr-feature-icon svg { width: 12px; height: 12px; }
.pr-feature[data-included="true"] .pr-feature-icon { background: rgba(52,211,153,0.16); color: var(--pr-good); }
.pr-feature[data-included="false"] .pr-feature-icon { background: rgba(255,255,255,0.06); color: var(--pr-text-faint); }
.pr-feature[data-included="false"] { color: var(--pr-text-faint); text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.2); }
.pr-feature .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.pr-cta {
  display: block; text-align: center; padding: 15px 20px; border-radius: 16px;
  font-weight: 700; font-size: 14.5px; text-decoration: none; min-height: 44px;
  transition: transform 0.18s var(--pr-ease), box-shadow 0.18s var(--pr-ease), border-color 0.18s, background 0.18s;
}
.pr-cta:active { transform: scale(0.98); }
.pr-cta:focus-visible { outline: 2px solid var(--pr-accent-c); outline-offset: 3px; }
.pr-cta-primary { background: linear-gradient(120deg, var(--pr-accent-a), var(--pr-accent-b)); color: #05070d; box-shadow: 0 10px 30px rgba(91,124,255,0.35); }
.pr-cta-primary:hover { box-shadow: 0 12px 38px rgba(91,124,255,0.5); }
.pr-cta-secondary { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.24); color: var(--pr-text); }
.pr-cta-secondary:hover { border-color: rgba(255,255,255,0.44); background: rgba(255,255,255,0.08); }

/* ── Plan Difference ───────────────────────────────────── */
.pr-diff { max-width: 900px; margin: 0 auto; }
.pr-diff-title { text-align: center; font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 800; margin: 0 0 24px; }
.pr-diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pr-diff-card {
  padding: 22px 24px; border-radius: 20px; border: 1px solid var(--pr-border);
  background: rgba(255,255,255,0.03);
}
.pr-diff-name { font-size: 13px; font-weight: 800; color: #8b9bff; margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.pr-diff-tagline { font-size: 16px; font-weight: 800; margin: 0 0 8px; }
.pr-diff-desc { font-size: 13.5px; color: var(--pr-text-dim); line-height: 1.6; margin: 0; word-break: keep-all; }

/* ── Scroll-reveal 초기 상태(FOUC 방지, JS가 IntersectionObserver로 in) ── */
.pr-reveal { opacity: 0; }

/* ── Reduced Motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .pr-root *, .pr-root *::before, .pr-root *::after { transition-duration: 0.1s !important; animation-duration: 0.1s !important; }
  .pr-reveal { opacity: 1 !important; transform: none !important; }
  .pr-card[data-highlighted="true"] { transform: none; }
}

/* ── Tablet ────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .pr-grid { grid-template-columns: repeat(2, 1fr); }
  .pr-card[data-highlighted="true"] { grid-column: span 2; transform: none; }
  .pr-card[data-highlighted="true"]:hover { transform: translateY(-4px); }
}

/* ── Mobile: Vertical Stack ───────────────────────────────── */
@media (max-width: 640px) {
  .pr-grid { grid-template-columns: 1fr; }
  .pr-card[data-highlighted="true"] { grid-column: auto; }
  .pr-diff-grid { grid-template-columns: 1fr; }
}
