/* ===================================
   제품 페이지 가독성 개선 CSS
   ================================= */

/* 전체 레이아웃 개선 */
body {
  line-height: 1.8 !important;
  letter-spacing: -0.01em;
}

/* 섹션 간격 개선 */
.section, section {
  padding: var(--space-20, 80px) 0 !important;
  margin-bottom: 0 !important;
}

.section + .section,
section + section {
  margin-top: 0 !important;
}

/* 타이포그래피 개선 */
h1 {
  margin-bottom: var(--space-6, 2rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
}

h2 {
  margin-bottom: var(--space-8, 2.5rem) !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em !important;
}

h3 {
  margin-bottom: var(--space-4, 1.25rem) !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
}

p {
  margin-bottom: var(--space-4, 1.25rem) !important;
  line-height: 1.8 !important;
  color: var(--text-secondary, #6b7280) !important;
}

/* 카드 간격 개선 */
.feature-card,
.case-card,
.use-case,
.pricing-card {
  padding: var(--space-8, 2.5rem) !important;
  margin-bottom: var(--space-6, 2rem) !important;
}

.feature-card h3,
.case-card h3,
.use-case h3 {
  margin-top: var(--space-4, 1.25rem) !important;
  margin-bottom: var(--space-4, 1.25rem) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--text-primary, #1f2937) !important;
}

.feature-card p,
.case-card p,
.use-case p {
  font-size: 1.05rem !important;
  line-height: 1.8 !important;
  color: var(--text-secondary, #6b7280) !important;
  margin-bottom: var(--space-3, 1rem) !important;
}

/* 리스트 간격 개선 */
ul, ol {
  margin-top: var(--space-4, 1.25rem) !important;
  margin-bottom: var(--space-4, 1.25rem) !important;
  padding-left: var(--space-6, 2rem) !important;
}

li {
  margin-bottom: var(--space-3, 0.875rem) !important;
  line-height: 1.7 !important;
  color: var(--text-secondary, #6b7280) !important;
}

li:last-child {
  margin-bottom: 0 !important;
}

/* 그리드 간격 개선 */
.features-grid,
.grid {
  gap: var(--space-8, 2.5rem) !important;
  margin-top: var(--space-10, 3rem) !important;
}

.use-case-grid {
  gap: var(--space-8, 2.5rem) !important;
  margin-top: var(--space-10, 3rem) !important;
}

/* Hero 섹션 개선 */
.hero {
  padding: var(--space-20, 5rem) 0 !important;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem) !important;
  margin-bottom: var(--space-6, 2rem) !important;
}

.hero p,
.hero .lead {
  font-size: clamp(1.125rem, 2vw, 1.35rem) !important;
  line-height: 1.8 !important;
  margin-bottom: var(--space-8, 2.5rem) !important;
  max-width: 700px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.hero-eyebrow {
  margin-bottom: var(--space-4, 1.25rem) !important;
  font-size: 1rem !important;
}

.hero-actions {
  margin-top: var(--space-8, 2.5rem) !important;
  gap: var(--space-4, 1.25rem) !important;
}

/* Section Title 개선 */
.section-title {
  margin-bottom: var(--space-10, 3rem) !important;
  font-size: clamp(2rem, 4vw, 2.75rem) !important;
  text-align: center !important;
  font-weight: 800 !important;
  color: var(--text-primary, #1f2937) !important;
}

.section-header {
  margin-bottom: var(--space-12, 4rem) !important;
  text-align: center !important;
}

.section-eyebrow {
  display: inline-block !important;
  margin-bottom: var(--space-3, 1rem) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
}

.section-description {
  font-size: 1.15rem !important;
  line-height: 1.7 !important;
  color: var(--text-secondary, #6b7280) !important;
  max-width: 650px !important;
  margin: var(--space-4, 1.25rem) auto 0 !important;
}

/* 컨테이너 패딩 개선 */
.container {
  padding-left: var(--space-6, 2rem) !important;
  padding-right: var(--space-6, 2rem) !important;
}

/* 가격 카드 개선 */
.pricing-card {
  padding: var(--space-10, 3rem) var(--space-8, 2.5rem) !important;
}

.pricing-card h3 {
  margin-bottom: var(--space-6, 2rem) !important;
  font-size: 1.75rem !important;
}

.pricing-card .price {
  margin: var(--space-6, 2rem) 0 !important;
  font-size: 3rem !important;
  line-height: 1.2 !important;
}

.pricing-features {
  margin-top: var(--space-8, 2.5rem) !important;
}

.pricing-features li {
  padding: var(--space-3, 1rem) 0 !important;
  border-bottom: 1px solid var(--border, #e5e7eb) !important;
}

.pricing-features li:last-child {
  border-bottom: none !important;
}

/* School Plan Pricing */
.school-plan-highlight {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  border-radius: 20px;
  padding: clamp(2rem, 3vw, 3rem);
  margin: clamp(3rem, 4vw, 4rem) auto;
  color: var(--text-primary, #1f2937);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.school-plan-highlight > h3,
.school-plan-highlight .school-plan-title {
  font-size: clamp(1.75rem, 2.6vw, 2.1rem);
  font-weight: 800;
  text-align: center;
  margin: 0 0 clamp(1.5rem, 2.5vw, 2rem) 0;
  color: inherit;
}

.school-plan-subtitle {
  text-align: center;
  color: var(--text-secondary, #4b5563);
  font-size: 1.05rem;
  margin: -1rem auto clamp(2rem, 3vw, 2.5rem);
  max-width: 720px;
  font-weight: 600;
}

.school-plan-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.25rem, 2vw, 1.75rem);
  margin-bottom: clamp(1.5rem, 2.5vw, 2rem);
}

.school-plan-tier {
  --tier-accent: #6366f1;
  background: #ffffff;
  border-radius: 14px;
  border: 2px solid var(--tier-accent);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  padding: clamp(1.5rem, 2.5vw, 1.9rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.school-plan-tier:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.school-plan-tier .segment {
  font-size: 1rem;
  font-weight: 700;
  color: var(--tier-accent);
  letter-spacing: -0.01em;
}

.school-plan-tier .amount {
  font-size: clamp(1.6rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--text-primary, #111827);
  line-height: 1.1;
}

.school-plan-tier .meta {
  font-size: 0.95rem;
  color: var(--text-secondary, #4b5563);
  font-weight: 600;
}

.school-plan-tier ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  text-align: left;
}

.school-plan-tier ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-primary, #1f2937);
}

.school-plan-tier ul li::before {
  content: '✓';
  color: var(--tier-accent);
  font-weight: 700;
}

.school-plan-tier--small { --tier-accent: #10b981; }
.school-plan-tier--medium { --tier-accent: #34d399; }
.school-plan-tier--large { --tier-accent: #60a5fa; }
.school-plan-tier--enterprise { --tier-accent: #fbbf24; }
.school-plan-tier--rose { --tier-accent: #ec4899; }
.school-plan-tier--violet { --tier-accent: #6366f1; }
.school-plan-tier--amber { --tier-accent: #f59e0b; }

.school-plan-note {
  text-align: center;
  background: rgba(34, 197, 94, 0.12);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: #047857;
  font-weight: 700;
  margin: clamp(1rem, 2vw, 1.5rem) auto 0;
}

.plan-code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.25rem, 2vw, 1.75rem);
  margin-top: clamp(1.5rem, 2.5vw, 2.5rem);
}

.plan-code-card {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  padding: clamp(1.5rem, 2.5vw, 1.8rem);
  text-align: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.plan-code-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.plan-code-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary, #111827);
  margin: 0 0 0.75rem 0;
}

.plan-code {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.75rem 1.1rem;
  border-radius: 8px;
  background: #e2e8f0;
  color: #1f2937;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  user-select: all;
}

.plan-code:hover {
  background: #cbd5e1;
  transform: translateY(-2px);
}

.plan-code-hint {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  margin-top: 0.5rem;
}

.plan-code-note {
  margin-top: 1.25rem;
  background: rgba(99, 102, 241, 0.12);
  color: #312e81;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.plan-code-actions {
  margin-top: clamp(1.5rem, 2.5vw, 2.5rem);
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}

.plan-code-actions .marketplace-note {
  font-weight: 600;
  color: var(--text-secondary, #4b5563);
}

.school-plan-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: var(--text-inverse, #ffffff) !important;
  padding: 1.1rem 2.5rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
}

.school-plan-link:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5);
  opacity: 0.95;
}


/* 버튼 간격 */
.btn {
  padding: 0.875rem 2rem !important;
  font-size: 1.05rem !important;
  line-height: 1.5 !important;
}

.btn-lg {
  padding: 1.125rem 2.5rem !important;
  font-size: 1.125rem !important;
}

/* 반응형 개선 */
@media (max-width: 768px) {
  .section, section {
    padding: var(--space-16, 4rem) 0 !important;
  }

  .school-plan-highlight {
    padding: 1.75rem !important;
  }

  .plan-code-grid,
  .school-plan-tiers {
    grid-template-columns: 1fr !important;
  }

  .hero {
    padding: var(--space-16, 4rem) 0 !important;
  }

  .feature-card,
  .case-card,
  .use-case {
    padding: var(--space-6, 2rem) !important;
  }

  .container {
    padding-left: var(--space-4, 1.5rem) !important;
    padding-right: var(--space-4, 1.5rem) !important;
  }

  .features-grid,
  .grid,
  .use-case-grid {
    gap: var(--space-6, 2rem) !important;
  }

  h1 {
    font-size: 2rem !important;
  }

  h2 {
    font-size: 1.75rem !important;
  }

  h3 {
    font-size: 1.35rem !important;
  }

  p {
    font-size: 1rem !important;
  }
}

/* 텍스트 색상 대비 개선 */
.bg-light {
  background: var(--bg-secondary, #f8fafc) !important;
}

/* 아이콘 간격 */
.feature-icon {
  margin-bottom: var(--space-5, 1.5rem) !important;
}

/* 이미지 간격 */
.hero-image,
img {
  margin-bottom: var(--space-6, 2rem) !important;
}

/* Update 섹션들의 배경 구분 */
.section:nth-child(even) {
  background: var(--bg-secondary, #f8fafc) !important;
}

.section:nth-child(odd) {
  background: var(--bg-primary, #ffffff) !important;
}
