@font-face { font-family: "Jersey 15"; src: url(/assets/fonts/Jersey15-Regular.ttf); font-display: swap; }
@font-face { font-family: "Silkscreen"; src: url(/assets/fonts/Silkscreen-Bold.ttf); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(/assets/fonts/Poppins-400.woff2); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(/assets/fonts/Poppins-600.woff2); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(/assets/fonts/Poppins-700.woff2); font-weight: 700; font-display: swap; }

:root {
  --ink: #1E1240; --ink-2: #2A1B57; --paper: #FFF4DC; --paper-2: #F6E7C4; --muted: #5B4F7A; --on-ink: #E9E1F7;
  --pink: #FF4F9A; --pink-deep: #C2185B; --yellow: #FFD23F; --cyan: #3DDCFF; --lime: #9BEA4F;
  --px: "Jersey 15", "Silkscreen", sans-serif; --tag: "Silkscreen", sans-serif; --body: "Poppins", system-ui, sans-serif;
  --gut: clamp(16px, 4vw, 48px); --gap: clamp(72px, 10vw, 128px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; scrollbar-color: var(--pink) var(--ink); }
body { margin: 0; background: var(--ink); color: var(--ink); font: 400 17px/1.65 var(--body); }
::selection { background: var(--pink); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--px); font-weight: 400; line-height: .98; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.75rem, 6.4vw, 4.75rem); }
p { margin: 0; }
.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--gut); }
.num { font-variant-numeric: tabular-nums; }

/* latar titik seperti sampul buku */
.dots { background-color: var(--ink); background-image: radial-gradient(rgba(255,255,255,.07) 1.5px, transparent 1.6px); background-size: 22px 22px; color: var(--on-ink); }
.paper { background: var(--paper); }

.top { position: sticky; top: 0; z-index: 20; background: var(--ink); border-bottom: 2px solid var(--ink-2); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.mark { font: 700 14px/1 var(--tag); letter-spacing: 1.5px; color: var(--yellow); text-decoration: none; }
.top nav { display: flex; gap: 22px; align-items: center; }
.top nav a { font-size: 14px; font-weight: 600; color: var(--on-ink); text-decoration: none; }
.top nav a:hover { color: var(--yellow); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 14px 26px; background: var(--yellow); color: var(--ink);
  font: 700 15px/1.2 var(--tag); text-decoration: none; text-align: center; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--pink); transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--pink); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--pink); }
.btn.alt { background: var(--ink); color: var(--yellow); box-shadow: 5px 5px 0 var(--pink-deep); }
.btn svg { width: 16px; height: 16px; flex: none; }

