/* 부동산 프로파일러 주과장 — 디자인 시스템
   콘셉트: 프로파일러의 사건 파일 (종이 바탕 · 남색 잉크 · 빨간 펜 표식) */

:root {
  --paper: #f5f1e8;
  --paper-2: #ece6d8;
  --card: #fffdf8;
  --ink: #16213a;
  --ink-2: #2e3a55;
  --muted: #6a6458;
  --line: #d8cfbd;
  --red: #c4161c;
  --red-soft: #f7e1df;
  --go: #2d6a4f;
  --hold: #a86a12;
  --stop: #c4161c;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(22, 33, 58, 0.05), 0 10px 28px -14px rgba(22, 33, 58, 0.22);
  --wrap: 1120px;
  --read: 720px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
strong { font-weight: 750; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; letter-spacing: -0.025em; font-weight: 800; }
h1 { font-size: clamp(2.05rem, 5.4vw, 3.55rem); line-height: 1.18; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.read { width: min(100% - 32px, var(--read)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }

/* ---------- 머리말 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand small { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; line-height: 1.1; }
.brand span { line-height: 1.15; font-size: 1.05rem; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-size: .93rem; font-weight: 600; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); }
.nav a[aria-current="page"] { color: var(--red); }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.header-cta { display: flex; gap: 8px; }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; font-size: .92rem; background: var(--card); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: grid; }
.menu-panel { display: none; position: absolute; right: 16px; left: 16px; top: 62px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; gap: 2px; }
.menu-panel a { text-decoration: none; padding: 12px 12px; border-radius: 8px; font-weight: 650; }
.menu-panel a:hover { background: var(--paper-2); }
@media (max-width: 1040px) {
  .nav, .header-cta { display: none; }
  .menu { display: block; }
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 12px; font-weight: 750; font-size: 1rem;
  text-decoration: none; border: 1.5px solid var(--ink); cursor: pointer;
  background: var(--ink); color: var(--paper); line-height: 1.2; font-family: inherit;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--ink-2); color: var(--paper); transform: translateY(-1px); }
.btn-red { background: var(--red); border-color: var(--red); }
.btn-red:hover { background: #a51117; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn-sm { padding: 9px 14px; font-size: .9rem; border-radius: 10px; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--red); }

/* ---------- 빨간 펜 표식 ---------- */
.pen { position: relative; white-space: nowrap; }
.pen::after {
  content: ""; position: absolute; inset: -0.28em -0.42em -0.22em -0.42em; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 80' preserveAspectRatio='none'%3E%3Cpath d='M18 46C10 22 60 8 108 9c52 1 88 12 84 34-4 24-62 31-112 29C40 70 8 60 14 38 19 22 46 14 70 12' fill='none' stroke='%23c4161c' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.scribble {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8c40-6 80-6 120-2s90 4 130-1 40-2 46 0' fill='none' stroke='%23c4161c' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left bottom / 100% .32em;
  padding-bottom: .12em;
}
.stamp {
  display: inline-block; font-weight: 900; letter-spacing: .12em; font-size: .95rem;
  border: 3px solid currentColor; border-radius: 6px; padding: 2px 10px 1px;
  transform: rotate(-7deg); line-height: 1.4; font-family: var(--font);
}
.stamp.go { color: var(--go); }
.stamp.hold { color: var(--hold); }
.stamp.stop { color: var(--stop); }

/* ---------- 섹션 공통 ---------- */
section { padding: clamp(56px, 9vw, 104px) 0; }
.section-tight { padding: clamp(40px, 6vw, 64px) 0; }
.band { background: var(--paper-2); border-block: 1px solid var(--line); }
.dark { background: var(--ink); color: #eef0f5; }
.dark .muted { color: #b8bfd0; }
.dark a:hover { color: #ffb3b3; }
.dark h2 strong, .dark p strong { color: #ff9b9b; }
.file-tab {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono);
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
}
.file-tab::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.dark .file-tab { color: #b8bfd0; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: var(--ink-2); }
.dark .lead { color: #d9dde7; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head.center { margin-inline: auto; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow); }
.grid { display: grid; gap: 18px; }
.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: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ---------- 히어로 ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.eyebrow { font-weight: 700; color: var(--red); font-size: .95rem; margin-bottom: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.hero-note { font-size: .9rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.chips-label { flex-basis: 100%; font-size: .9rem; font-weight: 700; color: var(--ink-2); margin-bottom: 2px; }
.chips a { text-decoration: none; font-size: .88rem; font-weight: 650; padding: 8px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink-2); transition: border-color .15s, color .15s; }
.chips a:hover { border-color: var(--red); color: var(--red); }

/* ---------- 마인드리딩 ---------- */
.mind { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 30px); box-shadow: var(--shadow); }
.mind-q { font-weight: 850; font-size: clamp(28px, 7.4vw, 40px); line-height: 1.3; letter-spacing: -0.03em; margin-bottom: 16px; }
.mind ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; color: var(--ink-2); }
.mind li { padding-left: 18px; position: relative; }
.mind li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--red); }
.mind-a { margin: 0; border-top: 1px dashed var(--line); padding-top: 14px; }
.mind-b { margin: 14px 0 0; }

.casefile {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 6px 18px 18px 18px;
  padding: 26px 24px 22px; box-shadow: var(--shadow); font-size: .95rem;
}
.casefile::before {
  content: "CASE FILE"; position: absolute; top: -15px; left: -1px; height: 15px; padding: 0 14px;
  background: var(--paper-2); border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; line-height: 15px; color: var(--muted);
}
.casefile dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; }
.casefile dt { color: var(--muted); font-size: .85rem; }
.casefile dd { margin: 0; font-family: var(--mono); font-size: .9rem; }
.casefile hr { border: 0; border-top: 1px dashed var(--line); margin: 16px 0; }
.redact { display: inline-block; background: var(--ink); border-radius: 2px; height: .95em; vertical-align: -0.12em; }
.casefile .stamp { position: absolute; right: 20px; bottom: 18px; font-size: 1.2rem; }
.casefile .q { color: var(--red); font-weight: 800; font-family: var(--font); }

/* 인증 사진 띠: 왼쪽에서 오른쪽으로 천천히 흐른다. 마우스를 올리면 멈춘다. */
.proof-marquee {
  position: relative; overflow: hidden; margin-bottom: 26px; padding: 6px 0 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.proof-track { display: flex; width: max-content; animation: proof-flow 90s linear infinite; }
.proof-marquee:hover .proof-track { animation-play-state: paused; }
.proof-group { display: flex; gap: 14px; padding-right: 14px; align-items: center; }
.proof-group img {
  height: 170px; width: auto; flex: none; border-radius: 10px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow); object-fit: cover;
}
@keyframes proof-flow { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (max-width: 760px) {
  .proof-group img { height: 120px; border-radius: 8px; }
  .proof-group { gap: 10px; padding-right: 10px; }
  .proof-track { animation-duration: 70s; }
}
@media (prefers-reduced-motion: reduce) {
  .proof-track { animation: none; }
  .proof-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .proof-group[aria-hidden="true"] { display: none; }
}

.proof-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.proof-strip div { padding: 18px 18px; border-right: 1px solid var(--line); }
.proof-strip div:last-child { border-right: 0; }
.proof-strip b { display: block; font-size: 1.35rem; letter-spacing: -0.02em; }
.proof-strip span { font-size: .86rem; color: var(--muted); }
@media (max-width: 760px) {
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-strip div:nth-child(2) { border-right: 0; }
  .proof-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- 판단 격차 ---------- */
.gap-list { display: grid; gap: 14px; margin: 26px 0; padding: 0; list-style: none; }
.gap-list li { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 10px; padding: 16px 18px; }
.gap-list b { display: block; margin-bottom: 2px; }
.quote { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 750; letter-spacing: -0.02em; line-height: 1.5; border-left: 4px solid var(--red); padding-left: 18px; margin: 28px 0; }

/* ---------- 프로필 ---------- */
.profile { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } }
.profile-photo { position: relative; }
.profile-photo img { border-radius: 4px; border: 8px solid var(--card); box-shadow: var(--shadow); transform: rotate(-1.5deg); aspect-ratio: 1 / 1.05; object-fit: cover; object-position: center top; width: 100%; }
.profile-photo figcaption { font-family: var(--mono); font-size: .75rem; color: var(--muted); margin-top: 12px; letter-spacing: .06em; }
.facts { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.facts li { padding-left: 26px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 12px; border: 2.5px solid var(--red); border-radius: 50%; }

/* ---------- 사례 ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }
.timeline li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; counter-increment: step; }
.timeline li::before { content: "0" counter(step); font-family: var(--mono); font-size: .8rem; color: var(--red); letter-spacing: .1em; display: block; margin-bottom: 6px; }
.timeline h3 { font-size: 1.1rem; }
.timeline p { font-size: .94rem; color: var(--ink-2); margin: 0; }
.result-line { margin-top: 22px; padding: 18px 20px; border: 2px dashed var(--red); border-radius: var(--radius); background: var(--card); font-weight: 700; font-size: 1.08rem; }

.evidence { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
@media (max-width: 900px) { .evidence { grid-template-columns: 1fr 1fr; } }
.evidence figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.evidence img { border-radius: 6px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--paper-2); }
.evidence figcaption { font-size: .82rem; color: var(--muted); padding: 8px 4px 2px; line-height: 1.45; }
.evidence a { display: block; }
.evidence.real { margin-top: 16px; }
.evidence.real img { aspect-ratio: 1 / 1; }
.evidence.real img.doc { object-fit: contain; background: #fff; }

.sub-head { margin-top: 48px; }
.sub-head h3 { font-size: clamp(1.25rem, 2.6vw, 1.5rem); margin-bottom: 6px; }
.sub-head p { margin: 0; color: var(--ink-2); }
.case-facts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.case-facts li { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 10px; padding: 12px 16px; font-size: .96rem; }
.case-facts b { font-family: var(--mono); font-size: .82rem; color: var(--red); margin-right: 8px; }

/* 카톡 후기: 데스크톱 3열 벽돌, 모바일 1열 */
.kakao-wall { columns: 3 300px; column-gap: 14px; margin-top: 16px; }
.kakao-wall figure { break-inside: avoid; margin: 0 0 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.kakao-wall img { width: 100%; height: auto; border-radius: 8px; }
.kakao-wall figcaption { font-size: .82rem; color: var(--muted); padding: 7px 4px 1px; line-height: 1.45; }

.review { background: var(--card); border: 1px solid var(--line); border-radius: 18px 18px 18px 4px; padding: 18px 20px; position: relative; }
.review p { margin: 0 0 8px; font-weight: 600; }
.review cite { font-style: normal; font-size: .84rem; color: var(--muted); }

/* ---------- 비교표 ---------- */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .96rem; }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--paper-2); font-size: .88rem; }
.compare thead th:last-child { background: var(--ink); color: var(--paper); }
.compare td:last-child { font-weight: 650; background: #fffaf3; }
.compare td strong { color: var(--red); font-weight: 850; }
.compare tbody th { width: 18%; color: var(--muted); font-weight: 650; font-size: .88rem; }
@media (max-width: 640px) {
  .compare { font-size: .86rem; }
  .compare th, .compare td { padding: 11px 10px; }
}

/* ---------- 보고서 양식 ---------- */
.report { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); font-size: .93rem; position: relative; }
.report-head { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 16px; align-items: end; }
.report-head b { font-size: 1.05rem; }
.report-head span { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.report h4 { font-size: .92rem; margin: 14px 0 6px; color: var(--ink-2); }
.report ul { margin: 0; padding-left: 18px; }
.report .verdict { display: flex; gap: 14px; align-items: center; margin: 4px 0 10px; }
.report-tag { position: absolute; top: -12px; right: 16px; background: var(--red); color: #fff; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.signals { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.signals li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.signals .n { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--stop); color: var(--stop); display: grid; place-items: center; font-weight: 800; font-size: .9rem; }

/* ---------- 상황 진단 ---------- */
.router { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 820px) { .router { grid-template-columns: 1fr; } }
.router-col h3 { display: flex; align-items: center; gap: 10px; }
.router-col h3 .pill { font-size: .75rem; padding: 3px 10px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); font-weight: 700; color: var(--muted); }
.situations { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.situations a { display: grid; gap: 4px; text-decoration: none; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 18px; transition: border-color .15s, transform .15s; }
.situations a:hover { border-color: var(--ink); transform: translateX(3px); color: var(--ink); }
.situations .say { font-weight: 700; }
.situations .to { font-size: .88rem; color: var(--red); font-weight: 700; }

/* ---------- 상품 ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 960px) { .products { grid-template-columns: 1fr; } }
.product { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; display: flex; flex-direction: column; box-shadow: var(--shadow); scroll-margin-top: 90px; transition: box-shadow .2s, outline-color .2s; outline: 3px solid transparent; outline-offset: 3px; }
.product:target, .product.flash { outline-color: var(--red); }
.product.featured { background: var(--ink); color: #eef0f5; border-color: var(--ink); }
.product.featured .muted, .product.featured .p-for { color: #c3c9d8; }
.product .p-tag { font-size: .78rem; font-weight: 800; letter-spacing: .06em; color: var(--red); margin-bottom: 8px; }
.product.featured .p-tag { color: #ff9b9b; }
.product h3 { font-size: 1.32rem; margin-bottom: 4px; }
.product .p-price { font-size: 2rem; font-weight: 850; letter-spacing: -0.03em; margin: 10px 0 2px; }
.product .p-price small { font-size: .95rem; font-weight: 600; margin-left: 2px; }
.product .p-for { font-size: .94rem; color: var(--ink-2); margin-bottom: 14px; }
.product ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; font-size: .94rem; }
.product li { padding-left: 22px; position: relative; }
.product li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 900; }
.product.featured li::before { color: #ff9b9b; }
.product .p-meta { font-size: .84rem; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: auto; margin-bottom: 16px; }
.product.featured .p-meta { border-color: #3d4a6a; }
.product .p-meta dt { font-weight: 700; display: inline; }
.product .p-meta dd { display: inline; margin: 0; }
.product .p-meta div { margin-bottom: 4px; }
.product.featured .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.product.featured .btn:hover { background: #fff; }
.product .step-note { font-size: .82rem; margin-top: 10px; }
.price-policy { margin-top: 24px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: .94rem; }
.price-policy .ico { width: 34px; height: 34px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-weight: 900; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 750; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--red); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 18px; color: var(--ink-2); }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------- 선물 띠 ---------- */
.gift { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--card); border: 2px dashed var(--red); border-radius: 20px; padding: clamp(22px, 4vw, 36px); }
@media (max-width: 760px) { .gift { grid-template-columns: 1fr; } }
.gift h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); }
.gift-list { columns: 2; column-gap: 26px; padding-left: 20px; margin: 12px 0 0; font-size: .94rem; }
@media (max-width: 520px) { .gift-list { columns: 1; } }

/* ---------- 본문(서비스·가이드) ---------- */
.page-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 6px; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--muted); margin-top: 12px; }
.answer-box { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: 10px; padding: 18px 20px; margin: 26px 0; }
.answer-box b.label { display: block; font-size: .8rem; letter-spacing: .1em; color: var(--red); margin-bottom: 4px; }
.prose { padding: clamp(28px, 5vw, 56px) 0; }
.prose h2 { font-size: clamp(1.35rem, 2.8vw, 1.7rem); margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: .94rem; background: var(--card); }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--paper-2); }
.formula { font-family: var(--mono); background: var(--ink); color: #f1f2f6; border-radius: 10px; padding: 16px 18px; font-size: .98rem; margin: 18px 0; line-height: 1.6; }
.callout { background: var(--paper-2); border-radius: 12px; padding: 16px 18px; margin: 20px 0; font-size: .95rem; }
.note-legal { font-size: .84rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 36px; }
.related { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .related { grid-template-columns: 1fr; } }
.related a { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.related a b { display: block; }
.related a span { font-size: .88rem; color: var(--muted); }
.related a:hover { border-color: var(--ink); color: var(--ink); }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; font-size: .94rem; margin: 22px 0; }
.toc ol { margin: 6px 0 0; }

.guide-list { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .guide-list { grid-template-columns: 1fr; } }
.guide-list a { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; height: 100%; }
.guide-list a:hover { border-color: var(--ink); color: var(--ink); }
.guide-list .tag { font-size: .76rem; font-weight: 800; color: var(--red); letter-spacing: .06em; }
.guide-list b { display: block; font-size: 1.08rem; margin: 6px 0; line-height: 1.45; }
.guide-list span { font-size: .9rem; color: var(--muted); }

/* ---------- 폼 ---------- */
.form { display: grid; gap: 14px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.field input { width: 100%; font: inherit; font-size: 1rem; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.field input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(22, 33, 58, .12); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .9rem; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--red); }
.consent details { margin-top: 4px; font-size: .84rem; color: var(--muted); }
.form-status { font-size: .92rem; min-height: 1.4em; }
.form-status.err { color: var(--red); font-weight: 700; }
.download-box { display: none; background: var(--card); border: 2px solid var(--go); border-radius: var(--radius); padding: 22px; }
.download-box.show { display: block; }
.download-box p .btn { margin-top: 2px; }

/* 고르는 항목(라디오·체크박스를 버튼처럼) — 무료 7체크 신청 폼과 사전 입력 공통 */
.pick { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.pick legend { font-weight: 700; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.pick label, .q-opt, .ci-opts label { position: relative; cursor: pointer; }
.pick input, .q-opt input, .ci-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span, .q-opt span, .ci-opts span { display: block; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 11px 13px; font-size: .94rem; font-weight: 600; line-height: 1.4; transition: border-color .12s, background .12s; }
.pick label:hover span, .q-opt:hover span, .ci-opts label:hover span { border-color: var(--ink-2); }
.pick input:checked + span, .q-opt input:checked + span, .ci-opts input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.q-opt.warn input:checked + span { border-color: var(--red); background: var(--red); }
.pick input:focus-visible + span, .q-opt input:focus-visible + span, .ci-opts input:focus-visible + span { outline: 3px solid rgba(196, 22, 28, .35); outline-offset: 2px; }

/* ---------- 무료 7체크: 온라인 체크 화면 ---------- */
.check-tool { border-top: 1px solid var(--line); }
.check-items { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.check-item { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 12px; padding: 18px 18px 16px; transition: border-color .15s; }
.check-item.answered { border-left-color: var(--ink); }
.ci-head { display: flex; align-items: baseline; gap: 10px; }
.ci-no { font-family: var(--mono); font-size: .8rem; color: var(--red); letter-spacing: .08em; }
.ci-head h3 { font-size: 1.12rem; margin: 0; }
.ci-q { margin: 8px 0 6px; font-weight: 600; }
.ci-tip { margin: 0 0 12px; font-size: .9rem; color: var(--ink-2); background: var(--paper); border-radius: 8px; padding: 10px 12px; }
.ci-tip b { display: block; font-size: .78rem; color: var(--red); letter-spacing: .04em; margin-bottom: 2px; }
.ci-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ci-opts span { text-align: center; }
.check-progress { text-align: center; color: var(--muted); font-size: .9rem; margin: 16px 0 0; min-height: 1.4em; }
.check-result { display: grid; gap: 16px; margin-top: 18px; }
.check-verdict { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px; }
.check-verdict.go { border-color: var(--go); }
.check-verdict.hold { border-color: var(--hold); }
.check-verdict.stop { border-color: var(--stop); }
.check-verdict h3 { font-size: 1.2rem; margin: 12px 0 6px; }
.check-verdict p { margin: 0 0 10px; }
.check-weak { margin: 0 0 12px; padding-left: 20px; }
.check-next { margin-top: 14px !important; }
.check-send { background: var(--paper-2); border-radius: var(--radius); padding: 20px; }
.check-send h3 { font-size: 1.08rem; margin: 0 0 4px; }
.check-send .field { display: block; margin: 12px 0; }
.check-send .field span { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); resize: vertical; }
textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(22, 33, 58, .12); }
.btn-kakao { background: #fee500; border-color: #fee500; color: #191919; margin-top: 10px; }
.btn-kakao:hover { background: #f5da00; color: #191919; }

/* ---------- 진단 사전 입력 (/jeopsu) ---------- */
.jeopsu { padding: clamp(20px, 4vw, 32px); }
.jeopsu h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin: 6px 0 4px; }
.q-top { margin-bottom: 14px; }
.q-progress { height: 6px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.q-progress i { display: block; height: 100%; background: var(--red); transition: width .3s ease; }
.q-meta { font-size: .84rem; color: var(--muted); margin: 8px 0 0; }
.q-sub { color: var(--ink-2); margin: 0 0 20px; }
.q-restored { font-size: .88rem; background: var(--paper); border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--red); text-decoration: underline; cursor: pointer; }
.q-body { display: grid; gap: 18px; }
.q-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.q-field > label, .q-field legend { display: block; font-weight: 700; font-size: .93rem; margin-bottom: 8px; padding: 0; }
.q-req { font-style: normal; font-size: .72rem; font-weight: 800; color: var(--red); margin-left: 6px; }
.q-field input[type=text], .q-field input[type=date] { width: 100%; font: inherit; font-size: 1rem; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.q-field input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(22, 33, 58, .12); }
.q-suffix { position: relative; }
.q-suffix input { padding-right: 46px !important; }
.q-suffix b { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .86rem; font-weight: 600; }
.q-money { margin: 5px 2px 0; font-size: .82rem; color: var(--go); font-weight: 650; min-height: 0; }
.q-money:empty { display: none; }
.q-hint { margin: 6px 2px 0; font-size: .82rem; color: var(--muted); }
.q-err { display: none; margin: 6px 2px 0; font-size: .82rem; color: var(--red); font-weight: 700; }
.q-field.invalid .q-err { display: block; }
.q-field.invalid input, .q-field.invalid textarea { border-color: var(--red); }
.q-consent.invalid { border-color: var(--red); box-shadow: 0 0 0 2px rgba(196, 22, 28, .18); }
.q-opts { display: grid; gap: 8px; grid-template-columns: 1fr; }
.q-opts.cols2 { grid-template-columns: repeat(2, 1fr); }
.q-opts.cols3 { grid-template-columns: repeat(3, 1fr); }
.q-opts.cols4 { grid-template-columns: repeat(4, 1fr); }
.q-opts.multi { display: flex; flex-wrap: wrap; }
.q-opts.multi span { border-radius: 999px; padding: 9px 14px; }
.q-opts:not(.multi) span { text-align: center; height: 100%; }
.q-opt small { display: block; font-size: .8rem; font-weight: 500; opacity: .8; margin-top: 3px; }
.q-row { display: grid; gap: 12px; }
.q-row.cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.q-row.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.q-note { font-weight: 800; font-size: .95rem; margin: 8px 0 -6px; padding-top: 14px; border-top: 1px dashed var(--line); }
.q-tag { display: inline-block; background: var(--ink); color: #fff; font-size: .8rem; padding: 2px 10px; border-radius: 99px; margin-right: 6px; }
.q-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; }
.q-nav .btn-red { flex: 1; max-width: 320px; margin-left: auto; }
.q-save { text-align: center; margin: 14px 0 0; }
.q-done { text-align: center; }
.q-check { width: 56px; height: 56px; margin: 4px auto 10px; border-radius: 50%; background: var(--go); color: #fff; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; }
.q-ref { display: inline-grid; gap: 2px; background: var(--paper); border: 1px dashed var(--ink-2); border-radius: 10px; padding: 12px 20px; margin: 6px 0 14px; }
.q-ref b { font-family: var(--mono); font-size: 1.4rem; letter-spacing: .12em; }
.q-ref span { font-size: .8rem; color: var(--muted); }
@media (max-width: 560px) {
  .q-opts.cols3, .q-opts.cols4 { grid-template-columns: repeat(2, 1fr); }
  .q-row.cols3 { grid-template-columns: 1fr; }
}

/* ---------- 마지막 CTA · 꼬리말 ---------- */
.final-cta { text-align: center; }
.final-cta .hero-actions { justify-content: center; }
.disclaimer { font-size: .84rem; color: var(--muted); max-width: 760px; margin: 22px auto 0; }
.dark .disclaimer { color: #9ea6ba; }
.site-footer { background: #0f172b; color: #b8bfd0; padding: 48px 0 110px; font-size: .9rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer b { color: #fff; display: block; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid #26314b; padding-top: 18px; font-size: .8rem; }

.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(245, 241, 232, .96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
  .mobile-bar .btn { padding: 12px 10px; font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- 인쇄(체크리스트 PDF) ---------- */
@page { size: A4; margin: 11mm 13mm 11mm; }
.print-sheet { background: #fff; color: #16213a; max-width: 184mm; margin: 0 auto; font-size: 9.8pt; line-height: 1.5; }
.print-sheet h1 { font-size: 18pt; margin: 0 0 2pt; }
.print-sheet .sub { color: #6a6458; margin-bottom: 4pt; }
.print-sheet .head { border-bottom: 2.5pt solid #16213a; padding-bottom: 6pt; margin-bottom: 9pt; display: flex; justify-content: space-between; align-items: end; gap: 12pt; }
.print-sheet .head .who { font-size: 9pt; color: #6a6458; text-align: right; }
.print-sheet .item { border: 1pt solid #d8cfbd; border-radius: 6pt; padding: 5.5pt 9pt; margin-bottom: 5pt; break-inside: avoid; display: grid; grid-template-columns: 1fr auto; gap: 10pt; }
.print-sheet .item b { font-size: 10.4pt; }
.print-sheet .item .hint { color: #4a5470; font-size: 8.6pt; margin-top: 1pt; }
.print-sheet .boxes { display: flex; gap: 6pt; align-items: center; font-size: 8.8pt; white-space: nowrap; }
.print-sheet .boxes span::before { content: ""; display: inline-block; width: 9pt; height: 9pt; border: 1.2pt solid #16213a; border-radius: 2pt; margin-right: 3pt; vertical-align: -1pt; }
.print-sheet .verdict { background: #f5f1e8; border-radius: 6pt; padding: 7pt 10pt; margin-top: 7pt; break-inside: avoid; }
.print-sheet .verdict li { margin-bottom: 3pt; }
.print-sheet .foot { margin-top: 7pt; font-size: 8.4pt; color: #6a6458; border-top: 1pt solid #d8cfbd; padding-top: 6pt; }
@media print {
  body { background: #fff; }
  .site-header, .site-footer, .mobile-bar, .no-print { display: none !important; }
}
