/* ===========================================================
   INDEX AI — 웹 디자인 시스템 v2 (차콜·블루·화이트)
   docs/design-system.md 기준 · 2026-09-11
   이전 Control Ledger(아이보리·먹색·빨강) 테마를 대체한다.
   =========================================================== */

:root {
  /* 색 — 지시서 §4 제안 토큰 */
  --bg: #FFFFFF;
  --bg-2: #F4F7FB;
  --charcoal: #171C24;
  --charcoal-2: #1F2630;
  --ink: #182230;
  --ink-2: #526174;
  --blue: #245CC5;
  --blue-hover: #19499F;
  --blue-tint: #EAF1FC;
  --line: #DCE4EE;
  --line-strong: #C3D0E1;
  --on-dark: #F7F9FC;
  --on-dark-2: #A9B6C6;
  --error: #C4342B;
  --ok: #1D7A4C;

  /* 글꼴 */
  --sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI',
          'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

  /* 레이아웃 */
  --maxw: 1200px;
  --pad-x: 32px;
  --section-y: 100px;
  --radius-card: 12px;
  --radius-btn: 7px;
  --shadow-soft: 0 1px 2px rgba(24, 34, 48, .04), 0 6px 18px rgba(24, 34, 48, .05);

  /* 하위 호환 별칭 — 기존 서브페이지 마크업이 참조하는 이름 */
  --paper: var(--bg);
  --paper-2: var(--bg-2);
  --white: #FFFFFF;
  --ink-soft: var(--ink-2);
  --muted: var(--ink-2);
  --red: var(--blue);
  --red-ink: var(--blue-hover);
  --control-red: var(--blue);
  --panel: var(--charcoal);
  --panel-ink: var(--on-dark);
  --panel-muted: var(--on-dark-2);
  --panel-line: rgba(247, 249, 252, .16);
  --line-2: var(--line-strong);
  --radius-control: var(--radius-card);
  --shadow-control: none;
  /* guardian·safety-latch 마크업이 참조하는 이름 */
  --gray: var(--ink-2);
  --point: var(--blue);
  --panel-deep: #10141A;
  --panel-raised: var(--charcoal-2);
  --success: var(--ok);
  --warning: #A8641B;
  /* 명조 제목은 교체(design-system.md) — 별칭은 고딕으로 수렴시킨다 */
  --serif: var(--sans);
}

/* ---------- 기반 ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -0.02em; line-height: 1.25; word-break: keep-all; }
p { color: var(--ink-2); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  /* 기술 문서 페이지(safety-latch·guardian)는 z-index:1000 고정 내비를 쓴다.
     스킵 링크가 그 아래 깔리면 초점이 가도 보이지 않으므로 더 위에 둔다. */
  position: fixed; left: 16px; top: -60px; z-index: 1100;
  padding: 10px 16px; border-radius: var(--radius-btn);
  background: var(--blue); color: #fff; font-weight: 700; text-decoration: none;
  transition: top .16s;
}
.skip-link:focus { top: 16px; }

