:root {
  --paper: oklch(97% 0.012 80);
  --paper-2: oklch(93.5% 0.02 75);
  --ink: oklch(25% 0.025 50);
  --ink-soft: oklch(45% 0.02 55);
  --line: oklch(86% 0.02 70);
  --accent: oklch(55% 0.14 40);       /* 에스프레소 테라코타 */
  --accent-ink: oklch(98% 0.01 80);
  --accent-soft: oklch(92% 0.04 45);
  --wood: oklch(62% 0.07 60);
  --wood-dark: oklch(45% 0.06 55);
  --glass: oklch(90% 0.03 210);
  --warn: oklch(60% 0.13 30);

  --radius: 14px;
  --font: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  word-break: keep-all;
}

h1, h2, h3, p { margin: 0; text-wrap: pretty; }

/* ---------- 상단 ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px 6px 10px 10px;
  background: var(--accent);
  box-shadow: inset 0 -6px 0 oklch(45% 0.12 40);
}

.draft-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
}

/* ---------- 업종 선택 (홈) ---------- */
.picker {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.picker-title {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.picker-lede {
  margin-top: 12px;
  font-size: 16px;
  color: var(--ink-soft);
}

.industry-grid {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.industry-card {
  width: 100%;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: oklch(99% 0.006 80);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.industry-card:hover { border-color: var(--accent); }
.industry-card:active { transform: translateY(1px); }
.industry-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.industry-card[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.industry-emoji { font-size: 26px; line-height: 1; }
.industry-name { font-size: 16px; font-weight: 700; }

@media (max-width: 640px) {
  .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .picker { padding-top: 24px; }
}

/* ---------- 히어로 (drafts/home-v1.html) ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.22;
  letter-spacing: -0.035em;
  font-weight: 800;
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  margin-top: 22px;
  max-width: 30em;
  font-size: 17px;
  color: var(--ink-soft);
}

.lede strong { color: var(--ink); font-weight: 700; }

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 20px;
  margin-top: 34px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}

.cta:hover { background: var(--accent); }
.cta:hover .cta-arrow { transform: translateX(3px); }
.cta:active { transform: translateY(1px); }
.cta:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.cta-arrow { transition: transform .15s ease; }

.cta-note { font-size: 14px; color: var(--ink-soft); }

.status {
  margin-top: 16px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

/* ---------- 카페 장면 ---------- */
.scene-wrap { margin: 0; }

.scene-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.scene-q { font-weight: 700; font-size: 15px; }

.pace {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--paper-2);
}

.pace button {
  min-height: 36px;
  min-width: 52px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.pace button[aria-checked="true"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 2px oklch(30% 0.03 50 / .15);
}

.pace button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.scene {
  position: relative;
  height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.sky {
  position: absolute;
  inset: 0 0 64px 0;
  background: linear-gradient(oklch(95% 0.02 85), oklch(93% 0.025 75));
}

.shop {
  position: absolute;
  left: 50%;
  bottom: 64px;
  width: 62%;
  height: 228px;
  transform: translateX(-46%);
  background: oklch(96% 0.015 80);
  border: 2px solid var(--wood-dark);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

.awning {
  position: absolute;
  top: -2px;
  left: -14px;
  right: -14px;
  height: 34px;
  border-radius: 4px 4px 0 0;
  background: repeating-linear-gradient(90deg, var(--accent) 0 22px, var(--accent-soft) 22px 44px);
  box-shadow: 0 6px 0 -2px oklch(40% 0.05 50 / .18);
}

.sign {
  position: absolute;
  top: 44px;
  left: 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--wood-dark);
}

.window {
  position: absolute;
  left: 16px;
  right: 76px;
  top: 70px;
  bottom: 18px;
  background: var(--glass);
  border: 3px solid var(--wood);
  border-radius: 4px;
  overflow: hidden;
}

.counter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22px;
  background: var(--wood);
}

.seats {
  position: absolute;
  inset: 10px 12px 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 4px 6px;
}

.seat {
  position: relative;
  min-height: 0;
}

.seat::before {           /* 테이블 */
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 6px;
  border-radius: 3px;
  background: var(--wood-dark);
}

.seat .guest {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 16px;
  height: 30px;
  margin-left: -8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
}

.seat.taken .guest { opacity: 1; transform: none; }

.door {
  position: absolute;
  right: 14px;
  bottom: 0;
  width: 48px;
  height: 120px;
  background: var(--wood);
  border: 3px solid var(--wood-dark);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.door::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 52px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--paper);
}

.sidewalk {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: oklch(88% 0.015 70);
  border-top: 2px solid oklch(80% 0.02 70);
}

/* 사람 모양: 머리 + 몸 */
.person {
  display: block;
  width: 16px;
  height: 30px;
  background:
    radial-gradient(circle at 50% 5px, var(--c, var(--ink)) 5px, transparent 5.5px),
    linear-gradient(var(--c, var(--ink)), var(--c, var(--ink))) 50% 100% / 12px 18px no-repeat;
  border-radius: 0 0 4px 4px;
}

.walkers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.walker {
  position: absolute;
  bottom: 22px;
  left: -24px;
  will-change: transform;
}

.queue-label {
  position: absolute;
  right: 12px;
  bottom: 70px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--warn);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transition: opacity .3s ease;
}

.queue-label.show { opacity: 1; }

figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
}

.example-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
}

/* ---------- 확인할 네 가지 ---------- */
.checks {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  border-top: 1px solid var(--line);
}

.checks h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  font-weight: 800;
  max-width: 20em;
}

.check-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}

.check-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px;
  padding: 22px 0;
  border-bottom: 1px dashed var(--line);
}

.num {
  font-weight: 800;
  font-size: 15px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.check-list h3 { font-size: 18px; letter-spacing: -0.015em; }
.check-list p { margin-top: 6px; color: var(--ink-soft); font-size: 15px; }

/* ---------- 하단 ---------- */
.foot {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- 반응형 ---------- */
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 16px;
  }
  .check-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .scene { height: 300px; }
  .shop { width: 78%; height: 196px; }
  .window { right: 66px; }
  .scene-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
