﻿/**
 * AI Alternatives – Single Alternative Page
 *
 * Self-contained: includes all hero, TOC, content-section, FAQ, and
 * related-section styles copied from single-tool.css so this page does
 * NOT need to load that file.
 *
 * Mobile-first · RTL-friendly · Print-ready
 */


/* ===================================================================
   1. CONTAINER
   =================================================================== */

.single-alternative .container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 var(--space-6);
}


/* ===================================================================
   2. HEADER — copied from single-tool.css §2
   =================================================================== */

.single-alternative .single-tool__header {
	background: radial-gradient(circle at top right, var(--color-bg-secondary), var(--surface-card));
	padding: var(--space-16) 0;
	border-bottom: 1px solid var(--border-default);
	position: relative;
	overflow: hidden;
}

.single-alternative .single-tool__header::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 30% 20%, rgba(0, 180, 216, 0.1) 0%, transparent 50%);
	pointer-events: none;
}

.single-alternative .tool-header {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	padding: var(--space-16) 0;
	position: relative;
	z-index: 1;
}

/* Breadcrumbs */
.single-alternative .single-tool__breadcrumbs .tiorai-breadcrumb {
	margin-bottom: var(--space-3);
	display: flex;
	justify-content: left;
}

/* Header main row */
.single-alternative .tool-header__main {
	display: flex;
	align-items: flex-start;
	gap: var(--space-6);
}

/* Logo */
.single-alternative .tool-header__logo {
	flex-shrink: 0;
}

.single-alternative .tool-logo {
	width: 80px;
	height: 80px;
	object-fit: contain;
	border-radius: 24px;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
		0 10px 10px -5px rgba(0, 0, 0, 0.04),
		0 0 0 1px rgba(255, 255, 255, 0.1);
	transform: perspective(1000px) rotateX(5deg);
	transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.single-alternative .tool-header:hover .tool-logo {
	transform: perspective(1000px) rotateX(0deg) scale(1.05);
}

/* Content */
.single-alternative .tool-header__content {
	flex: 1;
}

/* Title */
.single-alternative .tool-header__title {
	font-size: 2.5rem;
	font-weight: 700;
	background: var(--color-text-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: var(--space-3);
}

/* Excerpt / subtitle */
.single-alternative .tool-header__excerpt {
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--color-text-secondary);
	margin-bottom: var(--space-4);
	max-width: 850px;
}

.single-alternative .tool-header__excerpt p {
	margin: 0;
}

/* Meta row */
.single-alternative .tool-header__meta {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	margin-bottom: var(--space-4);
	flex-wrap: wrap;
	justify-content: flex-start;
}

.single-alternative .tool-header__pricing {
	display: flex;
	gap: var(--space-2);
}

/* Pricing badges */
.single-alternative .pricing-badge {
	color: var(--color-text-secondary);
	padding: var(--space-2) var(--space-4);
	border-radius: var(--radius-default);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	backdrop-filter: blur(8px);
	border: 1px solid var(--border-default);
}

.single-alternative .pricing-badge--free {
	background: var(--color-success);
	color: var(--color-text-primary);
}

.single-alternative .pricing-badge--paid {
	background: var(--color-primary);
	color: var(--color-text-primary);
}

.single-alternative .pricing-badge--freemium {
	background: rgba(234, 179, 8, 0.15);
	color: #eab308;
	border-color: rgba(234, 179, 8, 0.3);
}

.single-alternative .pricing-badge--subscription {
	background: rgba(99, 102, 241, 0.15);
	color: var(--color-primary);
	border-color: var(--border-strong);
}

/* Taxonomies */
.single-alternative .tool-header__taxonomies {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.single-alternative .tool-categories,
.single-alternative .tool-tech-stack {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	align-items: center;
}

.single-alternative .tax-label {
	color: var(--color-text-secondary);
	font-weight: 500;
	font-size: 0.875rem;
}

.single-alternative .category-tag,
.single-alternative .tech-chip {
	display: inline-flex;
	align-items: center;
	padding: var(--space-2) var(--space-3);
	border-radius: var(--radius-default);
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
	backdrop-filter: blur(8px);
	border: 1px solid var(--border-default);
	color: var(--color-text-secondary);
}

.single-alternative .category-tag:hover {
	background: var(--color-primary);
	color: var(--color-text-primary);
	transform: translateY(-1px);
}

/* Actions */
.single-alternative .tool-header__actions--fancy {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	margin-top: var(--space-6);
	flex-wrap: wrap;
}

/* Visit / Fancy buttons */
.single-alternative .btn--visit {
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary) 100%);
	box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
	padding: var(--space-4) var(--space-10);
	font-size: 1.1rem;
	border-radius: 100px;
	font-weight: 600;
	border: 1px solid rgba(255, 255, 255, 0.2);
	position: relative;
	overflow: hidden;
}

.single-alternative .btn--visit::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
	opacity: 0;
	transition: opacity 0.3s;
}

.single-alternative .btn--visit:hover {
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 6px 20px rgba(99, 102, 241, 0.23);
}

.single-alternative .btn--visit:hover::before {
	opacity: 1;
}

.single-alternative .btn--fancy {
	display: inline-flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-4) var(--space-6);
	font-size: 1rem;
	font-weight: 600;
	border-radius: var(--radius-default);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	position: relative;
	overflow: hidden;
}

.single-alternative .btn--fancy::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s ease;
}

.single-alternative .btn--fancy:hover::before {
	left: 100%;
}

.single-alternative .btn--fancy:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.single-alternative .btn--fancy svg {
	width: 20px;
	height: 20px;
	transition: transform 0.3s ease;
}

.single-alternative .btn--fancy:hover svg {
	transform: translateX(3px);
}


/* ===================================================================
   3. CONTENT LAYOUT — no sidebar
   =================================================================== */

.single-alternative .single-tool__content {
	padding: var(--space-12) 0;
}

/* Full-width (no sidebar) */
.single-alternative .tool-content.collection-content--no-sidebar {
	display: block;
}

.single-alternative .tool-content__main {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
}


/* ===================================================================
   4. TABLE OF CONTENTS — copied from single-tool.css §4
   =================================================================== */

/* Shared TOC styles now live in assets/css/unified/toc.css */


/* ===================================================================
   5. CONTENT SECTIONS — copied from single-tool.css §5
   =================================================================== */

