/* ==========================================================================
   ShieldMGP — Landing v2 "Ruang Kendali"
   Register: brand. Lane: control-room — sistem yang hidup, bukan brosur
   tentang sistem. Palet meniru kamus status produk aslinya sendiri
   (verified=hijau, correction=amber, reversal=merah, navy=struktur) —
   landing bicara bahasa yang sama dengan aplikasi yang dijualnya.
   Semua kontras diverifikasi ≥4.5:1 sebelum ditulis (lihat sesi build).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;1,500&family=Archivo+Expanded:wght@700;800;900&family=Martian+Mono:wght@400;500;600;700&display=swap');

:root {
  /* ── Surface — near-black navy, bukan hitam murni ── */
  --ink-950: #060a14;
  --ink-900: #0a1120;
  --ink-800: #0f1830;
  --ink-700: #16213f;
  --line: #22304f;
  --line-soft: #17223d;

  /* ── Teks ── */
  --text-hi: #eef2f7;
  --text-body: #b9c4d9;
  --text-lo: #8291ad;

  /* ── Status — kamus yang sama dengan aplikasi (lib/status.ts TONE) ── */
  --verified: #34d399;
  --verified-soft: rgba(52, 211, 153, 0.12);
  --correction: #f5b93f;
  --correction-soft: rgba(245, 185, 63, 0.12);
  --reversal: #ff6b6b;
  --reversal-soft: rgba(255, 107, 107, 0.12);

  /* ── Gold — identitas pita cukai, dicadangkan khusus CTA ── */
  --gold: #eab823;
  --gold-hi: #f6d375;
  --gold-ink: #1c1404;

  --font-display: 'Archivo Expanded', 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Martian Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --container: 1180px;
  --container-narrow: 720px;
  --radius: 10px;
  --radius-sm: 6px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--ink-950);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Atmosfer: scanline halus + vignette ── */
.scanlines {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: repeating-linear-gradient(
    180deg, rgba(238, 242, 247, 0.018) 0px, rgba(238, 242, 247, 0.018) 1px,
    transparent 1px, transparent 3px
  );
  mix-blend-mode: screen;
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(35, 64, 125, 0.22), transparent 60%);
}

.section__inner { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.section__inner--narrow { max-width: var(--container-narrow); }

.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--verified);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section__eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--verified);
  box-shadow: 0 0 0 3px var(--verified-soft);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-hi);
  font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 18ch;
}
/* Titel dgn <br> manual antar dua kalimat lebih panjang dari cap 18ch bawaan
   perlu ruang lebih supaya browser gak nge-wrap ulang di dalam tiap baris. */
.section__title--wide { max-width: 36ch; }
.section__title-accent { color: var(--gold); }

.section__lead {
  margin-top: 16px;
  max-width: 62ch;
  color: var(--text-body);
  font-size: 1.05rem;
}

/* ── Reveal system: default = FULLY VISIBLE. JS arms the hidden state,
   observer removes it. No-JS / headless / reduced-motion visitors always
   see complete content — this is intentional, not a fallback. ── */
[data-reveal].reveal-armed {
  opacity: 0;
  transform: translateY(14px);
}
[data-reveal].reveal-armed.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal].reveal-armed { opacity: 1; transform: none; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  transition: transform 180ms var(--ease-out), background-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
  white-space: nowrap;
}
.btn--gold {
  background: var(--gold);
  color: var(--gold-ink);
  box-shadow: 0 0 0 0 rgba(234, 184, 35, 0);
}
.btn--gold:hover {
  background: var(--gold-hi);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(234, 184, 35, 0.45);
}
.btn--ghost {
  color: var(--text-hi);
  border: 1px solid var(--line);
  background: rgba(238, 242, 247, 0.02);
}
.btn--ghost:hover { border-color: var(--text-lo); background: rgba(238, 242, 247, 0.05); }
.btn--lg { padding: 16px 30px; font-size: 1rem; }
@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}

