/* ═══════════════════════════════════════════════════════════════
   PDFMint — sistem reka bentuk
   Palet, tipografi dan komponen. Semua warna dalam satu tempat.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Jenama */
  --brand-500: #4f46e5;
  --brand-600: #4338ca;
  --brand-700: #3730a3;
  --brand-050: #eef2ff;
  --mint-400: #34d399;
  --mint-500: #10b981;
  --mint-050: #ecfdf5;

  /* Neutrals */
  --n-950: #0b1020;
  --n-900: #131a2e;
  --n-800: #232a3d;
  --n-700: #384056;
  --n-600: #4b5468;
  --n-500: #6b7386;
  --n-400: #9aa1b1;
  --n-300: #c8cdd8;
  --n-200: #e3e6ee;
  --n-150: #eceef4;
  --n-100: #f4f5f9;
  --n-050: #fafbff;
  --white: #ffffff;

  /* Keadaan */
  --ok: #0f9d58;
  --ok-bg: #e9f8ef;
  --warn: #c77400;
  --warn-bg: #fff5e5;
  --err: #d93025;
  --err-bg: #fdecea;

  /* Bentuk */
  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --sh-2: 0 4px 14px rgba(16, 24, 40, .07);
  --sh-3: 0 12px 32px rgba(16, 24, 40, .12);
  --sh-brand: 0 10px 24px rgba(79, 70, 229, .28);

  --nav-h: 68px;
  --maxw: 1240px;
  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--n-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, svg, canvas { max-width: 100%; }

a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; font-weight: 700; letter-spacing: -.018em; }
h1 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
h3 { font-size: 1.06rem; }
p { margin: 0 0 1em; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand-500); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 3px solid rgba(79, 70, 229, .45);
  outline-offset: 2px;
  border-radius: 4px;
}

.hidden { display: none !important; }
.hidden-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ic { flex: none; }
.muted { color: var(--n-500); }
.center { text-align: center; }

/* ───────────────────────── Navigasi ───────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--n-200);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; height: var(--nav-h);
  padding: 0 20px; display: flex; align-items: center; gap: 26px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark { display: inline-flex; filter: drop-shadow(0 4px 10px rgba(79,70,229,.28)); }
.brand__text { font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; color: var(--n-950); }
.brand__text em { font-style: normal; color: var(--brand-500); }

.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.nav__links > a, .nav__droptoggle {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 12px; border-radius: var(--r-sm);
  font-size: .93rem; font-weight: 600; color: var(--n-700);
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav__links > a:hover, .nav__droptoggle:hover { background: var(--n-100); color: var(--n-950); text-decoration: none; }
.nav__drop { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: var(--white); border: 1px solid var(--n-200); border-radius: var(--r-md);
  box-shadow: var(--sh-3); padding: 8px; display: none; z-index: 70;
  max-height: 68vh; overflow: auto;
}
.nav__menu--wide { min-width: 560px; columns: 2; }
.nav__drop.is-open .nav__menu { display: block; }
.nav__menu a {
  display: block; padding: 8px 10px; border-radius: var(--r-xs);
  color: var(--n-800); font-size: .9rem; font-weight: 500; break-inside: avoid;
}
.nav__menu a:hover { background: var(--brand-050); color: var(--brand-700); text-decoration: none; }
.nav__menu h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--n-400); margin: 10px 10px 4px; }

.nav__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn__pip {
  font-size: .62rem; font-weight: 800; letter-spacing: .06em;
  background: rgba(255,255,255,.24); padding: 2px 6px; border-radius: var(--r-pill);
}
.nav__burger { display: none; background: none; border: 0; padding: 8px; color: var(--n-800); cursor: pointer; }
.nav__mobile {
  border-top: 1px solid var(--n-200); background: var(--white);
  padding: 14px 20px 22px; max-height: 74vh; overflow: auto;
}
.nav__mobile section + section { margin-top: 16px; }
.nav__mobile h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--n-400); }
.nav__mobile a { display: block; padding: 9px 2px; color: var(--n-800); font-weight: 600; border-bottom: 1px solid var(--n-100); }

/* ───────────────────────── Butang ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--r-sm); border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: .94rem; cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand-500); color: #fff; box-shadow: var(--sh-brand); }
.btn--primary:hover { background: var(--brand-600); }
.btn--ghost { background: var(--white); color: var(--n-800); border-color: var(--n-200); box-shadow: var(--sh-1); }
.btn--ghost:hover { border-color: var(--n-300); background: var(--n-050); }
.btn--mint { background: var(--mint-500); color: #fff; }
.btn--mint:hover { background: #0d9d6f; }
.btn--danger { color: var(--err); }
.btn--danger:hover { background: var(--err-bg); border-color: #f6c9c5; }
.btn--sm { padding: 8px 13px; font-size: .86rem; }
.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--r-xs); border: 1px solid transparent;
  background: none; color: var(--n-600); cursor: pointer;
}
.icon-btn:hover { background: var(--n-100); color: var(--n-900); }
.icon-btn--sm { width: 28px; height: 28px; }
.icon-btn--danger:hover { background: var(--err-bg); color: var(--err); }

/* ───────────────────────── Susun atur ───────────────────────── */
main { display: block; min-height: 60vh; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 860px; }
.section { padding: 34px 0; }

