:root {
  --brand: #c94c00; /* oranye logo (#e85800) digelapkan sedikit agar teks putih tetap terbaca */
  --brand-dark: #a03c00;
  --cream: #fdf6ec;
  --sand: #f3e6d0;
  --ink: #2b2118;
  --muted: #7d6c59;
  --line: #e8dcc8;
  --card: #fff;
  --wa: #1f9d55;
  --wa-dark: #167a41;
  --danger: #b3321f;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(80, 40, 10, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}
h1,
h2,
h3 {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.2;
  margin: 0 0 8px;
}
h1 {
  font-size: clamp(1.9rem, 7vw, 2.8rem);
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.15rem;
}
p {
  margin: 0 0 12px;
}
a {
  color: var(--brand);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.85rem;
}

/* ---------- layout ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  display: block;
  height: 34px;
  width: auto;
}
.brand span {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}
main,
.footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  padding: 28px 0 8px;
}
.hero {
  padding: 36px 0 12px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
}
.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 54ch;
}
.steps-mini {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  margin: 20px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.steps-mini b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--brand-dark);
  font-size: 0.8rem;
}
.footer {
  padding-top: 32px;
  padding-bottom: 110px;
  text-align: center;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--brand-dark);
}
.btn-small {
  min-height: 38px;
  padding: 7px 14px;
  font-size: 0.9rem;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.18);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.3);
}
.btn-wa {
  width: 100%;
  background: var(--wa);
  margin: 6px 0 12px;
}
.btn-wa:hover {
  background: var(--wa-dark);
}
:focus-visible {
  outline: 3px solid #f0a35e;
  outline-offset: 2px;
}

/* ---------- paket cards ---------- */
.paket-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 14px;
}
@media (min-width: 560px) {
  .paket-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.paket-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 18px;
  text-align: left;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s;
}
.paket-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.paket-name {
  font-weight: 700;
}
.paket-price {
  font-family: Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.1;
}
.paket-tag {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.paket-isi {
  margin: 0 0 8px;
  padding-left: 18px;
  font-size: 0.9rem;
}
.paket-cta {
  margin-top: auto;
  font-weight: 700;
  color: var(--brand);
}
.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fde8c8;
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 800;
}

/* ---------- builder dialog ---------- */
.builder {
  width: min(560px, 100vw);
  max-height: 92dvh;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 20px 20px 0 0;
  background: var(--cream);
  overflow: hidden;
}
@media (min-width: 600px) {
  .builder {
    margin: auto;
    border-radius: 20px;
  }
}
.builder[open] {
  display: flex;
  flex-direction: column;
}
.builder::backdrop {
  background: rgba(30, 15, 5, 0.55);
}
.builder-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 10px;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.builder-head p {
  margin: 0;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--sand);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.builder-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}
.builder-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
}
.builder-foot .btn {
  flex: 1;
  min-width: 0;
  padding-left: 12px;
  padding-right: 12px;
  white-space: nowrap;
}
.group {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}
.group legend {
  padding: 0;
  margin-bottom: 8px;
}
.req {
  font-size: 0.78rem;
  color: var(--brand);
  font-weight: 600;
}
.req.opt {
  color: var(--muted);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  position: relative;
}
.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: block;
  padding: 9px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.93rem;
}
.chip input:checked + span {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}
.chip input:focus-visible + span {
  outline: 3px solid #f0a35e;
  outline-offset: 2px;
}

/* ---------- qty stepper ---------- */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.qty button {
  width: 42px;
  height: 46px;
  border: 0;
  background: transparent;
  font-size: 1.3rem;
  cursor: pointer;
}
.qty input {
  width: 52px;
  height: 46px;
  border: 0;
  text-align: center;
  font-weight: 700;
  background: transparent;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.qty.small button {
  width: 36px;
  height: 36px;
}
.qty-num {
  min-width: 68px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- cart ---------- */
.empty {
  padding: 22px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}
.cart-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.cart-item {
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cart-item-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.cart-line-total {
  font-weight: 700;
  color: var(--brand);
}
.cart-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  margin: 8px 0 10px;
  font-size: 0.9rem;
}
.cart-detail dt {
  color: var(--muted);
}
.cart-detail dd {
  margin: 0;
}
.cart-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.link-danger {
  border: 0;
  background: none;
  color: var(--danger);
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 14px 0 0;
  padding: 14px 16px;
  background: var(--sand);
  border-radius: var(--radius);
  font-size: 1.05rem;
}
.cart-total strong {
  font-family: Georgia, serif;
  font-size: 1.6rem;
  color: var(--brand-dark);
}

/* ---------- form ---------- */
.order-form {
  margin-top: 24px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}
.field label,
.field legend {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0;
}
.field input:not([type='radio']),
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.field textarea {
  resize: vertical;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 1rem !important;
  color: var(--ink) !important;
}
.radio input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
}
.error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fdeae6;
  color: var(--danger);
  font-size: 0.92rem;
  font-weight: 600;
}
.error.pad {
  margin: 0 16px 12px;
}

/* ---------- sticky summary bar ---------- */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 14px rgba(80, 40, 10, 0.1);
}
.policy {
  display: inline-block;
  margin: 0 0 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.9rem;
}
.dp-rows {
  margin-top: 8px;
  padding: 10px 16px;
  border: 1.5px dashed var(--brand);
  border-radius: var(--radius);
  background: #fff;
}
.dp-rows div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 3px 0;
}
.dp-rows strong {
  color: var(--brand-dark);
}
[hidden] {
  display: none !important;
}

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