/* ============================================================
   /tokyo-after-dark/ - "Unseen Japan After Dark" guide sales page.
   Standalone conversion-focused landing page. Loads only on this
   page (see inc/bootstrap.php). Not related to the .uj-tours-* set.
   ============================================================ */

.uj-ad {
	color: #222;
	font-size: 1.05rem;
	line-height: 1.65;
}

.uj-ad-wrap {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 1.25rem;
}
.uj-ad-wrap--narrow {
	max-width: 680px;
}

/* ---- Shared CTA button ------------------------------------- */
.uj-ad-cta,
.uj-buy-btn {
	display: inline-block;
	border: 0;
	cursor: pointer;
	background: #C0492A;
	color: #fff;
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.2;
	padding: 0.9rem 1.6rem;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.05s ease;
}
.uj-ad-cta:hover,
.uj-buy-btn:hover {
	background: #A23C20;
	color: #fff;
}
.uj-ad-cta:active,
.uj-buy-btn:active {
	transform: translateY(1px);
}
.uj-ad-cta--lg {
	font-size: 1.2rem;
	padding: 1.05rem 2rem;
}
.uj-ad-cta--inline {
	margin-top: 0.5rem;
}

.uj-ad-trust {
	margin: 0.75rem 0 0;
	font-size: 0.9rem;
	color: #6b6b6b;
}

/* ---- Hero -------------------------------------------------- */
.uj-ad-hero {
	position: relative;
	background-image: var(--uj-ad-hero-img);
	background-size: cover;
	background-position: center;
	color: #fff;
	overflow: hidden;
}
.uj-ad-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient( 180deg, rgba(20,12,18,0.55) 0%, rgba(20,12,18,0.78) 100% );
}
.uj-ad-hero__inner {
	position: relative;
	z-index: 1;
	padding: 5rem 1.25rem 4.5rem;
	text-align: center;
}
.uj-ad-hero__eyebrow {
	margin: 0 0 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.85rem;
	font-weight: 700;
	color: #f3c9bd;
}
.uj-ad-hero__title {
	margin: 0 auto 1rem;
	max-width: 16ch;
	font-size: clamp( 2rem, 5vw, 3rem );
	line-height: 1.1;
	color: #fff;
}
.uj-ad-hero__lede {
	margin: 0 auto 1.75rem;
	max-width: 52ch;
	font-size: 1.15rem;
	color: #f1ece9;
}
.uj-ad-hero__cta .uj-ad-trust {
	color: #e8d9d3;
}

/* ---- Sections --------------------------------------------- */
.uj-ad-section {
	padding: 3rem 0;
}
.uj-ad-section--alt {
	background: #faf5f2;
}
.uj-ad-section__heading {
	margin: 0 0 1rem;
	font-size: clamp( 1.5rem, 3.5vw, 2rem );
	line-height: 1.2;
}
.uj-ad-section__heading--sm {
	font-size: 1.25rem;
}
.uj-ad-section__sub {
	margin: 0 0 1.5rem;
	color: #555;
}

/* ---- What's inside ---------------------------------------- */
.uj-ad-inside {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.9rem;
}
.uj-ad-inside li {
	position: relative;
	padding-left: 1.9rem;
}
.uj-ad-inside li::before {
	content: "\2713"; /* check */
	position: absolute;
	left: 0;
	top: 0.05em;
	color: #C0492A;
	font-weight: 700;
}
.uj-ad-inside__note {
	margin-top: 1.5rem;
	font-style: italic;
	color: #555;
}

/* ---- FAQ accordion ---------------------------------------- */
.uj-ad-faq {
	display: grid;
	gap: 0.6rem;
}
.uj-ad-faq__item {
	background: #fff;
	border: 1px solid #ece2db;
	border-radius: 8px;
	padding: 0.25rem 1rem;
}
.uj-ad-faq__q {
	cursor: pointer;
	font-weight: 700;
	padding: 0.75rem 0;
	list-style: none;
}
.uj-ad-faq__q::-webkit-details-marker { display: none; }
.uj-ad-faq__q::after {
	content: "+";
	float: right;
	color: #C0492A;
	font-weight: 700;
}
.uj-ad-faq__item[open] .uj-ad-faq__q::after { content: "\2212"; /* minus */ }
.uj-ad-faq__a {
	padding: 0 0 0.85rem;
}
.uj-ad-faq__a p { margin: 0; }

/* ---- Offer + price ---------------------------------------- */
.uj-ad-price {
	margin: 1.75rem 0 0;
	padding: 1.75rem;
	background: #fff;
	border: 2px solid #C0492A;
	border-radius: 12px;
	text-align: center;
}
.uj-ad-price__now {
	margin: 0;
	font-size: 2.75rem;
	font-weight: 800;
	line-height: 1;
	color: #1f1f1f;
}
.uj-ad-price__was {
	margin: 0.5rem 0 0;
	color: #6b6b6b;
	font-size: 0.95rem;
}
.uj-ad-price__note {
	margin: 0.25rem 0 1.25rem;
	font-weight: 600;
}

/* ---- Embedded checkout mount ------------------------------ */
.uj-ad-checkout-wrap {
	display: none;
	margin-top: 1.75rem;
}
.uj-ad-checkout-wrap.is-open {
	display: block;
}
#uj-ad-checkout {
	min-height: 60px;
}
.uj-ad-checkout__err {
	padding: 1rem;
	background: #fdecea;
	border: 1px solid #f5c6cb;
	border-radius: 8px;
	color: #8a1f1f;
}

