/* =========================================================
   브랜드 컨셉북 서비스 — brandconceptbook.com
   색·글자 크기는 아래 :root 변수만 바꾸면 전체에 반영됩니다.
   ========================================================= */
:root {
  --ink: #18121d;        /* 다크 섹션 배경 */
  --ink-2: #241e29;      /* 본문 진한 글자 */
  --text: #363636;       /* 본문 회색 글자 */
  --muted: #7e7e7e;      /* 푸터 글자 */
  --soft: #cbcbcd;       /* 다크 섹션 보조 글자 */
  --orange: #ff9200;     /* 포인트 컬러 */
  --orange-serif: #f09a36;
  --card: #ededee;       /* 회색 카드 */
  --line: #dddddd;
  --white: #ffffff;

  --wrap: 1156px;
  --sec-pad: clamp(80px, 10vw, 140px);

  --fs-headline: clamp(28px, 4.3vw, 62px);
  --fs-lead: clamp(18px, 2.9vw, 42px);
  --fs-label: clamp(13px, 1.4vw, 20px);

  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-2);
  background: var(--white);
  line-height: 1.5;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 32px); margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.sec { padding: var(--sec-pad) 0; }
.sec.dark { background: var(--ink); color: var(--white); }
.sec.light { background: var(--white); }
.sec.light + .sec.light { padding-top: 0; }

