/**
 * LocalNewsIn Hub Plans — Hub-matching card styles (lnhp- prefix).
 */

.lnhp-error {
	color: #b91c1c;
	font-size: 0.95rem;
	margin: 1rem 0;
}

.lnhp-plans {
	box-sizing: border-box;
	color: #0f172a;
	font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	margin: 0 auto;
	max-width: 72rem;
	padding: 0.5rem 0 2.5rem;
	width: 100%;
}

.lnhp-plans *,
.lnhp-plans *::before,
.lnhp-plans *::after {
	box-sizing: border-box;
}

.lnhp-plans__header {
	margin: 0 auto;
	max-width: 48rem;
	padding-top: 0.25rem;
	text-align: center;
}

.lnhp-plans__title {
	color: #0f172a;
	font-size: clamp(1.5rem, 2.5vw, 2.25rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.2;
	margin: 0;
}

.lnhp-plans__title-accent {
	color: #d0262b;
}

.lnhp-plans__grid {
	align-items: stretch;
	display: grid;
	gap: 1.25rem;
	grid-template-columns: 1fr;
	margin-top: 2rem;
	overflow: visible;
	padding-top: 1rem;
}

@media (min-width: 1024px) {
	.lnhp-plans__grid {
		gap: 1rem;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		margin-top: 2.5rem;
	}
}

@media (min-width: 1280px) {
	.lnhp-plans__grid {
		gap: 1.5rem;
	}
}

.lnhp-card-wrap {
	position: relative;
	height: 100%;
}

.lnhp-card__badge {
	background: #d0262b;
	border-radius: 9999px;
	box-shadow: 0 4px 6px -1px rgb(208 38 43 / 0.25);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	left: 50%;
	letter-spacing: 0.08em;
	line-height: 1;
	padding: 0.35rem 0.875rem;
	pointer-events: none;
	position: absolute;
	text-transform: uppercase;
	top: 0;
	transform: translate(-50%, -50%);
	white-space: nowrap;
	z-index: 2;
}

.lnhp-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 1rem;
	box-shadow: 0 1px 2px 0 rgb(15 23 42 / 0.05);
	display: flex;
	flex-direction: column;
	height: 100%;
	position: relative;
	transition: box-shadow 0.15s ease;
}

.lnhp-card:hover {
	box-shadow: 0 4px 12px -2px rgb(15 23 42 / 0.1);
}

.lnhp-card--gold {
	background: linear-gradient(to bottom, rgb(255 251 235 / 0.8), #fff);
	border-color: #fcd34d;
}

.lnhp-card--popular {
	border-color: #fcd34d;
	box-shadow: 0 4px 6px -1px rgb(15 23 42 / 0.08), 0 0 0 1px rgb(253 230 138 / 0.8);
}

.lnhp-card--silver,
.lnhp-card--platinum {
	background: #fff;
	border-color: #e2e8f0;
}

.lnhp-card__top {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1.75rem 1.25rem 0.25rem;
	text-align: center;
}

@media (min-width: 640px) {
	.lnhp-card__top {
		padding: 2rem 1.5rem 0.25rem;
	}
}

.lnhp-hex {
	align-items: center;
	clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
	display: flex;
	height: 4rem;
	justify-content: center;
	width: 4rem;
}

.lnhp-hex--silver {
	background: #f1f5f9;
	color: #64748b;
}

.lnhp-hex--gold {
	background: #fef3c7;
	color: #f59e0b;
}

.lnhp-hex--platinum {
	background: #ede9fe;
	color: #8b5cf6;
}

.lnhp-hex__icon {
	display: block;
	height: 1.5rem;
	width: 1.5rem;
}

.lnhp-card__name {
	color: #0f172a;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0.75rem 0 0;
}

@media (min-width: 640px) {
	.lnhp-card__name {
		font-size: 1.25rem;
	}
}

.lnhp-card__tagline {
	color: #475569;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.4;
	margin: 0.25rem 0 0;
}

@media (min-width: 640px) {
	.lnhp-card__tagline {
		font-size: 0.875rem;
	}
}

.lnhp-card__price {
	align-items: baseline;
	color: #0f172a;
	display: flex;
	gap: 0.25rem;
	justify-content: center;
	margin: 0.375rem 0 0;
}

.lnhp-card__amount {
	font-size: 1.875rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.1;
}

@media (min-width: 640px) {
	.lnhp-card__amount {
		font-size: 2.25rem;
	}
}

.lnhp-card__period {
	color: #64748b;
	font-size: 0.875rem;
	font-weight: 400;
}

@media (min-width: 640px) {
	.lnhp-card__period {
		font-size: 1rem;
	}
}

.lnhp-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 0.25rem 1.25rem 1.25rem;
}

@media (min-width: 640px) {
	.lnhp-card__body {
		padding: 0.25rem 1.5rem 1.5rem;
	}
}

.lnhp-card__features {
	flex: 1 1 auto;
}

.lnhp-card__includes {
	color: #64748b;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	margin: 0 0 0.5rem;
	text-transform: uppercase;
}

.lnhp-feature {
	border-bottom: 1px solid #f1f5f9;
	display: flex;
	gap: 0.75rem;
	padding: 0.625rem 0;
}

.lnhp-feature--last {
	border-bottom: 0;
}

.lnhp-feature__icon {
	align-items: center;
	border-radius: 0.5rem;
	display: flex;
	flex-shrink: 0;
	height: 2.25rem;
	justify-content: center;
	width: 2.25rem;
}

.lnhp-feature__icon--silver {
	background: #eff6ff;
	color: #2563eb;
}

.lnhp-feature__icon--gold {
	background: #fffbeb;
	color: #d97706;
}

.lnhp-feature__icon--platinum {
	background: #f5f3ff;
	color: #7c3aed;
}

.lnhp-feature__svg {
	display: block;
	height: 1rem;
	width: 1rem;
}

.lnhp-feature__text {
	min-width: 0;
}

.lnhp-feature__title {
	color: #0f172a;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25;
	margin: 0;
}

.lnhp-card__best-for {
	color: #64748b;
	font-size: 0.75rem;
	line-height: 1.4;
	margin: 0.75rem 0 0;
}

.lnhp-card__cta {
	background: #2563eb;
	border-radius: 0.75rem;
	box-shadow: 0 1px 2px 0 rgb(37 99 235 / 0.25);
	color: #fff !important;
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	text-align: center;
	text-decoration: none !important;
	transition: background 0.15s ease;
	width: 100%;
}

.lnhp-card__cta:hover,
.lnhp-card__cta:focus {
	background: #1d4ed8;
	color: #fff !important;
	text-decoration: none !important;
}

@media (min-width: 640px) {
	.lnhp-card__cta {
		margin-top: 1.25rem;
		padding: 0.875rem 1rem;
	}
}

.lnhp-plans--iframe {
	padding: 0;
}

.lnhp-iframe {
	border: 0;
	border-radius: 12px;
	display: block;
	max-width: 100%;
	width: 100%;
}