.single-alternative .content-section {
	border: none !important;
	background: transparent !important;
	padding: var(--space-8) 0;
}

.single-alternative .content-section__title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: var(--space-6);
	color: var(--color-text-primary);
	padding-left: var(--space-4);
	position: relative;
}

.single-alternative .content-section__title::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--color-primary);
	border-radius: 2px;
}

.single-alternative .content-section__content {
	color: var(--color-text-secondary);
	line-height: 1.6;
	background: transparent;
	padding: 0;
}

/* Intro text above table */
.single-alternative .content-section__intro {
	color: var(--color-text-secondary);
	font-size: 0.9375rem;
	line-height: 1.6;
	margin-bottom: var(--space-4);
}


/* ===================================================================
   6. FAQ ACCORDION — styles moved to assets/css/unified/faq.css
   =================================================================== */


/* ===================================================================
   7. RELATED ALTERNATIVES — "People are looking for alternatives to…"
   =================================================================== */

.single-alternative .alt-related {
	padding: var(--space-12) 0;
	border-top: 1px solid var(--border-default);
}

/* Title gradient text */
.single-alternative .alt-related__title {
	font-size: 1.875rem;
	font-weight: 700;
	background: var(--color-text-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-transform: capitalize;
	text-align: center;
}

/* Footer: centered "View all" button below grid */
.single-alternative .alt-related__footer {
	display: flex;
	justify-content: center;
	margin-top: var(--space-24);
}

.single-alternative .alt-related__view-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.875rem;
	font-weight: 500;
	background-color: var(--surface-raised);
	color: var(--color-text-secondary);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-default);
	padding: 8px 20px;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s, border-color 0.2s;
}

.single-alternative .alt-related__view-all:hover {
	background-color: var(--surface-brand);
	color: var(--color-text-primary);
	border-color: var(--surface-brand);
	text-decoration: none;
}

/* 3-column card grid */
.single-alternative .alt-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-4);
}

/* Card */
.single-alternative .alt-related-card {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	background: var(--surface-card);
	border: 1px solid var(--border-default);
	;
	border-radius: var(--radius-default);
	padding: var(--space-5);
	text-decoration: none;
	transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.single-alternative .alt-related-card:hover {
	border-color: rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.05);
	transform: translateY(-2px);
	text-decoration: none;
}

/* Logo + name row */
.single-alternative .alt-related-card__head {
	display: flex;
	align-items: center;
	gap: var(--space-3);
}

.single-alternative .alt-related-card__logo {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	overflow: hidden;
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--border-default);
	display: flex;
	align-items: center;
	justify-content: center;
}

.single-alternative .alt-related-card__logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.single-alternative .alt-related-card__logo--initials span {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--color-accent, var(--color-primary));
}

.single-alternative .alt-related-card__name {
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-text-primary);
	line-height: 1.2;
}

/* Description */
.single-alternative .alt-related-card__desc {
	font-size: 0.875rem;
	color: var(--color-text-secondary);
	line-height: 1.6;
	margin: 0;
	flex: 1;
}

/* Count badge */
.single-alternative .alt-related-card__count {
	font-size: 0.8125rem;
	color: var(--color-text-secondary);
	margin-top: auto;
}


/* ===================================================================
   8. PRIMARY TOOL BADGE
   =================================================================== */

.single-alternative .alternative-primary-badge {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	background: var(--surface-card);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-default);
	padding: var(--space-2) var(--space-4);
	margin-top: var(--space-4);
	flex-wrap: wrap;
}

.single-alternative .alternative-primary-badge__logo {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	overflow: hidden;
	flex-shrink: 0;
}

.single-alternative .alternative-primary-badge__logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.single-alternative .alternative-primary-badge__label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-text-primary, #fff);
}

.single-alternative .alternative-primary-badge__visit {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.8125rem;
	color: var(--color-primary);
	text-decoration: none;
	transition: opacity 0.2s;
}

.single-alternative .alternative-primary-badge__visit:hover {
	opacity: 0.8;
	text-decoration: underline;
}

/* Date meta */
.single-alternative .single-alternative__date-meta {
	color: var(--color-text-secondary);
	font-size: 0.875rem;
}


/* ===================================================================
   9. FILTER BAR — styled like TOC box
   =================================================================== */

.single-alternative .alt-filter-bar {
	background: var(--surface-card);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-default);
	padding: var(--space-4) var(--space-6);
	margin-bottom: var(--space-6);
	margin-top: var(--space-4);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.single-alternative .alt-filter-bar:hover {
	border-color: var(--border-strong);
	box-shadow: var(--shadow-sm);
}

.single-alternative .alt-filter-bar__inner {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	flex-wrap: wrap;
	justify-content: space-between;
}

.single-alternative .alt-filter-bar__filters {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	flex-wrap: wrap;
}

.single-alternative .alt-filter-bar__label {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--color-text-secondary);
	white-space: nowrap;
}

.single-alternative .alt-filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--color-text-secondary);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-default);
	cursor: pointer;
	transition: all 0.2s;
	white-space: nowrap;
}

.single-alternative .alt-filter-btn:hover {
	background: var(--border-default);
	color: var(--color-text-primary);
	border-color: rgba(255, 255, 255, 0.15);
}

.single-alternative .alt-filter-btn.is-active {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-text-primary);
}

.single-alternative .alt-filter-btn__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: var(--radius-default);
	font-size: 0.6875rem;
	font-weight: 600;
}

.single-alternative .alt-filter-btn.is-active .alt-filter-btn__count {
	background: rgba(255, 255, 255, 0.25);
}

.single-alternative .alt-sort-select {
	padding: 6px 12px;
	font-size: 0.8125rem;
	color: var(--color-text-secondary);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-default);
	cursor: pointer;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.single-alternative .alt-sort-select:focus {
	border-color: var(--color-primary);
}


/* ===================================================================
   10. QUICK PICKS GRID
   =================================================================== */

.single-alternative .quick-picks-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-4);
	margin-top: var(--space-5);
}

/* Card is an <a> tag — reset link styles */
.single-alternative .quick-pick-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--space-3);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-default);
	padding: var(--space-4);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s, transform 0.2s, background 0.2s;
	overflow: visible;
}

