/* 노크워치 웹 간판 (2026-10-30, web/pages.py가 쓰는 클래스).
   토큰은 디자인 넘겨받기 kw-tokens.css 1판의 :root 그대로. 크기 clamp()와 컴포넌트 수치는 README 4, 5, 6절과 웹 간판, 신호 결과 기록 참고본.
   한국어 줄바꿈: 본문 keep-all과 break-word, 제목과 짧은 설명 balance, 문단과 목록 pretty, 단추와 딱지 nowrap, 표 안에는 anywhere를 쓰지 않음 */

:root {
  --kw-blue: #1D4FBF;       --kw-blue-press: #173F99;
  --kw-blue-50: #EEF3FB;    --kw-blue-100: #CCDAF3;
  --kw-ink: #0E1420;        --kw-text-2: #3A4250;
  --kw-text-3: #5C6575;     --kw-text-4: #6B7382;
  --kw-line: #E2E6EC;       --kw-surface: #F3F5F8;   --kw-bg: #FFFFFF;
  --kw-red: #D6352B;        --kw-red-50: #FCEBEA;
  --kw-yellow: #F2B705;     --kw-yellow-50: #FFF5D1;
  --kw-gray: #8A93A1;       --kw-gray-50: #EFF1F4;

  --kw-chart-bg: #FFFFFF;   --kw-chart-text-1: #0E1420;
  --kw-chart-text-2: #2E3542; --kw-chart-text-3: #5C6575;
  --kw-chart-grid: #E6EAF0; --kw-chart-axis: #BCC4D0;
  --kw-chart-price: #0E1420; --kw-chart-dot: #1D4FBF;
  --kw-chart-wall: #2E3542;

  --kw-font: 'Pretendard Variable', Pretendard, -apple-system,
             'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --kw-fs-h1: 34px;  --kw-fs-h2: 26px;  --kw-fs-h3: 20px;
  --kw-fs-num: 40px; --kw-fs-body: 16px; --kw-fs-msg: 15px;
  --kw-fs-btn: 16px; --kw-fs-small: 13px;

  --kw-sp-1: 4px;  --kw-sp-2: 8px;  --kw-sp-3: 12px; --kw-sp-4: 16px;
  --kw-sp-5: 20px; --kw-sp-6: 24px; --kw-sp-8: 32px; --kw-sp-10: 40px;
  --kw-sp-16: 64px;
  --kw-r-s: 12px; --kw-r-m: 20px; --kw-r-l: 24px; --kw-r-pill: 9999px;
  --kw-shadow: 0 1px 2px rgba(14,20,32,.05), 0 8px 24px rgba(14,20,32,.06);
  --kw-tap: 44px; --kw-max: 1040px;
}
@media (min-width: 760px) {
  :root { --kw-fs-h1: 52px; --kw-fs-h2: 32px; --kw-fs-h3: 23px;
          --kw-fs-num: 48px; --kw-fs-body: 17px; --kw-fs-msg: 16px;
          --kw-fs-btn: 17px; --kw-fs-small: 14px; }
}

/* 바탕 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--kw-bg); color: var(--kw-ink);
       font-family: var(--kw-font); font-size: var(--kw-fs-body); line-height: 1.65; font-variant-numeric: tabular-nums;
       word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
p, li, dd, blockquote { text-wrap: pretty; }
ul, ol, dl { margin: 0; }
a { color: var(--kw-blue); }
a:hover { color: var(--kw-blue-press); }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: var(--kw-max); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.small { font-size: 13px; line-height: 1.6; color: var(--kw-text-3); }
.nw { white-space: nowrap; }
.ib { display: inline-block; max-width: 100%; }  /* 제목을 쌍점이나 쉼표 뒤에서 먼저 끊는 덩어리(pages.phrases) */
/* 투자 판단 고지 한 줄(홈 첫 화면 단추 아래, 신호 설명과 신호 결과 기록의 결과 근처). 작고 차분하게, 휴대폰에서도 14px */
.disclaim { font-size: 14px; line-height: 1.6; color: var(--kw-text-3); text-wrap: balance; }

/* 머리: sticky 64, 760px부터 메뉴, 그 아래는 텔레그램 단추와 펼침 메뉴 */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--kw-line);
       -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.top-in { max-width: var(--kw-max); height: 64px; margin: 0 auto; padding: 0 10px 0 20px; display: flex; align-items: center;
          justify-content: space-between; gap: 16px; }
.brand, .brand:hover { color: var(--kw-ink); }
.brand { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.brand img { width: 28px; height: 28px; }
.top-end { display: flex; align-items: center; gap: 4px; }
.nav { display: none; align-items: center; gap: 2px; }
.nav a { display: inline-flex; align-items: center; height: 44px; padding: 0 12px; color: var(--kw-text-2); font-size: 15px; font-weight: 600;
         text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--kw-ink); }
