/*
  Shared stylesheet for the template catalogue (upvire.com/templates/) and
  every template's detail page. The demos themselves do NOT use it: a demo is
  the product, and ships as one self-contained file.

  Tokens copied from the portal (deploy/portal/index.html). Light only, as there.
*/

/* Tokens copied from the portal. Light only, as there. */
:root {
	color-scheme: light;

	--bg: #ffffff;
	--bg-sunk: #f6f8fc;
	--surface: rgba(255, 255, 255, 0.72);
	--surface-solid: #ffffff;
	--fg: #08111f;
	--fg-muted: #4a5872;
	--fg-faint: #5a6780;
	--border: rgba(9, 20, 40, 0.09);
	--border-strong: rgba(9, 20, 40, 0.16);

	--blue: #2563eb;
	--purple: #7c3aed;
	--green: #047857;

	--lift-1: 0 1px 2px rgba(9, 20, 40, 0.05), 0 6px 16px rgba(9, 20, 40, 0.05);
	--lift-2: 0 2px 4px rgba(9, 20, 40, 0.06), 0 18px 40px rgba(9, 20, 40, 0.09);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	overflow-x: clip;
}

body {
	margin: 0;
	min-height: 100vh;
	background: var(--bg);
	color: var(--fg);
	font-family:
		Inter,
		ui-sans-serif,
		system-ui,
		-apple-system,
		sans-serif;
	line-height: 1.6;
}

.ambient {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(60rem 40rem at 12% -8%, rgba(59, 130, 246, 0.14), transparent 62%),
		radial-gradient(52rem 38rem at 92% 4%, rgba(168, 85, 247, 0.14), transparent 60%);
}

a {
	color: inherit;
	text-decoration: none;
}

.shell {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 16px;
}
@media (min-width: 640px) {
	.shell {
		padding: 0 24px;
	}
}

/* ── Header ─────────────────────────────────────────────────────── */
header {
	position: sticky;
	top: 0;
	z-index: 30;
	padding: 14px 0;
	background: rgba(255, 255, 255, 0.78);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--border);
}
.header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.wordmark {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 23px;
	font-weight: 900;
	letter-spacing: -0.035em;
}
.wordmark em {
	color: var(--blue);
	font-style: normal;
}
.wordmark svg {
	width: 30px;
	height: 30px;
}
.crumb {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--fg-muted);
}

/* Crumb and language switch sit together on the right. Same button as the
   apex portal's header, so the switch looks the same on every static page. */
