/* S.S.S. (FAQ) — AIKeySoft */
.page-sss {
	--sss-sidebar-w: 260px;
}

.page-sss .bg-mesh {
	opacity: 0.85;
}

/* —— Hero —— */
.tts-hero {
	position: relative;
	padding: calc(var(--header-offset) + 2.5rem) 0 2.25rem;
	overflow: hidden;
	background: linear-gradient(180deg, var(--bg) 0%, var(--section-alt) 100%);
}

.tts-hero__ambient {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.tts-hero__mesh {
	position: absolute;
	inset: -25% -15% auto;
	height: 70%;
	opacity: 0.5;
	background-image:
		linear-gradient(rgba(79, 70, 229, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(79, 70, 229, 0.04) 1px, transparent 1px);
	background-size: 40px 40px;
	mask-image: radial-gradient(ellipse 65% 55% at 50% 0%, #000 18%, transparent 70%);
	animation: ttsMeshDrift 32s linear infinite;
}

@keyframes ttsMeshDrift {
	to {
		transform: translate(-40px, 40px);
	}
}

.tts-hero__orb {
	position: absolute;
	border-radius: 50%;
	opacity: 0.45;
	animation: ttsOrbFloat 22s ease-in-out infinite;
}

.tts-hero__orb--a {
	width: min(420px, 80vw);
	height: min(420px, 80vw);
	background: radial-gradient(circle, rgba(79, 70, 229, 0.2), transparent 68%);
	top: -18%;
	right: -12%;
}

.tts-hero__orb--b {
	width: min(320px, 65vw);
	height: min(320px, 65vw);
	background: radial-gradient(circle, rgba(124, 58, 237, 0.16), transparent 72%);
	bottom: -8%;
	left: -15%;
	animation-delay: -8s;
}

@keyframes ttsOrbFloat {
	0%,
	100% {
		transform: translate(0, 0) scale(1);
	}
	50% {
		transform: translate(-2%, 2%) scale(1.03);
	}
}

.tts-hero__inner {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 42rem;
	margin-inline: auto;
}

.tts-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.11em;
	color: var(--accent-2);
	margin-bottom: 0.65rem;
}

.tts-hero__title {
	font-family: var(--font-display);
	font-size: clamp(2rem, 4.2vw, 2.75rem);
	font-weight: 800;
	letter-spacing: -0.038em;
	line-height: 1.1;
	color: var(--text);
	margin-bottom: 0.75rem;
}

.tts-hero__title em {
	font-style: normal;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.tts-hero__lead {
	font-size: clamp(1rem, 1.9vw, 1.1rem);
	color: var(--text-muted);
	line-height: 1.65;
	margin-bottom: 1.5rem;
}

.tts-search {
	max-width: 36rem;
	margin-inline: auto;
	position: relative;
}

.tts-search__icon {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--accent);
	font-size: 0.95rem;
	pointer-events: none;
}

.tts-search__input {
	width: 100%;
	padding: 0.85rem 1rem 0.85rem 2.75rem;
	border-radius: var(--radius-pill);
	border: 1px solid var(--border-strong);
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(12px);
	font-family: var(--font-sans);
	font-size: 0.95rem;
	color: var(--text);
	box-shadow: 0 4px 24px rgba(79, 70, 229, 0.08);
	transition:
		border-color 0.25s,
		box-shadow 0.35s var(--ease-out-expo),
		background 0.25s;
}

.tts-search__input::placeholder {
	color: var(--text-subtle);
}

.tts-search__input:focus {
	outline: none;
	border-color: rgba(79, 70, 229, 0.45);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12), 0 8px 32px rgba(79, 70, 229, 0.12);
	background: rgba(255, 255, 255, 0.92);
}

.tts-search__clear {
	position: absolute;
	right: 0.65rem;
	top: 50%;
	transform: translateY(-50%);
	width: 2rem;
	height: 2rem;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: var(--text-muted);
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, color 0.2s;
}

.tts-search__clear.is-visible {
	display: inline-flex;
}

.tts-search__clear:hover {
	background: rgba(79, 70, 229, 0.08);
	color: var(--accent);
}

.tts-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.25rem;
	margin-top: 1rem;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--text-subtle);
}

