/* 렛츠고 유니버시티 — 리서치 보고서 톤의 사이트 스타일 */
@font-face { font-family: Pretendard; font-weight: 400; font-display: swap; src: url("../fonts/Pretendard-Regular.woff2") format("woff2"); }
@font-face { font-family: Pretendard; font-weight: 500; font-display: swap; src: url("../fonts/Pretendard-Medium.woff2") format("woff2"); }
@font-face { font-family: Pretendard; font-weight: 600; font-display: swap; src: url("../fonts/Pretendard-SemiBold.woff2") format("woff2"); }
@font-face { font-family: Pretendard; font-weight: 700; font-display: swap; src: url("../fonts/Pretendard-Bold.woff2") format("woff2"); }
@font-face { font-family: MaruBuri; font-weight: 400; font-display: swap; src: url("../fonts/MaruBuri-Regular.woff2") format("woff2"); }
@font-face { font-family: MaruBuri; font-weight: 700; font-display: swap; src: url("../fonts/MaruBuri-Bold.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #ffffff; --bg-soft: #f6f5f1; --ink: #14171c; --ink2: #4a4f57; --muted: #80858d; --rule: #dfe0e2; --rule-strong: #14171c;
  --navy: #1b365d; --navy-ink: #ffffff; --navy-soft: #eef2f8; --accent: #c8612a; --ok: #2e6b3a; --danger: #a3321f;
  --warn-bg: #fbf3e8; --warn-ink: #6d4211; --serif: MaruBuri, "Nanum Myeongjo", serif;
  --sans: Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1216; --bg-soft: #161a20; --ink: #eef0f3; --ink2: #b3b8c0; --muted: #868b93; --rule: #2a2f37; --rule-strong: #eef0f3;
    --navy: #9db8e3; --navy-ink: #0f1216; --navy-soft: #18233a; --accent: #e59363; --ok: #7cc48a; --danger: #ff8f7a;
    --warn-bg: #2b2213; --warn-ink: #f0c98a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1216; --bg-soft: #161a20; --ink: #eef0f3; --ink2: #b3b8c0; --muted: #868b93; --rule: #2a2f37; --rule-strong: #eef0f3;
  --navy: #9db8e3; --navy-ink: #0f1216; --navy-soft: #18233a; --accent: #e59363; --ok: #7cc48a; --danger: #ff8f7a;
  --warn-bg: #2b2213; --warn-ink: #f0c98a;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16.5px; line-height: 1.72;
       word-break: keep-all; overflow-wrap: anywhere; font-feature-settings: "tnum"; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
svg { max-width: 100%; }
h1, h2, h3 { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--ink2); }

/* ── 상단 ───────────────────────────────────────── */
.utility { background: var(--bg-soft); border-bottom: 1px solid var(--rule); font-size: 13.5px; color: var(--ink2); }
.utility .wrap { display: flex; gap: 12px; align-items: center; min-height: 36px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.utility b { color: var(--ink); font-weight: 600; }
.utility .sep { width: 1px; height: 12px; background: var(--rule); }
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(6px);
              border-bottom: 1px solid var(--rule); }
header.site .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: baseline; gap: 8px; color: var(--ink); white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo .kr { font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: var(--navy); }
.logo .en { font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; color: var(--ink2); }
nav.main { display: flex; gap: 24px; flex: 1; overflow-x: auto; scrollbar-width: none; }
nav.main::-webkit-scrollbar { display: none; }
nav.main a { color: var(--ink2); font-size: 15px; font-weight: 500; white-space: nowrap; padding: 20px 0 18px; border-bottom: 2px solid transparent; }
nav.main a:hover, nav.main a.on { color: var(--ink); text-decoration: none; border-bottom-color: var(--ink); }
@media (max-width: 760px) {
  header.site .wrap { flex-wrap: wrap; height: auto; gap: 0 16px; padding-top: 10px; }
  nav.main { order: 3; flex-basis: 100%; gap: 18px; }
  nav.main a { padding: 8px 0 10px; font-size: 14.5px; }
  header.site .cta-top { margin-left: auto; }
}

/* ── 버튼 ───────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 3px; font-weight: 600;
       font-size: 15px; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; font-family: inherit; line-height: 1.25; }
.btn-primary { background: var(--navy); color: var(--navy-ink); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-sm { padding: 7px 12px; font-size: 13.5px; }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.arrow::after { content: "→"; font-family: var(--sans); }

/* ── 공통 섹션 ─────────────────────────────────── */
section.block { padding: 72px 0; }
section.block.tight { padding: 48px 0; }
section.block.soft { background: var(--bg-soft); }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--navy); letter-spacing: 0.06em; margin-bottom: 12px; display: flex; gap: 10px; align-items: center; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
h1.display { font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 5.2vw, 54px); line-height: 1.22; letter-spacing: -0.025em; }
h2.title { font-family: var(--serif); font-weight: 700; font-size: clamp(25px, 3.4vw, 36px); line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 14px; }
p.lead { font-size: 18px; color: var(--ink2); margin: 0 0 32px; max-width: 700px; }
.sec-top { border-top: 1px solid var(--rule-strong); padding-top: 22px; }

