/* AI,AEO,GEO 검색 분석기 — 대시보드형 디자인 시스템
   연회색 바탕 위에 둥근 흰 카드, 검정 필(pill) 버튼, 블루 강조색. 서체는 Noto Sans KR 하나로 통일합니다.
   (코드 블록만 글자 폭을 맞추기 위해 고정폭 글꼴을 씁니다.) */

:root {
  --bg: #f1f3f6;
  --card: #ffffff;
  --ink: #0d1117;
  --ink-2: #4a5261;
  --ink-3: #8b93a3;
  --line: #e6e9ef;
  --line-2: #f0f2f5;
  --fill: #f5f6f8;
  --accent: #2f6bff;
  --accent-deep: #1d4fd8;
  --accent-soft: #eaf0ff;
  --good: #12a35b;  --good-soft: #e5f6ec;
  --warn: #e8890c;  --warn-soft: #fdf1df;
  --bad: #e5484d;   --bad-soft: #fdebec;

  --font: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Noto Sans KR", monospace;

  --r-card: 24px;
  --r-in: 16px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(13, 17, 23, .04), 0 10px 28px -16px rgba(13, 17, 23, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15.5px/1.7 var(--font); letter-spacing: -.01em; word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
code { font-family: var(--mono); font-size: .88em; background: var(--fill); padding: .1em .4em; border-radius: 6px; }
small { font-size: .82em; font-weight: 400; color: var(--ink-3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
main { overflow-x: clip; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -56px; z-index: 60; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 16px; color: #fff; }
.muted { color: var(--ink-3); font-size: .9rem; }
.small { font-size: .84rem; }
.n { text-align: right; font-variant-numeric: tabular-nums; }
.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.wrap--narrow { width: min(860px, 100% - 48px); }
.wrap--doc { width: min(960px, 100% - 48px); padding-block: 40px 96px; }

/* ── 카드 ─────────────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.card--pad { padding: 26px 28px; }
.card--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.card--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.card__title { font-size: 1.12rem; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.card__title small { font-size: .82rem; }
.card__sub { color: var(--ink-2); font-size: .92rem; margin: -8px 0 18px; max-width: 80ch; }

/* ── 머리말 (둥근 흰 띠 · 가운데 필 메뉴) ────────── */
.topbar { position: sticky; top: 0; z-index: 30; padding: 14px 0 0; background: linear-gradient(var(--bg) 70%, transparent); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 10px 14px 10px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand__mark { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.brand__mark svg { width: 22px; height: 22px; }
.brand__text { display: grid; line-height: 1.25; min-width: 0; }
.brand__name { font-weight: 800; font-size: 1.02rem; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__tag { font-size: .72rem; color: var(--ink-3); letter-spacing: .02em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 10px 18px; border-radius: 999px; background: var(--fill); color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; white-space: nowrap; transition: background-color .15s; }
.nav a:hover { background: var(--line); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.topbar__cta { display: flex; gap: 8px; }

/* ── 단추 · 칩 ────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #232a36; color: #fff; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 18px -8px rgba(47, 107, 255, .7); }
.btn--accent:hover { background: var(--accent-deep); color: #fff; }
.btn--ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn--light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn--light:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: .86rem; }
.btn--lg { min-height: 56px; width: 100%; font-size: 1.04rem; }
.btn[disabled] { background: var(--line); color: var(--ink-3); cursor: not-allowed; box-shadow: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink-2); cursor: pointer; text-decoration: underline; font-size: .84rem; }
.linkbtn--bad { color: var(--bad); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 500; background: var(--fill); color: var(--ink-2); text-decoration: none; border: 1px solid transparent; }
a.chip:hover { border-color: var(--line); color: var(--ink); }
.chip--accent { background: var(--accent-soft); color: var(--accent-deep); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: var(--fill); color: var(--ink-2); vertical-align: 1px; letter-spacing: 0; }
.tag--req { background: var(--accent-soft); color: var(--accent-deep); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--accent-deep); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.axis__code { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .04em; color: #fff; background: var(--ink); padding: 4px 9px; border-radius: 8px; }
.axis__code--accent { background: var(--accent); }

/* 상태 표시: 모양 + 글자로 전달하고 색은 보조입니다 (흑백 인쇄·색각 이상 대응) */
.mark { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; background: var(--fill); color: var(--ink-2); }
.mark i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: .68rem; font-weight: 800; font-style: normal; line-height: 1; color: #fff; background: var(--ink-3); flex: none; }
.mark--pass { background: var(--good-soft); color: #0b6b3a; } .mark--pass i { background: var(--good); }
.mark--partial, .mark--warn { background: var(--warn-soft); color: #8a4f00; } .mark--partial i, .mark--warn i { background: var(--warn); }
.mark--fail { background: var(--bad-soft); color: #a3262b; } .mark--fail i { background: var(--bad); }
.mark--bare { background: none; padding: 0; }
.grade { display: inline-grid; place-items: center; min-width: 34px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: .84rem; font-weight: 800; background: var(--fill); color: var(--ink); }
.grade--good { background: var(--good-soft); color: #0b6b3a; } .grade--warn { background: var(--warn-soft); color: #8a4f00; } .grade--bad { background: var(--bad-soft); color: #a3262b; }
.delta { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--fill); color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.delta--up { background: var(--good-soft); color: #0b6b3a; } .delta--down { background: var(--bad-soft); color: #a3262b; }

/* 점수 막대 (10칸) */
.segs { display: inline-flex; gap: 3px; align-items: center; vertical-align: middle; }
.segs i { width: 4px; height: 16px; border-radius: 2px; background: var(--line); }
.segs i.on { background: var(--ink-3); }
.segs--good i.on { background: var(--good); } .segs--warn i.on { background: var(--warn); } .segs--bad i.on { background: var(--bad); }
.segs--wide i { width: 100%; height: 8px; border-radius: 4px; } .segs--wide { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; width: 100%; }

/* 가로 미터 */
.meter__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.meter__label { font-size: .84rem; color: var(--ink-2); }
.meter__label b { color: var(--ink); margin-right: 4px; }
.meter__value { font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; }
.meter__value small { font-size: .72rem; font-weight: 500; margin-left: 2px; }
.meter__track { position: relative; height: 10px; margin-top: 8px; border-radius: 999px; background: var(--fill); overflow: hidden; }
.meter__fill { position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 999px; background: var(--ink-3); transform-origin: left; animation: fill .8s cubic-bezier(.2, .7, .2, 1) .15s both; }
.meter__tick { position: absolute; top: 0; bottom: 0; left: var(--at); width: 2px; margin-left: -1px; background: var(--card); }
.meter__scale { position: relative; height: 14px; margin-top: 4px; font-size: .64rem; font-weight: 600; color: var(--ink-3); }
.meter__scale span { position: absolute; left: var(--at); translate: -50% 0; }
.meter__note { margin-top: 6px; font-size: .8rem; color: var(--bad); line-height: 1.5; }
.meter--good .meter__track { background: var(--good-soft); } .meter--good .meter__fill { background: var(--good); }
.meter--warn .meter__track { background: var(--warn-soft); } .meter--warn .meter__fill { background: var(--warn); }
.meter--bad .meter__track { background: var(--bad-soft); }   .meter--bad .meter__fill { background: var(--bad); }
@keyframes fill { from { transform: scaleX(0); } }

/* 반원 눈금 게이지 */
.gauge { position: relative; width: 100%; max-width: 300px; margin-inline: auto; }
.gauge svg { display: block; width: 100%; height: auto; }
.gauge line { stroke: var(--line); stroke-width: 5; stroke-linecap: round; }
.gauge--good line.on { stroke: var(--good); } .gauge--warn line.on { stroke: var(--warn); } .gauge--bad line.on { stroke: var(--bad); }
.gauge__num { position: absolute; left: 0; right: 0; bottom: 6%; text-align: center; line-height: 1; }
.gauge__num b { font-size: 3.4rem; font-weight: 900; letter-spacing: -.05em; }
.gauge__num small { font-size: 1rem; font-weight: 500; }
.gauge__cap { display: block; margin-top: 8px; font-size: .82rem; color: var(--ink-3); }

/* ── 첫 화면 ─────────────────────────────────────── */
.hero { padding: 40px 0 72px; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 28px; align-items: start; }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); font-weight: 800; line-height: 1.2; letter-spacing: -.045em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { margin-top: 18px; font-size: 1.04rem; color: var(--ink-2); max-width: 58ch; }

.intake { margin-top: 28px; overflow: hidden; }
.intake__tab { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; margin: 14px 14px 0; background: var(--fill); border-radius: 999px; }
.intake__tab button { background: none; border: 0; padding: 12px 10px; border-radius: 999px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background-color .15s, color .15s; }
.intake__tab button[aria-selected="true"] { background: var(--ink); color: #fff; }
.intake__panel, .progress { padding: 20px 26px 26px; }
.intake__desc { font-size: .9rem; color: var(--ink-2); margin-bottom: 16px; }
.field { display: block; position: relative; }
.field__label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field__label small { font-weight: 400; }
.field input, .field select { width: 100%; min-height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-in); background: var(--fill); transition: border-color .15s, background-color .15s; }
.field input:hover, .field select:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); background: #fff; }
.field input.is-invalid { border-color: var(--bad); background: var(--bad-soft); }
.field--url input { min-height: 58px; font-size: 1.06rem; font-weight: 500; }
.intake__lead { margin-top: 14px; }
.intake__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.agree { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .84rem; color: var(--ink-2); line-height: 1.6; margin-top: 8px; cursor: pointer; }
.agree input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.intake__error { margin-top: 14px; padding: 12px 16px; background: var(--bad-soft); color: #7d1d22; font-size: .9rem; border-radius: var(--r-in); }
.intake .btn--lg { margin-top: 18px; }
.intake__hint { margin-top: 12px; font-size: .8rem; color: var(--ink-3); text-align: center; }
.progress__title { font-size: 1rem; margin-bottom: 14px; }
.progress__title b { color: var(--accent-deep); }
.progress__steps li { position: relative; padding: 11px 0 11px 34px; font-size: .94rem; color: var(--ink-3); border-bottom: 1px solid var(--line-2); }
.progress__steps li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); }
.progress__steps li.is-done { color: var(--ink); }
.progress__steps li.is-done::before { border-color: var(--good); background: var(--good); box-shadow: inset 0 0 0 3px var(--card); }
.progress__steps li.is-now { color: var(--ink); font-weight: 600; }
.progress__steps li.is-now::before { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.progress__msg { margin-top: 12px; font-size: .85rem; color: var(--ink-3); min-height: 1.4em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 첫 화면 오른쪽: 결과 화면 미리보기 */
.preview { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; position: sticky; top: 108px; }
.preview__note { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--ink-3); padding: 0 6px; }
.preview .card { padding: 22px; }
.preview__gauge { grid-row: span 2; display: grid; align-content: space-between; gap: 12px; }
.preview__title { font-size: .95rem; font-weight: 700; }   /* 예시 화면의 가짜 제목 — 문서 제목 목록에 끼지 않게 h3 가 아닙니다 */
.preview__legend { display: flex; flex-wrap: wrap; gap: 6px; }
.pstat b { display: block; font-size: 2rem; font-weight: 900; letter-spacing: -.04em; line-height: 1.15; margin: 6px 0 4px; }
.pstat span { font-size: .8rem; color: var(--ink-3); }
.pstat--accent span, .pstat--accent .pstat__k { color: rgba(255, 255, 255, .8); }
.pstat__k { font-size: .82rem; font-weight: 600; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; }
.preview__engines { grid-column: 1 / -1; }
.preview__engines li { display: grid; grid-template-columns: 110px 1fr 40px; gap: 12px; align-items: center; padding: 8px 0; font-size: .88rem; border-bottom: 1px solid var(--line-2); }
.preview__engines li:last-child { border-bottom: 0; }
.preview__engines li b { text-align: right; font-variant-numeric: tabular-nums; }

/* ── 구역 ─────────────────────────────────────────── */
.band { padding: 56px 0; }
.band h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.3; }
.band__lead { margin-top: 10px; color: var(--ink-2); max-width: 70ch; }
.band__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.band__head p { color: var(--ink-2); font-size: .94rem; }
.band__more { margin-top: 14px; font-size: .86rem; color: var(--ink-3); }

.axes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.axes--sub { grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
.axis { padding: 26px 28px 24px; display: flex; flex-direction: column; }
.axis header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.axis__w { font-size: .78rem; color: var(--ink-3); font-weight: 500; }
.axis h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.45; letter-spacing: -.02em; margin-bottom: 12px; }
.axis ul { display: grid; gap: 8px; font-size: .9rem; color: var(--ink-2); flex: 1; }
.axis li { padding-left: 18px; position: relative; }
.axis li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.axis p { font-size: .9rem; color: var(--ink-2); }
.axis footer { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: .8rem; font-weight: 600; color: var(--ink-3); }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.principles article { padding: 24px 26px; }
.principles h3 { font-size: 1rem; font-weight: 700; line-height: 1.45; margin-bottom: 8px; letter-spacing: -.02em; }
.principles p { font-size: .9rem; color: var(--ink-2); }

.faq { margin-top: 24px; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-in); padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; font-size: 1.1rem; font-weight: 500; color: var(--ink-2); }
.faq details[open] summary::after { content: "−"; background: var(--ink); color: #fff; }
.faq p { padding: 0 8px 20px 0; color: var(--ink-2); font-size: .94rem; }

.cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 36px 40px; }
.cta h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 800; letter-spacing: -.035em; }
.cta p { margin-top: 8px; color: rgba(255, 255, 255, .72); font-size: .95rem; }
.cta__btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── 표 ─────────────────────────────────────────── */
/* position: relative — 표 안의 .sr(absolute) 이 이 상자 기준으로 잘리게 합니다. 없으면 좁은 화면에서 페이지가 가로로 늘어납니다. */
.tablewrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-in); background: var(--card); }
.card > .tablewrap { border: 0; border-radius: 0; margin-inline: -28px; padding-inline: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
thead th { text-align: left; font-size: .74rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: none; }
tbody td, tbody th { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; text-align: left; font-weight: 400; }
td, th { overflow-wrap: break-word; }
.url-wrap { overflow-wrap: anywhere; word-break: break-all; }   /* 끊을 곳 없는 긴 주소가 표를 옆으로 늘리지 않게 */
tbody th { font-weight: 600; white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover > * { background: #fafbfc; }
th.n, td.n { text-align: right; }
.is-me > * { background: var(--accent-soft) !important; font-weight: 600; }
.is-ref td { color: var(--ink-3); }
.matrix td { text-align: center; } .matrix thead th:not(:first-child) { text-align: center; white-space: normal; min-width: 84px; }
.cell-url { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 결과표: 앱 셸 (왼쪽 메뉴 + 본문) ─────────────── */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 24px; width: min(1480px, 100% - 40px); margin: 20px auto 80px; align-items: start; }
.side { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; }
.side__home { display: none; }
.side .brand { padding: 4px 6px 14px; border-bottom: 1px solid var(--line-2); margin-bottom: 8px; }
.side__label { font-size: .7rem; font-weight: 700; letter-spacing: .06em; color: var(--ink-3); padding: 12px 10px 6px; }
.side__nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500; }
.side__nav a:hover { background: var(--fill); color: var(--ink); }
.side__nav a.is-on { background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; }
.side__nav a .n { margin-left: auto; font-size: .74rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--bad-soft); color: #a3262b; }
.side__foot { margin-top: auto; padding: 14px 8px 4px; border-top: 1px solid var(--line-2); display: grid; gap: 8px; }
.side__foot .btn { width: 100%; }
.side__biz { font-size: .74rem; color: var(--ink-3); line-height: 1.6; padding: 8px 4px 0; }

/* minmax(0, 1fr): 넓은 표가 칸의 최소 폭을 밀어내 화면 밖으로 넘치는 것을 막습니다 (표는 자기 상자 안에서 가로로 스크롤) */
.main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 8px 4px 0; }
.pagehead h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.3; }
.pagehead__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pagehead__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { padding: 22px 24px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.kpi__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
.kpi__top .ic { color: var(--accent); }
.kpi__num { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.kpi__num b { font-size: 2.5rem; font-weight: 900; letter-spacing: -.05em; line-height: 1.1; }
.kpi__num small { font-size: .9rem; }
.kpi__cap { font-size: .82rem; color: var(--ink-3); }
.kpi .meter__track { margin-top: 12px; }
.kpi--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.kpi--ink .kpi__cap, .kpi--ink small { color: rgba(255, 255, 255, .64); }
.kpi--ink .kpi__top .ic { color: #fff; }
.kpi__spark { margin-top: 8px; color: #7ea2ff; }
.kpi__spark svg { display: block; width: 100%; height: 40px; }

.grid2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.overview { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: center; }
.overview__headline { font-size: 1.12rem; font-weight: 600; line-height: 1.6; letter-spacing: -.02em; }
.overview__formula { margin-top: 12px; font-size: .86rem; color: var(--ink-3); line-height: 1.65; }
.overview__formula b { color: var(--ink); }
.overview__pot { margin-top: 16px; display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; padding: 10px 16px; border-radius: var(--r-in); background: var(--accent-soft); color: var(--accent-deep); font-size: .9rem; font-weight: 500; }
.overview__pot b { font-size: 1.15rem; font-weight: 800; white-space: nowrap; }
.overview__pot .ic { flex: none; }
.engines li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(40px, auto); gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: .92rem; font-weight: 500; }
.engines li:last-child { border-bottom: 0; }
.engines li b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.engines .segs i { width: 9px; height: 18px; border-radius: 3px; }

.gates { padding: 22px 26px; background: var(--bad-soft); border-color: #f6c9cb; box-shadow: none; }
.gates h3 { font-size: 1.02rem; font-weight: 700; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #7d1d22; }
.gates li { padding: 6px 0 6px 22px; font-size: .92rem; position: relative; color: #5e1418; }
.gates li::before { content: ""; position: absolute; left: 4px; top: 1.05em; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.gates__cap { display: inline-block; font-size: .76rem; font-weight: 700; color: #a3262b; background: #fff; padding: 2px 9px; border-radius: 999px; margin-left: 6px; white-space: nowrap; }
.compare-strip__grid { display: grid; gap: 8px; font-size: .92rem; }
.compare-strip__d { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; font-weight: 600; font-size: .88rem; }
.compare-strip__bad b { color: var(--bad); }

.sec { scroll-margin-top: 24px; }
.sec__no { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 10px; background: var(--fill); color: var(--ink-2); font-size: .8rem; font-weight: 800; }
.sub { font-size: 1rem; font-weight: 700; margin: 26px 0 12px; letter-spacing: -.02em; }
.empty { padding: 20px 22px; border-radius: var(--r-in); color: var(--ink-2); font-size: .94rem; background: var(--fill); }
.notice { margin-top: 12px; padding: 12px 16px; background: var(--accent-soft); color: #173a96; font-size: .9rem; border-radius: var(--r-in); }
.notice--bad { background: var(--bad-soft); color: #7d1d22; }
.notice--warn { background: var(--warn-soft); color: #6d3f00; }
.notice ul { margin-top: 6px; display: grid; gap: 4px; }

.todo { display: grid; gap: 12px; counter-reset: todo; }
.todo__item { counter-increment: todo; position: relative; padding: 20px 22px 18px 66px; border: 1px solid var(--line); border-radius: var(--r-in); background: var(--card); }
.todo__item::before { content: counter(todo); position: absolute; left: 20px; top: 20px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: .84rem; font-weight: 800; }
.todo__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.todo__head h3 { font-size: 1.02rem; font-weight: 700; flex: 1; min-width: 200px; letter-spacing: -.02em; }
.todo__axis { font-size: .7rem; font-weight: 800; color: var(--accent-deep); background: var(--accent-soft); padding: 3px 8px; border-radius: 6px; }
.todo__gain { font-size: .86rem; font-weight: 800; color: #0b6b3a; background: var(--good-soft); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.todo__found { margin-top: 10px; font-size: .88rem; color: var(--ink-2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.todo__fix { margin-top: 8px; font-size: .95rem; }
.todo__effort { margin-top: 8px; font-size: .78rem; color: var(--ink-3); }
.todo__code { margin-top: 10px; }
.todo__code summary { cursor: pointer; font-size: .86rem; color: var(--accent-deep); font-weight: 600; }
.todo--compact .todo__item { padding-block: 16px 14px; }
.strengths { margin-top: 24px; }
.strengths h3 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.strengths li, .trust li, .recs li { display: grid; grid-template-columns: 84px minmax(0, 240px) 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: .9rem; }
.strengths li:last-child, .trust li:last-child, .recs li:last-child { border-bottom: 0; }
.strengths li span:last-child, .trust li span:last-child, .recs li span:last-child { color: var(--ink-2); }

.axisblock__head { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center; margin-bottom: 6px; }
.axisblock__head h3 { font-size: 1.14rem; font-weight: 800; display: flex; align-items: center; gap: 10px; letter-spacing: -.02em; }
.axisblock__head p { grid-column: 1; font-size: .86rem; color: var(--ink-3); }
.axisblock__score { grid-row: 1 / span 2; grid-column: 2; font-size: 2.2rem; font-weight: 900; letter-spacing: -.05em; }
.axisblock__score small { font-size: .8rem; font-weight: 500; }

.exam { margin-top: 18px; }
.exam__head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: var(--fill); border-radius: 12px; }
.exam__name { font-size: .86rem; font-weight: 700; color: var(--ink-2); }
.exam__sum { font-size: .82rem; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; } .exam__sum b { color: var(--ink); }
.row { border-bottom: 1px solid var(--line-2); }
.row:last-child { border-bottom: 0; }
.row summary { display: grid; grid-template-columns: 84px minmax(0, 1.1fr) minmax(0, 1.4fr) 64px 60px; gap: 12px; align-items: center; padding: 13px 16px; cursor: pointer; list-style: none; font-size: .92rem; border-radius: 12px; }
.row summary::-webkit-details-marker { display: none; }
.row summary:hover { background: #fafbfc; }
.row[open] summary { background: var(--fill); }
.row__title { font-weight: 600; letter-spacing: -.015em; }
.row__found { font-size: .84rem; line-height: 1.55; color: var(--ink-2); }
.row__pts { text-align: right; font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.row__pts small { font-weight: 500; }
.row--na .row__title, .row--info .row__title { color: var(--ink-2); font-weight: 500; }
.row__body { padding: 14px 18px 18px 112px; display: grid; gap: 12px; font-size: .9rem; }
.row__body b { display: block; font-size: .74rem; font-weight: 700; color: var(--ink-3); margin-bottom: 4px; letter-spacing: .02em; }
.row__why { color: var(--ink-2); }
.row__detail { color: var(--ink-2); padding: 10px 14px; background: var(--fill); border-radius: 12px; }
.basis { display: inline-block; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--fill); color: var(--ink-2); white-space: nowrap; vertical-align: 1px; margin-left: 4px; }
.basis--official { background: var(--accent-soft); color: var(--accent-deep); }
.basis--standard { background: var(--ink); color: #fff; }

.code { border-radius: var(--r-in); overflow: hidden; background: #0f1623; }
.code__bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 8px 18px; background: #161f30; color: #aab4c8; font-size: .78rem; font-weight: 500; }
.code__copy { background: rgba(255, 255, 255, .1); border: 0; color: #fff; border-radius: 999px; padding: 7px 16px; font-size: .78rem; font-weight: 600; cursor: pointer; }
.code__copy:hover { background: rgba(255, 255, 255, .2); }
.code__copy.is-done { background: var(--good); }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; max-height: 440px; font: 400 .8rem/1.65 var(--mono); color: #e4ecf7; tab-size: 2; }
.code code { background: none; padding: 0; font-size: inherit; }

.naver { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; margin-bottom: 8px; }
.channels { margin: 10px 0 4px; font-size: .88rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.channels b { margin-right: 6px; }
.cta-line { margin-top: 18px; }

.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.phase { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-in); min-width: 0; background: var(--card); }
.phase:first-child { background: var(--ink); color: #fff; border-color: var(--ink); }
.phase:first-child .phase__desc, .phase:first-child li p, .phase:first-child .phase__pt { color: rgba(255, 255, 255, .66); }
.phase:first-child li { border-color: rgba(255, 255, 255, .14); }
.phase:first-child .todo__axis { background: rgba(255, 255, 255, .16); color: #fff; }
.phase header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.phase h3 { font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; }
.phase__gain { font-size: .8rem; font-weight: 800; color: #0b6b3a; background: var(--good-soft); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.phase__desc { font-size: .8rem; color: var(--ink-3); margin: 6px 0 12px; }
.phase li { padding: 11px 44px 11px 0; border-top: 1px solid var(--line-2); font-size: .88rem; position: relative; }
.phase li p { color: var(--ink-2); font-size: .84rem; margin-top: 4px; }
.phase__pt { position: absolute; right: 0; top: 13px; font-size: .76rem; font-weight: 700; color: var(--ink-3); }
.fills { display: grid; gap: 6px; margin: 10px 0 14px; font-size: .9rem; }
.fills li { padding-left: 24px; position: relative; }
.fills li::before { content: ""; position: absolute; left: 0; top: .32em; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--warn); }
.fillbox { padding: 16px 18px; background: var(--warn-soft); border-radius: var(--r-in); margin-bottom: 14px; color: #5a3400; }
.fillbox .fills { margin-bottom: 0; }

.kv { display: grid; gap: 0; margin-top: 16px; }
.kv > div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: .9rem; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { font-weight: 600; color: var(--ink-2); }
.raw { margin-top: 14px; font-size: .86rem; }
.raw summary { cursor: pointer; color: var(--accent-deep); font-weight: 600; }
.raw pre { margin: 8px 0 0; padding: 14px; background: var(--fill); border-radius: 12px; overflow-x: auto; font: 400 .78rem/1.6 var(--mono); max-height: 320px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── 문서형 화면 ─────────────────────────────────── */
.doc__head h1, .errorpage h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.25; letter-spacing: -.045em; }
.doc__sec { margin-top: 20px; }
.doc__sec h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.doc__sec h2 small { font-size: .84rem; }
.doc__sec > p { color: var(--ink-2); margin-bottom: 14px; }
.doc__list { display: grid; gap: 10px; color: var(--ink-2); }
.doc__list li { padding-left: 20px; position: relative; }
.doc__list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.doc__list b { color: var(--ink); }
.rubric { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-in); overflow: hidden; }
.rubric h3 { padding: 12px 18px; background: var(--fill); font-size: .9rem; font-weight: 700; color: var(--ink-2); display: flex; justify-content: space-between; }
.rubric__item { padding: 16px 18px; border-top: 1px solid var(--line-2); }
.rubric__item header { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; }
.rubric__pts { font-size: .9rem; font-weight: 800; color: var(--accent-deep); }
.rubric__item h4 { font-size: .98rem; font-weight: 700; letter-spacing: -.02em; }
.rubric__item p { margin: 6px 0 0 66px; font-size: .89rem; color: var(--ink-2); }
.filters { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 20px 0 16px; }
.filters__group { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .86rem; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.pill.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 20px; font-size: .9rem; color: var(--ink-3); }
.errorpage { min-height: 50vh; }
.errorpage .lead { margin-bottom: 28px; }

/* ── 관리자 ─────────────────────────────────────── */
.admin { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.admin__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.form-grid .field input, .form-grid .field select { min-height: 44px; border-radius: 12px; }
.form-grid .span2 { grid-column: span 2; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--fill); font-size: .86rem; cursor: pointer; border: 1px solid transparent; }
.check:has(input:checked) { background: var(--accent-soft); color: var(--accent-deep); border-color: #c9d8ff; font-weight: 600; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.statusline { display: flex; flex-wrap: wrap; gap: 8px; }
.yn { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: .74rem; font-weight: 800; background: var(--fill); color: var(--ink-3); }
.yn--y { background: var(--good-soft); color: #0b6b3a; }
.rowacts { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.rowacts form { display: inline; }

/* ── 안내창 (7일 제한) ───────────────────────────── */
dialog:not([open]) { display: none; }     /* <dialog> 를 모르는 브라우저에서 안내창이 늘 펼쳐져 보이지 않게 */
.modal { border: 0; padding: 0; border-radius: var(--r-card); width: min(480px, calc(100% - 32px)); box-shadow: 0 30px 80px -20px rgba(13, 17, 23, .5); color: var(--ink); }
.modal::backdrop { background: rgba(13, 17, 23, .55); backdrop-filter: blur(3px); }
.modal__in { padding: 32px 30px 26px; }
.modal__icon { width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; margin-bottom: 18px; }
.modal__icon .ic { width: 26px; height: 26px; }
.modal h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.35; }
.modal p { margin-top: 12px; color: var(--ink-2); font-size: .96rem; }
.modal__when { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-in); background: var(--fill); font-size: .92rem; }
.modal__when b { display: block; font-size: 1.06rem; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.modal__link { word-break: break-all; font-weight: 600; }
.modal__btns { display: grid; gap: 8px; margin-top: 22px; }
.modal[open] { animation: pop .22s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }

/* ── 바닥글 ─────────────────────────────────────── */
.foot { padding: 8px 0 40px; font-size: .86rem; color: var(--ink-2); }
.foot__in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px 48px; padding: 30px 34px; }
.foot b { font-size: 1rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.foot p { margin-top: 8px; max-width: 62ch; }
.foot__biz { display: grid; gap: 4px; margin-top: 14px; font-size: .82rem; color: var(--ink-3); }
.foot__links { display: grid; gap: 8px; justify-items: start; align-content: start; }
.foot__copy { grid-column: 1 / -1; color: var(--ink-3); font-size: .8rem; padding-top: 16px; border-top: 1px solid var(--line-2); }

/* ── 무료 도구 (SEO 점수 체크 · 네이버 키워드 분석) ───────────── */
.tools { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; margin-top: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); width: fit-content; max-width: 100%; }
.tools a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: .88rem; font-weight: 600; white-space: nowrap; transition: background-color .15s, color .15s; }
.tools a:hover { background: var(--fill); color: var(--ink); }
.tools a[aria-current="page"] { background: var(--ink); color: #fff; }
.tools a .ic { width: 16px; height: 16px; }
.hero--tool .intake { margin-top: 14px; }
.toolform .intake__panel { padding-top: 24px; }
.toolform__kw { margin-top: 12px; }
.preview--tool { grid-template-columns: 1fr; }
.preview__groups { display: grid; gap: 14px; }
.notice-card { margin-top: 14px; }
.notice-card .card__title { margin-bottom: 8px; }
.notice-card p { color: var(--ink-2); }

.toolgroups { display: grid; gap: 12px; }
.toolgroup { padding: 0 26px; }
.toolgroup summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.04rem; }
.toolgroup summary::-webkit-details-marker { display: none; }
.toolgroup summary::after { content: "+"; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--fill); display: grid; place-items: center; font-weight: 500; color: var(--ink-2); }
.toolgroup[open] summary::after { content: "−"; background: var(--ink); color: #fff; }
.toolgroup__name { flex: 1; }
.toolgroup__pts { font-size: .86rem; font-weight: 800; color: var(--accent-deep); }
.toolgroup ul { display: grid; padding-bottom: 18px; }
.toolgroup li { padding: 14px 0; border-top: 1px solid var(--line-2); }
.toolgroup__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolgroup__row b { font-weight: 700; margin-right: auto; }
.toolgroup li p { margin-top: 6px; font-size: .9rem; color: var(--ink-2); }

.toolresult { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 18px 80px; }
.toolresult .tools { margin-top: 0; }
.seo-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; }
.seo-score { display: grid; gap: 14px; align-content: start; }
.seo-score .card__head { margin-bottom: 0; }
.seo-score__msg { font-size: 1rem; font-weight: 600; text-align: center; }
.seo-score .preview__legend { justify-content: center; }
.seo-groups { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 14px; align-items: end; }
.seo-groups__pts { font-size: .8rem; color: var(--ink-3); white-space: nowrap; padding-bottom: 2px; }
.gates__title { font-size: 1.02rem; font-weight: 700; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #7d1d22; }
.row__src { font-size: .78rem; margin-left: 4px; }

.serp { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-in); background: #fff; }
.serp__site { font-size: .84rem; font-weight: 600; display: grid; line-height: 1.4; }
.serp__site span { font-size: .76rem; font-weight: 400; color: var(--ink-3); overflow-wrap: anywhere; }
.serp__title { margin-top: 8px; font-size: 1.12rem; font-weight: 600; color: #1a3cc8; line-height: 1.45; }
.serp__desc { margin-top: 6px; font-size: .9rem; color: var(--ink-2); line-height: 1.6; }
.serp__cut { opacity: .38; text-decoration: line-through; text-decoration-color: rgba(13, 17, 23, .25); }
.serp__none { color: var(--bad); font-size: .9rem; font-weight: 500; }
.serp__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 8px; }
.serp__meta li { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-in); background: var(--fill); font-size: .84rem; }
.serp__meta b { font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; }
.serp__meta b.is-over { color: var(--warn); }

.kwmatch__summary { font-size: .95rem; margin-bottom: 12px; }
.kwmatch__summary b { display: inline-grid; place-items: center; min-width: 46px; height: 28px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .84rem; margin-right: 6px; }
.kwmatch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin-bottom: 12px; }
.kwmatch li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .9rem; }
.kwmatch li small { flex-basis: 100%; padding-left: 4px; }
.kwmatch__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }

.kw-glossary { align-self: start; position: sticky; top: 108px; }
.kw-glossary .card__title { margin-bottom: 8px; }
.kw-glossary dl > div { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.kw-glossary dl > div:last-child { border-bottom: 0; }
.kw-glossary dt { font-weight: 700; font-size: .92rem; }
.kw-glossary dd { margin: 4px 0 0; font-size: .86rem; color: var(--ink-2); }

.presets { margin-top: 14px; }
.presets__tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.presets__tabs button { background: none; border: 0; padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--ink-3); cursor: pointer; }
.presets__tabs button[aria-pressed="true"] { background: var(--fill); color: var(--ink); }
.presets__words .chip { cursor: pointer; }

.kw-kpis .kpi__num b { font-size: 2.1rem; }
.kw-split { gap: 4px 6px; }
.kw-split b { font-size: 1.5rem !important; }
.kw-split small { margin-right: 10px; }
.kw-bar { display: block; height: 10px; margin-top: 10px; border-radius: 999px; background: var(--accent); overflow: hidden; }
.kw-bar i { display: block; height: 100%; width: var(--v); background: var(--ink); }
.kw-bar--sm { display: inline-block; width: 70px; height: 8px; margin: 0 4px 0 0; vertical-align: middle; }
.kw-summary { display: grid; gap: 8px; }
.kw-summary li { position: relative; padding-left: 18px; font-size: .95rem; }
.kw-summary li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.kw-summaries { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 18px; }
.kw-summaries article { padding: 16px 18px; border-radius: var(--r-in); background: var(--fill); }
.kw-summaries h3 { font-size: .95rem; margin-bottom: 8px; }
.kw-summaries .kw-summary li { font-size: .88rem; }
.kwcmp td b { display: block; }
.kwcmp__bar { display: block; height: 6px; margin-top: 6px; margin-left: auto; width: var(--v); min-width: 4px; border-radius: 999px; background: var(--accent); }

.comp { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--fill); color: var(--ink-2); white-space: nowrap; }
.comp--높음 { background: var(--bad-soft); color: #a3262b; }
.comp--중간 { background: var(--warn-soft); color: #8a4f00; }
.comp--낮음 { background: var(--good-soft); color: #0b6b3a; }
.kwtag { display: inline-block; margin: 2px 4px 2px 0; padding: 2px 8px; border-radius: 6px; font-size: .72rem; font-weight: 700; background: var(--fill); color: var(--ink-2); white-space: nowrap; }
.kwtag--기회 { background: var(--good-soft); color: #0b6b3a; }
.kwtag--질문 { background: var(--accent-soft); color: var(--accent-deep); }
.kwtag--비용 { background: var(--warn-soft); color: #8a4f00; }
.kwtag--지역 { background: #efe9ff; color: #5b3cc4; }

.trend { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.trend svg { display: block; width: 100%; height: auto; overflow: visible; }
.kwrel__print { display: none; }
.trend__grid { stroke: var(--line); stroke-width: 1; }
.trend__y { font-size: 10px; fill: var(--ink-3); text-anchor: end; }
.trend__x { font-size: 10px; fill: var(--ink-3); text-anchor: middle; }
.trend__line { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.trend__dot { stroke: #fff; stroke-width: 1.5; }
.trend__line--0 { stroke: var(--accent); } .trend__dot--0 { fill: var(--accent); }
.trend__line--1 { stroke: var(--ink); } .trend__dot--1 { fill: var(--ink); }
.trend__line--2 { stroke: var(--warn); } .trend__dot--2 { fill: var(--warn); }
.trend__line--3 { stroke: var(--good); } .trend__dot--3 { fill: var(--good); }
.trend__line--4 { stroke: #8b5cf6; } .trend__dot--4 { fill: #8b5cf6; }
.trend__legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .82rem; font-weight: 600; }
.trend__key::before { content: ""; display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; background: var(--accent); }
.trend__key--1::before { background: var(--ink); } .trend__key--2::before { background: var(--warn); }
.trend__key--3::before { background: var(--good); } .trend__key--4::before { background: #8b5cf6; }

.kwfilter { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 14px; }
.kwfilter__q { flex: 1 1 220px; }
.kwfilter__q input { min-height: 42px; }
.kwfilter .chip { cursor: pointer; }
.kwfilter .chip.is-on { background: var(--ink); color: #fff; }
.kwfilter__min { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--ink-2); }
.kwfilter__min select { min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--fill); }
.kwrel thead th button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; letter-spacing: inherit; }
.kwrel thead th[aria-sort] button::after { content: " ↓"; color: var(--accent); }
.kwrel thead th[aria-sort="ascending"] button::after { content: " ↑"; }
.kwrel tbody th { white-space: normal; }
.kwrel__foot { display: flex; align-items: center; gap: 12px; margin: 12px 0 6px; font-size: .84rem; color: var(--ink-3); }

.kw-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kw-next__item { display: grid; gap: 6px; padding: 22px 24px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.kw-next__item:hover { border-color: var(--ink-3); color: var(--ink); transform: translateY(-1px); }
.kw-next__item .ic { color: var(--accent); width: 22px; height: 22px; }
.kw-next__item span { font-size: .88rem; color: var(--ink-2); }
.kw-source { padding: 4px 6px; font-size: .8rem; color: var(--ink-3); display: grid; gap: 4px; }

/* 첫 화면의 «무료 도구» 띠 */
.toolcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.toolcard { display: grid; gap: 10px; padding: 26px 28px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.toolcard:hover { border-color: var(--ink-3); color: var(--ink); transform: translateY(-1px); }
.toolcard h3 { font-size: 1.1rem; font-weight: 800; letter-spacing: -.03em; display: flex; align-items: center; gap: 10px; }
.toolcard h3 .ic { color: var(--accent); width: 22px; height: 22px; }
.toolcard p { font-size: .92rem; color: var(--ink-2); }
.toolcard .chip { justify-self: start; }
.toolcard--soon { opacity: .75; }
.admin-tools .kv { margin-top: 0; margin-bottom: 16px; }
.admin-tools .kv > div { grid-template-columns: 170px 1fr; }

@media (max-width: 980px) {
  .seo-top, .kw-next, .toolcards { grid-template-columns: 1fr; }
  .kw-glossary { position: static; }
}
@media (max-width: 680px) {
  .tools { border-radius: var(--r-in); width: 100%; }
  .tools a { flex: 1 1 calc(50% - 6px); justify-content: center; padding: 9px 10px; }
  .toolgroup { padding: 0 18px; }
  .kwmatch, .serp__meta { grid-template-columns: 1fr; }
  .kwmatch__form { grid-template-columns: 1fr; }
  .seo-groups { grid-template-columns: 1fr; gap: 4px; }
  .seo-groups__pts { text-align: right; margin-bottom: 8px; }
  .trend svg { min-width: 560px; }      /* 휴대폰에서 글자가 너무 작아지지 않게 옆으로 밀어 봐요 */
}
@media print {
  .tools, .kwfilter, .kwrel__foot, .kw-next, .presets { display: none !important; }
  .kwrel tr[data-over] { display: table-row !important; }
  .kwrel__print:not([hidden]) { display: block; font-size: 9pt; color: #555; margin: 4px 0; }
  .trend { overflow: visible; } .trend svg { min-width: 0; }
  .toolresult { padding: 0; gap: 10px; }
  .seo-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 9px; }
  .serp__title { font-size: 11pt; } .serp__desc { font-size: 8.6pt; }
  .kw-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .kw-kpis .kpi__num b { font-size: 18pt; } .kw-split b { font-size: 13pt !important; }
  .trend__line, .trend__dot, .comp, .kwtag, .kw-bar, .kw-bar i, .kwcmp__bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ── 좁은 화면 ───────────────────────────────────── */
@media (max-width: 1180px) {
  .shell { grid-template-columns: 1fr; width: min(980px, 100% - 32px); margin-top: 12px; }
  .side { position: sticky; top: 8px; z-index: 20; max-height: none; flex-direction: row; align-items: center; padding: 8px 10px; overflow-x: auto; scrollbar-width: none; border-radius: 999px; }
  .side::-webkit-scrollbar { display: none; }
  .side .brand, .side__label, .side__foot, .side__biz { display: none; }
  .side__home { display: grid; place-items: center; flex: none; width: 36px; height: 36px; margin-right: 2px; border-radius: 50%; background: var(--ink); color: #fff; }
  .side__home svg { width: 18px; height: 18px; }
  .side__nav { display: flex; gap: 4px; }
  .side__nav a { white-space: nowrap; padding: 9px 14px; border-radius: 999px; font-size: .86rem; }
  .side__nav a .ic { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .hero__in { grid-template-columns: 1fr; gap: 32px; }
  .preview { position: static; }
  .axes, .principles, .roadmap, .axes--sub, .admin__grid { grid-template-columns: 1fr; }
  .overview { grid-template-columns: 1fr; gap: 12px; }
  .naver { grid-template-columns: 1fr; gap: 12px; }
  .nav { display: none; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  body { font-size: 15px; }
  .wrap, .wrap--narrow, .wrap--doc { width: calc(100% - 28px); }
  .brand__tag { display: none; }
  .topbar__cta .btn--ghost { display: none; }
  .hero { padding: 24px 0 48px; }
  .band { padding: 40px 0; }
  .card--pad { padding: 20px 18px; }
  .card > .tablewrap { margin-inline: -18px; padding-inline: 4px; }
  .intake__row { grid-template-columns: 1fr; }
  .intake__panel, .progress { padding: 18px 18px 22px; }
  .preview { grid-template-columns: 1fr 1fr; gap: 12px; }
  .preview__gauge { grid-column: 1 / -1; grid-row: auto; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi { padding: 18px; } .kpi__num b { font-size: 2rem; }
  .row summary { grid-template-columns: 78px 1fr 52px; }
  .row__found { grid-column: 2 / -1; grid-row: 2; }
  .row summary .segs { display: none; }
  .row__pts { grid-column: 3; grid-row: 1; }
  .row__body { padding-left: 16px; }
  .strengths li, .trust li, .recs li { grid-template-columns: 80px 1fr; }
  .strengths li span:last-child, .trust li span:last-child, .recs li span:last-child { grid-column: 2; }
  .todo__item { padding: 18px; }
  .todo__item::before { position: static; margin-bottom: 10px; }
  .rubric__item header { grid-template-columns: 48px 1fr; }
  .rubric__item header .basis { grid-column: 2; justify-self: start; margin-left: 0; }
  .rubric__item p { margin-left: 58px; }
  .kv > div { grid-template-columns: 1fr; gap: 2px; }
  .foot__in { grid-template-columns: 1fr; padding: 24px 20px; }
  .cta { padding: 28px 22px; }
  .form-grid { grid-template-columns: 1fr; } .form-grid .span2 { grid-column: auto; }
  .pagehead__actions .btn { flex: 1; }
}

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

/* ── 인쇄 · PDF (is-pdf: 서버가 PDF 용으로 그린 화면) ─ */
.is-pdf .side, .is-pdf [data-noprint] { display: none !important; }
.is-pdf .shell { grid-template-columns: minmax(0, 1fr); width: 100%; margin: 0; }
.is-pdf .meter__fill { animation: none; }
/* PDF 는 «무엇이 문제이고 어떻게 고치는지» 에 집중합니다. 항목마다 반복되는 수정 코드와 배점 근거 설명은 빼고,
   마지막의 완성형 코드만 남깁니다 (코드는 온라인 결과표에서 복사하는 편이 정확합니다). */
.is-pdf .row__body .code, .is-pdf .row__why, .is-pdf .todo__code { display: none; }
@media print {
  @page { size: A4; margin: 11mm 9mm; }
  body { background: #fff; font-size: 9.2pt; line-height: 1.55; }
  .topbar, .foot, .side, [data-noprint], .code__copy, .skip { display: none !important; }
  .wrap, .shell { width: 100%; margin: 0; grid-template-columns: minmax(0, 1fr); }
  .card { box-shadow: none; border-color: #dfe3ea; border-radius: 14px; }
  .card--pad { padding: 14px 16px; }
  .card__head { margin-bottom: 10px; }
  .card__sub { margin: -4px 0 10px; font-size: 8.6pt; }
  .main { gap: 9px; }
  .pagehead h1 { font-size: 17pt; }
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .kpi { padding: 12px; } .kpi__num b { font-size: 20pt; } .kpi__top { font-size: 9pt; } .kpi__cap { font-size: 7.6pt; }
  .kpi__spark svg { height: 26px; }
  .grid2 { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 9px; }
  .overview { grid-template-columns: 170px minmax(0, 1fr); gap: 14px; }
  .gauge__num b { font-size: 24pt; }
  .overview__headline { font-size: 10.5pt; }
  .engines li { padding: 6px 0; font-size: 8.8pt; }
  .engines .segs i { width: 7px; height: 13px; }
  table { font-size: 8.2pt; }
  thead th { padding: 6px 8px; font-size: 7.4pt; }
  tbody td, tbody th { padding: 6px 8px; }
  .card > .tablewrap { margin-inline: -16px; padding-inline: 8px; }
  /* 종이에는 가로 스크롤이 없습니다. 스크롤 상자를 풀고 칸의 최소 폭을 없애 표가 종이 폭 안에 들어오게 합니다. */
  .tablewrap, main { overflow: visible; }
  .matrix thead th:not(:first-child) { min-width: 0; padding-inline: 4px; }
  /* 끊을 곳 없는 긴 문자열이 들어가는 칸만 글자 단위로 꺾습니다. 모든 칸에 걸면 표가 좁아질 때 짧은 낱말(Anthropic 등)까지 꺾입니다. */
  td.small, .url-wrap, .cell-url { overflow-wrap: anywhere; }
  .cell-url { max-width: none; white-space: normal; }
  /* rem 으로 잡은 글자는 인쇄용 본문 크기(pt)를 따라오지 않아 주변보다 크게 찍힙니다 — pt 로 다시 잡습니다. */
  .small { font-size: 7.8pt; }
  .muted { font-size: 8.4pt; }
  td .muted, th .muted, .kv .muted, .small .muted { font-size: inherit; }
  .row summary { padding: 7px 10px; font-size: 8.8pt; grid-template-columns: 66px minmax(0, 1.1fr) minmax(0, 1.4fr) 50px 46px; gap: 8px; }
  .row__found { font-size: 8pt; }
  .row__body { padding: 6px 10px 10px 84px; gap: 6px; font-size: 8.6pt; }
  .row__body .code, .row__why, .todo__code { display: none; }
  .mark { font-size: 7.4pt; padding: 2px 8px 2px 3px; } .mark i { width: 14px; height: 14px; font-size: 6.4pt; }
  .exam { margin-top: 10px; } .exam__head { padding: 6px 10px; }
  .todo { gap: 7px; } .todo__item { padding: 11px 14px 10px 50px; } .todo__item::before { left: 13px; top: 11px; width: 24px; height: 24px; }
  .todo__fix { font-size: 9pt; margin-top: 5px; } .todo__found { margin-top: 6px; font-size: 8.4pt; } .todo__effort { display: none; }
  .strengths li, .trust li, .recs li { padding: 6px 0; font-size: 8.6pt; }
  .phase { padding: 12px 14px; } .phase li { padding: 7px 40px 7px 0; font-size: 8.6pt; } .phase li p { font-size: 8.2pt; }
  .roadmap { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .code pre { max-height: none; white-space: pre-wrap; font-size: 7.4pt; padding: 10px 12px; }
  .kv > div { padding: 6px 0; font-size: 8.6pt; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .meter__fill, .modal[open] { animation: none; }
  .exam__head, .todo__item, .phase, .row summary, .kpi, .gates, tr { break-inside: avoid; }
  .exam__head { break-after: avoid; }
  a { color: inherit; text-decoration: none; }
  tbody tr:hover > * { background: none; }
}
