/* with PAGE — 스타일: night (guide/design/styles.md) */
:root {
  --bg: #0e1013;
  --surface: #171a1f;
  --ink: #eef1f4;
  --muted: #a3acb6;
  --line: #2a2f36;
  --brand: #eef1f4;
  --brand-ink: #0e1013;
  --accent: #4cc2ff;
  --accent-ink: #0e1013;
  --radius-card: 8px;
  --radius-btn: 6px;

  --font: 'Pretendard Variable', Pretendard, system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
  --header-h: 64px;
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
@media (min-width: 900px) { body { font-size: 18px; } }
@media (min-width: 960px) { body { padding-bottom: 0; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(32px, 6.4vw, 60px); letter-spacing: -0.03em; }
h2 { font-size: clamp(26px, 4.2vw, 40px); }
h3 { font-size: clamp(19px, 2.2vw, 22px); font-weight: 700; }

.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
.cta-band :focus-visible { outline-color: var(--brand-ink); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--brand); color: var(--brand-ink);
  padding: 12px 16px; border-radius: var(--radius-btn); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* ---------- 머리글 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.logo {
  display: inline-flex; align-items: center; gap: .28em; min-height: 48px;
  font-size: 22px; line-height: 1; letter-spacing: -0.01em; text-decoration: none;
}
/* 로고 마크 — 원위치하려면 이 줄 아래 .logo-mark 규칙 두 줄을 지우거나 display:none 으로 */
.logo-mark { flex: none; width: 28px; height: 28px; margin-right: -.06em; color: var(--brand); }
.logo-mark .a { fill: none; stroke: currentColor; stroke-width: 2.6; }
.logo-mark .b { fill: currentColor; stroke: var(--bg); stroke-width: 3; paint-order: stroke; }
.logo-w { font-weight: 300; color: var(--muted); }
.logo-p { font-weight: 800; letter-spacing: .04em; }

.menu-btn {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: none; color: var(--ink); cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius-btn);
}
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  display: none; padding: 4px var(--gutter) 20px;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  display: flex; align-items: center; min-height: 54px;
  border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600;
}
.site-nav ul a[aria-current="page"] { font-weight: 800; text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }
.nav-cta { margin-top: 20px; width: 100%; }

@media (min-width: 960px) {
  .menu-btn { display: none; }
  .site-nav { position: static; display: flex; align-items: center; padding: 0; border: 0; background: none; }
  .site-nav ul { display: flex; gap: 2px; }
  .site-nav ul a { min-height: 48px; padding: 0 14px; border: 0; font-size: 16px; color: var(--muted); }
  .site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--ink); }
  .nav-cta { margin: 0 0 0 14px; width: auto; min-height: 48px; font-size: 16px; padding: 0 20px; }
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--radius-btn);
  font: inherit; font-size: 17px; font-weight: 700; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, filter .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--muted); }
