/* color.html 전용 스타일 */

.color-page {
  padding-top: 40px;
}

.color-head {
  max-width: 680px;
  margin-bottom: 12px;
}

.color-title {
  margin: 0 0 14px;
  font-family: var(--font-title);
  font-size: clamp(28px, 4.4vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.color-lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: var(--subtext);
}

.color-lead strong {
  color: var(--text);
}

.color-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.color-toc a {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.color-toc a:hover {
  background: var(--blush);
  color: var(--point-dark);
}

/* ── 섹션 ─────────────────────────────── */
.color-sec {
  max-width: 720px;
  padding-top: 44px;
  scroll-margin-top: 70px;
}

.color-sec h2 {
  margin: 0 0 14px;
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.color-sec h3 {
  margin: 28px 0 8px;
  font-size: 17px;
  font-weight: 800;
}

.color-sec p,
.color-sec li {
  font-size: 15.5px;
  line-height: 1.8;
}

.color-sec p {
  margin: 0 0 12px;
}

.fact-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.fact-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.fact-list strong {
  display: inline-block;
  min-width: 84px;
  margin-right: 6px;
  color: var(--point-dark);
}

.demo-caption {
  margin: 10px 0 0;
  font-size: 13.5px !important;
  color: var(--subtext);
  text-align: center;
}

/* ── 원뿔세포 그림 ───────────────────── */
.cone-demo {
  margin: 18px 0 8px;
  padding: 18px;
  border-radius: 16px;
  background: var(--soft);
}

.cone-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.cone-name {
  flex: 0 0 52px;
  font-size: 14px;
  font-weight: 700;
}

.cone-bar {
  flex: 1;
  display: flex;
  height: 22px;
  border-radius: 999px;
  overflow: hidden;
}

.c-l { background: #ef6a6a; }
.c-m { background: #6cc77a; }
.c-s { background: #6a8ff0; }

.cone-legend {
  margin: 4px 0 0 !important;
  font-size: 13px !important;
  color: var(--subtext);
}

.cone-legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 4px 0 8px;
  border-radius: 50%;
  vertical-align: 0;
}

.cone-legend .dot:first-child {
  margin-left: 0;
}

/* ── 메모리 컬러 / 색역 비교 ─────────── */
.memory-grid,
.gamut-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.memory-item p,
.gamut-item p {
  margin: 8px 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.memory-pair,
.gamut-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 84px;
  border-radius: 14px;
  overflow: hidden;
}

/* ── 체험 공통 ───────────────────────── */
.demo-actions {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.demo-btn {
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--point);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.demo-btn:hover {
  background: var(--point-dark);
}

.demo-seg {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.demo-seg button {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--subtext);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.demo-seg button[aria-pressed="true"] {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

/* ── 동시대비 체험 ───────────────────── */
.contrast-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
  border-radius: 16px;
  overflow: hidden;
}

.contrast-bg {
  display: grid;
  place-items: center;
  height: 200px;
  transition: background 0.6s ease;
}

.contrast-bg.is-dark {
  background: linear-gradient(135deg, #1f1d22, #3a3640);
}

.contrast-bg.is-light {
  background: linear-gradient(135deg, #f4f4f4, #dcdcdc);
}

.contrast-demo.is-plain .contrast-bg {
  background: #a8a8a8;
}

.contrast-chip {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  background: #808080; /* 두 네모는 같은 색 */
}

/* ── 조명·화면 체험 ──────────────────── */
.sample-sheet,
.screen-frame {
  position: relative;
  max-width: 460px;
  margin: 18px auto 0;
  padding: 22px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: filter 0.5s ease;
}

.screen-frame {
  border: 10px solid #26202a;
  border-radius: 20px;
}

.sample-art {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.sample-art span {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1.5px rgba(38, 32, 42, 0.15);
}

.light-filter {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  background: transparent;
  transition: background 0.5s ease;
}

/* ── 프린트톡 색 관리 ────────────────── */
.care-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 22px 0 8px;
}

.care-item {
  padding: 22px 20px 20px;
}

.care-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.care-item p {
  margin: 0;
  font-size: 14.5px;
  color: var(--subtext);
}

.more-link {
  margin-top: 18px !important;
}

.more-link a {
  font-weight: 700;
  color: var(--point-dark);
}

/* ── 체크리스트 ───────────────────────── */
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid var(--line);
}

.check-list li:last-child {
  border-bottom: 0;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 17px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--point);
  border-radius: 5px;
}

.check-list strong {
  display: block;
}

.check-list span {
  font-size: 14.5px;
  color: var(--subtext);
}

.color-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.color-cta a {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.color-cta a.is-primary {
  background: var(--point);
  color: #fff;
}

/* ── 반응형 ───────────────────────────── */
@media (max-width: 720px) {
  .color-page {
    padding-top: 28px;
  }

  .memory-grid,
  .gamut-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .care-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .contrast-bg {
    height: 150px;
  }

  .contrast-chip {
    width: 52px;
    height: 52px;
  }

  .color-cta a {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contrast-bg,
  .sample-sheet,
  .screen-frame,
  .light-filter {
    transition: none;
  }
}
