/* ============================================================
   MediNote(MEDIKING) - 복약 안내 페이지 (모바일)
   신규 핑크 디자인 · Pretendard
   ============================================================ */

/* ── 폰트 ── */
@font-face {
    font-family: 'Pretendard';
    src: url('/static/fonts/PretendardVariable.ttf') format('truetype-variations'),
         url('/static/fonts/PretendardVariable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ── 디자인 토큰 ── */
:root {
    --pk-magenta:    #e6186c;   /* 포인트(브랜드) */
    --pk-magenta-d:  #cf115f;   /* active */
    --pk-head-a:     #f65c90;   /* 헤더 그라데 시작(밝음) */
    --pk-head-b:     #e50e6b;   /* 헤더 그라데 끝(진함) */
    --pk-header:     #ed4086;   /* 헤더/탑버튼/카드헤더/번호원 면 색(로즈핑크, 단색) */
    --pk-soft:       #fde9f0;   /* 연핑크 배경 */
    --pk-soft-2:     #fdf3f7;   /* 더 연한 핑크 */
    --pk-soft-line:  #f6d3e0;   /* 연핑크 테두리 */

    --ink:      #222222;
    --ink-2:    #555b62;
    --ink-3:    #9aa0a6;        /* 서브(회색) */
    --line:     #f0f0f0;
    --line-2:   #e9ebee;

    --page:     #ffffff;
    --page-2:   #f4f5f7;        /* 섹션 사이 갭/배경 */
    --thumb-bg: #eef1f7;        /* 썸네일/약이미지 배경 */

    --footer-bg:  #3d212d;      /* 푸터 배경(짙은 플럼) */
    --footer-txt: #9e9096;      /* 푸터 안내문(뮤트) */

    --radius:   12px;
    --radius-s: 8px;
    --shadow:   0 1px 3px rgba(0,0,0,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
    background: var(--page-2);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

/* 앱 컨테이너(모바일 폭 고정) */
.pk-app {
    max-width: 480px;
    margin: 0 auto;
    background: var(--page);
    min-height: 100vh;
    position: relative;
}

img { display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { text-decoration: none; color: inherit; }

/* ============================================================
   헤더 (핑크 그라데이션)
   ============================================================ */
.pk-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--pk-header);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pk-logo { height: 22px; width: auto; }

/* 언어 선택 */
.pk-lang { position: relative; }
.pk-lang-toggle {
    width: 38px; height: 38px;
    border-radius: 50%;
    padding: 0;
    display: flex; align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.pk-lang-flag {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.6);
}
.pk-lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
    overflow: hidden;
    list-style: none;
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.pk-lang.open .pk-lang-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.pk-lang-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
}
.pk-lang-item:last-child { border-bottom: none; }
.pk-lang-item img.flag { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.pk-lang-item .name { flex: 1; }
.pk-lang-item .check { width: 20px; height: 20px; visibility: hidden; }
.pk-lang-item.active { font-weight: 700; }
.pk-lang-item.active .check { visibility: visible; }

/* ============================================================
   매장 정보 바
   ============================================================ */
.pk-shop-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--page);
    border-bottom: 8px solid var(--page-2);
}
.pk-shop-thumb {
    flex-shrink: 0;
    width: 52px; height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--thumb-bg);
    display: flex; align-items: center; justify-content: center;
}
.pk-shop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pk-shop-thumb img.ph { width: 60%; height: 60%; object-fit: contain; }
.pk-shop-name {
    flex: 1; min-width: 0;
    font-size: 19px; font-weight: 800; color: var(--ink);
    line-height: 1.25; word-break: keep-all;
}
.pk-detail-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    border: 1.5px solid var(--pk-magenta);
    border-radius: 4px;
    color: var(--pk-magenta);
    font-size: 13px; font-weight: 700;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.pk-detail-btn:active { background: var(--pk-soft); }

/* ============================================================
   구매 내역 헤더
   ============================================================ */
.pk-order-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 18px 16px 10px;
}
.pk-order-title { font-size: 17px; font-weight: 800; color: var(--ink); }
.pk-order-date { font-size: 13px; color: var(--ink-3); font-weight: 500; }

/* ============================================================
   약품 아코디언 리스트
   ============================================================ */
