/* ==========================================================
   KlinikPDF — Stylesheet utama
   ========================================================== */
:root {
  --brand-50: #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --brand-900: #1e1b4b;

  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-50: #f8fafc;

  --ok: #059669;
  --ok-bg: #ecfdf5;
  --danger: #dc2626;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 4px 16px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 50px -12px rgba(30, 27, 75, .25);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand-200); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 10px;
  font-weight: 600; font-size: 15px; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .6); }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-outline { background: #fff; border-color: var(--ink-200); color: var(--ink-900); }
.btn-outline:hover { border-color: var(--ink-400); color: var(--ink-900); }
.btn-ghost { background: transparent; color: var(--ink-700); }
.btn-ghost:hover { background: var(--ink-100); color: var(--ink-900); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; border-radius: 12px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink-900); letter-spacing: -.02em; }
.logo:hover { color: var(--ink-900); }
.logo img { width: 34px; height: 34px; }
.logo span em { font-style: normal; color: var(--brand-600); }

/* ==========================================================
   LANDING PAGE
   ========================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-color: var(--ink-200); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) { padding: 8px 12px; color: var(--ink-700); font-weight: 500; font-size: 15px; border-radius: 8px; }
.nav-links a:not(.btn):hover { color: var(--ink-900); background: var(--ink-100); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 10px; }
.nav-toggle svg { width: 24px; height: 24px; margin: auto; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 900px; height: 900px;
  background: radial-gradient(closest-side, rgba(99, 102, 241, .18), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -50% -20%; width: 700px; height: 700px;
  background: radial-gradient(closest-side, rgba(37, 99, 235, .10), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--ok-bg); color: var(--ok); font-size: 13px; font-weight: 600;
  border: 1px solid #a7f3d0;
}
.badge-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; }
.badge-dot svg { width: 12px; height: 12px; color: #fff; }
.hero h1 {
  margin: 20px 0 18px; font-size: clamp(36px, 5.2vw, 58px); line-height: 1.08;
  letter-spacing: -.035em; font-weight: 800;
}
.hero h1 .hl { background: linear-gradient(90deg, var(--brand-600), #2563eb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-500); margin: 0 0 32px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 32px; color: var(--ink-500); font-size: 14px; font-weight: 500; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--ok); }

/* Dropzone di hero */
.drop-card {
  position: relative; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 14px; border: 1px solid var(--ink-200);
}
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 340px; padding: 32px 24px;
  border: 2px dashed var(--brand-200); border-radius: 14px;
  background: linear-gradient(180deg, var(--brand-50), #fff);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand-500); background: var(--brand-50); }
.dropzone-icon {
  width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center;
  background: var(--brand-600); color: #fff; margin-bottom: 20px;
  box-shadow: 0 12px 24px -10px rgba(79, 70, 229, .7);
}
.dropzone-icon svg { width: 34px; height: 34px; }
.dropzone h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.01em; }
.dropzone p { margin: 0 0 20px; color: var(--ink-500); font-size: 14px; }
.dropzone small { display: block; margin-top: 16px; color: var(--ink-400); font-size: 12.5px; }
.drop-sig {
  position: absolute; right: -18px; bottom: -22px; width: 190px; padding: 12px 16px 10px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--ink-200);
  transform: rotate(-4deg);
}
.drop-sig svg { width: 100%; height: auto; color: #1d4ed8; }
.drop-sig div { border-top: 1px dashed var(--ink-200); margin-top: 4px; padding-top: 4px; font-size: 11px; color: var(--ink-400); text-align: center; }

/* Section umum */
.section { padding: 96px 0; }
.section-alt { background: var(--ink-50); border-top: 1px solid var(--ink-200); border-bottom: 1px solid var(--ink-200); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 12px; }
.section-head h2 { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -.03em; }
.section-head p { margin: 0; color: var(--ink-500); font-size: 17px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 28px 0; }
.stat { text-align: center; }
.stat b { display: block; font-size: 28px; letter-spacing: -.02em; color: var(--ink-900); }
.stat span { font-size: 14px; color: var(--ink-500); }

/* Fitur */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  padding: 28px; border-radius: var(--radius-lg); background: #fff;
  border: 1px solid var(--ink-200); transition: box-shadow .2s, transform .2s, border-color .2s;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--brand-200); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); margin-bottom: 18px; }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--ink-500); font-size: 15px; }

/* Langkah */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 32px 28px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--ink-200); }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-600); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 18px;
}
.step h3 { margin: 0 0 8px; font-size: 19px; }
.step p { margin: 0; color: var(--ink-500); font-size: 15px; }

/* Use case */
.usecases { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip { padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--ink-200); font-weight: 500; font-size: 15px; color: var(--ink-700); }