/* ── 히어로 ─────────────────────────────────────── */
.hero { padding: 56px 0 48px; }
.hero .grid-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.hero p.sub { font-size: 18.5px; color: var(--ink2); margin: 22px 0 30px; max-width: 560px; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .meta { margin-top: 28px; font-size: 14px; color: var(--muted); }
.paper-stack { position: relative; padding: 0 24px 24px 0; max-width: 440px; justify-self: end; width: 100%; }
.paper-stack img { border: 1px solid var(--rule); background: #fff; width: calc(100% - 24px); height: auto; aspect-ratio: 910 / 1040;
                   object-fit: cover; object-position: top; }
.paper-stack .back { position: absolute; right: 0; bottom: 0; }
.paper-stack .front { position: relative; box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(20, 23, 28, 0.35); }
@media (max-width: 880px) { .hero .grid-hero { grid-template-columns: minmax(0, 1fr); gap: 36px; } .paper-stack { justify-self: start; max-width: 400px; } }

/* ── 핵심 수치 ─────────────────────────────────── */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
.figures > div { padding: 22px 20px 20px; border-left: 1px solid var(--rule); }
.figures > div:first-child { border-left: 0; padding-left: 0; }
.figures .n { font-family: var(--serif); font-weight: 700; font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; }
.figures .n small { font-family: var(--sans); font-size: 15px; font-weight: 600; margin-left: 2px; }
.figures .d { font-size: 14px; color: var(--ink2); margin-top: 6px; }
@media (max-width: 760px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } .figures > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .figures > div:nth-child(n+3) { border-top: 1px solid var(--rule); } }

/* ── 행 목록(카드 대신) ────────────────────────── */
.rows { border-top: 1px solid var(--rule-strong); }
.rows .row { display: grid; grid-template-columns: 64px minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.rows .no { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--navy); }
.rows h3 { font-size: 18.5px; font-weight: 700; letter-spacing: -0.01em; }
.rows p { margin: 0; color: var(--ink2); }
@media (max-width: 700px) { .rows .row { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; } .rows .row p { grid-column: 2; } }

.cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 860px) { .cols2, .cols3 { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.col-item { border-top: 1px solid var(--rule-strong); padding-top: 16px; }
.col-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.col-item p { margin: 0; color: var(--ink2); font-size: 15.5px; }
.col-item .tag { font-size: 12.5px; font-weight: 600; color: var(--navy); letter-spacing: 0.04em; margin-bottom: 8px; display: block; }

/* ── 리포트 페이지 갤러리 ───────────────────────── */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 20px; overflow-x: auto; padding-bottom: 12px;
           scroll-snap-type: x mandatory; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { border: 1px solid var(--rule); background: #fff; width: 100%; height: auto; }
.gallery figcaption { font-size: 13.5px; color: var(--ink2); margin-top: 8px; }
.gallery figcaption b { color: var(--ink); font-weight: 600; margin-right: 6px; }

/* ── 연구원 ─────────────────────────────────────── */
.researcher { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; align-items: start; border-top: 1px solid var(--rule-strong); padding-top: 24px; }
.monogram { width: 120px; height: 120px; border: 1px solid var(--rule-strong); display: grid; place-items: center; font-family: var(--serif);
            font-weight: 700; font-size: 44px; color: var(--navy); }
.researcher .name { font-family: var(--serif); font-weight: 700; font-size: 24px; }
.researcher .role { color: var(--ink2); margin-bottom: 12px; }
@media (max-width: 600px) { .researcher { grid-template-columns: minmax(0, 1fr); } .monogram { width: 84px; height: 84px; font-size: 30px; } }

/* ── 가격표 ─────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.plan { padding: 24px 22px 26px; border-left: 1px solid var(--rule); display: flex; flex-direction: column; border-top: 3px solid transparent; margin-top: -1px; }
.plan:first-child { border-left: 0; }
.plan.featured { border-top-color: var(--navy); background: var(--navy-soft); }
.plan .for { font-size: 12.5px; font-weight: 600; color: var(--navy); letter-spacing: 0.04em; min-height: 18px; }
.plan h3 { font-size: 19px; font-weight: 700; margin: 4px 0 2px; }
.plan .price { font-family: var(--serif); font-weight: 700; font-size: 32px; letter-spacing: -0.02em; margin: 10px 0 2px; }
.plan .price small { font-family: var(--sans); font-size: 15px; font-weight: 600; }
.plan .tagline { font-size: 14.5px; color: var(--ink2); min-height: 46px; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 22px; flex: 1; font-size: 14.5px; color: var(--ink2); }
.plan li { padding: 7px 0; border-top: 1px solid var(--rule); }
.plan .btn { width: 100%; }
@media (max-width: 980px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plan:nth-child(3) { border-left: 0; }
  .plan:nth-child(n+3) { border-top: 1px solid var(--rule); } .plan.featured:nth-child(n+3) { border-top: 3px solid var(--navy); } }
@media (max-width: 600px) { .plans { grid-template-columns: minmax(0, 1fr); } .plan { border-left: 0; border-top: 1px solid var(--rule); } }

/* ── 표 ─────────────────────────────────────────── */
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th { text-align: left; color: var(--ink2); font-weight: 600; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong);
                padding: 10px 8px; white-space: nowrap; font-size: 14px; }
table.data td { border-bottom: 1px solid var(--rule); padding: 11px 8px; vertical-align: top; }
table.data td.n, table.data th.n { text-align: right; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── 안내·알림 ─────────────────────────────────── */
.notice { background: var(--warn-bg); color: var(--warn-ink); padding: 14px 16px; font-size: 14.5px; border-left: 3px solid var(--accent); }
.notice.info { background: var(--navy-soft); color: var(--ink); border-left-color: var(--navy); }
.error { background: color-mix(in srgb, var(--danger) 10%, var(--bg)); color: var(--danger); padding: 12px 14px; margin-bottom: 16px; font-weight: 600;
         border-left: 3px solid var(--danger); }
.cta-band { border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); padding: 28px 0; display: flex; gap: 20px;
            align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 40px 0; }
.cta-band p { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 20px; }

.faq details { border-bottom: 1px solid var(--rule); padding: 18px 0; }
.faq details:first-child { border-top: 1px solid var(--rule-strong); }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--ink2); margin: 10px 0 0; white-space: pre-line; }

/* ── 폼 ─────────────────────────────────────────── */
form .section { border-top: 1px solid var(--rule-strong); padding: 22px 0 26px; margin-bottom: 8px; }
form .section h3 { font-family: var(--serif); font-weight: 700; font-size: 20px; margin-bottom: 4px; }
form .section p.help { margin: 0 0 16px; color: var(--ink2); font-size: 14.5px; }

