/* 명당 루프 (Feng Shui Loop) — 앱 아이콘 팔레트(LDP_round.svg): 옥 #1F6F63 · 먹 산 #2E4A42 · 해 #D6453A
   · 한지 #F1E8D6. 아이콘의 "옥색 고리 위 한지 점선 길"을 사이트 전체에 반복한다(히어로 테두리, 판 둘레,
   구획선). 번짐 없는 오프셋 그림자, 제목은 Song Myung(한 굵기뿐이라 400 고정). 구조는 wareureu 카드형
   컴포넌트, 값만 교체. 고정 라이트. 파생 색은 CLAUDE.md "디자인 근거" 에 비율 기록. */

@font-face {
  font-family: "Song Myung";
  src: url("./fonts/SongMyung-Regular-subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --jade: #1f6f63;       /* 옥 — 아이콘 고리. 한지 위 4.91:1, 한지 글자 4.91:1 */
  --ink: #2e4a42;        /* 먹 산 — 본문·외곽선. 한지 위 7.94:1 */
  --sun: #d6453a;        /* 해 — 장식 전용(한지 위 3.62:1 미달이라 글자에 쓰지 않는다) */
  --hanji: #f1e8d6;      /* 한지 — 바탕 */
  --bg: #f1e8d6;
  --ink-soft: #4b6258;   /* 먹 85% + 한지 — 한지 위 5.41:1, surface-soft 위 4.86:1 */
  --muted: #4b6258;
  --accent: #1f6f63;
  --accent-strong: #2e4a42;
  --surface: #f1e8d6;
  --surface-soft: #e0decd; /* 옥 8% + 한지 — 먹 글자 7.13:1 */
  --line: #2e4a42;
  --road: rgb(31 111 99 / 45%); /* 옥 45% — 점선 구획선(장식) */
  --rule: rgb(46 74 66 / 18%);  /* 먹 18% — 표 칸선(장식) */
  --shadow: 4px 4px 0 #2e4a42;
  --shadow-sm: 3px 3px 0 #2e4a42;
  --display: "Song Myung", "Apple SD Gothic Neo", serif;
  --body: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  font-synthesis: none;
}

a {
  color: var(--ink);
  text-decoration-color: var(--jade);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--jade);
  outline-offset: 3px;
}

.site-header {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 22px;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 2px solid var(--line);
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--jade);
  text-decoration-thickness: 2px;
}

main {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

/* 히어로 — 아이콘의 옥색 고리. 안쪽 한지 점선이 영웅이 도는 길이다. */
.hero {
  position: relative;
  overflow: hidden;
  margin: 12px 0 8px;
  padding: 48px 44px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--jade);
  color: var(--hanji);
  border: 2.5px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 3px dashed var(--hanji);
  border-radius: 18px;
  pointer-events: none;
}

.hero > * {
  position: relative;
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  border: 2.5px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: block;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.25;
  margin: 0 0 16px;
}

.hero p.lead {
  font-size: clamp(16px, 2.2vw, 18px);
  max-width: 540px;
  margin: 0 0 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hanji);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.badge::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sun);
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--line);
}

.btn-primary {
  background: var(--hanji);
  color: var(--ink);
}

.btn-ghost {
  background: var(--jade);
  color: var(--hanji);
  border-color: var(--hanji);
}

.store-note {
  font-size: 13.5px;
  margin: 14px 0 0;
}

/* 판 그림 — 7×7. 둘레 24칸 = 길(옥, 한지 점선), 안쪽 5×5 = 타일 자리. 규칙 설명용 도식. */
.board {
  --cell: 40px;
  display: grid;
  grid-template-columns: repeat(7, var(--cell));
  grid-auto-rows: var(--cell);
  gap: 3px;
  padding: 10px;
  background: var(--hanji);
  border: 2.5px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  width: max-content;
}

.board i {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-style: normal;
}

.board .r,
.board .g {
  background: var(--jade);
}

.board .r.h::after,
.board .r.v::after {
  content: "";
  position: absolute;
  background: var(--hanji);
  border-radius: 2px;
}

.board .r.h::after {
  width: 44%;
  height: 3px;
}

.board .r.v::after {
  width: 3px;
  height: 44%;
}

.board .f {
  background: var(--sun);
}

.board .f::after {
  content: "";
  width: 34%;
  height: 34%;
  border-radius: 50%;
  background: var(--hanji);
}

/* 길손 — 아이콘의 나그네처럼 한지 얼굴 + 먹 테두리 */
.board .g::after {
  content: "";
  width: 52%;
  height: 52%;
  border-radius: 50%;
  background: var(--hanji);
  border: 2.5px solid var(--ink);
}

.board .s {
  background: var(--surface-soft);
  border: 1.5px dashed var(--road);
}

.board .t {
  background: var(--hanji);
  border: 2px solid var(--line);
  color: var(--ink);
  font-family: var(--display);
  font-size: calc(var(--cell) * 0.5);
  line-height: 1;
}

.board .t.w2 {
  font-size: calc(var(--cell) * 0.34);
  letter-spacing: -0.02em;
}