.single-alternative .quick-pick-card:hover {
	border-color: var(--border-strong);
	background: rgba(255, 255, 255, 0.06);
	transform: translateY(-2px);
	text-decoration: none;
	color: inherit;
}

/* Logo */
.single-alternative .quick-pick-card__logo {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--border-default);
	display: flex;
	align-items: center;
	justify-content: center;
}

.single-alternative .quick-pick-card__logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.single-alternative .quick-pick-card__initials {
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-accent, var(--color-primary));
}

/* Text */
.single-alternative .quick-pick-card__info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.single-alternative .quick-pick-card__title {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--color-text-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
}

.single-alternative .quick-pick-card__cat {
	font-size: 0.75rem;
	color: var(--color-text-secondary);
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}


/* ===================================================================
   11. ALTERNATIVE CARDS GRID — single column
   =================================================================== */

.single-alternative .alternatives-cards-grid {
	display: flex;
	flex-direction: column;
	gap: var(--space-5);
	margin-top: var(--space-5);
}

/* Card */
.single-alternative .alt-card {
	padding: var(--space-6) 0;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 0;
	transition: border-color 0.25s, box-shadow 0.25s;
}

/* Rank column — left side */
.single-alternative .alt-card__rank-col {
	display: flex;
	flex-shrink: 0;
	width: 3rem;
	height: 48px;
	align-items: center;
	justify-content: center;
}

/* Body column — right side, takes remaining space */
.single-alternative .alt-card__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}


.single-alternative .alt-card.is-hidden {
	display: none;
}

/* ── Head row: rank + logo + title-wrap ── */
.single-alternative .alt-card__head {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	padding-bottom: var(--space-4);
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Rank: large muted #N at the far left */
.single-alternative .alt-card__rank {
	font-size: 1.375rem;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.2);
	min-width: 2.5rem;
	flex-shrink: 0;
	line-height: 1;
	letter-spacing: -0.02em;
}

/* Logo */
.single-alternative .alt-card__logo {
	width: 48px;
	height: 48px;
	border-radius: var(--radius-default);
	overflow: hidden;
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--border-default);
	display: flex;
	align-items: center;
	justify-content: center;
}

.single-alternative .alt-card__logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.single-alternative .alt-card__initials {
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-accent, var(--color-primary));
}

/* Title + badges */
.single-alternative .alt-card__title-wrap {
	flex: 1;
	min-width: 0;
}

.single-alternative .alt-card__title {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0 0 6px;
	line-height: 1.25;
}

.single-alternative .alt-card__title a {
	color: var(--color-text-primary);
	text-decoration: none;
}

.single-alternative .alt-card__title a:hover {
	color: var(--color-accent, var(--color-primary));
}

.single-alternative .alt-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

/* Description */
.single-alternative .alt-card__desc {
	line-height: 1.65;
	margin: 0;
}

/* Screenshot */
.single-alternative .alt-card__screenshot {
	border-radius: var(--radius-default);
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.single-alternative .alt-card__screenshot img {
	width: 100%;
	display: block;
	transition: transform 0.4s ease;
}

.single-alternative .alt-card:hover .alt-card__screenshot img {
	transform: scale(1.02);
}

/* ── Meta lists: Key Features / Pros / Use Cases ── */
.single-alternative .alt-card__meta-lists {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding-top: var(--space-3);
}

.single-alternative .alt-card__meta-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: var(--space-3) 0;
	background: var(--surface-card);
	border: 1px solid var(--border-default);
	border-radius: 16px;
	padding: var(--space-6);
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	height: 100%;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
	margin-bottom: var(--space-6);
}

.single-alternative .alt-card__meta-group:last-child {
	margin-bottom: 0;
}

/* Label — h4 with colored left accent */
.single-alternative .alt-card__meta-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	margin: 0;
	letter-spacing: 0.02em;
	text-transform: none;
}


/* Simple bullet list */
.single-alternative .alt-card__simple-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.single-alternative .alt-card__simple-list li {
	color: var(--color-text-secondary);
	line-height: 1.5;
	padding-left: 1.1rem;
	position: relative;
}

.single-alternative .alt-card__simple-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--color-primary);
	opacity: 0.6;
}

/* Icon color per section */

.single-alternative .alt-card__meta-label--pros~.alt-card__simple-list li::before {
	background: #22c55e;
}

.single-alternative .alt-card__meta-label--usecases~.alt-card__simple-list li::before {
	background: var(--color-accent, var(--color-primary));
}

/* Footer */
.single-alternative .alt-card__footer {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding-top: var(--space-3);

	margin-top: auto;
}

/* Alternatives link below card */
.single-alternative .alt-card__alt-link {
	padding: var(--space-3) var(--space-4) var(--space-4);
	border-top: 1px solid var(--border-default);
	margin-top: var(--space-2);
}

.single-alternative .btn--ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-md, 8px);
	padding: 0.45rem 0.875rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--color-text-secondary);
	text-decoration: none;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
	white-space: nowrap;
}

.single-alternative .btn--ghost:hover {
	background: rgba(0, 180, 216, 0.1);
	border-color: var(--color-accent, var(--color-primary));
	color: var(--color-accent, var(--color-primary));
	text-decoration: none;
}

.single-alternative .btn--full {
	width: 100%;
}

/* Plain link button for "Visit Tool" */
.single-alternative .btn--link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: none;
	border: none;
	padding: 0;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--color-text-secondary);
	text-decoration: none;
	transition: color 0.2s;
}

.single-alternative .btn--link:hover {
	color: var(--color-accent, var(--color-primary));
	text-decoration: none;
}

.single-alternative .btn--link svg {
	opacity: 0.7;
	transition: opacity 0.2s, transform 0.2s;
}

.single-alternative .btn--link:hover svg {
	opacity: 1;
	transform: translate(2px, -2px);
}

/* No results */
.single-alternative .alt-no-results {
	text-align: center;
	padding: var(--space-8);
	color: var(--color-text-secondary);
	font-size: 0.9375rem;
}


/* ===================================================================
   12. COMPARISON TABLE
   =================================================================== */

/* Outer: flex row with prev/next nav buttons */
.single-alternative .alt-table-outer {
	display: flex;
	align-items: stretch;
	gap: 0;
	margin-top: var(--space-5);
}

.single-alternative .alt-table-outer--no-nav .alt-table-nav {
	display: none;
}