/* ---- Cross-sell + free reads ------------------------------ */
.uj-ad-crosssell {
	margin: 0;
	padding: 1.25rem 1.5rem;
	background: #f3ece8;
	border-radius: 10px;
	font-size: 1rem;
}
.uj-ad-reads {
	margin: 0;
	padding-left: 1.2rem;
	display: grid;
	gap: 0.5rem;
}

/* ---- Final CTA -------------------------------------------- */
.uj-ad-final {
	text-align: center;
	background: #1f1417;
	color: #f1ece9;
}
.uj-ad-final .uj-ad-section__heading { color: #fff; }
.uj-ad-final .uj-ad-trust { color: #c9b8b1; }

/* ---- Return / thank-you state ----------------------------- */
.uj-ad-return {
	padding: 4.5rem 0;
}
.uj-ad-return__title {
	margin: 0 0 0.75rem;
	font-size: clamp( 1.75rem, 4vw, 2.5rem );
}
.uj-ad-return__lead {
	font-size: 1.2rem;
	font-weight: 600;
}
.uj-ad-return__small {
	font-size: 0.92rem;
	color: #6b6b6b;
}
.uj-ad-link { font-weight: 600; }

/* ---- Founding-launch price line (hero) -------------------- */
.uj-ad-hero__founding {
	margin: 0 0 1rem;
	font-size: 0.98rem;
	color: #f3c9bd;
}
.uj-ad-hero__founding strong { color: #fff; }
.uj-ad-hero__founding-then { color: #e8d9d3; opacity: 0.85; }

/* ---- Price strike-through anchor (offer box) -------------- */
.uj-ad-price__strike {
	font-size: 1.4rem;
	color: #9a9a9a;
	text-decoration: line-through;
	font-weight: 600;
	margin-right: 0.35rem;
	vertical-align: middle;
}

/* ---- "Look inside" preview gallery ------------------------ */
.uj-ad-preview {
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}
.uj-ad-preview__item { margin: 0; text-align: center; }
/* The image is wrapped in a button so it can be clicked to enlarge. */
.uj-ad-preview__btn {
	display: block;
	position: relative;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}
.uj-ad-preview__img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid #e5d8d0;
	border-radius: 8px;
	box-shadow: 0 6px 20px rgba(20, 12, 18, 0.12);
	background: #fff;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.uj-ad-preview__btn:hover .uj-ad-preview__img,
.uj-ad-preview__btn:focus-visible .uj-ad-preview__img {
	box-shadow: 0 10px 28px rgba(20, 12, 18, 0.22);
	transform: translateY(-2px);
}
/* Small magnifier badge, bottom-right of each thumbnail. */
.uj-ad-preview__zoom {
	position: absolute;
	right: 0.6rem;
	bottom: 0.6rem;
	width: 2rem;
	height: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(31, 20, 23, 0.72);
	color: #fff;
	font-size: 1.05rem;
	line-height: 1;
	pointer-events: none;
}
.uj-ad-preview__cap {
	display: block;
	margin-top: 0.6rem;
	font-size: 0.9rem;
	color: #6b6b6b;
}

/* ---- Preview lightbox ------------------------------------- */
.uj-ad-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem 1rem;
	background: rgba(15, 10, 14, 0.86);
}
.uj-ad-lightbox[hidden] { display: none; }
.uj-ad-lightbox__img {
	max-width: min(92vw, 760px);
	max-height: 92vh;
	width: auto;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 12px 44px rgba(0, 0, 0, 0.5);
	background: #fff;
	cursor: default;
}
.uj-ad-lightbox__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 2.6rem;
	height: 2.6rem;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	font-size: 1.7rem;
	line-height: 1;
	cursor: pointer;
}
.uj-ad-lightbox__close:hover { background: rgba(255, 255, 255, 0.3); }

/* ---- Assurance cluster (point of purchase) ---------------- */
.uj-ad-assure {
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	justify-content: center;
}
.uj-ad-assure__item {
	position: relative;
	padding-left: 1.5rem;
	font-size: 0.92rem;
	color: #4a4a4a;
}
.uj-ad-assure__item::before {
	content: "\2713"; /* check */
	position: absolute;
	left: 0;
	top: 0.05em;
	color: #C0492A;
	font-weight: 700;
}

/* ---- Sticky mobile buy bar -------------------------------- */
.uj-ad-stickybar { display: none; }

/* ---- Responsive ------------------------------------------- */
@media (max-width: 600px) {
	.uj-ad-hero__inner { padding: 3.5rem 1.25rem 3rem; }
	.uj-ad-section { padding: 2.25rem 0; }
	.uj-ad-price { padding: 1.25rem; }

	/* Preview becomes a swipeable row so portrait pages stay legible. */
	.uj-ad-preview {
		grid-auto-flow: column;
		grid-template-columns: none;
		grid-auto-columns: 72%;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 0.5rem;
	}
	.uj-ad-preview__item { scroll-snap-align: center; }
}

@media (max-width: 768px) {
	.uj-ad-stickybar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.75rem;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 50;
		padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
		background: #fff;
		border-top: 1px solid #e5d8d0;
		box-shadow: 0 -4px 16px rgba(20, 12, 18, 0.14);
	}
	.uj-ad-stickybar.is-hidden { display: none; }
	.uj-ad-stickybar__price {
		font-weight: 800;
		font-size: 1.15rem;
		color: #1f1f1f;
	}
	.uj-ad-stickybar__strike {
		font-size: 0.9rem;
		color: #9a9a9a;
		text-decoration: line-through;
		font-weight: 600;
		margin-right: 0.25rem;
	}
	.uj-ad-stickybar__btn { flex: 0 0 auto; padding: 0.7rem 1.25rem; }
	/* Keep the last section clear of the fixed bar (not on the thank-you view). */
	.uj-ad:not(.uj-ad--return) { padding-bottom: 5rem; }
}
