/* =============================================================
   NotaryOS — landing page
   1. Token & dasar
   2. Utilitas & tombol
   3. Navbar
   4. Hero + mockup
   5. Strip peran
   6. Masalah
   7. Solusi (diagram Matter)
   8. Fitur (tabs)
   9. Alur kerja (stepper)
  10. Dokumen & Akta
  11. AI Copilot
  12. Keamanan
  13. Peran & hak akses
  14. Roadmap
  15. FAQ
  16. CTA + form
  17. Footer
  18. Animasi & reduced motion
  19. Breakpoints (640 / 900 / 1200)
   ============================================================= */

/* ---------- 1. Token & dasar -------------------------------- */
:root {
  /* warna — terang */
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-2: #f2f1ec;
  --text: #17212b;
  --muted: #57636f;
  --border: #e2dfd7;
  --accent: #0e5f56;
  --accent-strong: #0a4c45;
  --accent-soft: #e4f0ed;
  --accent-on: #ffffff;

  /* status */
  --ok: #14713d;
  --ok-soft: #e3f3e9;
  --warn: #96590c;
  --warn-soft: #faeedd;
  --bad: #a72525;
  --bad-soft: #fbe6e6;
  --neutral: #5b6673;
  --neutral-soft: #eceef1;

  /* tipografi */
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-h1: clamp(2.05rem, 1.3rem + 3.3vw, 3.4rem);
  --fs-h2: clamp(1.6rem, 1.15rem + 2vw, 2.5rem);
  --fs-h3: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
  --fs-lead: clamp(1rem, 0.96rem + 0.3vw, 1.12rem);
  --fs-sm: 0.9rem;
  --fs-xs: 0.8rem;

  /* ruang & bentuk (skala 4/8px) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(17, 27, 33, 0.06), 0 1px 3px rgba(17, 27, 33, 0.05);
  --shadow-md: 0 6px 20px rgba(17, 27, 33, 0.08);
  --shadow-lg: 0 18px 48px rgba(17, 27, 33, 0.12);

  --nav-h: 64px;
  --focus: 2px solid var(--accent);
}

/* warna — gelap (sistem, bisa dioverride toggle) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1317;
    --surface: #141c21;
    --surface-2: #1a242a;
    --text: #e9eef1;
    --muted: #9fadb8;
    --border: #26323a;
    --accent: #55cfbd;
    --accent-strong: #7bdccd;
    --accent-soft: #12312d;
    --accent-on: #06231f;
    --ok: #62d39a;  --ok-soft: #102a1e;
    --warn: #e7b569; --warn-soft: #2c2314;
    --bad: #f08f8f;  --bad-soft: #2f1a1a;
    --neutral: #a6b2bd; --neutral-soft: #1e2830;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
  }
}
:root[data-theme="dark"] {
  --bg: #0d1317;
  --surface: #141c21;
  --surface-2: #1a242a;
  --text: #e9eef1;
  --muted: #9fadb8;
  --border: #26323a;
  --accent: #55cfbd;
  --accent-strong: #7bdccd;
  --accent-soft: #12312d;
  --accent-on: #06231f;
  --ok: #62d39a;  --ok-soft: #102a1e;
  --warn: #e7b569; --warn-soft: #2c2314;
  --bad: #f08f8f;  --bad-soft: #2f1a1a;
  --neutral: #a6b2bd; --neutral-soft: #1e2830;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-3);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
strong { font-weight: 600; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1px 5px;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--sp-4);
}
.container--narrow { max-width: 860px; }

.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;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-on);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus { top: var(--sp-2); }

/* ---------- 2. Utilitas & tombol ---------------------------- */
.section {
  padding-block: clamp(56px, 8vw, var(--sp-9));
  border-top: 1px solid var(--border);
}
.section--alt { background: var(--surface-2); }

.section__head { max-width: 760px; margin-bottom: var(--sp-7); }
.section__lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  margin-bottom: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.78em 1.2em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease,
              color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn--primary {
  background: var(--accent);
  color: var(--accent-on);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--accent-strong); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--sm { padding: 0.6em 0.95em; font-size: 0.875rem; }
.btn--lg { padding: 0.95em 1.5em; font-size: 1rem; }

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge--soon { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.badge--dev  { background: var(--neutral-soft); color: var(--neutral); border-color: var(--border); }
.badge--build{ background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.badge--next { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.badge--plan { background: var(--neutral-soft); color: var(--neutral); border-color: var(--border); }
.badge--sim  { background: var(--neutral-soft); color: var(--neutral); border-color: var(--border); }

.checklist li {
  position: relative;
  padding-left: 26px;
  margin-bottom: var(--sp-2);
  color: var(--muted);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- 3. Navbar --------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: var(--nav-h);
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text);
  font-weight: 700;
  margin-right: auto;
}
.nav__logo:hover { text-decoration: none; }
.nav__logo-mark { display: inline-flex; color: var(--accent); }
.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.nav__menu {
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: var(--sp-4);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: var(--sp-4);
}
.nav__menu.is-open { display: flex; }
.nav__list { display: flex; flex-direction: column; gap: var(--sp-1); }
.nav__link {
  display: block;
  padding: var(--sp-2) var(--sp-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav__link:hover { background: var(--surface-2); text-decoration: none; color: var(--accent); }
.nav__link.is-active { color: var(--accent); background: var(--accent-soft); }
.nav__cta-mobile { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: var(--sp-2); }
.nav__cta { display: none; }

.nav__theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.nav__theme:hover { border-color: var(--accent); color: var(--accent); }
.nav__theme .icon { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon--moon { display: none; }
:root[data-theme="dark"] .icon--moon { display: block; }
:root[data-theme="dark"] .icon--sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon--moon { display: block; }
  :root:not([data-theme="light"]) .icon--sun { display: none; }
}

.nav__burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px; height: 38px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 4. Hero + mockup -------------------------------- */
.hero {
  padding-block: clamp(40px, 7vw, 88px);
  background:
    radial-gradient(1000px 420px at 12% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    var(--bg);
}
.hero__grid { display: grid; gap: var(--sp-7); align-items: center; }
.hero__sub {
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: 56ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.hero__note {
  font-size: var(--fs-xs);
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: var(--sp-3);
  margin-bottom: 0;
}

/* mockup aplikasi */
.mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px var(--sp-4);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.mock__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.mock__url {
  margin-left: var(--sp-2);
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mock__body { padding: var(--sp-4); }
.mock__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.mock__matter-no {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.mock__title { font-size: 1.2rem; margin: 2px 0 0; }
.mock__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--sp-4);
}
.mock__meta-label { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.mock__meta-value { font-size: 0.88rem; font-weight: 600; }
.mock__section { margin-bottom: var(--sp-4); }
.mock__section:last-child { margin-bottom: 0; }
.mock__section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: var(--sp-2);
}
.mock__steps { display: flex; flex-wrap: wrap; gap: 6px; }
.mock__step {
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
}
.mock__step.is-done {
  background: var(--ok-soft);
  border-color: color-mix(in srgb, var(--ok) 35%, transparent);
  color: var(--ok);
}
.mock__step.is-done::before { content: "✓ "; }
.mock__step.is-active {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
  font-weight: 600;
}
.mock__step.is-active::before { content: "● "; }

.mock__progress { display: flex; align-items: center; gap: var(--sp-3); }
.mock__progress-track {
  flex: 1;
  height: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.mock__progress-fill { display: block; height: 100%; background: var(--accent); }
.mock__progress-text { font-size: 0.78rem; font-weight: 600; white-space: nowrap; }

.mock__finance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2);
}
.mock__finance > div {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-3);
}
.mock__finance span { display: block; font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.mock__finance strong { font-size: 0.95rem; font-weight: 600; }

.mock__caption {
  margin: var(--sp-3) var(--sp-4) var(--sp-3);
  font-size: 0.7rem;
  color: var(--muted);
  text-align: right;
}
.chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
}
.chip--progress {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
}

/* ---------- 5. Strip peran ---------------------------------- */
.roles-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: var(--sp-5);
}
.roles-strip__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: var(--sp-3);
  text-align: center;
}
.roles-strip__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
}
.roles-strip__list li {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
}

/* ---------- 6. Masalah -------------------------------------- */
.scattered {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--sp-7);
}
.scattered__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: var(--sp-3);
}
.scattered__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3);
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.scattered__card svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scattered__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-block: var(--sp-4);
}
.scattered__arrow svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.scattered__target {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--sp-4);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: var(--radius);
  text-align: center;
}
.scattered__target-mark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}
.scattered__target-sub { font-size: var(--fs-sm); color: var(--muted); }

