/* ==========================================================
   사주 사이트 공통 디자인 (모든 페이지가 같이 씀)
   색을 바꾸고 싶으면 아래 :root 의 값만 고치면 전체가 바뀐다.
   ========================================================== */
:root {
  /* 글꼴: 맑은 고딕 (윈도우). 맥·아이폰은 애플 고딕, 안드로이드는 기본 한글 글꼴로 대신 보여요 */
  --font: "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;

  --bg: #f5efe4;          /* 한지 느낌 배경 */
  --card: #fffdf8;
  --ink: #2a2420;         /* 먹색 글씨 */
  --muted: #7a6f66;
  --accent: #8b2e2e;      /* 인주(도장) 빨강 */
  --gold: #c9a24b;
  --line: #e6dccb;

  --wood: #3a8b4f;
  --fire: #c94a3a;
  --earth: #b8892e;
  --metal: #8a8f98;
  --water: #2f4f7f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 480px; margin: 0 auto; padding: 0 16px 40px; }

/* ---------- 머리말 / 꼬리말 ---------- */
.site-header { text-align: center; padding: 18px 0 6px; }
.site-header a { color: var(--accent); text-decoration: none; font-family: var(--font); font-weight: 700; font-size: 18px; }
.site-footer { text-align: center; font-size: 12px; color: var(--muted); padding: 24px 16px 32px; border-top: 1px solid var(--line); margin-top: 24px; }

/* ---------- 제목 ---------- */
h1, h2 { font-family: var(--font); text-align: center; margin: 0 0 8px; }
h1 { font-size: 26px; margin-top: 12px; }
h2 { font-size: 19px; }
.sub { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 20px; }

/* ---------- 카드 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(80, 60, 30, 0.06);
}

/* ---------- 입력 폼 ---------- */
label.title { display: block; font-weight: 700; margin: 18px 0 8px; font-size: 15px; }
label.title:first-child { margin-top: 0; }
input[type=text], input[type=date], input[type=time] {
  width: 100%; padding: 13px 14px; font-size: 16px;  /* 16px 미만이면 아이폰이 화면을 확대해버림 */
  border: 1px solid var(--line); border-radius: 10px; background: white; font-family: inherit;
}
input:focus { outline: 2px solid var(--gold); border-color: transparent; }

/* 라디오 버튼을 버튼처럼 보이게 */
.choices { display: flex; gap: 8px; }
.choices label { flex: 1; position: relative; }
/* display:none 으로 숨기면 '필수 선택' 경고창이 안 떠서 투명하게만 만든다 */
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; left: 50%; bottom: 0; }
.choices span {
  display: block; text-align: center; padding: 11px 0; border: 1px solid var(--line);
  border-radius: 10px; background: white; cursor: pointer; font-size: 15px;
}
.choices input:checked + span { background: var(--accent); color: white; border-color: var(--accent); }
.check { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ---------- 버튼 ---------- */
.btn {
  display: block; width: 100%; padding: 15px; margin-top: 22px;
  border: none; border-radius: 12px; font-size: 17px; font-weight: 700;
  background: var(--accent); color: white; cursor: pointer; font-family: inherit; text-align: center; text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn.gold { background: var(--gold); color: #2b2233; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); margin-top: 10px; }
.btn:disabled { opacity: 0.6; }

.error { color: #b00020; text-align: center; font-size: 14px; }
.info { text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- 사주팔자 표 ---------- */
.pillars { width: 100%; border-collapse: separate; border-spacing: 6px; text-align: center; table-layout: fixed; }
.pillars th { font-size: 12px; color: var(--muted); font-weight: 400; }
.pillars td { border-radius: 10px; padding: 10px 0 8px; color: white; }
.hanja { display: block; font-family: var(--font); font-size: 30px; font-weight: 700; line-height: 1.2; }
.kor { font-size: 11px; opacity: 0.9; }

/* 오행 색 (클래스 이름이 한글 오행) */
.목 { background: var(--wood); }
.화 { background: var(--fire); }
.토 { background: var(--earth); }
.금 { background: var(--metal); }
.수 { background: var(--water); }

/* ---------- 오행 막대 ---------- */
.bar-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 14px; }
.bar-row .label { width: 24px; font-weight: 700; }
.bar-track { flex: 1; height: 14px; background: #efe7d8; border-radius: 7px; overflow: hidden; }
.bar { height: 100%; border-radius: 7px; }
.bar-row .count { width: 32px; text-align: right; color: var(--muted); }

.tag { display: inline-block; color: white; border-radius: 6px; padding: 0 8px; margin-right: 6px; font-size: 13px; }

.lucky { display: flex; justify-content: space-around; text-align: center; font-size: 13px; color: var(--muted); }
.lucky b { display: block; font-size: 17px; color: var(--ink); }

/* ---------- 유료 유도 카드 ---------- */
.premium { background: #2b2233; color: #f3e9d2; text-align: center; border: none; }
.premium h2 { color: var(--gold); }
.premium ul { text-align: left; display: inline-block; margin: 6px 0 0; padding-left: 20px; }

/* ---------- 풀이 상품 목록 ---------- */
.menu { text-align: left; margin-top: 8px; }
.menu-group { font-size: 13px; color: var(--gold); font-weight: 700; margin: 16px 0 6px; }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: rgba(255,255,255,0.07); color: #f3e9d2; border: 1px solid rgba(201,162,75,0.35);
  border-radius: 12px; padding: 12px; margin-bottom: 8px; cursor: pointer; font-family: inherit;
}
.menu-item:active { transform: scale(0.98); }
.menu-emoji { font-size: 24px; flex-shrink: 0; }
.menu-text { flex: 1; min-width: 0; }
.menu-text b { display: block; font-size: 15px; }
.menu-text small { display: block; font-size: 12px; opacity: 0.8; line-height: 1.5; }
.menu-arrow { font-size: 22px; opacity: 0.6; }

/* ---------- 상품 안내 페이지 ---------- */
.product-head { text-align: center; margin-top: 8px; }
.product-emoji { font-size: 44px; }
.teaser { background: #fbf1dc; border-color: var(--gold); }
.teaser-label { font-size: 12px; font-weight: 700; color: var(--accent); margin: 0 0 4px; }
.teaser p:last-child { margin: 0; }
.includes { padding-left: 22px; margin: 8px 0; }
.includes li { margin-bottom: 12px; }
.includes b { display: block; }
.includes span { display: block; font-size: 14px; color: var(--muted); line-height: 1.6; }
.note { font-size: 13px; color: var(--muted); background: #f3ecdf; border-radius: 8px; padding: 8px 10px; margin: 4px 0 0; }
.for-whom { padding-left: 20px; margin: 4px 0; }
.sample { font-family: var(--font); font-size: 15.5px; background: #f8f3ea; border-left: 3px solid var(--gold); padding: 10px 14px; border-radius: 6px; }
.buy-info { display: flex; justify-content: space-around; text-align: center; font-size: 13px; color: var(--muted); }
.buy-info b { display: block; font-size: 16px; color: var(--ink); }
.free-badge { text-align: center; color: var(--accent); font-weight: 700; margin: 14px 0 -8px; }

/* ---------- 인생 흐름(대운) ---------- */
.flow { list-style: none; padding: 0; margin: 8px 0; }
.flow li { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-bottom: 1px dashed var(--line); border-radius: 10px; }
.flow li:last-child { border-bottom: none; }
.flow li.now { background: #fbf1dc; border: 1px solid var(--gold); }
.flow-age { width: 62px; flex-shrink: 0; font-size: 13px; color: var(--muted); }
.flow-age em { display: block; font-style: normal; font-size: 11px; color: white; background: var(--accent); border-radius: 4px; text-align: center; width: 34px; margin-top: 2px; }
.flow-gz { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.flow-gz span { color: white; font-family: var(--font); font-weight: 700; font-size: 15px; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 6px; }
.flow-text b { display: block; font-size: 15px; }
.flow-text small { color: var(--muted); font-size: 12.5px; line-height: 1.5; display: block; }

/* ---------- 운세 지표 (●●●○○) ---------- */
.scores { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.score { font-size: 12px; white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; }
.dots { display: inline-flex; gap: 2px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #e3d9c6; display: inline-block; }
.dots i.on { background: var(--muted); }
.dots.d4 i.on, .dots.d5 i.on { background: var(--accent); }
.issues { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.issues span { font-size: 11.5px; color: var(--accent); background: #f7e9e4; border-radius: 10px; padding: 1px 8px; }
.peaks { background: #fbf1dc; border-radius: 12px; padding: 10px 14px; margin: 10px 0; }
.peaks-head { margin: 0 0 4px; font-weight: 700; font-size: 14px; }
.peak { display: flex; justify-content: space-between; font-size: 14px; padding: 2px 0; }
.peak b { color: var(--accent); }

/* 차트 (AI 풀이 위 '한눈에 보기') */
.chart { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.chart th, .chart td { padding: 6px 2px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.chart th { color: var(--muted); font-weight: 400; font-size: 12px; }
.chart tr.now td { background: #fbf1dc; }
.chart .lbl { white-space: nowrap; font-weight: 700; width: 64px; }
.bar-cell { display: flex; align-items: center; gap: 6px; }
.mini-bar { height: 10px; border-radius: 5px; background: var(--muted); }
.mini-bar.hi { background: var(--accent); }
.mini-bar.lo { background: #d8cdb9; }
.chart .iss { font-size: 11.5px; color: var(--accent); }

/* ---------- 직업 칩 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.chips span { background: #f3ecdf; border-radius: 14px; padding: 4px 11px; font-size: 13.5px; }

/* ---------- AI 풀이 ---------- */
.reading { font-size: 15.5px; line-height: 1.9; }
.sec-title { font-family: var(--font); font-size: 18px; color: var(--accent); margin: 0 0 8px; }
.glossary { margin-top: 14px; padding: 10px 12px; background: #f6f0e4; border-radius: 10px; font-size: 13.5px; line-height: 1.65; color: #4a4038; }
.glossary-head { font-weight: 700; margin: 0 0 6px; color: var(--muted); font-size: 12.5px; }
.glossary p { margin: 0 0 6px; }
.glossary p:last-child { margin-bottom: 0; }
.glossary b { color: var(--ink); }
.hanja-sm { font-family: var(--font); color: var(--muted); font-size: 12px; margin-right: 2px; }

/* ---------- 로딩 화면 ---------- */
.loading {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(43, 34, 51, 0.94); color: #f3e9d2;
  flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px;
}
.loading.show { display: flex; }
.loading .spin { font-size: 64px; animation: spin 2.4s linear infinite; }
.loading p { font-size: 17px; margin-top: 18px; min-height: 1.7em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 토스트(잠깐 뜨는 알림) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%);
  background: var(--ink); color: white; padding: 10px 18px; border-radius: 20px; font-size: 14px;
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.toast.show { opacity: 1; }

/* ---------- 뒤로가기 ---------- */
.back-bar { margin: 6px 0 2px; }
.back-bar form { margin: 0; }
.back-btn {
  display: inline-flex; align-items: center; gap: 4px;
  height: 36px; padding: 0 14px 0 10px; border-radius: 18px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  font-family: inherit; font-size: 14px; font-weight: 700; text-decoration: none;
  box-shadow: 0 1px 4px rgba(80, 60, 30, 0.08);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.back-ic { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.back-btn:hover { background: #fdf8ef; border-color: var(--gold); }
.back-btn:active { transform: scale(0.97); }

/* 지표 설명 줄: 아이콘 하나하나가 중간에서 끊기지 않게 */
.legend span { white-space: nowrap; }

/* 단어가 중간에서 끊기지 않게 */
.nw { white-space: nowrap; }
body { word-break: keep-all; }

/* ---------- 결제 후 풀이 화면: 안내 상자 ---------- */
.ic { width: 18px; height: 18px; flex-shrink: 0; }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff8ec; border: 1px solid #f0d3a2; border-radius: 14px;
  padding: 16px; margin-bottom: 16px;
}
.notice.soft { background: var(--card); border-color: var(--line); margin-top: 8px; }
.notice-icon {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #fde6c4; color: #b86a00;
}
.notice.soft .notice-icon { background: #f3ecdf; color: var(--accent); }
.notice-icon .ic { width: 20px; height: 20px; }
.notice-body { flex: 1; min-width: 0; }
.notice-title { margin: 0 0 4px; font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.notice-text { margin: 0; font-size: 14px; color: #6b5a48; line-height: 1.65; }

/* 저장 버튼 (안내 상자·확인 창 공통) */
.save-row { display: flex; gap: 8px; margin-top: 12px; }
.save-chip {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 10px; border-radius: 10px; cursor: pointer;
  background: white; border: 1px solid #e4d6bf; color: var(--ink);
  font-family: inherit; font-size: 14px; font-weight: 700;
  transition: background 0.15s, border-color 0.15s;
}
.save-chip .ic { color: var(--accent); }
.save-chip:hover { background: #fdf8ef; border-color: var(--gold); }
.save-chip:active { transform: scale(0.98); }

/* ---------- 나가기 확인 창 ---------- */
.modal {
  display: none; position: fixed; inset: 0; z-index: 200; padding: 16px;
  background: rgba(30, 22, 16, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  align-items: center; justify-content: center;
}
.modal.show { display: flex; animation: fadeIn 0.18s ease-out; }
.modal.show .modal-box { animation: popIn 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(0.97); } }

.modal-box {
  width: 100%; max-width: 360px; background: var(--card); border-radius: 20px;
  padding: 28px 22px 18px; text-align: center;
  box-shadow: 0 20px 50px rgba(30, 20, 10, 0.25);
}
.modal-icon {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fde6c4; color: #b86a00;
}
.modal-icon .ic { width: 26px; height: 26px; }
.modal-title { margin: 0 0 8px; font-size: 19px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.modal-desc { margin: 0; font-size: 15px; line-height: 1.65; color: #5e5146; }
.modal-desc b { color: var(--accent); }

.modal-save { margin: 20px 0 0; padding: 14px; background: #f8f2e7; border-radius: 14px; }
.modal-save-label { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.modal-save .save-row { margin-top: 10px; }

.modal-actions { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; }
.m-btn { width: 100%; border: none; cursor: pointer; font-family: inherit; border-radius: 12px; }
.m-btn.primary { height: 50px; background: var(--accent); color: white; font-size: 16px; font-weight: 700; }
.m-btn.primary:active { transform: scale(0.98); }
.m-btn.quiet { height: 42px; background: none; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.m-btn.quiet:hover { color: var(--ink); }

/* PDF로 저장(인쇄)할 때는 풀이만 깔끔하게 */
@media print {
  body { background: white; }
  .site-header, .site-footer, .back-bar, .notice, .premium, .btn, .modal, .toast { display: none !important; }
  .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
}

/* 장점·조언처럼 '이름표 + 내용' 줄: 내용이 길어져도 둘째 줄이 내용 시작점에 맞춰지게 */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin: 0 0 10px; align-items: start; }
.kv:last-child { margin-bottom: 0; }
.kv-k { font-weight: 700; white-space: nowrap; }
.kv .tag { margin: 3px 0 0; white-space: nowrap; }
.bar-row + .kv { margin-top: 14px; }

/* ---------- AI 풀이 본문 ---------- */
/* 문단: 한 줄이 한 문단, 문단끼리 띄운다 */
.r-text { margin: 0 0 14px; }
.reading > :last-child { margin-bottom: 0; }

/* 제목 상자: '10대 · 자립심·경쟁심 대운' 이름표 + 굵은 제목 */
.r-head {
  margin: 26px 0 10px; padding: 10px 12px 10px 14px;
  background: #fbf1dc; border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0;
}
.reading > .r-head:first-child { margin-top: 4px; }
.r-meta { display: block; font-size: 12.5px; font-weight: 700; color: var(--accent); line-height: 1.5; }
.r-title { display: block; font-size: 16.5px; font-weight: 700; color: var(--ink); line-height: 1.5; }

/* 항목 묶음 공통 */
.r-list { margin: 6px 0 18px; }
.r-lead { color: var(--accent); }

/* time: '3월 💰' 시기 칸 너비를 묶음 전체가 같이 써서 내용 시작점이 맞는다 */
.r-list.time { display: grid; grid-template-columns: max-content 1fr; column-gap: 14px; }
.r-list.time .r-item { display: contents; }
.r-list.time .r-item > * { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.r-list.time .r-item:last-child > * { border-bottom: none; }
.r-list.time .r-lead { white-space: nowrap; }

/* label: '데이터 분석가' 같은 이름은 굵게 한 줄, 내용은 그 아래 (긴 이름도 좁아지지 않게) */
.r-list.label .r-item { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.r-list.label .r-item:first-child { padding-top: 4px; }
.r-list.label .r-item:last-child { border-bottom: none; padding-bottom: 0; }
.r-list.label .r-lead { display: block; font-size: 15.5px; margin-bottom: 2px; }
.r-list.label .r-lead::before { content: "▸ "; font-size: 12px; }
.r-list.label .r-body { display: block; }

/* bullet: • 점 목록 */
.r-list.bullet .r-item { position: relative; padding: 6px 0 6px 18px; }
.r-list.bullet .r-item::before { content: "•"; position: absolute; left: 4px; top: 6px; color: var(--accent); font-weight: 700; }

/* ---------- 인생 최고의 10년 / 가장 조심할 10년 ---------- */
.peak-sum { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e3cfa5; }
.peak.best b { color: #1f6f8b; }
.peak.worst b { color: #8a5a00; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 1px 8px; margin: 2px 0; }
.badge.best { background: #e2f1f6; color: #1f6f8b; }
.badge.worst { background: #fbeed6; color: #8a5a00; }
.flow li.best { box-shadow: inset 3px 0 0 #1f6f8b; }
.flow li.worst { box-shadow: inset 3px 0 0 #d49a2a; }

/* ---------- 삼재 카드 ---------- */
.samjae-status { text-align: center; background: #f3f8ef; border-radius: 12px; padding: 12px; margin: 10px 0; }
.samjae-status.on { background: #fff4e5; }
.samjae-status b { display: block; font-size: 17px; }
.samjae-status span { font-size: 13.5px; color: var(--muted); }
.samjae-years { display: flex; gap: 8px; margin-bottom: 10px; }
.sy { flex: 1; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px; background: white; }
.sy.now { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.sy small { display: block; color: var(--muted); font-size: 12px; }
.sy b { display: block; font-size: 15px; }
.sy em { display: inline-block; font-style: normal; font-size: 11px; color: #1f6f8b; background: #e2f1f6; border-radius: 5px; padding: 0 6px; margin-top: 2px; }

/* 용어 풀이: 용어 칸 너비를 같이 써서 설명이 모두 같은 위치에서 시작하고, 둘째 줄도 거기에 맞춰진다 */
.g-list { display: grid; grid-template-columns: max-content 1fr; column-gap: 12px; row-gap: 10px; }
.g-item { display: contents; }
.g-term { display: flex; flex-direction: column; line-height: 1.35; padding-top: 1px; }
.g-term b { color: var(--ink); font-size: 14px; white-space: nowrap; }
.g-term small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.g-desc { line-height: 1.65; }

/* 상품 안내의 'ℹ️ 안내' 줄: 아이콘 옆에 글을 두고 둘째 줄도 글 시작점에 맞춤 */
.note { display: grid; grid-template-columns: auto 1fr; gap: 6px; align-items: start; }
.note-ic { line-height: 1.6; }

/* 예시 문장: 여는 따옴표(“)를 왼쪽으로 내밀어서 둘째 줄이 글자와 나란히 시작하게 */
.sample { text-indent: -0.45em; padding-left: calc(14px + 0.45em); }

/* ---------- 결과 화면 머리: 입력 정보 카드 ---------- */
.profile {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 18px; margin: 12px 0 18px; box-shadow: 0 2px 10px rgba(80, 60, 30, 0.06);
}
.profile-ddi {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 82px; padding-right: 16px; border-right: 1px solid var(--line); line-height: 1.3;
}
.ddi-emoji { font-size: 34px; line-height: 1.1; }
.profile-ddi b { font-size: 16px; margin-top: 4px; }
.profile-ddi small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.profile-info { margin: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.profile-info div { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: baseline; }
.profile-info dt { font-size: 12.5px; font-weight: 700; color: var(--accent); }
.profile-info dd { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.profile-info em {
  font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--accent);
  background: #f7e9e4; border-radius: 5px; padding: 1px 6px; margin-left: 4px; vertical-align: 1px;
}

/* hidden 속성이 붙은 요소는 항상 숨김 (.check 같은 display 설정보다 우선) */
[hidden] { display: none !important; }

/* 성격 카드 제목: '나는'은 작은 윗줄, 「제목」은 큰 아랫줄 */
.me-title small { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.profile-info dd { white-space: nowrap; }

/* ---------- BEST · 추천 상품 ---------- */
.menu-item.featured {
  position: relative; margin-top: 14px; padding: 18px 12px 14px;
  background: linear-gradient(135deg, #3a2d1c 0%, #5a3f1e 55%, #7a5524 100%);
  border: 1.5px solid var(--gold); color: #fff6e3;
  box-shadow: 0 6px 18px rgba(201, 162, 75, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.menu-item.featured .menu-emoji { font-size: 30px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.menu-item.featured .menu-text b { font-size: 16px; color: #ffe7a8; }
.menu-item.featured .menu-text small { opacity: 0.9; }
.menu-item.featured .menu-arrow { color: var(--gold); opacity: 1; }
.menu-price { display: inline-block; font-style: normal; font-size: 12px; font-weight: 700; margin-top: 6px;
  color: #2b2233; background: var(--gold); border-radius: 6px; padding: 1px 8px; }

.best-ribbon {
  position: absolute; top: -10px; left: 12px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.5px; color: #2b2233;
  background: linear-gradient(90deg, #f4d27a, #d4a84b); border-radius: 999px; padding: 3px 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  animation: shine 2.8s ease-in-out infinite;
}
@keyframes shine { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }

/* 상품 안내 페이지 머리 배지 */
.best-chip {
  display: inline-block; margin: 4px 0 2px; padding: 5px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 800; color: #2b2233;
  background: linear-gradient(90deg, #f4d27a, #d4a84b); box-shadow: 0 2px 8px rgba(201, 162, 75, 0.4);
}
@media (prefers-reduced-motion: reduce) { .best-ribbon { animation: none; } }

/* ---------- 페이지 머리(히어로) ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  margin: 10px 0 18px; padding: 26px 18px 22px; border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(201, 162, 75, 0.22), transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(139, 46, 46, 0.10), transparent 48%),
    linear-gradient(180deg, #fffaf0 0%, #f8eedc 100%);
  border: 1px solid #ecdcbc;
  box-shadow: 0 6px 20px rgba(80, 60, 30, 0.08);
}
/* 뒤쪽 장식 원 (은은하게) */
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(201, 162, 75, 0.28);
}
.hero::before { width: 190px; height: 190px; top: -80px; right: -70px; }
.hero::after  { width: 120px; height: 120px; bottom: -60px; left: -40px; border-color: rgba(139, 46, 46, 0.14); }
.hero > * { position: relative; }

.hero .best-chip { margin: 0 0 12px; }
.hero-medal {
  width: 74px; height: 74px; margin: 0 auto 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 38px;
  background: radial-gradient(circle at 35% 30%, #ffffff, #fbf3e2);
  box-shadow: 0 0 0 4px #f6e8c8, 0 0 0 5.5px var(--gold), 0 8px 18px rgba(80, 60, 30, 0.18);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.3px; color: var(--accent);
}
.hero-eyebrow::before, .hero-eyebrow::after { content: ""; width: 18px; height: 1px; background: var(--gold); }
.hero-title { margin: 6px 0 0; font-size: 25px; line-height: 1.35; color: var(--ink); }
.hero-period {
  display: inline-block; margin-top: 10px; padding: 3px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--accent);
  background: #fff; border: 1px solid #ead3c6;
}
.hero-sub { margin: 10px auto 0; max-width: 300px; font-size: 14px; line-height: 1.6; color: #6b5a48; }

/* 사주 네 기둥 칩: 丁卯 丁未 … (오행 색) */
.hero-pillars { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.gz { display: inline-flex; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 6px rgba(60, 40, 20, 0.18); }
.gz i { font-style: normal; width: 23px; height: 28px; line-height: 28px; text-align: center; color: #fff; font-size: 14.5px; font-weight: 700; }
.hero-ddi { font-size: 12.5px; font-weight: 700; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }

@media print { .hero { box-shadow: none; } }

.chart .iss.plain { color: var(--muted); }

/* ---------- 종합 풀이(대표 상품) 버튼 ---------- */
.menu-item.total {
  position: relative; overflow: hidden; padding: 16px 14px; gap: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.7), transparent 45%),
    linear-gradient(135deg, #fffaf0 0%, #f6e7c6 100%);
  border: 1.5px solid var(--gold); color: var(--ink);
  box-shadow: 0 6px 18px rgba(201, 162, 75, 0.28), inset 0 1px 0 #fff;
}
.menu-item.total .menu-emoji {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  background: #fff; box-shadow: 0 0 0 3px #f6e8c8, 0 0 0 4px var(--gold);
}
.menu-eyebrow { display: block; font-size: 11.5px; font-weight: 800; color: var(--accent); letter-spacing: 0.2px; margin-bottom: 2px; }
.menu-item.total .menu-text b { font-size: 16.5px; color: var(--ink); }
.menu-item.total .menu-text small { color: #6b5a48; opacity: 1; }
.menu-item.total .menu-arrow { color: var(--accent); opacity: 1; }
.menu-price.total { background: var(--accent); color: #fff; }

/* ---------- 성격 구성 표 ---------- */
.traits { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.trait { padding: 10px 2px 12px; border-bottom: 1px dashed var(--line); }
.trait:last-child { border-bottom: none; padding-bottom: 2px; }
.trait-top { display: flex; justify-content: space-between; align-items: center; }
.trait-top b { font-size: 15px; }
.trait-grade { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 10px; background: #f1ebe0; color: var(--muted); }
.trait-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 8px 0 6px; }
.trait-bar i { height: 8px; border-radius: 4px; background: #ece3d3; }
.trait-desc { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
/* 단계별 색: 적음은 연한 갈색, 보통은 금색, 많음 이상은 빨강 */
.trait.g1 .trait-bar i.on { background: #cdb99a; }
.trait.g2 .trait-bar i.on { background: var(--gold); }
.trait.g3 .trait-bar i.on, .trait.g4 .trait-bar i.on { background: var(--accent); }
.trait.g2 .trait-grade { background: #f6ecd3; color: #8a6a1f; }
.trait.g3 .trait-grade, .trait.g4 .trait-grade { background: var(--accent); color: #fff; }
.trait.g0 .trait-grade { background: transparent; border: 1px dashed #cbbfae; }

/* ---------- AI 풀이: 키워드 칩 ---------- */
.r-keywords {
  text-align: center; margin: 4px 0 16px; padding: 16px 12px 14px; border-radius: 14px;
  background: linear-gradient(180deg, #fbf3e3, #f6ead2); border: 1px solid #ecdcbc;
}
.r-kw-label { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--gold); margin-bottom: 8px; }
.r-kw-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.r-kw {
  display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid #e6cfa5; box-shadow: 0 2px 6px rgba(120, 90, 40, 0.10);
  font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.3; white-space: nowrap;
}
.r-kw em { font-style: normal; color: var(--accent); margin-right: 3px; }

/* 상품 목록: 지금 보고 있는 상품 */
.menu-item.is-current { cursor: default; box-shadow: none; }
.menu-item.is-current > :not(.now-tag) { opacity: 0.55; }
.menu-item.is-current:active { transform: none; }
.menu-item.is-current .best-ribbon { animation: none; }
.menu-item.is-current { position: relative; overflow: visible; margin-top: 14px; }
.now-tag {
  position: absolute; top: -10px; right: 12px; z-index: 1;
  font-size: 11.5px; font-weight: 800; white-space: nowrap;
  color: #fff; background: var(--accent); border-radius: 999px; padding: 3px 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* ---------- 받기(결제) 카드 ---------- */
.checkout {
  position: relative; margin: 8px 0 16px; padding: 20px 18px 16px; border-radius: 20px;
  background: linear-gradient(180deg, #fffdf8 0%, #fbf3e3 100%);
  border: 1.5px solid #e6cfa5;
  box-shadow: 0 10px 28px rgba(80, 60, 30, 0.14), inset 0 1px 0 #fff;
}
.co-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed #e3d2b0; }
.co-emoji {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; box-shadow: 0 0 0 3px #f6e8c8, 0 0 0 4px var(--gold);
}
.co-title { min-width: 0; line-height: 1.35; }
.co-title small { display: block; font-size: 12px; font-weight: 700; color: var(--accent); }
.co-title b { font-size: 17px; color: var(--ink); }
.co-period { display: inline-block; margin-left: 6px; font-size: 11.5px; font-weight: 700; color: var(--accent);
  border: 1px solid #ead3c6; background: #fff; border-radius: 999px; padding: 1px 8px; vertical-align: 2px; }

.co-specs { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.co-specs li { font-size: 13.5px; color: #5e5146; display: flex; align-items: center; gap: 6px; }
.co-specs span { width: 22px; text-align: center; }

.co-price {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin: 16px 0 14px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #efe2c8;
}
.co-price-left s { display: block; font-size: 13px; color: #a3958a; }
.co-free-tag { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 800; color: #fff;
  background: var(--accent); border-radius: 6px; padding: 2px 8px; }
.co-amount { font-size: 34px; font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -1px; }
.co-amount small { font-size: 16px; margin-left: 2px; letter-spacing: 0; }

/* 메인 버튼: 진한 색 + 금색 글씨 + 빛이 지나가는 효과 */
.co-btn {
  position: relative; overflow: hidden; width: 100%; min-height: 64px; padding: 10px 52px 10px 20px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  border: none; border-radius: 16px; cursor: pointer; font-family: inherit; text-align: left;
  background: linear-gradient(135deg, #8b2e2e 0%, #6e1f2a 55%, #4a1626 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(139, 46, 46, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.12s, box-shadow 0.12s;
}
.co-btn::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg); animation: sweep 3.2s ease-in-out infinite;
}
@keyframes sweep { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.co-btn:hover { box-shadow: 0 10px 24px rgba(139, 46, 46, 0.45); }
.co-btn:active { transform: scale(0.985); }
.co-btn-main { font-size: 18px; font-weight: 800; color: #ffe7a8; }
.co-btn-sub { font-size: 12.5px; color: rgba(255, 255, 255, 0.75); margin-top: 2px; }
.co-btn-arrow {
  position: absolute; right: 16px; top: 50%; width: 26px; height: 26px; margin-top: -13px;
  color: #ffe7a8; padding: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.12);
}

.co-trust { list-style: none; padding: 0; margin: 12px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; }
.co-trust li { font-size: 12px; color: #6b8a5a; font-weight: 700; white-space: nowrap; }
.co-note { margin: 8px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .co-btn::after { animation: none; display: none; } }
@media print { .checkout { display: none; } }

/* 한눈에 보기 표의 점수 줄: 남는 폭에 맞춰 칸을 고르게 펼친다
   (넓은 화면은 한 줄에 4칸, 좁은 휴대폰은 2칸씩 두 줄) */
.chart .scores { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 4px 6px; }
.chart .score { font-size: 13px; gap: 3px; min-width: 0; }
.chart .dots { gap: 2px; }
.chart .dots i { width: 6px; height: 6px; }
@media (min-width: 420px) { .chart .dots { gap: 3px; } .chart .dots i { width: 7px; height: 7px; } }
.chart .iss { margin-top: 3px; }
@media (max-width: 459px) { .chart .scores.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 브랜드: 길잡이사주 ---------- */
.site-header .brand { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.25; text-decoration: none; }
.brand-name { font-size: 18px; font-weight: 800; color: var(--accent); letter-spacing: -0.2px; }
.brand-tag { font-size: 11.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }



/* 첫 페이지 간결형 머리: 배경 카드·장식 원 없이 제목과 한 줄 설명만 */
.hero.simple { background: none; border: none; box-shadow: none; padding: 18px 8px 8px; margin-bottom: 14px; }
.hero.simple::before, .hero.simple::after { display: none; }
.hero.simple .hero-title { font-size: 27px; letter-spacing: -0.5px; }
.hero.simple .hero-sub { margin-top: 10px; font-size: 14.5px; }
/* 첫 페이지에서는 머리말 로고 아래 한 줄 소개가 큰 제목과 겹치므로 숨김 */
.home .brand-tag { display: none; }

/* ==========================================================
   메인 첫 화면 (landing)
   ========================================================== */
/* 첫 페이지는 화면 위 로고 줄 대신 첫 화면 안에 브랜드를 둔다 */
.home .site-header { display: none; }
.home .hero.simple { display: none; }

.landing {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  margin: 0 -16px; padding: 30px 24px 58px;
  border-radius: 0 0 32px 32px;
  background:
    radial-gradient(circle at 18% 12%, rgba(212, 168, 75, 0.28), transparent 38%),
    radial-gradient(circle at 92% 88%, rgba(139, 46, 46, 0.55), transparent 50%),
    linear-gradient(160deg, #2b2233 0%, #3a2540 55%, #4a1f33 100%);
  box-shadow: 0 14px 34px rgba(43, 34, 51, 0.28);
}
/* 은은한 별가루 무늬 */
.landing::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image:
    radial-gradient(1.2px 1.2px at 20% 30%, #f4d27a 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 20%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 85% 55%, #f4d27a 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 75%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 45%, #f4d27a 50%, transparent 51%),
    radial-gradient(1px 1px at 10% 65%, #fff 50%, transparent 51%);
}
/* 큰 福 글자 워터마크 */
.landing-watermark {
  position: absolute; right: -14px; bottom: -34px; font-size: 140px; font-weight: 900; line-height: 1;
  color: rgba(244, 210, 122, 0.06); pointer-events: none; user-select: none;
}
.landing > *:not(.landing-watermark) { position: relative; }

.landing-brand {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.3px; color: #f4d27a;
  padding: 5px 14px; border-radius: 999px; border: 1px solid rgba(244, 210, 122, 0.45);
  background: rgba(255, 255, 255, 0.06);
}
.landing-title {
  margin: 18px 0 0; font-size: 31px; font-weight: 800; line-height: 1.3; letter-spacing: -0.8px; color: #fff;
}
.landing-title em {
  font-style: normal;
  background: linear-gradient(90deg, #f4d27a, #e7b14d);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.landing-sub { margin: 12px 0 0; font-size: 14.5px; line-height: 1.65; color: rgba(255, 255, 255, 0.78); }
.landing-points { list-style: none; margin: 20px 0 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; }
.landing-points li { font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, 0.88); white-space: nowrap; }
.landing-points li::before { content: "✦"; color: #f4d27a; margin-right: 5px; font-size: 11px; }

/* 입력 카드가 첫 화면 위로 살짝 겹쳐 올라오게 */
.home-form { position: relative; z-index: 2; margin-top: -34px; border-radius: 20px; box-shadow: 0 12px 30px rgba(43, 34, 51, 0.16); }
.home-form-title { margin: 0 0 4px; font-size: 17px; font-weight: 800; color: var(--ink); text-align: center; }
.landing-error { position: relative; z-index: 3; margin: -24px 0 34px; }

/* 첫 화면 글자 등장 */
/* 첫 화면 글자는 투명에서 시작하지 않는다 (효과가 멈춰도 글자는 항상 보이게) */
@keyframes rise { from { transform: translateY(10px); } }
.landing-brand { animation: rise 0.6s ease both; }
.landing-title { animation: rise 0.6s ease 0.08s both; }
.landing-sub { animation: rise 0.6s ease 0.16s both; }
.landing-points { animation: rise 0.6s ease 0.24s both; }

/* 넓은 화면에서는 둥근 카드로 */
@media (min-width: 520px) {
  .landing { margin: 16px 0 0; border-radius: 28px; padding: 40px 32px 64px; }
  .landing-title { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-brand, .landing-title, .landing-sub, .landing-points { animation: none; }
}

/* ---------- 첫 페이지: 무엇을 알 수 있는지 소개 ---------- */
.intro { text-align: center; padding: 20px 16px 16px; }
.intro-badge { margin: 0; display: inline-block; font-size: 13px; font-weight: 800; color: var(--accent);
  background: #fbf1dc; border: 1px solid #ecdcbc; border-radius: 999px; padding: 4px 12px; }
.intro-steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.intro-steps li {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 4px 10px; display: flex; flex-direction: column; align-items: center; line-height: 1.35;
  box-shadow: 0 2px 0 #efe6d4;
}
.ps-ic { font-size: 22px; margin-bottom: 4px; }
.intro-steps b { font-size: 13.5px; color: var(--ink); }
.intro-steps small { font-size: 11px; color: var(--muted); margin-top: 2px; }
.intro-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); font-weight: 700; }

/* 로고: 나침반 마크 + 글자 */
.site-header .brand { flex-direction: row; gap: 10px; text-align: left; }
.logo-mark { width: 38px; height: 38px; flex-shrink: 0; filter: drop-shadow(0 2px 4px rgba(43, 34, 51, 0.25)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 19px; font-weight: 900; color: var(--ink) !important; letter-spacing: -0.4px; }
.brand-name em { font-style: normal; color: var(--accent); }
.brand-tag { margin-top: 1px; }

/* 첫 화면 배지 안의 로고 */
.landing-brand { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; }
.landing-brand .logo-mark { width: 26px; height: 26px; filter: none; }

/* ---------- 약관·정책 문서 ---------- */
.doc { padding: 24px 20px; font-size: 14.5px; line-height: 1.75; }
.doc h1 { font-size: 22px; text-align: left; margin: 0 0 4px; }
.doc h2 { font-size: 16px; text-align: left; margin: 26px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--accent); }
.doc p { margin: 0 0 10px; }
.doc ul, .doc ol { margin: 0 0 10px; padding-left: 20px; }
.doc li { margin-bottom: 4px; }
.doc a { color: var(--accent); }
.doc-meta { font-size: 12.5px; color: var(--muted); }
.doc-note { font-size: 13px; color: var(--muted); }
.doc-table { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: 13.5px; }
.doc-table th, .doc-table td { border: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; }
.doc-table th { background: #f6efe2; width: 32%; font-weight: 700; color: #5e5146; }
.doc-summary { background: #fbf1dc; border: 1px solid #ecdcbc; border-radius: 12px; padding: 12px 14px; margin: 14px 0 4px; }
.doc-summary ul { margin: 6px 0 0; }
.doc-biz { margin-top: 22px; padding: 12px 14px; background: #f6efe2; border-radius: 10px; font-size: 12.5px; color: #5e5146; }
.doc-biz p { margin: 0 0 3px; }

/* ---------- 꼬리말: 정책 링크 + 사업자 정보 ---------- */
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
.footer-links a { color: var(--ink); text-decoration: none; font-size: 13px; }
.footer-links a:hover { text-decoration: underline; }
.footer-note { margin: 0 0 12px; }
.footer-biz { font-size: 11.5px; color: #9a8f86; line-height: 1.7; }
.footer-biz p { margin: 0; }
.footer-copy { margin-top: 6px !important; }

/* ---------- 입력 화면: 개인정보 안내 ---------- */
.form-privacy { margin: 12px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.form-privacy a { color: var(--muted); }

/* ---------- 결제 전 동의 ---------- */
.co-agree { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; margin: 0 0 12px;
  padding: 10px 12px; background: #fff; border: 1px solid #efe2c8; border-radius: 12px; font-size: 12.5px; line-height: 1.6; color: #5e5146; cursor: pointer; }
.co-agree input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.co-agree b { color: var(--accent); }
.co-agree a { color: #5e5146; }
.co-agree-error { margin: -4px 0 10px; text-align: left; }
