* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
:root {
  --bg: #0a0b14;
  --bg2: #0e0f1c;
  --card-solid: #131424;
  --line: rgba(214,186,140,.16);
  --line2: rgba(214,186,140,.34);
  --txt: #efece5;
  --sub: #9d9ab0;
  --dim: #6b6880;
  --gold: #d6ba8c;
  --gold2: #b08d58;
  --moon: #cbb8ff;
  --danger: #ff7d95;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background:
    radial-gradient(60% 38% at 50% -6%, rgba(103,78,167,.20), transparent 70%),
    radial-gradient(42% 30% at 88% 12%, rgba(214,186,140,.05), transparent 70%),
    var(--bg);
  color: var(--txt); line-height: 1.75; font-weight: 300; letter-spacing: -.01em;
  word-break: keep-all; overflow-wrap: break-word;   /* 한국어 어절 단위 줄바꿈 — 단어 중간에서 안 잘림 */
  text-wrap: pretty;   /* 마지막 줄 고아 단어 방지 (지원 브라우저) */
}
.wrap { max-width: 480px; margin: 0 auto; padding: 0 22px 72px; }
.serif { font-family: 'Noto Serif KR', serif; }

/* ── 상단 내비 ── */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,11,20,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { max-width: 480px; margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { font-family: 'Noto Serif KR', serif; font-size: 15px; letter-spacing: 6px; color: var(--gold); text-decoration: none; font-weight: 600; }
.nav-brand .moon { color: var(--moon); letter-spacing: 0; margin-left: 2px; }
.nav-cta {
  font-size: 12px; letter-spacing: .08em; color: #14101f; text-decoration: none; font-weight: 700;
  background: linear-gradient(135deg, #e6cfa4, #c2a06d); padding: 8px 18px; border-radius: 999px;
}
.nav-links { display: flex; gap: 16px; padding: 0 22px 12px; max-width: 480px; margin: 0 auto; }
.nav-links a { font-size: 12px; color: var(--sub); text-decoration: none; letter-spacing: .04em; }
.nav-links a.on { color: var(--gold); border-bottom: 1px solid var(--gold2); padding-bottom: 2px; }

/* ── 공통 섹션 ── */
section { margin-top: 72px; }
.sec-no { font-family: 'Noto Serif KR', serif; font-size: 12px; letter-spacing: .35em; color: var(--gold2); margin-bottom: 10px; }
h2 { font-family: 'Noto Serif KR', serif; font-size: 22px; font-weight: 600; line-height: 1.5; margin-bottom: 18px; letter-spacing: -.01em; }
.lead { color: var(--sub); font-size: 14px; margin-bottom: 22px; }

/* ── 버튼 ── */
.btn {
  display: block; width: 100%; text-align: center; text-decoration: none; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: .04em;
  color: #171126; background: linear-gradient(135deg, #e9d3a8, #bd9a66);
  padding: 17px 20px; border: none; border-radius: 999px;
  box-shadow: 0 10px 34px rgba(214,186,140,.16);
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; }
.btn-ghost {
  display: block; width: 100%; text-align: center; text-decoration: none; cursor: pointer;
  font-size: 14px; font-weight: 500; letter-spacing: .04em; color: var(--gold);
  background: transparent; padding: 15px 20px; border: 1px solid var(--line2); border-radius: 999px;
}
.btn-note { text-align: center; font-size: 12px; color: var(--dim); margin-top: 12px; }
.btn-note b { color: var(--gold); font-weight: 500; }

/* ── 카드 ── */
.card {
  background: linear-gradient(180deg, rgba(214,186,140,.045), rgba(19,20,36,.6));
  border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px;
}

/* ── 폼 ── */
.fld { margin-bottom: 20px; }
.fld label { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: .04em; color: var(--txt); margin-bottom: 8px; }
.fld label b { color: var(--gold); font-weight: 600; }
input[type=text], input[type=tel], textarea {
  width: 100%; background: rgba(10,11,20,.7); border: 1px solid var(--line); border-radius: 12px;
  color: var(--txt); font-size: 15px; padding: 14px 15px; outline: none; font-family: inherit; font-weight: 300;
}
input:focus, textarea:focus { border-color: var(--gold2); }
textarea { min-height: 96px; resize: vertical; }
::placeholder { color: #8783a1; }

/* 크롬 자동완성이 배경을 하얗게 뒤집는 것 방지 */
input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #12131f inset;
  -webkit-text-fill-color: var(--txt);
  caret-color: var(--txt);
  transition: background-color 99999s ease-out 0s;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills input { display: none; }
.pills span {
  display: inline-block; padding: 10px 17px; border-radius: 999px; font-size: 13.5px;
  background: rgba(10,11,20,.7); border: 1px solid var(--line); color: #cdc9de; cursor: pointer;
}
.pills input:checked + span { border-color: var(--gold2); color: var(--gold); background: rgba(214,186,140,.08); font-weight: 500; }
.err { color: var(--danger); font-size: 13px; margin-top: 12px; text-align: center; min-height: 18px; }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ── 푸터 ── */
footer { margin-top: 84px; border-top: 1px solid var(--line); padding: 28px 0 0; text-align: center; }
footer .f-brand { font-family: 'Noto Serif KR', serif; letter-spacing: 6px; color: var(--gold); font-size: 13px; margin-bottom: 10px; }
footer p { font-size: 11.5px; color: var(--dim); line-height: 2; }
footer a { color: var(--sub); text-decoration: none; }
