/* 공용 스타일 — 모든 페이지가 함께 씁니다.
   헤더 · 푸터 · 버튼 · 섹션 뼈대 · 색 토큰 · 폰트.
   여기를 고치면 모든 페이지가 같이 바뀝니다.
   ------------------------------------------------------------------ */

/*
 * Paperlogy — 제목 · 본문을 한 가족으로 씁니다.
 * 역할 구분은 굵기와 자간으로만 만듭니다.
 *
 * woff2 압축 도구를 쓸 수 없는 환경이라 woff 로 변환했습니다.
 * 나중에 woff2 로 다시 뽑으시려면 아래 명령을 쓰세요.
 *
 *   pyftsubset Paperlogy-4Regular.ttf \
 *     --unicodes="U+0020-007E,U+00A0-00FF,U+2000-206F,U+20A9,U+20AC,\
 *                 U+3000-303F,U+3130-318F,U+AC00-D7A3,U+FF01-FF5E" \
 *     --layout-features='*' --flavor=woff2 --output-file=Paperlogy-400.woff2
 *
 * 한글 11,172자를 모두 담고 있어 문구를 바꿔도 글자가 깨지지 않습니다.
 */

@font-face {
  font-family: "Paperlogy";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/paperlogy-300.woff") format("woff");
}

@font-face {
  font-family: "Paperlogy";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/paperlogy-500.woff") format("woff");
}

@font-face {
  font-family: "Paperlogy";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/paperlogy-700.woff") format("woff");
}

@font-face {
  font-family: "Paperlogy";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/paperlogy-800.woff") format("woff");
}

:root {
  /* 글자 */
  --ink: #1a1a1a;
  --ink-soft: #3d3d3d;
  --muted: #5c5c5c;

  /* 바탕 — 본문 영역은 전부 흰색.
     구역 구분은 배경색이 아니라 선과 카드 테두리로만 합니다.
     (푸터만 진한 보라를 유지합니다) */
  --paper: #ffffff;
  --paper-2: #ffffff;
  --shelf: #e5e5e5;
  --shelf-dark: #cfcfcf;

  /* 브랜드 — 공식 BI 파랑 한 계열만 씁니다.
     제목 · 라벨 · 링크 · 푸터가 전부 이 계열입니다. */
  --brand: #0048a8;
  --brand-mid: #003a8c;
  --brand-ink: #00295e;
  --brand-soft: #e8eff9;

  /* 행동 유도 — 공식 BI 빨강.
     원본 #F01830 은 흰 글자 대비가 4.30 이라 버튼용으로 한 단계 낮췄습니다.
     원본 빨강은 글자가 없는 장식에만 씁니다. */
  --cta: #d6142a;
  --cta-dark: #a80f1f;
  --cta-bright: #f01830;

  /* 기관 안내 버튼을 누르거나 올렸을 때의 색 */
  --biz-active: #ffd93d;

  /* 상세 페이지에서 상품별로 덮어쓰는 값 */
  --accent: var(--brand);
  --accent-ink: var(--brand-ink);
  --accent-soft: var(--brand-soft);

  /* 타이포 — 세 역할 모두 Paperlogy 한 가족으로 씁니다.
     구분은 굵기와 자간으로만 만듭니다. (외부 폰트 요청이 하나도 없습니다) */
  /* 제목 · 본문 · 라벨 모두 Paperlogy 한 가족.
     구분은 굵기와 자간으로만 만듭니다. */
  --font-body: "Paperlogy", -apple-system, BlinkMacSystemFont, system-ui,
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-display: var(--font-body);
  --font-mono: var(--font-body);

  /* 레이아웃 */
  --container: 1280px;
  /* 헤더만 조금 더 넓게 씁니다. 본문 · 푸터는 --container 를 그대로 씁니다. */
  --container-header: 1440px;
  --gutter: 20px;
  --header-height: 68px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --header-height: 76px;
  }}


@media (min-width: 1360px) {
  :root {
    --gutter: 40px;
  }}


*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

