/* 휴대폰용 설명·튜토리얼 화면(m.html). 화면 틀과 같은 색과 글꼴(Pretendard)을 쓴다. 평시에는 중립색, 강조는 파랑, 주의는 노랑. */
@font-face { font-family: 'Pretendard'; font-weight: 400; font-display: swap; src: local('Pretendard Regular'), local('Pretendard-Regular'), url(/fonts/Pretendard-Regular.ttf) format('truetype'); }
@font-face { font-family: 'Pretendard'; font-weight: 500; font-display: swap; src: local('Pretendard Medium'), local('Pretendard-Medium'), url(/fonts/Pretendard-Medium.ttf) format('truetype'); }
@font-face { font-family: 'Pretendard'; font-weight: 600; font-display: swap; src: local('Pretendard SemiBold'), local('Pretendard-SemiBold'), url(/fonts/Pretendard-SemiBold.ttf) format('truetype'); }
@font-face { font-family: 'Pretendard'; font-weight: 700; font-display: swap; src: local('Pretendard Bold'), local('Pretendard-Bold'), url(/fonts/Pretendard-Bold.ttf) format('truetype'); }

/* 휴대폰 브라우저의 자동 다크(강제 다크)로 색이 뒤집히지 않게, 이 화면은 밝은 화면만 쓴다고 알린다(head 의 color-scheme 메타와 같은 뜻). */
:root { color-scheme: light only; }
:root {
  --bg: #eceef1; --card: #fff; --line: #d3d8df; --line-strong: #bcc3cd; --text: #1c2330; --muted: #667085;
  --accent: #2563eb; --accent-soft: #eaf1fe; --warn: #9a5b06; --warn-bg: #fdf3dc; --warn-line: #ecd29a;
  --font: 'Pretendard', "Malgun Gothic", "Apple SD Gothic Neo", "Leelawadee UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 15px/1.6 var(--font); font-synthesis: none; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
button { font-family: inherit; cursor: pointer; }

.m-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: var(--text); font-size: 14px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.m-btn:disabled { opacity: .45; cursor: default; }
.m-btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* 상단 줄: 로고, 언어, 도입 상담 */
.m-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 6px; height: 56px; padding: 0 10px; background: #fff; border-bottom: 1px solid var(--line); }
.m-logo { height: 20px; margin-right: auto; }
.m-lang { display: flex; gap: 2px; }
.m-lang .m-btn { padding: 0 6px; font-size: 13px; }
.m-lang .m-btn.is-active { border-color: var(--accent); color: var(--accent); font-weight: 600; }

.m-hero { padding: 18px 16px 14px; background: #fff; }
.m-hero h1 { margin: 0 0 6px; font-size: 21px; font-weight: 700; line-height: 1.35; }
.m-hero p { margin: 0; color: var(--muted); font-size: 14px; }
.m-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 12px; }
.m-hero-actions .m-link { margin-top: 0; }
.m-try { min-height: 44px; padding: 0 18px; text-decoration: none; }
.m-link { min-height: 40px; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* 목차 탭: 다섯 칸을 같은 폭으로 나누고, 긴 이름은 칸 안에서 두 줄까지 쓴다 */
.m-tabs { position: sticky; top: 56px; z-index: 15; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 2px 6px rgba(20, 26, 36, .06); }
.m-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; padding: 6px 2px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.2; text-align: center; }
.m-tabs i { width: 20px; height: 20px; border-radius: 50%; background: var(--muted); color: #fff; font-style: normal; font-size: 12px; font-weight: 700; line-height: 20px; }
.m-tabs span { word-break: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
.m-tabs .is-on { border-bottom-color: var(--text); color: var(--text); font-weight: 700; }
.m-tabs .is-on i { background: var(--text); }

.m-sec { padding: 16px 12px 8px; }
.m-sec h2 { margin: 0 4px 6px; font-size: 18px; font-weight: 700; }
.m-intro { margin: 0 4px 14px; color: var(--muted); font-size: 14px; }
.m-item { margin-bottom: 12px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.m-item h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; line-height: 1.4; }
.m-item p { margin: 0; }
.m-list { margin: 8px 0 0; padding-left: 18px; }
.m-list li + li { margin-top: 4px; }
.m-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.m-chips span { padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 14px; font-size: 13px; font-weight: 500; }
.m-note { margin: 8px 0 0 !important; color: var(--muted); font-size: 13px; }
.m-sec > .m-note { margin: 4px 4px 0 !important; }
.m-warn { margin: 10px 0 0 !important; padding: 8px 10px; background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 6px; color: var(--warn); font-size: 14px; font-weight: 500; }

/* 그림: 누르면 크게 본다. 오른쪽 아래에 돋보기 표시 */
.m-shot { position: relative; display: block; width: 100%; margin: 12px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: #f5f6f8; overflow: hidden; line-height: 0; }
.m-shot img { display: block; width: 100%; height: auto; }
.m-shot::after { content: ""; position: absolute; right: 6px; bottom: 6px; width: 28px; height: 28px; border-radius: 50%; background: rgba(28, 35, 48, .72) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'><circle cx='10.5' cy='10.5' r='6'/><path d='M15 15l5 5M10.5 8v5M8 10.5h5'/></svg>") center/16px no-repeat; }
.m-zoom { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 56px 6px 6px; background: rgba(20, 26, 36, .92); }
.m-zoom img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; }
.m-zoom-close { position: absolute; top: 8px; right: 8px; }

/* 설치 순서 */
.m-steps { margin: 0 0 12px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.m-steps li { display: flex; gap: 10px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.m-steps i { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--text); color: #fff; font-style: normal; font-size: 13px; font-weight: 700; line-height: 24px; text-align: center; }
.m-steps b { display: block; font-size: 15px; font-weight: 700; line-height: 1.4; }
.m-steps p { margin: 2px 0 0; font-size: 14px; }
.m-env { margin: 6px 0 0; display: grid; grid-template-columns: minmax(84px, 34%) minmax(0, 1fr); gap: 6px 10px; font-size: 14px; }
.m-env dt { color: var(--muted); }
.m-env dd { margin: 0; }
.m-adopt { margin: 6px 0 0; padding-left: 20px; }
.m-adopt li + li { margin-top: 6px; }
.m-adopt b { display: block; font-weight: 600; }
.m-adopt span { color: var(--muted); font-size: 14px; }

/* 튜토리얼 카드 */
.m-card { min-height: 220px; }
.m-card-no { display: inline-block; margin-bottom: 6px; padding: 1px 8px; border-radius: 4px; background: var(--text); color: #fff; font-size: 12px; font-weight: 700; }
.m-tut-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.m-tut-nav .m-btn { flex: none; min-width: 84px; }
.m-dots { flex: 1; display: flex; justify-content: center; }
.m-dots button { width: 28px; height: 40px; padding: 0; border: 0; background: none; position: relative; }
.m-dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--line-strong); }
.m-dots button.is-on::before { width: 18px; margin-left: -9px; border-radius: 4px; background: var(--accent); }

/* 맨 아래: PC 에서 직접 해보기 안내와 상담 */
.m-foot { margin: 8px 12px 16px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.m-foot h2 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.m-foot p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.m-foot-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.m-foot-actions .m-btn { flex: 1 1 140px; min-height: 44px; }

/* 포털이 붙이는 요소: 맨 위 종료 안내 띠, 맨 아래 고지 줄.
   고지 줄은 두 줄로 접는다. 첫 줄 = 고지 문구(넘치면 …) + 이용 기간, 둘째 줄 = 링크를 같은 폭으로 나눠 놓고 긴 이름은 칸 안에서 줄을 바꾼다.
   [도입 상담]은 상단 줄에 있으므로 여기서는 뺀다. */
.pt-trial-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 70; flex-wrap: wrap; }
body > .psl-wm-notice { height: auto; flex-wrap: wrap; align-items: center; gap: 0 10px; padding: 3px 10px 0; white-space: normal; line-height: 1.3; }
body > .psl-wm-notice::before { content: ""; order: 1; flex: 1 1 100%; height: 0; }
body > .psl-wm-notice .psl-wm-notice-text { flex: 1 1 0; min-width: 0; white-space: nowrap; line-height: 20px; }
body > .psl-wm-notice .psl-wm-links { display: contents; }
body > .psl-wm-notice .pt-trial-until { flex: none; white-space: nowrap; }
body > .psl-wm-notice .pt-trial-link { order: 2; flex: 1 1 0; min-width: 0; min-height: 40px; padding: 2px 4px; text-align: center; white-space: normal; overflow-wrap: anywhere; }
body > .psl-wm-notice .pt-trial-consult { display: none; }

/* 넓은 화면에서 열었을 때: 가운데 한 줄 폭으로 */
@media (min-width: 700px) {
  .m-hero, .m-sec, .m-foot { max-width: 680px; margin-left: auto; margin-right: auto; }
  .m-tabs { padding: 0 calc(50% - 340px); }
}