/* ============================== NAV ============================== */
.nav {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background-color 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(6, 10, 20, 0.86);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line-soft);
}
.nav__inner {
  max-width: var(--container); margin: 0 auto; padding: 16px clamp(20px, 5vw, 48px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__logo { width: 30px; height: 30px; object-fit: contain; }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav__word { font-family: var(--font-display); font-weight: 800; font-size: 0.98rem; color: var(--text-hi); letter-spacing: 0.01em; }
.nav__sub { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-lo); letter-spacing: 0.04em; }
.nav__enter {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  color: var(--text-lo); letter-spacing: 0.03em;
  padding: 7px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  transition: color 180ms, border-color 180ms;
}
.nav__enter:hover { color: var(--text-hi); border-color: var(--text-lo); }

/* Section dot nav — kanan layar, sama pola dengan v1 (IntersectionObserver).
   Anchor sendiri adalah hit-area 28px (a11y/touch target), titik visual 8px
   dipindah ke ::before supaya area klik lebih besar tanpa mengubah tampilan.
   Label teks muncul di hover/focus — sebelumnya cuma aria-label (invisible),
   first-time visitor tidak tahu tiap dot menuju ke mana. */
.section-nav {
  position: fixed; right: clamp(10px, 2vw, 28px); top: 50%; transform: translateY(-50%);
  z-index: 45; display: flex; flex-direction: column; gap: 6px;
}
.section-nav__dot {
  position: relative;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
}
.section-nav__dot::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); border: 1px solid transparent;
  transition: background-color 200ms, transform 200ms;
}
.section-nav__dot:hover::before,
.section-nav__dot:focus-visible::before { background: var(--text-lo); }
.section-nav__dot.is-active::before { background: var(--verified); transform: scale(1.3); box-shadow: 0 0 0 3px var(--verified-soft); }
.section-nav__tip {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-hi);
  background: var(--ink-800); border: 1px solid var(--line); border-radius: 5px;
  padding: 4px 9px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 160ms var(--ease-out);
}
.section-nav__dot:hover .section-nav__tip,
.section-nav__dot:focus-visible .section-nav__tip { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .section-nav__tip { transition: none; } }
@media (max-width: 860px) { .section-nav { display: none; } }

/* ============================== HERO ============================== */
.hero {
  position: relative; z-index: 2;
  max-width: var(--container); margin: 0 auto;
  padding: clamp(40px, 8vw, 96px) clamp(20px, 5vw, 48px) clamp(56px, 9vw, 110px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
}

.hero__eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-lo);
  margin-bottom: 22px;
}
.hero__headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text-hi);
  text-wrap: balance;
}
.hero__headline-accent { color: var(--gold); }
.hero__sub {
  margin-top: 22px; max-width: 52ch; font-size: 1.08rem; color: var(--text-body);
}
.hero__cta { margin-top: 34px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero__proof {
  margin-top: 22px; font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-lo); letter-spacing: 0.03em;
}

/* Fallback kalau mailto: gagal diam-diam (no mail client terpasang) — alamat
   selalu terlihat & bisa diseleksi manual walau JS gagal; tombol "Salin"
   murni progressive enhancement di atasnya. */
.contact-fallback {
  margin-top: 14px; font-size: 0.82rem; color: var(--text-lo);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.contact-fallback__email {
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-hi);
  background: rgba(238, 242, 247, 0.04); border: 1px solid var(--line-soft);
  border-radius: 4px; padding: 2px 8px; user-select: all;
}
.contact-fallback__copy {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
  color: var(--text-lo); border: 1px solid var(--line); border-radius: 4px;
  padding: 3px 9px; transition: color 160ms, border-color 160ms;
}
.contact-fallback__copy:hover { color: var(--text-hi); border-color: var(--text-lo); }
.contact-fallback__copy[data-copied] { color: var(--verified); border-color: var(--verified); }

