:root {
  --bg: #ffffff; --bg-alt: #f5f7fb; --fg: #121826; --muted: #5b6577; --line: #e3e7ef;
  --accent: #2563eb; --accent-2: #1d4ed8; --accent-soft: #e8f0ff; --accent-fg: #ffffff;
  --hero: linear-gradient(160deg, #eef3ff 0%, #ffffff 60%);
  --card: #ffffff; --shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
  --band: #121a33; --band-fg: #ffffff; --ok: #16a34a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1218; --bg-alt: #151a23; --fg: #e9edf5; --muted: #98a2b3; --line: #262d3a;
    --accent: #5b8cff; --accent-2: #7aa2ff; --accent-soft: #1b2540; --accent-fg: #0b0e14;
    --hero: linear-gradient(160deg, #141c30 0%, #0f1218 60%);
    --card: #161b25; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    --band: #1b2540; --band-fg: #e9edf5; --ok: #34d399;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg); line-height: 1.65; word-break: keep-all;
  font-family: "Pretendard Variable", Pretendard, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.top nav { display: flex; align-items: center; gap: 20px; }
.top nav a { color: var(--fg); text-decoration: none; font-weight: 500; font-size: 15px; }
.top nav a.cta { color: var(--accent-fg); }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--fg); text-decoration: none; letter-spacing: -.02em; }
.logo-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--accent-fg); font-size: 17px; }

/* buttons */
.cta, .ghost { display: inline-block; border-radius: 10px; padding: 10px 18px; font-weight: 700; text-decoration: none; transition: transform .1s, background .15s; }
.cta { background: var(--accent); color: var(--accent-fg); }
.cta:hover { background: var(--accent-2); }
.ghost { border: 1px solid var(--line); color: var(--fg); background: var(--card); }
.ghost:hover { border-color: var(--accent); color: var(--accent); }
.cta.sm { padding: 7px 14px; font-size: 14px; }
.lg { padding: 14px 24px; font-size: 17px; }
.cta.inv { background: var(--band-fg); color: var(--band); }

/* hero */
.hero { background: var(--hero); padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.hero.small { padding: 40px 0 40px; }
.hero-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.25; letter-spacing: -.03em; margin: 0 0 16px; }
.hero.small h1 { font-size: clamp(28px, 3.6vw, 38px); }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 40em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ico svg { width: 180px; height: 180px; justify-self: center; stroke: var(--accent); stroke-width: 1.6; fill: none; opacity: .9; }
.hero-ico { display: grid; place-items: center; }

.spec-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; }
.spec-head { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.spec-card dl { margin: 0; }
.spec-card dl div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.spec-card dt { color: var(--muted); }
.spec-card dd { margin: 0; font-weight: 600; }
.spec-foot { margin-top: 14px; font-size: 14px; color: var(--accent); font-weight: 600; }

/* sections */
.sec { padding: 64px 0; }
.sec.alt { background: var(--bg-alt); }
.sec-h { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.02em; margin: 0 0 24px; }
.sec-h.mt { margin-top: 48px; }
.crumb { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.crumb a { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; text-decoration: none; color: var(--fg); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card h3 { margin: 14px 0 6px; font-size: 20px; }
.card p { margin: 0 0 14px; color: var(--muted); }
.ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--accent-soft); }
.ico svg { width: 34px; height: 34px; stroke: var(--accent); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.more { color: var(--accent); font-weight: 700; font-size: 15px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.steps h3 { margin: 12px 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-weight: 800; }

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feats h3 { margin: 0 0 8px; font-size: 19px; }
.feats h3::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--accent); margin-bottom: 14px; }
.feats p { margin: 0; color: var(--muted); }

.regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.regions a { display: block; text-align: center; padding: 12px 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--fg); text-decoration: none; font-weight: 600; }
.regions a:hover { border-color: var(--accent); color: var(--accent); }

