/* pricing.css - 구매하기 페이지 */

  /* =====================================================
     구매하기 페이지
  ===================================================== */
  .download-wrap {
    background: #fff;
  }

  /* 본문 */
  .main-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem 7.5rem;
  }
  .main-wrap.pdt-0 {
    padding-top: 0;
  }

  /* 페이지 타이틀 */
  .sub-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -1px;
    margin-bottom: 2.5rem;
    margin-top: 2.5rem;
    text-align: center;
  }

  /* 카드 그리드 */
  .sub-card {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
  }

  /* 개별 플랜 카드 */
  .subscribe-area {
    flex: 1;
    max-width: 360px;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    cursor: default;
  }
  .subscribe-area:hover {
    background-color: #FFF7F4;
    border-color: var(--red);
    box-shadow: 0 12px 40px rgba(var(--red-rgb),0.12);
  }
  .subscribe-area:hover .p-btn {
    background-color: var(--red);
  }

  /* sub-box: 카드 내부 전체 래퍼 (모바일 클릭 영역) */
  .sub-box {
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  /* 플랜 소개 */
  .product-intro {
    margin-bottom: 1.25rem;
  }
  .p-desc-box {
    margin-bottom: 0.875rem;
  }
  .p-name {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.25rem;
  }
  .p-text {
    font-size: 0.8rem;
    color: var(--muted);
  }
  .p-price {
    font-size: 0.95rem;
    color: var(--muted);
  }
  .p-price strong {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -2px;
    margin-right: 0.125rem;
  }

  /* 구매 버튼 영역 */
  .p-btn-area {
    margin-bottom: 1.25rem;
  }
  .p-btn {
    display: block;
    width: 100%;
    padding: 0.875rem 0;
    border: none;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    background: var(--ink);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    text-align: center;
    text-decoration: none;
  }
  .p-btn:hover {
    background: var(--red);
  }
  .p-btn.mb-19 {
    margin-bottom: 1.1875rem;
  }
  .p-btn.width-100 {
    width: 100%;
    display: block;
    text-align: center;
  }
  .p-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .p-bottom > p {
    font-size: 0.8rem;
    color: var(--muted);
  }
  .p-more-btn-mobile {
    display: none;
    background: none;
    border: none;
    font-size: 0.8rem;
    color: var(--muted);
    cursor: pointer;
    gap: 0.25rem;
    align-items: center;
  }
  .p-more-btn-mobile span img {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
  }
  .p-more-btn-mobile span img.active {
    transform: rotate(180deg);
  }

  /* 구분선 */
  .p-divider {
    border: none;
    border-top: 1px solid var(--border-soft);
    margin: 1.25rem 0;
  }

  /* 추천 사용 목록 */
  .p-list {
    margin-bottom: 1rem;
  }
  .p-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--mid);
    padding: 0.25rem 0;
  }
  .p-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
  }

  /* 스펙 목록 */
  .chk-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .chk-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--muted);
  }
  .chk-list li::before {
    content: '✓';
    color: var(--red);
    font-weight: 900;
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  /* 대량 견적 문의 */
  .contact-area {
    margin-top: 3.75rem;
    background: var(--soft);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    gap: 3.75rem;
    align-items: center;
  }
  .contact-area .txt-cont {
    flex: 1;
  }
  .c-title-text {
    margin-bottom: 1.5rem;
  }
  .c-title-text span {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 0.375rem;
  }
  .c-title-text h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -2px;
  }
  .contact-area > img {
    flex-shrink: 0;
    width: 320px;
    border-radius: 14px;
  }
  .chk-list-gray {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .chk-list-gray li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--mid);
  }
  .chk-list-gray li::before {
    content: '✓';
    color: #9ca3af;
    font-weight: 900;
    font-size: 0.8rem;
    flex-shrink: 0;
  }

  /* 결제 모달 */
  #paymentModalOverlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    z-index: 9999;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
  #paymentModalOverlay.is-visible { display: block; }
  #paymentModalOverlay .modal-container {
    position: relative;
    width: 95%;
    height: 90vh;
    max-width: 600px;
    margin: 4vh auto;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(2, 6, 23, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  #paymentModalOverlay .modal-header {
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  #paymentModalOverlay .modal-content {
    flex: 1 1 auto;
    background: #f8fafc;
    padding: 0;
  }
  #paymentIframe {
    width: 100%;
    height: 100%;
    border: 0;
  }
  #paymentModalOverlay .modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 0;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 1.375rem;
    line-height: 38px;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s;
  }
  #paymentModalOverlay .modal-close:hover {
    background: #e2e8f0;
  }
  /* 반응형 */
  @media (max-width: 1024px) {
    .sub-card { flex-wrap: wrap; }
    .subscribe-area { max-width: calc(50% - 12px); }
  }
  @media (max-width: 767px) {
    .main-wrap { padding: 40px 1.25rem 80px; }
    .sub-title { font-size: 1.625rem; margin-bottom: 28px; }

    .sub-card { flex-direction: column; align-items: stretch; }
    .subscribe-area { max-width: 100%; }

    .p-more-btn-mobile { display: inline-flex; }
    .p-list, .chk-list { display: none; }
    .p-list.active, .chk-list.active { display: flex; flex-direction: column; }

    .contact-area {
      flex-direction: column;
      padding: 2rem 1.5rem;
      gap: 2rem;
    }
    .contact-area > img { width: 100%; }
    .c-title-text h1 { font-size: 1.75rem; }

    #paymentModalOverlay .modal-container {
      height: 96vh;
      margin: 2vh auto;
      border-radius: 12px;
    }
    #paymentModalOverlay .modal-header {
      padding: 0.875rem 1rem;
      font-size: 1rem;
    }
    #paymentModalOverlay .modal-close {
      top: 8px;
      right: 8px;
    }
  }
