/* 레이아웃: 왼쪽 정렬 1열 흐름 + 견적서(명세표) 모양 카드. 숫자는 고정폭 서체로 계량기처럼 보이게 */
:root {
  --paper: #f4f6f9;
  --surface: #ffffff;
  --ink: #0f1a2b;
  --muted: #566275;
  --line: #dbe2ea;
  --accent: #0b57e3;
  --accent-ink: #ffffff;
  --accent-soft: #e6eefc;
  --hi: #ffd43b;
  --hi-ink: #1d1600;
  --ok: #157f4a;

  --font-body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --font-num: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  --step-4: clamp(2rem, 1.4rem + 3vw, 3.25rem);

  --wrap: 72rem;
  --gutter: 1.25rem;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0c1320; --surface: #141f31; --ink: #e7ecf3; --muted: #9ba7b9; --line: #26344a;
    --accent: #5d8dff; --accent-ink: #06122b; --accent-soft: #1a2a48; --hi: #ffd43b; --hi-ink: #1d1600; --ok: #4fc38a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0c1320; --surface: #141f31; --ink: #e7ecf3; --muted: #9ba7b9; --line: #26344a;
  --accent: #5d8dff; --accent-ink: #06122b; --accent-soft: #1a2a48; --hi: #ffd43b; --hi-ink: #1d1600; --ok: #4fc38a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.7;
  word-break: keep-all; overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.3; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; z-index: 99; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: .75rem; max-width: 44rem; margin-bottom: 2.25rem; }
.eyebrow { font-size: var(--step--1); font-weight: 700; color: var(--accent); letter-spacing: .06em; }
.lead { font-size: var(--step-1); color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .7rem 1.25rem; border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-call { background: var(--hi); color: var(--hi-ink); }
.btn-call:hover { filter: brightness(1.04); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* 헤더 */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.125rem; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: .25rem; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; padding: .45rem .7rem; border-radius: 6px; font-weight: 500; font-size: .95rem; }
.nav a:hover { background: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.header-call { white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.header-call .num { font-size: 1.125rem; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); padding: .5rem .7rem; font: inherit; font-weight: 700; }
@media (max-width: 960px) {
  .header-call { display: none; }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: .8rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
}

/* 히어로 */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--hi) 62%); color: inherit; }
.hero .lead { margin-top: 1.1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 999px; font-size: var(--step--1); font-weight: 500; background: var(--surface); }
.chips li::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--ok); }
.hero .btn-row { margin-top: 2rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* 명세표(영수증) 카드 */
.bill {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem; box-shadow: 0 18px 40px -24px rgb(15 26 43 / .35);
  position: relative;
}
.bill::after { /* 용지 절취선 */
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 14px;
  background: radial-gradient(circle at 7px 0, transparent 6px, var(--surface) 6.5px) repeat-x;
  background-size: 14px 14px;
}
.bill-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: .75rem; border-bottom: 2px solid var(--ink); }
.bill-head strong { font-size: var(--step-1); }
.bill-tag { font-size: .75rem; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.bill dl { margin: 0; display: grid; grid-template-columns: 1fr auto; }
.bill dt, .bill dd { margin: 0; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.bill dd { text-align: right; font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.bill dd.zero { color: var(--ok); font-weight: 600; }
.bill-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: .9rem; }
.bill-total .num { font-size: var(--step-2); font-weight: 600; }
.bill-note { margin-top: .5rem; font-size: .8rem; color: var(--muted); }

/* 기종 고르기 */
.pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 960px) { .pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pick { grid-template-columns: 1fr; } }
.pick a {
  display: grid; gap: .5rem; align-content: start; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s ease, transform .15s ease;
}
.pick a:hover { border-color: var(--accent); transform: translateY(-2px); }
.paper-icon { display: flex; align-items: flex-end; gap: 6px; height: 46px; }
.paper-icon span { display: block; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--paper); }
.paper-icon .a4 { width: 23px; height: 32px; }
.paper-icon .a3 { width: 32px; height: 46px; }
.paper-icon .c { background: linear-gradient(135deg, #00a3e0 0 33%, #e6007e 33% 66%, var(--hi) 66%); }
.pick .for { font-size: var(--step--1); color: var(--muted); }
.pick .from { margin-top: .25rem; font-weight: 700; }
.pick .from .num { font-size: var(--step-2); font-weight: 600; }

/* 혜택 */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 760px) { .benefits { grid-template-columns: 1fr; gap: 1.5rem; } }
.benefits > div { display: grid; gap: .5rem; padding-top: 1rem; border-top: 3px solid var(--ink); }
.benefits .big { font-family: var(--font-num); font-size: var(--step-3); font-weight: 600; line-height: 1.1; }

/* 절차 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; display: grid; gap: .35rem; align-content: start; padding: 1rem 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); font-family: var(--font-num); font-weight: 600; color: var(--accent); font-size: var(--step-2); }
.steps li p { color: var(--muted); font-size: var(--step--1); }

/* 모델 카드 */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filters button { font: inherit; font-weight: 500; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.model { display: grid; grid-template-rows: auto auto 1fr auto; gap: .6rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.model-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.brand { font-size: var(--step--1); font-weight: 700; color: var(--muted); }
.tags { display: flex; gap: .3rem; }
.tag { font-size: .75rem; font-weight: 700; padding: .1rem .45rem; border-radius: 4px; border: 1px solid var(--line); }
.tag.color { border-color: transparent; background: var(--accent-soft); color: var(--accent); }
.model h3 { font-size: 1.125rem; }
.model .spec { font-size: var(--step--1); color: var(--muted); }
.price { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding-top: .75rem; border-top: 1px dashed var(--line); }
.price .num { font-size: 1.375rem; font-weight: 600; }
.price .vat { font-size: .75rem; color: var(--muted); }
.price .ask { font-weight: 700; color: var(--accent); }
.model .btn { min-height: 2.5rem; padding: .45rem .9rem; font-size: .9rem; }

/* 표 */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 40rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
thead th { font-size: var(--step--1); color: var(--muted); font-weight: 700; background: var(--paper); }
tbody th { font-weight: 700; white-space: nowrap; }
tr:last-child > * { border-bottom: 0; }
.notes { margin: 1.25rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: var(--step--1); display: grid; gap: .3rem; }

/* FAQ */
.faq { display: grid; gap: .5rem; max-width: 52rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-num); color: var(--accent); font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 1.25rem 1.1rem; color: var(--muted); }

/* 비교 */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }
.compare > div { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: .75rem; align-content: start; }
.compare ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; }
.compare .pick-me { border: 2px solid var(--accent); }

