/* ================================
   Pricing page + homepage pricing preview
   ================================ */

/* ---------- Section bands ------------------------------------------------ */
/* Alternating bands use the shared .band-tint utility from sections.css. */

/* ---------- Billing toggle -------------------------------------------------- */
.billing-toggle {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	max-width: 100%;
	margin-top: 1.75rem;
	margin-bottom: .75rem;
	padding: 0.3rem;
	background: var(--color-bg-light);
	border: 1px solid var(--color-border-light);
	border-radius: 999px;
}

.billing-toggle-option {
	padding: 0.55rem 1.4rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--color-text-muted);
	border-radius: 999px;
	text-decoration: none;
}

.billing-toggle-option:hover {
	color: var(--color-primary);
}

.billing-toggle-option.is-active {
	color: var(--color-bg);
	background: var(--color-primary);
	box-shadow: 0 2px 8px var(--color-shadow-light);
}

.billing-toggle-save {
	margin-left: 0.4rem;
	padding: 0.1rem 0.5rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--color-primary-dark);
	background: var(--color-bg);
	border-radius: 999px;
}

.billing-toggle-option.is-active .billing-toggle-save {
	color: var(--color-primary-dark);
}

.billing-toggle-note {
	max-width: 640px;
	margin: 1rem auto 0;
	font-size: 0.88rem;
	line-height: 1.6;
	color: var(--color-text-muted);
}

.plan-example-equiv {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.78rem;
	font-weight: 400;
	color: var(--color-text-muted-light);
	white-space: normal;
}

/* ---------- Plan cards --------------------------------------------------- */
.plan-grid {
	margin-top: 2.5rem;
	align-items: stretch;
}

/* Outranks Fomantic's .ui.grid > .column:not(.row) display rule (same
   specificity, later in the cascade) so cards stretch to a common height. */
.plan-grid.ui.grid>.column {
	display: flex;
}

.plan-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	padding: 2rem;
	background: var(--color-bg);
	border: 1px solid var(--color-border-light);
	border-radius: 18px;
	box-shadow: 0 4px 16px var(--color-shadow-lightest);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.plan-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 34px var(--color-shadow-light);
	border-color: var(--color-primary-light);
}

.plan-card--featured {
	border-color: var(--color-primary-light);
	box-shadow: 0 10px 28px var(--color-primary-bg-faint);
}

.plan-flag {
	align-self: flex-start;
	margin-bottom: 1rem;
	padding: 0.25rem 0.7rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-primary-dark);
	background: var(--color-primary-bg-light);
	border: 1px solid var(--color-primary-border-light);
	border-radius: 999px;
}

.plan-name {
	font-size: 1.35rem !important;
	font-weight: 700 !important;
	color: var(--color-bg-dark) !important;
	margin: 0 0 0.35rem !important;
}

.plan-audience {
	margin: 0 0 1.25rem;
	color: var(--color-text-muted);
}

.plan-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-bottom: 0.35rem;
}

.plan-amount {
	font-size: 2rem;
	font-weight: 800;
	line-height: 1.1;
	color: var(--color-primary);
}

.plan-period,
.plan-plus {
	font-size: 0.9rem;
	color: var(--color-text-muted);
}

.plan-plus {
	margin: 0 0 0.5rem;
}

.plan-formula {
	margin: 0 0 1rem;
	font-size: 0.85rem;
	color: var(--color-text-muted-light);
}

.plan-examples {
	width: 100%;
	margin: 0 0 1rem;
	border-collapse: collapse;
	font-size: 0.85rem;
	text-align: left;
}

.plan-examples caption {
	margin-bottom: 0.4rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-text-muted-light);
	text-align: left;
}

.plan-examples th,
.plan-examples td {
	padding: 0.5rem 0;
	border-top: 1px solid var(--color-border-lighter);
	font-weight: 400;
	color: var(--color-text-secondary);
}

.plan-examples th {
	width: 55%;
}

.plan-examples td {
	font-weight: 700;
	color: var(--color-primary-dark);
	text-align: right;
	white-space: nowrap;
}

.plan-charge {
	margin: 0 0 1rem;
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--color-text-muted-light);
}

.plan-charge-sep {
	margin: 0 0.35rem;
	color: var(--color-border-light);
}

.plan-summary {
	margin: 0 0 1.25rem;
	color: var(--color-text-secondary);
}

.plan-features {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
}

.plan-features li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin-bottom: 0.6rem;
	font-size: 0.92rem;
	line-height: 1.45;
	color: var(--color-text-secondary);
}

