/* Kiddoreads · Bedtime Glow */
:root {
  --night: #1F1A3D;
  --quilt: #2A2452;
  --seam: #4A4280;
  --cream: #FFF4D6;
  --lilac: #E6DCF5;
  --dusk: #BDB2D6;
  --lamp: #F7D774;
  --lamp-ink: #1F1A3D;
  --fiverr: #1DBF73;
  --paypal: #FFC439;
  --paper: #FFFDF6;
  --title: "Grandstander", "Comic Sans MS", cursive;
  --body: "Mulish", system-ui, sans-serif;
  --round: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,244,214,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 68% 9%, rgba(255,244,214,.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 86% 32%, rgba(255,244,214,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 44%, rgba(255,244,214,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 71%, rgba(255,244,214,.3) 50%, transparent 51%),
    var(--night);
  background-size: 640px 640px, 520px 520px, 760px 760px, 430px 430px, 580px 580px, auto;
  color: var(--lilac);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--lamp); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--title); color: var(--cream); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-weight: 600; font-size: 1.3rem; }
p { margin: 0 0 1em; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lamp); color: var(--lamp-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* penanda bahan yang belum ada: hanya untuk pratinjau */
.todo { color: #ffb4a8; background: rgba(255,120,100,.12); border: 1px dashed rgba(255,150,130,.6); border-radius: 6px; padding: 1px 6px; font-size: .92em; }

/* tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 22px; border-radius: 12px; border: 0;
  font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-moon { background: var(--lamp); color: var(--lamp-ink); box-shadow: 0 6px 22px rgba(247,215,116,.28); }
.btn-moon:hover { color: var(--lamp-ink); box-shadow: 0 8px 30px rgba(247,215,116,.45); }
.btn-big { min-height: 56px; font-size: 1.1rem; padding: 14px 28px; }
.btn-paypal { background: var(--paypal); color: #14213d; }
.btn-paypal:hover { color: #14213d; }
.btn-fiverr { background: var(--fiverr); color: #fff; }
.btn-fiverr:hover { color: #fff; }
.text-link { color: var(--cream); font-weight: 700; text-decoration: underline; text-decoration-color: var(--lamp); text-decoration-thickness: 2px; background: none; border: 0; font-size: 1rem; cursor: pointer; padding: 0; font-family: var(--body); }
.link-fiverr { color: var(--fiverr); font-weight: 700; }
.link-fiverr:hover { color: #5fe0a2; }

/* halaman */
.sheet { min-height: 100vh; }
main { max-width: var(--width); margin: 0 auto; padding: 0 var(--gutter) 40px; }
main > section { margin-block: clamp(56px, 9vw, 110px); }
main > section:first-child { margin-top: clamp(28px, 5vw, 56px); }

/* header */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter);
  background: rgba(31,26,61,.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(74,66,128,.6);
}
.wordmark { font: 800 1.6rem/1 var(--title); color: var(--cream); text-decoration: none; letter-spacing: -.01em; }
.wordmark::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 3px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 10px 3px rgba(247,215,116,.6); vertical-align: super; }
.wordmark:hover { color: var(--cream); }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { color: var(--lilac); text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: 10px; }
.site-nav a:hover { color: var(--cream); background: rgba(74,66,128,.45); }
.site-nav a[aria-current="page"] { color: var(--lamp); box-shadow: inset 0 -2px 0 var(--lamp); border-radius: 0; }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  .topbar { flex-wrap: wrap; gap: 10px; }
  .wordmark { margin-right: auto; }
  .topbar-cta { order: 2; }
  .menu-toggle {
    order: 3;
    display: inline-flex; min-height: 44px; padding: 8px 14px;
    background: transparent; color: var(--cream); border: 1px solid var(--seam); border-radius: 10px;
    font: 700 .95rem var(--body); cursor: pointer;
  }
  .topbar-cta { min-height: 44px; padding: 8px 14px; font-size: .95rem; }
  .site-nav { order: 5; width: 100%; flex-direction: column; margin: 0; padding: 4px 0 10px; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 8px; border-bottom: 1px solid rgba(74,66,128,.5); }
  .site-nav a[aria-current="page"] { box-shadow: none; }
}
@media (max-width: 420px) { .topbar { gap: 8px; } .wordmark { font-size: 1.25rem; } .topbar-cta { padding: 8px 10px; font-size: .85rem; } .menu-toggle { padding: 8px 10px; } }

/* hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--lilac); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 8px; }
.hero-art { margin: 0; position: relative; }
.hero-art img { border-radius: 18px; box-shadow: 0 24px 70px -10px rgba(247,215,116,.38), 0 0 0 1px rgba(247,215,116,.25); }
.hero-art figcaption, figure figcaption { color: var(--dusk); font-size: .92rem; margin-top: 10px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-art { order: -1; } }

.firefly { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 12px 5px rgba(247,215,116,.55); pointer-events: none; opacity: .0; animation: drift 9s ease-in-out infinite; }
.f1 { left: 4%; top: 88%; animation-delay: 0s; }
.f2 { left: 44%; top: 6%; animation-delay: 2.4s; }
.f3 { right: 2%; top: 92%; animation-delay: 4.8s; }
.f4 { left: 38%; top: 70%; animation-delay: 6.6s; width: 4px; height: 4px; }
@keyframes drift {
  0%, 100% { opacity: 0; transform: translate(0, 0); }
  20% { opacity: .9; }
  50% { opacity: .5; transform: translate(18px, -26px); }
  80% { opacity: .85; transform: translate(-10px, -40px); }
}
@media (prefers-reduced-motion: reduce) { .firefly { animation: none; opacity: .6; } }

/* judul bagian */
.section-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-note { color: var(--dusk); font-size: .95rem; margin: 0; }
.more { margin-top: 22px; }
.center { text-align: center; }

/* filter */
.filter { display: flex; flex-wrap: wrap; gap: 8px; }
.filter button {
  min-height: 44px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--seam); background: transparent; color: var(--lilac);
  font: 600 .95rem var(--body); cursor: pointer;
}
.filter button span { color: var(--dusk); font-weight: 400; margin-left: 4px; }
.filter button:hover { border-color: var(--lamp); color: var(--cream); }
.filter button[aria-pressed="true"] { background: var(--lamp); color: var(--lamp-ink); border-color: var(--lamp); }
.filter button[aria-pressed="true"] span { color: var(--lamp-ink); }

/* galeri */
.mood-grid, .gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; grid-auto-flow: dense; }
.gallery { margin-top: 24px; }
.art-tile { margin: 0; }
.art-tile.wide { grid-column: span 2; }
.art-tile.tall { grid-row: span 2; }
.art-tile a { display: block; border-radius: 14px; overflow: hidden; background: var(--quilt); }
.art-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.art-tile:not(.wide):not(.tall) img { aspect-ratio: 1 / 1; }
.art-tile.wide img { aspect-ratio: 2 / 1; }
.art-tile a:hover img { transform: scale(1.04); }
.art-tile figcaption strong { display: block; color: var(--cream); font-weight: 700; }
.art-tile[hidden] { display: none; }
@media (max-width: 860px) {
  .mood-grid, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .art-tile.tall { grid-row: span 1; }
  .art-tile.tall img { aspect-ratio: 1 / 1; }
}
@media (prefers-reduced-motion: reduce) { .art-tile img { transition: none; } }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1500px); max-height: 94vh; color: var(--cream); }
.lightbox::backdrop { background: rgba(14,11,32,.92); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox p { text-align: center; margin: 10px 0 0; color: var(--lilac); }
.lightbox-bar { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.lightbox-bar button { min-height: 44px; min-width: 44px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--seam); background: var(--quilt); color: var(--cream); font: 700 1rem var(--body); cursor: pointer; }
.lightbox-bar .lb-close { background: var(--lamp); color: var(--lamp-ink); border-color: var(--lamp); }

/* angka */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 28px; border-block: 1px solid var(--seam); }
.stats div { padding: 18px 12px; text-align: center; }
.stats div + div { border-left: 1px solid var(--seam); }
.stats dt { color: var(--dusk); font-size: .9rem; order: 2; }
.stats dd { margin: 0; font: 800 clamp(1.5rem, 3.2vw, 2.4rem)/1.1 var(--title); color: var(--lamp); white-space: nowrap; }
.stats div { display: flex; flex-direction: column-reverse; }
@media (max-width: 600px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--seam); }
}

