@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/plus-jakarta-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/plus-jakarta-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #fbf9ff;
  --bg-2: #f3f0fb;
  --card: #ffffff;
  --line: #e7e2f3;
  --text: #16122e;
  --muted: #625c7d;
  --violet: #7c3aed;
  --pink: #ec4899;
  --orange: #f97316;
  --yellow: #facc15;
  --teal: #06b6d4;
  --green: #10b981;
  --blue: #3b82f6;
  --red: #ef4444;
  --accent: var(--violet);
  --pc: var(--violet); /* warna produk, di-override per halaman */
  --grad: linear-gradient(120deg, #7c3aed 0%, #ec4899 45%, #f97316 100%);
  --ok: #10b981; --warn: #f59e0b; --bad: #ef4444;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(22,18,46,.04), 0 12px 32px -12px rgba(76,29,149,.18);
  --shadow-lg: 0 30px 60px -20px rgba(76,29,149,.35);
  --max: 1200px;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, video, canvas { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* background blobs */
.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blobs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blobs i:nth-child(1) { width: 480px; height: 480px; background: #c4b5fd; top: -120px; left: -120px; }
.blobs i:nth-child(2) { width: 420px; height: 420px; background: #fbcfe8; top: 40px; right: -80px; }
.blobs i:nth-child(3) { width: 360px; height: 360px; background: #fed7aa; bottom: -160px; left: 35%; }
.blobs i:nth-child(4) { width: 300px; height: 300px; background: #a5f3fc; bottom: -60px; right: 10%; opacity: .45; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251,249,255,.75); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(231,226,243,.7); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; font-size: 15px; color: #fff; box-shadow: 0 6px 16px -4px rgba(236,72,153,.6); }
.nav-links { display: flex; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.nav-links a { padding: 8px 14px; border-radius: 999px; transition: .15s; }
.nav-links a:hover { color: var(--text); background: #fff; box-shadow: var(--shadow); }
@media (max-width: 640px) { .nav .wrap { gap: 8px; } .nav-links { gap: 0; } .nav-links a { padding: 6px 8px; font-size: 13px; } }
@media (max-width: 400px) { .brand { font-size: 16px; gap: 7px; white-space: nowrap; } .brand-mark { width: 28px; height: 28px; font-size: 13px; } .nav-links a { padding: 6px 5px; font-size: 12.5px; } }
@media (max-width: 340px) { .brand-name { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 14.5px; border: 1.5px solid var(--line); background: #fff; color: var(--text); cursor: pointer; transition: .18s; font-family: inherit; box-shadow: 0 1px 2px rgba(22,18,46,.05); }
.btn:hover { transform: translateY(-1px); border-color: #d6cdee; box-shadow: var(--shadow); }
.btn-primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 24px -8px rgba(236,72,153,.55); }
.btn-primary:hover { border-color: transparent; box-shadow: 0 14px 30px -8px rgba(236,72,153,.7); }
.p-page .btn-primary { background: var(--pc); box-shadow: 0 10px 24px -10px var(--pc); }
.btn-sm { padding: 8px 15px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-danger { color: var(--red); border-color: #fecaca; }

/* hero */
.hero { position: relative; padding: 72px 0 84px; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--text); background: #fff; box-shadow: var(--shadow); }
.eyebrow .dot { padding: 3px 9px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 800; }
h1 { font-size: clamp(40px, 6.2vw, 72px); line-height: 1.02; letter-spacing: -.045em; margin: 22px 0 20px; font-weight: 800; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18.5px; color: var(--muted); max-width: 580px; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual .main { border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; max-height: 600px; width: 100%; transform: rotate(1.5deg); border: 6px solid #fff; }
.hero-visual .main img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .mini { position: absolute; width: 38%; aspect-ratio: 1; border-radius: 24px; overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow-lg); left: -8%; bottom: 8%; transform: rotate(-6deg); }
.hero-visual .mini img { width: 100%; height: 100%; object-fit: cover; }
.float-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 18px; box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 600; white-space: nowrap; animation: floaty 5s ease-in-out infinite; }
.float-chip .ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; color: #fff; }
.float-chip b { display: block; font-size: 16px; letter-spacing: -.01em; }
.float-chip small { color: var(--muted); font-weight: 500; }
.float-chip.c1 { top: 7%; left: -6%; } .float-chip.c1 .ic { background: var(--violet); }
.float-chip.c2 { top: 38%; right: -5%; animation-delay: -1.6s; } .float-chip.c2 .ic { background: var(--orange); }
.float-chip.c3 { bottom: -3%; right: 12%; animation-delay: -3.2s; } .float-chip.c3 .ic { background: var(--green); }
@keyframes floaty { 50% { transform: translateY(-8px); } }
@media (max-width: 920px) { .hero-visual { max-width: 460px; margin: 0 auto; width: 88%; } .float-chip.c1 { left: -4%; } .float-chip.c2 { right: -6%; } }

.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 40px; max-width: 560px; }
.stats-row div { background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.stats-row b { display: block; font-size: 20px; letter-spacing: -.02em; }
.stats-row div:nth-child(1) b { color: var(--violet); } .stats-row div:nth-child(2) b { color: var(--pink); }
.stats-row div:nth-child(3) b { color: var(--orange); } .stats-row div:nth-child(4) b { color: var(--teal); }
.stats-row span { font-size: 13px; color: var(--muted); }


/* marquee */
.marquee { overflow: hidden; padding: 18px 0; background: var(--text); color: #fff; transform: rotate(-1.2deg); margin: 0 -20px; }
.marquee .track { display: flex; gap: 40px; width: max-content; animation: scroll 38s linear infinite; font-weight: 700; font-size: 17px; }
.marquee span { display: inline-flex; align-items: center; gap: 40px; }
.marquee span::after { content: "✦"; color: var(--yellow); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* sections */
section { padding: 88px 0; position: relative; }
.sec-head { max-width: 680px; margin-bottom: 44px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -.04em; line-height: 1.08; margin: 12px 0 14px; }
.sec-head p { color: var(--muted); margin: 0; font-size: 17px; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: #ede9fe; color: var(--violet); }
.p-page .kicker { background: color-mix(in srgb, var(--pc) 14%, white); color: var(--pc); }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; transition: .25s; position: relative; display: flex; flex-direction: column; box-shadow: var(--shadow); border: 1px solid rgba(231,226,243,.6); }
a.card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.card:hover .card-img img { transform: scale(1.06); }
.card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.25)); }
.card .icon { position: absolute; left: 18px; top: calc(100% * 0 + 0px); z-index: 2; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: var(--c, var(--violet)); box-shadow: 0 10px 20px -6px var(--c, var(--violet)); border: 3px solid #fff; transform: translateY(-50%); }
.card-body { position: relative; padding: 36px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 2px; font-size: 21px; letter-spacing: -.02em; }
.card .sub { font-size: 13.5px; color: var(--c, var(--violet)); font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; flex: 1; }
.card .more { font-size: 14px; font-weight: 700; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.card .more::after { content: "→"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c, var(--violet)); color: #fff; font-size: 13px; transition: .2s; }
a.card:hover .more::after { transform: translateX(4px); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 26px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-weight: 800; color: #fff; font-size: 18px; margin-bottom: 14px; }
.step:nth-child(1)::before { background: var(--violet); } .step:nth-child(2)::before { background: var(--pink); }
.step:nth-child(3)::before { background: var(--orange); } .step:nth-child(4)::before { background: var(--teal); }
.step h4 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .feat { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feat { grid-template-columns: 1fr; } }
.feat div { padding: 22px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); border-top: 4px solid var(--pc); }
.feat b { display: block; margin-bottom: 4px; font-size: 16px; }
.feat span { color: var(--muted); font-size: 14.5px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; background: #fff; box-shadow: var(--shadow); }
.chips.rainbow .chip { box-shadow: none; }
.chips.rainbow .chip:nth-child(6n+1) { background: #ede9fe; color: #5b21b6; }
.chips.rainbow .chip:nth-child(6n+2) { background: #fce7f3; color: #9d174d; }
.chips.rainbow .chip:nth-child(6n+3) { background: #ffedd5; color: #9a3412; }
.chips.rainbow .chip:nth-child(6n+4) { background: #cffafe; color: #155e75; }
.chips.rainbow .chip:nth-child(6n+5) { background: #dcfce7; color: #166534; }
.chips.rainbow .chip:nth-child(6n+6) { background: #fef9c3; color: #854d0e; }

.band { background: var(--grad); color: #fff; border-radius: 32px; padding: 56px; position: relative; overflow: hidden; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.band::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.14); right: -100px; top: -160px; }
.band div { position: relative; }
.band b { display: block; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; line-height: 1.1; }
.band span { opacity: .9; font-size: 14.5px; }
@media (max-width: 760px) { .band { grid-template-columns: repeat(2, 1fr); padding: 32px; } }

footer { padding: 40px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
footer .credit { font-size: 12.5px; opacity: .8; }

/* product page */
.p-hero { position: relative; overflow: hidden; padding: 40px 0 36px; }
.p-hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .p-hero .wrap { grid-template-columns: 1fr; gap: 28px; } }
.crumb { font-size: 14px; color: var(--muted); font-weight: 500; }
.crumb a:hover { color: var(--pc); }
.p-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-weight: 700; font-size: 14px; color: var(--pc); }
.p-badge i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--pc); font-size: 15px; }
.p-hero h1 { font-size: clamp(40px, 5.6vw, 64px); margin: 14px 0 14px; }
.p-hero h1 span { color: var(--pc); }
.p-hero .lead { margin-bottom: 26px; }
.p-hero-img { position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-lg); border: 6px solid #fff; transform: rotate(1.2deg); }
.p-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.p-hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, transparent 55%, color-mix(in srgb, var(--pc) 45%, transparent)); }
.p-page .blobs i:nth-child(1) { background: color-mix(in srgb, var(--pc) 40%, white); }

.demo-sec { padding-top: 40px; }
.demo { display: grid; grid-template-columns: 1fr 330px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } }
.stage { position: relative; background: #120f24; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; display: grid; place-items: center; box-shadow: var(--shadow-lg); border: 5px solid #fff; }
.stage canvas { width: 100%; height: 100%; object-fit: contain; }
.stage .placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #c9c3e6; padding: 24px; font-size: 15px; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--pc) 35%, transparent), transparent 60%), radial-gradient(circle at 80% 90%, rgba(236,72,153,.25), transparent 55%); }
.stage .placeholder b { display: block; color: #fff; font-size: 20px; margin-bottom: 8px; }
.loading { position: absolute; inset: 0; display: none; place-items: center; background: rgba(18,15,36,.82); color: #fff; font-size: 15px; z-index: 5; text-align: center; }
.loading.on { display: grid; }
.spinner { width: 38px; height: 38px; border: 4px solid rgba(255,255,255,.2); border-top-color: var(--pc); border-radius: 50%; animation: spin 0.9s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.alert-banner { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); padding: 10px 22px; border-radius: 999px; font-weight: 800; background: var(--red); color: #fff; z-index: 4; display: none; box-shadow: 0 0 30px rgba(239,68,68,.6); animation: pulse 0.8s infinite alternate; white-space: nowrap; }
.alert-banner.on { display: block; }
@keyframes pulse { to { box-shadow: 0 0 6px rgba(239,68,68,.3); } }

.controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }
.controls input[type=file] { display: none; }

.panel { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.panel h4 { margin: 0 0 14px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--pc); font-weight: 800; }
.panel + .panel { margin-top: 16px; }
.metric { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.metric:last-child { border-bottom: 0; }
.metric span { color: var(--muted); font-size: 14px; }
.metric b { font-size: 22px; font-variant-numeric: tabular-nums; }
.big { font-size: 64px; font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--pc); }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 12px; font-weight: 700; font-size: 15px; }
.status.ok { background: #d1fae5; color: #047857; }
.status.warn { background: #fef3c7; color: #b45309; }
.status.bad { background: #fee2e2; color: #b91c1c; }
.status.idle { background: var(--bg-2); color: var(--muted); }
.bar { height: 10px; background: var(--bg-2); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; width: 0; background: var(--pc); transition: width .15s; border-radius: 99px; }
.log { max-height: 230px; overflow: auto; font-size: 13.5px; }
.log div { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }
.log div:last-child { border-bottom: 0; }
.log time { color: var(--muted); font-variant-numeric: tabular-nums; }
.log .empty { color: var(--muted); justify-content: center; }
.note { font-size: 13.5px; color: var(--muted); padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--pc) 8%, white); margin-top: 16px; border-left: 4px solid var(--pc); }
.note b { color: var(--text); }
label.field { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
label.field input[type=range] { width: 100%; accent-color: var(--pc); }
input.text, select.text { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--text); font-family: inherit; font-size: 14px; }
input.text:focus, select.text:focus { outline: none; border-color: var(--pc); }
.toggle { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }
.toggle input { accent-color: var(--pc); width: 16px; height: 16px; }

/* ===== mobile fixes ===== */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
.marquee-wrap { overflow: hidden; padding: 14px 0; }
.marquee { margin: 0 -40px; }
.stage { max-height: 78vh; margin: 0 auto; }

@media (max-width: 900px) {
  /* urutan di HP: kamera → tombol → angka hasil → catatan */
  .demo { gap: 14px; }
  .demo > div:first-child { display: contents; }
  .demo > aside { order: 3; }
  .demo .note { order: 4; margin-top: 0; }
  .demo .controls { margin-top: 0; }
  .demo-sec { padding-top: 8px; }
}
@media (max-width: 600px) {
  section { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }
  h1 { font-size: 40px; margin: 18px 0 14px; }
  .lead { font-size: 16.5px; margin-bottom: 24px; }
  .sec-head { margin-bottom: 28px; }
  .sec-head p { font-size: 15.5px; }
  .hero-cta .btn { flex: 1; }
  .stats-row { margin-top: 28px; gap: 10px; }
  .stats-row div { padding: 12px 14px; }
  .stats-row b { font-size: 17px; }
  .stats-row span { font-size: 12.5px; line-height: 1.4; }
  .hero-visual { width: 82%; }
  .float-chip { padding: 7px 12px 7px 7px; font-size: 12px; border-radius: 14px; }
  .float-chip .ic { width: 30px; height: 30px; font-size: 15px; border-radius: 10px; }
  .float-chip b { font-size: 13.5px; }
  .float-chip.c1 { left: -8%; } .float-chip.c2 { right: -8%; }
  .band { padding: 28px 24px; gap: 20px; border-radius: 24px; }
  .marquee .track { font-size: 15px; }

  /* halaman demo */
  .p-hero { padding: 24px 0 8px; }
  .p-hero h1 { font-size: 42px; margin: 12px 0 10px; }
  .p-hero .lead { margin-bottom: 18px; }
  .p-hero .btn-primary { width: 100%; }
  .p-hero-img { aspect-ratio: 16/9; transform: none; border-width: 4px; border-radius: 22px; }
  .stage { border-width: 3px; border-radius: 18px; }
  .stage .placeholder { font-size: 13.5px; padding: 16px; }
  .stage .placeholder b { font-size: 17px; }
  .controls { gap: 8px; }
  .controls .btn { flex: 1 1 calc(50% - 4px); padding: 12px 10px; font-size: 14px; }
  .controls .btn:disabled[title^="Upload"] { display: none; }
  .controls .toggle { flex-basis: 100%; justify-content: center; padding: 4px 0; }
  .panel { padding: 18px; border-radius: 18px; }
  .panel + .panel { margin-top: 12px; }
  .big { font-size: 52px; }
  .metric { padding: 8px 0; }
  .metric b { font-size: 19px; }
  .alert-banner { font-size: 13px; padding: 8px 14px; top: 10px; }
  .feat div { padding: 18px; }
}

/* pilihan kamera depan / belakang */
.cam-switch { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); box-shadow: 0 1px 2px rgba(22,18,46,.05); }
.cam-switch span { font-size: 13px; font-weight: 700; color: var(--muted); padding: 0 8px 0 10px; }
.cam-switch button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer; transition: .15s; }
.cam-switch button.on { background: var(--pc, #7c3aed); color: #fff; }
@media (max-width: 640px) {
  .controls .cam-switch { flex-basis: 100%; justify-content: center; }
  .cam-switch button { flex: 1; }
}

/* ===== SEO: FAQ, panduan, footer links ===== */
.wrap.narrow { max-width: 860px; }
.p-hero h1 .h1-sub { display: block; font-size: clamp(15px, 1.7vw, 19px); letter-spacing: 0; line-height: 1.4; font-weight: 700; color: var(--muted); margin-top: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 22px; margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pc); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }
.ggrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ggrid.big { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .ggrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ggrid, .ggrid.big { grid-template-columns: 1fr; } }
.gcard { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); border-top: 4px solid var(--c); transition: transform .2s; }
.gcard:hover { transform: translateY(-3px); }
.gcard .gi { font-size: 26px; }
.gcard b { font-size: 17px; }
.gcard .gdesc { color: var(--muted); font-size: 14px; flex: 1; }
.gcard .gmore { align-self: flex-start; margin-top: 10px; background: var(--c); color: #fff; border-color: transparent; }
.gcard:hover .gmore { filter: brightness(1.08); }
footer .foot-links { margin-top: 8px; font-size: 13px; line-height: 1.8; }
footer .foot-links a:hover { color: var(--violet); }
.g-hero .wrap { grid-template-columns: 1fr; max-width: 900px; }
.g-meta { color: var(--muted); font-size: 14px; }
.g-body { padding-top: 24px; }
.g-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .g-layout { grid-template-columns: 1fr; gap: 24px; } }
.toc { position: sticky; top: 90px; background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); font-size: 14px; }
@media (max-width: 900px) { .toc { position: static; } }
.toc ol { margin: 8px 0 0; padding-left: 18px; }
.toc li { margin: 6px 0; }
.toc a:hover { color: var(--pc); }
.prose { min-width: 0;  max-width: 760px; font-size: 17px; line-height: 1.75; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -.03em; line-height: 1.2; margin: 44px 0 12px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 26px 0 6px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin: 6px 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; background: color-mix(in srgb, var(--pc) 9%, white); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.prose a { color: var(--pc); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-2); }
footer .copy { flex-basis: 100%; text-align: center; margin-top: 8px; }

/* ===== Hero: background animasi (assets/hero-bg.js) ===== */
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); mask-image: linear-gradient(to bottom, #000 82%, transparent); }
.hero .blobs i { animation: blobDrift 18s ease-in-out infinite alternate; }
.hero .blobs i:nth-child(2) { animation-duration: 22s; animation-delay: -6s; }
.hero .blobs i:nth-child(3) { animation-duration: 26s; animation-delay: -12s; }
.hero .blobs i:nth-child(4) { animation-duration: 20s; animation-delay: -3s; }
@keyframes blobDrift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, 40px) scale(1.12); } 100% { transform: translate(-40px, 70px) scale(.94); } }
.hero h1, .hero .lead { text-shadow: 0 0 18px rgba(251,249,255,.9), 0 0 2px rgba(251,249,255,.9); }
.hero h1 .grad { text-shadow: none; }
@media (prefers-reduced-motion: reduce) { .hero .blobs i { animation: none; } }

/* ===== Kartu demo: scan & kotak deteksi (dipicu scroll) ===== */
.card-img::before { content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 30%; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--c, var(--violet)) 35%, transparent) 85%, rgba(255,255,255,.9) 100%); }
@keyframes cardScan { from { top: -30%; } to { top: 100%; } }
.card .det { position: absolute; inset: 24% 24% 16% 24%; z-index: 2; pointer-events: none; opacity: 0; transform: scale(1.3); transition: opacity .3s, transform .45s cubic-bezier(.2,1.4,.4,1);
  --k: #fff; --s: 18px; --w: 3px;
  background:
    linear-gradient(var(--k),var(--k)) top left / var(--s) var(--w), linear-gradient(var(--k),var(--k)) top left / var(--w) var(--s),
    linear-gradient(var(--k),var(--k)) top right / var(--s) var(--w), linear-gradient(var(--k),var(--k)) top right / var(--w) var(--s),
    linear-gradient(var(--k),var(--k)) bottom left / var(--s) var(--w), linear-gradient(var(--k),var(--k)) bottom left / var(--w) var(--s),
    linear-gradient(var(--k),var(--k)) bottom right / var(--s) var(--w), linear-gradient(var(--k),var(--k)) bottom right / var(--w) var(--s);
  background-repeat: no-repeat; outline: 1.5px dashed color-mix(in srgb, var(--c, var(--violet)) 80%, #fff); outline-offset: -1px; filter: drop-shadow(0 0 6px rgba(0,0,0,.35)); }
.card .det::after { content: attr(data-l); position: absolute; left: 0; bottom: calc(100% + 4px); white-space: nowrap; font: 700 11.5px/1 "Plus Jakarta Sans", system-ui, sans-serif; color: #fff;
  background: var(--c, var(--violet)); padding: 5px 8px; border-radius: 6px; clip-path: inset(0 100% 0 0); }
@keyframes detType { to { clip-path: inset(0 0 0 0); } }
@keyframes iconPop { 0% { transform: translateY(-50%) scale(1) rotate(0); } 40% { transform: translateY(-62%) scale(1.15) rotate(-10deg); } 100% { transform: translateY(-50%) scale(1) rotate(0); } }

/* ===== Animasi kartu demo saat scroll (assets/reveal.js) ===== */
a.card.reveal { opacity: 0; translate: 0 48px; scale: .96; transition: opacity .7s var(--d, 0ms), translate .8s cubic-bezier(.2,.9,.3,1) var(--d, 0ms), scale .8s cubic-bezier(.2,.9,.3,1) var(--d, 0ms), transform .25s, box-shadow .25s; }
a.card.reveal.in { opacity: 1; translate: 0 0; scale: 1; }
a.card.in .card-img::before { animation: cardScan 1.4s cubic-bezier(.5,0,.5,1) calc(var(--d, 0ms) + .45s) 2 both, scanFade 2.8s calc(var(--d, 0ms) + .45s) both; }
@keyframes scanFade { 0%, 90% { opacity: 1; } 100% { opacity: 0; } }
a.card.in .det { animation: detShow 3.6s cubic-bezier(.2,1.4,.4,1) calc(var(--d, 0ms) + .7s) both; }
@keyframes detShow { 0% { opacity: 0; transform: scale(1.3); } 12%, 82% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
a.card.in .det::after { animation: detType .7s steps(14) calc(var(--d, 0ms) + 1s) forwards; }
a.card.in .icon { animation: iconPop .7s cubic-bezier(.3,1.6,.5,1) calc(var(--d, 0ms) + .5s); }
a.card.in .card-img img { animation: imgZoom 1.4s cubic-bezier(.2,.9,.3,1) var(--d, 0ms) both; }
@keyframes imgZoom { from { transform: scale(1.18); } to { transform: scale(1); } }

/* diagram SVG di artikel panduan */
.prose figure.dg { margin: 22px 0 28px; padding: 18px 14px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.prose figure.dg svg { display: block; width: 100%; height: auto; overflow: visible; }
.prose figure.dg .dg-m { display: none; max-width: 400px; margin: 0 auto; }
.prose figure.dg figcaption { margin-top: 10px; text-align: center; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 640px) { .prose figure.dg .dg-d { display: none; } .prose figure.dg .dg-m { display: block; } }
.dg-flow { animation: dg-flow 1.2s linear infinite; }
@keyframes dg-flow { to { stroke-dashoffset: -22; } }
@media (prefers-reduced-motion: reduce) { .dg-flow { animation: none; } }

/* ===== Kategori demo (beranda) ===== */
.cat-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -14px 0 40px; }
.cchip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-weight: 700; font-size: 14.5px; color: var(--text); border: 2px solid transparent; transition: .2s; white-space: nowrap; }
.cchip i { font-style: normal; font-size: 12px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; background: color-mix(in srgb, var(--c, var(--violet)) 14%, white); color: var(--c, var(--violet)); }
.cchip:hover { border-color: color-mix(in srgb, var(--c, var(--violet)) 40%, white); transform: translateY(-2px); }
.cchip.on { background: var(--c, linear-gradient(120deg, #7c3aed, #ec4899)); color: #fff; box-shadow: 0 10px 22px -10px var(--c, #7c3aed); }
.cchip.on i { background: rgba(255,255,255,.25); color: #fff; }
.cat-group + .cat-group { margin-top: 56px; }
.cat-group[hidden] { display: none; }
.cat-head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; padding-bottom: 16px; border-bottom: 2px dashed color-mix(in srgb, var(--c) 30%, white); }
.cat-ic { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: color-mix(in srgb, var(--c) 14%, white); }
.cat-head h3 { margin: 0; font-size: 24px; letter-spacing: -.03em; color: var(--c); }
.cat-head p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.cat-n { margin-left: auto; flex: none; font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, white); color: var(--c); }
.card .ctag { position: absolute; top: 12px; right: 12px; z-index: 3; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(20,16,40,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (max-width: 620px) {
  .cat-filter { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: -20px -16px 32px; padding: 4px 16px 10px; scrollbar-width: none; }
  .cat-filter::-webkit-scrollbar { display: none; }
  .cchip { box-shadow: 0 1px 2px rgba(22,18,46,.06), 0 4px 10px -6px rgba(76,29,149,.25); border-color: #ece8f6; }
  .cchip.on { box-shadow: none; }
  .cat-head { gap: 12px; }
  .cat-ic { width: 44px; height: 44px; font-size: 22px; }
  .cat-head h3 { font-size: 20px; }
  .cat-head p { font-size: 13.5px; }
  .cat-n { display: none; }
}
.prose strong { color: var(--text); font-weight: 800; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--pc, #7c3aed) 22%, transparent) 62%); }
.prose .callout { margin: 0 0 28px; padding: 18px 20px; border-radius: 18px; border: 2px solid color-mix(in srgb, var(--pc, #7c3aed) 35%, transparent); background: color-mix(in srgb, var(--pc, #7c3aed) 7%, #fff); }
.prose .callout > b { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--pc, #7c3aed); margin-bottom: 6px; }
.prose .callout p { margin: 8px 0 0; }

/* label paket: Gratis / 💎 Premium + kartu premium disematkan di atas */
.plan { position: absolute; left: 12px; top: 12px; z-index: 3; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; background: rgba(255,255,255,.92); color: #166534; box-shadow: 0 4px 10px -4px rgba(0,0,0,.3); }
.plan.pro { background: linear-gradient(120deg, #fbbf24, #f59e0b); color: #451a03; }
.card.pro { border: 2px solid #f59e0b; }
.cat-group.pinned { padding: 22px; border-radius: calc(var(--radius) + 6px); background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid #fde68a; }
.fcard { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 2px solid #f59e0b; transition: .25s; }
.fcard:hover { transform: translateY(-3px); }
.fcard .card-img { aspect-ratio: auto; min-height: 100%; }
.fbody { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.fh { display: flex; gap: 12px; align-items: center; }
.ficon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--c); flex: none; }
.fcard h3 { margin: 0; font-size: 22px; } .fcard .sub { font-size: 13.5px; color: var(--c); font-weight: 700; }
.fcard p { margin: 0; color: var(--muted); font-size: 14.5px; }
.fplans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13.5px; }
.fplans > div { padding: 10px 12px; border-radius: 14px; background: #f0fdf4; }
.fplans > .fp { background: #fffbeb; border: 1px solid #fde68a; }
.fplans ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); } .fplans li + li { margin-top: 4px; }
.ffoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; }
.fcard .more { font-size: 14px; font-weight: 700; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.fcard .more::after { content: "→"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; font-size: 13px; }
.price { font-weight: 800; font-size: 14px; color: #92400e; background: #fef3c7; padding: 6px 12px; border-radius: 999px; }
@media (max-width: 860px) { .fcard { grid-template-columns: 1fr; } .fcard .card-img { aspect-ratio: 16/10; } }
@media (max-width: 520px) { .fplans { grid-template-columns: 1fr; } .cat-group.pinned { padding: 14px; } }
.fcard .card-img img { object-position: left top; }
.fcard .more, .price { white-space: nowrap; }

/* pencarian & halaman demo di beranda */
.dsearch { display: flex; align-items: center; gap: 10px; max-width: 620px; margin: -10px auto 10px; padding: 6px 6px 6px 18px; background: #fff; border-radius: 999px; box-shadow: var(--shadow); border: 2px solid transparent; }
.dsearch:focus-within { border-color: color-mix(in srgb, var(--violet) 45%, white); }
.dsearch input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 16px; background: none; color: var(--text); min-width: 0; padding: 8px 0; }
.dsearch input::-webkit-search-cancel-button { cursor: pointer; }
.dq-info { text-align: center; color: var(--muted); font-size: 14px; min-height: 1.4em; margin: 0 0 18px; }
.card[hidden], .fcard[hidden] { display: none; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 22px; }
.pager:empty { display: none; }
.pager button { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 12px; border: 1.5px solid var(--line, #e7e2f3); background: #fff; font: inherit; font-weight: 700; color: var(--text); cursor: pointer; }
.pager button:hover:not(:disabled) { border-color: var(--c, var(--violet)); }
.pager button.on { background: var(--c, var(--violet)); border-color: var(--c, var(--violet)); color: #fff; }
.pager button:disabled { opacity: .35; cursor: default; }
.pager span { font-size: 13px; color: var(--muted); margin-left: 6px; }
@media (max-width: 520px) { .dsearch { margin-top: -18px; } .dsearch .btn { display: none; } }
/* kotak cari di header */
.nsearch { display: flex; align-items: center; background: #fff; border: 1px solid var(--line, #e7e2f3); border-radius: 999px; padding: 2px 2px 2px 12px; margin-left: auto; }
.nsearch input { border: 0; outline: 0; background: transparent; width: 140px; font: inherit; font-size: 14px; padding: 6px 0; }
.nsearch button { border: 0; background: transparent; cursor: pointer; font-size: 15px; width: 32px; height: 32px; border-radius: 999px; }
.nsearch button:hover { background: #f3effb; }
.nsearch:focus-within { box-shadow: 0 0 0 3px rgba(124,58,237,.18); }
@media (max-width: 860px) { .nsearch input { width: 90px; } }
@media (max-width: 640px) { .nsearch { padding: 0; border: 0; background: transparent; margin-left: 0; } .nsearch input { display: none; } }
/* halaman harga */
.prose .hgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 10px 0 24px; }
.prose .hcard { position: relative; background: #fff; border: 1px solid var(--line, #e7e2f3); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.prose .hcard.top { border: 2px solid #b45309; }
.prose .hcard ul { margin: 8px 0 12px; padding-left: 18px; font-size: 14.5px; flex: 1; }
.prose .hcard .btn { align-self: flex-start; }
.prose .hname { font-weight: 800; font-size: 16px; }
.prose .hprice { font-weight: 800; font-size: 28px; letter-spacing: -.02em; }
.prose .hsub { font-size: 13.5px; color: var(--muted); }
.prose .hbadge { position: absolute; top: -11px; right: 14px; background: #b45309; color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.nacc { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; background: #fff; border: 1px solid var(--line, #e7e2f3); font-size: 16px; margin-left: auto; }
.nacc:hover { box-shadow: var(--shadow); }
@media (max-width: 640px) { .nacc { width: 32px; height: 32px; border: 0; background: transparent; margin-left: 0; } }

/* slideshow fitur premium di beranda */
.fslide { position: relative; }
.ftrack { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px; outline: 0; }
.ftrack::-webkit-scrollbar { display: none; }
.ftrack > .fcard { flex: 0 0 100%; scroll-snap-align: start; }
.ftrack > .fcard:hover { transform: none; }
.fnav { position: absolute; top: calc(50% - 24px); width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #92400e; font-size: 26px; font-weight: 800; line-height: 1; cursor: pointer; box-shadow: 0 6px 16px -6px rgba(0,0,0,.35); z-index: 4; display: grid; place-items: center; }
.fnav.prev { left: -14px; } .fnav.next { right: -14px; }
.fnav:hover { background: #fef3c7; }
.fdots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.fdots button { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: #fcd34d; cursor: pointer; transition: .25s; }
.fdots button.on { width: 28px; background: #d97706; }
.fslide.one .fnav, .fslide.one .fdots { display: none; }
@media (max-width: 860px) { .fnav { top: 22%; } .fnav.prev { left: 6px; } .fnav.next { right: 6px; } }

/* ===== Premium di beranda: panel gelap + aksen emas (beda jelas dari demo gratis) ===== */
.cat-group.prem { --gold: #fbbf24; padding: 30px; border-radius: 30px; color: #e2e8f0; border: 1px solid rgba(251,191,36,.35); position: relative; overflow: hidden;
  background: radial-gradient(900px 380px at 0% -10%, rgba(245,158,11,.28), transparent 60%), radial-gradient(700px 380px at 100% 0%, rgba(190,24,93,.30), transparent 60%),
    radial-gradient(600px 300px at 60% 110%, rgba(67,56,202,.35), transparent 60%), linear-gradient(160deg, #0a0f1f, #141a33 55%, #1c1231);
  box-shadow: 0 40px 80px -40px rgba(15,23,42,.75); }
.cat-group.prem::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.2px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 70%); }
.prem > * { position: relative; }
.prem-head { display: grid; grid-template-columns: 1fr 260px; gap: 28px; align-items: center; }
.prem-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #1f1300;
  background: linear-gradient(90deg, #fde68a, #f59e0b); padding: 6px 13px; border-radius: 999px; box-shadow: 0 6px 20px -6px rgba(245,158,11,.7); }
.prem-head h3 { color: #fff; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12; letter-spacing: -.02em; margin: 14px 0 10px; }
.prem-head h3 span { background: linear-gradient(90deg, #fde68a, #f59e0b 60%, #fb7185); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prem-head p { color: #cbd5e1; margin: 0 0 16px; font-size: 15.5px; max-width: 680px; }
.prem-perks { display: flex; flex-wrap: wrap; gap: 8px; }
.prem-perks span { font-size: 13px; font-weight: 600; color: #f1f5f9; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); padding: 6px 12px; border-radius: 999px; }
.prem-cta { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding: 20px 18px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(251,191,36,.16), rgba(255,255,255,.04)); border: 1px solid rgba(251,191,36,.45); backdrop-filter: blur(6px); }
.prem-cta small { color: #94a3b8; font-size: 12.5px; }
.prem-cta b { font-size: 34px; letter-spacing: -.02em; color: #fde68a; line-height: 1.1; }
.prem-btn { margin-top: 12px; width: 100%; justify-content: center; border: 0; color: #1f1300 !important; font-weight: 800;
  background: linear-gradient(90deg, #fde68a, #f59e0b); box-shadow: 0 10px 24px -10px rgba(245,158,11,.8); }
.prem-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.prem-link { margin-top: 8px; font-size: 13.5px; font-weight: 700; color: #fde68a; text-decoration: none; } .prem-link:hover { text-decoration: underline; }
.prem-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 26px 0 16px; scrollbar-width: none; }
.prem-tabs::-webkit-scrollbar { display: none; }
.ptab { position: relative; overflow: hidden; display: flex; gap: 10px; align-items: center; text-align: left; padding: 11px 12px; border-radius: 16px; cursor: pointer; font: inherit;
  color: #e2e8f0; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10); transition: .2s; }
.ptab:hover { background: rgba(255,255,255,.08); }
.ptab .pi { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; flex: none; background: var(--c); box-shadow: 0 6px 16px -6px var(--c); }
.ptab b { display: block; font-size: 14.5px; color: #fff; } .ptab small { display: block; font-size: 11.5px; color: #94a3b8; line-height: 1.3; }
.ptab.on { background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.7); }
.ptab::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, #fde68a, #f59e0b); }
.ptab.on::after { animation: ptab 6s linear forwards; }
.prem.paused .ptab.on::after { animation-play-state: paused; }
@keyframes ptab { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .ptab.on::after { animation: none; width: 100%; } }
.prem .fcard { background: #0e1528; border: 1px solid rgba(251,191,36,.45); box-shadow: 0 24px 60px -30px rgba(0,0,0,.9); }
.prem .fcard:hover { transform: none; border-color: rgba(251,191,36,.8); }
.prem .fcard .card-img { background: #fff; }
.prem .fcard h3 { color: #fff; } .prem .fcard .sub { color: color-mix(in srgb, var(--c) 45%, #fff); }
.prem .fcard p { color: #cbd5e1; }
.prem .fplans > div { background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.28); color: #bbf7d0; }
.prem .fplans > .fp { background: rgba(251,191,36,.10); border-color: rgba(251,191,36,.45); color: #fde68a; }
.prem .fplans ul { color: #cbd5e1; }
.prem .fcard .more { color: #fff; }
.prem .price { color: #1f1300; background: linear-gradient(90deg, #fde68a, #f59e0b); }
.prem .fnav { background: rgba(15,23,42,.9); color: #fde68a; border: 1px solid rgba(251,191,36,.5); }
.prem .fnav:hover { background: #1e293b; }
.prem .plan.pro { box-shadow: 0 4px 14px -4px rgba(245,158,11,.8); }
@media (max-width: 860px) {
  .cat-group.prem { padding: 20px 16px; border-radius: 24px; }
  .prem-head { grid-template-columns: 1fr; gap: 18px; }
  .prem-cta { flex-direction: row; flex-wrap: wrap; justify-content: center; column-gap: 6px; }
  .prem-cta b { font-size: 26px; } .prem-btn { flex-basis: 100%; }
  .prem-tabs { display: flex; overflow-x: auto; margin: 20px -16px 14px; padding: 0 16px; }
  .ptab { flex: 0 0 auto; } .ptab small { display: none; }
}
/* kartu premium di grid kategori: bingkai emas + cahaya, beda dari kartu gratis */
.card.pro { border: 2px solid transparent; background: linear-gradient(var(--card, #fff), var(--card, #fff)) padding-box, linear-gradient(135deg, #fde68a, #f59e0b 45%, #b45309) border-box;
  box-shadow: 0 18px 40px -22px rgba(245,158,11,.75); }
.card.pro .more::before { content: "💎 "; }
.ftrack > .fcard { min-width: 0; }
.ffoot { flex-wrap: wrap; }
@media (max-width: 860px) { .prem .fnav { top: 70px; width: 38px; height: 38px; } }

/* footer ringkas: merek + 3 kolom tautan */
footer .wrap.fgrid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
footer .fbrand b { font-size: 17px; color: var(--text); } footer .fbrand p { margin: 6px 0 0; font-size: 13.5px; max-width: 300px; line-height: 1.6; }
footer nav h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
footer nav a { display: block; font-size: 13.5px; color: var(--muted); text-decoration: none; padding: 3px 0; }
footer nav a:hover { color: var(--violet); }
footer .fgrid .copy { grid-column: 1 / -1; text-align: center; font-size: 13px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; }
@media (max-width: 760px) { footer .wrap.fgrid { grid-template-columns: 1fr 1fr; gap: 22px; } footer .fbrand { grid-column: 1 / -1; } }

/* blok harga di halaman detail lab premium */
.lab-harga { background: #fff; border-radius: 26px; padding: 26px; box-shadow: var(--shadow); border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #fde68a, #f59e0b 45%, #b45309) border-box; margin-bottom: 10px; }
.lh-h { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.lh-ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: linear-gradient(135deg, #fde68a, #f59e0b); flex: none; }
.lh-h h2 { margin: 0; font-size: clamp(22px, 2.6vw, 28px); } .lh-h p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.lh-t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.lh-t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1.5px solid var(--line); }
.lh-t td { padding: 11px 10px; border-bottom: 1px solid var(--line); } .lh-t .n { text-align: right; white-space: nowrap; }
.lh-t td.n:nth-child(2) { font-weight: 800; color: #92400e; }
.lh-note { font-size: 12.5px; color: var(--muted); margin: 8px 0 16px; }
.lh-pk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lh-p { border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; text-align: center; display: grid; gap: 2px; }
.lh-p.top { border-color: #f59e0b; background: #fffbeb; }
.lh-p b { font-size: 14px; } .lh-p big { font-size: 20px; font-weight: 800; } .lh-p small { font-size: 12px; color: var(--muted); }
.lh-x { display: grid; gap: 2px; margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }
.lh-x b { font-size: 13px; color: var(--text); }
.prose .kali { width: 100%; border-collapse: collapse; font-size: 14px; } .prose .kali th, .prose .kali td { padding: 9px 10px; border-bottom: 1px solid var(--line, #e7e2f3); text-align: left; }
.prose .kali .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } .prose .kali th small { font-weight: 600; color: var(--muted); }
.prose .tbl-wrap { overflow-x: auto; }
.lh-ok { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 13.5px; }
.lh-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 640px) { .lab-harga { padding: 18px 14px; } .lh-pk { grid-template-columns: 1fr; } .lh-ok { grid-template-columns: 1fr; } .lh-t { font-size: 13px; } .lh-t td, .lh-t th { padding: 9px 6px; } }
@media (max-width: 640px) {
  .lh-t thead { display: none; }
  .lh-t tr { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .lh-t td { border: 0; padding: 0; }
  .lh-t td:first-child { grid-column: 1 / -1; font-weight: 600; font-size: 13.5px; }
  .lh-t td.n { text-align: left; font-size: 13px; }
  .lh-t td.n:last-child { color: var(--muted); }
  .lh-pk { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .lh-p { padding: 9px 4px; } .lh-p big { font-size: 15px; } .lh-p small { font-size: 10.5px; } .lh-p b { font-size: 12.5px; } .lh-x { font-size: 11px; } .lh-x b { font-size: 11.5px; }
}
@media (min-width: 900px) { .lh-ok { grid-template-columns: repeat(4, auto); justify-content: start; } }
/* "Demo lainnya": kartu premium mencolok (gelap + emas), beda jelas dari kartu gratis */
#others .card.pro { color: #e2e8f0; border: 2px solid transparent;
  background: linear-gradient(160deg, #0a0f1f, #141a33 55%, #22133a) padding-box, linear-gradient(135deg, #fde68a, #f59e0b 45%, #b45309) border-box;
  box-shadow: 0 26px 50px -22px rgba(245,158,11,.65), 0 0 0 1px rgba(251,191,36,.15); }
#others .card.pro:hover { box-shadow: 0 30px 60px -20px rgba(245,158,11,.85); }
#others .card.pro .card-body { background: transparent; }
#others .card.pro h3 { color: #fff; }
#others .card.pro .sub { color: color-mix(in srgb, var(--c) 40%, #fff); }
#others .card.pro p { color: #cbd5e1; }
#others .card.pro .more { color: #fde68a; }
#others .card.pro .card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(10,15,31,.55)); pointer-events: none; }
#others .card.pro .plan.pro { box-shadow: 0 0 0 2px rgba(10,15,31,.35), 0 6px 18px -4px rgba(245,158,11,.9); }
@media (max-width: 640px) { .nl-x { display: none; } }
@media (max-width: 440px) { .brand { white-space: nowrap; } .nav-links a { padding: 6px 5px; } }
@media (max-width: 380px) { .brand-name { display: none; } }
/* menu atas: Premium Lab dibuat mencolok (pill emas + kilatan + glow + label BARU) */
.nav-links a.nprem { position: relative; overflow: visible; color: #3b2300; font-weight: 800; background: linear-gradient(135deg, #fde68a 0%, #f59e0b 45%, #fbbf24 70%, #fef3c7 100%); background-size: 200% 200%;
  box-shadow: 0 0 0 1px rgba(180,83,9,.35), 0 4px 14px rgba(245,158,11,.45); animation: npGlow 2.6s ease-in-out infinite, npBg 6s ease infinite; isolation: isolate; }
.nav-links a.nprem::before { content: ""; position: absolute; inset: 0; border-radius: inherit; overflow: hidden; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.85) 48%, transparent 66%) -150% 0 / 60% 100% no-repeat; animation: npShine 3.2s ease-in-out infinite; }
.nav-links a.nprem:hover { color: #1f1300; background: linear-gradient(135deg, #fef3c7, #fbbf24 50%, #f59e0b); transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(180,83,9,.5), 0 8px 22px rgba(245,158,11,.6); }
.nprem .ng { display: inline-block; animation: npGem 3.2s ease-in-out infinite; }
.nprem .nnew { position: absolute; top: -7px; right: -6px; font-style: normal; font-size: 8.5px; font-weight: 900; letter-spacing: .5px; line-height: 1; padding: 3px 5px; border-radius: 999px;
  color: #fff; background: #dc2626; box-shadow: 0 2px 6px rgba(220,38,38,.45); animation: npBadge 2.6s ease-in-out infinite; }
@keyframes npGlow { 0%,100% { box-shadow: 0 0 0 1px rgba(180,83,9,.35), 0 4px 14px rgba(245,158,11,.40); } 50% { box-shadow: 0 0 0 1px rgba(180,83,9,.45), 0 4px 22px rgba(245,158,11,.75), 0 0 0 4px rgba(251,191,36,.18); } }
@keyframes npBg { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes npShine { 0%,55% { background-position: -150% 0; } 100% { background-position: 250% 0; } }
@keyframes npGem { 0%,70%,100% { transform: none; } 78% { transform: rotate(-14deg) scale(1.25); } 86% { transform: rotate(10deg) scale(1.15); } }
@keyframes npBadge { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@media (max-width: 640px) { .nav-links a.nprem { padding: 6px 9px; margin-left: 3px; } .nprem .nnew { top: -8px; right: -4px; font-size: 7.5px; padding: 2px 4px; } }
@media (prefers-reduced-motion: reduce) { .nav-links a.nprem, .nav-links a.nprem::before, .nprem .ng, .nprem .nnew { animation: none; } }
.nav-links a { white-space: nowrap; }
@media (max-width: 350px) { .nav-links a { padding: 6px 4px; font-size: 12px; } .nav-links a.nprem { padding: 5px 7px; } }