.pains {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
.pain {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
.pain h3 { margin-bottom: var(--sp-2); }
.pain p { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 0; }

/* ---------- 7. Solusi (diagram Matter) ---------------------- */
.matter { margin-bottom: var(--sp-7); }
.matter__diagram {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  padding-bottom: var(--sp-4);
}
.matter__lines { display: none; }
.matter__hub {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  order: -1;
  padding: var(--sp-4);
  background: var(--accent);
  color: var(--accent-on);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.matter__hub-label { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }
.matter__hub-no { font-size: 0.72rem; letter-spacing: 0.08em; opacity: 0.85; }

.matter__node {
  position: static;
  transform: none;
  order: 1;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-3);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.matter__node:hover { border-color: var(--accent); color: var(--accent); }
.matter__node.is-active {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  color: var(--accent);
}
.matter__detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--sp-5);
}
.matter__detail h3 { margin-bottom: var(--sp-2); }
.matter__detail p { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 0; }

.flowline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  counter-reset: step;
}
.flowline li {
  counter-increment: step;
  position: relative;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px 5px 26px;
}
.flowline li::before {
  content: counter(step);
  position: absolute;
  left: 9px; top: 50%;
  transform: translateY(-50%);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--accent);
}
.flowline li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -14px; top: 50%;
  transform: translateY(-50%);
  color: var(--border);
}

