/* ========================================================================== */
/* [1] 기본 스타일 & PC 설정 (Base Styles) */
/* ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #1942EC;
  --primary-blue-light: #355FFF;
  --primary-blue-bg: #EDF1FF;
  --secondary-blue: #0E335B;
  --green: #00B894;
  --yellow: #FFB700;
  --gray-1: #111111;
  --gray-2: #2D2D2D;
  --gray-4: #666666;
  --gray-5: #999999;
  --gray-6: #CCCCCC;
  --white: #FFFFFF;
  --light-bg: #F9FAFB;
  --light-bg-2: #EBEFF3;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--gray-1);
  overflow-x: hidden;
  width: 100%;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* [Header] 로고 비율 문제 해결을 위해 width: auto 추가 */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--white); padding: 20px 0; z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.header-content { display: flex; align-items: center; gap: 6px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.header-logo-img { 
  height: 30px; 
  width: auto; /* [중요] 비율 유지 */
  display: block; 
}

/* [Hero Section] */
.hero {
  background-image: url('images/bg_img_01_1766822910296_340.png');
  background-size: contain; background-position: top center; background-repeat: no-repeat; background-color: #F0F5FF; 
  padding: 120px 20px 100px; text-align: center; position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
}
.hero-text-group { margin-bottom: 52vh; z-index: 1; }
.hero-subtitle { color: var(--primary-blue); font-size: 20px; font-weight: 600; display: block; margin-bottom: 16px; }
.hero-title { font-size: 56px; font-weight: 700; color: var(--gray-1); margin-bottom: 20px; line-height: 1.2; }
.hero-description { font-size: 24px; font-weight: 600; color: var(--gray-2); }

.cta-button {
  display: inline-block; background: var(--primary-blue); color: var(--white);
  padding: 24px 60px; border-radius: 12px; font-size: 24px; font-weight: 600;
  text-decoration: none; transition: background 0.3s; z-index: 10; position: relative;
  box-shadow: 0 10px 20px rgba(25, 66, 236, 0.2);
}
.cta-button:hover { background: var(--primary-blue-light); }

/* [Sections] */
.section { padding: 100px 20px; }
.section-white { background: var(--white); }
.section-light { background: var(--light-bg); }
.section-blue { background: var(--primary-blue-bg); }
.section-dark {
  background: var(--gray-2); color: var(--white);
  background-image: url('images/bg_img_02_1766822910291_183.png'); background-size: cover; background-position: center; position: relative;
}
.section-dark::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px);
  pointer-events: none;
}
.section-dark .container { position: relative; z-index: 1; }
.section-title { font-size: 40px; font-weight: 600; text-align: left; margin-bottom: 20px; color: var(--gray-1); }
.section-title-kr { font-size: 36px; font-weight: 600; text-align: left; margin-bottom: 40px; color: var(--gray-1); }
.section-dark .section-title, .section-dark .section-title-kr { color: var(--white); }
.section-subtitle { font-size: 24px; text-align: left; margin-bottom: 60px; color: var(--gray-1); line-height: 1.6; }
.section-dark .section-subtitle { color: var(--white); }

/* [Content Elements] */
.intro { text-align: left; max-width: 1000px; margin: 0 auto; }
.intro h2 { font-size: 48px; font-weight: 600; margin-bottom: 24px; line-height: 1.3; }
.intro h3 { font-size: 38px; font-weight: 600; color: var(--gray-1); line-height: 1.4; }
.eligibility { text-align: center; max-width: 1100px; margin: 0 auto; }
.eligibility p { font-size: 28px; line-height: 1.6; margin-bottom: 20px; }
.eligibility strong { font-weight: 700; }