.header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.lang-toggle {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 0.4rem;
	height: 38px;
	padding: 0 0.75rem;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--fg-muted);
	font-family: inherit;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition:
		border-color 0.2s,
		color 0.2s,
		background-color 0.2s;
}
.lang-toggle:hover {
	border-color: var(--border-strong);
	color: var(--fg);
	background: var(--surface-solid);
}
.lang-toggle:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.4);
	outline-offset: 2px;
}
.lang-toggle svg {
	width: 1rem;
	height: 1rem;
}
/* Narrow phones: the crumb gives way so the switch never wraps or overflows. */
@media (max-width: 420px) {
	.header-actions .crumb {
		display: none;
	}
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
	padding: 48px 0 8px;
	text-align: center;
}
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--surface);
	box-shadow: var(--lift-1);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--fg-muted);
}
h1 {
	margin: 22px auto 0;
	max-width: 20ch;
	font-size: clamp(2rem, 5.6vw, 3.4rem);
	line-height: 1.08;
	font-weight: 900;
	letter-spacing: -0.04em;
	text-wrap: balance;
}
.gradient {
	background: linear-gradient(100deg, var(--blue), var(--purple) 60%, var(--green));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.lede {
	margin: 18px auto 0;
	max-width: 56ch;
	font-size: clamp(1rem, 2.2vw, 1.1rem);
	color: var(--fg-muted);
	text-wrap: pretty;
}

/* ── Product card ───────────────────────────────────────────────── */
section {
	padding: 40px 0;
}
h2 {
	margin: 0 0 20px;
	font-size: clamp(1.4rem, 3.4vw, 1.9rem);
	font-weight: 800;
	letter-spacing: -0.03em;
}

.product {
	display: grid;
	gap: 0;
	border: 1px solid var(--border);
	border-radius: 24px;
	background: var(--surface-solid);
	box-shadow: var(--lift-2);
	overflow: hidden;
}
@media (min-width: 820px) {
	.product {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	}
}

.shot {
	position: relative;
	display: flex;
	align-items: center;
	padding: 28px 28px 20px;
	background: #fff7ed;
	border-bottom: 1px solid var(--border);
}
.shot .previews,
.shot .browser,
.shot .browser-bar,
.shot .phone {
	display: block;
}
.shot .previews {
	width: 100%;
}
/* The whole frame still opens the detail page; the preview switch sits above
   this overlay so its buttons stay clickable. */
.shot-link {
	position: absolute;
	inset: 0;
	z-index: 1;
}
.shot .preview-switch {
	position: relative;
	z-index: 2;
}
.shot .browser-bar {
	display: flex;
}
@media (min-width: 820px) {
	.shot {
		border-bottom: 0;
		border-right: 1px solid var(--border);
	}
}

.product-body {
	display: flex;
	flex-direction: column;
	padding: 28px;
}
.tag {
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 999px;
	background: #fff7ed;
	color: #c2410c;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.product-body h3 {
	margin: 12px 0 6px;
	font-size: 1.45rem;
	font-weight: 800;
	letter-spacing: -0.025em;
}
.product-body p {
	margin: 0;
	color: var(--fg-muted);
}
.checks {
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}
.checks li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 0.95rem;
}
.checks svg {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	color: var(--green);
}

.buy {
	margin-top: auto;
	padding-top: 24px;
}
.price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-size: 1.7rem;
	font-weight: 900;
	letter-spacing: -0.03em;
}
.price small {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--fg-faint);
}
.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 12px 22px;
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 800;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}
.btn:hover {
	transform: translateY(-2px);
}
.btn-primary {
	flex: 1 1 180px;
	background: linear-gradient(100deg, var(--blue), var(--purple));
	color: #fff;
	box-shadow: 0 10px 30px color-mix(in srgb, var(--purple) 28%, transparent);
}
.btn-ghost {
	flex: 1 1 140px;
	border: 1px solid var(--border-strong);
	background: var(--surface-solid);
}
.btn-ghost:hover {
	box-shadow: var(--lift-2);
}
.btn:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent);
	outline-offset: 2px;
}

/* Store buttons in their store's colours, with its mark. Keyed on the href,
   not a class: the language switch swaps the Gumroad and Lynk.id links
   between buttons, and the colours have to follow the link. Marks: Etsy and
   Gumroad from Simple Icons (CC0); Lynk.id publishes no logo, so Lucide's
   link icon (ISC), as in src/lib/shop/stores.ts. The darker gradient ends
   keep white text readable. */
