/* Paper Peace — tampilan situs (beranda, pembuat undangan, kelola). */
:root {
  --paper: #f1f4ef; --white: #ffffff; --ink: #16302b; --muted: #55675f; --line: #cfd8d0;
  --gold: #a87a22; --blush: #ecd5cc; --danger: #a12d22;
  --f-display: "Young Serif", Georgia, serif; --f-body: "Figtree", system-ui, sans-serif;
}
*, *::before { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.55; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; }
.brand { font-family: var(--f-display); font-size: 1.35rem; text-decoration: none; }
.top nav { display: flex; gap: 1.3rem; align-items: center; font-size: 0.98rem; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; }
@media (max-width: 640px) { .top nav a.hide-s { display: none; } }

.btn {
  display: inline-block; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: center;
  background: var(--ink); color: #fff; border: 1.5px solid var(--ink); padding: 0.75em 1.4em; border-radius: 6px;
}
.btn:hover { background: #0d211d; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--white); }
.btn.small { padding: 0.45em 0.9em; font-size: 0.92rem; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

/* Beranda */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; padding: 2.5rem 0 4.5rem; }
.hero p.lead { font-size: 1.2rem; max-width: 46ch; color: var(--muted); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 1rem; }
.hero .fine { font-size: 0.95rem; color: var(--muted); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 1rem; } }

.phone {
  width: min(340px, 100%); margin-inline: auto; background: #0e1f1b; border-radius: 34px; padding: 10px;
  box-shadow: 0 30px 60px -30px rgba(22, 48, 43, 0.55);
}
.phone-screen { border-radius: 25px; overflow: hidden auto; height: 620px; background: #fff; scrollbar-width: thin; }
.phone-screen .inv { --inv-h: 620px; }
.hero .phone { transform: rotate(2deg); }
@media (max-width: 860px) { .hero .phone { transform: none; } .phone-screen { height: 520px; } .phone-screen .inv { --inv-h: 520px; } }

section.block { padding: 4rem 0; }
section.block.alt { background: var(--white); }
.block-head { max-width: 60ch; margin-bottom: 2rem; }

.designs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .designs { grid-template-columns: repeat(2, 1fr); } }
.design { text-decoration: none; display: block; }
.design-thumb { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.design-thumb .inv[class] { --inv-h: 330px; --body-size: 0.72rem; --name-size: 2.1rem; pointer-events: none; }
.design-thumb .inv-cover { padding: 1rem; }
.design > b { display: block; margin-top: 0.7rem; font-family: var(--f-display); font-weight: 400; font-size: 1.15rem; }
.design > span { color: var(--muted); font-size: 0.95rem; }
.design:hover > b { text-decoration: underline; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1rem; }
.steps li::before { content: counter(step); font-family: var(--f-display); font-size: 2.2rem; color: var(--gold); display: block; line-height: 1; margin-bottom: 0.6rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: start; }
@media (max-width: 860px) { .prices { grid-template-columns: 1fr; } }
.price { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem; }
.price.pick { border: 2px solid var(--ink); background: #fff; }
.price .tag { display: inline-block; background: var(--blush); border-radius: 4px; padding: 0.1em 0.6em; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.6rem; }
.price .amount { font-family: var(--f-display); font-size: 2.3rem; line-height: 1; margin: 0.3rem 0 0.2rem; }
.price ul { padding-left: 1.1rem; margin: 1rem 0 1.4rem; }
.price li { margin-bottom: 0.35rem; }
.price .btn { width: 100%; }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; }
.faq details p { margin: 0.7rem 0 0; color: var(--muted); max-width: 68ch; }

.foot { background: var(--ink); color: #e6ece7; padding: 2.5rem 0; font-size: 0.97rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between; }
.foot a { color: inherit; }

/* Pembuat undangan */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2.5rem; align-items: start; padding-bottom: 5rem; }
.builder aside { position: sticky; top: 1rem; }
.builder aside > p { text-align: center; font-size: 0.92rem; color: var(--muted); margin-top: 0.8rem; }
@media (max-width: 940px) {
  .builder { grid-template-columns: 1fr; }
  .builder aside { position: fixed; inset: 0; z-index: 20; background: rgba(14, 31, 27, 0.92); display: none; place-items: center; padding: 1rem; overflow: auto; }
  .builder aside.show { display: grid; }
  .builder aside > p { color: #fff; }
}
.preview-toggle { display: none; position: fixed; right: 1rem; bottom: 1rem; z-index: 30; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.5); }
@media (max-width: 940px) { .preview-toggle { display: inline-block; } }

fieldset { border: 0; padding: 0; margin: 0 0 2.6rem; min-width: 0; }
legend { font-family: var(--f-display); font-size: 1.5rem; padding: 0; margin-bottom: 1rem; }
.field { display: grid; gap: 0.3rem; margin-bottom: 1rem; }
.field > span, .field > label { font-weight: 600; font-size: 0.96rem; }
.field small { color: var(--muted); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.row.three { grid-template-columns: 1.3fr 1fr 1fr; }
@media (max-width: 560px) { .row, .row.three { grid-template-columns: 1fr; } }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="time"], input[type="url"], select, textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid #9fb0a6; border-radius: 6px; padding: 0.6em 0.75em; width: 100%; min-width: 0;
}
textarea { resize: vertical; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.7rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice label { display: block; background: #fff; border: 1.5px solid var(--line); border-radius: 8px; padding: 0.8rem 0.9rem; cursor: pointer; height: 100%; }
.choice label b { display: block; }
.choice label small { color: var(--muted); display: block; }
.choice input:checked + label { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.choice input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }
.swatch { display: block; height: 34px; border-radius: 4px; margin-bottom: 0.5rem; border: 1px solid rgba(0, 0, 0, 0.15); }
.sub { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.1rem 0.2rem; margin-bottom: 1rem; }
.sub h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.02rem; margin-bottom: 0.8rem; }
.locked { background: var(--blush); border-radius: 8px; padding: 0.8rem 1rem; font-size: 0.96rem; margin-bottom: 1rem; }
.thumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.thumbs figure { margin: 0; position: relative; }
.thumbs img { width: 76px; height: 76px; object-fit: cover; border-radius: 6px; display: block; }
.thumbs button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; line-height: 1; }
.slug { display: flex; align-items: center; background: #fff; border: 1px solid #9fb0a6; border-radius: 6px; overflow: hidden; }
.slug span { padding: 0.6em 0 0.6em 0.75em; color: var(--muted); white-space: nowrap; font-size: 0.95rem; }
.slug input { border: 0; padding-left: 0.15em; }
.pay { background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 1.3rem; }
.pay .total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; margin-bottom: 1rem; }
.pay .total b { font-family: var(--f-display); font-weight: 400; font-size: 1.8rem; }
.pay .btn { width: 100%; font-size: 1.08rem; }
.pay small { display: block; margin-top: 0.8rem; color: var(--muted); }
.error { color: var(--danger); font-weight: 600; margin-top: 0.8rem; }
.error:empty { display: none; }

/* Halaman sempit: selesai, kelola, syarat */
.narrow { width: min(760px, 100% - 2rem); margin: 0 auto; padding: 1rem 0 5rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.2rem; }
.linkbox { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.linkbox input { flex: 1 1 240px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin: 1rem 0; }
.stats div { background: var(--paper); border-radius: 8px; padding: 0.8rem; }
.stats b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.stats span { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr 1fr; } }
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.96rem; }
th, td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose li { margin-bottom: 0.4rem; }