/* overflow-x: clip 은 hidden 과 달리 스크롤 컨테이너를 만들지 않기 때문에
   헤더의 position: sticky 가 그대로 동작합니다. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

/* 고딕 제목은 명조보다 자간을 더 조여야 덩어리로 읽힙니다. */
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* hidden 속성이 항상 이기게 합니다.
   브라우저 기본 [hidden]{display:none} 은 특이도가 0이라
   .drawer{display:flex} 같은 클래스 규칙에 밀려 무시됩니다. */
[hidden] {
  display: none !important;
}

/* 화면에는 안 보이지만 스크린리더에는 읽히는 텍스트 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 키보드 사용자를 위한 본문 바로가기 */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }}


/* ==========================================================================
   온라인 도서관 — 전체 스타일
   이 파일 하나만 고치면 Next.js 사이트와 preview 폴더 양쪽에 모두 반영됩니다.
   색상과 여백의 기준값은 globals.css 위쪽 :root 에 있습니다.
   ========================================================================== */

/* --- 레이아웃 공통 ------------------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: 64px;
}

/* 본문 영역이 모두 흰색이라 구역은 얇은 선으로만 나눕니다. */
.section--paper {
  background: var(--paper);
  border-top: 1px solid var(--shelf);
}

/* 문의 영역도 흰 바탕입니다. 강조는 글자 굵기와 코랄 버튼으로만 냅니다. */
.section--ink {
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--shelf);
}

@media (min-width: 768px) {
  .section {
    padding-block: 96px;
  }}


/* 청구기호를 닮은 짧은 라벨 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.section-title {
  font-size: clamp(30px, 5.4vw, 46px);
  line-height: 1.28;
}

.section-lead {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.75;
  white-space: pre-line;
}

@media (min-width: 768px) {
  .section-head {
    margin-bottom: 44px;
  }

  .section-lead {
    font-size: 21px;
  }}


/* --- 버튼 --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  transition: transform 0.15s ease, background-color 0.15s ease,
    border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--cta);
  color: #fff;
}

.btn--primary:hover {
  background: var(--cta-dark);
}

/* 상품 강조색을 그대로 쓰는 버튼 (상세 페이지용) */
.btn--accent {
  background: var(--accent);
  color: #fff;
}

.btn--accent:hover {
  background: var(--accent-ink);
}

.btn--outline {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff;
}

.btn--outline:hover {
  background: var(--brand-soft);
}

.btn--on-ink {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--paper);
}

.btn--on-ink:hover {
  border-color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
}

.btn--on-accent {
  background: #fff;
  color: var(--accent-ink);
}

.btn--on-accent:hover {
  background: rgba(255, 255, 255, 0.88);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- 헤더 --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--shelf);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding-block: 6px;
}

.brand__img {
  width: auto;
  height: 30px;
}