.btn[href*='gumroad.com'],
.btn[href*='lynk.id'],
.btn[href*='etsy.com'] {
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: linear-gradient(100deg, var(--c1), var(--c2));
	color: var(--ink);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.3),
		0 8px 22px color-mix(in srgb, var(--c2) 30%, transparent);
}
.btn[href*='gumroad.com']:hover,
.btn[href*='lynk.id']:hover,
.btn[href*='etsy.com']:hover {
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.3),
		0 14px 30px color-mix(in srgb, var(--c2) 40%, transparent);
}
.btn[href*='gumroad.com']::before,
.btn[href*='lynk.id']::before,
.btn[href*='etsy.com']::before {
	content: '';
	flex: none;
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: var(--mark) center / contain no-repeat;
	mask: var(--mark) center / contain no-repeat;
}
.btn[href*='gumroad.com'] {
	--c1: #ffa8ee;
	--c2: #ff5fd2;
	--ink: #000;
	--mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0Zm-.007 5.12c4.48 0 5.995 3.025 6.064 4.744h-3.239c-.069-.962-.897-2.406-2.896-2.406-2.136 0-3.514 1.857-3.514 4.126 0 2.27 1.378 4.125 3.514 4.125 1.93 0 2.758-1.512 3.103-3.025h-3.103v-1.238h6.509v6.327h-2.855v-3.989c-.207 1.444-1.102 4.264-4.617 4.264-3.516 0-5.584-2.82-5.584-6.326 0-3.645 2.276-6.602 6.618-6.602z'/%3E%3C/svg%3E");
}
.btn[href*='lynk.id'] {
	--c1: #0b8f50;
	--c2: #05663a;
	--ink: #fff;
	--mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
}
.btn[href*='etsy.com'] {
	--c1: #f26a22;
	--c2: #c2410c;
	--ink: #fff;
	--mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.559 2.445c0-.325.033-.52.59-.52h7.465c1.3 0 2.02 1.11 2.54 3.193l.42 1.666h1.27c.23-4.728.43-6.784.43-6.784s-3.196.36-5.09.36H6.635L1.521.196v1.37l1.725.326c1.21.24 1.5.496 1.6 1.606 0 0 .11 3.27.11 8.64 0 5.385-.09 8.61-.09 8.61 0 .973-.39 1.333-1.59 1.573l-1.722.33V24l5.13-.165h8.55c1.935 0 6.39.165 6.39.165.105-1.17.75-6.48.855-7.064h-1.2l-1.284 2.91c-1.005 2.28-2.476 2.445-4.11 2.445h-4.906c-1.63 0-2.415-.64-2.415-2.05V12.8s3.62 0 4.79.096c.912.064 1.463.325 1.76 1.598l.39 1.695h1.41l-.09-4.278.192-4.305h-1.391l-.45 1.89c-.283 1.244-.48 1.47-1.754 1.6-1.666.17-4.815.14-4.815.14V2.45h-.05z'/%3E%3C/svg%3E");
}

/* Bought here, on upvire.com: email, then Midtrans. Shown by checkout.js only
   when the shop can sell this template directly. */
.direct {
	margin-top: 14px;
}
.direct[hidden],
.btn-direct[hidden] {
	display: none;
}
.direct-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.direct input {
	flex: 1 1 200px;
	min-height: 52px;
	padding: 0 20px;
	border: 1.5px solid color-mix(in srgb, var(--purple) 45%, #fff);
	border-radius: 999px;
	background: color-mix(in srgb, var(--purple) 5%, #fff);
	color: var(--fg);
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	box-shadow:
		inset 0 1px 2px rgba(9, 20, 40, 0.06),
		0 4px 14px color-mix(in srgb, var(--purple) 12%, transparent);
}
.direct input::placeholder {
	color: var(--fg-muted);
	font-weight: 500;
}
.direct input:focus {
	border-color: var(--purple);
	background: #fff;
}
.direct input:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent);
	outline-offset: 2px;
}
.btn-direct {
	flex: 1 0 auto;
	min-height: 52px;
	white-space: nowrap;
	/* Same glass as the shop's "Buy now" (src/lib/shop/shop.css). */
	border: 1px solid rgba(255, 255, 255, 0.35);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0)),
		linear-gradient(120deg, rgba(37, 99, 235, 0.92), rgba(124, 58, 237, 0.86));
	color: #fff;
	font-family: inherit;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.35),
		0 10px 28px rgba(79, 70, 229, 0.3);
}
.btn-direct:not(:disabled):hover {
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.35),
		0 14px 32px rgba(79, 70, 229, 0.36);
}
.btn-direct:disabled {
	cursor: progress;
	opacity: 0.75;
	transform: none;
}
/* The UpVire mark in a white chip, so its blue and violet show on the
   gradient. */
.btn-direct .mark {
	display: grid;
	flex: none;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 2px 6px rgba(9, 20, 40, 0.18);
}
.btn-direct .mark svg {
	width: 22px;
	height: 22px;
}
.direct-note,
.direct-error {
	margin: 8px 0 0;
	font-size: 0.8rem;
	color: var(--fg-faint);
}
.direct-error {
	color: #b91c1c;
}
.direct-or {
	margin: 14px 0 0;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--fg-faint);
}
/* Said next to the button, not in a footnote: the jump to a different
   domain is exactly where a first-time buyer hesitates. */
