/* Halaman panduan integrasi – melengkapi style.css */
.doc-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; max-width: 1200px; margin: 0 auto; padding: 24px 24px 60px; align-items: start; }
.toc { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 10px; font-size: 13px; }
.toc b { display: block; padding: 0 8px 8px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.toc a { display: block; padding: 6px 8px; border-radius: 6px; color: var(--text); text-decoration: none; line-height: 1.35; }
.toc a:hover { background: var(--surface-2); }
.toc a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.doc { min-width: 0; }
.doc section { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px 28px; margin-bottom: 18px; scroll-margin-top: 84px; }
.doc h1 { font-size: 28px; margin: 0 0 6px; letter-spacing: -.3px; }
.doc h2 { font-size: 20px; margin: 0 0 4px; }
.doc h3 { font-size: 15.5px; margin: 20px 0 8px; }
.doc .lead { font-size: 15px; color: var(--muted); margin: 0 0 4px; line-height: 1.6; }
.doc p, .doc li { line-height: 1.65; font-size: 14px; }
.doc ul, .doc ol { padding-left: 20px; }
.doc a { color: var(--info); }
.doc .sec-sub { color: var(--muted); margin: 0 0 14px; font-size: 13.5px; }
.doc .num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; margin-right: 8px; vertical-align: 2px; }

.hero { background: linear-gradient(135deg, #0b3d33, #00664f) !important; color: #fff; border: 0 !important; }
.hero .lead { color: rgba(255,255,255,.82); }
.hero .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.hero .meta span { background: rgba(255,255,255,.12); border-radius: 999px; padding: 4px 11px; font-size: 12px; }

.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
.v-card { border-radius: 14px; padding: 18px; border: 1px solid; }
.v-card h3 { margin: 0 0 4px; display: flex; gap: 8px; align-items: center; font-size: 16px; }
.v-card .tag { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.v-card ul { margin: 10px 0 0; }
.v-ok { background: #f2fbf7; border-color: #bfe6d6; }
.v-ok .tag { background: var(--accent); color: #fff; }
.v-bad { background: #fff6f5; border-color: #f5c6c2; }
.v-bad .tag { background: var(--danger); color: #fff; }

.notice { border-radius: 12px; padding: 14px 16px; font-size: 13.5px; line-height: 1.6; margin: 14px 0; border: 1px solid; }
.notice > b:first-child { display: block; margin-bottom: 4px; }
.notice-red { background: #fff3f2; border-color: #f5c6c2; color: #8a1c14; }
.notice-amber { background: var(--warn-soft); border-color: #f3d59c; color: #6b4300; }
.notice-blue { background: var(--info-soft); border-color: #d2e3fc; color: #174ea6; }

.doc table { font-size: 13px; }
.doc td, .doc th { vertical-align: top; }
.doc td code, .doc li code, .doc p code { font-size: 12px; }
.yes { color: var(--accent); font-weight: 700; }
.no { color: var(--danger); font-weight: 700; }
.mid { color: var(--warn); font-weight: 700; }

.diagram { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); padding: 10px; overflow-x: auto; }
.diagram svg { display: block; width: 100%; min-width: 760px; height: auto; }

.flow { list-style: none; padding: 0; margin: 0; counter-reset: f; }
.flow li { position: relative; padding: 0 0 16px 44px; counter-increment: f; }
.flow li::before { content: counter(f); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.flow li::after { content: ""; position: absolute; left: 13.5px; top: 30px; bottom: 2px; width: 1px; background: var(--border); }
.flow li:last-child::after { display: none; }
.flow .api { display: inline-block; font-family: "JetBrains Mono", monospace; font-size: 11.5px; background: #0f1720; color: #c9d5e0; border-radius: 6px; padding: 1px 7px; margin: 2px 4px 2px 0; }

.code-tabs { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-top: 10px; }
.code-tabs .ct-head { display: flex; gap: 2px; background: var(--surface-2); border-bottom: 1px solid var(--border); overflow-x: auto; padding: 0 6px; }
.code-tabs .ct-head button { border: 0; background: none; padding: 10px 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.code-tabs .ct-head button.active { color: var(--accent); border-bottom-color: var(--accent); }
.code-tabs .ct-body > div { display: none; }
.code-tabs .ct-body > div.active { display: block; }
.code-tabs .ct-note { padding: 10px 14px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--border); background: #fff; }
pre.code { margin: 0; background: #0f1720; color: #d5e1ec; padding: 14px 16px; font-family: "JetBrains Mono", monospace; font-size: 12px; line-height: 1.6; overflow-x: auto; }
pre.code .k { color: #7dd3fc; } pre.code .s { color: #a7f3d0; } pre.code .c { color: #6b7d8f; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mini { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--surface-2); }
.mini h4 { margin: 0 0 6px; font-size: 14px; }
.mini p, .mini li { font-size: 13px; margin: 0; }
.mini ul { margin: 0; padding-left: 18px; }

.checklist { list-style: none; padding: 0; }
.checklist li { padding: 6px 0 6px 28px; position: relative; border-bottom: 1px dashed var(--border); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.checklist small { color: var(--muted); }

.phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.phase { border-top: 4px solid var(--accent); background: var(--surface-2); border-radius: 0 0 12px 12px; padding: 12px; font-size: 13px; }
.phase b { display: block; margin-bottom: 4px; }
.phase .wk { font-size: 11.5px; color: var(--muted); }
.phase ul { margin: 6px 0 0; padding-left: 16px; }

details.faq { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; background: #fff; }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 14px; }
details.faq p { margin: 8px 0 0; }

.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); text-decoration: none; font-weight: 600; font-size: 13px; }

@media (max-width: 960px) {
  .doc-wrap { grid-template-columns: minmax(0, 1fr); padding: 14px 16px 40px; }
  .topbar .btn-link { white-space: nowrap; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .toc b { width: 100%; }
  .toc a { border: 1px solid var(--border); padding: 4px 9px; font-size: 12px; }
  .verdict, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr 1fr; }
  .doc section { padding: 18px 16px; }
}
@media (max-width: 520px) {
  .phases { grid-template-columns: 1fr; }
  .doc h1 { font-size: 22px; }
  .topbar .brand > div:last-child { display: none; }
}

/* Kontak / CTA WhatsApp */
.btn-wa, .doc a.btn-wa { background: #25d366; color: #0b3d2a; text-decoration: none; }
.btn-wa:hover { filter: brightness(1.05); }
.btn-wa svg { flex-shrink: 0; }
.cta-card { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: linear-gradient(135deg, #e9fbf0, #f4fff8) !important; border-color: #b7ecc9 !important; }
.cta-card h2 { margin-bottom: 6px; }
.cta-card p { margin: 0; color: #2c4a3a; }
.cta-card ul { margin: 8px 0 0; padding-left: 18px; color: #2c4a3a; }
.cta-card .cta-side { text-align: center; }
.cta-card .cta-side small { display: block; margin-top: 6px; color: var(--muted); }
.hero .btn-wa { margin-top: 16px; }

/* Callout di halaman mockup */
.integ-callout { margin: 10px 24px 0; padding: 12px 16px; border-radius: 10px; background: #fff; border: 1px solid var(--border); display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 13px; line-height: 1.55; }
.integ-callout .ic-text { flex: 1; min-width: 260px; }
.integ-callout .ic-tags { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-left: 4px; }
.integ-callout .t-ok { color: var(--accent); font-weight: 600; }
.integ-callout .t-bad { color: var(--danger); font-weight: 600; }
.btn-link { text-decoration: none; }
@media (max-width: 900px) { .integ-callout { margin: 10px 16px 0; } }
