:root {
  /* token kodekecil.tech (disalin dari styles.css situs utama) */
  --forest-950: #052d22;
  --forest-900: #073b2a;
  --forest-800: #0a4a35;
  --forest-700: #116044;
  --leaf-500: #35cf48;
  --leaf-400: #58e663;
  --lime-300: #c8f64b;
  --mint-200: #b9fbc5;
  --mint-100: #e6ffe6;
  --paper: #f7faf6;
  --white: #ffffff;
  --ink: #092d23;
  --muted: #587067;
  --line: rgba(7, 59, 42, 0.14);
  --shadow: 0 26px 70px rgba(7, 59, 42, 0.12);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 1.25rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

main section[id] { scroll-margin-top: 88px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--forest-800); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre, .eyebrow, .amount, .steps span, .demo-req .label { font-family: var(--mono); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--forest-950); color: var(--mint-100); padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; z-index: 20; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* header */
.top {
  display: flex; align-items: center; gap: 18px;
  padding: 16px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--forest-950); line-height: 1.1; }
.brand:hover { text-decoration: none; }
.mark { display: block; height: 30px; width: auto; align-self: center; }
.brand-text { font-weight: 800; letter-spacing: -0.01em; }
.brand-text b { color: var(--forest-700); }
.nav { display: flex; gap: 20px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--muted); font-weight: 600; }
.nav a:hover { color: var(--forest-950); text-decoration: none; }

/* tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  background: var(--lime-300); color: var(--forest-950);
  font-weight: 800; font-size: 15px;
  border: 1px solid var(--lime-300);
  transition: transform .16s ease, box-shadow .16s ease;
  box-shadow: 0 10px 26px rgba(5, 45, 34, 0.10);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 14px 32px rgba(5, 45, 34, 0.16); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-ghost { background: var(--white); color: var(--forest-900); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--forest-800); }

/* layout */
main { display: block; }
.hero, .section {
  max-width: 1080px; margin: 0 auto;
  padding: clamp(44px, 7vw, 96px) clamp(18px, 4vw, 48px);
}
.hero { padding-bottom: clamp(28px, 4vw, 56px); }

.eyebrow {
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--forest-700); margin: 0 0 18px; font-weight: 700;
}

h1 {
  font-size: clamp(34px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.03em;
  margin: 0 0 22px; font-weight: 800; color: var(--forest-950);
}
h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 20px; font-weight: 800; color: var(--forest-950); }
h3 { font-size: 19px; margin: 0 0 10px; letter-spacing: -0.01em; color: var(--forest-950); }

.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 62ch; margin: 0 0 26px; }
.lead.small, .small { font-size: 15.5px; }
.muted { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 26px; }

.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.facts li { color: var(--muted); font-size: 15px; padding-left: 22px; position: relative; }
.facts li::before { content: "✓"; position: absolute; left: 0; color: var(--forest-700); font-weight: 700; }

.section + .section { border-top: 1px solid var(--line); }

/* kartu */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); margin-top: 8px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column;
  box-shadow: 0 12px 30px rgba(7, 59, 42, 0.05);
}
.card p { color: var(--muted); font-size: 15.5px; margin: 0 0 16px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: auto 0 0; }
.tags li {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em;
  background: var(--mint-100); color: var(--forest-800);
  padding: 4px 9px; border-radius: 999px;
}

