/* 패널가입 리뉴얼 — 모든 클래스는 .pj- 접두사 (기존 common.css와 충돌 방지) */
.pj {
  --pj-main: #ed5c23;
  --pj-main-dark: #d24a10;
  --pj-soft: #fff1ea;
  --pj-sand: #fde9c9;
  --pj-ink: #222;
  --pj-sub: #666;
  --pj-line: #e8e8e8;
  --pj-w:900px;;
  --pj-gap: clamp(16px, 4vw, 32px);   /* 좌우 여백: 화면 폭에 따라 자동 조절 */
  font-family: 'Pretendard', -apple-system, 'Malgun Gothic', sans-serif;
  color: var(--pj-ink);
  line-height: 1.5;
  word-break: keep-all;
}
.pj *, .pj *::before, .pj *::after { box-sizing: border-box; }
.pj ul, .pj ol { list-style: none; margin: 0; padding: 0; }
.pj :where(h2, h3, p) { margin: 0; }
.pj em { font-style: normal; font-weight: 800; color: var(--pj-main); }
.pj-mark {
  background: linear-gradient(transparent 46%, rgba(237,92,35,.3) 46%);
  background-repeat: no-repeat;
  background-size: 80% 100%;   /* 가로 70%, 세로 100% */
}
.pj-wrap { max-width: var(--pj-w); margin-left: auto; margin-right: auto; padding: 0 50px; }