/* 공통 타이포 */
.label {
  display: inline-block;
  min-width: clamp(150px, 19vw, 270px);
  padding: .35em 1.6em;
  border-radius: 100px;
  background: var(--ink-2);
  color: var(--orange);
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1.4;
}
.dark .label { background: #3a3340; }
.label-gap { margin-top: clamp(100px, 12vw, 180px); }
.headline {
  margin-top: clamp(24px, 3vw, 48px);
  font-size: var(--fs-headline);
  font-weight: 800;
  line-height: 1.34;
  letter-spacing: -0.02em;
}
.subhead {
  margin-top: clamp(20px, 2.5vw, 36px);
  font-size: clamp(16px, 2.5vw, 36px);
  font-weight: 700;
  color: var(--text);
}
.lead {
  margin-top: clamp(28px, 4vw, 60px);
  font-size: var(--fs-lead);
  line-height: 1.6;
}

/* ---------- 1. HERO ---------- */
.hero { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(64px, 8vw, 100px); }
.hero-top {
  container-type: inline-size;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1080px;
  margin: 0 auto;
}
.hero-logo img { width: 100%; max-width: 540px; }
.hero-intro { justify-self: end; } /* 글자 블럭 오른쪽 끝 = 아래 가로선 오른쪽 끝 */
.hero-intro h2 { font-size: clamp(22px, 2.8vw, 40px); font-weight: 400; line-height: 1.2;
  /* 제목 글자 윗선을 로고의 "p" 윗선(로고 폭의 4.01%)에 맞춤 */
  margin-top: calc(0.0401 * min(540px, (100cqw - 40px) / 2) - 0.1813em); }
.hero-intro p { margin-top: 28px; font-size: clamp(14px, 1.25vw, 18px); line-height: 1.45; }
.hero-line { max-width: 1080px; margin: clamp(56px, 12vw, 190px) auto 0; border: 0; border-top: 1px solid rgba(255,255,255,.5); }
.hero-statement {
  margin-top: clamp(40px, 5.5vw, 80px);
  text-align: center;
  font-size: clamp(24px, 3.5vw, 50px);
  font-weight: 600;
  line-height: 1.3;
  color: #f0eff0;
}

/* ---------- 2. 사례 (NIKE / Apple) ---------- */
.examples { padding-top: clamp(40px, 6vw, 100px); }
.ex-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 40px;
  row-gap: 32px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
.ex-nike  { grid-column: 1; grid-row: 1; }
.ex-photo-apple { grid-column: 3; grid-row: 1; }
.ex-center { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.ex-photo-nike { grid-column: 1; grid-row: 2; }
.ex-apple { grid-column: 3; grid-row: 2; }
.ex-photo { width: 100%; max-width: 427px; }
.ex-photo-apple { justify-self: start; }
.ex-photo-nike { justify-self: end; }
.ex-name { font-size: clamp(36px, 3.8vw, 54px); font-weight: 700; line-height: 1.2; }
.ex-name span { margin-left: .6em; font-size: .61em; color: #c7c7c9; }
.ex-desc { margin: 20px 0; font-size: clamp(15px, 1.32vw, 19px); line-height: 1.6; }
.ex-slogan { max-width: 200px; }
.ex-apple .ex-slogan { max-width: 314px; }
.ex-center {
  font-size: clamp(28px, 2.9vw, 42px);
  font-weight: 600;
  color: var(--orange);
  white-space: nowrap;
  position: relative;
}
.ex-center::before, .ex-center::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: 160px;
  background: rgba(255,255,255,.35);
}
.ex-center::before { bottom: calc(100% + 24px); }
.ex-center::after { top: calc(100% + 24px); }
.ex-question {
  margin-top: clamp(80px, 9vw, 130px);
  text-align: center;
  font-size: clamp(22px, 2.9vw, 42px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--soft);
}

/* ---------- 3. Painpoints / Purpose ---------- */
.pain-list { margin-top: clamp(24px, 3vw, 44px); }
.pain-list li { font-size: clamp(16px, 2.9vw, 42px); line-height: 1.6; color: var(--ink-2); }
.pain-list li::before { content: "· "; }
.purpose { padding-top: clamp(100px, 12vw, 180px) !important; }
.purpose-cards { display: grid; gap: 34px; margin-top: clamp(40px, 6vw, 90px); }
.purpose-cards figure { max-width: 1176px; margin: 0 auto; }
.purpose-cards img { border-radius: 20px; }
/* 이미지에 이미 문구가 들어 있으므로 캡션은 검색엔진·스크린리더용으로만 둡니다 */
.purpose-cards figcaption {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.purpose-close {
  margin-top: clamp(48px, 5vw, 80px);
  font-size: clamp(17px, 3vw, 43px);
  line-height: 1.55;
}
.tagline { margin-top: 24px; font-size: clamp(16px, 2.5vw, 36px); font-weight: 700; color: var(--text); }

/* ---------- 4. Framework ---------- */
.framework-img { margin: clamp(48px, 7vw, 110px) auto 0; width: 100%; max-width: 1156px; }

/* ---------- 5. 컨셉북 구성 ---------- */
.book-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: clamp(48px, 8vw, 130px);
  text-align: left;
}
.book-card {
  background: var(--card);
  color: var(--ink-2);
  border-radius: 20px;
  padding: 44px 48px 56px;
}
.book-card-title {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(18px, 1.9vw, 27px);
}
.book-item { display: flex; align-items: baseline; gap: 20px; padding: 34px 8px 0; }
.book-item .num { width: auto; min-width: 0.7em; font-size: clamp(27.5px, 3.25vw, 47.5px); line-height: 1; font-feature-settings: "lnum" 1; transform: translateY(0.072em); } /* 숫자 높이 = 제목 한글 글자 높이 (제목의 1.25배) */
.book-item + .book-item { margin-top: 34px; border-top: 1px solid var(--line); }
.num {
  flex: none;
  width: 36px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 44px;
  line-height: 1;
  color: var(--orange-serif);
}
.book-item h3 { font-size: clamp(22px, 2.6vw, 38px); font-weight: 600; line-height: 1.2; color: var(--ink); }
.tag {
  display: inline-block;
  margin-top: 14px;
  padding: 2px 14px;
  border-radius: 100px;
  background: var(--white);
  font-size: clamp(13px, 1.4vw, 20px);
  font-weight: 600;
  color: var(--ink);
}
.book-item p { margin-top: 16px; font-size: clamp(15px, 1.5vw, 22px); line-height: 1.35; }
.touch-img { display: block; margin-top: clamp(48px, 8vw, 120px); }
.touch-img img { margin: 0 auto; }

/* ---------- 6. Case Study ---------- */
.case-img { display: block; margin-top: clamp(40px, 6vw, 80px); }
.case-img img { margin: 0 auto; width: 100%; max-width: 1156px; }
.result-title { margin-top: 40px; font-size: clamp(20px, 2.9vw, 42px); font-weight: 600; color: var(--text); }
.results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 30px;
  margin-top: 28px;
}
.results li {
  padding: 14px 20px;
  border-radius: 100px;
  background: var(--card);
  font-size: clamp(17px, 2.1vw, 30px);
  font-weight: 700;
  color: var(--text);
}
.results b { margin: 0 .1em; font-size: 1.6em; line-height: 1; vertical-align: -0.08em; }
.note { margin-top: 28px; font-size: clamp(13px, 1.7vw, 24px); font-weight: 700; color: var(--text); }

/* ---------- 7. Feedback ---------- */
.reviews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 40px;
  margin-top: clamp(40px, 6vw, 80px);
  text-align: left;
}
.review { background: var(--card); border-radius: 14px; padding: 34px 42px 40px; }
.review header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-top: 1px solid #d6d6d6;
  border-bottom: 1px solid #d6d6d6;
}
.review header p { font-size: clamp(18px, 1.95vw, 28px); }
.stars { font-size: 20px; letter-spacing: .05em; white-space: nowrap; }
.stars i { font-style: normal; opacity: .25; }
.review > p { margin-top: 28px; font-size: 16px; line-height: 1.6; }
.review u { text-decoration-color: var(--orange); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- 8. Recommended / Credentials ---------- */
.recommend { display: grid; gap: 20px; max-width: 1000px; margin: clamp(40px, 6vw, 70px) auto 0; }
.recommend li {
  padding: 22px 24px;
  border-radius: 100px;
  background: var(--card);
  font-size: clamp(16px, 2.8vw, 41px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}
.recommend-close { margin-top: clamp(40px, 5vw, 64px); font-size: clamp(16px, 2.4vw, 34px); color: var(--text); }
.creds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1020px;
  margin: clamp(40px, 6vw, 80px) auto 0;
}
.cred { background: var(--card); border-radius: 18px; padding: 40px 0 44px; overflow: hidden; }
.cred h3 { font-size: clamp(22px, 2.48vw, 37px); font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; }
.cred .cred-key { margin-top: 20px; font-size: clamp(16px, 1.6vw, 23px); font-weight: 800; }
.cred img { width: 100%; margin-top: 28px; }
.cred > p:last-child { margin-top: 28px; padding: 0 24px; font-size: clamp(15px, 1.4vw, 20px); line-height: 1.6; }

/* ---------- 9. FAQ / Process ---------- */
.faq { max-width: 1020px; margin: clamp(40px, 6vw, 80px) auto 0; text-align: left; }
.faq dt { font-size: clamp(17px, 2.4vw, 34px); font-weight: 700; color: var(--text); }
.faq dd { margin-top: 12px; font-size: clamp(16px, 2.4vw, 34px); line-height: 1.55; color: var(--text); }
.faq dd + dt { margin-top: 44px; }
.process {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
  max-width: 1156px;
  margin: clamp(48px, 6vw, 90px) auto 0;
  text-align: left;
}
.process li { display: grid; grid-template-columns: auto 1fr; column-gap: 48px; align-items: baseline; }
.week {
  grid-column: 1 / -1;
  margin-bottom: 14px;
  padding: 6px 34px 6px 12px;
  background: var(--card);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
  text-align: right;
  font-size: clamp(13px, 1.3vw, 18px);
  font-weight: 700;
}
.process .num { width: auto; min-width: 0; padding-left: 8px; font-size: clamp(30px, 3.76vw, 54px); line-height: 1; font-feature-settings: "lnum" 1; transform: translateY(0.072em); } /* 숫자 높이 = 제목 한글 글자 높이 (제목 크기의 1.25배, 라이닝 숫자) */
.process h3 { font-size: clamp(24px, 3vw, 43px); font-weight: 600; line-height: 1.2; color: var(--ink); }
.process p { margin-top: 10px; font-size: clamp(15px, 1.8vw, 26px); }

/* ---------- 10. Service Plan ---------- */
.plan-scroll { max-width: 1020px; margin: clamp(40px, 5vw, 70px) auto 0; overflow-x: auto; }
.plan { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 12px 0; text-align: left; font-size: clamp(14px, 1.15vw, 16px); }
.plan th, .plan td { padding: 11px 16px; line-height: 1.4; border-bottom: 1px solid #8a8a8a; vertical-align: top; }
.plan thead th { border-top: 2px solid var(--ink-2); padding-top: 16px; padding-bottom: 22px; font-size: clamp(16px, 1.6vw, 22px); font-weight: 400; line-height: 1.2; }
.plan thead th b { display: block; font-weight: 800; }
.plan thead th:first-child { font-size: clamp(14px, 1.15vw, 16px); font-weight: 600; }
.plan th[scope="row"], .plan thead th:first-child { background: var(--card); width: 18%; font-weight: 500; }
.plan tbody td { color: var(--ink-2); }
.plan tfoot th, .plan tfoot td { border-top: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); padding-top: 18px; padding-bottom: 22px; }
.plan tfoot td { font-size: clamp(16px, 1.6vw, 22px); font-weight: 700; }
.plan tfoot th { font-weight: 700; }
.plan small { margin-left: 6px; font-size: 11px; font-weight: 400; color: var(--muted); }
.closing { margin-top: clamp(60px, 7vw, 100px); font-size: clamp(18px, 2.5vw, 36px); font-weight: 800; line-height: 1.3; }

/* ---------- 11. CTA ---------- */
.cta { padding-bottom: clamp(60px, 7vw, 90px); }
.cta-card {
  max-width: 1156px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 40px) 0 0;
  border-radius: 0;
  background: none;
  color: var(--white);
}
.cta-title { font-size: clamp(18px, 2.5vw, 36px); font-weight: 800; line-height: 1.3; } /* 위 .closing 문구와 같은 크기 */
.cta-from { margin-top: clamp(12px, 1.6vw, 24px); font-size: clamp(18px, 2.5vw, 36px); }
.cta-desc { margin-top: clamp(40px, 4vw, 56px); font-size: clamp(14px, 1.8vw, 26px); line-height: 1.3; }
.cta-btn {
  display: inline-block;
  margin-top: clamp(48px, 7vw, 100px);
  padding: .5em 2.4em;
  border-radius: 100px;
  background: #4a4250;
  color: var(--orange);
  font-size: clamp(18px, 2.4vw, 35px);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.cta-btn:hover, .cta-btn:focus-visible { background: var(--orange); color: var(--ink); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  padding: 0 16px clamp(60px, 8vw, 120px);
  text-align: center;
  color: var(--muted);
  font-size: clamp(13px, 2.1vw, 20px);
  font-weight: 600;
  line-height: 1.8;
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer .sep { margin: 0 .6em; opacity: .6; }

/* ---------- 스크롤 등장 애니메이션 ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   모바일 (767px 이하)
   ========================================================= */
@media (max-width: 767px) {
  br.pc { display: none; }
  .hero-top { grid-template-columns: 1fr; gap: 32px; }
  .hero-intro { justify-self: start; }
  .hero-intro h2 { margin-top: 0; }
  .hero-logo img { max-width: 300px; }

  .ex-grid { grid-template-columns: 1fr; row-gap: 24px; }
  .ex-nike, .ex-photo-apple, .ex-center, .ex-photo-nike, .ex-apple { grid-column: 1; grid-row: auto; }
  .ex-nike { order: 1; }
  .ex-photo-nike { order: 2; justify-self: stretch; max-width: none; }
  .ex-center { display: none; } /* 모바일에서는 가운데 "Brand Concept" 숨김 */
  .ex-apple { order: 4; }
  .ex-photo-apple { order: 5; justify-self: stretch; max-width: none; }
  .ex-center::before, .ex-center::after { display: none; }
  .ex-desc br, .ex-question br, .purpose-close br, .pain-list br { display: none; }

  .pain-list li { font-size: 16px; }
  .purpose-cards img { border-radius: 12px; }

  .book-cards, .reviews, .results, .creds, .process { grid-template-columns: 1fr; }
  .book-card { padding: 28px 22px 36px; }
  .book-item { padding: 26px 0 0; }
  .book-item + .book-item { margin-top: 26px; }
  .num { font-size: 34px; width: 28px; }
  .review { padding: 24px 20px 28px; }
  .review > p { font-size: 15px; }
  .recommend li { border-radius: 20px; padding: 16px 18px; }
  .faq dd br { display: none; }
  .cred h3 { font-size: min(48px, 12.5vw); }
  .process { gap: 22px; }
  .week { margin-bottom: 10px; padding-top: 4px; padding-bottom: 4px; }
  .process p { margin-top: 4px; }
  .cta-desc br { display: none; }
  .cta-title { font-size: min(18px, 4.6vw); white-space: nowrap; }
  .footer { font-size: min(13px, 3.2vw); letter-spacing: -0.02em; }
  .footer p { white-space: nowrap; }
  .footer .sep { margin: 0 .4em; }
}

/* 서비스 플랜 표: 모바일에서만 좌우 스크롤 안내 */
.scroll-hint { display: none; }
@media (max-width: 767px) {
  .scroll-hint { display: block; margin-top: 28px; font-size: 13px; color: var(--muted); }
  .scroll-hint + .plan-scroll { margin-top: 12px; }
}

/* 서비스 플랜 표: 모바일 상하 간격 축소 */
@media (max-width: 767px) {
  .plan { font-size: 14px; }
  .plan th, .plan td { padding: 7px 10px; line-height: 1.35; }
  .plan thead th { padding-top: 10px; padding-bottom: 12px; font-size: 15px; }
  .plan thead th:first-child { font-size: 14px; }
  .plan tfoot th, .plan tfoot td { padding-top: 10px; padding-bottom: 12px; }
  .plan tfoot td { font-size: 16px; }
}

/* 웹(768px 이상): 모든 섹션 제목·부제목 20% 축소 (Frame work 섹션 기준) */
@media (min-width: 768px) {
  .headline { font-size: calc(var(--fs-headline) * .8); }
  .lead { font-size: calc(var(--fs-lead) * .8); }
  .subhead { font-size: calc(clamp(16px, 2.5vw, 36px) * .8); }
  .recommend li { font-size: calc(clamp(16px, 2.8vw, 41px) * .85); } /* 추천 대상 목록 15% 축소 */
}