.secure {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	font-size: 0.8rem;
	color: var(--fg-faint);
}
.secure svg {
	width: 14px;
	height: 14px;
}
/* The $3 Lite edition, offered under the buy buttons. */
.lite-note {
	margin: 8px 0 0;
	font-size: 0.8rem;
	color: var(--fg-faint);
}
.lite-note a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.more {
	margin: 16px 0 0;
	text-align: center;
	font-size: 0.9rem;
	color: var(--fg-faint);
}

/* ── Steps ──────────────────────────────────────────────────────── */
.steps {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}
@media (min-width: 760px) {
	.steps {
		grid-template-columns: repeat(3, 1fr);
	}
}
.steps li {
	counter-increment: step;
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: 18px;
	background: var(--surface);
}
.steps li::before {
	content: counter(step);
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	margin-bottom: 10px;
	border-radius: 50%;
	background: var(--fg);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 800;
}
.steps b {
	display: block;
	margin-bottom: 4px;
}
.steps span {
	font-size: 0.93rem;
	color: var(--fg-muted);
}

/* ── FAQ ────────────────────────────────────────────────────────── */
.faq {
	display: grid;
	gap: 10px;
}
details {
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--surface-solid);
}
summary {
	cursor: pointer;
	padding: 16px 18px;
	font-weight: 700;
	list-style: none;
}
summary::-webkit-details-marker {
	display: none;
}
summary::after {
	content: '+';
	float: right;
	color: var(--fg-faint);
	font-weight: 800;
}
details[open] summary::after {
	content: '–';
}
details p {
	margin: 0;
	padding: 0 18px 16px;
	color: var(--fg-muted);
}

/* ── Footer ─────────────────────────────────────────────────────── */
footer {
	margin-top: 24px;
	padding: 28px 0 40px;
	border-top: 1px solid var(--border);
	font-size: 0.85rem;
	color: var(--fg-faint);
}
.footer-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
}
.footer-links {
	display: flex;
	gap: 16px;
}
.footer-links a:hover {
	color: var(--fg);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ── Detail page ────────────────────────────────────────────────────── */
.crumb a:hover {
	color: var(--fg);
}

.detail-hero {
	display: grid;
	gap: 36px;
	align-items: center;
	padding: 40px 0 24px;
}
@media (min-width: 900px) {
	.detail-hero {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
		gap: 48px;
		padding: 56px 0 32px;
	}
}
.detail-hero h1 {
	margin: 14px 0 0;
	max-width: none;
	font-size: clamp(2rem, 5vw, 3rem);
	text-align: left;
}
.detail-hero .lede {
	margin: 14px 0 0;
	text-align: left;
}
.detail-hero .buy {
	padding-top: 22px;
}

/* A desktop screenshot in a browser frame, with the phone one overlapping
   its corner — both are real captures of the demo, not drawings. */
.previews {
	position: relative;
	padding-bottom: 36px;
}
.browser {
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--lift-2);
}
.browser-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 12px;
	background: var(--bg-sunk);
	border-bottom: 1px solid var(--border);
}
.browser-bar i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--border-strong);
}
.lang-badge {
	margin-left: auto;
	padding: 2px 8px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--surface-solid);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: var(--fg-muted);
}
/* The preview's own ID / EN switch (see previewSwitch in build.mjs). */
.preview-switch {
	display: inline-flex;
	gap: 2px;
	padding: 2px;
}
.preview-switch button {
	min-width: 30px;
	min-height: 24px;
	padding: 0 8px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--fg-muted);
	font: inherit;
	cursor: pointer;
}
.preview-switch button:hover {
	color: var(--fg);
}
.preview-switch button[aria-pressed='true'] {
	background: var(--fg);
	color: #fff;
}
.preview-switch button:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 1px;
}
.browser img,
.phone img {
	display: block;
	width: 100%;
	height: auto;
}
.phone {
	position: absolute;
	right: -4px;
	bottom: 0;
	width: 28%;
	min-width: 104px;
	overflow: hidden;
	border: 6px solid var(--fg);
	border-radius: 22px;
	background: var(--fg);
	box-shadow: var(--lift-2);
}