/* ── Ledger panel — the signature moment ── */
.ledger-panel {
  margin: 0;
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}
.ledger-panel__head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line-soft);
}
.ledger-panel__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--verified);
  box-shadow: 0 0 0 4px var(--verified-soft);
}
@media (prefers-reduced-motion: no-preference) {
  .ledger-panel__dot { animation: pulse 2.4s ease-in-out infinite; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.ledger-panel__label {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; color: var(--text-hi);
}
.ledger-panel__demo {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.08em; color: var(--text-lo);
  border: 1px solid var(--line); border-radius: 4px; padding: 2px 7px;
}
.ledger-panel__rows { padding: 6px 0; }
.ledger-row {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px;
  padding: 11px 18px;
  font-family: var(--font-mono); font-size: 0.8rem;
}
.ledger-row__doc { color: var(--text-body); font-weight: 500; white-space: nowrap; }
.ledger-row__qty { text-align: right; font-weight: 600; color: var(--text-hi); font-variant-numeric: tabular-nums; }
.ledger-row--correction .ledger-row__qty { color: var(--correction); }
.ledger-row--new .ledger-row__qty { color: var(--verified); }
.ledger-row__ts { color: var(--text-lo); font-size: 0.72rem; white-space: nowrap; }
.ledger-row__tag {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 4px; white-space: nowrap;
}
.ledger-row__tag--ok { background: var(--verified-soft); color: var(--verified); }
.ledger-row__tag--warn { background: var(--correction-soft); color: var(--correction); }
.ledger-panel__foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-lo);
}
.ledger-panel__foot-mark { color: var(--verified); font-weight: 600; }

/* Entrance sequence — enhances an already-visible default (rows render
   fully opaque without JS/animation; keyframe just adds motion on top). */
@media (prefers-reduced-motion: no-preference) {
  .ledger-row { animation: ledgerIn 640ms var(--ease-out) both; animation-delay: calc(var(--d, 0) * 480ms + 300ms); }
  @keyframes ledgerIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }
}

/* ============================== COMPARE ============================== */
.compare { position: relative; z-index: 2; padding: clamp(56px, 9vw, 110px) 0; background: var(--ink-900); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
/* Kolom ke-2 (ShieldMGP, --live) sengaja ~28% lebih lebar dari kolom ke-1
   (Excel, --offline) — perhatian mata harus jatuh ke solusi, bukan masalah. */
.terminals { margin-top: 44px; display: grid; grid-template-columns: 1fr 1.28fr; gap: 24px; align-items: center; }
@media (max-width: 860px) { .terminals { grid-template-columns: 1fr; } }

.terminal { background: var(--ink-800); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.terminal--offline { opacity: 0.68; }
.terminal--live {
  border-color: rgba(234, 184, 35, 0.4);
  box-shadow: 0 0 0 1px rgba(234, 184, 35, 0.06), 0 32px 64px -32px rgba(234, 184, 35, 0.35);
}
.terminal__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.terminal--live .terminal__bar { background: rgba(234, 184, 35, 0.07); border-bottom-color: rgba(234, 184, 35, 0.16); }
.terminal__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-lo); }
.terminal__dot--live { background: var(--verified); box-shadow: 0 0 0 3px var(--verified-soft); }
.terminal__name { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-lo); }

.terminal__body { padding: 18px 16px; }
.terminal__row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; font-size: 0.9rem; border-bottom: 1px dashed var(--line-soft); }
.terminal__row:last-child { border-bottom: none; }
.terminal__row > span:first-child { color: var(--text-lo); }
.terminal__value { font-family: var(--font-mono); color: var(--text-body); }
.terminal__value--edited s { color: var(--reversal); opacity: 0.7; margin-right: 6px; }
.terminal__value--blank { color: var(--text-lo); }

.terminal__body--mono { display: flex; flex-direction: column; gap: 6px; }
.terminal__entry {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline;
  font-family: var(--font-mono); font-size: 0.82rem; padding: 8px 10px; border-radius: 6px;
  background: rgba(238, 242, 247, 0.02);
}
.terminal__entry-doc { color: var(--text-body); white-space: nowrap; }
.terminal__entry-qty { text-align: right; font-weight: 600; color: var(--text-hi); font-variant-numeric: tabular-nums; }
.terminal__entry-ts { color: var(--text-lo); font-size: 0.72rem; grid-column: 1 / -1; }
.terminal__entry--warn .terminal__entry-qty { color: var(--correction); }
.terminal__entry--ok .terminal__entry-qty { color: var(--verified); }

.terminal__caption { padding: 0 16px 18px; font-size: 0.88rem; color: var(--text-lo); }

