:root {
  color-scheme: light;
  --forest-950: #092c1a;
  --forest-900: #0c3b23;
  --forest-800: #12522e;
  --forest-700: #17683a;
  --forest-600: #198044;
  --leaf: #5fa304;
  --leaf-bright: #9fca18;
  --ink: #17231c;
  --muted: #536158;
  --line: #d8e1da;
  --mist: #f2f6f2;
  --paper: #ffffff;
  --warning: #8a5200;
  --warning-bg: #fff7e5;
  --danger: #8f2525;
  --danger-bg: #fff2f2;
  --info: #195c75;
  --info-bg: #edf8fb;
  --shadow: 0 18px 55px rgba(9, 44, 26, 0.11);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 11px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
a { color: var(--forest-700); }
img { max-width: 100%; }
.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 100;
  background: var(--paper); color: var(--forest-900); padding: .75rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid #e0a400; outline-offset: 3px; }
.top-rule { height: 4px; background: linear-gradient(90deg, var(--leaf-bright), var(--leaf), var(--forest-700)); }
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1rem;
  min-height: 74px; padding: .65rem clamp(1rem, 4vw, 4rem);
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; min-width: 0; text-decoration: none; color: var(--ink); }
.brand img { width: 86px; height: auto; display: block; }
.brand span { font-weight: 750; letter-spacing: -.02em; white-space: nowrap; }
.header-links { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
.header-links a, .lang-toggle {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem .85rem; border: 0; border-radius: 999px; background: transparent;
  color: var(--forest-900); text-decoration: none; font-weight: 700; cursor: pointer;
}
.header-links a:hover, .lang-toggle:hover { background: #e8f0e9; }
.lang-toggle { border: 1px solid var(--line); }
.shell { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.status-banner { margin-top: 1rem; border-radius: var(--radius-sm); padding: .8rem 1rem; font-weight: 650; }
.status-banner[data-state="loading"] { background: var(--info-bg); color: var(--info); }
.status-banner[data-state="closed"] { background: var(--warning-bg); color: var(--warning); }
.status-banner[data-state="open"] { background: #eaf7ec; color: var(--forest-800); }
.hero {
  position: relative; overflow: hidden;
  margin: 1rem auto 0; padding: clamp(2.4rem, 7vw, 5.8rem) clamp(1.25rem, 6vw, 5rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 8%, rgba(159,202,24,.38), transparent 27%),
    linear-gradient(130deg, var(--forest-950), var(--forest-700));
  color: white;
}
.hero::after {
  content: ""; position: absolute; right: -7rem; bottom: -9rem; width: 24rem; height: 24rem;
  border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 3.5rem rgba(255,255,255,.035), 0 0 0 7rem rgba(255,255,255,.025);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.eyebrow { margin: 0 0 1rem; color: #d9f18d; font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { font-family: Sora, Inter, ui-sans-serif, system-ui, sans-serif; line-height: 1.12; letter-spacing: -.035em; }
h1 { max-width: 780px; margin: 0; font-size: clamp(2.35rem, 7vw, 5.25rem); font-weight: 780; }
.hero-copy { max-width: 680px; margin: 1.2rem 0 0; color: #e7f0e9; font-size: clamp(1rem, 2.2vw, 1.24rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.7rem; }
.button {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .75rem 1.15rem; border: 2px solid transparent; border-radius: 999px;
  background: var(--leaf); color: #071a0e; text-decoration: none; font-weight: 800; cursor: pointer;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.button:hover { transform: translateY(-1px); background: var(--leaf-bright); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.button.secondary { color: white; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.52); }
.button.secondary:hover { background: rgba(255,255,255,.16); }
.button.quiet { color: var(--forest-800); background: transparent; border-color: var(--line); box-shadow: none; }
.button[disabled] { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 2rem; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.22); border-radius: 16px; overflow: hidden; }
.trust-item { padding: .85rem 1rem; background: rgba(5,29,16,.55); }
.trust-item strong { display: block; font-size: .88rem; color: white; }
.trust-item span { display: block; margin-top: .1rem; color: #cfe0d3; font-size: .78rem; }
.section { padding-block: clamp(3.2rem, 8vw, 6rem); }
.section-head { max-width: 760px; margin-bottom: 1.8rem; }
.section-head h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 3.2rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.boundary-grid, .choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.boundary-card, .choice-card, .panel, .status-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 8px 30px rgba(9,44,26,.055);
}
.boundary-card { padding: 1.25rem; }
.boundary-card .number { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #eaf3dc; color: var(--forest-800); font-weight: 850; }
.boundary-card h3 { margin: .85rem 0 .4rem; font-size: 1.05rem; letter-spacing: -.015em; }
.boundary-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.boundary-card.block { border-color: #e7c8c8; background: #fffafa; }
.boundary-card.block .number { background: var(--danger-bg); color: var(--danger); }
.path-picker { padding-top: 0; }
.choice-grid { grid-template-columns: repeat(2, 1fr); }
.choice-card { padding: clamp(1.3rem, 4vw, 2rem); }
.choice-card .label { color: var(--leaf); font-weight: 850; font-size: .78rem; text-transform: uppercase; letter-spacing: .11em; }
.choice-card h2 { margin: .55rem 0; font-size: clamp(1.45rem, 3vw, 2rem); }
.choice-card p { color: var(--muted); }
.form-section { scroll-margin-top: 90px; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 1.25rem; align-items: start; }
.panel { padding: clamp(1rem, 4vw, 2rem); min-width: 0; }
.panel h2 { margin-top: 0; font-size: clamp(1.55rem, 3vw, 2.25rem); }
.form-aside { position: sticky; top: 94px; padding: 1.1rem; border-radius: var(--radius-md); background: var(--forest-900); color: white; }
.form-aside h3 { margin: 0 0 .65rem; font-size: 1rem; letter-spacing: -.01em; }
.form-aside p, .form-aside li { color: #dce9df; font-size: .88rem; }
.form-aside ul { padding-left: 1.1rem; }
.stepper { display: flex; gap: .5rem; padding: 0; margin: 0 0 1.5rem; list-style: none; }
.stepper li { flex: 1; min-width: 0; color: var(--muted); font-size: .76rem; font-weight: 750; }
.stepper li::before { content: ""; display: block; height: 5px; margin-bottom: .4rem; border-radius: 99px; background: var(--line); }
.stepper li.active { color: var(--forest-800); }
.stepper li.active::before, .stepper li.done::before { background: var(--leaf); }
.form-step[hidden] { display: none; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 1rem; font-family: Sora, Inter, system-ui, sans-serif; font-size: 1.25rem; font-weight: 800; }
.field { margin-bottom: 1rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
label, .field-label { display: block; margin-bottom: .35rem; font-weight: 720; color: #27362d; }
.required { color: var(--danger); }
.optional { color: var(--muted); font-size: .82rem; font-weight: 500; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: .68rem .78rem;
  border: 1px solid #aebbb1; border-radius: var(--radius-sm); background: white; color: var(--ink);
}
textarea { min-height: 112px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--forest-700); box-shadow: 0 0 0 3px rgba(25,128,68,.13); outline: 0; }
.hint { margin: .35rem 0 0; color: var(--muted); font-size: .82rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: .65rem; align-items: start; margin: .85rem 0; }
.check input { width: 22px; min-height: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--forest-700); }
.check label { margin: 0; font-weight: 600; }
.check small { display: block; color: var(--muted); font-weight: 450; }
.form-actions { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.4rem; }
.error-summary { margin: 0 0 1rem; padding: .85rem 1rem; color: var(--danger); background: var(--danger-bg); border: 1px solid #e7bcbc; border-radius: var(--radius-sm); }
.result { padding: 1.1rem; margin-top: 1.2rem; border-radius: var(--radius-sm); background: #edf7ee; border: 1px solid #b8d4bd; }
.result.blocked { color: var(--danger); background: var(--danger-bg); border-color: #e7bcbc; }
.result code { overflow-wrap: anywhere; }
.key-box { margin-top: .8rem; padding: .8rem; background: white; border: 1px dashed #93aa99; border-radius: 9px; }
.key-box strong, .key-box code { display: block; }
.notices { background: #e7eee8; }
.notice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
details { background: white; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: clip; }
summary { min-height: 48px; display: flex; align-items: center; padding: .85rem 1rem; cursor: pointer; font-weight: 800; }
.notice-body { padding: 0 1rem 1rem; color: var(--muted); }
.notice-body p { margin-top: .4rem; }
.notice-callout { border-left: 4px solid var(--leaf); padding-left: .85rem; color: var(--ink); }
.app-shell { min-height: calc(100vh - 78px); padding-block: 2rem 5rem; }
.app-head { display: flex; gap: 1rem; justify-content: space-between; align-items: end; margin-bottom: 1rem; }
.app-head h1 { color: var(--forest-950); font-size: clamp(2rem, 5vw, 3.4rem); }
.lookup { max-width: 680px; }
.status-card { padding: 1.2rem; margin-top: 1rem; }
.status-pill { display: inline-flex; align-items: center; min-height: 32px; padding: .25rem .7rem; border-radius: 99px; background: #eaf3dc; color: var(--forest-800); font-weight: 800; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: white; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { padding: .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
th { background: #edf3ee; color: var(--forest-900); }
.empty { padding: 1.2rem; text-align: center; color: var(--muted); }
.operator-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .7rem; align-items: end; }
.operator-section { margin-top: 2rem; }
.site-footer { padding: 2rem 0 3rem; color: var(--muted); }
.site-footer .shell { display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; }
html[data-lang="en"] .lang-id { display: none !important; }
html[data-lang="id"] .lang-en { display: none !important; }
html[data-lang="id"] .lang-id { display: initial; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media (max-width: 900px) {
  .boundary-grid { grid-template-columns: repeat(2, 1fr); }
  .form-layout { grid-template-columns: 1fr; }
  .form-aside { position: static; }
}
@media (max-width: 680px) {
  .site-header { min-height: 66px; padding-inline: 1rem; }
  .brand img { width: 72px; }
  .brand span { display: none; }
  .header-links a:first-child { display: none; }
  .header-links a, .lang-toggle { padding-inline: .65rem; }
  .shell { width: min(100% - 1rem, 1180px); }
  .hero { border-radius: 20px; }
  .trust-strip, .choice-grid, .notice-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .app-head { align-items: start; flex-direction: column; }
}
@media (max-width: 430px) {
  .boundary-grid { grid-template-columns: 1fr; }
  .hero-actions, .form-actions { flex-direction: column; }
  .hero-actions .button, .form-actions .button { width: 100%; }
  .stepper li span { display: none; }
  .operator-controls { grid-template-columns: 1fr; }
}
