/* =========================================================
   엑셀 대시보드 실전 워크북 — 판매 페이지 전용 스타일
   구조·간격·컴포넌트 규칙은 파워툴스 마스터클래스와 동일 계열,
   색상만 도서 표지 팔레트(네이비/오렌지)를 사용합니다.
========================================================= */

:root {
  --navy: #1F3B5C;        /* 표지 배경색 */
  --navy-deep: #14293f;
  --blue: #2F6FED;
  --orange: #E8720C;
  --ink: #24303F;
  --muted: #4C5A70;
  --line: #D8DEE9;
  --soft: #EEF3FC;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  letter-spacing: -.02em;
  word-break: keep-all;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: min(1160px, calc(100% - 40px)); margin: auto; }
.narrow { max-width: 920px; }
.center { text-align: center; }

/* ---------- 상단 안내 바 ---------- */
.topbar {
  padding: 7px 20px;
  background: var(--navy);
  color: #cdd5ed;
  text-align: center;
  font-size: 13px;
}
.topbar a { color: #fff; font-weight: 700; margin-left: 6px; }

/* ---------- 내비게이션 ---------- */
.nav {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brandGroup { display: flex; align-items: baseline; gap: 12px; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.03em;
  color: var(--navy);
}
.brandLogo { width: 30px; height: 30px; border-radius: 6px; }
.parentBrand { font-size: 13px; color: var(--muted); font-weight: 700; }
.parentBrand:hover { color: var(--blue); }
.navlinks { display: flex; gap: 26px; font-size: 15px; font-weight: 700; color: #4b5972; }
.navlinks a:hover { color: var(--blue); }

/* ---------- 버튼 ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 10px 25px rgba(232, 114, 12, .22);
  transition: .2s;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 13px 30px rgba(232, 114, 12, .3); }
.button.small { padding: 11px 18px; border-radius: 9px; font-size: 14px; box-shadow: none; }
.button.ghost { background: #fff; color: var(--ink); border: 1px solid #dfe4ef; box-shadow: none; }
.button.ghost:hover { box-shadow: 0 8px 18px rgba(31, 59, 92, .1); }
.button.full { width: 100%; }

/* ---------- 공통 섹션 ---------- */
section { padding: 44px 0; }
section.alt { background: var(--soft); }
h2 {
  margin: 0 0 14px;
  font-size: 38px;
  line-height: 1.3;
  letter-spacing: -.045em;
  color: var(--navy);
}
.lead { font-size: 19px; line-height: 1.75; color: #5f6982; margin: 0; }
.sec-lead { max-width: 46em; font-size: 17.5px; font-weight: 500; line-height: 1.75; color: var(--muted); margin: 0 0 34px; }

/* ---------- 히어로 ---------- */
.hero { position: relative; overflow: hidden; background: #f7faff; border-bottom: 1px solid var(--line); }
.heroGlow { position: absolute; border-radius: 50%; filter: blur(10px); pointer-events: none; }
.heroGlow.one { top: -120px; right: 4%; width: 300px; height: 300px; background: rgba(47, 111, 237, .08); }
.heroGlow.two { bottom: -100px; left: 2%; width: 220px; height: 220px; background: rgba(232, 114, 12, .08); }
.heroGrid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px;
  align-items: center; padding: 30px 0 42px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border: 1px solid #dfe5f5; border-radius: 30px;
  background: #fff; color: #59647f; font-size: 13px; font-weight: 700;
  margin-bottom: 20px;
}
.eyebrow b { color: var(--orange); }
.heroCopy h1 { margin: 0; font-size: 44px; line-height: 1.28; letter-spacing: -.045em; color: var(--navy); }
.heroCopy .lead { margin-top: 18px; max-width: 32em; }
.actions { margin-top: 30px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.priceInline { font-size: 15.5px; font-weight: 600; color: var(--muted); }
.priceInline strong { font-size: 22px; color: var(--navy); font-weight: 800; margin-right: 5px; }
.trustRow { margin-top: 18px; display: flex; gap: 18px; flex-wrap: wrap; color: #69738c; font-size: 13px; font-weight: 700; }

.shot { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.hero .shot { box-shadow: 0 16px 40px rgba(31, 59, 92, .16); }
.combo { position: relative; padding-bottom: 36px; }
.combo .cover {
  position: absolute; left: -28px; bottom: 0; width: 33%;
  border-radius: 3px; border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 14px 32px rgba(15, 32, 54, .35);
  transform: rotate(-4deg);
}
.cap { margin-top: 10px; font-size: 13.5px; font-weight: 500; color: var(--muted); text-align: center; }

/* ---------- 차별화 포인트 ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.whyItem { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.whyNo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-bottom: 14px;
  border-radius: 8px; background: var(--orange); color: #fff;
  font-size: 13px; font-weight: 800;
}
.whyItem h3 { margin: 0; font-size: 17px; color: var(--navy); letter-spacing: -.03em; }
.whyItem p { margin: 10px 0 0; font-size: 15px; font-weight: 500; line-height: 1.7; color: var(--muted); }
.whyItem p strong {
  font-weight: 800; color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(232, 114, 12, .45);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---------- 공감 카드 ---------- */
.pain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.pain div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.pain q { display: block; font-size: 17px; font-weight: 800; color: var(--navy); line-height: 1.5; }
.pain p { margin: 12px 0 0; font-size: 15.5px; font-weight: 500; line-height: 1.75; color: var(--muted); }
.painAfter {
  margin-top: 26px; padding: 24px 28px; border-radius: 12px;
  background: var(--navy); color: #DCE6F7; font-size: 16.5px; line-height: 1.75;
}
.painAfter b { color: #fff; }

/* ---------- PART 01 ---------- */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.skill { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 12px; padding: 24px; }
.skill h3 { margin: 0; font-size: 18px; color: var(--navy); letter-spacing: -.03em; }
.skill .can { margin: 10px 0 0; font-size: 15.5px; font-weight: 500; line-height: 1.75; }
.skill .tech { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13.5px; font-weight: 600; color: var(--muted); }

/* ---------- PART 02 ---------- */
.projs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.proj { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.proj .ch {
  flex: none; width: 54px; height: 54px; border-radius: 10px;
  background: var(--navy); color: #BFD3F5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0;
}
.proj .ch b { font-size: 18px; color: #fff; }
.proj h3 { margin: 0; font-size: 17px; color: var(--navy); letter-spacing: -.03em; }
.proj p { margin: 6px 0 0; font-size: 15.5px; font-weight: 500; line-height: 1.75; color: var(--muted); }
.proj .out { margin-top: 10px; font-size: 13.5px; font-weight: 800; color: var(--orange); }

/* ---------- 완성 화면 갤러리 ---------- */
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gal figure { margin: 0; }
.gal .shot { box-shadow: 0 6px 18px rgba(31, 59, 92, .1); transition: box-shadow .2s, transform .2s; }
.gal figure:hover .shot { box-shadow: 0 12px 28px rgba(31, 59, 92, .18); transform: translateY(-3px); }
.gal figcaption { margin-top: 12px; text-align: center; font-size: 15px; font-weight: 800; color: var(--navy); line-height: 1.5; }
.gal figcaption span { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
/* 이미 배경·그림자가 합성된 이미지는 카드 테두리를 비웁니다 */
.gal figure.bare .shot { border: 0; box-shadow: none; background: transparent; }

/* ---------- 목차 ---------- */
.toc { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.toc h3 { margin: 0 0 14px; padding-bottom: 9px; border-bottom: 2px solid var(--blue); font-size: 16px; color: var(--navy); }
.toc ul { margin: 0; padding: 0; list-style: none; }
.toc li { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; font-weight: 600; color: var(--navy); line-height: 1.6; }
.toc li b { flex: none; width: 104px; white-space: nowrap; color: var(--blue); }
.toc li span { flex: 1; }
.toc li em { font-style: normal; font-weight: 400; color: var(--muted); }

/* ---------- 독자 후기 ---------- */
.reviewTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 22px 28px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.reviewScore { display: flex; align-items: center; gap: 16px; }
.reviewScore > b {
  font-size: 42px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.04em;
  line-height: 1;
}
.reviewScoreSide { display: flex; flex-direction: column; gap: 5px; }
.reviewScoreSide small { font-size: 13.5px; color: var(--muted); }
.reviewScoreSide small b { color: var(--navy); font-weight: 800; }

/* 별점: 회색 별 위에 주황 별을 비율만큼 덮어 표시합니다 */
.reviewStars {
  position: relative;
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 2px;
}
.reviewStars .off { color: var(--line); }
.reviewStars .on {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--orange);
}

.reviewLinks { display: flex; gap: 10px; flex-wrap: wrap; }
.reviewLinks a {
  padding: 10px 18px;
  border: 1px solid #dfe4ef;
  border-radius: 9px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  transition: .2s;
}
.reviewLinks a:hover { border-color: var(--blue); color: var(--blue); }

.reviewGrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.reviewCard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
}
.reviewHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.reviewWho { display: flex; align-items: center; gap: 10px; }
.reviewWho b { font-size: 15px; font-weight: 800; color: var(--navy); }
.reviewWho i { font-style: normal; font-size: 14px; letter-spacing: 1px; color: var(--line); }
.reviewWho i em { font-style: normal; color: var(--orange); }
.reviewDate { flex: none; font-size: 13px; color: #8b95a8; }
.reviewCard p {
  margin: 0;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 구매 ---------- */
.buybox {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start;
  padding: 48px 50px; border-radius: 16px; background: var(--navy); color: #fff;
}
.buybox h2 { color: #fff; }
.buybox ul { margin: 22px 0 0; padding: 0; list-style: none; }
.buybox li { position: relative; padding: 10px 0 10px 28px; font-size: 15.5px; color: #DCE6F7; }
.buybox li::before { content: "✓"; position: absolute; left: 0; top: 10px; color: var(--orange); font-weight: 800; }
.buybox li b { display: block; color: #fff; font-weight: 800; }
.buybox li span { display: block; margin-top: 2px; font-size: 14px; color: #A7BBDA; }
.buycard { padding: 30px; border-radius: 12px; background: #fff; color: var(--ink); text-align: center; }
.buycard img { width: 136px; margin: 0 auto 18px; border-radius: 3px; box-shadow: 0 8px 20px rgba(15, 32, 54, .28); }
.buycard .name { font-size: 15px; font-weight: 800; color: var(--navy); }
.buycard .author { margin-top: 5px; font-size: 13px; color: var(--muted); }
.buycard .p { margin: 12px 0 2px; font-size: 36px; font-weight: 800; color: var(--navy); letter-spacing: -.04em; }
.buycard .p small { font-size: 15px; font-weight: 700; color: var(--muted); }
.buycard .vat { font-size: 12.5px; color: var(--muted); }
.buycard .button { margin-top: 20px; }
.buycard .note { margin: 14px 0 0; font-size: 13.5px; line-height: 1.65; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 4px; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 800; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 6px; border: 1px solid transparent;
  color: var(--blue); font-weight: 800; font-size: 20px;
  transition: transform .2s, border-color .2s, background .2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  border-color: var(--blue);
  background: var(--soft);
}
.faq details p { margin: 0; padding: 0 4px 20px; font-size: 16px; font-weight: 500; line-height: 1.8; color: var(--muted); }

/* ---------- 푸터 ---------- */
.footer { padding: 45px 0; background: var(--navy-deep); color: #aeb7cc; }
.footer .wrap { display: flex; justify-content: space-between; gap: 30px; }
.footer .brand { color: #fff; }
.footer p { margin: 8px 0 0; font-size: 13px; }
.footer b { color: #fff; }
.footer p a:hover b { text-decoration: underline; }
.footerInfo { max-width: 640px; }
.footerInfo > p { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: flex-end; align-items: center; }
.footerInfo > p:first-child > * + * { padding-left: 14px; border-left: 1px solid #44506f; }
.footerLinks a { color: #cdd5ed; text-decoration: underline; }
.footerInfo a:hover, .footerLinks a:hover { color: #fff; }

/* ---------- 모바일 고정 구매 바 / 맨 위로 ---------- */
.mobileBar { display: none; }
.scrollTop {
  position: fixed; right: 28px; bottom: 30px; z-index: 30;
  display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--navy); box-shadow: 0 6px 13px rgba(20, 41, 63, .3);
  cursor: pointer; opacity: 0; pointer-events: none;
  transform: translateY(12px); transition: .2s;
}
.scrollTop.isVisible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scrollTop i {
  width: 9px; height: 9px; margin-top: 3px;
  border-left: 2px solid #fff; border-top: 2px solid #fff;
  transform: rotate(45deg);
}

/* ---------- 반응형 ---------- */
@media (max-width: 980px) {
  .heroGrid { grid-template-columns: 1fr; padding: 26px 0 34px; }
  .heroCopy h1 { font-size: 33px; }
  .why { grid-template-columns: 1fr 1fr; }
  h2 { font-size: 29px; }
  .pain, .skills, .projs, .gal, .toc, .faq, .why { grid-template-columns: 1fr; }
  .buybox { grid-template-columns: 1fr; padding: 34px 26px; }
  section { padding: 36px 0; }
  .navlinks { display: none; }

  .reviewGrid { grid-template-columns: 1fr; }
  .reviewTop { padding: 20px 22px; }
  .reviewLinks a { flex: 1; text-align: center; }
}

@media (max-width: 720px) {
  .combo { padding-bottom: 28px; }
  .combo .cover { left: -8px; width: 31%; }
  .footer .wrap { flex-direction: column; }
  .footerInfo > p { justify-content: flex-start; }
  .scrollTop { bottom: 84px; right: 16px; }

  .nav .button.small { display: none; }

  .mobileBar {
    position: fixed; z-index: 20; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 25px rgba(20, 30, 60, .1);
  }
  .mobileBar div { display: flex; flex-direction: column; }
  .mobileBar small { font-size: 9px; color: #7b8499; }
  .mobileBar b { font-size: 17px; color: var(--navy); }
  .mobileBar a {
    padding: 12px 18px; border-radius: 9px;
    background: var(--orange); color: #fff; font-size: 13px; font-weight: 800;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}