.nav {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding-inline: 14px;
  border-radius: var(--radius-sm);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav__link:hover {
  color: var(--ink);
  background: #f4f4f6;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 3px;
  border-radius: 2px;
  background: var(--nav-accent, var(--brand));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.nav__link.is-active {
  color: var(--ink);
}

.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 16px 0 14px;
  border: 2px solid var(--shelf-dark);
  border-radius: 999px;
  background: transparent;
  font-size: 17px;
  font-weight: 600;
}

.nav-toggle:hover {
  border-color: var(--ink);
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* 1024px 이상(=PC · 노트북 · 태블릿 가로)에서는 상단 메뉴를 펼칩니다.
   그 아래에서만 햄버거로 바꿉니다.
   기준값을 바꾸실 때는 Header.tsx 의 NAV_BREAKPOINT 도 같이 고쳐 주세요. */
/* --- 헤더 안 기관 안내 버튼 --------------------------------------------
   좁은 화면(1024px 미만)에서는 감추고 햄버거 메뉴 안에서 안내합니다.     */

.header-biz {
  display: none;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 40px;
  padding-inline: 20px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* 마우스를 올리거나 선택하면 노란색으로 바뀝니다 */
.header-biz:hover,
.header-biz:focus-visible {
  background: var(--biz-active);
  color: var(--brand-ink);
}

.header-biz__short {
  display: none;
}

/* 로고 크기는 헤더 폭에 맞춰 단계적으로 키웁니다 */
.brand__img {
  max-height: 25.2px;
}

@media (min-width: 768px) {
  .brand__img {
    max-height: 27px;
  }}


@media (min-width: 1024px) {
  .nav {
    display: block;
    /* 로고와 기관 버튼 사이의 남는 폭을 메뉴가 모두 차지합니다 */
    flex: 1;
    min-width: 0;
  }

  .nav-toggle {
    display: none;
  }

  /* 바깥 여백을 0 으로 두어야 아래 space-evenly 가 만든 간격이
     로고~첫 메뉴 · 메뉴 사이 · 마지막 메뉴~버튼 에 똑같이 적용됩니다. */
  .site-header__inner {
    gap: 0;
  }

  .nav__list {
    justify-content: space-evenly;
    gap: 0;
  }

  /* 헤더 한 줄에 로고 · 메뉴 4개 · 기관 버튼을 모두 넣습니다.
     폭이 빠듯한 구간일수록 메뉴와 로고를 단계적으로 조입니다.
     여기서 값을 키우면 메뉴가 한 줄에 안 들어갑니다. */
  .nav__link {
    font-size: 17px;
    padding-inline: 12px;
  }

  .brand__img {
    max-height: 28.8px;
  }

  .header-biz {
    display: inline-flex;
  }}


@media (min-width: 1200px) {
  .nav__link {
    font-size: 18px;
    padding-inline: 14px;
  }

  .brand__img {
    max-height: 30.6px;
  }}


@media (min-width: 1440px) {
  .nav__link {
    font-size: 18px;
    padding-inline: 14px;
  }

  .brand__img {
    max-height: 32.4px;
  }}


/* --- 모바일 메뉴 -------------------------------------------------------- */

/* 헤더 바깥에 두어야 합니다.
   헤더에 backdrop-filter 가 걸려 있어, 그 안에서는
   position: fixed 가 화면이 아니라 헤더 기준으로 잡힙니다. */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(26, 23, 18, 0.45);
  animation: fadeIn 0.18s ease;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  width: min(400px, 88vw);
  background: var(--paper);
  border-left: 3px solid var(--shelf);
  animation: slideIn 0.22s ease;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-height);
  padding-inline: 20px;
  border-bottom: 3px solid var(--shelf);
}

.drawer__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--shelf-dark);
  border-radius: 50%;
  background: transparent;
}

.drawer__close:hover {
  border-color: var(--ink);
}

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 20px 28px;
  -webkit-overflow-scrolling: touch;
}

.drawer__list {
  display: flex;
  flex-direction: column;
}

.drawer__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 19px 4px;
  border-bottom: 1px solid var(--shelf);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-soft);
}

.drawer__link.is-active {
  color: var(--ink);
}

.drawer__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  padding-inline: 8px;
  border-radius: 4px;
  background: var(--nav-accent, var(--brand));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  flex: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* --- 서가 (메인 비주얼) ------------------------------------------------- */

.shelf {
  width: 100%;
}

.shelf__spines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spine {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 0 16px;
  border-radius: 4px;
  background: var(--spine);
  color: #fff;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

/* 책배(종이 단면)를 흉내 낸 밝은 띠 */
.spine::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.42),
    rgba(255, 255, 255, 0)
  );
}

.spine:hover {
  transform: translateX(6px);
  box-shadow: -6px 0 0 rgba(26, 23, 18, 0.12);
}

.spine__code {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.78);
  flex: none;
}

.spine__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  min-width: 0;
}

.spine__arrow {
  margin-left: auto;
  flex: none;
  opacity: 0.8;
}

.shelf__board {
  height: 10px;
  margin-top: 10px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(to bottom, var(--shelf-dark), var(--shelf));
  box-shadow: 0 8px 18px -10px rgba(26, 23, 18, 0.5);
}

/* 720px 이상에서는 책을 세워 서가에 꽂습니다. */
@media (min-width: 720px) {
  .shelf__spines {
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
  }

  .spine {
    flex: 1 1 0;
    min-width: 54px;
    max-width: 96px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0 16px;
    border-radius: 4px 4px 0 0;
  }

  .spine::before {
    inset: 0 0 auto 0;
    width: 100%;
    height: 7px;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.42),
      rgba(255, 255, 255, 0)
    );
  }

  .spine:hover {
    transform: translateY(-14px);
    box-shadow: 0 16px 24px -14px rgba(26, 23, 18, 0.6);
  }

  .spine:nth-child(1) {
    height: 300px;
  }
  .spine:nth-child(2) {
    height: 344px;
  }
  .spine:nth-child(3) {
    height: 286px;
  }
  .spine:nth-child(4) {
    height: 324px;
  }

  .spine__name {
    writing-mode: vertical-rl;
    font-size: 23px;
    letter-spacing: 0.02em;
  }

  .spine__arrow {
    margin-left: 0;
    transform: rotate(90deg);
  }}


