/* ClipItCoach comparison pages: a practical, match-report layout. */

.comparison-page {
	--paper: #f4f1e9;
	--paper-deep: #e9e4d8;
	--night: #0e1914;
	--night-soft: #17241d;
	--signal: #ffc400;
	background: var(--paper);
}

.comparison-page .navbar {
	background: rgba(244, 241, 233, 0.92);
}

.compare-main {
	padding-top: 72px;
}

.compare-hero {
	position: relative;
	overflow: hidden;
	color: #fff;
	background: var(--night);
}

.compare-hero::before {
	position: absolute;
	inset: 0;
	content: '';
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(90deg,
			rgba(255, 255, 255, 0.045) 1px,
			transparent 1px);
	background-size: 54px 54px;
	mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.compare-hero::after {
	position: absolute;
	right: -10rem;
	top: -14rem;
	width: 34rem;
	height: 34rem;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 50%;
	box-shadow:
		0 0 0 5rem rgba(255, 255, 255, 0.025),
		0 0 0 10rem rgba(255, 255, 255, 0.018);
	content: '';
}

.compare-hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
	gap: 4rem;
	align-items: end;
	min-height: 35rem;
	padding-top: 6.5rem;
	padding-bottom: 5rem;
}

.compare-hero-inner.hub-hero {
	min-height: 31rem;
}

.compare-breadcrumb {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin-bottom: 1.6rem;
	font-family: var(--font-mono);
	font-size: 0.76rem;
	color: rgba(255, 255, 255, 0.68);
}

.compare-breadcrumb a:hover {
	color: #fff;
}

.compare-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin-bottom: 1.2rem;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--signal);
}

.compare-kicker::before {
	width: 1.4rem;
	height: 2px;
	background: currentColor;
	content: '';
}

.compare-hero h1 {
	max-width: 12ch;
	font-family: var(--font-display);
	font-size: clamp(3.5rem, 8vw, 6.8rem);
	font-weight: 700;
	font-style: italic;
	line-height: 0.9;
	letter-spacing: -0.035em;
	text-transform: uppercase;
	text-wrap: balance;
}

.hub-hero h1 {
	max-width: 13ch;
	font-size: clamp(3.3rem, 7vw, 6.2rem);
}

.compare-hero h1 span {
	color: var(--brand);
}

.compare-hero-lede {
	max-width: 40rem;
	margin-top: 1.6rem;
	font-size: 1.08rem;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.72);
}

.verdict-card {
	position: relative;
	padding: 1.7rem;
	color: var(--ink);
	background: var(--paper);
	border-top: 5px solid var(--signal);
	box-shadow: 1rem 1rem 0 rgba(0, 0, 0, 0.24);
}

.verdict-card::before {
	position: absolute;
	left: -1px;
	top: -5px;
	width: 4.5rem;
	height: 5px;
	background: var(--brand);
	content: '';
}

.verdict-label {
	display: block;
	margin-bottom: 0.8rem;
	font-family: var(--font-mono);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--brand-deep);
}

.verdict-card p {
	font-size: 0.96rem;
	line-height: 1.65;
}

.review-date {
	display: block;
	margin-top: 1.2rem;
	padding-top: 1rem;
	border-top: 1px solid #d9d3c7;
	font-family: var(--font-mono);
	font-size: 0.7rem;
	color: #6f756f;
}

.compare-section {
	padding: 5.5rem 0;
}

.compare-section + .compare-section {
	border-top: 1px solid #dcd7cc;
}

.compare-section.dark-section {
	color: rgba(255, 255, 255, 0.76);
	background: var(--night-soft);
	border-top: 0;
}

.section-heading {
	display: grid;
	grid-template-columns: 0.55fr 1.45fr;
	gap: 2rem;
	align-items: start;
	margin-bottom: 2.7rem;
}

.section-number {
	padding-top: 0.6rem;
	font-family: var(--font-mono);
	font-size: 0.74rem;
	color: var(--brand-deep);
}

.dark-section .section-number {
	color: var(--signal);
}

.section-heading h2 {
	font-family: var(--font-display);
	font-size: clamp(2.35rem, 5vw, 4.25rem);
	font-weight: 600;
	line-height: 0.98;
	letter-spacing: -0.025em;
	color: var(--ink);
	text-wrap: balance;
}

.dark-section .section-heading h2 {
	color: #fff;
}

.section-intro {
	max-width: 48rem;
	margin: -1.2rem 0 2.5rem auto;
	font-size: 0.98rem;
	line-height: 1.75;
}

.scoreline {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border: 1px solid #d7d1c4;
	background: rgba(255, 255, 255, 0.48);
}

.score-card {
	position: relative;
	padding: 2rem;
}

.score-card + .score-card {
	border-left: 1px solid #d7d1c4;
}