/* Prev / Next scroll buttons */
.single-alternative .alt-table-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--border-default);
	color: var(--color-text-secondary);
	cursor: pointer;
	transition: all 0.2s;
}

.single-alternative .alt-table-nav--prev {
	border-radius: 12px 0 0 12px;
	border-right: none;
}

.single-alternative .alt-table-nav--next {
	border-radius: 0 12px 12px 0;
	border-left: none;
}

.single-alternative .alt-table-nav:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.1);
	color: var(--color-text-primary);
}

.single-alternative .alt-table-nav:disabled {
	opacity: 0.25;
	cursor: default;
}

/* Scrollable inner area — hide native scrollbar */
.single-alternative .alternatives-table-wrap {
	flex: 1;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-top: 0;
	border-radius: 0;
	border: 1px solid var(--border-default);
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.single-alternative .alternatives-table-wrap::-webkit-scrollbar {
	display: none;
}

.single-alternative .alternatives-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

/* Column widths: 4 data cols visible at ~860px */
.single-alternative .alternatives-table th:first-child,
.single-alternative .alternatives-table td:first-child {
	min-width: 120px;
	position: sticky;
	left: 0;
	background: var(--color-bg-secondary, #0f0f11);
	z-index: 1;
}

.single-alternative .alternatives-table th:not(:first-child),
.single-alternative .alternatives-table td:not(:first-child) {
	min-width: 190px;
}

.single-alternative .alternatives-table thead {
	background: var(--surface-card);
}

.single-alternative .alternatives-table thead th:first-child {
	background: #1a1a2e;
}

.single-alternative .alternatives-table th {
	padding: var(--space-4) var(--space-5);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-text-primary);
	text-align: left;
	border-bottom: 1px solid var(--border-default);
	white-space: nowrap;
}

.single-alternative .alternatives-table td {
	padding: var(--space-3) var(--space-5);
	font-size: 0.875rem;
	color: var(--color-text-secondary);
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.single-alternative .alternatives-table tbody tr:last-child td {
	border-bottom: none;
}

.single-alternative .alternatives-table tbody tr:hover {
	background: rgba(255, 255, 255, 0.02);
}

.single-alternative .alternatives-table__label {
	font-weight: 500;
	color: var(--color-text-secondary);
	white-space: nowrap;
}

.single-alternative .alternatives-table a {
	color: var(--color-primary);
	text-decoration: none;
}

.single-alternative .alternatives-table a:hover {
	text-decoration: underline;
}


/* ===================================================================
   13. ENTRY-CONTENT — ul/li styled list (copied from single-tool.css §14)
   =================================================================== */

.single-alternative .entry-content {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--color-text-secondary);
}

.single-alternative .entry-content h2 {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--color-primary);
	margin-top: var(--space-8);
	margin-bottom: var(--space-4);
}

.single-alternative .entry-content h3 {
	font-size: 1.375rem;
	font-weight: 600;
	margin-top: var(--space-6);
	margin-bottom: var(--space-3);
}

.single-alternative .entry-content p {
	margin-bottom: var(--space-4);
}

.single-alternative .entry-content a {
	color: var(--color-text-secondary);
	text-decoration: underline;
	transition: color 0.2s ease;
}

.single-alternative .entry-content a:hover {
	color: var(--tiorai-accent-dark, #0096c7);
}

/* Styled list items (card rows) */
.single-alternative .entry-content ul,
.single-alternative .entry-content ol {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 0 var(--space-6) !important;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

.single-alternative .entry-content ul li {
	margin: 0 !important;
	padding: 0 !important;
}

/* List items that contain a link → card style */
.single-alternative .entry-content ul li a {
	display: flex;
	align-items: center;
	gap: 1rem;
	color: #cbd5e1;
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
	padding: 0.75rem 1rem;
	background: var(--surface-card);
	border: 1px solid var(--border-default);
	border-radius: 10px;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.single-alternative .entry-content ul li a:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: var(--color-accent, var(--color-info));
	color: var(--color-text-primary);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	text-decoration: none;
}

.single-alternative .entry-content ul li a::before {
	content: "";
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	background-color: rgba(6, 182, 212, 0.1);
	border: 1px solid rgba(6, 182, 212, 0.2);
	border-radius: var(--radius-default);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306b6d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'%3E%3C/path%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'%3E%3C/path%3E%3C/svg%3E");
	background-size: 18px;
	background-repeat: no-repeat;
	background-position: center;
	transition: all 0.2s ease;
}

.single-alternative .entry-content ul li a:hover::before {
	background-color: var(--color-accent, var(--color-info));
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'%3E%3C/path%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'%3E%3C/path%3E%3C/svg%3E");
	box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.single-alternative .entry-content ul li a::after {
	content: "→";
	margin-left: auto;
	color: rgba(255, 255, 255, 0.3);
	font-weight: bold;
	opacity: 0;
	transform: translateX(-5px);
	transition: all 0.2s ease;
}

.single-alternative .entry-content ul li a:hover::after {
	opacity: 1;
	transform: translateX(0);
	color: var(--color-accent, var(--color-info));
}

/* Plain list items (no link) → simple bullet */
.single-alternative .entry-content ul li:not(:has(a)),
.single-alternative .entry-content ol li {
	position: relative;
	padding: 0.5rem 0.75rem 0.5rem 1.5rem;
	color: var(--color-text-secondary);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.single-alternative .entry-content ul li:not(:has(a))::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.85em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--color-primary);
	flex-shrink: 0;
}

.single-alternative .entry-content ol {
	counter-reset: ol-counter;
}

.single-alternative .entry-content ol li {
	counter-increment: ol-counter;
}

.single-alternative .entry-content ol li::before {
	content: counter(ol-counter) ".";
	position: absolute;
	left: 0;
	color: var(--color-primary);
	font-weight: 700;
}

/* Strong / bold inside list items */
.single-alternative .entry-content li strong {
	color: var(--color-text-primary);
	font-weight: 700;
}


/* ===================================================================
   13c. CONTENT SECTION — ul/li bullets (ACF rich text fields)
   =================================================================== */

/* Override any global theme icon bullets + entry-content ::before */
.single-alternative .content-section__content ul li::before,
.single-alternative .content-section__content ol li::before,
.single-alternative .content-section__content ul li:not(:has(a))::before {
	display: none !important;
	content: none !important;
	background: none !important;
}

.single-alternative .content-section__content ul,
.single-alternative .content-section__content ol {
	list-style: none;
	padding: 0;
	margin: 0 0 var(--space-4);
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.single-alternative .content-section__content ul li,
.single-alternative .content-section__content ol li {
	position: relative;
	padding: 0.25rem 0 0.25rem 1.5rem !important;
	color: var(--color-text-secondary);
	line-height: 1.65;
	font-size: 0.9375rem;
}

/* Dot bullet */
.single-alternative .content-section__content ul li::after {
	content: '';
	position: absolute;
	left: 0;
	top: 0.58em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--color-accent, var(--color-primary));
}

/* Numbered bullet */
.single-alternative .content-section__content ol {
	counter-reset: ol-c;
}

.single-alternative .content-section__content ol li {
	counter-increment: ol-c;
}

.single-alternative .content-section__content ol li::after {
	content: counter(ol-c) '.';
	position: absolute;
	left: 0;
	top: 0;
	width: auto;
	height: auto;
	border-radius: 0;
	background: none;
	color: var(--color-accent, var(--color-primary));
	font-weight: 700;
	font-size: 0.875rem;
}


/* ===================================================================
   13b. FEATURE CARDS — copied from single-tool.css §7
   =================================================================== */

.single-alternative .features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--space-5);
	margin-top: var(--space-8);
}

