/* 색·글자·모서리 단계는 .claude/skills/site-design/SKILL.md (TDS 토큰, tossplace.com 실측) */
:root {
  --bg: #ffffff;
  --panel: #f9fafb;
  --strong: #191f28;
  --title: #333d4b;
  --fg: #333d4b;
  --sub: #4e5968;
  --dim: #6b7684;
  --line: rgba(0, 27, 55, 0.1);
  --tint: rgba(2, 32, 71, 0.05);
  --chip-fg: rgba(3, 18, 40, 0.7);
  --accent: #3182f6;
  --accent-weak: #e8f3ff;
  --dark-fill: #333d4b;
  --on-dark: #ffffff;
  --footer-bg: #333d4b;
  --footer-fg: #d1d6db;
  --footer-head: #ffffff;
  --font: "Toss Product Sans", Tossface, "SF Pro KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101013; --panel: #17171c; --strong: #ffffff; --title: #e4e4e5; --fg: #e4e4e5; --sub: #c3c3c6; --dim: #9e9ea4;
    --line: rgba(222, 222, 255, 0.19); --tint: rgba(217, 217, 255, 0.11); --chip-fg: rgba(242, 246, 255, 0.8);
    --accent: #3485fa; --accent-weak: rgba(49, 130, 246, 0.16); --dark-fill: #e4e4e5; --on-dark: #101013;
    --footer-bg: #17171c; --footer-fg: #9e9ea4; --footer-head: #e4e4e5;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101013; --panel: #17171c; --strong: #ffffff; --title: #e4e4e5; --fg: #e4e4e5; --sub: #c3c3c6; --dim: #9e9ea4;
  --line: rgba(222, 222, 255, 0.19); --tint: rgba(217, 217, 255, 0.11); --chip-fg: rgba(242, 246, 255, 0.8);
  --accent: #3485fa; --accent-weak: rgba(49, 130, 246, 0.16); --dark-fill: #e4e4e5; --on-dark: #101013;
  --footer-bg: #17171c; --footer-fg: #9e9ea4; --footer-head: #e4e4e5;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
img { max-width: 100%; }
h1, h2, h3 { color: var(--title); margin: 0; text-wrap: balance; }
h1 { font-size: 32px; line-height: 1.3; font-weight: 700; }
h2 { font-size: 32px; line-height: 1.3; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.6; font-weight: 600; }
p { margin: 0; }
.nowrap { white-space: nowrap; }

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* 헤더: tossplace.com 스크롤 뒤 모양. 60px 흰 바, 선 없음 */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand img { display: block; height: 24px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--sub); font-size: 15px; font-weight: 600; padding: 12px 10px; border-radius: 8px; white-space: nowrap; line-height: 20px; }
.nav a:hover { background: var(--tint); }
.nav .nav-cta { background: var(--accent-weak); color: var(--accent); border-radius: 10px; padding: 8px 12px; line-height: 24px; margin-left: 12px; }

/* 히어로: 고객 지원 페이지의 가운데 정렬 질문 + 칩 */
.hero { padding: 40px 0 56px; }
.hero-center { text-align: center; }
.hero-home { padding: 120px 0 96px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--dim); margin-bottom: 24px; }
.hero-center .breadcrumb { justify-content: center; }
.breadcrumb a { color: var(--dim); }
.breadcrumb a:hover { color: var(--sub); }
.h1-sub { color: var(--dim); font-weight: 600; }
.lead { font-size: 17px; line-height: 1.6; color: var(--sub); margin-top: 16px; }
.lead-strong { font-size: 20px; font-weight: 600; color: var(--title); }
.hero-meta { font-size: 14px; color: var(--dim); margin-top: 12px; }

/* 칩: 고객 지원 페이지 빠른 질문 칩 (15/600, 높이 40) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips-center { justify-content: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 9px 14px; border-radius: 100px;
  background: var(--tint); color: var(--chip-fg);
  font-size: 15px; font-weight: 600; line-height: 1.3;
}
.chip img { width: 20px; height: 20px; }
a.chip:hover, .chip-dark { background: var(--dark-fill); color: var(--on-dark); }
.chip-static { min-height: 32px; padding: 6px 12px; font-size: 14px; }
/* 홈 큰 칩: tossplace.com 첫 화면 업종 선택 (높이 80, 좌우 30) */
.chips-large { gap: 20px; margin-top: 48px; }
.chips-large .chip { min-height: 80px; padding: 0 30px; font-size: 24px; font-weight: 700; color: var(--dim); }