.score-card.featured {
	background: #fff;
}

.score-name {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.3rem;
	font-family: var(--font-display);
	font-size: 1.65rem;
	font-weight: 700;
	color: var(--ink);
}

.score-price {
	font-family: var(--font-display);
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-weight: 700;
	line-height: 0.95;
	color: var(--ink);
}

.score-price small {
	display: block;
	margin-top: 0.65rem;
	font-family: var(--font);
	font-size: 0.78rem;
	font-weight: 500;
	line-height: 1.45;
	color: var(--body-text);
}

.score-note {
	margin-top: 1.25rem;
	font-size: 0.86rem;
	line-height: 1.6;
}

.tag {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.55rem;
	font-family: var(--font-mono);
	font-size: 0.63rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #123d28;
	background: #d8eee1;
	border-radius: 999px;
}

.tag.neutral {
	color: #5e4a00;
	background: #fff0b2;
}

.table-scroll {
	overflow-x: auto;
	border: 1px solid #d6d0c4;
	background: #fff;
	box-shadow: 0 12px 35px rgba(27, 33, 29, 0.07);
}

.comparison-table {
	width: 100%;
	min-width: 47rem;
	border-collapse: collapse;
	table-layout: fixed;
}

.comparison-table th,
.comparison-table td {
	padding: 1.35rem 1.5rem;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid #e4dfd5;
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
	border-bottom: 0;
}

.comparison-table thead th {
	font-family: var(--font-display);
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--ink);
	background: #f0ece3;
}

.comparison-table thead th:first-child {
	width: 22%;
}

.comparison-table tbody th {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.035em;
	text-transform: uppercase;
	color: #59635e;
	background: #faf9f5;
}

.comparison-table td {
	font-size: 0.9rem;
	line-height: 1.65;
}

.comparison-table td strong {
	color: var(--ink);
}

.table-note {
	margin-top: 1rem;
	font-size: 0.78rem;
	line-height: 1.6;
	color: #69726d;
}

.fit-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.fit-card {
	padding: 2.4rem;
	background: var(--night-soft);
}

.fit-card.recommended {
	background: #113523;
}

.fit-card h3 {
	margin-bottom: 1.4rem;
	font-family: var(--font-display);
	font-size: 2rem;
	font-weight: 600;
	line-height: 1;
	color: #fff;
}

.fit-card ul {
	display: grid;
	gap: 1rem;
	list-style: none;
}

.fit-card li {
	position: relative;
	padding-left: 1.7rem;
	font-size: 0.92rem;
	line-height: 1.6;
}

.fit-card li::before {
	position: absolute;
	left: 0;
	top: 0.43rem;
	width: 0.65rem;
	height: 0.65rem;
	background: var(--signal);
	content: '';
	clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.fit-card.recommended li::before {
	background: var(--brand);
}

.comparison-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 1.25rem;
}

.comparison-link {
	position: relative;
	display: flex;
	min-height: 23rem;
	flex-direction: column;
	justify-content: space-between;
	grid-column: span 6;
	padding: 2rem;
	overflow: hidden;
	background: #fff;
	border: 1px solid #d7d1c4;
	transition:
		transform 0.2s var(--ease),
		box-shadow 0.2s var(--ease);
}

.comparison-link:first-child {
	grid-column: span 5;
	background: #e6f0e9;
}

.comparison-link:nth-child(2) {
	grid-column: span 7;
}

.comparison-link:nth-child(3) {
	grid-column: span 7;
}

.comparison-link:nth-child(4) {
	grid-column: span 5;
}

.comparison-link:nth-child(5) {
	grid-column: span 5;
	background: #e6f0e9;
}

.comparison-link:nth-child(6) {
	grid-column: span 7;
}

.comparison-link:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 45px rgba(25, 32, 28, 0.12);
}

.comparison-link:focus-visible,
.btn:focus-visible,
.navbar a:focus-visible,
.navbar button:focus-visible,
.footer a:focus-visible {
	outline: 3px solid var(--signal);
	outline-offset: 4px;
}

.comparison-link-top,
.comparison-link-bottom {
	position: relative;
	z-index: 1;
}

.comparison-link h2 {
	margin-top: 2.4rem;
	font-family: var(--font-display);
	font-size: clamp(2.2rem, 4vw, 3.6rem);
	font-weight: 700;
	line-height: 0.95;
	color: var(--ink);
}

.comparison-link p {
	max-width: 34rem;
	margin-top: 1rem;
	font-size: 0.9rem;
	line-height: 1.65;
}

.comparison-link-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--brand-deep);
}

.shortlist {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	background: #d7d1c4;
	border: 1px solid #d7d1c4;
}

.shortlist article {
	padding: 2rem;
	background: var(--paper);
}

