/*
Theme Name: Fix My Speaker Child
Theme URI: https://fixmyspeaker.srt.bd/
Description: GeneratePress child theme for Fix My Speaker. Hosts the speaker cleaning tool assets (Web Audio engine, tool styles) and the landing page design system.
Author: Salah
Version: 1.1.0
Template: generatepress
License: GNU General Public License v2 or later
Text Domain: fixmyspeaker-child
*/

:root {
	--fms-deep: #071a1f;
	--fms-deep-2: #0b3b42;
	--fms-teal: #12909e;
	--fms-teal-deep: #0b6e78;
	--fms-teal-soft: #e3f4f5;
	--fms-amber: #e0a34a;
	--fms-ink: #0d1618;
	--fms-ink-2: #445b60;
	--fms-ink-3: #7d9499;
	--fms-line: #dde6e7;
	--fms-ground: #f4f8f8;
}

/* Hero ------------------------------------------------------------- */

.fms-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(120% 90% at 50% 0%, #10505a 0%, transparent 60%),
		linear-gradient(168deg, var(--fms-deep-2) 0%, var(--fms-deep) 62%);
	color: #eaf5f6;
	isolation: isolate;
}

/* Sound-wave backdrop: concentric arcs spreading from the top centre,
   the shape the tool is actually producing. */
.fms-hero::before {
	content: "";
	position: absolute;
	inset: -30% -10% auto -10%;
	height: 150%;
	z-index: -1;
	background-image:
		repeating-radial-gradient(
			circle at 50% 0%,
			rgba(255, 255, 255, 0.07) 0 1px,
			transparent 1px 78px
		);
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, transparent 72%);
	-webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, transparent 72%);
	pointer-events: none;
}

.fms-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #8fe3ec;
	background: rgba(18, 144, 158, 0.16);
	border: 1px solid rgba(143, 227, 236, 0.32);
	border-radius: 100px;
	padding: 6px 14px;
}

.fms-hero h1 {
	color: #ffffff;
	letter-spacing: -0.025em;
}

.fms-hero .fms-sub {
	color: #b6d4d8;
}

.fms-hero .fms-amber {
	color: var(--fms-amber);
	font-weight: 650;
}

.fms-trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 22px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.82rem;
	color: #9dc2c7;
}

.fms-trust li {
	display: flex;
	align-items: center;
	gap: 7px;
}

.fms-trust li::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--fms-teal);
	flex: none;
}

/* Steps ------------------------------------------------------------ */

.fms-step {
	position: relative;
	padding-top: 22px;
	border-top: 2px solid var(--fms-teal);
}

.fms-step .fms-step-n {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fms-teal-deep);
	margin-bottom: 8px;
}

/* Frequency spectrum ----------------------------------------------- */

.fms-spectrum {
	width: 100%;
	overflow-x: auto;
}

.fms-spectrum svg {
	display: block;
	width: 100%;
	min-width: 460px;
	height: auto;
}

/* Topic cards ------------------------------------------------------ */

.fms-topic {
	position: relative;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.fms-topic::after {
	content: "→";
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--fms-ink-3);
	font-size: 1.05rem;
	transition: color 0.15s ease, transform 0.15s ease;
}

.fms-topic:hover,
.fms-topic:focus-visible {
	border-color: var(--fms-teal);
	background-color: var(--fms-teal-soft);
}

.fms-topic:hover::after {
	color: var(--fms-teal-deep);
	transform: translate(3px, -50%);
}

.fms-topic:focus-visible {
	outline: 2px solid var(--fms-teal);
	outline-offset: 2px;
}

/* Verdict panels --------------------------------------------------- */

.fms-verdict {
	border-radius: 14px;
	padding: 22px 24px;
}

.fms-verdict.is-yes {
	background: var(--fms-teal-soft);
	border: 1px solid #a9d8dc;
}

.fms-verdict.is-no {
	background: #fdf4e7;
	border: 1px solid #f0d6ab;
}

.fms-verdict ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 9px;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--fms-ink-2);
}

.fms-verdict li {
	display: grid;
	grid-template-columns: 18px 1fr;
	gap: 10px;
	align-items: start;
}

.fms-verdict.is-yes li::before {
	content: "✓";
	color: var(--fms-teal-deep);
	font-weight: 700;
}

.fms-verdict.is-no li::before {
	content: "✕";
	color: #b4720f;
	font-weight: 700;
}

/* FAQ -------------------------------------------------------------- */

.fms-faq {
	border-top: 1px solid var(--fms-line);
}

.fms-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 20px 34px 20px 0;
	position: relative;
	font-weight: 600;
	font-size: 1.03rem;
	color: var(--fms-ink);
	line-height: 1.45;
}

.fms-faq summary::-webkit-details-marker {
	display: none;
}

.fms-faq summary::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--fms-teal-deep);
	line-height: 1;
}

.fms-faq[open] summary::after {
	content: "−";
}

.fms-faq summary:focus-visible {
	outline: 2px solid var(--fms-teal);
	outline-offset: -2px;
}

.fms-faq p {
	margin: 0;
	padding: 0 0 22px;
	font-size: 0.98rem;
	line-height: 1.7;
	color: var(--fms-ink-2);
	max-width: 68ch;
}

@media (prefers-reduced-motion: reduce) {
	.fms-topic,
	.fms-topic::after {
		transition: none;
	}
}
