/* =====================================================================
   KonversiPDF, Design System
   Satu berkas CSS, tanpa font eksternal, agar render pertama cepat.
   ===================================================================== */

/* ---------- 1. Token desain ---------------------------------------- */
:root {
  /* Warna utama: biru tua profesional */
  --navy-900: #071b31;
  --navy-800: #0b2a4a;
  --navy-700: #123a63;
  --blue-600: #1d4ed8;
  --blue-500: #2563eb;
  --blue-100: #dbe6fe;
  --blue-50:  #eff4ff;

  /* Aksen tunggal: jingga hangat */
  --accent-700: #c2410c;  /* teks putih di atasnya: 5,2:1 */
  --accent-600: #ea6a0c;
  --accent-500: #f97316;  /* dekoratif, atau di atas latar gelap */
  --accent-100: #ffedd5;
  --accent-50:  #fff7ed;

  /* Netral */
  --ink-900: #0d1424;
  --ink-800: #1b2436;
  --ink-700: #33415c;
  --ink-600: #4a5878;
  --ink-500: #616f8a;  /* 4,8:1 pada latar halaman, lolos WCAG AA */
  --ink-400: #94a1b8;
  --line-300: #d9e0ec;
  --line-200: #e6ebf3;
  --line-100: #f0f4f9;
  --surface:  #ffffff;
  --page:     #f7f9fc;

  /* Status */
  --ok-600: #15803d;
  --ok-500: #16a34a;
  --ok-50:  #ecfdf3;
  --warn-600: #b45309;
  --warn-50:  #fffbeb;
  --err-600: #c02626;
  --err-500: #dc2626;
  --err-50:  #fef2f2;

  /* Bentuk */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-full: 999px;

  /* Bayangan halus */
  --sh-xs: 0 1px 2px rgba(11, 42, 74, .06);
  --sh-sm: 0 1px 3px rgba(11, 42, 74, .07), 0 1px 2px rgba(11, 42, 74, .04);
  --sh-md: 0 4px 14px rgba(11, 42, 74, .08), 0 1px 3px rgba(11, 42, 74, .04);
  --sh-lg: 0 14px 40px rgba(11, 42, 74, .11), 0 3px 10px rgba(11, 42, 74, .05);
  --sh-xl: 0 26px 60px rgba(11, 42, 74, .14), 0 6px 16px rgba(11, 42, 74, .06);

  /* Ritme */
  --gutter: 20px;
  --max-w: 1180px;
  --max-prose: 44rem;

  /* Gerak */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .22s;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
}

/* ---------- 2. Reset & dasar --------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

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

img, svg, video, canvas { max-width: 100%; height: auto; display: block; }

/* Ukuran bawaan ikon sprite: mencegah ikon tanpa aturan khusus
   melar mengikuti ukuran viewBox-nya. */
.icon {
  width: 1.15em; height: 1.15em; flex: none;
  display: inline-block; vertical-align: -0.15em;
}

h1, h2, h3, h4 {
  color: var(--navy-900);
  line-height: 1.18;
  letter-spacing: -0.021em;
  margin: 0 0 .5em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(1.85rem, 1.25rem + 2.6vw, 3.1rem); letter-spacing: -0.028em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.05rem); }
h3 { font-size: clamp(1.12rem, 1rem + .5vw, 1.35rem); }
h4 { font-size: 1.03rem; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy-800); }

ul, ol { padding-left: 1.3em; }
li { margin-bottom: .4em; }

hr { border: 0; border-top: 1px solid var(--line-200); margin: 2.5rem 0; }

small { font-size: .875rem; }
strong { font-weight: 650; color: var(--navy-900); }

button, input, select, textarea { font: inherit; color: inherit; }

/* Fokus terlihat jelas di seluruh situs */
:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy-800); color: #fff; padding: .7rem 1.1rem;
  border-radius: 0 0 var(--r-md) var(--r-md); font-weight: 600;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- 3. Tata letak ------------------------------------------ */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }

.section { padding-block: clamp(2.75rem, 1.5rem + 4vw, 5rem); }
.section--tight { padding-block: clamp(2rem, 1.2rem + 2.5vw, 3.25rem); }
.section--alt { background: var(--surface); }
.section--ink { background: var(--navy-800); color: #cfe0f5; }
.section--ink h2, .section--ink h3 { color: #fff; }

.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-600); font-size: 1.05rem; margin-bottom: 0; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: .6rem;
}

/* ---------- 4. Tombol ---------------------------------------------- */
.btn {
  --btn-bg: var(--blue-600);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .78rem 1.5rem;
  border: 1px solid transparent; border-radius: var(--r-full);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 650; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  box-shadow: var(--sh-sm);
  text-align: center;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn:active { transform: translateY(0); box-shadow: var(--sh-xs); }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .55; cursor: not-allowed; transform: none; box-shadow: none;
}

.btn--primary { --btn-bg: var(--blue-600); }
.btn--primary:hover { --btn-bg: var(--blue-500); }

.btn--accent { --btn-bg: var(--accent-700); }
.btn--accent:hover { --btn-bg: #a8410a; }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--navy-800);
  border-color: var(--line-300); box-shadow: none;
}
.btn--ghost:hover { --btn-bg: var(--blue-50); border-color: var(--blue-100); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-800); }