.hero-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-art .board {
  --cell: clamp(30px, 4.2vw, 44px);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend .sw {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid var(--hanji);
}

.legend .sw-road { background: var(--jade); }
.legend .sw-fire { background: var(--sun); }
.legend .sw-hero { background: var(--hanji); border-color: var(--ink); border-radius: 50%; }
.legend .sw-slot { background: var(--surface-soft); }

.art-note {
  font-size: 12.5px;
  margin: 0;
  text-align: center;
}

/* 구획선 — 아이콘의 점선 길 */
section {
  padding: 52px 0;
  border-top: 3px dashed var(--road);
}

.hero + section {
  border-top: 0;
}

section h2 {
  font-size: clamp(27px, 3.4vw, 36px);
  line-height: 1.3;
  margin: 0 0 8px;
}

section > p.section-lead {
  color: var(--muted);
  max-width: 660px;
  margin: 0 0 28px;
}

.eyebrow {
  display: block;
  color: var(--jade);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}

/* 한 바퀴의 흐름 — 세 장면 */
.loop {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.loop-step {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 번호 — 옥색 고리 + 한지 점선(아이콘 축소판) */
.step-no {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--jade);
  color: var(--hanji);
  border: 2px solid var(--line);
  outline: 1.5px dashed var(--hanji);
  outline-offset: -6px;
  font-family: var(--display);
  font-size: 19px;
}

.loop-step h3 {
  font-size: 22px;
  margin: 0;
}

.loop-step p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* 시너지 — 타일 조합 미니 도식 */
.combo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.combo {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.combo-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.combo-row .t {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--hanji);
  border: 2px solid var(--line);
  font-family: var(--display);
  font-size: 21px;
  line-height: 1;
}

.combo-row .t.w2 {
  font-size: 15px;
}

.combo-row .arrow {
  color: var(--jade);
  font-weight: 700;
  font-size: 18px;
  margin: 0 4px;
}

.combo-row .result {
  display: inline-grid;
  place-items: center;
  min-width: 56px;
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--jade);
  color: var(--hanji);
  border: 2px solid var(--line);
  font-family: var(--display);
  font-size: 19px;
  line-height: 1;
}

.combo h3 {
  font-size: 20px;
  margin: 0;
}

.combo p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
}

.section-note {
  color: var(--muted);
  font-size: 13px;
  margin: 16px 0 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.feature-card {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 22px;
  border-top-width: 10px;
  border-top-color: var(--jade);
}

.feature-card.is-ink { border-top-color: var(--ink); }
.feature-card.is-sun { border-top-color: var(--sun); }

.feature-card h3 {
  font-size: 22px;
  margin: 0 0 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.principle {
  background: var(--surface-soft);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.principle strong {
  display: block;
  margin-bottom: 4px;
}

.principle span {
  color: var(--muted);
  font-size: 14px;
}

.faq-list details {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.faq-list details[open] {
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
}

.faq-list p {
  color: var(--ink);
  margin: 10px 0 0;
  font-size: 14.5px;
}

.contact-card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 24px;
  text-align: center;
  max-width: 520px;
}

.contact-card a {
  font-size: 18px;
  font-weight: 700;
}

.support-form {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 24px;
  display: grid;
  gap: 16px;
  max-width: 520px;
}

.support-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

.support-form select,
.support-form input,
.support-form textarea {
  background: var(--surface-soft);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  font-family: inherit;
}

.support-form button {
  justify-self: start;
  background: var(--jade);
  color: var(--hanji);
  border: 2px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 11px 24px;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
}

.support-form button:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--line);
}

.support-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

#form-status {
  font-size: 13.5px;
  color: var(--muted);
  min-height: 1.2em;
  margin: 0;
}

.form-note {
  color: var(--muted);
  font-size: 14px;
  max-width: 640px;
}

footer {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 3px dashed var(--road);
  padding: 28px 0 44px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

footer a {
  color: var(--muted);
}

/* Breadcrumb — 화면 표시와 BreadcrumbList 스키마를 1:1로 맞춘다. */
.breadcrumb {
  font-size: 13px;
  line-height: 1.5;
}

.breadcrumb ol {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 4px 0 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
}

.breadcrumb a {
  color: inherit;
}

/* 방침 본문 — 긴 글이라 읽기 폭을 좁힌다. */
.policy {
  max-width: 780px;
  padding: 28px 0 48px;
}

.policy h1 {
  font-size: clamp(32px, 4.8vw, 44px);
  margin: 0 0 6px;
}

.policy .meta-date {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 28px;
}

.policy h2 {
  font-size: 22px;
  margin: 32px 0 8px;
  padding-top: 20px;
  border-top: 2px dashed var(--road);
}

.policy ol,
.policy ul {
  padding-left: 1.4em;
}

.policy li + li {
  margin-top: 6px;
}

.policy table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 2px solid var(--line);
  font-size: 14px;
  margin: 12px 0;
  display: block;
  overflow-x: auto;
}

.policy th,
.policy td {
  border: 1px solid var(--rule);
  padding: 9px 11px;
  text-align: left;
  vertical-align: top;
}

.policy th {
  background: var(--surface-soft);
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 34px 24px;
    gap: 32px;
  }

  .loop {
    grid-template-columns: 1fr;
  }

  .combo-grid {
    grid-template-columns: 1fr;
  }

  .hero-art .board {
    --cell: clamp(28px, 8.2vw, 44px);
  }
}

@media (max-width: 380px) {
  .hero-art .board {
    --cell: 28px;
    gap: 2px;
    padding: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