/* ───────────────────────── Hero ───────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 82% -12%, rgba(52, 211, 153, .20), transparent 62%),
    radial-gradient(760px 380px at 12% 4%, rgba(99, 102, 241, .18), transparent 60%),
    linear-gradient(180deg, var(--n-050), var(--white));
  border-bottom: 1px solid var(--n-150);
  padding: 46px 0 30px;
}
.hero__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; text-align: center; }
.hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); letter-spacing: -.03em; }
.hero h1 span { background: linear-gradient(92deg, var(--brand-600), var(--mint-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lede { max-width: 660px; margin: 12px auto 20px; color: var(--n-600); font-size: 1.06rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; margin-top: 26px; }
.hero__stat { text-align: center; }
.hero__stat b { display: block; font-size: 1.3rem; color: var(--n-950); }
.hero__stat span { font-size: .82rem; color: var(--n-500); }

/* ───────────────────────── Kategori ───────────────────────── */
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { height: 6px; }
.chips::-webkit-scrollbar-thumb { background: var(--n-200); border-radius: 99px; }
.chip {
  flex: none; padding: 9px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--n-200); background: var(--white); color: var(--n-700);
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.chip:hover { border-color: var(--n-300); color: var(--n-950); }
.chip.is-active { background: var(--n-950); border-color: var(--n-950); color: #fff; }

/* ───────────────────────── Grid kad tool ───────────────────────── */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
}
.tool-card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 20px; background: var(--white);
  border: 1px solid var(--n-200); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); color: inherit; text-decoration: none;
  transition: transform .12s ease, box-shadow .16s ease, border-color .16s ease;
}
.tool-card:hover {
  transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--n-300); text-decoration: none;
}
.tool-card__ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 8px;
}
.tool-card__title { font-size: 1.06rem; margin: 0; color: var(--n-950); }
.tool-card__desc { margin: 0; font-size: .89rem; color: var(--n-500); line-height: 1.45; }
.tool-card__badge {
  position: absolute; top: 14px; right: 14px; font-size: .68rem; font-weight: 700;
  background: var(--n-100); color: var(--n-600); padding: 3px 8px; border-radius: var(--r-pill);
  text-transform: uppercase; letter-spacing: .04em;
}