.grid-2 {
	display: grid;
	gap: 14px;
}
@media (min-width: 720px) {
	.grid-2 {
		grid-template-columns: repeat(2, 1fr);
	}
}
.grid-3 {
	display: grid;
	gap: 14px;
}
@media (min-width: 720px) {
	.grid-3 {
		grid-template-columns: repeat(3, 1fr);
	}
}
.card {
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: 18px;
	background: var(--surface-solid);
}
.card b {
	display: block;
	margin-bottom: 4px;
}
.card span,
.card p {
	margin: 0;
	font-size: 0.93rem;
	color: var(--fg-muted);
}
.card ul {
	margin: 8px 0 0;
	padding-left: 18px;
	color: var(--fg-muted);
	font-size: 0.95rem;
}
.card ul li + li {
	margin-top: 6px;
}
.card-no {
	background: var(--bg-sunk);
}
.card-no b::before {
	content: '✕ ';
	color: #b91c1c;
}
.card-yes b::before {
	content: '✓ ';
	color: var(--green);
}

.final {
	padding: 36px 24px;
	border-radius: 24px;
	text-align: center;
	background: var(--surface-solid);
	border: 1px solid var(--border);
	box-shadow: var(--lift-2);
}
.final h2 {
	margin-bottom: 6px;
}
.final p {
	margin: 0 auto;
	max-width: 48ch;
	color: var(--fg-muted);
}
.final .actions {
	justify-content: center;
	max-width: 460px;
	margin: 20px auto 0;
}

/* Before the Lynk.id product exists. A parked button rather than a link to a
   placeholder URL, which would land the buyer on a Lynk.id error page. Swap
   it for the real <a> (see the GANTI comments) once the product is live. */
.btn-soon,
.btn-soon:hover {
	cursor: default;
	transform: none;
	opacity: 0.55;
	box-shadow: none;
}
.price-soon {
	font-size: 1.4rem;
}
/* The price before the launch promo, struck through next to the promo price. */
.price s {
	font-size: 0.6em;
	font-weight: 700;
	color: var(--fg-faint);
}
/* The English labels run longer than the Indonesian ones: let the price note
   drop under the price, and keep each buy button on one line, so a narrow
   phone wraps between buttons rather than inside them. */
.price {
	flex-wrap: wrap;
	row-gap: 0;
}
.buy .actions .btn,
.final .actions .btn {
	white-space: nowrap;
}

/* ── Added with the multi-template catalogue ─────────────────────────── */
.pilih {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 22px;
}
.pilih a {
	padding: 8px 16px;
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	background: var(--surface-solid);
	font-size: 0.9rem;
	font-weight: 700;
}
.pilih a:hover {
	box-shadow: var(--lift-1);
}
.product {
	margin-bottom: 20px;
	scroll-margin-top: 16px;
}
.product-body h3 a:hover {
	text-decoration: underline;
}
.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}
.chips li {
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--bg-sunk);
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--fg-muted);
}
.sub {
	max-width: 62ch;
	margin: -4px 0 18px;
	color: var(--fg-muted);
}
.sub a {
	color: var(--blue);
	text-decoration: underline;
}
.video-prev {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	background: var(--bg-sunk);
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow: var(--lift-1);
}
.galeri-prev {
	display: grid;
	gap: 16px;
}
@media (min-width: 720px) {
	.galeri-prev {
		grid-template-columns: repeat(2, 1fr);
	}
}
.galeri-prev figure {
	margin: 0;
}
.galeri-prev img {
	width: 100%;
	height: auto;
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow: var(--lift-1);
	transition: transform 0.2s ease;
}
.galeri-prev a:hover img {
	transform: translateY(-2px);
}
.galeri-prev figcaption {
	margin-top: 8px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--fg-muted);
}
.more .btn {
	display: inline-flex;
}
.steps-4 {
	grid-template-columns: 1fr;
}
@media (min-width: 900px) {
	.steps-4 {
		grid-template-columns: repeat(4, 1fr);
	}
}
.steps code,
.card code,
.faq code,
.spek code {
	padding: 1px 5px;
	border-radius: 5px;
	background: var(--bg-sunk);
	font-size: 0.88em;
}
.panduan {
	display: grid;
	gap: 18px;
}
.toc {
	columns: 1;
	margin: 0;
	padding-left: 22px;
	color: var(--fg-muted);
	font-size: 0.95rem;
}
@media (min-width: 720px) {
	.toc {
		columns: 2;
	}
}
.toc li {
	break-inside: avoid;
	padding: 2px 0;
}
.toc a:hover {
	color: var(--blue);
	text-decoration: underline;
}
.panduan .btn {
	justify-self: start;
	flex: none;
}
.spek {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.93rem;
}
.spek th,
.spek td {
	padding: 10px 6px;
	border-bottom: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}
