/* ============================================================
   한국벤처혁신학회 논문투고 안내 – index.css
   Design Target: 노인/중장년층 (큰 폰트, 높은 대비, 직관적 UI)
   ============================================================ */

/* ------------------------------------------------------------------
   0. Google Fonts
   ------------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

/* ------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   ------------------------------------------------------------------ */
:root {
  /* Primary */
  --color-primary:        #1a237e;
  --color-primary-light:  #283593;
  --color-primary-dark:   #0d1442;

  /* Accent / Gold */
  --color-accent:         #c9a84c;
  --color-gold:           #d4af37;
  --color-gold-light:     #f5e6b8;

  /* Semantic */
  --color-success:        #2e7d32;
  --color-success-light:  #e8f5e9;
  --color-warning:        #f57f17;
  --color-warning-light:  #fff8e1;
  --color-info:           #1565c0;
  --color-info-light:     #e3f2fd;

  /* Surfaces */
  --color-bg:             #f5f5f0;
  --color-card:           #ffffff;
  --color-border:         #e0e0e0;

  /* Text */
  --color-text:           #2c2c2c;
  --color-text-secondary: #666666;
  --color-text-light:     #999999;
  --color-text-inverse:   #ffffff;

  /* Spacing */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   32px;
  --space-2xl:  40px;
  --space-3xl:  56px;

  /* Typography */
  --font-family:   'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: 18px;
  --line-height:    1.8;

  /* Radius */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md:   0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg:   0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl:   0 12px 48px rgba(0, 0, 0, 0.16);
  --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.3);

  /* Transitions */
  --transition-fast:   0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow:   0.5s ease;

  /* Layout */
  --sidebar-width: 250px;
  --header-height: 80px;
  --content-max-width: 900px;
}


/* ------------------------------------------------------------------
   2. CSS Reset & Base
   ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: var(--line-height);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

::selection {
  background-color: var(--color-gold-light);
  color: var(--color-primary);
}


/* ------------------------------------------------------------------
   3. Header / Hero Section
   ------------------------------------------------------------------ */
.site-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, #303f9f 100%);
  color: var(--color-text-inverse);
  padding: var(--space-lg) var(--space-2xl);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-inverse);
}

.header-logo span {
  color: var(--color-gold);
}

.header-nav a {
  color: rgba(255, 255, 255, 0.85);
  margin-left: var(--space-lg);
  font-size: 1rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.header-nav a:hover {
  color: var(--color-gold);
  text-decoration: none;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 60%, #303f9f 100%);
  color: var(--color-text-inverse);
  text-align: center;
  padding: var(--space-3xl) var(--space-2xl) var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  color: var(--color-gold);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
}

.hero-image {
  max-width: 700px;
  margin: var(--space-2xl) auto 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  display: block;
}


/* ------------------------------------------------------------------
   4. Main Layout (Sidebar + Content)
   ------------------------------------------------------------------ */
.main-layout {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-2xl);
  gap: var(--space-2xl);
  align-items: flex-start;
}

.content-area {
  flex: 1;
  min-width: 0;
  max-width: var(--content-max-width);
}


/* ------------------------------------------------------------------
   5. Progress Sidebar (왼쪽 고정 네비게이션)
   ------------------------------------------------------------------ */
.progress-sidebar {
  position: sticky;
  top: 100px;
  width: var(--sidebar-width);
  flex-shrink: 0;
  padding: var(--space-lg) 0;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.progress-sidebar::-webkit-scrollbar {
  width: 4px;
}

.progress-sidebar::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}

.progress-nav {
  position: relative;
}

/* 세로 연결선 */
.progress-nav::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--color-border);
  border-radius: 1px;
}

.progress-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  position: relative;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

.progress-item:hover {
  text-decoration: none;
}

.progress-item:hover .progress-label {
  color: var(--color-primary);
}

/* 단계 번호 원형 아이콘 */
.progress-number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 1;
  transition: all var(--transition-normal);

  /* 비활성 상태 (기본) */
  background: var(--color-bg);
  color: var(--color-text-light);
  border: 2px solid var(--color-border);
}