.posts { list-style: none; padding: 0; margin: 0 0 20px; }
.posts li a { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.posts li a:hover strong { color: var(--accent); }
.posts span { color: var(--muted); font-size: 15px; }
.posts time, .meta { color: var(--muted); font-size: 14px; }
.empty { color: var(--muted); }

details { border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; background: var(--card); }
summary { cursor: pointer; padding: 16px 0; font-weight: 700; }
details p { margin: 0 0 16px; color: var(--muted); }

.band { background: var(--band); color: var(--band-fg); padding: 48px 0; }
.band-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.band h2 { margin: 0; font-size: clamp(20px, 2.4vw, 26px); }

.article h1 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.3; letter-spacing: -.02em; margin: 0 0 8px; }
.article h2 { margin: 36px 0 12px; font-size: 22px; }
.article p { font-size: 17px; }
.post-cta { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 32px; color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 2fr; gap: 32px; }
.foot-grid > div > a:not(.logo) { display: block; color: var(--muted); text-decoration: none; margin-bottom: 6px; }
.foot-h { font-size: 14px; color: var(--fg); margin: 6px 0 12px; }
.foot-regions { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.foot-regions a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--accent); }
.copy { margin-top: 32px; }

/* apply / admin */
.btn { display: inline-block; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; text-decoration: none; color: var(--fg); background: var(--card); }
.btn.on { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.dev { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 12px 0; background: var(--card); }
pre { background: var(--bg-alt); padding: 10px; border-radius: 8px; overflow-x: auto; font-size: 13px; }
button { padding: 9px 16px; font-size: 15px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; font-family: inherit; }
button[type=submit], .dev button { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
td, th { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }
.edit label { display: block; margin: 14px 0; font-weight: 600; }
.edit input:not([type=checkbox]), .edit select, .edit textarea, form input[type=password] { display: block; width: 100%; margin-top: 6px; padding: 10px; font-size: 15px; font-family: inherit; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; }
.err { color: #dc2626; font-weight: 600; }
main > h1, main > form, main > p, main > table, main > ol, main > div#devs, main > button { max-width: 760px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
main > h1 { margin-top: 40px; }

@media (max-width: 860px) {
  .hero { padding: 48px 0; }
  .hero-in { grid-template-columns: 1fr; gap: 32px; }
  .hero-ico { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .feats { grid-template-columns: 1fr; gap: 24px; }
  .foot-grid { grid-template-columns: 1fr; }
  .top nav a:not(.cta) { display: none; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .lead { font-size: 16px; }
  .band-in { flex-direction: column; align-items: flex-start; }
}

/* quote form */
.quote { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 24px; scroll-margin-top: 80px; }
.quote h2 { margin: 0 0 4px; font-size: 22px; }
.quote-sub { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.quote label { display: block; margin-bottom: 12px; font-weight: 600; font-size: 14px; }
.quote small { color: var(--muted); font-weight: 400; }
.quote input:not([type=checkbox]), .quote select, .quote textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font-size: 16px; font-family: inherit; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; }
.quote input:focus, .quote select:focus, .quote textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.agree { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 500 !important; }
.agree input { margin-top: 4px; }
.agree small { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.full { width: 100%; border: 0; }

/* kakao */
.kakao { display: inline-block; border-radius: 10px; padding: 10px 18px; font-weight: 700; text-decoration: none; background: #FEE500; color: #191919; }
.kakao:hover { background: #f5dc00; }
.chat-fab { position: fixed; right: 18px; bottom: 18px; z-index: 20; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 99px; background: #FEE500; color: #191919; font-weight: 800; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.chat-fab svg { width: 22px; height: 22px; fill: #191919; }

.checks { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-weight: 600; }
.checks li::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.feat-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero-in > div > .hero-ico { margin-top: 24px; }
.hero-in > div > .hero-ico svg { width: 120px; height: 120px; }
.post-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.done { text-align: center; padding-top: 32px; }
.done-ico { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.center { justify-content: center; }
.ok { color: var(--ok); font-weight: 700; }
.tbl { overflow-x: auto; }
.tbl td { vertical-align: top; font-size: 15px; }
.tbl .memo { max-width: 280px; white-space: pre-wrap; color: var(--muted); }
tr.is-done td { opacity: .45; }
.edit small { display: block; color: var(--muted); font-weight: 400; margin-top: 4px; }

@media (max-width: 860px) {
  .feat-split { grid-template-columns: 1fr; gap: 24px; }
  .hero-in > div > .hero-ico { display: none; }
}
@media (max-width: 480px) {
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .chat-fab { right: 12px; bottom: 12px; padding: 10px 14px; }
}

/* admin content */
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 8px 18px 6px; margin: 0 0 20px; background: var(--card); }
legend { font-weight: 800; padding: 0 6px; }
.hint { color: var(--muted); font-size: 14px; }
.faq-row { border-top: 1px dashed var(--line); padding-top: 4px; }
.save-bar { position: sticky; bottom: 12px; width: 100%; padding: 14px; font-size: 17px; }

/* admin catalog */
.cat-head, .cat-row { display: grid; grid-template-columns: 1fr 1fr 2fr 90px; gap: 8px; align-items: center; }
.cat-head.two, .reg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cat-head { font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.cat-row, .reg-row { margin-bottom: 8px; }
.cat-row input:not([type=checkbox]), .reg-row input { width: 100%; padding: 8px; font-size: 15px; font-family: inherit; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; }
.chk { display: flex !important; gap: 6px; align-items: center; margin: 0 !important; font-weight: 500 !important; }
button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 600px) { .cat-head { display: none; } .cat-row { grid-template-columns: 1fr 1fr; } }

/* blog cards */
.post-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-bottom: 20px; }
.post-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--fg); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.post-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.thumb { aspect-ratio: 16 / 10; background: var(--accent-soft); display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb span { color: var(--accent); font-weight: 800; font-size: 22px; opacity: .5; }
.pc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.pc-body strong { font-size: 18px; line-height: 1.4; }
.pc-body p { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-body time { color: var(--muted); font-size: 13px; }
.tag { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }

/* article */
.article { font-size: 17px; line-height: 1.85; }
.article h2 { margin: 40px 0 12px; font-size: 24px; letter-spacing: -.02em; }
.article h3 { margin: 28px 0 8px; font-size: 19px; }
.article p { margin: 0 0 18px; }
.article ul { margin: 0 0 18px; padding-left: 22px; }
.article li { margin-bottom: 6px; }
.article figure { margin: 28px 0; }
.article figure img { width: 100%; height: auto; border-radius: 14px; display: block; }
.article figcaption { margin-top: 8px; text-align: center; color: var(--muted); font-size: 14px; }
.article a { text-decoration: underline; text-underline-offset: 3px; }
.article strong { background: linear-gradient(transparent 60%, var(--accent-soft) 60%); }

/* editor */
.edit-grid { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; }
.side { position: sticky; top: 80px; }
.side-box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px 16px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 6px; }
.toolbar button { padding: 6px 12px; font-size: 14px; }
.toolbar .photo { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); font-weight: 700; }
.body-input { font-size: 16px !important; line-height: 1.7; min-height: 480px; }
.body-input.drop { outline: 3px dashed var(--accent); }
.preview { border: 1px dashed var(--line); border-radius: 14px; padding: 8px 24px; min-height: 120px; }
.full-link { display: block; text-align: center; margin-top: 8px; }
.side .full { width: 100%; }
@media (max-width: 860px) { .edit-grid { grid-template-columns: 1fr; } .side { position: static; } }

form.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; padding: 0; color: var(--muted); font-size: 15px; font-weight: 500; cursor: pointer; }
button.link:hover { color: var(--accent); }

/* 휴대폰 관리 키 입력칸(아무 표시 없이 얇은 칸만) */
.kbox { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; }
.kbox input { width: 220px; padding: 10px 12px; font-size: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--fg); box-shadow: var(--shadow); }
.copy { user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }

/* 견적 폼 사양 칸 */
.specs { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px 0; margin-bottom: 12px; background: var(--bg-alt); }
.specs-h { margin: 0 0 8px; font-weight: 800; font-size: 14px; }
.agent-btn { width: 100%; margin-bottom: 6px; background: var(--accent-soft); color: var(--accent); border-color: var(--accent); font-weight: 700; }
.agent-status { margin: 0 0 10px; font-size: 13px; }
