/* 하위 페이지(상품·결제·마이페이지·성과·리포트·법적 페이지) + 메인에 붙인 신청 폼·하단.
   색·글꼴·버튼 토큰은 styles.css :root 를 그대로 쓴다. 3D·스크롤 연출 없음. */

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
.wrap-narrow { max-width: 800px; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

/* ── 머리말 ─────────────────────────────────────────────── */
.doc-head { position: sticky; top: 0; z-index: 20; background: var(--paper); }
.doc-head::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 32px;
  background: linear-gradient(var(--paper), rgba(244, 245, 247, 0)); pointer-events: none;
}
.doc-head-in { display: flex; align-items: center; gap: 40px; padding-top: calc(16px + env(safe-area-inset-top)); padding-bottom: 16px; }
.doc [id] { scroll-margin-top: 112px; }   /* /guide/#install 같은 바로가기가 고정 머리말 밑에 숨지 않게 */
.doc-logo { color: var(--blue); flex: none; }
.doc-logo svg { width: 154px; aspect-ratio: 2491 / 356; fill: currentColor; }
.doc-links { display: flex; gap: 32px; margin-left: auto; font-size: 16px; font-weight: 600; }
.doc-links a { opacity: .72; transition: opacity .2s; white-space: nowrap; }
.doc-links a:hover, .doc-links a[aria-current="page"] { opacity: 1; }
.doc-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--blue); }
.doc-head .btn-nav { background: var(--graphite); color: var(--paper); flex: none; }
.doc-head .btn-nav:hover { background: #000; }
.doc-head-min .doc-head-in { justify-content: space-between; }
/* 상품 정보 아래 묶음(상품 설명·성과 공개·리포트) — 매츠 시리즈가 늘면 상품 이름 칸을 더 붙인다 */
.sub-nav { display: flex; align-items: center; gap: 28px; margin-top: 8px; font-size: 16px; font-weight: 600; overflow-x: auto; scrollbar-width: none; }
.sub-nav::-webkit-scrollbar { display: none; }
.sub-nav-name { color: var(--blue); white-space: nowrap; padding-right: 28px; border-right: 1px solid var(--line); }
.sub-nav a { padding: 8px 0; opacity: .72; white-space: nowrap; transition: opacity .2s; }
.sub-nav a:hover, .sub-nav a[aria-current="page"] { opacity: 1; }
.sub-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--blue); }
.sub-nav .sub-nav-more { margin-left: auto; padding-left: 28px; border-left: 1px solid var(--line); }

/* ── 버튼 보강 ──────────────────────────────────────────── */
.btn { border: 0; cursor: pointer; text-align: center; }
.btn-dark { background: var(--graphite); color: var(--paper); }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--graphite); box-shadow: inset 0 0 0 1px rgba(28, 34, 36, .28); }
.btn-ghost:hover { background: rgba(28, 34, 36, .06); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 16px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .35; cursor: not-allowed; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link { font-weight: 600; border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: border-color .2s; }
.link:hover { border-color: var(--text); }

/* ── 문서형 본문 ─────────────────────────────────────────── */
.doc { padding-top: clamp(48px, 7vw, 96px); padding-bottom: var(--gap-section); }
.doc-title { font-size: clamp(36px, 5.2vw, 72px); font-weight: 700; line-height: 1.08; letter-spacing: -.045em; }
.doc-lead { margin-top: 20px; max-width: 40ch; font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); }
.doc-meta { margin-top: 16px; font-size: 16px; color: var(--text-2); }
.sec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 48px; padding: 48px 0; border-top: 1px solid var(--line); }
.doc-top + .sec, .sec-first { margin-top: clamp(40px, 6vw, 72px); }
.sec-h { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; line-height: 1.25; letter-spacing: -.03em; }
.sec-h small { display: block; margin-top: 8px; font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--text-2); }
.sec-b { min-width: 0; display: grid; gap: 20px; align-content: start; }
.sec-b > p, .sec-b li { max-width: 68ch; }
.sec-b p { color: var(--text-2); }
.sec-b strong { color: var(--text); font-weight: 600; }
.sec-one { grid-template-columns: minmax(0, 1fr); }
.muted { color: var(--text-2); }
.small { font-size: 16px; }
.num { font-variant-numeric: tabular-nums; }

