:root {
  --bg: #070b14;
  --bg-2: #0b1220;
  --panel: #0f172a;
  --panel-2: #131d33;
  --line: #1e293b;
  --line-2: #273449;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --dim: #64748b;
  --blue: #3b82f6;
  --green: #10b981;
  --red: #ef4444;
  --amber: #f59e0b;
  --violet: #8b5cf6;
  --radius: 16px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 "Inter", "Noto Sans KR", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font: 600 15px/1 inherit; cursor: pointer; transition: .2s;
}
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; margin-top: 20px; padding: 15px; }
.btn-primary { background: linear-gradient(135deg, var(--blue), #2563eb); color: #fff; box-shadow: 0 8px 24px -8px rgba(59, 130, 246, .7); }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(59, 130, 246, .9); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--blue); color: #fff; }
.link-btn { background: none; border: 0; color: var(--blue); font: 600 13px inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 20, .78); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand b { color: var(--green); font-weight: 800; }
.brand-mark { width: 30px; height: 30px; }
.menu { display: flex; gap: 4px; margin-left: 12px; }
.menu a { padding: 8px 13px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 500; transition: .15s; }
.menu a:hover, .menu a.active { color: #fff; background: var(--panel-2); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.model-status { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); font-family: "JetBrains Mono", monospace; }
.model-status em { font-style: normal; }
.model-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); animation: pulse 1.4s infinite; }
.model-status.ready i { background: var(--green); box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); animation: none; }
.model-status.error i { background: var(--red); box-shadow: 0 0 0 3px rgba(239, 68, 68, .2); animation: none; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 8px; width: 38px; height: 38px; font-size: 18px; cursor: pointer; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 96px 0 104px;
  background:
    radial-gradient(800px 400px at 85% 10%, rgba(59, 130, 246, .18), transparent 60%),
    radial-gradient(600px 400px at 10% 90%, rgba(16, 185, 129, .12), transparent 60%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .25;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font: 600 12px "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.18; letter-spacing: -.03em; margin: 0 0 22px; font-weight: 800; }
.grad { background: linear-gradient(90deg, var(--blue), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 17px; max-width: 540px; margin: 0 0 32px; }
.lead b { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { list-style: none; padding: 0; margin: 44px 0 0; display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.hero-stats span { font-size: 13px; color: var(--dim); }

.mock-card { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow), 0 0 0 1px rgba(59, 130, 246, .08); padding: 18px; transform: perspective(1200px) rotateY(-6deg) rotateX(3deg); }
.mock-head { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #f87171; } .dot.y { background: #fbbf24; } .dot.g { background: #34d399; }
.mock-title { margin-left: 10px; font: 500 12px "JetBrains Mono", monospace; color: var(--muted); }
.mock-chart { width: 100%; display: block; background: #0a1020; border-radius: 12px; }
.mock-chart .grid line { stroke: var(--line); stroke-dasharray: 3 5; }
.mock-chart .tri-line { stroke: var(--amber); stroke-width: 2; stroke-dasharray: 6 5; }
.mock-chart .breakout { stroke: var(--green); stroke-width: 2.5; fill: none; marker-end: none; stroke-linecap: round; }
.mock-result { display: flex; justify-content: space-between; margin-top: 14px; padding: 14px 16px; background: var(--panel-2); border-radius: 12px; }
.mock-result small, .verdict-txt small { display: block; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.mock-result b { font-size: 17px; }
.mock-conf { text-align: right; } .mock-conf b { color: var(--green); }
.mock-strategy { margin-top: 10px; font-size: 13px; color: var(--muted); padding: 10px 14px; border: 1px dashed var(--line-2); border-radius: 10px; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head.row { display: flex; justify-content: space-between; align-items: flex-end; text-align: left; max-width: none; margin-bottom: 28px; }
h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; margin: 0 0 12px; line-height: 1.25; }
.section-head p { color: var(--muted); margin: 0; }
.section-head.row h2 { margin: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: .2s; }
.feature:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.f-icon { width: 46px; height: 46px; display: grid; place-items: center; font-size: 22px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px; margin-bottom: 18px; }
.feature h3 { margin: 0 0 8px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- workspace ---------- */
.workspace { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-head.mt { margin-top: 26px; }
.panel-head h3 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.panel-head h3 small { color: var(--dim); font-weight: 400; }
.step { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: rgba(59, 130, 246, .15); color: var(--blue); font: 700 12px "JetBrains Mono", monospace; }

.dropzone { position: relative; display: grid; place-items: center; min-height: 260px; border: 2px dashed var(--line-2); border-radius: 14px; background: var(--bg-2); cursor: pointer; overflow: hidden; transition: .2s; }
.dropzone:hover, .dropzone.drag { border-color: var(--blue); background: rgba(59, 130, 246, .06); }
.dropzone.has-img { border-style: solid; cursor: default; }
.dz-empty { text-align: center; padding: 30px; }
.dz-empty p { margin: 14px 0 4px; }
.dz-empty small { color: var(--dim); }
.dz-icon { width: 56px; height: 56px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: rgba(59, 130, 246, .15); color: var(--blue); font-size: 24px; }
#preview { display: block; max-height: 360px; width: 100%; object-fit: contain; }
.scan { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(16, 185, 129, .25) 48%, rgba(16, 185, 129, .7) 50%, transparent 52%); background-size: 100% 200%; animation: scan 1.2s linear infinite; }
@keyframes scan { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

.options { display: grid; gap: 16px; }
.opt { display: grid; gap: 8px; }
.opt-label { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }
.opt-label b { color: var(--text); font-family: "JetBrains Mono", monospace; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 4px; gap: 4px; }
.seg button { background: none; border: 0; color: var(--muted); padding: 9px 6px; border-radius: 7px; font: 500 13px inherit; cursor: pointer; transition: .15s; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--panel-2); color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
input[type=range] { width: 100%; accent-color: var(--blue); }
.hint { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--dim); }
.hint.err { color: var(--red); }

.spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.result-panel { min-height: 100%; }
.result-empty { display: grid; place-items: center; text-align: center; min-height: 460px; color: var(--dim); }
.result-empty svg { width: 120px; color: var(--line-2); margin-bottom: 10px; }
.result-empty p { margin: 0; }
.result { animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

.verdict { display: flex; align-items: center; gap: 22px; padding: 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; }
.gauge { position: relative; width: 112px; height: 112px; flex: none; }
.gauge svg { transform: rotate(-90deg); }
.g-bg, .g-fg { fill: none; stroke-width: 10; }
.g-bg { stroke: var(--line); }
.g-fg { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1), stroke .3s; }
.g-txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.g-txt b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.g-txt small { font-size: 11px; color: var(--dim); }
.verdict-txt h4 { margin: 4px 0 10px; font-size: 24px; letter-spacing: -.02em; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--muted); }

.probs { display: grid; gap: 12px; margin: 20px 0; }
.prob-row { display: grid; grid-template-columns: 150px 1fr 60px; align-items: center; gap: 12px; font-size: 14px; }
.prob-row .bar { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.prob-row .bar i { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.prob-row b { text-align: right; font-family: "JetBrains Mono", monospace; font-size: 13px; }

.strategy-card { border: 1px solid var(--line-2); border-radius: 14px; padding: 20px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.sc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.sc-head h5 { margin: 0; font-size: 18px; }
.sc-badge { font: 700 12px "JetBrains Mono", monospace; padding: 5px 10px; border-radius: 6px; letter-spacing: .04em; }
.strategy-card > p { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plan > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.plan small { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.plan p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; }
.checklist { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 26px; font-size: 13.5px; color: var(--muted); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; display: grid; place-items: center; font-size: 11px; border-radius: 5px; background: rgba(16, 185, 129, .15); color: var(--green); }
.risk-row { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }
.risk-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.risk-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--amber), var(--red)); background-size: 300px 100%; transition: width .8s; }
.risk-row b { color: var(--text); min-width: 40px; text-align: right; }
.disclaimer { font-size: 12px; color: var(--dim); margin: 14px 0 0; }

.buy { background: rgba(16, 185, 129, .15); color: #34d399; }
.sell { background: rgba(239, 68, 68, .15); color: #f87171; }
.wait { background: rgba(245, 158, 11, .15); color: #fbbf24; }
.hold { background: rgba(148, 163, 184, .15); color: #cbd5e1; }

/* ---------- strategy guide ---------- */
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.guide { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.guide-svg { display: block; width: 100%; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 16px; }
.guide-svg .price { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; }
.guide-svg .support { stroke: var(--amber); stroke-width: 2; stroke-dasharray: 6 5; }
.guide-body { padding: 24px 26px 26px; }
.guide-body h3 { margin: 10px 0 8px; font-size: 20px; }
.guide-body p { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.guide-body ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
.guide-body ul b { color: var(--text); }
.pill { font: 600 11px "JetBrains Mono", monospace; padding: 4px 10px; border-radius: 99px; }
.pill.blue { background: rgba(59, 130, 246, .15); color: #60a5fa; }
.pill.green { background: rgba(16, 185, 129, .15); color: #34d399; }

.rule-table-wrap { margin-top: 28px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.rule-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.rule-table th, .rule-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.rule-table th { background: var(--panel); color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.rule-table tr:last-child td { border-bottom: 0; }
.rule-table td { color: var(--muted); }
.act { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }

/* ---------- pipeline ---------- */
.pipeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.pipeline li { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.pipeline li:not(:last-child)::after { content: "→"; position: absolute; right: -15px; top: 50%; transform: translateY(-50%); color: var(--dim); font-size: 18px; z-index: 1; }
.pipeline span { font: 700 13px "JetBrains Mono", monospace; color: var(--blue); }
.pipeline h4 { margin: 10px 0 6px; font-size: 17px; }
.pipeline p { margin: 0; color: var(--muted); font-size: 14px; }
.tech { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }
.tech span { font: 500 12px "JetBrains Mono", monospace; color: var(--muted); padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 99px; }

/* ---------- history ---------- */
.history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.h-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.h-card img { display: block; width: 100%; height: 130px; object-fit: cover; background: var(--bg-2); }
.h-body { padding: 12px 14px; }
.h-body b { display: block; font-size: 14px; }
.h-body .h-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 12px; color: var(--dim); }
.history-empty { color: var(--dim); text-align: center; padding: 40px; border: 1px dashed var(--line-2); border-radius: 14px; margin: 0; }

/* ---------- footer / toast ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg-2); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-end; }
.footer p { color: var(--dim); font-size: 13px; margin: 8px 0 0; }
.footer .fine { text-align: right; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--panel-2); border: 1px solid var(--line-2); padding: 12px 20px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 100; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .menu { position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; padding: 12px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; margin: 0; }
  .menu.open { display: flex; }
  .menu-toggle { display: block; }
  .hero-grid, .workspace, .guide-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipeline li::after { display: none; }
  .mock-card { transform: none; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .hero { padding: 64px 0; }
  .feature-grid, .pipeline, .plan { grid-template-columns: 1fr; }
  .model-status em, .nav-right .btn { display: none; }
  .prob-row { grid-template-columns: 110px 1fr 52px; }
  .verdict { flex-direction: column; text-align: center; }
  .tags { justify-content: center; }
  .section { padding: 68px 0; }
  .footer .fine { text-align: left; }
}

/* =========================================================
   Content pages (학습 센터 · 소개 · 정책)
   ========================================================= */
.page-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--line); background: radial-gradient(700px 300px at 85% 0%, rgba(59, 130, 246, .14), transparent 60%); }
.page-hero h1 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 14px; }
.page-hero .lead { margin: 0; max-width: 720px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--dim); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span::before { content: "›"; margin-right: 6px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; font-size: 13px; color: var(--dim); }

.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; padding: 48px 0 88px; align-items: start; }
.toc { position: sticky; top: 90px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; font-size: 14px; }
.toc b { display: block; font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); }
.toc a:hover { color: var(--text); }

.prose { font-size: 16px; line-height: 1.85; color: #cbd5e1; max-width: 760px; }
.prose h2 { font-size: 24px; color: var(--text); margin: 48px 0 14px; padding-top: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; color: var(--text); margin: 30px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 6px; }
.prose strong { color: var(--text); }
.prose a { color: #60a5fa; text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line-2); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--panel); color: var(--text); }
.table-scroll { overflow-x: auto; margin: 0 0 20px; }
.prose figure { margin: 26px 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.prose figure svg { display: block; width: 100%; height: auto; }
.prose figcaption { font-size: 13px; color: var(--dim); margin-top: 10px; text-align: center; }
.fig .price { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; }
.fig .line { stroke: var(--amber); stroke-width: 2; stroke-dasharray: 6 5; }
.fig .good { stroke: var(--green); stroke-width: 2.5; fill: none; }
.fig .bad { stroke: var(--red); stroke-width: 2.5; fill: none; }
.fig text { fill: var(--muted); font: 12px "Noto Sans KR", sans-serif; }
.callout { margin: 24px 0; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); font-size: 15px; }
.callout.key { border-left: 4px solid var(--green); }
.callout.warn { border-left: 4px solid var(--amber); }
.callout b:first-child { display: block; color: var(--text); margin-bottom: 6px; }
.callout ul { margin: 6px 0 0; }
.cta-box { margin-top: 44px; padding: 26px; border-radius: 16px; background: linear-gradient(135deg, rgba(59, 130, 246, .16), rgba(16, 185, 129, .1)); border: 1px solid var(--line-2); display: flex; gap: 20px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.cta-box p { margin: 0; color: var(--text); font-weight: 600; }
.related { margin-top: 40px; }
.related h2 { font-size: 18px; }

.learn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.learn-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: .2s; }
.learn-card:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow); }
.learn-card .pill { align-self: flex-start; }
.learn-card h3 { margin: 12px 0 8px; font-size: 18px; line-height: 1.4; }
.learn-card p { margin: 0 0 16px; color: var(--muted); font-size: 14px; flex: 1; }
.learn-card small { color: var(--dim); font-size: 12px; }
.pill.amber { background: rgba(245, 158, 11, .15); color: #fbbf24; }
.pill.violet { background: rgba(139, 92, 246, .15); color: #a78bfa; }
.section-more { text-align: center; margin-top: 28px; }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--dim); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }

.legal { padding: 48px 0 88px; }
.legal .prose { max-width: 820px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 13px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.err-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.err-page h1 { font-size: 72px; margin: 0; }

@media (max-width: 1024px) {
  .article-wrap { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
}
.faq details p a { color: #60a5fa; text-decoration: underline; text-underline-offset: 3px; }