@media (min-width: 1024px) {
  .spine {
    max-width: 108px;
  }

  .spine__name {
    font-size: 23px;
  }}


/* --- 메인: 비주얼 ------------------------------------------------------- */

/* 사진을 화면 전체에 깔고 그 위에 흰 글자를 올립니다.
   사진의 왼쪽이 하늘 · 바다라 중간 밝기이므로,
   남색 막을 덮어 흰 글자 대비를 확보합니다. (막 없이는 대비 1.6 수준) */
.home-hero {
  position: relative;
  padding-block: 56px 64px;
  background-color: #0d2c52;
  background-image: url("../img/hero/home-sm.jpg");
  background-size: cover;
  /* 아이가 사진 아래쪽에 서 있어 세로 기준을 바닥에 맞춰야
     넓은 띠로 잘릴 때도 발끝까지 들어옵니다. */
  background-position: 70% bottom;
  background-repeat: no-repeat;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 42, 94, 0.86) 0%,
    rgba(0, 42, 94, 0.78) 40%,
    rgba(0, 42, 94, 0.22) 78%,
    rgba(0, 42, 94, 0.12) 100%
  );
}

.home-hero > .container {
  position: relative;
}

.home-hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.home-hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 620px;
}

/* 글이 끝나고 버튼이 나오기 전에 숨 쉴 자리를 둡니다 (본문 두 줄 높이) */
.home-hero__text .btn-group {
  margin-top: 44px;
}


.home-hero__title {
  font-size: clamp(34px, 8vw, 62px);
  line-height: 1.22;
  color: var(--brand);
}

/* 강조 단어 밑에 노란 붓자국 */
.home-hero__title em {
  position: relative;
  font-style: normal;
  z-index: 0;
}

.home-hero__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 6px;
  background: var(--brand-soft);
  border-radius: 3px;
  z-index: -1;
}

.home-hero__lead {
  display: grid;
  gap: 16px;
  color: var(--ink-soft);
  font-size: clamp(17px, 4.1vw, 21px);
  line-height: 1.75;
}

/* 원고의 줄바꿈을 그대로 살립니다 */
.home-hero__lead p {
  white-space: pre-line;
}

.home-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-hero__meta span {
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--shelf);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

.home-hero__shelf {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-hero__shelf-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-mid);
}

@media (min-width: 760px) {
  .home-hero {
    background-image: url("../img/hero/home-lg.jpg");
    display: flex;
    align-items: center;
    min-height: 520px;
  }

  .home-hero > .container {
    width: 100%;
  }}


@media (min-width: 1200px) {
  .home-hero {
    min-height: 600px;
    padding-block: 88px;
  }}


/* --- 상품: 메인 비주얼 -------------------------------------------------- */

.prod-hero {
  padding-block: 40px 52px;
  background: var(--paper);
}

.prod-hero__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.prod-hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-left: 20px;
  border-left: 6px solid var(--accent);
  min-width: 0;
}

.prod-hero__head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.prod-hero__logo {
  width: auto;
  height: 34px;
}

.prod-hero__title {
  font-size: clamp(33px, 6.8vw, 53px);
  line-height: 1.3;
}

.prod-hero__title-en {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.prod-hero__tagline {
  color: var(--accent-ink);
  font-size: clamp(21px, 4.5vw, 26px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.5;
}

.prod-hero__summary {
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.85;
  max-width: 52ch;
}

.prod-hero__figure {
  margin: 0;
  min-width: 0;
}

.prod-hero__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--shelf-dark);
  background: #fff;
}

@media (min-width: 900px) {
  .prod-hero {
    padding-block: 56px 76px;
  }

  .prod-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 48px;
  }

  .prod-hero__text {
    padding-left: 28px;
  }}


