/* ── 쎄롬케어 서비스 안내·요금 (상품 상세페이지) ────────────────────
   전자상거래법 §13② 거래조건 표시 + 카드사 심사용 상품 페이지.
   "결제 가능한 실제 판매 상품/서비스" 의 상세·요금·제공기간·환불조건을
   한 URL 에서 전부 확인할 수 있어야 합니다.

   ⚠️ 루트 styles.css 를 함께 로드하지 않습니다 (.btn/.dot 정의가 충돌).
      크롬(헤더/푸터)은 policy/styles.css 와 동일한 발췌본입니다.
   ───────────────────────────────────────────────────────────── */

/* ══════════════════════════════════════════════════════════════
   0. 토큰 · 리셋
   ══════════════════════════════════════════════════════════════ */
:root {
  --brand: #ED7F1A;
  --brand-hover: #D8700F;
  --brand-600: #C9650A;
  --amber: #F6A24A;
  --ink: #181D27;
  --ink-2: #535862;
  --ink-3: #717680;
  --ink-4: #85888E;
  --dark: #17120D;
  --footer: #0A0D12;
  --line: #E9EAEB;
  --line-2: #D5D7DA;
  --soft: #FAFAFA;
  --tint: #FEF6EE;
  --green: #067647;
  --green-bg: #ECFDF3;
  --green-line: #ABEFC6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
::-webkit-scrollbar { width: 0; height: 0; }
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  scrollbar-width: none;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
img { display: block; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 80px; }
.wrap--narrow { max-width: 940px; }

/* ══════════════════════════════════════════════════════════════
   1. 헤더 / 버튼
   ══════════════════════════════════════════════════════════════ */
.hdr {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .90); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.hdr-logo img { height: 28px; width: auto; }
.hdr-nav { display: flex; gap: 32px; white-space: nowrap; margin-left: auto; margin-right: 8px; }
.hdr-nav a { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.hdr-nav a:hover, .hdr-nav a.is-on { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  border-radius: 8px; font-weight: 600; cursor: pointer; transition: background .15s;
  border: 0; font-family: inherit;
}
.btn-brand {
  height: 44px; padding: 0 18px; font-size: 15px; color: #fff; background: var(--brand);
  box-shadow: 0 1px 2px 0 rgba(10, 13, 18, .05), inset 0 0 0 1px rgba(0, 0, 0, .12);
}
.btn-brand:hover { background: var(--brand-hover); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 17px; border-radius: 10px; }
.btn-ghost {
  height: 54px; padding: 0 28px; font-size: 17px; border-radius: 10px;
  color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn-ghost:hover { background: var(--soft); }
.dot { width: 7px; height: 7px; border-radius: 9px; background: #fff; }

/* ══════════════════════════════════════════════════════════════
   2. 페이지 헤드
   ══════════════════════════════════════════════════════════════ */
.pd-head { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.pd-eyebrow { font-size: 14px; font-weight: 700; color: var(--brand-600); letter-spacing: .04em; }
.pd-h1 { margin-top: 12px; font-size: 38px; line-height: 1.2; letter-spacing: -.03em; font-weight: 800; }
.pd-lead { margin-top: 16px; max-width: 660px; font-size: 18px; line-height: 1.7; color: var(--ink-2); font-weight: 500; }
.pd-head-cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* 핵심 거래조건 요약 — 심사자가 스크롤 없이 확인하는 블록 */
.pd-summary {
  margin-top: 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff;
}
.pd-sum-cell { padding: 20px 22px; border-left: 1px solid var(--line); }
.pd-sum-cell:first-child { border-left: 0; }
.pd-sum-k { font-size: 13px; font-weight: 600; color: var(--ink-4); }
/* keep-all — 없으면 좁은 셀에서 "1 개월", "전액 환 불" 처럼 어절이 쪼개집니다 */
.pd-sum-v {
  margin-top: 7px; font-size: 17px; font-weight: 800; letter-spacing: -.02em;
  color: var(--ink); line-height: 1.4; word-break: keep-all;
}
.pd-sum-v small { display: block; margin-top: 5px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; line-height: 1.5; word-break: keep-all; }

/* ══════════════════════════════════════════════════════════════
   3. 본문 섹션
   ══════════════════════════════════════════════════════════════ */
.pd-body { padding: 8px 0 88px; font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.pd-sec { padding-top: 52px; }
.pd-sec h2 {
  font-size: 24px; font-weight: 800; letter-spacing: -.025em; color: var(--ink);
  padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 22px;
}
.pd-sec h3 { margin: 28px 0 10px; font-size: 17px; font-weight: 700; color: var(--ink); }
.pd-sec p { margin: 0 0 12px; }
.pd-sec b { color: var(--ink); font-weight: 700; }
.pd-sec a { color: var(--brand-600); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pd-sec a:hover { color: var(--brand); }
.pd-ol { margin: 0 0 14px; padding-left: 22px; }
.pd-ol > li { margin-bottom: 8px; padding-left: 4px; }
.pd-ol > li::marker { color: var(--ink-4); font-weight: 600; }
.pd-ul { margin: 0 0 14px; padding-left: 20px; }
.pd-ul > li { margin-bottom: 7px; padding-left: 2px; }
.pd-ul > li::marker { color: var(--ink-4); }
.pd-note { margin-top: 10px; font-size: 14px; line-height: 1.7; color: var(--ink-4); }

/* 확정 전 값 — policy 의 .pol-blank 와 같은 표기 */
.pd-blank {
  background: #FFF4E6; color: #B45309; font-weight: 700;
  padding: 1px 6px; border-radius: 4px; border: 1px dashed #F0B87A; white-space: nowrap;
}

/* 절차 카드 */
.pd-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 4px 0 8px; }
.pd-flow-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 20px 18px; background: #fff;
  display: flex; flex-direction: column; gap: 8px;
}
.pd-flow-card.is-pay { border-color: var(--brand); background: var(--tint); }
.pd-flow-n { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--brand); }
.pd-flow-t { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; word-break: keep-all; }
.pd-flow-d { font-size: 13.5px; line-height: 1.6; color: var(--ink-3); font-weight: 500; word-break: keep-all; }
.pd-flow-cost { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 800; color: var(--green); }
.pd-flow-card.is-pay .pd-flow-cost { color: var(--brand-600); }

/* 표 */
.pd-tb { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 15px; }
.pd-tb th, .pd-tb td {
  border: 1px solid var(--line); padding: 12px 14px; text-align: left;
  vertical-align: top; line-height: 1.6;
}
.pd-tb th { background: var(--soft); font-weight: 700; color: var(--ink); font-size: 14px; white-space: nowrap; }
.pd-tb td { color: var(--ink-2); word-break: keep-all; }
/* 좌측이 라벨인 2열 표(개요) — 라벨 열이 "서비스 분 류" 처럼 쪼개지지 않게.
   모바일에서는 표가 카드로 스택되므로(아래 @media) 데스크탑에서만 적용합니다. */
@media (min-width: 768px) {
  .pd-tb--kv td:first-child { white-space: nowrap; width: 1%; font-weight: 600; color: var(--ink); }
}
.pd-tb td b { color: var(--ink); }
.pd-tb .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pd-tb tfoot td { background: var(--tint); font-weight: 700; color: var(--ink); }

/* 강조 박스 */
.pd-callout {
  margin: 6px 0 16px; border: 1px solid #E4D9C7; background: #FDFBF7;
  border-left: 3px solid var(--brand); border-radius: 10px; padding: 16px 20px;
  font-size: 15.5px; line-height: 1.75; color: var(--ink-2);
}
.pd-callout p { margin: 0; }
.pd-callout p + p { margin-top: 8px; }
.pd-callout--warn { background: #FFF8F0; border-color: #F3D9B8; }
.pd-callout--good { background: var(--green-bg); border-color: var(--green-line); border-left-color: var(--green); }

/* 서비스 제공기간 — 토스 심사 필수 표기라 별도 배너로 뽑음 */
.pd-period {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  border-radius: 16px; background: var(--dark); color: #fff; padding: 26px 30px; margin: 4px 0 18px;
}
.pd-period-k { font-size: 14px; font-weight: 700; color: var(--amber); }
.pd-period-v { margin-top: 6px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.pd-period-d { margin-top: 8px; font-size: 15px; line-height: 1.65; color: #C7C0B7; font-weight: 500; max-width: 620px; }

/* 결제수단 배지 */
.pd-methods { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 14px; }
.pd-method {
  border: 1px solid var(--line-2); border-radius: 9999px; padding: 8px 16px;
  font-size: 14px; font-weight: 700; color: var(--ink); background: #fff;
}

/* 하단 결제 CTA */
.pd-cta {
  margin-top: 56px; border-radius: 18px; background: var(--tint); border: 1px solid #F0E2CE;
  padding: 40px; text-align: center;
}
.pd-cta h2 { font-size: 26px; font-weight: 800; letter-spacing: -.025em; color: var(--ink); border: 0; padding: 0; margin-bottom: 10px; }
.pd-cta p { font-size: 16px; color: var(--ink-2); margin-bottom: 24px; }
.pd-cta-actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* 사업자 정보 (본문 내 재게시) */
.pd-biz {
  margin-top: 44px; border-top: 1px solid var(--line); padding-top: 22px;
}
.pd-biz h3 { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--ink); }
.pd-biz p { margin: 0; font-size: 13.5px; line-height: 1.85; color: var(--ink-3); }

/* ══════════════════════════════════════════════════════════════
   4. 푸터
   ══════════════════════════════════════════════════════════════ */
.foot { background: var(--footer); color: #fff; padding: 64px 0 36px; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .10); }
.foot-logo { height: 30px; width: auto; margin-bottom: 20px; }
.foot-desc { max-width: 380px; font-size: 15px; line-height: 1.7; color: #94979C; font-weight: 500; }
.foot-phone { margin-top: 24px; display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: var(--brand); letter-spacing: -.01em; }
.foot-phone svg { width: 22px; height: 22px; }
.foot-col h4 { margin-bottom: 16px; font-size: 13px; font-weight: 600; color: var(--ink-4); letter-spacing: .02em; }
.foot-col a { display: block; font-size: 15px; color: #CECFD2; font-weight: 500; margin-bottom: 13px; }
.foot-col a:hover { color: #fff; }
.foot-biz { font-size: 13.5px; line-height: 1.85; color: #94979C; font-weight: 500; }
.foot-bottom { padding-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; align-items: center; gap: 20px; font-size: 13.5px; flex-wrap: wrap; }
.foot-links a { color: #CECFD2; }
.foot-links a.strong { font-weight: 700; }
.foot-links a:hover { color: #fff; }
.foot-links .sep { width: 1px; height: 12px; background: rgba(255, 255, 255, .18); }
.foot-copy { font-size: 13.5px; color: var(--ink-3); font-weight: 500; }

/* ══════════════════════════════════════════════════════════════
   5. 반응형
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .wrap { padding-left: 40px; padding-right: 40px; }
  .pd-flow { grid-template-columns: repeat(2, 1fr); }
  .pd-summary { grid-template-columns: repeat(2, 1fr); }
  .pd-sum-cell:nth-child(3) { border-left: 0; }
  .pd-sum-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 767px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .hdr-nav { display: none; }
  .pd-head { padding: 32px 0 28px; }
  .pd-h1 { font-size: 27px; }
  .pd-lead { font-size: 16px; }
  .pd-head-cta .btn { flex: 1 1 100%; }
  .pd-summary { grid-template-columns: 1fr; }
  .pd-sum-cell { border-left: 0; }
  .pd-sum-cell + .pd-sum-cell { border-top: 1px solid var(--line); }
  .pd-body { font-size: 15.5px; }
  .pd-sec { padding-top: 40px; }
  .pd-sec h2 { font-size: 20px; }
  .pd-flow { grid-template-columns: 1fr; }
  .pd-period { padding: 22px; }
  .pd-period-v { font-size: 24px; }
  .pd-cta { padding: 28px 20px; }
  .pd-cta h2 { font-size: 21px; }
  .pd-cta-actions { display: flex; width: 100%; }
  .pd-cta-actions .btn { flex: 1 1 100%; }
  .foot-top { grid-template-columns: 1fr; gap: 32px; }

  /* 넓은 표는 카드로 스택 — policy/styles.css 와 같은 방식 */
  .pd-tb, .pd-tb tbody, .pd-tb tr, .pd-tb td { display: block; width: 100%; }
  .pd-tb thead, .pd-tb tfoot { display: none; }
  .pd-tb tr {
    border: 1px solid var(--line); border-radius: 10px;
    margin-bottom: 10px; overflow: hidden; background: #fff;
  }
  .pd-tb td { border: 0; border-top: 1px solid var(--line); padding: 10px 14px; font-size: 14.5px; }
  .pd-tb tr td:first-child { border-top: 0; background: var(--soft); font-weight: 700; color: var(--ink); }
  .pd-tb td[data-th]::before {
    content: attr(data-th); display: block;
    font-size: 11.5px; font-weight: 700; color: var(--ink-4); margin-bottom: 3px;
  }
  .pd-tb tr td:first-child[data-th]::before { color: var(--ink-3); }
}

@media print {
  .hdr, .foot, .pd-head-cta, .pd-cta { display: none !important; }
  body { font-size: 11pt; color: #000; }
  a { color: #000 !important; text-decoration: none !important; }
}
