/* 사이트 공통 스타일 (랜딩·라이브러리·서식 페이지) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #F59E0B;
  --gold-dark: #D97706;
  --primary: #4F46E5;
  --primary-light: #EEF2FF;
  --primary-dark: #3730A3;
  --accent: #10B981;
  --accent-light: #ECFDF5;
  --dark: #1E1B4B;
  --dark2: #312E81;
  --dark3: #3730A3;
  --cream: #F8FAFF;
  --cream2: #EEF2FF;
  --text: #1E1B4B;
  --text2: #6B7280;
  --text3: #9CA3AF;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --border-dark: rgba(255,255,255,0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(79,70,229,0.08);
  --shadow-md: 0 8px 40px rgba(79,70,229,0.14);
}

body { font-family: 'Pretendard', 'Apple SD Gothic Neo', -apple-system, sans-serif; color: var(--text); background: var(--cream); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { display: block; max-width: 100%; }

/* ── NAV ── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.nav-logo-icon { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-logo-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; background: var(--cream); border-radius: 999px; padding: 4px; }
.nav-link { padding: 6px 18px; border-radius: 999px; font-size: 0.9rem; font-weight: 500; color: var(--text2); transition: all .2s; }
.nav-link:hover, .nav-link.active { background: var(--primary); color: var(--white); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ── 언어 스위처 ── */
.lang-switcher { display: flex; align-items: center; gap: 2px; background: var(--cream); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.ls-btn { padding: 4px 11px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; color: var(--text2); transition: all .15s; letter-spacing: .02em; }
.ls-btn:hover { color: var(--text); }
.ls-btn.active { background: var(--primary); color: var(--white); }
@media (max-width: 600px) { .lang-switcher { display: none; } }
.btn-login { padding: 8px 16px; font-size: 0.875rem; font-weight: 500; color: var(--text2); }
.btn-start { padding: 8px 20px; background: var(--primary); color: var(--white); border-radius: 999px; font-size: 0.875rem; font-weight: 600; transition: background .2s; }
.btn-start:hover { background: var(--primary-dark); }
.nav-user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; background: var(--cream); border: 1px solid var(--border); border-radius: 999px; cursor: pointer; transition: box-shadow .2s; }
.nav-user-chip:hover { box-shadow: var(--shadow); }
.nav-user-avatar { width: 28px; height: 28px; background: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }
.nav-user-name { font-size: 0.85rem; font-weight: 600; color: var(--text); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 40%, #EC4899 100%);
  padding: 100px 2rem 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* 브리지 이미지 레이어 — 그라데이션과 텍스트 사이 */
.hero-bridge {
  position: absolute;
  inset: 0;
  background: url('https://blogger.googleusercontent.com/img/a/AVvXsEjY7TEVQqNyuG3Siieo_bVvigBdDymfgwO-aG5TTJEyDSAsKdEoQs5rqZjfADZnmmgC2FS_y9wcZk8uISIUI9VR_oJMbXiN1Ovqvy0sa9fiMRxI2YbJKAIXgwbTNVJq-LMpFYIYNOFg2uKqGcsz9uX0KoBUrGBcVSyxlasZH8U0uBKW-2TPHw3DnVTHKIqW') center bottom / cover no-repeat;
  filter: brightness(1.55);
  mix-blend-mode: screen;
  opacity: 0.72;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(255,255,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(16,185,129,0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}
/* 텍스트 요소들이 이미지 레이어 위에 오도록 */
.hero-badge, .hero-title, .hero-desc, .hero-cta, .hero-stats, .hero-scroll {
  position: relative;
  z-index: 2;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--cream));
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  margin-bottom: 2rem;
}
.hero-badge::before { content: '✦'; color: #FCD34D; }
.hero-title { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: 1.5rem; }
.hero-title .gold { color: #FCD34D; }
.hero-desc { font-size: 1.1rem; color: rgba(255,255,255,0.8); line-height: 1.8; margin-bottom: 2.5rem; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 4rem; }
.btn-hero-primary { display: flex; align-items: center; gap: 8px; padding: 14px 28px; background: var(--white); color: var(--primary); border-radius: 999px; font-weight: 700; font-size: 0.95rem; transition: all .2s; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.btn-hero-primary:hover { background: #F0EFFE; transform: translateY(-1px); }
.btn-hero-secondary { display: flex; align-items: center; gap: 8px; padding: 14px 28px; border: 1.5px solid rgba(255,255,255,0.4); color: var(--white); border-radius: 999px; font-weight: 600; font-size: 0.95rem; transition: all .2s; backdrop-filter: blur(8px); background: rgba(255,255,255,0.1); }
.btn-hero-secondary:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.6); }
.hero-stats { display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 3rem; }
.stat-item { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--white); }
.stat-num .star { color: #FCD34D; font-size: 1.5rem; }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 4px; }
.hero-scroll { color: rgba(255,255,255,0.4); font-size: 1.2rem; margin-top: 2rem; text-align: center; }

/* ── FEATURE STRIP ── */
.feature-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
  overflow-x: auto;
  display: flex;
  scrollbar-width: none;
}
.feature-strip::-webkit-scrollbar { display: none; }
.feature-item {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 28px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  flex-shrink: 0;
}
.feature-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.feature-icon.dark { background: var(--dark); }
.feature-icon.gold { background: var(--gold); }
.feature-icon.blue { background: #3B82F6; }
.feature-item-text { }
.feature-item-title { font-weight: 600; font-size: 0.9rem; }
.feature-item-sub { font-size: 0.75rem; color: var(--text2); }

/* ── SECTION COMMON ── */
.section { padding: 80px 2rem; }
.section-tag { font-size: 0.75rem; font-weight: 700; letter-spacing: .1em; color: var(--primary); margin-bottom: 1rem; }
.section-title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; color: var(--text); margin-bottom: 1rem; }
.container { max-width: 1100px; margin: 0 auto; }

/* ── WORKFLOW ── */
.workflow-section { background: var(--cream); text-align: center; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.workflow-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem 2rem; text-align: left; }
.workflow-num { font-size: 3rem; font-weight: 900; color: var(--primary-light); margin-bottom: 1rem; background: linear-gradient(135deg, var(--primary), #EC4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.workflow-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.workflow-desc { font-size: 0.875rem; color: var(--text2); line-height: 1.7; }

/* ── REVIEWS ── */
.reviews-section { background: linear-gradient(135deg, #F0FDF4 0%, #EEF2FF 50%, #FDF4FF 100%); text-align: center; }
.reviews-section .section-title { color: var(--text); }
.reviews-section .section-tag { color: var(--primary); }
.reviews-rating { font-size: 1.5rem; margin: 1rem 0 2.5rem; }
.reviews-rating .stars { color: var(--gold); }
.reviews-rating .score { color: var(--text2); font-size: 1rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.review-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; text-align: left; box-shadow: var(--shadow); }
.review-stars { color: var(--gold); margin-bottom: 1rem; font-size: 0.9rem; }
.review-text { font-size: 0.9rem; color: var(--text2); line-height: 1.7; margin-bottom: 1.5rem; font-style: italic; }
.review-author { font-weight: 700; color: var(--text); font-size: 0.9rem; }
.review-role { font-size: 0.8rem; color: var(--text3); }

/* ── 배경 이미지 공통 레이어 ── */
.bg-img-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

/* ── CTA SECTION ── */
.cta-section { background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 60%, #EC4899 100%); text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 70%); pointer-events: none; z-index: 1; }
.cta-section .container { position: relative; z-index: 2; }
.cta-section .section-title { margin-bottom: 0.75rem; color: var(--white); }
.cta-section .section-tag { color: rgba(255,255,255,0.7); }
.cta-desc { color: rgba(255,255,255,0.8); margin-bottom: 2rem; font-size: 0.95rem; line-height: 1.7; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-cta-primary { padding: 14px 32px; background: var(--white); color: var(--primary); border-radius: 999px; font-weight: 700; font-size: 0.95rem; transition: all .2s; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.btn-cta-primary:hover { background: #F0EFFE; transform: translateY(-1px); }
.btn-cta-secondary { padding: 14px 32px; border: 1.5px solid rgba(255,255,255,0.4); color: var(--white); border-radius: 999px; font-weight: 600; font-size: 0.95rem; background: rgba(255,255,255,0.1); backdrop-filter: blur(8px); transition: all .2s; }
.btn-cta-secondary:hover { background: rgba(255,255,255,0.2); }

/* ── FOOTER ── */
.site-footer { background: #fff; border-top: 1px solid var(--border); padding: 1.5rem 2rem; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; flex-wrap: wrap; gap: 1rem; }
.footer-row1 { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.footer-logo { color: var(--dark); font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.footer-logo-icon { width: 36px; height: 36px; background: transparent; border-radius: 0; display: flex; align-items: center; justify-content: center; overflow: visible; }
.footer-logo-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.footer-sep { color: var(--border); font-size: 0.85rem; }
.footer-copy { font-size: 0.8rem; color: var(--text3); }
.footer-biz { font-size: 0.72rem; color: var(--text3); letter-spacing: 0.01em; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.8rem; color: var(--text2); transition: color .15s; }
.footer-links a:hover { color: var(--dark); }

/* ── 주간 인사이트 카드 ── */
.insight-list { display: flex; flex-direction: column; gap: 1rem; }
.insight-card {
  display: block; text-decoration: none;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.4rem 1.6rem;
  transition: border-color .15s, box-shadow .15s;
  position: relative;
}
.insight-card:hover { border-color: var(--primary); box-shadow: 0 4px 20px rgba(79,70,229,0.08); }
.insight-card-vol { font-size: 0.72rem; font-weight: 700; color: var(--primary); margin-bottom: 0.4rem; letter-spacing: 0.06em; }
.insight-card-title { font-size: 1.05rem; font-weight: 900; color: var(--dark); margin-bottom: 0.4rem; line-height: 1.4; }
.insight-card-sub { font-size: 0.82rem; color: var(--text2); line-height: 1.65; margin-bottom: 0.75rem; }
.insight-card-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.75rem; }
.insight-card-tags span { background: #EEF2FF; color: #4F46E5; font-size: 0.7rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.insight-card-arrow { font-size: 0.8rem; font-weight: 700; color: var(--primary); }

/* 주간 인사이트 — 제목만 열거하는 리스트(클릭 시 블로그) */
.insight-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.85rem 1.1rem; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.insight-row:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(79,70,229,0.08); transform: translateX(2px); }
.insight-row .ir-main { display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; min-width: 0; }
.insight-row .ir-vol { font-size: 0.7rem; font-weight: 700; color: var(--primary); letter-spacing: 0.05em; white-space: nowrap; }
.insight-row .ir-title { font-size: 0.95rem; font-weight: 800; color: var(--dark); line-height: 1.4; }
.insight-row .ir-arrow { font-size: 0.85rem; color: var(--primary); font-weight: 700; white-space: nowrap; flex-shrink: 0; }

/* ── EBOOK LIBRARY PAGE ── */
.page-header { padding: 2rem 2rem 1.5rem; background: var(--white); border-bottom: 1px solid var(--border); }
.page-header h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; }
.page-header p { font-size: 0.875rem; color: var(--text2); }
.page-header-row { display: flex; align-items: center; justify-content: space-between; }

.lang-tabs { display: flex; gap: 8px; padding: 1.5rem 2rem; background: var(--white); border-bottom: 1px solid var(--border); }
.lang-tab { padding: 8px 20px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; border: 1px solid var(--border); color: var(--text2); transition: all .2s; cursor: pointer; background: var(--white); }
.lang-tab.active { background: var(--dark); color: var(--white); border-color: var(--dark); }

.ebook-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; padding: 2rem; max-width: 1100px; margin: 0 auto; }
.book-mockup-wrap { border-radius: var(--radius-lg); overflow: hidden; background: transparent; }
.book-mockup-img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); box-shadow: 0 12px 40px rgba(0,0,0,0.18); }
.book-progress-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-top: 1rem; }
.progress-header { display: flex; align-items: center; justify-content: space-between; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.75rem; }
.progress-pct { color: #22C55E; font-weight: 700; }
.progress-bar { height: 6px; background: var(--cream2); border-radius: 3px; margin-bottom: 0.5rem; }
.progress-fill { height: 100%; background: #22C55E; border-radius: 3px; }
.progress-sub { font-size: 0.75rem; color: var(--text2); }

.chapter-list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.chapter-list-title { font-size: 1rem; font-weight: 700; }
.free-count { font-size: 0.8rem; color: var(--text2); }
.chapter-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; transition: box-shadow .2s; cursor: pointer; }
.chapter-item:hover { box-shadow: var(--shadow); }
.chapter-item.locked { opacity: 0.55; cursor: default; }
.chapter-item.locked:hover { box-shadow: none; }
.chapter-num { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; flex-shrink: 0; }
.chapter-item.locked .chapter-num { background: var(--cream2); color: var(--text3); }
.chapter-info { flex: 1; }
.chapter-name { font-weight: 600; font-size: 0.9rem; }
.chapter-meta { font-size: 0.75rem; color: var(--text2); margin-top: 2px; }
.badge-free { padding: 4px 10px; background: #DCFCE7; color: #15803D; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.badge-unlock { padding: 6px 14px; background: var(--gold); color: var(--dark); border-radius: 999px; font-size: 0.75rem; font-weight: 700; cursor: pointer; }
.chapter-arrow { color: var(--text3); font-size: 0.8rem; }

.upgrade-banner { background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between; margin-top: 1.5rem; }
.upgrade-banner-text .title { font-size: 0.95rem; font-weight: 700; color: var(--white); }
.upgrade-banner-text .sub { font-size: 0.8rem; color: rgba(255,255,255,0.65); margin-top: 2px; }
.btn-upgrade { padding: 10px 22px; background: var(--white); color: var(--primary); border-radius: 999px; font-weight: 700; font-size: 0.875rem; }

/* ── FORMS LIBRARY PAGE ── */
.forms-header {
  padding: 3rem 2rem 2.5rem;
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 40%, #EC4899 100%);
  border-bottom: none;
  position: relative;
  overflow: hidden;
}
.forms-header > div { position: relative; z-index: 2; }
.forms-header h1 { color: #fff !important; }
.forms-header p { color: rgba(255,255,255,0.75) !important; }
.forms-search-wrap { position: relative; margin: 1.25rem 0 1rem; }
.forms-search-wrap input { width: 100%; padding: 12px 48px 12px 44px; border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius); font-size: 0.9rem; font-family: inherit; background: rgba(255,255,255,0.15); color: #fff; outline: none; backdrop-filter: blur(8px); }
.forms-search-wrap input::placeholder { color: rgba(255,255,255,0.55); }
.forms-search-wrap input:focus { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.2); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.6); font-size: 1rem; }
.ai-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: rgba(255,255,255,0.15); color: #FCD34D; border-radius: 8px; font-size: 0.8rem; font-weight: 600; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.2); }
.quick-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-chip { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; font-size: 0.8rem; color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.1); cursor: pointer; transition: all .2s; backdrop-filter: blur(6px); }
.quick-chip:hover { border-color: rgba(255,255,255,0.5); color: #fff; background: rgba(255,255,255,0.2); }
.quick-chip::before { content: '✦'; color: #FCD34D; font-size: 0.65rem; }

.cat-tabs { display: flex; gap: 4px; padding: 1rem 2rem; background: var(--white); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 500; color: var(--text2); white-space: nowrap; cursor: pointer; transition: all .2s; border: none; background: none; }
.cat-tab:hover { background: var(--cream); color: var(--text); }
.cat-tab.active { background: var(--primary); color: var(--white); }

.forms-body { padding: 2rem; max-width: 1100px; margin: 0 auto; }
.featured-set { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.75rem; display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2.5rem; }
.featured-set-icon { width: 48px; height: 48px; background: #E0F2FE; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.featured-set-badges { display: flex; gap: 6px; margin-bottom: 4px; }
.badge-featured { padding: 3px 8px; background: var(--gold); color: var(--dark); border-radius: 4px; font-size: 0.7rem; font-weight: 700; }
.badge-cat { padding: 3px 8px; background: var(--cream2); color: var(--text2); border-radius: 4px; font-size: 0.7rem; font-weight: 600; }
.badge-premium { padding: 3px 8px; background: #FEF3C7; color: #92400E; border-radius: 4px; font-size: 0.7rem; font-weight: 700; }
.badge-free-label { padding: 3px 8px; background: #DCFCE7; color: #15803D; border-radius: 4px; font-size: 0.7rem; font-weight: 700; }
.featured-set-info { flex: 1; }
.featured-set-title { font-weight: 700; font-size: 1rem; margin-bottom: 2px; }
.featured-set-sub { font-size: 0.8rem; color: var(--text2); }
.featured-set-actions { display: flex; gap: 8px; }
.btn-preview { padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; font-size: 0.85rem; font-weight: 600; background: var(--white); }
.btn-download { display: flex; align-items: center; gap: 6px; padding: 8px 18px; background: var(--primary); color: var(--white); border-radius: 999px; font-size: 0.85rem; font-weight: 600; }

.section-label { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; display: flex; align-items: center; gap: 8px; }
.section-label .count { color: var(--text2); font-weight: 400; }
.filter-btn { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text2); padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--white); }

.forms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; position: relative; overflow: hidden; cursor: pointer; transition: box-shadow .2s; }
.form-card:hover { box-shadow: var(--shadow-md); }
.form-card-top-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.form-card-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.form-card-premium { position: absolute; top: 1.25rem; right: 1.25rem; padding: 4px 8px; background: #FEF3C7; color: #92400E; border-radius: 4px; font-size: 0.7rem; font-weight: 700; }
.form-card-free { position: absolute; top: 1.25rem; right: 1.25rem; padding: 4px 8px; background: #DCFCE7; color: #15803D; border-radius: 4px; font-size: 0.7rem; font-weight: 700; }
.form-card-cat-tag { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 0.72rem; font-weight: 700; }
.form-card-title { font-size: 1rem; font-weight: 700; }
.form-card-desc { font-size: 0.8rem; color: var(--text2); flex: 1; }
.form-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; font-size: 0.78rem; color: var(--text2); border-top: 1px solid var(--border); padding-top: 0.75rem; }
.form-card-footer .vol-link { color: var(--gold-dark); font-weight: 600; }
.form-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-card-preview { padding: 8px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.8rem; font-weight: 600; text-align: center; background: var(--white); }
.btn-card-download { padding: 8px; border-radius: 8px; font-size: 0.8rem; font-weight: 600; text-align: center; color: var(--white); display: flex; align-items: center; justify-content: center; gap: 5px; }

/* ── MODAL ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity .2s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--white); border-radius: var(--radius-lg); width: 100%; max-width: 520px; max-height: 85vh; display: flex; flex-direction: column; }
.modal-head { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.modal-icon { width: 48px; height: 48px; background: var(--cream); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.modal-head-text h2 { font-size: 1.05rem; font-weight: 700; }
.modal-head-text p { font-size: 0.8rem; color: var(--text2); }
.modal-close { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--text2); cursor: pointer; flex-shrink: 0; }
.modal-body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.file-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--cream2); }
.file-item:last-child { border-bottom: none; }
.file-item.highlighted { background: var(--cream); margin: 0 -1.5rem; padding: 1rem 1.5rem; }
.file-check { width: 18px; height: 18px; border: 1.5px solid var(--border); border-radius: 4px; flex-shrink: 0; }
.file-doc-icon { width: 32px; height: 32px; background: var(--cream2); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.file-name { flex: 1; font-size: 0.9rem; font-weight: 500; }
.file-lock { font-size: 0.85rem; color: var(--gold); }
.file-format { padding: 3px 8px; border-radius: 4px; font-size: 0.72rem; font-weight: 700; }
.fmt-docx { background: #EFF6FF; color: #1D4ED8; }
.fmt-pdf { background: #FEE2E2; color: #DC2626; }
.fmt-hwp { background: #F0FDF4; color: #15803D; }
.modal-foot { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex-shrink: 0; }
.btn-modal-detail { padding: 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 0.875rem; font-weight: 600; text-align: center; }
.btn-modal-download { padding: 12px; background: var(--primary); color: var(--white); border-radius: 999px; font-size: 0.875rem; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; }

/* ── DARK TOGGLE ── */
.dark-toggle { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1rem; background: var(--white); cursor: pointer; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .workflow-grid, .reviews-grid, .forms-grid { grid-template-columns: 1fr; }
  .ebook-layout { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .hero { padding: 60px 1.25rem 50px; }
  .featured-set { flex-direction: column; align-items: flex-start; }
  .site-nav .nav-links { display: none; }
}

/* ── 햄버거 메뉴 ── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  transition: background .15s;
}
.hamburger-btn:hover { background: var(--cream); }
.hamburger-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
  transform-origin: center;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 모바일 오버레이 ── */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 41, 0.55);
  backdrop-filter: blur(3px);
  z-index: 9999;
  opacity: 0;
  transition: opacity .25s;
}
.mobile-nav-overlay.open  { display: block; }
.mobile-nav-overlay.visible { opacity: 1; }

/* ── 슬라이드 패널 ── */
.mobile-nav-panel {
  position: absolute;
  top: 0; right: 0;
  width: 300px; max-width: 85vw;
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 40px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.mobile-nav-overlay.visible .mobile-nav-panel { transform: translateX(0); }

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mobile-nav-logo-wrap .nav-logo-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.mobile-nav-logo-wrap .nav-logo-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mobile-nav-logo-text {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.mobile-nav-close {
  width: 34px; height: 34px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text2);
  transition: background .15s;
}
.mobile-nav-close:hover { background: var(--border); }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 1rem 0.75rem;
  gap: 2px;
}
.mobile-nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: background .15s, color .15s;
}
.mobile-nav-link:hover { background: var(--cream); color: var(--primary); }
.mobile-nav-link.active {
  background: linear-gradient(90deg, rgba(79,70,229,.1), rgba(124,58,237,.08));
  color: var(--primary);
}

.mobile-nav-divider { height: 1px; background: var(--border); margin: 0 1.25rem; }

.mobile-nav-lang-section { padding: 1rem 1.25rem; }
.mobile-nav-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text3);
  margin-bottom: .6rem;
}
.mobile-nav-lang {
  display: flex;
  gap: 6px;
}
.mobile-ls-btn {
  flex: 1;
  padding: 9px 6px;
  border-radius: 10px;
  font-size: .8rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--cream);
  color: var(--text2);
  cursor: pointer;
  transition: all .15s;
}
.mobile-ls-btn:hover { border-color: var(--primary); color: var(--primary); }
.mobile-ls-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.mobile-nav-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 1rem 1.25rem 2rem;
  margin-top: auto;
}
.btn-mobile-primary {
  display: block;
  text-align: center;
  padding: 13px;
  background: linear-gradient(90deg, #4F46E5, #7C3AED);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: .9rem;
  transition: opacity .15s;
}
.btn-mobile-primary:hover { opacity: .9; }
.btn-mobile-login {
  display: block;
  text-align: center;
  padding: 12px;
  background: none;
  color: var(--text2);
  border-radius: 12px;
  font-weight: 600;
  font-size: .9rem;
  border: 1.5px solid var(--border);
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  transition: border-color .15s;
}
.btn-mobile-login:hover { border-color: var(--text2); }

@media (max-width: 900px) {
  .hamburger-btn { display: flex; }
  .site-nav .nav-links,
  .site-nav .lang-switcher { display: none; }
  .site-nav .btn-login { padding: 6px 10px; font-size: 0.78rem; }
  .site-nav .btn-start { padding: 6px 12px; font-size: 0.78rem; }
  .nav-user-chip { max-width: 100px; }
}