/* --- 상품: 개요 --------------------------------------------------------- */

.prod-overview__grid {
  display: grid;
  gap: 28px;
}

.prod-overview__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.85;
  max-width: 62ch;
}

.stats {
  display: grid;
  margin-top: 36px;
}

.stat {
  display: grid;
  gap: 4px;
  padding-block: 18px;
  border-top: 3px solid var(--shelf);
}

.stat__value {
  font-size: clamp(24px, 4.7vw, 31px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent-ink);
}

.stat__label {
  color: var(--muted);
  font-size: 18px;
}

@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 28px;
  }}


@media (min-width: 1024px) {
  .prod-overview__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
  }

  .prod-overview__body {
    font-size: 21px;
  }}


/* --- 상품: 주요 특징 ---------------------------------------------------- */

.features {
  display: grid;
}

.feature {
  display: grid;
  gap: 8px;
  padding-block: 26px;
  border-top: 3px solid var(--shelf);
}

.feature__title {
  font-size: 24px;
}

.feature__text {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
  max-width: 46ch;
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }}


/* --- 상품: 콘텐츠 구성 -------------------------------------------------- */

.compositions {
  display: grid;
  gap: 16px;
}

.composition {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--shelf-dark);
  background: var(--paper);
}

.composition__title {
  font-size: 22px;
  color: var(--accent-ink);
}

.composition__text {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 16px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .compositions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }}


/* --- 상품: 이용 대상 ---------------------------------------------------- */

.audiences {
  display: grid;
}

.audience {
  display: grid;
  gap: 6px;
  padding-block: 22px;
  border-top: 3px solid var(--shelf);
}

.audience__label {
  font-size: 23px;
}

.audience__text {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
  max-width: 42ch;
}

@media (min-width: 768px) {
  .audiences {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 32px;
  }}


/* --- 상품: 화면 갤러리 -------------------------------------------------- */

.gallery {
  display: grid;
  gap: 20px;
}

.gallery__item {
  margin: 0;
  min-width: 0;
}

.gallery__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--shelf-dark);
  background: #fff;
}

.gallery__caption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 18px;
}

@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }}


/* --- 상품: CTA ---------------------------------------------------------- */

.prod-cta {
  padding-block: 56px;
  background: var(--accent-ink);
  color: #fff;
}

.prod-cta__inner {
  display: grid;
  gap: 24px;
}

.prod-cta__title {
  font-size: clamp(29px, 5.4vw, 41px);
  line-height: 1.35;
}

.prod-cta__text {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 20px;
  line-height: 1.8;
  max-width: 46ch;
}

.prod-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: center;
}

@media (min-width: 900px) {
  .prod-cta {
    padding-block: 72px;
  }

  .prod-cta__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 48px;
    align-items: center;
  }}


/* --- 상품: 다른 상품 카드 ----------------------------------------------- */

.others {
  display: grid;
  gap: 16px;
}

.other {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--shelf-dark);
  border-top: 5px solid var(--card-accent);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--paper);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.other:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px -18px rgba(26, 23, 18, 0.6);
}

.other__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.other__logo {
  width: auto;
  height: 26px;
}

.other__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 20px;
  padding-inline: 7px;
  border-radius: 4px;
  background: var(--card-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.other__name {
  font-size: 23px;
}

.other__tagline {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  flex: 1;
}

.other__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--card-accent-ink);
}

@media (min-width: 700px) {
  .others {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }}


/* --- 푸터 --------------------------------------------------------------- */

.site-footer {
  background: var(--brand-ink);
  border-top: 3px solid var(--shelf-dark);
  padding-block: 48px 32px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
}

.site-footer__top {
  display: grid;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.footer-brand__img {
  width: auto;
  height: 32px;
}

.footer-brand__note {
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  line-height: 1.7;
}

.footer-navs {
  display: grid;
  gap: 28px;
}

.footer-nav__title {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.56);
}

.footer-nav__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav__link {
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.15s ease;
}

.footer-nav__link:hover {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__bottom {
  padding-top: 28px;
}

.footer-company {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--paper);
}

.footer-details {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-bottom: 18px;
  /* .site-footer 의 17px 를 물려받던 자리입니다 */
  font-size: 15px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.7;
}