/* Warna ikon */
.tool-card__ic--indigo, .tool-head__ic--indigo { background: #eef2ff; color: #4f46e5; }
.tool-card__ic--violet, .tool-head__ic--violet { background: #f5f3ff; color: #7c3aed; }
.tool-card__ic--blue, .tool-head__ic--blue { background: #eff6ff; color: #2563eb; }
.tool-card__ic--sky, .tool-head__ic--sky { background: #f0f9ff; color: #0284c7; }
.tool-card__ic--emerald, .tool-head__ic--emerald { background: #ecfdf5; color: #059669; }
.tool-card__ic--green, .tool-head__ic--green { background: #f0fdf4; color: #16a34a; }
.tool-card__ic--teal, .tool-head__ic--teal { background: #f0fdfa; color: #0d9488; }
.tool-card__ic--cyan, .tool-head__ic--cyan { background: #ecfeff; color: #0891b2; }
.tool-card__ic--amber, .tool-head__ic--amber { background: #fffbeb; color: #d97706; }
.tool-card__ic--yellow, .tool-head__ic--yellow { background: #fefce8; color: #ca8a04; }
.tool-card__ic--orange, .tool-head__ic--orange { background: #fff7ed; color: #ea580c; }
.tool-card__ic--rose, .tool-head__ic--rose { background: #fff1f2; color: #e11d48; }
.tool-card__ic--pink, .tool-head__ic--pink { background: #fdf2f8; color: #db2777; }
.tool-card__ic--purple, .tool-head__ic--purple { background: #faf5ff; color: #9333ea; }
.tool-card__ic--slate, .tool-head__ic--slate { background: #f8fafc; color: #475569; }

/* ───────────────────────── Kad am ───────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--n-200);
  border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-1); margin: 16px 0;
}
.card__title { font-size: 1.02rem; margin: 0 0 12px; }
.card__note { font-size: .86rem; color: var(--n-500); margin: -.4em 0 1em; }

/* ───────────────────────── Kepala tool ───────────────────────── */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .84rem; color: var(--n-500); padding: 18px 0 2px; }
.crumbs a { color: var(--n-500); }
.crumbs__sep { color: var(--n-300); }

.tool-head { display: flex; gap: 16px; align-items: flex-start; padding: 8px 0 18px; }
.tool-head__ic { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; flex: none; }
.tool-head__title { margin: 0 0 4px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.tool-head__desc { margin: 0; color: var(--n-600); max-width: 70ch; }

/* ───────────────────────── Zon muat naik ───────────────────────── */
.card--upload { padding: 18px; }
.dz {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 42px 20px; text-align: center; cursor: pointer;
  border: 2px dashed var(--n-300); border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--n-050), var(--white));
  transition: border-color .15s ease, background .15s ease, padding .15s ease;
}
.dz:hover { border-color: var(--brand-500); background: var(--brand-050); }
.dz.is-over { border-color: var(--brand-500); background: var(--brand-050); }
.dz--compact { padding: 18px 16px; flex-direction: row; justify-content: center; gap: 10px; }
.dz--compact .dz__hint { display: none; }
.dz__ic { color: var(--brand-500); display: inline-flex; }
.dz input[type="file"], .dz .dz__input {
  position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden;
}
.dz { position: relative; }
.dz__label { font-weight: 700; font-size: 1.06rem; color: var(--n-950); }
.dz__hint { font-size: .84rem; color: var(--n-500); max-width: 56ch; }

.upload-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

.flist { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fitem {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px;
  border: 1px solid var(--n-200); border-radius: var(--r-sm); background: var(--white);
  cursor: grab;
}
.fitem.is-dragging { opacity: .45; }
.fitem__thumb {
  width: 40px; height: 40px; flex: none; border-radius: var(--r-xs); overflow: hidden;
  background: var(--n-100); display: flex; align-items: center; justify-content: center; color: var(--n-500);
}
.fitem__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fitem__meta { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.fitem__name { font-size: .92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fitem__size { font-size: .78rem; color: var(--n-500); }
.fitem__tools { display: flex; gap: 2px; }
.flist.is-drag { outline: 2px dashed var(--brand-500); outline-offset: 6px; border-radius: var(--r-sm); }

.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0 0; padding: 0; }
.trust__item { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; color: var(--n-500); }
.trust__ic { color: var(--mint-500); display: inline-flex; }

/* ───────────────────────── Tetapan ───────────────────────── */
.options-grid {
  display: grid; gap: 14px 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.field { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; }
.field__label { font-weight: 650; color: var(--n-800); }
.field__hint { font-size: .78rem; color: var(--n-500); }
.input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--n-300); border-radius: var(--r-xs);
  font: inherit; font-size: .92rem; color: var(--n-900); background: var(--white);
}
.input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(79,70,229,.14); outline: none; }
.input--area { resize: vertical; min-height: 76px; font-family: var(--mono); font-size: .85rem; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7386' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 32px; }

.range-wrap { display: flex; align-items: center; gap: 12px; }
.range { flex: 1; accent-color: var(--brand-500); }
.range__out { font-variant-numeric: tabular-nums; font-size: .85rem; color: var(--n-600); min-width: 48px; text-align: right; }

.switch { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; cursor: pointer; }
.switch__input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  width: 42px; height: 24px; border-radius: 99px; background: var(--n-300);
  display: inline-flex; align-items: center; padding: 3px; transition: background .16s ease;
}
.switch__thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform .16s ease; }
.switch__input:checked + .switch__track { background: var(--brand-500); }
.switch__input:checked + .switch__track .switch__thumb { transform: translateX(18px); }
.switch__input:focus-visible + .switch__track { outline: 3px solid rgba(79,70,229,.4); outline-offset: 2px; }

.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--n-100); border-radius: var(--r-sm); }
.segmented__btn {
  padding: 8px 13px; border: 0; background: none; border-radius: var(--r-xs);
  font: inherit; font-size: .86rem; font-weight: 600; color: var(--n-600); cursor: pointer;
}
.segmented__btn:hover { color: var(--n-900); }
.segmented__btn.is-active { background: var(--white); color: var(--brand-700); box-shadow: var(--sh-1); }

.color-wrap { display: inline-flex; }
.color { width: 46px; height: 38px; padding: 2px; border: 1px solid var(--n-300); border-radius: var(--r-xs); background: var(--white); cursor: pointer; }

.action-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--n-150); }
.action-bar__note { font-size: .8rem; color: var(--n-500); }

/* ───────────────────────── Hasil ───────────────────────── */
.result { text-align: center; padding: 8px 4px; }
.result__ic {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 50%; background: var(--ok-bg); color: var(--ok); margin-bottom: 10px;
}
.result--error .result__ic { background: var(--err-bg); color: var(--err); }
.result__title { margin: 0 0 6px; }
.result__msg { color: var(--n-600); margin: 0 auto 14px; max-width: 60ch; }
.result__hint { color: var(--n-500); font-size: .88rem; }
.result__stats { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.stat { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 12px; background: var(--n-100); border-radius: var(--r-pill); font-size: .85rem; color: var(--n-600); }
.stat b { color: var(--n-950); font-size: .95rem; }
.stat--good { background: var(--ok-bg); color: var(--ok); }
.stat--good b { color: var(--ok); }
.result__actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.result__files { list-style: none; margin: 8px 0 0; padding: 0; width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow: auto; }
.result__files li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid var(--n-200); border-radius: var(--r-xs); font-size: .88rem; }
.result__fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result__time { font-size: .8rem; color: var(--n-400); margin: 14px 0 0; }
.result__busy { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px; }
.result__status { font-size: .86rem; color: var(--n-500); margin: 0; }
.result__media { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-top: 16px; }
.result__media figure { margin: 0; border: 1px solid var(--n-200); border-radius: var(--r-sm); overflow: hidden; }
.result__media img { display: block; width: 100%; }

.spinner { display: inline-flex; align-items: center; gap: 10px; color: var(--n-600); font-size: .92rem; }
.spinner__ring {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid var(--brand-050); border-top-color: var(--brand-500);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.progress { width: min(420px, 100%); }
.progress__track { height: 8px; background: var(--n-150); border-radius: 99px; overflow: hidden; }
.progress__fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-500), var(--mint-500)); transition: width .2s ease; }
.progress__label { font-size: .78rem; color: var(--n-500); }

/* ───────────────────────── Amaran ───────────────────────── */
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  border-radius: var(--r-md); font-size: .9rem; margin-bottom: 16px; line-height: 1.5;
}
.notice--warn { background: var(--warn-bg); color: #7a4700; border: 1px solid #f6dfb8; }
.notice--info { background: var(--brand-050); color: var(--brand-700); border: 1px solid #dcd9fb; }
.notice__ic { flex: none; margin-top: 2px; }

/* ───────────────────────── Iklan ───────────────────────── */
.ad-slot {
  margin: 18px 0; min-height: 90px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md); background: var(--n-050); border: 1px dashed var(--n-200);
}
.ad-slot__ph { text-align: center; padding: 16px; }
.ad-slot__tag { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--n-400); font-weight: 700; }
.ad-slot__hint { font-size: .78rem; color: var(--n-400); }
.aff-card {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 18px 0;
  background: linear-gradient(92deg, var(--mint-050), var(--brand-050));
  border: 1px solid #d7f0e4; border-radius: var(--r-md); color: var(--n-800); font-weight: 600;
}
.aff-card:hover { text-decoration: none; }
.aff-card__tag { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--mint-500); font-weight: 800; }

/* ───────────────────────── FAQ ───────────────────────── */
.faq { display: flex; flex-direction: column; gap: 6px; }
.faq__item { border: 1px solid var(--n-200); border-radius: var(--r-sm); padding: 2px 14px; background: var(--white); }
.faq__item[open] { border-color: var(--n-300); }
.faq__q { cursor: pointer; font-weight: 650; font-size: .94rem; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; color: var(--n-400); font-weight: 400; font-size: 1.2rem; line-height: 1; }
.faq__item[open] .faq__q::after { content: "−"; }
.faq__a { margin: 0 0 14px; font-size: .9rem; color: var(--n-600); }

/* ───────────────────────── Modal ───────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(11,16,32,.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fade .18s ease;
}
.modal-overlay.is-out { opacity: 0; transition: opacity .18s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh-3);
  width: min(560px, 100%); max-height: 88vh; display: flex; flex-direction: column;
  animation: pop .2s ease;
}
.modal--wide { width: min(1080px, 100%); }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--n-150); }
.modal__title { font-size: 1.05rem; margin: 0; }
.modal__body { padding: 18px; overflow: auto; }
.modal__foot { padding: 14px 18px; border-top: 1px solid var(--n-150); display: flex; justify-content: flex-end; gap: 10px; }

/* ───────────────────────── Toast ───────────────────────── */
.toast-host {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: var(--r-pill);
  background: var(--n-950); color: #fff; font-size: .88rem; box-shadow: var(--sh-3);
  animation: toastIn .22s ease; max-width: min(520px, 92vw);
}
.toast--success { background: #0d7a4f; }
.toast--error { background: #a9271d; }
.toast.is-out { opacity: 0; transform: translateY(8px); transition: all .3s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ───────────────────────── Editor ───────────────────────── */
.editor { display: grid; grid-template-columns: 240px 1fr; gap: 0; border: 1px solid var(--n-200); border-radius: var(--r-lg); overflow: hidden; background: var(--n-100); }
.editor__tools { background: var(--white); border-right: 1px solid var(--n-200); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.editor__stage { position: relative; overflow: auto; padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 18px; max-height: 78vh; min-width: 0; }
.editor__page { position: relative; background: #fff; box-shadow: var(--sh-2); max-width: 100%; }
.editor__page canvas { display: block; max-width: 100%; height: auto; }
.editor__layer { position: absolute; inset: 0; cursor: crosshair; }
.editor__obj { position: absolute; border: 1.5px solid transparent; cursor: move; }
.editor__obj.is-sel { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(79,70,229,.16); }
.editor__obj .handle {
  position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; border-radius: 3px;
  background: var(--brand-500); border: 2px solid #fff; cursor: nwse-resize;
}
.editor__bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; background: var(--white); border-bottom: 1px solid var(--n-200); }
.editor__hint { font-size: .8rem; color: var(--n-500); margin-left: auto; }

/* ───────────────────────── Halaman statik ───────────────────────── */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--n-200); padding: 9px 11px; text-align: left; }
.prose th { background: var(--n-050); }
.prose code { background: var(--n-100); padding: 2px 6px; border-radius: 6px; font-family: var(--mono); font-size: .86em; }
.prose pre { background: var(--n-950); color: #e6e9f2; padding: 16px; border-radius: var(--r-md); overflow: auto; font-size: .84rem; }

/* Harga */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.plan { border: 1px solid var(--n-200); border-radius: var(--r-lg); padding: 24px; background: var(--white); display: flex; flex-direction: column; box-shadow: var(--sh-1); }
.plan--feature { border-color: var(--brand-500); box-shadow: var(--sh-brand); position: relative; }
.plan__tag { position: absolute; top: -12px; left: 24px; background: var(--brand-500); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .08em; padding: 4px 10px; border-radius: var(--r-pill); text-transform: uppercase; }
.plan__price { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 2px; }
.plan__price small { font-size: .85rem; font-weight: 600; color: var(--n-500); }
.plan__list { list-style: none; padding: 0; margin: 14px 0 20px; display: flex; flex-direction: column; gap: 8px; font-size: .92rem; }
.plan__list li { display: flex; gap: 9px; align-items: flex-start; }
.plan__list svg { color: var(--mint-500); flex: none; margin-top: 2px; }
.plan .btn { margin-top: auto; }

/* ───────────────────────── Footer ───────────────────────── */
.foot { border-top: 1px solid var(--n-200); background: var(--n-050); margin-top: 48px; }
.foot__inner { max-width: var(--maxw); margin: 0 auto; padding: 40px 20px 26px; display: grid; gap: 30px; grid-template-columns: 1.1fr 2fr; }
.foot__tag { color: var(--n-500); font-size: .88rem; max-width: 40ch; margin-top: 10px; }
.foot__cols { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.foot__col { display: flex; flex-direction: column; gap: 7px; }
.foot__col h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; color: var(--n-400); margin-bottom: 4px; }
.foot__col a { color: var(--n-600); font-size: .89rem; }
.foot__col a:hover { color: var(--brand-600); }
.foot__bar {
  border-top: 1px solid var(--n-200); max-width: var(--maxw); margin: 0 auto;
  padding: 16px 20px 26px; display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: space-between; font-size: .82rem; color: var(--n-500);
}
.brand--footer .brand__text { font-size: 1.1rem; }
.noscript { padding: 40px 20px; text-align: center; background: var(--warn-bg); }

/* ───────────────────────── Alat tambahan ───────────────────────── */
.thumb-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.thumb { position: relative; border: 1px solid var(--n-200); border-radius: var(--r-sm); background: var(--white); overflow: hidden; padding: 6px; }
.thumb.is-sel { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(79,70,229,.16); }
.thumb canvas, .thumb img { display: block; width: 100%; border-radius: 6px; background: #f7f8fc; }
.thumb__n { position: absolute; top: 10px; left: 10px; background: rgba(11,16,32,.72); color: #fff; font-size: .7rem; padding: 1px 7px; border-radius: var(--r-pill); }
.thumb__x { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.92); border: 1px solid var(--n-200); color: var(--err); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.thumb__rot { position: absolute; bottom: 10px; right: 10px; display: flex; gap: 4px; }
.thumb__rot button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--n-200); background: rgba(255,255,255,.95); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--n-700); }

.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare-pane { border: 1px solid var(--n-200); border-radius: var(--r-md); background: var(--white); padding: 10px; overflow: auto; max-height: 70vh; }
.compare-pane canvas { display: block; width: 100%; }
.diff-add { outline: 3px solid rgba(16,185,129,.6); outline-offset: -3px; }
.diff-del { outline: 3px solid rgba(217,48,37,.55); outline-offset: -3px; }

.chart-bars { display: flex; flex-direction: column; gap: 8px; }
.chart-bar { display: grid; grid-template-columns: 130px 1fr 60px; gap: 10px; align-items: center; font-size: .86rem; }
.chart-bar__track { height: 22px; background: var(--n-100); border-radius: 6px; overflow: hidden; }
.chart-bar__fill { height: 100%; background: linear-gradient(90deg, var(--brand-500), var(--mint-500)); }

/* ───────────────────────── Panduan (artikel) ───────────────────────── */
.guide { max-width: 74ch; }
.guide h1 { margin-bottom: 6px; }
.guide h2 { margin-top: 2em; font-size: 1.35rem; }
.guide-meta { font-size: .84rem; color: var(--n-400); margin-bottom: 1.2em; }
.guide-intro { font-size: 1.08rem; color: var(--n-700); line-height: 1.62; }
.guide-steps { list-style: none; padding-left: 0; counter-reset: gstep; display: flex; flex-direction: column; gap: 10px; margin: 1.2em 0; }
.guide-steps li {
  counter-increment: gstep; position: relative; padding: 12px 16px 12px 46px;
  background: var(--n-050); border: 1px solid var(--n-150); border-radius: var(--r-sm); font-size: .93rem;
}
.guide-steps li::before {
  content: counter(gstep); position: absolute; left: 14px; top: 12px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--brand-500); color: #fff;
  font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.guide-tool {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding: 18px; margin: 26px 0; background: linear-gradient(92deg, var(--brand-050), var(--mint-050));
  border: 1px solid #dcd9fb; border-radius: var(--r-md);
}
.guide-tool > div { flex: 1 1 240px; }
.guide-tool strong { display: block; margin-bottom: 4px; }
.guide-tool p { margin: 0; font-size: .88rem; color: var(--n-600); }
.guide-tool .tool-card__ic { margin-bottom: 0; }

@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .foot__inner { grid-template-columns: 1fr; }
  .editor { grid-template-columns: 1fr; }
  .editor__tools { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--n-200); }
}
@media (max-width: 680px) {
  :root { --nav-h: 60px; }
  .nav__inner { padding: 0 14px; gap: 12px; }
  .wrap, .hero__inner { padding-left: 14px; padding-right: 14px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
  .tool-card { padding: 15px; border-radius: var(--r-md); }
  .tool-card__ic { width: 40px; height: 40px; border-radius: 11px; }
  .tool-card__title { font-size: .97rem; }
  .tool-card__desc { font-size: .82rem; }
  .tool-head { flex-direction: column; gap: 10px; }
  .compare-grid { grid-template-columns: 1fr; }
  .modal__body { padding: 14px; }
  .action-bar { flex-direction: column; align-items: stretch; }
  .action-bar .btn { width: 100%; }
  .hero { padding: 30px 0 22px; }
  .chart-bar { grid-template-columns: 90px 1fr 52px; }
}
@media print {
  .nav, .foot, .ad-slot, .action-bar, .dz, .chips { display: none !important; }
}

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