.pk-list { padding: 0 16px; }

.pk-item { border-top: 1px solid var(--line); }
.pk-item:first-child { border-top: none; }

/* 접힌 헤더(행) */
.pk-item-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}
.pk-item-thumb {
    flex-shrink: 0;
    width: 52px; height: 52px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--thumb-bg);
    display: flex; align-items: center; justify-content: center;
}
.pk-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pk-item-thumb img.ph { width: 58%; height: 58%; object-fit: contain; }
.pk-item-info { flex: 1; min-width: 0; }
.pk-item-name {
    font-size: 15px; font-weight: 700; color: var(--ink);
    line-height: 1.35; word-break: keep-all;
}
.pk-item-qty {
    flex-shrink: 0;
    font-size: 14px; color: var(--ink-3); font-weight: 500;
    white-space: nowrap;
}
.pk-item-toggle {
    flex-shrink: 0;
    width: 34px; height: 34px;
    border-radius: 8px;
    background: var(--pk-soft);
    display: flex; align-items: center; justify-content: center;
}
.pk-item-toggle img {
    width: 18px; height: 18px;
    transform: rotate(180deg);
    transition: transform .22s ease;
}
.pk-item.open .pk-item-toggle img { transform: rotate(0deg); }

/* 펼침 본문 */
.pk-item-body { display: none; padding: 4px 0 18px; }
.pk-item.open .pk-item-body { display: block; }

.pk-badge {
    display: inline-block;
    padding: 3px 9px;
    background: var(--page-2);
    color: var(--ink-2);
    border-radius: 5px;
    font-size: 12px; font-weight: 600;
    margin-bottom: 8px;
}
.pk-drug-name {
    font-size: 18px; font-weight: 800; color: var(--ink);
    margin-bottom: 12px; word-break: keep-all; line-height: 1.3;
}
.pk-drug-img {
    background: var(--thumb-bg);
    border-radius: var(--radius);
    padding: 18px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 4px;
}
.pk-drug-img img { max-width: 100%; max-height: 220px; height: auto; }
.pk-drug-img img.ph { width: 45%; }

/* 상세 섹션 */
.pk-sections { margin-top: 6px; }
.pk-section { padding: 16px 0; border-bottom: 1px solid var(--line); }
.pk-section:last-child { border-bottom: none; }
.pk-section-head {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 8px;
}
.pk-section-head img { width: 22px; height: 22px; }
.pk-section-title { font-size: 15px; font-weight: 800; color: var(--ink); }
.pk-section-body {
    font-size: 15px; font-weight: 400; color: var(--ink-2);
    line-height: 1.7; word-break: keep-all; white-space: pre-line;
    overflow-wrap: anywhere;
    padding-left: 30px;
}
/* 일본어·중국어는 띄어쓰기가 없어 keep-all 이면 한 문장이 통째로 안 쪼개져 프레임을 넘침.
   CJK 는 문자 단위 줄바꿈(normal)이 정상 조판 (브라우저 금칙처리 적용). */
html[lang="ja"] .pk-section-body,
html[lang="zh"] .pk-section-body {
    word-break: normal;
}

/* 복약안내 없음 */
.pk-no-note {
    padding: 18px 0; padding-left: 30px;
    font-size: 14px; color: var(--ink-3);
}

/* 접기 버튼 */
.pk-fold {
    display: flex; align-items: center; justify-content: center; gap: 4px;
    width: 100%;
    margin-top: 14px;
    padding: 11px;
    background: var(--page-2);
    border-radius: var(--radius-s);
    color: var(--ink-2);
    font-size: 13px; font-weight: 600;
}
.pk-fold img { width: 16px; height: 16px; }

/* ============================================================
   가맹점 정보
   ============================================================ */
.pk-merchant {
    padding: 16px;
    border-top: 8px solid var(--page-2);
}
.pk-merchant-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 5px 0;
}
.pk-merchant-row .label { font-size: 15px; color: var(--ink-2); font-weight: 500; }
.pk-merchant-row .value { font-size: 15px; color: var(--ink); font-weight: 700; text-align: right; }

/* ============================================================
   복약지도 이미지 저장 버튼
   ============================================================ */