/* 번호 단계(01·02): Archivo wide 800, 블루 */
.steps { display: grid; counter-reset: s; }
.steps > li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps > li:first-child { border-top: 0; padding-top: 0; }
.idx { font-family: var(--f-wide); font-variation-settings: "wdth" 125; font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -.05em; color: var(--blue); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.steps p { color: var(--text-2); }

/* 점 목록 */
.dots { display: grid; gap: 10px; padding: 0; list-style: none; }
.dots li { position: relative; padding-left: 18px; color: var(--text-2); }
.dots li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.dots li strong { color: var(--text); }

/* 표: 1px 선, 숫자는 tabular */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 17px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl th { font-size: 16px; font-weight: 600; color: var(--text-2); }
.tbl thead th { border-bottom-color: rgba(28, 34, 36, .3); }
.tbl .r { text-align: right; }
.tbl tfoot td, .tbl tfoot th { font-weight: 700; color: var(--text); border-bottom: 0; }
.kv { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); border-top: 1px solid var(--line); }
.kv dt, .kv dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--text-2); font-size: 16px; font-weight: 600; padding-right: 16px; }
.kv dd { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* 알림 줄(상자 대신 왼쪽 선) */
.note { padding: 4px 0 4px 18px; border-left: 2px solid var(--blue); color: var(--text-2); }
.note strong { color: var(--text); }
.note-warn { border-left-color: var(--graphite); }
.band { background: var(--blue); color: var(--paper); font-size: 16px; font-weight: 600; }
.band .wrap { padding-top: 12px; padding-bottom: 12px; }
.band-dark { background: var(--graphite); }

/* 큰 상태 화면 */
.state { padding: clamp(56px, 10vw, 120px) 0; display: grid; gap: 20px; justify-items: start; }
.state h1, .state h2 { font-size: clamp(32px, 4.4vw, 60px); font-weight: 700; line-height: 1.1; letter-spacing: -.045em; }
.state p { color: var(--text-2); max-width: 46ch; }

/* 큰 숫자 */
.big { font-family: var(--f-wide); font-variation-settings: "wdth" 125; font-weight: 800; letter-spacing: -.05em; line-height: .9; font-variant-numeric: tabular-nums; white-space: nowrap; }
.big sub, .big small { font-family: var(--f-kr); font-size: .34em; font-weight: 700; letter-spacing: -.02em; margin-left: .15em; color: var(--text-2); vertical-align: baseline; }
.up { color: var(--signal); }
.down { color: var(--graphite); }

/* ── 폼 ─────────────────────────────────────────────────── */
.form { display: grid; gap: 24px; }
.fld { display: grid; gap: 10px; }
.fld > label, .fld > .lbl { font-size: 16px; font-weight: 600; }
.lbl .opt { font-weight: 500; color: var(--text-2); }
.input {
  width: 100%; height: 52px; padding: 0 18px;
  background: #fff; border: 1px solid rgba(28, 34, 36, .22); border-radius: 14px;
  font-size: 18px; font-variant-numeric: tabular-nums;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.input[readonly], .input:disabled { background: rgba(28, 34, 36, .04); color: var(--text-2); }
.input-row { display: flex; gap: 10px; }
.input-row .input { flex: 1; min-width: 0; }
.input-row .btn { flex: none; height: 52px; }
.unit { position: relative; }
.unit .input { padding-right: 64px; }
.pw { position: relative; display: block; }
.pw .input { padding-right: 96px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font-size: 15px; font-weight: 600; color: var(--text-2); cursor: pointer; transition: background-color .2s, color .2s; }
.pw-eye:hover { color: var(--graphite); background: rgba(28, 34, 36, .06); }
.pw-eye[aria-pressed="true"] { color: var(--blue); }
.unit > span { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--text-2); font-size: 16px; font-weight: 600; pointer-events: none; }
.hint { font-size: 16px; color: var(--text-2); }
.msg { font-size: 16px; font-weight: 600; min-height: 0; }
.msg:empty { display: none; }
.msg.is-err { color: var(--graphite); padding-left: 14px; border-left: 2px solid var(--signal); }
.msg.is-ok { color: var(--blue); }

/* 고르기(알약) */
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 20px;
  border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgba(28, 34, 36, .22);
  font-size: 17px; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; white-space: nowrap;
}
.choice input:checked + span { background: var(--blue); color: var(--paper); box-shadow: none; }
.choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.choice input:disabled + span { opacity: .45; cursor: not-allowed; }