.nav a[aria-current] { color: var(--kw-ink); font-weight: 800; box-shadow: inset 0 -2px 0 var(--kw-blue); }
.tg-btn, .tg-btn:hover { color: #FFFFFF; }
.tg-btn { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: var(--kw-r-pill); background: var(--kw-ink);
          font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.tg-btn:active { transform: scale(0.97); }
.menu > summary { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px;
                  cursor: pointer; list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary span { width: 20px; height: 2px; border-radius: 2px; background: var(--kw-ink); }
.menu-panel { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; padding: 4px 20px 12px;
              border-top: 1px solid var(--kw-line); border-bottom: 1px solid var(--kw-line); background: #FFFFFF; }
.menu-panel a { display: flex; align-items: center; height: 52px; color: var(--kw-ink); font-size: 17px; font-weight: 700; text-decoration: none;
                border-bottom: 1px solid #EEF0F3; }
.menu-panel a[aria-current] { color: var(--kw-blue); }
@media (min-width: 760px) {
  .nav { display: flex; }
  .menu { display: none; }
  .tg-btn { margin-left: 10px; padding: 0 20px; }
  .top-in { max-width: calc(var(--kw-max) + 40px); padding-right: 20px; }  /* 로고와 단추 끝을 본문 칸(.wrap)과 같은 세로줄에 */
}

/* 단추와 딱지 */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btns-fill .btn { flex: 1 1 200px; max-width: 100%; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 24px; border-radius: var(--kw-r-pill);
       font-size: var(--kw-fs-btn); font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; transition: background-color .15s; }
.btn:active { transform: scale(0.98); }
.btn-primary, .btn-primary:hover { color: #FFFFFF; }
.btn-primary { background: var(--kw-blue); }
.btn-primary:hover { background: var(--kw-blue-press); }
.btn-sub, .btn-sub:hover { color: var(--kw-ink); }
.btn-sub { background: var(--kw-surface); }
.btn-sub:hover { background: #E7EBF1; }
@media (min-width: 760px) { .btn { height: 56px; } }
.btn-line { flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border: 1.5px solid var(--kw-ink);
            border-radius: var(--kw-r-pill); font-size: 14px; font-weight: 700; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--kw-r-pill); color: var(--kw-ink);
         font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; }
.badge-core::before, .badge-exch::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.badge-core { background: var(--kw-red-50); }
.badge-core::before { background: var(--kw-red); }
.badge-exch { background: var(--kw-yellow-50); }
.badge-exch::before { background: var(--kw-yellow); }
.badge-soon { background: #FFFFFF; color: var(--kw-text-2); box-shadow: inset 0 0 0 1px var(--kw-line); }
.card { background: #FFFFFF; border-radius: clamp(20px, 2vw, 24px); box-shadow: var(--kw-shadow); }

/* 홈 구역 */
.sec { padding: clamp(40px, 5.6vw, 72px) 20px; }
.sec-gray { padding-left: 16px; padding-right: 16px; background: var(--kw-surface); }
/* 회색 구역은 카드가 글보다 양옆 4px 넓다(휴대폰 16px과 20px). PC에서도 글 머리가 흰 구역, 머리글과 같은 세로줄에 오게 칸을 8px 넓힘 */
.sec-gray > .wrap, .page-gray > .wrap, .rec-sum > .wrap { max-width: calc(var(--kw-max) + 8px); }
.sec-head { margin: 0 0 20px; font-size: clamp(26px, 2.5vw, 32px); line-height: 1.3; font-weight: 800; letter-spacing: -0.025em; }
.sec-gray .sec-head { margin-left: 4px; margin-right: 4px; }
.sec-head.tight { margin-bottom: 8px; }
.sec-lead { max-width: 680px; margin: 0 0 24px; font-size: clamp(16px, 1.33vw, 17px); line-height: 1.65; color: var(--kw-text-2); text-wrap: balance; }
#telegram, #articles { scroll-margin-top: 64px; }

.hero { padding: clamp(28px, 5vw, 64px) 20px clamp(36px, 5.6vw, 72px); }
/* 첫 화면 제목은 쉼표 뒤에서 늘 두 줄(10/30 밤). 첫 줄 '내 코인에 위험 신호가 확인되면,'이 약 11.8em이라 글자 크기를 칸 폭에 맞춰
   휴대폰과 PC 모두 두 줄로 보이게 한다(칸보다 길면 그 줄 안에서 balance로 나뉨). PC는 글 칸을 넓히고(1.5 : 1) 최대 47px */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(24px, calc((100vw - 40px) / 12.2), 34px); line-height: 1.25; font-weight: 800; letter-spacing: -0.035em; }
.hero h1 .line { display: block; }
@media (min-width: 760px) { .hero h1 { font-size: clamp(34px, 4.1vw, 47px); line-height: 1.2; } }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.hero-lead { margin-top: clamp(14px, 1.6vw, 20px); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--kw-text-2); text-wrap: balance; }
.hero .btns { margin-top: clamp(24px, 2.6vw, 32px); }
.hero .disclaim { margin-top: 14px; }
.hero-art { width: 100%; height: auto; max-height: 320px; }

/* 신호 카드와 알림 카드 */
.sig-list { display: flex; flex-direction: column; gap: 16px; }
.sig { overflow: hidden; }
.sig-top { padding: clamp(20px, 2.4vw, 28px) clamp(18px, 2.6vw, 32px) clamp(18px, 2vw, 24px); }
.sig-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 8px; }
.sig-title h2, .sig-title h3 { font-size: clamp(20px, 1.8vw, 23px); line-height: 1.35; font-weight: 800; letter-spacing: -0.02em; }
.sig-desc { max-width: 640px; font-size: clamp(16px, 1.33vw, 17px); line-height: 1.65; color: var(--kw-text-2); text-wrap: balance; }
.sig-ex { margin: 0; padding: clamp(14px, 1.8vw, 22px) clamp(14px, 2.6vw, 32px) clamp(18px, 2.4vw, 30px); border-top: 1px solid var(--kw-line); }
.sig-ex figcaption { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--kw-blue); }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(14px, 2.6vw, 32px); align-items: start; }
.chart { overflow: hidden; border: 1px solid var(--kw-line); border-radius: var(--kw-r-s); }
.chart svg { width: 100%; height: auto; }
.msg { display: flex; flex-direction: column; gap: 10px; font-size: clamp(15px, 1.25vw, 16px); line-height: 1.65; }
.msg b { font-weight: 800; }
.msg blockquote { margin: 0; padding: 12px 14px; border-radius: var(--kw-r-s); background: var(--kw-blue-50); }
.msg .pct { color: var(--kw-blue); }
.dot { display: inline-block; width: 10px; height: 10px; margin: 0 7px 2px 0; border-radius: 50%; background: var(--kw-red); vertical-align: middle; }
.msg-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--kw-line); }
.msg-foot .src { font-size: 13px; color: var(--kw-text-3); }
.sig-notice { padding: clamp(20px, 2.4vw, 28px) clamp(18px, 2.6vw, 32px); }
.sig-notice .sig-desc { margin-bottom: 10px; }
.notice-note { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--kw-text-3); text-wrap: balance; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 700; text-underline-offset: 4px; }
.ex-note { margin: 4px 4px 0; }

