/* ============================================================
   niagoo blog — Read-mode editorial styles
   Reuse token & brand dari landing (app_public/index.html).
   Font Outfit di-self-host: @font-face + preload ada di tiap <head>.
   ============================================================ */
:root {
  --navy: #0D1F3C;
  --navy-deep: #081428;
  --indigo: #5B5BD6;
  --indigo-light: #7B7AE4;
  --highlight: #A99FF2;
  --ink: #101828;
  --ink-soft: #475467;
  --ink-muted: #5E6B7E;
  --paper: #ffffff;
  --mist: #f5f6fb;
  --line: #e6e8f0;
  --maxw: 720px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- Header (navy bar, identik landing) ---- */
header { background: var(--navy); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 68px; color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; }
.brand svg { width: 30px; height: 30px; }
.brand .word { font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.bar nav { display: flex; align-items: center; gap: 18px; }
.bar .link { color: rgba(255,255,255,.82); font-size: 15px; font-weight: 500; transition: color .2s var(--ease); }
.bar .link:hover { color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 20px; border-radius: 12px; font-size: 14px; font-weight: 600;
  border: 0; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 6px 16px -10px rgba(8,20,40,.55); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; border-radius: 14px; }

/* ---- Breadcrumb ---- */
.crumb { font-size: 13.5px; color: var(--ink-muted); padding: 22px 0 0; }
.crumb a:hover { color: var(--indigo); }
.crumb span[aria-current] { color: var(--ink); }
.crumb .sep { margin: 0 8px; color: var(--line); }

/* ---- Article ---- */
.article { max-width: var(--maxw); margin: 0 auto; padding: 0 24px 72px; }
.article .eyebrow {
  display: inline-block; margin: 30px 0 14px; padding: 5px 12px; border-radius: 999px;
  background: var(--mist); color: var(--indigo); font-size: 12.5px; font-weight: 600;
  letter-spacing: .02em; text-transform: uppercase;
}
.article h1 {
  font-size: clamp(30px, 5vw, 42px); line-height: 1.15; letter-spacing: -0.025em;
  margin: 0 0 18px; font-weight: 700;
}
.article .lede { font-size: 20px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 26px; }
.article .meta { display: flex; gap: 14px; align-items: center; font-size: 14px; color: var(--ink-muted); border-bottom: 1px solid var(--line); padding-bottom: 26px; margin-bottom: 34px; }
.article .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-muted); }

.article h2 { font-size: clamp(23px, 3.4vw, 28px); line-height: 1.25; letter-spacing: -0.02em; margin: 46px 0 14px; font-weight: 700; }
.article h3 { font-size: 19px; line-height: 1.35; margin: 32px 0 10px; font-weight: 600; }
.article p { font-size: 17.5px; line-height: 1.75; color: #26303f; margin: 0 0 20px; }
.article ul, .article ol { font-size: 17.5px; line-height: 1.75; color: #26303f; margin: 0 0 22px; padding-left: 24px; }
.article li { margin: 0 0 10px; }
.article li::marker { color: var(--indigo); }
.article strong { color: var(--ink); font-weight: 600; }
.article a.inline { color: var(--indigo); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.article a.inline:hover { text-decoration-thickness: 2px; }

/* Callout / catatan */
.note {
  background: var(--mist); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; margin: 26px 0; font-size: 16px; color: var(--ink-soft);
}
.note strong { color: var(--ink); }

/* Tabel dalam artikel */
.article .tbl-scroll { overflow-x: auto; margin: 26px 0; border: 1px solid var(--line); border-radius: 12px; }
.article table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 460px; }
.article th, .article td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.article th { background: var(--mist); font-weight: 600; color: var(--ink); }
.article tr:last-child td { border-bottom: 0; }

/* CTA card (konversi ke landing) */
.cta-card {
  margin: 40px 0; padding: 30px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy) 0%, #16295180 100%), var(--navy);
  color: #fff; text-align: center;
}
.cta-card h3 { color: #fff; font-size: 22px; margin: 0 0 8px; font-weight: 700; }
.cta-card p { color: rgba(255,255,255,.78); font-size: 16px; margin: 0 0 20px; }

/* Related */
.related { max-width: var(--maxw); margin: 0 auto; padding: 44px 24px; border-top: 1px solid var(--line); }
.related h2 { font-size: 20px; margin: 0 0 18px; font-weight: 700; }
.related a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; transition: border-color .2s var(--ease); }
.related a:hover { border-color: var(--indigo); }
.related a .t { font-weight: 600; font-size: 16px; color: var(--ink); }
.related a .d { font-size: 14px; color: var(--ink-muted); margin-top: 3px; }

/* ---- Blog index ---- */
.hero-blog { background: var(--navy); color: #fff; padding: 48px 0 56px; }
.hero-blog h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.03em; margin: 14px 0 12px; font-weight: 700; }
.hero-blog p { color: rgba(255,255,255,.8); font-size: 18px; max-width: 560px; margin: 0; }
.hero-blog .eyebrow { color: var(--highlight); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.post-list { max-width: 820px; margin: 0 auto; padding: 48px 24px 72px; }
.post-card { display: block; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.post-card:hover { border-color: var(--indigo); transform: translateY(-2px); }
.post-card .tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--indigo); background: var(--mist); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.post-card h2 { font-size: 22px; line-height: 1.3; letter-spacing: -0.02em; margin: 0 0 8px; font-weight: 700; }
.post-card p { font-size: 16px; color: var(--ink-soft); margin: 0; line-height: 1.6; }

/* ---- Footer (identik landing) ---- */
footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 44px 0 32px; margin-top: 20px; }
footer .cols { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.09); }
footer .brand .word { color: #fff; }
footer .fnav { display: flex; flex-wrap: wrap; gap: 18px; }
footer .fnav a { color: rgba(255,255,255,.7); font-size: 14.5px; transition: color .2s var(--ease); }
footer .fnav a:hover { color: #fff; }
footer .base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 22px; font-size: 13.5px; color: rgba(255,255,255,.5); }

@media (max-width: 640px) {
  .bar nav .link { display: none; }
  .article .lede { font-size: 18px; }
  .article p, .article ul, .article ol { font-size: 17px; }
  footer .cols { flex-direction: column; align-items: flex-start; }
}