/* 체크(동의) */
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; align-items: start; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; margin: 1px 0 0; width: 24px; height: 24px; border-radius: 7px; background: #fff; border: 1.5px solid rgba(28, 34, 36, .4); cursor: pointer; display: grid; place-items: center; transition: background-color .15s, border-color .15s; }
.check input::after { content: ""; width: 11px; height: 6px; border: 2.5px solid var(--paper); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); opacity: 0; }
.check input:checked { background: var(--blue); border-color: var(--blue); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.check input:disabled { cursor: not-allowed; opacity: .45; }
.check-t { font-size: 17px; line-height: 1.55; }
.check-t b { font-weight: 700; }
.check-t .muted { display: block; margin-top: 4px; font-size: 16px; }
.check.is-off { cursor: not-allowed; }
.check.is-off .check-t { color: var(--text-mute); }
.checks { display: grid; gap: 0; border-top: 1px solid var(--line); }
.checks > .check { padding: 18px 0; border-bottom: 1px solid var(--line); }

/* 키·코드 */
.key { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 700; font-size: clamp(20px, 3.4vw, 32px); letter-spacing: .02em; overflow-wrap: anywhere; }

/* ── 메인에 붙인 신청 구역 ─────────────────────────────────── */
.apply { background: var(--paper); color: var(--text); padding: var(--gap-section) var(--pad); position: relative; z-index: 1; }
.apply-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; max-width: 1312px; margin: 0 auto; }
.apply-title { font-size: clamp(40px, 5.2vw, 84px); font-weight: 700; line-height: 1.06; letter-spacing: -.045em; grid-column: 1 / -1; }   /* 10-29 두 줄 제목이 길어 두 칸에 걸쳐 */
.apply-side { display: grid; gap: 28px; align-content: start; }
.apply-side > p { color: var(--text-2); font-size: 19px; }
.seats { display: grid; gap: 10px; padding-top: 28px; border-top: 1px solid var(--line); }
.seats-label { font-size: 16px; font-weight: 600; color: var(--text-2); }
.seats .big { font-size: clamp(56px, 6vw, 96px); color: var(--blue); }
.seats .big small { color: var(--text-2); }
.done { display: grid; gap: 20px; justify-items: start; }
.done h3 { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -.035em; line-height: 1.15; }
.done p { color: var(--text-2); }

/* ── 하단(사업자 정보·약관·고정 문구) ──────────────────────── */
.site-foot { background: var(--graphite); color: var(--d-text-2); font-size: 15px; line-height: 1.65; position: relative; z-index: 1; }
.site-foot .wrap { max-width: 1312px; padding-top: 48px; padding-bottom: calc(40px + env(safe-area-inset-bottom)); display: grid; gap: 28px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.foot-logo { width: 132px; aspect-ratio: 2491 / 356; fill: var(--paper); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 16px; font-weight: 600; color: var(--d-text); }
.foot-links a { opacity: .8; transition: opacity .2s; }
.foot-links a:hover { opacity: 1; }
.foot-links .is-strong { opacity: 1; }
.foot-biz { display: flex; flex-wrap: wrap; gap: 2px 18px; padding-top: 24px; border-top: 1px solid var(--d-line); }
.foot-biz span { white-space: nowrap; }
.foot-biz b { font-weight: 600; color: var(--d-text); margin-right: 6px; }
.foot-fixed { display: grid; gap: 2px; color: var(--d-text); }
.foot-copy { color: var(--d-text-mute); }

/* ── 모바일 ─────────────────────────────────────────────── */
@media (max-width: 820px) {
  .doc-head-in { flex-wrap: wrap; gap: 12px 16px; padding-bottom: 12px; }
  .doc [id] { scroll-margin-top: 140px; }
  .doc-logo svg { width: 128px; }
  .doc-head .btn-nav { margin-left: auto; }
  .doc-links { order: 3; width: 100%; margin: 0; gap: 22px; overflow-x: auto; scrollbar-width: none; }
  .doc-links::-webkit-scrollbar { display: none; }
  .doc-links a { padding-bottom: 4px; }
  .sub-nav { gap: 18px; margin-top: 4px; }
  .sub-nav-name { padding-right: 18px; }
  .sub-nav .sub-nav-more { padding-left: 18px; }
  .sec { grid-template-columns: minmax(0, 1fr); padding: 36px 0; }
  .apply-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .apply-title { font-size: min(40px, 7.2vw); }   /* 두 줄 제목이 휴대폰에서도 두 줄로 */
  .steps > li { grid-template-columns: 52px minmax(0, 1fr); }
  .idx { font-size: 28px; }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .kv dt { border-bottom: 0; padding-bottom: 0; }
  .input-row { flex-wrap: wrap; }
  .input-row .btn { width: 100%; }
  .foot-biz span { white-space: normal; }
}

/* 목록·정의 기본 여백 */
.kv, .dots, .steps { margin: 0; }
ul.dots, ol.steps { padding: 0; list-style: none; }

/* FAQ(펼치기) */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-wide); font-weight: 700; color: var(--blue); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 20px; color: var(--text-2); max-width: 68ch; display: grid; gap: 10px; }

/* 영상 자리 16:9 */
.product-shot { margin: clamp(32px, 5vw, 56px) 0 0; border: 1px solid var(--line); }
.product-shot img { display: block; width: 100%; height: auto; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--graphite); color: var(--d-text-2); display: grid; place-items: center; text-align: center; padding: 24px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