/* 홈 신호 결과 기록 요약 */
.rec-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.rec-card { padding: 20px; border-radius: 20px; background: var(--kw-surface); }
.rec-card h3 { margin: 0 0 4px; font-size: 19px; font-weight: 800; }
.rec-card .meta { margin: 0 0 14px; font-size: 13px; color: var(--kw-text-3); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; padding: 16px; border-radius: 16px; background: #FFFFFF; }
.tile-lbl { font-size: 13px; font-weight: 700; color: var(--kw-text-3); white-space: nowrap; }
.tile-big { margin: 8px 0 6px; font-size: clamp(34px, 3.6vw, 44px); line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.tile-s1 { font-size: 14px; line-height: 1.45; }
.tile-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--kw-line); font-size: 13px; line-height: 1.5; color: var(--kw-text-3); }
.tile-foot b { color: var(--kw-ink); }
.trust { margin: 20px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
         gap: 8px 24px; font-size: 15px; line-height: 1.55; }
.trust li { display: flex; gap: 10px; text-wrap: balance; }
.trust li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 2px; background: var(--kw-blue); }
.rec-note { max-width: 820px; margin-top: 16px; text-wrap: pretty; }
.rec-btns { margin-top: 20px; }

/* 홈 이용 방법, 요금, 텔레그램, 글 목록 */
.steps { padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; border-radius: 20px; background: #FFFFFF; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
                    background: var(--kw-blue); color: #FFFFFF; font-size: 15px; font-weight: 800; }
.steps h3 { margin-top: 6px; font-size: 19px; font-weight: 800; }
.steps p { font-size: 15px; line-height: 1.6; color: var(--kw-text-2); }
.sec-note { margin: 14px 4px 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.plan { display: flex; flex-direction: column; gap: 12px; padding: 24px 22px; border-radius: 20px; }
.plan-free { box-shadow: inset 0 0 0 2px var(--kw-blue); }
.plan-paid { background: var(--kw-surface); }
.plan-title { display: flex; align-items: center; gap: 10px; }
.plan h3 { font-size: 20px; font-weight: 800; }
.plan-price { font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.plan ul { padding-left: 20px; font-size: 15px; line-height: 1.6; color: var(--kw-text-2); }
.plan li + li { margin-top: 4px; }
.plan .small { margin-top: auto; }
.tg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.tg-card { display: flex; flex-direction: column; gap: 12px; padding: 24px 22px; border-radius: 20px; background: #FFFFFF; box-shadow: var(--kw-shadow); }
.tg-card-head { display: flex; align-items: center; gap: 12px; }
.tg-card-head img { width: 48px; height: 48px; border-radius: 50%; }
.tg-card h3 { font-size: 20px; font-weight: 800; }
.tg-card p { font-size: 16px; line-height: 1.6; color: var(--kw-text-2); text-wrap: balance; }
.tg-card .btn { display: flex; margin-top: auto; }
.tg-card .handle { font-size: 13px; color: var(--kw-text-3); text-align: center; }
.art-list { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); column-gap: 32px;
            border-top: 1px solid var(--kw-line); }
.art-list li { border-bottom: 1px solid var(--kw-line); }
.art-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 0; color: var(--kw-ink);
              font-size: 16px; font-weight: 700; line-height: 1.5; text-decoration: none; text-wrap: balance; }
.art-list a:hover { color: var(--kw-blue); }
.art-list a::after { content: "›"; flex: none; color: var(--kw-text-3); }

/* 화면 공통 (신호 설명, 자주 묻는 질문, 글) */
.page { padding: clamp(32px, 4.4vw, 56px) 20px clamp(48px, 5.6vw, 72px); }
.page-gray { padding-left: 16px; padding-right: 16px; background: var(--kw-surface); }
.page-title { margin: 0 0 10px; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.22; font-weight: 800; letter-spacing: -0.03em; }
.page-lead { max-width: 680px; margin: 0 0 24px; font-size: clamp(16px, 1.33vw, 17px); line-height: 1.65; color: var(--kw-text-2); text-wrap: balance; }
.page-gray .page-title, .page-gray .page-lead { margin-left: 4px; margin-right: 4px; }
.narrow { max-width: 760px; margin: 0 auto; }

/* 신호 설명: 신호마다 그림, 단계 셋, 지난 결과, 한계 한 줄 (10/30 저녁 글을 줄이고 그림으로) */
.sig-docs { display: flex; flex-direction: column; gap: 14px; }
.sig-sum { padding: clamp(20px, 2.4vw, 28px) clamp(18px, 2.6vw, 32px); scroll-margin-top: 80px; }
.sig-sum .sig-title { margin-bottom: 16px; }
.sig-body { display: grid; gap: 18px; }
.pic { margin: 0; overflow: hidden; border: 1px solid var(--kw-line); border-radius: var(--kw-r-s); background: #FFFFFF; }
.pic svg { display: block; width: 100%; height: auto; }
.how { padding: 0; list-style: none; counter-reset: how; display: grid; gap: 12px; }
.how li { counter-increment: how; display: flex; gap: 12px; font-size: clamp(16px, 1.33vw, 17px); line-height: 1.55; font-weight: 600; text-wrap: balance; }
.how li::before { content: counter(how); flex: none; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px;
                  margin-top: 1px; border-radius: 50%; background: var(--kw-blue); color: #FFFFFF; font-size: 14px; font-weight: 800; }
.how-note { margin-top: 14px; font-size: 14px; line-height: 1.6; color: var(--kw-text-3); }
.sig-foot { display: grid; gap: 10px; margin-top: 20px; }
.result { display: grid; gap: 6px; padding: 16px 18px; border-radius: 16px; background: var(--kw-surface); }
.result-lbl { font-size: 13px; font-weight: 800; color: var(--kw-blue); }
.result-big { font-size: clamp(34px, 3.6vw, 44px); line-height: 1; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.result-txt { font-size: 15px; line-height: 1.5; }
.result-meta { margin-top: 2px; font-size: 13px; color: var(--kw-text-3); }
.limit { font-size: 14px; line-height: 1.6; color: var(--kw-text-3); text-wrap: balance; }
.limit b { color: var(--kw-text-2); }
.text-link.more { justify-self: start; }  /* 기록 표의 tr.more(접힌 줄)와 겹치지 않게 링크에만 */
.text-link.more::after { content: "›"; margin-left: 6px; }
.pic-note { margin: 16px 4px 0; }
.sig-disclaim { margin: 18px 4px 0; }
.sig-disclaim + .pic-note { margin-top: 4px; }
.sig-btns { margin: 20px 4px 0; }
.sig-btns .btn-sub { background: #FFFFFF; }  /* 회색 바탕 페이지라 보조 단추를 흰색으로 */
/* 거래소 경보 흐름: 휴대폰은 세로, PC는 가로 */
.tl { padding: 0; list-style: none; display: grid; }
.tl li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before { content: ""; position: absolute; left: 7px; top: 24px; bottom: 2px; width: 2px; background: var(--kw-line); }
.tl li:last-child::before { display: none; }
.tl-dot { flex: none; width: 16px; height: 16px; margin-top: 5px; border-radius: 50%; background: #FFFFFF; box-shadow: inset 0 0 0 2px #BCC4D0; }
.tl .on .tl-dot { background: var(--kw-blue); box-shadow: 0 0 0 4px var(--kw-blue-50); }
.tl-h { font-size: clamp(16px, 1.33vw, 17px); line-height: 1.5; font-weight: 800; text-wrap: balance; }
.tl-d { margin-top: 2px; font-size: 15px; line-height: 1.55; color: var(--kw-text-2); }
.tl-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--kw-r-pill); background: var(--kw-blue-50);
          color: var(--kw-blue); font-size: 12px; font-style: normal; font-weight: 800; white-space: nowrap; vertical-align: 2px; }
@media (min-width: 760px) {
  .sig-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
  .result { grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; align-items: center; }
  .result-lbl { grid-column: 1 / -1; }
  .tl { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .tl li { flex-direction: column; gap: 12px; padding-bottom: 0; }
  .tl li::before { left: 26px; right: -10px; top: 7px; bottom: auto; width: auto; height: 2px; }
}

.faq { border-top: 1px solid var(--kw-line); }
.faq details { border-bottom: 1px solid var(--kw-line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 12px 0; cursor: pointer;
               list-style: none; font-size: 16.5px; font-weight: 700; line-height: 1.5; }
.faq summary::-webkit-details-marker { display: none; }
.faq .q { text-wrap: balance; }
.plus { flex: none; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--kw-surface);
        color: var(--kw-blue); font-size: 20px; font-weight: 500; line-height: 1; transition: transform .15s; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq .ans { padding: 0 0 18px; }
.faq .ans p { font-size: 15.5px; line-height: 1.7; color: var(--kw-text-2); }
.faq .ans p + p { margin-top: 6px; }  /* 답은 문장마다 한 줄(pages.sentences) */

.doc { max-width: 720px; margin: 0 auto; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 8px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.doc h1 { margin: 0 0 10px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.25; font-weight: 800; letter-spacing: -0.03em; }
.doc .meta { margin: 0 0 28px; font-size: 13px; color: var(--kw-text-3); }
.doc h2 { margin: 32px 0 10px; font-size: clamp(20px, 1.9vw, 24px); line-height: 1.35; font-weight: 800; letter-spacing: -0.02em; }
.doc p, .doc ul, .doc ol { color: #1F2633; }
.doc p { margin: 0 0 14px; font-size: 16.5px; line-height: 1.8; }
.doc .note { margin: 16px 0; padding: 12px 14px; border-radius: var(--kw-r-s); background: var(--kw-surface); color: var(--kw-text-2); font-size: 14px; line-height: 1.6; }
.doc ul { margin: 0 0 16px; padding-left: 22px; font-size: 16px; line-height: 1.75; }
.doc ul li + li { margin-top: 6px; }
.doc ol { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: n; font-size: 16px; line-height: 1.7; }
.doc ol li { counter-increment: n; display: flex; gap: 12px; }
.doc ol li + li { margin-top: 8px; }
.doc ol li::before { content: counter(n); flex: none; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-top: 1px;
                     border-radius: 50%; background: var(--kw-blue-50); color: var(--kw-blue); font-size: 13px; font-weight: 800; }
.doc .url { overflow-wrap: anywhere; }  /* 긴 주소는 다음 줄로 넘기고, 한 줄보다 길 때만 주소 안에서 끊음 */
.doc .btns { margin: 28px 0 8px; }

/* 이용약관과 개인정보 처리방침 (10/30 밤): 조 제목은 글 화면 h2, 처리방침 소제목 h3, 처리방침 목차(작성지침 권장). 목차로 건너뛸 때 머리(64px)에 가리지 않게.
   '포맷 정리'(10/30 밤): 조마다 가는 줄로 나누고, 목록 줄 사이를 벌리고, 줄 머리('항목:', '보유 기간:')는 굵게 */
.legal h2 { scroll-margin-top: 80px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--kw-line); }
.doc h3 { margin: 22px 0 8px; font-size: 17px; line-height: 1.45; font-weight: 800; }
.legal h2 + h3 { margin-top: 14px; }
.legal ul li + li, .legal ol li + li { margin-top: 10px; }
.legal .lbl { font-weight: 700; color: var(--kw-ink); }
.toc { margin: 0 0 32px; padding: 14px 18px; border-radius: var(--kw-r-s); background: var(--kw-surface); }
.toc p { margin: 0 0 4px; font-size: 14px; font-weight: 800; color: var(--kw-text-2); }
.doc .toc ul { margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.5; }
.doc .toc li + li { margin-top: 0; }
.toc a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }

/* 운영 원칙 (about.html, 10/30 밤): 줄마다 이름과 한 문장(PC는 이름 칸과 글 칸 두 줄기), 아래 자료 인용 안내 상자 */
.rules { border-top: 1px solid var(--kw-line); }
.rules div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--kw-line); }
.rules dt { font-size: 14px; font-weight: 800; color: var(--kw-blue); white-space: nowrap; }
.rules dd { margin: 0; font-size: 16px; line-height: 1.65; color: var(--kw-text-2); }
.cite { margin-top: 28px; padding: 20px; border-radius: 16px; background: var(--kw-surface); }
.cite h2 { margin: 0 0 8px; font-size: 19px; line-height: 1.4; font-weight: 800; }
.cite p { font-size: 15px; line-height: 1.65; color: var(--kw-text-2); }
.cite p + p { margin-top: 4px; }
@media (min-width: 760px) { .rules div { grid-template-columns: 132px minmax(0, 1fr); gap: 20px; align-items: baseline; } }

/* 신호 결과 기록 화면 (6-2, 10/30 저녁 그림 중심): 요약 카드는 큰 숫자(신호 설명 화면 .result와 같은 상자), 점 그림과 범례, 다른 시점 한 줄.
   점 색: 파랑 시장보다 낮았음, 연파랑 높았음, 회색 테두리 측정 불가와 집계 전. 표 결과 칸 점: 파랑 낮았음, 회색 테두리 높았음 */
.rec-hero { padding: clamp(32px, 4.4vw, 56px) 20px clamp(28px, 3.6vw, 44px); }
.rec-hero h1 { margin: 0 0 12px; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.2; font-weight: 800; letter-spacing: -0.035em; }
/* 제목 아래 기준일, 기간, 건수, 출처 한 줄 (10/30 밤): 항목마다 작은 칸, 좁으면 다음 줄로 */
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.facts div { display: flex; gap: 6px; padding: 5px 10px; border-radius: 8px; background: var(--kw-surface); font-size: 13px; line-height: 1.5; }
.facts dt { flex: none; font-weight: 800; color: var(--kw-blue); white-space: nowrap; }
.facts dd { margin: 0; color: var(--kw-text-2); }
.rec-hero .lead { max-width: 700px; margin: 0 0 8px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; color: var(--kw-text-2); text-wrap: balance; }
.rec-hero .muted { max-width: 700px; font-size: 14px; line-height: 1.6; color: var(--kw-text-3); }
.rec-sum { padding: clamp(28px, 4vw, 48px) 16px; background: var(--kw-surface); }
.boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 16px; align-items: start; }
.box { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2.4vw, 28px); }
.box h2 { margin: 0 0 6px; font-size: clamp(21px, 1.9vw, 24px); font-weight: 800; letter-spacing: -0.02em; }
.box .meta { font-size: 13px; color: var(--kw-text-3); }
.dots { display: grid; gap: 12px; margin: 4px 0 2px; }
.waffle { width: 100%; max-width: 408px; height: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; line-height: 1.5; color: var(--kw-text-2); }
.lg { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lg::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; }
.lg-b::before { background: var(--kw-blue); }
.lg-l::before { background: var(--kw-gray); }
.lg-o::before { box-shadow: inset 0 0 0 2px var(--kw-gray); }
.sub-line { padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--kw-line); font-size: 14px; line-height: 1.5; color: var(--kw-text-2); }
.rec-sum .trust, .rec-disclaim { max-width: calc(var(--kw-max) + 8px); margin: 20px auto 0; padding: 0 4px; }
.rec-sum .rec-disclaim { margin-top: 14px; }
.rec-tbl { padding: clamp(32px, 4.4vw, 56px) 20px 0; }
.rec-tbl:last-child { padding-bottom: clamp(48px, 5.6vw, 72px); }  /* 맨 아래 집계 기준 구역을 뺀 뒤(10/30 밤) 마지막 표와 바닥글 사이 */
.tbl-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 0 0 10px; }
.rec-tbl .legend { margin: 0 0 12px; }
.tbl-head h2 { font-size: clamp(22px, 2.1vw, 27px); font-weight: 800; letter-spacing: -0.02em; }
.tbl-head > span { font-size: 13px; color: var(--kw-text-3); }  /* 건수 줄만(제목 안 nw 덩어리는 빼고) */
.tbl { overflow-x: auto; border: 1px solid var(--kw-line); border-radius: 16px; }
.tbl table { min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; line-height: 1.4; white-space: nowrap; }
.tbl th, .tbl td { text-align: left; font-weight: 400; }
.tbl thead th { padding: 10px 14px; background: var(--kw-surface); color: var(--kw-text-3); font-size: 13px; font-weight: 700; }
.tbl tbody td, .tbl tbody th { border-top: 1px solid var(--kw-line); }
.tbl .c-d, .tbl .c-t, .tbl .c-c { position: sticky; z-index: 1; background: #FFFFFF; }
.tbl thead .c-d, .tbl thead .c-t, .tbl thead .c-c { z-index: 2; background: var(--kw-surface); }
.tbl .c-d { left: 0; width: 64px; min-width: 64px; padding: 10px 0 10px 16px; }
.tbl .c-t { left: 64px; width: 56px; min-width: 56px; padding: 10px 0 10px 8px; }
.tbl .c-c { left: 120px; width: 84px; min-width: 84px; padding: 10px 12px 10px 8px; box-shadow: inset -1px 0 0 var(--kw-line); }
.tbl tbody .c-t { color: var(--kw-text-2); }
.tbl tbody .c-c { font-weight: 700; }
.tbl .c-r { width: 40%; min-width: 104px; padding: 10px 14px; }
.tbl .c-r:nth-child(4):last-child { width: 80%; }  /* 결과 칸이 하나뿐인 표(빙산 매도벽)도 날짜, 시각, 코인 칸이 벌어지지 않게 */
.tbl thead .c-r { padding: 10px 14px; white-space: normal; }
.r { display: inline-flex; align-items: center; gap: 7px; }
.r::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; }
.r-lo { font-weight: 800; }
.r-lo::before { background: var(--kw-blue); }
.r-hi { color: var(--kw-text-2); }
.r-hi::before { box-shadow: inset 0 0 0 1.5px var(--kw-gray); }
.r-na { color: var(--kw-text-4); }
.r-na::before { visibility: hidden; }  /* 글이 숫자와 같은 자리에서 시작하게 */
/* 더 보기: 단추(label) 안 체크 상자를 :has로 읽어 처음 10줄(pages.py RECORD_LIMIT) 뒤 줄(.more)을 편다. :has를 모르는 브라우저는 줄을 다 보이고 단추를 숨긴다 */
.more-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; margin-top: 10px;
            border-radius: var(--kw-r-pill); background: var(--kw-surface); color: var(--kw-ink); font-size: 15px; font-weight: 700; cursor: pointer;
            white-space: nowrap; user-select: none; }