/* review */
.review { background: var(--quilt); border: 1px solid rgba(74,66,128,.7); border-radius: 16px; padding: 14px 14px 18px; display: flex; flex-direction: column; height: 100%; }
.review img { border-radius: 10px; aspect-ratio: 925 / 552; object-fit: cover; width: 100%; }
.review-stars { color: var(--lamp); letter-spacing: 2px; margin: 12px 0 6px; }
.review blockquote { margin: 0 0 14px; flex: 1; }
.review blockquote p { margin: 0; color: var(--cream); }
.review-who { display: flex; gap: 10px; align-items: center; }
.review-who p { margin: 0; font-size: .92rem; line-height: 1.4; }
.review-who strong { color: var(--cream); }
.review-who span { color: var(--dusk); }
.review-initial { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--seam); color: var(--cream); font: 800 1rem var(--title); }
.review-meta { color: var(--dusk); font-size: .85rem; margin: 10px 0 0; }

/* carousel */
.carousel { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.carousel-window { overflow: hidden; }
.carousel-track { list-style: none; margin: 0; padding: 0; display: flex; transition: transform .6s cubic-bezier(.4,.1,.2,1); }
.carousel-track .slide { flex: 0 0 calc(100% / 3); padding: 0 9px; }
@media (max-width: 1000px) { .carousel-track .slide { flex-basis: 50%; } }
@media (max-width: 640px) {
  .carousel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .carousel-window { grid-column: 1 / -1; grid-row: 1; }
  .carousel-btn.prev { grid-row: 2; justify-self: end; }
  .carousel-btn.next { grid-row: 2; justify-self: start; }
  .carousel-track .slide { flex-basis: 100%; padding: 0 2px; }
}
.carousel-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--seam); background: var(--quilt); color: var(--cream); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.carousel-btn:hover { border-color: var(--lamp); color: var(--lamp); }
@media (prefers-reduced-motion: reduce) { .carousel-track { transition: none; } }

/* paket ringkas */
.pk-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--seam); }
.pk-rows li { display: grid; grid-template-columns: 1.1fr 2.4fr .6fr .6fr; gap: 12px 20px; align-items: baseline; padding: 20px 4px; border-bottom: 1px solid var(--seam); }
.pk-name { font: 600 1.25rem var(--title); color: var(--cream); }
.pk-what { color: var(--lilac); }
.pk-days { color: var(--dusk); }
.pk-price { font: 800 1.5rem var(--title); color: var(--lamp); text-align: right; }
@media (max-width: 700px) {
  .pk-rows li { grid-template-columns: 1fr auto; }
  .pk-what { grid-column: 1 / -1; grid-row: 2; }
  .pk-days { grid-row: 3; }
  .pk-price { grid-row: 1; grid-column: 2; }
}

/* ajakan */
.invite { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--quilt); border-radius: 22px; padding: clamp(16px, 3vw, 32px); border: 1px solid rgba(247,215,116,.18); }
.invite img { border-radius: 14px; }
@media (max-width: 760px) { .invite { grid-template-columns: 1fr; } }
.foot-fiverr { color: var(--dusk); font-size: .95rem; margin-top: 16px; }

/* kepala halaman lain */
.page-head { max-width: 760px; }
.page-cta { text-align: center; padding: clamp(28px, 5vw, 56px) 16px; border-top: 1px dashed var(--seam); }
.page-cta p { color: var(--lilac); }

/* review grid & bar */
.score { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 48px; align-items: center; }
.score .stats { margin: 0; }
.score .section-note { grid-column: 1 / -1; }
@media (max-width: 1040px) { .score { grid-template-columns: 1fr; } }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) 3em; gap: 10px; align-items: center; font-size: .95rem; }
.bar span:last-child { color: var(--dusk); text-align: right; }
.bar-track { height: 10px; background: rgba(74,66,128,.6); border-radius: 99px; overflow: hidden; }
.bar-track span { display: block; height: 100%; width: calc(var(--n) / 380 * 100%); background: var(--lamp); border-radius: 99px; box-shadow: 0 0 10px rgba(247,215,116,.5); }
.review-grid { columns: 3 300px; column-gap: 20px; }
.review-grid .review { break-inside: avoid; margin-bottom: 20px; height: auto; }