.spek tr:last-child th,
.spek tr:last-child td {
	border-bottom: 0;
}
.spek th {
	width: 30%;
	white-space: nowrap;
	color: var(--fg);
}
.spek td {
	color: var(--fg-muted);
}
.sw {
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: 4px;
	border: 1px solid var(--border-strong);
	border-radius: 50%;
	vertical-align: -3px;
}
.lain-grid {
	display: grid;
	gap: 14px;
}
@media (min-width: 720px) {
	.lain-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
.lain {
	display: block;
	padding: 12px;
	border: 1px solid var(--border);
	border-radius: 18px;
	background: var(--surface-solid);
}
.lain:hover {
	box-shadow: var(--lift-2);
}
.lain img {
	width: 100%;
	height: auto;
	margin-bottom: 10px;
	border-radius: 10px;
}
.lain b {
	display: block;
	margin-top: 6px;
}

/* "Beli di mana" on a detail page: one card per platform (tempatBeli in
   products/templates/build.mjs), its icon on the store's colour. */
.toko-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.toko {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: 18px;
	background: var(--surface-solid);
	color: inherit;
	text-decoration: none;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}
.toko:hover,
.toko:focus-visible {
	transform: translateY(-3px);
	box-shadow: var(--lift-2);
}
.toko-tanda {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--c);
	color: var(--c-ink, #fff);
}
.toko-tanda svg {
	width: 22px;
	height: 22px;
}
.toko-area {
	margin-top: 6px;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fg-muted);
}
.toko strong {
	font-size: 1.1rem;
}
.toko-catatan {
	flex: 1;
	font-size: 0.9rem;
	color: var(--fg-muted);
}
.toko-go {
	margin-top: 4px;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--blue);
}

/* The done-for-you bundle (jasaBagian in products/templates/build.mjs). */
#paket-jasa .kicker {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--purple);
	margin-bottom: 6px;
}
.jasa-beli {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
	margin-top: 16px;
	padding: 20px 22px;
	border-radius: 18px;
	border: 1px solid var(--border);
	background: var(--surface-solid);
}
.jasa-beli .price {
	display: flex;
	flex-direction: column;
	font-size: 1.6rem;
	font-weight: 800;
	line-height: 1.15;
}
.jasa-beli .price small {
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--fg-muted);
}
.jasa-catatan {
	flex-basis: 100%;
	font-size: 0.85rem;
	color: var(--fg-muted);
}
@media (min-width: 720px) {
	.jasa-catatan {
		flex-basis: auto;
	}
}

/* ── Same look as the homepage ──────────────────────────────────────
   Everything below re-skins the catalogue and the detail pages to match
   deploy/portal/index.html: Fraunces headings, the coloured glass header
   with the pill nav, the glass eyebrow, the drifting aurora and the
   blue → violet → magenta buttons. Kept as one block of overrides at the
   end so the layout rules above stay untouched. If the homepage's look
   changes, change it here too. */
