/* Panduan pengguna — extends landing.css */

body.panduan-page {
  padding-top: 36px;
}

.panduan-hero {
  padding: 120px 20px 48px;
  background: linear-gradient(135deg, #0b1220 0%, #1e3a5f 50%, #0066ff 100%);
  color: #fff;
  text-align: center;
}

.panduan-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.panduan-hero p {
  max-width: 640px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.panduan-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.panduan-hero .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.panduan-hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.panduan-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  align-items: start;
}

.panduan-toc {
  position: sticky;
  top: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.panduan-toc h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.panduan-toc ul {
  list-style: none;
}

.panduan-toc li {
  margin-bottom: 4px;
}

.panduan-toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
}

.panduan-toc a:hover,
.panduan-toc a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.panduan-main section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  scroll-margin-top: 110px;
}

.panduan-main h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panduan-main h2 .sec-icon {
  font-size: 1.5rem;
}

.panduan-main h3 {
  font-size: 1.05rem;
  margin: 20px 0 10px;
  color: var(--text);
}

.panduan-lead {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.panduan-steps {
  counter-reset: panduan-step;
  list-style: none;
}

.panduan-steps > li {
  counter-increment: panduan-step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 16px;
  line-height: 1.65;
}

.panduan-steps > li::before {
  content: counter(panduan-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panduan-callout {
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 16px 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.panduan-callout.tip {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.panduan-callout.warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.panduan-callout.info {
  background: var(--primary-light);
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.panduan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 16px 0;
}

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

.panduan-table th {
  background: var(--bg);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.panduan-table tr:last-child td {
  border-bottom: none;
}

.panduan-diagram {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.panduan-device-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.panduan-device-card.kasir {
  border-color: #10b981;
  background: #ecfdf5;
}

.panduan-device-card.bos {
  border-color: #3b82f6;
  background: #eff6ff;
}

.panduan-device-card.monitor {
  border-color: #f59e0b;
  background: #fffbeb;
}

.panduan-device-card .device-emoji {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.panduan-device-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.panduan-device-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.panduan-code {
  background: #0f172a;
  color: #e2e8f0;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  overflow-x: auto;
  margin: 12px 0;
  word-break: break-all;
}

.panduan-checklist {
  list-style: none;
}

.panduan-checklist li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px dashed var(--border);
}

.panduan-checklist li:last-child {
  border-bottom: none;
}

.panduan-checklist li::before {
  content: '☐';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1.1rem;
}

.panduan-pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.panduan-pkg {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.panduan-pkg.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.panduan-pkg h4 {
  margin-bottom: 8px;
}

.panduan-pkg ul {
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.panduan-pkg li {
  padding: 4px 0;
}

.panduan-pkg li::before {
  content: '✓ ';
  color: var(--accent);
  font-weight: 700;
}

.panduan-wa-box {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius);
  padding: 16px;
  font-size: 0.88rem;
  white-space: pre-wrap;
  line-height: 1.55;
  margin: 12px 0;
}

.panduan-footer-cta {
  text-align: center;
  padding: 48px 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .panduan-layout {
    grid-template-columns: 1fr;
  }

  .panduan-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
  }

  .panduan-toc h2 {
    width: 100%;
  }

  .panduan-toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .panduan-toc li {
    margin: 0;
  }

  .panduan-toc a {
    padding: 6px 12px;
    background: var(--bg);
    font-size: 0.8rem;
  }

  .panduan-main section {
    padding: 20px;
  }
}