/* ---------- 레이아웃 ---------- */

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section { padding: var(--section-y) 0; }
.section--tint { background: var(--bg-2); }
.section--blue-tint { background: var(--blue-tint); }
.section--dark { background: var(--charcoal); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section--dark p { color: var(--on-dark-2); }

.section-head { max-width: 780px; margin: 0 0 44px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.section-head h2 { margin: 0 0 16px; font-size: clamp(1.75rem, 3.4vw, 2.3rem); font-weight: 800; }
.section-head p { margin: 0; font-size: 1.03rem; }

/* ---------- 버튼 ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: var(--radius-btn);
  font-family: inherit; font-size: .95rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--on-dark { background: transparent; border-color: rgba(247,249,252,.42); color: var(--on-dark); }
.btn--on-dark:hover { background: rgba(247,249,252,.1); border-color: var(--on-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.textlink {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue); font-weight: 700; font-size: .95rem; text-decoration: none;
}
.textlink:hover { color: var(--blue-hover); text-decoration: underline; }

/* ---------- 헤더 ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 72px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 8px;
  color: var(--ink); font-size: 1.08rem; font-weight: 800; letter-spacing: .04em;
  text-decoration: none; white-space: nowrap;
}
.brand__sub { color: var(--ink-2); font-size: .72rem; font-weight: 600; letter-spacing: .02em; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  color: var(--ink); font-size: .94rem; font-weight: 600; text-decoration: none;
  padding: 6px 0;
}
.site-nav a:hover { color: var(--blue); }
.site-nav a[aria-current='page'] { color: var(--blue); font-weight: 700; }
/* 헤더 '상담 문의' — 상자 없이 보라색 글자 (2026-09-11 마스터 지시) */
.site-nav a.site-nav__cta, .sub-nav a.site-nav__cta { color: #5E35B1; font-weight: 700; }
.site-nav a.site-nav__cta:hover, .sub-nav a.site-nav__cta:hover { color: #4527A0; text-decoration: underline; text-underline-offset: 4px; }

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-btn);
  background: #fff; color: var(--ink); cursor: pointer;
}

/* ---------- 홈: 첫 화면 ---------- */

.hero { background: var(--charcoal); }
.hero__grid {
  display: grid;
  grid-template-columns: 45fr 55fr;
  align-items: stretch;
  min-height: 560px;
}
.hero__text {
  display: flex; flex-direction: column; justify-content: center;
  /* 왼쪽 안쪽 여백을 .shell의 좌측 기준선에 맞춘다 (전체 폭 배치) */
  padding: 88px clamp(32px, 4vw, 64px) 88px
           max(var(--pad-x), calc((100vw - var(--maxw)) / 2 + var(--pad-x)));
  color: var(--on-dark);
}
.hero__text h1 {
  margin: 0 0 26px;
  color: var(--on-dark);
  font-size: clamp(2.15rem, 4.4vw, 3.6rem);
  font-weight: 800; line-height: 1.22; letter-spacing: -0.03em;
}
.hero__lede { margin: 0 0 16px; color: var(--on-dark); font-size: 1.12rem; line-height: 1.75; }
.hero__sub { margin: 0 0 34px; color: var(--on-dark-2); font-size: 1rem; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%; height: 100%; min-height: 560px;
  object-fit: cover; object-position: 58% 50%;
}
.hero__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  margin: 0; padding: 10px 18px;
  background: rgba(23, 28, 36, .82);
  color: var(--on-dark-2);
  font-size: .78rem; letter-spacing: .01em;
}

.hero__text > * { max-width: 620px; }

/* ---------- 사진 배경 히어로 (2026-09-11) — 글자는 HTML, 사진은 분위기. 흰 반투명 막으로 가독성 확보 ---------- */
.hero--photo {
  position: relative; isolation: isolate;
  background: var(--bg-2) var(--hero-photo, none) center 40% / cover no-repeat;
}
.hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.86) 40%, rgba(255,255,255,.42) 72%, rgba(255,255,255,.18) 100%);
}
.hero--photo .hero__grid { position: relative; z-index: 1; }
.hero__grid--single { grid-template-columns: 1fr; min-height: 600px; }
.hero--photo .hero__text, .hero--photo .hero__text h1, .hero--photo .hero__lede { color: var(--ink); }
.hero--photo .hero__sub { color: var(--ink-2); }
.hero__caption--photo {
  left: auto; right: 0; z-index: 1;
  padding: 6px 12px; border-radius: 6px 0 0 0;
  background: rgba(23, 28, 36, .55); color: var(--on-dark-2); font-size: .72rem;
}
.hero--edu { --hero-photo: url(/assets/hero/edu-1920.jpg); }
@supports (background-image: image-set(url("a.webp") type("image/webp"))) {
  .hero--edu { --hero-photo: image-set(url(/assets/hero/edu-1920.webp) type("image/webp"), url(/assets/hero/edu-1920.jpg) type("image/jpeg")); }
}
@media (max-width: 1280px) { .hero--edu { --hero-photo: url(/assets/hero/edu-1280.jpg); } }
@media (max-width: 800px) {
  .hero--edu { --hero-photo: url(/assets/hero/edu-800.jpg); }
  .hero--photo { background-position: 68% 50%; }
  .hero--photo::before { background: linear-gradient(180deg, rgba(255,255,255,.90) 0%, rgba(255,255,255,.86) 70%, rgba(255,255,255,.72) 100%); }
  .hero__grid--single { min-height: 0; }
}

