/* --- 기본 및 배너 스타일 --- */
.use-guide-page {
  padding: 0;
  background: #fff;
}

.guide-banner {
  position: relative;
  height: 562px;
  background: linear-gradient(to bottom, #4D3DBF 4%, #FB65CB 94%);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.banner-content-wrapper {
  position: relative;
  z-index: 2;
  padding-left: 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.banner-text-img {
  display: block;
  max-width: 445px;
  width: 100%;
}

.banner-text-img2 {
  display: block;
  max-width: 294px;
  width: 100%;
  margin-top: 44px;
  margin-bottom: 15px;
}

.banner-person-img {
  position: absolute;
  right: 10%;
  bottom: 0;
  height: 85%;
  object-fit: contain;
  z-index: 1;
}

.guide-content-wrapper {
  position: relative;
  margin-top: 0;
}

/* --- 공통 Step 스타일 --- */
.guide-step {
  position: relative;
  padding: 120px 20px;
  text-align: center;
}
.guide-content-wrapper .guide-step:first-child::after,
.guide-content-wrapper .guide-step:last-of-type::after,
.guide-bottom-gradient-section .guide-step::after {
  display: none;
}

/* --- Step 1 스타일 --- */
.guide-step.step-one {
    background-color: #fff;
    padding-bottom: 80px;
}
.step-one-title {
    color: #4D3DBF;
    font-size: 33px;
    font-weight: bold;
    margin-bottom: 30px;
}
.step-one-subtitle {
    color: #000;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 65px;
}
.benefits-wrapper {
    display: flex;
    flex-wrap: wrap;
    max-width: 520px;
    margin: 0 auto 60px auto;
    gap: 20px;
}
.benefit-item {
    background-color: rgba(77, 61, 191, 0.03);
    padding: 20px;
    box-sizing: border-box;
    border-radius: 12px;
}
.benefit-item.vertical-layout {
    width: calc(50% - 10px);
    display: flex;
    flex-direction: column;
    min-height: 230px;
}
.benefit-item.vertical-layout .benefit-text-content {
    text-align: left;
    align-self: flex-start;
}
.benefit-item.vertical-layout img {
    align-self: flex-end;
    margin-top: 20px;
    height: 120px;
    width: auto;
}
.benefit-item.horizontal-layout {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.benefit-item.horizontal-layout .benefit-text-content {
    text-align: left;
}
.benefit-item.horizontal-layout img {
    height: 120px;
    width: auto;
    margin-left: 20px;
    flex-shrink: 0;
}
.benefit-label {
    display: block;
    color: #4D3DBF;
    font-size: 20px;
    font-weight: 500;
}
.benefit-main-text {
    color: #2D3748;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}
.benefit-sub-text {
    color: #6D6D6D;
    font-size: 20px;
    margin-top: 7px;
}
.step-one .btn-gradient {
    display: inline-block;
    padding: 18px 60px;
    border-radius: 13px;
    background: linear-gradient(to right, #FF66CC 0%, #7F48C3 39%, #4D3DBF 94%);
    text-decoration: none;
}
.step-one .btn-gradient span {
    color: #fff;
    font-size: 30px;
    font-weight: 500;
}

/* --- Step 2 스타일 --- */
.guide-step.step-two {
    background-color: rgba(77, 61, 191, 0.03);
}
.step-two-title {
    color: #4D3DBF;
    font-size: 33px;
    font-weight: bold;
    margin-bottom: 30px;
}
.step-two-subtitle {
    color: #000;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 65px;
}

/* --- Step 3 스타일 --- */
.guide-step.step-three {
    background-color: #fff;
}
.step-three-title {
    color: #4D3DBF;
    font-size: 33px;
    font-weight: bold;
    margin-bottom: 30px;
}
.step-three-subtitle {
    color: #000;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 70px;
}
.step-three-subtitle span {
    box-shadow: inset 0 -10px 0 0 rgba(127, 72, 195, 0.15);
}
.step-three .image-container {
    display: inline-flex;
    align-items: center;
    margin-bottom: 40px;
    gap: 15px;
}
.step-three .btn-gradient {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 18px 60px;
    border-radius: 13px;
    background: linear-gradient(to right, #FF66CC 0%, #7F48C3 39%, #4D3DBF 94%);
    text-decoration: none;
}
.step-three .btn-gradient span {
    color: #fff;
    font-size: 30px;
    font-weight: 500;
}

/* --- Step 4 스타일 --- */
.guide-step.step-four {
    background-color: rgba(77, 61, 191, 0.03);
}
.step-four-title {
    color: #4D3DBF;
    font-size: 33px;
    font-weight: bold;
    margin-bottom: 30px;
}
.step-four-subtitle {
    color: #000;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 20px;
}
.step-four-info {
    color: #6D6D6D;
    font-size: 33px;
    margin-bottom: 74px;
}
.step-four .step-image {
    max-width: 300px;
    margin-bottom: 74px;
}
.step-four .button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 450px;
    margin: 0 auto;
}
.step-four .btn-gradient {
    flex: 1;
    padding: 15px 20px;
    border-radius: 13px;
    background: linear-gradient(to right, #FF66CC 0%, #7F48C3 39%, #4D3DBF 94%);
    text-decoration: none;
    line-height: 1.5;
}
.step-four .btn-gradient strong,
.step-four .btn-gradient span {
    color: #fff;
    font-size: 26px;
    line-height: 1.5;
}
.step-four .btn-gradient strong {
    font-weight: 500;
}
.step-four .btn-gradient span {
    font-weight: normal;
}

/* --- Step 5 스타일 --- */
.guide-step.step-five {
    background-color: #fff;
}
.step-five-title {
    color: #4D3DBF;
    font-size: 33px;
    font-weight: bold;
    margin-bottom: 30px;
}
.step-five-subtitle {
    color: #000;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 70px;
}
.step-five .step-image {
    max-width: 320px;
    margin-bottom: 37px;
}
.step-five-result-text {
    color: #6D6D6D;
    font-size: 35px;
    font-weight: 500;
    line-height: 1.5;
}

/* --- Step 6 및 하단 스타일 --- */
.guide-bottom-gradient-section {
    background: linear-gradient(to bottom, 
        #FAF9FD 5%, 
        rgba(241, 240, 244, 0.93) 22%, 
        rgba(255, 255, 255, 0) 37%,
        rgba(192, 186, 232, 0.36) 58%,
        rgba(135, 124, 212, 0.68) 75%,
        rgba(95, 81, 198, 0.9) 89%,
        #4D3DBF 100%);
    padding-bottom: 127px;
}
.guide-step.step-six {
    background-color: transparent;
    padding-top: 80px;
    padding-bottom: 111px;
}
.step-six-title {
    color: #4D3DBF;
    font-size: 33px;
    font-weight: bold;
    margin-bottom: 30px;
}
.step-six-subtitle {
    color: #000;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 93px;
}
.step-six .step-image {
    max-width: 400px;
    margin-bottom: 151px;
}
.app-download-footer {
    text-align: center;
}
.app-download-footer .app-logo-img {
    display: block;
    margin: 0 auto 53px;
    max-width: 483px;
}
.app-download-footer .app-desc-img {
    display: block;
    margin: 0 auto 20px;
    max-width: 622px;
}
/* ★★★ 스토어 버튼 공통 스타일 (수정됨) ★★★ */

.banner-store-buttons,
.app-download-footer .store-buttons {
    display: flex;
    justify-content: center;
    gap: 5px;
    max-width: 400px;
    margin-left: auto; /* Flexbox 아이템 안에서 정렬을 위해 추가 */
    margin-right: auto; /* Flexbox 아이템 안에서 정렬을 위해 추가 */
}
.banner-store-buttons a,
.app-download-footer .store-buttons a {
    flex: 1;
    min-width: 0;
}
.banner-store-buttons a img,
.app-download-footer .store-buttons a img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- 이미지 공통 크기 --- */
.step-image { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.step-image.app-ui { max-width: 320px; border-radius: 16px; }


/* ---------------------------------------------------- */
/* --- 반응형 스타일 --- */
/* ---------------------------------------------------- */

/* --- 태블릿 (1024px 이하) --- */
@media (max-width: 1024px) {
  .banner-content-wrapper { padding-left: 15%; }
  .banner-person-img { right: 2%; height: 80%; }
  .banner-text-img { max-width: 320px; }
}

/* ---------------------------------------------------- */
/* ★★★ 모바일 스타일 (768px 이하) - 통합 및 정리 ★★★ */
/* ---------------------------------------------------- */
@media (max-width: 768px) {

  /* --- 배너 모바일 스타일 --- */
  .guide-banner { 
    height: 300px;
  }
  .banner-content-wrapper { 
    position: absolute; 
    width: 50%;
    left: 8%;
    top: 50%; 
    transform: translateY(-50%); 
    padding-left: 0; 
  }
  .banner-person-img { 
    height: 78%;
    right: 3%;
  }
  .banner-text-img { 
    max-width: 100%;
  }
  .banner-text-img2 {
    max-width: 180px; /* 중복되던 스타일 정리 */
    margin-top: 20px;
    margin-bottom: 10px;
  }
  .banner-store-buttons { 
    justify-content: flex-start;
    margin-left: 0; /* flex-start 정렬을 위해 auto 해제 */
    margin-right: 0; /* flex-start 정렬을 위해 auto 해제 */
  }
  /* 스토어 버튼 이미지는 공통 스타일로 제어되므로 별도 height 지정 불필요 */

  /* --- 공통 Step 모바일 스타일 --- */
  .guide-step {
    padding: 80px 20px;
  }

  /* --- Step 1 모바일 스타일 --- */
  .step-one-title {
    font-size: 20px;
    margin-bottom: 15px;
  }
  .step-one-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
  }
  .benefits-wrapper {
    /* flex-direction: column; -> 이 속성을 제거하여 가로 배치를 유지합니다. */
    max-width: 100%;
    gap: 15px; /* 모바일에서는 간격을 조금 줄입니다. */
    margin-bottom: 40px;
  }
  /* 
    .benefit-item 들에 적용되었던 width: 100% 규칙을 완전히 제거하여
    데스크탑의 width 계산식이 모바일에서도 적용되도록 합니다.
  */
  .benefit-label { font-size: 16px; }
  .benefit-main-text { font-size: 18px; }
  .benefit-sub-text { font-size: 12px; line-height: 1.4; }
  .step-one .btn-gradient { padding: 15px 40px; }
  .step-one .btn-gradient span { font-size: 20px; }

  /* --- Step 2 모바일 스타일 --- */
  .step-two-title {
    font-size: 20px;
    margin-bottom: 15px;
  }
  .step-two-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
  }
  .step-image.app-ui {
    max-width: 280px;
  }

  /* --- Step 3 모바일 스타일 --- */
  .step-three-title {
    font-size: 20px;
    margin-bottom: 15px;
  }
  .step-three-subtitle {
    font-size: 22px;
    margin-bottom: 40px;
  }
  .step-three .image-container img {
    max-width: 140px;
  }
  .step-three .btn-gradient { padding: 15px 40px; }
  .step-three .btn-gradient span { font-size: 20px; }

  /* --- Step 4 모바일 스타일 --- */
  .step-four-title {
    font-size: 20px;
    margin-bottom: 15px;
  }
  .step-four-subtitle { 
    font-size: 24px;
    margin-bottom: 5px;
   }
  .step-four-info {
    font-size: 20px;
    margin-bottom: 40px;
    line-height: 1.5;
  }
  .step-four .step-image {
    max-width: 250px;
    margin-bottom: 40px;
  }
  .step-four .btn-gradient {
    padding: 12px 15px;
    flex-basis: 100%;
  }
  .step-four .btn-gradient strong,
  .step-four .btn-gradient span {
    font-size: 20px;
  }
  
  /* --- Step 5 모바일 스타일 --- */
  .step-five-title {
    font-size: 20px;
    margin-bottom: 15px;
  }
  .step-five-subtitle {
    font-size: 21px;
    margin-bottom: 40px;
  }
  .step-five .step-image {
    max-width: 280px;
    margin-bottom: 25px;
  }
  .step-five-result-text { font-size: 20px; }

  /* --- Step 6 및 하단 모바일 스타일 --- */
  .guide-bottom-gradient-section { padding-bottom: 80px; }
  .guide-step.step-six {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .step-six-title {
    font-size: 20px;
    margin-bottom: 15px;
  }
  .step-six-subtitle {
    font-size: 24px;
    margin-bottom: 50px;
  }
  .step-six .step-image {
    max-width: 300px;
    margin-bottom: 80px;
  }
  .app-download-footer .app-logo-img {
    max-width: 240px;
    margin: 0 auto 30px;
  }
  .app-download-footer .app-desc-img {
    max-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .app-download-footer .store-buttons {
    max-width: 280px; /* 버튼 그룹의 최대 너비를 줄여 모바일에 맞게 조절 */
  }
}