/* Buat undangan (client.sandingan.id/buat) */
.wz-steps { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; counter-reset: wz; font-size: 13px; font-weight: 600; color: var(--muted); }
.wz-steps li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.wz-steps li::before { counter-increment: wz; content: counter(wz); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); font-size: 12px; }
.wz-steps li + li::after { order: -1; content: ""; width: 28px; height: 1.5px; background: var(--line-2); margin-right: 4px; }
.wz-steps li.is-now { color: var(--ink); }
.wz-steps li.is-now::before { background: var(--janur); border-color: var(--janur); color: var(--ink); }
.wz-steps li.is-done::before { content: "✓"; background: var(--ink); border-color: var(--ink); color: var(--janur); }
@media (max-width: 720px) {
  .wz-steps { justify-self: center; gap: 4px; }
  .wz-steps li { font-size: 0; gap: 4px; }
  .wz-steps li + li::after { width: 14px; margin-right: 0; }
}

.wz { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 44%); min-height: calc(100vh - 68px); }
.wz-main { padding: clamp(28px, 5vw, 64px) clamp(18px, 5vw, 72px) 64px; max-width: 760px; width: 100%; justify-self: end; }
.wz-step + .wz-step { margin-top: 64px; }
.js-wz .wz-step { display: none; margin-top: 0; }
.js-wz .wz-step.is-now { display: block; animation: wzIn .45s var(--ease); }
@keyframes wzIn { from { opacity: 0; transform: translateY(10px); } }
.wz-title { font: 450 clamp(34px, 4.6vw, 52px)/1.04 var(--serif); letter-spacing: -.025em; }
.wz-lead { margin: 12px 0 30px; color: var(--muted); font-size: 16px; max-width: 52ch; }
.wz-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 36px; }
.wz-nav > :only-child { margin-left: auto; }
.wz-alt { margin-top: 18px; text-align: right; }

/* kartu tema */
.wz-themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 14px; }
@media (max-width: 1280px) { .wz-themes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .wz-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; } }
.wz-theme { position: relative; display: grid; gap: 8px; cursor: pointer; min-width: 0; }
.wz-theme input { position: absolute; opacity: 0; pointer-events: none; }
.wz-thumb {
  display: block; aspect-ratio: 3 / 4.1; border-radius: 999px 999px 16px 16px; overflow: hidden; background: var(--paper-3);
  outline: 1.5px solid var(--line); outline-offset: 0; transition: outline-color .15s, outline-offset .2s var(--ease), transform .25s var(--ease);
}
.wz-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; }
.wz-theme:hover .wz-thumb { transform: translateY(-2px); }
.wz-theme input:checked + .wz-thumb { outline: 2.5px solid var(--ink); outline-offset: 4px; }
.wz-theme input:focus-visible + .wz-thumb { outline: 2.5px solid var(--ink); outline-offset: 4px; box-shadow: 0 0 0 8px rgba(216, 203, 106, .5); }
.wz-theme-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 2px; min-width: 0; }
.wz-theme-meta b { font: 500 19px/1.1 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wz-theme-meta .tier-badge { position: static; transform: none; flex: none; }
.wz-theme-style { padding: 0 2px; margin-top: -6px; font-size: 12.5px; color: var(--muted); }

.wz-palette { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 14px 16px; border-radius: 18px; background: var(--paper-2); }
.wz-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.wz-swatch { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 99px; background: var(--white); border: 1.5px solid var(--line); cursor: pointer; font-size: 13px; font-weight: 600; }
.wz-swatch input { position: absolute; opacity: 0; }
.wz-swatch span { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(var(--c1) 0 120deg, var(--c2) 120deg 240deg, var(--c3) 240deg); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.wz-swatch em { font-style: normal; }
.wz-swatch:has(input:checked) { border-color: var(--ink); }
.wz-swatch:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

/* nama bersanding */
.wz-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 14px; }
.wz-pair input { font-family: var(--serif) !important; font-size: 24px !important; min-height: 60px !important; padding: 12px 16px !important; }
.wz-amp { font: italic 400 46px/1 var(--serif); color: var(--janur-ink); padding-bottom: 6px; }
@media (max-width: 560px) {
  .wz-pair { grid-template-columns: 1fr; gap: 8px; }
  .wz-amp { justify-self: center; font-size: 34px; padding: 0; }
}

/* pratinjau: telepon di dalam lengkung janur */
.wz-preview { position: sticky; top: 68px; height: calc(100vh - 68px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 28px; background: var(--paper-2); border-left: 1px solid var(--line); overflow: hidden; }
.wz-stage { position: relative; display: grid; place-items: center; height: min(760px, calc(100vh - 160px)); aspect-ratio: 9 / 16.2; }
.wz-stage::before, .wz-stage::after { content: ""; position: absolute; border: 2px solid var(--janur-2); border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none; }
.wz-stage::before { inset: -6% -22% -2%; opacity: .9; }
.wz-stage::after { inset: -1% -14% -2%; opacity: .35; }
.wz-phone { position: relative; width: 100%; height: 100%; border-radius: 34px; padding: 9px; background: var(--ink); box-shadow: 0 40px 80px -40px rgba(30, 42, 33, .55); }
.wz-phone iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 26px; background: var(--paper); }
.wz-loading { position: absolute; inset: 9px; border-radius: 26px; display: grid; place-items: center; background: rgba(251, 251, 247, .7); opacity: 0; pointer-events: none; transition: opacity .2s; }
.wz-loading span { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--ink); animation: spin .8s linear infinite; }
.is-loading .wz-loading { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.wz-caption { font-size: 12.5px; color: var(--muted); text-align: center; max-width: 36ch; }

.wz-peek { display: none; }
@media (max-width: 960px) {
  .wz { grid-template-columns: 1fr; }
  .wz-main { justify-self: stretch; max-width: none; padding-bottom: 120px; }
  .wz-preview { position: fixed; inset: 0; z-index: 90; top: 0; height: auto; background: rgba(30, 42, 33, .6); backdrop-filter: blur(6px); border: 0; display: none; }
  .wz-preview.is-open { display: flex; }
  .wz-stage { height: min(78vh, 680px); }
  .wz-stage::before, .wz-stage::after { display: none; }
  .wz-caption { color: #E6E9E2; }
  .wz-peek {
    position: fixed; z-index: 40; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%);
    display: inline-flex; box-shadow: var(--shadow-pop);
  }
}