/* ============================== SHOWCASE ============================== */
/* Mockup dashboard sungguhan (kuota realisasi) di dalam frame browser gelap.
   Dashboard aslinya bertema TERANG (lihat DESIGN.md app: putih/navy) — sengaja
   TIDAK diubah jadi dark mode palsu (app-nya beneran cuma punya satu tema).
   Kontrasnya justru jadi fitur: layar terang di ruang kendali gelap, seperti
   monitor yang menyala — glow di sekeliling frame menegaskan itu, bukan
   menyembunyikan clash. Data di dalamnya ilustratif (angka konsisten dijumlah
   manual, ditandai CONTOH), sama prinsipnya dengan panel ledger di hero. */
.showcase { position: relative; z-index: 2; padding: clamp(56px, 9vw, 110px) 0; }
.showcase__frame { margin: 44px 0 0; }

.browser-chrome {
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink-800);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 60px 120px -40px rgba(52, 211, 153, 0.18);
}
.browser-chrome__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; background: var(--ink-900); border-bottom: 1px solid var(--line-soft);
}
.browser-chrome__dot { width: 9px; height: 9px; border-radius: 50%; }
.browser-chrome__dot--red { background: var(--reversal); opacity: 0.7; }
.browser-chrome__dot--amber { background: var(--correction); opacity: 0.7; }
.browser-chrome__dot--green { background: var(--verified); opacity: 0.7; }
.browser-chrome__url {
  margin-left: 8px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-lo);
  background: rgba(238, 242, 247, 0.04); border: 1px solid var(--line-soft);
  border-radius: 5px; padding: 3px 10px;
}
.browser-chrome__tag {
  margin-left: auto; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.08em; color: var(--text-lo);
  border: 1px solid var(--line); border-radius: 4px; padding: 2px 7px;
}

/* ── Dashboard mock — palet TERANG asli app (bukan token landing gelap) ── */
.dash-mock {
  --dm-ink: #182230; --dm-accent: #1e3a8a; --dm-accent-hover: #1e40af;
  --dm-slate-500: #64748b; --dm-slate-700: #334155; --dm-slate-800: #1e293b;
  --dm-border: #e2e8f0; --dm-ground: #f6f7f9;
  --dm-amber: #b45309; --dm-amber-bar: #f59e0b;
  background: linear-gradient(180deg, #eef2fb 0%, #f6f7f9 100%);
  color: var(--dm-ink);
  font-family: var(--font-body);
  padding: clamp(18px, 3vw, 28px);
}
.dash-mock__head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.dash-mock__head h3 { font-size: 0.92rem; font-weight: 600; color: var(--dm-ink); letter-spacing: -0.01em; }
.dash-mock__badge {
  font-size: 0.68rem; color: var(--dm-slate-500); background: #ffffff;
  border: 1px solid var(--dm-border); border-radius: 4px; padding: 1px 7px;
}

.dash-mock__total {
  background: #ffffff; border: 1px solid var(--dm-border); border-radius: 8px;
  display: flex; flex-wrap: wrap; gap: 20px; padding: 18px 20px; margin-bottom: 16px;
}
.dash-mock__total-left { flex: 1 1 220px; min-width: 200px; }
.dash-mock__tag {
  display: inline-block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--dm-slate-500); background: #f1f5f9; border: 1px solid var(--dm-border);
  border-radius: 4px; padding: 2px 7px; margin-bottom: 8px;
}
.dash-mock__pct-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.dash-mock__pct { font-size: 1.6rem; font-weight: 700; color: var(--dm-slate-800); letter-spacing: -0.01em; }
.dash-mock__pct-label { font-size: 0.7rem; color: var(--dm-slate-500); }
.dash-mock__bar { width: 100%; height: 6px; border-radius: 4px; background: #f1f5f9; overflow: hidden; }
.dash-mock__bar span { display: block; height: 100%; border-radius: 4px; background: var(--dm-accent); }
.dash-mock__bar--sm { height: 4px; margin: 6px 0; }

.dash-mock__total-right { flex: 1 1 220px; min-width: 200px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.dash-mock__total-right div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.78rem; }
.dash-mock__total-right span { color: var(--dm-slate-500); }
.dash-mock__total-right strong { color: var(--dm-slate-700); font-weight: 600; font-variant-numeric: tabular-nums; }

.dash-mock__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 720px) { .dash-mock__grid { grid-template-columns: 1fr; } }
.dash-mock__gol { background: #ffffff; border: 1px solid var(--dm-border); border-radius: 8px; padding: 14px 16px; }
.dash-mock__gol-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.dash-mock__gol-badge {
  font-size: 0.72rem; font-weight: 700; color: var(--dm-slate-700); background: #ffffff;
  border: 1px solid var(--dm-border); border-radius: 4px; padding: 1px 7px;
}
.dash-mock__gol-pct { font-size: 1.05rem; font-weight: 700; color: var(--dm-slate-800); }
.dash-mock__gol-pct--warn { color: var(--dm-amber); }
.dash-mock__bar--warn span { background: var(--dm-amber-bar); }
.dash-mock__gol p { font-size: 0.74rem; color: var(--dm-slate-500); margin-top: 6px; }

/* ============================== STATS ============================== */
/* Angka nyata, ditarik langsung dari database produksi (bukan dikarang) —
   lihat sesi build utk query & verifikasi trigger immutability. Sengaja TANPA
   .section__eyebrow (sudah kepakai di beberapa section lain; nambah lagi di
   sini persis kena larangan "eyebrow tiap section" — reuse motif terminal-bar
   yang sudah ada sebagai gantinya). Digabung ke section SHOWCASE (satu section
   fisik dgn dashboard mockup) — bukan section terpisah lagi, jadi spacing-nya
   pakai margin-top di sini, bukan padding section sendiri. */
.stats__panel {
  margin: 28px 0 0; background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stats__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-bottom: 1px solid var(--line-soft);
}
.stats__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--verified);
  box-shadow: 0 0 0 4px var(--verified-soft);
}
@media (prefers-reduced-motion: no-preference) { .stats__dot { animation: pulse 2.4s ease-in-out infinite; } }
.stats__label {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em; color: var(--text-hi);
}
.stats__asof { margin-left: auto; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-lo); }

