/* ===== Goodkey24 공통 스타일 ===== */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #efede7;
  --fg: #16181d;
  --muted: #5d6270;
  --line: #e2dfd6;
  --brand: #13233f;      /* 딥 네이비 */
  --accent: #e0a526;     /* 황동(열쇠) 골드 */
  --accent-ink: #1a1405;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(19,35,63,.06);
  --max: 1120px;
}
:root[data-theme="dark"] {
  --bg: #0e1117; --surface: #161a22; --surface-2: #1d222c; --fg: #eef0f4;
  --muted: #a3a9b6; --line: #2a303c; --brand: #e9edf5; --accent: #f0b73d;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1117; --surface: #161a22; --surface-2: #1d222c; --fg: #eef0f4;
    --muted: #a3a9b6; --line: #2a303c; --brand: #e9edf5; --accent: #f0b73d;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--fg);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px; line-height: 1.7; word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ===== 헤더 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--bg);
  display: grid; place-items: center;
}
.logo-mark svg { width: 20px; height: 20px; }
.logo b { color: var(--accent); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav > a, .nav .dd > button {
  padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: .97rem;
  background: none; border: 0; color: inherit; font: inherit; font-weight: 600; cursor: pointer;
}
.nav > a:hover, .nav .dd > button:hover, .nav a[aria-current="page"] { background: var(--surface-2); }
.dd { position: relative; }
.dd-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 190px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 6px; display: none;
}
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; }
.dd-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-weight: 500; }
.dd-menu a:hover { background: var(--surface-2); }
.header-call {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; white-space: nowrap;
}
.header-call svg { width: 16px; height: 16px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .header-call { display: none; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 20px 20px; gap: 2px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav > a, .nav .dd > button { padding: 12px 10px; text-align: left; width: 100%; }
  .dd-menu { position: static; display: block; box-shadow: none; border: 0; background: transparent; padding: 0 0 6px 12px; }
}

/* ===== 공통 섹션 ===== */
section { padding: 80px 0; }
.eyebrow { color: var(--accent); font-weight: 800; font-size: .88rem; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.3; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); margin: 8px 0 14px; }
.lead { color: var(--muted); font-size: 1.07rem; max-width: 640px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 12px; font-weight: 800; font-size: 1rem; border: 1px solid transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn { transition: transform .15s ease, filter .15s ease; }

/* ===== 히어로 ===== */
.hero { padding: 72px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 850; margin: 12px 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.12rem; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hero-badges { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: .95rem; font-weight: 600; }
.hero-badges span { display: inline-flex; align-items: center; gap: 6px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--accent); }
.hero-card {
  background: var(--brand); color: var(--bg); border-radius: 24px; padding: 34px; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-card .big-lock { width: 120px; height: 120px; color: var(--accent); margin-bottom: 18px; }
.hero-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.hero-card p { opacity: .8; font-size: .97rem; }
.hero-card .phone { font-size: 1.9rem; font-weight: 850; letter-spacing: -0.01em; margin-top: 18px; color: var(--accent); display: block; }
.hero-card::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
  border: 28px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 44px 0 40px; }
}

/* ===== 카드 그리드 ===== */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card .ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); margin-bottom: 16px;
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .97rem; }
a.card { display: block; transition: transform .15s ease, border-color .15s ease; }
a.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card .more { display: inline-flex; gap: 6px; margin-top: 14px; font-weight: 700; color: var(--fg); }

.section-head { margin-bottom: 36px; }
.alt { background: var(--surface-2); }

/* ===== 진행 절차 ===== */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 4px; }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-weight: 850; font-size: 2rem; color: var(--accent); display: block; margin-bottom: 6px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .96rem; }

/* ===== 공지 리스트 ===== */
.notice-list { border-top: 2px solid var(--fg); }
.notice-item { border-bottom: 1px solid var(--line); }
.notice-item summary, .notice-row {
  display: flex; gap: 16px; align-items: baseline; padding: 18px 4px; cursor: pointer; list-style: none;
}
.notice-item summary::-webkit-details-marker { display: none; }
.notice-item .tag {
  font-size: .78rem; font-weight: 800; padding: 3px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--fg); white-space: nowrap;
}
.notice-item .title { font-weight: 700; flex: 1; }
.notice-item time { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.notice-body { padding: 0 4px 22px; color: var(--muted); }
.notice-body p + p { margin-top: 10px; }

/* ===== 서브페이지 ===== */
.page-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin: 8px 0 12px; }
.crumbs { color: var(--muted); font-size: .9rem; }
.crumbs a:hover { text-decoration: underline; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 48px; }
.prose p { margin: 12px 0; }
.check { list-style: none; display: grid; gap: 10px; margin: 16px 0; }
.check li { display: flex; gap: 10px; align-items: flex-start; }
.check li::before {
  content: ""; flex: 0 0 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1405' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat;
}
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { color: var(--muted); margin-top: 8px; }
.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.side-cta { position: sticky; top: 92px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .side-cta { position: static; } }

/* ===== CTA 배너 ===== */
.cta-band {
  background: var(--brand); color: var(--bg); border-radius: 24px; padding: 44px;
  display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { opacity: .8; }

/* ===== 연락처 ===== */
.info-list { display: grid; gap: 16px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; }
.info-row .ico { margin: 0; flex: 0 0 48px; }
.info-row dt { font-weight: 800; }
.info-row dd { color: var(--muted); }
.info-row dd a { color: var(--fg); font-weight: 700; }

/* ===== 푸터 ===== */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 100px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; align-items: flex-start; }
.site-footer strong { color: var(--fg); }
.theme-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.theme-switch button {
  background: none; border: 0; color: var(--muted); font: inherit; font-size: .85rem; padding: 5px 12px;
  border-radius: 999px; cursor: pointer;
}
.theme-switch button[aria-pressed="true"] { background: var(--surface-2); color: var(--fg); font-weight: 700; }

