/* Membership page: plans and compare table. Shared sections come from home.css. */
.m-hero {
	padding: calc(var(--navh, 96px) + 72px) 0 96px;
}

.m-hero .bw-cat-w {
	margin-top: 48px;
}

.m-tiers {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	align-items: stretch;
	padding: 20px 0;
}

.m-tier:first-child {
	border-radius: var(--radius) 0 0 var(--radius);
	box-shadow: inset 0 0 0 1px rgba(9, 9, 11, .07);
}

.m-tier:nth-child(2) {
	box-shadow: inset 0 1px 0 rgba(9, 9, 11, .07), inset 0 -1px 0 rgba(9, 9, 11, .07);
}

.m-tier {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 40px 32px;
	background: var(--bg);
}

.m-tier.feat {
	background: var(--ink);
	color: #fff;
}

.m-pop {
	position: absolute;
	top: 24px;
	right: 24px;
	padding: 5px 10px;
	border-radius: 6px;
	background: var(--accent);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #fff;
}

.m-name {
	font: 500 12px/16px var(--mono);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--accent);
}

.m-price {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-top: 20px;
}

.m-price b {
	font-size: 56px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -.03em;
}

.m-price small {
	font-size: 14px;
	color: rgba(9, 9, 11, .45);
}

.feat .m-price small {
	color: rgba(255, 255, 255, .45);
}

.m-desc {
	min-height: 46px;
	margin: 16px 0 28px;
	font-size: 14px;
	line-height: 22.75px;
	color: rgba(9, 9, 11, .5);
}

.feat .m-desc {
	color: rgba(255, 255, 255, .5);
}

.m-btn {
	display: block;
	padding: 14px 20px;
	border-radius: var(--radius);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .1em;
	text-align: center;
	text-transform: uppercase;
	transition: all .2s;
}

.m-btn.pri {
	background: var(--accent);
	color: #fff;
}

.m-btn.pri:hover {
	background: #b9000a;
}

.m-btn.sec {
	border: 1px solid rgba(9, 9, 11, .15);
	color: var(--ink);
}

.m-btn.sec:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

.m-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 32px 0 0;
	padding: 28px 0 0;
	border-top: 1px dashed rgba(9, 9, 11, .12);
	list-style: none;
}

.feat .m-list {
	border-top-color: rgba(255, 255, 255, .12);
}

.m-list li {
	display: flex;
	align-items: baseline;
	gap: 12px;
	font-size: 14px;
	line-height: 20px;
	color: rgba(9, 9, 11, .75);
}

.feat .m-list li {
	color: rgba(255, 255, 255, .8);
}

.m-list li::before {
	content: "";
	flex-shrink: 0;
	width: 9px;
	height: 9px;
	background: var(--accent);
	border-radius: 0 0 0 100%;
}

.m-cmp-s {
	padding: 112px 0;
}

.m-cmp-s .bw-cat-w {
	margin-top: 48px;
}

.m-row {
	display: grid;
	grid-template-columns: 2fr repeat(3, 1fr);
	gap: 16px;
	align-items: center;
	padding: 18px 32px;
	position: relative;
	font-size: 15px;
	color: rgba(9, 9, 11, .75);
}

.m-row + .m-row::before {
	content: "";
	position: absolute;
	top: 0;
	left: 32px;
	right: 32px;
	height: 1px;
	background-image: var(--dash);
}

.m-row span:not(:first-child) {
	text-align: center;
	font: 500 13px/1 var(--mono);
	color: var(--ink);
}

.m-head {
	font: 500 12px/16px var(--mono);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: rgba(9, 9, 11, .45);
}

.m-head span:not(:first-child) {
	font: 500 12px/16px var(--mono);
	color: var(--accent);
}

.m-row .ok {
	display: inline-block;
	width: 14px;
	height: 14px;
	color: var(--ink);
}

.m-row .no {
	color: rgba(9, 9, 11, .2);
}

@media(max-width: 1023px) {
	.m-tiers {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media(max-width: 767px) {
	.m-hero {
		padding: calc(var(--navh, 96px) + 40px) 0 64px;
	}

	.m-hero .bw-cat-w,
	.m-cmp-s .bw-cat-w {
		margin-top: 32px;
	}

	.m-cmp-s {
		padding: 64px 0;
	}

	.m-tier {
		padding: 32px 24px;
	}

	.m-row {
		grid-template-columns: 1.6fr repeat(3, 1fr);
		gap: 8px;
		padding: 14px 16px;
		font-size: 13px;
	}

	.m-row + .m-row::before {
		left: 16px;
		right: 16px;
	}
}

/* Lifetime as the hero card: taller, shadowed, value maths, bonus perks */
.m-tier.feat {
	z-index: 1;
	margin: -20px 0;
	padding-top: 56px;
	padding-bottom: 56px;
	border-radius: var(--radius);
	box-shadow: 0 30px 60px -24px rgba(9, 9, 11, .45);
}

.m-perks {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 24px 0 0;
	padding: 14px;
	border: 1px solid rgba(232, 0, 13, .45);
	border-radius: var(--radius);
	background: rgba(232, 0, 13, .12);
}

.m-perks-h {
	grid-column: 1/-1;
	font: 500 11px/14px var(--mono);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #ff8a8f;
}

.m-perks b {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
}

.m-perks small {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: rgba(255, 255, 255, .55);
}

.m-note {
	margin: 12px 0 0;
	font-size: 12px;
	text-align: center;
	color: rgba(255, 255, 255, .45);
}

.feat .m-desc {
	min-height: 0;
	margin-top: 12px;
}

/* compare table: Lifetime column highlighted */
.m-row > span:last-child {
	margin: -18px 0;
	background: rgba(232, 0, 13, .06);
}

.m-row > span:last-child .ok {
	color: var(--accent);
}

.m-head > span:last-child {
	gap: 4px;
}

.m-head em {
	font-style: normal;
	font-size: 10px;
	letter-spacing: .1em;
	color: rgba(9, 9, 11, .45);
}

@media(max-width: 1023px) {
	.m-tier.feat {
		margin: 0;
	}

	.m-tiers {
		padding: 0;
		gap: 16px;
	}

	.m-tier:first-child,
	.m-tier:nth-child(2) {
		box-shadow: inset 0 0 0 1px rgba(9, 9, 11, .07);
		border-radius: var(--radius);
	}
}

@media(max-width: 767px) {
	.m-row > span:last-child {
		margin: -14px 0;
	}

	.m-perks {
		grid-template-columns: 1fr;
	}
}

.m-save {
	position: absolute;
	top: 24px;
	right: 24px;
	padding: 5px 10px;
	border: 1px solid rgba(232, 0, 13, .4);
	border-radius: 6px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--accent);
}

/* Lifetime column tint runs to the right edge of the table */
.m-row > span:last-child {
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: -32px;
	padding-right: 32px;
}

.m-head > span:last-child {
	flex-direction: column;
	background: rgba(232, 0, 13, .1);
	border-top-right-radius: calc(var(--radius) - 1px);
}

.m-row:last-child > span:last-child {
	border-bottom-right-radius: calc(var(--radius) - 1px);
}

@media(max-width: 767px) {
	.m-row > span:last-child {
		margin-right: -16px;
		padding-right: 16px;
	}
}