.btn-light { background: var(--brand); color: var(--brand-ink); }
.cta-band .btn-line { color: var(--brand-ink); border-color: var(--brand-ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .btn-row .btn { flex: 1 1 100%; } }

.more {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
  font-weight: 700; text-decoration: underline; text-underline-offset: 6px;
  text-decoration-color: var(--line); text-decoration-thickness: 1px;
}
.more:hover { text-decoration-color: var(--ink); }
.more svg { width: 18px; height: 18px; }

/* ---------- 섹션 ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--surface); }
@media (min-width: 900px) { .section { padding: 120px 0; } }

.sec-head { margin-bottom: 40px; max-width: 40em; }
@media (min-width: 900px) { .sec-head { margin-bottom: 56px; } }
.sec-no {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
.sec-no::before { content: ""; width: 24px; height: 1px; background: var(--muted); }
.sec-head p { margin-top: 16px; color: var(--muted); max-width: 36em; }
.sec-foot { margin-top: 32px; }

.note { margin-top: 20px; color: var(--muted); font-size: 15px; }

/* 자리표시 (업체 확인 필요) */
.ph {
  display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 24px;
  border: 1.5px dashed var(--muted); border-radius: var(--radius-card);
  color: var(--muted); font-size: 15px; font-weight: 600; text-align: center;
}
.ph.square { aspect-ratio: 4 / 5; }
.todo {
  display: inline-block; padding: 0 8px;
  border: 1px dashed var(--muted); border-radius: 4px;
  color: var(--muted); font-size: .85em; font-weight: 500; line-height: 1.7;
}

/* ---------- 첫 화면 ---------- */
.hero { padding: 56px 0 72px; }
@media (min-width: 900px) { .hero { padding: 104px 0 120px; } }
.hero-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; } }
.hero h1 { font-size: clamp(32px, 6.4vw, 54px); }
.eyebrow { margin-bottom: 20px; font-size: 15px; font-weight: 600; color: var(--muted); }
.hero-lead { margin-top: 24px; max-width: 30em; font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.hero .btn-row { margin-top: 36px; }
.hero-meta { margin-top: 20px; font-size: 15px; color: var(--muted); }

/* 첫 화면 모션 스토리 — 상담 → 의뢰서 → 시안 2종 → 제작 → 납품
   화면 속 '우리 가게'는 가상의 예시. 가게 색(--d-*)은 guide/design/styles.md 의 warm, 시안 B는 calm 토큰
   글자 크기는 max(최소 px, 화면 비율)로 — 휴대폰에서도 너무 작아지지 않게 */
.story {
  margin: 0; min-width: 0;
  --d-bg: #faf5ec; --d-surface: #fffaf2; --d-ink: #2d241c; --d-muted: #665949; --d-line: #e8dcc8;
  --d-brand: #7a4e2d; --d-accent: #b35a14; --d-accent-ink: #ffffff;
}
.st-stage { position: relative; container-type: inline-size; aspect-ratio: 16 / 11.5; }

/* 틀: PC 브라우저 + 휴대폰 */
.d-browser {
  position: absolute; left: 0; top: 0; z-index: 0; width: 88%;
  border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; background: var(--d-bg);
}
.d-bar { display: flex; align-items: center; gap: 1.1cqw; height: 5.2cqw; padding: 0 2cqw; background: var(--surface); border-bottom: 1px solid var(--line); }
.d-bar i { width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: var(--line); }
.d-url {
  display: flex; align-items: center; flex: 0 1 40%; height: 3.2cqw; margin-left: 2cqw; padding: 0 1.4cqw;
  border-radius: 99px; background: var(--line); overflow: hidden; white-space: nowrap;
  font-size: max(9px, 1.9cqw); font-weight: 600; color: var(--ink);
}
.d-url b { font-weight: 600; opacity: 0; clip-path: inset(0 0 0 0); }
.d-view { position: relative; aspect-ratio: 16 / 10.2; overflow: hidden; color: var(--d-ink); }

.d-phone {
  position: absolute; right: 0; bottom: 0; z-index: 1; width: 28%; aspect-ratio: 9 / 18.5;
  border: .9cqw solid var(--surface); outline: 1px solid var(--line); border-radius: 3.8cqw; overflow: hidden;
  background: var(--d-bg); color: var(--d-ink); box-shadow: 0 2cqw 6cqw rgba(0, 0, 0, .5);
}

/* 장면 전환 */
.sc {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(1.2cqw);
  transition: opacity .5s, transform .5s, visibility 0s .5s;
}
.story[data-scene="1"] .sc-1,
.story[data-scene="2"] .sc-2,
.story[data-scene="3"] .sc-3,
.story[data-scene="1"] .sc-chat,
.story[data-scene="2"] .sc-chat,
.story[data-scene="3"] .sc-chat,
.story[data-scene="4"] .sc-site,
.story[data-scene="5"] .sc-site { opacity: 1; visibility: visible; transform: none; transition: opacity .5s, transform .5s, visibility 0s; }

/* 1. 상담 — 빈 화면 + 대화 */
.sc-1 { display: grid; place-content: center; justify-items: center; gap: 2cqw; padding-right: 12cqw; color: var(--d-muted); font-size: max(12px, 2.6cqw); font-weight: 600; line-height: 1.5; text-align: center; }
.caret { width: .45cqw; height: 5.4cqw; background: var(--d-ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.sc-chat { display: flex; flex-direction: column; justify-content: flex-end; gap: 1.3cqw; padding: 0 1.5cqw 2.4cqw; background: var(--bg); }
.chat-h {
  position: absolute; left: 0; right: 0; top: 0; z-index: 1; padding: 2cqw 0 1.5cqw;
  background: var(--bg); border-bottom: 1px solid var(--line);
  font-size: max(10px, 1.9cqw); font-weight: 800; color: var(--ink); text-align: center;
}
.bub { max-width: 92%; padding: 1.2cqw 1.5cqw; border-radius: 1.8cqw; font-size: max(10px, 2.1cqw); line-height: 1.4; font-weight: 600; }
.bub.me { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: .4cqw; }
.bub.you { align-self: flex-start; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: .4cqw; }
.bub.b3, .bub.b4 { display: none; }
.story[data-scene="2"] .bub.b3, .story[data-scene="3"] .bub.b3, .story[data-scene="3"] .bub.b4 { display: block; }
.story[data-scene="1"] .bub { animation: rise .45s both; animation-delay: calc(.4s + var(--i) * 1s); }
.story[data-scene="2"] .bub.b3 { animation: rise .45s .3s both; }
.story[data-scene="3"] .bub.b4 { animation: rise .45s 1.4s both; }

/* 2. 의뢰서 — 칸이 차례로 채워짐 */
.sc-2 { display: grid; place-items: center; padding-right: 10cqw; }
.brief { width: 88%; padding: 3cqw 3.4cqw; background: var(--d-surface); border: 1px solid var(--d-line); border-radius: 1.6cqw; }
.brief-h { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 1.6cqw; border-bottom: 1px solid var(--d-line); }
.brief-h b { font-size: max(14px, 3.2cqw); font-weight: 800; color: var(--d-brand); letter-spacing: -0.02em; }
.brief-h small { font-size: max(10px, 1.8cqw); font-weight: 600; color: var(--d-muted); }
.brief-r { display: grid; grid-template-columns: max(34px, 9cqw) 1fr auto; align-items: center; gap: 1.6cqw; padding: 1.5cqw 0; border-bottom: 1px solid var(--d-line); font-size: max(11px, 2.4cqw); line-height: 1.4; }
.brief-r:last-child { border-bottom: 0; padding-bottom: 0; }
.brief-r span { font-weight: 600; color: var(--d-muted); }
.brief-r strong { font-weight: 700; white-space: nowrap; clip-path: inset(0 0 0 0); }
.brief-r i { display: grid; place-items: center; width: max(12px, 2.8cqw); aspect-ratio: 1; border-radius: 50%; background: var(--d-brand); }
.brief-r i::after { content: ""; width: 40%; height: 22%; border-left: max(1.5px, .3cqw) solid var(--d-bg); border-bottom: max(1.5px, .3cqw) solid var(--d-bg); transform: translateY(-15%) rotate(-45deg); }
.story[data-scene="2"] .brief-r strong { animation: type .7s steps(8) both; animation-delay: calc(.5s + var(--i) * .6s); }
.story[data-scene="2"] .brief-r i { animation: pop .3s both; animation-delay: calc(1.2s + var(--i) * .6s); }

/* 3. 시안 2종 — 나란히 보여주고 하나를 컨펌 */
.sc-3 { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; align-content: center; padding: 3cqw 17cqw 3cqw 4cqw; }
.draft { position: relative; padding: 1.6cqw; background: var(--d-surface); border: 1px solid var(--d-line); border-radius: 1.6cqw; }
.draft-l { margin-bottom: 1.4cqw; font-size: max(11px, 2.3cqw); font-weight: 800; line-height: 1.3; }
.draft-l small { display: block; font-size: max(9px, 1.7cqw); font-weight: 600; color: var(--d-muted); }
.d-a { --m-bg: #faf5ec; --m-ink: #2d241c; --m-line: #e8dcc8; --m-brand: #7a4e2d; --m-accent: #b35a14; --m-r: 1.4cqw; }
.d-b { --m-bg: #f3f5ef; --m-ink: #1f2a1f; --m-line: #d9dfd0; --m-brand: #3b6b45; --m-accent: #8a5a14; --m-r: .5cqw; }
.mini {
  display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto auto auto 1fr; gap: 1cqw 1.4cqw;
  aspect-ratio: 4 / 3.4; padding: 1.4cqw; background: var(--m-bg); border: 1px solid var(--m-line); border-radius: var(--m-r);
}
.mini i { display: block; }
.m-nav { grid-column: 1 / -1; height: 1.1cqw; margin-bottom: .8cqw; border-radius: 99px; background: var(--m-line); }
.m-t { grid-column: 1; height: 1.8cqw; border-radius: .4cqw; background: var(--m-ink); }
.m-t.s { width: 65%; }
.m-btn { grid-column: 1; width: 55%; height: 2.4cqw; margin-top: .6cqw; border-radius: 99px; background: var(--m-accent); }
.m-img { grid-column: 2; grid-row: 2 / 5; border-radius: var(--m-r); background: var(--m-brand); }
.pick {
  position: absolute; right: -1cqw; top: -1.6cqw; padding: .8cqw 1.6cqw; border-radius: 99px;
  background: var(--bg); color: var(--ink); font-size: max(10px, 1.9cqw); font-weight: 800; white-space: nowrap;
}
.story[data-scene="3"] .draft { animation: rise .45s both; animation-delay: calc(.3s + var(--i) * .3s); }
.story[data-scene="3"] .d-a { outline: max(2px, .45cqw) solid var(--bg); animation: rise .45s .3s both, sel .3s 2.4s both; }
.story[data-scene="3"] .pick { animation: pop .3s 2.4s both; }
@keyframes sel { from { outline-color: transparent; } }

/* 4~5. 컨펌한 시안으로 만든 홈페이지 */
.sc-site { padding: 2.6cqw 3.2cqw; }
.d-phone .sc-site { display: flex; flex-direction: column; padding: 0; }
.story[data-scene="4"] .w { animation: rise .5s both; animation-delay: calc(.3s + var(--i, 0) * .14s); }

.d-nav { display: flex; align-items: center; gap: 1.8cqw; padding-bottom: 2cqw; border-bottom: 1px solid var(--d-line); }
.d-nav b { margin-right: auto; font-size: max(11px, 2.6cqw); font-weight: 800; color: var(--d-brand); letter-spacing: -0.02em; }
.d-nav span { width: 5cqw; height: 1cqw; border-radius: 99px; background: var(--d-line); }
.d-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3cqw; align-items: center; margin-top: 4.4cqw; }
.d-copy small { display: block; font-size: max(10px, 1.9cqw); font-weight: 600; color: var(--d-muted); }
.d-copy strong { display: block; margin-top: 1.2cqw; font-size: max(14px, 4.4cqw); line-height: 1.28; letter-spacing: -0.03em; font-weight: 800; }
.d-btn {
  display: inline-block; margin-top: 2.6cqw; padding: 1.1cqw 2.6cqw;
  font-size: max(10px, 2cqw); font-style: normal; font-weight: 700;
  background: var(--d-accent); color: var(--d-accent-ink); border-radius: 99px;
}
.d-img { position: relative; aspect-ratio: 4 / 3.6; border-radius: 1.8cqw; background-color: var(--d-brand); }
.d-img::after { content: ""; position: absolute; right: 16%; top: 16%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--d-surface); }

.p-body { flex: 1; padding: 2.4cqw 2cqw; }
.d-phone .d-nav { padding-bottom: 1.6cqw; }
.d-phone .d-nav b { font-size: max(10px, 2.1cqw); }
.d-phone .d-img { margin-top: 2cqw; aspect-ratio: 1 / .8; border-radius: 1.4cqw; }
.p-body strong { display: block; margin-top: 2cqw; font-size: max(11px, 2.7cqw); line-height: 1.3; font-weight: 800; letter-spacing: -0.03em; }
.d-mbar { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1cqw; padding: 1.4cqw 1.6cqw; border-top: 1px solid var(--d-line); background: var(--d-surface); }
.d-mbar em { height: 3.8cqw; border-radius: 99px; border: 1px solid var(--d-line); }
.d-mbar .d-btn { margin: 0; padding: 0; border: 0; }

/* 5. 납품 — 주소 입력, 권한 전달 카드, 첫 문의 알림 */
.story[data-scene="5"] .d-url b { opacity: 1; animation: type 1s steps(10) .3s both; }
.d-view .sc-site::before {
  content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(14, 16, 19, .35);
  opacity: 0; transition: opacity .5s;
}
.story[data-scene="5"] .d-view .sc-site::before { opacity: 1; transition-delay: .9s; }
.own {
  position: absolute; left: 52cqw; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  display: grid; gap: 1.2cqw; width: max-content; padding: 2.6cqw 3.2cqw;
  background: var(--bg); color: var(--ink); border-radius: 1.8cqw; box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden;
}
.story[data-scene="5"] .own { opacity: 1; visibility: visible; animation: fade .4s 1s both; }
.own b { margin-bottom: .4cqw; font-size: max(12px, 2.8cqw); font-weight: 800; }
.own span { display: flex; align-items: center; gap: 1.2cqw; font-size: max(10px, 2.2cqw); font-weight: 700; }
.own i { display: grid; place-items: center; width: max(12px, 2.6cqw); aspect-ratio: 1; border-radius: 50%; background: var(--brand); }
.own i::after { content: ""; width: 40%; height: 22%; border-left: max(1.5px, .3cqw) solid var(--brand-ink); border-bottom: max(1.5px, .3cqw) solid var(--brand-ink); transform: translateY(-15%) rotate(-45deg); }
.story[data-scene="5"] .own span { animation: rise .4s both; animation-delay: calc(1.4s + var(--i) * .35s); }

.toast {
  position: absolute; left: 1.2cqw; right: 1.2cqw; top: 1.2cqw; z-index: 2; padding: 1.3cqw 1.5cqw;
  background: var(--bg); color: var(--ink); border-radius: 1.8cqw; box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .35);
  font-size: max(10px, 1.9cqw); font-weight: 700; line-height: 1.35; opacity: 0; visibility: hidden;
}
.toast small { display: block; font-size: max(9px, 1.5cqw); font-weight: 600; color: var(--muted); }
.story[data-scene="5"] .toast { opacity: 1; visibility: visible; animation: drop .5s 3s both; }

@keyframes rise { from { opacity: 0; transform: translateY(1cqw); } }
@keyframes fade { from { opacity: 0; } }
@keyframes type { from { clip-path: inset(0 100% 0 0); } }
@keyframes pop { from { transform: scale(0); } }
@keyframes drop { from { opacity: 0; transform: translateY(-140%); } }

/* 이야기 한 줄 + 단계 막대 */
.story figcaption { margin-top: 28px; }
.st-line { min-height: 3.1em; font-size: clamp(18px, 1.9vw, 21px); font-weight: 700; line-height: 1.55; }
.st-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.st-steps button {
  position: relative; width: 100%; min-height: 48px; padding: 12px 0 0;
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 600; text-align: left;
}
.st-steps button::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); }
.st-steps .bar { position: absolute; left: 0; top: 0; width: 0; height: 2px; background: var(--brand); }
.st-steps button.done .bar { width: 100%; }
.st-steps button[aria-current="step"] { color: var(--ink); }
.st-steps button[aria-current="step"] .bar { width: 100%; animation: fill var(--dur, 4s) linear both; }
.st-steps button:hover { color: var(--ink); }
.st-steps .n { display: block; font-size: 12px; font-variant-numeric: tabular-nums; }
@keyframes fill { from { width: 0; } }