.single-alternative .feature-card {
	background: var(--surface-card);
	border: 1px solid var(--border-default);
	border-radius: 16px;
	padding: var(--space-6);
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	height: 100%;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
}

.single-alternative .feature-card:hover {
	transform: translateY(-8px);
	border-color: var(--color-primary);
	box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3);
}

.single-alternative .feature-card__icon-wrapper {
	width: 54px;
	height: 54px;
	border-radius: var(--radius-default);
	background: var(--color-bg-tertiary);
	border: 1px solid var(--border-default);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: var(--space-5);
	color: var(--color-primary);
	transition: all 0.3s ease;
	position: relative;
	z-index: 2;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.single-alternative .feature-card:hover .feature-card__icon-wrapper {
	background: var(--color-primary);
	color: white;
	transform: scale(1.05) rotate(-3deg);
	border-color: var(--color-primary);
	box-shadow: 0 8px 16px rgba(99, 102, 241, 0.25);
}

.single-alternative .feature-card__icon {
	width: 28px;
	height: 28px;
	stroke-width: 1.5;
}

.single-alternative .feature-card__content {
	flex-grow: 1;
	z-index: 2;
}

.single-alternative .feature-card__title {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--color-text-primary);
	margin-bottom: var(--space-3);
	line-height: 1.3;
	transition: color 0.3s ease;
}

.single-alternative .feature-card:hover .feature-card__title {
	color: var(--color-primary);
}

.single-alternative .feature-card__desc {
	color: var(--color-text-secondary);
	line-height: 1.6;
	font-size: 0.9375rem;
}

.single-alternative .feature-card__glow {
	position: absolute;
	width: 200px;
	height: 200px;
	background: var(--color-primary);
	filter: blur(80px);
	opacity: 0;
	top: -100px;
	right: -100px;
	border-radius: 50%;
	pointer-events: none;
	transition: opacity 0.5s ease;
	z-index: 0;
}

.single-alternative .feature-card:hover .feature-card__glow {
	opacity: 0.15;
}


/* ===================================================================
   14. ACCESSIBILITY UTILITIES
   =================================================================== */

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}


/* ===================================================================
   14. RESPONSIVE
   =================================================================== */

@media (max-width: 768px) {
	.single-alternative .container {
		padding: 0 var(--space-4);
	}

	.single-alternative .tool-header__main {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.single-alternative .tool-logo {
		width: 60px;
		height: 60px;
	}

	.single-alternative .tool-header__title {
		font-size: 2rem;
	}

	.single-alternative .tool-header__excerpt {
		font-size: 0.9375rem;
	}

	.single-alternative .tool-header__meta,
	.single-alternative .tool-categories,
	.single-alternative .tool-tech-stack {
		justify-content: center;
	}

	.single-alternative .tool-header__taxonomies {
		align-items: center;
	}

	.single-alternative .tool-header__actions--fancy {
		flex-direction: column;
		align-items: stretch;
		gap: var(--space-3);
	}

	.single-alternative .btn--fancy {
		width: 100%;
		justify-content: center;
	}

	.single-alternative .ui-toc {
		margin-bottom: var(--space-6);
	}

	.single-alternative .ui-toc__title {
		font-size: 1rem;
	}

	.single-alternative .ui-toc__list {
		padding: 0 var(--space-5) var(--space-5);
	}

	.single-alternative .ui-toc__link {
		font-size: 0.9rem;
		padding: var(--space-2) var(--space-3);
	}

	.single-alternative .alt-filter-bar__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--space-3);
	}

	.single-alternative .alt-sort-select {
		width: 100%;
	}

	.single-alternative .alternatives-table-wrap {
		margin-left: calc(-1 * var(--space-4));
		margin-right: calc(-1 * var(--space-4));
		border-radius: 0;
		border-left: none;
		border-right: none;
	}

	.single-alternative .quick-picks-grid {
		grid-template-columns: 1fr;
	}

	.single-alternative .alt-card {
		padding: var(--space-4);
		gap: var(--space-3);
	}

	.single-alternative .alt-card__rank-col {
		width: 2rem;
	}

	.single-alternative .alt-card__rank {
		font-size: 1.125rem;
	}

	.single-alternative .alt-card__meta-group {
		flex-direction: column;
		gap: var(--space-2);
	}

	.single-alternative .ui-faq__question {
		font-size: 1rem;
		padding: var(--space-4);
	}

	.single-alternative .ui-faq__item.is-open .ui-faq__answer {
		padding: 0 var(--space-4) var(--space-4);
	}

	.single-alternative .alt-related {
		padding: var(--space-8) 0;
	}

	.single-alternative .alt-related__title {
		font-size: 1.125rem;
	}

	.single-alternative .alt-related__grid {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.single-alternative .quick-picks-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.single-alternative .alt-related__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}


/* ===================================================================
   15. RTL
   =================================================================== */

[dir="rtl"] .single-alternative .alternative-primary-badge__visit svg {
	transform: scaleX(-1);
}