/* ---------- 8. Fitur (tabs) --------------------------------- */
.tabs__list {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
  scrollbar-width: thin;
}
.tabs__list button {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: var(--sp-2) var(--sp-3);
  cursor: pointer;
  white-space: nowrap;
}
.tabs__list button:hover { color: var(--text); }
.tabs__list button[aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.tabs__panel:focus-visible { outline-offset: 6px; }

.feature-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.feature[hidden] { display: none; }
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.feature__icon svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 { margin-bottom: var(--sp-2); }
.feature p { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--sp-3); }
.feature p:last-child { margin-bottom: 0; }

/* ---------- 9. Alur kerja (stepper) ------------------------- */
.stepper { display: grid; gap: var(--sp-4); }
.stepper__track {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding-bottom: var(--sp-3);
  scrollbar-width: thin;
}
.step-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.step-btn .step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.68rem;
}
.step-btn:hover { border-color: var(--accent); color: var(--accent); }
.step-btn[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-on);
}
.step-btn[aria-selected="true"] .step-no {
  background: color-mix(in srgb, var(--accent-on) 22%, transparent);
  border-color: color-mix(in srgb, var(--accent-on) 45%, transparent);
  color: var(--accent-on);
}
.step-btn.is-done:not([aria-selected="true"]) .step-no { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }

.stepper__panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
.step-panel__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.step-panel__top h3 { margin: 0; }
.step-panel__desc { color: var(--muted); font-size: var(--fs-sm); }
.step-panel__grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
  margin-top: var(--sp-4);
}
.step-panel__box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
}
.step-panel__box h4 {
  margin: 0 0 var(--sp-2);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}
.step-panel__box ul li {
  position: relative;
  padding-left: 18px;
  font-size: var(--fs-sm);
  margin-bottom: 6px;
  color: var(--text);
}
.step-panel__box ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.step-panel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.step-panel__meta strong { color: var(--text); }