/* 하위 페이지 머리 */
.page-hero { padding: 56px 0 56px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .page-hero { padding: 96px 0 80px; } }
.page-hero h1 { font-size: clamp(30px, 5.4vw, 52px); }
.page-hero .hero-lead { margin-top: 20px; }

/* ---------- 걱정 목록 ---------- */
.qa-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.qa-list li { display: grid; gap: 12px; padding: 32px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .qa-list li { grid-template-columns: 3.5em 1fr 1.1fr; gap: 32px; padding: 40px 0; }
}
.qa-no { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.9; }
.qa-list p { color: var(--muted); }
.qa-list .more { margin-top: 4px; color: var(--ink); }

/* ---------- 가격 ---------- */
.price-strip { display: grid; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
@media (min-width: 768px) { .price-strip { grid-template-columns: repeat(3, 1fr); } }
.price-item { padding: 28px 24px; border-bottom: 1px solid var(--line); }
.price-item:last-child { border-bottom: 0; }
@media (min-width: 768px) {
  .price-item { border-bottom: 0; border-right: 1px solid var(--line); padding: 36px 32px; }
  .price-item:last-child { border-right: 0; }
}
.price-name { font-weight: 700; }
.price-val { display: flex; align-items: baseline; gap: 4px; margin-top: 12px; }
.price-val strong { font-size: clamp(44px, 6vw, 64px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-val span { font-size: 18px; font-weight: 700; }

.price-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.price-table th, .price-table td { padding: 28px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.price-table thead th { padding: 14px 16px; font-size: 14px; font-weight: 600; color: var(--muted); }
.price-table tbody th { font-size: clamp(18px, 2vw, 21px); }
.price-table .p { font-size: clamp(30px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table .p small { font-size: 18px; margin-left: 2px; }
@media (max-width: 767px) {
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price-table tr { display: grid; gap: 8px; padding: 28px 0; border-bottom: 1px solid var(--line); }
  .price-table th, .price-table td { padding: 0; border: 0; }
}

/* 정의 목록 줄 */
.rows { margin: 0; border-top: 1px solid var(--line); }
.rows > div { display: grid; gap: 4px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .rows > div { grid-template-columns: 13em 1fr; gap: 24px; } }
.rows dt { font-weight: 700; }
.rows dd { margin: 0; color: var(--muted); }
.rows dd strong { color: var(--ink); }

/* ---------- 제작 과정 ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; }
.steps li { position: relative; counter-increment: step; padding: 0 0 36px 60px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--muted); border-radius: 50%;
  background: var(--bg); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.alt .steps li::before { background: var(--surface); }
.steps li::after { content: ""; position: absolute; left: 21px; top: 42px; bottom: 0; width: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { padding-top: 6px; font-size: 19px; }
.steps p { margin-top: 6px; color: var(--muted); }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
  .steps li { padding: 64px 0 0; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li::after { left: 58px; right: -16px; top: 21px; bottom: auto; width: auto; height: 1px; }
  .steps li:nth-child(3n)::after { display: none; }
}

/* ---------- 사례 ---------- */
.works { display: grid; gap: 48px; }
@media (min-width: 768px) { .works { grid-template-columns: 1fr 1fr; gap: 40px 32px; } }
.work figure { margin: 0; }
.work figcaption { margin-top: 18px; }
.work h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.work p { margin-top: 6px; color: var(--muted); }
.tag {
  display: inline-block; padding: 1px 8px; border: 1px solid var(--muted); border-radius: 4px;
  font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--muted);
}

/* ---------- 원칙 (큰 번호 + 짧은 문장) ---------- */
.points { display: grid; gap: 40px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .points { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.points .n { font-size: clamp(40px, 5vw, 56px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--brand); font-variant-numeric: tabular-nums; }
.points h3 { margin-top: 20px; }
.points p { margin-top: 10px; color: var(--muted); }

/* ---------- 두 칸 ---------- */
.split { display: grid; gap: 40px; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
@media (min-width: 960px) { .split.wide-left { grid-template-columns: 1.35fr .65fr; } }
@media (min-width: 960px) { .split:has(> .profile) { grid-template-columns: 236px 1fr; gap: 72px; } }

.profile { margin: 0; width: 236px; max-width: 100%; }
.profile img { width: 100%; height: auto; border-radius: var(--radius-card); border: 1px solid var(--line); }

.prose > * + * { margin-top: 16px; }
.prose { max-width: 36em; }
.prose p { color: var(--muted); }
.prose h2 + p { margin-top: 20px; }

.quote { margin: 0; padding-left: 20px; border-left: 2px solid var(--brand); font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; line-height: 1.5; letter-spacing: -0.02em; }

/* 업체소개 — 이름에 담은 이야기 */
.story-prose { max-width: 36em; }
.story-prose p { font-size: clamp(17px, 1.9vw, 19px); }
.story-prose .hl { color: var(--brand); font-weight: 800; }
.story-quote { max-width: 36em; margin-top: 40px; }
.value {
  max-width: 40em; margin-top: 48px; padding: 28px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
}
@media (min-width: 768px) { .value { padding: 40px; } }
.value-label {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--muted);
}
.value-label::before { content: ""; width: 24px; height: 1px; background: var(--muted); }
.value-text { font-size: clamp(22px, 3vw, 30px); font-weight: 800; line-height: 1.45; letter-spacing: -0.02em; }
/* 이렇게 만듭니다 — 한 줄씩 위아래로 (왼쪽 번호, 오른쪽 제목·설명) */
.points.points-rows { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.points-rows li { display: grid; padding: 32px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) {
  .points-rows li { grid-template-columns: 6rem 1fr; column-gap: 32px; align-items: start; padding: 40px 0; }
  .points-rows .n { grid-row: 1 / span 2; }
  .points-rows h3 { margin-top: 4px; }
  .points-rows p:not(.n) { grid-column: 2; max-width: 40em; }
}

/* 휴대폰에서만 줄바꿈 (넓은 화면에서는 한 줄) */
.br-m { display: none; }
@media (max-width: 559px) { .br-m { display: inline; } }
/* 사장님 요청(2026-10-01): 핵심가치의 '함께'·'페이지'는 강조색으로 (--accent 를 글자에 쓰는 유일한 예외) */
.value-text .hl { color: var(--accent); }

/* ---------- 자주 묻는 질문 ---------- */
.faq { max-width: 52em; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 48px; padding: 22px 0; cursor: pointer; list-style: none;
  font-size: clamp(17px, 2vw, 19px); font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor;
  transform: translateY(-3px) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq .ans { max-width: 40em; padding: 0 0 26px; color: var(--muted); }
.faq .ans p + p { margin-top: 8px; }

/* ---------- 마지막 연락 유도 ---------- */
.cta-band { padding: 72px 0; background: var(--brand); color: var(--brand-ink); }
@media (min-width: 900px) { .cta-band { padding: 112px 0; } }
.cta-band p { margin-top: 16px; max-width: 32em; }
.cta-band .btn-row { margin-top: 32px; }

/* ---------- 문의 ---------- */
.panel { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
@media (min-width: 768px) { .panel { padding: 40px; } }
.form { display: grid; gap: 22px; }
.field label, .field .lab { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 700; }
.req, .opt { margin-left: 6px; font-size: 14px; font-weight: 500; color: var(--muted); }
.form input[type="text"], .form input[type="tel"], .form input[type="password"], .form input[type="date"], .form select, .form textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-btn);
  font: inherit; font-size: 17px;
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--brand); }
.choice { margin: 0; padding: 0; border: 0; min-width: 0; }
.choice legend { padding: 0; }
.choice-row { display: grid; gap: 10px; }
@media (min-width: 560px) { .choice-row { grid-template-columns: 1fr 1fr; } }
.choice .choice-item {
  display: flex; margin: 0; align-items: flex-start; gap: 12px; min-height: 52px; padding: 14px 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-btn);
  font-weight: 700; cursor: pointer;
}
.choice-item:hover { border-color: var(--muted); }
.choice-item:has(input:checked) { border-color: var(--brand); }
.choice-item input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--brand); }
.choice-item small { display: block; font-size: 14px; font-weight: 500; color: var(--muted); }
.hint { margin-top: 8px; font-size: 15px; color: var(--muted); }
.field[hidden] { display: none; }
.consent { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-card); font-size: 15px; color: var(--muted); }
.consent dl { margin: 0; display: grid; gap: 6px; }
.consent dl div { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px; }
.consent dt { font-weight: 700; color: var(--ink); }
.consent dd { margin: 0; }
.consent .refuse { margin-top: 10px; }
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; margin-top: 14px; padding-top: 12px; cursor: pointer; color: var(--ink); font-weight: 600; }
.check input { flex: none; width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--brand); }
.check a { font-weight: 500; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.form .btn { width: 100%; }

.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list .k { display: block; font-size: 14px; font-weight: 600; color: var(--muted); }
.contact-list a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-size: 20px; font-weight: 700; text-decoration: none; }
.contact-list a svg { width: 22px; height: 22px; }
.contact-list p { font-weight: 700; }
.contact-list small { display: block; color: var(--muted); font-weight: 500; font-size: 15px; }

/* 개인정보처리방침 */
.policy { max-width: 46em; }
.policy h2 { margin-top: 48px; font-size: clamp(20px, 2.6vw, 24px); }
.policy h2:first-child { margin-top: 0; }
.policy p, .policy li { color: var(--muted); }
.policy p { margin-top: 12px; }
.policy ul { margin: 12px 0 0; padding-left: 1.2em; }
.policy li + li { margin-top: 6px; }
.policy strong { color: var(--ink); }
.policy a { color: var(--ink); }

/* ---------- 바닥글 ---------- */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.f-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .f-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.f-grid .logo { color: var(--ink); }
.f-tag { margin-top: 8px; }
.f-title { margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.f-links { list-style: none; margin: 0; padding: 0; }
.f-links a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.f-links a:hover { color: var(--ink); text-decoration: underline; }
.biz { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.biz div { display: flex; gap: 6px; }
.biz dt { font-weight: 600; }
.biz dd { margin: 0; }
.copy { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 16px; }
.copy a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); font-weight: 600; }

/* ---------- 휴대폰 하단 고정 바 ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
}
.mbar .btn { min-height: 52px; padding: 0 12px; font-size: 16px; }
@media (min-width: 960px) { .mbar { display: none; } }

/* hidden 속성은 어떤 스타일보다 우선 */
[hidden] { display: none !important; }

/* ---------- 상품 목록 ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 48px 28px; }
.shop-msg { grid-column: 1 / -1; color: var(--muted); }
.shop-item { display: block; text-decoration: none; }
.shop-thumb {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.shop-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.shop-item:hover .shop-thumb img { transform: scale(1.03); }
.shop-item.is-soldout .shop-thumb img { opacity: .45; }
.shop-noimg { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 15px; font-weight: 600; }
.shop-badge {
  position: absolute; left: 12px; top: 12px; padding: 2px 10px; border-radius: 4px;
  background: var(--bg); color: var(--ink); font-size: 14px; font-weight: 700;
}
.shop-name { margin-top: 16px; font-size: 19px; }
.shop-item:hover .shop-name { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.shop-sum { margin-top: 4px; font-size: 15px; color: var(--muted); }
.shop-price { margin-top: 8px; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.shop-price small, .pd-price small { font-size: 15px; font-weight: 500; color: var(--muted); }

/* ---------- 상품 상세 ---------- */
.pd-section { padding-top: 32px; }
@media (min-width: 900px) { .pd-section { padding-top: 56px; } }
.pd-back { margin-bottom: 24px; }
.pd { display: grid; gap: 40px; }
@media (min-width: 900px) { .pd { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; } }
.pd-main {
  aspect-ratio: 1; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.pd-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin-top: 12px; }
.pd-thumb {
  aspect-ratio: 1; min-height: 48px; padding: 0; overflow: hidden; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
}
.pd-thumb[aria-current="true"] { border-color: var(--brand); outline: 1px solid var(--brand); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-status {
  display: inline-block; margin-bottom: 12px; padding: 1px 10px; border: 1px solid var(--muted); border-radius: 4px;
  font-size: 14px; font-weight: 700; color: var(--muted);
}
.pd-info h1 { font-size: clamp(28px, 4vw, 40px); }
.pd-price { margin-top: 16px; font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pd-summary { margin-top: 12px; color: var(--muted); }
.pd-cta { margin-top: 28px; }
.pd-note { margin-top: 16px; font-size: 15px; color: var(--muted); }
.pd-desc { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.pd-desc h2 { font-size: 22px; }
.pd-desc-body { max-width: 40em; margin-top: 16px; color: var(--muted); white-space: pre-line; }

/* ---------- 관리자 ---------- */
body.admin { padding-bottom: 0; }
.admin .header-in { flex-wrap: wrap; height: auto; min-height: var(--header-h); gap: 0 16px; }
.ad-badge {
  margin-left: .5em; padding: 2px 8px; border: 1px solid var(--line); border-radius: 4px;
  font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--muted);
}
.ad-nav { display: flex; align-items: center; flex-wrap: wrap; margin: 0 -12px; }
@media (max-width: 639px) { .ad-nav { width: calc(100% + 24px); border-top: 1px solid var(--line); } }
.ad-nav a, .ad-link {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px;
  background: none; border: 0; color: var(--muted); font: inherit; font-size: 16px; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.ad-nav a:hover, .ad-link:hover, .ad-nav a[aria-current="page"] { color: var(--ink); }
.ad-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }
.ad-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px;
  border-radius: 99px; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 800;
}
.ad-main { padding-top: 40px; padding-bottom: 96px; }
.ad-main h1 { font-size: clamp(26px, 4vw, 36px); }
.ad-view > .more { margin-bottom: 8px; }
.ad-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.ad-help { margin: 12px 0 24px; font-size: 15px; }
.ad-small { margin-top: 8px; font-size: 14px; }
.ad-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translateX(-50%);
  max-width: calc(100% - 40px); padding: 12px 20px; border-radius: var(--radius-btn);
  background: var(--brand); color: var(--brand-ink); font-size: 15px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.ad-login { max-width: 28em; margin: 24px auto 0; }
.ad-login .form { margin-top: 24px; }
.ad-err { padding-left: 12px; border-left: 3px solid var(--brand); font-weight: 600; }
.ad-empty { padding: 32px 0; color: var(--muted); list-style: none; }

.ad-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ad-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ad-row.is-hidden .ad-row-main { opacity: .55; }
.ad-order { display: flex; flex-direction: column; gap: 4px; }
.ad-icon {
  display: grid; place-items: center; width: 48px; height: 44px; padding: 0; cursor: pointer;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-btn); color: var(--ink);
}
.ad-icon:disabled { opacity: .3; cursor: default; }
.ad-row-main {
  display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; padding: 8px;
  border-radius: var(--radius-btn); text-decoration: none;
}
.ad-row-main:hover { background: var(--surface); }
.ad-thumb {
  display: grid; place-items: center; flex: none; width: 64px; height: 64px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font-size: 12px; color: var(--muted);
}
.ad-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ad-row-text { display: grid; flex: 1; min-width: 0; line-height: 1.5; }
.ad-row-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-row-text span { font-size: 15px; }
.ad-state {
  flex: none; padding: 2px 10px; border: 1px solid var(--line); border-radius: 99px;
  font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap;
}
.ad-state.s-on { color: var(--ink); border-color: var(--muted); }
.ad-state.s-new { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

.ad-edit { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 960px) { .ad-edit { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.ad-2col { display: grid; gap: 22px; }
@media (min-width: 560px) { .ad-2col { grid-template-columns: 1fr 1fr; } .choice-row.ad-3 { grid-template-columns: repeat(3, 1fr); } }
.ad-photos h2 { font-size: 20px; margin-bottom: 8px; }
.ad-upload { position: relative; overflow: hidden; margin-top: 8px; }
.ad-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ad-upload:focus-within { outline: 2px solid var(--brand); outline-offset: 3px; }
.ad-photo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.ad-photo { position: relative; overflow: hidden; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-card); }
.ad-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.ad-first {
  position: absolute; left: 8px; top: 8px; padding: 1px 8px; border-radius: 4px;
  background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 800;
}
.ad-photo-btns { display: flex; justify-content: space-between; }
.ad-photo-btns .ad-link { font-size: 14px; }
.ad-danger { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

.ad-inq { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.ad-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
.ad-card.is-done { opacity: .7; }
.ad-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ad-card-head strong { font-size: 19px; }
.ad-card-head .ad-small { margin: 0 0 0 auto; }
.ad-dl { display: grid; gap: 6px; margin: 16px 0 0; font-size: 15px; }
.ad-dl div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; }
.ad-dl dt { color: var(--muted); }
.ad-dl dd { margin: 0; overflow-wrap: anywhere; }
.ad-msg { margin-top: 16px; padding: 16px; background: var(--bg); border-radius: var(--radius-btn); white-space: pre-line; }
.ad-card .btn-row { margin-top: 16px; }
.ad-card .btn { min-height: 48px; font-size: 15px; }

/* ---------- 회원가입 · 내 페이지 ---------- */
/* 카카오 로그인 버튼 색은 카카오 로그인 디자인 가이드의 지정 색 (사이트 토큰과 별개) */
.btn-kakao { background: #fee500; color: rgba(0, 0, 0, .85); width: 100%; max-width: 22em; }
.btn-kakao:hover { filter: brightness(.97); }
.kakao-symbol { width: 20px; height: 20px; }
.acc-msg { margin-bottom: 24px; padding-left: 12px; border-left: 3px solid var(--brand); font-weight: 600; }
.acc-guest { max-width: 34em; }
.acc-guest h2 { font-size: clamp(22px, 3vw, 28px); }
.acc-guest .muted { margin: 12px 0 24px; }
.acc-small { margin-top: 12px; font-size: 14px; }
.acc-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .acc-grid { grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; } }
.acc-h2 { font-size: 22px; margin-bottom: 16px; }
.acc-inq { margin: 0 0 24px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.acc-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.acc-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.acc-item-head .acc-small { margin: 0 0 0 auto; }
.acc-text { margin-top: 10px; color: var(--muted); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.acc-quotes { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.acc-quote {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 16px;
  border: 1px solid var(--muted); border-radius: var(--radius-btn); text-decoration: none; font-weight: 600;
}
.acc-quote:hover { border-color: var(--brand); }
.acc-quote strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.acc-empty { padding: 24px 0; color: var(--muted); list-style: none; }
.acc-profile .form { margin-top: 16px; }
.acc-profile .form .btn { width: 100%; }
.acc-out { display: flex; gap: 4px; margin: 20px -12px 0; padding-top: 12px; border-top: 1px solid var(--line); }
.member-note { margin-bottom: 20px; font-size: 15px; color: var(--muted); }
.member-note a:not(.btn) { color: var(--ink); font-weight: 700; }
.member-note { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.member-kakao { margin-top: 12px; }
.member-note .btn-kakao { color: rgba(0, 0, 0, .85); }

/* ---------- 견적서 ---------- */
.quote-sec { padding-top: 40px; }
.quote-tools { margin-bottom: 24px; }
.quote-msg { color: var(--muted); }
/* 종이 문서처럼: 밝은 바탕(--brand) + 어두운 글자(--brand-ink) */
.quote-doc {
  max-width: 820px; padding: 32px 20px; border-radius: var(--radius-card);
  background: var(--brand); color: var(--brand-ink); font-size: 16px; line-height: 1.6;
}
@media (min-width: 768px) { .quote-doc { padding: 56px; } }
.q-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 20px; border-bottom: 2px solid var(--brand-ink); }
.q-head h1 { font-size: clamp(28px, 4vw, 36px); letter-spacing: .3em; }
.q-meta { margin: 0; display: grid; gap: 2px; font-size: 14px; }
.q-meta div, .q-from div { display: flex; gap: 12px; }
.q-meta dt, .q-from dt { min-width: 5.5em; opacity: .7; }
.q-meta dd, .q-from dd { margin: 0; font-weight: 600; }
.q-parties { display: grid; gap: 24px; margin: 28px 0; }
@media (min-width: 640px) { .q-parties { grid-template-columns: 1fr 1fr; } }
.q-label { margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; opacity: .7; }
.q-to { font-size: 20px; }
.q-title { margin-top: 4px; }
.q-from { margin: 0; display: grid; gap: 2px; font-size: 15px; }
.q-tel { text-decoration: none; font-variant-numeric: tabular-nums; }
.quote-doc .todo { color: var(--brand-ink); border-color: var(--brand-ink); opacity: .7; }
.q-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.q-table th, .q-table td { padding: 12px 8px; border-bottom: 1px solid currentColor; text-align: right; }
.q-table thead th { font-size: 13px; opacity: .7; border-bottom-width: 1px; }
.q-table th:first-child, .q-table td:first-child { text-align: left; }
.q-table tbody th { font-weight: 600; }
.q-table tbody tr th, .q-table tbody tr td { border-bottom-color: rgba(14, 16, 19, .15); }
@media (max-width: 559px) {
  .q-table thead { display: none; }
  .q-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid rgba(14, 16, 19, .15); }
  .q-table tbody th, .q-table tbody td { padding: 0; border: 0; }
  .q-table tbody th { grid-column: 1 / -1; }
  .q-table tbody td:nth-child(2)::after { content: '개'; }
  .q-table tbody td:nth-child(2), .q-table tbody td:nth-child(3) { text-align: left; font-size: 14px; opacity: .75; }
  .q-table tbody td:nth-child(3) { grid-column: 1; }
  .q-table tbody td:nth-child(4) { grid-column: 2; grid-row: 2 / 4; align-self: center; font-weight: 700; }
}
.q-sum { margin: 20px 0 0 auto; max-width: 22em; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.q-sum div { display: flex; justify-content: space-between; gap: 16px; }
.q-sum dd { margin: 0; }
.q-sum .q-total { margin-top: 8px; padding-top: 12px; border-top: 2px solid var(--brand-ink); font-size: 22px; font-weight: 800; }
.q-note { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(14, 16, 19, .15); }
.q-note p:last-child { white-space: pre-line; }
.q-close { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(14, 16, 19, .15); text-align: center; font-size: 17px; font-weight: 600; }
.q-brand { display: inline-flex; align-items: center; gap: .22em; vertical-align: -.16em; }
.q-brand .logo-mark { width: 1.05em; height: 1.05em; color: var(--brand-ink); }
.q-brand .logo-mark .b { stroke: var(--brand); }
.q-brand .logo-w { font-weight: 500; color: var(--brand-ink); opacity: .6; }
.q-brand .logo-p { font-weight: 800; letter-spacing: .02em; }

@media print {
  @page { margin: 14mm; }
  body { background: #fff; padding: 0; }
  .site-header, .site-footer, .mbar, .quote-tools, .skip-link { display: none !important; }
  .quote-sec { padding: 0; }
  .quote-doc { max-width: none; padding: 0; border-radius: 0; background: #fff; }
}

/* ---------- 관리자: 견적서·알림 ---------- */
.ad-qlinks { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ad-qlinks a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; }
.ad-items { margin: 0; padding: 0; border: 0; min-width: 0; }
.ad-item-head, .ad-item { display: grid; grid-template-columns: 1fr 4.5em 8em 48px; gap: 8px; align-items: center; }
.ad-item-head { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.ad-item-list { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 8px; }
.ad-item input { min-height: 48px; }
@media (max-width: 559px) {
  .ad-item-head { display: none; }
  .ad-item { grid-template-columns: 1fr 1fr 48px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .ad-item .it-name { grid-column: 1 / -1; }
}
.ad-qsum { margin: 0 0 0 auto; width: 100%; max-width: 20em; display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.ad-qsum div { display: flex; justify-content: space-between; color: var(--muted); }
.ad-qsum dd { margin: 0; }
.ad-qsum .is-total { padding-top: 8px; border-top: 1px solid var(--line); color: var(--ink); font-size: 20px; font-weight: 800; }
.ad-share { padding: 20px; border: 1px dashed var(--muted); border-radius: var(--radius-card); }
.ad-share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-share-row input { flex: 1 1 16em; min-width: 0; }
.ad-kakao { max-width: 40em; margin-top: 24px; }
.ad-kakao h2 { font-size: 20px; }
.ad-kakao .muted { margin-top: 8px; }
.ad-kstatus { margin: 20px 0; padding-left: 12px; border-left: 3px solid var(--brand); font-weight: 700; }

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