/* ============================================================
   ai-tech/ai-tech.css - G513 (19 Okt 2026, Webi)
   Section "Layanan AI" di /ai-tech/ (order Boss RK-3B6D7N).
   Memakai token & komponen styles.css (card, btn, badge, eyebrow);
   file ini hanya menata grid 2 kolom + detail khusus.
   ============================================================ */

/* ---------- Section layanan ---------- */
.svc {
  padding: 72px 0 56px;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 36px;
  text-align: left;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Kartu layanan ---------- */
.svc-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px;
}

.svc-card .card-soon {
  margin: 0;
}

.svc-card h3 {
  margin: 2px 0 0;
  font-size: 20px;
  line-height: 1.3;
}

.svc-desc {
  margin: 0;
  flex: 1 0 auto;
  color: var(--muted, #56607a);
  font-size: 15px;
  line-height: 1.6;
}

.svc-card .card-cta {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* ---------- Catatan pembayaran ---------- */
.svc-note {
  margin: 22px auto 0;
  max-width: 640px;
  text-align: center;
  color: var(--muted, #56607a);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---------- Mobile ---------- */
@media (max-width: 620px) {
  .svc {
    padding: 52px 0 40px;
  }
  .svc-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 26px;
  }
  .svc-card .card-cta {
    width: 100%;
  }
}

/* ============================================================
   [G537] Kartu layanan gaya "panel card Buku" + halaman detail
   (order Boss RK-3RO1JF). Class mapp-* disalin verbatim dari
   zalinbooks/app.css (G434) agar tampilan IDENTIK dengan panel
   card Buku; halaman /ai-tech/ tidak memuat app.css zalinbooks
   sehingga nol konflik. Nilai var memakai styles.css global.
   ============================================================ */

/* ---------- Grid kartu buku (2 layanan) ---------- */
.svc-bk-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 880px;
  margin: 30px auto 0;
  text-align: left;
}
@media (min-width: 640px) {
  .svc-bk-grid { gap: 18px; }
}

/* ---------- Kartu (mapp-card, verbatim zalinbooks) ---------- */
.mapp-card {
  background: var(--bg-card-dark);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden; text-decoration: none;
  display: flex; flex-direction: column;
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.mapp-card:hover { transform: translateY(-3px); border-color: rgba(107, 124, 255, 0.45); }
.mapp-card-cover {
  position: relative; aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #101830 0%, #0a0e1d 100%);
  overflow: hidden;
}
.mapp-card-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mapp-card-cover-fallback { display: flex; align-items: center; justify-content: center; }
/* [G537 QA-fix] img harus di atas span initial (positioned) saat cover termuat;
   initial tetap tampil saat img gagal (fallback) */
.mapp-card-cover-img, .mapp-detail-cover-img { position: relative; z-index: 1; }
.mapp-card-initial {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; font-weight: 800; color: rgba(107, 124, 255, 0.5); pointer-events: none;
}
.mapp-card-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mapp-card-title {
  font-size: 0.92rem; font-weight: 700; color: var(--text-light); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin: 0;
}
.mapp-card-author { font-size: 0.8rem; color: var(--text-muted-light); margin: 0; }
.mapp-card-cat { font-size: 0.74rem; color: var(--text-muted-light); }
.mapp-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* ---------- Badge (verbatim zalinbooks) ---------- */
.mapp-badge {
  display: inline-flex; align-items: center;
  border-radius: 999px; padding: 4px 10px;
  font-size: 0.74rem; font-weight: 700; white-space: nowrap;
}
.mapp-badge-soft { background: var(--accent-soft); color: var(--accent); }
.mapp-badge-gold { background: rgba(240, 180, 41, 0.16); color: #f0b429; }

/* ---------- Tombol detail (verbatim zalinbooks) ---------- */
.mapp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; padding: 11px 18px;
  font-weight: 700; font-size: 0.92rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; min-height: 44px;
  font-family: var(--font);
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.mapp-btn:active { transform: scale(0.98); }
.mapp-btn-primary { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%); color: #fff; }
.mapp-btn-primary:hover { filter: brightness(1.07); }
.mapp-btn-ghost { background: rgba(107, 124, 255, 0.10); color: var(--text-light); border-color: rgba(107, 124, 255, 0.35); }
.mapp-btn-lg { width: 100%; font-size: 1rem; padding: 14px 18px; }

/* ---------- Halaman detail layanan (pola mapp-detail zalinbooks) ---------- */
.svc-detail-wrap { padding-top: 26px; padding-bottom: 56px; }
.mapp-back {
  display: inline-block; color: var(--text-muted-light); text-decoration: none;
  font-size: 0.88rem; font-weight: 600; margin-bottom: 14px; min-height: 24px;
}
.mapp-back:hover { color: var(--accent); }
.mapp-detail-grid { display: flex; flex-direction: column; gap: 20px; }
.mapp-detail-cover {
  position: relative; width: 100%; max-width: 260px; margin: 0 auto;
  aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, #101830 0%, #0a0e1d 100%);
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-card);
}
.mapp-detail-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mapp-detail-cover-fallback { display: flex; align-items: center; justify-content: center; }
.mapp-detail-initial {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 4rem; font-weight: 800; color: rgba(107, 124, 255, 0.5); pointer-events: none;
}
.mapp-h1 { font-size: 1.55rem; font-weight: 800; color: var(--text-light); line-height: 1.25; margin: 0; }
.mapp-detail-author { color: var(--text-muted-light); margin-top: 4px; }
.mapp-detail-badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.mapp-desc { color: var(--text-muted-light); font-size: 0.94rem; }
.mapp-detail-actions { margin-top: 16px; }
.mapp-note { color: var(--text-muted-light); font-size: 0.82rem; margin-top: 10px; }
.mapp-fase-note {
  margin-top: 18px; padding: 12px 14px; border-radius: 12px;
  background: var(--accent-soft); border: 1px dashed rgba(107, 124, 255, 0.4);
  color: var(--text-muted-light); font-size: 0.82rem;
}

/* ---------- Poin "what you get" di detail ---------- */
.svc-points { list-style: none; margin: 14px 0 0; padding: 0; text-align: left; }
.svc-points li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 7px 0; font-size: 0.92rem; color: var(--text-muted-light);
}
.svc-points svg { flex: none; margin-top: 3px; color: var(--accent); }

/* ---------- Empty / loading state ---------- */
.svc-empty { text-align: center; padding: 48px 0; color: var(--text-muted-light); }
.svc-empty .mapp-note { margin-top: 6px; }

/* ---------- Responsive detail ---------- */
@media (min-width: 760px) {
  .mapp-detail-grid { flex-direction: row; }
  /* [G537 QA-fix] cover jangan ikut stretch tinggi kolom info (jaga rasio 3:4) */
  .mapp-detail-cover { flex: 0 0 240px; margin: 0; align-self: flex-start; }
  .mapp-detail-info { flex: 1; }
}
@media (max-width: 420px) {
  .svc-bk-grid { gap: 10px; }
  .mapp-card-body { padding: 10px 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .mapp-card, .mapp-btn { transition: none; }
}