.progress-label {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  line-height: 1.4;
}

/* 활성 상태 */
.progress-item.active .progress-number {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-gold);
  border-width: 3px;
  width: 46px;
  height: 46px;
  font-size: 0.95rem;
  box-shadow: var(--shadow-gold);
}

.progress-item.active .progress-label {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
}

/* 완료 상태 */
.progress-item.completed .progress-number {
  background: var(--color-success);
  color: var(--color-text-inverse);
  border-color: var(--color-success);
}

.progress-item.completed .progress-label {
  color: var(--color-success);
  font-weight: 500;
}

.progress-item.completed .progress-number::after {
  content: '✓';
  font-size: 1rem;
}


/* ------------------------------------------------------------------
   6. Step Cards
   ------------------------------------------------------------------ */
.step-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-normal);
  animation: fadeInUp 0.6s ease both;
}

.step-card:hover {
  box-shadow: var(--shadow-lg);
}

/* 단계 번호 배지 */
.step-badge {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  box-shadow: 0 4px 12px rgba(26, 35, 126, 0.3);
}

.step-badge.gold {
  background: linear-gradient(135deg, var(--color-accent), var(--color-gold));
  color: var(--color-primary-dark);
}

/* 단계 제목 */
.step-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* 단계 설명 */
.step-description {
  font-size: 1rem;
  color: var(--color-text);
  line-height: var(--line-height);
  margin-bottom: var(--space-lg);
}

.step-description strong {
  color: var(--color-primary);
  font-weight: 700;
}

/* 카드 내부 이미지 */
.step-image {
  max-width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin: var(--space-lg) 0;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-normal);
}

.step-image:hover {
  box-shadow: var(--shadow-md);
}

/* 카드 내부 서브 단계 */
.sub-step {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sub-step:last-child {
  border-bottom: none;
}

.sub-step-number {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-info-light);
  color: var(--color-info);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.sub-step-content {
  flex: 1;
}

.sub-step-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.sub-step-content p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}


/* ------------------------------------------------------------------
   7. Action Box
   ------------------------------------------------------------------ */
.action-box {
  background: var(--color-info-light);
  border: 2px dashed var(--color-info);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-lg) 0;
}

.action-box-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-info);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.action-box-title::before {
  content: '👉';
  font-size: 1.2rem;
}

.action-box p {
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.action-box a {
  color: var(--color-info);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.action-box a:hover {
  color: var(--color-primary);
}


/* ------------------------------------------------------------------
   8. Warning Box
   ------------------------------------------------------------------ */
.warning-box {
  background: var(--color-warning-light);
  border-left: 5px solid var(--color-warning);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-lg) 0;
}

.warning-box-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #e65100;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.warning-box-title::before {
  content: '⚠️';
  font-size: 1.2rem;
}

.warning-box p,
.warning-box li {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
}

.warning-box ul {
  padding-left: var(--space-lg);
  list-style: disc;
}


/* ------------------------------------------------------------------
   9. Tip Box
   ------------------------------------------------------------------ */
.tip-box {
  background: var(--color-success-light);
  border-left: 5px solid var(--color-success);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-lg) 0;
}

.tip-box-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-success);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.tip-box-title::before {
  content: '💡';
  font-size: 1.2rem;
}

.tip-box p,
.tip-box li {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
}

.tip-box ul {
  padding-left: var(--space-lg);
  list-style: disc;
}


/* ------------------------------------------------------------------
   10. Buttons
   ------------------------------------------------------------------ */

/* 공통 버튼 스타일 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-family);
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.4;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary Button */
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(26, 35, 126, 0.3);
}

.btn-primary:hover {
  background: var(--color-primary-light);
  color: var(--color-text-inverse);
  box-shadow: 0 6px 20px rgba(26, 35, 126, 0.4);
  transform: translateY(-2px);
}

/* Download Button */
.btn-download {
  background: linear-gradient(135deg, var(--color-accent), var(--color-gold));
  color: var(--color-primary-dark);
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-gold);
}