/* ---------- 10. Dokumen & Akta ------------------------------ */
.split { display: grid; gap: var(--sp-6); align-items: start; }
.split__copy h3 { margin-top: var(--sp-5); }
.split__copy h3:first-child { margin-top: 0; }
.split__copy p { font-size: var(--fs-sm); color: var(--muted); }

.mock--table .mock__body { padding-bottom: var(--sp-2); }
.doctable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: var(--sp-4);
}
.doctable th,
.doctable td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
}
.doctable th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 600;
}
.doctable td:last-child,
.doctable th:last-child { text-align: right; color: var(--muted); }
.status {
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.status--ok { background: var(--ok-soft); color: var(--ok); }
.status--review { background: var(--warn-soft); color: var(--warn); }
.status--rejected { background: var(--bad-soft); color: var(--bad); }
.status--wait { background: var(--neutral-soft); color: var(--neutral); }

/* ---------- 11. AI Copilot ---------------------------------- */
.ai { display: grid; gap: var(--sp-6); }
.chat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chat__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.chat__title { font-weight: 600; font-size: 0.92rem; }
.chat__samples { padding: var(--sp-4) var(--sp-4) 0; }
.chat__samples-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: var(--sp-2);
}
.chat__samples-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip--question {
  cursor: pointer;
  background: var(--bg);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}
.chip--question:hover { background: var(--accent-soft); }
.chip--question:disabled { opacity: 0.55; cursor: not-allowed; }

.chat__log {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-4);
  min-height: 220px;
  max-height: 340px;
  overflow-y: auto;
}
.msg {
  max-width: 92%;
  padding: var(--sp-3);
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.55;
}
.msg p { margin: 0; }
.msg__who {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 4px;
  opacity: 0.75;
}
.msg--user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--accent-on);
}
.msg--ai {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.msg--typing span {
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--muted);
  animation: blink 1.2s infinite both;
}
.msg--typing span:nth-child(2) { animation-delay: 0.2s; }
.msg--typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

.chat__input {
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.chat__input input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 0.9rem;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.ai__principles {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
.ai__principles li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
}
.ai__principles h3 { font-family: var(--font-sans); font-size: 0.98rem; margin-bottom: 6px; }
.ai__principles p { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 0; }

/* ---------- 12. Keamanan ------------------------------------ */
.sec-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
.sec-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
}
.sec-item svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: var(--sp-2);
}
.sec-item h3 { font-family: var(--font-sans); font-size: 0.98rem; margin-bottom: 4px; }
.sec-item p { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 0; }

/* ---------- 13. Peran & hak akses --------------------------- */
.role-panel__intro {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: var(--sp-4);
}
.role-panel__grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
.role-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
}
.role-box h4 {
  margin: 0 0 var(--sp-2);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
}
.role-box ul li {
  position: relative;
  padding-left: 18px;
  font-size: var(--fs-sm);
  margin-bottom: 6px;
}
.role-box ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.role-box--warn {
  border-left: 3px solid var(--warn);
}
.role-box--warn h4 { color: var(--warn); }

/* ---------- 14. Roadmap ------------------------------------- */
.roadmap {
  position: relative;
  display: grid;
  gap: var(--sp-5);
}
.roadmap__item {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--sp-4);
}
.roadmap__marker {
  position: relative;
  width: 16px; height: 16px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
}
.roadmap__item:not(:last-child) .roadmap__marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% + var(--sp-5));
  background: var(--border);
}
.roadmap__body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
}
.roadmap__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}
.roadmap__top h3 { margin: 0; }
.roadmap__body p { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 0; }

/* ---------- 15. FAQ ----------------------------------------- */
.faq { display: grid; gap: var(--sp-3); }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq__item h3 { margin: 0; font-family: var(--font-sans); font-size: 1rem; }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  font: inherit;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: none;
  padding: var(--sp-4);
  cursor: pointer;
}
.faq__q:hover { color: var(--accent); }
.faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 16px; height: 16px;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.faq__icon::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq__icon::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(90deg); opacity: 0; }
.faq__a { padding: 0 var(--sp-4) var(--sp-4); }
.faq__a p { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 0; }

