/* Pretendard Font */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

:root {
  --primary-color: #2C8C6B;
  --primary-hover: #247356;
  --bg-color: #FDFDFD;
  --sub-bg: #F3F4F6;
  --text-body: #6B7280;
  --text-head: #1F2937;
  --border-color: #E5E7EB;
  --max-width: 480px;
  --padding: 20px;
  --content-width: 335px;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

.mobile-container {
  max-width: var(--max-width);
  margin: 0 auto;
  background: white;
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
  overflow-x: hidden;
  width: 100%;
}

section {
  padding: 60px var(--padding);
}

h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-head);
  line-height: 1.3;
  margin-bottom: 16px;
}

h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-head);
  line-height: 1.4;
  margin-bottom: 20px;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-head);
  margin-bottom: 8px;
}

p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.btn {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-bottom: 12px;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(44, 140, 107, 0.3);
}

.btn-secondary {
  background-color: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: rgba(44, 140, 107, 0.05);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(44, 140, 107, 0.05) 0%, rgba(44, 140, 107, 0.02) 100%);
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 20px;
  word-wrap: break-word;        /* 긴 단어 자동 줄바꿈 */
  overflow-wrap: break-word;    /* 모던 브라우저 지원 */
  white-space: normal;           /* 정상적인 줄바꿈 */
  hyphens: auto;                 /* 하이픈 자동 추가 */
  max-width: 100%;              /* 컨테이너 너비 제한 */
  line-height: 1.3;             /* 줄 간격 조정 */
}

.hero .price-highlight {
  color: var(--primary-color);
  font-weight: 800;
}

/* Responsive three-line title */
.hero-title-wrapper {
  display: block;
  width: 100%;
  margin: 0 auto;
  margin-bottom: 20px;
  position: relative;
  padding: 0;
  box-sizing: border-box;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-head);
  line-height: 1.3;
  text-align: center;
  transition: font-size 0.2s ease;
}

.hero .subtitle {
  font-size: 18px;
  color: var(--text-body);
  margin-bottom: 32px;
}

/* Comparison Section */
.comparison {
  background: linear-gradient(180deg, var(--sub-bg) 0%, #FFFFFF 100%);
  padding: 80px var(--padding) 100px;
}

.comparison h2 {
  text-align: center;
  margin-bottom: 40px;
}

.comparison-cards {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comparison-card {
  background: white;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.comparison-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.comparison-card.featured {
  border: 2px solid var(--primary-color);
  box-shadow: 0 8px 32px rgba(44, 140, 107, 0.15);
  background: linear-gradient(135deg, #FFFFFF 0%, rgba(44, 140, 107, 0.02) 100%);
}

.card-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #247356 100%);
  color: white;
  padding: 8px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 0 14px 0 16px;
  box-shadow: 0 4px 12px rgba(44, 140, 107, 0.3);
  z-index: 2;
}

.card-header {
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  background: linear-gradient(180deg, rgba(249, 250, 251, 0.5) 0%, transparent 100%);
}

.card-header h3 {
  color: var(--text-head);
  font-size: 24px;
  margin-bottom: 4px;
  font-weight: 700;
}

.card-subtitle {
  color: var(--text-body);
  font-size: 14px;
  opacity: 0.8;
}

.card-highlight-box {
  margin: 20px 24px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(44, 140, 107, 0.08) 0%, rgba(44, 140, 107, 0.04) 100%);
  border-radius: 12px;
  border: 1px solid rgba(44, 140, 107, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.card-highlight-box.secondary {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.08) 0%, rgba(107, 114, 128, 0.04) 100%);
  border-color: rgba(107, 114, 128, 0.15);
}

.highlight-item {
  text-align: center;
  flex: 1;
}

.highlight-label {
  display: block;
  font-size: 12px;
  color: var(--text-body);
  margin-bottom: 4px;
  font-weight: 500;
}

.highlight-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
}

.card-highlight-box.secondary .highlight-value {
  color: var(--text-head);
}

.highlight-value.warning {
  color: #F59E0B;
}

.highlight-divider {
  width: 1px;
  height: 40px;
  background: rgba(107, 114, 128, 0.2);
  margin: 0 16px;
}

.card-features {
  padding: 8px 24px 24px;
}

.feature-category {
  margin-bottom: 20px;
}

.feature-category h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comparison-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.comparison-item:hover {
  background-color: rgba(229, 231, 235, 0.3);
}

.comparison-item .icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: bold;
  font-size: 16px;
  background: rgba(44, 140, 107, 0.1);
  border-radius: 50%;
}

