/* Jaga — situs statis. Tanpa skrip dan tanpa permintaan ke pihak ketiga:
   font di-host sendiri (subset latin, 8 KB per berat), gambar webp responsif. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/pjs-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/pjs-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #4338ca;
  --primary-deep: #2e2570;
  --coral: #e8684a;
  --coral-strong: #c9472a;
  --bg: #f6f5fb;
  --surface: #ffffff;
  --border: #e4e2ee;
  --text: #1b1838;
  --text-muted: #5d5a73;
  --on-dark: #ffffff;
  --on-dark-muted: #c9c4ee;
  --warn-bg: #fcebd7;
  --warn-text: #8a4a0b;
  --radius: 24px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14122a;
    --surface: #1f1c3a;
    --border: #322e55;
    --text: #f2f1f9;
    --text-muted: #c4c0dd;
    --primary: #a9a1f5;
    --coral-strong: #ff8a6b;
    --warn-bg: #3a2a14;
    --warn-text: #f0c48a;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }

/* Tautan lewati — hanya terlihat saat difokuskan dengan keyboard. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary-deep);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  z-index: 10;
}
.skip:focus { left: 0; }

a { color: var(--primary); }
a:focus-visible,
button:focus-visible,
summary:focus-visible { outline: 3px solid var(--coral-strong); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(32px, 6vw, 52px); margin: 0 0 16px; }
h2 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 12px; }
h3 { font-size: 20px; margin: 0 0 6px; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(19px, 2.4vw, 22px); color: var(--text-muted); }

/* --- kepala halaman --- */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand span { color: var(--text-muted); font-weight: 400; font-size: 15px; }

.site-head nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 16px; }
.site-head nav a { color: var(--text-muted); text-decoration: none; }
.site-head nav a:hover { color: var(--text); text-decoration: underline; }

/* --- hero --- */
.hero {
  background: linear-gradient(160deg, var(--primary-deep), #1b1540);
  color: var(--on-dark);
  border-radius: 32px;
  padding: clamp(32px, 6vw, 64px);
  margin: 16px 0 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { color: var(--on-dark); }
.hero p { color: var(--on-dark-muted); font-size: clamp(18px, 2.2vw, 21px); }
.hero img { width: 100%; height: auto; border-radius: 20px; display: block; }

@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero figure { max-width: 320px; margin: 0 auto; }
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary { background: var(--coral-strong); color: #fff; }
.btn-primary:hover { background: #a8381f; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }

.badge-soon {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: var(--on-dark-muted);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  margin-bottom: 20px;
}

/* --- bagian umum --- */
section { margin: 0 0 64px; }
.section-intro { max-width: 640px; margin-bottom: 28px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card p:last-child { margin-bottom: 0; }

.card svg { width: 28px; height: 28px; stroke: var(--primary); fill: none; stroke-width: 2; margin-bottom: 14px; }

/* --- galeri tangkapan layar --- */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}
.shots figure { margin: 0; }
.shots img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  display: block;
  background: var(--surface);
}
.shots figcaption { color: var(--text-muted); font-size: 15px; margin-top: 10px; }

/* --- daftar privasi --- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 18px;
  height: 10px;
  border-left: 3px solid var(--coral-strong);
  border-bottom: 3px solid var(--coral-strong);
  transform: rotate(-45deg);
}

/* --- faq --- */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 22px;
  margin-bottom: 12px;
}
summary { font-weight: 800; cursor: pointer; }
details[open] summary { margin-bottom: 10px; }

/* --- catatan medis --- */
.disclaimer {
  border-left: 4px solid var(--coral-strong);
  padding: 4px 0 4px 20px;
  color: var(--text-muted);
}

/* --- halaman dokumen (privasi, hapus akun) --- */
.doc h2 { font-size: 22px; margin: 40px 0 8px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 16px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { color: var(--text-muted); font-weight: 800; }
.doc ol.steps { padding-left: 24px; }
.doc ol.steps li { margin-bottom: 12px; }

.draft {
  background: var(--warn-bg);
  color: var(--warn-text);
  border: 1px solid currentColor;
  border-radius: 16px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 16px;
}

/* Penanda yang belum diisi pemilik — sengaja mencolok agar halaman setengah jadi
   tidak mungkin terbit tanpa ketahuan. */
.isi {
  background: var(--coral-strong);
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
}

/* --- kaki halaman --- */
.site-foot {
  border-top: 1px solid var(--border);
  padding: 32px 0 56px;
  color: var(--text-muted);
  font-size: 15px;
}
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }

.hero-shot { margin: 0; }
.card-links { margin-top: 20px; margin-bottom: 0; }
.disclaimer.spaced { margin-top: 28px; }

code { font-size: 0.92em; overflow-wrap: anywhere; }
body { overflow-wrap: break-word; }