[dir="rtl"] .single-alternative .quick-pick-card__rank {
	left: auto;
	right: var(--space-4);
}

[dir="rtl"] .single-alternative .content-section__title {
	padding-left: 0;
	padding-right: var(--space-4);
}

[dir="rtl"] .single-alternative .content-section__title::before {
	left: auto;
	right: 0;
}

[dir="rtl"] .single-alternative .ui-toc__link {
	border-left: none;
	border-right: 2px solid transparent;
	border-radius: var(--radius-md) 0 0 var(--radius-md);
	padding-left: var(--space-4);
	padding-right: var(--space-4);
}

[dir="rtl"] .single-alternative .ui-toc__link:hover,
[dir="rtl"] .single-alternative .ui-toc__link:focus-visible,
[dir="rtl"] .single-alternative .ui-toc__link.is-active {
	border-right-color: var(--color-accent);
	padding-left: var(--space-4);
	padding-right: var(--space-5);
}

[dir="rtl"] .single-alternative .alternatives-table th:first-child,
[dir="rtl"] .single-alternative .alternatives-table td:first-child {
	left: auto;
	right: 0;
}


/* ===================================================================
   16. PRINT
   =================================================================== */

@media print {

	.single-alternative .alt-filter-bar,
	.single-alternative .alt-card__footer,
	.single-alternative .tool-header__actions--fancy {
		display: none;
	}

	.single-alternative .alt-card,
	.single-alternative .quick-pick-card {
		border: 1px solid #ccc;
		break-inside: avoid;
	}
}


/* ===================================================================
   18. NEW FEATURES — badges, CTA, pros/cons, screenshot thumb,
       verdict, comparison table highlights, lightbox
   =================================================================== */

/* ── Quick Pick Card — updated layout (column: badge + inner + cta) ── */

.single-alternative .quick-pick-card {
	flex-direction: column;
	align-items: stretch;
	gap: var(--space-2);
}

.single-alternative .quick-pick-card__inner {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	text-decoration: none;
	color: inherit;
	flex: 1;
}

.single-alternative .quick-pick-card__inner:hover {
	text-decoration: none;
	color: inherit;
}

/* Badge on quick pick card */
.single-alternative .alt-quick-pick__badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	border-radius: var(--radius-default);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	background: rgba(99, 102, 241, 0.15);
	border: 1px solid rgba(99, 102, 241, 0.3);
	color: #a5b4fc;
	align-self: flex-start;
}

.single-alternative .alt-quick-pick__badge--best_overall {
	background: rgba(234, 179, 8, 0.12);
	border-color: rgba(234, 179, 8, 0.3);
	color: #fbbf24;
}

.single-alternative .alt-quick-pick__badge--best_free {
	background: rgba(34, 197, 94, 0.12);
	border-color: rgba(34, 197, 94, 0.3);
	color: #4ade80;
}

.single-alternative .alt-quick-pick__badge--best_value {
	background: rgba(59, 130, 246, 0.12);
	border-color: rgba(59, 130, 246, 0.3);
	color: #60a5fa;
}

.single-alternative .alt-quick-pick__badge--best_open_source {
	background: rgba(168, 85, 247, 0.12);
	border-color: rgba(168, 85, 247, 0.3);
	color: #c084fc;
}

.single-alternative .alt-quick-pick__badge--best_teams {
	background: rgba(20, 184, 166, 0.12);
	border-color: rgba(20, 184, 166, 0.3);
	color: #2dd4bf;
}

.single-alternative .alt-quick-pick__badge--best_writers {
	background: rgba(244, 114, 182, 0.12);
	border-color: rgba(244, 114, 182, 0.3);
	color: #f9a8d4;
}

.single-alternative .alt-quick-pick__badge--best_developers {
	background: rgba(251, 146, 60, 0.12);
	border-color: rgba(251, 146, 60, 0.3);
	color: #fb923c;
}

/* Quick pick + alt-card CTA button */
.single-alternative .quick-pick-card__cta,
.single-alternative .alt-card__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	padding: 12px 16px;
	border-radius: var(--radius-default);
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s;
	margin-top: var(--space-1);
}

.single-alternative .quick-pick-card__cta {
	font-size: 12px;
}

.single-alternative .alt-cta--free,
.single-alternative .alt-cta--freemium {
	background: rgba(34, 197, 94, 0.1);
	border: 1px solid rgba(34, 197, 94, 0.25);
	color: #4ade80;
}

.single-alternative .alt-cta--free:hover,
.single-alternative .alt-cta--freemium:hover {
	background: rgba(34, 197, 94, 0.18);
	border-color: rgba(34, 197, 94, 0.4);
	color: #4ade80;
	text-decoration: none;
	transform: translateY(-1px);
}

.single-alternative .alt-cta--opensource {
	background: rgba(168, 85, 247, 0.1);
	border: 1px solid rgba(168, 85, 247, 0.25);
	color: #c084fc;
}

.single-alternative .alt-cta--opensource:hover {
	background: rgba(168, 85, 247, 0.18);
	border-color: rgba(168, 85, 247, 0.4);
	color: #c084fc;
	text-decoration: none;
	transform: translateY(-1px);
}

.single-alternative .alt-cta--paid {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--border-default);
	color: var(--color-text-secondary);
}

.single-alternative .alt-cta--paid:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.2);
	color: var(--color-text-primary);
	text-decoration: none;
	transform: translateY(-1px);
}

.single-alternative .alt-cta__icon {
	font-size: 0.875em;
}

/* Quick picks intro text */
.single-alternative .alt-quick-picks__intro {
	color: var(--color-text-secondary);
	margin-bottom: var(--space-4);
	line-height: 1.65;
}

/* ── Screenshot thumbnail + lightbox ── */

.single-alternative .alt-card__screenshot-thumb {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	max-width: 100%;
	flex-shrink: 0;
	align-self: flex-start;
	border: 1px solid var(--border-default);
	background: rgba(255, 255, 255, 0.04);
	cursor: pointer;
}

.single-alternative .alt-card__screenshot-img {
	width: 100%;
	display: block;
	transition: filter 0.25s;
}

.single-alternative .alt-card__screenshot-thumb:hover .alt-card__screenshot-img {
	filter: brightness(0.75);
}

.single-alternative .alt-card__screenshot-btn {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0);
	border: none;
	cursor: pointer;
	color: var(--color-text-primary);
	opacity: 0;
	transition: opacity 0.2s, background 0.2s;
}