.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats__grid { grid-template-columns: 1fr; } }

.stats__item {
  padding: clamp(24px, 4vw, 34px) 20px; text-align: center;
  border-right: 1px solid var(--line-soft); border-top: 1px solid var(--line-soft);
}
.stats__grid > .stats__item:nth-child(4n) { border-right: none; }
@media (max-width: 860px) { .stats__grid > .stats__item:nth-child(2n) { border-right: none; } }
@media (max-width: 480px) { .stats__item { border-right: none !important; } }

.stats__num {
  display: block; font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); letter-spacing: -0.02em;
  color: var(--text-hi); font-variant-numeric: tabular-nums; line-height: 1;
}
.stats__desc { display: block; margin-top: 10px; font-size: 0.78rem; color: var(--text-lo); }

/* Highlight: tercatat 20 koreksi, 0 hilang — pembuktian langsung tesis
   "koreksi selalu berjejak, tidak pernah ditimpa". Hijau (verified), bukan
   gold — gold dicadangkan khusus CTA (Aturan Satu Suara). */
.stats__item--highlight .stats__num { color: var(--verified); text-shadow: 0 0 24px var(--verified-soft); }
.stats__item--highlight .stats__desc { color: var(--text-body); }

/* ============================== TRANSFORMASI ============================== */
/* Drag-to-compare Excel asli (kiri) vs Daftar Barang sungguhan (kanan).
   Sisi Excel: warna sel ADALAH warna asli sheet kerja Bayu (termasuk #156082,
   anomali di luar legenda resminya sendiri) — content-accurate, sengaja tidak
   masuk token :root, sama perlakuan dengan angka statistik nyata di section
   showcase. Sisi dashboard: 6 tone pill (ok/warn/mid/bad/navy/outline) adalah
   kamus status asli aplikasi (lib/status.ts), palet TERANG asli app — reuse
   variabel --dm-* yang sama dengan .dash-mock di section showcase, bukan
   bikin skema warna terang baru lagi. Handle/divider pakai --gold, mengikuti
   presedan .terminal--live (gold = penanda "sisi yang hidup sekarang", bukan
   cuma CTA button — sudah dipakai begitu di section #beda). */
.transform { position: relative; z-index: 2; padding: clamp(56px, 9vw, 110px) 0; }

