/* 자미당 랜딩페이지 — 리포트 PDF 와 같은 색·서체를 쓴다. 모바일 우선. */

:root {
  --paper:      #faf8f2;
  --paper-2:    #f6f4ec;
  --ink:        #1a1a1a;
  --ink-soft:   #3a3a37;
  --ink-faint:  #8a877e;
  --hairline:   #cbc7bb;
  --seal:       #8c3b32;
  --gold-a:     #b8935a;
  --gold-b:     #d4b878;

  --serif: 'Noto Serif KR', serif;
  --sans:  'Noto Sans KR', sans-serif;

  --pad: 22px;
  --max: 640px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.9;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

section { padding: 54px 0; border-top: 1px solid var(--hairline); }
section:first-of-type { border-top: 0; }

h2 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.sec-orn {
  width: 54px; height: 2px; margin-bottom: 26px;
  background: linear-gradient(90deg, var(--gold-a), var(--gold-b), transparent);
}
p { margin: 0 0 18px; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

/* ── 1. Hero ───────────────────────────────────────── */
.hero { padding: 56px 0 48px; text-align: center; }
.hero-seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; margin-bottom: 22px;
  border: 1.5px solid var(--seal); color: var(--seal);
  font-family: var(--serif); font-size: 26px; line-height: 1;
}
.hero-name {
  font-family: var(--serif); font-size: 15px; letter-spacing: 0.34em;
  color: var(--ink-faint); margin: 0 0 18px; padding-left: 0.34em;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: 27px; line-height: 1.62; margin: 0 0 20px;
}
.hero h1 em { font-style: normal; font-weight: 700; }
.hero-sub { font-size: 15px; color: var(--ink-faint); margin-bottom: 32px; }

.btn {
  display: inline-block; width: 100%; max-width: 320px;
  padding: 16px 24px;
  background: var(--seal); color: #fdfbf6;
  font-family: var(--sans); font-size: 16px; font-weight: 500;
  text-decoration: none; text-align: center;
  border: 0; border-radius: 2px; cursor: pointer;
}
.btn:active { opacity: 0.88; }
.btn-meta { margin-top: 12px; font-size: 13px; color: var(--ink-faint); }

/* 사회적 증거 — Hero 아래 얇은 띠 */
.proof {
  list-style: none; margin: 30px 0 0; padding: 16px 0 0;
  border-top: 1px solid var(--hairline);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.proof li { text-align: center; }
.proof b {
  display: block; font-family: var(--serif); font-size: 17px; font-weight: 700;
}
.proof span {
  display: block; margin-top: 3px; font-family: var(--sans);
  font-size: 11px; line-height: 1.5; color: var(--ink-faint);
}

/* 가격 티어 */
.tiers { display: grid; gap: 10px; margin-bottom: 22px; }
.tier {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border: 1px solid var(--hairline); background: #fdfcf8;
}
.tier.pick { border-color: var(--seal); background: #fdf7f5; }
.tier-l { flex: 1 1 auto; min-width: 0; }
.tier-name { font-family: var(--sans); font-size: 15px; font-weight: 500; }
.tier-desc { margin-top: 3px; font-size: 13px; line-height: 1.6; color: var(--ink-faint); }
.tier-r { flex: 0 0 auto; text-align: right; }
.tier-was {
  font-size: 12px; color: var(--ink-faint); text-decoration: line-through;
}
.tier-now { font-family: var(--serif); font-size: 19px; font-weight: 700; white-space: nowrap; }
.tier-off {
  font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--seal);
}
.tier-tag {
  position: absolute; top: -8px; left: 14px;
  font-family: var(--sans); font-size: 10px; padding: 2px 7px;
  background: var(--seal); color: #fdfbf6;
}

/* 주문 폼의 상품 고르는 칸 */
.tier-pick { display: grid; gap: 8px; }
.tier-pick label {
  display: flex; align-items: center; gap: 10px; margin: 0; cursor: pointer;
  padding: 12px 14px; border: 1px solid var(--hairline); background: #fdfcf8; border-radius: 2px;
  font-family: var(--sans); font-size: 14px; font-weight: 400;
}
.tier-pick label:has(input:checked) { border-color: var(--seal); background: #fdf7f5; }
.tier-pick input { margin: 0; width: 16px; height: 16px; accent-color: var(--seal); flex: 0 0 auto; }
.tier-pick .tp-name { font-weight: 500; }
.tier-pick .tp-price { margin-left: auto; font-family: var(--serif); font-weight: 700; }

@media (min-width: 768px) {
  .proof { gap: 16px; }
  .proof b { font-size: 19px; }
}

/* ── 만드는 사람과 약속 (미리보기 다음) ───────────────── */
/* 새 색·글꼴 없이 .proof(숫자 띠)와 .spec·.price-list(상자·점 목록)를 다시 쓴다 */
.trust-maker { font-size: 16px; color: var(--ink); }
.trust-nums { margin: 22px 0 0; padding: 16px 0; border-bottom: 1px solid var(--hairline); grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
.trust-promise .price-list { margin: 8px 0 0; }
.trust-promise .price-list li:last-child { padding-bottom: 0; }
@media (min-width: 768px) {
  .trust-nums { grid-template-columns: repeat(4, 1fr); }
  .trust-maker { font-size: 18px; }
}

/* ── 3. 리포트 구성 ────────────────────────────────── */
.parts { list-style: none; margin: 0; padding: 0; }
.parts li {
  display: flex; gap: 12px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--hairline);
}
.parts li:first-child { border-top: 1px solid var(--hairline); }
.parts .p-seal {
  flex: 0 0 26px; height: 26px; align-self: flex-start;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--seal); color: var(--seal);
  font-size: 13px; line-height: 1;
}
.parts .p-t { font-family: var(--sans); font-size: 15px; font-weight: 500; display: block; }
.parts .p-d { font-size: 14px; color: var(--ink-faint); line-height: 1.72; }

.spec {
  margin-top: 26px; padding: 16px 18px;
  border: 1px solid var(--hairline); background: var(--paper-2);
  font-size: 14px; color: var(--ink-soft);
}
.spec b { font-family: var(--sans); font-weight: 500; color: var(--ink); }

/* ── 4. 샘플 ───────────────────────────────────────── */
/* 기본(데스크톱): 3열 그리드 */
.samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sample { margin: 0; }
.samples-swipe { display: none; }
.sample a {
  display: block; border: 1px solid var(--hairline); background: #fff;
  line-height: 0; overflow: hidden;
}
.sample img { width: 100%; height: auto; display: block; }
.sample figcaption {
  margin-top: 7px; text-align: center;
  font-family: var(--sans); font-size: 12px; color: var(--ink-faint);
}
.samples-note { margin-top: 14px; font-size: 13px; color: var(--ink-faint); }

/* 모바일: 가로 스크롤 캐러셀.
   3열 그리드로 두면 375px 화면에서 한 장이 100px 남짓이라 내용이 안 보인다.
   1열로 세우면 A4 세 장이 1,400px 가까이 되어 신청 폼이 그만큼 아래로 밀린다.
   그래서 세로 길이는 한 장으로 두고 옆으로 넘기게 했다. */
@media (max-width: 640px) {
  .samples {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--pad);
    -webkit-overflow-scrolling: touch;
    /* 화면 끝까지 흘려서 다음 장이 걸쳐 보이게 한다 */
    margin: 0 calc(-1 * var(--pad));
    padding: 0 var(--pad) 6px;
    scrollbar-width: none;
  }
  .samples::-webkit-scrollbar { display: none; }
  .sample {
    flex: 0 0 88%;
    scroll-snap-align: start;
  }
  .samples-swipe {
    display: inline-block;
    margin-left: 4px;
    color: var(--seal);
  }
}

/* ── 5. 가격 ───────────────────────────────────────── */
.price-box {
  border: 1px solid var(--hairline); background: var(--paper-2);
  padding: 28px 22px; text-align: center;
}
.price-num { font-family: var(--serif); font-size: 34px; font-weight: 700; line-height: 1.3; }
.price-num small { font-size: 17px; font-weight: 400; }
.price-lead { font-family: var(--sans); font-size: 14px; color: var(--ink-faint); margin: 6px 0 22px; }
.price-list { list-style: none; margin: 0 0 24px; padding: 0; text-align: left; font-size: 14px; }
.price-list li { padding: 7px 0 7px 18px; position: relative; color: var(--ink-soft); }
.price-list li::before { content: '·'; position: absolute; left: 6px; color: var(--seal); }

/* ── 6. 주문 폼 ────────────────────────────────────── */
.field { margin-bottom: 20px; }
.field label {
  display: block; font-family: var(--sans); font-size: 14px; font-weight: 500;
  margin-bottom: 7px;
}
.field .req { color: var(--seal); }
.field .opt { color: var(--ink-faint); font-weight: 400; }
.field input[type="text"],
.field input[type="date"],
.field input[type="time"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%; padding: 13px 14px;
  font-family: var(--serif); font-size: 16px; color: var(--ink);
  background: #fdfcf8; border: 1px solid var(--hairline); border-radius: 2px;
}
.field input:focus { outline: 2px solid rgba(140, 59, 50, 0.35); outline-offset: 1px; }
.hint { margin-top: 7px; font-size: 13px; color: var(--ink-faint); line-height: 1.7; }
.hint.live { color: var(--seal); }
/* 생년월일·시각 칸 아래 오류 안내. 색은 .form-error 와 같은 주사색 */
.field-err { margin-top: 7px; font-family: var(--sans); font-size: 13px; line-height: 1.6; color: var(--seal); }
.field input[aria-invalid="true"] { border-color: var(--seal); background: #fdf7f5; }
.field input:disabled { color: var(--ink-faint); background: var(--paper-2); }
/* "태어난 시각을 모릅니다" — 글꼴·크기·색은 .hint 를 그대로 쓰고 배치만 잡는다 */
/* .field label(산세리프 14px 굵게)이 .hint 보다 우선하므로 되돌려 둔다 */
.field .time-unknown { display: flex; align-items: center; gap: 7px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 400; margin-bottom: 0; }
.time-unknown input { margin: 0; width: 15px; height: 15px; flex: 0 0 auto; accent-color: var(--seal); }
.time-guide p { margin: 0 0 6px; color: inherit; }   /* 전역 p 색(ink-soft)이 .hint 색을 덮지 않게 */
.time-guide p:last-child { margin-bottom: 0; }
.time-guide .dot { padding-left: 0.9em; text-indent: -0.9em; }

.radios { display: flex; gap: 10px; }
.radios label {
  flex: 1; margin: 0; padding: 13px 0; text-align: center; cursor: pointer;
  border: 1px solid var(--hairline); background: #fdfcf8; border-radius: 2px;
}
.radios input { position: absolute; opacity: 0; pointer-events: none; }
.radios input:checked + span { color: var(--seal); font-weight: 500; }
.radios label:has(input:checked) { border-color: var(--seal); background: #fdf7f5; }

.consent {
  margin: 26px 0 22px; padding: 16px 18px;
  border: 1px solid var(--hairline); background: var(--paper-2);
}
.consent-row { display: flex; gap: 10px; align-items: flex-start; }
.consent-row input { margin: 5px 0 0; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--seal); }
.consent-row label { font-family: var(--sans); font-size: 14px; line-height: 1.7; }
.consent-term { display: inline-block; margin-top: 2px; font-size: 13px; color: var(--ink-faint); }
.consent-term b { color: var(--seal); font-weight: 500; }
.consent details { margin-top: 12px; font-size: 13px; color: var(--ink-faint); }
.consent summary { cursor: pointer; font-family: var(--sans); }
.consent dl { margin: 10px 0 0; }
.consent dt { font-family: var(--sans); font-weight: 500; color: var(--ink-soft); margin-top: 8px; }
.consent dd { margin: 2px 0 0; }

.form-error {
  margin-bottom: 16px; padding: 12px 14px;
  border: 1px solid var(--seal); background: #fdf7f5;
  font-family: var(--sans); font-size: 14px; color: var(--seal);
}

/* 전송 실패 안내 — 이 상태에서는 계좌를 그리지 않는다 */
.send-error {
  margin-top: 22px; padding: 18px 18px 20px;
  border: 1px solid var(--seal); background: #fdf7f5;
}
.send-error p {
  margin: 0 0 16px; font-family: var(--sans); font-size: 14px;
  line-height: 1.75; color: var(--seal);
}
.send-error .err-why { color: var(--ink-faint); font-size: 13px; }
.btn-retry { background: transparent; color: var(--seal); border: 1px solid var(--seal); }

/* ── 7. 제출 완료 ──────────────────────────────────── */
.done { text-align: center; }
.done-seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-bottom: 20px;
  border: 1.5px solid var(--seal); color: var(--seal); font-size: 22px;
}
.account {
  margin: 26px 0; padding: 22px 20px; text-align: left;
  border: 1px solid var(--seal); background: #fdf7f5;
}
.account h3 { font-family: var(--sans); font-size: 15px; font-weight: 500; margin: 0 0 12px; }
.account .acct-line {
  font-family: var(--serif); font-size: 18px; font-weight: 700;
  line-height: 1.7; white-space: pre-line; word-break: break-all;
}
.account .acct-amount { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }
.account .acct-notice {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hairline);
  font-size: 14px; color: var(--seal);
}
.done-summary { margin-top: 8px; font-size: 14px; color: var(--ink-faint); text-align: left; }
.done-summary div { padding: 5px 0; border-bottom: 1px solid var(--hairline); }
.done-summary b { font-family: var(--sans); font-weight: 500; color: var(--ink-soft); display: inline-block; min-width: 92px; }