.btn--sm { min-height: 40px; padding: .5rem 1.05rem; font-size: .92rem; }
.btn--lg { min-height: 56px; padding: .95rem 1.9rem; font-size: 1.06rem; }
.btn--block { width: 100%; }
.btn .icon { width: 1.15em; height: 1.15em; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-row--center { justify-content: center; }

/* ---------- 5. Header ---------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line-200);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 66px;
}

.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; font-weight: 750; font-size: 1.16rem;
  letter-spacing: -.024em; color: var(--navy-900); flex: none;
}
.logo__mark { display: block; line-height: 0; }
.logo__mark svg { width: 34px; height: 34px; }
.logo__text-a { color: var(--navy-900); }
.logo__text-b { color: var(--accent-700); }
.logo:hover .logo__text-a { color: var(--navy-700); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.nav-list {
  display: flex; align-items: center; gap: 1.6rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-list li { margin: 0; }
.nav-list a {
  color: var(--ink-700); text-decoration: none; font-weight: 550;
  font-size: .97rem; padding: .45rem 0; position: relative; display: block;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent-500); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-list a:hover { color: var(--navy-900); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--navy-900); font-weight: 650; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border: 1px solid var(--line-300);
  border-radius: var(--r-md); background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle__bars { display: block; width: 20px; }
.nav-toggle__bars span {
  display: block; height: 2px; background: var(--navy-800); border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle__bars span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 66px 0 auto; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line-200);
    box-shadow: var(--sh-lg); padding: .5rem var(--gutter) 1.25rem;
    max-height: calc(100dvh - 66px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
                visibility var(--dur);
  }
  .site-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a {
    padding: .95rem .25rem; font-size: 1.05rem;
    border-bottom: 1px solid var(--line-100);
  }
  .nav-list a::after { display: none; }
  .nav-cta { margin-top: 1rem; width: 100%; }
}

/* ---------- 6. Hero ------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 480px at 78% -8%, rgba(37, 99, 235, .10), transparent 62%),
    radial-gradient(760px 420px at 6% 4%, rgba(249, 115, 22, .07), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--page) 100%);
  padding-block: clamp(1.75rem, 1rem + 3vw, 3.5rem) clamp(2.25rem, 1.5rem + 3vw, 4rem);
  border-bottom: 1px solid var(--line-200);
}
.hero-grid {
  display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  grid-template-columns: 1fr;
  align-items: start;
}
.hero-grid > * { min-width: 0; }
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); align-items: center; }
}
.hero-copy h1 { margin-bottom: .55rem; }
.hero-lead {
  font-size: clamp(1.02rem, .97rem + .3vw, 1.19rem);
  color: var(--ink-600); max-width: 34rem; margin-bottom: 1.5rem;
}
.hero-badges {
  display: flex; flex-wrap: wrap; gap: .5rem .95rem;
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  font-size: .89rem; color: var(--ink-600);
}
.hero-badges li { display: inline-flex; align-items: center; gap: .4rem; margin: 0; }
.hero-badges .icon { width: 1.05rem; height: 1.05rem; color: var(--ok-500); flex: none; }

/* ---------- 7. Kartu alat ------------------------------------------- */
.tool-grid {
  display: grid; gap: 1.15rem;
  grid-template-columns: 1fr;
  list-style: none; padding: 0; margin: 0;
}
.tool-grid li { margin: 0; }

.tool-card {
  position: relative; display: flex; flex-direction: column; gap: .5rem;
  height: 100%; padding: 1.25rem 1.25rem 1.35rem;
  background: var(--surface); border: 1px solid var(--line-200);
  border-radius: var(--r-lg); text-decoration: none; color: inherit;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  box-shadow: var(--sh-xs);
}
.tool-card:hover, .tool-card:focus-within {
  transform: translateY(-3px); box-shadow: var(--sh-lg);
  border-color: var(--blue-100); color: inherit;
}
.tool-card__icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: grid; place-items: center; flex: none; margin-bottom: .3rem;
  background: var(--blue-50); color: var(--blue-600);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.tool-card__icon .icon { width: 26px; height: 26px; }
.tool-card:hover .tool-card__icon { background: var(--blue-600); color: #fff; }
.tool-card__name {
  font-size: 1.04rem; font-weight: 650; color: var(--navy-900);
  margin: 0; letter-spacing: -.012em;
}
.tool-card__desc { font-size: .9rem; color: var(--ink-600); margin: 0; line-height: 1.55; }
.tool-card__cta {
  margin-top: auto; padding-top: .7rem; font-size: .88rem; font-weight: 650;
  color: var(--blue-600); display: inline-flex; align-items: center; gap: .3rem;
}
.tool-card__cta .icon { width: .95em; height: .95em; transition: transform var(--dur) var(--ease); }
.tool-card:hover .tool-card__cta .icon { transform: translateX(3px); }

.tool-card--soon { background: var(--line-100); }
.tool-card--soon .tool-card__icon { background: #fff; color: var(--ink-400); }
.tool-card--soon:hover .tool-card__icon { background: #fff; color: var(--ink-500); }

.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .2rem .5rem; border-radius: var(--r-full);
}
.badge--soon { background: var(--warn-50); color: var(--warn-600); border: 1px solid #fde68a; }
.badge--new  { background: var(--accent-50); color: var(--accent-600); border: 1px solid #fed7aa; }
.tool-card__badge { position: absolute; top: .9rem; right: .9rem; }

/* Kategori pada direktori alat */
.cat-block + .cat-block { margin-top: clamp(2rem, 1.4rem + 2vw, 3rem); }
.cat-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.cat-head__icon {
  width: 40px; height: 40px; border-radius: var(--r-md); flex: none;
  display: grid; place-items: center; background: var(--navy-800); color: #fff;
}
.cat-head__icon .icon { width: 20px; height: 20px; }
.cat-head h2 { margin: 0; font-size: 1.35rem; }
.cat-head p { margin: 0; font-size: .9rem; color: var(--ink-500); }

/* ---------- 8. Alat: kotak unggah ----------------------------------- */
.tool-app {
  background: var(--surface); border: 1px solid var(--line-200);
  border-radius: var(--r-xl); box-shadow: var(--sh-lg);
  padding: clamp(1rem, .7rem + 1.2vw, 1.75rem);
}
.tool-app--hero { box-shadow: var(--sh-xl); }

.dropzone {
  position: relative; display: block; width: 100%;
  border: 2px dashed var(--line-300); border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, var(--blue-50) 0%, rgba(239, 244, 255, .35) 100%);
  padding: clamp(1.5rem, 1rem + 3vw, 2.75rem) 1.25rem;
  text-align: center; cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
              transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.dropzone:hover { border-color: var(--blue-500); background: var(--blue-50); }
.dropzone.is-dragover {
  border-color: var(--accent-500); background: var(--accent-50);
  transform: scale(1.008); box-shadow: inset 0 0 0 4px rgba(249, 115, 22, .09);
}
.dropzone:focus-within { outline: 3px solid var(--blue-500); outline-offset: 2px; }
.dropzone input[type="file"] {
  position: absolute; width: 1px; height: 1px; opacity: 0;
  overflow: hidden; clip: rect(0 0 0 0);
}
.dropzone__icon {
  width: 62px; height: 62px; margin: 0 auto .85rem; border-radius: var(--r-lg);
  display: grid; place-items: center; background: #fff; color: var(--blue-600);
  box-shadow: var(--sh-sm);
}
.dropzone__icon .icon { width: 30px; height: 30px; }
.dropzone.is-dragover .dropzone__icon { color: var(--accent-500); }
.dropzone__title {
  display: block;
  font-size: clamp(1.02rem, .95rem + .4vw, 1.22rem); font-weight: 700;
  color: var(--navy-900); margin: 0 0 .3rem; line-height: 1.3;
}
.dropzone__sub { display: block; font-size: .93rem; color: var(--ink-600); margin: 0 0 1.1rem; }
.dropzone__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  width: auto; max-width: 100%;
  min-height: 48px; padding: .75rem 1.6rem; border-radius: var(--r-full);
  background: var(--blue-600); color: #fff; font-weight: 650; font-size: 1rem;
  line-height: 1.2; white-space: nowrap;
  box-shadow: var(--sh-sm); pointer-events: none;
  transition: background-color var(--dur) var(--ease);
}
.dropzone:hover .dropzone__btn { background: var(--blue-500); }
.dropzone__btn .icon { width: 1.1em; height: 1.1em; }
.dropzone__formats {
  display: flex; flex-wrap: wrap; gap: .35rem .9rem; justify-content: center;
  margin: .95rem 0 0; font-size: .82rem; color: var(--ink-500);
}
.dropzone__formats > span { display: inline-flex; align-items: center; gap: .3rem; }
.dropzone__formats .icon { width: .95rem; height: .95rem; vertical-align: 0; }

/* Daftar file terpilih */
.file-list { list-style: none; margin: 1.15rem 0 0; padding: 0; display: grid; gap: .55rem; }
.file-list li { margin: 0; }
.file-item {
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem .85rem; background: var(--line-100);
  border: 1px solid var(--line-200); border-radius: var(--r-md);
}
.file-item__thumb {
  width: 38px; height: 46px; flex: none; border-radius: 5px; overflow: hidden;
  background: #fff; border: 1px solid var(--line-200);
  display: grid; place-items: center; color: var(--blue-600);
}
.file-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-item__thumb .icon { width: 18px; height: 18px; }
.file-item__meta { min-width: 0; flex: 1; }
.file-item__name {
  font-weight: 600; font-size: .93rem; color: var(--navy-900);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-item__size { font-size: .8rem; color: var(--ink-500); }
.file-item__actions { display: flex; gap: .3rem; flex: none; }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--line-300); background: #fff; border-radius: var(--r-sm);
  cursor: pointer; color: var(--ink-600);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.icon-btn:hover { color: var(--err-600); border-color: #fca5a5; background: var(--err-50); }
.icon-btn .icon { width: 17px; height: 17px; }
.icon-btn--move:hover { color: var(--blue-600); border-color: var(--blue-100); background: var(--blue-50); }
.icon-btn[disabled] { opacity: .4; cursor: not-allowed; }

/* Opsi alat */
.tool-options {
  margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line-200);
  display: grid; gap: 1.15rem;
}
.field { display: grid; gap: .45rem; }
.field > label, .field-legend {
  font-weight: 650; font-size: .92rem; color: var(--navy-900);
}
.field__hint { font-size: .82rem; color: var(--ink-500); }
.field select, .field input[type="text"], .field input[type="number"] {
  width: 100%; min-height: 46px; padding: .6rem .8rem;
  border: 1px solid var(--line-300); border-radius: var(--r-md);
  background: #fff; color: var(--ink-900);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field select:focus, .field input:focus {
  border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); outline: none;
}
.field input[type="range"] { width: 100%; accent-color: var(--blue-600); }

fieldset.field { border: 0; padding: 0; margin: 0; }

.choice-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice {
  position: relative; display: inline-flex;
}
.choice input {
  position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer;
}
.choice span {
  display: inline-flex; flex-direction: column; gap: .1rem;
  padding: .6rem 1rem; border: 1px solid var(--line-300); border-radius: var(--r-md);
  background: #fff; font-size: .92rem; font-weight: 600; color: var(--ink-700);
  transition: all var(--dur) var(--ease); min-height: 46px; justify-content: center;
}
.choice span small { font-weight: 500; font-size: .76rem; color: var(--ink-500); }
.choice input:checked + span {
  border-color: var(--blue-600); background: var(--blue-50); color: var(--navy-900);
  box-shadow: 0 0 0 1px var(--blue-600) inset;
}
.choice input:focus-visible + span { outline: 3px solid var(--blue-500); outline-offset: 2px; }
.choice input:checked + span small { color: var(--blue-600); }

.switch { display: flex; align-items: center; gap: .6rem; cursor: pointer; }
.switch input { width: 20px; height: 20px; accent-color: var(--blue-600); cursor: pointer; }

.tool-actions { margin-top: 1.35rem; display: flex; flex-wrap: wrap; gap: .7rem; }
.tool-actions .btn--primary { flex: 1 1 220px; }

/* ---------- 9. Status: progres, sukses, galat ----------------------- */
.tool-status { margin-top: 1.25rem; }

.progress-card {
  padding: 1.35rem; background: var(--blue-50);
  border: 1px solid var(--blue-100); border-radius: var(--r-lg);
}
.progress-card__label {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 650; color: var(--navy-800); margin-bottom: .7rem; font-size: .95rem;
}
.progress-card__pct { font-variant-numeric: tabular-nums; color: var(--blue-600); }
.progress-track {
  height: 9px; border-radius: var(--r-full); background: #fff;
  overflow: hidden; box-shadow: inset 0 1px 2px rgba(11, 42, 74, .08);
}
.progress-bar {
  height: 100%; width: 0%; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--blue-600), var(--blue-500));
  transition: width .3s var(--ease);
}
.progress-bar.is-indeterminate {
  width: 40%; animation: kpdf-indet 1.15s var(--ease) infinite;
}
@keyframes kpdf-indet {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}
.progress-card__step { font-size: .86rem; color: var(--ink-600); margin: .6rem 0 0; }

.spinner {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 2px solid var(--blue-100); border-top-color: var(--blue-600);
  animation: kpdf-spin .7s linear infinite;
}
@keyframes kpdf-spin { to { transform: rotate(360deg); } }

.result-card {
  padding: clamp(1.15rem, .9rem + 1vw, 1.75rem);
  background: var(--ok-50); border: 1px solid #bbf7d0; border-radius: var(--r-lg);
}
.result-card__head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; }
.result-check {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--ok-500); color: #fff;
}
.result-check .icon { width: 25px; height: 25px; }
.result-check svg path { stroke-dasharray: 30; stroke-dashoffset: 0; }
.result-card__title { margin: 0; font-size: 1.28rem; color: var(--navy-900); }
.result-card__sub { margin: .1rem 0 0; font-size: .92rem; color: var(--ink-600); }

