/**
 * Promo AWNEWBORN — Diskon Total 42% Paket Tahunan (Aug 2026).
 *
 * Semua UI kampanye: topbar, popup halaman harga, strip promo, blok checkout,
 * plus gaya harga-coret pada kartu paket. Prefix aw-p42-. File ini hanya
 * dimuat selama promo aktif (lihat inc/promo-awnewborn.php) dan aman dihapus
 * bersama file PHP-nya setelah kampanye selesai.
 *
 * Bahasa desain mengikuti pricing.css:
 *   - Flat colors, tanpa gradien (aturan rumah).
 *   - Oranye #FF6600 hanya untuk fill dekoratif/badge; teks & tombol oranye
 *     di atas putih memakai #CC4A00 (AA 4,62:1).
 *   - Radius: kartu 16px, tombol/input 12px, chip pill.
 */

/* ===================== TOKENS (lokal, tidak bocor global) ===================== */
.aw-p42-bar,
.aw-p42-strip,
.aw-p42-sec,
.aw-p42-pop,
.aw-p42-ok,
.aw-p42-nudge {
	--awp-orange: #ff6600;
	--awp-ink: #cc4a00;
	--awp-ink-hover: #a83c00;
	--awp-soft: #fff1e7;
	--awp-soft-line: rgba(204, 74, 0, 0.18);
	--awp-blue: #015c80;
	--awp-green: #0f7b4f;
	--awp-green-soft: #e8f6ef;
	--awp-green-line: rgba(15, 123, 79, 0.2);
	--awp-text: #1b2637;
	--awp-text-2: #55627a;
	--awp-text-3: #7a889f;
	--awp-border: #e4e9f1;
	--awp-bg: #f7f9fc;
	--awp-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--awp-ease: cubic-bezier(0.32, 0.72, 0, 1);
	font-family: inherit;
}

/* ===================== TOPBAR (di atas .main-navigation) ===================== */
.aw-p42-bar {
	position: relative;
	background: var(--awp-blue);
	color: #fff;
	transition: opacity 0.25s ease;
}

.aw-p42-bar.is-hidden {
	opacity: 0;
	pointer-events: none;
}

.aw-p42-bar__link {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: nowrap;
	gap: 12px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 9px 52px 9px 20px;
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	min-height: 40px;
}

.aw-p42-bar__link:hover {
	color: #fff;
	text-decoration: none;
}

.aw-p42-bar__badge {
	flex: none;
	background: var(--awp-orange);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	border-radius: 999px;
	padding: 4px 10px;
	white-space: nowrap;
}

.aw-p42-bar__text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aw-p42-bar__text b {
	font-weight: 800;
}

.aw-p42-bar__cd {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	opacity: 0.95;
	white-space: nowrap;
}

