/* ============================================================
   공동구매 운영 인프라 피치덱 - 공통 스타일
   ============================================================ */

:root {
  --bg: #F8F7F2;
  --paper: #FFFFFF;
  --ink: #17211B;
  --muted: #66736B;
  --line: #DADDD6;
  --primary: #0F3D2E;
  --primary-soft: #1B5C46;
  --secondary: #123A5A;
  --accent: #E36A2E;
  --soft: #EAF1EC;

  --slide-w: 1280px;
  --slide-h: 720px;

  --font-sans: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-num: "Inter", "Arial", sans-serif;
}

@font-face {
  font-family: "Pretendard";
  font-weight: 100 900;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/woff2/PretendardVariable.woff2") format("woff2-variations");
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   슬라이드 컨테이너 (개별 슬라이드 페이지에서 사용)
   ============================================================ */

body.standalone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(180deg, #F2F0E8 0%, var(--bg) 100%);
  overflow: hidden;
}

.slide {
  position: relative;
  width: var(--slide-w);
  height: var(--slide-h);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(15, 61, 46, 0.08);
}

body.standalone .slide {
  transform-origin: center center;
  transform: scale(var(--scale, 1));
}

/* iframe 임베드 모드: 100% 채우기, 그림자 제거 */
body.embed {
  background: var(--paper);
}
body.embed .slide {
  width: 100vw;
  height: 100vh;
  transform: none;
  box-shadow: none;
}

/* ============================================================
   슬라이드 공통 레이아웃
   ============================================================ */

.slide-inner {
  position: absolute;
  inset: 0;
  padding: 64px 80px 64px;
  display: flex;
  flex-direction: column;
}

.slide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.slide-eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--primary);
}

.slide-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}

.slide-subtitle {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 28px;
  max-width: 980px;
}

.slide-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.slide-footer {
  position: absolute;
  left: 80px;
  right: 80px;
  bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-num);
  letter-spacing: 0.06em;
}

.slide-footer .brand {
  font-weight: 600;
  color: var(--primary);
}

.slide-footer .index {
  font-weight: 600;
  color: var(--ink);
}

.slide-footer .index .of {
  color: var(--muted);
  font-weight: 400;
  margin: 0 6px;
}

/* ============================================================
   유틸 컴포넌트
   ============================================================ */

.kpi {
  font-family: var(--font-num);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--primary);
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary);
}

.tag.accent {
  background: rgba(227, 106, 46, 0.12);
  color: var(--accent);
}

.tag.navy {
  background: rgba(18, 58, 90, 0.10);
  color: var(--secondary);
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.card.dark {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.card.dark .card-title,
.card.dark .card-body { color: #fff; }

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.card-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 16px 0;
}

table.std {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.std th,
table.std td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

table.std th {
  font-weight: 700;
  color: var(--ink);
  background: var(--soft);
  font-size: 12px;
  letter-spacing: 0.03em;
}

table.std td.num,
table.std th.num {
  text-align: right;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   reveal 애니메이션
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
  transition-delay: calc(var(--i, 0) * 110ms);
}

.slide.active .reveal,
.slide.is-loaded .reveal {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 520ms ease, transform 520ms ease;
  transition-delay: calc(var(--i, 0) * 110ms);
}

.slide.active .reveal-scale,
.slide.is-loaded .reveal-scale {
  opacity: 1;
  transform: scale(1);
}

/* ============================================================
   인쇄
   ============================================================ */

@media print {
  @page { size: 1280px 720px; margin: 0; }
  html, body {
    background: #fff !important;
    margin: 0; padding: 0;
  }
  body.standalone {
    min-height: 0;
    display: block;
  }
  .slide {
    width: 1280px !important;
    height: 720px !important;
    transform: none !important;
    box-shadow: none !important;
    page-break-after: always;
  }
  .reveal,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
