/* 레이아웃: 흰 바탕 위 한 줄 기둥(최대 1080px). 그림자·그라데이션 없이 면과 파랑 하나로 위계를 만드는 플랫 스타일 */
:root {
  --paper: #ffffff;
  --paper-hi: #f4f7fb;
  --tint: #e8f0fd;
  --ink: #0e1a2b;
  --ink-2: #3d4b5f;
  --muted: #6a7689;
  --line: #dfe5ee;
  --line-soft: #edf1f6;
  --accent: #1f5fd1;
  --accent-strong: #174aa6;
  --accent-2: #4f86e8;
  --accent-soft: #e8f0fd;
  --on-accent: #ffffff;
  --neg: #9aa5b5;
  --series-int: #1f5fd1;
  --series-comp: #0f9b8e;
  --warn: #b4441a;
  --warn-soft: #fdf0ea;
  --on-card: #ffffff;

  --f-display: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-code: "IBM Plex Sans KR", "Helvetica Neue", Arial, sans-serif;

  --r-card: 16px;
  --r-btn: 12px;
  --w: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1522; --paper-hi: #152033; --tint: #1a2a45;
    --ink: #eef3fa; --ink-2: #c2ccda; --muted: #8b97aa;
    --line: #26344b; --line-soft: #1c293d;
    --accent: #5b96f7; --accent-strong: #2f6de0; --accent-2: #3d7ff0; --accent-soft: #1a2a45; --on-accent: #0d1522;
    --neg: #6b7891;
    --series-int: #4f8ff7; --series-comp: #22a596;
    --warn: #f0a07c; --warn-soft: #2a1d18;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1522; --paper-hi: #152033; --tint: #1a2a45;
  --ink: #eef3fa; --ink-2: #c2ccda; --muted: #8b97aa;
  --line: #26344b; --line-soft: #1c293d;
  --accent: #5b96f7; --accent-strong: #2f6de0; --accent-2: #3d7ff0; --accent-soft: #1a2a45; --on-accent: #0d1522;
  --neg: #6b7891;
  --series-int: #4f8ff7; --series-comp: #22a596;
  --warn: #f0a07c; --warn-soft: #2a1d18;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper);
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: calc(var(--w) + 64px);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.5;
}
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.count-line { margin-top: 28px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: var(--r-btn);
  background: var(--paper-hi); cursor: pointer;
  font-size: 16px; font-weight: 600; text-decoration: none; color: var(--ink);
  transition: background .15s, color .15s, opacity .15s;
}
.btn:hover { background: var(--line); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); color: #fff; }
.btn[disabled] { opacity: .35; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--paper-hi); }
.btn-primary[disabled]:hover { background: var(--accent); color: var(--on-accent); }
.link-btn {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  color: var(--accent); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--accent-strong); }

/* ---------- 상단 ---------- */
.topbar { padding-block: 18px; border-bottom: 1px solid var(--line-soft); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; cursor: pointer; }
.brand-mark {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent); color: var(--on-accent); font-size: 17px; font-weight: 700;
}
.brand .mono { color: var(--ink-2); }
@media (max-width: 560px) { .brand .mono, #topbar-meta { display: none; } }

/* ---------- 시작 화면 ---------- */
.intro { padding-block: 64px 96px; }
.intro-grid { display: grid; gap: 48px; }
@media (min-width: 880px) { .intro-grid { grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: start; } }
.intro .eyebrow { display: inline-block; padding: 6px 12px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.intro h1 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(48px, 8vw, 88px); line-height: 1.1; letter-spacing: -.035em;
  margin: 20px 0 20px;
}
.intro h1 em { font-style: normal; color: var(--accent); }
.intro-lead { font-size: 19px; color: var(--ink-2); max-width: 26em; text-wrap: pretty; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; align-items: center; }
.intro-facts { display: flex; flex-wrap: wrap; gap: 24px 40px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.intro-facts div b { display: block; font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); line-height: 1.2; }
.intro-facts div span { font-size: 13px; color: var(--muted); }
.parts-table { display: grid; gap: 10px; }
.parts-table li {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 4px 12px; align-items: baseline;
  padding: 20px 22px; border-radius: var(--r-card); background: var(--paper-hi);
}
.parts-table .mono { color: var(--accent); }
.parts-table b { font-weight: 600; font-size: 17px; }
.parts-table p { grid-column: 2 / 3; font-size: 14px; color: var(--muted); line-height: 1.6; }
.parts-table .count { font-family: var(--f-mono); font-size: 13px; color: var(--ink-2); }
.intro-note { margin-top: 18px; font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ---------- 검사 화면 ---------- */
.test-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding-block: 14px 14px;
}
.test-head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.test-head-row b { font-weight: 600; font-size: 15px; }
.test-head-row .mono { color: var(--accent); }
.progress { display: flex; gap: 4px; }
.progress span { position: relative; height: 6px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.progress i { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 3px; transition: width .3s; }

.part-intro { padding-block: 72px 96px; max-width: 640px; }
.part-intro .mono { color: var(--accent); }
.part-intro h2 {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(36px, 6vw, 56px);
  letter-spacing: -.03em; line-height: 1.15; margin: 12px 0 16px;
}
.part-intro p { color: var(--ink-2); font-size: 17px; }
.part-intro .count-line { color: var(--muted); }
.teaser { margin: 32px 0; padding: 20px 22px; border-radius: var(--r-card); background: var(--accent-soft); }
.teaser .mono { color: var(--accent); margin-bottom: 6px; }
.teaser p { font-size: 16px; color: var(--ink); }

.page-prompt { padding-block: 44px 8px; text-align: center; }
.page-prompt .mono { color: var(--accent); }
.page-prompt h2 { font-weight: 700; font-size: 22px; margin-top: 6px; letter-spacing: -.01em; }
.qlist { max-width: 760px; margin: 0 auto; }
.q { padding: 34px 0 30px; border-bottom: 1px solid var(--line-soft); transition: opacity .25s; }
.q.done { opacity: .4; }
.q.done:hover, .q.done:focus-within { opacity: 1; }
.q-text { text-align: center; font-size: 18px; font-weight: 500; line-height: 1.6; max-width: 32em; margin: 0 auto 22px; text-wrap: balance; }
.q-text .mono { color: var(--muted); }
.scale { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 4vw, 26px); border: 0; padding: 0; margin: 0; }
.scale input { position: absolute; opacity: 0; pointer-events: none; }
.scale label {
  display: block; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--line); background: var(--paper);
  transition: background .15s, transform .15s, border-color .15s;
}
.scale label:hover { transform: scale(1.06); }
.scale .v1, .scale .v5 { width: 50px; height: 50px; }
.scale .v2, .scale .v4 { width: 40px; height: 40px; }
.scale .v3 { width: 30px; height: 30px; }
.scale .v1, .scale .v2 { border-color: var(--neg); }
.scale .v4, .scale .v5 { border-color: var(--accent); }
.scale .v3 { border-color: var(--line); }
.scale input:checked + .v1, .scale input:checked + .v2 { background: var(--neg); }
.scale input:checked + .v4, .scale input:checked + .v5 { background: var(--accent); }
.scale input:checked + .v3 { background: var(--muted); border-color: var(--muted); }
.scale input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 3px; }
.scale-ends {
  display: flex; justify-content: space-between; max-width: 340px; margin: 12px auto 0;
  font-size: 13px; color: var(--muted);
}
.scale-ends .picked { color: var(--accent); font-weight: 600; }
.page-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 40px 24px; max-width: 760px; margin: 0 auto; }
.page-nav .btn { min-width: 120px; }
.dev-row { text-align: center; padding-bottom: 64px; }
.kbd-hint { text-align: center; font-size: 13px; color: var(--muted); padding-top: 20px; }

