/**
 * Happy FAQs → Analytics: Pro preview.
 *
 * @since 3.0.0
 */

.ffw-ant {
	--ffw-ant-ink: #18181b;
	--ffw-ant-muted: #5f5f6b;
	--ffw-ant-line: #e8e8ef;
	--ffw-ant-tint: #f4f4f8;
	--ffw-ant-accent: #4f46e5;
	--ffw-ant-accent-soft: #eef0ff;
	box-sizing: border-box;
	max-width: 1360px;
	margin: 20px auto 40px;
	padding: 0 20px;
	color: var(--ffw-ant-ink);
	font-size: 14px;
}

.ffw-ant *,
.ffw-ant *::before,
.ffw-ant *::after {
	box-sizing: border-box;
}

/* Pro section */
.ffw-ant-pro {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 28px;
	align-items: center;
	margin-bottom: 24px;
	padding: 32px 36px;
	border: 1px solid var(--ffw-ant-line);
	border-radius: 20px;
	background:
		radial-gradient(520px 220px at 100% 0%, rgba(79, 70, 229, 0.09), transparent 70%),
		radial-gradient(420px 200px at 0% 100%, rgba(14, 165, 233, 0.07), transparent 70%),
		#ffffff;
}

.ffw-ant-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 12px;
	padding: 4px 12px 4px 8px;
	border-radius: 999px;
	background: #fff4e5;
	color: #b45309;
	font-size: 12px;
	font-weight: 600;
}

.ffw-ant-badge .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
}

.ffw-ant .ffw-ant-pro h2 {
	margin: 0 0 10px;
	padding: 0;
	color: var(--ffw-ant-ink);
	font-size: 26px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.ffw-ant-lead {
	margin: 0 0 22px;
	color: var(--ffw-ant-muted);
	font-size: 15px;
	line-height: 1.6;
}

.ffw-ant-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.ffw-ant-btn {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 10px 22px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.ffw-ant-btn-primary {
	background: var(--ffw-ant-ink);
	color: #ffffff;
}

.ffw-ant-btn-primary:hover,
.ffw-ant-btn-primary:focus {
	background: #3f3f46;
	color: #ffffff;
}

.ffw-ant-btn:focus-visible {
	outline: 2px solid var(--ffw-ant-accent);
	outline-offset: 2px;
	box-shadow: none;
}

.ffw-ant-note {
	color: var(--ffw-ant-muted);
	font-size: 12.5px;
}

.ffw-ant-benefits {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ffw-ant-benefits li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 16px;
	border: 1px solid var(--ffw-ant-line);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.8);
}

.ffw-ant-benefits .dashicons {
	width: 32px;
	height: 32px;
	margin-bottom: 4px;
	padding: 6px;
	border-radius: 9px;
	background: var(--ffw-ant-accent-soft);
	color: var(--ffw-ant-accent);
	font-size: 20px;
}

.ffw-ant-benefits strong {
	font-size: 13.5px;
	font-weight: 600;
}

.ffw-ant-benefits li > span:last-child {
	color: var(--ffw-ant-muted);
	font-size: 12.5px;
	line-height: 1.5;
}

/* Blurred sample dashboard */
.ffw-ant-preview {
	position: relative;
	filter: blur(2.5px);
	opacity: 0.85;
	pointer-events: none;
	user-select: none;
	-webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

.ffw-ant-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 18px;
}

.ffw-ant-eyebrow {
	margin: 0 0 4px;
	color: var(--ffw-ant-accent);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ffw-ant-title {
	margin: 0;
	font-size: 22px;
	font-weight: 600;
}

.ffw-ant-range {
	display: flex;
	gap: 4px;
	padding: 4px;
	border: 1px solid var(--ffw-ant-line);
	border-radius: 999px;
	background: #ffffff;
}

.ffw-ant-range span {
	padding: 6px 12px;
	border-radius: 999px;
	color: var(--ffw-ant-muted);
	font-size: 12.5px;
}

.ffw-ant-range .is-active {
	background: var(--ffw-ant-ink);
	color: #ffffff;
}

.ffw-ant-card {
	padding: 18px 20px;
	border: 1px solid var(--ffw-ant-line);
	border-radius: 16px;
	background: #ffffff;
}

.ffw-ant-kpis {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 18px;
}

.ffw-ant-kpi-label,
.ffw-ant-card-title {
	margin: 0 0 8px;
	color: var(--ffw-ant-muted);
	font-size: 13px;
	font-weight: 500;
}

.ffw-ant-card-title {
	color: var(--ffw-ant-ink);
	font-size: 14px;
	font-weight: 600;
}

.ffw-ant-kpi-value {
	margin: 0;
	font-size: 26px;
	font-weight: 600;
}

.ffw-ant-delta {
	padding: 2px 8px;
	border-radius: 999px;
	background: #e9f8f1;
	color: #047857;
	font-size: 12px;
	vertical-align: middle;
}

.ffw-ant-chart {
	margin-bottom: 18px;
}

.ffw-ant-chart svg {
	display: block;
	width: 100%;
	height: 180px;
}

.ffw-ant-grid {
	stroke: var(--ffw-ant-line);
	vector-effect: non-scaling-stroke;
}

.ffw-ant-area {
	fill: rgba(79, 70, 229, 0.12);
}

.ffw-ant-line {
	fill: none;
	stroke: var(--ffw-ant-accent);
	stroke-width: 2;
	vector-effect: non-scaling-stroke;
}

.ffw-ant-line.is-searches {
	stroke: #0ea5e9;
	stroke-dasharray: 4 4;
}

.ffw-ant-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.ffw-ant-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 0 0;
}

.ffw-ant-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	font-weight: 500;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ffw-ant-pill {
	padding: 2px 8px;
	border-radius: 999px;
	background: #e9f8f1;
	color: #047857;
	font-size: 11.5px;
	font-weight: 600;
}

.ffw-ant-pill.is-outline {
	border: 1px solid var(--ffw-ant-line);
	background: #ffffff;
	color: var(--ffw-ant-ink);
}

.ffw-ant-bar {
	display: block;
	height: 4px;
	margin: 8px 0 2px;
	border-radius: 999px;
	background: var(--ffw-ant-tint);
}

.ffw-ant-bar i {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--ffw-ant-accent);
	opacity: 0.75;
}

@media (max-width: 1100px) {
	.ffw-ant-pro {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 782px) {
	.ffw-ant {
		padding: 0 10px 0 0;
	}

	.ffw-ant-pro {
		padding: 24px 20px;
	}

	.ffw-ant-benefits,
	.ffw-ant-kpis,
	.ffw-ant-grid-2 {
		grid-template-columns: minmax(0, 1fr);
	}
}
