/* =====================================================================
 *  UNDANGANMU — gaya situs (landing, katalog, pesanan, status, tamu)
 * ===================================================================== */
:root {
  --bg: #F6F1EA; --bg-2: #EFE7DC; --card: #FFFDF9; --ink: #1F1B17; --soft: #6E655B; --faint: #A69C90;
  --line: #E2D8CB; --accent: #B4552E; --accent-ink: #8E3F1E; --accent-soft: #F3DED2; --ok: #2F7A55; --warn: #A86A12; --bad: #B23A3A;
  --f-serif: 'Fraunces', Georgia, serif; --f-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --r: 14px; --r-lg: 22px; --shadow: 0 1px 0 rgba(31,27,23,.04), 0 24px 48px -28px rgba(31,27,23,.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-sans); font-size: 15.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--soft); }
.serif { font-family: var(--f-serif); }
.eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--f-serif); font-weight: 400; letter-spacing: -.015em; line-height: 1.08; margin: 0; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); background: var(--ink); color: #FFFDF9;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer; transition: transform .15s, background .2s, border-color .2s; white-space: nowrap; }
.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #FFFDF9; }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-wa { background: #1F9E55; border-color: #1F9E55; }
.btn-wa:hover { background: #17834A; }
.btn-wa svg { width: 18px; height: 18px; }
.btn-sm { padding: 9px 16px; font-size: .84rem; }
.btn-block { width: 100%; }
.link { color: var(--accent-ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- navigasi ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav-in { display: flex; align-items: center; gap: 20px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--f-serif); font-size: 1.32rem; letter-spacing: -.01em; }
.logo-mark { width: 30px; height: 30px; color: var(--ink); }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: .9rem; }
.nav-links a { text-decoration: none; color: var(--soft); }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { padding: 48px 0 40px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
.hero p.lead { font-size: 1.08rem; color: var(--soft); max-width: 46ch; margin: 20px 0 28px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; font-size: .85rem; color: var(--soft); }
.hero-proof b { display: block; font-family: var(--f-serif); font-weight: 400; font-size: 1.6rem; color: var(--ink); line-height: 1.1; }
.phones { position: relative; height: 560px; }
.phone { position: absolute; width: 250px; height: 520px; border-radius: 38px; background: #151311; padding: 9px; box-shadow: 0 40px 80px -30px rgba(31,27,23,.55); }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #ddd; }
.phone iframe { position: absolute; top: 0; left: 0; width: 390px; height: 782px; border: 0; transform: scale(.595); transform-origin: 0 0; pointer-events: none; }
.phone.p1 { left: 4%; top: 30px; transform: rotate(-6deg); z-index: 1; }
.phone.p2 { left: 32%; top: 0; z-index: 3; }
.phone.p3 { left: 60%; top: 40px; transform: rotate(6deg); z-index: 2; }
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; }
  .phones { height: 430px; max-width: 520px; margin: 0 auto; width: 100%; }
  .phone { width: 196px; height: 408px; border-radius: 30px; padding: 7px; }
  .phone .screen { border-radius: 24px; }
  .phone iframe { transform: scale(.467); }
  .phone.p1 { left: 0; } .phone.p2 { left: calc(50% - 98px); } .phone.p3 { left: auto; right: 0; }
}
@media (max-width: 480px) { .phone.p1, .phone.p3 { display: none; } .phones { height: 420px; } }

/* ---------- section umum ---------- */
.sec { padding: 84px 0; }
.sec-alt { background: var(--bg-2); }
.sec-dark { background: #1F1B17; color: #F6F1EA; }
.sec-dark .muted { color: #B5AB9F; }
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.sec-head p { color: var(--soft); margin: 14px 0 0; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
@media (max-width: 640px) { .sec { padding: 60px 0; } }

/* ---------- fitur ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.feature { background: var(--card); padding: 28px 26px; }
.feature .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 16px; }
.feature .ic svg { width: 21px; height: 21px; }
.feature h3 { font-family: var(--f-sans); font-weight: 600; font-size: 1.02rem; letter-spacing: 0; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--soft); font-size: .92rem; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- kartu tema ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filters button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 15px; font-size: .84rem; cursor: pointer; color: var(--soft); }
.filters button.on { background: var(--ink); border-color: var(--ink); color: #FFFDF9; }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 40px 26px; }
.tcard { display: flex; flex-direction: column; gap: 12px; }
.tcard[hidden] { display: none; }
.shot { position: relative; aspect-ratio: 390 / 700; border-radius: 20px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow); }
.shot iframe { position: absolute; top: 0; left: 0; width: 390px; height: 700px; border: 0; transform-origin: 0 0; pointer-events: none; }
.shot a { position: absolute; inset: 0; z-index: 2; }
.tmeta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tmeta h3 { font-size: 1.55rem; }
.tmeta span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.tdesc { margin: 0; color: var(--soft); font-size: .88rem; }
.variants { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.variants button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,0,0,.14); cursor: pointer; padding: 0; }
.variants button.on { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.vname { font-size: .78rem; color: var(--soft); margin-left: 4px; }
.tactions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
.tactions .btn { padding: 11px 12px; font-size: .84rem; }

/* ---------- langkah ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: st; }
.step { counter-increment: st; border-top: 1px solid currentColor; padding-top: 18px; }
.step::before { content: "0" counter(st); font-family: var(--f-serif); font-size: 2.4rem; line-height: 1; display: block; margin-bottom: 14px; color: var(--accent); }
.sec-dark .step::before { color: #E5A784; }
.step h3 { font-family: var(--f-sans); font-weight: 600; font-size: 1rem; letter-spacing: 0; margin-bottom: 6px; }
.step p { margin: 0; font-size: .9rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- harga ---------- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 26px; display: flex; flex-direction: column; }
.price.popular { border: 1.5px solid var(--ink); box-shadow: var(--shadow); }
.price .badge { position: absolute; top: -12px; left: 26px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.price h3 { font-family: var(--f-sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.price .amount { font-family: var(--f-serif); font-size: 2.7rem; line-height: 1; margin: 14px 0 4px; }
.price .amount small { font-family: var(--f-sans); font-size: .85rem; color: var(--soft); }
.price ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; font-size: .92rem; flex: 1; }
.price li { display: flex; gap: 10px; }
.price li::before { content: ""; flex: 0 0 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%238E3F1E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--f-serif); font-size: 1.6rem; font-weight: 300; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 20px; color: var(--soft); }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 18ch; margin: 0 auto 16px; }
.cta .hero-cta { justify-content: center; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 48px 0 28px; }
.foot-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-in p { margin: 10px 0 0; font-size: .9rem; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; font-size: .9rem; }
.foot-links a { color: var(--soft); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.foot-copy { margin-top: 36px; font-size: .8rem; color: var(--faint); }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 54px; height: 54px; border-radius: 50%; background: #1F9E55; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- halaman sempit (form, status) ---------- */
.page { padding: 40px 0 90px; }
.page-head { max-width: 720px; margin: 0 auto 28px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-head p { color: var(--soft); margin: 12px 0 0; }
.panel { max-width: 720px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.panel + .panel { margin-top: 18px; }
.panel h2 { font-size: 1.5rem; margin-bottom: 6px; }
@media (max-width: 560px) { .panel { padding: 22px 18px; border-radius: 18px; } }

/* ---------- form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label, .lbl { font-size: .84rem; font-weight: 600; }
.field .hint, .hint { font-size: .8rem; color: var(--soft); margin: 0; }
.req { color: var(--accent); }
input[type=text], input[type=tel], input[type=url], input[type=date], input[type=time], input[type=datetime-local], input[type=number], input[type=search], input[type=password], select, textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 11px; padding: 12px 14px; font-size: .95rem; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(31,27,23,.08); }
textarea { min-height: 92px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; gap: 0; } }
.err { color: var(--bad); font-size: .86rem; margin: 10px 0 0; min-height: 1.2em; }
.okmsg { color: var(--ok); }

/* pilihan kartu (paket, jenis acara) */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.choice { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 14px 44px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.choice input { position: absolute; left: 15px; top: 17px; accent-color: var(--ink); width: 17px; height: 17px; margin: 0; }
.choice b { display: block; font-size: .95rem; }
.choice span { display: block; font-size: .8rem; color: var(--soft); }
.choice:has(input:checked) { border-color: var(--ink); background: #FFFCF6; box-shadow: inset 0 0 0 1px var(--ink); }

/* wizard */
.wizard-bar { max-width: 720px; margin: 0 auto 18px; display: flex; gap: 6px; }
.wizard-bar span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.wizard-bar span.on { background: var(--ink); }
.wizard-meta { max-width: 720px; margin: 0 auto 10px; display: flex; justify-content: space-between; font-size: .82rem; color: var(--soft); }
.wstep { display: none; }
.wstep.on { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wnav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.subhead { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 24px 0 12px; }
.subhead:first-child { margin-top: 0; }
.rep { border: 1px dashed var(--line); border-radius: 14px; padding: 16px 16px 2px; margin-bottom: 12px; position: relative; background: #FFFEFB; }
.rep .rm { position: absolute; top: 10px; right: 12px; border: 0; background: none; color: var(--bad); font-size: .8rem; cursor: pointer; }
.add { border: 1px dashed var(--soft); background: transparent; border-radius: 12px; padding: 11px; width: 100%; cursor: pointer; font-size: .88rem; color: var(--soft); }
.add:hover { color: var(--ink); border-color: var(--ink); }
.picked-theme { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: #fff; }
.picked-theme .mini { width: 64px; height: 112px; border-radius: 10px; overflow: hidden; position: relative; flex: none; background: var(--bg-2); }
.picked-theme .mini iframe { position: absolute; top: 0; left: 0; width: 390px; height: 682px; border: 0; transform: scale(.1641); transform-origin: 0 0; pointer-events: none; }
.picked-theme b { font-family: var(--f-serif); font-weight: 400; font-size: 1.3rem; display: block; }
.picked-theme select { margin-top: 6px; }

/* unggah foto */
.drop { border: 1.5px dashed var(--line); border-radius: 14px; padding: 18px; text-align: center; cursor: pointer; background: #fff; display: block; color: var(--soft); font-size: .88rem; }
.drop:hover { border-color: var(--ink); color: var(--ink); }
.drop input { display: none; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-top: 10px; }
.thumbs:empty { display: none; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: .8rem; cursor: pointer; line-height: 1; }
.single-photo { display: flex; gap: 12px; align-items: center; }
.single-photo .thumb { width: 64px; flex: none; }

/* ringkasan */
.summary { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.summary div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 14px; font-size: .9rem; border-bottom: 1px solid var(--line); background: #fff; }
.summary div:last-child { border-bottom: 0; }
.summary span { color: var(--soft); }
.summary b { text-align: right; }
.summary .total { background: #FFFCF6; font-size: 1rem; }

/* ---------- status pesanan ---------- */
.status-pill { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--bg-2); }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st-menunggu_bayar { color: var(--warn); background: #FBF0DD; }
.st-cek_bayar { color: #2D5FA8; background: #E3ECF8; }
.st-lunas, .st-dikerjakan { color: var(--ok); background: #E1F1E8; }
.st-aktif, .st-selesai { color: #fff; background: var(--ok); }
.st-batal { color: var(--bad); background: #F7E1E1; }
.code-big { font-family: var(--f-serif); font-size: clamp(1.8rem, 6vw, 2.5rem); letter-spacing: .02em; }
.pay-total { font-family: var(--f-serif); font-size: clamp(2rem, 7vw, 2.8rem); line-height: 1; }
.pay-total small { display: block; font-family: var(--f-sans); font-size: .8rem; color: var(--soft); margin-top: 6px; }
.bank-list { display: grid; gap: 10px; margin: 16px 0; }
.bank-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; }
.bank-row b { display: block; font-size: 1.05rem; letter-spacing: .03em; }
.bank-row span { font-size: .8rem; color: var(--soft); }
.copy { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 7px 13px; font-size: .78rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.copy.ok { background: var(--ok); color: #fff; border-color: var(--ok); }
.qris { max-width: 260px; margin: 6px auto 0; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 10px; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.timeline li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; color: var(--faint); font-size: .9rem; }
.timeline li i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; display: grid; place-items: center; font-style: normal; font-size: .7rem; }
.timeline li.done { color: var(--ink); }
.timeline li.done i { background: var(--ink); color: #fff; border-color: var(--ink); }
.timeline li.now { color: var(--ink); font-weight: 600; }
.timeline li.now i { border-color: var(--accent); color: var(--accent); }

/* ---------- generator link tamu ---------- */
.guest-list { display: grid; gap: 8px; margin-top: 16px; }
.guest-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.guest-row b { display: block; font-size: .92rem; }
.guest-row small { display: block; font-size: .74rem; color: var(--soft); word-break: break-all; }
.guest-row .btn { padding: 8px 12px; font-size: .78rem; }
@media (max-width: 520px) { .guest-row { grid-template-columns: 1fr 1fr; } .guest-row > div { grid-column: 1 / -1; } }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- 404 / info ---------- */
.center-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.center-page h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin-bottom: 12px; }
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--soft); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: .86rem; opacity: 0; pointer-events: none; transition: .25s; z-index: 90; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
