/* 재고실사 도우미 사용설명서.
 *
 * 상품 소개(page.css)와 같은 색·글꼴·리듬을 쓴다. 두 문서를 오가는 사람이 같은 제품을
 * 보고 있다고 느껴야 하기 때문이다. 다만 여기서는 **읽는 일**이 주인공이라 장식을 줄이고
 * 줄 길이와 글자 크기를 먼저 맞춘다.
 *
 * 이 문서는 회원이 아닌 회사 담당자에게 링크로 그대로 건네진다. 로그인·가입을 전제하지
 * 않으며, 휴대폰에서 열리는 일이 잦다.
 */

.pg {
  --pg-ink: #0b1b2b;
  --pg-navy: #16365a;
  --pg-blue: #2f6fd0;
  --pg-blue-soft: #e8f0fc;
  --pg-mint: #2f9d82;
  --pg-amber: #b9822b;
  --pg-amber-soft: #fdf4e3;
  --pg-red: #c94a3f;
  --pg-red-soft: #fdeceb;
  --pg-bg: #f5f7fa;
  --pg-panel: #ffffff;
  --pg-line: #e3e9f0;
  --pg-line-soft: #eef2f7;
  --pg-text: #1b2d3c;
  --pg-muted: #5d7183;
  --pg-faint: #8699a8;

  max-width: 980px;
  margin: 0 auto;
  padding: 0 0 4rem;
  color: var(--pg-text);
  line-height: 1.78;
  font-size: 1rem;
}
.pg * { box-sizing: border-box; }
.pg h1, .pg h2, .pg h3 {
  margin: 0; line-height: 1.26; letter-spacing: -0.02em; color: var(--pg-ink);
  font-family: "Gowun Batang", "Pretendard Variable", Pretendard, "Malgun Gothic", serif; font-weight: 700;
}
.pg p { margin: .85rem 0 0; }
.pg ol, .pg ul { margin: 0; padding: 0; list-style: none; }
.pg a { color: var(--pg-blue); }
.pg b { font-weight: 700; color: var(--pg-ink); }
.pg code {
  padding: .1rem .35rem; border-radius: 5px; background: var(--pg-line-soft);
  font-size: .9em; color: var(--pg-navy);
}

