:root {
  --bg: #faf9f7;
  --panel: #ffffff;
  --ink: #2b2a28;
  --ink-soft: #6b6862;
  --line: #e6e2da;
  --accent: #b7622e;
  --accent-deep: #96491c;
  --accent-soft: #fdf1e7;
  --tint: #f4f0e9;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", Pretendard, sans-serif;
  line-height: 1.8;
  word-break: keep-all;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 680px; }
.center { text-align: center; }

h1, h2, h3 { line-height: 1.45; letter-spacing: -0.01em; }
h2 { font-size: 28px; margin: 0 0 20px; }
h3 { font-size: 18px; margin: 0 0 8px; }

/* ---- 버튼 ---- */
.btn {
  display: inline-block;
  font: inherit;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.06s ease, opacity 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-lg { padding: 16px 30px; font-size: 17px; }

/* ---- 히어로 ---- */
.hero {
  background:
    radial-gradient(1000px 500px at 80% -10%, var(--accent-soft), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  padding: 88px 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: center;
  text-align: left;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0 0 22px;
}
.hero h1 { font-size: 42px; margin: 0 0 20px; }
.hero-sub { font-size: 17px; color: var(--ink-soft); margin: 0 0 34px; }
.hero-note { font-size: 13px; color: var(--ink-soft); margin: 14px 0 0; }
/* ---- 히어로 책 목업 ---- */
.hero-visual { text-align: center; }
.book {
  position: relative;
  width: 210px;
  height: 300px;
  margin: 0 auto;
  transform: rotate(4deg);
  filter: drop-shadow(14px 18px 22px rgba(43, 42, 40, 0.22));
}
.book-spine {
  position: absolute;
  left: -12px;
  top: 4px;
  width: 14px;
  height: 296px;
  background: var(--accent-deep);
  border-radius: 3px 0 0 3px;
}
.book-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, #c97440 0%, var(--accent) 45%, var(--accent-deep) 100%);
  border-radius: 3px 8px 8px 3px;
  color: #fff;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}
.book-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  opacity: 0.85;
  margin: 0 0 auto;
}
.book-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 auto;
  text-align: left;
}
.book-author {
  font-size: 13px;
  opacity: 0.9;
  margin: 0;
  text-align: right;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding-top: 12px;
}
.hero-visual-caption { font-size: 13px; color: var(--ink-soft); margin: 30px 0 0; }

/* ---- 섹션 공통 ---- */
.section { padding: 76px 0; }
.section-tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---- 문제 공감: 박스 없이 큰 타이포 + 헤어라인 ---- */
.pain-list { margin: 44px 0; padding: 0; list-style: none; }
.pain-list li {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  font-size: 21px;
  line-height: 1.6;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}
.pain-list li:last-child { border-bottom: 1px solid var(--line); }
.pain-list strong { color: var(--ink); }
.pain-close { color: var(--ink-soft); font-style: italic; }

/* ---- 해결 ---- */
.solution-punch { font-size: 19px; margin-top: 26px; }

/* ---- 차별점 ---- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.diff-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 22px;
}
.diff-card h3 { color: var(--accent-deep); }
.diff-card p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ---- 진행 과정: 번호 원·연결선 없이 작은 숫자 라벨 + 헤어라인 ---- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 20px 0 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 20px; margin-bottom: 10px; }
.steps p { margin: 0; color: var(--ink-soft); max-width: 560px; }
.badge-free {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-left: 10px;
  vertical-align: 1px;
}

/* ---- 이런 분께 ---- */
.fit-list { list-style: none; margin: 28px 0 0; padding: 0; }
.fit-list li {
  padding: 14px 18px 14px 46px;
  margin-bottom: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  position: relative;
}
.fit-list li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  color: var(--accent);
  font-weight: 700;
}

/* ---- FAQ ---- */
details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 20px;
  margin-bottom: 10px;
}
details summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 20px;
  font-weight: 400;
}
details[open] summary::after { content: "−"; }
details p { margin: 0 0 18px; color: var(--ink-soft); }

/* 맨 마지막 컴팩트 FAQ */
.faq-small { padding: 48px 0 56px; }
.faq-small h2 { font-size: 17px; color: var(--ink-soft); margin-bottom: 18px; }
.faq-small details {
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 0 2px;
  margin: 0;
}
.faq-small details:last-of-type { border-bottom: 1px solid var(--line); }
.faq-small summary { font-size: 14px; font-weight: 600; padding: 12px 24px 12px 0; }
.faq-small summary::after { font-size: 16px; }
.faq-small details p { font-size: 13.5px; line-height: 1.7; margin: 0 0 14px; }

/* ---- CTA + 폼 ---- */
.section-cta {
  background:
    radial-gradient(800px 400px at 50% 120%, var(--accent-soft), transparent 70%),
    var(--tint);
  border-top: 1px solid var(--line);
}
.apply-form {
  max-width: 480px;
  margin: 40px auto 0;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 28px;
}
.apply-form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}
.apply-form input,
.apply-form textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 16px; /* iOS는 16px 미만 입력창에서 자동 확대됨 */
  font-weight: 400;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  margin-top: 6px;
  background: var(--bg);
}
.apply-form input:focus,
.apply-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}
.apply-form .btn { width: 100%; margin-top: 6px; }
.optional { color: var(--ink-soft); font-weight: 400; }
.form-note { font-size: 13px; color: var(--ink-soft); text-align: center; margin: 14px 0 0; }

/* ---- 신청 완료 (체크 애니메이션) ---- */
.form-success {
  max-width: 480px;
  margin: 40px auto 0;
  padding: 48px 28px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.success-check { display: block; margin: 0 auto 20px; }
.success-check-circle {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 182;
  stroke-dashoffset: 182;
  animation: success-circle 0.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.success-check-mark {
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
  animation: success-mark 0.35s 0.45s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.success-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  opacity: 0;
  animation: success-fade-up 0.4s 0.75s ease-out forwards;
}
.success-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  opacity: 0;
  animation: success-fade-up 0.4s 0.85s ease-out forwards;
}
@keyframes success-circle {
  to { stroke-dashoffset: 0; }
}
@keyframes success-mark {
  to { stroke-dashoffset: 0; }
}
@keyframes success-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .success-check-circle,
  .success-check-mark,
  .success-title,
  .success-desc {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* ---- 중간 CTA / urgency / 스티키 CTA ---- */
.mid-cta { margin-top: 44px; }
.cta-scarcity { font-size: 14px; color: var(--accent-deep); font-weight: 700; }
.sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 249, 247, 0.94);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
}
.sticky-cta .btn { width: 100%; text-align: center; padding: 14px 20px; font-size: 16px; }

/* ---- 푸터 ---- */
.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--ink-soft);
  font-size: 14px;
}

/* ---- 반응형 ---- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .book { transform: rotate(2deg) scale(0.88); }
}

@media (max-width: 760px) {
  .hero-inner { padding: 56px 20px 48px; }
  .hero h1 { font-size: 30px; }
  .hero-sub br, .break-lines br { display: none; }
  h2 { font-size: 23px; }
  .section { padding: 56px 0; }
  .diff-grid { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; text-align: center; }
  .sticky-cta { display: block; }
  .sticky-cta[hidden] { display: none; }
  .footer { padding-bottom: 90px; } /* 스티키 바에 가리지 않게 */
}
