/**
 * 랜딩 페이지 스타일
 * 디자인 톤: 차분한 청록 + 단정한 타이포 + 명확한 CTA
 */

body {
  background: linear-gradient(180deg, #FAFBFC 0%, #FFFFFF 100%);
  min-height: 100vh;
}

/* ─────────────── 헤더 ─────────────── */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 18px;
}

.logo-emoji { font-size: 24px; }

.brand-link {
  font-size: 13px;
  color: var(--brand-sub);
}

.mono { font-family: var(--font-mono); }

/* ─────────────── 히어로 ─────────────── */
.hero {
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  font-size: 14px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.hero-title .accent {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

.hero-title .accent::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 8px;
  background: var(--color-primary-light);
  z-index: -1;
}

.hero-desc {
  font-size: 18px;
  color: #555;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

/* 유형 프리뷰 칩 */
.types-preview {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 6px;
  margin-top: var(--space-xl);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.types-preview::-webkit-scrollbar { display: none; }

.type-chip {
  padding: 6px 11px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--c) 10%, white);
  color: var(--c);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--c) 20%, white);
  transition: transform var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.type-chip:hover {
  transform: translateY(-2px);
}

/* ─────────────── 업로드 영역 ─────────────── */
.upload-section {
  padding: 0 var(--space-md) var(--space-2xl);
}

.upload-inner {
  max-width: 640px;
  margin: 0 auto;
}

.dropzone {
  padding: var(--space-2xl) var(--space-xl);
  border: 2px dashed var(--color-primary);
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone.drag-over {
  background: color-mix(in srgb, var(--color-primary) 15%, white);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.dropzone-icon {
  font-size: 56px;
  margin-bottom: var(--space-md);
}

.dropzone-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-sm);
}

.dropzone-sub {
  font-size: 14px;
  color: #666;
}

/* 프라이버시 배너 */
.privacy-banner {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: #F8F9FA;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
  font-size: 14px;
}

.privacy-banner strong {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--color-primary-dark);
}

.privacy-banner ul {
  list-style: none;
  padding: 0;
}

.privacy-banner li {
  padding: 4px 0;
  color: #555;
  padding-left: 20px;
  position: relative;
}

.privacy-banner li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* 가이드/수동 입력 */
.guide, .manual-entry, .faq-item {
  margin-top: var(--space-lg);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.guide summary,
.manual-entry summary,
.faq-item summary {
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  font-weight: 600;
  background: #FCFCFC;
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.guide summary::-webkit-details-marker,
.manual-entry summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker { display: none; }

.guide summary::after,
.manual-entry summary::after,
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--brand-sub);
  transition: transform var(--transition-fast);
}

.guide[open] summary::after,
.manual-entry[open] summary::after,
.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.guide-content,
.manual-content {
  padding: var(--space-lg);
  border-top: 1px solid var(--brand-border);
}

.guide-step {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
}

.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.guide-step p {
  padding-top: 2px;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}

/* 수동 입력 */
#manual-text {
  width: 100%;
  padding: var(--space-md);
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm);
  resize: vertical;
  min-height: 140px;
  margin-bottom: var(--space-md);
}

#manual-text:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* 버튼 */
.btn {
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 15px;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ─────────────── FAQ ─────────────── */
.faq-section {
  padding: var(--space-2xl) 0;
  background: #FAFBFC;
}

.section-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: var(--space-xl);
  text-align: center;
  letter-spacing: -0.02em;
}

.faq-item {
  margin-top: var(--space-md);
  background: white;
}

.faq-item p {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  color: #555;
  line-height: 1.7;
  font-size: 15px;
}

/* ─────────────── 푸터 ─────────────── */
.site-footer {
  padding: var(--space-2xl) var(--space-md);
  border-top: 1px solid var(--brand-border);
  background: white;
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  color: var(--brand-sub);
  font-size: 13px;
  margin-bottom: var(--space-md);
}

.footer-links {
  font-size: 14px;
  color: #666;
  margin-bottom: var(--space-md);
}

.footer-links a {
  color: inherit;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--brand-sub);
  line-height: 1.6;
}

/* ─────────────── 반응형 ─────────────── */
@media (max-width: 640px) {
  .hero {
    padding: var(--space-lg) var(--space-md) var(--space-xl);
  }
  .dropzone {
    padding: var(--space-xl) var(--space-md);
  }
  .dropzone-icon {
    font-size: 42px;
  }
}

/* ─────────────── 진행 오버레이 ─────────────── */
.progress-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.progress-overlay[hidden] { display: none; }
.progress-inner {
  text-align: center;
  padding: 2rem;
  max-width: 320px;
}
.progress-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e0e0e0;
  border-top-color: var(--color-primary, #2E8B8B);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.25rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress-step {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}
.progress-bar-wrap {
  background: #e8e8e8;
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.progress-bar-fill {
  height: 100%;
  background: var(--color-primary, #2E8B8B);
  border-radius: 99px;
  transition: width 0.4s ease;
}
.progress-tip {
  font-size: 0.85rem;
  color: #888;
}
.progress-inner-with-ad {
  max-width: 360px;
}
.progress-ad-slot {
  margin-top: 1.5rem;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
}

/* ─────────────── 모달 공통 ─────────────── */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.modal-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 480px;
  width: calc(100% - 2rem);
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.modal-sub {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.25rem;
}

/* ─────────────── 발신자 선택 ─────────────── */
.sender-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.sender-column {
  background: #f7f7f7;
  border-radius: 10px;
  padding: 0.75rem;
}
.sender-label {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #444;
}
.sender-msg {
  font-size: 0.8rem;
  color: #555;
  padding: 0.3rem 0;
  border-bottom: 1px solid #eee;
}
.sender-buttons {
  display: flex;
  gap: 0.75rem;
}
.sender-buttons .btn {
  flex: 1;
  font-size: 0.9rem;
}
.btn-secondary {
  background: #f0f0f0;
  color: #333;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-secondary:hover { background: #e0e0e0; }

/* ─────────────── 8가지 유형 섹션 ─────────────── */
.types-section {
  background: #f7f9fc;
  padding: var(--space-2xl) var(--space-md);
}
.section-desc {
  text-align: center;
  color: #666;
  font-size: 1rem;
  margin-top: -12px;
  margin-bottom: 32px;
}
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.type-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px;
  border-top: 4px solid var(--tc, #ccc);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.18s, box-shadow 0.18s;
}
.type-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.type-card-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tc, #888);
  opacity: 0.8;
}
.type-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}
.type-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2px;
}
.type-nick {
  font-size: 0.78rem;
  color: #888;
  margin-bottom: 8px;
  font-weight: 500;
}
.type-desc {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.55;
  margin: 0;
}

/* ─────────────── 작동 원리 ─────────────── */
.how-section {
  padding: var(--space-2xl) var(--space-md);
  background: #fff;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 8px;
}
.how-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #f7f9fc;
  border-radius: 14px;
  padding: 20px;
}
.how-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary, #2E8B8B);
  opacity: 0.35;
  flex-shrink: 0;
  line-height: 1;
  min-width: 40px;
}
.how-content h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1a1a1a;
}
.how-content p {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* ─────────────── 랜딩 광고 슬롯 ─────────────── */
.ad-slot-landing {
  padding: 16px var(--space-md);
  background: #f7f7f7;
}
.ad-slot-landing .section-inner {
  max-width: 728px;
  min-height: 90px;
  padding: 0;
}

/* ─────────────── 반응형 보완 ─────────────── */
@media (max-width: 640px) {
  .types-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: 1fr; gap: 16px; }
  .section-title { font-size: 22px; }
}
