/* 회계매크로 상품 소개(/programs/accounting-macro) — motion.css 의 토큰 위에 얹는다. 모든 규칙은 .am-docs 아래로만. */

.am-docs.am-prod { display: block; max-width: 1180px; margin: 0 auto; padding: 0 0 56px; }

/* ── 공통 요소 ── */
.am-docs .am-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.am-docs .am-actions--stack { margin-top: 0; }
.am-docs .am-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 12px; font-size: 15px; font-weight: 800; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--am-ease), background-color .2s, border-color .2s;
}
.am-docs .am-btn:hover { transform: translateY(-1px); }
.am-docs .am-btn--primary { background: var(--am-blue); color: #fff; }
.am-docs .am-btn--primary:hover { background: #3a6dd2; }
.am-docs .am-btn--ghost { border-color: var(--am-blue); color: var(--am-blue-deep); background: #fff; }
.am-docs .am-btn--line { border-color: var(--am-line); color: var(--am-ink); background: #fff; }
.am-docs .am-btn--line:hover { border-color: var(--am-blue); }
.am-docs .am-kind { display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--am-green-wash); color: var(--am-green); font-size: 12px; font-style: normal; font-weight: 800; }
.am-docs .am-more { color: var(--am-blue-deep); font-size: 14px; font-weight: 800; text-decoration: none; }
.am-docs .am-more:hover { text-decoration: underline; }
.am-docs .am-more-line { margin: 10px 0 0; }
.am-docs .am-support { margin: 14px 0 0; color: var(--am-muted); font-size: 13px; }
.am-docs .am-support--block { padding: 12px 16px; border: 1px solid var(--am-line); border-radius: 12px; background: #fff; color: var(--am-ink); font-size: 14px; }
.am-docs .am-support--block strong { margin-right: 8px; color: var(--am-blue-deep); }

/* ── 소목차 ── */
.am-docs .am-subnav { display: flex; align-items: center; gap: 4px; margin: 4px 0 14px; padding: 6px; overflow-x: auto; border: 1px solid var(--am-line); border-radius: 14px; background: #fff; scrollbar-width: thin; }
.am-docs .am-subnav a { flex: none; padding: 8px 14px; border-radius: 9px; color: var(--am-muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.am-docs .am-subnav a:hover { background: var(--am-mist); color: var(--am-blue-deep); }
.am-docs .am-subnav .am-subnav-guide { margin-left: auto; background: var(--am-blue-wash); color: var(--am-blue-deep); }

/* ── 1. 첫 화면 ── */
.am-docs .am-hero {
  display: grid; gap: clamp(22px, 3.5vw, 44px); grid-template-columns: minmax(0, 1fr); align-items: center;
  padding: clamp(20px, 3vw, 32px); border-radius: 26px; overflow: hidden;
  background: radial-gradient(900px 420px at 100% 0, rgba(46, 96, 196, .16), transparent 62%), linear-gradient(180deg, #f7f9fe, #eaf0fb);
  border: 1px solid var(--am-line);
}
.am-docs .am-hero-copy, .am-docs .am-hero-stage { min-width: 0; }
.am-docs .am-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--am-excel); font-size: 14px; font-weight: 800; }
.am-docs .am-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--am-excel); }
.am-docs .am-hero h1 { margin: 0; font-size: clamp(30px, 4.2vw, 50px); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.am-docs .am-hero h1 em { display: block; color: var(--am-blue); font-style: normal; }
.am-docs .am-lead { margin: 12px 0 0; max-width: 520px; color: var(--am-muted); font-size: 17px; }
.am-docs .am-facts { display: grid; gap: 6px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 15px; font-weight: 700; }
.am-docs .am-facts li::before { content: "✓"; margin-right: 10px; color: var(--am-excel); font-weight: 800; }

/* ── 섹션 공통 ── */
.am-docs .am-section { margin-top: clamp(28px, 4vw, 48px); padding: clamp(22px, 3.2vw, 40px); border: 1px solid var(--am-line); border-radius: 22px; background: #fff; }
.am-docs .am-section--tint { background: var(--am-mist); }
.am-docs .am-head { margin-bottom: 22px; }
.am-docs .am-eyebrow { margin: 0 0 4px; color: var(--am-blue); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.am-docs .am-head h2 { margin: 0; font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; line-height: 1.35; letter-spacing: -.01em; }

/* ── 2. 핵심 가치 ── */
.am-docs .am-valueflow { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); margin: 0 0 22px; padding: 0; list-style: none; }
.am-docs .am-valueflow li { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--am-line); border-radius: 14px; background: var(--am-mist); }
.am-docs .am-valueflow b { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--am-blue); color: #fff; font-size: 15px; }
.am-docs .am-valueflow strong { font-size: 16px; }
.am-docs .am-valueflow span { color: var(--am-muted); font-size: 14px; }
.am-docs .am-outputs { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
.am-docs .am-out { display: grid; gap: 4px; justify-items: start; padding: 16px; border: 1px solid var(--am-line); border-radius: 16px; background: #fff; }
.am-docs .am-out strong { font-size: 17px; }
.am-docs .am-out > span { color: var(--am-muted); font-size: 14px; }
.am-docs .am-out small { color: var(--am-blue-deep); font-size: 12px; font-weight: 700; }
.am-docs .am-out-ico svg { width: 56px; height: 40px; fill: #fff; stroke: #6d7a95; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.am-docs .am-out-ico .hit { fill: var(--am-amber-wash); stroke: var(--am-amber); stroke-width: 2; }
.am-docs .am-out--sheet .am-out-ico .hit { fill: var(--am-green-wash); stroke: var(--am-green); }
.am-docs .am-out-ico .hit-line { stroke: var(--am-blue); stroke-width: 2.2; }
.am-docs .am-out--cell { border-top: 4px solid var(--am-amber); }
.am-docs .am-out--sheet { border-top: 4px solid var(--am-green); }
.am-docs .am-out--file { border-top: 4px solid var(--am-blue); }

/* ── 3. 대표 시연 ── */
.am-docs .am-tabs { display: flex; gap: 6px; margin-bottom: 18px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: thin; }
.am-docs .am-tab { flex: none; padding: 9px 16px; border: 1px solid var(--am-line); border-radius: 999px; background: #fff; color: var(--am-muted); font-size: 14px; font-weight: 800; text-decoration: none; }
.am-docs .am-tab:hover { border-color: var(--am-blue); color: var(--am-blue-deep); }
.am-docs .am-tab[aria-selected="true"] { border-color: var(--am-blue); background: var(--am-blue); color: #fff; }
.am-docs .am-demos { display: grid; gap: 22px; }
.am-docs .am-demo { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); padding: 18px; border: 1px solid var(--am-line); border-radius: 18px; background: #fff; }
.am-docs .am-demo.is-off { display: none; }
.am-docs .am-demo-copy, .am-docs .am-demo-art { min-width: 0; }
.am-docs .am-demo-copy h3 { margin: 0 0 10px; font-size: 20px; }
.am-docs .am-demo-copy p { margin: 0 0 8px; font-size: 15px; }
.am-docs .am-demo-copy p span { display: inline-block; min-width: 38px; margin-right: 8px; padding: 0 8px; border-radius: 6px; background: var(--am-red-wash); color: var(--am-red); font-size: 12px; font-weight: 800; text-align: center; }
.am-docs .am-demo-copy .am-demo-result span { background: var(--am-green-wash); color: var(--am-green); }

/* ── 4. 메뉴 지도 ── */
.am-docs .am-map { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.am-docs .am-group { border: 1px solid var(--am-line); border-radius: 16px; background: #fff; overflow: hidden; }
.am-docs .am-group > summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; list-style: none; cursor: pointer; }
.am-docs .am-group > summary::-webkit-details-marker { display: none; }
.am-docs .am-group > summary::after { content: "▾"; margin-left: auto; color: var(--am-muted); }
.am-docs .am-group:not([open]) > summary::after { content: "▸"; }
.am-docs .am-group-no { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--am-blue-wash); color: var(--am-blue-deep); font-size: 13px; font-weight: 800; }
.am-docs .am-group > summary small { color: var(--am-muted); font-size: 12px; font-weight: 700; }
.am-docs .am-group-note { margin: -4px 16px 8px; color: var(--am-muted); font-size: 13px; }
.am-docs .am-group ul { margin: 0; padding: 0 10px 10px; list-style: none; }
.am-docs .am-group li a { display: grid; gap: 1px; padding: 9px 8px; border-top: 1px solid var(--am-line-soft); color: inherit; text-decoration: none; }
.am-docs .am-group li a:hover { background: var(--am-mist); }
.am-docs .am-group li b { color: var(--am-blue-deep); font-size: 15px; }
.am-docs .am-group li span { display: none; color: var(--am-muted); font-size: 13px; line-height: 1.5; }
.am-docs .am-group.show-desc li span, .am-docs .am-group li a:hover span, .am-docs .am-group li a:focus-visible span { display: block; }
.am-docs .am-group li a { padding: 7px 8px; }
.am-docs .am-desc-toggle { display: none; margin: 0 16px 8px; padding: 2px 12px; border: 1px solid var(--am-line); border-radius: 999px; background: #fff; color: var(--am-blue-deep); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.am-docs.is-js .am-desc-toggle { display: inline-block; }

/* ── 5. 설치·시작 ── */
.am-docs .am-startflow { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 0 0 16px; padding: 0; list-style: none; }
.am-docs .am-st { position: relative; display: grid; align-content: start; gap: 4px; padding: 16px 16px 16px 76px; border: 1px solid var(--am-line); border-radius: 16px; background: #fff; }
.am-docs .am-st-ico { position: absolute; top: 16px; left: 16px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--am-blue-wash); }
.am-docs .am-st-ico svg { width: 28px; height: 28px; fill: none; stroke: var(--am-blue-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.am-docs .am-st > b { color: var(--am-blue); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.am-docs .am-st strong { font-size: 16px; }
.am-docs .am-st > span:last-child { color: var(--am-muted); font-size: 14px; }

/* ── 6. 요금 ── */
.am-docs .am-price { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.am-docs .am-price-main, .am-docs .am-price-side { min-width: 0; padding: 20px; border: 1px solid var(--am-line); border-radius: 18px; background: var(--am-mist); }
.am-docs .am-price-eyebrow { margin: 0; color: var(--am-blue); font-size: 13px; font-weight: 800; }
.am-docs .am-price-amount { margin: 2px 0 6px; font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.3; }
.am-docs .am-price-note { margin: 0 0 14px; color: var(--am-muted); font-size: 14px; }
.am-docs .am-price-items { display: grid; gap: 8px; margin: 0; }
.am-docs .am-price-items div { display: flex; justify-content: space-between; gap: 14px; padding-top: 8px; border-top: 1px solid var(--am-line); font-size: 14px; }
.am-docs .am-price-items dt { color: var(--am-muted); }
.am-docs .am-price-items dd { margin: 0; font-weight: 700; text-align: right; }
.am-docs .am-plans { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.am-docs .am-plans li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 12px; border: 1px solid var(--am-line); border-radius: 12px; background: #fff; }
.am-docs .am-plan-price { color: var(--am-blue-deep); font-weight: 800; }
.am-docs .am-plan-desc { color: var(--am-muted); font-size: 13px; }
.am-docs .am-price-help { margin: 12px 0 0; color: var(--am-muted); font-size: 13px; }
.am-docs .am-price-side .am-btn { width: 100%; }

/* ── 7. 질문 ── */
.am-docs .am-faq { display: grid; gap: 8px; }
.am-docs .am-faq details { border: 1px solid var(--am-line); border-radius: 14px; background: #fff; }
.am-docs .am-faq summary { padding: 14px 16px; font-weight: 800; cursor: pointer; }
.am-docs .am-faq details p { margin: 0; padding: 0 16px 14px; color: var(--am-muted); font-size: 15px; }
.am-docs .am-faq details a { color: var(--am-blue-deep); font-weight: 700; }

/* ── 업데이트 ── */
.am-docs .am-releases { display: grid; gap: 10px; }
.am-docs .am-release { padding: 12px 16px; border: 1px solid var(--am-line); border-radius: 14px; }
.am-docs .am-release p { margin: 4px 0 0; color: var(--am-muted); font-size: 14px; white-space: pre-line; }

@media (min-width: 640px) {
  .am-docs .am-outputs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .am-docs .am-valueflow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .am-docs .am-startflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am-docs .am-map { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (min-width: 960px) {
  .am-docs .am-hero { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .am-docs .am-demo { grid-template-columns: minmax(0, .5fr) minmax(0, 1.5fr); align-items: center; }
  .am-docs .am-startflow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .am-docs .am-st { padding: 84px 16px 16px; }
  .am-docs .am-price { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}
@media (min-width: 1100px) {
  .am-docs .am-map { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .am-docs .am-btn, .am-docs .am-tab { transition: none; }
  .am-docs .am-btn:hover { transform: none; }
}