.result-stats {
  list-style: none; margin: 0 0 1.15rem; padding: 0;
  display: grid; gap: .55rem;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
.result-stats li {
  margin: 0; padding: .7rem .85rem; background: #fff;
  border: 1px solid #d6f2df; border-radius: var(--r-md);
}
.result-stats dt, .result-stats .stat-label {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-500); font-weight: 700; margin-bottom: .15rem;
}
.result-stats dd, .result-stats .stat-value {
  margin: 0; font-size: 1.02rem; font-weight: 700; color: var(--navy-900);
  font-variant-numeric: tabular-nums;
}
/* Kekhususan disamakan dengan aturan .result-stats .stat-value di atas,
   agar penanda hijau tidak kalah dan benar-benar terlihat. */
.result-stats .stat-value--good { color: var(--ok-600); }

.result-files { list-style: none; margin: 0 0 1.15rem; padding: 0; display: grid; gap: .5rem; max-height: 320px; overflow-y: auto; }
.result-files li { margin: 0; }
.result-file {
  display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem;
  background: #fff; border: 1px solid #d6f2df; border-radius: var(--r-md);
}
.result-file__name { flex: 1; min-width: 0; font-size: .9rem; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-file__size { font-size: .8rem; color: var(--ink-500); flex: none; }

.alert {
  display: flex; gap: .8rem; padding: 1rem 1.15rem;
  border-radius: var(--r-md); border: 1px solid; font-size: .94rem;
}
.alert .icon { width: 20px; height: 20px; flex: none; margin-top: .15rem; }
.alert p { margin: 0; }
.alert p + p { margin-top: .4rem; }
.alert strong { display: block; margin-bottom: .15rem; }
.alert--error { background: var(--err-50); border-color: #fecaca; color: #7f1d1d; }
.alert--error .icon { color: var(--err-500); }
.alert--warn { background: var(--warn-50); border-color: #fde68a; color: #78350f; }
.alert--warn .icon { color: var(--warn-600); }
.alert--info { background: var(--blue-50); border-color: var(--blue-100); color: var(--navy-800); }
.alert--info .icon { color: var(--blue-600); }

.privacy-note {
  display: flex; align-items: flex-start; gap: .6rem;
  margin-top: 1.1rem; font-size: .85rem; color: var(--ink-600); line-height: 1.55;
}
.privacy-note .icon { width: 17px; height: 17px; color: var(--ok-500); flex: none; margin-top: .18rem; }

/* Pratinjau halaman (susun ulang / hapus halaman) */
.page-grid {
  display: grid; gap: .75rem; margin-top: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  max-height: 460px; overflow-y: auto; padding: .25rem;
}
.page-thumb {
  position: relative; border: 2px solid var(--line-200); border-radius: var(--r-md);
  background: #fff; overflow: hidden; cursor: pointer; padding: 0;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.page-thumb:hover { border-color: var(--blue-500); transform: translateY(-2px); box-shadow: var(--sh-md); }
.page-thumb canvas, .page-thumb img { width: 100%; display: block; }
.page-thumb__num {
  position: absolute; left: 5px; bottom: 5px;
  background: rgba(7, 27, 49, .82); color: #fff; font-size: .7rem; font-weight: 700;
  padding: .1rem .4rem; border-radius: var(--r-sm); font-variant-numeric: tabular-nums;
}
.page-thumb__mark {
  position: absolute; top: 5px; right: 5px; width: 22px; height: 22px;
  border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line-300); color: transparent;
}
.page-thumb__mark .icon { width: 13px; height: 13px; }
.page-thumb.is-selected { border-color: var(--err-500); }
.page-thumb.is-selected::after {
  content: ""; position: absolute; inset: 0; background: rgba(220, 38, 38, .14);
}
.page-thumb.is-selected .page-thumb__mark { background: var(--err-500); border-color: var(--err-500); color: #fff; }
.page-thumb__skeleton { aspect-ratio: 1 / 1.414; background: var(--line-100); }

/* Kanvas tanda tangan */
.sign-pad {
  border: 2px dashed var(--line-300); border-radius: var(--r-md);
  background: #fff; touch-action: none; width: 100%; cursor: crosshair;
}

/* ---------- 10. Konten SEO ------------------------------------------ */
.prose { max-width: var(--max-prose); }
.prose--wide { max-width: 58rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.7rem; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-700); }
.prose li { margin-bottom: .55rem; }
.prose ul, .prose ol { margin: 0 0 1.15em; }
.prose img { border-radius: var(--r-md); border: 1px solid var(--line-200); margin: 1.5rem 0; }
.prose figure { margin: 1.75rem 0; }
.prose figcaption { font-size: .85rem; color: var(--ink-500); margin-top: .6rem; text-align: center; }
.prose blockquote {
  margin: 1.6rem 0; padding: .9rem 1.25rem; border-left: 3px solid var(--accent-500);
  background: var(--accent-50); border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--ink-700);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.prose .table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line-200); border-radius: var(--r-md); }
.prose th, .prose td { padding: .7rem .85rem; text-align: left; border-bottom: 1px solid var(--line-200); }
.prose th { background: var(--line-100); font-weight: 650; color: var(--navy-900); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }

.callout {
  display: flex; gap: .85rem; margin: 1.75rem 0; padding: 1.1rem 1.25rem;
  background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: var(--r-md);
}
.callout .icon { width: 20px; height: 20px; color: var(--blue-600); flex: none; margin-top: .2rem; }
.callout p:last-child { margin-bottom: 0; }
.callout--tip { background: var(--accent-50); border-color: #fed7aa; }
.callout--tip .icon { color: var(--accent-600); }

/* Ajakan memakai alat, disisipkan di dalam artikel */
.inline-tool-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  margin: 1.9rem 0; padding: 1.15rem 1.35rem;
  background: linear-gradient(120deg, var(--navy-800), var(--navy-700));
  border-radius: var(--r-lg); color: #cfe0f5;
}
.inline-tool-cta__icon {
  width: 46px; height: 46px; border-radius: var(--r-md); flex: none;
  display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff;
}
.inline-tool-cta__icon .icon { width: 25px; height: 25px; }
.inline-tool-cta__body { flex: 1 1 240px; min-width: 0; }
.inline-tool-cta strong { display: block; color: #fff; font-size: 1.05rem; margin-bottom: .12rem; }
.inline-tool-cta p { margin: 0; font-size: .9rem; }
.inline-tool-cta .btn { flex: none; }

/* ---------- 11. Langkah, manfaat ------------------------------------ */
.steps {
  list-style: none; counter-reset: langkah; padding: 0; margin: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
}
.steps li {
  position: relative; margin: 0; padding: 1.6rem 1.35rem 1.35rem;
  background: var(--surface); border: 1px solid var(--line-200);
  border-radius: var(--r-lg); box-shadow: var(--sh-xs);
}
.steps li::before {
  counter-increment: langkah; content: counter(langkah);
  position: absolute; top: -18px; left: 1.35rem;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-800); color: #fff; font-weight: 700; font-size: .98rem;
  box-shadow: 0 0 0 5px var(--page);
}
.section--alt .steps li::before { box-shadow: 0 0 0 5px var(--surface); }
.steps h3 { margin: 0 0 .35rem; font-size: 1.06rem; }
.steps p { margin: 0; font-size: .93rem; color: var(--ink-600); }

.benefits {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.15rem;
  grid-template-columns: 1fr;
}
.benefits li {
  margin: 0; padding: 1.35rem; background: var(--surface);
  border: 1px solid var(--line-200); border-radius: var(--r-lg);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.benefits li:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.benefits__icon {
  width: 40px; height: 40px; border-radius: var(--r-md); margin-bottom: .8rem;
  display: grid; place-items: center; background: var(--accent-50); color: var(--accent-600);
}
.benefits__icon .icon { width: 20px; height: 20px; }
.benefits h3 { font-size: 1.02rem; margin: 0 0 .3rem; }
.benefits p { margin: 0; font-size: .91rem; color: var(--ink-600); }

/* ---------- 12. FAQ -------------------------------------------------- */
.faq-list {
  display: grid; gap: .75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .faq-list--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
.faq-item {
  background: var(--surface); border: 1px solid var(--line-200);
  border-radius: var(--r-md); overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.faq-item[open] { border-color: var(--blue-100); box-shadow: var(--sh-sm); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.2rem; cursor: pointer; list-style: none;
  font-weight: 650; color: var(--navy-900); font-size: 1rem; line-height: 1.45;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--blue-50); }
.faq-item summary .icon {
  width: 20px; height: 20px; flex: none; color: var(--blue-600);
  transition: transform var(--dur) var(--ease);
}
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-answer { padding: 0 1.2rem 1.2rem; color: var(--ink-700); font-size: .95rem; }
.faq-answer > :last-child { margin-bottom: 0; }

/* ---------- 13. Breadcrumb ------------------------------------------ */
.breadcrumb { padding: .9rem 0 0; }
.breadcrumb ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem;
  list-style: none; margin: 0; padding: 0; font-size: .85rem;
}
.breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: .35rem; color: var(--ink-500); }
.breadcrumb a { color: var(--ink-600); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue-600); text-decoration: underline; }
.breadcrumb .sep { color: var(--ink-400); }
.breadcrumb [aria-current="page"] { color: var(--navy-900); font-weight: 600; }

