/* 요금제 카드·비교표 공용 스타일 — 랜딩과 요금제 페이지가 함께 쓴다(#318 에서 landing.css 에서 분리, #323 에서 시안 rev1.4 디자인). */
:root {
  --ink: #14181f;
  --ink-soft: #4a5262;
  --paper: #ffffff;
  --surface: #f5f7fa;
  --line: #e4e8ee;
  --pick: #2b5fe3;
  --pick-deep: #1e46b0;
  --w-teal: #0fa8a0;
  /* 요금제 시안(2026-08-29)의 초록 계열. --w-teal 보다 채도가 낮아
     본문 옆에 놓아도 튀지 않는다 — 카드 강조·체크·가격 부제에 쓴다. */
  --teal: #3e9e97;
  --teal-deep: #2e7d77;
  --teal-tint: #e9f4f2;
  --w-coral: #f2545b;
  --w-amber: #e8930c;
  --w-violet: #7b61d6;
  --w-gray: #9aa3b2;
  /* 요금제 카드 강조색(#302 B안) — 과금 방식마다 다르다. 월 정액은 사이트 규칙의
     주 색(tokens.css --wp-primary), 건당 이용권은 초록(--teal-deep). 이 문서는
     tokens.css 를 불러오지 않는 독립 페이지라 값을 대체값으로 함께 적는다. */
  --plan-blue: var(--wp-primary, #2277b8);
  --plan-blue-shadow: rgba(34, 119, 184, 0.13);
  /* 흰 바탕 보조 글자(대비 4.5:1 이상). --w-gray(#9aa3b2, 2.6:1)는 글자에 쓰지 않는다. */
  --plan-muted: #475569;
  --plan-faint: #64748b;
  /* 브랜드 로고(core/static/core/img/logo.png) 글자색 */
  --brand-word: #42387b;
  --brand-pick: #008acb;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
section { scroll-margin-top: 100px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }


/* ── Sections ── */
.sec-head { text-align: center; margin-bottom: 52px; }
.sec-eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--pick);
  margin-bottom: 12px;
}
h2 {
  font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; letter-spacing: -0.02em;
  word-break: keep-all;
}
.sec-sub { margin-top: 12px; color: var(--ink-soft); font-size: 16px; }


a:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(43,95,227,.5); outline-offset: 2px; border-radius: 6px;
}

/* ── 요금제 카드·비교표 (고객 시안 rev1.4, #323) ─────────────────────
 * 카드: templates/core/billing/_pricing_cards.html, 비교표: _pricing_compare.html.
 * 랜딩·요금제 페이지가 함께 쓴다. 색은 시안 값(파랑 #2c62f5)을 --pc-* 로 둔다 —
 * 랜딩 섹션(landing.css)과 같은 파랑이라 두 페이지가 같은 인상을 준다.
 */
.price-cards, .price-compare-scroll {
  --pc-blue: #2c62f5; --pc-blue-fg: #ffffff; --pc-blue-soft: #e8eefe;
  --pc-fg: #161a23; --pc-muted: #5f6878; --pc-line: #dfe3ea; --pc-surface: #ffffff;
  --pc-well: #f3f5f9;
  /* 할인 빨강 #c81e2b — 흰 바탕 5.7:1, 배지 바탕(#fdeaec) 위 4.9:1 */
  --pc-sale: #c81e2b; --pc-sale-soft: #fdeaec;
  --pc-warn-soft: #fff2d6; --pc-warn-fg: #7a5200;
}

.price-cards {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
  align-items: stretch; margin: 0 0 40px;
}
.price-card {
  background: var(--pc-surface); border: 1px solid var(--pc-line); border-radius: 10px;
  padding: 22px 18px 20px; display: flex; flex-direction: column; gap: 14px;
  position: relative; min-width: 0; color: var(--pc-fg);
}
.price-card.is-hot { border: 2px solid var(--pc-blue); padding: 21px 17px 19px; }
.price-card-badge {
  position: absolute; top: -12px; left: 16px; background: var(--pc-blue); color: var(--pc-blue-fg);
  font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px;
}
.price-card-name { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; }
.price-card-price { display: flex; flex-direction: column; gap: 2px; min-height: 100px; }
.price-card-was {
  display: flex; align-items: center; gap: 8px; min-height: 22px;
  font-size: 14px; line-height: 1.4; color: var(--pc-muted); font-variant-numeric: tabular-nums;
}
.price-card-was s { text-decoration-thickness: 1.5px; text-decoration-color: var(--pc-muted); }
.price-card-off {
  font-size: 12px; font-weight: 700; color: var(--pc-sale); background: var(--pc-sale-soft);
  padding: 1px 8px; border-radius: 99px;
}
.price-card-num {
  font-size: 28px; font-weight: 900; line-height: 1.2; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.price-card-num small { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--pc-muted); }
