/* ═══════════════════════════════════════════════════
   PRO Premium Design System
   Browser_subagent 원칙 금지 이후, PRO 뉴스레터 디자인을
   공통 CSS로 추출 (2026-02-17)
   ═══════════════════════════════════════════════════ */

/* ── 기본 리셋 & 폰트 ────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pro-primary: #7c40ed;
  --pro-primary-dark: #4C1D95;
  --pro-gold: #d97706;
  --pro-gold-light: #fef3c7;
  --pro-gold-gradient: linear-gradient(135deg, #d97706, #fbbf24);
  --pro-header-gradient: linear-gradient(135deg, #4C1D95 0%, #7c40ed 100%);
  --pro-bg: #f8fafc;
  --pro-card-bg: #ffffff;
  --pro-text: #1e293b;
  --pro-text-muted: #64748b;
  --pro-border: #e2e8f0;
  --pro-radius: 12px;
  --pro-shadow: 0 4px 24px rgba(0,0,0,0.08);
  --pro-shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --pro-font: 'Inter', 'Pretendard', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', sans-serif;
}

body {
  font-family: var(--pro-font);
  background: var(--pro-bg);
  color: var(--pro-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pro-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── 골드 액센트 라인 ─────────────────────────── */
.pro-accent-line {
  position: fixed; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--pro-gold-gradient);
  z-index: 50;
}

/* ── 프리미엄 헤더 ────────────────────────────── */
.pro-header {
  position: relative;
  background: var(--pro-header-gradient);
  color: #fff;
  padding: 3rem 2rem 3.5rem;
  overflow: hidden;
}

.pro-header::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  filter: blur(40px);
}

.pro-header::after {
  content: '';
  position: absolute; bottom: -40px; left: 120px;
  width: 160px; height: 160px;
  background: rgba(217,119,6,0.1);
  border-radius: 50%;
  filter: blur(30px);
}

.pro-header-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: var(--pro-gold-gradient);
  color: #000;
  box-shadow: 0 2px 8px rgba(217,119,6,0.3);
  border: 1px solid rgba(251,191,36,0.5);
}

.pro-badge .icon { font-size: 14px; }

.pro-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 0.75rem;
  line-height: 1.3;
}

.pro-header h1 span { font-weight: 300; opacity: 0.9; }

.pro-header-sub {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* ── 메인 레이아웃 ────────────────────────────── */
.pro-layout {
  max-width: 900px;
  margin: -1.5rem auto 0;
  padding: 0 1.5rem 4rem;
  position: relative;
  z-index: 10;
}

/* ── 카드 ──────────────────────────────────────── */
.pro-card {
  background: var(--pro-card-bg);
  border-radius: var(--pro-radius);
  border: 1px solid var(--pro-border);
  box-shadow: var(--pro-shadow);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pro-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pro-shadow-lg);
}

.pro-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pro-text);
  margin-bottom: 0.5rem;
}

.pro-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pro-text-muted);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.pro-card p {
  font-size: 0.875rem;
  color: var(--pro-text-muted);
  line-height: 1.7;
}

/* ── 킷 카드 그리드 ───────────────────────────── */
.pro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.pro-kit-card {
  background: var(--pro-card-bg);
  border-radius: var(--pro-radius);
  border: 1px solid var(--pro-border);
  box-shadow: var(--pro-shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pro-kit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pro-shadow-lg);
}

.pro-kit-card .kit-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.pro-kit-card .kit-icon.school { background: #ede9fe; color: #7c3aed; }
.pro-kit-card .kit-icon.decision { background: #fef3c7; color: #d97706; }
.pro-kit-card .kit-icon.printable { background: #e0f2fe; color: #0284c7; }

.pro-kit-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pro-kit-card p {
  font-size: 0.8rem;
  color: var(--pro-text-muted);
  flex-grow: 1;
  margin-bottom: 1rem;
}

.pro-kit-card .kit-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pro-kit-card .kit-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
  background: #f1f5f9;
  color: var(--pro-text-muted);
  font-weight: 500;
}

/* ── 섹션 제목 ────────────────────────────────── */
.pro-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pro-text-muted);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--pro-border);
}

/* ── 워터마크 ──────────────────────────────────── */
.pro-watermark {
  background-image: repeating-linear-gradient(
    45deg, transparent, transparent 20px,
    rgba(124, 64, 237, 0.015) 20px, rgba(124, 64, 237, 0.015) 40px
  );
}

