/* Open Qstat - qlabs.co.kr(Qstat 판매 사이트)과 같은 디자인 토큰을 쓴다.
   흰 바탕 + 블루 포인트 + 네이비 글자, 장식보다 정렬·여백·타이포 위계. */
:root {
  --bg: #FFFFFF;
  --bg-subtle: #F5F8FC;
  --ink: #16232E;
  --ink-secondary: #3C4A59;
  --ink-muted: #6B7785;
  --accent: #2F6FE4;
  --accent-hover: #255ACB;
  --accent-soft: #EAF2FE;
  --accent-soft-line: #CFE0FB;
  --line: #E4E9EF;
  --line-strong: #CDD6E0;
  --footer-bg: #101B2C;
  --footer-ink: #C9D3DD;
  --footer-muted: #8393A6;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow: 0 1px 2px rgba(16, 27, 44, 0.04);
  --shadow-hover: 0 8px 24px rgba(16, 27, 44, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
body {
  margin: 0; background: var(--bg); color: var(--ink-secondary);
  font-family: var(--font); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, .file-btn:focus-within {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
h1, h2, h3 { color: var(--ink); line-height: 1.3; margin: 0; text-wrap: balance; }
p { margin: 0; }
small { color: var(--ink-muted); font-weight: 500; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: var(--radius-sm); z-index: 10; }
.skip-link:focus { left: 8px; }
.hint { font-size: 0.82rem; color: var(--ink-muted); line-height: 1.5; }

/* ---------- 헤더 ---------- */
.site-header { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.94); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(8px); }
.header-row { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-size: 1.08rem; letter-spacing: -0.01em; }
.brand b { color: var(--accent); }
.site-nav { display: flex; gap: 4px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { text-decoration: none; font-size: 0.93rem; font-weight: 600; padding: 6px 12px; border-radius: var(--radius-sm); white-space: nowrap; }
.site-nav a:hover { background: var(--bg-subtle); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.header-cta { font-size: 0.88rem; font-weight: 700; color: var(--accent); text-decoration: none; white-space: nowrap; }
.header-cta:hover { color: var(--accent-hover); }

/* ---------- 메인 페이지 ---------- */
.hero { padding: 64px 0 40px; background: linear-gradient(var(--bg-subtle), var(--bg)); }
.eyebrow { display: inline-block; font-size: 0.82rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-soft-line); padding: 4px 12px; border-radius: 999px; letter-spacing: 0.02em; }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); font-weight: 800; margin-top: 18px; letter-spacing: -0.02em; }
.lead { font-size: 1.06rem; margin-top: 14px; max-width: 46em; color: var(--ink-secondary); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; padding-bottom: 56px; }
.tool-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; background: #fff; box-shadow: var(--shadow); transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s; }
.tool-card:hover { box-shadow: var(--shadow-hover); border-color: var(--accent-soft-line); transform: translateY(-2px); }
.tool-card h2 { font-size: 1.12rem; }
.tool-card p { font-size: 0.92rem; color: var(--ink-muted); flex: 1; }
.tool-link { font-size: 0.88rem; font-weight: 700; color: var(--accent); }
.tool-icon { fill: var(--accent-soft-line); }
.tool-icon .accent-line { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tool-icon .accent-line.second { stroke: #eb6834; }
.tool-icon .stroke { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.tool-icon .stroke-soft { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.tool-icon .median { fill: none; stroke: var(--ink); stroke-width: 2.2; }
.tool-icon .stack { fill: var(--accent); }
.why { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; padding-bottom: 72px; align-items: start; }
.why h2 { font-size: 1.4rem; }
.why-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.why-list li { padding-left: 16px; border-left: 3px solid var(--accent-soft-line); }
.why-list b { display: block; color: var(--ink); }

/* ---------- 도구 페이지 ---------- */
.breadcrumb { display: flex; gap: 8px; font-size: 0.85rem; color: var(--ink-muted); padding-top: 20px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.tool-hero { padding-top: 10px; padding-bottom: 22px; }
.tool-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; }
.chips li { font-size: 0.8rem; font-weight: 600; color: var(--ink-secondary); background: var(--bg-subtle); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }

.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; padding-bottom: 24px; }
.sheet-hint { margin-bottom: 10px; }
.sheet-hint b { color: var(--ink-secondary); font-weight: 600; }

/* ---------- 데이터 레이블(엑셀형 표) ---------- */
.formula-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.name-box, .formula-bar { font: inherit; font-size: 0.84rem; padding: 3px 8px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--ink); background: #fff; min-width: 0; }
.name-box { width: 64px; text-align: center; background: var(--bg-subtle); }
.formula-bar { flex: 1; font-variant-numeric: tabular-nums; }
.fx { font-style: italic; font-weight: 700; color: var(--ink-muted); font-size: 0.85rem; padding: 0 2px; }
.grid { position: relative; }
.grid-scroll { position: relative; height: 460px; overflow: auto; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; outline: none; }
.grid-scroll:focus-visible { box-shadow: 0 0 0 2px var(--accent-soft-line); }
.grid-table { border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 0.84rem; font-variant-numeric: tabular-nums; user-select: none; }
.grid-table th, .grid-table td { height: 24px; padding: 0 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 23px; }
.grid-table thead th { position: sticky; top: 0; z-index: 2; background: #EEF2F7; color: var(--ink-secondary); font-weight: 600; text-align: center; cursor: pointer; }
.grid-table thead th.custom { color: var(--ink); }
.grid-table th.corner { left: 0; z-index: 3; cursor: pointer; }
.grid-table th.rowhead { position: sticky; left: 0; z-index: 1; background: #F3F6FA; color: var(--ink-muted); font-weight: 500; text-align: center; cursor: pointer; }
.grid-table th.hl { background: #DCE7F9; color: var(--ink); }
.grid-table th.picked { background: var(--accent); color: #fff; }
.grid-table td { color: var(--ink); cursor: cell; }
.grid-table tr.alt td { background: #FAFBFD; }
.grid-table td.num { text-align: right; }
.grid-table td.sel, .grid-table tr.alt td.sel { background: #E8F0FD; }
.grid-table td.active, .grid-table tr.alt td.active { box-shadow: inset 0 0 0 2px var(--accent); background: #fff; }
.grid-table td.pointed { outline: 2px dashed var(--accent); outline-offset: -3px; }
.grid-table tr.spacer td { padding: 0; border: 0; height: auto; background: none; }
.grid-editor { position: absolute; z-index: 4; box-sizing: border-box; margin: 0; padding: 0 5px; border: 2px solid var(--accent); font: inherit; font-size: 0.84rem; color: var(--ink); background: #fff; outline: none; }

/* ---------- 옵션 (데스크톱 옵션 창) ---------- */
/* 프로그램 옵션 창처럼 모든 옵션(규격 표 포함)이 한눈에 보여야 한다 - 패널 안 스크롤을 두면
   노트북 화면에서 시그마 배수·규격 표가 숨어 Ppk를 못 넣는다 */
.options-panel { position: relative; }
.field-title { font-size: 0.85rem; font-weight: 700; color: var(--ink); margin: 10px 0 6px; }
.field-note { margin: -8px 0 14px; }
.group-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 12px 12px; }
.group-box legend { padding: 0 4px; margin-left: -4px; }
.spec-wrap { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.spec-table th, .spec-table td { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.spec-table thead th { background: var(--bg-subtle); color: var(--ink-muted); font-weight: 600; font-size: 0.76rem; }
.spec-table tbody th { font-weight: 600; color: var(--ink); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spec-table input { width: 100%; font: inherit; font-size: 0.82rem; padding: 4px 6px; border: 1px solid var(--line-strong); border-radius: 4px; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table tbody:empty::after { content: "데이터 열을 고르면 계열이 나타납니다."; display: block; padding: 8px; color: var(--ink-muted); font-size: 0.8rem; }
.spec-fill { margin-top: 8px; }
/* 옵션이 길어도 그리기 버튼은 화면 아래에 붙어 늘 보인다 */
.draw-row { position: sticky; bottom: 0; z-index: 2; display: flex; gap: 8px; align-items: stretch; margin: 4px -18px -18px; padding: 14px 18px 16px; background: #fff; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.btn.draw-btn { display: block; flex: 1; margin-top: 0; border: 0; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; text-align: center; }
.help-btn { flex: none; }

/* ---------- 결과 창 (데스크톱 ChartWindow / ChartPanel) ---------- */
.result-section { padding-bottom: 48px; scroll-margin-top: 76px; }
.stale-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; padding: 10px 14px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--accent-soft-line); color: var(--accent); font-weight: 700; font-size: 0.92rem; }
.stale-banner[hidden] { display: none; }
#panels { display: grid; gap: 18px; }
.cp { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 18px; background: #fff; display: grid; gap: 10px; min-width: 0; }
.cp-title { font-size: 15px; font-weight: 700; color: #0b0b0b; }
.cp-toolbar { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; min-height: 32px; }
.cp-toolbar button { display: inline-flex; align-items: center; gap: 4px; height: 30px; min-width: 30px; justify-content: center; padding: 0 6px; font: inherit; font-size: 0.82rem; color: var(--ink-secondary); background: none; border: 1px solid transparent; border-radius: 5px; cursor: pointer; }
.cp-toolbar button:hover { background: var(--bg-subtle); border-color: var(--line); }
.cp-toolbar button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-soft-line); color: var(--accent); }
.cp-toolbar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cp-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.cp-magnet { margin-left: 4px; }
.cp-coord { margin-left: auto; font-size: 0.8rem; color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp-row { display: flex; gap: 14px; align-items: flex-start; }
.cp-canvas { position: relative; flex: 1; min-width: 0; height: 450px; }
.cp-chart { position: absolute; inset: 0; }
.cp-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cp-stats { flex: none; width: 260px; min-height: 430px; max-height: 450px; overflow-y: auto; background: #fcfcfb; color: #0b0b0b; border: 1px solid #e1e0d9; border-radius: 8px; padding: 12px; font-size: 13px; line-height: 1.45; }
.cp-stat { font-weight: 700; margin-bottom: 10px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.cp-tip { position: absolute; z-index: 3; white-space: pre; font-family: 'Malgun Gothic', '맑은 고딕', 'Apple SD Gothic Neo', var(--font); font-size: 11.8px; line-height: 1.25; color: #0b0b0b; background: #fff; border: 1px solid #e1e0d9; border-radius: 4px; padding: 4px 7px; }
.cp-tip.cp-pin { border: 1.9px solid #2a78d6; }
.cp-ring { position: absolute; z-index: 2; width: 12.5px; height: 12.5px; margin: -6.25px 0 0 -6.25px; border: 2.8px solid #2a78d6; border-radius: 50%; box-sizing: border-box; }
.cp-pindot { position: absolute; z-index: 2; width: 12.5px; height: 12.5px; margin: -6.25px 0 0 -6.25px; background: #2a78d6; border: 2px solid #fff; border-radius: 50%; box-sizing: border-box; }
.cp-zoombox { position: absolute; z-index: 4; border: 1px dashed #0b0b0b; background: rgba(42, 120, 214, 0.08); }
.cp-interp { background: #fcfcfb; color: #0b0b0b; border: 1px solid #e1e0d9; border-left: 4px solid #2a78d6; border-radius: 6px; padding: 10px 14px; font-size: 0.92rem; line-height: 1.6; }
.cp-interp[hidden] { display: none; }
.cp-box { border: 1px solid var(--line-strong); border-radius: 6px; padding: 8px 14px 14px; margin: 0; min-width: 0; display: grid; gap: 10px; }
.cp-box legend { font-size: 0.86rem; font-weight: 700; color: var(--ink); padding: 0 4px; }
.cp-box[hidden] { display: none; }
.cp-box label { font-size: 0.85rem; color: var(--ink-secondary); white-space: nowrap; }
.cp-box input:not([type="checkbox"]):not([type="radio"]) { width: 100%; min-width: 0; font: inherit; font-size: 0.86rem; padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--ink); background: #fff; }
.cp-box input:disabled { background: var(--bg-subtle); color: var(--ink-muted); }
.cp-form { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; }
.cp-check { display: flex; align-items: center; gap: 6px; }
.cp-check input, .cp-radio input { accent-color: var(--accent); margin: 0; }
.cp-range { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 6px 10px; align-items: center; }
.cp-gridbox { padding-top: 4px; }
.cp-grid { display: grid; grid-template-columns: auto minmax(80px, 1fr) auto auto; gap: 6px 12px; align-items: center; }
.cp-radio { display: flex; align-items: center; gap: 5px; }
.cp-box > .btn-ghost { justify-self: start; }
.cp-binrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cp-binrow input { width: 160px !important; }

/* ---------- 대화상자 / 메뉴 (데스크톱 QDialog / QMenu) ---------- */
.oq-dialog { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 0; width: min(420px, calc(100vw - 32px)); box-shadow: 0 16px 48px rgba(16, 27, 44, 0.22); color: var(--ink); }
.oq-dialog.wide { width: min(560px, calc(100vw - 32px)); }
.oq-dialog::backdrop { background: rgba(16, 27, 44, 0.28); }
.oq-dialog form { display: grid; gap: 14px; padding: 18px 20px 16px; }
.oq-dialog-title { font-size: 1rem; }
.oq-dialog-body { display: grid; gap: 10px; max-height: 60vh; overflow-y: auto; }
.oq-dialog-msg { white-space: pre-wrap; font-size: 0.92rem; }
.oq-dialog-field { display: grid; gap: 4px; font-size: 0.86rem; font-weight: 600; color: var(--ink-secondary); }
.oq-dialog-field input, .oq-dialog-field select { font: inherit; font-size: 0.92rem; padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--ink); background: #fff; }
.oq-dialog-buttons { display: flex; justify-content: flex-end; gap: 8px; }
.btn.btn-sm { margin-top: 0; padding: 5px 16px; border: 0; font: inherit; font-size: 0.86rem; font-weight: 700; cursor: pointer; }
.oq-help { font-size: 0.9rem; display: grid; gap: 8px; }
.oq-color-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 0.9rem; }
.swatch { position: relative; width: 32px; height: 20px; border: 1px solid #c3c2b7; border-radius: 3px; cursor: pointer; flex: none; }
.swatch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.oq-menu { position: fixed; z-index: 50; min-width: 190px; padding: 4px 0; background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: 0 10px 30px rgba(16, 27, 44, 0.18); }
.oq-menu-item { display: block; width: 100%; text-align: left; font: inherit; font-size: 0.86rem; color: var(--ink); background: none; border: 0; padding: 6px 18px; cursor: pointer; white-space: nowrap; }
.oq-menu-item:hover:not([disabled]), .oq-menu-item:focus { background: var(--accent-soft); color: var(--accent); outline: none; }
.oq-menu-item[disabled] { color: #b4bcc6; cursor: default; }
.oq-menu-sep { height: 1px; background: var(--line); margin: 4px 0; }
.oq-menu-slider { display: flex; align-items: center; gap: 8px; padding: 4px 12px; font-size: 0.84rem; color: var(--ink-secondary); white-space: nowrap; }
.oq-menu-slider input { width: 110px; accent-color: var(--accent); }

.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head h2 { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.step { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 800; }
.panel-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-ghost { font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--ink-secondary); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 4px 10px; cursor: pointer; line-height: 1.5; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
#load-sample { color: var(--accent); border-color: var(--accent-soft-line); background: var(--accent-soft); }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.field { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.field.group-box { padding: 6px 12px 12px; border: 1px solid var(--line); }
.field legend, .field > label:not(.check), .field-row > label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; padding: 0; }
.field-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; }
.field-row > label { margin-bottom: 0; }
.group-box .field-row { margin-top: 8px; }
.field select, .field input:not([type="checkbox"]):not([type="radio"]) { width: 100%; font: inherit; font-size: 0.9rem; padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.field .spec-table input { padding: 4px 6px; font-size: 0.82rem; }
.col-list { display: grid; gap: 2px; max-height: 190px; overflow-y: auto; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-subtle); }
.check { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; cursor: pointer; padding: 2px 0; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; flex: none; }
.check small { margin-left: 4px; white-space: pre; }


/* ---------- 설명 글 ---------- */
.article { display: grid; gap: 44px; padding-top: 24px; padding-bottom: 72px; }
.article h2 { font-size: 1.35rem; margin-bottom: 14px; }
.article p + p { margin-top: 12px; }
.steps { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.steps li::marker { color: var(--accent); font-weight: 700; }
.bullets { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq details p { margin-top: 10px; }
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.related-card { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.related-card:hover { border-color: var(--accent-soft-line); box-shadow: var(--shadow-hover); }
.related-card b { color: var(--ink); }
.related-card span { font-size: 0.88rem; color: var(--ink-muted); }
.cta-box { background: var(--bg-subtle); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.cta-box h2 { font-size: 1.2rem; margin-bottom: 10px; }
.btn { display: inline-block; margin-top: 18px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; padding: 10px 20px; border-radius: var(--radius); }
.btn:hover { background: var(--accent-hover); }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding: 44px 0 26px; font-size: 0.88rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand { font-size: 1.05rem; color: #fff; margin-bottom: 8px; }
.footer-brand b { color: #7FA8F2; }
.footer-head { font-weight: 700; color: #fff; margin-bottom: 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer a { text-decoration: none; color: var(--footer-ink); }
.site-footer a:hover { color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); color: var(--footer-muted); font-size: 0.8rem; }

@media (max-width: 960px) {
  .workspace { grid-template-columns: 1fr; }
  .cp-row { flex-direction: column; align-items: stretch; }
  .cp-canvas { flex: none; width: 100%; }
  .cp-stats { width: auto; min-height: 0; max-height: none; }
  .why { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .container, .container-narrow { padding: 0 16px; }
  .header-row { gap: 12px; }
  .header-cta { display: none; }
  .hero { padding: 40px 0 28px; }
  .grid-scroll { height: 360px; }
  .field-row { grid-template-columns: 1fr; }
  .cp { padding: 12px; }
  .cp-range { grid-template-columns: auto 1fr; }
  .cp-grid { grid-template-columns: auto 1fr; }
  .cp-coord { display: none; }
}