.footer-detail {
  display: flex;
  gap: 6px;
}

.footer-detail__label {
  color: rgba(255, 255, 255, 0.5);
}

.footer-detail__value {
  transition: color 0.15s ease;
}

.footer-detail__value:hover {
  color: var(--paper);
}

/* 사업자 정보확인 — 공정위 조회 페이지로 나가는 작은 버튼 */
.footer-detail__biz {
  display: inline-flex;
  align-items: center;
  padding: 1px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-detail__biz:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--paper);
}

.footer-copyright {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.56);
}

@media (min-width: 768px) {
  .site-footer {
    padding-block: 64px 40px;
  }

  .footer-navs {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }}


@media (min-width: 1024px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 48px;
  }}


/* --- 히어로는 글자 크기를 그대로 둡니다 -------------------------------- */

.home-hero .eyebrow {
  font-size: 13px;
}

.home-hero .btn {
  font-size: 17px;
}


/* --- 실제 로고 표시 규칙 ------------------------------------------------
   브랜드마다 가로세로비가 크게 다릅니다.
   (News-O-Matic 4.6:1  ↔  Highlights 1.2:1)
   높이만 맞추면 어떤 로고는 아주 작아 보이므로,
   가로 · 세로 양쪽에 상한을 두고 비율을 유지한 채 맞춥니다.        */

.brand__img,
.home-product__logo,
.prod-hero__logo,
.other__logo,
.footer-brand__img {
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand__img {
  max-width: 207px;
}

.prod-hero__logo {
  max-height: 62px;
  max-width: 240px;
}

.other__logo {
  max-height: 36px;
  max-width: 130px;
}

/* 흰색 녹아웃 로고라 어두운 푸터에 그대로 올립니다 */
.footer-brand__img {
  max-height: 37.8px;
  max-width: 216px;
}


/* --- 헤더 전용 폭 -------------------------------------------------------
   헤더와 그 위 유틸리티 띠만 1440px 까지 씁니다.                          */

.container--header {
  max-width: var(--container-header);
}

/* 좁은 화면의 서랍 메뉴 안에 두는 기관 안내 */
.drawer__biz {
  margin-top: 20px;
  padding: 18px 4px 0;
  border-top: 3px solid var(--shelf);
}

.drawer__biz-label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--muted);
}




/* --- 히어로가 사진 위에 놓이므로 글자를 밝게 --------------------------- */

.home-hero .eyebrow {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.home-hero__title {
  color: #fff;
}

.home-hero__title em::after {
  background: rgba(255, 255, 255, 0.28);
}

.home-hero__lead {
  color: rgba(255, 255, 255, 0.9);
}

.home-hero__meta span {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

/* 사진 위에서는 테두리 버튼을 흰색으로 */
.home-hero .btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}

.home-hero .btn--outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}

.lex__grade-range {
  font-size: 15px;
  color: var(--muted);
}

/* 화면에 들어오면 왼쪽부터 차례로 펼쳐집니다.
   .lex--animate 는 스크립트가 켜져 있을 때만 붙으므로,
   스크립트가 막히면 처음부터 완성된 상태로 보입니다. */
.lex--animate .lex__bar {
  width: 0;
  transition: width 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) var(--delay, 0s);
}

.lex--animate .lex__bar span {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lex--animate.is-in .lex__bar {
  width: var(--span);
}

.lex--animate.is-in .lex__bar span {
  opacity: 1;
  transition-delay: calc(var(--delay, 0s) + 0.45s);
}

@media (prefers-reduced-motion: reduce) {
  .lex--animate .lex__bar,
  .lex--animate .lex__bar span {
    width: var(--span);
    opacity: 1;
    transition: none;
  }}


/* ── 시작 화면 ──────────────────────────────────────────── */

.finder__start {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 44px 28px;
  border: 2px dashed var(--brand);
  border-radius: var(--radius-lg);
  background: #f7faff;
  text-align: center;
}

.finder__badge-start {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--cta);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.finder__start-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 4.6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.4;
  color: var(--brand);
}

.finder__start-text {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.finder__start .btn {
  margin-top: 22px;
}

/* ── 질문 화면 ──────────────────────────────────────────── */

.finder__card {
  padding: 32px 26px 36px;
  border: 2px solid var(--brand);
  border-radius: var(--radius-lg);
  background: #fff;
}

.finder__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
}