/* ---------- 결과: 머리 ---------- */
.r-head { padding-block: 48px 36px; text-align: center; }
.r-head .mono { color: var(--accent); }
.r-head h1 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(40px, 7vw, 80px); line-height: 1.15; letter-spacing: -.035em;
  margin: 12px 0 14px; text-wrap: balance;
}
.r-head p { color: var(--ink-2); font-size: 16px; }
.sample-banner {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center;
  padding: 12px 16px; margin-top: 24px; border-radius: var(--r-btn); background: var(--accent-soft); font-size: 14px;
}

.hero-card {
  position: relative; width: 100%; max-width: 100%; aspect-ratio: 2;
  overflow: hidden; color: var(--on-card); border-radius: 24px; background: #1f5fd1;
}
@media (max-width: 640px) { .hero-card { aspect-ratio: 4 / 5; border-radius: 20px; } }
.hero-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hc-top { position: absolute; top: 7%; left: 5%; right: 5%; display: flex; justify-content: space-between; gap: 12px; }
.hc-top .mono { font-size: 11px; opacity: .85; }
.hc-bottom { position: absolute; left: 5%; right: 5%; bottom: 8%; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.hc-name { font-family: var(--f-display); font-weight: 700; font-size: clamp(26px, 4vw, 44px); line-height: 1.15; letter-spacing: -.03em; margin: 6px 0 10px; }
.hc-bottom .mono { font-size: 11px; opacity: .85; }
.hc-axes { display: flex; flex-wrap: wrap; gap: 6px; }
.hc-axes span { padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .16); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.code {
  font-family: var(--f-code); font-weight: 700;
  letter-spacing: -.03em; line-height: .95; white-space: nowrap;
}
.code .sub { font-size: .8em; font-weight: 700; margin-left: .03em; }
.hc-code { font-size: clamp(40px, 7vw, 84px); }
@media (max-width: 640px) {
  .hc-bottom { flex-direction: column; align-items: flex-start; }
}

.hero-legend { display: grid; gap: 16px; padding-block: 16px 24px; align-items: start; }
@media (min-width: 880px) { .hero-legend { grid-template-columns: 1fr 1fr 1.5fr; } }
.hero-legend > * { min-width: 0; }
.swatch-item { border-radius: var(--r-card); background: var(--paper-hi); padding: 20px; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.swatch-dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; font-size: 13px; font-weight: 700; }
.swatch-item .mono { font-size: 11px; color: var(--accent); }
.swatch-item b { display: block; font-weight: 700; font-size: 16px; margin-top: 2px; }
.swatch-item p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.hero-summary { border-radius: var(--r-card); background: var(--paper-hi); padding: 20px 22px; }
.hero-summary > p { font-size: 17px; font-weight: 500; line-height: 1.65; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip { padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; background: var(--accent-soft); color: var(--accent); }
.quality { margin-top: 16px; padding: 12px 14px; border-radius: 10px; font-size: 13px; line-height: 1.6; background: var(--paper); color: var(--ink-2); }
.quality b { font-weight: 700; color: var(--accent); }
.quality.warn { background: var(--warn-soft); }
.quality.warn b { color: var(--warn); }

/* ---------- 결과: 따라오는 목차 ---------- */
.rnav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--paper); border-bottom: 1px solid var(--line); margin-top: 24px;
}
.rnav .wrap { display: flex; align-items: center; gap: 12px; }
.rnav-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.rnav-tabs::-webkit-scrollbar { display: none; }
.rnav-tabs a {
  flex: none; padding: 16px 12px 14px; font-size: 15px; font-weight: 500; color: var(--muted);
  text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.rnav-tabs a:hover { color: var(--ink); }
.rnav-tabs a.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.rnav-tools { flex: none; display: flex; gap: 8px; }
.rnav-tools .btn { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }

/* ---------- 결과: 섹션 ---------- */
.rsec { padding-block: 80px 8px; scroll-margin-top: 64px; }
.rsec-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 760px; }
.rsec-head .mono { color: var(--accent); }
.rsec-head h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 700; letter-spacing: -.03em; line-height: 1.25; text-wrap: balance; }
.lead { font-size: 19px; font-weight: 500; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.body-text { font-size: 16px; color: var(--ink-2); max-width: 40em; line-height: 1.85; }
.body-text + .body-text { margin-top: 14px; }
.subhead { font-size: 18px; font-weight: 700; color: var(--ink); margin: 48px 0 16px; letter-spacing: -.01em; }
.note { font-size: 13px; color: var(--muted); margin-top: 16px; line-height: 1.6; }

.panel { background: var(--paper-hi); border-radius: var(--r-card); padding: 28px; }
@media (max-width: 560px) { .panel { padding: 22px 18px; } }

.grid-2 { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-2 > * { min-width: 0; }

/* 요약 */
.glance { display: grid; gap: 16px; }
@media (min-width: 880px) { .glance { grid-template-columns: 1.1fr 1fr; } }
.glance > * { min-width: 0; }
.glance > .panel:first-child { display: flex; flex-direction: column; }
.glance > .panel:first-child .axisbars { flex: 1; align-content: space-evenly; }
.axisbars { display: grid; gap: 26px; }
.axisbar-top { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 8px; gap: 8px; }
.axisbar-top b { color: var(--ink); font-weight: 700; }
.axisbar-top .num { color: var(--accent); font-weight: 700; }
.axisbar-track { position: relative; height: 10px; background: var(--line); border-radius: 5px; }
.axisbar-track::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--paper-hi); }
.axisbar-fill { position: absolute; top: 0; bottom: 0; background: var(--accent); }
.axisbar-fill.to-left { border-radius: 5px 0 0 5px; }
.axisbar-fill.to-right { border-radius: 0 5px 5px 0; }
.axisbar-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.tag-border { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); margin-left: 6px; font-weight: 600; }

