/**
 * Comparison pages.
 *
 * Persuade mode, but the persuasion here is legibility: the reader is holding
 * two products in their head and wants the difference to be obvious. Colour is
 * spent on exactly one thing — which side a row favours — so it still means
 * something by the eighth row.
 */

.fk-cmp { max-width: 100%; }

.fk-cmp-lede {
	max-width: 60ch;
	margin: 0 0 44px;
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--FkInk600, #475569);
}

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

/* ------------------------------------------------------------ the cost */

.fk-cmp-cost {
	margin: 0 0 40px;
	padding: 32px 34px 28px;
	border: 1px solid var(--FkLine, #e6ebf2);
	border-radius: 14px;
	background: var(--FkWhite, #fff);
	box-shadow: 0 1px 2px rgba(16, 30, 54, .04), 0 12px 32px -18px rgba(16, 30, 54, .28);
}

.fk-cmp-cost > figcaption {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 14px;
	margin-bottom: 26px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--FkLine, #e6ebf2);
}
.fk-cmp-cost-h {
	font-family: var(--FkBody, inherit);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--FkInk900, #0f172a);
}
.fk-cmp-cost-s {
	font-size: 13px;
	color: var(--FkInk600, #475569);
}

/* One axis for all four bars. `is-first` opens a little air where the product
   changes, so the two pairs read as pairs without a rule between them. */
.fk-cmp-scale { display: grid; gap: 4px; }

.fk-cmp-row {
	display: grid;
	grid-template-columns: 112px 128px minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	min-height: 40px;
}
.fk-cmp-row.is-first { margin-top: 14px; }
.fk-cmp-row.is-first:first-child { margin-top: 0; }

.fk-cmp-who {
	margin: 0;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.3;
	color: var(--FkInk900, #0f172a);
}
.fk-cmp-row.is-them .fk-cmp-who { color: var(--FkInk600, #475569); }

.fk-cmp-tier {
	margin: 0;
	font-size: 13px;
	line-height: 1.35;
	color: var(--FkInk600, #475569);
}

.fk-cmp-track {
	/* Grid with a fixed label column, not flex. As a flex row the longest bar
	   took the whole track and pushed its own price off the side of the phone.
	   The label column is a fixed width rather than auto so every bar measures
	   against the same axis — an auto column would be wider next to $5,997
	   than next to $99 and quietly distort the ratio the chart exists to show. */
	display: grid;
	grid-template-columns: minmax(0, 1fr) 76px;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.fk-cmp-fill {
	display: block;
	height: 26px;
	width: var(--w, 1%);
	flex: 0 0 auto;
	min-width: 5px;
	border-radius: 8px;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .82s cubic-bezier(.16, .84, .44, 1);
}
/* Revealed when the figure reaches the viewport, not at page load — the chart
   sits well below the fold and the reveal is the page's one authored moment. */
.fk-cmp-cost.is-live .fk-cmp-fill { transform: scaleX(1); }
/* If the script never runs, the chart must still be a chart. */
.no-js .fk-cmp-fill,
.fk-cmp-cost:not(.is-live) .fk-cmp-fill { transform: scaleX(1); }
html.fk-cmp-js .fk-cmp-cost:not(.is-live) .fk-cmp-fill { transform: scaleX(0); }
.fk-cmp-cost.is-live .fk-cmp-row:nth-child(2) .fk-cmp-fill { transition-delay: .06s; }
.fk-cmp-cost.is-live .fk-cmp-row:nth-child(3) .fk-cmp-fill { transition-delay: .12s; }
.fk-cmp-cost.is-live .fk-cmp-row:nth-child(4) .fk-cmp-fill { transition-delay: .18s; }

.fk-cmp-row.is-us .fk-cmp-fill { background: var(--FkGreen700, #157347); }
.fk-cmp-row.is-them .fk-cmp-fill { background: #8fa0b8; }

.fk-cmp-val {
	font-weight: 700;
	font-size: 1.0625rem;
	color: var(--FkInk900, #0f172a);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.fk-cmp-row.is-them .fk-cmp-val { color: var(--FkInk600, #475569); }

.fk-cmp-legend-cost {
	display: grid;
	gap: 6px;
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid var(--FkLine, #e6ebf2);
}
@media (min-width: 760px) {
	.fk-cmp-legend-cost { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.fk-cmp-legend-cost p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--FkInk600, #475569);
}
.fk-cmp-legend-cost p.is-us { color: var(--FkGreen700, #157347); }

/* ------------------------------------------------------------- the key */

.fk-cmp-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}
.fk-cmp-legend li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	font-size: 12.5px;
	color: var(--FkInk600, #475569);
}
.fk-cmp-legend svg { width: 17px; height: 17px; display: block; flex: 0 0 auto; }
.fk-cmp-legend li.is-plus  { color: var(--FkGreen700, #157347); }
.fk-cmp-legend li.is-minus { color: #9a4c06; }
.fk-cmp-legend li.is-info  { color: var(--FkBlue600, #2457e6); }

/* --------------------------------------------------------- the matrix */

.fk-cmp-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--FkLine, #e6ebf2);
	border-radius: 14px;
}
.fk-cmp-scroll:focus-visible {
	outline: 2px solid var(--FkBlue600, #2457e6);
	outline-offset: 3px;
}

.fk-cmp-table {
	width: 100%;
	min-width: 680px;
	border-collapse: collapse;
	text-align: left;
}

.fk-cmp-table > caption {
	position: absolute; width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.fk-cmp-table thead th {
	/* Not sticky. It was, and the header detached and floated over row two:
	   the table sits in an overflow-x container, so sticky resolves against
	   that box rather than the page. Eight rows never needed one anyway. */
	padding: 14px 20px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--FkInk600, #475569);
	background: var(--FkSurface2, #F4F7FC);
	border-bottom: 1px solid var(--FkLine, #e6ebf2);
}
.fk-cmp-table thead th.is-us { color: var(--FkGreen700, #157347); background: #eef5f1; }

.fk-cmp-table tbody th,
.fk-cmp-table tbody td {
	padding: 16px 20px;
	font-size: 14.5px;
	line-height: 1.5;
	border-bottom: 1px solid var(--FkLine, #e6ebf2);
	vertical-align: top;
}

.fk-cmp-table tbody th {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 600;
	color: var(--FkInk900, #0f172a);
	min-width: 214px;
}

.fk-cmp-table tbody td { color: var(--FkInk600, #475569); }
.fk-cmp-table tbody td.is-us { color: var(--FkInk900, #0f172a); font-weight: 600; }

/* A tint down FunnelKit's column rather than a badge on the rows it wins: the
   reader already knows whose site this is, and the rows we lose stay honest. */
.fk-cmp-table tbody td.is-us { background: rgba(21, 115, 71, .05); }

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

.fk-cmp-mark { flex: 0 0 auto; display: inline-flex; margin-top: 1px; }
.fk-cmp-mark svg { width: 20px; height: 20px; display: block; }

tr.is-plus  .fk-cmp-mark { color: var(--FkGreen700, #157347); }
tr.is-minus .fk-cmp-mark { color: #9a4c06; }
tr.is-same  .fk-cmp-mark { color: var(--FkInk400, #5E6E84); }
tr.is-info  .fk-cmp-mark { color: var(--FkBlue600, #2457e6); }

.fk-cmp-src {
	margin: 20px 0 0;
	/* 2026-10-27: was 70ch (~86-92 characters a line at 13px). px, not ch:
	   see the critical-CSS note in fk-page.css. */
	max-width: 500px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--FkInk600, #475569);
}

@media (prefers-reduced-motion: reduce) {
	.fk-cmp-fill { transition: none; transform: scaleX(1); }
}

@media (max-width: 760px) {
	.fk-cmp-cost { padding: 24px 20px 20px; border-radius: 14px; }
	.fk-cmp-lede { font-size: 1.0625rem; margin-bottom: 32px; }
	.fk-cmp-table tbody th { min-width: 176px; }

	/* The three-column row does not survive a phone: the label stack takes the
	   width the bar needs. Name above, bar below, full width. */
	.fk-cmp-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 4px;
		min-height: 0;
		margin-bottom: 14px;
	}
	.fk-cmp-row.is-first { margin-top: 18px; }
	.fk-cmp-who:empty { display: none; }
	.fk-cmp-track { grid-template-columns: minmax(0, 1fr) 68px; gap: 10px; }
	.fk-cmp-tier { order: -1; font-size: 12.5px; }
	.fk-cmp-who { order: -2; }
}

/* ------------------------------------------------------ by the numbers */

.fk-cmp-counts {
	margin: 0 0 40px;
	padding: 32px 34px 28px;
	border: 1px solid var(--FkLine, #e6ebf2);
	border-radius: 14px;
	background: var(--FkWhite, #fff);
	/* Same depth as the cost card: three cards in a row that sit at different
	   elevations read as three unrelated components. */
	box-shadow: 0 1px 2px rgba(16, 30, 54, .04), 0 12px 32px -18px rgba(16, 30, 54, .28);
}
.fk-cmp-counts > figcaption {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
	margin-bottom: 24px; padding-bottom: 18px;
	border-bottom: 1px solid var(--FkLine, #e6ebf2);
}

.fk-cmp-countlist { display: grid; gap: 3px; }

.fk-cmp-crow {
	display: grid;
	grid-template-columns: 210px 104px minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	min-height: 32px;
}
.fk-cmp-crow.is-first { margin-top: 18px; }
.fk-cmp-crow.is-first:first-child { margin-top: 0; }

.fk-cmp-clabel {
	margin: 0;
	font-weight: 600;
	font-size: 14.5px;
	line-height: 1.35;
	color: var(--FkInk900, #0f172a);
}
.fk-cmp-cwho {
	margin: 0;
	font-size: 12.5px;
	color: var(--FkInk600, #475569);
}

.fk-cmp-ctrack {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 62px;
	align-items: center;
	gap: 12px;
}
.fk-cmp-cfill {
	display: block;
	height: 20px;
	width: var(--w, 2%);
	min-width: 4px;
	border-radius: 8px;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .72s cubic-bezier(.16, .84, .44, 1);
}
.fk-cmp-counts.is-live .fk-cmp-cfill { transform: scaleX(1); }
html:not(.fk-cmp-js) .fk-cmp-cfill { transform: scaleX(1); }
.fk-cmp-crow.is-us .fk-cmp-cfill { background: var(--FkGreen700, #157347); }
.fk-cmp-crow.is-them .fk-cmp-cfill { background: #8fa0b8; }

.fk-cmp-cval {
	font-weight: 700;
	font-size: 15px;
	color: var(--FkInk900, #0f172a);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.fk-cmp-crow.is-them .fk-cmp-cval { color: var(--FkInk600, #475569); font-weight: 600; }

/* -------------------------------------------------------- performance */

.fk-cmp-perf { margin: 0 0 40px; }
.fk-cmp-perf-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 28px;
	padding: 22px 30px;
	border: 1px solid var(--FkLine, #e6ebf2);
	border-radius: 14px;
	background: var(--FkWhite, #fff);
	box-shadow: 0 1px 2px rgba(16, 30, 54, .04), 0 12px 32px -18px rgba(16, 30, 54, .28);
}
.fk-cmp-perf-l {
	margin: 0;
	font-weight: 700;
	font-size: 1rem;
	color: var(--FkInk900, #0f172a);
}
.fk-cmp-perf-l span {
	display: block;
	font-weight: 400;
	font-size: 12.5px;
	color: var(--FkInk600, #475569);
}
.fk-cmp-perf-v {
	margin: 0;
	text-align: end;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.02em;
	font-variant-numeric: tabular-nums;
	color: var(--FkInk600, #475569);
}
.fk-cmp-perf-v.is-win { color: var(--FkGreen700, #157347); }
.fk-cmp-perf-v span {
	display: block;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--FkInk600, #475569);
}

/* --------------------------------------------------------- the bench */

.fk-cmp-method {
	margin: 22px 0 0;
	border: 1px solid var(--FkLine, #e6ebf2);
	border-radius: 14px;
	background: var(--FkSurface2, #F4F7FC);
}
.fk-cmp-method > summary {
	padding: 13px 18px;
	cursor: pointer;
	list-style: none;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--FkInk900, #0f172a);
	display: flex; align-items: center; gap: 9px;
}
.fk-cmp-method > summary::-webkit-details-marker { display: none; }
.fk-cmp-method > summary::after {
	content: ""; width: 8px; height: 8px; margin-inline-start: auto;
	border-right: 1.6px solid #94a3b8; border-bottom: 1.6px solid #94a3b8;
	transform: rotate(-45deg);
	transition: transform .18s cubic-bezier(.22, .61, .36, 1);
}
.fk-cmp-method[open] > summary::after { transform: rotate(45deg); }
.fk-cmp-method > summary:focus-visible {
	outline: 2px solid var(--FkBlue600, #2457e6); outline-offset: -2px; border-radius: 14px;
}
.fk-cmp-method dl {
	margin: 0; padding: 4px 18px 18px;
	display: grid; gap: 1px;
}
@media (min-width: 680px) { .fk-cmp-method dl { grid-template-columns: 1fr 1fr; gap: 1px 30px; } }
.fk-cmp-method dl > div {
	display: flex; gap: 10px; justify-content: space-between;
	padding: 7px 0;
	border-bottom: 1px solid #e8edf5;
	font-size: 13px;
}
.fk-cmp-method dt { color: var(--FkInk600, #475569); }
.fk-cmp-method dd { margin: 0; color: var(--FkInk900, #0f172a); text-align: end; font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
	.fk-cmp-cfill { transition: none; transform: scaleX(1); }
	.fk-cmp-method > summary::after { transition: none; }
}

@media (max-width: 760px) {
	.fk-cmp-counts { padding: 24px 20px 20px; border-radius: 14px; }
	.fk-cmp-crow {
		grid-template-columns: minmax(0, 1fr);
		gap: 3px;
		min-height: 0;
		margin-bottom: 10px;
	}
	.fk-cmp-crow.is-first { margin-top: 20px; }
	.fk-cmp-clabel:empty { display: none; }
	.fk-cmp-ctrack { grid-template-columns: minmax(0, 1fr) 56px; gap: 10px; }
	.fk-cmp-perf-row { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
	.fk-cmp-perf-v { text-align: start; }
}

/* Plan-limit block: a table, not bars — "not metered" has no length, and a very
   long bar against a capped one would invent a number the source never gives. */
.fk-cmp-limits { margin: 0 0 40px; }
.fk-cmp-limits-h {
	margin: 0 0 14px;
	font-family: var(--FkBody, inherit);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--FkInk600, #475569);
}
.fk-cmp-limits .fk-cmp-table tbody th { display: table-cell; min-width: 210px; }

/* Plan name under the product name in the scaling chart. */
.fk-cmp-cwho span {
	display: block;
	font-size: 11.5px;
	/* #8b9ab2 measured 2.85:1 on white at 11.5px - WCAG 1.4.3 asks 4.5:1 for
	   small text. Same slate, darker: 4.76:1. */
	color: var(--FkInk400, #5E6E84);
}
.fk-cmp-ctrack.is-money { grid-template-columns: minmax(0, 1fr) 82px; }
@media (max-width: 760px) {
	.fk-cmp-ctrack.is-money { grid-template-columns: minmax(0, 1fr) 74px; }
}