/* ---------- 14. Alat terkait & tautan internal ---------------------- */
.related-tools { list-style: none; padding: 0; margin: 0;
  display: grid; gap: .75rem; grid-template-columns: 1fr; }
.related-tools li { margin: 0; }
.related-tools a {
  display: flex; align-items: center; gap: .7rem; height: 100%;
  padding: .85rem 1rem; background: var(--surface);
  border: 1px solid var(--line-200); border-radius: var(--r-md);
  text-decoration: none; color: var(--navy-900); font-weight: 600; font-size: .94rem;
  transition: all var(--dur) var(--ease);
}
.related-tools a:hover {
  border-color: var(--blue-500); background: var(--blue-50);
  transform: translateX(2px); color: var(--navy-900);
}
.related-tools .icon { width: 21px; height: 21px; color: var(--blue-600); flex: none; }

.link-chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.link-chips li { margin: 0; }
.link-chips a {
  display: inline-block; padding: .4rem .85rem; font-size: .87rem; font-weight: 550;
  background: var(--surface); border: 1px solid var(--line-300);
  border-radius: var(--r-full); color: var(--ink-700); text-decoration: none;
  transition: all var(--dur) var(--ease);
}
.link-chips a:hover { border-color: var(--blue-500); color: var(--blue-600); background: var(--blue-50); }