/* 섹션: 머리말 20/500 + 제목 32/700 */
.section { padding: 56px 0; }
.section-tight { padding-top: 0; }
.section-head { margin-bottom: 32px; }
.eyebrow { font-size: 20px; font-weight: 500; line-height: 1.6; color: var(--dim); }
.section-head .eyebrow { margin-bottom: 4px; }
.count { color: var(--dim); font-size: 0.6em; font-weight: 600; margin-left: 6px; }
.caption { font-size: 14px; color: var(--dim); margin-top: 16px; }
.text-link { display: inline-block; margin-top: 20px; font-size: 17px; font-weight: 600; color: var(--sub); }
.text-link:hover { color: var(--title); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-gap-lg { gap: 48px 40px; }

/* 패널: 흰 바탕 위 옅은 회색 면, 모서리 16 */
.panel { background: var(--panel); border-radius: 16px; padding: 28px 24px 20px; min-width: 0; }
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.panel-head img { width: 32px; height: 32px; }
.panel-label { font-size: 14px; font-weight: 500; color: var(--dim); line-height: 1.4; }
.panel-head h3 { font-size: 20px; line-height: 1.4; }
.panel > h3 { font-size: 17px; margin-bottom: 4px; }

/* 목록 행 */
.rows { display: flex; flex-direction: column; margin: 0 -12px; }
.rows-wide { max-width: 720px; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; color: inherit; }
.row:hover { background: var(--tint); }
.row-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.row-title { font-size: 17px; font-weight: 600; color: var(--title); line-height: 1.5; }
.row-sub { font-size: 14px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-end { font-size: 14px; color: var(--sub); white-space: nowrap; font-variant-numeric: tabular-nums; }

.avatar {
  flex: none; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--tint); color: var(--sub); font-size: 17px; font-weight: 700;
}
.avatar-s { width: 36px; height: 36px; font-size: 14px; }
.avatar-l { width: 80px; height: 80px; font-size: 32px; background: var(--accent-weak); color: var(--accent); }

/* 비교표 */
.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.compare th { text-align: left; font-size: 14px; font-weight: 500; color: var(--dim); padding: 0 16px 12px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.compare td { padding: 20px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--sub); }
.compare th:first-child, .compare td:first-child { padding-left: 0; }
.compare th:last-child, .compare td:last-child { padding-right: 0; }
.compare .num { text-align: right; }
.compare small { display: block; font-size: 13px; color: var(--dim); }
.compare td:first-child { min-width: 260px; max-width: 360px; }
.cell-store { display: flex; align-items: center; gap: 12px; color: inherit; }
.cell-store b { display: block; font-size: 17px; font-weight: 600; color: var(--title); }
.cell-store:hover b { color: var(--accent); }
.cell-desc { font-size: 14px; color: var(--dim); margin: 6px 0 0 48px; }
.menu-cell { min-width: 220px; }
.menu-cell span { display: block; }
.menu-cell em { font-style: normal; color: var(--title); font-weight: 600; }

/* 배너: 사장님 스토리 하단 띠처럼 옅은 면 + 버튼 */
.banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--panel); border-radius: 24px; padding: 40px; }
.banner-title { font-size: 24px; font-weight: 700; color: var(--title); line-height: 1.4; margin-top: 4px; }
.banner-text { font-size: 16px; color: var(--sub); margin-top: 8px; max-width: 600px; }
.button { flex: none; display: inline-flex; align-items: center; height: 48px; padding: 0 20px; border-radius: 12px; background: var(--accent); color: #ffffff; font-size: 17px; font-weight: 600; }
.button:hover { filter: brightness(0.95); }

/* 타일: 사장님 스토리 카드 (그림 타일 + 14/500 라벨 + 20/600 제목) */
.tile { display: flex; flex-direction: column; gap: 8px; color: inherit; }
.tile-art { display: grid; place-items: center; aspect-ratio: 3 / 2; border-radius: 16px; background: var(--accent-weak); margin-bottom: 8px; transition: transform 0.2s; }
.tile:hover .tile-art { transform: scale(1.02); }
.tile-label { font-size: 14px; font-weight: 500; color: var(--dim); }
.tile-title { font-size: 20px; font-weight: 600; color: var(--sub); line-height: 1.6; }

/* 매장 페이지 */
.store-hero { display: flex; gap: 28px; align-items: flex-start; }
.store-hero-text { min-width: 0; }
.store-hero .eyebrow { font-size: 17px; margin-bottom: 4px; }
.store-hero .lead { margin-top: 12px; }
.store-hero .lead-strong { margin-top: 16px; }
.store-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.menu-col h2 { font-size: 24px; margin-bottom: 8px; }
.menu-cat { font-size: 17px; font-weight: 600; color: var(--dim); margin: 32px 0 4px; }
.menu { list-style: none; margin: 0; padding: 0; }
.menu li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--sub); }
.menu-name { flex: 1; min-width: 0; }
.menu-thumb { flex: none; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--tint); }
.price { white-space: nowrap; color: var(--title); font-weight: 600; font-variant-numeric: tabular-nums; }
.store-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 76px; }
.icon-title { display: flex; align-items: center; gap: 6px; }
.facts { margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; }
.facts div { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 8px; font-size: 15px; }
.facts dt { color: var(--dim); display: flex; align-items: flex-start; gap: 4px; }
.facts dt img { margin-top: 4px; }
.facts dd { margin: 0; color: var(--sub); }
.facts.hours dd { font-variant-numeric: tabular-nums; }