/* harga */
.price .amount { font-size: 22px; color: var(--forest-950); margin: 0 0 6px; letter-spacing: -0.01em; font-weight: 700; }
.price .tier { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; }
.price .featured { background: var(--mint-100); border-color: rgba(17, 96, 68, 0.28); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { font-size: 14.5px; color: var(--muted); padding-left: 20px; position: relative; }
.ticks li::before { content: "→"; position: absolute; left: 0; color: var(--forest-700); }

/* langkah */
.steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps span { color: var(--forest-700); font-size: 13px; letter-spacing: .1em; padding-top: 4px; font-weight: 700; }
.steps h3 { margin: 0 0 4px; font-size: 17px; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* panel gelap (demo) — sama seperti section gelap kodekecil.tech */
.demo-panel, .chat {
  margin-top: 26px; background: var(--forest-950); border: 1px solid var(--forest-800);
  border-radius: var(--radius); padding: 18px; color: var(--mint-100);
  box-shadow: var(--shadow);
}
.demo-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.demo-buttons button {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  background: rgba(230, 255, 230, 0.08); color: var(--mint-100);
  border: 1px solid rgba(185, 251, 197, 0.28); border-radius: 999px; padding: 8px 15px;
  transition: border-color .15s ease, background .15s ease;
}
.demo-buttons button:hover { border-color: var(--lime-300); color: var(--lime-300); }
.demo-buttons button[aria-pressed="true"] { background: var(--lime-300); border-color: var(--lime-300); color: var(--forest-950); }

.demo-req { font-size: 13px; color: rgba(230, 255, 230, 0.7); margin: 0 0 10px; word-break: break-all; }
.demo-req .label { color: var(--lime-300); margin-right: 6px; }
.demo-req code { color: var(--mint-100); }

.demo-out {
  margin: 0; padding: 16px; border-radius: 12px; background: #04241c;
  border: 1px solid var(--forest-800); color: #cdeed8;
  font-family: var(--mono); font-size: 12.8px; line-height: 1.6;
  max-height: 340px; overflow: auto; white-space: pre-wrap; word-break: break-word;
}

/* demo chat */
.chatsec .chat-intro { max-width: 58ch; }

.chat-card {
  max-width: 720px;
  margin-top: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(7, 59, 42, 0.10), 0 2px 6px rgba(7, 59, 42, 0.04);
  overflow: hidden;
}

.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--mint-100), var(--white));
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--white); border: 1px solid var(--line);
  display: grid; place-items: center; flex: 0 0 auto;
}
.chat-avatar img { display: block; height: 26px; width: auto; }
.chat-id { display: flex; flex-direction: column; line-height: 1.25; }
.chat-id strong { font-size: 15.5px; color: var(--forest-950); }
.chat-status { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.chat-status i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--leaf-500); box-shadow: 0 0 0 3px rgba(53, 207, 72, 0.18);
}
.chat-reset {
  margin-left: auto; font: inherit; font-size: 13px; font-weight: 700;
  color: var(--forest-800); background: transparent; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; cursor: pointer;
}
.chat-reset:hover { border-color: var(--forest-800); }

.chat-log {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px; 
  background: #fbfdf9;
  min-height: 168px; max-height: 288px; overflow-y: auto;
  scroll-behavior: smooth;
}
.chat-log::-webkit-scrollbar { width: 8px; }
.chat-log::-webkit-scrollbar-thumb { background: rgba(7, 59, 42, 0.16); border-radius: 8px; }

.msg { max-width: 84%; }
.msg p { margin: 0; font-size: 15.4px; line-height: 1.62; }
.msg.bot {
  align-self: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px 16px 16px 6px;
  padding: 12px 15px; color: var(--ink);
  box-shadow: 0 1px 2px rgba(7, 59, 42, 0.04);
}
.msg.me {
  align-self: flex-end; margin-left: auto;
  background: var(--forest-900); color: var(--mint-100);
  border-radius: 16px 16px 6px 16px;
  padding: 12px 15px;
}
.msg.err {
  align-self: flex-start; background: transparent;
  border: 1px dashed rgba(17, 96, 68, 0.35); color: var(--forest-700);
  border-radius: 14px; padding: 10px 14px; font-size: 14.5px;
}

