/*
  달무리 랜딩 — 공용 스타일

  색 값은 달무리 본 저장소의 토큰(packages/tokens/src/colors.ts)에서 옮겨 왔습니다.
  여기는 빌드 없는 정적 페이지라 토큰 패키지를 import 할 수 없어 값만 복사합니다.
  본 저장소의 토큰을 바꾸면 여기도 함께 바꾸세요.
*/
:root {
  --brand: #6f9838;
  --brand-strong: #5b7d2e;
  --brand-soft: #edf2e6;
  --ink: #16202c;
  --sub: #6b7686;
  --slate: #4a5568;
  --line: #ccd4e0;
  --canvas: #f7f7f3;
  --table-head: #e0e9dd;
  --white: #ffffff;
  --ok: #1f7a52;
  --ok-soft: #e4f3ec;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --logo-navy: #082f66;
  --logo-amber: #ffc83d;

  --radius: 12px;
  --max: 1080px;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
    'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-strong);
}

h1,
h2,
h3 {
  line-height: 1.35;
  margin: 0;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── 머리 ─────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--logo-navy);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

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

.site-nav a {
  color: var(--slate);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  background: var(--brand-soft);
  color: var(--ink);
}

.site-nav a.nav-cta {
  background: var(--brand);
  color: var(--white);
  margin-left: 6px;
  padding: 7px 14px;
}

.site-nav a.nav-cta:hover {
  background: var(--brand-strong);
}

/* ── 첫 화면 ──────────────────────────────────── */

.hero {
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 64px;
}

.eyebrow {
  display: inline-block;
  color: var(--brand-strong);
  background: var(--brand-soft);
  font-size: 14px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero p.lead {
  font-size: 19px;
  color: var(--slate);
  margin: 16px 0 28px;
  max-width: 680px;
}

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

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid var(--brand);
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brand-strong);
}

.btn-secondary {
  background: var(--white);
  color: var(--brand-strong);
}

/* ── 구역 ─────────────────────────────────────── */

