@charset "UTF-8";
/* ===================================================================
   사주명리 박기수 — 공통 스타일
   먹색 헤더·히어로 + 골드 강조 + 아이보리 섹션 + 적갈색 본문 CTA
   빌드 도구 없이 이 파일 하나로 동작한다.
   =================================================================== */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
@import url("https://fonts.googleapis.com/css2?family=Nanum+Myeongjo:wght@400;700;800&display=swap");

:root {
  --ink-900: #211D18;
  --ink-800: #2F2922;
  --ink-700: #3F372E;

  --brand-50:  #F9EFEE;
  --brand-100: #EFD9D7;
  --brand-200: #DFB3AF;
  --brand-300: #C98984;
  --brand-400: #A85B55;
  --brand-500: #7E342E;
  --brand-600: #6B2B26;
  --brand-700: #57221E;

  --gold-300: #D4BE8E;
  --gold-400: #C4A971;
  --gold-500: #B49455;
  --gold-600: #96793F;

  --green-500: #324D42;
  --green-100: #DFE7E3;

  --ivory:      #F6F1E7;
  --ivory-soft: #FBF8F2;
  --ivory-line: #E6DECD;

  /* 100~300 은 선·배경용, 400~700 은 글자용.
     글자용은 흐려 보이지 않게 충분히 어둡게 잡는다. */
  --gray-100: #F2F4F7;
  --gray-200: #E4E7EC;
  --gray-300: #C9C2B6;
  --gray-400: #7E7568;
  --gray-500: #655C50;
  --gray-600: #4E463C;
  --gray-700: #37312A;

  --danger: #B42318;
  --ok:     #2E7D5B;

  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 18px;

  --header-h: 72px;

  --serif: "Nanum Myeongjo", serif;
  --sans:  "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* ── 리셋 ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; overscroll-behavior-x: none; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-900);
  background: #fff;
  /* antialiased 는 글자를 얇게 만들어 흐려 보인다. 기본(서브픽셀)을 쓴다. */
  -webkit-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 800; color: var(--ink-900); line-height: 1.3; letter-spacing: -0.02em; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ── 레이아웃 ─────────────────────────────────────────────────── */
.wrap   { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 24px; }

.sec         { padding: 56px 0 60px; }
.sec--ivory  { background: var(--ivory); }
.sec--ink    { background: var(--ink-900); color: #E0D8CA; }

.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.eyebrow i { display: block; width: 30px; height: 1px; background: var(--gold-500); }
.eyebrow span { font-size: 13px; letter-spacing: 0.2em; color: var(--gold-600); font-weight: 500; font-style: normal; }

.sec-title { font-size: 26px; }
.sec-desc  { margin-top: 8px; font-size: 15px; color: var(--gray-600); font-weight: 500; }
.sec-head  { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-head .more { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--brand-500); }

/* ── 헤더 ─────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: var(--ink-900);
}
.header__in { height: 100%; display: flex; align-items: center; gap: 30px; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.logo { font-family: var(--serif); font-size: 19px; font-weight: 800; color: #fff; white-space: nowrap; }
.gnb { display: flex; gap: 28px; font-size: 15px; color: #C3B9A8; }
.gnb a { padding-bottom: 5px; border-bottom: 2px solid transparent; }
.gnb a:hover { color: #fff; }
.gnb a.on { color: #fff; font-weight: 700; border-bottom-color: var(--gold-500); }
.header__cta { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.header__price { font-size: 14px; color: #BCB2A2; }
.navbtn { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.navbtn i { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }
.navbtn i + i { margin-top: 5px; }

/* ── 버튼 ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 30px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 16px; font-weight: 600; line-height: 1;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn--gold  { background: var(--gold-500); color: var(--ink-900); font-weight: 700; }
.btn--gold:hover { background: var(--gold-400); }
.btn--brand { background: var(--brand-500); color: #fff; }
.btn--brand:hover { background: var(--brand-600); }
.btn--ink   { background: var(--ink-900); color: #fff; }
.btn--ink:hover { background: var(--ink-700); }
.btn--line  { background: #fff; color: var(--ink-900); border-color: var(--ivory-line); }
.btn--line:hover { border-color: var(--gold-500); }
.btn--sm    { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }
.btn:disabled, .btn.is-off { background: var(--gray-200); color: var(--gray-400); cursor: not-allowed; border-color: transparent; }

/* ── 히어로 ───────────────────────────────────────────────────── */
.hero { position: relative; background: var(--ink-900); overflow: hidden; }
.hero__in { position: relative; max-width: 1240px; margin: 0 auto; padding: 68px 24px 64px; }
.hero__mark {
  position: absolute; right: -40px; top: -110px;
  font-family: var(--serif); font-size: 400px; font-weight: 800; line-height: 1;
  color: var(--gold-500); opacity: .055; letter-spacing: .04em; user-select: none; pointer-events: none;
}
.hero__photo { position: absolute; right: 0; top: 0; bottom: 0; width: 600px; overflow: hidden; }
.hero__photo img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 8%; margin-top: -6%; filter: saturate(.82); }
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, var(--ink-900) 0%, rgba(33,29,24,.78) 24%, rgba(33,29,24,.04) 64%, rgba(33,29,24,.38) 100%);
}
.hero__copy { position: relative; z-index: 2; max-width: 640px; }
.hero h1 { font-size: 52px; color: #fff; line-height: 1.3; letter-spacing: -0.03em; text-wrap: pretty; }
.hero__lead { margin-top: 24px; font-size: 16px; line-height: 1.9; color: #DCD5C9; max-width: 480px; text-wrap: pretty; }
.hero__lead b { color: #fff; font-weight: 600; }
.hero__act { display: flex; align-items: center; gap: 20px; margin-top: 34px; flex-wrap: wrap; }
.hero__meta { font-size: 13px; color: #A99E8D; line-height: 1.6; }

/* ── 지표 바 ──────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--ivory); border-bottom: 1px solid var(--ivory-line); }
.stats > div { padding: 22px 8px 20px; text-align: center; border-right: 1px solid var(--ivory-line); }
.stats > div:last-child { border-right: 0; }
.stats b { display: block; font-family: var(--serif); font-size: 27px; font-weight: 800; color: var(--brand-500); }
.stats span { display: block; font-size: 13px; color: var(--gray-500); margin-top: 3px; }

/* ── 후기 ─────────────────────────────────────────────────────── */
.reviews { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.review { width: 258px; flex-shrink: 0; }
.review__img { width: 100%; height: 168px; border-radius: var(--radius); background: #EDE9E0; object-fit: cover; }
.review__sum { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--ink-900); font-weight: 500; }
.review__meta { margin-top: 6px; font-size: 12.5px; color: var(--gray-500); font-weight: 500; }

.review-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }

a.review { display: block; color: inherit; }
a.review:hover .review__img { filter: brightness(.96); }
.review__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.review__open:hover .review__img { filter: brightness(.96); }
.review__open:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: var(--radius); }

/* 후기 크게 보기 */
.lb { position: fixed; inset: 0; z-index: 100; display: none; }
.lb.on { display: flex; align-items: center; justify-content: center; }
.lb__bg { position: absolute; inset: 0; background: rgba(20, 17, 14, .82); backdrop-filter: blur(2px); }
.lb__box { position: relative; max-width: min(560px, 92vw); max-height: 88vh; display: flex; flex-direction: column; }
.lb__img {
  max-width: 100%; max-height: 78vh; width: auto; object-fit: contain;
  border-radius: var(--radius); background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.lb__cap { margin-top: 12px; text-align: center; font-size: 13px; color: #DCD5C9; }
.lb__x {
  position: absolute; top: -14px; right: -14px;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: #fff; color: var(--ink-900); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.lb__x:hover { background: var(--gold-500); }
body.lb-open { overflow: hidden; }
@media (max-width: 768px) {
  .lb__box { max-width: 94vw; }
  .lb__x { top: -12px; right: 0; width: 36px; height: 36px; }
}

/* ── 고민 카드 ────────────────────────────────────────────────── */
.worries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.worry { background: #fff; border-radius: var(--radius); padding: 22px 24px; font-size: 16px; line-height: 1.7; color: var(--ink-700); }

/* ── 원칙 ─────────────────────────────────────────────────────── */
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rule { border-top: 2px solid var(--ink-900); padding-top: 18px; }
.rule.is-key { border-top-color: var(--brand-500); }
.rule i { display: block; font-style: normal; font-size: 12px; letter-spacing: .14em; color: var(--gold-500); margin-bottom: 8px; }
.rule h3 { font-size: 20px; margin-bottom: 10px; }
.rule.is-key h3 { color: var(--brand-500); }
.rule p { font-size: 14px; line-height: 1.75; color: var(--gray-600); }

/* ── 달력 ─────────────────────────────────────────────────────── */
.cal-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; background: #fff; border-radius: var(--radius-lg); padding: 30px 32px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-nav strong { font-size: 16px; font-weight: 700; }
.cal-nav div { display: flex; gap: 8px; }
.cal-nav a { width: 34px; height: 34px; border: 1px solid var(--ivory-line); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.cal-nav a.is-off { opacity: .35; pointer-events: none; }

.cal-dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; font-size: 12px; color: var(--gray-500); text-align: center; margin-bottom: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; font-size: 14px; }
.cal-grid > * { height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 11px; }
.day       { border: 1px solid var(--ivory-line); color: var(--ink-900); cursor: pointer; }
.day:hover { border-color: var(--gold-500); }
.day.on    { background: var(--brand-500); border-color: var(--brand-500); color: #fff; font-weight: 700; }
.day.full  { background: #F4F1EA; border-color: transparent; color: #C6BFB3; cursor: default; }
.day.past  { color: #C6BFB3; border-color: transparent; cursor: default; }

.slot-group { margin-bottom: 16px; }
.slot-group > b { display: block; font-size: 12px; color: var(--gray-500); font-weight: 500; margin-bottom: 8px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot {
  height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--ivory-line); background: #fff;
  display: inline-flex; align-items: center; font-size: 14px; color: var(--ink-900); cursor: pointer;
}
.slot:hover { border-color: var(--gold-500); }
.slot.on   { background: var(--brand-500); border-color: var(--brand-500); color: #fff; font-weight: 600; }
.slot.off  { background: #F4F1EA; border-color: transparent; color: #BDB5A7; text-decoration: line-through; cursor: not-allowed; }

/* ── 폼 ───────────────────────────────────────────────────────── */
.field { margin-bottom: 22px; }
.label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--ink-800); }
.label .req { color: var(--brand-500); margin-left: 2px; }
.help { margin-top: 7px; font-size: 13.5px; color: var(--gray-500); line-height: 1.6; }

.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font-size: 15px; color: var(--ink-800); background: #fff;
  border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(126,52,46,.12);
}
.input::placeholder, .textarea::placeholder { color: var(--gray-400); }
.input.err, .select.err, .textarea.err { border-color: var(--danger); }
.err-msg { margin-top: 6px; font-size: 13px; color: var(--danger); }

.row { display: flex; gap: 10px; }
.row > * { flex: 1 1 0; min-width: 0; }

input[type="checkbox"], input[type="radio"] {
  appearance: none; -webkit-appearance: none;
  position: relative; display: inline-block; flex-shrink: 0;
  width: 22px; height: 22px; margin: 0; vertical-align: middle; cursor: pointer;
  background: #fff; border: 1px solid var(--gray-300);
  transition: background .15s, border-color .15s;
}
input[type="checkbox"] { border-radius: 6px; }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:hover, input[type="radio"]:hover { border-color: var(--brand-400); }
input[type="checkbox"]:checked, input[type="radio"]:checked { background: var(--brand-500); border-color: var(--brand-500); }
input[type="checkbox"]:checked::after {
  content: ""; position: absolute; inset: 0;
  background: no-repeat center/100% 100% url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 8 7 12 13 4'/></svg>");
}
input[type="radio"]:checked::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #fff; border-radius: 50%;
}
input:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px;
  font-size: 14px; color: var(--gray-600); background: #fff;
  border: 1px solid var(--gray-300); border-radius: 999px; cursor: pointer; transition: all .15s;
}
.chip input:checked + span { color: #fff; background: var(--brand-500); border-color: var(--brand-500); }
.chip input:focus-visible + span { outline: 2px solid var(--gold-500); outline-offset: 2px; }

.agree { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--gray-700); line-height: 1.6; }
.agree + .agree { margin-top: 12px; }

/* ── 박스 ─────────────────────────────────────────────────────── */
.card   { background: #fff; border: 1px solid var(--ivory-line); border-radius: var(--radius-lg); padding: 24px; }
.notice { padding: 16px 18px; font-size: 14px; line-height: 1.75; color: var(--gray-700); background: var(--ivory); border-radius: var(--radius); }
.notice strong { color: var(--ink-900); }
.policy-box { border: 1px solid var(--ivory-line); border-radius: var(--radius); padding: 18px 20px; background: var(--ivory-soft); font-size: 14px; line-height: 1.85; color: var(--gray-700); }
.policy-box b { color: var(--ink-900); }

.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge--gold  { color: var(--gold-600); background: #F7F0E0; }
.badge--green { color: var(--green-500); background: var(--green-100); }
.badge--brand { color: var(--brand-500); background: var(--brand-50); }
.badge--gray  { color: var(--gray-600); background: var(--gray-100); }

.flash { padding: 14px 18px; border-radius: var(--radius); font-size: 14px; margin-bottom: 20px; }
.flash--ok  { background: var(--green-100); color: var(--green-500); }
.flash--err { background: #FDECEA; color: var(--danger); }

/* ── 푸터 ─────────────────────────────────────────────────────── */
.footer { padding: 40px 0 52px; background: var(--ink-900); color: #BCB2A2; font-size: 13px; line-height: 1.9; }
.footer h3 { font-size: 17px; color: #fff; margin-bottom: 12px; }
.footer a:hover { color: #fff; }
.footer__links { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.footer__biz { color: #9A9080; }
.footer__disc { margin-top: 14px; color: #857B6B; }

/* ── 유틸 ─────────────────────────────────────────────────────── */
.tc { text-align: center; }
.muted { color: var(--gray-500); }
.small { font-size: 13.5px; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mt40 { margin-top: 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── 태블릿 ───────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero__photo { width: 46%; }
  .hero h1 { font-size: 44px; }
  .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── 모바일 ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sec { padding: 40px 0 44px; }
  .sec-title { font-size: 22px; }

  .navbtn { display: block; }
  .header__cta .header__price { display: none; }
  .header__cta { margin-left: 0; }
  .gnb {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; gap: 0; padding: 4px 24px 16px;
    background: var(--ink-900); display: none; z-index: 59;
  }
  .gnb.open { display: flex; }
  .gnb a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid #332C24; }
  .gnb a.on { border-bottom-color: #332C24; color: var(--gold-500); }

  .hero__in { padding: 40px 24px 36px; }
  .hero__photo { position: relative; width: 100%; height: 260px; margin: 0 -24px 24px; width: calc(100% + 48px); }
  .hero__photo img { height: 100%; margin-top: 0; object-position: 50% 12%; }
  .hero__photo::after { background: linear-gradient(to bottom, rgba(33,29,24,.15) 0%, rgba(33,29,24,.85) 82%, var(--ink-900) 100%); }
  .hero__mark { font-size: 220px; top: -50px; right: -20px; }
  .hero h1 { font-size: 32px; }
  .hero__lead { font-size: 15px; }
  .hero__act { gap: 14px; }
  .hero__act .btn { width: 100%; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div { border-bottom: 1px solid var(--ivory-line); }
  .stats > div:nth-child(2n) { border-right: 0; }
  .stats b { font-size: 22px; }

  .worries { grid-template-columns: 1fr; }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

  .cal-card { grid-template-columns: 1fr; gap: 30px; padding: 22px 18px; }
  .cal-grid > * { height: 42px; }

  .row { flex-direction: column; }
}