.single-alternative .alt-card__screenshot-thumb:hover .alt-card__screenshot-btn {
	opacity: 1;
	background: rgba(0, 0, 0, 0.35);
}

.single-alternative .alt-card__screenshot-btn svg {
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

/* ── Lightbox overlay ── */

.alt-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, 0.88);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s;
	padding: var(--space-6);
}

.alt-lightbox.is-open {
	opacity: 1;
	pointer-events: all;
}

.alt-lightbox__close {
	position: absolute;
	top: var(--space-5);
	right: var(--space-5);
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	color: var(--color-text-primary);
	cursor: pointer;
	transition: background 0.2s;
}

.alt-lightbox__close:hover {
	background: rgba(255, 255, 255, 0.2);
}

.alt-lightbox__inner {
	max-width: min(90vw, 1100px);
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	align-items: center;
}

.alt-lightbox__img {
	max-width: 100%;
	max-height: calc(90vh - 60px);
	border-radius: var(--radius-default);
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
	object-fit: contain;
}

.alt-lightbox__caption {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.875rem;
	text-align: center;
}

/* ── Pros / Cons side by side ── */

.single-alternative .alt-card__pros-cons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-4);
	padding: var(--space-3) 0;
}

.single-alternative .alt-card__pros-col,
.single-alternative .alt-card__cons-col {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.single-alternative .alt-card__pc-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.single-alternative .alt-card__pc-list li {
	color: var(--color-text-secondary);
	line-height: 1.5;
	padding-left: 1.25rem;
	position: relative;
}

.single-alternative .alt-card__pc-list--pros li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: #4ade80;
	font-weight: 700;
	font-size: 0.75rem;
	top: 0.1em;
}

.single-alternative .alt-card__pc-list--cons li::before {
	content: '✕';
	position: absolute;
	left: 0;
	color: #f87171;
	font-weight: 700;
	font-size: 0.75rem;
	top: 0.1em;
}

.single-alternative .alt-card__meta-label--pros {
	color: #4ade80;
	font-size: 0.8125rem;
}

.single-alternative .alt-card__meta-label--cons {
	color: #f87171;
	font-size: 0.8125rem;
}

/* ── Verdict section ── */

.single-alternative .content-section--verdict {
	border: 1px solid var(--border-default);
	background: rgba(99, 102, 241, 0.05);
	border-radius: 16px;
	padding: var(--space-8);
}

.single-alternative .verdict-content p {
	margin-bottom: var(--space-4);
}

.single-alternative .verdict-content p:last-child {
	margin-bottom: 0;
}

/* ── Comparison table: primary column highlight ── */

.single-alternative .alternatives-table th.alternatives-table__primary {
	background: rgba(99, 102, 241, 0.12);
	border-bottom: 2px solid rgba(99, 102, 241, 0.4);
}

.single-alternative .alternatives-table td.alternatives-table__primary-cell {
	background: rgba(99, 102, 241, 0.05);
}

.single-alternative .alternatives-table tbody tr:hover td.alternatives-table__primary-cell {
	background: rgba(99, 102, 241, 0.1);
}

/* Badge in table header */
.single-alternative .alternatives-table__badge {
	display: inline-block;
	margin-top: 4px;
	padding: 2px 8px;
	border-radius: var(--radius-default);
	font-size: 0.6875rem;
	font-weight: 700;
	background: rgba(234, 179, 8, 0.15);
	border: 1px solid rgba(234, 179, 8, 0.3);
	color: #fbbf24;
	letter-spacing: 0.02em;
}

/* Anchor link on tool name in table header */
.single-alternative .alt-table-tool-link {
	color: inherit;
	text-decoration: none;
}

.single-alternative .alt-table-tool-link:hover {
	color: var(--color-accent, var(--color-primary));
	text-decoration: none;
}

/* Free Plan yes/no cells */
.single-alternative .alt-table--yes {
	color: #4ade80;
	font-weight: 700;
}

.single-alternative .alt-table--no {
	color: rgba(255, 255, 255, 0.3);
}

/* ── Responsive additions ── */

@media (max-width: 640px) {
	.single-alternative .alt-card__pros-cons {
		grid-template-columns: 1fr;
	}

	.single-alternative .alt-card__screenshot-thumb {
		width: 100%;
		align-self: stretch;
	}

	.single-alternative .alt-lightbox {
		padding: var(--space-3);
	}
}

/* ============================================================
   SECTION 20: ORIGINAL TOOL CARD (sidebar widget)
   ============================================================ */

.alt-sidebar__original-tool {
	padding: var(--space-4, 1rem);
}

.alt-sidebar__tool-header {
	display: flex;
	gap: var(--space-3, 0.75rem);
	align-items: center;
	margin-bottom: var(--space-3, 0.75rem);
}

.alt-sidebar__tool-logo {
	width: 48px;
	height: 48px;
	object-fit: contain;
	border-radius: var(--radius-default);
	background: var(--color-surface-2, rgba(255, 255, 255, 0.05));
	padding: 4px;
	flex-shrink: 0;
}

.alt-sidebar__tool-name {
	font-size: 0.95rem;
	font-weight: 700;
	margin: 0 0 2px;
	line-height: 1.3;
}

.alt-sidebar__tool-cat {
	font-size: 0.75rem;
	color: var(--color-text-tertiary, rgba(255, 255, 255, 0.5));
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.alt-sidebar__tool-pricing {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: var(--space-3, 0.75rem);
}

.alt-sidebar__pricing-tag {
	font-size: 0.7rem;
	padding: 2px 8px;
	border-radius: var(--radius-default);
	background: var(--surface-raised);
	color: var(--color-text-tertiary, rgba(255, 255, 255, 0.6));
	text-transform: capitalize;
}

.alt-sidebar__tool-actions {
	display: flex;
	gap: var(--space-2, 0.5rem);
	flex-direction: column;
}

.alt-sidebar__btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 8px 12px;
	border-radius: var(--radius-default);
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.2s;
}

.alt-sidebar__btn:hover {
	opacity: 0.85;
}

.alt-sidebar__btn--visit {
	background: rgba(34, 197, 94, 0.1);
	border: 1px solid rgba(34, 197, 94, 0.25);
	color: #4ade80;
}

