/* WorkMind AI — 하위 페이지 공용 스타일 (about / faq / case-studies / refund / terms / privacy / prepare / apply) */
:root {
  --bg: #ffffff; --wash: #f5f7f9; --ink: #10141a; --sub: #4b5563;
  --faint: #9aa3af; --line: #e5e9ee; --blue: #2447e0; --blue-soft: #eef1fd;
  --green: #0d9463; --red: #b42318; --red-soft: #fef1f0;
  /* 구 토큰 별칭 — 페이지별 인라인 CSS 호환 */
  --paper: #ffffff; --manila: #f5f7f9; --graphite: #4b5563; --pen: #2447e0; --stamp: #b42318;
  --rule: #e5e9ee; --rule-dark: #d5dae1;
  --serif: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
  --r-lg: 18px; --r-md: 12px;
  --shadow: 0 1px 2px rgba(16,20,26,.04), 0 12px 32px rgba(16,20,26,.07);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--sans);
  line-height: 1.7; font-size: 16px;
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: pretty; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 18px; font-weight: 700; z-index: 100; border-radius: 8px; }
.skip-link:focus { left: 16px; top: 12px; }

/* ---------- Topbar ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 26px; padding: 14px 24px; max-width: 1000px; margin: 0 auto; }
.brand { font-weight: 800; letter-spacing: -0.01em; font-size: 16px; margin-right: auto; }
.brand i { font-style: normal; color: var(--blue); }
.links { display: flex; align-items: center; gap: 22px; font-size: 14.5px; font-weight: 500; color: var(--sub); }
.links a:hover { color: var(--ink); }
.links a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.cta { background: var(--blue); color: #fff !important; font-weight: 700; font-size: 13.5px; padding: 10px 18px; border-radius: 10px; white-space: nowrap; }
.cta:hover { background: #1d3ac2; }

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--line); padding: 56px 0 48px; background: radial-gradient(900px 400px at 90% -20%, var(--blue-soft), transparent 60%), var(--bg); }
.breadcrumb { display: flex; gap: 8px; font-size: 12.5px; color: var(--faint); margin-bottom: 22px; font-weight: 600; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumb a:hover { color: var(--blue); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 6px 13px; }
.hero h1 { font-weight: 800; font-size: clamp(28px, 4vw, 42px); line-height: 1.25; letter-spacing: -0.03em; margin-top: 16px; max-width: 800px; }
.hero > .wrap > p { margin-top: 18px; font-size: 16.5px; color: var(--sub); max-width: 680px; }
.hero > .wrap > p b { color: var(--ink); }
.answer { margin-top: 22px; border-left: 3px solid var(--blue); background: var(--blue-soft); border-radius: 0 12px 12px 0; padding: 14px 20px; font-size: 14.5px; color: var(--sub); max-width: 760px; }
.answer strong { color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 56px 0 0; }
.section h2 { font-weight: 800; font-size: clamp(22px, 2.7vw, 28px); letter-spacing: -0.025em; padding-bottom: 14px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.lead { font-size: 15.5px; color: var(--sub); max-width: 720px; margin: -8px 0 26px; }
.lead b { color: var(--ink); }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.card { padding: 26px 26px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.card h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.4; }
.card p { margin-top: 10px; font-size: 14.5px; color: var(--sub); line-height: 1.75; }
.card ul { margin-top: 14px; display: grid; gap: 8px; }
.card li { padding-left: 15px; position: relative; font-size: 14px; color: var(--sub); line-height: 1.65; }
.card li::before { content: "·"; position: absolute; left: 3px; color: var(--blue); font-weight: 800; }
.card a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.card .more { display: inline-block; margin-top: 16px; font-size: 13.5px; font-weight: 700; color: var(--blue); border: 0; text-decoration: none; }

/* ---------- 실적 표 ---------- */
.ledger-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
table.ledger { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14.5px; }
.ledger th { font-size: 12.5px; color: var(--faint); font-weight: 700; text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ledger td { padding: 16px 18px; border-bottom: 1px solid var(--wash); vertical-align: top; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger .no { font-weight: 800; font-size: 13px; color: var(--blue); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger .who { font-weight: 700; white-space: nowrap; }
.ledger .who span { display: block; font-weight: 500; font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.ledger .what { color: var(--sub); }
.ledger a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; font-size: 13.5px; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 2px solid var(--ink); max-width: 840px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 40px 18px 4px; font-size: 15.5px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--blue); font-size: 20px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 4px 20px; font-size: 14.5px; color: var(--sub); line-height: 1.78; }
.faq details p b { color: var(--ink); }

/* ---------- 정의 목록 ---------- */
.deflist { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.deflist > div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 15px 22px; border-top: 1px solid var(--wash); align-items: baseline; }
.deflist > div:first-child { border-top: 0; }
.deflist dt { font-weight: 700; font-size: 14.5px; }
.deflist dd { font-size: 14.5px; color: var(--sub); }
.deflist dd a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 본문 텍스트 (약관류) ---------- */
.prose h2 { margin-top: 40px; }
.prose h3 { font-size: 17px; font-weight: 800; margin: 26px 0 10px; letter-spacing: -0.01em; }
.prose p { font-size: 15px; color: var(--sub); margin-top: 12px; }
.prose ul, .prose ol { margin-top: 12px; display: grid; gap: 8px; padding-left: 4px; }
.prose li { font-size: 15px; color: var(--sub); padding-left: 16px; position: relative; }
.prose li::before { content: "·"; position: absolute; left: 3px; color: var(--blue); font-weight: 800; }
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; padding-left: 22px; }
.prose ol li::before { content: counter(n) "."; font-size: 12.5px; font-weight: 700; color: var(--blue); left: 0; }
.prose b, .prose strong { color: var(--ink); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.prose th { font-size: 12.5px; color: var(--faint); font-weight: 700; text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--wash); }
.prose td { padding: 13px 16px; border-bottom: 1px solid var(--wash); color: var(--sub); }

/* ---------- 주석 ---------- */
.note { border-left: 3px solid var(--blue); background: var(--blue-soft); border-radius: 0 12px 12px 0; padding: 12px 18px; font-size: 14px; color: var(--sub); margin-top: 18px; }
.note b { color: var(--ink); }
.foot-note { margin-top: 16px; font-size: 12.5px; color: var(--faint); }
.rev { font-size: 12px; color: var(--faint); margin-top: 40px; }

/* ---------- CTA 배너 ---------- */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--ink); color: #fff; border-radius: 22px; padding: 34px 40px; margin-top: 50px; flex-wrap: wrap; }
.cta-band h2 { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; border: 0; padding: 0; margin: 0; color: #fff; }
.cta-band p { margin-top: 8px; font-size: 14px; color: #c7cdd6; }
.btn { display: inline-block; padding: 14px 26px; border-radius: var(--r-md); font-size: 15px; font-weight: 700; text-align: center; border: 0; background: var(--blue); color: #fff; }
.btn:hover { background: #1d3ac2; }
.cta-band .btn { background: #fff; color: var(--ink); }
.cta-band .btn:hover { background: var(--blue-soft); }
.btn-line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-line:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- Footer ---------- */
footer { margin-top: 72px; border-top: 1px solid var(--line); padding: 36px 0 40px; background: var(--wash); }
.footer-inner { display: grid; gap: 12px; font-size: 13px; color: var(--sub); max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; }
.footer-links a:hover { color: var(--blue); }
.footer-doc { font-size: 11.5px; color: var(--faint); }

@media (max-width: 860px) {
  /* 모바일에서 메뉴를 숨기지 않고 아래 줄로 내려 가로 스크롤 */
  .nav { flex-wrap: wrap; row-gap: 11px; padding-bottom: 11px; }
  .links {
    order: 3; width: 100%; gap: 18px; font-size: 13.5px;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    padding-bottom: 1px;
  }
  .links::-webkit-scrollbar { display: none; }
  .links a { white-space: nowrap; }
  .grid { grid-template-columns: 1fr; }
  .deflist > div { grid-template-columns: 1fr; gap: 6px; }
  .cta-band { padding: 26px 22px; }
  .hero { padding: 40px 0 36px; }
}

/* ---------- 사례 상세 페이지 ---------- */
.section.alt { background: var(--wash); padding-bottom: 56px; margin-top: 56px; }
.section.alt + .section { padding-top: 56px; }
.wrap.split { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; }
.side-note { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; padding: 22px 24px; }
.side-note h2 { font-size: 14px !important; margin-bottom: 8px !important; border: 0 !important; padding: 0 !important; }
.side-note p { font-size: 13.5px; color: var(--sub); line-height: 1.75; }

.fact { display: grid; grid-template-columns: 190px 1fr; gap: 20px; padding: 16px 2px; border-top: 1px solid var(--line); align-items: baseline; }
.fact:first-of-type { border-top: 0; }
.fact b { font-size: 14.5px; color: var(--ink); font-weight: 800; }
.fact span { font-size: 14.5px; color: var(--sub); line-height: 1.75; }

.case-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.case-meta span { font-size: 12.5px; font-weight: 700; color: var(--sub); border-radius: 8px; padding: 5px 11px; background: var(--wash); }

.callout { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; padding: 28px 32px; margin-top: 34px; box-shadow: var(--shadow); }
.callout h2 { font-size: 20px !important; margin-bottom: 8px !important; border: 0 !important; padding: 0 !important; }
.callout p { font-size: 14.5px; color: var(--sub); line-height: 1.8; margin-bottom: 16px; }
.callout a { display: inline-block; font-size: 14px; font-weight: 700; color: #fff; background: var(--blue); padding: 12px 22px; border-radius: 10px; text-decoration: none; }
.callout a:hover { background: #1d3ac2; }

.updated { font-size: 12px; color: var(--faint); margin-top: 30px; }

@media (max-width: 860px) {
  .wrap.split { grid-template-columns: 1fr; gap: 26px; }
  .fact { grid-template-columns: 1fr; gap: 5px; }
}

/* ---------- 사례: 표 / 산출물 목록 ---------- */
table.evidence { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 14px; }
table.evidence caption { text-align: left; font-size: 12.5px; font-weight: 700; color: var(--faint); padding-bottom: 10px; }
table.evidence th, table.evidence td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }
table.evidence thead th { background: var(--wash); font-size: 12.5px; color: var(--sub); font-weight: 700; }
table.evidence tbody td:first-child { font-weight: 700; color: var(--ink); }
table.evidence tbody td { color: var(--sub); font-variant-numeric: tabular-nums; }
table.evidence tbody td:last-child { color: var(--blue); font-weight: 700; }
.source-note { font-size: 12.5px; color: var(--faint); line-height: 1.75; margin-top: 12px; }

.deliverables { display: grid; gap: 8px; margin-top: 6px; }
.deliverables li { position: relative; padding-left: 17px; font-size: 14.5px; color: var(--sub); line-height: 1.8; list-style: none; }
.deliverables li::before { content: "·"; position: absolute; left: 4px; color: var(--blue); font-weight: 800; }
.deliverables li b { color: var(--ink); font-weight: 700; }
