/**
 * YFJ Pricing plans — responsive comparison cards.
 */

.yfj-pricing {
	max-width: 1180px;
	margin: 0 auto;
	padding: clamp(24px, 5vw, 56px) 20px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.yfj-pricing-head {
	text-align: center;
	max-width: 720px;
	margin: 0 auto clamp(32px, 5vw, 52px);
}

.yfj-pricing-head .yfj-lede {
	margin-bottom: 0;
}

/* ── Grid ───────────────────────────────────────────────────────────────── */

.yfj-pricing-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(16px, 2.4vw, 26px);
	align-items: start;
}

.yfj-pricing-grid[data-count="1"] { grid-template-columns: minmax(0, 380px); justify-content: center; }
.yfj-pricing-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }

/* ── Plan card ──────────────────────────────────────────────────────────── */

.yfj-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--yfj-surface);
	border: 1px solid var(--yfj-line);
	border-radius: var(--yfj-radius-lg);
	padding: clamp(24px, 3vw, 32px);
	box-shadow: var(--yfj-shadow);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
	height: 100%;
}

.yfj-plan:hover {
	transform: translateY(-3px);
	box-shadow: var(--yfj-shadow-md);
	border-color: #CBD5E1;
}

/* Featured */
.yfj-plan-featured {
	border: 2px solid var(--yfj-orange);
	box-shadow: 0 8px 28px rgba(232, 82, 26, .13);
}

.yfj-plan-featured:hover {
	border-color: var(--yfj-orange);
	box-shadow: 0 12px 34px rgba(232, 82, 26, .18);
}

.yfj-plan-flag {
	position: absolute;
	top: -13px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--yfj-orange);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .9px;
	text-transform: uppercase;
	padding: 6px 18px;
	border-radius: 100px;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(232, 82, 26, .3);
}

/* ── Card head ──────────────────────────────────────────────────────────── */

.yfj-plan-head {
	padding-bottom: var(--yfj-gap);
	border-bottom: 1px solid var(--yfj-line-soft);
	margin-bottom: var(--yfj-gap);
}

.yfj-plan-name {
	font-size: 21px;
	font-weight: 700;
	color: var(--yfj-navy);
	margin: 0 0 4px;
	line-height: 1.3;
}

.yfj-plan-tagline {
	font-size: 13.5px;
	color: var(--yfj-orange);
	font-weight: 600;
	margin: 0 0 18px;
}

.yfj-plan-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.yfj-plan-amount {
	font-size: clamp(34px, 4vw, 42px);
	font-weight: 800;
	color: var(--yfj-navy);
	line-height: 1;
	letter-spacing: -1px;
}

.yfj-plan-period {
	font-size: 14px;
	color: var(--yfj-muted);
	font-weight: 500;
}

.yfj-plan-blurb {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--yfj-muted);
	margin: 0;
}

/* ── CTA ────────────────────────────────────────────────────────────────── */

.yfj-plan-cta {
	margin-bottom: var(--yfj-gap);
}

.yfj-plan-cta .yfj-hint {
	margin-top: 9px;
	text-align: center;
	font-size: 12.5px;
}

/* ── Features ───────────────────────────────────────────────────────────── */

.yfj-plan-features {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
}

.yfj-plan-features li {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	padding: 9px 0;
	font-size: 14px;
	line-height: 1.55;
	border-bottom: 1px solid var(--yfj-line-soft);
}

.yfj-plan-features li:last-child { border-bottom: none; }

.yfj-tick {
	flex-shrink: 0;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	margin-top: 1px;
}

.yfj-plan-features .yfj-has {
	color: var(--yfj-body);
}

.yfj-plan-features .yfj-has .yfj-tick {
	background: #D1FAE5;
	color: #065F46;
}

.yfj-plan-features .yfj-not {
	color: #94A3B8;
}

.yfj-plan-features .yfj-not .yfj-tick {
	background: #F1F5F9;
	color: #94A3B8;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.yfj-pricing-foot {
	text-align: center;
	font-size: 14.5px;
	color: var(--yfj-muted);
	margin: clamp(28px, 4vw, 44px) 0 0;
}

.yfj-pricing-foot a {
	color: var(--yfj-orange);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(232, 82, 26, .35);
}

.yfj-pricing-foot a:hover {
	border-bottom-color: var(--yfj-orange);
}

/* ── Tablet ─────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
	.yfj-pricing-grid,
	.yfj-pricing-grid[data-count="2"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Third card spans full width and centres */
	.yfj-pricing-grid[data-count="3"] > .yfj-plan:nth-child(3) {
		grid-column: 1 / -1;
		max-width: 460px;
		margin: 0 auto;
		width: 100%;
	}
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */

@media (max-width: 720px) {
	.yfj-pricing-grid,
	.yfj-pricing-grid[data-count="2"],
	.yfj-pricing-grid[data-count="3"] {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}

	.yfj-pricing-grid[data-count="3"] > .yfj-plan:nth-child(3) {
		grid-column: auto;
		max-width: none;
	}

	.yfj-plan-featured {
		order: -1; /* Surface the recommended plan first on mobile */
		margin-top: 14px;
	}

	.yfj-plan:hover {
		transform: none;
	}
}