/* 아직 팔지 않는 가격은 숫자가 아니라 안내 문구다 — 값처럼 크게 보이면 금액으로 읽힌다. */
.price-card-num.is-pending { font-size: 22px; color: var(--pc-muted); }
.price-card-sub { font-size: 13px; color: var(--pc-muted); font-variant-numeric: tabular-nums; }
.price-card-quota { display: flex; gap: 8px; flex-wrap: wrap; min-height: 26px; }
.price-chip {
  font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 6px;
  background: var(--pc-blue-soft); color: var(--pc-blue); font-variant-numeric: tabular-nums;
}
.price-chip.is-plain { background: transparent; border: 1px solid var(--pc-line); color: var(--pc-fg); font-weight: 500; }
.price-card-list {
  list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--pc-line);
  display: flex; flex-direction: column; gap: 8px; font-size: 14px; flex: 1; word-break: keep-all;
}
.price-card-list li { display: flex; gap: 8px; }
.price-card-list li::before {
  content: ""; flex: none; width: 14px; height: 14px; margin-top: 5px; border-radius: 50%;
  background: var(--pc-blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.5l2.7 2.7L11 4.5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.5l2.7 2.7L11 4.5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
}
.price-card-soon {
  background: var(--pc-warn-soft); color: var(--pc-warn-fg); border-radius: 8px;
  padding: 10px 12px; font-size: 13px; line-height: 1.5; word-break: keep-all;
}
.price-card-soon b { display: block; font-size: 12px; letter-spacing: .04em; }
.price-card-btn {
  margin-top: auto; display: block; text-align: center; text-decoration: none;
  font-weight: 700; font-size: 14px; padding: 11px 12px; border-radius: 8px;
  border: 1px solid var(--pc-fg); color: var(--pc-fg); background: transparent;
}
.price-card-btn.is-solid { background: var(--pc-blue); border-color: var(--pc-blue); color: var(--pc-blue-fg); }
.price-card-btn:hover { filter: brightness(.94); text-decoration: none; color: inherit; }
.price-card-btn.is-solid:hover { color: var(--pc-blue-fg); }
.price-card-btn:focus-visible { outline: 3px solid var(--pc-blue); outline-offset: 2px; }

/* 비교표. position: relative — 칸 안의 낭독용 글자(.sr, absolute)가 이 상자를 기준으로
   놓여야 한다. 기준이 없으면 표 밖으로 빠져 좁은 화면에서 페이지가 가로로 넓어진다(#318). */
.price-compare-scroll {
  position: relative; overflow-x: auto; border: 1px solid var(--pc-line); border-radius: 10px;
  background: var(--pc-surface);
}
.price-compare {
  border-collapse: collapse; width: 100%; min-width: 780px; font-size: 14px;
  table-layout: fixed; color: var(--pc-fg);
}
.price-compare thead th:first-child { width: 28%; text-align: left; }
.price-compare th, .price-compare td {
  padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--pc-line);
  font-variant-numeric: tabular-nums; vertical-align: middle;
}
.price-compare th[scope="row"] { text-align: left; font-weight: 500; }
.price-compare thead th { font-weight: 900; background: var(--pc-well); }
.price-compare thead th small { display: block; font-weight: 400; color: var(--pc-muted); font-size: 12px; }
.price-compare .is-hot { background: var(--pc-blue-soft); }
.price-compare tbody:last-child tr:last-child td,
.price-compare tbody:last-child tr:last-child th { border-bottom: 0; }
.price-compare tr.grp td {
  background: var(--pc-well); font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--pc-muted); text-align: left;
}
.price-compare .is-y { color: var(--pc-blue); }
.price-compare .is-y svg { display: inline-block; vertical-align: middle; }
.price-compare .is-n, .price-compare .is-muted { color: var(--pc-muted); }
.price-compare .is-price s { color: var(--pc-muted); }
.price-compare .is-price b { color: var(--pc-sale); font-weight: 900; }
.price-compare .note { display: inline-block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--pc-muted); }
/* 한달 이용권 열의 연 구독 가격 한 줄(#362) — 카드의 .price-card-sub 와 같은 크기. */
.price-compare .annual { display: inline-block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--pc-fg); font-variant-numeric: tabular-nums; }
.price-cards .sr, .price-compare .sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.price-compare tr.is-toggle td { padding: 0; }
.price-compare-toggle {
  all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--pc-blue);
}
.price-compare-toggle:hover { background: var(--pc-blue-soft); }
.price-compare-toggle:focus-visible { outline: 3px solid var(--pc-blue); outline-offset: -3px; }
.price-compare-toggle .cnt { margin-left: auto; font-weight: 500; letter-spacing: 0; font-size: 13px; }
.price-compare-toggle .chev {
  width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform .15s;
}
.price-compare tr.is-open .chev { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .price-compare-toggle .chev { transition: none; } }

@media (max-width: 1100px) { .price-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .price-cards { grid-template-columns: minmax(0, 1fr); } }