.pk-save-wrap { padding: 6px 16px 16px; }
.pk-save-btn {
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 15px;
    background: var(--pk-soft-2);
    border: 1px solid var(--pk-soft-line);
    border-radius: var(--radius);
    color: var(--pk-magenta);
    font-size: 15px; font-weight: 700;
    -webkit-tap-highlight-color: transparent;
}
.pk-save-btn:active { background: var(--pk-soft); }
.pk-save-btn img { width: 20px; height: 20px; }

/* ── 캡처 전용(화면 밖) 컨테이너 ── */
#pkCapture {
    position: fixed;
    left: -10000px;
    top: 0;
    background: var(--page);
    padding-bottom: 20px;
    z-index: -1;
    box-sizing: border-box;
}
#pkCapture .pk-header { position: static; }
#pkCapture .pk-cap-head {
    text-align: center;
    padding: 16px 16px 14px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
}
#pkCapture .pk-cap-date {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
}
#pkCapture .pk-cap-shopline {
    margin-top: 6px;
    font-size: 14px;
    color: var(--ink-2);
}
#pkCapture .pk-cap-shopline .pk-cap-shop { font-weight: 600; }
#pkCapture .pk-cap-shopline .pk-cap-phone { margin-left: 8px; }
#pkCapture .pk-item-toggle,
#pkCapture .pk-fold { display: none !important; }
#pkCapture .pk-item-body { display: block !important; }
#pkCapture .pk-item-head { cursor: default; }

