:root {
  font-family: "Instrument Sans", "Segoe UI", Arial, sans-serif;
  color: #0b0c0d;
  background: #ececeb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #0b0c0d;
  --paper: #ffffff;
  --canvas: #ececeb;
  --muted: #686a6e;
  --line: #d9d9d5;
  --soft-line: #ededeb;
  --blue: #286fc8;
  --red: #f11d3f;
  --green: #16805a;
  --danger: #aa2b24;
  --ease: cubic-bezier(.22,.82,.29,1);
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas); }
button, input, label { font: inherit; }
a { color: inherit; }
button, label.button, summary, .drop-zone { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.site-shell {
  width: min(1640px, calc(100% - 20px));
  min-height: calc(100vh - 20px);
  margin: 10px auto;
  background: var(--paper);
  border: 1px solid #d2d2cf;
}
.topbar {
  width: min(1440px, calc(100% - 64px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--soft-line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 650;
  letter-spacing: -.025em;
}
.brand-mark {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
}
.local-note { display: inline-flex; align-items: center; gap: 9px; color: #5f6266; font-size: .78rem; }
.local-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.main-shell { width: min(1440px, calc(100% - 64px)); margin: 0 auto; padding-bottom: 38px; }
.hero {
  min-height: 620px;
  padding: 64px 0 66px;
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(390px,.92fr);
  gap: clamp(42px,7vw,110px);
  align-items: center;
}
.hero-copy { max-width: 790px; animation: riseIn .72s var(--ease) both; }
.eyebrow {
  margin: 0 0 24px;
  color: #707277;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: .72rem;
  letter-spacing: .045em;
}
.hero h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(3.35rem,4.55vw,5.35rem);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.06em;
}
.hero h1 span { display: block; }
.hero h1 span + span { margin-top: .04em; }
.hero-lead {
  max-width: 610px;
  margin: 38px 0 0;
  color: #303236;
  font-size: clamp(1rem,1.25vw,1.17rem);
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: -.018em;
}
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.button {
  min-height: 48px;
  padding: 0 21px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  cursor: pointer;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 650;
  letter-spacing: -.016em;
  transition: transform .26s var(--ease), background-color .26s ease, color .26s ease, border-color .26s ease, opacity .26s ease;
}
.button:not(:disabled):hover { transform: translateY(-2px); }
.button:not(:disabled):active { transform: translateY(0); }
.button:disabled { opacity: .35; cursor: default; }
.button:focus-visible, summary:focus-visible, .drop-zone:focus-visible { outline: 3px solid rgba(40,111,200,.26); outline-offset: 4px; }
.button-dark { color: #fff; background: var(--ink); }
.button-dark:not(:disabled):hover { background: #282a2d; }
.button-arrow span { font-size: 1.05rem; transition: transform .26s var(--ease); }
.button-arrow:hover span { transform: translateX(4px); }
.button-link {
  min-height: auto;
  padding: 8px 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  border-bottom: 1px solid var(--ink);
}
.button-link:hover { background: transparent; }
.button-outline { color: var(--ink); background: #fff; border: 1px solid var(--ink); }
.button-cancel { color: #fff; background: var(--danger); }
.accent-dot { width: 10px; height: 10px; margin-left: 4px; border-radius: 50%; background: var(--red); }
.download-rule { margin: 20px 0 0; max-width: 520px; color: var(--muted); font-size: .78rem; line-height: 1.55; }

.drop-zone {
  position: relative;
  min-height: 540px;
  outline: none;
  cursor: pointer;
  isolation: isolate;
  animation: fadeIn .85s .10s var(--ease) both;
}
.ascii-stage { position: absolute; inset: 4% 0 12% 0; display: grid; place-items: center; }
.ascii-sheet {
  position: absolute;
  margin: 0;
  padding: 0;
  background: transparent;
  font-family: "IBM Plex Mono", Consolas, "Courier New", monospace;
  font-size: clamp(.86rem,1.28vw,1.18rem);
  line-height: 1.36;
  letter-spacing: 0;
  white-space: pre;
  user-select: none;
  transform-origin: 50% 82%;
  transition: transform .62s var(--ease), color .42s ease, opacity .42s ease;
}
.ascii-sheet-back { color: #bbbdbd; transform: translate(72px,-58px) rotate(2deg); }
.ascii-sheet-mid { color: #74a9d5; transform: translate(33px,-22px) rotate(-1.5deg); }
.ascii-sheet-front { color: var(--ink); transform: translate(-24px,42px); }
.ascii-clean {
  position: absolute;
  right: 6%;
  bottom: 7%;
  color: #8b8d90;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: .66rem;
  letter-spacing: .035em;
}
.drop-hint {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 1%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--ink);
  transition: transform .3s var(--ease);
}
.drop-hint strong, .drop-hint span { display: block; }
.drop-hint strong { font-size: .8rem; font-weight: 650; }
.drop-hint div > span { margin-top: 2px; color: var(--muted); font-size: .68rem; }
.drop-arrow { font-size: 1.1rem; }
.drop-zone:hover .ascii-sheet-back { transform: translate(82px,-68px) rotate(3deg); }
.drop-zone:hover .ascii-sheet-mid { transform: translate(40px,-29px) rotate(-2deg); }
.drop-zone:hover .ascii-sheet-front { transform: translate(-31px,34px) rotate(-.7deg); }
.drop-zone:hover .drop-hint { transform: translateY(-4px); }
.drop-zone.has-files .ascii-sheet-mid { color: var(--blue); }
.drop-zone.has-files .ascii-sheet-front { transform: translate(-26px,36px); }
.drop-zone.is-processing .ascii-sheet-front { animation: paperWork 1.8s ease-in-out infinite alternate; }
.drop-zone.is-processing .ascii-clean::after { content: "  ···"; animation: dots 1.1s steps(4,end) infinite; }
.drop-zone.is-done .ascii-sheet-mid { color: #9fbcae; }
.drop-zone.is-done .ascii-clean::after { content: "  ✓"; color: var(--green); }
.drop-zone.dragging::before {
  content: "Lepaskan PDF di sini";
  position: absolute;
  inset: 10% 0 8%;
  z-index: 20;
  display: grid;
  place-items: center;
  border: 1px dashed var(--blue);
  background: rgba(255,255,255,.94);
  color: var(--blue);
  font-size: .9rem;
  font-weight: 650;
  backdrop-filter: blur(8px);
}

.work-area {
  margin: 8px 0 74px;
  padding: 34px 0 12px;
  border-top: 1px solid var(--ink);
  background: #fff;
  animation: revealPanel .5s var(--ease) both;
}
.work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-kicker {
  margin: 0 0 7px;
  color: var(--muted);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: .68rem;
  letter-spacing: .045em;
}
.work-head h2 { margin: 0; font-size: clamp(1.55rem,2.5vw,2.45rem); font-weight: 520; letter-spacing: -.05em; }
.controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.status-card { padding: 20px 0 23px; border-top: 1px solid var(--soft-line); }
.status-line { display: flex; justify-content: space-between; gap: 20px; color: #36383c; font-size: .84rem; }
.progress-value { color: var(--muted); font-family: "IBM Plex Mono", Consolas, monospace; font-size: .72rem; font-variant-numeric: tabular-nums; }
progress { appearance: none; -webkit-appearance: none; width: 100%; height: 3px; margin-top: 13px; border: 0; overflow: hidden; background: #ececea; }
progress::-webkit-progress-bar { background: #ececea; }
progress::-webkit-progress-value { background: var(--ink); transition: width .34s var(--ease); }
progress::-moz-progress-bar { background: var(--ink); }
.wake-status { display: none !important; }

.table-wrap { max-height: 430px; overflow: auto; border-top: 1px solid var(--soft-line); }
table { width: 100%; border-collapse: collapse; font-size: .84rem; }
th, td { padding: 14px 9px; border-bottom: 1px solid #eeeeeb; text-align: left; vertical-align: top; }
th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(255,255,255,.97);
  color: var(--muted);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 500;
}
tbody tr { animation: rowIn .36s var(--ease) both; }
th:first-child, td:first-child { width: 50px; color: #9b9da0; }
th:nth-child(3), td:nth-child(3) { width: 110px; white-space: nowrap; }
th:nth-child(4), td:nth-child(4) { width: 180px; }
th:nth-child(5), td:nth-child(5) { display: none; }
td:nth-child(2) { max-width: 520px; overflow-wrap: anywhere; }
.status-ok { color: var(--green); font-weight: 650; }
.status-working { color: var(--blue); font-weight: 650; }
.status-error { color: var(--danger); font-weight: 650; }
.status-warning { color: #8a6500; font-weight: 650; }

.principles {
  display: grid;
  grid-template-columns: 62px minmax(0,1fr) 32px;
  gap: clamp(20px,4vw,54px);
  align-items: start;
  padding: 58px 0 54px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--soft-line);
}
.principle-number { color: var(--muted); font-family: "IBM Plex Mono", Consolas, monospace; font-size: .7rem; }
.principle-copy { max-width: 850px; }
.principle-copy h2 { margin: 0; font-size: clamp(2.2rem,4.6vw,5.1rem); font-weight: 480; line-height: .97; letter-spacing: -.063em; }
.principle-copy p { margin: 23px 0 0; max-width: 780px; color: var(--muted); font-size: .94rem; line-height: 1.68; }
.principle-mark { color: var(--red); font-size: .9rem; }

.disclosure-stack { width: min(940px,100%); margin: 34px auto 0; }
.info-disclosure { border-bottom: 1px solid var(--soft-line); color: var(--muted); font-size: .82rem; }
.info-disclosure summary { cursor: pointer; padding: 17px 1px; list-style: none; color: var(--ink); font-weight: 610; }
.info-disclosure summary::-webkit-details-marker { display: none; }
.info-disclosure summary::after { content: "+"; float: right; font-family: "IBM Plex Mono", Consolas, monospace; font-size: 1.05rem; font-weight: 400; transition: transform .28s var(--ease); }
.info-disclosure[open] summary::after { transform: rotate(45deg); }
.info-content { padding: 0 0 21px; line-height: 1.68; animation: fadeIn .3s ease both; }
.info-content p { margin: 0; }
.info-content p + p { margin-top: 10px; }
.license-copy a { text-underline-offset: 3px; text-decoration-color: #b8b9b5; }

.footer { min-height: 88px; margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 11px; color: #888b8e; font-size: .71rem; }
.footer-dot { width: 3px; height: 3px; border-radius: 50%; background: #b6b7b7; }
.build-stamp { margin: -18px 0 4px; text-align: center; color: #aaacad; font-family: "IBM Plex Mono", Consolas, monospace; font-size: .59rem; letter-spacing: .03em; }

@keyframes riseIn { from { opacity: 0; transform: translateY(17px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes revealPanel { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes paperWork { from { transform: translate(-26px,36px) rotate(-.3deg); } to { transform: translate(-26px,29px) rotate(.25deg); } }
@keyframes dots { 0% { opacity: .25; } 50% { opacity: 1; } 100% { opacity: .25; } }

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr 390px; gap: 28px; }
  .hero h1 { font-size: clamp(3.3rem,6.8vw,4.9rem); }
  .ascii-sheet { font-size: clamp(.78rem,1.45vw,1rem); }
}
@media (max-width: 820px) {
  .site-shell { width: 100%; min-height: 100vh; margin: 0; border: 0; }
  .topbar, .main-shell { width: min(100% - 40px,1440px); }
  .topbar { min-height: 76px; }
  .local-note { font-size: .7rem; }
  .hero { min-height: 0; padding: 48px 0 58px; grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .hero h1 { font-size: clamp(4.2rem,14vw,7rem); }
  .hero-lead { margin-top: 29px; }
  .drop-zone { min-height: 430px; max-width: 560px; width: 100%; margin: 0 auto; }
  .work-head { align-items: flex-start; flex-direction: column; }
  .controls { width: 100%; }
  .controls .button { flex: 1 1 auto; }
  .principles { grid-template-columns: 42px 1fr 18px; gap: 16px; }
}
@media (max-width: 560px) {
  .topbar, .main-shell { width: min(100% - 28px,1440px); }
  .topbar { min-height: 68px; }
  .local-note span:not(.local-dot) { display: none; }
  .hero { padding-top: 34px; }
  .eyebrow { margin-bottom: 18px; }
  .hero h1 { font-size: clamp(2.8rem,13vw,4.15rem); line-height: .94; }
  .hero-lead { font-size: .95rem; }
  .hero-actions { gap: 14px; }
  .accent-dot { margin-left: 0; }
  .drop-zone { min-height: 360px; }
  .ascii-sheet { font-size: clamp(.64rem,3.05vw,.82rem); }
  .ascii-sheet-back { transform: translate(40px,-42px) rotate(2deg); }
  .ascii-sheet-mid { transform: translate(17px,-12px) rotate(-1deg); }
  .ascii-sheet-front { transform: translate(-14px,34px); }
  .drop-zone:hover .ascii-sheet-back { transform: translate(44px,-46px) rotate(2deg); }
  .drop-zone:hover .ascii-sheet-mid { transform: translate(20px,-15px) rotate(-1deg); }
  .drop-zone:hover .ascii-sheet-front { transform: translate(-16px,29px); }
  .ascii-clean { right: 0; bottom: 4%; font-size: .57rem; }
  .drop-hint { left: 0; right: auto; bottom: -3px; }
  .drop-hint div > span { display: none; }
  .controls { display: grid; grid-template-columns: 1fr 1fr; }
  .controls #processButton { grid-column: 1 / -1; }
  th:first-child, td:first-child, th:nth-child(3), td:nth-child(3) { display: none; }
  th:nth-child(4), td:nth-child(4) { width: 115px; }
  .principles { grid-template-columns: 1fr; }
  .principle-number { margin-bottom: -4px; }
  .principle-mark { display: none; }
  .footer { flex-wrap: wrap; padding-inline: 20px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* r6.1.3 — user-requested copy and compact lower section */
.upload-help {
  margin: 19px 0 0;
  max-width: 610px;
  color: var(--muted);
  font-size: .83rem;
  line-height: 1.62;
}

.privacy-note {
  margin-top: 23px;
  padding-top: 16px;
  max-width: 610px;
  border-top: 1px solid var(--soft-line);
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--muted);
  font-size: .79rem;
  line-height: 1.5;
}
.privacy-note strong {
  color: var(--ink);
  font-weight: 620;
}

.compact-info {
  margin: 18px 0 0;
  padding: 25px 0 22px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--soft-line);
  display: grid;
  grid-template-columns: minmax(0,1.55fr) minmax(260px,.75fr);
  gap: clamp(34px,7vw,110px);
}
.compact-info h2,
.compact-info h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -.03em;
}
.compact-info h2 { font-size: .98rem; font-weight: 650; }
.compact-info h3 { font-size: .82rem; font-weight: 650; }
.compact-info p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .79rem;
  line-height: 1.62;
}

.compact-license {
  width: 100%;
  border-bottom: 1px solid var(--soft-line);
  color: var(--muted);
  font-size: .74rem;
}
.compact-license summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 0;
  color: var(--ink);
  font-weight: 610;
}
.compact-license summary::-webkit-details-marker { display: none; }
.compact-license summary::after {
  content: "+";
  float: right;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: .95rem;
  font-weight: 400;
  transition: transform .28s var(--ease);
}
.compact-license[open] summary::after { transform: rotate(45deg); }

@media (max-width: 820px) {
  .compact-info {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