.stage-wrap { margin: 44px 0 0; }
.stage-labels {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px;
  margin-bottom: 14px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.02em;
}
.stage-labels__before { color: var(--text-lo); }
.stage-labels__after { color: var(--verified); font-weight: 600; }

.stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55), 0 60px 120px -40px rgba(234, 184, 35, 0.14);
  cursor: ew-resize;
  background: var(--ink-800);
  /* pan-y (bukan none): swipe vertikal tetap scroll halaman biasa; drag
     horizontal yang disengaja tetap ke-capture via pointerdown+setPointerCapture
     di script.js, jadi ini bukan mengurangi interaksi drag-nya. */
  touch-action: pan-y;
}
.stage:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.layer--after { clip-path: inset(0 0 0 var(--split, 55%)); }

.divider {
  position: absolute; top: 0; bottom: 0; left: var(--split, 55%); width: 2px;
  background: var(--gold); box-shadow: 0 0 12px rgba(234, 184, 35, 0.5);
  transform: translateX(-1px); pointer-events: none;
}
.handle {
  position: absolute; top: 50%; left: var(--split, 55%); transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gold); color: var(--gold-ink);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  box-shadow: 0 8px 24px -8px rgba(234, 184, 35, 0.6), 0 0 0 5px rgba(234, 184, 35, 0.14);
  pointer-events: none;
}
.stage-hint {
  text-align: center; font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-lo); margin-top: 14px; letter-spacing: 0.02em;
}