/* ── 저장 결과 모달 ── */
.pk-save-modal { display: none; position: fixed; inset: 0; z-index: 1000; }
.pk-save-modal.open { display: block; }
.pk-save-modal-dim { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.pk-save-modal-box {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 32px);
    max-width: 440px;
    max-height: 88vh;
    background: var(--page);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.pk-save-modal-guide {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 14px 16px;
    font-size: 14px; font-weight: 600;
    color: var(--pk-magenta);
    background: var(--pk-soft-2);
    text-align: center;
}
.pk-save-modal-guide img { width: 18px; height: 18px; }
.pk-save-modal-scroll {
    flex: 1 1 auto;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
    background: var(--page-2);
}
.pk-save-modal-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.pk-save-modal-btns {
    display: flex; gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--line);
}
.pk-save-modal-btns > * {
    flex: 1;
    text-align: center;
    padding: 13px;
    border-radius: 10px;
    font-size: 15px; font-weight: 600;
}
.pk-save-dl { background: var(--pk-magenta); color: #fff; }
.pk-save-dl:active { background: var(--pk-magenta-d); }
.pk-save-close { background: var(--page-2); color: var(--ink); }

/* ============================================================
   스마트 안심결제(PG) 안내
   ============================================================ */
.pk-pg { padding: 4px 16px 8px; }

/* 안심 배너 */
.pk-pg-banner {
    display: flex; align-items: flex-start; gap: 10px;
    background: var(--page-2);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 10px;
}
.pk-pg-banner img { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.pk-pg-banner p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; font-weight: 500; }
.pk-pg-banner b { color: var(--pk-magenta); font-weight: 700; }

/* 아코디언 */
.pk-pg-acc {
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    overflow: hidden;
}
.pk-pg-acc-head {
    width: 100%;
    display: flex; align-items: center; gap: 8px;
    padding: 15px 14px;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}
.pk-pg-acc-head .ic { width: 20px; height: 20px; flex-shrink: 0; }
.pk-pg-acc-head .tit { flex: 1; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.pk-pg-acc-head .arw { width: 18px; height: 18px; flex-shrink: 0; transform: rotate(180deg); transition: transform .22s; }
.pk-pg-acc.open .pk-pg-acc-head .arw { transform: rotate(0deg); }

.pk-pg-acc-body { display: none; padding: 2px 14px 18px; }
.pk-pg-acc.open .pk-pg-acc-body { display: block; }

/* 카드 2개 */
.pk-pg-cards {
    display: flex; align-items: stretch; gap: 8px;
    margin-bottom: 16px;
}
.pk-pg-card {
    flex: 1; min-width: 0;
    border: 1px solid var(--line); border-radius: 10px;
    overflow: hidden;
    display: flex; flex-direction: column;
}
.pk-pg-card-head {
    padding: 9px; text-align: center;
    font-size: 13px; font-weight: 700; color: #fff;
}
.pk-pg-card-head.pharmacy { background: var(--pk-header); }
.pk-pg-card-head.sms { background: #00b09b; }
.pk-pg-card-in {
    flex: 1;
    padding: 14px 10px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.pk-pg-shop { width: 44px; height: 44px; margin-bottom: 4px; }
.pk-pg-card-name { font-size: 14px; font-weight: 800; color: var(--ink); text-align: center; word-break: keep-all; }
.pk-pg-card-amt { font-size: 12px; color: var(--ink-2); text-align: center; }

.pk-pg-arrow { display: flex; align-items: center; flex-shrink: 0; }
.pk-pg-arrow svg { width: 20px; height: 20px; }

/* 문자 말풍선 카드는 좌측 정렬 */
.pk-pg-card-head.sms + .pk-pg-card-in { align-items: stretch; justify-content: flex-start; }
.pk-pg-bubble {
    width: 100%;
    background: var(--page-2);
    border-radius: 8px;
    padding: 10px;
    text-align: left;
}
.pk-pg-bubble .tag { font-size: 11px; color: var(--ink-3); }
.pk-pg-bubble .nm { font-size: 14px; font-weight: 800; color: var(--ink); margin-top: 2px; word-break: keep-all; }
.pk-pg-bubble .amt { font-size: 12px; color: var(--ink-2); margin-top: 2px; }

/* PG사 이름 예시 */
.pk-pg-examples {
    background: var(--page-2);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 16px;
}
.pk-pg-examples .lbl { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.pk-pg-examples .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-pg-examples .tag {
    background: #fff; border: 1px solid var(--line-2); border-radius: 6px;
    padding: 7px 11px; font-size: 12.5px; color: var(--ink-2); font-weight: 600;
}

/* 도입 설명 */
.pk-pg-intro { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.pk-pg-divider { border-top: 1px dashed var(--line-2); margin: 16px 0; }

/* 왜 더 안전한가 */
.pk-pg-why { font-size: 14.5px; font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.pk-pg-points { display: flex; flex-direction: column; gap: 18px; }
.pk-pg-point-head { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.pk-pg-point-head .no {
    width: 18px; height: 18px; flex-shrink: 0;
    background: var(--pk-header); color: #fff;
    border-radius: 50%; font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.pk-pg-point-head img { width: 20px; height: 20px; flex-shrink: 0; }
.pk-pg-point-head .tit { font-size: 14px; font-weight: 700; color: var(--pk-magenta); word-break: keep-all; }
.pk-pg-point-list { list-style: none; padding-left: 25px; display: flex; flex-direction: column; gap: 7px; }
.pk-pg-point-list li { position: relative; font-size: 13px; color: var(--ink-2); line-height: 1.6; word-break: keep-all; }
.pk-pg-point-list li::before { content: "•"; position: absolute; left: -12px; color: var(--ink-3); }
.pk-pg-point-list li b { color: var(--ink); font-weight: 700; }

/* 하단 체크 배너 */
.pk-pg-check {
    display: flex; align-items: flex-start; gap: 9px;
    background: #f7f4f8;
    border-radius: 10px;
    padding: 14px;
    margin-top: 18px;
}
.pk-pg-check img { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.pk-pg-check p { font-size: 13px; color: var(--ink-2); line-height: 1.6; font-weight: 500; }
.pk-pg-check b { color: var(--pk-magenta); font-weight: 700; }

/* ============================================================
   KINGORDER 배너 (통짜 이미지)
   ============================================================ */
.pk-king-banner { padding: 8px 16px 18px; }
.pk-king-banner img {
    width: 100%; height: auto;
    border-radius: var(--radius);
}

/* ============================================================
   푸터
   ============================================================ */
.pk-footer {
    background: var(--footer-bg);
    padding: 20px 18px 40px;
}
.pk-footer-notice p {
    font-size: 12px; color: var(--footer-txt); line-height: 1.7;
}
.pk-footer-phone { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--pk-head-a); }
.pk-footer-links {
    margin-top: 14px;
    display: flex; align-items: center; gap: 10px;
}
.pk-footer-links a { font-size: 13px; color: #ffffff; font-weight: 600; }
.pk-footer-links .sep { color: rgba(255,255,255,0.3); }
.pk-footer-copyright { margin-top: 10px; font-size: 11px; color: rgba(255,255,255,0.35); }

/* ============================================================
   빈 목록
   ============================================================ */
.pk-empty {
    padding: 60px 20px; text-align: center;
    color: var(--ink-3); font-size: 14px;
}

/* ============================================================
   탑 버튼
   ============================================================ */
.pk-top-btn {
    position: fixed;
    right: max(16px, calc(50vw - 240px + 16px));
    bottom: 24px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--pk-header);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: flex; align-items: center; justify-content: center;
    z-index: 25;
    opacity: 0; visibility: hidden;
    transition: opacity .2s, visibility .2s;
}
.pk-top-btn.show { opacity: 1; visibility: visible; }
.pk-top-btn img { width: 36px; height: 36px; }

/* ============================================================
   약국 상세보기 페이지
   ============================================================ */
.pk-back {
    width: 38px; height: 38px;
    margin-left: -6px;
    display: flex; align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.pk-back svg { width: 24px; height: 24px; }

.pk-detail-sec { background: var(--page); padding: 18px 16px; }
.pk-detail-sec + .pk-detail-sec { border-top: 8px solid var(--page-2); }
.pk-detail-title { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 14px; }

/* 정보 테이블 (라벨 / 값) */
.pk-info-table { width: 100%; border-collapse: collapse; }
.pk-info-table th, .pk-info-table td {
    padding: 13px 4px; font-size: 14px; text-align: left; vertical-align: top;
    border-bottom: 1px solid var(--line);
    line-height: 1.5;
}
.pk-info-table tr:last-child th, .pk-info-table tr:last-child td { border-bottom: none; }
.pk-info-table th { width: 90px; color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.pk-info-table td { color: var(--ink); font-weight: 500; word-break: keep-all; }

/* 위치 */
.pk-map {
    border-radius: var(--radius); overflow: hidden; margin-bottom: 12px;
    border: 1px solid var(--line);
}
.pk-map img { width: 100%; height: auto; display: block; }
.pk-transport {
    display: flex; align-items: center; gap: 6px;
    font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px;
}
.pk-transport img { width: 18px; height: 18px; }
.pk-loc-addr { font-size: 13px; color: var(--ink-3); line-height: 1.55; padding-left: 24px; word-break: keep-all; }

/* 약국 소개 + 사진 */
.pk-intro {
    font-size: 15px; color: var(--ink-2); line-height: 1.7;
    margin-bottom: 16px; white-space: pre-line; word-break: keep-all;
}
.pk-photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pk-photo {
    border-radius: var(--radius-s); overflow: hidden;
    aspect-ratio: 4 / 3; background: var(--thumb-bg);
}
.pk-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   정보 페이지 공통 (이용약관 / 사업자소개)
   ============================================================ */
/* ← 뒤로 + 제목 헤더 */
.pk-header-title { justify-content: flex-start; gap: 6px; }
.pk-header-title .pk-htitle { color: #fff; font-size: 17px; font-weight: 700; }

.pk-page { padding: 20px 18px 44px; }

/* 약관 조항 */
.pk-article { padding: 16px 0; border-bottom: 1px solid var(--line); }
.pk-article:first-child { padding-top: 4px; }
.pk-article:last-child { border-bottom: none; }
.pk-article h2 { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.pk-article p { font-size: 14px; color: var(--ink-2); line-height: 1.75; margin-bottom: 8px; word-break: keep-all; }
.pk-article p:last-child { margin-bottom: 0; }
.pk-article strong { color: var(--ink); font-weight: 700; }

/* 사업자 정보 블록 */
.pk-info-block { padding: 16px; background: var(--page-2); border-radius: var(--radius); margin-bottom: 12px; }
.pk-info-block:last-child { margin-bottom: 0; }
.pk-info-block .lbl { font-size: 12px; font-weight: 700; color: var(--pk-magenta); letter-spacing: 0.4px; margin-bottom: 6px; }
.pk-info-block .val { font-size: 15px; color: var(--ink); line-height: 1.65; word-break: keep-all; }
.pk-info-block .val strong { font-weight: 700; }

/* ============================================================
   에러 페이지 (note_not_found)
   ============================================================ */
.pk-error { padding: 72px 24px; text-align: center; }
.pk-error-icon { font-size: 48px; margin-bottom: 16px; }
.pk-error h2 { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.pk-error p { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.pk-error-sub { margin-top: 16px; font-size: 13px; color: var(--ink-3); }

/* ============================================================
   홈(랜딩) 페이지
   ============================================================ */
.pk-header-home { justify-content: center; }

/* 히어로 */
.pk-home-hero {
    background: linear-gradient(180deg, var(--pk-soft) 0%, var(--page) 100%);
    padding: 34px 22px 30px;
    text-align: center;
}
.pk-home-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--pk-header);
    color: #fff;
    font-size: 12px; font-weight: 700;
    border-radius: 20px;
    letter-spacing: 0.3px;
    margin-bottom: 16px;
}
.pk-home-title {
    font-size: 22px; font-weight: 800; color: var(--ink);
    line-height: 1.4; margin-bottom: 12px; word-break: keep-all;
}
.pk-home-desc { font-size: 14px; color: var(--ink-2); line-height: 1.7; word-break: keep-all; }

/* 섹션 공통 */
.pk-home-sec { padding: 28px 16px; }
.pk-home-sec-alt { background: var(--page-2); }
.pk-home-sec-title {
    font-size: 19px; font-weight: 800; color: var(--ink);
    text-align: center; margin-bottom: 20px;
}

/* 이용 방법 스텝 */
.pk-home-steps { display: flex; flex-direction: column; gap: 16px; }
.pk-home-step {
    position: relative;
    background: var(--page);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    padding: 22px 18px 18px;
    text-align: center;
}
.pk-home-step-no {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    width: 26px; height: 26px;
    background: var(--pk-header); color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
}
.pk-home-step-img {
    background: var(--pk-soft-2);
    border-radius: var(--radius-s);
    padding: 22px 12px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    margin-bottom: 14px;
}
.pk-home-step-img .ic { font-size: 34px; line-height: 1; }
.pk-home-step-img .t { font-size: 12px; color: var(--pk-magenta); font-weight: 700; }
.pk-home-step h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.pk-home-step p { font-size: 13px; color: var(--ink-2); line-height: 1.65; word-break: keep-all; }

/* 특징 */
.pk-home-features { display: flex; flex-direction: column; gap: 12px; }
.pk-home-feature {
    display: flex; align-items: center; gap: 14px;
    background: var(--page);
    border-radius: var(--radius);
    padding: 16px;
}
.pk-home-feature .ic {
    flex-shrink: 0;
    width: 46px; height: 46px;
    background: var(--pk-soft);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.pk-home-feature .tx strong { display: block; font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.pk-home-feature .tx p { font-size: 13px; color: var(--ink-2); line-height: 1.55; word-break: keep-all; }

/* FAQ */
.pk-home-faq { display: flex; flex-direction: column; gap: 10px; }
.pk-home-faq-item {
    background: var(--page);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    overflow: hidden;
}
.pk-home-faq-q {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 16px;
    font-size: 14px; font-weight: 700; color: var(--ink);
    text-align: left;
}
.pk-home-faq-q .arw { width: 18px; height: 18px; flex-shrink: 0; transform: rotate(180deg); transition: transform .2s; }
.pk-home-faq-item.open .pk-home-faq-q { color: var(--pk-magenta); }
.pk-home-faq-item.open .pk-home-faq-q .arw { transform: rotate(0deg); }
.pk-home-faq-a {
    display: none;
    padding: 0 16px 16px;
    font-size: 13px; color: var(--ink-2); line-height: 1.7; word-break: keep-all;
}

/* 문의 */
.pk-home-contact {
    background: var(--pk-soft);
    border-radius: var(--radius);
    padding: 26px 20px;
    text-align: center;
}
.pk-home-contact h3 { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.pk-home-contact p { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin-bottom: 14px; }
.pk-home-contact-info {
    display: inline-block;
    background: var(--page);
    border-radius: 20px;
    padding: 10px 18px;
    font-size: 13px; font-weight: 700; color: var(--pk-magenta);
}
.pk-home-contact-banner { margin-top: 16px; }
.pk-home-contact-banner img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