/* 빠른 입력(자동 인식) */
form .section.autofill { background: var(--bg-soft); border-top: 2px solid var(--navy); padding: 22px 20px 20px; margin-left: -20px; margin-right: -20px; }
.af-drop { display: block; position: relative; border: 1px dashed var(--muted); background: var(--bg); padding: 22px 18px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.af-drop:hover, .af-drop.over { border-color: var(--navy); background: var(--navy-soft); }
.af-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.af-drop-title { display: block; font-weight: 600; font-size: 16px; }
.af-drop-sub { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.af-files { display: block; margin-top: 8px; font-size: 13.5px; color: var(--ink2); word-break: break-all; }
.af-tip { font-size: 13.5px; color: var(--ink2); align-self: end; padding-bottom: 8px; line-height: 1.55; }
.af-paste { margin-top: 12px; border-top: 1px solid var(--rule); padding-top: 10px; }
.af-paste summary { cursor: pointer; font-weight: 600; font-size: 14.5px; }
.af-actions { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.af-status { font-size: 14px; color: var(--ink2); }
.af-privacy { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.af-result { margin-top: 18px; background: var(--bg); border: 1px solid var(--rule); padding: 16px; }
.af-head { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--rule-strong); padding-bottom: 8px; margin-bottom: 10px; font-size: 14.5px; }
.af-head span { color: var(--ink2); }
.af-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.af-table th { text-align: left; font-weight: 600; color: var(--ink2); border-bottom: 1px solid var(--rule); padding: 6px 6px; white-space: nowrap; }
.af-table td { border-bottom: 1px solid var(--rule); padding: 7px 6px; vertical-align: top; }
.af-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.af-table .af-subj { color: var(--muted); font-size: 12.5px; }
.af-table td:first-child { white-space: nowrap; }
.af-table select { padding: 2px 4px; font-size: 13px; }
.af-note, .af-mock { font-size: 13.5px; color: var(--ink2); margin: 10px 0 0; }
.af-warn { margin: 10px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--warn-ink); }
.af-filled { background: var(--navy-soft) !important; }
@media (max-width: 640px) {
  form .section.autofill { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .af-table .af-subj { display: none; }
}
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=password], input[type=url], input[type=file], select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 2px; border: 1px solid var(--rule); background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
textarea { min-height: 100px; resize: vertical; }
.fields { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14.5px; margin-bottom: 10px; }
.check input { margin-top: 5px; accent-color: var(--navy); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 14px; }
table.grid-input { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; }
table.grid-input th, table.grid-input td { padding: 6px; border-bottom: 1px solid var(--rule); text-align: left; }
table.grid-input th { font-weight: 600; color: var(--ink2); }
table.grid-input input, table.grid-input select { padding: 7px 8px; font-size: 14px; }
.product-pick { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border-top: 1px solid var(--rule); }
.product-pick label { border-bottom: 1px solid var(--rule); padding: 14px 12px; cursor: pointer; font-weight: 400; margin: 0; }
.product-pick label b { font-weight: 700; }
.product-pick input { margin-right: 6px; accent-color: var(--navy); }
.product-pick label:has(input:checked) { background: var(--navy-soft); box-shadow: inset 3px 0 0 var(--navy); }
.form-note { font-size: 13.5px; color: var(--muted); }
.scenario-box { background: var(--bg-soft); padding: 16px; margin-top: 8px; }

/* ── 가이드 본문 ───────────────────────────────── */
.prose { font-size: 17px; }
.prose h2 { font-family: var(--serif); font-weight: 700; font-size: 25px; letter-spacing: -0.02em; margin: 40px 0 12px; padding-top: 16px; border-top: 1px solid var(--rule); }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 16px 0; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 9px 10px; text-align: left; }
.prose th { border-top: 1px solid var(--rule-strong); border-bottom-color: var(--rule-strong); font-weight: 600; color: var(--ink2); white-space: nowrap; }
.prose blockquote { margin: 18px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--navy); color: var(--ink2); }
.guide-list { border-top: 1px solid var(--rule-strong); }
.guide-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); color: var(--ink); }
.guide-list a:hover { text-decoration: none; background: var(--bg-soft); }
.guide-list h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.guide-list p { margin: 0; color: var(--ink2); font-size: 15px; }
.guide-list .go { color: var(--muted); align-self: center; }