.more-btn:hover { background: #E7EBF1; }
.rec-tbl:not(:has(.more-toggle:checked)) .tbl .more, .more-toggle:checked ~ .more-open, .more-toggle:not(:checked) ~ .more-close { display: none; }
.more-btn:has(.more-toggle:focus-visible) { outline: 2px solid var(--kw-blue); outline-offset: 2px; }
@supports not selector(:has(*)) { .more-btn { display: none; } }

/* 바닥글 */
.foot { padding: 40px 20px 48px; background: var(--kw-surface); border-top: 1px solid var(--kw-line); }
.foot-in { display: flex; flex-direction: column; gap: 18px; }
.foot-brand { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; }
.foot-brand img { width: 24px; height: 24px; }
.foot-note { display: flex; flex-direction: column; gap: 6px; max-width: 760px; font-size: 14px; line-height: 1.65; color: var(--kw-text-3); }  /* 투자 판단 고지 전체와 자료 출처 */
.foot-disclaim p + p { margin-top: 2px; }  /* 고지는 문장마다 한 줄 */
.foot-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 14px; font-weight: 700; color: var(--kw-text-2); }
.foot-contact a { display: inline-flex; align-items: center; min-height: 44px; color: var(--kw-ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: -18px; font-size: 14px; font-weight: 700; }  /* 운영 원칙, 이용약관, 개인정보 처리방침 링크. 문의 줄과 붙여 둠(줄 사이 18px을 뺌) */
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--kw-text-2); white-space: nowrap; }
.foot-links .foot-privacy { color: var(--kw-ink); font-weight: 800; }  /* 처리방침은 다른 링크와 구분(표준 개인정보 보호지침 제20조 제1항) */

