/* ==========================================================================
   Comparison pages (HoopDraw vs FastDraw / The Hoops Geek)
   ========================================================================== */

/* Section heads: Figma gap 14, H2 860px, lead 660px */
.vs-head { gap: 14px; }
.vs-head .h2 { max-width: 860px; }
.vs-head .lead { max-width: 660px; }

/* Quick verdict ----------------------------------------------------------- */
.vs-verdict { padding-bottom: var(--sec-y); }
.vs-verdict__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.vs-verdict__box {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 36px;
	border: 1px solid var(--border);
	border-radius: 20px;
	background: var(--bg-alt);
	transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.vs-verdict__box--us { border-color: var(--orange); background: #fff6f0; }
.vs-verdict__box:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(21, 39, 59, .22); }
.vs-verdict__box--us:hover { box-shadow: 0 20px 40px -20px rgba(233, 106, 51, .35); }
.vs-verdict__title { font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.vs-verdict__list { display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.vs-verdict__list li { display: flex; align-items: flex-start; gap: 10px; }
.vs-verdict__list .i { margin-top: 5px; }

/* Comparison table -------------------------------------------------------- */
.vs-table-sec { scroll-margin-top: 20px; }
.vs-table-sec__title { margin-bottom: 40px; text-align: center; }
.vs-table-wrap {
	border: 1px solid var(--border);
	border-radius: 20px;
	background: var(--white);
	overflow: hidden;
}
.vs-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; line-height: 1.45; text-align: left; }
/* Matches the Figma flex row: 28px side padding, 24px column gap, 3 equal columns */
.vs-table__c1 { width: 33.8%; }
.vs-table__c2 { width: 32.47%; }
.vs-table th,
.vs-table td { padding: 18px 12px; vertical-align: middle; }
.vs-table tr > :first-child { padding-left: 28px; }
.vs-table tr > :last-child { padding-right: 28px; }
.vs-table thead tr { background: var(--navy); }
.vs-table thead th { font-size: 16px; font-weight: 600; color: var(--white); }
.vs-table thead .vs-table__us { color: var(--orange); }
.vs-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.vs-table tbody tr { transition: background-color .3s; }
.vs-table tbody tr:hover { background: var(--orange-soft); }
.vs-table tbody th { font-weight: 600; color: var(--text); }
.vs-table tbody td { color: var(--text); }
.vs-table tbody .vs-table__us { color: var(--ink); }

.vs-table-sec__note { max-width: 820px; margin: 40px auto 0; font-size: 13px; line-height: normal; color: var(--muted); text-align: center; }

/* Why coaches switch / switching steps ------------------------------------ */
.vs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.vs-reason {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 32px 28px;
	border-radius: 20px;
	background: var(--bg-alt);
	transition: transform .5s var(--ease), background-color .4s, box-shadow .5s var(--ease);
}
.vs-reason:hover { transform: translateY(-6px); background: var(--panel); }
.vs-reason__num { font-size: 30px; font-weight: 800; color: var(--orange); line-height: normal; }
.vs-reason__title { font-size: 21px; font-weight: 700; line-height: 1.25; }
.vs-reason__text { font-size: 16px; line-height: 1.55; color: var(--text); }

.vs-steps { gap: 20px; }
.vs-step {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 28px 24px;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: var(--white);
	transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.vs-step:hover { transform: translateY(-6px); border-color: #f3c3ad; box-shadow: 0 20px 40px -20px rgba(21, 39, 59, .22); }
.vs-step__num { font-size: 26px; font-weight: 800; color: var(--orange); line-height: normal; }
.vs-step__title { font-size: 19px; font-weight: 700; line-height: 1.3; }
.vs-step__text { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Hover transitions without the reveal delay once revealed */
.js .vs-verdict__box.is-in,
.js .vs-reason.is-in,
.js .vs-step.is-in { transition: opacity .9s var(--ease-out), transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s, background-color .4s; transition-delay: 0s; }

/* Editor screenshot (same composite as the homepage hero, no URL bar in Figma) */
.vs-shot-sec { padding-bottom: var(--sec-y); }
.vs-shot { box-shadow: 0 24px 60px -10px rgba(21, 39, 59, .12); }

/* Tablet ------------------------------------------------------------------ */
@media (max-width: 1180px) {
	.vs-verdict__box { padding: 32px 28px; }
	.vs-verdict__title { font-size: 24px; }
	/* 3 cards: 2 + 1 full width */
	.vs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
	.vs-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
	.vs-table th,
	.vs-table td { padding: 16px 10px; }
	.vs-table tr > :first-child { padding-left: 20px; }
	.vs-table tr > :last-child { padding-right: 20px; }
}

@media (max-width: 900px) {
	.vs-table-sec__title { margin-bottom: 32px; }
	.vs-verdict__grid { gap: 16px; }
	.vs-verdict__box { padding: 28px 22px; }
	.vs-verdict__title { font-size: 22px; }
	.vs-verdict__list { gap: 12px; font-size: 15px; }
	.vs-table { font-size: 14px; }
}

/* Mobile ------------------------------------------------------------------ */
@media (max-width: 767px) {
	.vs-verdict__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.vs-verdict__box { gap: 14px; padding: 28px 20px; border-radius: 16px; }
	.vs-verdict__list { font-size: 16px; }

	.vs-table-sec__title { margin-bottom: 25px; }
	.vs-table-wrap { border-radius: 16px; }
	/* Table becomes stacked rows: feature, then HoopDraw, then competitor */
	.vs-table,
	.vs-table tbody,
	.vs-table tr,
	.vs-table th,
	.vs-table td { display: block; width: 100%; }
	.vs-table colgroup { display: none; }
	.vs-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(1px, 1px, 1px, 1px);
		white-space: nowrap;
	}
	.vs-table tbody tr { padding: 16px 20px; }
	.vs-table tbody tr:hover { background: inherit; }
	.vs-table tbody tr:nth-child(even):hover { background: var(--bg-alt); }
	.vs-table tbody tr + tr { border-top: 1px solid var(--border); }
	.vs-table th,
	.vs-table td,
	.vs-table tr > :first-child,
	.vs-table tr > :last-child { padding: 0; }
	.vs-table tbody th { margin-bottom: 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
	.vs-table tbody td {
		display: grid;
		grid-template-columns: 104px minmax(0, 1fr);
		gap: 12px;
		padding-block: 3px;
		font-size: 15px;
	}
	.vs-table tbody td::before {
		content: attr(data-label);
		font-size: 13px;
		font-weight: 600;
		line-height: 1.65;
		color: var(--muted);
	}
	.vs-table tbody td.vs-table__us::before { color: var(--orange); }
	.vs-table-sec__note { margin-top: 20px; }

	.vs-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.vs-reason { gap: 8px; padding: 24px 20px; border-radius: 16px; }
	.vs-reason__num { font-size: 26px; }
	.vs-reason__title { font-size: 19px; }
	.vs-step { gap: 8px; padding: 22px 20px; }
	.vs-step__num { font-size: 24px; }
	.vs-step__title { font-size: 18px; }
}