/* ── 결과 박스 ─────────────────────────────────── */
.result { border-top: 3px solid var(--navy); border-bottom: 1px solid var(--rule); padding: 22px 0; margin: 24px 0; }
.big { font-family: var(--serif); font-weight: 700; font-size: 46px; letter-spacing: -0.02em; line-height: 1.15; }
.band { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.band::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c, #999); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.band-안정권 { --c: #1b365d; } .band-적정권 { --c: #7893c0; } .band-소신권 { --c: #d6d2c8; } .band-상향권 { --c: #e3a08c; } .band-도전 { --c: #9c3b27; }
.subnav { display: flex; gap: 22px; border-bottom: 1px solid var(--rule); margin-bottom: 28px; overflow-x: auto; }
.subnav a { padding: 10px 0; color: var(--ink2); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a.on { color: var(--ink); border-bottom-color: var(--ink); text-decoration: none; }

/* ── 푸터(사이트맵) ────────────────────────────── */
footer.site { border-top: 1px solid var(--rule-strong); padding: 44px 0 48px; color: var(--ink2); font-size: 14px; margin-top: 24px; }
.sitemap { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 28px; margin-bottom: 32px; }
.sitemap h4 { font-size: 13px; font-weight: 700; color: var(--ink); margin: 0 0 12px; letter-spacing: 0.04em; }
.sitemap a { display: block; color: var(--ink2); padding: 3px 0; }
.sitemap .about { font-size: 14px; }
.sitemap .about .logo { display: flex; }
@media (max-width: 860px) { .sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sitemap .about { grid-column: 1 / -1; } }
footer .legal-line { border-top: 1px solid var(--rule); padding-top: 20px; font-size: 13px; line-height: 1.9; color: var(--muted); }
footer .disclaim { color: var(--ink2); margin-bottom: 10px; }

/* ── 관리자 화면 ───────────────────────────────── */
.admin-nav { display: flex; gap: 0; flex-wrap: wrap; margin: 16px 0 24px; border-bottom: 1px solid var(--rule); }
.admin-nav a { padding: 10px 14px; color: var(--ink2); font-weight: 500; font-size: 14.5px; border-bottom: 2px solid transparent; }
.admin-nav a.on { color: var(--ink); border-bottom-color: var(--ink); text-decoration: none; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }
.card { border-top: 1px solid var(--rule-strong); padding: 16px 0 12px; min-width: 0; color: var(--ink); }
.card:hover { text-decoration: none; }
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card p { margin: 0 0 6px; color: var(--ink2); font-size: 14.5px; }
.kicker { font-size: 12.5px; font-weight: 600; color: var(--navy); letter-spacing: 0.04em; margin-bottom: 4px; }
.stat { font-family: var(--serif); font-weight: 700; font-size: 30px; }
.pill { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 1px 8px; border: 1px solid var(--rule); color: var(--ink2); margin: 0 4px 4px 0; }
.pill.ok { color: var(--ok); border-color: currentColor; } .pill.acc { color: var(--navy); border-color: currentColor; }
.status-chip { font-size: 12.5px; font-weight: 600; padding: 1px 8px; border: 1px solid var(--rule); white-space: nowrap; }
.inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form input[type=text] { width: auto; min-width: 140px; }

/* 숫자로 보는 분석 엔진 */
.specs { border-top: 1px solid var(--rule-strong); }
.specs .spec { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.specs .v { font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; color: var(--navy); font-variant-numeric: tabular-nums; }
.specs .v small { font-family: var(--sans); font-size: 14px; font-weight: 600; margin-left: 3px; color: var(--ink2); }
.specs h3 { font-size: 17px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.01em; }
.specs p { margin: 0; color: var(--ink2); }
@media (max-width: 640px) { .specs .spec { grid-template-columns: minmax(0, 1fr); gap: 4px; } .specs .v { font-size: 24px; } }
.byline { font-size: 13px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 22px; }
.byline b { color: var(--ink2); font-weight: 600; }

/* 고객센터: AI 도우미(메신저형) · 카카오톡 · FAQ */
:root { --cs-bubble: #f2f1ed; --cs-online: #2e9e5b; --kakao: #FEE500; --kakao-ink: #191919;
        --cs-shadow: 0 1px 2px rgba(20,23,28,.05), 0 14px 36px -14px rgba(20,23,28,.18);
        --cs-shadow-sm: 0 1px 2px rgba(20,23,28,.05), 0 4px 14px -6px rgba(20,23,28,.10); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --cs-bubble: #1d232c; --cs-online: #5fd08f;
    --cs-shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 36px -14px rgba(0,0,0,.7); --cs-shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px -6px rgba(0,0,0,.5); }
}
:root[data-theme="dark"] { --cs-bubble: #1d232c; --cs-online: #5fd08f;
  --cs-shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 36px -14px rgba(0,0,0,.7); --cs-shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px -6px rgba(0,0,0,.5); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.cs-hero { padding: 56px 0 8px; }
.cs-title { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 4.4vw, 42px); line-height: 1.28; letter-spacing: -0.02em; margin: 0 0 14px; }
.cs-lead { font-size: 17.5px; color: var(--ink2); max-width: 640px; margin: 0; }
.cs-main { padding: 32px 0 72px; }
.cs-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.cs-h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 14px; }

.chat { background: var(--bg); border: 1px solid var(--rule); border-radius: 20px; box-shadow: var(--cs-shadow); overflow: hidden; display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--rule); }
.chat-avatar, .msg-avatar { flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--navy-ink); font-family: var(--serif); font-weight: 700; }
.chat-avatar { width: 42px; height: 42px; font-size: 18px; }
.msg-avatar { width: 32px; height: 32px; font-size: 14px; }
.chat-who b { display: block; font-size: 16px; line-height: 1.35; }
.chat-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.chat-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--cs-online); box-shadow: 0 0 0 0 color-mix(in srgb, var(--cs-online) 55%, transparent); animation: cs-pulse 2.4s ease-out infinite; }
@keyframes cs-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cs-online) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
.chat-log { height: clamp(360px, 56vh, 460px); overflow-y: auto; overscroll-behavior: contain; padding: 20px 18px 14px; display: flex; flex-direction: column; gap: 6px; }
.msg { display: flex; gap: 8px; align-items: flex-start; }
.msg + .msg:not(.cont), .quick + .msg { margin-top: 12px; }
.msg.cont { padding-left: 40px; }
.msg.me { justify-content: flex-end; }
.bubble { max-width: min(84%, 470px); padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.62; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; }
.msg.bot .bubble { background: var(--cs-bubble); color: var(--ink); }
.msg.bot:not(.cont) .bubble { border-top-left-radius: 6px; }
.msg.me .bubble { background: var(--navy); color: var(--navy-ink); border-top-right-radius: 6px; }
.bubble a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.msg.me .bubble a { color: inherit; }
.msg.enter { animation: cs-in .22s ease-out; }
@keyframes cs-in { from { opacity: .001; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.typing { display: inline-flex; gap: 5px; align-items: center; padding: 14px 16px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: cs-dot 1.2s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes cs-dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.bubble-kakao { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--bg); border: 1px solid var(--rule);
                font-size: 13.5px; font-weight: 600; color: var(--ink) !important; text-decoration: none !important; white-space: nowrap; }
.bubble-kakao:hover { border-color: var(--kakao); }
.bubble-kakao .kakao-mark { width: 22px; height: 22px; border-radius: 50%; }
.bubble-kakao .kakao-mark svg { width: 14px; height: 14px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 40px; margin-top: 8px; }
.quick-btn { font: inherit; font-size: 14px; line-height: 1.3; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--rule); background: var(--bg); color: var(--ink2); cursor: pointer;
             transition: border-color .15s, color .15s, background .15s; }
.quick-btn:hover { border-color: var(--navy); color: var(--navy); background: var(--navy-soft); }
.quick-btn:focus-visible, .send:focus-visible, .cs-faq summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.composer { display: flex; align-items: flex-end; gap: 8px; margin: 6px 14px 0; padding: 5px 5px 5px 16px; border: 1px solid var(--rule); border-radius: 24px; background: var(--bg);
            transition: border-color .15s, box-shadow .15s; }
.composer:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 14%, transparent); }
.composer textarea { flex: 1; width: auto; min-width: 0; min-height: 0; height: 38px; border: 0; border-radius: 0; outline: 0; resize: none; background: transparent; color: var(--ink); font: inherit; font-size: 15.5px; line-height: 1.5; padding: 7px 0; max-height: 132px; }
.composer textarea:focus { outline: 0; }
.composer textarea::placeholder { color: var(--muted); }
.send { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--navy); color: var(--navy-ink); display: grid; place-items: center; cursor: pointer; transition: opacity .15s, transform .15s; }
.send:hover:not(:disabled) { transform: scale(1.06); }
.send:disabled { opacity: .3; cursor: default; }
.chat-note { margin: 10px 18px 16px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.chat-note a { color: var(--ink2); text-decoration: underline; text-underline-offset: 2px; }

.kakao-mark { flex: none; display: grid; place-items: center; background: var(--kakao); }
.kakao-mark svg { fill: var(--kakao-ink); }
.kakao-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 16px 16px 18px; border-radius: 16px;
              background: linear-gradient(135deg, color-mix(in srgb, var(--kakao) 13%, var(--bg)) 0%, var(--bg) 62%); border: 1px solid var(--rule);
              box-shadow: var(--cs-shadow-sm); color: var(--ink); transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.kakao-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--cs-shadow); border-color: color-mix(in srgb, var(--kakao) 65%, var(--rule)); }
