/* Ayisware Project - situs Dashvior. Gaya sederhana: kertas hangat, tinta gelap, satu warna aksen. */
:root {
  --bg: #f6f5f1;
  --paper: #ffffff;
  --ink: #1d1d1b;
  --sub: #5f5d58;
  --mute: #8a877f;
  --line: #e3e0d8;
  --soft: #eeece6;
  --accent: #23524f;      /* hijau petrol tua */
  --accent-soft: #e4ecea;
  --warn: #8a5a00;
  --warn-soft: #f6eedc;
  --radius: 10px;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 700; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--sub); }
.small { font-size: 14px; }
.eyebrow { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 10px; }

/* ---------- pengumuman & kepala ---------- */
.notice { background: var(--ink); color: #f1efe9; font-size: 14px; text-align: center; padding: 9px 16px; }
.notice a { color: #fff; }
header.site { background: rgba(246, 245, 241, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
header.site .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font-size: 17px; letter-spacing: .02em; }
.brand span { font-size: 11px; color: var(--mute); letter-spacing: .14em; text-transform: uppercase; }
nav.main { display: flex; gap: 4px; margin-left: auto; }
nav.main a { color: var(--sub); text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
nav.main a:hover { color: var(--ink); background: var(--soft); }
nav.main a.on { color: var(--ink); font-weight: 600; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px; font: inherit; color: var(--ink); cursor: pointer; }
@media (max-width: 880px) {
  .menu-btn { display: block; }
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 12px 14px; }
  nav.main.open { display: flex; }
}

/* ---------- tombol ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: #000; }
.btn.line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn.line:hover { background: var(--ink); color: #fff; }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- bagian ---------- */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
section.paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { max-width: 680px; margin-bottom: 36px; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .g2, .g3 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
section.paper .card { background: var(--bg); }

/* ---------- beranda ---------- */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 18px; color: var(--sub); max-width: 34em; }
.hero figure { margin: 0; }
.hero figure img { border-radius: 14px; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .45); }
.hero figcaption { font-size: 13px; color: var(--mute); margin-top: 10px; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; gap: 28px; } }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; font-size: 14px; color: var(--sub); }
.facts span::before { content: "— "; color: var(--mute); }
.steps { counter-reset: s; }
.steps .card { position: relative; padding-top: 52px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: 18px; left: 22px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--ink); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.feature img { border-radius: 8px; border: 1px solid var(--line); background: #000; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 14px; }
.feature p { color: var(--sub); font-size: 15px; margin: 0; }

/* ---------- produk ---------- */
.prod-card img { border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 16px; }
.price { font-size: 22px; font-weight: 700; margin: 6px 0 2px; }
.price s { font-size: 15px; color: var(--mute); font-weight: 500; margin-left: 8px; }
.status { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); }
.status.habis { background: var(--soft); color: var(--mute); }
.status.po { background: var(--warn-soft); color: var(--warn); }
.product { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; padding: 56px 0; border-top: 1px solid var(--line); }
.product:first-of-type { border-top: 0; }
@media (max-width: 880px) { .product { grid-template-columns: 1fr; gap: 24px; } }
.product .gallery img { border-radius: 10px; margin-bottom: 12px; }
.product .gallery .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.product .gallery .thumbs img { border-radius: 6px; aspect-ratio: 4 / 3; object-fit: cover; background: #000; border: 1px solid var(--line); margin: 0; }
ul.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
ul.ticks li { padding: 6px 0 6px 26px; position: relative; border-bottom: 1px solid var(--soft); }
ul.ticks li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
dl.spec { display: grid; grid-template-columns: 150px 1fr; gap: 6px 16px; font-size: 15px; margin: 0; }
dl.spec dt { color: var(--sub); }
dl.spec dd { margin: 0; }
table.compare { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
table.compare th, table.compare td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.compare thead th { background: var(--soft); font-size: 14px; }
table.compare td.y { color: var(--accent); font-weight: 600; }
table.compare td.n { color: var(--mute); }
.scroll-x { overflow-x: auto; }

/* ---------- panduan ---------- */
.doc { display: grid; grid-template-columns: 230px 1fr; gap: 48px; align-items: start; }
.doc aside { position: sticky; top: 88px; font-size: 14px; }
.doc aside a { display: block; color: var(--sub); text-decoration: none; padding: 5px 0 5px 12px; border-left: 2px solid var(--line); }
.doc aside a:hover { color: var(--ink); border-left-color: var(--ink); }
@media (max-width: 880px) { .doc { grid-template-columns: 1fr; } .doc aside { position: static; } }
.doc article h2 { margin-top: 1.6em; padding-top: 12px; scroll-margin-top: 80px; }
.doc article h2:first-child { margin-top: 0; }
.doc article h3 { margin-top: 1.4em; scroll-margin-top: 80px; }
ol.how { padding-left: 0; list-style: none; counter-reset: h; margin: 0 0 1.2em; }
ol.how > li { counter-increment: h; position: relative; padding: 4px 0 14px 44px; }
ol.how > li::before { content: counter(h); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.tip, .warn { border-radius: 8px; padding: 14px 16px; margin: 0 0 1.2em; font-size: 15px; }
.tip { background: var(--accent-soft); border-left: 3px solid var(--accent); }
.warn { background: var(--warn-soft); border-left: 3px solid var(--warn); }
.ui { font-weight: 600; background: var(--soft); border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; font-size: .94em; white-space: nowrap; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; }
details summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; position: relative; padding-right: 44px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 18px; top: 11px; font-size: 20px; color: var(--sub); }
details[open] summary::after { content: "–"; }
details > div { padding: 0 18px 16px; color: var(--sub); }
details > div p:last-child { margin: 0; }

/* ---------- kontak / kaki ---------- */
.contact-list { display: grid; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); }
.contact-item .k { width: 110px; color: var(--sub); font-size: 14px; }
.contact-item .v { font-weight: 600; }
.contact-item.empty .v { color: var(--mute); font-weight: 500; }
a.contact-item:hover { border-color: var(--ink); }
.release { padding: 18px 0; border-bottom: 1px solid var(--line); }
.release .ver { font-weight: 700; }
.release .date { color: var(--mute); font-size: 14px; margin-left: 10px; }
footer.site { border-top: 1px solid var(--line); padding: 44px 0 30px; font-size: 14px; color: var(--sub); background: var(--paper); }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 880px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }
footer.site h4 { color: var(--ink); font-size: 14px; }
footer.site a { color: var(--sub); text-decoration: none; display: block; padding: 2px 0; }
footer.site a:hover { color: var(--ink); }
footer.site .base { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 13px; color: var(--mute); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hide { display: none !important; }
/* Isi grid tidak boleh melebar mengikuti ukuran asli gambar (layar HP terpotong). */
.grid > *, .product > *, .hero .wrap > *, .doc > *, .cols > * { min-width: 0; }
body { overflow-x: hidden; }

.dl-card { display: grid; gap: 18px; grid-template-columns: 1fr auto; align-items: center; }
@media (max-width: 640px) { .dl-card { grid-template-columns: 1fr; } .dl-card .btn { justify-content: center; } }
