:root {
  --tinta: #3B2A20;
  --tinta-muda: #5A4538;
  --redup: #6B5648;
  --amber: #E8A33D;
  --amber-gelap: #C98418;
  --kertas: #FBFAF6;
  --putih: #FFFFFF;
  --garis: #E4DDD2;
  --hijau: #2E6B4F;
  --teks-terang: #F3ECE3;
  --teks-terang-redup: #D6C8BB;
  --judul: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --badan: 'Public Sans', 'Segoe UI', sans-serif;
  --lebar: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--badan);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--kertas);
  padding-bottom: 4.5rem;
}
h1, h2, h3 { font-family: var(--judul); line-height: 1.1; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

.bungkus { width: 100%; max-width: var(--lebar); margin: 0 auto; padding: 0 1rem; }

:focus-visible { outline: 3px solid var(--amber-gelap); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .atas :focus-visible, .penutup :focus-visible { outline-color: var(--amber); }

.lompat {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--putih); color: var(--tinta); padding: .6rem 1rem; border-radius: 6px;
}
.lompat:focus { top: .75rem; }

/* tombol */
.tombol {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7rem 1.4rem;
  background: var(--amber); color: var(--tinta);
  font-weight: 600; text-decoration: none; border-radius: 8px;
  transition: background-color .2s ease, transform .2s ease;
}
.tombol:hover { background: #F0B455; }
.tombol:active { transform: translateY(1px); }
.tombol-kecil { min-height: 44px; padding: .5rem 1rem; font-size: .9375rem; }

/* header */
.atas { background: var(--tinta); color: var(--teks-terang); }
.atas-isi { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .75rem; padding-bottom: .75rem; }
.merek { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--judul); font-weight: 800; font-size: 1.25rem; min-height: 44px; }

/* hero */
.hero { background: var(--tinta); color: var(--teks-terang); padding: 2.5rem 0 3.5rem; overflow-x: clip; }
.hero-isi { display: grid; gap: 2.5rem; }
.hero h1 { font-weight: 800; font-size: clamp(2rem, 7vw, 3.5rem); max-width: 18ch; }
.hero-sub { margin-top: 1.25rem; font-size: 1.125rem; color: var(--teks-terang-redup); max-width: 34ch; }
.hero-aksi { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.tautan-terang { color: var(--teks-terang); text-underline-offset: 4px; text-decoration-thickness: 1px; padding: .6rem 0; min-height: 44px; display: inline-flex; align-items: center; }
.tautan-terang:hover { text-decoration-thickness: 2px; }

/* struk tarif */
.struk {
  position: relative;
  background: var(--putih); color: var(--tinta);
  padding: 1.5rem 1.25rem 1.75rem;
  border-radius: 4px 4px 0 0;
  max-width: 26rem; width: 100%;
  margin-bottom: 10px;
}
.struk::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background:
    linear-gradient(135deg, var(--putih) 5px, transparent 0) 0 0 / 10px 10px repeat-x,
    linear-gradient(225deg, var(--putih) 5px, transparent 0) 0 0 / 10px 10px repeat-x;
}
.struk-judul { font-family: var(--judul); font-weight: 600; font-size: 1.125rem; padding-bottom: .75rem; border-bottom: 2px dashed var(--garis); }
.struk-baris li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--garis); font-size: .9375rem; }
.struk-baris span { flex: 1; }
.struk-baris b { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.struk-catatan { margin-top: .9rem; font-size: .8125rem; color: var(--redup); line-height: 1.45; }

.stempel {
  position: absolute; right: -.6rem; top: -1.6rem;
  width: 5.4rem; height: 5.4rem; border-radius: 50%;
  border: 3px solid var(--hijau); color: var(--hijau);
  background: rgba(255,255,255,.92);
  display: grid; place-items: center; text-align: center;
  font-family: var(--judul); font-weight: 800; font-size: .8125rem; line-height: 1.1;
  transform: rotate(-9deg);
  box-shadow: inset 0 0 0 3px var(--putih), inset 0 0 0 4px var(--hijau);
  animation: cap .5s cubic-bezier(.2,.9,.3,1.2) .5s both;
}
@keyframes cap {
  from { opacity: 0; transform: rotate(-9deg) scale(1.7); }
  to   { opacity: 1; transform: rotate(-9deg) scale(1); }
}

/* tarif */
.tarif { padding: 3.5rem 0 2.5rem; }
.tarif-kepala { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.tarif h2, .mulai h2, .info h2, .penutup h2 { font-weight: 800; font-size: clamp(1.625rem, 4.5vw, 2.25rem); }

.saring { display: inline-flex; border: 1.5px solid var(--tinta); border-radius: 8px; overflow: hidden; }
.saring-tombol {
  font: inherit; font-size: .9375rem; font-weight: 600; color: var(--tinta);
  background: transparent; border: 0; min-height: 44px; padding: .4rem 1rem; cursor: pointer;
  transition: background-color .2s ease;
}
.saring-tombol + .saring-tombol { border-left: 1.5px solid var(--tinta); }
.saring-tombol:hover { background: #F1E8DA; }
.saring-tombol[aria-pressed="true"] { background: var(--tinta); color: var(--teks-terang); }

.kelompok { display: grid; gap: .75rem 3rem; padding: 1.5rem 0; border-top: 2px solid var(--tinta); }
.kelompok[hidden] { display: none; }
.kelompok-judul h3 { font-weight: 600; font-size: 1.375rem; }
.kelompok-judul p { margin-top: .35rem; color: var(--redup); font-size: .9375rem; max-width: 28ch; }

.daftar li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--garis); }
.daftar li:first-child { padding-top: 0; }
.daftar li[hidden] { display: none; }
.daftar .nama { display: block; font-weight: 600; }
.daftar .ket { display: block; margin-top: .15rem; font-size: .875rem; color: var(--redup); line-height: 1.45; max-width: 36ch; }
.harga { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

.tarif-catatan { margin-top: 1.25rem; color: var(--redup); font-size: .9375rem; max-width: 60ch; }

/* cara mulai */
.mulai { background: #F3ECE0; padding: 3.5rem 0; }
.mulai-isi { display: grid; gap: 1.75rem; }
.langkah { display: grid; gap: 1.25rem; counter-reset: l; }
.langkah li { counter-increment: l; align-content: start; display: grid; grid-template-columns: 2.5rem 1fr; gap: .75rem; align-items: start; max-width: 40ch; }
.langkah li::before {
  content: counter(l); display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--tinta); color: var(--teks-terang);
  font-family: var(--judul); font-weight: 800; font-size: 1.125rem;
}
.langkah b { display: block; }

/* info */
.info { padding: 3.5rem 0; }
.info-isi { display: grid; gap: 2.5rem; }
.rincian { margin: 1.25rem 0 0; display: grid; gap: .25rem; }
.rincian dt { font-size: .875rem; color: var(--redup); margin-top: .75rem; }
.rincian dd { margin: 0; font-weight: 600; font-size: 1.125rem; }
.tanya details { border-bottom: 1px solid var(--garis); }
.tanya h2 { margin-bottom: 1rem; }
.tanya summary { cursor: pointer; padding: .9rem 2rem .9rem 0; font-weight: 600; list-style: none; position: relative; min-height: 44px; }
.tanya summary::-webkit-details-marker { display: none; }
.tanya summary::after { content: "+"; position: absolute; right: .25rem; top: .7rem; font-size: 1.4rem; line-height: 1; transition: transform .2s ease; }
.tanya details[open] summary::after { transform: rotate(45deg); }
.tanya details p { padding: 0 0 1rem; color: var(--tinta-muda); max-width: 56ch; }

/* penutup */
.penutup { background: var(--tinta); color: var(--teks-terang); padding: 3.5rem 0; }
.penutup-isi { display: grid; gap: 1rem; justify-items: start; }
.penutup p { color: var(--teks-terang-redup); max-width: 40ch; margin-bottom: .5rem; }

/* kaki */
.kaki { background: #2B1E16; color: var(--teks-terang-redup); font-size: .875rem; }
.kaki-isi { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }

/* tombol melayang (HP) */
.melayang {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; background: var(--amber); color: var(--tinta);
  font-weight: 600; text-decoration: none; border-radius: 10px;
  transform: translateY(150%); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .25s ease, opacity .25s ease, visibility .25s;
  box-shadow: 0 6px 18px rgba(59, 42, 32, .35);
}

body.lewat-hero .melayang { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }

@media (min-width: 48rem) {
  .bungkus { padding: 0 2rem; }
  body { padding-bottom: 0; font-size: 1.125rem; }
  .melayang { display: none; }
  .hero { padding: 4rem 0 5rem; }
  .hero-isi { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 3rem; }
  .struk { justify-self: end; padding: 1.75rem 1.75rem 2rem; }
  .kelompok { grid-template-columns: 15rem 1fr; padding: 2rem 0; }
  .mulai-isi { grid-template-columns: 15rem 1fr; gap: 3rem; }
  .langkah { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .langkah li { grid-template-columns: 1fr; max-width: none; }
  .info-isi { grid-template-columns: 15rem 1fr; gap: 3rem; }
  .tarif, .mulai, .info, .penutup { padding-top: 5rem; padding-bottom: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stempel { animation: none; }
  .tombol, .saring-tombol, .tanya summary::after, .melayang { transition: none; }
}
