/* ─────────────────────────────────────────────
   나의 AI 옷장 — 소개·약관 사이트 공통 스타일
   (앱과 같은 버터크림 배경 · 짙은 초록 포인트 색 · 앱과 같은 IBM Plex 글씨체)
   빌드 과정 없이 그대로 쓰는 파일입니다.
   ───────────────────────────────────────────── */

/* 색·크기 값을 한곳에 모아 둔다 (앱의 src/theme/variables.css와 같은 색) */
:root {
  --bg: #fff8d9; /* 버터크림 배경 */
  --surface: #ffffff; /* 카드·표 배경 */
  --surface-muted: #f2ece3; /* 연한 베이지 칸 */
  --text: #17181a;
  --text-secondary: #3a3d42;
  --text-muted: #6f6a62;
  --border: #e6ded2;
  --primary: #1f5c4f; /* 짙은 초록 */
  --primary-soft: #e6efec;
  --warning: #a84d08;
  --warning-bg: #fdf1e4;
  --radius: 16px;
  --font: 'IBM Plex Sans KR', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif; /* 앱(src/theme/variables.css)과 같은 순서 */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all; /* 한국어 낱말 중간에서 줄이 끊기지 않게 */
  overflow-wrap: anywhere; /* 긴 주소·이메일은 넘치지 말고 끊기 */
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--primary);
}

strong,
b,
th {
  font-weight: 700;
}

/* 가운데 정렬된 본문 폭 (폰에서는 좌우 여백 16px) */
.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ───── 머리글 ───── */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 248, 217, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

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

.brand img {
  border-radius: 9px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  font-size: 15px;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 0;
}

.site-nav a[aria-current='page'] {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}

main {
  padding-top: 32px;
  padding-bottom: 56px;
}

/* ───── 제목 ───── */
h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
}

h1 {
  font-size: 28px;
  margin: 0 0 16px;
}

h2 {
  font-size: 21px;
  margin: 40px 0 12px;
}

h3 {
  font-size: 18px;
  margin: 28px 0 6px;
}

p {
  margin: 0 0 12px;
}

/* ───── 카드 (소개 화면) ───── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.hero {
  text-align: center;
  padding: 16px 0 8px;
}

.hero-icon {
  border-radius: 24px;
  box-shadow: 0 2px 10px rgba(107, 74, 58, 0.15);
}

.hero h1 {
  font-size: 34px;
  margin: 18px 0 6px;
}

.tagline {
  color: var(--text-muted);
  font-size: 18px;
  text-wrap: balance; /* 두 줄이 되면 길이를 비슷하게 (한 낱말만 남지 않게) */
}

.store-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 16px;
}

.store-badge strong {
  margin-left: 6px;
  color: #ffe58a;
}

.feature-list,
.price-list,
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  font-size: 22px;
}

.feature-list h3,
.price h3 {
  margin: 0 0 2px;
  font-size: 18px;
}

.feature-list p,
.price p {
  margin: 0;
  color: var(--text-secondary);
}

/* 요금: 넓은 화면에서는 3칸, 폰에서는 1칸 */
.price-list {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.price .amount {
  margin: 6px 0;
  color: var(--primary);
  font-size: 26px;
  font-weight: 700;
}

.price .amount span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

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

.link-card {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.link-card::after {
  content: '›';
  float: right;
  color: var(--text-muted);
}

/* ───── 약관 문서 ───── */
.doc ul,
.doc ol {
  margin: 0 0 14px;
  padding-left: 1.5em;
}

.doc li {
  margin-bottom: 6px;
}

.doc li::marker {
  color: var(--text-muted);
}

/* 표: 폰에서 넘치면 표만 옆으로 밀어서 본다 */
.table-wrap {
  overflow-x: auto;
  margin: 8px 0 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  min-width: 7em;
}

th {
  background: var(--surface-muted);
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* 중요 안내 상자 (계정 삭제 화면의 구독 해지 안내) */
.callout {
  margin: 20px 0 8px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--warning-bg);
  border: 1px solid #f2d3b3;
}

.callout h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--warning);
}

.callout p:last-child {
  margin-bottom: 0;
}

.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

/* ───── 바닥글 (사업자 정보) ───── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
  padding: 28px 0 36px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 14px;
}

.footer-links a {
  color: var(--text-secondary);
  font-weight: 500;
}

.biz {
  margin: 0;
  display: grid;
  gap: 2px;
}

.biz div {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
}

.biz dt {
  font-weight: 500;
  color: var(--text-secondary);
}

.biz dd {
  margin: 0;
}

.copyright {
  margin: 14px 0 0;
}

/* 폰 화면 */
@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 25px;
  }

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

  h2 {
    font-size: 20px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