.aw-p42-bar__cta {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 999px;
	padding: 4px 12px;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.aw-p42-bar__cta svg {
	width: 13px;
	height: 13px;
}

.aw-p42-bar__link:hover .aw-p42-bar__cta {
	background: #fff;
	color: var(--awp-blue);
}

.aw-p42-bar__close {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: rgba(255, 255, 255, 0.75);
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.aw-p42-bar__close:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
}

.aw-p42-bar__close svg {
	width: 15px;
	height: 15px;
}

@media (max-width: 860px) {
	.aw-p42-bar__text {
		display: none;
	}
}

@media (max-width: 520px) {
	.aw-p42-bar__cta {
		display: none;
	}

	.aw-p42-bar__link {
		font-size: 12px;
		gap: 10px;
		padding-left: 14px;
	}
}

/* ===================== BADGE MENU "HARGA" ===================== */
/* Disuntik promo.js ke li.header-pricing > .nav-link selama promo aktif. */
.aw-p42-nav-badge {
	display: inline-block;
	margin-left: 6px;
	background: #ff6600;
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.02em;
	border-radius: 999px;
	padding: 3px 7px;
	vertical-align: middle;
	white-space: nowrap;
}

/* ===================== TOMBOL ===================== */
.aw-p42-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--awp-ink, #cc4a00);
	color: #fff;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1;
	padding: 13px 22px;
	border: 0;
	border-radius: 12px;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.aw-p42-btn:hover,
.aw-p42-btn:focus {
	background: var(--awp-ink-hover, #a83c00);
	color: #fff;
	text-decoration: none;
}

.aw-p42-btn:active {
	transform: translateY(1px);
}

.aw-p42-btn:focus-visible {
	outline: 2px solid var(--awp-blue, #015c80);
	outline-offset: 2px;
}

.aw-p42-btn--block {
	width: 100%;
}

.aw-p42-btn--sm {
	font-size: 13.5px;
	padding: 11px 16px;
}

/* ===================== HITUNG MUNDUR ===================== */
.aw-p42-cd--tiles {
	display: flex;
	gap: 8px;
}

.aw-p42-cd__t {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 56px;
	background: var(--awp-bg, #f7f9fc);
	border: 1px solid var(--awp-border, #e4e9f1);
	border-radius: 12px;
	padding: 8px 6px 7px;
}

.aw-p42-cd__t b {
	font-family: var(--awp-mono, monospace);
	font-variant-numeric: tabular-nums;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--awp-text, #1b2637);
}

.aw-p42-cd__t i {
	font-style: normal;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--awp-text-3, #7a889f);
	margin-top: 2px;
}

.aw-p42-cd--inline b {
	font-family: var(--awp-mono, monospace);
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}

/* ===================== STRIP PROMO ===================== */
.aw-p42-sec {
	padding: 56px 20px 0;
}

.aw-p42-sec__wrap {
	max-width: 1140px;
	margin: 0 auto;
}

.aw-p42-strip {
	display: flex;
	align-items: center;
	gap: 18px;
	background: var(--awp-soft);
	box-shadow: inset 0 0 0 1px var(--awp-soft-line);
	border-radius: 16px;
	padding: 16px 20px;
}

.aw-p42-strip__art {
	width: 88px;
	height: 88px;
	flex: none;
	border-radius: 12px;
}

.aw-p42-strip__body {
	flex: 1;
	min-width: 0;
}

.aw-p42-strip__title {
	margin: 0 0 4px;
	font-size: 16.5px;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.35;
	color: var(--awp-text);
}

.aw-p42-strip__sub {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--awp-text-2);
}

.aw-p42-strip__sub b {
	font-weight: 800;
	color: var(--awp-ink);
}

.aw-p42-strip__side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	flex: none;
}

/* Di halaman harga, strip berdiri di dalam container pp-plans (lebar 920). */
.pricing-landing .aw-p42-strip {
	max-width: 920px;
	margin: 0 auto 26px;
}

/* Target scroll tombol klaim; beri ruang untuk nav sticky di atasnya. */
.pricing-landing #paket {
	scroll-margin-top: 96px;
}

@media (max-width: 900px) {
	.aw-p42-strip {
		flex-wrap: wrap;
	}

	.aw-p42-strip__side {
		width: 100%;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

@media (max-width: 560px) {
	.aw-p42-strip__art {
		width: 68px;
		height: 68px;
	}

	.aw-p42-strip__side {
		flex-direction: column;
		align-items: stretch;
	}

	.aw-p42-strip__side .aw-p42-cd--tiles {
		justify-content: center;
	}
}

/* ===================== POPUP HALAMAN HARGA ===================== */
.aw-p42-pop {
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.aw-p42-pop[hidden] {
	display: none;
}

.aw-p42-pop__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(7, 16, 34, 0.55);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.aw-p42-pop__card {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100dvh - 40px);
	overflow-y: auto;
	background: #fff;
	border-radius: 16px;
	box-shadow:
		0 2px 6px rgba(10, 22, 40, 0.08),
		0 32px 80px -24px rgba(10, 22, 40, 0.45);
	opacity: 0;
	transform: translateY(16px) scale(0.97);
	transition:
		opacity 0.28s var(--awp-ease),
		transform 0.28s var(--awp-ease);
}

.aw-p42-pop.is-open .aw-p42-pop__backdrop {
	opacity: 1;
}

.aw-p42-pop.is-open .aw-p42-pop__card {
	opacity: 1;
	transform: none;
}

.aw-p42-pop__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid var(--awp-border);
	border-radius: 50%;
	color: var(--awp-text-2);
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(10, 22, 40, 0.12);
	transition: color 0.2s ease;
}

.aw-p42-pop__close:hover {
	color: var(--awp-text);
}

.aw-p42-pop__close svg {
	width: 15px;
	height: 15px;
}

.aw-p42-pop__art {
	display: block;
	width: 100%;
	height: auto;
}

.aw-p42-pop__body {
	padding: 22px 26px 24px;
}

.aw-p42-pop__eyebrow {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--awp-ink);
}

.aw-p42-pop__title {
	margin: 0 0 8px;
	font-family: inherit;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.015em;
	line-height: 1.25;
	color: var(--awp-text);
}

.aw-p42-pop__copy {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--awp-text-2);
}

.aw-p42-pop__copy b {
	font-weight: 800;
	color: var(--awp-ink);
}

.aw-p42-pop__copy strong {
	font-weight: 800;
	color: var(--awp-text);
}

.aw-p42-pop .aw-p42-cd--tiles {
	justify-content: center;
	margin: 16px 0 18px;
}

.aw-p42-pop__later {
	display: block;
	margin: 10px auto 0;
	padding: 6px 10px;
	background: none;
	border: 0;
	font-family: inherit;
	font-size: 13px;
	color: var(--awp-text-3);
	cursor: pointer;
}

.aw-p42-pop__later:hover {
	color: var(--awp-text-2);
	text-decoration: underline;
}

body.aw-p42-lock {
	overflow: hidden;
}

@media (max-width: 480px) {
	.aw-p42-pop {
		padding: 14px;
	}

	.aw-p42-pop__body {
		padding: 18px 20px 20px;
	}

	.aw-p42-pop__title {
		font-size: 19px;
	}
}

/* ===================== BLOK CHECKOUT ===================== */
.aw-p42-ok {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: var(--awp-green-soft);
	box-shadow: inset 0 0 0 1px var(--awp-green-line);
	border-radius: 12px;
	padding: 14px 16px;
}

.aw-p42-ok__ico {
	width: 22px;
	height: 22px;
	flex: none;
	margin-top: 1px;
	color: var(--awp-green);
}

.aw-p42-ok p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--awp-text);
}

