/* 설명 페이지(사용법·계산 방식·썸 신호·FAQ·소개) 공통 스타일. 색은 index.html과 같은 값을 쓴다. */
:root {
  --bg: #fff6c9;
  --paper: #ffffff;
  --ink: #141214;
  --muted: #5d5660;
  --edge: #141214;
  --drop: #141214;
  --yellow: #ffe14d;
  --pink: #ff3d9a;
  --pink-soft: #ffe0ef;
  --bubble: #f3efe6;
  --dots: rgba(20, 18, 20, .07);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16141a;
    --paper: #221f28;
    --ink: #f7f2e7;
    --muted: #b3aab6;
    --edge: #f7f2e7;
    --drop: #ff3d9a;
    --pink: #ff5cab;
    --pink-soft: #3a2030;
    --bubble: #2d2933;
    --dots: rgba(255, 255, 255, .05);
  }
}
* { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dots) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.display { font-family: "Black Han Sans", -apple-system, "Apple SD Gothic Neo", sans-serif; font-weight: 400; letter-spacing: -0.01em; }
a { color: inherit; }
main { max-width: 720px; margin: 0 auto; padding: 20px 16px 56px; }

/* 상단 */
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.brand { font-size: 22px; text-decoration: none; }
.links { display: flex; flex-wrap: wrap; gap: 6px; }
.links a {
  font-size: 13px; font-weight: 800; text-decoration: none; padding: 4px 10px; border-radius: 999px;
  border: 2px solid var(--edge); background: var(--paper); box-shadow: 2px 2px 0 var(--drop);
}
.links a[aria-current="page"] { background: var(--yellow); color: #141214; }

/* 제목 */
.kicker {
  display: inline-block; font-size: 13px; font-weight: 900; padding: 3px 12px; border-radius: 999px;
  background: var(--ink); color: var(--yellow); border: 2px solid var(--edge); transform: rotate(-1.5deg);
}
h1 { font-size: 34px; line-height: 1.25; margin: 12px 0 10px; }
.lead { font-size: 17px; font-weight: 600; color: var(--muted); margin: 0 0 24px; }
.updated { font-size: 13px; color: var(--muted); margin: -14px 0 24px; }

/* 본문 */
.card {
  background: var(--paper); border: 3px solid var(--edge); border-radius: 18px;
  box-shadow: 6px 6px 0 var(--drop); padding: 20px 22px; margin-bottom: 20px;
}
h2 { font-size: 24px; line-height: 1.3; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 22px 0 6px; }
h2 + h3 { margin-top: 8px; }
p { margin: 8px 0; }
ul, ol { margin: 8px 0; padding-left: 22px; }
li { margin: 4px 0; }
b, strong { font-weight: 800; }
.muted { color: var(--muted); }
.note { font-size: 14px; color: var(--muted); }
code { font-size: 14px; background: var(--bubble); border-radius: 6px; padding: 1px 6px; }
.path {
  display: inline-block; padding: 0 7px; line-height: 1.6; font-size: 14px; font-weight: 800; white-space: nowrap;
  background: var(--paper); border: 2px solid var(--edge); border-radius: 7px;
}
.path.hot { background: var(--yellow); color: #141214; }

table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
th, td { border: 2px solid var(--edge); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--yellow); color: #141214; font-weight: 900; }
.table-wrap { overflow-x: auto; }

.callout { background: var(--pink-soft); border: 2.5px dashed var(--pink); border-radius: 14px; padding: 12px 16px; margin: 14px 0; font-weight: 600; }
.chat { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.chat span { max-width: 80%; padding: 6px 12px; font-size: 15px; border: 2px solid var(--edge); }
.chat .them { align-self: flex-start; background: var(--paper); border-radius: 14px 14px 14px 4px; }
.chat .me { align-self: flex-end; background: var(--yellow); color: #141214; border-radius: 14px 14px 4px 14px; }

.faq h3 { margin-top: 20px; }
.faq h3::before { content: "Q. "; color: var(--pink); }
.faq h3 + p::before { content: "A. "; font-weight: 900; }

.cta {
  display: block; text-align: center; text-decoration: none; margin: 28px 0 8px;
  background: var(--pink); color: #fff; border: 3px solid var(--edge); border-radius: 16px;
  box-shadow: 5px 5px 0 var(--drop); padding: 14px; font-size: 20px;
}
.cta:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--drop); }

/* 하단 */
.foot { margin-top: 40px; text-align: center; font-size: 13px; color: var(--muted); font-weight: 600; line-height: 2; }
.foot nav a { margin: 0 4px; white-space: nowrap; }
.foot .biz { margin: 6px 0 0; font-size: 11.5px; line-height: 1.7; }

@media (max-width: 400px) {
  h1 { font-size: 28px; }
  h2 { font-size: 21px; }
  .card { padding: 16px; }
}

/* 요금 안내: 상품 예시 이미지 */
.product img { display: block; width: 100%; height: auto; margin: 10px 0 6px; border: 2.5px solid var(--edge); border-radius: 14px; }
.price-table th { white-space: nowrap; width: 1%; }
