/* Kelas AI · Belajarlagi × Bank Indonesia.
   Co-brand: warna utama biru Bank Indonesia #005596 (diambil dari logo resmi BI) + aksen motif batik parang.
   Rasa Belajarlagi tetap: Satoshi, kuning #F5B800, pita hazard di tiap blok latihan, radius 16.
   Nama variabel --blue dipertahankan supaya template skill tetap cocok; isinya sekarang biru BI. */
@font-face { font-family: "Satoshi"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/satoshi-400.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/satoshi-500.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/satoshi-700.woff2") format("woff2"); }

:root {
  --bg: #FCFCFC;
  --surface: #F0F2F7;
  --surface-2: #E4E8F0;
  --text: #060B14;
  --text-2: rgba(6, 11, 20, 0.58);
  --text-3: rgba(6, 11, 20, 0.40);
  --border: rgba(6, 11, 20, 0.08);
  --border-strong: rgba(6, 11, 20, 0.14);
  --blue: #005596;
  --blue-hover: #3B70AA;
  --blue-active: #003E6E;
  --blue-soft: rgba(0, 85, 150, 0.10);
  --bi-deep: #002E57;
  --bi-mid: #3B70AA;
  --bi-light: #7693C2;
  --red: #EF3340;
  --yellow: #F5B800;
  --yellow-dark: #D9A300;
  --yellow-soft: rgba(245, 184, 0, 0.16);
  --green: #2E9E5B;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --shadow-card: 0 1px 2px rgba(6, 11, 20, 0.04), 0 8px 24px -16px rgba(6, 11, 20, 0.12);
  --tape: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, var(--text) 10px 20px);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(0,85,150,.18); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-2); }
.muted { color: var(--text-2); }
.num { font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }

/* ---------- surfaces ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.card-soft { background: var(--surface); border-radius: var(--radius); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 2.6rem; padding: 0 1.1rem; border-radius: var(--radius-sm); border: 0; font: inherit; font-weight: 700; font-size: .92rem; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .08s; text-decoration: none; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--blue-hover); }
.btn-primary:active { background: var(--blue-active); }
.btn-secondary { background: #fff; color: var(--text); border: 1px solid var(--border-strong); }
.btn-secondary:hover { background: var(--surface); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.btn-sm { height: 2.05rem; padding: 0 .8rem; font-size: .8rem; border-radius: 10px; }
.input, .select, .textarea { width: 100%; background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: .62rem .85rem; font: inherit; font-size: .95rem; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,85,150,.15); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.textarea { min-height: 5.5rem; resize: vertical; line-height: 1.5; }
.label { display: block; font-size: .8rem; font-weight: 700; color: var(--text-2); margin-bottom: .35rem; }
.field { display: grid; gap: 0; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .6rem; border-radius: 9999px; font-size: .74rem; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.badge-yellow { background: var(--yellow-soft); color: #7A5A00; }
.badge-blue { background: var(--blue-soft); color: var(--blue-active); }
.badge-green { background: rgba(46,158,91,.14); color: #1F6F3F; }
.badge-red { background: rgba(239,51,64,.12); color: #B3262B; }
.badge-gray { background: var(--surface-2); color: var(--text-2); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { background: #fff; text-align: left; font-size: .68rem; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .07em; padding: .7rem .9rem; border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
.table td { padding: .75rem .9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: none; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--text); color: #fff; padding: .7rem 1.1rem; border-radius: 12px; font-weight: 700; font-size: .9rem; z-index: 100; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #B3262B; }

/* ---------- co-brand klien (opsional) ----------
   Pakai di header: <span class="cobrand"><img class="ij" src="/brand/klien.png" alt="Klien"><span class="x">×</span><img class="bl" src="/brand/logotype.png" alt="Belajarlagi"></span>
   lalu <div class="client-bar"></div> tepat di bawah .top-in. Isi --client-strip dengan warna brand klien (lihat references/cobrand.md). */
:root { --client-strip: linear-gradient(90deg, var(--bi-deep) 0 30%, var(--blue) 30% 60%, var(--bi-light) 60% 82%, var(--yellow) 82% 100%); }
.cobrand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.cobrand .ij { height: 26px; width: auto; }
.cobrand .x { color: var(--text-3); font-weight: 500; font-size: .9rem; }
.cobrand .bl { height: 20px; width: auto; }
.client-bar { height: 4px; background: var(--client-strip); }
@media (max-width: 620px) { .cobrand { gap: 8px; } .cobrand .ij { height: 20px; } .cobrand .bl { height: 14px; } }

/* aksen batik parang: digambar oleh batik.js ke dalam .batik */
.batik { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.batik svg { display: block; }
.cobrand .x { font-size: .85rem; }