/* ---------- 15. Blog ------------------------------------------------- */
.post-grid {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
.post-grid li { margin: 0; }
.post-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--line-200);
  border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  box-shadow: var(--sh-xs);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); color: inherit; }
.post-card__cover {
  aspect-ratio: 16 / 9; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
  color: #fff; position: relative; overflow: hidden;
}
.post-card__cover::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 200px at 82% 12%, rgba(249, 115, 22, .35), transparent 65%);
}
.post-card__cover .icon { width: 52px; height: 52px; opacity: .95; position: relative; z-index: 1; }
.post-card__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; gap: .45rem; }
.post-card__cat {
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--accent-600);
}
.post-card__title { font-size: 1.06rem; font-weight: 650; color: var(--navy-900); margin: 0; line-height: 1.35; }
.post-card__excerpt { font-size: .9rem; color: var(--ink-600); margin: 0; }
.post-card__meta {
  margin-top: auto; padding-top: .7rem; font-size: .8rem; color: var(--ink-500);
  display: flex; gap: .6rem; align-items: center;
}

.article-header { padding-block: clamp(1.75rem, 1.2rem + 2vw, 3rem) 1.5rem; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; align-items: center;
  font-size: .87rem; color: var(--ink-500); margin-top: 1rem;
}
.article-meta .icon { width: 15px; height: 15px; vertical-align: -2px; margin-right: .25rem; }
.article-lead { font-size: 1.1rem; color: var(--ink-600); margin-top: .85rem; max-width: var(--max-prose); }

.toc {
  margin: 0 0 2rem; padding: 1.15rem 1.35rem;
  background: var(--surface); border: 1px solid var(--line-200); border-radius: var(--r-lg);
}
.toc h2 { font-size: .95rem; margin: 0 0 .6rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .93rem; }
.toc li { margin-bottom: .35rem; }
.toc a { color: var(--ink-700); text-decoration: none; }
.toc a:hover { color: var(--blue-600); text-decoration: underline; }

.article-layout { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
/* Anak grid berukuran bawaan min-content; tanpa min-width:0 tabel lebar
   akan mendorong kolom melewati tepi layar pada perangkat sempit. */
.article-layout > * { min-width: 0; }
@media (min-width: 1040px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .article-aside { position: sticky; top: 86px; }
}
.aside-card {
  background: var(--surface); border: 1px solid var(--line-200);
  border-radius: var(--r-lg); padding: 1.2rem 1.3rem; margin-bottom: 1.25rem;
}
.aside-card h2 { font-size: 1rem; margin: 0 0 .8rem; }
.aside-card ul { list-style: none; margin: 0; padding: 0; }
.aside-card li { margin-bottom: .55rem; }
.aside-card li:last-child { margin-bottom: 0; }
/* Dibatasi pada daftar tautan agar tidak menimpa warna teks tombol. */
.aside-card ul a { font-size: .92rem; color: var(--ink-700); text-decoration: none; display: flex; gap: .5rem; align-items: center; }
.aside-card ul a:hover { color: var(--blue-600); }
.aside-card .icon { width: 19px; height: 19px; color: var(--blue-600); flex: none; }

/* ---------- 16. Slot iklan (dicadangkan, tidak memaksa) ------------- */
.ad-slot {
  margin: 2rem auto; max-width: 100%;
  display: flex; align-items: center; justify-content: center;
  min-height: 90px; /* dicadangkan agar tidak menggeser tata letak (CLS) */
}
.ad-slot[hidden] { display: none; }
.ad-slot__label {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-400);
}
.ad-slot--inarticle { min-height: 250px; }

/* ---------- 17. Footer ---------------------------------------------- */
.site-footer {
  background: var(--navy-900); color: #a8bdd6;
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.75rem) 1.5rem; margin-top: 0;
}
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; } }