:root {
	--fg: #0b1324;
	--coral: #e0603a;
	--pink: #db2777;
	--glass: rgba(255, 255, 255, 0.62);
	--glass-rim: rgba(255, 255, 255, 0.85);
	--glass-blur: blur(16px) saturate(170%);
	--glass-lift: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 14px 34px rgba(79, 70, 229, 0.09);
	--lift-3: 0 30px 70px rgba(9, 20, 40, 0.16), 0 6px 14px rgba(9, 20, 40, 0.06);
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--serif: Fraunces, Georgia, serif;
}
.shell {
	max-width: 1180px;
}
@media (min-width: 640px) {
	.shell {
		padding: 0 24px;
	}
}
:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 3px;
}

/* Aurora: absolute (not fixed) and faded into white, as on the homepage. */
.ambient {
	position: absolute;
	inset: 0 0 auto;
	height: 1250px;
	overflow: hidden;
	background: none;
}
.ambient::before,
.ambient::after {
	content: '';
	position: absolute;
	inset: -10% -10% 0;
}
.ambient::before {
	background:
		radial-gradient(46rem 32rem at 6% -6%, rgba(59, 130, 246, 0.26), transparent 62%),
		radial-gradient(42rem 32rem at 98% 4%, rgba(168, 85, 247, 0.24), transparent 60%),
		radial-gradient(34rem 26rem at 52% 30%, rgba(236, 72, 153, 0.13), transparent 64%),
		radial-gradient(40rem 30rem at 72% 78%, rgba(251, 146, 60, 0.14), transparent 65%),
		radial-gradient(36rem 28rem at 14% 82%, rgba(45, 212, 191, 0.13), transparent 65%);
	animation: aurora 22s ease-in-out infinite alternate;
}
.ambient::after {
	background: linear-gradient(180deg, transparent 70%, var(--bg));
}
@keyframes aurora {
	to {
		transform: translate3d(2%, 3%, 0) scale(1.06) rotate(1.5deg);
	}
}