.radar-wrap { display: grid; gap: 8px; justify-items: center; }
.radar { width: 100%; max-width: 380px; height: auto; overflow: visible; }
.radar text { font-family: var(--f-body); }
.score-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.score-table th, .score-table td { padding: 7px 4px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.score-table th:first-child, .score-table td:first-child { text-align: left; }
.score-table th { color: var(--muted); font-weight: 500; }
.score-table tr.top td { font-weight: 700; color: var(--accent); }
.table-scroll { overflow-x: auto; width: 100%; }

/* 4축 카드 */
.axis-card { background: var(--paper-hi); border-radius: var(--r-card); padding: 26px 26px 24px; display: flex; flex-direction: column; }
.axis-card .mono { color: var(--accent); }
.axis-card h3 { font-size: 20px; font-weight: 700; margin: 6px 0 22px; letter-spacing: -.02em; }
.slider { position: relative; height: 6px; background: var(--line); border-radius: 3px; margin: 0 8px; }
.slider i { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); transform: translate(-50%, -50%); box-shadow: 0 0 0 4px var(--paper-hi); }
.slider-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 12px; }
.axis-card .txt { margin-top: 18px; font-size: 15px; line-height: 1.8; color: var(--ink-2); flex: 1; }
.axis-card .tip { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: var(--paper); }
.axis-card .tip b { font-size: 12px; font-weight: 700; color: var(--accent); display: block; margin-bottom: 4px; }
.axis-card .tip p { font-size: 14px; line-height: 1.7; }