/* 안내 블록 (선정 기준 페이지) */
.info h3 { font-size: 24px; line-height: 1.4; font-weight: 700; margin: 4px 0 12px; }
.info .eyebrow { font-size: 17px; }
.info p:last-child { font-size: 17px; color: var(--sub); }

/* 푸터: tossplace.com 진한 회색 */
.site-footer { background: var(--footer-bg); color: var(--footer-fg); margin-top: 40px; }
.footer-inner { display: flex; flex-direction: column; gap: 32px; padding-top: 50px; padding-bottom: 70px; }
.footer-cols { display: flex; gap: 80px; flex-wrap: wrap; }
.footer-cols > div { display: flex; flex-direction: column; gap: 10px; }
.footer-head { font-size: 17px; font-weight: 700; color: var(--footer-head); margin-bottom: 4px; }
.footer-cols a { font-size: 14px; font-weight: 600; color: var(--footer-fg); }
.footer-cols a:hover { color: var(--footer-head); }
.footer-note { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.6; max-width: 760px; }
.footer-logo { height: 18px; width: auto; opacity: 0.6; }

/* 로고: 테마마다 다른 파일 (리소스 센터 원본) */
.on-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .on-dark { display: block !important; }
  :root:not([data-theme="light"]) .on-light { display: none !important; }
}
:root[data-theme="dark"] .on-dark { display: block !important; }
:root[data-theme="dark"] .on-light { display: none !important; }

@media (max-width: 760px) {
  h1, h2 { font-size: 26px; }
  h3 { font-size: 18px; }
  .hero { padding: 24px 0 40px; }
  .hero-home { padding: 64px 0 56px; }
  .lead { font-size: 16px; }
  .eyebrow { font-size: 17px; }
  .br-wide { display: none; }
  .section { padding: 40px 0; }
  .grid-2, .grid-3, .store-layout { grid-template-columns: minmax(0, 1fr); }
  .grid-gap-lg { gap: 32px; }
  .store-hero { flex-direction: column; gap: 16px; }
  .avatar-l { width: 64px; height: 64px; font-size: 26px; }
  .store-side { position: static; }
  .banner { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .chips-large { gap: 12px; }
  .chips-large .chip { min-height: 56px; padding: 0 22px; font-size: 18px; }
  /* 비교표: 모바일에서는 매장마다 세로로 쌓는다 */
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .compare tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .compare td, .compare td:first-child { border: 0; padding: 2px 0; min-width: 0; max-width: none; }
  .compare .num { text-align: left; }
  .compare td.menu-cell, .compare td[data-label] { padding-left: 48px; font-size: 14px; }
  .compare td.menu-cell { margin-top: 8px; }
  .compare td[data-label]::before { content: attr(data-label) " "; color: var(--dim); margin-right: 4px; }
  .compare td[data-label] small { display: inline; margin-left: 4px; }
  .nav a:not(.nav-cta) { display: none; }
  .nav .nav-cta { margin-left: 0; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* 리소스 센터 3D 그래픽 */
.hero-art { display: block; width: 104px; height: 104px; margin: 0 auto 24px; }
.tile-art img { width: 160px; height: 160px; }
.info-art { display: block; width: 56px; height: 56px; margin-bottom: 16px; }
.panel-head img { width: 40px; height: 40px; }