.tts-meta span {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.tts-meta i {
	color: var(--accent);
}

/* —— Layout —— */
.tts-layout {
	display: grid;
	grid-template-columns: var(--sss-sidebar-w) 1fr;
	gap: 1.75rem;
	align-items: start;
	padding: clamp(2rem, 5vw, 3rem) 0 clamp(3rem, 8vw, 4.5rem);
	max-width: 1120px;
	margin-inline: auto;
	padding-inline: max(1rem, 4vw);
}

@media (max-width: 960px) {
	.tts-layout {
		grid-template-columns: 1fr;
	}
}

.tts-sidebar {
	position: sticky;
	top: calc(var(--header-offset) + 1rem);
	padding: 1.1rem 1rem;
	border-radius: var(--radius-lg);
	z-index: 8;
}

@media (max-width: 960px) {
	.tts-sidebar {
		position: relative;
		top: auto;
		padding: 0.85rem 0.75rem;
	}
}

.tts-sidebar__title {
	font-size: 0.68rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--text-subtle);
	margin-bottom: 0.65rem;
}

.tts-cat {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

@media (max-width: 960px) {
	.tts-cat {
		flex-direction: row;
		flex-wrap: nowrap;
		overflow-x: auto;
		gap: 0.45rem;
		padding-bottom: 0.25rem;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}
}

.tts-cat__btn {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	text-align: left;
	padding: 0.55rem 0.75rem;
	border-radius: var(--radius);
	border: 1px solid transparent;
	background: rgba(255, 255, 255, 0.35);
	color: var(--text-muted);
	font-family: var(--font-sans);
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	transition:
		background 0.3s var(--ease-out-expo),
		border-color 0.25s,
		color 0.2s,
		transform 0.2s,
		box-shadow 0.35s;
	flex-shrink: 0;
}

@media (max-width: 960px) {
	.tts-cat__btn {
		width: auto;
		white-space: nowrap;
	}
}

.tts-cat__btn i {
	width: 1.1rem;
	text-align: center;
	color: var(--accent);
	font-size: 0.85rem;
	transition: transform 0.35s var(--ease-out-expo);
}

.tts-cat__btn:hover {
	color: var(--text);
	border-color: rgba(79, 70, 229, 0.15);
	box-shadow: 0 4px 16px rgba(79, 70, 229, 0.08);
}

.tts-cat__btn.is-active {
	background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(124, 58, 237, 0.07));
	border-color: rgba(79, 70, 229, 0.28);
	color: var(--accent);
	box-shadow: 0 4px 18px rgba(79, 70, 229, 0.12);
}

.tts-cat__btn.is-active i {
	transform: scale(1.08);
}

.tts-sidebar__foot {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border);
	font-size: 0.72rem;
	color: var(--text-subtle);
	line-height: 1.5;
}

@media (max-width: 960px) {
	.tts-sidebar__foot {
		display: none;
	}
}

.tts-main {
	min-width: 0;
}

.tts-results {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--text-muted);
	margin-bottom: 1rem;
	min-height: 1.25em;
}

.tts-results strong {
	color: var(--accent);
	font-weight: 800;
}

.tts-cat-head {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin: 2rem 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--border);
	scroll-margin-top: calc(var(--header-offset) + 1rem);
}

.tts-cat-head:first-child {
	margin-top: 0;
}

.tts-cat-head__icon {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(124, 58, 237, 0.08));
	color: var(--accent);
	font-size: 1.05rem;
}

.tts-cat-head h2 {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--text);
}

.tts-cat-head p {
	margin: 0.15rem 0 0;
	font-size: 0.8rem;
	color: var(--text-muted);
}

/* Accordion (div-based for animation) */
.tts-acc {
	border-radius: var(--radius-lg);
	margin-bottom: 0.65rem;
	overflow: hidden;
	border: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(14px) saturate(160%);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	transition:
		border-color 0.35s var(--ease-out-expo),
		box-shadow 0.4s var(--ease-out-expo),
		transform 0.35s var(--ease-out-expo);
}

.tts-acc:hover {
	border-color: rgba(79, 70, 229, 0.22);
	box-shadow: 0 8px 28px rgba(79, 70, 229, 0.08);
}

.tts-acc.is-open {
	border-color: rgba(79, 70, 229, 0.32);
	box-shadow: 0 12px 40px rgba(79, 70, 229, 0.1);
}

.tts-acc.is-hidden {
	display: none !important;
}

.tts-acc__btn {
	width: 100%;
	border: none;
	background: transparent;
	cursor: pointer;
	padding: 1rem 1.15rem;
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	text-align: left;
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 0.92rem;
	color: var(--text);
	line-height: 1.4;
	transition: background 0.25s;
}

.tts-acc__btn:hover {
	background: rgba(79, 70, 229, 0.04);
}

.tts-acc__icon {
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid var(--border);
	color: var(--accent);
	font-size: 0.85rem;
}

