@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  --green-300: #A3CB4D;
  --green-500: #5C9A4F;
  --teal-500: #11686E;
  --teal-50: #E6F2F3;
  --ink-900: #0F212C;
  --ink-700: #2C4A57;
  --ink-600: #43606C;
  --line: #DDE5E9;
  --bg-soft: #F4F8F5;

  --line-strong: #C3D0D6;
  --surface: #ffffff;
  --surface-soft: var(--teal-50);
  --surface-amber: #fff8ea;
  --amber: #8a5a00;
  --ink: var(--ink-900);
  --ink-soft: var(--ink-700);
  --muted: var(--ink-600);
  --green: #2f6b44;
  --green-bg: #edf5e7;
  --red: #a33020;
  --red-bg: #fff2ef;
  --shadow: 0 18px 44px rgba(17, 104, 110, .10);
  --content: 1380px;
  --font: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg-soft);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--green-500); outline-offset: 3px; }

.presentation { display: grid; grid-template-columns: 234px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  padding: 24px 16px; color: #DCECEC; background: var(--teal-500); overflow: auto;
}
.brand { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.2); }
.brand-kicker { display: block; color: var(--green-300); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.brand strong { display: block; margin-top: 8px; color: #fff; font-size: 19px; line-height: 1.25; letter-spacing: -.03em; }
.brand span:last-child { display: block; margin-top: 8px; color: #C6DEDC; font-size: 12px; }
.side-nav { margin-top: 22px; }
.nav-label { margin: 0 0 10px; color: #BBD9D6; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.nav-list { display: grid; gap: 4px; }
.nav-link { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: center; padding: 8px; color: #DCECEC; border-radius: 8px; text-decoration: none; transition: background .18s ease, color .18s ease; }
.nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-link.active { background: #fff; color: var(--teal-500); }
.nav-no { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; font-size: 10px; font-weight: 800; }
.nav-link.active .nav-no { background: var(--teal-500); color: #fff; border-color: var(--teal-500); }
.nav-text { min-width: 0; }
.nav-text strong { display: block; font-size: 13px; line-height: 1.25; letter-spacing: -.015em; }
.nav-text small { display: block; margin-top: 2px; color: inherit; opacity: .66; font-size: 10px; }
.sidebar-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); color: #BBD9D6; font-size: 11px; line-height: 1.55; text-align: center; }
.sidebar-foot strong { color: #fff; }
.content { min-width: 0; padding: 48px clamp(28px, 4vw, 64px) 72px; }
.briefing { max-width: var(--content); margin: 0 auto; }
.slide { min-height: calc(100vh - 120px); padding: clamp(34px, 4vw, 58px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 28px; }
.slide:last-child { border-bottom: 0; }
.slide-head { max-width: 820px; margin-bottom: 34px; }
.kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px; color: var(--teal-500); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.kicker::before { content: ""; width: 22px; height: 3px; background: var(--green-500); border-radius: 8px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(42px, 5.4vw, 74px); line-height: 1.08; letter-spacing: -.06em; }
h2 { margin-bottom: 16px; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.15; letter-spacing: -.05em; }
h3 { letter-spacing: -.03em; }
.lede { max-width: 790px; color: var(--ink-soft); font-size: 18px; line-height: 1.75; }
.hero-slide { position: relative; display: grid; align-content: center; overflow: hidden; margin: -48px calc(clamp(28px, 4vw, 64px) * -1) 0; padding: 74px clamp(28px, 4vw, 64px) 66px; color: #fff; background: linear-gradient(96deg, #5C9A4F 0%, #11686E 78%); border-bottom: 0; }
.hero-slide > * { position: relative; }
.hero-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 44px; max-width: 1040px; background: var(--line); border: 1px solid var(--line); }
.hero-meta div { padding: 18px 20px; background: rgba(255,255,255,.92); }
.hero-meta strong { display: block; color: var(--teal-500); font-size: 20px; line-height: 1.2; }
.hero-meta span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.callout { display: grid; grid-template-columns: 26px 1fr; gap: 13px; max-width: 900px; padding: 18px 20px; background: var(--surface-amber); border: 1px solid #eed39c; color: #604500; font-size: 14px; line-height: 1.6; }
.callout-mark { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--amber); font-size: 12px; font-weight: 800; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(17,104,110,.05); }
.card h3 { margin-bottom: 10px; color: var(--teal-500); font-size: 19px; }
.card p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.card ul { margin: 14px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 13px; }
.card li + li { margin-top: 7px; }
.mini-label { display: block; margin-bottom: 10px; color: var(--green-500); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.flow { display: grid; gap: 12px; }
.flow-step { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 19px 20px; background: #fff; border: 1px solid var(--line); }
.flow-no { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; background: var(--teal-500); border-radius: 50%; font-size: 12px; font-weight: 800; }
.flow-step h3 { margin-bottom: 4px; font-size: 16px; }
.flow-step p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.arch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.diagram-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.diagram-tab { min-height: 38px; padding: 0 13px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; font-weight: 750; }
.diagram-tab[aria-selected="true"] { color: #fff; background: var(--teal-500); border-color: var(--teal-500); }
.diagram-panel { display: none; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.diagram-panel.active { display: block; }
.diagram-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.diagram-top p { margin: 0; color: var(--muted); font-size: 12px; }
.diagram-top a { color: var(--teal-500); font-size: 12px; font-weight: 750; text-decoration: none; }
.diagram-scroll { overflow: auto; padding: 8px; background: #fbfcfd; }
.diagram-scroll img { width: 100%; min-width: 900px; height: auto; }
.diagram-note { padding: 14px 17px; color: var(--muted); font-size: 12px; line-height: 1.6; border-top: 1px solid var(--line); }
.diagram-note strong { color: var(--ink); }
.spec-list { display: grid; gap: 10px; }
.spec { padding: 16px; background: #fff; border: 1px solid var(--line); }
.spec span { display: block; color: var(--green-500); font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.spec strong { display: block; margin: 5px 0 4px; color: var(--teal-500); font-size: 17px; }
.spec p { margin: 0; color: var(--muted); font-size: 12px; }
.status-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.status-table th { padding: 13px 15px; color: var(--teal-500); background: #f4f8fb; font-size: 12px; text-align: left; }
.status-table td { padding: 14px 15px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; vertical-align: top; }
.badge { display: inline-flex; align-items: center; min-height: 23px; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.badge.ok { color: var(--green); background: var(--green-bg); }
.badge.verify { color: var(--amber); background: var(--surface-amber); }
.badge.out { color: var(--muted); background: #f0f3f5; }
.poc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.poc-card { padding: 26px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal-500); }
.poc-card .poc-no { display: block; margin-bottom: 12px; color: var(--green-500); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.poc-card h3 { margin-bottom: 9px; font-size: 20px; }
.poc-card p { color: var(--muted); font-size: 13px; }
.poc-card ul { margin: 14px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 13px; }
.poc-card li + li { margin-top: 6px; }
.success { margin-top: 17px; padding-top: 14px; color: var(--green); border-top: 1px solid var(--line); font-size: 12px; font-weight: 750; }
.video-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.video-card { min-height: 168px; padding: 18px; text-align: left; background: #fff; border: 1px solid var(--line); transition: transform .18s ease, border .18s ease; }
.video-card:hover { transform: translateY(-2px); border-color: var(--green-500); }
.video-card.optional { background: #f8fafb; }
.video-card .top { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 750; }
.video-card h3 { margin: 18px 0 6px; font-size: 14px; line-height: 1.4; }
.video-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.video-card .play { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--teal-500); font-size: 11px; font-weight: 800; }
.play-dot { width: 19px; height: 19px; display: inline-grid; place-items: center; color: #fff; background: var(--teal-500); border-radius: 50%; font-size: 8px; }
.source-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.source-box { padding: 24px; background: #fff; border: 1px solid var(--line); }
.source-box h3 { margin-bottom: 11px; color: var(--teal-500); }
.source-box ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.source-box li + li { margin-top: 7px; }
.source-box a { color: var(--teal-500); font-weight: 650; text-underline-offset: 2px; }
.video-dialog { width: min(1080px, calc(100vw - 36px)); max-height: min(760px, calc(100vh - 36px)); padding: 0; border: 0; background: #091727; box-shadow: 0 32px 80px rgba(0,0,0,.35); }
.video-dialog::backdrop { background: rgba(2, 13, 30, .72); backdrop-filter: blur(3px); }
.video-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; color: #fff; }
.video-dialog h2 { margin: 0; font-size: 15px; }
.video-close { width: 34px; height: 34px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; font-size: 19px; }
.video-dialog video { width: 100%; max-height: calc(100vh - 120px); display: block; background: #000; }
.video-dialog p { margin: 0; padding: 12px 18px 16px; color: #C6DEDC; font-size: 12px; }
@media (max-width: 1120px) {
  .presentation { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; padding: 20px 20px 86px; }
  .sidebar .brand { padding-bottom: 12px; }
  .side-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--teal-500); border-top: 1px solid rgba(255,255,255,.22); }
  .nav-label { display: none; }
  .nav-list { display: flex; gap: 6px; overflow-x: auto; }
  .nav-link { min-width: 112px; padding: 7px 9px; }
  .sidebar-foot { display: none; }
  .content { padding-top: 0; padding-bottom: 96px; }
  .hero-slide { margin-top: 0; }
  .arch-layout { grid-template-columns: 1fr; }
  .video-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .content { padding-left: 18px; padding-right: 18px; }
  .hero-slide { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  .hero-meta, .grid-2, .grid-3, .poc-cards, .source-grid, .video-strip { grid-template-columns: 1fr; }
  .nav-list { grid-template-columns: 1fr; }
  .slide { min-height: 0; padding: 40px 0; }
  .diagram-scroll img { min-width: 900px; }
  .diagram-scroll::after { content: "좌우로 스크롤해 원본 다이어그램을 확인하세요."; display: block; padding: 7px 2px 0; color: var(--muted); font-size: 11px; }
}
@media print {
  .sidebar, .video-dialog { display: none !important; }
  .presentation { display: block; }
  .content { padding: 0; }
  .slide { min-height: 0; break-inside: avoid; padding: 28px 0; }
  .diagram-panel { display: block !important; margin-bottom: 12px; }
  .diagram-scroll { overflow: visible; }
  .diagram-scroll img { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Brand assets and diagram zoom */
.brand .brand-kicker { margin-top: 0; }
.diagram-open {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(17,104,110,.05);
}
.diagram-open img { width: 100%; height: auto; }
.diagram-open > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.diagram-open > span::after { content: "전체 화면"; color: var(--teal-500); font-weight: 750; }
.diagram-frame { border: 0; box-shadow: none; }
.diagram-dialog {
  width: min(1500px, calc(100vw - 32px));
  height: min(940px, calc(100vh - 32px));
  padding: 0;
  border: 0;
  background: #fff;
  box-shadow: 0 32px 80px rgba(0,0,0,.24);
}
.diagram-dialog::backdrop { background: rgba(2, 13, 30, .72); backdrop-filter: blur(3px); }
.diagram-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  color: var(--teal-500);
  border-bottom: 1px solid var(--line);
}
.diagram-dialog h2 { margin: 0; font-size: 15px; }
.diagram-close {
  width: 34px;
  height: 34px;
  color: var(--teal-500);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 19px;
}
.diagram-zoom-body {
  height: calc(100% - 64px);
  overflow: auto;
  background: #fbfcfd;
}
.diagram-zoom-body img {
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .diagram-zoom-body img { width: 100%; height: auto; }
}

/* Embedded technical answers */
.answer-content {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.answer-content h2 {
  font-size: 26px;
  line-height: 1.25;
  margin: 34px 0 12px;
}
.answer-content h3 {
  font-size: 19px;
  line-height: 1.35;
  margin: 26px 0 10px;
}
.answer-content h4 {
  font-size: 15px;
  margin: 20px 0 8px;
}
.answer-content p,
.answer-content li {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.72;
}
.answer-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 26px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
}
.answer-content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.answer-content tr:first-child td {
  color: var(--teal-500);
  background: #f4f8fb;
  font-weight: 750;
}
.answer-content blockquote {
  margin: 16px 0;
  padding: 14px 16px;
  background: var(--teal-50);
  border-left: 4px solid var(--green-500);
}
.answer-content pre {
  overflow: auto;
  padding: 16px;
  background: #0b1b2b;
  color: #e6f3f8;
  border-radius: 8px;
  font-size: 12px;
}
.answer-content code {
  font-family: "SF Mono", Menlo, Consolas, monospace;
}
.answer-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}
@media (max-width: 720px) {
  .answer-content { overflow-wrap: anywhere; }
}

/* Section outline for long-form technical answers */
.slide-with-outline {
  position: relative;
  padding-right: 216px;
}
.answer-outline {
  position: sticky;
  top: 28px;
  float: right;
  width: 184px;
  margin-right: -216px;
  padding: 14px 14px 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(17,104,110,.05);
}
.answer-outline p {
  margin: 0 0 9px;
  color: var(--teal-500);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}
.answer-outline a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  border-top: 1px solid #edf0f2;
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}
.answer-outline a:hover,
.answer-outline a.active {
  color: var(--teal-500);
}
.answer-outline a.active {
  font-weight: 750;
}
.answer-outline a.active::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green-500);
}
@media (max-width: 1120px) {
  .slide-with-outline { padding-right: 0; }
  .answer-outline {
    position: relative;
    top: auto;
    float: none;
    width: 100%;
    margin: 0 0 18px;
  }
  .answer-outline a { display: inline-block; margin-right: 12px; border-top: 0; }
}

/* Technical answer status badges */
.status-pill {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  max-width: 100%;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .01em;
  vertical-align: top;
}
.status-pill > span:first-child {
  flex: 0 0 auto;
  font-weight: 800;
}
.status-green {
  color: #245c43;
  background: #eaf6ef;
  border-color: #c9e6d4;
}
.status-amber {
  color: #71540f;
  background: #fff6df;
  border-color: #ead89f;
}
.status-red {
  color: #7f3f35;
  background: #fff0ed;
  border-color: #efc6bd;
}
.answer-content .status-pill {
  margin: 2px 0 6px;
}
.answer-content td .status-pill {
  white-space: normal;
}
@media (max-width: 720px) {
  .status-pill {
    display: flex;
    border-radius: 10px;
  }
}

.hero-slide h1 { color: #fff; }
.hero-slide .lede { max-width: 900px; color: rgba(255,255,255,.92); }
.hero-slide .kicker { color: #fff; }
.hero-slide .kicker::before { background: var(--green-300); }
.hero-logo { height: 24px; width: auto; margin-bottom: 26px; }
.hero-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 40px; max-width: 1040px; background: rgba(255,255,255,.28); border: 1px solid rgba(255,255,255,.28); }
.hero-meta div { padding: 18px 20px; background: rgba(255,255,255,.10); }
.hero-meta strong { display: block; color: #fff; font-size: 20px; line-height: 1.2; }
.hero-meta span { display: block; margin-top: 6px; color: rgba(255,255,255,.82); font-size: 12px; }
.hero-hints { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-hints span { display: inline-flex; align-items: center; padding: 7px 13px; color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: 12.5px; }
.slide-head h2::before { content: "\25C6"; margin-right: 11px; color: var(--green-500); font-size: .58em; vertical-align: .18em; }
.note { max-width: 900px; margin-top: 14px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.note a { color: var(--teal-500); font-weight: 650; }
.step-table td:first-child, .step-table th:first-child { white-space: nowrap; }
.faq-list { display: grid; gap: 14px; }
.faq-item { padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green-500); }
.faq-item h3 { margin-bottom: 9px; color: var(--teal-500); font-size: 17px; }
.faq-item p { margin-bottom: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.72; }
.faq-item .answer-first { font-weight: 700; color: var(--ink-900); }
.faq-item .doc-link { display: inline-block; margin-top: 10px; color: var(--teal-500); font-size: 12.5px; font-weight: 700; }
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.checklist article { padding: 18px 20px; background: #fff; border: 1px solid var(--line); }
.checklist span { display: block; margin-bottom: 7px; color: var(--green-500); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.checklist h3 { margin-bottom: 6px; font-size: 15px; }
.checklist p { margin: 0; color: var(--muted); font-size: 12.5px; }
.cta { display: grid; gap: 8px; margin-top: 24px; padding: 26px 28px; color: #fff; background: linear-gradient(96deg, #5C9A4F 0%, #11686E 78%); }
.cta strong { font-size: 19px; }
.cta p { margin: 0; color: rgba(255,255,255,.9); font-size: 14px; }
.cta a { color: #fff; font-weight: 700; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .checklist { grid-template-columns: 1fr; }
}

/* 재촬영 대기 카드 */
.video-card[data-video-pending]{cursor:default;opacity:.72}
.video-card[data-video-pending]:hover{transform:none;box-shadow:none}
.video-card .play.pending{color:var(--ink-600);font-weight:600}