/* harga */
.pk-examples { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 18px; align-items: end; }
.pk-examples figure { margin: 0; }
.pk-examples img { border-radius: 14px; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.pk-examples .wide img { aspect-ratio: 2 / 1; }
.pk-examples figcaption strong { color: var(--cream); margin-right: 6px; }
@media (max-width: 760px) { .pk-examples { grid-template-columns: 1fr 1fr; } .pk-examples .wide { grid-column: 1 / -1; } }
.table-scroll { overflow-x: auto; border: 1px solid var(--seam); border-radius: 16px; }
.pk-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.pk-table th, .pk-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(74,66,128,.6); }
.pk-table tbody tr:last-child > * { border-bottom: 0; }
.pk-table thead th { font: 600 1.1rem/1.25 var(--title); color: var(--cream); background: var(--quilt); }
.pk-table thead th span { display: block; font: 600 .8rem var(--body); color: var(--dusk); margin-top: 2px; }
.pk-table tbody th { color: var(--dusk); font-weight: 600; width: 22%; }
.pk-table td { color: var(--cream); }
.pk-table td.price { font: 800 1.5rem var(--title); color: var(--lamp); }
.price-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.price-notes > div { background: var(--quilt); border-radius: 18px; padding: clamp(20px, 3vw, 32px); }
.price-notes h2 { font-size: 1.5rem; }
.note-custom { border: 1px solid rgba(247,215,116,.35); }
@media (max-width: 760px) { .price-notes { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 780px; border-top: 1px solid var(--seam); }
.faq details { border-bottom: 1px solid var(--seam); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 600 1.15rem/1.35 var(--title); color: var(--cream); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.6rem; color: var(--lamp); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; margin: 0; max-width: 64ch; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.about-art { margin: 0; }
.about-art img { border-radius: 18px; box-shadow: 0 24px 70px -14px rgba(247,215,116,.35); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.find-us ul { list-style: none; padding: 0; margin: 0; max-width: 520px; }
.find-us li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--seam); }
.find-us li > span:first-child { color: var(--dusk); }

/* terms */
.terms { max-width: 760px; }
.terms section { padding: 8px 0 18px; border-bottom: 1px solid rgba(74,66,128,.6); margin-bottom: 18px; }
.terms h2 { font-size: 1.45rem; }
.terms ol { padding-left: 1.3em; margin: 0; }
.terms li { margin-bottom: 8px; }
.terms li::marker { color: var(--lamp); font-weight: 700; }

/* 404 */
.lost { text-align: center; min-height: 50vh; display: grid; place-content: center; justify-items: center; }

/* order */
.order { max-width: 860px; }
.step { border: 0; padding: 0; margin: 0 0 40px; min-width: 0; }
.step legend { font: 800 1.45rem var(--title); color: var(--cream); margin-bottom: 16px; padding: 0; display: flex; align-items: center; gap: 12px; }
.step-no { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--lamp); color: var(--lamp-ink); font-size: 1.05rem; box-shadow: 0 0 16px rgba(247,215,116,.5); }
.pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pick-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .pick, .pick-two { grid-template-columns: 1fr; } }
.pick-card { position: relative; display: grid; gap: 4px; padding: 18px 18px 18px 50px; border-radius: 16px; background: var(--quilt); border: 2px solid var(--seam); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.pick-card input { position: absolute; left: 18px; top: 22px; width: 20px; height: 20px; accent-color: var(--lamp); margin: 0; }
.pick-card:has(input:checked) { border-color: var(--lamp); box-shadow: 0 0 24px -4px rgba(247,215,116,.45); }
.pick-card:has(input:focus-visible) { outline: 3px solid var(--lamp); outline-offset: 3px; }
.pick-name { font: 600 1.15rem var(--title); color: var(--cream); }
.pick-price { font: 800 1.35rem var(--title); color: var(--lamp); }
.pick-what { color: var(--dusk); font-size: .93rem; line-height: 1.45; }
.qty { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.qty-btn { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--seam); background: var(--quilt); color: var(--cream); font-size: 1.5rem; cursor: pointer; }
.qty-btn:hover { border-color: var(--lamp); }
.qty input { width: 84px; height: 48px; text-align: center; border-radius: 12px; border: 1px solid var(--seam); background: var(--night); color: var(--cream); font: 700 1.2rem var(--body); }
.qty-total { margin: 0 0 0 auto; color: var(--dusk); font-size: 1.05rem; }
.qty-total strong { font: 800 1.6rem var(--title); color: var(--lamp); margin-left: 6px; }
.qty-hint { margin: 12px 0 0; color: var(--lilac); min-height: 1.6em; }
.qty-hint.saved { color: var(--lamp); font-weight: 700; }
.field { display: grid; gap: 6px; font-weight: 700; color: var(--cream); margin-bottom: 16px; }
.field-help { font-weight: 400; color: var(--dusk); font-size: .93rem; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--seam); background: var(--night); color: var(--cream); font: 400 1rem/1.5 var(--body); min-height: 48px; }
.field input:focus, .field textarea:focus { border-color: var(--lamp); outline: none; box-shadow: 0 0 0 3px rgba(247,215,116,.25); }
.field [aria-invalid="true"] { border-color: #ff9c8a; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy { color: var(--dusk); font-size: .92rem; max-width: 62ch; }
.form-error { color: #ffb4a8; font-weight: 700; }

/* nota */
.invoice-wrap { max-width: 760px; }
.invoice { background: var(--paper); color: #2b2540; border-radius: 18px; padding: clamp(20px, 4vw, 40px); box-shadow: 0 30px 80px -20px rgba(247,215,116,.35); }
.invoice:focus { outline: none; }
.invoice h2 { color: var(--night); font-size: 1.6rem; margin: 0 0 4px; }
.invoice-top { border-bottom: 2px dashed #e5dcc4; padding-bottom: 14px; margin-bottom: 16px; position: relative; }
.invoice-top p { margin: 0; color: #6b6385; }
.invoice-brand { font: 800 1.3rem var(--title); color: var(--night) !important; }
.invoice-status { position: absolute; right: 0; top: 0; background: #fff1c2; color: #7a5a00 !important; font-weight: 700; padding: 4px 12px; border-radius: 99px; font-size: .9rem; }
@media (max-width: 520px) { .invoice-status { position: static; display: inline-block; margin-top: 8px !important; } }
.invoice-lines { width: 100%; border-collapse: collapse; margin: 12px 0; }
.invoice-lines td { padding: 8px 0; border-bottom: 1px solid #eee5cf; }
.invoice-lines td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.invoice-lines tr.total td { font-weight: 700; color: var(--night); }
.invoice-lines tr.now td { font: 800 1.3rem var(--title); color: var(--night); border-bottom: 0; padding-top: 14px; }
.invoice-lines tr.minus td:last-child { color: #2b7a4b; }
.invoice-rest { color: #4b4466; }
.invoice-brief { background: #f6f0e0; border-radius: 12px; padding: 12px 14px; margin: 14px 0; }
.invoice-brief p { margin: 0; white-space: pre-wrap; }
.invoice-label { font-weight: 700; color: #6b6385; font-size: .9rem; margin-bottom: 4px !important; }
.invoice-send { font-size: .92rem; color: #6b6385; }
.invoice .todo { color: #a33a26; background: #ffe6e0; }
.pay { display: grid; gap: 6px; margin-top: 18px; }
.pay .btn { width: 100%; }
.pay-help { font-size: .9rem; color: #4b4466; margin: 0 0 12px; }
.change-order { margin-top: 18px; }

/* footer */
.foot { border-top: 1px solid var(--seam); background: rgba(42,36,82,.55); padding: 48px var(--gutter) 96px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px; }
.foot p { color: var(--dusk); }
.foot-brand p { max-width: 36ch; margin-top: 12px; }
.foot-links, .foot-find { display: grid; gap: 4px; align-content: start; }
.foot-links a, .foot-find a { color: var(--lilac); text-decoration: none; padding: 6px 0; }
.foot-links a:hover, .foot-find a:hover { color: var(--lamp); }
.foot-find a.link-fiverr { color: var(--fiverr); }
.foot-title { font: 600 1.1rem var(--title); color: var(--cream) !important; margin: 0; }
.foot-small { grid-column: 1 / -1; font-size: .88rem; margin: 0; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* tombol musik & chat */
.music-box, .chat-open { position: fixed; bottom: 16px; z-index: 50; cursor: pointer; }
.music-box { left: 16px; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--seam); background: var(--quilt); color: var(--lilac); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.music-box svg { width: 22px; height: 22px; fill: currentColor; }
.music-box[aria-pressed="true"] { color: var(--lamp-ink); background: var(--lamp); border-color: var(--lamp); box-shadow: 0 0 22px rgba(247,215,116,.6); }
.music-box[aria-pressed="true"] svg { animation: sway 1.6s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(-10deg) translateY(-1px); } }
@media (prefers-reduced-motion: reduce) { .music-box[aria-pressed="true"] svg { animation: none; } }
.chat-open { right: 16px; min-height: 50px; padding: 10px 20px; border-radius: 999px; border: 0; background: var(--lamp); color: var(--lamp-ink); font: 700 1rem var(--body); box-shadow: 0 8px 24px rgba(0,0,0,.35), 0 0 20px rgba(247,215,116,.35); }
.chat-note { position: fixed; right: 16px; bottom: 78px; z-index: 55; width: min(340px, calc(100vw - 32px)); background: var(--quilt); border: 1px solid var(--lamp); border-radius: 16px; padding: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.chat-note p { font-size: .95rem; }
.chat-head { font-weight: 700; color: var(--cream); }
.chat-close { min-height: 40px; padding: 6px 16px; border-radius: 10px; border: 1px solid var(--seam); background: transparent; color: var(--cream); font: 700 .95rem var(--body); cursor: pointer; }

/* animasi pembuka buku */
.opening { display: none; }
.intro-on .opening {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 90; cursor: pointer;
  background: radial-gradient(ellipse at 50% 40%, #2d2660 0%, #1F1A3D 55%, #120f28 100%);
  animation: opening-out .9s ease 2.05s forwards;
}
.opening-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(2px 2px at 10% 20%, #fff4d6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 25% 70%, #fff4d6 50%, transparent 51%),
    radial-gradient(2px 2px at 40% 12%, #f7d774 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 82%, #fff4d6 50%, transparent 51%),
    radial-gradient(2px 2px at 72% 28%, #fff4d6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 64%, #f7d774 50%, transparent 51%),
    radial-gradient(1px 1px at 15% 45%, #fff4d6 50%, transparent 51%),
    radial-gradient(1px 1px at 82% 10%, #fff4d6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 50% 50%, #fff4d6 50%, transparent 51%);
  background-size: 420px 420px;
  animation: twinkle 1.6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }
.opening-book {
  position: relative; width: min(56vw, 300px); aspect-ratio: 3 / 4; perspective: 1600px;
  animation: book-away 1.2s cubic-bezier(.5,0,.75,0) 1.75s forwards;
}
.opening-inside, .opening-leaf, .opening-cover { position: absolute; inset: 0; border-radius: 4px 14px 14px 4px; }
.opening-inside { background: var(--paper); display: grid; place-items: center; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.opening-inside p { font: 600 1.15rem var(--title); color: var(--night); text-align: center; padding: 20px; margin: 0; }
.opening-leaf, .opening-cover { transform-origin: left center; backface-visibility: hidden; }
.opening-leaf { background: #fbf3dc; display: grid; place-items: center; animation: page-open 1s cubic-bezier(.45,.05,.3,1) .7s forwards; }
.opening-leaf p { font: 600 1.05rem/1.5 var(--title); color: var(--quilt); text-align: center; margin: 0; padding: 18px; border: 2px dashed #d9c999; border-radius: 10px; }
.opening-cover {
  background: linear-gradient(135deg, #3a2f78, #2A2452);
  border: 3px solid var(--lamp); box-shadow: inset 0 0 0 6px #2A2452, inset 0 0 0 8px rgba(247,215,116,.6), 0 30px 60px rgba(0,0,0,.55);
  padding: 16% 12% 10%; display: flex; flex-direction: column; align-items: center; gap: 10%;
  animation: page-open 1s cubic-bezier(.45,.05,.3,1) .5s forwards;
}
.opening-frame { width: 100%; aspect-ratio: 1; border: 4px solid var(--lamp); border-radius: 8px; overflow: hidden; box-shadow: 0 0 22px rgba(247,215,116,.45); }
.opening-frame img { width: 100%; height: 100%; object-fit: cover; }
.opening-title { font: 800 1.6rem var(--title); color: var(--cream); margin: 0; }
.sticker { position: absolute; width: 26px; height: 26px; background: var(--lamp); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.sticker.s1 { top: 6%; right: 8%; transform: rotate(12deg); }
.sticker.s2 { bottom: 7%; left: 9%; width: 20px; height: 20px; transform: rotate(-14deg); }
.sticker.s3 { top: 9%; left: 10%; width: 16px; height: 16px; }
@keyframes page-open { to { transform: rotateY(-178deg); } }
@keyframes book-away { to { transform: scale(3.6); filter: blur(14px); opacity: 0; } }
@keyframes opening-out { to { opacity: 0; visibility: hidden; } }
.intro-on .sheet { animation: sheet-wake 1.25s ease 1.75s both; }
@keyframes sheet-wake {
  from { filter: blur(16px); transform: scale(1.08); opacity: .4; }
  to { filter: none; transform: none; opacity: 1; }
}
.intro-done .opening { display: none; }