.tts-acc__chev {
	margin-left: auto;
	flex-shrink: 0;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(79, 70, 229, 0.08);
	color: var(--accent);
	font-size: 0.65rem;
	transition: transform 0.45s var(--ease-out-expo), background 0.25s;
}

.tts-acc.is-open .tts-acc__chev {
	transform: rotate(180deg);
}

.tts-acc__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.45s var(--ease-out-expo);
}

.tts-acc.is-open .tts-acc__panel {
	grid-template-rows: 1fr;
}

.tts-acc__panel-inner {
	overflow: hidden;
	min-height: 0;
}

.tts-acc__body {
	padding: 0 1.15rem 1.1rem 3.35rem;
	font-size: 0.88rem;
	color: var(--text-muted);
	line-height: 1.7;
	border-top: 1px solid var(--border);
	opacity: 0;
	transform: translateY(-6px);
	transition:
		opacity 0.35s ease 0.05s,
		transform 0.4s var(--ease-out-expo) 0.05s;
}

.tts-acc.is-open .tts-acc__body {
	opacity: 1;
	transform: translateY(0);
}

.tts-acc__body p {
	margin: 0 0 0.65rem;
}

.tts-acc__body p:last-child {
	margin-bottom: 0;
}

.tts-acc__body ul {
	margin: 0.35rem 0 0.65rem 1rem;
	padding: 0;
}

.tts-acc__body li {
	margin-bottom: 0.35rem;
}

.tts-empty {
	text-align: center;
	padding: 2.5rem 1rem;
	border-radius: var(--radius-lg);
	border: 1px dashed rgba(79, 70, 229, 0.25);
	background: rgba(255, 255, 255, 0.45);
	color: var(--text-muted);
	font-size: 0.92rem;
}

.tts-empty.is-hidden {
	display: none;
}

.tts-help {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-top: 2.5rem;
}

@media (max-width: 720px) {
	.tts-help {
		grid-template-columns: 1fr;
	}
}

.tts-help__card {
	padding: 1.35rem 1.25rem;
	border-radius: var(--radius-lg);
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.tts-help__card h3 {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 800;
	font-family: var(--font-display);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.tts-help__card h3 i {
	color: var(--accent);
}

.tts-help__card p {
	margin: 0;
	font-size: 0.88rem;
	color: var(--text-muted);
	line-height: 1.6;
	flex: 1;
}

.tts-cta {
	position: relative;
	padding: clamp(2.5rem, 6vw, 3.5rem) 0;
	overflow: hidden;
	background: var(--section-alt);
}

.tts-cta__glow {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 55% 80% at 50% 100%, rgba(79, 70, 229, 0.12), transparent 55%);
	pointer-events: none;
}

.tts-cta__inner {
	position: relative;
	z-index: 1;
	max-width: 900px;
	margin-inline: auto;
	padding: clamp(1.75rem, 4vw, 2.25rem);
	border-radius: calc(var(--radius-lg) + 6px);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
}

.tts-cta__text h2 {
	margin: 0 0 0.45rem;
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--text);
}

.tts-cta__text p {
	margin: 0;
	font-size: 0.95rem;
	color: var(--text-muted);
	line-height: 1.6;
	max-width: 28rem;
}

.tts-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.tts-wa {
	padding: clamp(2rem, 5vw, 3rem) 0 clamp(2.5rem, 6vw, 3.5rem);
	background: var(--section-alt);
}

.tts-wa__inner {
	max-width: 720px;
	margin-inline: auto;
	padding: clamp(1.5rem, 3.5vw, 1.85rem) 1.35rem;
	border-radius: var(--radius-lg);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	border: 1px solid rgba(37, 211, 102, 0.25);
	background: linear-gradient(135deg, rgba(37, 211, 102, 0.08), rgba(255, 255, 255, 0.65));
}

.tts-wa__icon {
	font-size: 2.25rem;
	color: #25d366;
	animation: ttsWaPulse 2.8s ease-in-out infinite;
}

@keyframes ttsWaPulse {
	0%,
	100% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(1.06);
		opacity: 0.88;
	}
}

.tts-wa__text strong {
	display: block;
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--text);
	margin-bottom: 0.25rem;
}

.tts-wa__text span {
	font-size: 0.86rem;
	color: var(--text-muted);
	line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
	.tts-hero__mesh,
	.tts-hero__orb,
	.tts-wa__icon {
		animation: none !important;
	}
	.tts-acc__panel,
	.tts-acc__body {
		transition: none !important;
	}
}
