/* biome-ignore-all lint/style/noDescendingSpecificity: components in reading order, wider screens after the phone rules */
/* biome-ignore-all lint/suspicious/noDuplicateProperties: a plain colour stands before every color-mix(), for a browser that has none (Safari before 16.2) */
/* The checkout's picker of what to buy (the choice screen around it is choose.css, the
   order card order.css). The plan cards, the pack rows,
   the Included lists and the term tiles are the landing's own (.plans, .plan, .packs, .pack,
   .incl, .longer of static/site.css); this file adds what choosing and paying need. A colour
   is a token of that file or a mix of tokens. */

/* ---------- the picker ---------- */
.catalog-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin-bottom: 20px;
}
.segmented {
	display: flex;
	padding: 4px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--deep);
}
.segmented button {
	min-height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--muted);
	font: 600 15px / 1 var(--ff-b);
}
.segmented [aria-pressed="true"] {
	background: var(--s3);
	color: var(--text);
}
.purchase-layout {
	display: grid;
	gap: 20px;
}
.purchase-layout > *,
.buy > * {
	min-width: 0;
}
.products .plan {
	padding: 20px;
}
.products .plan--pro {
	margin: 0;
}
.products .plan__name {
	flex-wrap: wrap;
}
.products .plan__price {
	flex-wrap: wrap;
	overflow-wrap: anywhere;
}
/* a meter the built stylesheet has no width for stays an empty track */
.products .meter i {
	width: var(--w, 0%);
}
/* the chosen card: a cyan ring, and its button says so */
.plan.is-chosen {
	box-shadow: 0 0 0 2px var(--cyan);
}
/* the button of a card takes a click anywhere on the card; the term tiles lie above it */
.plan__pick::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--r-l);
}
.plan__pick[aria-pressed="true"] {
	background: rgba(50, 215, 255, 0.12);
	background: color-mix(in srgb, var(--cyan) 12%, transparent);
	color: var(--text);
	box-shadow: inset 0 0 0 1px var(--cyan);
	filter: none;
	transform: none;
}
.plan__pick svg {
	width: 16px;
	height: 16px;
	color: var(--cyan);
}
.products .longer {
	position: relative;
	z-index: 1;
}
.products .longer ul {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.products .longer li {
	padding: 0;
}
.term {
	display: block;
	width: 100%;
	min-height: 44px;
	padding: 10px 10px 11px;
	border: 0;
	border-radius: 11px;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
}
.term[aria-pressed="true"] {
	background: rgba(50, 215, 255, 0.1);
	background: color-mix(in srgb, var(--cyan) 10%, transparent);
	box-shadow: inset 0 0 0 2px var(--cyan);
}
button.pack {
	width: 100%;
	border: 0;
	border-top: 1px solid var(--line);
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
}
button.pack:first-child {
	border-top: 0;
}
button.pack[aria-pressed="true"] {
	background: rgba(138, 127, 249, 0.16);
	background: color-mix(in srgb, var(--violet) 16%, transparent);
	box-shadow: inset 3px 0 0 var(--cyan);
}

/* ---------- the choice and the pay bar ---------- */
.buy__choice {
	display: grid;
	gap: 14px;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--r-l);
	background: var(--s1);
}
.buy__choice .incl__h {
	margin: 0;
}
.buy__note,
.renewal-line {
	color: var(--muted);
	font-size: 14px;
	line-height: 20px;
}
.renewal-options {
	display: grid;
	gap: 8px;
}
.renewal-line {
	margin: -2px 2px 4px;
}
.choice {
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--line-2);
	border-radius: var(--r-s);
	background: var(--deep);
	color: var(--text);
	font: 600 15px / 20px var(--ff-b);
	text-align: left;
}
.choice[aria-pressed="true"] {
	border-color: var(--cyan);
	background: rgba(50, 215, 255, 0.1);
	background: color-mix(in srgb, var(--cyan) 10%, transparent);
}
#payment-methods {
	display: flex;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}
#payment-methods legend {
	margin-bottom: 10px;
	padding: 0;
}
#payment-methods .choice {
	flex: 1;
	text-align: center;
}
/* an order that still waits for its payment, above the cards */
.open-order {
	margin-bottom: 20px;
}
.legal-consent a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- tablet and desktop ---------- */
@media (min-width: 720px) {
	.products .plan {
		padding: 24px;
	}
}
/* a wide card has room for the four tiles in one row */
@media (min-width: 720px) and (max-width: 1279.98px) {
	.products .longer ul {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
@media (min-width: 1280px) {
	.products .plans {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
		gap: 16px;
		align-items: stretch;
	}
}
@media (min-width: 1000px) and (max-width: 1279.98px) {
	.products .plans {
		grid-template-columns: minmax(0, 1fr);
	}
}