.comparison-item .icon.cross {
  background: rgba(239, 68, 68, 0.1);
}

.item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-head);
  line-height: 1.4;
}

.item-desc {
  font-size: 12px;
  color: var(--text-body);
  line-height: 1.4;
}

.item-desc.negative {
  color: #DC2626;
  opacity: 0.9;
}

.check {
  color: var(--primary-color);
}

.cross {
  color: #EF4444;
}

.card-cta {
  padding: 20px 24px;
  background: linear-gradient(180deg, rgba(249, 250, 251, 0.5) 0%, transparent 100%);
  border-top: 1px solid rgba(229, 231, 235, 0.5);
}

.card-btn-primary {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #247356 100%);
  color: white;
  text-align: center;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(44, 140, 107, 0.2);
}

.card-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(44, 140, 107, 0.3);
}

/* Sample Section */
.samples {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%);
  padding: 80px var(--padding);
}

.samples h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 12px;
}

.samples-subtitle {
  text-align: center;
  color: var(--text-body);
  margin-bottom: 48px;
  font-size: 16px;
}

.samples-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.sample-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  cursor: pointer;
}

.sample-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.sample-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--sub-bg);
}

.sample-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sample-card:hover .sample-image {
  transform: scale(1.05);
}

.sample-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.sample-badge {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-head);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.sample-content {
  padding: 24px;
}

.sample-content h3 {
  color: var(--text-head);
  font-size: 20px;
  margin-bottom: 16px;
  font-weight: 700;
}

.sample-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.sample-features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.5;
}

.sample-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.sample-preview-btn {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.sample-preview-btn:hover {
  transform: translateX(4px);
}

.samples-cta {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.samples-cta p {
  color: var(--text-body);
  margin-bottom: 20px;
  font-size: 15px;
}

.samples-cta .btn {
  max-width: 280px;
  margin: 0 auto;
}

/* Process Section */
.process {
  background-color: var(--sub-bg);
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-item .day {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, rgba(44, 140, 107, 0.1) 0%, rgba(44, 140, 107, 0.05) 100%);
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.cta h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.cta .highlight-box {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cta .price-tag {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.cta .price-detail {
  font-size: 14px;
  color: var(--text-body);
}

/* Footer */
.footer {
  background: var(--text-head);
  color: white;
  padding: 40px var(--padding);
  text-align: center;
  font-size: 14px;
}

.footer a {
  color: white;
  text-decoration: none;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.animate-in {
  animation: fadeIn 0.6s ease-out;
}

/* Featured card animation */
.comparison-card.featured {
  animation: fadeIn 0.8s ease-out;
}

.comparison-card.featured .card-badge {
  animation: pulse 2s infinite;
}

/* Hover effects for interactive elements */
.feature-category h4 {
  transition: color 0.2s ease;
}

.comparison-card:hover .feature-category h4 {
  color: var(--primary-color);
}

/* Shimmer effect for highlight boxes */
.card-highlight-box {
  background: linear-gradient(135deg, rgba(44, 140, 107, 0.08) 0%, rgba(44, 140, 107, 0.04) 100%);
  background-size: 2000px 100%;
  animation: shimmer 3s ease-in-out infinite;
  animation-play-state: paused;
}

.comparison-card:hover .card-highlight-box {
  animation-play-state: running;
}