.plan-feature-icon {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-top: 0.2rem;
	color: var(--color-primary-light);
}

.plan-feature-tag {
	margin-left: 0.4rem;
	padding: 0.1rem 0.45rem;
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--color-text-muted);
	background: var(--color-bg-light);
	border: 1px dashed var(--color-border-light);
	border-radius: 6px;
	white-space: nowrap;
}

.plan-extra-heading {
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-text-muted-light);
}

.plan-excluded {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
}

.plan-excluded li {
	margin-bottom: 0.4rem;
	padding-left: 1rem;
	position: relative;
	font-size: 0.85rem;
	color: var(--color-text-muted-light);
}

.plan-excluded li::before {
	content: "—";
	position: absolute;
	left: 0;
}

.plan-foot {
	margin-top: auto;
	padding-top: 0.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	text-align: center;
}

.plan-foot .button {
	margin: 0;
	width: 100%;
}

.plan-foot-link {
	font-size: 0.85rem;
}

.plan-note {
	margin: 0 0 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--color-border-lighter);
	font-size: 0.85rem;
	color: var(--color-text-muted-light);
}

/* ---------- Tax / verification notes ------------------------------------- */
.pricing-tax-note,
.pricing-verify-note {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	max-width: 760px;
	margin: 2rem auto 0;
	padding: 1rem 1.25rem;
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--color-text-muted);
	background: var(--color-bg-light);
	border: 1px solid var(--color-border-lighter);
	border-radius: 12px;
}

.pricing-verify-note {
	margin: 2.5rem 0 0;
	max-width: none;
}

.pricing-tax-icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 0.15rem;
	color: var(--color-primary-light);
}

/* ---------- What the subscription includes ------------------------------- */
.included-split {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 2rem;
	margin-top: 2.5rem;
}

.included-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.included-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--color-border-lighter);
	font-size: 1rem;
	color: var(--color-text-secondary);
}

.included-icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 0.2rem;
	color: var(--color-primary-light);
}

.support-card {
	padding: 1.75rem;
	background: var(--color-bg);
	border: 1px solid var(--color-primary-border-light);
	border-radius: 16px;
	box-shadow: 0 4px 16px var(--color-shadow-lightest);
}

.support-heading {
	font-size: 1.15rem !important;
	font-weight: 700 !important;
	color: var(--color-bg-dark) !important;
	margin: 0 0 0.75rem !important;
}

.support-card p {
	margin: 0 0 1rem;
	color: var(--color-text-secondary);
}

.support-excluded-heading {
	margin: 0 0 0.5rem !important;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-text-muted-light);
}

.support-excluded {
	margin: 0 0 1rem;
	padding-left: 1.1rem;
}

.support-excluded li {
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
	color: var(--color-text-muted);
}

.support-note {
	margin: 0 !important;
	font-size: 0.85rem;
	color: var(--color-text-muted-light);
}

/* ---------- Services table ----------------------------------------------- */
.services-caption {
	margin-bottom: 0.75rem;
	font-size: 0.85rem;
	color: var(--color-text-muted-light);
	text-align: left;
	caption-side: top;
}

.services-table {
	background: var(--color-bg);
	border: 1px solid var(--color-border-light);
	border-radius: 14px;
}

.table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 1.5rem 0;
}

.table-scroll .services-table {
	min-width: 760px;
}

.services-table thead th {
	font-size: 0.72rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-text-muted-light) !important;
	background: var(--color-bg-light) !important;
	white-space: nowrap;
}

.services-table tbody th,
.services-table tbody td {
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--color-text-secondary);
	vertical-align: top;
}

.services-table tbody th {
	font-weight: 700 !important;
	color: var(--color-bg-dark) !important;
	white-space: nowrap;
}

/* Fomantic's very-basic table variant zeroes padding on first/last cells
   and on tbody th, which leaves the Service column flush against the table
   edge and vertically out of line with the other columns. Restore
   Fomantic's standard cell padding so every column lines up. */
.services-table thead th,
.services-table tbody th,
.services-table tbody td {
	padding: 0.78571429em !important;
}

.services-price {
	font-weight: 700 !important;
	color: var(--color-primary-dark) !important;
	white-space: nowrap;
}

.services-table tr.is-planned th,
.services-table tr.is-planned td {
	color: var(--color-text-muted);
}

.services-table tr.is-planned .services-price {
	color: var(--color-text-muted) !important;
}