.shortlist h3 {
	margin-bottom: 0.8rem;
	font-family: var(--font-display);
	font-size: 1.65rem;
	color: var(--ink);
}

.shortlist p {
	font-size: 0.88rem;
	line-height: 1.65;
}

.source-panel {
	display: grid;
	grid-template-columns: 0.75fr 1.25fr;
	gap: 3rem;
	align-items: start;
}

.source-copy h2 {
	margin-bottom: 1rem;
	font-family: var(--font-display);
	font-size: 2.5rem;
	line-height: 1;
	color: var(--ink);
}

.source-copy p,
.source-list li {
	font-size: 0.86rem;
	line-height: 1.7;
}

.source-list {
	display: grid;
	gap: 0.75rem;
	list-style: none;
}

.source-list a {
	color: var(--brand-deep);
	text-decoration: underline;
	text-decoration-color: rgba(11, 110, 62, 0.3);
	text-underline-offset: 0.2em;
}

.source-list a:hover {
	text-decoration-color: currentColor;
}

.source-list i {
	margin-right: 0.45rem;
	color: var(--brand-strong);
}

.comparison-cta {
	position: relative;
	overflow: hidden;
	padding: 5.5rem 0;
	color: #fff;
	background: var(--brand-deep);
}

.comparison-cta::after {
	position: absolute;
	right: -4rem;
	top: -7rem;
	font-family: var(--font-display);
	font-size: 22rem;
	font-weight: 700;
	line-height: 1;
	color: rgba(255, 255, 255, 0.055);
	content: '90';
}

.cta-inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 2rem;
}

.cta-inner h2 {
	max-width: 13ch;
	font-family: var(--font-display);
	font-size: clamp(2.8rem, 6vw, 5rem);
	font-weight: 700;
	line-height: 0.92;
	letter-spacing: -0.025em;
	text-transform: uppercase;
}

.cta-inner p {
	max-width: 34rem;
	margin-top: 1.2rem;
	color: rgba(255, 255, 255, 0.75);
}

.cta-actions {
	display: flex;
	flex-shrink: 0;
	gap: 0.75rem;
}

.comparison-cta .btn-primary {
	color: var(--night);
	background: var(--signal);
	border-color: var(--signal);
}

.comparison-cta .btn-secondary {
	color: #fff;
	background: transparent;
	border-color: rgba(255, 255, 255, 0.35);
}

.comparison-disclaimer {
	max-width: 48rem;
	margin-top: 1.5rem;
	font-size: 0.73rem;
	line-height: 1.6;
	color: #737b76;
}

@media (max-width: 900px) {
	.compare-hero-inner {
		grid-template-columns: 1fr;
		gap: 2.5rem;
		min-height: auto;
		padding-top: 5rem;
		padding-bottom: 4rem;
	}

	.verdict-card {
		max-width: 34rem;
	}

	.comparison-link,
	.comparison-link:first-child,
	.comparison-link:nth-child(2),
	.comparison-link:nth-child(3),
	.comparison-link:nth-child(4),
	.comparison-link:nth-child(5),
	.comparison-link:nth-child(6) {
		grid-column: span 6;
	}

	.source-panel {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.cta-inner {
		align-items: start;
		flex-direction: column;
	}
}

@media (max-width: 680px) {
	.compare-hero::after {
		display: none;
	}

	.compare-hero-inner,
	.compare-hero-inner.hub-hero {
		padding-top: 3.8rem;
		padding-bottom: 3.5rem;
	}

	.compare-hero h1,
	.hub-hero h1 {
		font-size: clamp(3rem, 17vw, 4.4rem);
	}

	.compare-hero-lede {
		font-size: 0.98rem;
	}

	.compare-section,
	.comparison-cta {
		padding: 4rem 0;
	}

	.section-heading {
		grid-template-columns: 1fr;
		gap: 0.4rem;
	}

	.section-heading h2 {
		font-size: 2.65rem;
	}

	.section-intro {
		margin-top: -1rem;
	}

	.scoreline,
	.fit-grid,
	.shortlist {
		grid-template-columns: 1fr;
	}

	.score-card + .score-card {
		border-top: 1px solid #d7d1c4;
		border-left: 0;
	}

	.fit-card {
		padding: 1.7rem;
	}

	.comparison-link,
	.comparison-link:first-child,
	.comparison-link:nth-child(2),
	.comparison-link:nth-child(3),
	.comparison-link:nth-child(4),
	.comparison-link:nth-child(5),
	.comparison-link:nth-child(6) {
		min-height: 20rem;
		grid-column: 1 / -1;
	}

	.cta-actions {
		width: 100%;
		flex-direction: column;
	}

	.cta-actions .btn {
		justify-content: center;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.comparison-link,
	.btn {
		transition: none;
	}
}
