/*
 * Dunamai Utility Page — layout styles
 *
 * All rules scoped under .dmu-page to avoid X Theme / WPBakery conflicts.
 * Inherits typography from the active theme (X Theme); only structural
 * styles defined here. Override in a child theme if needed.
 */

.dmu-page {
	max-width: 880px;
	margin: 0 auto;
	padding: 1.5rem 1rem;
	box-sizing: border-box;
}

.dmu-page *,
.dmu-page *::before,
.dmu-page *::after {
	box-sizing: inherit;
}

/* ── Trust block ─────────────────────────────────────────────── */

.dmu-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	justify-content: center;
	padding: 0.75rem 0;
	font-size: 0.875rem;
	color: var(--dmu-trust-color, #4a5568);
}

.dmu-trust__item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.dmu-trust__item::before {
	content: "✓";
	color: var(--dmu-trust-check, #38a169);
	font-weight: 700;
}

.dmu-trust--top {
	border-bottom: 1px solid var(--dmu-divider, #e2e8f0);
	margin-bottom: 1.5rem;
}

.dmu-trust--bottom {
	border-top: 1px solid var(--dmu-divider, #e2e8f0);
	margin-top: 2rem;
}

/* ── Header ──────────────────────────────────────────────────── */

.dmu-page__header {
	text-align: center;
	margin-bottom: 1.5rem;
}

.dmu-page__title {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	line-height: 1.2;
	margin: 0 0 0.5rem;
}

.dmu-page__intro {
	color: var(--dmu-intro-color, #4a5568);
	font-size: 1.05rem;
	line-height: 1.6;
	max-width: 60ch;
	margin: 0 auto;
}

/* ── Tool slot ───────────────────────────────────────────────── */

.dmu-page__tool {
	background: var(--dmu-tool-bg, #f7fafc);
	border: 1px solid var(--dmu-divider, #e2e8f0);
	border-radius: 8px;
	padding: 1.5rem;
	margin: 1.5rem 0 2rem;
}

/* ── How it works ────────────────────────────────────────────── */

.dmu-how {
	margin: 2.5rem 0;
}

.dmu-how__heading {
	text-align: center;
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
}

.dmu-how__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
}

.dmu-how__step {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.dmu-how__num {
	flex: 0 0 2.25rem;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--dmu-num-bg, #2b6cb0);
	color: var(--dmu-num-color, #fff);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}

.dmu-how__content {
	flex: 1 1 auto;
}

.dmu-how__title {
	font-size: 1.05rem;
	margin: 0 0 0.25rem;
}

.dmu-how__body {
	margin: 0;
	color: var(--dmu-body-color, #4a5568);
	line-height: 1.55;
}

/* ── FAQ ─────────────────────────────────────────────────────── */

.dmu-faq {
	margin: 2.5rem 0;
}

.dmu-faq__heading {
	text-align: center;
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
}

.dmu-faq__list {
	display: grid;
	gap: 0.5rem;
}

.dmu-faq__item {
	background: var(--dmu-faq-bg, #fff);
	border: 1px solid var(--dmu-divider, #e2e8f0);
	border-radius: 6px;
	padding: 0;
	overflow: hidden;
}

.dmu-faq__question {
	cursor: pointer;
	padding: 0.875rem 1rem;
	font-weight: 600;
	list-style: none;
	position: relative;
	user-select: none;
}

.dmu-faq__question::-webkit-details-marker {
	display: none;
}

.dmu-faq__question::after {
	content: "+";
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.25rem;
	color: var(--dmu-faq-icon, #2b6cb0);
	transition: transform 0.2s;
}

.dmu-faq__item[open] .dmu-faq__question::after {
	content: "−";
}

.dmu-faq__answer {
	padding: 0 1rem 1rem;
	color: var(--dmu-body-color, #4a5568);
	line-height: 1.6;
}

/* ── Mobile ──────────────────────────────────────────────────── */

@media (max-width: 600px) {
	.dmu-page {
		padding: 1rem 0.75rem;
	}
	.dmu-page__tool {
		padding: 1rem;
	}
	.dmu-trust {
		font-size: 0.8125rem;
	}
}