.charge-pill {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	white-space: nowrap;
	border-radius: 999px;
}

.charge-pill--recurring {
	color: var(--color-primary-dark);
	background: var(--color-primary-bg-light);
	border: 1px solid var(--color-primary-border-light);
}

.charge-pill--once_off {
	color: var(--color-text-primary);
	background: var(--color-bg-light);
	border: 1px solid var(--color-border-light);
}

.charge-pill--quoted {
	color: var(--color-text-muted);
	background: var(--color-bg);
	border: 1px dashed var(--color-border-light);
}

.charge-pill--planned {
	color: var(--color-text-muted);
	background: var(--color-bg);
	border: 1px dashed var(--color-primary-border-light);
}

/* Below the desktop container width the fixed 760px minimum and nowrap cells
   force a horizontal scroll. Let the table text wrap instead. */
@media (max-width: 991px) {
	.table-scroll .services-table {
		min-width: 0;
	}

	.services-table thead th,
	.services-table tbody th,
	.services-table tbody td,
	.services-price {
		white-space: normal !important;
		overflow-wrap: break-word;
	}
}

/* Fomantic stacks the cells below 768px; the column header row is redundant
   once each row reads as a list, so hide it visually while keeping it for
   screen readers. */
@media (max-width: 767px) {
	.services-table > thead {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		border: 0;
	}
}

/* ---------- Charge-type legend ------------------------------------------- */
.charge-grid {
	margin-top: 2.5rem;
}

.charge-card {
	height: 100%;
	padding: 1.5rem;
	background: var(--color-bg);
	border: 1px solid var(--color-border-light);
	border-radius: 14px;
}

.charge-label {
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--color-bg-dark);
}

.charge-desc {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.5;
	color: var(--color-text-muted);
}

/* ---------- Pricing FAQ --------------------------------------------------- */
.pricing-faq {
	margin-top: 2rem;
	border-top: 1px solid var(--color-border-lighter);
}

.pricing-faq-item {
	border-bottom: 1px solid var(--color-border-lighter);
}

.pricing-faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 0;
	cursor: pointer;
	list-style: none;
}

.pricing-faq-item summary::-webkit-details-marker {
	display: none;
}

.pricing-faq-q {
	font-size: 1.02rem;
	font-weight: 600;
	color: var(--color-bg-dark);
}

.pricing-faq-icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	color: var(--color-text-muted-light);
	transition: transform 0.2s ease;
}

.pricing-faq-item[open] .pricing-faq-icon {
	transform: rotate(180deg);
}

.pricing-faq-a {
	margin: 0 0 1.25rem;
	max-width: 70ch;
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--color-text-muted);
}

.pricing-faq-item summary:focus-visible {
	outline: 2px solid var(--color-primary-light);
	outline-offset: 2px;
	border-radius: 6px;
}

/* ---------- Homepage pricing preview ------------------------------------- */
.price-preview {
	margin-top: 2.5rem;
}

.preview-card {
	height: 100%;
	padding: 1.75rem;
	background: var(--color-bg);
	border: 1px solid var(--color-border-light);
	border-radius: 16px;
	box-shadow: 0 4px 16px var(--color-shadow-lightest);
}

.preview-name {
	font-size: 1.15rem !important;
	font-weight: 700 !important;
	color: var(--color-bg-dark) !important;
	margin: 0 0 0.3rem !important;
}

.preview-audience {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	color: var(--color-text-muted);
}

.preview-price {
	margin: 0 0 0.25rem;
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.2;
	color: var(--color-primary);
}

.preview-period {
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--color-text-muted);
}

.preview-plus {
	margin: 0 0 0.75rem;
	font-size: 0.85rem;
	color: var(--color-text-muted-light);
}

.preview-basis {
	margin: 0;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-text-muted-light);
}

.preview-note {
	max-width: 760px;
	margin: 2rem auto 0;
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--color-text-muted-light);
	text-align: center;
}

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 991px) {
	.included-split {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.price-preview {
		margin-top: 1.5rem;
	}

	.plan-grid {
		margin-top: 1.5rem;
	}

	.plan-card {
		padding: 1.5rem;
	}

	.plan-amount {
		font-size: 1.75rem;
	}

	.plan-examples th {
		width: 50%;
	}

	.plan-foot .button {
		width: 100%;
	}

	.charge-grid {
		margin-top: 1.5rem;
	}
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {

	.plan-card,
	.pricing-faq-icon {
		transition: none !important;
	}

	.plan-card:hover {
		transform: none !important;
	}
}