.btn-download::before {
  content: '📥';
  font-size: 1.1rem;
}

.btn-download:hover {
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.5);
  transform: translateY(-2px);
  color: var(--color-primary-dark);
}

/* Link / Outline Button */
.btn-link {
  background: transparent;
  color: var(--color-primary);
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
}

.btn-link:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Large variant */
.btn-lg {
  padding: var(--space-md) var(--space-2xl);
  font-size: 1.1rem;
}


/* ------------------------------------------------------------------
   11. Copy Button
   ------------------------------------------------------------------ */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(26, 35, 126, 0.08);
  color: var(--color-primary);
  border: 1px solid rgba(26, 35, 126, 0.2);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  vertical-align: middle;
}

.copy-btn::before {
  content: '📋';
  font-size: 0.9rem;
}

.copy-btn:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

.copy-btn.copied {
  background: var(--color-success);
  color: var(--color-text-inverse);
  border-color: var(--color-success);
}

.copy-btn.copied::before {
  content: '✅';
}


/* ------------------------------------------------------------------
   12. File Download Section
   ------------------------------------------------------------------ */
.download-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
}

.file-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  transition: all var(--transition-normal);
}

.file-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.file-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.file-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
}

.file-meta {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.file-card .btn-download {
  width: 100%;
  justify-content: center;
  font-size: 0.9rem;
  padding: var(--space-sm) var(--space-md);
}


/* ------------------------------------------------------------------
   13. Cost Table
   ------------------------------------------------------------------ */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  font-size: 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cost-table thead th {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.cost-table tbody td {
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
}

.cost-table tbody tr:nth-child(even) {
  background: #fafaf7;
}

.cost-table tbody tr:nth-child(odd) {
  background: var(--color-card);
}

.cost-table tbody tr:hover {
  background: var(--color-info-light);
}

.cost-table .price {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.cost-table tfoot td {
  background: var(--color-bg);
  padding: var(--space-md) var(--space-lg);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}


/* ------------------------------------------------------------------
   14. Bank Info Box
   ------------------------------------------------------------------ */
.bank-info {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-text-inverse);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-2xl);
  margin: var(--space-lg) 0;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.bank-info-label {
  font-size: 0.9rem;
  font-weight: 300;
  opacity: 0.85;
  margin-bottom: var(--space-sm);
}

.bank-info-account {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
  word-break: break-all;
}

.bank-info-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.bank-info .copy-btn {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-text-inverse);
  border-color: rgba(255, 255, 255, 0.3);
}

.bank-info .copy-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}


/* ------------------------------------------------------------------
   15. FAQ Section (아코디언)
   ------------------------------------------------------------------ */
.faq-section {
  margin: var(--space-2xl) 0;
}

.faq-section-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.faq-section-title::before {
  content: '❓';
  font-size: 1.4rem;
}

.faq-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  overflow: hidden;
  transition: box-shadow var(--transition-normal);
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-family);
  transition: background var(--transition-fast);
  gap: var(--space-md);
}

.faq-question:hover {
  background: rgba(26, 35, 126, 0.03);
}

.faq-question::after {
  content: '▼';
  font-size: 0.75rem;
  color: var(--color-text-light);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 var(--space-xl) var(--space-lg);
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}


/* ------------------------------------------------------------------
   16. Contact Section
   ------------------------------------------------------------------ */
.contact-section {
  margin: var(--space-2xl) 0;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.contact-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-normal);
}

.contact-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  line-height: 1;
}

.contact-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-weight: 500;
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.contact-value a {
  color: var(--color-primary);
}

.contact-value a:hover {
  color: var(--color-gold);
  text-decoration: none;
}


/* ------------------------------------------------------------------
   17. Footer
   ------------------------------------------------------------------ */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  margin-top: var(--space-3xl);
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

.footer-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-sm);
}

