/* The pricing page (templates/site/pricing.html, pricing.py): the intro and
   its Monthly / Yearly switch, the plan cards (the recommended one and the
   one ?plan= picked outlined in the accent), the comparison table, the
   questions and the small print. The sign-up forms inside the cards reuse
   css/interest.css. Colours come from the site's theme properties
   (css/site-theme.css), so the page follows Light, Dark and the accent. */

.mc-pricing {
	max-width: 68rem;
	margin: 0 auto;
	padding: 1.5rem 0 3rem;
}

.mc-pricing-intro {
	text-align: center;
	max-width: 40rem;
	margin: 0 auto 2rem;
}

.mc-pricing-title {
	margin: 0 0 0.75rem;
	font-size: 2.1rem;
	line-height: 1.15;
	color: var(--mc-ink);
}

.mc-pricing-lead {
	margin: 0 0 1.25rem;
	font-size: 1.1rem;
	color: var(--mc-text);
}

.mc-pricing-staff {
	margin: 0 0 1.25rem;
	padding: 10px 14px;
	border-radius: 8px;
	background: var(--mc-accent-soft);
	color: var(--mc-ink);
}

/* The two switches (billing, and a group's size): a pair of toggle
   buttons, the pressed one filled. */
.mc-pricing-switch,
.mc-plan-sizes {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border: 1px solid var(--mc-border);
	border-radius: 999px;
	background: var(--mc-surface);
}

.mc-switch-choice {
	min-width: 5.5rem;
	padding: 7px 16px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--mc-text);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.mc-plan-sizes { align-self: flex-start; }

.mc-plan-sizes .mc-switch-choice { min-width: 3.5rem; }

.mc-switch-choice:hover { color: var(--mc-accent); }

.mc-switch-choice[aria-pressed="true"],
.mc-switch-choice[aria-pressed="true"]:hover {
	background: var(--mc-accent);
	color: var(--mc-on-accent);
}

.mc-switch-choice:focus-visible {
	outline: 2px solid var(--mc-accent-focus);
	outline-offset: 2px;
}

/* ---------- the cards ---------- */

.mc-plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 20px;
	align-items: start;
}

.mc-plan {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px;
	border: 1px solid var(--mc-border);
	border-radius: 14px;
	background: var(--mc-surface);
	box-shadow: var(--mc-shadow);
	/* Clear of the sticky header when ?plan= or an anchor scrolls here. */
	scroll-margin-top: calc(var(--mc-header-height, 56px) + 16px);
}

.mc-plan.is-recommended { border: 2px solid var(--mc-accent); }

.mc-plan.is-picked {
	border: 2px solid var(--mc-accent);
	outline: 4px solid var(--mc-accent-focus);
}

.mc-plan-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.mc-plan-name {
	margin: 0;
	margin-right: auto;
	font-size: 1.4rem;
	color: var(--mc-ink);
}

.mc-plan-badge {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--mc-accent);
	color: var(--mc-on-accent);
	font-size: 12.5px;
	font-weight: 700;
}

.mc-plan-badge-mine {
	background: var(--mc-accent-soft);
	color: var(--mc-ink);
}

.mc-plan-tagline,
.mc-plan-from {
	margin: 0;
	color: var(--mc-text-dim);
}

.mc-plan-from { font-weight: 600; }

.mc-plan-option {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mc-plan-option[hidden],
.mc-plan-price[hidden],
.mc-plan-note[hidden] { display: none; }

.mc-plan-price {
	margin: 4px 0 0;
	color: var(--mc-ink);
}

.mc-plan-amount {
	font-size: 2.2rem;
	font-weight: 700;
	line-height: 1.1;
}

.mc-plan-period { color: var(--mc-text-dim); }

.mc-plan-note {
	margin: 0;
	font-size: 14px;
	color: var(--mc-text-dim);
}

.mc-plan-lead-in {
	margin: 4px 0 0;
	font-weight: 600;
	color: var(--mc-ink);
}

.mc-plan-highlights {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 6px;
}

.mc-plan-highlights li {
	position: relative;
	padding-left: 22px;
	color: var(--mc-text);
}

/* A check before each highlight, in the accent. */
.mc-plan-highlights li::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 0.3em;
	width: 6px;
	height: 11px;
	border: solid var(--mc-accent);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.mc-plan-action { margin-top: 8px; }

.mc-plan-button {
	width: 100%;
	justify-content: center;
	padding: 10px 16px;
	font-size: 15px;
}

.mc-plan-current {
	margin: 0;
	padding: 10px 0;
	text-align: center;
	font-weight: 600;
	color: var(--mc-text-dim);
}

/* Get <plan>: a disclosure that opens its sign-up form under the button. */
.mc-plan-get > summary {
	list-style: none;
	cursor: pointer;
}

.mc-plan-get > summary::-webkit-details-marker { display: none; }

.mc-plan-get > summary:focus-visible {
	outline: 2px solid var(--mc-accent-focus);
	outline-offset: 2px;
}

.mc-plan-get[open] > summary { margin-bottom: 14px; }

.mc-plan-form {
	display: grid;
	gap: 8px;
}

.mc-plan-form[hidden],
.mc-plan-done[hidden] { display: none; }

.mc-plan-form-lead { margin: 0; color: var(--mc-ink); }

.mc-plan-done {
	margin: 0;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--mc-accent-soft);
	color: var(--mc-ink);
}

/* Focused by the script so it is read out; ringed in the accent. */
.mc-plan-done:focus-visible { outline: 2px solid var(--mc-accent-focus); }

/* ---------- comparison, questions, small print ---------- */

.mc-pricing-section {
	max-width: 52rem;
	margin: 3rem auto 0;
}

.mc-pricing-heading {
	margin: 0 0 1rem;
	font-size: 1.5rem;
	color: var(--mc-ink);
}

/* A phone scrolls the table sideways rather than the page. */
.mc-compare-wrap { overflow-x: auto; }

.mc-compare {
	width: 100%;
	border-collapse: collapse;
	color: var(--mc-text);
}

.mc-compare th,
.mc-compare td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--mc-border);
	text-align: left;
	vertical-align: top;
}

.mc-compare thead th { color: var(--mc-ink); }

.mc-compare tbody th {
	font-weight: 600;
	color: var(--mc-ink);
}

.mc-compare .is-mine { background: var(--mc-accent-soft); }

.mc-compare-mine,
.mc-compare-yearly,
.mc-compare-hint {
	display: block;
	font-size: 13px;
	font-weight: 400;
	color: var(--mc-text-dim);
}

.mc-faq h3 {
	margin: 1.5rem 0 0.4rem;
	font-size: 1.1rem;
	color: var(--mc-ink);
}

.mc-faq p { margin: 0; color: var(--mc-text); }

.mc-faq-form {
	max-width: 30rem;
	margin-top: 0.75rem;
}

.mc-faq h3[id] {
	scroll-margin-top: calc(var(--mc-header-height, 56px) + 16px);
}

.mc-pricing-small {
	max-width: 52rem;
	margin: 3rem auto 0;
	font-size: 13px;
	color: var(--mc-text-dim);
	text-align: center;
}

@media (max-width: 640px) {
	.mc-pricing { padding-top: 0.5rem; }
	.mc-pricing-title { font-size: 1.7rem; }
	.mc-plan { padding: 18px; }
}
