/* 법무법인 단주(가상) 홈페이지 디자인 개선 시연
   .lg-*  시연 틀(도구 화면)
   .lgb-* 기존 화면(바이브코딩으로 만든 흔한 모습)
   .lga-* 개선 화면(브랜드 색 유지, 명조 제목·고딕 본문)
   .lgn-* 작업 기록 */

/* ===== 시연 틀 ===== */
.lg {
  --bg: #ECEDEF; --surface: #FFFFFF; --text: #16181D; --muted: #555C68; --line: #D8DBE0;
  --primary: #1E3A5F; --accent: #7A5D2E; --ok: #2F6B4F; --warn: #8A5300; --danger: #A33A2B;
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Pretendard Variable", Pretendard, system-ui, -apple-system, sans-serif;
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
.lg *, .lg *::before, .lg *::after { box-sizing: border-box; }
.lg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.lg button { font-family: inherit; }

.lg-band { height: 28px; display: flex; align-items: center; justify-content: center; padding: 0 12px; background: #DEE0E4; color: #474D58; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lg-top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.lg-top__inner { max-width: 1440px; margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; gap: 16px; }
.lg-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.lg-brand__mark { flex: none; border-radius: 4px; }
.lg-brand__text strong { display: block; font-size: 15px; line-height: 1.3; white-space: nowrap; }
.lg-brand__text span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; }
.lg-nav { display: flex; gap: 2px; margin-left: auto; }
.lg-nav a { min-height: 40px; display: flex; align-items: center; padding: 0 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 500; white-space: nowrap; }
.lg-nav a:hover { color: var(--text); background: #F2F3F5; }
.lg-nav a.is-active { color: var(--text); background: #ECEEF1; font-weight: 700; }
.lg-reset { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.lg-reset:hover { background: #F4F5F7; }
@media (max-width: 860px) {
  .lg-top__inner { flex-wrap: wrap; gap: 6px 10px; padding: 8px 16px; }
  .lg-brand__text span { display: none; }
  .lg-reset { margin-left: auto; }
  .lg-nav { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .lg-nav a { min-height: 44px; padding: 0 10px; font-size: 14px; }
}

.lg-main { max-width: 1440px; margin: 0 auto; padding: 16px 20px 110px; }
@media (max-width: 860px) { .lg-main { padding: 12px 16px 110px; } }
.lg-eyebrow { margin: 0; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .01em; }
.lg-h1 { margin: 2px 0 0; font-size: 22px; line-height: 1.3; letter-spacing: -.01em; }
.lg-small { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* 도구 막대 */
.lg-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.lg-toolbar__controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lg-seg { display: inline-flex; background: #DFE2E6; border-radius: 10px; padding: 3px; }
.lg-seg__btn { border: 0; background: transparent; min-height: 40px; padding: 0 16px; border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.lg-seg__btn:hover { color: var(--text); }
.lg-seg__btn.is-on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.14); }
.lg-seg--ver .lg-seg__btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.lg-seg--ver .lg-seg__btn.is-on[data-ver="after"] { background: var(--primary); color: #fff; }
.lg-seg--ver .lg-seg__btn.is-on[data-ver="before"] { background: #4A505B; color: #fff; }
.lg-toggle { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 14px; font-weight: 700; color: var(--text); cursor: pointer; }
.lg-toggle__dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: #C9CDD3; color: #fff; }
.lg-toggle.is-on { border-color: var(--accent); background: #FBF7EF; }
.lg-toggle.is-on .lg-toggle__dot { background: var(--accent); }
@media (max-width: 959px) { .lg-seg--width { display: none; } }
@media (max-width: 520px) {
  .lg-toolbar__controls { width: 100%; }
  .lg-seg--ver { flex: 1; }
  .lg-seg--ver .lg-seg__btn { flex: 1; padding: 0 10px; }
}

/* 작업 영역 */
.lg-work { display: grid; gap: 16px; }
@media (min-width: 960px) { .lg-work { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.lg-browser { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(20,24,32,.06); min-width: 0; }
.lg-browser__bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #F6F7F8; }
.lg-dots { display: flex; gap: 5px; flex: none; }
.lg-dots i { width: 10px; height: 10px; border-radius: 50%; background: #D2D5DA; }
.lg-address { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-vertag { flex: none; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #4A505B; color: #fff; }
.lg-compare[data-version="after"] .lg-vertag { background: var(--primary); }
.lg-viewport { background: #E4E6E9; }
@media (min-width: 960px) {
  .lg-viewport { height: calc(100vh - 220px); min-height: 560px; overflow: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
}
.lg-stage { container-type: inline-size; container-name: site; background: #fff; margin: 0 auto; min-height: 100%; }
.lg-viewport.is-mobile .lg-stage { width: 390px; box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(0,0,0,.1); }
.lg-ver { display: none; }
.lg-compare[data-version="before"] .lg-ver--before,
.lg-compare[data-version="after"] .lg-ver--after { display: block; }
.lg-stage.is-swap .lg-ver { animation: lg-swap .32s ease; }
@keyframes lg-swap { from { opacity: 0; } to { opacity: 1; } }

/* 변경 위치 표시 */
[data-mark] { position: relative; }
.lg-pin { display: none; position: absolute; top: 8px; left: 8px; z-index: 6; width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: var(--accent); color: #fff; font: 700 13px/1 "Pretendard Variable", Pretendard, sans-serif; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.28); }
.lg-pin::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
.lg-ver--before .lg-pin { background: #4A505B; }
.lga-h1 > .lg-pin, .lgb-hero h1 > .lg-pin, .lga-lead > .lg-pin, .lga-submitwrap > .lg-pin, .lgb-info > .lg-pin { left: auto; right: -6px; top: -14px; }
.lg-compare.is-marks .lg-pin { display: inline-flex; }
.lg-compare.is-marks [data-mark] { outline: 1px dashed rgba(122, 93, 46, .55); outline-offset: -1px; }
.lg-compare.is-marks .lg-ver--before [data-mark] { outline-color: rgba(74, 80, 91, .5); }
.lg-compare [data-mark].is-focus { outline: 3px solid var(--accent); outline-offset: -3px; animation: lg-focus 1.4s ease 1; }
.lg-compare .lg-ver--before [data-mark].is-focus { outline-color: #4A505B; }
@keyframes lg-focus { 0%, 100% { box-shadow: none; } 30% { box-shadow: inset 0 0 0 9999px rgba(176, 141, 87, .12); } }

/* 오른쪽 설명 */
.lg-panel { display: grid; gap: 12px; min-width: 0; }
@media (min-width: 960px) { .lg-panel { position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow: auto; overscroll-behavior: contain; } }
.lg-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.lg-h3 { margin: 0 0 10px; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.lg-count { font-size: 12px; font-weight: 700; color: var(--muted); background: #EEF0F2; border-radius: 999px; padding: 1px 8px; }
.lg-brandchips { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lg-chip { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.lg-chip__sw { width: 30px; height: 30px; border-radius: 6px; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.lg-chip b { display: block; font-size: 13px; line-height: 1.3; }
.lg-chip code { font-size: 12px; color: var(--muted); }
.lg-changes { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.lg-change { width: 100%; text-align: left; display: flex; gap: 10px; border: 1px solid transparent; background: #F5F6F7; border-radius: 10px; padding: 10px; color: inherit; cursor: pointer; }
.lg-change:hover { border-color: var(--line); }
.lg-change.is-on { border-color: var(--accent); background: #FBF7EF; }
.lg-change__no { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #4A505B; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.lg-compare[data-version="after"] .lg-change__no { background: var(--accent); }
.lg-change__body { display: block; min-width: 0; }
.lg-change__meta { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 700; }
.lg-tag { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: #E6E8EB; color: #3E4450; white-space: nowrap; }
.lg-change__txt { display: block; font-size: 13px; line-height: 1.5; margin-top: 4px; color: var(--muted); }
.lg-change__txt b { display: inline-block; font-size: 11px; margin-right: 6px; padding: 0 5px; border-radius: 3px; background: #E6E8EB; color: #3E4450; }
.lg-compare[data-version="after"] .lg-change__txt--after,
.lg-compare[data-version="before"] .lg-change__txt--before { color: var(--text); }
.lg-compare[data-version="after"] .lg-change__txt--after b { background: var(--primary); color: #fff; }
.lg-compare[data-version="before"] .lg-change__txt--before b { background: #4A505B; color: #fff; }
.lg-link { display: inline-flex; min-height: 44px; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--primary); text-decoration: none; }
.lg-link:hover { text-decoration: underline; }

.lg-note { position: fixed; left: 50%; transform: translateX(-50%); bottom: 84px; width: min(460px, calc(100% - 32px)); z-index: 45; background: #16181D; color: #fff; border-radius: 12px; padding: 12px 14px 14px; box-shadow: 0 12px 32px rgba(0,0,0,.3); }
.lg-note[hidden] { display: none; }
.lg-note__head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #D9DCE1; }
.lg-note__no { width: 22px; height: 22px; border-radius: 50%; background: #B08D57; color: #16181D; display: grid; place-items: center; font-size: 12px; }
.lg-note[data-version="before"] .lg-note__no { background: #C9CDD3; }
.lg-note__where { flex: 1; }
.lg-note__close { width: 36px; height: 36px; margin: -6px -6px -6px 0; border: 0; border-radius: 8px; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.lg-note__text { margin: 6px 0 0; font-size: 14px; line-height: 1.55; }

/* 토스트·대응표 */
.lg-toast { position: fixed; left: 50%; transform: translateX(-50%); top: 84px; z-index: 60; background: #16181D; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: calc(100% - 32px); }
.lg-toast[hidden] { display: none; }
.lg-fab { position: fixed; right: 16px; bottom: 20px; z-index: 40; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 0; border-radius: 999px; background: #16181D; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.lg-sheet { width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.lg-sheet::backdrop { background: rgba(16, 18, 22, .45); }
.lg-sheet__body { padding: 20px; }
.lg-sheet__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.lg-sheet__title { margin: 2px 0 0; font-size: 20px; }
.lg-icon-btn { width: 44px; height: 44px; border: 0; border-radius: 10px; background: #F0F1F3; display: grid; place-items: center; cursor: pointer; color: var(--text); }
.lg-map { list-style: none; margin: 0; padding: 0; counter-reset: map; }
.lg-map__row { counter-increment: map; display: grid; grid-template-columns: 24px 1fr; gap: 2px 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.lg-map__row::before { content: counter(map); grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; background: #ECEEF1; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.lg-map__need { font-size: 14px; font-weight: 600; }
.lg-map__show { font-size: 13px; color: var(--primary); font-weight: 600; text-decoration: none; min-height: 28px; display: inline-flex; align-items: center; }
.lg-map__show:hover { text-decoration: underline; }
.lg-sheet__foot { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.lg .demo-notice { max-width: 1440px; margin: 0 auto; padding: 0 20px 90px; font-size: 12px; color: var(--muted); text-align: center; }

/* ===== 기존 화면 ===== */
.lgb { font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; color: #111827; background: #fff; font-size: 15px; line-height: 1.5; }
.lgb a { color: inherit; }
.lgb .lgb-btn--grad { color: #fff; }
.lgb .lgb-btn--white { color: #1E3A5F; }
.lgb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; flex-wrap: wrap; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 4; }
.lgb-logo { font-weight: 800; font-size: 18px; color: #1E3A5F; text-decoration: none; }
.lgb-nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-weight: 700; font-size: 14px; }
.lgb-nav a { text-decoration: none; color: #374151; }
.lgb-nav a.is-active { color: #E59A4C; }
.lgb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; padding: 13px 24px; font-weight: 800; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.lgb-btn--sm { padding: 9px 16px; font-size: 13px; }
.lgb-btn--grad { background: linear-gradient(90deg, #B08D57, #E59A4C); color: #fff; box-shadow: 0 8px 20px rgba(229, 154, 76, .45); }
.lgb-btn--glass { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.lgb-btn--white { background: #fff; color: #1E3A5F; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.lgb-btn--block { width: 100%; padding: 16px; font-size: 16px; }
.lgb-hero { position: relative; overflow: hidden; text-align: center; color: #fff; padding: 56px 20px 84px; background: linear-gradient(135deg, #1E3A5F 0%, #2F5E9E 55%, #6F8FD6 100%); }
.lgb-blob { position: absolute; border-radius: 50%; filter: blur(42px); opacity: .55; pointer-events: none; }
.lgb-blob--a { width: 240px; height: 240px; background: #B08D57; top: -70px; right: -50px; }
.lgb-blob--b { width: 220px; height: 220px; background: #8B5CF6; bottom: -80px; left: -60px; }
.lgb-hero__eyebrow { position: relative; margin: 0; font-weight: 700; font-size: 14px; opacity: .95; }
.lgb-hero h1 { position: relative; font-size: 28px; font-weight: 800; margin: 12px auto; max-width: 640px; line-height: 1.3; }
.lgb-hero__lead { position: relative; max-width: 560px; margin: 0 auto; opacity: .9; }
.lgb-hero__btns { position: relative; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.lgb-stats { position: relative; z-index: 1; display: grid; gap: 14px; padding: 0 16px; max-width: 1040px; margin: -44px auto 0; }
.lgb-stat { background: linear-gradient(135deg, #1E3A5F, #3466A8); color: #fff; border-radius: 24px; padding: 20px; text-align: center; box-shadow: 0 14px 30px rgba(30, 58, 95, .35); }
.lgb-stat__emoji { font-size: 28px; }
.lgb-stat__num { font-size: 28px; font-weight: 900; }
.lgb-stat__label { font-weight: 700; opacity: .9; }
.lgb-sec { padding: 48px 16px; max-width: 1040px; margin: 0 auto; text-align: center; }
.lgb-sec--tint { background: linear-gradient(180deg, #F5F8FF, #fff); max-width: none; }
.lgb-sec--tint > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
.lgb-sec h2 { font-size: 26px; font-weight: 800; margin: 0 0 6px; }
.lgb-sec__sub { color: #6B7280; margin: 0 0 24px; }
.lgb-grid { display: grid; gap: 16px; }
.lgb-card { background: #fff; border-radius: 20px; padding: 24px 18px; box-shadow: 0 10px 30px rgba(17, 24, 39, .08); border: 1px solid #F1F5F9; }
.lgb-card__emoji { font-size: 40px; line-height: 1.2; }
.lgb-card h3 { font-size: 18px; font-weight: 800; margin: 8px 0 6px; color: #1E3A5F; }
.lgb-card p { color: #6B7280; font-size: 14px; margin: 0; }
.lgb-avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center; font-size: 48px; background: linear-gradient(135deg, #E0E7FF, #FDE68A); }
.lgb-cta { margin: 16px 16px 48px; border-radius: 28px; padding: 40px 20px; text-align: center; color: #fff; background: linear-gradient(135deg, #2F5E9E, #1E3A5F 60%, #B08D57); }
.lgb-cta h2 { font-size: 22px; font-weight: 800; margin: 0 0 8px; }
.lgb-cta p { margin: 0 0 20px; opacity: .9; }
.lgb-foot { background: #F3F4F6; color: #6B7280; font-size: 12px; padding: 22px 16px; text-align: center; line-height: 1.7; }
.lgb-foot p { margin: 0 0 6px; }
@container site (min-width: 720px) {
  .lgb-hero { padding: 96px 40px 120px; }
  .lgb-hero h1 { font-size: 42px; }
  .lgb-stats { grid-template-columns: repeat(3, 1fr); }
  .lgb-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .lgb-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .lgb-cta { max-width: 1040px; margin: 16px auto 56px; }
}

/* 기존 상담 신청 */
.lgb-pagehero { text-align: center; color: #fff; padding: 44px 16px 72px; background: linear-gradient(135deg, #1E3A5F 0%, #2F5E9E 60%, #6F8FD6 100%); }
.lgb-pagehero h1 { margin: 0 0 8px; font-size: 28px; font-weight: 800; }
.lgb-pagehero p { margin: 0 auto; max-width: 520px; opacity: .92; }
.lgb-warn { color: #DC2626; font-weight: 800; font-size: 13px; }
.lgb-warn--hero { margin-top: 12px !important; display: inline-block; background: #fff; padding: 6px 12px; border-radius: 999px; opacity: 1 !important; }
.lgb-formwrap { position: relative; max-width: 560px; margin: -40px auto 48px; padding: 0 16px; }
.lgb-formcard { background: #fff; border-radius: 24px; box-shadow: 0 20px 50px rgba(17, 24, 39, .12); padding: 26px 18px; display: grid; gap: 12px; }
.lgb-markwrap { display: grid; gap: 12px; }
.lgb-markwrap > .lg-pin { top: -10px; left: -10px; }
.lgb-info { margin: 0; font-size: 13px; font-weight: 700; color: #4B5563; text-align: center; line-height: 1.7; }
.lgb-in { width: 100%; border: 1px solid #E5E7EB; border-radius: 14px; padding: 14px 16px; font: inherit; background: #F9FAFB; color: #111827; }
.lgb-radios { display: flex; gap: 10px; font-size: 13px; align-items: center; flex-wrap: wrap; }
.lgb-radios label { display: inline-flex; gap: 4px; align-items: center; }
.lgb-terms { height: 70px; overflow: auto; border: 1px solid #E5E7EB; border-radius: 10px; padding: 8px 10px; font-size: 11px; color: #9CA3AF; background: #F9FAFB; }
.lgb-agree { font-size: 12px; display: flex; gap: 6px; align-items: center; }
.lgb-banner { background: #FEE2E2; color: #B91C1C; font-weight: 800; padding: 10px 12px; border-radius: 12px; font-size: 14px; }
.lgb-banner[hidden] { display: none; }
.lgb-done { background: #fff; border-radius: 24px; box-shadow: 0 20px 50px rgba(17, 24, 39, .12); padding: 32px 20px; text-align: center; }
.lgb-done[hidden] { display: none; }
.lgb-done h2 { margin: 6px 0; font-size: 20px; font-weight: 800; }
.lgb-done p { margin: 0; color: #6B7280; font-size: 14px; }

/* ===== 개선 화면 ===== */
.lga {
  --navy: #1E3A5F; --gold: #B08D57; --gold-ink: #7A5D2E; --paper: #F8F5EF; --ink: #1A1E26; --muted: #5B6270; --line: #E3DDD1; --navy-deep: #152B47;
  font-family: "Pretendard Variable", Pretendard, sans-serif; color: var(--ink); background: #fff;
  font-size: 16px; line-height: 1.75; letter-spacing: -.005em; word-break: keep-all;
}
.lga a { color: inherit; }
.lga-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.lga-head { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.lga-head__inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.lga-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.lga-logo svg { border-radius: 3px; flex: none; }
.lga-logo__name { display: block; font-family: "Noto Serif KR", serif; font-weight: 700; font-size: 18px; line-height: 1.2; letter-spacing: -.01em; }
.lga-logo__en { display: block; font-size: 10px; letter-spacing: .2em; color: var(--gold-ink); font-weight: 600; line-height: 1.4; }
.lga-nav { display: none; margin-left: auto; gap: 26px; font-size: 15px; }
.lga-nav a { text-decoration: none; padding: 20px 0; border-bottom: 2px solid transparent; color: var(--ink); }
.lga-nav a:hover { color: var(--navy); border-bottom-color: var(--gold); }
.lga-head__cta { display: none !important; min-height: 42px !important; padding: 0 18px !important; font-size: 15px !important; }
.lga-head__cta.is-active { background: var(--navy); color: #fff !important; }
.lga-menu { margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 4px; background: #fff; display: grid; place-items: center; color: var(--navy); cursor: pointer; }

.lga-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.lga-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 4px; border: 1px solid var(--navy); font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; white-space: nowrap; }
.lga-btn--primary { background: var(--navy); color: #fff !important; }
.lga-btn--primary:hover { background: var(--navy-deep); }
.lga-btn--line { background: transparent; color: var(--navy) !important; }
.lga-btn--line:hover { background: #fff; }
.lga-btn--light { background: #fff; color: var(--navy) !important; border-color: #fff; }
.lga-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .55); }
.lga-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.lga-hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.lga-hero__grid { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 36px; }
.lga-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--gold-ink); }
.lga-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.lga-h1 { margin: 0 0 16px; font-family: "Noto Serif KR", serif; font-weight: 700; color: var(--navy); font-size: 30px; line-height: 1.34; letter-spacing: -.02em; }
.lga-lead { margin: 0 0 26px; color: var(--muted); max-width: 34em; }
.lga-art svg { display: block; width: 100%; height: auto; }

.lga-stats { background: var(--navy); color: #fff; }
.lga-stats__grid { display: grid; }
.lga-stat { display: flex; align-items: baseline; gap: 14px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.lga-stat:first-child { border-top: 0; }
.lga-stat__num { font-family: "Noto Serif KR", serif; font-weight: 700; font-size: 32px; line-height: 1.1; color: var(--gold); min-width: 4.2em; }
.lga-stat__num small { font-size: 16px; margin-left: 3px; font-weight: 500; }
.lga-stat__label { color: #D5DCE6; font-size: 15px; }

.lga-sec { padding: 52px 0; }
.lga-sec--paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lga-sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; }
.lga-h2 { margin: 0; font-family: "Noto Serif KR", serif; font-weight: 700; color: var(--navy); font-size: 24px; line-height: 1.35; letter-spacing: -.02em; }
.lga-h2::before { content: ""; display: block; width: 28px; height: 2px; background: var(--gold); margin-bottom: 14px; }
.lga-sec__desc { margin: 8px 0 0; color: var(--muted); }

.lga-areas { display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.lga-area { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; text-decoration: none; transition: background .15s; }
.lga-area:hover { background: var(--paper); }
.lga-area__icon { color: var(--navy); }
.lga-area h3 { margin: 8px 0 0; font-size: 19px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.lga-area p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.lga-more { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }

.lga-people { display: grid; gap: 18px; }
.lga-person { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; }
.lga-portrait { aspect-ratio: 3 / 4; background: linear-gradient(180deg, #EEF1F5, #DCE3EC); border: 1px solid var(--line); display: grid; align-items: end; overflow: hidden; }
.lga-portrait svg { display: block; width: 100%; height: auto; }
.lga-person__role { margin: 0; font-size: 13px; font-weight: 600; color: var(--gold-ink); }
.lga-person h3 { margin: 2px 0; font-family: "Noto Serif KR", serif; font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.lga-person p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

.lga-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.lga-step { position: relative; padding: 0 0 24px 58px; }
.lga-step::before { content: ""; position: absolute; left: 20px; top: 42px; bottom: 0; width: 1px; background: var(--line); }
.lga-step:last-child::before { display: none; }
.lga-step__no { position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gold); background: #fff; color: var(--gold-ink); font-family: "Noto Serif KR", serif; font-weight: 700; display: grid; place-items: center; }
.lga-step h3 { margin: 7px 0 4px; font-size: 18px; font-weight: 600; line-height: 1.4; }
.lga-step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

.lga-cta { background: var(--navy); color: #fff; padding: 44px 0; }
.lga-cta__inner { display: flex; flex-direction: column; gap: 22px; }
.lga-cta h2 { margin: 0 0 6px; font-family: "Noto Serif KR", serif; font-size: 22px; line-height: 1.45; }
.lga-cta p { margin: 0; color: #C9D3E0; }

.lga-foot { background: var(--navy-deep); color: #B4BFCD; font-size: 14px; line-height: 1.8; padding: 36px 0 28px; }
.lga-foot__name { margin: 0 0 10px; font-family: "Noto Serif KR", serif; color: #fff; font-size: 17px; }
.lga-foot__info { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 0; }
.lga-foot__info div { display: flex; gap: 6px; }
.lga-foot__info dt { color: #8F9CAD; }
.lga-foot__info dd { margin: 0; }
.lga-foot__copy { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #8F9CAD; }

.lga-mbar { position: sticky; bottom: 0; z-index: 5; display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; padding: 10px 12px; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(26, 30, 38, .08); }
.lga-mbar .lga-btn { min-height: 48px; padding: 0 10px; width: 100%; }

/* 개선 상담 신청 */
.lga-pagehead { background: var(--paper); border-bottom: 1px solid var(--line); padding: 28px 0 26px; }
.lga-crumb { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.lga-crumb a { color: var(--muted); }
.lga-h1--page { font-size: 28px; margin-bottom: 8px; }
.lga-lead--page { margin: 0; }
.lga-consult { display: grid; gap: 28px; padding-top: 28px !important; padding-bottom: 52px !important; }
.lga-formcol { min-width: 0; }
.lga-fs { position: relative; border: 0; margin: 0 0 24px; padding: 0 0 24px; border-bottom: 1px solid var(--line); min-width: 0; }
.lga-fs--last { border-bottom: 0; margin-bottom: 12px; padding-bottom: 0; }
.lga-fs legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 14px; font-size: 18px; font-weight: 600; color: var(--ink); }
.lga-fs__no { font-family: "Noto Serif KR", serif; font-size: 15px; font-weight: 700; color: var(--gold-ink); }
.lga-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lga-chipbtn { position: relative; }
.lga-chipbtn input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lga-chipbtn span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #CFC8BA; border-radius: 4px; background: #fff; font-size: 15px; cursor: pointer; transition: background .12s; }
.lga-chipbtn span:hover { background: var(--paper); }
.lga-chipbtn input:checked + span { border-color: var(--navy); background: #EEF2F7; color: var(--navy); font-weight: 600; box-shadow: inset 0 0 0 1px var(--navy); }
.lga-chipbtn input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.lga-row2 { display: grid; gap: 0 16px; }
.lga-field { display: grid; gap: 6px; margin-bottom: 16px; min-width: 0; }
.lga-label { display: flex; gap: 6px; align-items: center; font-size: 15px; font-weight: 600; }
.lga-req { font-size: 12px; font-weight: 600; line-height: 18px; color: var(--gold-ink); border: 1px solid #D8C7A6; padding: 0 5px; border-radius: 3px; }
.lga-opt { font-size: 12px; font-weight: 500; color: var(--muted); }
.lga-input { width: 100%; min-height: 50px; border: 1px solid #CFC8BA; border-radius: 4px; padding: 12px 14px; font: inherit; font-size: 16px; line-height: 1.5; color: var(--ink); background: #fff; }
.lga-input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30, 58, 95, .15); }
.lga-input[aria-invalid="true"] { border-color: #A33A2B; }
textarea.lga-input { min-height: 150px; resize: vertical; }
.lga-help { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.lga-help--center { text-align: center; margin-top: 10px; }
.lga-err { margin: 0; font-size: 13px; font-weight: 600; color: #A33A2B; }
.lga-err[hidden] { display: none; }
.lga-count { margin: 0; text-align: right; font-size: 12px; color: var(--muted); }
.lga-ctable { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 4px; }
.lga-ctable th { width: 84px; text-align: left; vertical-align: top; color: var(--muted); font-weight: 500; padding: 9px 0; border-bottom: 1px solid var(--line); }
.lga-ctable td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.lga-full summary { min-height: 44px; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--navy); cursor: pointer; }
.lga-full p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.lga-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.lga-check input { width: 22px; height: 22px; accent-color: var(--navy); flex: none; }
.lga-submit { position: relative; width: 100%; min-height: 56px; font-size: 17px; }
.lga-done { text-align: center; padding: 40px 20px; border: 1px solid var(--line); background: var(--paper); color: var(--navy); }
.lga-done[hidden] { display: none; }
.lga-done h2 { margin: 10px 0 6px; font-family: "Noto Serif KR", serif; font-size: 22px; }
.lga-done p { margin: 0 0 6px; color: var(--ink); }
.lga-aside { background: var(--paper); border: 1px solid var(--line); padding: 22px 20px; align-self: start; }
.lga-aside__title { margin: 0 0 16px; font-family: "Noto Serif KR", serif; font-size: 19px; color: var(--navy); }
.lga-info { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.lga-info li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; }
.lga-info__icon { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--navy); }
.lga-info b { display: block; font-size: 15px; line-height: 1.4; }
.lga-info span span { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; }
.lga-mapbox > svg { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.lga-mapbox p { display: flex; gap: 6px; align-items: center; margin: 8px 0 0; font-size: 14px; color: var(--muted); }

@container site (min-width: 560px) {
  .lga-areas { grid-template-columns: repeat(2, 1fr); }
  .lga-row2 { grid-template-columns: 1fr 1fr; }
}
@container site (min-width: 720px) {
  .lga { font-size: 17px; }
  .lga-wrap { padding: 0 36px; }
  .lga-nav { display: flex; }
  .lga-head__cta { display: inline-flex !important; margin-left: 8px; }
  .lga-menu { display: none; }
  .lga-hero__grid { grid-template-columns: 1.12fr .88fr; align-items: center; gap: 40px; padding-top: 64px; padding-bottom: 60px; }
  .lga-h1 { font-size: 40px; }
  .lga-stats__grid { grid-template-columns: repeat(3, 1fr); }
  .lga-stat { flex-direction: column; gap: 4px; padding: 28px 28px; border-top: 0; border-left: 1px solid rgba(176, 141, 87, .45); }
  .lga-stat:first-child { border-left: 0; padding-left: 0; }
  .lga-stat__num { font-size: 38px; }
  .lga-sec { padding: 80px 0; }
  .lga-h2 { font-size: 30px; }
  .lga-areas { grid-template-columns: repeat(3, 1fr); }
  .lga-area { padding: 28px 26px; }
  .lga-people { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .lga-person { grid-template-columns: 1fr; gap: 14px; }
  .lga-steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .lga-step { padding: 58px 0 0; }
  .lga-step::before { left: 50px; right: -24px; top: 21px; bottom: auto; width: auto; height: 1px; }
  .lga-cta { padding: 56px 0; }
  .lga-cta__inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .lga-cta h2 { font-size: 26px; }
  .lga-mbar { display: none; }
  .lga-pagehead { padding: 48px 0 40px; }
  .lga-h1--page { font-size: 36px; }
  .lga-consult { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-top: 48px !important; padding-bottom: 80px !important; align-items: start; }
  .lga-aside { position: sticky; top: 84px; }
}
@container site (min-width: 1000px) {
  .lga-consult { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; }
  .lga-h1 { font-size: 44px; }
}

/* ===== 작업 기록 ===== */
.lgn { max-width: 1080px; margin: 0 auto; }
.lgn-head { padding: 8px 0 4px; }
.lgn-title { margin: 4px 0 8px; font-size: 26px; line-height: 1.3; letter-spacing: -.01em; }
.lgn-lead { margin: 0 0 14px; color: var(--muted); max-width: 46em; }
.lgn-toc { display: flex; gap: 6px; flex-wrap: wrap; }
.lgn-toc a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.lgn-toc a:hover { border-color: var(--primary); }
.lgn-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px; margin-top: 16px; scroll-margin-top: 80px; }
.lgn-h2 { margin: 0 0 6px; font-size: 19px; }
.lgn-desc { margin: 0 0 16px; color: var(--muted); font-size: 14px; max-width: 52em; }
.lgn-brand { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.lgn-swatch { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.lgn-swatch__color { grid-row: span 3; width: 64px; height: 64px; border-radius: 10px; background: var(--sw); }
.lgn-swatch__name { font-weight: 700; }
.lgn-swatch code { font-size: 14px; color: var(--muted); }
.lgn-badge { justify-self: start; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #E9F2EC; color: var(--ok); }
.lgn-tablewrap { overflow-x: auto; }
.lgn-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lgn-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lgn-table td { padding: 10px; border-bottom: 1px solid #EEF0F2; vertical-align: middle; }
.lgn-table code { font-size: 13px; }
.lgn-dot { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.lgn-kind { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.lgn-kind--keep { background: #E9F2EC; color: var(--ok); }
.lgn-kind--derived { background: #F4EEE2; color: var(--accent); }
.lgn-type { border-top: 1px solid var(--line); background: #fff; }
.lgn-type__row { display: grid; gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.lgn-type__meta b { display: block; font-size: 14px; }
.lgn-type__meta span { font-size: 12px; color: var(--muted); }
.lgn-type__sample { margin: 0; }
.lgn-type__sample--t1 { font-family: "Noto Serif KR", serif; font-weight: 700; color: var(--navy); font-size: 30px; line-height: 1.3; letter-spacing: -.02em; }
.lgn-type__sample--t2 { font-family: "Noto Serif KR", serif; font-weight: 700; color: var(--navy); font-size: 24px; line-height: 1.35; }
.lgn-type__sample--t3 { font-weight: 600; font-size: 19px; line-height: 1.5; }
.lgn-type__sample--t4 { font-size: 17px; line-height: 1.75; color: var(--ink); }
.lgn-type__sample--t5 { font-size: 14px; line-height: 1.6; color: var(--muted); }
.lgn-parts { display: grid; gap: 16px; background: transparent; }
.lgn-part { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; }
.lgn-part__label { margin: 0 0 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.lgn-part .lga-field { margin: 0; }
.lgn-icons { display: flex; gap: 14px; flex-wrap: wrap; color: #1E3A5F; }
.lgn-icons span { width: 52px; height: 52px; border: 1px solid #E3DDD1; display: grid; place-items: center; }
.lgn-codes { display: grid; gap: 12px; margin-top: 16px; }
.lgn-code { margin: 0; background: #16181D; color: #E6E8EB; border-radius: 10px; padding: 14px 16px; font-size: 12.5px; line-height: 1.65; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.lgn-code span { display: block; }
.lgn-code .is-del { background: rgba(163, 58, 43, .35); }
.lgn-code .is-add { background: rgba(47, 107, 79, .45); }
.lgn-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.lgn-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lgn-check { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: left; font-size: 15px; color: var(--text); cursor: pointer; }
.lgn-check__box { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 2px solid #B8BDC5; display: grid; place-items: center; color: transparent; }
.lgn-check.is-on { border-color: var(--ok); background: #F3F8F5; }
.lgn-check.is-on .lgn-check__box { background: var(--ok); border-color: var(--ok); color: #fff; }
.lgn-progress { margin: 10px 0 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.lgn-scope { display: grid; gap: 12px; margin-top: 16px; }
.lgn-scope__col { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.lgn-scope__col h3 { margin: 0 0 8px; font-size: 15px; }
.lgn-scope__col ul { margin: 0; padding-left: 18px; font-size: 14px; display: grid; gap: 4px; }
.lgn-scope__col--out { background: #F7F7F8; }
.lgn-next { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lgn-next__item { border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.lgn-next__no { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.lgn-next__item h3 { margin: 10px 0 4px; font-size: 16px; }
.lgn-next__item p { margin: 0; font-size: 14px; color: var(--muted); }
@media (min-width: 760px) {
  .lgn-type__row { grid-template-columns: 220px 1fr; align-items: center; }
  .lgn-parts { grid-template-columns: repeat(2, 1fr); }
  .lgn-codes { grid-template-columns: 1fr 1fr; }
  .lgn-scope { grid-template-columns: 1fr 1fr; }
  .lgn-next { grid-template-columns: repeat(3, 1fr); }
  .lgn-type__sample--t1 { font-size: 40px; }
  .lgn-type__sample--t2 { font-size: 30px; }
}
@media (max-width: 640px) {
  .lgn-brand { grid-template-columns: 1fr; }
  .lgn-table thead { display: none; }
  .lgn-table, .lgn-table tbody, .lgn-table tr, .lgn-table td { display: block; width: 100%; }
  .lgn-table tr { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; margin-bottom: 8px; }
  .lgn-table td { border: 0; padding: 4px 0; display: flex; gap: 10px; }
  .lgn-table td::before { content: attr(data-label); flex: none; width: 64px; font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 2px; }
}

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