/* ── Excel mock (sisi "before") — chrome UI Excel literal, warna sel asli ── */
.excel-mock {
  background: #eef1f4; font-family: var(--font-mono); font-size: 11px; color: #1c2733;
  display: flex; flex-direction: column; height: 100%;
}
.excel-mock__ribbon {
  background: var(--ink-900); color: var(--text-hi); font-family: var(--font-body);
  font-size: 12px; font-weight: 600; padding: 7px 12px; display: flex; align-items: center;
  gap: 10px; letter-spacing: 0.01em; border-bottom: 2px solid var(--reversal);
}
.excel-mock__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--reversal); box-shadow: 0 0 0 3px var(--reversal-soft); }
.excel-mock__fx {
  background: #ffffff; border-bottom: 1px solid #d6dde3; padding: 4px 10px; font-size: 11px;
  color: #55606b; display: flex; gap: 10px; align-items: center;
}
.excel-mock__cellref { font-weight: 700; color: #1c2733; width: 42px; }
.excel-mock__fxval { color: #c0392b; font-style: italic; }
.excel-mock__grid { flex: 1; display: grid; grid-template-columns: 24px repeat(7, 1fr); grid-auto-rows: 19px; overflow: hidden; }
.excel-mock__legend {
  display: flex; align-items: center; gap: 12px; background: var(--ink-900); color: var(--text-lo);
  font-family: var(--font-body); font-size: 9.5px; padding: 6px 12px; flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
}
.excel-mock__legend b { color: var(--text-hi); font-weight: 600; font-size: 9px; margin-right: 2px; }
.excel-mock__swatch { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.excel-mock__swatch i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; border: 1px solid rgba(0,0,0,0.15); }
.excel-mock__hcell, .excel-mock__rownum {
  background: #e3e8ec; border-right: 1px solid #c6cdd3; border-bottom: 1px solid #c6cdd3;
  font-size: 10px; color: #5a6570; display: flex; align-items: center; justify-content: center;
}
.excel-mock__hcell { font-weight: 600; }
.excel-mock__cell {
  background: #ffffff; border-right: 1px solid #dde2e6; border-bottom: 1px solid #dde2e6;
  display: flex; align-items: center; padding: 0 6px; white-space: nowrap; overflow: hidden; font-size: 10.5px;
}
.excel-mock__cell--head { background: #2c3e50; color: #eef2f5; font-weight: 700; font-family: var(--font-body); font-size: 10px; }
.excel-mock__cell--num { justify-content: flex-end; font-variant-numeric: tabular-nums; }
/* Kode warna ASLI dari sheet kerja Bayu (kolom F, legenda internal) — bukan
   warna generik dibuat sendiri. Sengaja di luar token :root, lihat catatan atas. */
.excel-mock__cell.c-lama   { background: #ffc000; color: #4a3a00; }
.excel-mock__cell.c-baru   { background: #d86dcd; color: #3d0f38; }
.excel-mock__cell.c-gudang { background: #0070c0; color: #ffffff; }
.excel-mock__cell.c-req    { background: #ffff00; color: #4a4a00; }
.excel-mock__cell.c-merah  { background: #ff0000; color: #ffffff; font-weight: 700; }
.excel-mock__cell.c-sppb   { background: #00b050; color: #ffffff; }
.excel-mock__cell.c-anom   { background: #156082; color: #ffffff; }
.excel-mock__note {
  position: absolute; background: #fff6cc; border: 1px solid #e0c65c; color: #5b4a06;
  font-family: var(--font-body); font-size: 10px; line-height: 1.35; padding: 6px 8px;
  border-radius: 3px; width: 132px; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.35);
}
.excel-mock__note::before {
  content: ''; position: absolute; top: -6px; left: 14px; border: 6px solid transparent;
  border-bottom-color: #e0c65c;
}

/* ── Dashboard table mock (sisi "after") — palet TERANG sama dgn .dash-mock ── */
.dash-table-mock {
  --dtm-ink: #182230; --dtm-slate-500: #64748b; --dtm-slate-800: #1e293b; --dtm-border: #e2e8f0;
  background: #f6f8fb; height: 100%; display: flex; flex-direction: column; font-family: var(--font-body);
}
.dash-table-mock__top {
  background: #ffffff; border-bottom: 1px solid var(--dtm-border); padding: 9px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.dash-table-mock__brand { font-size: 12.5px; font-weight: 700; color: var(--dtm-ink); letter-spacing: -0.01em; }
.dash-table-mock__live {
  font-family: var(--font-mono); font-size: 10px; color: #15803d; display: flex; align-items: center; gap: 5px;
}
.dash-table-mock__live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #15803d; box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.13); }
.dash-table-mock__wrap { flex: 1; overflow: hidden; }
.dash-table-mock__table { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.dash-table-mock__table thead th {
  text-align: left; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--dtm-slate-500); background: #f8fafc; border-bottom: 1px solid var(--dtm-border); padding: 7px 10px; white-space: nowrap;
}
.dash-table-mock__table td { padding: 7px 10px; border-bottom: 1px solid #f1f5f9; color: #334155; white-space: nowrap; }
.dash-table-mock__table tr:nth-child(even) td { background: #fbfcfd; }
.dash-table-mock__name { font-weight: 600; color: #0f172a; text-transform: uppercase; font-size: 10px; }
.dash-table-mock__num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--dtm-slate-800); }
.dash-table-mock__callout {
  position: absolute; background: var(--dtm-ink); color: #eef2f5; font-family: var(--font-mono);
  font-size: 10px; line-height: 1.4; padding: 6px 9px; border-radius: 6px; width: 158px;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.4);
}
.dash-table-mock__callout b { color: #7fb3ff; }

/* Kamus status asli app (lib/status.ts TONE) — dipakai identik di sini */
.pill { display: inline-flex; align-items: center; font-size: 9.5px; font-weight: 600; padding: 2.5px 7px; border-radius: 4px; border: 1px solid transparent; white-space: nowrap; }
.pill--ok { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.pill--warn { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.pill--mid { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.pill--bad { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.pill--navy { background: #eef2fb; border-color: #d5def2; color: #3552a5; }
.pill--outline { background: #ffffff; border-color: #cbd5e1; color: #475569; font-weight: 700; }

@media (max-width: 720px) {
  .excel-mock__note, .dash-table-mock__callout { display: none; }
  .excel-mock__grid { grid-template-columns: 20px repeat(4, 1fr); }
  .dash-table-mock__table th:nth-child(n+5), .dash-table-mock__table td:nth-child(n+5) { display: none; }
}

/* ── Tiga selisih konkret di bawah stage ── */
.diffs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-top: clamp(28px, 4vw, 40px);
}
.diff { background: var(--ink-800); padding: 20px 22px; }
.diff__from { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-lo); text-decoration: line-through; margin-bottom: 6px; }
.diff__to { font-size: 0.92rem; font-weight: 500; color: var(--text-hi); line-height: 1.45; }
.diff__to b { color: var(--verified); font-weight: 700; }

/* ============================== PIPELINE ============================== */
.chain { position: relative; z-index: 2; padding: clamp(56px, 9vw, 110px) 0; }
.pipeline {
  position: relative;
  margin-top: 52px;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px;
}
.pipeline::before {
  content: '';
  position: absolute; top: 9px; left: calc(100% / 12); right: calc(100% / 12);
  height: 1px; background: var(--line);
}
@media (max-width: 900px) {
  .pipeline { grid-template-columns: 1fr; gap: 22px; }
  .pipeline::before { top: 0; bottom: 0; left: 9px; right: auto; width: 1px; height: auto; }
}

.pipeline__node { position: relative; padding-top: 26px; padding-right: 14px; }
.pipeline__node::before {
  content: ''; position: absolute; top: 0; left: 4px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--ink-950); border: 2px solid var(--verified);
  box-shadow: 0 0 0 4px var(--ink-950);
}
@media (max-width: 900px) {
  .pipeline__node { padding-top: 0; padding-left: 30px; padding-right: 0; }
  .pipeline__node::before { top: 4px; left: 4px; }
}
.pipeline__code {
  display: block; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; color: var(--verified); margin-bottom: 8px; white-space: nowrap;
}
.pipeline__title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--text-hi); margin-bottom: 6px; }
.pipeline__desc { font-size: 0.85rem; color: var(--text-lo); line-height: 1.5; }

/* ============================== CREDO ============================== */
.credo { position: relative; z-index: 2; padding: clamp(64px, 10vw, 120px) 0; background: var(--ink-900); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); text-align: center; }
.credo__mark { display: block; font-family: var(--font-display); font-size: 3.2rem; color: var(--gold); line-height: 1; margin-bottom: 8px; font-weight: 800; }
.credo__text {
  font-family: var(--font-display); font-weight: 500; font-style: italic;
  font-size: clamp(1.15rem, 1rem + 1vw, 1.55rem); line-height: 1.5;
  color: var(--text-hi); text-wrap: balance;
}
.credo__attr { margin-top: 24px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--text-lo); }

/* ============================== FEATURES / READOUT ============================== */
.features { position: relative; z-index: 2; padding: clamp(56px, 9vw, 110px) 0; }
.readout { margin-top: 44px; border-top: 1px solid var(--line-soft); }
.readout__row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  padding: 22px 4px; border-bottom: 1px solid var(--line-soft);
  transition: background-color 180ms var(--ease-out);
}
.readout__row:hover { background: rgba(238, 242, 247, 0.02); }
.readout__index {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; color: var(--text-lo); min-width: 5ch;
}
.readout__body h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text-hi); margin-bottom: 4px; }
.readout__body p { font-size: 0.92rem; color: var(--text-lo); max-width: 60ch; }
.readout__status {
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--verified); background: var(--verified-soft); padding: 4px 9px; border-radius: 4px;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .readout__row { grid-template-columns: auto 1fr; }
  .readout__status { grid-column: 2; justify-self: start; margin-top: 6px; }
}

/* ============================== CTA FINAL ============================== */
.cta-final { position: relative; z-index: 2; padding: clamp(72px, 11vw, 130px) 0; text-align: center; }
.cta-final__title {
  font-family: var(--font-display); font-weight: 800; color: var(--text-hi);
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.2rem); line-height: 1.25; text-wrap: balance;
}
.cta-final__sub { margin: 20px auto 0; max-width: 56ch; font-size: 1rem; color: var(--text-body); }
.cta-final .btn { margin-top: 32px; }
.cta-final__alt { margin-top: 22px; font-size: 0.85rem; color: var(--text-lo); }
.cta-final__alt a { color: var(--verified); font-weight: 600; }
.cta-final__alt a:hover { text-decoration: underline; }

/* ============================== FOOTER ============================== */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--line-soft); padding: 28px 0; }
.footer__inner { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer__brand { display: flex; align-items: center; gap: 8px; }
.footer__logo { width: 20px; height: 20px; object-fit: contain; opacity: 0.85; }
.footer__brand span { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-lo); }
.footer__mgp { display: flex; align-items: center; gap: 8px; }
.footer__mgp-logo { height: 18px; width: auto; opacity: 0.7; }
.footer__legal { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-lo); }