/* Privasi */
.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.privacy h2 { margin: 0 0 16px; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -.03em; }
.privacy p { color: var(--ink-500); font-size: 17px; margin: 0 0 24px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--ok); margin-top: 1px; }
.privacy-visual {
  border-radius: var(--radius-lg); padding: 32px;
  background: linear-gradient(145deg, var(--brand-900), #312e81);
  color: #fff; box-shadow: var(--shadow-lg);
}
.pv-row { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 12px; background: rgba(255,255,255,.08); margin-bottom: 12px; }
.pv-row:last-child { margin-bottom: 0; }
.pv-row svg { width: 28px; height: 28px; flex: none; color: #a5b4fc; }
.pv-row b { display: block; font-size: 15px; }
.pv-row span { font-size: 13px; color: #c7d2fe; }
.pv-row.blocked { background: rgba(220, 38, 38, .15); }
.pv-row.blocked svg { color: #fca5a5; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius); padding: 0 22px; transition: border-color .15s; }
.faq details[open] { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--ink-400); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-500); font-size: 15px; }

/* CTA */
.cta {
  text-align: center; padding: 64px 32px; border-radius: 28px; color: #fff;
  background: radial-gradient(circle at 20% 0%, #6366f1, transparent 50%), linear-gradient(135deg, var(--brand-700), #1d4ed8);
  box-shadow: var(--shadow-lg);
}
.cta h2 { margin: 0 0 12px; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.03em; line-height: 1.15; }
.cta p { margin: 0 0 28px; color: #c7d2fe; font-size: 17px; }
.cta .btn-primary { background: #fff; color: var(--brand-700); }
.cta .btn-primary:hover { background: var(--brand-50); color: var(--brand-700); }

/* Footer */
.footer { padding: 48px 0 32px; border-top: 1px solid var(--ink-200); margin-top: 96px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer p { margin: 10px 0 0; color: var(--ink-500); font-size: 14px; max-width: 360px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.footer-links a { color: var(--ink-700); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--ink-200); color: var(--ink-400); font-size: 13px; }

/* Responsif landing */
@media (max-width: 960px) {
  .hero-grid, .privacy { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .drop-sig { right: 10px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    padding: 12px 16px 20px; background: #fff; border-bottom: 1px solid var(--ink-200); box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px; }
  .hero { padding: 40px 0 72px; }
  .section { padding: 72px 0; }
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .dropzone { min-height: 280px; }
  .drop-sig { display: none; }
  .container { padding: 0 16px; }
  .cta { padding: 48px 20px; border-radius: 20px; }
}

/* ==========================================================
   v2 — Pustaka TTD di hero, QR, e-Meterai, footer pembuat
   ========================================================== */
.dropzone { min-height: 280px; }
.formats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; }
.formats span { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--brand-700); background: #fff; border: 1px solid var(--brand-200); padding: 3px 9px; border-radius: 999px; }

.hero-sigs { padding: 14px 6px 4px; }
.hero-sigs-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 14px; }
.hero-sigs-list { display: flex; gap: 8px; overflow-x: auto; min-height: 56px; scrollbar-width: thin; }
.hero-sig { flex: none; width: 104px; height: 56px; border: 1px solid var(--ink-200); border-radius: 10px; display: grid; place-items: center; padding: 6px; background: #fff; }
.hero-sig img { max-width: 100%; max-height: 42px; object-fit: contain; }
.hero-sigs-empty { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-500); padding: 10px 12px; border: 1px dashed var(--ink-200); border-radius: 10px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--brand-600); font-weight: 600; cursor: pointer; font-size: inherit; font-family: inherit; }
.link-btn:hover { color: var(--brand-700); text-decoration: underline; }

.step-btn { margin-top: 18px; }
.features { grid-template-columns: repeat(3, 1fr); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split-title { margin: 0 0 16px; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -.03em; }
.split-lead { color: var(--ink-500); font-size: 17px; margin: 0 0 22px; }
.qr-demo { display: grid; place-items: center; }
.qr-demo-card { display: flex; gap: 20px; align-items: center; padding: 24px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--ink-200); box-shadow: var(--shadow-lg); max-width: 460px; }
.qr-demo-card img { width: 150px; height: 150px; flex: none; image-rendering: pixelated; background: var(--ink-50); border-radius: 8px; }
.qr-demo-text { display: grid; gap: 3px; font-size: 13px; color: var(--ink-500); min-width: 0; }
.qr-demo-text small { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--brand-600); }
.qr-demo-text b { font-size: 16px; color: var(--ink-900); }

.note-center { text-align: center; max-width: 760px; margin: 32px auto 0; font-size: 14px; color: var(--ink-500); }

.cta-wrap { margin-top: 96px; }

/* Footer dengan profil pembuat */
.footer-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.footer-grid .footer-links { margin-top: 18px; }
.creator { padding: 22px; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); background: var(--ink-50); }
.creator-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400); }
.creator-head { display: flex; align-items: center; gap: 14px; margin: 12px 0 14px; }
.creator-head b { display: block; font-size: 18px; letter-spacing: -.01em; }
.creator-head small { color: var(--ink-500); font-size: 14px; }
.avatar { position: relative; width: 56px; height: 56px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--brand-600), #2563eb); color: #fff; display: grid; place-items: center; font-weight: 800; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tags span { font-size: 12.5px; font-weight: 600; color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-100); padding: 4px 10px; border-radius: 999px; }
.creator-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; background: #fff; border: 1px solid var(--ink-200); color: var(--ink-900); font-size: 13.5px; font-weight: 600; }
.social:hover { border-color: var(--ink-400); color: var(--ink-900); }
.social svg { width: 17px; height: 17px; }

@media (max-width: 960px) {
  .split, .footer-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
  .qr-demo-card { flex-direction: column; text-align: center; }
  .qr-demo-text { justify-items: center; }
  .cta-wrap { margin-top: 72px; }
}