/* ---------- 공통 ---------- */
.pj-section { padding: 72px 0; }
.pj-title { font-size: 45px; line-height: 1.3; font-weight: 800; letter-spacing: -0.03em; }
.pj-lead { margin-top: 10px; margin-bottom: 60px; font-size: 20px; font-weight:500; color: var(--pj-sub); }
.pj-btn {
  display: inline-block; min-width: 280px; padding: 20px 100px;
  border-radius: 999px; background: var(--pj-main); color: #fff;
  font-size: 20px; font-weight: 700; text-align: center; text-decoration: none;
  transition: background .2s;
}
.pj-btn:hover, .pj-btn:focus, .pj-btn:active, .pj-btn:visited { color: #fff; }
.pj-btn:hover { background: var(--pj-main-dark); }
.pj-btn:focus-visible { outline: 3px solid var(--pj-ink); outline-offset: 3px; }
.pj-btn--line { background: #fff; color: var(--pj-main); border: 2px solid var(--pj-main); }
.pj-btn--line:hover { background: var(--pj-soft); }
.pj-cta { margin-top: 40px; text-align: center; }

/* ---------- 1. 가입 3단계 (세로 타임라인) ---------- */
.pj-steps { margin-top: 40px; max-width: none; counter-reset: step; }
.pj-step { counter-increment: step; }
.pj-step-head { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; }
.pj-step-head::before {
  content: counter(step);
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: #ff8f6b; color: #fff; font-size: 14px; font-weight: 700; line-height: 26px; text-align: center;
}
.pj-step-body { margin: 10px 0 15px 12px; padding: 10px 0 30px clamp(14px, 4vw, 28px); border-left: 2px solid #e2e2e2; }
.pj-step:last-child .pj-step-body { border-left-color: transparent; padding-bottom: 0; }
.pj-step-card { padding: clamp(14px, 3.5vw, 35px) clamp(14px, 4vw, 26px); border-radius: 18px; background: #fff4f0; }
.pj-step-main { font-size: 18px; font-weight: 700;  color: #d9694e; }
.pj-step-note { margin-top: 6px; font-size: 15px; color: #888; }

/* ---------- 2. 나우캐시 안내 ---------- */
.pj-cash-grid { display: grid; grid-template-columns: 1fr ; gap: 50px 20px; }
.pj-cash { margin-top: 20px; }

/* 적립/사용 방법 카드 (위쪽에 오렌지 탭) */
.pj-card { position: relative; display: flex; align-items: center; gap: clamp(12px, 3vw, 24px); margin-top: 30px; padding: clamp(18px, 4vw, 30px) clamp(20px, 4vw, 30px); border-radius: 0 18px 18px 18px; background: #FBECE6; }
.pj-card-tab { position: absolute; left: 0; bottom: 100%; padding: 6px 20px; border-radius: 10px 10px 0 0; background: #FF8A69; color: #fff; font-size: 16px; font-weight: 500; line-height: 1.4; }
.pj-card-img { flex: none; width: clamp(72px, 22vw, 190px); height: auto; }
.pj-card-list { flex: 1; display: grid; gap: 30px; }
.pj-card-list li { margin-left: 50px; display: flex; gap: 10px; align-items: flex-start; }
.pj-card-list b {  display: flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--pj-ink); font-size: 15px; line-height: 22px; text-align: center; }
.pj-card-list strong { display: block; font-size: 20px; font-weight: 700; }
.pj-card-list span { display: block; margin-top: 2px; font-size: 18px; color: var(--pj-sub); }

/* 사용 유의사항 (박스 없이 목록) */
.pj-notice { margin-top: 100px; }
.pj-notice h3 { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 700; color: #636363; }
.pj-notice h3::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23666'/%3E%3Cpath d='M12 6.5v7' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='17.6' r='1.6' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pj-notice ul { margin-top: 6px; margin-left:5px; display: grid; gap: 4px; }
.pj-notice li { position: relative; padding-left: 12px; font-size: 16px; color: var(--pj-sub); }
.pj-notice li::before { content: ''; position: absolute; left: 0; top: .75em; width: 4px; height: 4px; border-radius: 50%; background: #aaa; }

/* 불량응답 안내 (회색 박스) */
.pj-warn { margin-top: 50px; padding: clamp(18px, 4vw, 26px); border-radius: 16px; background: #f3f3f3; }
.pj-warn-title { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 700; }
.pj-warn-ico { flex: none; width: 22px; height: 22px; }
.pj-warn p { margin-top: 5px; font-size: 16px; color: var(--pj-sub); }
.pj-warn .pj-warn-sub { margin-top: 30px; font-weight: 700; color: var(--pj-ink); }
.pj-warn ul { margin-top: 5px; margin-left: 5px; display: grid; gap: 6px; }
.pj-warn li { position: relative; padding-left: 12px; font-size: 15px; color: var(--pj-sub); }
.pj-warn li::before { content: ''; position: absolute; left: 0; top: .75em; width: 4px; height: 4px; border-radius: 50%; background: #aaa; }





/* ---------- 3. 꼬꼬링 추천 이벤트 (3단: 소개 / 참여방법 / 공유 버튼) ---------- */
.pj-kko {
  --pj-edge: max(var(--pj-gap), calc((100vw - 1200px) / 2 + var(--pj-gap)));  /* 넓은 화면에서도 글자는 1200px 안쪽에 */
  --pj-side: max(0px, calc((100vw - 1200px) / 2));                             /* 장식 이미지 좌우 기준 */
  margin-top: 24px; text-align: center;
}
/* 3개 영역을 화면 좌우 끝까지 확장 */
.pj-kko-hero, .pj-kko-how, .pj-kko-cta { width: 100vw; margin-left: calc(50% - 50vw); }
 
/* 1단: 소개 (노란 그라데이션) */
.pj-kko { overflow: visible; }
.pj-kko-hero {
  position: relative;
  padding: 50px var(--pj-edge) 50px;
  background: linear-gradient(180deg, #fff4d2 0%, #ffe5ca 100%);
  overflow: hidden;
}
.pj-kko-hero > :not(.pj-video) { position: relative; z-index: 1; }
.pj-kko-eyebrow { font-size: clamp(16px, 4.2vw, 22px); color: #2b2b2b; font-weight: 600;}
.pj-kko-title {
  margin-top: 6px;
  font-family: 'PartialSansKR', 'Pretendard', sans-serif;
  font-size: clamp(28px, 8vw, 60px);
  font-weight: 300;   /* 900에서 400으로 변경 */
  line-height: 1.25; letter-spacing: -0.02em; color: #2b2b2b;
}
.pj-kko-reward { margin-top: 20px; font-size: clamp(16px, 4.8vw, 24px); font-weight: 800; }
.pj-kko-sub { margin-top: 6px; font-size: clamp(12px, 3.4vw, 15px); color: var(--pj-sub); }
.pj-video {
  --pj-goose-w: 112%;
  --pj-goose-right: -8%;
  --pj-goose-overlap: -4%;
  position: relative;
  width: 80%;
  max-width: 720px;
  margin: clamp(96px, 28vw, 140px) auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: visible;
  background: #000;
  z-index: 0;
}
.pj-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}
/* 웨이브: 거위와 같은 bottom 기준 → 항상 거위 바로 뒤, 가로 전체 */
.pj-kko-wave {
  position: absolute;
  left: 50%;
  bottom: calc(50% - var(--pj-goose-overlap));
  width: 100vw;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}
.pj-kko-goose {
  position: absolute;
  right: var(--pj-goose-right);
  bottom: calc(100% - var(--pj-goose-overlap));
  left: auto;
  width: var(--pj-goose-w);
  max-width: none;
  height: auto;
  z-index: 2;
  pointer-events: none;
}
 
/* 2단: 참여방법 (STEP 카드 3개) */
.pj-kko-how { padding: 50px var(--pj-edge) 80px; background: #faf7f5; }
.pj-kko-how-title { margin-bottom: 50px; font-size: clamp(17px, 4.8vw, 30px); font-weight: 800; }
.pj-kko-steps { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 2vw, 20px); text-align: left; }
.pj-kko-step { display: flex; flex-direction: column; padding: clamp(12px, 3vw, 22px) clamp(10px, 3vw, 20px) 0; border-radius: 12px; background: #fff0ea; overflow: hidden; }
.pj-kko-step h3 { font-size: clamp(14px, 4vw, 20px); font-weight: 800; color: var(--pj-main); }
.pj-kko-step p { margin: 4px 0 10px; font-size: clamp(11px,  3vw, 20px); line-height: 1.4; font-weight: 600;}
.pj-kko-step img { display: block; width: 100%; max-width: 200px; height: auto; margin: auto auto 0; }  /* 이미지는 카드 아래쪽에 붙음 */
 
/* 3단: 공유 버튼 (분홍 그라데이션) */
.pj-kko-cta { padding: 34px var(--pj-edge) 44px; background: linear-gradient(180deg, #ffd5c6 0%, #ffc4b1 100%); }
.pj-kko-share { font-size: clamp(14px, 4vw, 25px); font-weight: 800; }
.pj-kko-btn { margin-top: 20px; }
.pj-kko .pj-btn { width: auto; min-width: 0; padding: 16px clamp(22px, 7vw, 44px); font-size: clamp(14px, 4vw, 18px); white-space: nowrap; color: var(--pj-main);}
.pj-btn--white { background: #fff; color: var(--pj-main); }
.pj-btn--white:hover, .pj-btn--white:focus, .pj-btn--white:active, .pj-btn--white:visited { color: var(--pj-main); }
.pj-btn--white:hover { background: #fff7f3; }
 
/* 로그인 전/후 전환: 기본은 로그인 전. <div class="pj is-login"> 이면 로그인 후 화면 */
.pj-kko-member { display: none; }
.pj.is-login .pj-kko-btn--guest { display: none; }
.pj.is-login .pj-kko-member { display: block; }
 
/* 추천 링크 입력줄 + 복사 버튼 */
.pj-link { display: flex; align-items: center; gap: 8px; max-width: 440px; margin: 22px auto 0; padding: 6px 6px 6px clamp(16px, 5vw, 24px); border-radius: 999px; background: #fff; }
.pj-link-input { flex: 1; min-width: 0; padding: 0; border: 0; background: transparent; font: inherit; font-size: clamp(13px, 3.7vw, 17px); color: var(--pj-ink); text-overflow: ellipsis; outline: 0; }
.pj-link-copy { flex: none; padding: 10px clamp(16px, 4.5vw, 24px); border: 0; border-radius: 999px; background: var(--pj-main); color: #fff; font: inherit; font-size: clamp(13px, 3.7vw, 16px); font-weight: 700; cursor: pointer; transition: background .2s; }
.pj-link-copy:hover { background: var(--pj-main-dark); }
.pj-link-copy:focus-visible { outline: 3px solid var(--pj-ink); outline-offset: 2px; }
 
/* SNS 공유 아이콘 (3열 × 2줄). .pj ul 초기화(margin:0)를 이기려고 .pj 를 앞에 붙임 */
.pj .pj-share { display: grid; grid-template-columns: repeat(3, clamp(52px, 16vw, 64px)); gap: 12px clamp(20px, 8vw, 30px); justify-content: center; margin-top: 28px; }
.pj-share a { display: block; overflow: hidden; border-radius: 27%; }
.pj-share img { display: block; width: 100%; height: auto;  }
 
 
 
/* ---------- 4. 유의사항 ---------- */
.pj-etc { padding: 80px 0 24px; }
.pj-etc h2 { font-size: clamp(17px, 4.8vw, 22px); font-weight: 700; color:#666}
.pj-etc ul { margin-top: 10px; display: grid; gap: 5px; }
.pj-etc li { position: relative; padding-left: 14px; font-size: clamp(12px, 3.3vw, 15px); color: var(--pj-sub); }
.pj-etc li::before { content: ''; position: absolute; left: 0; top: .75em; width: 4px; height: 4px; border-radius: 50%; background: #aaa; }



/* ---------- 모바일 ---------- */
@media (max-width: 768px) {
  .pj-wrap { max-width: var(--pj-w); margin-left: auto; margin-right: auto; padding: 0; }
  .pj-btn { width: 60%; min-width: 0; font-size: 18px; padding: 15px; }   /* 기존 */
  .pj .pj-kko-btn .pj-btn { width: auto; max-width: 100%; }  

  .pj-section { padding: 48px 0; }
  .pj-title { font-size: 35px; }
  .pj-lead { font-size: 15px; margin-bottom: 50px; }
  .pj-step-head { font-size: 15px; }
  .pj-step-body { margin: 8px 0 8px 12px; padding: 5px 0 10px clamp(14px, 4vw, 28px); border-left: 2px solid #e2e2e2; }
  .pj-step-main { font-size: 14px; }
  .pj-step-note { margin-top: 6px; }

  .pj-cash { margin-top: 25px; }
  .pj-cash-grid { grid-template-columns: 1fr; gap: 25px 20px;}
  .pj-card { position: relative; display: flex; align-items: center; gap: clamp(12px, 3vw, 24px); margin-top: 30px; padding: clamp(18px, 4vw, 26px); border-radius: 0 18px 18px 18px; background: #FBECE6; }
  .pj-card-tab { font-size: 13px;  }
  .pj-card-img { width: clamp(80px, 28vw, 140px); }
  .pj-card-list { gap: clamp(14px, 4vw, 20px); }
  .pj-card-list li { margin-left: 0; display: flex; gap: 10px; align-items: flex-start; }
  .pj-card-list b { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--pj-ink); font-size: 12px; line-height: 22px; text-align: center; }
  .pj-card-list strong { display: block; font-size: 16px; font-weight: 700; }
  .pj-card-list span { display: block; margin-top: 2px; font-size: 13px; color: var(--pj-sub); }


  .pj-notice { margin-top: 40px; }
  .pj-notice h3 { font-size: 12px; }
  .pj-notice h3::before {
    width: 13px;
    height: 13px;
  }
  .pj-notice li { font-size: 14px; }

  .pj-warn { margin-top: 24px; }
  .pj-warn-title{ font-size: 13px; } 
  .pj-warn p { font-size: 14px;}
  .pj-warn .pj-warn-sub { margin-top: 18px; }
  .pj-warn li { font-size: 14px; }


  .pj-kko-title { margin-top: 2px;}
  .pj-step-main { font-size: 13px; }
  .pj-step-note { font-size: 12px; }
  .pj-kko-how {padding: 20px var(--pj-edge) 20px;}
  .pj-kko-how-title { margin-bottom: 20px; font-size: clamp(17px, 4.8vw, 22px); font-weight: 800; }
  .pj-kko-step { padding: clamp(12px, 3vw, 12px) ; }
  .pj-kko-step p { margin: 4px 0 8px; font-size: 13px;  }
  .pj-kko-step img { display: block; width: 100%; max-width: 200px; height: auto; margin: auto auto 0; }  /* 이미지는 카드 아래쪽에 붙음 */
  .pj-kko-share { font-size: clamp(14px, 4vw, 17px); font-weight: 800; }
  .pj-kko-btn { margin-top: 22px; }


  .pj-etc h2 { font-size: clamp(17px, 4.8vw, 16px); font-weight: 700; color:#666}
  .pj-etc li { position: relative; padding-left: 14px; font-size: clamp(12px, 3.3vw, 14px); color: var(--pj-sub); }


  .pj-btn { width: 60%; max-width: 200px; min-width: 0; font-size: 16px; padding:12px;}
  .pj-cta { margin-top: 30px; text-align: center; }
  .pj-card-list strong { font-size: 15px; }
  .pj-card-list span { font-size: 12px; }
  .pj-notice li, .pj-warn p, .pj-warn li { font-size: 10px; color: #a5a4a4; }

  .pj-kko-reward{font-size: clamp(16px, 4.8vw, 18px);}
  .pj-video{margin: clamp(96px, 28vw, 122px) auto 0;}

}
@media (max-width: 570px) {
.pj-video{margin: clamp(96px, 28vw, 86px) auto 0;}
}

@media (max-width: 430px) {
  .pj-video {
    --pj-goose-w: 118%;
    --pj-goose-right: -12%;
    margin-top: clamp(72px, 16vw, 160px);
  }
}