/* ===== 모바일 하단 전화 버튼 ===== */
.float-call {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: none;
  align-items: center; justify-content: center; gap: 10px; padding: 16px; border-radius: 16px;
  background: var(--accent); color: var(--accent-ink); font-weight: 850; font-size: 1.08rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.float-call svg { width: 20px; height: 20px; }
@media (max-width: 860px) { .float-call { display: flex; } }
@media (max-width: 600px) { .cta-band { padding: 26px 22px; border-radius: 18px; } }

/* ===== 블로그 ===== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.post-card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--surface-2); }
.post-card .pc-body { padding: 18px 20px 20px; }
.post-card .pc-meta { color: var(--muted); font-size: .85rem; display: flex; gap: 8px; align-items: center; }
.post-card h3 { font-size: 1.06rem; margin-top: 6px; line-height: 1.45; }
.chip { font-size: .76rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--fg); }

.article { max-width: 760px; margin: 0 auto; }
.article-head { padding: 48px 0 24px; }
.article-head h1 { font-size: clamp(1.7rem, 4.2vw, 2.5rem); margin: 12px 0 14px; }
.article-meta { color: var(--muted); font-size: .92rem; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.article-thumb { width: 100%; border-radius: 16px; aspect-ratio: 1200 / 630; object-fit: cover; box-shadow: var(--shadow); }
.toc { margin: 28px 0 8px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 18px 22px; }
.toc strong { display: block; margin-bottom: 8px; }
.toc ol { padding-left: 20px; display: grid; gap: 4px; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--fg); text-decoration: underline; }
.article-body { padding-bottom: 24px; font-size: 1.04rem; }
.article-body h2 { font-size: 1.5rem; margin: 44px 0 12px; padding-top: 8px; scroll-margin-top: 90px; }
.article-body h3 { font-size: 1.15rem; margin: 26px 0 8px; }
.article-body p { margin: 12px 0; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 12px 0; display: grid; gap: 6px; }
.article-body strong { color: var(--fg); }
.article-cta { margin: 36px 0; }
.post-card img, .article-thumb { height: auto; }
.article-thumb { display: block; max-width: 520px; margin: 0 auto; border-radius: 12px; }
@media (max-width: 600px) { .article-thumb { max-width: 100%; } }
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .97rem; background: var(--surface); border-radius: 12px; overflow: hidden; }
.article-body th, .article-body td { border-bottom: 1px solid var(--line); padding: 11px 14px; text-align: left; vertical-align: top; }
.article-body th { background: var(--surface-2); font-weight: 800; white-space: nowrap; }
.article-body .note { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border-radius: 12px; padding: 16px 18px; margin: 18px 0; }
.article-body .table-wrap { overflow-x: auto; }
.toc { margin-bottom: 28px; }

/* ===== 블로그 (spdkeys 형식) ===== */
.sp-wrap { max-width: 1016px; margin: 0 auto; padding: 0 20px 60px; }
.sp-list-title { font-size: 1.75rem; font-weight: 700; padding: 36px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.sp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 32px; }
@media (max-width: 900px) { .sp-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; } }
.sp-card { display: block; }
.sp-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.sp-card h3 { font-size: 1rem; font-weight: 500; line-height: 1.5; margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; letter-spacing: -0.01em; }
.sp-card:hover h3 { text-decoration: underline; }
.sp-card time { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; }

.sp-article { max-width: 976px; }
.sp-head { padding: 36px 0 22px; border-bottom: 1px solid var(--line); }
.sp-head h1 { font-size: 1.75rem; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
.sp-head time { display: block; color: var(--muted); font-size: .88rem; margin-top: 8px; }
.sp-hero { margin: 32px auto; max-width: 810px; }
.sp-hero img { width: 100%; height: auto; border-radius: 6px; }
.sp-toc { display: inline-block; min-width: 240px; max-width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 8px 0 28px; font-size: .95rem; }
.sp-toc summary { font-weight: 600; cursor: pointer; padding: 4px 0 8px; }
.sp-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sp-toc ol ol { padding: 8px 0 2px 16px; gap: 8px; }
.sp-toc a { color: var(--fg); opacity: .85; }
.sp-toc a:hover { opacity: 1; text-decoration: underline; }
.sp-body { font-size: 1rem; line-height: 2; }
.sp-body h2 { font-size: 1.5rem; font-weight: 600; margin: 48px 0 10px; scroll-margin-top: 90px; letter-spacing: -0.01em; }
.sp-body h3 { font-size: 1.22rem; font-weight: 600; margin: 30px 0 6px; scroll-margin-top: 90px; }
.sp-body p { margin: 0 0 26px; }
.sp-banner { margin: 36px auto; max-width: 696px; }
.sp-banner img { width: 100%; height: auto; border-radius: 6px; }
.sp-body details { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin: 10px 0; background: var(--surface); }
.sp-body details summary { font-weight: 600; cursor: pointer; }
.sp-body details p { margin: 8px 0 0; color: var(--muted); }
.sp-related { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 28px; }
.sp-related h2 { font-size: 1.3rem; font-weight: 600; margin-bottom: 20px; }
