/* Token dari design.md. --primary-link lebih gelap dari primary-text (#D9406F)
   agar teks tautan di atas putih lolos kontras 4.5:1 (sekitar 5.8:1). */
:root {
  --primary: #FF5C8A;
  --primary-shade: #CC4A6E;
  --primary-light: #FF7BA2;
  --primary-deep: #E64D79;
  --primary-link: #B8305F;
  --secondary: #2EC4A6;
  --secondary-shade: #259D85;
  --accent: #FFC93C;
  --accent-shade: #CCA130;
  --info: #4DA8FF;
  --ink: #2B2233;
  --ink-muted: #5E546B;
  --surface: #FFFFFF;
  --field-bg: #F7F4FA;
  --line: #E9E4EE;
  --field-shade: #D6CFE0;

  --bs-body-font-family: "Nunito", system-ui, sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--surface);
  --bs-link-color-rgb: 184, 48, 95;
  --bs-link-hover-color-rgb: 140, 30, 70;
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.65;
}

html { scroll-behavior: smooth; }
body { font-weight: 600; outline: none; }

a, button, summary, label[for], [role="button"] { cursor: pointer; }
button:disabled, [aria-disabled="true"] { cursor: not-allowed; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 1100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Header: pink penuh, tepi bawah melengkung, tebal bawah 3D */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  color: var(--ink);
  border-radius: 0 0 40px 40px;
  box-shadow: 0 8px 0 var(--primary-shade);
  padding: 40px 0 56px;
}
.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.hero-dot { position: absolute; border-radius: 50%; }
.hero-dot-1 { width: 280px; height: 280px; background: var(--primary-light); right: -90px; top: -110px; }
.hero-dot-2 { width: 120px; height: 120px; background: var(--primary-deep); left: -40px; bottom: -50px; }
.hero-dot-3 { width: 16px; height: 16px; background: var(--accent); right: 18%; bottom: 30px; }