.footer-brand .logo { color: #fff; }
.logo--footer .logo__text-a { color: #fff; }
/* Di atas navy, jingga terang punya kontras 6,2:1, lebih baik daripada versi gelap */
.logo--footer .logo__text-b { color: var(--accent-500); }
.footer-tagline { font-size: .92rem; margin-top: .9rem; max-width: 30ch; color: #91a9c6; }

.footer-heading {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .09em;
  color: #fff; margin: 0 0 .9rem; font-weight: 700;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a {
  color: #a8bdd6; text-decoration: none; font-size: .93rem;
  transition: color var(--dur) var(--ease);
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-more { color: var(--accent-500) !important; font-weight: 600; }

.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.35rem; border-top: 1px solid rgba(255, 255, 255, .1);
  /* Baris hak cipta berdiri sendiri di tengah, keterangan bahasa
     mengikuti di bawahnya, juga rata tengah. */
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  text-align: center;
  font-size: .85rem; color: #7d95b4;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #a8bdd6; }

/* ---------- 18. Utilitas & keadaan ---------------------------------- */
[hidden] { display: none !important; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.muted { color: var(--ink-500); }

.skeleton {
  background: linear-gradient(90deg, var(--line-100) 25%, var(--line-200) 37%, var(--line-100) 63%);
  background-size: 400% 100%; animation: kpdf-shimmer 1.35s ease-in-out infinite;
  border-radius: var(--r-sm);
}
@keyframes kpdf-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--ink-500); }
.empty-state .icon { width: 46px; height: 46px; color: var(--line-300); margin: 0 auto .8rem; }

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

/* CTA tetap di bawah layar pada perangkat kecil */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-200); box-shadow: 0 -4px 16px rgba(11, 42, 74, .07);
  transform: translateY(110%); transition: transform var(--dur) var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); }
@media (min-width: 760px) { .sticky-cta { display: none; } }

.final-cta {
  background: linear-gradient(130deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--blue-600) 130%);
  color: #cfe0f5; text-align: center;
  padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem);
}
.final-cta h2 { color: #fff; margin-bottom: .6rem; }
.final-cta p { max-width: 40rem; margin-inline: auto; margin-bottom: 1.75rem; font-size: 1.05rem; }

/* ---------- 19. Preferensi gerak & cetak ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .progress-bar.is-indeterminate { animation: none; width: 100%; opacity: .5; }
}

@media print {
  .site-header, .site-footer, .tool-app, .ad-slot, .sticky-cta, .breadcrumb { display: none !important; }
  body { background: #fff; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}

@media (forced-colors: active) {
  .btn, .tool-card, .dropzone { border: 1px solid CanvasText; }
}

/* ---------- 20. Alat di dalam hero -------------------------------- */
.hero-tool {
  background: var(--surface); border: 1px solid var(--line-200);
  border-radius: var(--r-xl); box-shadow: var(--sh-xl);
  padding: clamp(.85rem, .6rem + 1vw, 1.35rem);
}
.hero-tool .tool-app {
  border: 0; box-shadow: none; border-radius: 0; padding: 0; background: transparent;
}
.hero-tool__tabs {
  display: flex; gap: .3rem; margin-bottom: 1rem;
  padding: .3rem; background: var(--line-100);
  border-radius: var(--r-full); overflow-x: auto; scrollbar-width: none;
}
.hero-tool__tabs::-webkit-scrollbar { display: none; }
.hero-tab {
  display: inline-flex; align-items: center; gap: .4rem; flex: 1 0 auto;
  justify-content: center; white-space: nowrap;
  min-height: 42px; padding: .5rem .95rem; border: 0; cursor: pointer;
  border-radius: var(--r-full); background: transparent;
  font-size: .9rem; font-weight: 600; color: var(--ink-600);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.hero-tab .icon { width: 17px; height: 17px; }
.hero-tab:hover { color: var(--navy-900); }
.hero-tab.is-active {
  background: var(--surface); color: var(--navy-900); box-shadow: var(--sh-sm);
}
.hero-tool__link { margin: 1rem 0 0; font-size: .88rem; }
.hero-tool__link a {
  display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 600; text-decoration: none;
}
.hero-tool__link a:hover { text-decoration: underline; }
.hero-tool__link .icon { width: 1em; height: 1em; }
.hero-tool .privacy-note { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line-200); }

/* Pada layar kecil, hero tidak boleh memenuhi seluruh layar:
   antarmuka unggah harus langsung terlihat tanpa menggulir jauh. */
@media (max-width: 939px) {
  .hero { padding-block: 1.5rem 2rem; }
  .hero-copy h1 { font-size: clamp(1.7rem, 1.3rem + 2.4vw, 2.2rem); }
  .hero-lead { margin-bottom: 1.15rem; font-size: 1rem; }
  .hero-badges { margin-top: 1.15rem; font-size: .84rem; gap: .4rem .85rem; }
  .hero .btn-row .btn { flex: 1 1 100%; }
}

/* =====================================================================
   21. Ilustrasi sampul & gerak
   Seluruh animasi memakai transform/opacity saja agar dikomposisi GPU
   dan tidak memicu reflow. Semuanya berhenti saat pengguna meminta
   pengurangan gerak (lihat bagian 19).
   ===================================================================== */

.cover-art { display: block; width: 100%; height: 100%; }

.post-card__cover {
  aspect-ratio: 16 / 9;
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
}
.post-card__cover::after { content: none; }

/* Elemen di dalam ilustrasi bergerak halus saat kartu disentuh */
.cover-art [class^="cv-"] {
  transition: transform .55s var(--ease), opacity .55s var(--ease);
  transform-box: fill-box;
  transform-origin: center;
}

.post-card:hover .cv-drift-l,
.cover-hero:hover .cv-drift-l { transform: translate(-7px, -4px); }
.post-card:hover .cv-drift-r,
.cover-hero:hover .cv-drift-r { transform: translate(7px, -4px); }
.post-card:hover .cv-drift-c { transform: translateY(-6px); }
.post-card:hover .cv-rise    { transform: translateY(-7px); }

.post-card:hover .cv-arrow   { transform: translateX(7px); }
.post-card:hover .cv-pulse   { transform: translateY(5px); }

.post-card:hover .cv-split-a { transform: translate(8px, -7px) ; }
.post-card:hover .cv-split-b { transform: translate(8px, 7px); }
.post-card:hover .cv-scissor { opacity: .45; }

.post-card:hover .cv-plate-top { transform: translateY(7px); }
.post-card:hover .cv-plate-bot { transform: translateY(-7px); }
.post-card:hover .cv-squeeze   { transform: scaleY(.9); }
.post-card:hover .cv-press-top { transform: translateY(6px); }
.post-card:hover .cv-press-bot { transform: translateY(-6px); }
.post-card:hover .cv-badge     { transform: scale(1.06); }

.post-card:hover .cv-fan-a   { transform: translate(-6px, -6px) rotate(-3deg); }
.post-card:hover .cv-fan-b   { transform: translate(6px, 6px) rotate(3deg); }
.post-card:hover .cv-seal    { transform: scale(1.12); }
.post-card:hover .cv-phone   { transform: translateY(-5px); }
.post-card:hover .cv-float-a { transform: translate(-8px, -8px) rotate(-4deg); }
.post-card:hover .cv-float-b { transform: translate(8px, -6px) rotate(4deg); }
.post-card:hover .cv-meter   { transform: translateY(-4px); }
.post-card:hover .cv-meter-fill { transform: scaleX(1.12); transform-origin: left center; }

/* Kursor teks berkedip pada ilustrasi "PDF ke Word" */
.cv-caret { animation: kpdf-caret 1.15s steps(1) infinite; }
@keyframes kpdf-caret { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

/* ---------- Ilustrasi sampul besar di kepala artikel ---------- */
.cover-hero {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  aspect-ratio: 16 / 9;
  max-height: 340px;
}

/* ---------- Logo yang hidup ---------- */
.logo__mark svg { overflow: visible; }
.logo__arrows {
  transform-origin: 20px 24.4px;
  transition: transform .6s cubic-bezier(.34, 1.3, .5, 1);
}
.logo:hover .logo__arrows,
.logo:focus-visible .logo__arrows { transform: rotate(180deg); }

.logo__sheet { transition: transform .45s var(--ease); transform-origin: 20px 20px; }
.logo:hover .logo__sheet { transform: translateY(-.6px) scale(1.03); }

/* ---------- Zona unggah: dokumen mengambang halus ---------- */
.dropzone__icon .icon { animation: kpdf-float 3.4s ease-in-out infinite; }
@keyframes kpdf-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3.5px); }
}
.dropzone:hover .dropzone__icon,
.dropzone.is-dragover .dropzone__icon { transform: translateY(-3px) scale(1.06); }
.dropzone__icon { transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); }
.dropzone.is-dragover .dropzone__icon .icon { animation-duration: 1.1s; }