.alt-sidebar__btn--review {
	background: var(--surface-brand);
	color: var(--color-text-primary, #fff);
	border: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
}

.alt-sidebar__btn--review:hover {
	color: #fff
}

/* ============================================================
   SECTION 21: QUICK NAVIGATION (sidebar widget)
   ============================================================ */

.alt-sidebar__nav-list {
	list-style: none;
	margin: 0;
	padding: var(--space-4, 1rem);
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.alt-sidebar__nav-item {
	margin: 0;
}

.alt-sidebar__nav-link {
	display: flex;
	align-items: center;
	gap: var(--space-2, 0.5rem);
	padding: 8px 12px;
	border-radius: var(--radius-default);
	text-decoration: none;
	color: var(--color-text-primary, #fff);
	font-size: 0.82rem;
	transition: background 0.15s;
}

.alt-sidebar__nav-link:hover,
.alt-sidebar__nav-link.is-active {
	background: var(--surface-raised);
}

.alt-sidebar__nav-link.is-active {
	color: var(--color-primary, #6c63ff);
	font-weight: 600;
}

.alt-sidebar__nav-rank {
	font-size: 0.72rem;
	color: var(--color-text-tertiary, rgba(255, 255, 255, 0.4));
	min-width: 20px;
	flex-shrink: 0;
}

.alt-sidebar__nav-logo {
	width: 24px;
	height: 24px;
	object-fit: contain;
	border-radius: 4px;
	flex-shrink: 0;
}

.alt-sidebar__nav-name {
	flex: 1;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.alt-sidebar__nav-badge {
	font-size: 0.9em;
	flex-shrink: 0;
}

/* ============================================================
   SECTION 22: RELATED PAGES (sidebar widget)
   ============================================================ */

.alt-sidebar__related-links {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.alt-sidebar__related-link {
	display: flex;
	align-items: center;
	gap: var(--space-2, 0.5rem);
	padding: 8px 12px;
	border-radius: var(--radius-default);
	text-decoration: none;
	color: var(--color-text-primary, #fff);
	font-size: 0.82rem;
	line-height: 1.4;
	transition: background 0.15s;
}

.alt-sidebar__related-link:hover {
	background: var(--surface-brand);
}

.alt-sidebar__related-type {
	font-size: 0.65rem;
	padding: 2px 5px;
	border-radius: 4px;
	background: var(--color-surface-3, rgba(255, 255, 255, 0.12));
	color: var(--color-text-tertiary, rgba(255, 255, 255, 0.5));
	text-transform: uppercase;
	letter-spacing: 0.04em;
	flex-shrink: 0;
}

.alt-sidebar__related-link[data-type="comparison"] .alt-sidebar__related-type {
	background: rgba(108, 99, 255, 0.2);
	color: var(--color-primary, #6c63ff);
}

/* ============================================================
   SECTION 23: OVERVIEW TABLE
   ============================================================ */

.alt-overview-table-wrap {
	margin-bottom: var(--space-8, 2rem);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.alt-overview-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.alt-overview-table th {
	text-align: left;
	padding: 10px 14px;
	border-bottom: 2px solid var(--color-border, rgba(255, 255, 255, 0.1));
	color: var(--color-text-tertiary, rgba(255, 255, 255, 0.5));
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 600;
	white-space: nowrap;
}

.alt-overview-table td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--color-border, rgba(255, 255, 255, 0.06));
	vertical-align: middle;
}

.alt-overview-table tr:last-child td {
	border-bottom: none;
}

.alt-overview-table tr:hover td {
	background: var(--color-surface-2, rgba(255, 255, 255, 0.03));
}

.alt-overview__tool-link {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: var(--color-text-primary, #fff);
	font-weight: 600;
}

.alt-overview__tool-link:hover {
	color: var(--color-primary, #6c63ff);
}

.alt-overview__tool-logo {
	width: 24px;
	height: 24px;
	object-fit: contain;
	border-radius: 4px;
	flex-shrink: 0;
}

.alt-overview__badge {
	font-size: 1em;
}

.alt-overview__best-for {
	color: var(--color-text-tertiary, rgba(255, 255, 255, 0.7));
}

.alt-overview__pricing {
	color: var(--color-text-tertiary, rgba(255, 255, 255, 0.6));
	white-space: nowrap;
	font-size: 0.8rem;
}

/* ============================================================
   SECTION 24: BEST FOR + VS ORIGINAL (alt-card additions)
   ============================================================ */

.alt-card__best-for {
	color: var(--color-text-tertiary, rgba(255, 255, 255, 0.7));
	margin-bottom: 0.5rem;
	display: flex;
	gap: 5px;
	align-items: baseline;
}

.alt-card__best-for-label {
	color: var(--color-primary, #6c63ff);
	font-weight: 600;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.alt-card__vs-original {
	color: var(--color-text-tertiary, rgba(255, 255, 255, 0.55));
	margin-bottom: 0.5rem;
	display: flex;
	gap: 5px;
	align-items: baseline;
}

.alt-card__vs-label {
	font-weight: 600;
	color: rgba(255, 255, 255, 0.35);
	white-space: nowrap;
}

/* ============================================================
   SECTION 25: METHODOLOGY SECTION
   ============================================================ */

.content-section--methodology {
	background: var(--color-surface-2, rgba(255, 255, 255, 0.03));
	border: 1px solid var(--color-border, rgba(255, 255, 255, 0.06));
	border-radius: var(--radius-default);
	padding: var(--space-6, 1.5rem);
	margin-bottom: var(--space-8, 2rem);
}

.alt-methodology__content {
	color: var(--color-text-tertiary, rgba(255, 255, 255, 0.75));
	font-size: 0.9rem;
	line-height: 1.7;
}

.alt-methodology__content p {
	margin-bottom: 0.75em;
}

.alt-methodology__content p:last-child {
	margin-bottom: 0;
}

/* ============================================================
   What is [Tool]? — Screenshot
   ============================================================ */

.alt-what-is__screenshot {
	margin-top: var(--space-6, 1.5rem);
	border-radius: var(--radius-default);
	overflow: hidden;
	border: 1px solid var(--color-border, var(--border-default));
}

.alt-what-is__screenshot-img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* Pros & Cons title */
.alt-card__pros-cons-title {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	margin: 0;
	letter-spacing: 0.02em;
	text-transform: none;
}