/* Header: coloured glass, white rim, rainbow hairline. */
body > header {
	background: linear-gradient(
		100deg,
		rgba(219, 234, 254, 0.74),
		rgba(237, 233, 254, 0.7) 36%,
		rgba(252, 231, 243, 0.68) 68%,
		rgba(255, 237, 213, 0.72)
	);
	backdrop-filter: blur(22px) saturate(200%);
	-webkit-backdrop-filter: blur(22px) saturate(200%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.75);
	box-shadow:
		0 10px 30px rgba(79, 70, 229, 0.1),
		inset 0 1px rgba(255, 255, 255, 0.95);
}
body > header::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 1px;
	pointer-events: none;
	opacity: 0.55;
	background: linear-gradient(
		90deg,
		transparent,
		var(--blue) 20%,
		var(--purple) 50%,
		var(--pink) 80%,
		transparent
	);
}
.wordmark {
	font-size: 24px;
	font-weight: 800;
}
.wordmark em {
	background: linear-gradient(100deg, var(--blue), var(--purple));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.wordmark svg {
	filter: drop-shadow(0 3px 6px rgba(124, 58, 237, 0.25));
}
header .site-nav:not(.is-open) {
	padding: 4px;
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.45);
	box-shadow:
		inset 0 1px rgba(255, 255, 255, 0.95),
		0 4px 14px rgba(79, 70, 229, 0.08);
}
header .site-nav a {
	border-radius: 999px;
	color: #3b4763;
	transition:
		color 0.2s,
		background 0.2s,
		box-shadow 0.2s;
}
header .site-nav a:hover {
	color: #4c1d95;
	background: linear-gradient(
		120deg,
		rgba(59, 130, 246, 0.14),
		rgba(168, 85, 247, 0.16),
		rgba(236, 72, 153, 0.12)
	);
}
header .site-nav a[aria-current='page'] {
	color: #fff;
	background: linear-gradient(120deg, var(--blue), var(--purple));
	box-shadow:
		0 6px 16px rgba(91, 33, 182, 0.28),
		inset 0 1px rgba(255, 255, 255, 0.3);
}
header .site-nav.is-open {
	background: linear-gradient(160deg, #ffffff, #f5f3ff);
	border-color: rgba(124, 58, 237, 0.14);
	box-shadow: 0 24px 50px rgba(79, 70, 229, 0.18);
}
header .site-menu-toggle,
.lang-toggle {
	border-color: rgba(255, 255, 255, 0.85);
	background: rgba(255, 255, 255, 0.5);
	box-shadow: inset 0 1px rgba(255, 255, 255, 0.95);
}
.lang-toggle {
	height: 44px;
	padding: 0 0.85rem;
}
.lang-toggle:hover {
	background: rgba(255, 255, 255, 0.8);
}

/* Type: Fraunces for headings and prices, Inter for everything else. */
h1,
h2,
.product-body h3,
.final h2 {
	font-family: var(--serif);
	font-weight: 600;
	text-wrap: balance;
}
h1 {
	font-size: clamp(2.4rem, 5vw, 3.7rem);
	line-height: 1.04;
	letter-spacing: -0.03em;
}
.detail-hero h1 {
	font-size: clamp(2.2rem, 4.6vw, 3.3rem);
}
h2 {
	font-size: clamp(1.7rem, 3.6vw, 2.4rem);
	line-height: 1.1;
	letter-spacing: -0.025em;
}
.product-body h3 {
	font-size: 1.55rem;
	line-height: 1.15;
	letter-spacing: -0.015em;
}
.price,
.jasa-beli .price {
	font-family: var(--serif);
	font-weight: 600;
}
.price small,
.price s,
.jasa-beli .price small {
	font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.gradient {
	background: linear-gradient(100deg, var(--blue), var(--purple) 55%, var(--coral));
	background-size: 220% auto;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: sheen 7s ease-in-out infinite alternate;
}
@keyframes sheen {
	from {
		background-position: 0% 50%;
	}
	to {
		background-position: 100% 50%;
	}
}
.eyebrow {
	border: 1px solid var(--glass-rim);
	background: linear-gradient(120deg, rgba(255, 255, 255, 0.75), rgba(237, 233, 254, 0.6));
	box-shadow: var(--glass-lift);
	backdrop-filter: var(--glass-blur);
	-webkit-backdrop-filter: var(--glass-blur);
	letter-spacing: 0.05em;
	color: #4c3a8a;
}

/* Cards: rounder, glassier, lifting on hover like the homepage tiles. */
.product {
	border-radius: 24px;
	box-shadow: var(--lift-2);
	transition:
		box-shadow 0.35s ease,
		transform 0.35s var(--ease);
}
.product:hover {
	box-shadow: var(--lift-3);
}
.pilih a {
	border-color: var(--glass-rim);
	background: var(--glass);
	box-shadow: var(--glass-lift);
	backdrop-filter: var(--glass-blur);
	-webkit-backdrop-filter: var(--glass-blur);
	transition:
		color 0.2s,
		background 0.2s,
		transform 0.2s var(--ease);
}
.pilih a:hover {
	color: #4c1d95;
	background: linear-gradient(
		120deg,
		rgba(59, 130, 246, 0.14),
		rgba(168, 85, 247, 0.16),
		rgba(236, 72, 153, 0.12)
	);
	transform: translateY(-1px);
}

/* Buttons: the homepage's primary gradient and glass ghost. */
.btn {
	font-weight: 700;
}
.btn-primary {
	background: linear-gradient(120deg, var(--blue), var(--purple) 60%, #c026d3);
	box-shadow:
		0 12px 28px rgba(91, 33, 182, 0.3),
		inset 0 1px rgba(255, 255, 255, 0.28);
}
.btn-primary:hover {
	box-shadow:
		0 18px 40px rgba(91, 33, 182, 0.38),
		inset 0 1px rgba(255, 255, 255, 0.28);
}
.btn-ghost {
	border-color: var(--glass-rim);
	background: var(--glass);
	box-shadow: var(--glass-lift);
	backdrop-filter: var(--glass-blur);
	-webkit-backdrop-filter: var(--glass-blur);
}
.btn-ghost:hover {
	background: rgba(255, 255, 255, 0.85);
}

@media (prefers-reduced-motion: reduce) {
	.ambient::before,
	.gradient {
		animation: none;
	}
}