/* CTA 띠 */
.cta-band { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 3rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; }
.cta-band h2 { font-size: var(--step-2); }
.cta-band p { color: color-mix(in srgb, var(--paper) 75%, transparent); margin-top: .4rem; }
.cta-band .btn-ghost { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 40%, transparent); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* 지역 */
.area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 760px) { .area { grid-template-columns: 1fr; } }
.gu { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.gu li { padding: .25rem .65rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: var(--step--1); }
.gu li.home { border-color: var(--accent); color: var(--accent); font-weight: 700; }

/* 폼 */
.form-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .form-grid { grid-template-columns: 1fr; } }
form.quote { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
@media (max-width: 560px) { form.quote { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; font-size: .95rem; }
.req { color: var(--accent); }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: .7rem .8rem;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.seg label { font-weight: 500; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); cursor: pointer; }
.seg input { accent-color: var(--accent); }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--step--1); color: var(--muted); }
.consent input { margin-top: .3rem; accent-color: var(--accent); }
.form-msg { grid-column: 1 / -1; padding: 1rem; border-radius: 8px; background: var(--accent-soft); }
.contact-box { display: grid; gap: 1.25rem; }
.contact-box .big-phone { font-family: var(--font-num); font-size: var(--step-3); font-weight: 600; color: var(--ink); text-decoration: none; }
.contact-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; font-size: .95rem; }
.contact-box dt { color: var(--muted); }
.contact-box dd { margin: 0; }

/* 서브 페이지 머리 */
.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) 0; }
.crumbs { font-size: var(--step--1); color: var(--muted); margin-bottom: .75rem; }
.crumbs a { color: var(--muted); }
.prose { max-width: 44rem; display: grid; gap: 1rem; }
.prose h2 { font-size: var(--step-2); margin-top: 1.5rem; }
.prose h3 { margin-top: .5rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }

/* 푸터 */
.site-footer { margin-top: 4rem; padding-block: 2.5rem 6.5rem; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--muted); }
.footer-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; }
.footer-in p { line-height: 1.9; }
.footer-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
@media (max-width: 700px) { .footer-in { grid-template-columns: 1fr; } }
@media (min-width: 821px) { .site-footer { padding-bottom: 2.5rem; } }

/* 모바일 하단 고정 상담바 */
.dock { display: none; }
@media (max-width: 820px) {
  .dock {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: .5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border-top: 1px solid var(--line);
  }
  .dock .btn { min-height: 2.9rem; padding: .5rem; font-size: .95rem; }
}
/* 데스크톱 우측 하단 버튼 */
.float-cta { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; display: grid; gap: .5rem; }
.float-cta .btn { box-shadow: 0 10px 24px -12px rgb(15 26 43 / .5); }
@media (max-width: 820px) { .float-cta { display: none; } }

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