:root {
  --ink: #141414;
  --ink-2: #1f1d1a;
  --gold: #c9a24b;
  --gold-ink: #8a6a22;
  --cream: #faf7f0;
  --paper: #ffffff;
  --line: #e6dfcf;
  --muted: #6b6457;
  --wa: #25d366;
  --wa-ink: #0b2e17;
  --r-s: 6px;
  --r-m: 14px;
  --head: "Sora", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1rem/1.6 var(--body);
  color: var(--ink);
  background: var(--cream);
  padding-bottom: 84px; /* ruang untuk bar WhatsApp di telefon */
}
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 6.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Butang */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px;
  font: 600 1rem var(--body); text-decoration: none; border: 0; cursor: pointer;
  border-radius: 999px; transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(.98); }
.btn--wa { background: var(--wa); color: var(--wa-ink); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn--block { width: 100%; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--cream); border-bottom: 1px solid #2a2722; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  font: 700 1.1rem var(--head); color: var(--ink); background: var(--gold); border-radius: 8px;
}
.brand b { display: block; font-family: var(--head); font-size: .98rem; line-height: 1.1; }
.brand small { display: block; font-size: .72rem; color: #b9b2a3; }
.nav { display: none; }
.topbar .btn--sm { display: none; }

/* Hero */
.hero { background: var(--ink); color: var(--cream); padding: 32px 0 48px; }
.hero__in { display: grid; gap: 32px; }
.hero__kicker { color: var(--gold); font-weight: 600; font-size: .95rem; margin-bottom: .75em; }
.hero__sub { color: #d8d1c2; font-size: 1.05rem; max-width: 34em; }

.quick { display: grid; gap: 12px; margin-top: 24px; background: var(--ink-2); border: 1px solid #2f2b25; border-radius: var(--r-m); padding: 16px; }
.quick label, .calc__form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.quick input, .calc__form input, .calc__form select {
  font: 400 1rem var(--body); min-height: 48px; padding: 0 14px; width: 100%;
  border-radius: var(--r-s); border: 1px solid #3a352d; background: #0f0e0d; color: var(--cream);
}
.quick input::placeholder { color: #7d766a; }
.quick input[aria-invalid="true"] { border-color: #e07a5f; }
.quick__note { font-size: .8rem; color: #a59d8d; margin: 0; }
.quick__note.is-error { color: #f2a48f; }

/* Tag gred lelongan: unsur utama */
.tag {
  position: relative; background: var(--cream); color: var(--ink);
  border-radius: var(--r-m); padding: 20px 20px 18px;
  box-shadow: 0 0 0 1px var(--gold) inset;
  max-width: 380px; margin: 0 auto;
}
.tag::before { /* lubang tali tag */
  content: ""; position: absolute; top: 18px; right: 18px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--gold);
}
.tag__top { display: flex; gap: 12px; font-size: .8rem; color: var(--muted); }
.tag__top span + span { padding: 1px 8px; border: 1px dashed var(--muted); border-radius: 4px; }
.tag__grade {
  font: 700 clamp(5rem, 22vw, 7.5rem)/1 var(--head); color: var(--gold-ink);
  letter-spacing: -0.04em; margin: 8px 0 12px;
}
.tag__grade span { font-size: .55em; margin-left: 4px; color: var(--ink); }
.tag__rows { margin: 0; border-top: 1px solid var(--line); }
.tag__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.tag__rows dt { color: var(--muted); }
.tag__rows dd { margin: 0; font-weight: 600; text-align: right; }
.tag__foot { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }

/* Bahagian */
.sec { padding: 56px 0; scroll-margin-top: 60px; }
.sec--ink { background: var(--ink); color: var(--cream); }
.sec--soft { background: #f2ede1; }
.sec__head { max-width: 40em; margin-bottom: 24px; }
.sec__head p { color: var(--muted); }
.sec--ink .sec__head p { color: #b9b2a3; }
.note { font-size: .9rem; }

/* Chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px;
  font: 600 .9rem var(--body); cursor: pointer;
  background: transparent; color: var(--ink); border: 1px solid var(--line);
}
.chip.is-on { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Kad stok */
.stok { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.car {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px;
}
.car__type { grid-column: 1 / -1; font-size: .78rem; color: var(--muted); }
.car h3 { margin: 0; font-size: 1.02rem; }
.car__grade { grid-row: 2 / 4; grid-column: 2; text-align: right; font: 700 2.2rem/1 var(--head); color: var(--gold-ink); }
.car__grade small { display: block; font: 400 .7rem var(--body); color: var(--muted); margin-top: 4px; }
.car__meta { font-size: .88rem; color: var(--muted); margin: 0; }
.car__price { grid-column: 1 / -1; font: 700 1.35rem var(--head); margin: 10px 0 12px; }
.car .btn { grid-column: 1 / -1; min-height: 44px; }
.stok__more { margin-top: 20px; color: var(--muted); }
.stok__more a { color: var(--gold-ink); font-weight: 600; }

/* Kenapa */
.why { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: #2f2b25; border: 1px solid #2f2b25; border-radius: var(--r-m); overflow: hidden; }
.why li { background: var(--ink); padding: 20px; }
.why h3 { color: var(--gold); }
.why p { margin: 0; color: #d8d1c2; font-size: .95rem; }

/* Langkah: memang urutan, jadi bernombor */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 24px 56px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; display: grid; place-items: center;
  font: 700 1rem var(--head); background: var(--ink); color: var(--gold); border-radius: 50%;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--line); }
.steps p { color: var(--muted); margin: 0; }

/* Kenali */
.about { display: grid; gap: 24px; align-items: center; }
.about__img {
  aspect-ratio: 4 / 5; max-width: 340px; width: 100%;
  display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(135deg, #e9e2d2 0 12px, #efe9dc 12px 24px);
  border-radius: var(--r-m); color: var(--muted); font-size: .9rem;
}

/* Ulasan */
.reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.reviews li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px; }
.reviews blockquote { margin: 0 0 12px; font-size: 1.02rem; }
.reviews p { margin: 0; font-size: .88rem; color: var(--muted); }

/* Kalkulator */
.calc { display: grid; gap: 20px; }
.calc__form { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.calc__form label:nth-child(-n+2) { grid-column: 1 / -1; }
.calc__form input, .calc__form select { background: var(--paper); color: var(--ink); border-color: var(--line); }
.calc__out { background: var(--ink); color: var(--cream); border-radius: var(--r-m); padding: 20px; }
.calc__out p { margin: 0; color: #b9b2a3; font-size: .9rem; }
.calc__out output { display: block; font: 700 clamp(2.2rem, 9vw, 3rem)/1.1 var(--head); color: var(--gold); margin: 4px 0 6px; }
.calc__out small { display: block; color: #b9b2a3; margin-bottom: 16px; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 32px 16px 0; position: relative;
  font-weight: 600; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 600 1.4rem var(--head); color: var(--gold-ink); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 8px; }

/* CTA akhir */
.final { text-align: center; }
.final p { color: #d8d1c2; max-width: 30em; margin: 0 auto 24px; }

/* Footer */
.foot { background: #0d0c0b; color: #b9b2a3; padding: 32px 0; font-size: .92rem; }
.foot b { color: var(--cream); }
.foot a { color: var(--gold); }
.foot__small { font-size: .8rem; margin: 0; }

/* WhatsApp sentiasa nampak: bar penuh di telefon */
.wa-float {
  position: fixed; z-index: 50; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; border-radius: 999px; text-decoration: none;
  background: var(--wa); color: var(--wa-ink); font-weight: 600; font-size: 1.05rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Tablet ke atas */
@media (min-width: 720px) {
  .stok { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 340px 1fr; gap: 48px; }
  .calc { grid-template-columns: 1.2fr 1fr; align-items: end; }
  .calc .sec__head { grid-column: 1 / -1; margin-bottom: 0; }
  .steps { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .steps li { padding: 56px 0 0; }
  .steps li:not(:last-child)::after { left: 48px; right: -12px; top: 19px; bottom: auto; width: auto; height: 2px; }
}

/* Komputer */
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .nav { display: flex; gap: 24px; }
  .nav a { text-decoration: none; font-size: .92rem; color: #d8d1c2; }
  .nav a:hover { color: var(--gold); }
  .topbar .btn--sm { display: inline-flex; }
  .hero { padding: 64px 0 80px; }
  .hero__in { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 56px; }
  .quick { grid-template-columns: 1fr 1fr; }
  .quick label:nth-child(3), .quick button, .quick__note { grid-column: 1 / -1; }
  .stok { grid-template-columns: repeat(3, 1fr); }
  .why { grid-template-columns: repeat(3, 1fr); }
  .sec { padding: 88px 0; }
  .wa-float { left: auto; right: 24px; bottom: 24px; padding: 0 22px; }
}

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