.msg.typing { display: flex; gap: 5px; padding: 15px; }
.msg.typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--forest-700);
  opacity: .45; animation: blink 1.1s infinite ease-in-out;
}
.msg.typing span:nth-child(2) { animation-delay: .16s; }
.msg.typing span:nth-child(3) { animation-delay: .32s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 10px; background: #fbfdf9; }
.chat-chips button {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--forest-800); background: var(--white);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px;
  transition: background .15s ease, border-color .15s ease;
}
.chat-chips button:hover { background: var(--mint-100); border-color: rgba(17, 96, 68, 0.3); }

.chat-form {
  display: flex; align-items: center; gap: 8px;
  margin: 0 18px 14px; padding: 6px 6px 6px 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.chat-form:focus-within { border-color: rgba(17, 96, 68, 0.42); box-shadow: 0 0 0 4px rgba(53, 207, 72, 0.10); }
.chat-form input {
  flex: 1; min-width: 0; font: inherit; font-size: 15.5px; color: var(--ink);
  background: transparent; border: 0; padding: 10px 0;
}
.chat-form input::placeholder { color: rgba(88, 112, 103, 0.72); }
.chat-form input:focus { outline: none; }
.chat-form button {
  flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center;
  cursor: pointer; border-radius: 50%;
  background: var(--lime-300); color: var(--forest-950);
  border: 1px solid var(--lime-300);
  box-shadow: 0 4px 12px rgba(200, 246, 75, 0.5);
  transition: transform .15s ease, filter .15s ease;
}
.chat-form button:hover { transform: translateY(-1px); filter: brightness(0.97); }
.chat-form button:disabled { opacity: .45; cursor: progress; transform: none; filter: none; }

.chat-foot {
  display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between;
  margin: 0; padding: 10px 20px 12px;
  border-top: 1px solid var(--line); background: var(--white);
  font-size: 11.5px; letter-spacing: .01em; color: rgba(88, 112, 103, 0.9);
  font-family: var(--mono);
}

/* penutup + footer */
.closing .lead { margin-bottom: 24px; }
.foot {
  background: var(--forest-950); color: rgba(230, 255, 230, 0.72);
  padding: 26px clamp(18px, 4vw, 48px); font-size: 14px;
}
.foot p { margin: 0; max-width: 1080px; margin-inline: auto; }
.foot a { color: var(--lime-300); }

@media (max-width: 720px) {
  .nav { display: none; }
  .top .btn { margin-left: auto; }
  .steps li { grid-template-columns: 40px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* --- Showroom produk (ditambahkan 20 Nov 2026) --- */
.show-grid { margin-top: 20px; }
.show-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.show-card:hover { transform: translateY(-3px); box-shadow: 0 22px 48px rgba(7, 59, 42, .16); border-color: rgba(53, 207, 72, .45); }
.show-card h3 { margin: 6px 0 0; }
.show-card p { margin: 0; }
.show-card .tags { margin-top: auto; }
.show-open { font-size: 13.5px; font-weight: 650; color: var(--forest-700); }
.show-state {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;
  background: rgba(7, 59, 42, .07);
  color: var(--muted);
}
.show-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .7; }
.show-state[data-state="online"] { background: rgba(53, 207, 72, .14); color: #0f6b2a; }
.show-state[data-state="online"]::before { background: var(--leaf-500); opacity: 1; }
.show-state[data-state="offline"] { background: rgba(190, 44, 44, .12); color: #a02525; }
.show-state[data-state="offline"]::before { background: #d33; opacity: 1; }
.show-state[data-state="unknown"] { background: rgba(7, 59, 42, .07); color: var(--muted); }
.show-note { margin-top: 18px; font-size: 14.5px; }

/* --- Tambahan komponen aplikasi. Memakai token styles.css situs utama. --- */

.mono { font-family: var(--mono); font-size: 13px; }
a.btn { text-decoration: none; }
a.btn:hover { text-decoration: none; }

.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 12px 30px rgba(7, 59, 42, .05);
}
.panel + .panel { margin-top: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

button {
  font-family: var(--sans); font-size: 15px; font-weight: 800;
  padding: 12px 20px; border-radius: 999px;
  background: var(--lime-300); color: var(--forest-950);
  border: 1px solid var(--lime-300); cursor: pointer;
  box-shadow: 0 10px 26px rgba(5, 45, 34, .10);
  transition: transform .16s ease, box-shadow .16s ease;
}
button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(5, 45, 34, .16); }
button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
button.secondary {
  background: var(--white); color: var(--forest-900); border-color: var(--line);
  box-shadow: none; font-weight: 700;
}
button.secondary:hover:not(:disabled) { border-color: var(--forest-800); }

label { font-size: 14px; font-weight: 700; color: var(--forest-900); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 180px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
input, select, textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--white); color: var(--ink);
  font: inherit; font-size: 15px;
}
textarea { min-height: 104px; resize: vertical; border-radius: 18px; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: rgba(17, 96, 68, .42);
  box-shadow: 0 0 0 4px rgba(53, 207, 72, .10);
}
input[type="checkbox"] { width: auto; accent-color: var(--forest-700); box-shadow: none; }
input[type="file"] { font-size: 14px; padding: 10px; }

.metrics { display: flex; flex-wrap: wrap; gap: 24px 42px; }
.metric span {
  display: block; font-family: var(--mono); font-size: 12.5px;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.metric strong {
  display: block; font: 800 28px/1.2 var(--mono); letter-spacing: -.02em;
  color: var(--forest-950); margin-top: 4px;
}
.bar { height: 6px; background: var(--mint-100); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; width: 0; background: var(--forest-700); }
.bar i.warn { background: #b45309; }
.bar i.w-10 { width: 10%; } .bar i.w-20 { width: 20%; } .bar i.w-30 { width: 30%; }
.bar i.w-40 { width: 40%; } .bar i.w-50 { width: 50%; } .bar i.w-60 { width: 60%; }
.bar i.w-70 { width: 70%; } .bar i.w-80 { width: 80%; } .bar i.w-90 { width: 90%; }
.bar i.w-100 { width: 100%; }

.scroll { overflow-x: auto; margin-top: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  color: var(--muted); font-family: var(--mono); font-size: 12.5px;
  letter-spacing: .04em; text-transform: uppercase; font-weight: 700;
}
td.num, th.num { text-align: right; font-family: var(--mono); font-size: 14px; }

.tag {
  display: inline-flex; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .04em; background: var(--mint-100); color: var(--forest-800);
  padding: 4px 9px; border-radius: 999px;
}
.tag.ok { background: rgba(53, 207, 72, .14); color: #0f6b2a; }
.tag.bad { background: rgba(190, 44, 44, .12); color: #a02525; }
.ok { color: #0f6b2a; } .bad { color: #a02525; } .warntext { color: #9a5b08; }
.flag {
  border: 1px solid rgba(154, 91, 8, .28); background: #fffbeb; color: #8a5309;
  padding: 10px 14px; border-radius: 14px; font-size: 14px; margin-top: 10px;
}
.error {
  border: 1px solid rgba(190, 44, 44, .28); background: #fff5f5; color: #a02525;
  padding: 12px 14px; border-radius: 14px; font-size: 14px;
}
.empty {
  border: 1px dashed var(--line); border-radius: 18px;
  padding: 24px; color: var(--muted); font-size: 15px;
}
.list { list-style: none; margin: 0; padding: 0; }
.list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
pre {
  white-space: pre-wrap; word-break: break-word; margin: 0;
  background: #04241c; border: 1px solid var(--forest-800);
  padding: 16px; border-radius: 14px;
  color: #cdeed8; font-family: var(--mono); font-size: 13px; line-height: 1.6;
}
.note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chips button { font-size: 13.5px; font-weight: 700; padding: 8px 14px; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 16px; }
.checkline { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.case-option { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.case-check { width: auto; margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  button { transition: none; }
}