/* ── 킷 아이템 (체크리스트/질문 등) ───────────── */
.pro-item-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pro-item-list li {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.pro-item-list li:last-child { border-bottom: none; }

.pro-item-list .item-id {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--pro-primary);
  background: #ede9fe;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── 편지 미리보기 ────────────────────────────── */
.pro-letter-preview {
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: var(--pro-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  line-height: 1.8;
  position: relative;
}

.pro-letter-preview::before {
  content: '✉️';
  position: absolute;
  top: -10px; right: 12px;
  font-size: 1.5rem;
}

.pro-letter-preview h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #92400e;
}

/* ── 버튼 ──────────────────────────────────────── */
.pro-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.pro-btn:hover { text-decoration: none; }

.pro-btn-primary {
  background: var(--pro-primary);
  color: #fff;
}
.pro-btn-primary:hover { background: var(--pro-primary-dark); }

.pro-btn-gold {
  background: var(--pro-gold-gradient);
  color: #000;
  font-weight: 700;
}
.pro-btn-gold:hover { opacity: 0.9; }

.pro-btn-outline {
  background: transparent;
  color: var(--pro-primary);
  border: 1.5px solid var(--pro-primary);
}
.pro-btn-outline:hover { background: #ede9fe; }

/* ── 카테고리 헤더 ────────────────────────────── */
.pro-category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-radius: 8px;
  margin: 1rem 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pro-text);
}

.pro-category .cat-count {
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--pro-primary);
  color: #fff;
  padding: 1px 6px;
  border-radius: 10px;
}

/* ── 디스클레이머 ──────────────────────────────── */
.pro-disclaimer {
  margin: 2rem 0 0;
  padding: 1rem;
  background: #fef2f2;
  border-left: 3px solid #e94560;
  border-radius: 0 8px 8px 0;
  font-size: 0.78rem;
  color: #555;
  line-height: 1.6;
}

/* ── 프리미엄 푸터 ────────────────────────────── */
.pro-footer {
  background: #fff;
  border-top: 1px solid var(--pro-border);
  padding: 2.5rem 2rem;
  margin-top: auto;
}

.pro-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.pro-footer h5 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pro-footer h5 span { color: var(--pro-primary); }

.pro-footer p {
  font-size: 0.72rem;
  color: var(--pro-text-muted);
  max-width: 400px;
  line-height: 1.6;
}

.pro-footer .copyright {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* ── Trust & Legal Section ────────────────────── */
.pro-trust-section {
  max-width: 520px;
  margin: 2.5rem auto 0;
  padding: 0 1rem;
}

.pro-trust-card {
  background: var(--pro-card-bg);
  border: 1px solid var(--pro-border);
  border-radius: var(--pro-radius);
  box-shadow: var(--pro-shadow);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.pro-trust-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pro-primary), #e94560, var(--pro-gold));
}

.pro-trust-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pro-text-muted);
  margin-bottom: 1rem;
}

.pro-trust-title .material-icons {
  font-size: 1rem;
  color: var(--pro-primary);
}

.pro-trust-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pro-trust-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--pro-text);
  text-decoration: none;
  transition: all 0.2s;
}

.pro-trust-link:hover {
  background: #ede9fe;
  border-color: rgba(124,64,237,0.2);
  color: var(--pro-primary);
  text-decoration: none;
  transform: translateY(-1px);
}

.pro-trust-link .material-icons {
  font-size: 0.9rem;
  color: var(--pro-text-muted);
}

.pro-trust-link:hover .material-icons {
  color: var(--pro-primary);
}

.pro-trust-disclaimer {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-left: 3px solid #e94560;
  border-radius: 0 8px 8px 0;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #7f1d1d;
  margin-bottom: 0.75rem;
}

.pro-trust-disclaimer b {
  color: #991b1b;
}

.pro-trust-operator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--pro-border);
  font-size: 0.7rem;
  color: var(--pro-text-muted);
}

.pro-trust-operator .material-icons {
  font-size: 0.85rem;
  color: var(--pro-gold);
}

@media (max-width: 480px) {
  .pro-trust-links { grid-template-columns: 1fr; }
}

/* ── 통계/하이라이트 ──────────────────────────── */
.pro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.pro-stat {
  text-align: center;
  padding: 1rem;
  background: var(--pro-card-bg);
  border-radius: var(--pro-radius);
  border: 1px solid var(--pro-border);
}

.pro-stat .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--pro-primary);
}

.pro-stat .stat-label {
  font-size: 0.72rem;
  color: var(--pro-text-muted);
  margin-top: 0.25rem;
}

/* ── 근거 출처 박스 ───────────────────────────── */
.pro-evidence-box {
  background: rgba(124,64,237,0.04);
  border: 1px solid rgba(124,64,237,0.12);
  border-radius: var(--pro-radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.pro-evidence-box h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pro-text-muted);
  margin-bottom: 0.5rem;
}

.pro-evidence-box p {
  font-size: 0.78rem;
  color: var(--pro-text-muted);
  line-height: 1.6;
}

/* ── 반응형 ───────────────────────────────────── */
@media (max-width: 768px) {
  .pro-header { padding: 2rem 1.25rem 2.5rem; }
  .pro-header h1 { font-size: 1.5rem; }
  .pro-layout { padding: 0 1rem 3rem; }
  .pro-grid { grid-template-columns: 1fr; }
  .pro-stats { grid-template-columns: 1fr; }
  .pro-footer-inner { flex-direction: column; text-align: center; }
  .pro-accent-line { display: none; }
}