.hero { padding-block: clamp(40px, 7vw, 84px) clamp(56px, 8vw, 96px); }
.hero .grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: start; }
.hero h1 { font-size: clamp(3.1rem, 6.1vw, 4.9rem); color: var(--paper); }
.hero h1 em { font-style: normal; color: var(--pink); }
.hero .sub { margin-top: 22px; max-width: 34em; font-size: clamp(1.03rem, 1.5vw, 1.19rem); color: var(--on-ink); }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 32px; }
.tagprice { display: flex; flex-direction: column; line-height: 1.1; }
.tagprice s { font-size: 15px; color: #BDB0DE; }
.tagprice b { font: 400 2.6rem/1 var(--px); color: var(--yellow); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); margin: 40px 0 0; border-top: 2px solid var(--ink-2); }
.facts div { padding: 14px 12px 12px 0; border-bottom: 2px solid var(--ink-2); }
.facts dt { font-size: 13.5px; color: #C9BEE6; order: 2; }
.facts dd { margin: 0; font: 400 2.75rem/1 var(--px); color: var(--paper); }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.stage { position: relative; display: grid; justify-items: center; gap: 28px; }
.cover { width: min(270px, 70vw); border: 3px solid var(--paper); box-shadow: 10px 10px 0 var(--pink); transform: rotate(-2deg); }

/* layar LCD 16x2 */
.lcdbox { width: min(440px, 100%); background: #2E7D32; border: 3px solid var(--paper); padding: 14px; box-shadow: 6px 6px 0 var(--ink-2); }
.lcd { display: grid; grid-template-columns: repeat(16, 1fr); gap: 2px; background: #111; padding: 10px; }
.lcd i { display: grid; place-items: center; aspect-ratio: 5 / 8; background: #A9DC3F; color: #16250A; font: 700 clamp(13px, 3.8vw, 20px)/1 "Silkscreen", monospace; font-style: normal; }
.lcdform { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.lcdform label { color: var(--paper); font-size: 14px; font-weight: 600; white-space: nowrap; }
.lcdform input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font: 600 16px var(--body); border-radius: 0; caret-color: var(--pink-deep); }
.lcdform input::placeholder { color: var(--muted); }
.lcdnote, .demonote { font-size: 14px; color: #C9BEE6; text-align: center; max-width: 30em; }

/* simulasi proyek 001 */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; width: min(440px, 100%); border: 3px solid var(--paper); background: var(--ink-2); padding: 14px; box-shadow: 6px 6px 0 #120A2B; }
.phone { background: #F4F6FB; color: #1F2A44; padding: 14px; font-family: var(--body); display: flex; flex-direction: column; gap: 10px; }
.phone small { font-size: 12px; font-weight: 600; color: #5A6685; }
.phone b { font-size: 16px; }
.sw { position: relative; width: 74px; height: 40px; border: 0; background: #AEB8CF; cursor: pointer; transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 4px; left: 4px; width: 32px; height: 32px; background: #fff; transition: transform .18s cubic-bezier(.16,1,.3,1); }
.demo.on .sw { background: #16A34A; } .demo.on .sw::after { transform: translateX(34px); }
.ledbox { display: grid; place-items: center; background: #101A12; min-height: 150px; position: relative; overflow: hidden; }
.ledbox svg { width: 76px; height: 112px; }
.ledbox .bulb { fill: #6F2B2B; transition: fill .15s; } .ledbox .glow { opacity: 0; transition: opacity .2s; }
.demo.on .ledbox .bulb { fill: #FF4B4B; } .demo.on .ledbox .glow { opacity: 1; }
.topic { grid-column: 1 / -1; font: 400 13px/1.4 ui-monospace, Menlo, monospace; color: var(--lime); overflow-wrap: anywhere; min-height: 2.8em; }

.sec { padding-block: var(--gap); }
.lead { margin-top: 18px; max-width: 38em; }
.fit { display: grid; gap: clamp(36px, 6vw, 72px); margin-top: 44px; }
.fit h3 { font-size: 2.1rem; margin-bottom: 12px; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 13px 0; border-top: 2px solid var(--paper-2); }
.ticks svg { width: 20px; height: 20px; margin-top: 4px; }

.bab { margin-top: 44px; border-top: 3px solid var(--ink); }
.bab details { border-bottom: 2px solid var(--paper-2); }
.bab summary { display: grid; grid-template-columns: 58px 1fr 22px; align-items: center; gap: 10px; padding: 16px 0; cursor: pointer; list-style: none; }
.bab summary::-webkit-details-marker { display: none; }
.bab .no { font: 400 2.5rem/1 var(--px); color: var(--pink-deep); }
.bab .ttl { font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.bab .ttl small { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.plus { width: 18px; height: 18px; transition: transform .18s; } details[open] .plus { transform: rotate(45deg); }
.bab ul { margin: 0; padding: 0 0 20px 68px; list-style: none; columns: 2 260px; column-gap: 32px; font-size: 15.5px; }
.bab ul li { padding: 3px 0; break-inside: avoid; }

.pick { margin-top: 40px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 14px 2px; scrollbar-width: thin; }
.chips button { flex: none; min-height: 44px; padding: 8px 14px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font: 600 14px var(--body); cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
.chips button:hover:not([aria-pressed="true"]) { background: var(--paper-2); }
.search { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 10px; }
.search input { width: min(380px, 100%); height: 48px; padding: 0 14px; border: 2px solid var(--ink); background: #FFFBF0; color: var(--ink); font: 400 16px var(--body); border-radius: 0; caret-color: var(--pink-deep); }
.search input::placeholder { color: var(--muted); }
.search output { font-size: 15px; color: var(--muted); }
.plist { list-style: none; margin: 18px 0 0; padding: 0; columns: 2 340px; column-gap: 36px; min-height: 240px; }
.plist li { display: grid; grid-template-columns: 50px 1fr auto; gap: 8px; align-items: baseline; padding: 9px 0; border-top: 2px solid var(--paper-2); break-inside: avoid; }
.plist .n { font: 400 1.5rem/1 var(--px); color: var(--pink-deep); }
.plist .b { font: 700 9.5px/1 var(--tag); color: var(--muted); }
.empty { padding: 26px 0; color: var(--muted); }

.anat { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.anat li { padding: 16px 0; border-top: 2px solid var(--paper-2); }
.anat b { display: block; font: 400 1.7rem/1.1 var(--px); }

.pages { padding-block: var(--gap); overflow: hidden; }
.strip { display: flex; gap: 22px; margin-top: 40px; padding: 4px var(--gut) 22px max(var(--gut), calc((100vw - 1180px) / 2 + var(--gut))); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-color: var(--pink) var(--ink-2); }
.strip figure { flex: none; width: min(340px, 76vw); margin: 0; scroll-snap-align: center; }
.strip img { outline: 2px solid var(--paper); box-shadow: 8px 8px 0 var(--pink); }
.strip figcaption { margin-top: 16px; font-size: 14.5px; color: var(--on-ink); }
.pages h2 { color: var(--paper); }
.pages .lead a { color: var(--yellow); font-weight: 600; }

.maker { background: var(--paper-2); }
.maker .grid { display: grid; gap: 32px; }
.maker dl { margin: 0; }
.maker dl div { padding: 13px 0; border-top: 2px solid rgba(30,18,64,.16); }
.maker dt { font-weight: 700; }
.maker dd { margin: 2px 0 0; color: #453A63; }

.price { background: var(--yellow); }
.price .card { display: grid; gap: 36px; align-items: center; }
.price h2 { font-size: clamp(3rem, 7vw, 5.25rem); }
.was { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 1.15rem; flex-wrap: wrap; }
.save { padding: 3px 10px; background: var(--pink-deep); color: #fff; font: 700 12px/1.4 var(--tag); }
.now { font: 400 clamp(5rem, 13vw, 8rem)/.9 var(--px); margin-top: 6px; }
.now small { font-size: .42em; margin-right: 6px; }
.once { margin-top: 12px; font-weight: 600; }
.timer { display: flex; gap: 8px; margin-top: 22px; }
.timer div { min-width: 68px; padding: 8px 6px 6px; background: var(--ink); color: var(--yellow); text-align: center; }
.timer b { display: block; font: 400 2.4rem/1 var(--px); font-variant-numeric: tabular-nums; }
.timer span { font-size: 12px; color: var(--on-ink); }
.quota { margin-top: 12px; font-weight: 700; color: var(--pink-deep); }
.price .ticks li { border-color: rgba(30,18,64,.18); }
.price .btn { width: 100%; max-width: 440px; margin-top: 26px; background: var(--ink); color: var(--yellow); border-color: var(--ink); box-shadow: 5px 5px 0 var(--pink-deep); }
.faq { margin-top: 40px; border-top: 3px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 2px solid var(--paper-2); }
.faq summary { display: grid; grid-template-columns: 1fr 22px; gap: 14px; align-items: center; padding: 18px 0; font-weight: 700; font-size: 1.06rem; line-height: 1.4; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { padding-bottom: 20px; max-width: 42em; color: #3B3058; }
.faq a { font-weight: 600; }

.close { padding-block: var(--gap); text-align: center; }
.close h2 { color: var(--paper); max-width: 15em; margin-inline: auto; }
.close .btn { margin-top: 34px; }
.next { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; max-width: 560px; margin: 60px auto 0; padding-top: 28px; border-top: 2px solid var(--ink-2); text-align: left; color: var(--on-ink); text-decoration: none; }
.next img { border: 2px solid var(--paper); }
.next b { display: block; font: 400 1.9rem/1 var(--px); color: var(--yellow); margin-bottom: 4px; }
.next:hover b { color: var(--pink); }

footer { background: var(--ink); color: #C9BEE6; font-size: 14.5px; border-top: 2px solid var(--ink-2); padding-block: 34px 104px; }
footer .wrap { display: grid; gap: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--paper); }

.bar { position: fixed; inset: auto 0 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ink); border-top: 3px solid var(--yellow); transform: translateY(110%); transition: transform .28s cubic-bezier(.16,1,.3,1); }
.bar.show { transform: none; }
.bar s { display: block; font-size: 12.5px; color: #BDB0DE; line-height: 1.1; }
.bar b { font: 400 1.9rem/1 var(--px); color: var(--yellow); }
.bar .btn { min-height: 46px; padding: 8px 18px; font-size: 13px; box-shadow: none; border-color: var(--yellow); }

/* hub */
.hub { padding-block: clamp(48px, 8vw, 96px) var(--gap); }
.hub h1 { font-size: clamp(3.4rem, 9vw, 6rem); color: var(--paper); max-width: 11em; }
.hub h1 em { font-style: normal; color: var(--pink); }
.hub .sub { margin-top: 20px; max-width: 34em; font-size: 1.12rem; }
.shelf { display: grid; gap: 28px; margin-top: 56px; }
.book { display: grid; grid-template-columns: minmax(112px, 34%) 1fr; gap: clamp(18px, 3vw, 32px); padding: clamp(18px, 3vw, 30px); background: var(--paper); color: var(--ink); }
.book a.c { display: block; }
.book img { box-shadow: 6px 6px 0 var(--pink); }
.book h2 { font-size: clamp(2.3rem, 4.6vw, 3.25rem); }
.book h2 a { text-decoration: none; }
.book h2 a:hover { color: var(--pink-deep); }
.book p { margin-top: 10px; font-size: 15.5px; }
.book .tagprice { margin-top: 14px; }
.book .tagprice s { color: var(--muted); }
.book .tagprice b { color: var(--ink); }
.book .btn { margin-top: 16px; min-height: 48px; padding: 10px 16px; font-size: 13px; box-shadow: 4px 4px 0 var(--pink); }

@media (min-width: 900px) {
  .hero .grid { grid-template-columns: 1.08fr .92fr; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .fit { grid-template-columns: 1fr 1fr; }
  .maker .grid { grid-template-columns: .9fr 1.1fr; align-items: start; }
  .price .card { grid-template-columns: 1fr 1fr; }
  .shelf { grid-template-columns: 1fr 1fr; }
  .bar { display: none; }
  footer { padding-bottom: 34px; }
}
@media (max-width: 520px) {
  .book { grid-template-columns: 1fr; }
  .book a.c { width: 62%; }
  .bab ul { padding-left: 0; }
  .plist li { grid-template-columns: 44px 1fr; }
  .plist .b { grid-column: 2; }
  .top nav a:not(.go) { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::after { transition: none !important; } }