/* 없는 주소 */
.nf { text-align: center; }
.nf .btns { justify-content: center; margin-top: 24px; }

/* 움직임 (10/30 저녁 '애니메이션 적극활용'). 화면에 들어온 카드(.rv)가 아래에서 떠오르고(같이 들어온 것끼리 차례로), 그 안 그림의 선이 그려지고(.draw),
   번호와 점이 튀어나오고(.pop), 막대가 자라고(.grow), 화살표가 들어오고(.slide), 빙산이 떠오르고(.rise), 결과 기록 점 그림이 차례로 채워지고,
   큰 숫자가 0에서 올라간다(스크립트).
   거래소 경보 알림 점은 두 번 퍼지고, 첫 화면 그림의 고리는 두 번 숨쉬고(5초 안에 멈춤), 자주 묻는 질문 답은 부드럽게 열리고 닫힌다.
   - 숨기고 움직이는 규칙은 모두 html.js 아래: web/pages.py ANIM_JS가 IntersectionObserver를 준비한 뒤에 js를 단다. 스크립트가 없으면 처음부터 다 보임
   - 움직임 줄이기 설정(reduce)이면 스크립트가 js를 달지 않고, 맨 아래 규칙이 기존 전환(단추 색, + 돌기)까지 끈다. 인쇄도 움직임 없음(screen만)
   - transform과 opacity만 움직인다(선 그리기만 stroke-dashoffset). 시작 시각은 카드가 들어온 때(--d, 차례 늦춤) + 조각마다 --t(ms) */