.aw-p42-ok b {
	font-weight: 800;
}

.aw-p42-nudge {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--awp-soft);
	box-shadow: inset 0 0 0 1px var(--awp-soft-line);
	border-radius: 12px;
	padding: 14px 16px;
}

.aw-p42-nudge__art {
	width: 64px;
	height: 64px;
	flex: none;
	border-radius: 10px;
}

.aw-p42-nudge__body {
	flex: 1;
	min-width: 0;
}

.aw-p42-nudge__title {
	margin: 0 0 3px;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.35;
	color: var(--awp-text);
}

.aw-p42-nudge__sub {
	margin: 0 0 4px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--awp-text-2);
}

.aw-p42-nudge__sub b {
	font-weight: 800;
	color: var(--awp-ink);
}

.aw-p42-nudge__cd {
	margin: 0;
	font-size: 12px;
	color: var(--awp-text-3);
}

.aw-p42-nudge__cd b {
	color: var(--awp-text);
}

@media (max-width: 640px) {
	.aw-p42-nudge {
		flex-wrap: wrap;
	}

	.aw-p42-nudge .aw-p42-btn {
		width: 100%;
	}
}

/* ===================== HALAMAN HARGA: HARGA CORET & BADGE ===================== */
.pricing-landing .pp-price__strike-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
}

.pricing-landing .pp-price__was {
	font-size: 14px;
	font-weight: 600;
	color: #7a889f;
	text-decoration: line-through;
}

.pricing-landing .pp-price__off {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.02em;
	background: #ff6600;
	color: #fff;
	border-radius: 999px;
	padding: 3px 9px;
	white-space: nowrap;
}

.pricing-landing .pp-toggle__save--promo {
	background: #ff6600;
	color: #fff;
}

.pricing-landing .pp-capsule--promo {
	max-width: 640px;
	margin: 14px auto 0;
	font-size: 14px;
	line-height: 1.6;
	background: #fff1e7;
	box-shadow: inset 0 0 0 1px rgba(204, 74, 0, 0.18);
	border-radius: 12px;
	padding: 12px 18px;
}

/* ===================== PROMO BERAKHIR (klien menyusul server) ===================== */
body.aw-p42-ended .aw-p42-bar,
body.aw-p42-ended .aw-p42-sec,
body.aw-p42-ended .aw-p42-strip,
body.aw-p42-ended .aw-p42-pop,
body.aw-p42-ended .aw-p42-nudge,
body.aw-p42-ended .aw-p42-nav-badge,
body.aw-p42-ended .aw-p42-ok {
	display: none !important;
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
	.aw-p42-bar,
	.aw-p42-bar__cta,
	.aw-p42-btn,
	.aw-p42-pop__backdrop,
	.aw-p42-pop__card {
		transition: none;
	}

	.aw-p42-pop__card {
		transform: none;
	}
}