/* 기능 스택 */
.stack { display: grid; gap: 10px; }
.stack li { display: grid; grid-template-columns: 120px 80px 1fr; gap: 20px; padding: 22px 24px; border-radius: var(--r-card); background: var(--paper-hi); align-items: center; }
@media (max-width: 680px) { .stack li { grid-template-columns: 64px 1fr; gap: 6px 16px; padding: 20px 18px; align-items: start; } .stack .role { grid-column: 1 / -1; } }
.stack .role b { display: block; font-weight: 700; font-size: 15px; }
.stack .role span { font-size: 12px; color: var(--muted); line-height: 1.5; display: block; margin-top: 2px; }
.stack .fcode {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px;
  background: var(--accent); color: var(--on-accent); font-family: var(--f-code); font-weight: 700; font-size: 26px; letter-spacing: -.02em;
}
.stack li:nth-child(2) .fcode { background: var(--accent-2); color: #fff; }
.stack li:nth-child(3) .fcode, .stack li:nth-child(4) .fcode { background: var(--tint); color: var(--accent); }
.stack .fdesc { min-width: 0; }
.stack .fdesc b { font-weight: 700; font-size: 16px; }
.stack .fdesc p { font-size: 15px; color: var(--ink-2); line-height: 1.75; margin-top: 4px; }

/* 리스트 */
.ticks li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 18px; height: 18px; border-radius: 6px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.ticks.minus li::before { background: var(--neg); width: 10px; height: 2px; top: 23px; left: 4px; border-radius: 1px; }
.list-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.value-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.value-tags span { padding: 6px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; background: var(--accent); color: var(--on-accent); }
.value-tags span.secondary { background: var(--accent-soft); color: var(--accent); }

/* 흥미 vs 자신감 차트 */
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--ink-2); margin-bottom: 18px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.pair-chart { display: grid; gap: 14px; }
.pc-row { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; }
.pc-label { font-size: 14px; font-weight: 600; }
.pc-bars { display: grid; gap: 2px; position: relative; padding-block: 2px; padding-right: 34px; }
.pc-bars::before {
  content: ""; position: absolute; inset: 0 34px 0 0;
  background: linear-gradient(to right, var(--line) 1px, transparent 1px) 0 0 / 25% 100%;
  border-right: 1px solid var(--line);
}
.pc-bar { position: relative; height: 12px; }
.pc-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; min-width: 2px; }
.pc-bar em { position: absolute; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 11px; line-height: 1; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pc-axis { display: grid; grid-template-columns: 72px 1fr; gap: 12px; font-size: 11px; color: var(--muted); }
.pc-axis div { padding-right: 34px; display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.pc-flag { grid-column: 2; font-size: 12px; color: var(--accent); font-weight: 700; margin-top: -6px; }

.pot-card { border-radius: var(--r-card); padding: 24px; background: var(--accent-soft); }
.pot-card .mono { color: var(--accent); }
.pot-card h3 { font-size: 19px; font-weight: 700; margin: 6px 0 10px; letter-spacing: -.01em; }
.pot-card p { font-size: 15px; color: var(--ink-2); line-height: 1.75; }
.pot-card .gap { font-family: var(--f-mono); font-size: 12px; color: var(--accent); margin-top: 12px; }

/* 직업 */
.stats { display: grid; gap: 16px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { border-radius: var(--r-card); background: var(--paper-hi); padding: 22px; }
.stat .mono { color: var(--muted); }
.stat .big { font-size: 32px; font-weight: 700; letter-spacing: -.03em; margin: 4px 0 8px; line-height: 1.15; color: var(--accent); }
.stat .big.code { font-size: 40px; }
.stat p { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.hexmini { width: 64px; height: 56px; margin: 2px 0 6px; }
.jobs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.job { border-radius: 14px; background: var(--paper-hi); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.job b { font-size: 17px; font-weight: 700; }
.job span { align-self: flex-start; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }

/* 관계 / 성장 */
.rel-card { border-radius: var(--r-card); background: var(--paper-hi); padding: 24px; }
.rel-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.rel-card p { font-size: 15px; color: var(--ink-2); line-height: 1.85; }
.grow-list { counter-reset: g; display: grid; gap: 10px; }
.grow-list li { counter-increment: g; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 24px; border-radius: var(--r-card); background: var(--paper-hi); }
.grow-list li::before {
  content: counter(g); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 15px;
}
.grow-list h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; padding-top: 2px; }
.grow-list p { font-size: 15px; color: var(--ink-2); line-height: 1.8; }
.grow-list > li > div { min-width: 0; }

/* ID 카드 */
.idcard-wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 760px) { .idcard-wrap { grid-template-columns: minmax(0, 340px) 1fr; gap: 56px; } }
.idcard-img { width: 100%; max-width: 340px; aspect-ratio: 9 / 16; display: block; border-radius: 20px; background: var(--line-soft); }
.idcard-side .mono { color: var(--accent); }
.idcard-side h3 { font-size: 24px; font-weight: 700; margin: 8px 0 6px; letter-spacing: -.02em; }
.idcard-side p { color: var(--ink-2); font-size: 15px; }
.idcard-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.toast { font-size: 13px; color: var(--accent); font-weight: 600; margin-top: 12px; min-height: 1.4em; }
.copy-box { width: 100%; min-height: 120px; margin-top: 12px; font-family: var(--f-mono); font-size: 11px; background: var(--paper-hi); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }

.r-foot { padding-block: 96px 80px; }
.r-foot .wrap > div { border-radius: var(--r-card); background: var(--paper-hi); padding: 24px; display: grid; gap: 20px; }
@media (min-width: 760px) { .r-foot .wrap > div { grid-template-columns: 1fr auto; align-items: center; } }
.r-foot p { font-size: 13px; color: var(--muted); max-width: 46em; line-height: 1.8; }
.r-foot-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.r-foot-actions .btn { background: var(--paper); }
.r-foot-actions .btn:hover { background: var(--line); }

/* 툴팁 */
.tooltip {
  position: fixed; z-index: 50; pointer-events: none;
  background: var(--ink); color: var(--paper); font-size: 12px; line-height: 1.5;
  padding: 8px 10px; border-radius: 8px; max-width: 220px;
}

/* 인쇄 / PDF */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .topbar, .rnav, .r-foot-actions, .idcard-actions, .sample-banner, .tooltip, #screen-intro, #screen-test { display: none !important; }
  .rsec { padding-block: 28px 0; }
  .panel, .axis-card, .job, .pot-card, .stack li, .grow-list li, .hero-card, .stat, .rel-card { break-inside: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- 결과 상단: 결 색 칩 + 글 ---------- */
.g-hero { display: grid; gap: 28px; padding-top: 40px; align-items: center; }
@media (min-width: 820px) { .g-hero { grid-template-columns: minmax(260px, 340px) 1fr; gap: 56px; } }
.g-chip { margin: 0; border-radius: 18px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
@media (max-width: 819px) { .g-chip { max-width: 340px; width: 100%; } }
.g-chip-art { position: relative; aspect-ratio: 4 / 5; background: var(--c); color: var(--c-ink); }
.g-chip-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.g-chip-no, .g-chip-date { position: absolute; top: 16px; font-size: 11px; letter-spacing: .08em; }
.g-chip-no { left: 18px; }
.g-chip-date { right: 18px; opacity: .9; }
.g-chip-strip { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 16px 18px 18px; border-top: 1px solid var(--line); }
.g-chip-strip .mono { grid-column: 1 / -1; font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.g-chip-strip b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.g-chip-strip span:last-child { align-self: end; font-size: 13px; color: var(--ink-2); }
.g-hero-text { min-width: 0; }
.g-label { display: inline-block; font-size: 12px; color: var(--ink-2); border-left: 3px solid var(--c); padding-left: 10px; }
.g-hero-text h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(34px, 5vw, 56px); line-height: 1.15; letter-spacing: -.035em; margin: 14px 0 6px; text-wrap: balance; }
.g-code { font-size: clamp(36px, 5.4vw, 60px); color: var(--ink); }
.g-sum { margin-top: 18px; font-size: 17px; color: var(--ink-2); max-width: 30em; line-height: 1.7; }
.g-meter { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; max-width: 420px; }
.g-meter li { display: grid; grid-template-columns: 18px 1fr 18px 44px; gap: 10px; align-items: center; font-size: 13px; }
.g-meter .m-pole { font-family: var(--f-mono); color: var(--muted); text-align: center; }
.g-meter .m-pole.on { color: var(--ink); font-weight: 700; }
.g-meter .m-track { position: relative; height: 6px; border-radius: 3px; background: var(--line-soft); }
.g-meter .m-track::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line); }
.g-meter .m-track i { position: absolute; top: 0; bottom: 0; background: var(--c); border-radius: 3px; }
.g-meter b { text-align: right; font-weight: 600; }
.g-facts { display: grid; margin: 32px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .g-facts { grid-template-columns: repeat(3, 1fr); } .g-facts > div + div { border-left: 1px solid var(--line); } }
@media (max-width: 719px) { .g-facts > div + div { border-top: 1px solid var(--line-soft); } }
.g-facts > div { padding: 18px 20px; }
.g-facts dt { font-size: 12px; color: var(--muted); }
.g-facts dd { margin: 6px 0 4px; font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.g-facts dd b { font-family: var(--f-code); font-size: 18px; }
.g-facts p { font-size: 12px; color: var(--muted); }
.g-dot { width: 16px; height: 16px; border-radius: 50%; display: inline-block; border: 1px solid var(--line); }
.g-facts + .quality { background: var(--paper-hi); }

/* 한눈에 보기 — 나의 결 색 */
.g-color { margin-top: 16px; display: grid; gap: 24px; }
@media (min-width: 720px) { .g-color { grid-template-columns: 180px 1fr; align-items: start; } }
.g-color-sw { aspect-ratio: 1; border-radius: 14px; display: flex; align-items: flex-end; padding: 14px; max-width: 180px; }
.g-color-sw .mono { font-size: 12px; letter-spacing: .06em; }
.g-traits { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; max-width: 420px; }
.g-traits li { display: grid; grid-template-columns: 72px 1fr 32px; gap: 10px; align-items: center; font-size: 13px; }
.g-bar { height: 6px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.g-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; }
.g-traits b { text-align: right; font-weight: 600; }

/* 잠긴 장 */
.lock { position: relative; min-height: 260px; }
.lock-blur { max-height: 300px; overflow: hidden; filter: blur(6px); opacity: .55; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
/* 흐린 박스(.lock) 기준 한가운데 — 모바일에서도 박스 가운데에 온다 */
.lock-cta { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; }
.lock-cta p { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.lock-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); color: var(--accent); box-shadow: 0 2px 10px rgba(14, 26, 43, .1); }
.lock-cta b { font-size: 16px; color: var(--ink); }
.lock-cta s, .paywall-price s { color: inherit; opacity: .7; font-weight: 500; }
.lock-mark { color: var(--muted); }

/* 상세 리포트 안내 (한눈에 보기 아래) */
.paywall { padding-top: 48px; scroll-margin-top: 64px; }
.paywall-box { border: 1.5px solid var(--accent); border-radius: var(--r-card); padding: 28px; display: grid; gap: 24px; background: var(--paper); }
@media (min-width: 820px) { .paywall-box { grid-template-columns: 1fr 260px; align-items: center; } }
.paywall-box .mono { font-size: 12px; color: var(--accent); }
.paywall-box h2 { font-size: 24px; letter-spacing: -.02em; margin: 6px 0 8px; }
.paywall-box > div > p { color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.paywall-list { margin: 14px 0 0; padding-left: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 16px; font-size: 14px; color: var(--ink-2); }
.paywall-buy { display: grid; gap: 10px; }
.paywall-buy .btn { width: 100%; }
.paywall-price { font-size: 15px; color: var(--muted); }
.paywall-price b { font-size: 28px; color: var(--ink); letter-spacing: -.02em; margin-left: 4px; }

/* 라이트 → 심화 */
.to-deep { padding-top: 96px; }
.to-deep-box { border-radius: var(--r-card); background: var(--accent-soft); padding: 28px; display: grid; gap: 20px; }
@media (min-width: 820px) { .to-deep-box { grid-template-columns: 1fr auto; align-items: center; gap: 40px; } }
.to-deep-box .mono { font-size: 12px; color: var(--accent); }
.to-deep-box h2 { font-size: 26px; letter-spacing: -.02em; margin: 6px 0 10px; }
.to-deep-box p:last-child { color: var(--ink-2); font-size: 15px; line-height: 1.75; max-width: 40em; }
.to-deep + .r-foot { padding-top: 48px; }

/* 사업자 정보 */
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 96px; margin-top: 48px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.site-foot-note { font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.site-foot-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; }
.site-foot-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* 오른쪽 아래 결제 안내 */
.pay-chip { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: grid; gap: 1px; text-align: left; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); font: inherit; font-size: 12px; line-height: 1.4;
  box-shadow: 0 6px 20px rgba(14, 26, 43, .1); cursor: default; }
.pay-chip span { color: var(--muted); }
.pay-chip b { font-weight: 600; }
.pay-chip s { opacity: .6; font-weight: 400; }
.pay-chip.is-link { cursor: pointer; border-color: var(--accent); }
.pay-chip[hidden] { display: none; }

@media print {
  .pay-chip, .site-foot, .paywall, .to-deep { display: none !important; }
  .g-chip, .g-facts { break-inside: avoid; }
}
.r-foot #copy-fallback:empty { display: none; }

/* 결제 전·후 화면 스위치 (시안 확인용) */
.view-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); }
.view-switch button { border: 0; background: none; font: inherit; font-size: 13px; padding: 6px 12px; color: var(--muted); cursor: pointer; }
.view-switch button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }

/* 심화: 답변 근거 */
.evidence { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 760px) { .evidence { grid-template-columns: 1fr 1fr; } }
.evidence .mono { font-size: 12px; color: var(--accent); }
.evidence ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.evidence li { display: grid; gap: 2px; }
.evidence q { font-size: 15px; color: var(--ink); quotes: "“" "”"; }
.evidence li span { font-size: 12px; color: var(--muted); }

/* 심화: 넓혀 본 직업 후보 */
.pair-alt { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 760px) { .pair-alt { grid-template-columns: repeat(3, 1fr); } }
.pair-alt .mono { font-size: 12px; color: var(--accent); }
.pair-alt h3 { font-size: 17px; margin: 6px 0 4px; }
.pair-alt .g-traits { margin-top: 10px; }
.pair-alt .g-traits li { grid-template-columns: 64px 1fr 28px; }
.pair-jobs { margin-top: 12px; font-size: 14px; color: var(--ink-2); line-height: 1.7; }

/* 심화: 스트레스와 회복 */
.stress-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .stress-grid { grid-template-columns: 1fr 1fr; } }
.stress-card .mono { font-size: 12px; color: var(--accent); }
.stress-card.main { outline: 1.5px solid var(--accent); }
.stress-card dl { margin: 12px 0 0; display: grid; gap: 10px; }
.stress-card dt { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.stress-card dd { margin: 2px 0 0; font-size: 15px; color: var(--ink); line-height: 1.65; }

/* 결제창 (목업) */
body.pay-open { overflow: hidden; }
.pay-modal { position: fixed; inset: 0; z-index: 60; background: rgba(14, 26, 43, .45); display: grid; place-items: center; padding: 16px; }
.pay-sheet { width: 100%; max-width: 400px; background: var(--paper); border-radius: 18px; padding: 20px 20px 16px; box-shadow: 0 20px 60px rgba(14, 26, 43, .25); }
.pay-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.pay-head b { font-size: 17px; }
.pay-x { border: 0; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.pay-item { display: grid; grid-template-columns: 16px 1fr; gap: 12px; padding: 14px; border-radius: 12px; background: var(--paper-hi); }
.pay-item .g-dot { margin-top: 3px; }
.pay-item .mono { font-size: 11px; color: var(--muted); }
.pay-item b { display: block; font-size: 15px; margin: 2px 0; }
.pay-item p:last-child { font-size: 13px; color: var(--ink-2); }
.pay-sum { margin: 16px 0 0; display: grid; gap: 8px; font-size: 14px; }
.pay-sum div { display: flex; justify-content: space-between; }
.pay-sum dt { color: var(--muted); }
.pay-sum dd { margin: 0; }
.pay-sum .minus { color: var(--warn); }
.pay-sum .total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; font-weight: 700; }
.pay-sum .total dd { font-size: 20px; color: var(--accent); }
.pay-note { margin-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.6; text-align: center; }
.pay-go { width: 100%; margin-top: 14px; }
.pay-mock { margin-top: 12px; font-size: 11px; color: var(--muted); text-align: center; }
.pay-step[data-step="2"], .pay-step[data-step="3"] { text-align: center; padding: 20px 0 4px; }
.pay-step[hidden] { display: none; }
.pay-spin { width: 36px; height: 36px; margin: 0 auto; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: pay-spin .8s linear infinite; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
.pay-wait { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.pay-done-mark { width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.pay-done { display: block; margin-top: 12px; font-size: 18px; }
@media print { .pay-modal, .view-switch { display: none !important; } }
.g-label, .pay-item .mono { text-transform: none; }

/* ---------- 약관 페이지 (이용약관·개인정보처리방침·환불정책) ---------- */
a.brand { text-decoration: none; color: inherit; }
.legal-back { font-size: 12px; text-decoration: none; }
.legal-back:hover { color: var(--accent); }
.legal { padding-block: 40px 24px; }
.legal .wrap { max-width: 760px; }
.legal-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.legal-tabs a { flex: none; padding: 10px 14px; font-size: 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.legal-tabs a:hover { color: var(--ink); }
.legal-tabs a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.legal-head { padding: 40px 0 24px; }
.legal-head .mono { font-size: 12px; color: var(--accent); }
.legal-head h1 { font-family: var(--f-display); font-size: clamp(30px, 5vw, 42px); letter-spacing: -.03em; margin: 8px 0 10px; }
.legal-head p { color: var(--ink-2); font-size: 15px; }
.legal-date { display: inline-block; margin-top: 14px; padding: 4px 10px; border-radius: 8px; background: var(--paper-hi); font-size: 12px !important; color: var(--muted) !important; }
.legal-box { border-top: 1px solid var(--line-soft); padding: 24px 0; }
.legal-box h2 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.legal-box p, .legal-box li { font-size: 15px; color: var(--ink-2); line-height: 1.8; }
.legal-box p + p { margin-top: 8px; }
.legal-box ul, .legal-box ol { padding-left: 20px; margin: 8px 0; display: grid; gap: 4px; }
.legal-box b { color: var(--ink); }
.legal-box a { color: var(--accent); }
.legal-box table { border-collapse: collapse; margin-top: 4px; font-size: 15px; }
.legal-box th { text-align: left; font-weight: 600; color: var(--ink); padding: 6px 24px 6px 0; }
.legal-box td { color: var(--ink-2); padding: 6px 0; }
.legal + .site-foot { margin-top: 24px; }

/* ---------- 심화: 긴 글 블록 ---------- */
.scene-grid { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 760px) { .scene-grid { grid-template-columns: 1fr 1fr; } }
.scene .body-text { font-size: 15px; }
.sw-list { display: grid; gap: 12px; margin-top: 16px; }
.sw .mono { font-size: 11px; color: var(--accent); }
.sw.minus .mono { color: var(--warn); }
.sw h3 { font-size: 18px; letter-spacing: -.02em; margin: 6px 0 8px; }
.sw .body-text { max-width: none; }
.sw .tip { margin-top: 14px; }
.deep-tip { margin-top: 20px; padding: 18px 20px; border-radius: var(--r-card); background: var(--accent-soft); }
.deep-tip b { display: block; font-size: 14px; color: var(--accent); margin-bottom: 4px; }
.deep-tip p { font-size: 15px; color: var(--ink); line-height: 1.8; }
.road { display: grid; gap: 12px; margin-top: 20px; }
@media (min-width: 900px) { .road { grid-template-columns: repeat(3, 1fr); } }
.road .mono { font-size: 11px; color: var(--accent); }
.road .minus .mono { color: var(--warn); }
.road .list-title { margin-top: 4px; }
.road .body-text { font-size: 15px; }
.plan { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; padding: 16px 18px; border-radius: var(--r-card); background: var(--paper-hi); }
.plan .mono { font-size: 12px; color: var(--accent); padding-top: 3px; }
.plan p { font-size: 15px; color: var(--ink); line-height: 1.75; }

/* 잠긴 장 자리 (실제 문장 없음) */
.ph { display: grid; gap: 12px; max-width: 40em; }
.ph i, .ph-cards i { display: block; height: 14px; border-radius: 7px; background: var(--line); }
.ph b { display: block; height: 10px; }
.ph-cards { margin-top: 24px; }
.ph-cards .panel { display: grid; gap: 12px; min-height: 140px; align-content: start; }
.ph-cards i:nth-child(1) { width: 40%; height: 16px; } .ph-cards i:nth-child(2) { width: 95%; } .ph-cards i:nth-child(3) { width: 80%; }

/* 직업 전체 표 (더보기) */
.job-more { margin-top: 16px; }
.job-table-wrap { margin-top: 16px; }
.job-table-wrap[hidden] { display: none; }
.job-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.job-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.job-table td { padding: 12px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); vertical-align: middle; }
.job-table td:first-child { color: var(--muted); width: 40px; }
.job-table td b { color: var(--ink); font-weight: 600; }
.job-table tr.top td:nth-child(2) b { color: var(--accent); }
.jt-code { font-family: var(--f-mono); font-size: 12px; padding: 2px 6px; border-radius: 6px; background: var(--paper-hi); color: var(--ink-2); }
.job-table td:last-child { white-space: nowrap; width: 150px; }
.jt-fit { display: inline-block; vertical-align: middle; width: 80px; height: 6px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; margin-right: 8px; }
.jt-fit i { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 3px; }
@media print { .job-more { display: none; } .job-table-wrap[hidden] { display: block !important; } }

/* 결제창 — 성함·번호, 안내 문구, 결과 페이지 주소 */
.pay-form { display: grid; gap: 10px; margin-top: 16px; }
.pay-form label { display: grid; gap: 4px; }
.pay-form span { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.pay-form input, .pay-link input { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.pay-form input:focus, .pay-link input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.pay-err { min-height: 1.2em; font-size: 12px; color: var(--warn); }
.pay-guide { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); display: grid; gap: 4px; }
.pay-guide p { font-size: 13px; color: var(--ink); line-height: 1.6; }
.pay-link { margin-top: 16px; text-align: left; }
.pay-link[hidden] { display: none; }
.pay-link-label { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.pay-link-row { display: flex; gap: 8px; }
.pay-link-row input { font-size: 12px; font-family: var(--f-mono); }
.pay-link-row .btn { flex: none; min-height: 40px; padding: 0 14px; font-size: 13px; }
.pay-sheet { max-height: calc(100vh - 32px); overflow-y: auto; }

/* 1:1 문의 */
.inq-form { display: grid; gap: 14px; padding-bottom: 24px; }
.inq-form[hidden] { display: none; }
.inq-row { display: grid; gap: 14px; }
@media (min-width: 640px) { .inq-row { grid-template-columns: 1fr 1fr; } }
.inq-form label { display: grid; gap: 6px; }
.inq-form label > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.inq-form em { font-style: normal; color: var(--warn); }
.inq-form small { font-weight: 400; color: var(--muted); }
.inq-form input, .inq-form textarea { width: 100%; font: inherit; font-size: 15px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.inq-form textarea { resize: vertical; min-height: 160px; line-height: 1.7; }
.inq-form input:focus, .inq-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.inq-note { font-size: 12px; color: var(--muted); line-height: 1.7; }
.inq-note a { color: var(--accent); }
.inq-msg { min-height: 1.2em; font-size: 13px; color: var(--warn); }
.inq-form .btn-primary { justify-self: start; min-width: 160px; }
.inq-done { text-align: center; padding: 48px 0; display: grid; gap: 12px; justify-items: center; }
.inq-done[hidden] { display: none; }
.inq-done h2 { font-size: 22px; }
.inq-done p:not(.pay-done-mark) { color: var(--ink-2); font-size: 15px; }

/* 결제 위젯 자리·결제 결과 안내 */
.pay-toss { margin-top: 12px; }
.pay-toss:empty { display: none; }
.pay-sheet { max-width: 480px; }
.paid-banner { background: var(--accent-soft); }
.pay-fail-banner { background: var(--warn-soft); }
.pay-fail-banner b { color: var(--warn); }

/* ---------- 첫 화면 아래: 진행 순서 · 미리 보기 · 시작 배너 ---------- */
.im-sec { padding-top: 88px; }
.im-sec.im-last { padding-bottom: 24px; }
.im-eyebrow { font-size: 12px; color: var(--accent); letter-spacing: .06em; }
.im-title { font-family: var(--f-display); font-size: clamp(26px, 4vw, 36px); letter-spacing: -.03em; margin: 8px 0 24px; }
.im-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 820px) { .im-steps { grid-template-columns: repeat(3, 1fr); } }
.im-steps li { border-radius: var(--r-card); background: var(--paper-hi); padding: 24px; display: grid; gap: 8px; align-content: start; }
.im-steps .mono { font-size: 12px; color: var(--accent); }
.im-steps b { font-size: 17px; letter-spacing: -.02em; }
.im-steps p { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.im-preview { display: grid; gap: 32px; align-items: start; }
@media (min-width: 820px) { .im-preview { grid-template-columns: minmax(220px, 280px) 1fr; gap: 56px; } }
.im-card { margin: 0; }
@media (max-width: 819px) { .im-card { max-width: 260px; } }
.im-card img { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 18px; background: var(--paper-hi); box-shadow: 0 12px 32px rgba(14, 26, 43, .14); }
.im-preview-text .im-title { margin-bottom: 10px; }
.im-lead { color: var(--ink-2); font-size: 15px; line-height: 1.7; max-width: 34em; }
.im-toc { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; }
@media (min-width: 640px) { .im-toc { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.im-toc li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.im-toc .mono { font-size: 12px; color: var(--muted); }
.im-toc b { font-weight: 600; }
.im-toc em { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.im-toc em.free { background: var(--accent-soft); color: var(--accent); }
.im-toc em.paid { background: var(--paper-hi); color: var(--ink-2); }
.im-banner { border-radius: 22px; padding: clamp(28px, 6vw, 52px); color: #fff; display: grid; gap: 24px; justify-items: start;
  background: radial-gradient(120% 140% at 100% 0%, #4f86e8 0%, transparent 55%), linear-gradient(135deg, #0e1a2b 0%, #174aa6 60%, #1f5fd1 100%); }
.im-banner-title { font-size: clamp(20px, 3.2vw, 28px); font-weight: 700; line-height: 1.45; letter-spacing: -.02em; }
.im-banner-btn { background: #fff; color: #0e1a2b; }
.im-banner-btn:hover { background: #e8f0fd; color: #0e1a2b; }
@media print { .im-sec { display: none !important; } }

/* ---------- 새 장 (2026-10-23) ---------- */
.seen .mono { font-size: 11px; color: var(--accent); }
.seen .list-title { margin-top: 4px; }
.okay-list { display: grid; gap: 12px; }
.okay-worry { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.combo { border: 1.5px solid var(--accent-soft); border-radius: var(--r-card); padding: 24px; margin-bottom: 40px; background: var(--paper); }
.combo > .mono { font-size: 12px; color: var(--accent); }
.combo h3 { font-size: clamp(19px, 2.6vw, 23px); letter-spacing: -.02em; margin: 8px 0 12px; }
.combo .body-text { max-width: none; }
.combo .panel.minus .list-title { color: var(--warn); }
.env-list { display: grid; gap: 14px; }
@media (min-width: 760px) { .env-list { grid-template-columns: 1fr 1fr; } }
.env { border-radius: var(--r-card); background: var(--paper-hi); padding: 18px 20px; }
.env-ends { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.env p { margin-top: 10px; font-size: 14px; color: var(--ink); }
.q-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.q-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 18px 20px; border-radius: var(--r-card); background: var(--accent-soft); }
.q-list .mono { font-size: 13px; color: var(--accent); padding-top: 2px; }
.q-list p { font-size: 16px; color: var(--ink); line-height: 1.7; font-weight: 500; }