@media screen and (prefers-reduced-motion: no-preference) {
  html.js .rv:not(.in) { opacity: 0; }
  html.js .rv.in { animation: kw-rise .6s ease-out var(--d, 0ms) backwards; }
  html.js .rv .draw { stroke-dasharray: var(--len) var(--len); }
  html.js .rv:not(.in) .draw { stroke-dashoffset: var(--len); }
  html.js .rv.in .draw { animation: kw-draw .9s ease-out calc(var(--d, 0ms) + var(--t, 250ms)) backwards; }
  html.js .rv .pop, html.js .rv .grow, html.js .rv .waffle circle, html.js .hero-art .ring { transform-box: fill-box; transform-origin: center; }
  html.js .rv .grow { transform-origin: 50% 100%; }
  html.js .rv.in .pop { animation: kw-pop .45s ease-out calc(var(--d, 0ms) + var(--t, 600ms)) backwards; }
  html.js .rv.in .grow { animation: kw-grow .7s ease-out calc(var(--d, 0ms) + var(--t, 200ms)) backwards; }
  html.js .rv.in .slide { animation: kw-slide .6s ease-out calc(var(--d, 0ms) + var(--t, 200ms)) backwards; }
  html.js .rv.in .rise { animation: kw-rise .7s ease-out calc(var(--d, 0ms) + var(--t, 300ms)) backwards; }
  html.js .rv.in .fade { animation: kw-fade .6s ease-out calc(var(--d, 0ms) + var(--t, 500ms)) backwards; }
  html.js .rv.in .waffle circle { animation: kw-dot .4s ease-out calc(var(--d, 0ms) + 250ms + var(--i, 0) * var(--step, 6ms)) backwards; }
  html.js .rv.in .how li { animation: kw-rise .5s ease-out calc(var(--d, 0ms) + 250ms + var(--n, 0) * 120ms) backwards; }
  html.js .how li:nth-child(2) { --n: 1; }
  html.js .how li:nth-child(3) { --n: 2; }
  html.js .tl .on .tl-dot { position: relative; }
  html.js .rv.in .tl .on .tl-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--kw-blue); opacity: 0;
                                          animation: kw-pulse 1.6s ease-out calc(var(--d, 0ms) + 700ms) 2 backwards; }
  html.js .hero-art .ring { animation: kw-breathe 2.2s ease-in-out calc(var(--k, 0) * 300ms) 2; }
  html.js .faq details[open] .ans { animation: kw-open .4s ease-out; }
  html.js .faq details.closing .ans { animation: kw-close .22s ease-in forwards; }
  html.js .rec-tbl:has(.more-toggle:checked) .tbl .more { animation: kw-fade .4s ease-out; }
}
@keyframes kw-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes kw-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kw-draw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
@keyframes kw-pop { from { opacity: 0; transform: scale(.3); } 70% { opacity: 1; transform: scale(1.12); } to { opacity: 1; transform: none; } }
@keyframes kw-grow { from { transform: scaleY(0); } to { transform: none; } }
@keyframes kw-slide { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes kw-dot { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
@keyframes kw-pulse { from { opacity: .45; transform: none; } to { opacity: 0; transform: scale(2.6); } }
@keyframes kw-breathe { 50% { opacity: .35; transform: scale(.97); } }
@keyframes kw-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes kw-close { to { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