/* ---------- Tanda centang keberhasilan yang tergambar ---------- */
.result-check { animation: kpdf-pop .42s cubic-bezier(.34, 1.4, .5, 1) both; }
@keyframes kpdf-pop {
  0%   { transform: scale(.4); opacity: 0; }
  60%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.result-check .icon {
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
  animation: kpdf-draw .45s .16s var(--ease) forwards;
}
@keyframes kpdf-draw { to { stroke-dashoffset: 0; } }

/* Lingkaran denyut sekali saat hasil muncul */
.result-check::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--ok-500);
  animation: kpdf-ring .75s .1s var(--ease) forwards;
}
.result-check { position: relative; }
@keyframes kpdf-ring {
  0%   { transform: scale(.7); opacity: .8; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ---------- Hormati preferensi pengurangan gerak ---------- */
@media (prefers-reduced-motion: reduce) {
  .cover-art [class^="cv-"],
  .logo__arrows,
  .logo__sheet,
  .dropzone__icon,
  .dropzone__icon .icon,
  .result-check,
  .result-check .icon,
  .cv-caret { animation: none !important; transition: none !important; transform: none !important; }
  .result-check .icon { stroke-dashoffset: 0; }
  .result-check::after { display: none; }
}

/* =====================================================================
   22. Sorotan kemampuan, fakta alat, dan langkah berilustrasi
   ===================================================================== */

.showcase { display: grid; gap: clamp(2rem, 1.4rem + 3vw, 4rem); }

.showcase-row {
  display: grid; gap: clamp(1.25rem, 1rem + 2vw, 3rem);
  align-items: center;
  grid-template-columns: 1fr;
}
.showcase-row > * { min-width: 0; }

@media (min-width: 860px) {
  .showcase-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  /* Baris genap membalik urutan agar ritmenya tidak monoton */
  .showcase-row:nth-child(even) .showcase-copy { order: 2; }
}

.showcase-copy h3 {
  font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem);
  margin: 0 0 .55rem;
}
.showcase-copy p {
  color: var(--ink-600); margin: 0 0 1.15rem; max-width: 34rem;
}
.showcase-copy .link-chips a {
  display: inline-flex; align-items: center; gap: .4rem;
}
.showcase-copy .link-chips .icon { width: 1.05em; height: 1.05em; color: var(--blue-600); }

.showcase-art {
  background: linear-gradient(150deg, #fff 0%, var(--blue-50) 100%);
  border: 1px solid var(--line-200);
  border-radius: var(--r-xl);
  padding: clamp(1rem, .7rem + 1.5vw, 1.75rem);
  box-shadow: var(--sh-md);
}
.sc-art { width: 100%; height: auto; display: block; }

/* Diagram bergerak halus saat barisnya masuk ke layar */
.sc-arrow-a, .sc-arrow-b, .sc-page-out, .sc-swap,
.sc-bar-before, .sc-bar-after, .st-pick, .st-up {
  transition: transform .7s var(--ease), opacity .7s var(--ease);
}
.reveal-row .sc-arrow-a  { transform: translateX(-14px); opacity: 0; }
.reveal-row .sc-arrow-b  { transform: translateX(14px);  opacity: 0; }
.reveal-row .sc-page-out { transform: translateY(-10px); opacity: 0; }
.reveal-row .sc-bar-before { transform: scaleY(.55); transform-origin: bottom; }
.reveal-row .sc-bar-after  { transform: scaleY(2.6); transform-origin: bottom; opacity: 0; }
.reveal-row .sc-swap     { opacity: 0; }

.reveal-row.is-visible .sc-arrow-a,
.reveal-row.is-visible .sc-arrow-b,
.reveal-row.is-visible .sc-page-out,
.reveal-row.is-visible .sc-swap    { transform: none; opacity: 1; }
.reveal-row.is-visible .sc-bar-before,
.reveal-row.is-visible .sc-bar-after { transform: none; opacity: 1; }

/* ---------- Fakta ringkas di halaman alat ---------- */
.tool-facts {
  list-style: none; margin: 0 0 clamp(1.75rem, 1.2rem + 2vw, 2.75rem); padding: 0;
  display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}
.tool-fact {
  display: flex; align-items: center; gap: .8rem; margin: 0;
  padding: .95rem 1.1rem;
  background: var(--surface); border: 1px solid var(--line-200);
  border-radius: var(--r-lg); box-shadow: var(--sh-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tool-fact:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.tool-fact__icon {
  width: 38px; height: 38px; flex: none; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-600);
}
.tool-fact__icon .icon { width: 19px; height: 19px; }
.tool-fact__body { display: grid; min-width: 0; }
.tool-fact__label {
  font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-500);
}
.tool-fact__value {
  font-size: .97rem; font-weight: 650; color: var(--navy-900);
  overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Langkah dengan ilustrasi ---------- */
.steps--illustrated li { padding-top: 2.1rem; }
.steps__art {
  display: block; margin: 0 0 .9rem;
  background: var(--blue-50); border-radius: var(--r-md);
  padding: .7rem;
}
.steps__art svg { width: 100%; height: auto; max-height: 62px; display: block; }
.steps--illustrated .st-pick,
.steps--illustrated .st-up { transition: transform .5s var(--ease); }
.steps--illustrated li:hover .st-pick,
.steps--illustrated li:hover .st-up { transform: translateY(-4px); }
.st-check { stroke-dasharray: 26; stroke-dashoffset: 26; }
.steps--illustrated li.is-visible .st-check { animation: kpdf-draw .5s .25s var(--ease) forwards; }

/* =====================================================================
   23. Kehalusan gerak menyeluruh
   Semua transisi memakai transform/opacity agar dikomposisi GPU.
   ===================================================================== */

/* Header menyusut halus setelah digulir */
.site-header { transition: box-shadow .3s var(--ease), background-color .3s var(--ease); }
.site-header .header-inner { transition: min-height .3s var(--ease); }
.site-header.is-stuck {
  box-shadow: 0 6px 24px rgba(11, 42, 74, .09);
  background: rgba(255, 255, 255, .94);
}
.site-header.is-stuck .header-inner { min-height: 58px; }
.logo__mark svg { transition: width .3s var(--ease), height .3s var(--ease); }
.site-header.is-stuck .logo__mark svg { width: 30px; height: 30px; }

/* Kartu alat: angkatan lebih lembut, ikon ikut hidup */
.tool-card {
  transition: transform .34s var(--ease), box-shadow .34s var(--ease),
              border-color .34s var(--ease), background-color .34s var(--ease);
}
.tool-card:hover, .tool-card:focus-within { transform: translateY(-4px); }
.tool-card__icon {
  transition: transform .34s var(--ease), background-color .34s var(--ease), color .34s var(--ease);
}
.tool-card:hover .tool-card__icon { transform: scale(1.07) rotate(-3deg); }

/* Kartu artikel: sampul membesar sedikit di balik bingkai */
.post-card { transition: transform .38s var(--ease), box-shadow .38s var(--ease); }
.post-card .cover-art { transition: transform .6s var(--ease); }
.post-card:hover .cover-art { transform: scale(1.045); }

/* Tombol utama: kilau tipis menyapu saat disentuh */
.btn--primary, .btn--accent { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after, .btn--accent::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .7s var(--ease);
}
.btn--primary:hover::after, .btn--accent:hover::after { transform: translateX(110%); }

/* Baris dan blok yang muncul bertahap saat digulir */
.reveal-row { opacity: 0; transform: translateY(18px); }
.reveal-row.is-visible {
  opacity: 1; transform: none;
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

/* Judul bagian ikut naik halus */
.section-head.reveal-row { transform: translateY(14px); }

/* FAQ: buka-tutup mengalir, bukan meloncat */
.faq-item summary { transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.faq-item[open] .faq-answer { animation: kpdf-faq .32s var(--ease); }
@keyframes kpdf-faq {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* Tautan dalam prosa: garis bawah tumbuh dari kiri */
.prose p > a, .showcase-copy p > a {
  text-decoration: none;
  background-image: linear-gradient(var(--blue-600), var(--blue-600));
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .32s var(--ease), color .32s var(--ease);
  padding-bottom: 1px;
}
.prose p > a:hover, .showcase-copy p > a:hover { background-size: 100% 1.5px; }

@media (prefers-reduced-motion: reduce) {
  .reveal-row { opacity: 1; transform: none; }
  .sc-arrow-a, .sc-arrow-b, .sc-page-out, .sc-swap,
  .sc-bar-before, .sc-bar-after, .st-pick, .st-up {
    transform: none !important; opacity: 1 !important; transition: none !important;
  }
  .st-check { stroke-dashoffset: 0; animation: none !important; }
  .btn--primary::after, .btn--accent::after { display: none; }
  .site-header .header-inner, .logo__mark svg { transition: none; }
  .post-card:hover .cover-art { transform: none; }
}

/* ---------- Ringkasan kategori di beranda ---------- */
.cat-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
.cat-grid li { margin: 0; }

.cat-card {
  display: flex; align-items: center; gap: 1rem; height: 100%;
  padding: 1.15rem 1.25rem;
  background: var(--surface); border: 1px solid var(--line-200);
  border-radius: var(--r-lg); box-shadow: var(--sh-xs);
  text-decoration: none; color: inherit;
  transition: transform .34s var(--ease), box-shadow .34s var(--ease),
              border-color .34s var(--ease);
}
.cat-card:hover, .cat-card:focus-visible {
  transform: translateY(-3px); box-shadow: var(--sh-lg);
  border-color: var(--blue-100); color: inherit;
}

.cat-card__icon {
  width: 46px; height: 46px; flex: none; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--navy-800); color: #fff;
  transition: transform .34s var(--ease), background-color .34s var(--ease);
}
.cat-card__icon .icon { width: 22px; height: 22px; }
.cat-card:hover .cat-card__icon { transform: scale(1.06) rotate(-3deg); background: var(--blue-600); }

.cat-card__body { display: grid; gap: .15rem; min-width: 0; flex: 1; }
.cat-card__name {
  font-size: 1.04rem; font-weight: 650; color: var(--navy-900);
  letter-spacing: -.012em;
}
.cat-card__desc { font-size: .88rem; color: var(--ink-600); line-height: 1.5; }

.cat-card__meta {
  display: flex; align-items: center; gap: .45rem; flex: none;
  font-size: .82rem; font-weight: 700; color: var(--blue-600);
  white-space: nowrap;
}
.cat-card__meta .icon {
  width: 1.05em; height: 1.05em;
  transition: transform .34s var(--ease);
}
.cat-card:hover .cat-card__meta .icon { transform: translateX(3px); }

@media (max-width: 460px) {
  .cat-card { flex-wrap: wrap; }
  .cat-card__meta { width: 100%; justify-content: flex-start; padding-left: calc(46px + 1rem); }
}

/* =====================================================================
   24. Ritme kartu yang sama di seluruh situs
   Kolom tetap, bukan auto-fill: jumlah kartu per baris tidak berubah
   mengikuti lebar layar, sehingga tidak ada baris yang terlihat bolong.
   ===================================================================== */

@media (min-width: 620px) {
  .tool-grid, .benefits, .post-grid, .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  /* Tiga kartu per baris, ritme utama situs */
  .tool-grid, .benefits, .post-grid, .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Alat terkait selalu empat tautan, jadi empat kolom = satu baris penuh */
  .related-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Kartu lebih lapang karena kolomnya kini lebih lebar */
@media (min-width: 1000px) {
  .tool-card { padding: 1.45rem 1.45rem 1.55rem; }
  .cat-card  { padding: 1.35rem 1.45rem; }
}

/* ---------- Kata kunci pencarian populer di footer ---------- */
.footer-keywords {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-keywords ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.footer-keywords li { margin: 0; }
.footer-keywords a {
  display: inline-block;
  padding: .38rem .8rem;
  font-size: .84rem;
  color: #e8eefb;
  text-decoration: none;
  /* Warna solid, bukan rgba: latar footer berupa gradien, dan alat audit
     tidak dapat menghitung kontras di atas gradien sehingga menganggap
     latarnya putih. Warna solid membuat rasio terbaca benar (9,2:1). */
  background: #3d3866;
  border: 1px solid #4a4478;
  border-radius: var(--r-full);
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.footer-keywords a:hover,
.footer-keywords a:focus-visible {
  background: #4a4478;
  border-color: #6b62a4;
  color: #fff;
}