/* 서브페이지 상단 사진 배경 — main 위쪽 640px 에만 깔고 아래로 흰색으로 녹인다 */
.content-main--photo { position: relative; isolation: isolate; }
.content-main--photo::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 640px; z-index: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.74) 0%, rgba(255,255,255,.84) 50%, #fff 100%), var(--page-photo, none) center 35% / cover no-repeat;
}
.content-main--photo > * { position: relative; z-index: 1; }
.content-main--si  { --page-photo: url(/assets/hero/si-1774.jpg); }
.content-main--edu { --page-photo: url(/assets/hero/edu-1920.jpg); }
@supports (background-image: image-set(url("a.webp") type("image/webp"))) {
  .content-main--si  { --page-photo: image-set(url(/assets/hero/si-1774.webp) type("image/webp"), url(/assets/hero/si-1774.jpg) type("image/jpeg")); }
  .content-main--edu { --page-photo: image-set(url(/assets/hero/edu-1920.webp) type("image/webp"), url(/assets/hero/edu-1920.jpg) type("image/jpeg")); }
}
@media (max-width: 1280px) {
  .content-main--si  { --page-photo: url(/assets/hero/si-1280.jpg); }
  .content-main--edu { --page-photo: url(/assets/hero/edu-1280.jpg); }
}
@media (max-width: 800px) {
  .content-main--si  { --page-photo: url(/assets/hero/si-800.jpg); }
  .content-main--edu { --page-photo: url(/assets/hero/edu-800.jpg); }
  .content-main--photo::before { height: 480px; }
}

/* ---------- 홈: 교육 현황 띠 ---------- */

.status-band { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.status-band__inner { padding: 34px 0 30px; }
.status-band__list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin: 0 0 14px; padding: 0; list-style: none;
}
.status-item { display: flex; flex-direction: column; gap: 4px; }
.status-item + .status-item { border-left: 1px solid var(--line); padding-left: 24px; }
.status-item__label { color: var(--ink-2); font-size: .92rem; font-weight: 600; }
.status-item__value { color: var(--blue); font-size: 1.72rem; font-weight: 800; letter-spacing: -0.02em; }
.status-item--total .status-item__value { color: var(--ink); }
.status-band__note { margin: 0; color: var(--ink-2); font-size: .82rem; }

/* ---------- 홈: 두 서비스 ---------- */

.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.svc-panel {
  display: flex; flex-direction: column;
  padding: 36px 32px 32px;
  border: 1px solid var(--line); border-radius: var(--radius-card);
  background: #fff;
}
.svc-panel__tag {
  display: inline-block; margin: 0 0 14px; padding: 5px 11px;
  border-radius: 999px; background: var(--blue-tint);
  color: var(--blue); font-size: .76rem; font-weight: 800; letter-spacing: .04em;
}
.svc-panel h3 { margin: 0 0 14px; font-size: 1.42rem; font-weight: 800; }
.svc-panel__lede { margin: 0 0 24px; font-size: 1rem; }
.svc-meta { margin: 0 0 22px; padding: 14px 0 0; border-top: 1px solid var(--line); }
.svc-meta dt { color: var(--ink-2); font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.svc-meta dd { margin: 4px 0 0; color: var(--ink); font-size: .95rem; font-weight: 600; }
.svc-list { margin: 0 0 28px; padding: 0; list-style: none; }
.svc-list li {
  position: relative; padding: 9px 0 9px 22px;
  border-top: 1px solid var(--line);
  color: var(--ink); font-size: .95rem;
}
.svc-list li::before {
  content: ''; position: absolute; left: 4px; top: 19px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--blue);
}
.svc-panel .textlink { margin-top: auto; }