/* ---------- 16. CTA + form ---------------------------------- */
.cta {
  display: grid;
  gap: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, var(--sp-7));
  box-shadow: var(--shadow-md);
}
.cta__copy p { color: var(--muted); }

.form { display: grid; gap: var(--sp-4); }
.form__row { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.field { display: grid; gap: 6px; }
.field label {
  font-size: 0.86rem;
  font-weight: 600;
}
.field .optional { font-weight: 400; color: var(--muted); }
.field .req { color: var(--bad); }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 12px;
  width: 100%;
}
.field textarea { resize: vertical; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: var(--bad); }
.field__error {
  font-size: 0.78rem;
  color: var(--bad);
  margin: 0;
  min-height: 0;
}
.field__error:empty { display: none; }

.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: var(--sp-2) var(--sp-3);
}
.field--check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.field--check label { font-weight: 400; font-size: 0.88rem; }
.field--check .field__error { grid-column: 1 / -1; }

.form__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.form__status {
  font-size: 0.9rem;
  margin: 0;
  min-height: 1.2em;
}
.form__status.is-success { color: var(--ok); }
.form__status.is-error { color: var(--bad); }
.form__status.is-loading { color: var(--muted); }

/* ---------- 17. Footer -------------------------------------- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: var(--sp-7) var(--sp-5);
}
.footer__grid { display: grid; gap: var(--sp-6); }
.footer__brand p { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--sp-3); }
.footer__product { font-size: var(--fs-sm); }
.footer__title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: var(--sp-3);
}
.footer__nav ul { columns: 2; column-gap: var(--sp-5); }
.footer__nav li { margin-bottom: 6px; break-inside: avoid; }
.footer__nav a, .footer__contact a { font-size: var(--fs-sm); color: var(--text); }
.footer__nav a:hover, .footer__contact a:hover { color: var(--accent); }
.footer__contact p { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 6px; }
.footer__bottom {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
}
.footer__disclaimer {
  font-size: var(--fs-xs);
  color: var(--muted);
  max-width: 70ch;
  margin: 0;
}
.footer__copy { font-size: var(--fs-xs); color: var(--muted); margin: 0; }

/* ---------- 18. Animasi & reduced motion --------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 19. Breakpoints --------------------------------- */

/* ≥640px */
@media (min-width: 640px) {
  .container { padding-inline: var(--sp-5); }
  .pains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-panel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-panel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai__principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock__finance { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1.4fr 1fr; }
}

/* ≥900px */
@media (min-width: 900px) {
  .nav__menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--sp-4);
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .nav__list { flex-direction: row; gap: 2px; }
  .nav__link { padding: 6px 10px; font-size: 0.9rem; }
  .nav__cta-mobile { display: none; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }

  .hero__grid { grid-template-columns: 1.05fr 1fr; }
  .pains { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sec-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .split { grid-template-columns: 1.1fr 1fr; }
  .ai { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .ai__principles { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }

  /* diagram Matter: mode radial */
  .matter__diagram {
    display: block;
    height: 460px;
    padding-bottom: 0;
    background:
      radial-gradient(closest-side, color-mix(in srgb, var(--accent) 7%, transparent), transparent);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background-color: var(--surface);
  }
  .matter__lines {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    stroke: var(--border);
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
  }
  .matter__hub {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    order: 0;
    width: 190px; height: 190px;
    border-radius: 50%;
    padding: var(--sp-3);
  }
  .matter__node {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    order: 0;
    min-width: 118px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
  }
  .matter__detail { margin-top: var(--sp-4); }
}

/* ≥1200px */
@media (min-width: 1200px) {
  .container { padding-inline: var(--sp-6); }
  .pains { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .matter__diagram { height: 500px; }
}