.footer-info {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

.footer-info a {
  color: var(--color-gold);
}

.footer-divider {
  width: 60px;
  height: 2px;
  background: var(--color-gold);
  margin: var(--space-md) auto;
  border-radius: 1px;
}


/* ------------------------------------------------------------------
   18. Font Size Controls (가/가/가 버튼)
   ------------------------------------------------------------------ */
.font-controls {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background: var(--color-card);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.font-controls button {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--color-border);
}

.font-controls button:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

.font-controls button.active {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

.font-controls .font-sm {
  font-size: 0.75rem;
}

.font-controls .font-md {
  font-size: 1rem;
}

.font-controls .font-lg {
  font-size: 1.25rem;
}

/* Font size class modifiers on body */
body.font-size-small {
  font-size: 16px;
}

body.font-size-medium {
  font-size: 18px;
}

body.font-size-large {
  font-size: 21px;
}

body.font-size-large .step-title {
  font-size: 1.8rem;
}

body.font-size-large .hero h1 {
  font-size: 3.2rem;
}


/* ------------------------------------------------------------------
   19. Animations
   ------------------------------------------------------------------ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* 단계별 stagger delay */
.step-card:nth-child(1) { animation-delay: 0.0s; }
.step-card:nth-child(2) { animation-delay: 0.1s; }
.step-card:nth-child(3) { animation-delay: 0.15s; }
.step-card:nth-child(4) { animation-delay: 0.2s; }
.step-card:nth-child(5) { animation-delay: 0.25s; }
.step-card:nth-child(6) { animation-delay: 0.3s; }
.step-card:nth-child(7) { animation-delay: 0.35s; }
.step-card:nth-child(8) { animation-delay: 0.4s; }

.progress-item {
  animation: slideInLeft 0.4s ease both;
}

.progress-item:nth-child(1) { animation-delay: 0.1s; }
.progress-item:nth-child(2) { animation-delay: 0.15s; }
.progress-item:nth-child(3) { animation-delay: 0.2s; }
.progress-item:nth-child(4) { animation-delay: 0.25s; }
.progress-item:nth-child(5) { animation-delay: 0.3s; }
.progress-item:nth-child(6) { animation-delay: 0.35s; }
.progress-item:nth-child(7) { animation-delay: 0.4s; }
.progress-item:nth-child(8) { animation-delay: 0.45s; }


/* ------------------------------------------------------------------
   20. Utility Classes
   ------------------------------------------------------------------ */
.text-center   { text-align: center; }
.text-primary  { color: var(--color-primary); }
.text-gold     { color: var(--color-gold); }
.text-success  { color: var(--color-success); }
.text-warning  { color: var(--color-warning); }
.text-muted    { color: var(--color-text-secondary); }
.text-sm       { font-size: 0.85rem; }
.text-lg       { font-size: 1.15rem; }
.text-xl       { font-size: 1.3rem; }
.fw-light      { font-weight: 300; }
.fw-normal     { font-weight: 400; }
.fw-medium     { font-weight: 500; }
.fw-bold       { font-weight: 700; }
.mt-sm         { margin-top: var(--space-sm); }
.mt-md         { margin-top: var(--space-md); }
.mt-lg         { margin-top: var(--space-lg); }
.mt-xl         { margin-top: var(--space-xl); }
.mb-sm         { margin-bottom: var(--space-sm); }
.mb-md         { margin-bottom: var(--space-md); }
.mb-lg         { margin-bottom: var(--space-lg); }
.mb-xl         { margin-bottom: var(--space-xl); }
.mx-auto       { margin-left: auto; margin-right: auto; }
.d-flex        { display: flex; }
.gap-sm        { gap: var(--space-sm); }
.gap-md        { gap: var(--space-md); }
.gap-lg        { gap: var(--space-lg); }
.align-center  { align-items: center; }
.justify-center{ justify-content: center; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ------------------------------------------------------------------
   21. Responsive – Tablet (max-width: 1024px)
   ------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .progress-sidebar {
    width: 200px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .step-card {
    padding: var(--space-xl);
  }

  .download-section {
    grid-template-columns: 1fr;
  }
}


/* ------------------------------------------------------------------
   22. Responsive – Mobile (max-width: 768px)
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
  :root {
    --font-size-base: 16px;
  }

  /* Sidebar 숨김 */
  .progress-sidebar {
    display: none;
  }

  /* Layout을 단일 컬럼으로 */
  .main-layout {
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-md);
  }

  .content-area {
    max-width: 100%;
  }

  /* Hero 축소 */
  .hero {
    padding: var(--space-2xl) var(--space-md);
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  /* Header */
  .site-header {
    padding: var(--space-md);
  }

  .header-nav {
    display: none;
  }

  /* Step cards 패딩 줄이기 */
  .step-card {
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    border-radius: var(--radius-md);
  }

  .step-badge {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .step-title {
    font-size: 1.3rem;
  }

  /* Buttons 풀 와이드 */
  .btn-primary,
  .btn-download,
  .btn-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Download section 1열 */
  .download-section {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* 테이블 스크롤 */
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cost-table {
    min-width: 480px;
  }

  /* Bank info */
  .bank-info {
    padding: var(--space-lg);
  }

  .bank-info-account {
    font-size: 1.3rem;
  }

  /* Contact */
  .contact-cards {
    grid-template-columns: 1fr;
  }

  /* Font controls */
  .font-controls {
    top: auto;
    bottom: 20px;
    right: 12px;
    flex-direction: row;
    transform: none;
  }

  .font-controls button {
    width: 38px;
    height: 38px;
  }

  /* Action/Warning/Tip boxes */
  .action-box,
  .warning-box,
  .tip-box {
    padding: var(--space-md);
  }
}


/* ------------------------------------------------------------------
   23. Responsive – Small Mobile (max-width: 480px)
   ------------------------------------------------------------------ */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .step-card {
    padding: var(--space-md);
  }

  .step-title {
    font-size: 1.15rem;
  }

  .bank-info-account {
    font-size: 1.1rem;
    letter-spacing: 0.02em;
  }
}


/* ------------------------------------------------------------------
   24. Print Styles
   ------------------------------------------------------------------ */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.6;
  }

  /* 불필요한 요소 숨김 */
  .site-header,
  .progress-sidebar,
  .font-controls,
  .copy-btn,
  .site-footer {
    display: none !important;
  }

  .main-layout {
    display: block;
    padding: 0;
    max-width: 100%;
  }

  .hero {
    padding: 20pt 0;
    text-align: left;
    page-break-after: avoid;
  }

  .hero h1 {
    font-size: 22pt;
  }

  /* Step cards */
  .step-card {
    border: 1px solid #ccc;
    padding: 15pt;
    margin-bottom: 15pt;
    page-break-inside: avoid;
    box-shadow: none;
    border-radius: 0;
  }

  .step-title {
    font-size: 14pt;
  }

  .step-description {
    font-size: 11pt;
  }

  /* Boxes */
  .action-box,
  .warning-box,
  .tip-box {
    border: 1px solid #999;
    padding: 10pt;
  }

  /* Images */
  .step-image,
  .hero-image img {
    max-width: 100%;
    page-break-inside: avoid;
  }

  /* Links: URL 표시 */
  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 9pt;
    color: #666 !important;
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: '';
  }

  /* 테이블 */
  .cost-table {
    border: 1px solid #ccc;
  }

  .cost-table th,
  .cost-table td {
    border: 1px solid #ccc;
    padding: 6pt 10pt;
  }

  /* Bank info */
  .bank-info {
    border: 2px solid #000;
    padding: 15pt;
    text-align: center;
  }

  /* FAQ */
  .faq-answer {
    max-height: none !important;
    overflow: visible !important;
    padding: 10pt !important;
  }

  /* 페이지 여백 */
  @page {
    margin: 2cm;
  }
}


/* ------------------------------------------------------------------
   25. Accessibility Enhancements
   ------------------------------------------------------------------ */

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
  :root {
    --color-border: #333333;
    --color-text-secondary: #444444;
  }

  .step-card {
    border-width: 2px;
  }

  .btn-primary {
    border: 2px solid var(--color-text-inverse);
  }
}

/* 모션 감소 선호 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Skip Navigation */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-md) var(--space-xl);
  z-index: 10000;
  font-weight: 700;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}