section.block {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

section.block.alt {
  background: var(--canvas);
}

.block h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.block .desc {
  color: var(--sub);
  margin: 0 0 28px;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon svg {
  width: 20px;
  height: 20px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.steps li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.steps li::before {
  content: counter(step);
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-weight: 800;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.steps b {
  display: block;
  font-size: 17px;
}

.steps span {
  color: var(--slate);
  font-size: 15px;
}

/* 첫 화면의 요금 한 줄 안내 — 표는 pricing.html 에만 둡니다. */
.teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.teaser p {
  margin: 0;
  color: var(--slate);
  font-size: 17px;
}

.teaser b {
  color: var(--ink);
}

/* 도입 문의 */
.cta {
  background: var(--brand);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}

.cta h2 {
  font-size: 30px;
  font-weight: 800;
}

.cta p {
  margin: 10px 0 26px;
  font-size: 17px;
  opacity: 0.95;
}

.cta .actions {
  justify-content: center;
}

.cta .btn {
  border-color: var(--white);
}

.cta .btn-light {
  background: var(--white);
  color: var(--brand-strong);
}

.cta .btn-outline {
  background: transparent;
  color: var(--white);
}

/* ── 별도 페이지 머리 ─────────────────────────── */

.page-head {
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
  padding: 48px 0 36px;
}

.page-head h1 {
  font-size: 32px;
  font-weight: 800;
}

.page-head p {
  color: var(--sub);
  margin: 8px 0 0;
}

/* ── 요금 ─────────────────────────────────────── */

.price-card h3 {
  font-size: 20px;
}

/* .card p 보다 앞서야 해서 .price-card 를 붙입니다. */
.price-card .price-big {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  margin: 12px 0 4px;
}

.price-card .price-note {
  color: var(--sub);
  font-size: 14px;
  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 14px 0 6px;
}

th,
td {
  border: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
}

th {
  background: var(--table-head);
  font-weight: 700;
}

td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

ul.plain {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--slate);
  font-size: 15px;
}

ul.plain li + li {
  margin-top: 4px;
}

.stack > * + * {
  margin-top: 16px;
}

/* ── 바닥글 ───────────────────────────────────── */

.site-footer {
  background: var(--ink);
  color: #c9d1dc;
  padding: 40px 0 48px;
  font-size: 14px;
  line-height: 1.8;
}

.site-footer a {
  color: var(--white);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.footer-brand img {
  width: 28px;
  height: 28px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links a.strong {
  font-weight: 800;
  color: var(--logo-amber);
}

.biz p {
  margin: 0;
}

.biz .sep {
  color: #6b7686;
  margin: 0 8px;
}

.copy {
  margin-top: 18px;
  color: #8b95a6;
}

/* ── 약관·규정 문서 (이용약관 · 개인정보처리방침 · 환불 규정) ──────────
  같은 사람들이 운영하는 적정(jeokjung.com/terms · /privacy)의 법무 문서 틀과
  같은 모양입니다 — 로고만 있는 머리, 760px 본문, 장(h2)·조(h3) 제목, 한 줄
  바닥글과 「← 홈으로」. 크기·간격은 그쪽 legal.css 값을 그대로 옮겼고, 색은
  달무리 토큰으로 바꿨습니다. 세 쪽이 이 틀을 함께 쓰므로 함께 고치세요.

  다른 점 하나: 적정은 Tailwind 초기화 때문에 목록 번호가 안 보이지만, 여기는
  번호를 보입니다. 약관이 「제1항과 제2항에도 불구하고」처럼 항 번호로 서로를
  가리키기 때문입니다.
*/
.legal-page {
  min-height: 100dvh;
  background: var(--white);
  color: var(--ink);
}

.legal-top {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 clamp(20px, 5vw, 40px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.legal-home {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--logo-navy);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.legal-home img {
  width: 28px;
  height: 28px;
  display: block;
}

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 40px) 80px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
}

.legal h1,
.legal h2,
.legal h3 {
  line-height: inherit;
  color: var(--ink);
  scroll-margin-top: 80px;
}

.legal h1 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

/* 장 — 위에 선을 긋고 크게 */
.legal h2 {
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 800;
  margin: 44px 0 8px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* 조 */
.legal h3 {
  font-size: clamp(16px, 2.2vw, 18px);
  font-weight: 700;
  margin: 30px 0 10px;
}

.legal p {
  margin: 0 0 14px;
}

.legal ol,
.legal ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal li {
  margin: 5px 0;
}

.legal li ol,
.legal li ul {
  margin: 6px 0;
}

.legal a {
  color: var(--brand-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

.legal hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

.legal strong,
.legal b {
  font-weight: 700;
  color: var(--ink);
}

.legal table {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.legal td {
  vertical-align: top;
  /* 좁은 화면에서 메일 주소처럼 띄어쓰기 없는 긴 글자가 칸을 넘지 않게 합니다. */
  overflow-wrap: anywhere;
}

.legal-foot {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px clamp(20px, 5vw, 40px) calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--sub);
}

.legal-foot a {
  color: var(--slate);
  text-decoration: none;
  font-weight: 600;
}

.legal-foot a:hover {
  color: var(--ink);
}

/* ── 좁은 화면 ────────────────────────────────── */

@media (max-width: 860px) {
  .grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  /* 메뉴가 두 줄이 되어 화면을 많이 가리므로 좁은 화면에서는 따라다니지 않게 합니다. */
  .site-header {
    position: static;
  }

  .site-header .wrap {
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .site-nav a {
    padding: 4px 8px;
    font-size: 14px;
  }

  .site-nav a.nav-cta {
    margin-left: 4px;
    padding: 4px 10px;
  }

  html {
    scroll-padding-top: 0;
  }

  .hero {
    padding: 44px 0 40px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p.lead {
    font-size: 17px;
  }

  .grid,
  .grid.two,
  .steps {
    grid-template-columns: 1fr;
  }

  section.block,
  .cta {
    padding: 48px 0;
  }

  .cta h2 {
    font-size: 24px;
  }

  .page-head {
    padding: 36px 0 28px;
  }

  .page-head h1 {
    font-size: 26px;
  }

  .biz .sep {
    display: none;
  }

  .biz p span {
    display: block;
  }
}