.finder__step {
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.finder__progress {
  height: 5px;
  border-radius: 999px;
  background: var(--shelf);
  overflow: hidden;
}

.finder__progress span {
  display: block;
  height: 100%;
  width: var(--done, 25%);
  border-radius: 999px;
  background: var(--brand);
  transition: width 0.35s ease;
}

.finder__question {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(20px, 4.2vw, 25px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.45;
  color: var(--brand);
  text-align: center;
}

/* 선택지 — 문장이 길어서 가로로 꽉 찬 카드로 둡니다 */
.finder__answers {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.finder__answer {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 14px 20px;
  border: 2px solid var(--shelf);
  border-radius: var(--radius);
  background: #fff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.finder__answer::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--shelf-dark);
  border-radius: 50%;
}

.finder__answer:hover,
.finder__answer:focus-visible {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.finder__answer:hover::before,
.finder__answer:focus-visible::before {
  border-color: var(--brand);
  border-width: 6px;
}

.finder__back {
  margin-top: 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 4px;
}

.finder__back:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── 결과 화면 ──────────────────────────────────────────── */

.finder__result {
  display: grid;
  gap: 20px;
  padding: 28px 26px;
  border: 2px solid var(--brand);
  border-radius: var(--radius-lg);
  background: #fff;
}

.finder__badge {
  justify-self: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  white-space: pre-line;
}

.finder__logo {
  justify-self: center;
  max-height: 54px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
}

.finder__shot {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--shelf);
}

.finder__points {
  display: grid;
  gap: 10px;
}

.finder__point {
  display: flex;
  gap: 10px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.finder__point::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--brand);
}

.finder__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-top: 40px;
}

.finder__restart {
  min-height: 46px;
  padding-inline: 24px;
  border: 2px solid var(--shelf-dark);
  border-radius: 999px;
  background: #fff;
  font-size: 17px;
  font-weight: 700;
  color: var(--muted);
}

.finder__restart:hover {
  border-color: var(--brand);
  color: var(--brand);
}

@media (min-width: 760px) {
  .finder__start {
    padding: 56px 40px;
  }

  .finder__card {
    padding: 40px 40px 44px;
  }

  .finder__result {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    padding: 36px;
    column-gap: 36px;
  }

  .finder__badge,
  .finder__logo {
    justify-self: start;
  }

  .finder__shot {
    grid-row: 1 / span 4;
    grid-column: 2;
  }

  .finder__foot {
    justify-content: flex-start;
  }}



/* --- 준비중 알림 팝업 ---------------------------------------------------
   아직 열리지 않은 곳을 누르면 뜹니다.
   준비가 끝나면 data/products.json 의 ready 를 true 로 바꾸면
   팝업 없이 바로 이동합니다.                                              */

.soon-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(23, 23, 26, 0.55);
  animation: fadeIn 0.15s ease;
}

.soon {
  width: 100%;
  max-width: 420px;
  padding: 36px 28px 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  text-align: center;
  animation: soonIn 0.18s ease;
}

.soon__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--brand);
}

.soon__text {
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.soon__close {
  margin-top: 28px;
  min-height: 46px;
  padding-inline: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.soon__close:hover {
  background: var(--brand-mid);
}

@keyframes soonIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ═══ 상품 상세 (BOOKR Class) ═══════════════════════════════════════════
   상단은 메인 히어로 클래스를 그대로 물려받습니다.
   (.home-hero / .home-hero__text / .home-hero__title …)
   배경 사진 · 남색 막 · 글 영역 620px 이 자동으로 같아집니다.          */

/* 이미지가 들어갈 자리 */
.ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  aspect-ratio: var(--ph-ratio, 4 / 3);
  border: 2px solid var(--shelf-dark);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  text-align: center;
  padding: 16px;
}

.ph__label {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand);
}
  .fl-thumb__label { font-size: 12px; font-weight: 700; color: var(--brand); }
  .lu-ph { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center;
        background: linear-gradient(135deg, #dce6f5, #c6d5ee); }
  .lu-ph__label { font-size: 13px; font-weight: 700; color: var(--brand); }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; }