/* DocSleuth — docsleuth.jinsongtech.com
   JinsongTech identity: charcoal / ivory / vermilion. No web fonts, no external requests. */
:root {
  --ink: #20231f; --graphite: #30342e; --night: #1b1e1a; --paper: #eee9df; --cream: #f7f3eb;
  --card: #fbf8f2; --line: #d6cebf; --line-strong: #c9c1b3; --muted: #62645b; --accent: #e65a32;
  --accent-deep: #a83d20; --accent-soft: #f08a67; --on-dark: #f6efe3; --on-dark-muted: #c7c0b5;
  --radius: 14px; --shadow: 0 1px 0 rgb(32 35 31 / .04), 0 18px 40px -22px rgb(32 35 31 / .35);
  --font: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "Noto Sans KR", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.7; }
html[lang="ko"] body { word-break: keep-all; overflow-wrap: anywhere; }
html[lang="en"] body { overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.03em; }
html[lang="ko"] h1, html[lang="ko"] h2 { letter-spacing: -.045em; }
p { text-wrap: pretty; }
code, kbd { font-family: var(--mono); font-size: .88em; }
code { padding: .1em .35em; border-radius: 5px; background: #e7e0d3; }
.shell { width: min(100% - 48px, 1160px); margin-inline: auto; }
.skip-link { position: absolute; z-index: 50; top: -60px; left: 16px; padding: 10px 14px; background: var(--accent-deep); color: #fff; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgb(247 243 235 / .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand b { font-size: 19px; font-weight: 800; letter-spacing: -.04em; }
.brand small { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.main-nav { display: flex; flex: 1; justify-content: flex-end; gap: clamp(14px, 2.2vw, 28px); }
.main-nav a { color: #4c4e47; font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent-deep); }
.language-switch { display: flex; gap: 2px; white-space: nowrap; }
.language-switch a { padding: 6px 9px; border-radius: 6px; color: var(--muted); font-size: 12px; font-weight: 700; text-decoration: none; }
.language-switch a[aria-current="true"] { background: var(--ink); color: #fff; }

/* Buttons & badges */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 20px; border-radius: 10px; font-size: 15px; font-weight: 800; text-decoration: none; }
.btn-primary { background: var(--accent); color: #141611; }
.btn-primary:hover { background: #f06a42; }
.btn-ghost { border: 1px solid #5d6157; color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--accent-soft); color: var(--accent-soft); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .01em; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-soon { background: rgb(230 90 50 / .14); color: var(--accent-deep); }
.hero .badge-soon { background: rgb(240 138 103 / .16); color: var(--accent-soft); }
.kicker { margin-bottom: 14px; color: var(--accent-deep); font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* Hero */
.hero { overflow: hidden; background: radial-gradient(1200px 520px at 85% -10%, #3a3f36 0%, transparent 60%), var(--night); color: var(--on-dark); }
.hero-inner { padding-block: clamp(56px, 8vw, 104px) 0; text-align: center; }
.hero .badge { margin-bottom: 26px; }
.hero h1 { max-width: 900px; margin: 0 auto 24px; color: #fffaf0; font-size: clamp(38px, 6vw, 74px); font-weight: 800; line-height: 1.06; }
.hero h1 em { color: var(--accent-soft); font-style: normal; }
.hero-lead { max-width: 680px; margin: 0 auto 34px; color: #d9d2c6; font-size: clamp(16.5px, 1.6vw, 19.5px); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 18px; }
.hero-note { margin-bottom: clamp(44px, 6vw, 72px); color: #a9a397; font-size: 13px; }
.hero-shot { position: relative; max-width: 1040px; margin: 0 auto; }
.hero-shot::before { content: ""; position: absolute; inset: 12% -6% -20%; z-index: 0; background: radial-gradient(closest-side, rgb(230 90 50 / .32), transparent); filter: blur(30px); }
.hero-shot .shot { position: relative; z-index: 1; border-bottom-right-radius: 0; border-bottom-left-radius: 0; border-color: #4b5047; box-shadow: 0 -20px 60px -30px rgb(0 0 0 / .8); }

/* Screenshot frame (degrades to a styled placeholder when the image is missing) */
.shot { position: relative; aspect-ratio: 16 / 10; margin: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); background: linear-gradient(180deg, #2c302a 0 34px, #f3eee5 34px); box-shadow: var(--shadow); }
.shot::before { content: ""; position: absolute; top: 12px; left: 14px; width: 10px; height: 10px; border-radius: 50%; background: #e65a32; box-shadow: 16px 0 0 #d9b44a, 32px 0 0 #7aa36b; }
.shot .ph { position: absolute; inset: 34px 0 0; display: grid; grid-template-columns: 22% 1fr; }
.shot .ph-side { border-right: 1px solid #e0d9cc; background: #ebe5da; }
.shot .ph-side i, .shot .ph-main i { display: block; height: 9px; margin: 14px 14% 0; border-radius: 5px; background: #d6cebf; }
.shot .ph-side i:first-child { margin-top: 20px; width: 50%; background: #c9c1b3; }
.shot .ph-main { padding: 4% 5%; }
.shot .ph-main .q { display: flex; align-items: center; height: 13%; min-height: 26px; margin-bottom: 4%; padding-inline: 4%; border: 1px solid #d6cebf; border-radius: 8px; background: #fff; }
.shot .ph-main .q::after { content: ""; width: 34%; height: 8px; border-radius: 4px; background: #e65a32; opacity: .7; }
.shot .ph-main i { margin: 0 0 3.2%; }
.shot .ph-main i:nth-child(3n) { width: 62%; }
.shot .ph-main i:nth-child(3n+1) { width: 88%; }
.shot .ph-label { position: absolute; right: 14px; bottom: 12px; color: #8b8a80; font-size: 11px; font-weight: 700; }
.shot img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; object-position: top center; background: #f3eee5; }
.shot img[hidden] { display: none; }

/* Sections */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section-tint { background: var(--paper); }
.section-dark { background: var(--night); color: var(--on-dark); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 16px; font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; }
.section-dark .section-head p { color: var(--on-dark-muted); }
.section-dark .kicker { color: var(--accent-soft); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.feature .ico { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 11px; background: var(--ink); color: var(--accent-soft); font-size: 18px; font-weight: 900; }
.feature h3 { margin-bottom: 10px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.format-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.format-group { padding: 24px; border-top: 3px solid var(--accent); border-radius: 4px 4px var(--radius) var(--radius); background: var(--cream); }
.format-group h3 { margin-bottom: 6px; font-size: 18px; }
.format-group p { margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
.fineprint { margin-top: 22px; color: var(--muted); font-size: 13.5px; }

.privacy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; gap: clamp(32px, 6vw, 80px); }
.device-diagram { padding: 26px; border: 1px solid #4b5047; border-radius: 18px; background: #262a24; }
.device-diagram .device { padding: 22px; border: 1px dashed #6b7064; border-radius: 12px; }
.device-diagram .device > b { display: block; margin-bottom: 14px; color: #fff7eb; font-size: 13px; letter-spacing: .04em; }
.flow { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.flow li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-left: 3px solid var(--accent); border-radius: 6px; background: #31352e; color: #efe7da; font-size: 14px; font-weight: 700; }
.flow li span { color: var(--on-dark-muted); font-weight: 500; text-align: right; }
.device-diagram .outbound { margin-top: 16px; padding: 14px 16px; border: 1px solid #4b5047; border-radius: 10px; color: var(--on-dark-muted); font-size: 13.5px; }
.device-diagram .outbound b { color: #fff7eb; }
.check-list { display: grid; gap: 14px; margin: 0 0 26px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: ""; position: absolute; top: .45em; left: 0; width: 16px; height: 9px; border-bottom: 3px solid var(--accent-soft); border-left: 3px solid var(--accent-soft); transform: rotate(-45deg); }
.section-dark a.inline { color: var(--accent-soft); font-weight: 700; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 80px); }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.stat { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.stat b { display: block; font-size: 22px; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: 13px; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 12px; }
.gallery figcaption b { display: block; font-size: 16px; }
.gallery figcaption span { color: var(--muted); font-size: 14px; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 920px; margin-inline: auto; }
.plan { display: flex; flex-direction: column; padding: 32px 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.plan.pro { border-color: var(--ink); background: var(--ink); color: var(--on-dark); }
.plan h3 { margin-bottom: 4px; font-size: 24px; }
.plan .plan-price { margin-bottom: 20px; font-size: 15px; font-weight: 800; }
.plan.pro .plan-price { color: var(--accent-soft); }
.plan ul { display: grid; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.plan li { position: relative; padding-left: 22px; font-size: 15px; }
.plan li::before { content: ""; position: absolute; top: .7em; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.plan .plan-foot { margin-top: auto; color: var(--muted); font-size: 13.5px; }
.plan.pro .plan-foot { color: var(--on-dark-muted); }

.req-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.req { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.req h3 { margin-bottom: 14px; font-size: 20px; }
.req dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; font-size: 15px; }
.req dt { color: var(--muted); }
.req dd { margin: 0; font-weight: 600; }

.faq { max-width: 860px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 20px 40px 20px 0; cursor: pointer; font-size: 17px; font-weight: 800; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; top: 16px; right: 6px; color: var(--accent-deep); font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 22px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

.cta { padding: clamp(36px, 5vw, 56px); border-radius: 22px; background: var(--ink); color: var(--on-dark); text-align: center; }
.cta h2 { margin-bottom: 12px; font-size: clamp(26px, 3.2vw, 38px); }
.cta p { max-width: 620px; margin: 0 auto 24px; color: var(--on-dark-muted); }
.cta .mail { color: var(--accent-soft); font-size: clamp(18px, 2.4vw, 24px); font-weight: 800; text-underline-offset: 6px; }

/* Documents (legal, support) */
.doc-hero { padding-block: clamp(44px, 6vw, 72px) clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--line); background: var(--paper); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.breadcrumb a { text-underline-offset: 3px; }
.doc-hero h1 { margin-bottom: 14px; font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; color: var(--muted); font-size: 14px; }
.doc-meta b { color: var(--ink); }
.doc-layout > * { min-width: 0; }
.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: clamp(28px, 5vw, 64px); padding-block: 44px 96px; }
.toc { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; padding: 18px 18px 18px 0; border-right: 1px solid var(--line); font-size: 13.5px; }
.toc b { display: block; margin-bottom: 10px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 18px; }
.toc li { margin-bottom: 7px; line-height: 1.45; }
.toc a { color: #44463f; text-decoration: none; }
.toc a:hover { color: var(--accent-deep); text-decoration: underline; }
.doc { max-width: 820px; }
.doc h2 { margin: 48px 0 14px; padding-top: 4px; font-size: 23px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 28px 0 10px; font-size: 18px; }
.doc p, .doc li { color: #2d302b; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--accent-deep); text-underline-offset: 3px; }
.summary-box { margin: 0 0 36px; padding: 24px 26px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; background: var(--card); }
.summary-box h2 { margin: 0 0 12px !important; font-size: 18px !important; }
.summary-box ul { margin: 0; }
.note { padding: 16px 18px; border-radius: 10px; background: #ebe4d7; color: #3d4039; font-size: 14.5px; }
.table-wrap { margin: 16px 0 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #ece6db; font-size: 13px; font-weight: 800; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.table-wrap table { min-width: 560px; }
.legal-foot { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
pre.license { max-height: 420px; overflow: auto; padding: 18px; border-radius: 10px; background: var(--ink); color: #efe7da; font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; }
.doc details { margin: 10px 0; padding: 4px 0; }
.doc details summary { cursor: pointer; font-weight: 800; }
.contact-card { display: grid; gap: 4px; margin: 18px 0; padding: 22px 24px; border-radius: 12px; background: var(--ink); color: var(--on-dark); }
.contact-card a { color: var(--accent-soft) !important; font-size: 20px; font-weight: 800; }
.contact-card span { color: var(--on-dark-muted); font-size: 14px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: 13px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px; padding-block: 36px 22px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.footer-brand img { width: 26px; height: 26px; border-radius: 7px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: #44463f; font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--accent-deep); text-decoration: underline; }
.footer-links a.strong { color: var(--ink); font-weight: 800; }
.footer-biz { padding-block: 18px 34px; border-top: 1px solid var(--line); line-height: 1.85; }
.footer-biz span { display: inline-block; margin-right: 14px; }
.footer-biz a { color: #44463f; }
.footer-biz .copy { display: block; margin-top: 8px; }

/* 404 */
.notfound { display: grid; place-items: center; min-height: 60vh; padding-block: 80px; text-align: center; }
.notfound .code { color: var(--accent); font-size: clamp(64px, 12vw, 120px); font-weight: 900; letter-spacing: -.06em; line-height: 1; }

@media (max-width: 1000px) {
  .header-inner { flex-wrap: wrap; gap: 6px 16px; padding-block: 10px; }
  .main-nav { order: 3; flex: 1 0 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .language-switch { margin-left: auto; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-grid, .split { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; padding: 18px; border: 1px solid var(--line); border-radius: 10px; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 32px); }
  .feature-grid, .gallery, .plans, .req-grid, .stat-row { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .req dl { grid-template-columns: 1fr; gap: 2px; }
  .req dd { margin-bottom: 10px; }
  .flow li { flex-direction: column; gap: 2px; }
  .flow li span { text-align: left; }
  th, td { padding: 10px 11px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-header, .toc, .site-footer, .skip-link { display: none; }
  .doc-layout { display: block; padding: 0; }
  body { background: #fff; }
}