/* ---------- 홈: 3개월 과정 ---------- */

.track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.track-step {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line); border-radius: var(--radius-card);
  background: #fff;
}
.track-step__no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-bottom: 16px;
  border-radius: 10px; background: var(--blue); color: #fff;
  font-size: .95rem; font-weight: 800;
}
.track-step h3 { margin: 0 0 10px; font-size: 1.08rem; font-weight: 800; }
.track-step p { margin: 0; font-size: .94rem; }
.track-goal {
  margin: 26px 0 0; padding: 16px 20px;
  border-left: 3px solid var(--blue); border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  background: #fff; color: var(--ink-2); font-size: .9rem;
}

/* ---------- 홈: 사례 ---------- */

.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.case {
  padding: 32px 30px;
  border: 1px solid var(--line); border-radius: var(--radius-card);
  background: #fff;
}
.case__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.case__head h3 { margin: 0; font-size: 1.16rem; font-weight: 800; }
.badge {
  display: inline-flex; align-items: center; min-height: 26px; padding: 3px 10px;
  border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .03em;
  white-space: nowrap;
}
.badge--doing { background: var(--blue-tint); color: var(--blue); }
.badge--done { background: #E7F4ED; color: var(--ok); }
.case dl { margin: 0; }
.case dt {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--ink-2); font-size: .8rem; font-weight: 700; letter-spacing: .04em;
}
.case dd { margin: 5px 0 0; color: var(--ink); font-size: .95rem; }

/* ---------- 홈: 진행 방식 ---------- */

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.flow-step {
  position: relative; padding: 26px 22px;
  border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff;
}
.flow-step__no { color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .1em; }
.flow-step h3 { margin: 8px 0 8px; font-size: 1.04rem; font-weight: 800; }
.flow-step p { margin: 0; font-size: .9rem; }

.capability {
  margin-top: 40px; padding: 34px 32px;
  border-radius: var(--radius-card); background: var(--charcoal); color: var(--on-dark);
}
.capability h3 { margin: 0 0 14px; color: var(--on-dark); font-size: 1.2rem; font-weight: 800; }
.capability p { margin: 0 0 20px; color: var(--on-dark-2); font-size: 1rem; max-width: 760px; }
.capability .inline-links a { color: var(--on-dark); font-weight: 700; font-size: .92rem; }
.capability .inline-links a:hover { color: #fff; }

/* ---------- 문의 폼 ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; color: var(--ink); font-size: .9rem; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; min-height: 48px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-btn);
  background: #fff; color: var(--ink);
  font-family: inherit; font-size: 1rem; line-height: 1.5;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 14px 0 0; min-height: 24px; font-size: .92rem; font-weight: 600; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--error); }

.contact-info { padding: 30px 28px; border-radius: var(--radius-card); background: var(--bg-2); }
.contact-info h3 { margin: 0 0 18px; font-size: 1.06rem; font-weight: 800; }
.contact-info dl { margin: 0; }
.contact-info dt {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--ink-2); font-size: .78rem; font-weight: 700; letter-spacing: .04em;
}
.contact-info dt:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.contact-info dd { margin: 5px 0 0; color: var(--ink); font-size: .94rem; }

/* ---------- 푸터 ---------- */

.site-footer { background: var(--charcoal); color: var(--on-dark-2); }
.site-footer__inner { padding: 64px 0 48px; }
.site-footer__top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(247,249,252,.14);
}
.site-footer h2, .site-footer h3 { color: var(--on-dark); }
.site-footer h3 { margin: 0 0 14px; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.site-footer .brand { color: var(--on-dark); }
.site-footer p { margin: 0 0 6px; color: var(--on-dark-2); font-size: .88rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--on-dark-2); font-size: .9rem; text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  padding-top: 26px; font-size: .82rem;
}
.footer-note {
  margin: 26px 0 0; padding: 16px 18px;
  border-left: 3px solid var(--blue); border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  background: rgba(247,249,252,.05); color: var(--on-dark-2); font-size: .84rem;
}