/* [Cards] */
.steps-container {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px;
  max-width: 1200px; margin: 0 auto; padding: 40px;
  background: var(--white); border-radius: 24px; box-shadow: 0px 4px 60px 8px rgba(25, 66, 236, 0.08);
}
.step-card { display: flex; flex-direction: column; gap: 12px; }
.step-number { color: var(--primary-blue); font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.step-title { font-size: 28px; font-weight: 600; margin-bottom: 8px; }
.step-title-kr { font-size: 24px; font-weight: 600; margin-bottom: 16px; }
.step-description { font-size: 20px; line-height: 1.6; color: var(--gray-1); }
.step-description-kr { font-size: 18px; line-height: 1.6; color: var(--gray-1); }

/* [Recovery Steps] */
.recovery-steps { max-width: 1100px; margin: 0 auto; padding: 60px 0; }
.recovery-step { display: flex; gap: 21px; margin-bottom: 52px; align-items: flex-start; position: relative; }
.recovery-step:not(:last-child)::after {
  content: ''; position: absolute; left: 34px; top: 68px; width: 2px; height: calc(100% + 20px); background: rgba(255, 255, 255, 0.3);
}
.recovery-step-number {
  width: 68px; height: 68px; background: rgba(255, 255, 255, 0.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700; color: var(--white); flex-shrink: 0; position: relative; z-index: 2;
}
.recovery-step-content { flex: 1; }
.recovery-step-title { font-size: 32px; font-weight: 600; margin-bottom: 8px; }
.recovery-step-title-kr { font-size: 28px; font-weight: 600; margin-bottom: 24px; }
.recovery-step-description { font-size: 24px; line-height: 1.6; margin-bottom: 4px; }
.recovery-step-description-kr { font-size: 20px; line-height: 1.6; }

/* [Features] */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; }
.feature-card {
  background: var(--white); padding: 24px; border-radius: 12px;
  box-shadow: 0px 4px 30px 10px rgba(25, 66, 236, 0.08); display: flex; gap: 20px; align-items: flex-start;
}
.feature-icon { width: 40px; height: 40px; flex-shrink: 0; }
.feature-content { flex: 1; }
.feature-title { font-size: 28px; font-weight: 600; margin-bottom: 4px; }
.feature-title-kr { font-size: 20px; font-weight: 600; color: var(--gray-4); margin-bottom: 12px; }
.feature-description { font-size: 20px; line-height: 1.6; color: var(--gray-1); margin-bottom: 4px; }
.feature-description-kr { font-size: 20px; line-height: 1.6; color: var(--gray-4); }

/* [Pricing] */
.pricing-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; align-items: center; }
.pricing-card {
  background: var(--white); border-radius: 24px; padding: 0; padding-top: 40px;
  box-shadow: 0px 4px 30px 10px rgba(0, 184, 148, 0.08); border: 2px solid var(--green);
  overflow: visible; position: relative; margin-top: 30px;
  width: fit-content; max-width: 100%;
}
.pricing-card-blue {
  box-shadow: 0px 4px 30px 10px rgba(25, 66, 236, 0.08); border-color: var(--primary-blue); width: 100%;
}
.pricing-badge {
  display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 12px;
  padding: 12px 24px; font-size: 28px; font-weight: 700; border-radius: 12px; text-align: center;
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); z-index: 1; white-space: nowrap;
}
.pricing-badge > div:first-child { font-size: 28px; font-weight: 700; white-space: nowrap; }
.pricing-badge-kr { font-size: 24px; font-weight: 600; white-space: nowrap; }
.pricing-badge-green { background: var(--green); color: var(--white); }
.pricing-badge-blue { background: var(--primary-blue); color: var(--white); }
.pricing-list { list-style: none; display: flex; flex-direction: column; gap: 24px; padding: 40px; align-items: flex-start; }
.pricing-item { display: flex; gap: 16px; align-items: flex-start; justify-content: flex-start; text-align: left; width: 100%; }
.pricing-item-icon { width: 36px; height: 36px; flex-shrink: 0; }
.pricing-item-content { text-align: left; }
.pricing-item-content h4 { font-size: 24px; font-weight: 700; margin-bottom: 4px; color: var(--gray-1); }
.pricing-item-content p { font-size: 18px; font-weight: 400; color: var(--gray-4); }
.pricing-info { text-align: center; margin-bottom: 24px; padding: 0 40px; }
.pricing-info p { font-size: 22px; line-height: 1.7; margin-bottom: 12px; }
.pricing-info strong { color: var(--primary-blue-light); font-weight: 700; }
.pricing-guarantee {
  padding: 24px; background: var(--primary-blue-bg); border: 2px solid var(--primary-blue); border-radius: 24px;
  display: flex; gap: 13px; align-items: flex-start; margin: 0 40px 40px 40px;
}
.pricing-guarantee-icon { width: 36px; height: 36px; flex-shrink: 0; margin-top: 4px; }
.pricing-guarantee-content h4 { font-size: 22px; font-weight: 600; color: var(--primary-blue); margin-bottom: 8px; line-height: 1.5; }
.pricing-guarantee-content p { font-size: 20px; font-weight: 600; color: var(--primary-blue); line-height: 1.5; }