.wordmark {
  display: inline-block;
  margin: 0 0 28px;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.hero-title {
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.hero-lead { font-size: 1.125rem; font-weight: 700; max-width: 36rem; margin-bottom: 18px; }
.hero-meta {
  display: inline-block;
  margin: 0;
  padding: 6px 14px;
  background: var(--surface);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 800;
}

.page { padding-top: 56px; padding-bottom: 64px; }

/* Daftar isi */
.toc { position: sticky; top: 20px; }
.toc-title {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--ink-muted);
}
.toc-toggle {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: var(--field-bg);
  color: var(--ink);
  border: 2px solid var(--line);
  border-bottom: 5px solid var(--field-shade);
  border-radius: 20px;
  font: inherit;
  font-weight: 900;
  transition: transform .08s ease, border-bottom-width .08s ease;
}
.toc-toggle:active { transform: translateY(3px); border-bottom-width: 2px; }
.toc-caret {
  width: 10px; height: 10px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .15s ease;
}
.toc-toggle[aria-expanded="true"] .toc-caret { transform: rotate(-135deg); }

.toc-list { margin: 10px 0 0; padding: 0; counter-reset: toc; }
.toc-list li { counter-increment: toc; }
.toc-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 14px;
  color: var(--ink-muted);
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none;
}
.toc-list a::before {
  content: counter(toc);
  flex: none;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: var(--field-bg);
  border-radius: 9px;
  font-size: 0.8rem;
  color: var(--ink);
}
.toc-list a:hover { background: var(--field-bg); color: var(--ink); }
.toc-list a.active { background: var(--ink); color: #fff; }
.toc-list a.active::before { background: var(--accent); color: var(--ink); }

/* Isi: ritme beda per bagian, bukan kartu seragam */
.policy { max-width: 760px; outline: none; }
.block { padding: 0 0 40px; margin-bottom: 40px; border-bottom: 2px solid var(--line); scroll-margin-top: 24px; }
.block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.block h2 {
  font-size: clamp(1.4rem, 3.4vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.block p { margin-bottom: 14px; }

.block-summary {
  padding: 24px;
  margin-bottom: 44px;
  background: var(--field-bg);
  border: 2px solid var(--line);
  border-bottom: 5px solid var(--field-shade);
  border-radius: 26px;
}

.block-teal {
  padding: 24px;
  background: var(--secondary);
  border-radius: 26px;
  box-shadow: 0 6px 0 var(--secondary-shade);
  margin-bottom: 52px;
  border-bottom: 0;
}
.block-teal a { color: var(--ink); }

.block-contact {
  padding: 24px;
  background: var(--accent);
  border-radius: 26px;
  box-shadow: 0 6px 0 var(--accent-shade);
  border-bottom: 0;
  margin-bottom: 8px;
}

/* Daftar data */
.data-list { margin: 0 0 16px; }
.data-row {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: 4px 20px;
  padding: 14px 0;
  border-top: 2px solid var(--line);
}
.data-row:last-child { border-bottom: 2px solid var(--line); }
.data-row dt { display: flex; align-items: flex-start; gap: 10px; font-weight: 900; }
.data-row dd { margin: 0; color: var(--ink-muted); }
.swatch { flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 7px; }
.swatch-pink { background: var(--primary); }
.swatch-sky { background: var(--info); }
.swatch-mango { background: var(--accent); }
.swatch-teal { background: var(--secondary); }

.plain-list { padding-left: 1.2rem; margin-bottom: 14px; }
.plain-list li { margin-bottom: 6px; padding-left: 4px; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 16px;
  background: var(--field-bg);
  border: 2px solid var(--line);
  border-radius: 20px;
}
.steps li::before {
  content: counter(step);
  flex: none;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  margin-top: 1px;
  background: var(--secondary);
  color: var(--ink);
  border-radius: 9px;
  box-shadow: 0 3px 0 var(--secondary-shade);
  font-weight: 900;
  font-size: 0.85rem;
}

/* Penanda isian yang belum dipastikan, tidak boleh lolos tanpa terlihat */
.todo {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 10px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
}
.note { color: var(--ink-muted); }
.block-teal .note, .block-contact .note, .block-contact .contact-line { color: var(--ink); }
code { color: inherit; background: rgba(43, 34, 51, .1); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

.site-footer { padding: 28px 0 36px; background: var(--field-bg); color: var(--ink-muted); font-weight: 700; font-size: 0.95rem; }

/* Mobile */
@media (max-width: 575.98px) {
  .hero { padding: 28px 0 44px; border-radius: 0 0 32px 32px; }
  .wordmark { margin-bottom: 20px; }
  .hero-dot-1 { width: 200px; height: 200px; right: -80px; top: -90px; }
  .page { padding-top: 40px; padding-bottom: 48px; }
  .data-row { grid-template-columns: 1fr; gap: 2px; }
  .block-summary, .block-teal, .block-contact { padding: 20px; }
  .block { padding-bottom: 32px; margin-bottom: 32px; }
}

@media (max-width: 991.98px) {
  .toc { position: static; }
  .toc-list { padding-bottom: 4px; }
  #toc-panel { background: var(--surface); }
}

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

/* Header: wordmark + pilihan bahasa */
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.hero-top .wordmark { margin: 0; }
.lang-switch { display: inline-flex; padding: 4px; gap: 4px; background: var(--primary-shade); border-radius: 18px; }
.lang-btn {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  transition: background-color .12s ease;
}
.lang-btn:hover { background: rgba(255, 255, 255, .22); }
.lang-btn[aria-pressed="true"] { background: var(--surface); color: var(--ink); }
.lang-btn:focus-visible { outline-color: #fff; }

/* Nomor bagian, supaya rujukan "lihat Bagian 5" mudah dicari */
.sec-num {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  margin-right: 12px;
  padding: 0 8px;
  vertical-align: 0.1em;
  background: var(--ink);
  color: #fff;
  border-radius: 11px;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0;
}
.block-teal .sec-num { background: var(--ink); }
.block-contact .sec-num { background: var(--ink); }

.data-row dd ul { margin: 0; padding-left: 1.1rem; }
.data-row dd li { margin-bottom: 2px; }
.data-row dt > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.sens {
  display: inline-block;
  margin-left: 8px;
  padding: 0 9px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
}
.swatch-ink { background: var(--ink); }

/* Paragraf penting (putus hubungan, lokasi data, usia) */
.key {
  padding: 16px 18px;
  background: var(--field-bg);
  border: 2px solid var(--line);
  border-bottom: 5px solid var(--field-shade);
  border-radius: 20px;
  font-weight: 800;
}
.block-summary { margin-bottom: 44px; }
.block-summary p:last-child, .block-teal p:last-child { margin-bottom: 0; }
.block a { overflow-wrap: anywhere; }
.block-teal a, .block-contact a { color: var(--ink); font-weight: 800; }

@media (max-width: 575.98px) {
  .hero-top { margin-bottom: 20px; }
  .lang-btn { padding: 0 12px; }
  .sec-num { min-width: 30px; height: 30px; margin-right: 10px; }
}

/* Halaman maintenance (index): gaya Splash dari design.md */
.splash-body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--primary);
  color: var(--ink);
}
.sp-dot { position: absolute; border-radius: 50%; pointer-events: none; }
.sp-dot-1 { width: 340px; height: 340px; background: var(--primary-light); right: -120px; top: -140px; }
.sp-dot-2 { width: 220px; height: 220px; background: var(--primary-deep); left: -90px; bottom: 12%; }
.sp-dot-3 { width: 18px; height: 18px; background: #fff; left: 14%; top: 18%; }
.sp-dot-4 { width: 14px; height: 14px; background: var(--accent); right: 16%; bottom: 24%; }
.sp-dot-5 { width: 12px; height: 12px; background: var(--secondary); left: 22%; bottom: 14%; }

.splash {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 640px;
  padding-top: 56px;
  padding-bottom: 40px;
}
.splash-wordmark { margin: 0 0 24px; font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; }
.splash-title {
  margin-bottom: 14px;
  font-size: clamp(2.25rem, 9vw, 3.5rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.splash-tagline { max-width: 30rem; margin-bottom: 36px; font-size: 1.125rem; line-height: 1.45; font-weight: 700; }

.splash-progress {
  width: 160px;
  height: 16px;
  padding: 3px;
  background: var(--primary-shade);
  border-radius: 8px;
  overflow: hidden;
}
.splash-fill {
  display: block;
  width: 45%;
  height: 10px;
  background: var(--accent);
  border-radius: 5px;
  animation: splash-slide 1.4s ease-in-out 3;
}
@keyframes splash-slide {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(120%); }
}
.splash-caption { margin: 12px 0 40px; font-size: 0.875rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }

.splash-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; width: 100%; }
.btn-tactile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  background: var(--ink);
  color: #fff;
  border-radius: 22px;
  box-shadow: 0 5px 0 #000;
  font-weight: 900;
  text-decoration: none;
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn-tactile:hover { color: #fff; filter: brightness(1.15); }
.btn-tactile:active { transform: translateY(3px); box-shadow: 0 2px 0 #000; }
.btn-tactile-ghost { background: var(--surface); color: var(--ink); border: 2px solid var(--line); box-shadow: 0 5px 0 var(--field-shade); }
.btn-tactile-ghost:hover { color: var(--ink); }
.btn-tactile-ghost:active { box-shadow: 0 2px 0 var(--field-shade); }

.splash-footer { position: relative; z-index: 1; padding: 20px 16px 28px; text-align: center; font-size: 0.9rem; font-weight: 800; }

@media (max-width: 575.98px) {
  .splash-actions { flex-direction: column; }
  .btn-tactile { width: 100%; }
  .sp-dot-1 { width: 240px; height: 240px; right: -100px; top: -100px; }
  .sp-dot-2 { width: 160px; height: 160px; }
}