/* ── 8. FAQ ────────────────────────────────────────── */
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); padding: 15px 0; }
.faq summary {
  cursor: pointer; font-family: var(--sans); font-size: 15px; font-weight: 500;
  list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--ink-faint); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq .a { margin-top: 12px; font-size: 15px; color: var(--ink-soft); }
.faq .a p { margin: 0 0 12px; }
.faq .a p:last-child { margin-bottom: 0; }
.faq .a a { color: var(--seal); }
.todo { color: var(--ink-faint); font-style: italic; }

/* ── 9. 하단 고지 ──────────────────────────────────── */
footer { border-top: 1px solid var(--hairline); padding: 34px 0 46px; }
.footer-name { font-family: var(--serif); font-size: 14px; letter-spacing: 0.2em; color: var(--ink-faint); margin-bottom: 16px; }
.notice { list-style: none; margin: 0; padding: 0; }
.notice li {
  position: relative; padding-left: 11px; margin-bottom: 7px;
  font-size: 12px; line-height: 1.78; color: var(--ink-faint);
}
.notice li::before { content: '·'; position: absolute; left: 2px; }

.hidden { display: none !important; }

/* ── 데스크톱 ──────────────────────────────────────── */
@media (min-width: 768px) {
  :root { --max: 720px; --pad: 32px; }
  body { font-size: 17px; }
  section { padding: 72px 0; }
  .hero { padding: 84px 0 68px; }
  .hero h1 { font-size: 34px; }
  h2 { font-size: 23px; }
  .parts li { padding: 16px 0; }
  .samples { gap: 16px; }
}