/* ===========================================================
   서브페이지 셸 — 기존 마크업 유지, 새 테마로 리스킨
   =========================================================== */

.sub-page {
  min-height: 100vh; margin: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
.sub-page *, .sub-page *::before, .sub-page *::after { box-sizing: border-box; }
.sub-page a { color: var(--blue); }

.sub-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); }
.sub-header-inner {
  width: min(var(--maxw), 100% - 64px); min-height: 72px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.sub-brand { color: var(--ink); font-size: 1.02rem; font-weight: 800; letter-spacing: .04em; text-decoration: none; }
.sub-nav { display: flex; align-items: center; gap: 24px; }
.sub-nav a { color: var(--ink); font-size: .9rem; font-weight: 600; letter-spacing: 0; text-decoration: none; }
.sub-nav a:hover, .sub-nav a[aria-current='page'] { color: var(--blue); }

.sub-main { min-height: calc(100vh - 240px); }
.sub-shell { width: min(var(--maxw), 100% - 64px); margin: 0 auto; }
.sub-hero {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: clamp(40px, 6vw, 88px);
  padding: clamp(64px, 8vw, 104px) 0 clamp(56px, 7vw, 88px);
  align-items: start;
}
.sub-eyebrow { margin: 0 0 16px; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sub-title { margin: 0 0 22px; color: var(--ink); font-family: var(--sans); font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.22; }
.sub-lede { max-width: 720px; margin: 0 0 16px; color: var(--ink-2); font-size: 1.05rem; }
.sub-aside { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--bg-2); }
.sub-aside-label { margin: 0 0 14px; color: var(--ink-2); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sub-aside-value { margin: 0 0 10px; color: var(--ink); font-family: var(--sans); font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; line-height: 1.25; }
.sub-aside-copy { margin: 0; color: var(--ink-2); font-size: .88rem; }
.sub-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.sub-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-btn);
  font-size: .95rem; font-weight: 700; text-decoration: none;
  transition: background .18s, border-color .18s, color .18s;
}
.sub-button-primary { border-color: var(--blue); background: var(--blue); color: #fff !important; }
.sub-button-primary:hover { border-color: var(--blue-hover); background: var(--blue-hover); }
.sub-button-ghost { color: var(--ink); }
.sub-button-ghost:hover { border-color: var(--blue); color: var(--blue); background: transparent; }

.protocol-list { margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.protocol-list li { border-bottom: 1px solid var(--line); }
.protocol-list a, .protocol-item {
  min-height: 58px; padding: 15px 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  color: var(--ink); font-size: .95rem; font-weight: 700; text-decoration: none;
}
.protocol-list a:hover { color: var(--blue); }
.protocol-status { color: var(--ink-2); font-size: .72rem; font-weight: 800; letter-spacing: .06em; white-space: nowrap; }

.sub-footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.sub-footer-inner {
  width: min(var(--maxw), 100% - 64px); min-height: 132px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  color: var(--ink-2); font-size: .84rem;
}
.sub-footer a { color: var(--blue); text-decoration: none; }

/* ---------- 정보 페이지(AEO/GEO) 공통 ---------- */

.content-main { min-height: calc(100vh - 240px); }
.content-shell { width: min(940px, 100% - 64px); margin: 0 auto; padding: 28px 0 96px; }
.breadcrumbs { margin: 0 0 44px; color: var(--ink-2); font-size: .8rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { margin-right: 8px; content: '/'; color: var(--line-strong); }
.breadcrumbs a { text-decoration: none; }

.article-head { padding: 34px 0 48px; border-bottom: 1px solid var(--line); }
.article-head h1 {
  max-width: 860px; margin: 12px 0 24px;
  font-family: var(--sans); font-size: clamp(2.15rem, 4.6vw, 3.5rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.2;
}
.direct-answer { max-width: 840px; margin: 0; color: var(--ink-2); font-size: clamp(1.02rem, 1.6vw, 1.14rem); line-height: 1.82; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; color: var(--ink-2); font-size: .82rem; }

.content-section { padding: 58px 0 0; }
.content-section h2 { margin: 0 0 20px; font-family: var(--sans); font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.28; }
.content-section h3 { margin: 28px 0 10px; font-size: 1.06rem; font-weight: 800; }
.content-section p { margin: 0 0 18px; color: var(--ink-2); }
.content-section a { color: var(--blue); }

.definition-box {
  padding: clamp(22px, 3.4vw, 34px);
  border: 1px solid var(--line); border-radius: var(--radius-card);
  background: var(--bg-2);
}
.definition-box p:last-child { margin-bottom: 0; }

.axis-grid, .evidence-grid, .faq-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0; border-top: 1px solid var(--line);
}
.axis-card, .evidence-card, .faq-card { min-width: 0; padding: 24px 24px 26px 0; border-bottom: 1px solid var(--line); }
.axis-card:nth-child(even), .evidence-card:nth-child(even), .faq-card:nth-child(even) {
  padding-right: 0; padding-left: 24px; border-left: 1px solid var(--line);
}
.axis-card h3, .evidence-card h3, .faq-card h3 { margin: 0 0 10px; font-size: 1.02rem; font-weight: 800; }
.axis-card p, .evidence-card p, .faq-card p { margin: 0; font-size: .93rem; }

.state-flow { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.state { padding: 24px; background: #fff; }
.state + .state { border-left: 1px solid var(--line); }
.state strong { display: block; margin-bottom: 8px; color: var(--ink); font-size: 1.06rem; }
.state small { color: var(--ink-2); line-height: 1.65; }

.compare-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.compare-table th, .compare-table td { padding: 15px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table th { color: var(--ink-2); font-size: .76rem; letter-spacing: .06em; }
.compare-table thead th { text-transform: uppercase; font-weight: 800; }
.compare-table tbody th {
  width: 22%; color: var(--ink); font-size: .88rem; font-weight: 700; letter-spacing: 0;
}
.compare-table td { color: var(--ink-2); font-size: .92rem; }
/* 좁은 화면에서 표를 찌그러뜨리지 않고 가로로 넘긴다(키보드로도 스크롤되도록 tabindex와 함께 쓴다) */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.status {
  display: inline-flex; align-items: center; min-height: 26px; padding: 4px 10px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--ink-2); font-size: .72rem; font-weight: 800; letter-spacing: .04em;
}
.status-public { border-color: #9FD4B7; color: var(--ok); background: #E7F4ED; }
.status-hold { border-color: var(--line-strong); color: var(--ink-2); background: var(--bg-2); }

.claim-list { margin: 14px 0 0; padding: 0; list-style: none; }
.claim-list li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .88rem; }
.source-list { margin: 0; padding-left: 20px; color: var(--ink-2); }
.source-list li { margin: 10px 0; }

.content-cta {
  margin-top: 64px; padding: 28px 30px;
  border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--bg-2);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.content-cta p { margin: 0; color: var(--ink-2); }
.inline-links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.inline-links a { font-weight: 700; }
.entity-note {
  padding: 18px 20px;
  border-left: 3px solid var(--blue); border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  background: var(--bg-2); color: var(--ink-2); font-size: .9rem;
}

/* ===========================================================
   반응형
   =========================================================== */

@media (max-width: 1040px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  :root { --section-y: 68px; --pad-x: 20px; }

  .site-header__inner { min-height: 64px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--pad-x) 20px;
    background: #fff; border-bottom: 1px solid var(--line);
  }
  .site-nav[data-open='true'] { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav .btn { margin-top: 14px; border-bottom: 0; }

  /* 첫 화면: 텍스트 → 버튼 → 이미지 순으로 쌓는다 */
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__text { padding: 56px var(--pad-x) 48px; }
  .hero__media img { min-height: 0; height: auto; aspect-ratio: 3 / 2; object-position: 60% 50%; }

  .status-band__list { grid-template-columns: 1fr; gap: 0; }
  .status-item { padding: 14px 0; border-top: 1px solid var(--line); }
  .status-item:first-child { border-top: 0; padding-top: 0; }
  .status-item + .status-item { border-left: 0; padding-left: 0; }
  .status-item__value { font-size: 1.5rem; }

  .svc-grid, .case-grid, .track, .flow { grid-template-columns: 1fr; gap: 20px; }
  .site-footer__top { grid-template-columns: 1fr; gap: 32px; }

  .sub-header-inner, .sub-shell, .sub-footer-inner { width: min(100% - 40px, var(--maxw)); }
  .sub-header-inner { min-height: 64px; }
  .sub-nav { gap: 16px; }
  .sub-nav a:nth-child(-n+2) { display: none; }
  .sub-hero { grid-template-columns: 1fr; gap: 36px; padding: 56px 0 60px; }
  .sub-footer-inner { min-height: 118px; align-items: flex-start; justify-content: center; flex-direction: column; }

  .content-shell { width: min(100% - 40px, 940px); padding-bottom: 72px; }
  .breadcrumbs { margin-bottom: 26px; }
  .axis-grid, .evidence-grid, .faq-grid, .state-flow { grid-template-columns: 1fr; }
  .axis-card:nth-child(even), .evidence-card:nth-child(even), .faq-card:nth-child(even) { padding-left: 0; border-left: 0; }
  .state + .state { border-top: 1px solid var(--line); border-left: 0; }
  .compare-table { display: block; overflow-x: auto; }
  .table-scroll .compare-table { display: table; overflow-x: visible; min-width: 620px; }
  .table-scroll .compare-table tbody th { width: 26%; }
  .content-cta { align-items: flex-start; flex-direction: column; }

  /* 터치 영역 최소 44px (docs/design-system.md 접근성).
     글자 크기는 그대로 두고 세로 여백만 키워 목표를 넓힌다. */
  .site-footer__top ul { margin: 0; padding: 0; list-style: none; }
  .site-footer__top ul li a,
  .site-footer__bottom a,
  .inline-links a,
  .breadcrumbs a {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .site-footer__top ul li { margin: 0; }
  .inline-links { gap: 0 20px; }
  .breadcrumbs { margin-bottom: 18px; }

  /* 단독으로 서 있는 링크(브랜드·카드 하단 CTA)도 44px를 채운다.
     문장 안에 섞인 본문 링크는 줄 간격이 깨지므로 건드리지 않는다
     (WCAG 2.5.8의 inline 예외). */
  .brand, .textlink, .axis-card h3 a, .faq-card h3 a {
    display: inline-flex; align-items: center; min-height: 44px;
  }

  /* 기술 문서 페이지(developers·what-is-ai-execution-control·technology/evidence와
     자체 스타일을 쓰는 safety-latch·guardian)는 위와 다른 클래스 이름을 쓴다.
     같은 44px 기준을 여기서도 채운다 — 전부 문장이 아니라 단독으로 서 있는
     내비·목록·푸터 링크다. */
  .sub-brand,
  .sub-nav a,
  .sub-footer-inner a,
  .doc-links a,
  .claim-list li a,
  .source-list li a,
  .layer-table .lname a,
  nav .logo,
  nav .back,
  footer > div > a {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .source-list li, .claim-list li { padding-top: 0; padding-bottom: 0; }
}

@media (max-width: 430px) {
  body { font-size: 16px; }
  .hero__text h1 { font-size: clamp(1.95rem, 8.6vw, 2.4rem); }
  .svc-panel, .case, .track-step, .flow-step { padding: 26px 22px; }
  .capability { padding: 28px 22px; }
  .contact-info { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