/* [Email Form] */
.email-section {
  background: linear-gradient(180deg, #F9FAFB 0%, #EBEFF3 82%); text-align: center; position: relative; overflow: hidden;
  background-image: url('images/bg_img_03_1_1766822910286_380.png'); background-size: cover; background-position: center;
}
.email-section-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.email-form { max-width: 800px; margin: 40px auto; position: relative; display: flex; flex-direction: column; gap: 20px; align-items: center; }
.email-input {
  width: 100%; max-width: 600px; padding: 24px 30px; border-radius: 100px; border: 2px solid var(--primary-blue-bg);
  font-size: 20px; font-weight: 600; color: var(--gray-1); background: var(--white); text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.email-submit {
  background: var(--primary-blue); color: var(--white); padding: 20px 60px; border-radius: 100px;
  font-size: 24px; font-weight: 600; border: none; cursor: pointer; transition: background 0.3s;
  white-space: nowrap; box-shadow: 0 4px 15px rgba(25, 66, 236, 0.2);
}
.email-submit:hover { background: var(--primary-blue-light); }
.email-footer-note { margin-top: 20px; font-size: 18px; color: var(--primary-blue); font-weight: 500; max-width: 400px; margin-left: auto; margin-right: auto; }

/* [Footer] */
.footer { background: var(--gray-2); color: var(--gray-5); padding: 40px 20px; }
.footer-content { max-width: 1200px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; gap: 20px; }
.footer-info { flex: 1; font-size: 14px; line-height: 1.6; }
.footer-links { display: flex; gap: 10px; }
.footer-link { color: var(--gray-6); font-size: 18px; font-weight: 600; text-decoration: none; transition: color 0.3s; }
.footer-link:hover { color: var(--white); }
.footer-bottom { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-logo { display: flex; align-items: center; gap: 6px; }
.footer-logo-text { color: var(--gray-6); font-size: 18px; font-weight: 700; }
.footer-copyright { font-size: 14px; color: var(--gray-5); }


/* ========================================================================== */
/* [2] 모바일 최적화 및 버그 수정 (Mobile Fixes) */
/* ========================================================================== */
@media (max-width: 768px) {
  
  /* 1. 레이아웃: 여백 조정 및 1열 배치 */
  .section { padding: 60px 20px !important; }
  .features-grid, .pricing-list { grid-template-columns: 1fr !important; }
  .footer-top, .recovery-step { flex-direction: column !important; }
  .recovery-step:not(:last-child)::after { display: none !important; }

  /* 2. [필수] 폰트 사이즈 대폭 축소 (글자가 너무 커서 깨지는 원인 해결) */
  .hero-title { font-size: 36px !important; margin-bottom: 16px !important; line-height: 1.3 !important; }
  .hero-description { font-size: 18px !important; }
  
  .section-title { font-size: 28px !important; }
  .section-title-kr { font-size: 22px !important; margin-bottom: 20px !important; }
  .section-subtitle { font-size: 18px !important; margin-bottom: 40px !important; }
  
  .intro h2 { font-size: 28px !important; }
  .intro h3 { font-size: 22px !important; }
  
  .step-title { font-size: 24px !important; }
  .step-title-kr { font-size: 20px !important; }
  .step-description { font-size: 18px !important; }
  
  .eligibility p { font-size: 18px !important; }

  /* 3. [배지 디자인 복구] 모바일 화면 폭에 맞춰 자동 조절 */
  .pricing-badge {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important; /* 화면의 90%만 사용해서 튀어나가지 않게 */
    padding: 12px 10px !important;
    
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
  }
  
  /* 배지 안 글씨 크기 줄이고 줄바꿈 허용 */
  .pricing-badge > div:first-child, 
  .pricing-badge-kr {
    white-space: normal !important;
    word-break: keep-all !important;
    text-align: center !important;
    font-size: 20px !important; /* 배지 글씨 축소 */
    line-height: 1.2 !important;
  }

  /* 4. 카드 및 컨테이너 너비 보정 */
  .pricing-card {
    width: 100% !important;
    margin-top: 50px !important;
    padding-top: 50px !important; /* 배지가 내용 가리지 않게 */
  }

  /* 5. 버튼 및 입력창 최적화 */
  .cta-button, .email-submit {
    width: 100% !important;
    white-space: normal !important;
    padding: 20px !important;
    font-size: 20px !important;
    height: auto !important;
  }
  .email-input {
    width: 100% !important;
    padding: 16px !important;
    font-size: 16px !important;
  }

  /* 6. 긴 단어 강제 줄바꿈 (가로 스크롤 방지 핵심) */
  p, h1, h2, h3, h4, span, div {
    word-break: keep-all; 
    overflow-wrap: break-word; /* 박스 밖으로 글자 나가는 것 방지 */
  }

  /* 7. 히어로 섹션 배경 및 여백 */
  .hero { background-size: cover !important; min-height: auto !important; }
  .hero-text-group { margin-bottom: 40px !important; }
}