/* ── 머리말 ─────────────────────────────────────────────── */
.pg-head {
  margin-bottom: 2rem; padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: 20px;
  color: #e9f1f8;
  background:
    radial-gradient(110% 130% at 92% 2%, rgba(95, 208, 180, .18) 0%, transparent 56%),
    linear-gradient(150deg, #0a1a2b 0%, #122c47 55%, #0b2036 100%);
}
.pg-eyebrow {
  display: inline-block; padding: .26rem .66rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08);
  font-size: .76rem; font-weight: 700; letter-spacing: .03em; color: #bcd8e8;
}
.pg-head h1 { margin: .95rem 0 0; color: #fff; font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
.pg-head > p { color: rgba(233, 241, 248, .78); max-width: 60ch; }
.pg-open {
  display: inline-flex; align-items: center; min-height: 42px; padding: .5rem 1.05rem;
  border-radius: 11px; background: var(--pg-blue); color: #fff !important;
  font-weight: 700; font-size: .93rem; text-decoration: none;
}
.pg-open:hover { background: #2a63bb; }

/* 두 독자 — 이 문서를 누가 읽는지 먼저 가른다. */
.pg-who { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .8rem; margin-top: 1.5rem; }
.pg-who > div {
  padding: 1rem 1.1rem; border-radius: 13px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13);
}
.pg-who b { display: block; color: #fff; font-size: .97rem; }
.pg-who .lead { font-weight: 500; color: rgba(233, 241, 248, .6); font-size: .86rem; }
.pg-who span { display: block; margin-top: .4rem; font-size: .89rem; color: rgba(233, 241, 248, .76); line-height: 1.65; }

.pg-quick { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 1.4rem; }
.pg-quick .lbl { font-size: .78rem; font-weight: 700; color: rgba(233, 241, 248, .55); margin-right: .2rem; }
.pg-quick a {
  padding: .28rem .64rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: rgba(255, 255, 255, .1); color: rgba(233, 241, 248, .88) !important; text-decoration: none;
}
.pg-quick a:hover { background: rgba(255, 255, 255, .2); }

/* ── 탭 ─────────────────────────────────────────────────── */
.pg-tabs {
  position: sticky; top: 0; z-index: 20;
  display: flex; gap: .3rem; margin-bottom: 1.6rem; padding: .45rem;
  border-radius: 13px; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(150%) blur(8px); border: 1px solid var(--pg-line);
}
.pg-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 44px; padding: .5rem .7rem; border: 0; border-radius: 10px;
  background: transparent; color: var(--pg-muted); font-size: .92rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.pg-tab:hover { background: var(--pg-line-soft); }
.pg-tab[aria-selected="true"] { background: var(--pg-navy); color: #fff; }
.pg-tab .n {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px;
  background: var(--pg-line-soft); color: var(--pg-navy); font-size: .76rem;
}
.pg-tab[aria-selected="true"] .n { background: rgba(255, 255, 255, .22); color: #fff; }
@media (max-width: 620px) {
  .pg-tab { font-size: .84rem; padding: .5rem .4rem; }
}

.pg-panel { display: none; }
.pg-panel.on { display: block; }

/* ── 장 ─────────────────────────────────────────────────── */
.pg section {
  margin-top: 1.1rem; padding: clamp(1.2rem, 3vw, 1.9rem);
  border-radius: 16px; background: var(--pg-panel); border: 1px solid var(--pg-line);
  scroll-margin-top: 5rem;
}
.pg section h2 {
  display: flex; align-items: center; gap: .6rem; font-size: clamp(1.12rem, 2.2vw, 1.34rem);
}
.pg section h2 .num {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 9px; background: var(--pg-navy); color: #fff;
  font-size: .82rem; font-weight: 800; font-family: "Pretendard Variable", Pretendard, "Malgun Gothic", "Segoe UI", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.pg section h3 { margin-top: 1.3rem; font-size: 1.02rem; }

/* 단계 목록 — 이 문서의 뼈대 */
.pg-steps { display: grid; gap: .45rem; margin-top: 1.1rem; counter-reset: pg-step; }
.pg-steps li {
  position: relative; padding: .66rem .9rem .66rem 2.7rem;
  border-radius: 10px; background: #fafbfd; border: 1px solid var(--pg-line-soft);
  font-size: .95rem; counter-increment: pg-step;
}
.pg-steps li::before {
  content: counter(pg-step); position: absolute; left: .78rem; top: .72rem;
  display: grid; place-items: center; width: 21px; height: 21px; border-radius: 6px;
  background: var(--pg-blue-soft); color: var(--pg-blue);
  font-size: .76rem; font-weight: 800; font-variant-numeric: tabular-nums;
}

/* 표 */
.pg-tw { margin-top: 1.1rem; overflow-x: auto; border-radius: 11px; border: 1px solid var(--pg-line); }
.pg-t { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pg-t th, .pg-t td { padding: .6rem .75rem; text-align: left; border-bottom: 1px solid var(--pg-line-soft); vertical-align: top; }
.pg-t th { background: #f7f9fc; font-weight: 700; color: var(--pg-navy); white-space: nowrap; }
.pg-t tr:last-child td { border-bottom: 0; }

/* 짚고 넘어가는 말 */
.pg-note, .pg-warn {
  margin-top: 1.1rem; padding: .85rem 1rem; border-radius: 11px; font-size: .92rem;
  border-left: 3px solid; line-height: 1.7;
}
.pg-note { background: var(--pg-blue-soft); border-color: var(--pg-blue); }
.pg-warn { background: var(--pg-amber-soft); border-color: var(--pg-amber); }

/* 자주 묻는 질문 */
.pg-faq { margin-top: .6rem; border: 1px solid var(--pg-line); border-radius: 11px; overflow: hidden; }
.pg-faq summary {
  padding: .8rem 1rem; cursor: pointer; font-weight: 700; color: var(--pg-ink);
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: "+"; color: var(--pg-faint); font-weight: 400; font-size: 1.15rem; }
.pg-faq[open] summary::after { content: "−"; }
.pg-faq .bd { padding: 0 1rem 1rem; color: var(--pg-muted); font-size: .92rem; }

/* ── 화면 — 글로 설명한 자리를 눈으로 확인시킨다 ────────── */
.pg-shot { margin: 1.3rem 0 0; }
.pg-shot figcaption {
  margin-top: .5rem; font-size: .82rem; color: var(--pg-faint); text-align: center;
}
.pg-shot .frame {
  border-radius: 12px; overflow: hidden; background: #fff;
  border: 1px solid var(--pg-line); box-shadow: 0 16px 38px -26px rgba(11, 27, 43, .4);
}
.pg-shot .bar {
  display: flex; align-items: center; gap: .35rem; padding: .45rem .7rem;
  background: #f1f4f8; border-bottom: 1px solid var(--pg-line);
}
.pg-shot .bar i { width: 8px; height: 8px; border-radius: 50%; background: #d6dde5; }
.pg-shot .bar span { margin-left: .3rem; font-size: .73rem; font-weight: 600; color: var(--pg-faint); }
.pg-shot img { display: block; width: 100%; height: auto; }

/* 폰 화면은 폰 테두리에 담아야 「휴대폰에서 이렇게 보인다」가 전해진다. */
.pg-shot--phone { display: flex; flex-direction: column; align-items: center; }
.pg-shot--phone .frame {
  width: min(272px, 72vw); border-radius: 32px; padding: 9px; border: 0;
  background: linear-gradient(160deg, #27384a 0%, #16222f 100%);
  box-shadow: 0 26px 54px -26px rgba(0, 0, 0, .6);
}
.pg-shot--phone img { border-radius: 24px; }

@media (prefers-reduced-motion: no-preference) {
  .pg-shot { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
  .pg-shot.is-in { opacity: 1; transform: none; }
}