.kakao-card .kakao-mark { width: 46px; height: 46px; border-radius: 14px; transition: transform .25s ease; }
.kakao-card .kakao-mark svg { width: 27px; height: 27px; }
.kakao-card:hover .kakao-mark { transform: rotate(-8deg) scale(1.05); }
.kc-txt b, .cs-txt b { display: block; font-size: 16px; font-weight: 700; line-height: 1.4; }
.kc-txt small, .cs-txt small { display: block; font-size: 13.5px; line-height: 1.5; color: var(--ink2); margin-top: 2px; }
.kc-go, .cs-go { font-size: 24px; line-height: 1; color: var(--muted); transition: transform .18s; }
.kakao-card:hover .kc-go, .cs-links a:hover .cs-go { transform: translateX(3px); }
.cs-links { display: grid; gap: 8px; margin-top: 12px; }
.cs-links a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 16px; border-radius: 14px; background: var(--bg-soft); color: var(--ink); transition: background .15s; }
.cs-links a:hover { text-decoration: none; background: var(--navy-soft); }
.cs-links .cs-txt b { font-size: 15.5px; font-weight: 600; }
.cs-ic { width: 38px; height: 38px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; }
.cs-ic svg { width: 20px; height: 20px; fill: none; stroke: var(--navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cs-mail { margin: 16px 2px 0; font-size: 14px; color: var(--ink2); }

.cs-faq-sec { background: var(--bg-soft); padding: 56px 0 72px; }
.cs-faq { display: grid; gap: 8px; }
.cs-faq details { background: var(--bg); border: 1px solid var(--rule); border-radius: 14px; transition: box-shadow .15s; }
.cs-faq details[open] { box-shadow: var(--cs-shadow-sm); }
.cs-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; font-weight: 600; font-size: 16px; border-radius: 14px; }
.cs-faq summary::-webkit-details-marker { display: none; }
.cs-faq .chev { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.cs-faq details[open] .chev { transform: rotate(180deg); }
.cs-faq .a { padding: 0 18px 18px; color: var(--ink2); line-height: 1.72; white-space: pre-line; }
.cs-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 24px 2px 0; font-size: 14px; }
.cs-legal a { color: var(--ink2); }

.float-help { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: inline-flex; align-items: center; gap: 8px;
              background: var(--navy); color: var(--navy-ink); text-decoration: none; padding: 11px 18px 11px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
              box-shadow: 0 8px 24px -8px rgba(20,23,28,.45); transition: transform .18s ease; }
.float-help svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.float-help:hover { color: var(--navy-ink); text-decoration: none; transform: translateY(-2px); }
@media (max-width: 860px) { .cs-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (max-width: 600px) {
  .cs-hero { padding-top: 36px; } .cs-lead { font-size: 16.5px; } .chat-log { padding: 16px 12px 12px; } .composer { margin: 6px 10px 0; }
  .bubble { max-width: 88%; } .float-help { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 10px 15px 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-status i, .typing span, .msg.enter { animation: none; }
  .kakao-card, .kakao-card .kakao-mark, .float-help, .kc-go, .cs-go { transition: none; }
  .kakao-card:hover, .kakao-card:hover .kakao-mark, .float-help:hover { transform: none; }
}
@media print { .float-help { display: none; } }
