/*
 * Full-bleed via the shared ".full-bleed" utility (theme's root style.css)
 * on the render.php wrapper — see blocks/hero-panels/style.css for the full
 * rationale.
 *
 * No "overflow: hidden" here (unlike solea-faq-banner/solea-page-banner,
 * which clip the same dotted ::before pattern): those blocks are naturally
 * full-width direct children of .wp-site-blocks, whereas this one reaches
 * full-bleed via .full-bleed's negative margins. Pairing overflow:hidden with
 * that escape on the same element made the browser treat it as its own
 * (phantom, sub-pixel) scroll container, which swallowed wheel/keyboard
 * scroll input for the whole page instead of letting it bubble to the
 * document. The ::before pattern already fades out via its own
 * radial-gradient mask, so nothing actually needs clipping.
 */
.solea-pricing-tabs {
	margin: 0;
	position: relative;
	box-sizing: border-box;
	background: var(--wp--preset--color--brand-accent);
	color: var(--wp--preset--color--base);
	padding: clamp(48px, 6vw, 88px) clamp(20px, 4vw, 56px);
}

.solea-pricing-tabs::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 480px;
	height: 320px;
	color: #fff;
	opacity: 0.18;
	background-image: radial-gradient(currentColor 1.8px, transparent 1.9px);
	background-size: 13px 13px;
	-webkit-mask-image: radial-gradient(circle at 100% 0%, #000, transparent 70%);
	mask-image: radial-gradient(circle at 100% 0%, #000, transparent 70%);
	pointer-events: none;
}

/*
 * Top/bottom hairline rules, same gradient construct as .solea-quick-links
 * (assets/css/homepage.css): edge-to-edge top rule, inset bottom rule.
 * Collapsed onto ::after (rather than split across ::before/::after like
 * quick-links) because ::before is already the dotted background pattern above.
 */
.solea-pricing-tabs::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(122, 59, 234, 0) 0%, var(--wp--preset--color--brand-purple-light) 35%, var(--wp--preset--color--brand-accent-light) 65%, rgba(196, 169, 255, 0) 100%) top left / 100% 1px no-repeat,
		linear-gradient(90deg, rgba(122, 59, 234, 0) 0%, var(--wp--preset--color--brand-purple-light) 35%, var(--wp--preset--color--brand-accent-light) 65%, rgba(196, 169, 255, 0) 100%) bottom center / calc(100% - 96px) 1px no-repeat;
	pointer-events: none;
}

.solea-pricing-tabs__intro {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
}

.solea-pricing-tabs__heading-group {
	max-width: 640px;
}

.solea-pricing-tabs__eyebrow {
	margin: 0 0 8px;
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
}

.solea-pricing-tabs__heading {
	position: relative;
	display: inline-block;
	margin: 0 0 16px;
	padding-bottom: 12px;
	font-size: var(--wp--preset--font-size--h-2);
	font-weight: 800;
	line-height: 1.1;
	color: var(--wp--preset--color--base);
	text-transform: none;
}

.solea-pricing-tabs__heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: min(160px, 60%);
	height: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.5);
}

.solea-pricing-tabs__subtext {
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
}

.solea-pricing-tabs__tablist {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.25);
}

.solea-pricing-tabs__tab {
	border: none;
	background: transparent;
	padding: 12px 22px;
	border-radius: 999px;
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.solea-pricing-tabs__tab.is-active {
	background: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--brand-purple-dark);
}

.solea-pricing-tabs__panel {
	position: relative;
	display: none;
}

.solea-pricing-tabs__panel.is-active {
	display: block;
}

.solea-pricing-tabs__tab:hover {
	background: rgba(255, 255, 255, 0.2);
}

.solea-pricing-tabs__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	align-items: stretch;
}

.solea-pricing-tabs__plan {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 28px 24px;
	border-radius: 20px;
	background: var(--wp--preset--color--brand-canvas);
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.solea-pricing-tabs__plan:hover {
	transform: translateY(-6px);
	border-color: rgba(255, 255, 255, 0.2);
	box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.55);
}

.solea-pricing-tabs__plan.is-highlighted {
	z-index: 1;
	padding-top: 44px;
	padding-bottom: 44px;
	border-color: rgba(255, 255, 255, 0.9);
	box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.5);
	border: 2px solid var(--wp--preset--color--brand-purple-light);
}

.solea-pricing-tabs__plan.is-highlighted:hover {
	box-shadow: 0 28px 56px -18px rgba(0, 0, 0, 0.6);
}

.solea-pricing-tabs__badge {
	position: absolute;
	top: -16px;
	left: 24px;
	padding: 6px 16px;
	border-radius: 999px;
	background: var(--wp--preset--color--brand-purple-light);
	color: white;
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.solea-pricing-tabs__plan-title {
	margin: 0 0 12px;
	color: var(--wp--preset--color--base);
	font-weight: 600;
}

.solea-pricing-tabs__plan-price {
	margin: 0 0 12px;
	font-size: 2rem;
	font-weight: 800;
	color: var(--wp--preset--color--base);
}

.solea-pricing-tabs__plan-price-suffix {
	font-size: 0.875rem;
	font-weight: 400;
	color: var(--wp--preset--color--brand-muted);
}

.solea-pricing-tabs__plan-description {
	margin: 0 0 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	color: var(--wp--preset--color--brand-muted);
	font-size: 0.9375rem;
}

.solea-pricing-tabs__plan-features {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.solea-pricing-tabs__plan-features li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.85);
}

.solea-pricing-tabs__plan-check {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: var(--wp--preset--color--base);
}

.solea-pricing-tabs__footnote {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 32px;
}

.solea-pricing-tabs__footnote p {
	margin: 0;
	max-width: 640px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.9375rem;
}

.solea-pricing-tabs__footnote-link {
	flex: none;
	padding: 12px 22px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--brand-purple-dark);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.solea-pricing-tabs__footnote-link:hover,
.solea-pricing-tabs__footnote-link:focus-visible {
	/*
	 * Pins color to the same value as the base rule above: without this,
	 * theme.json's global `:hover` link color (styles.elements.link, a plain
	 * `a:hover` rule with no more specificity than this class alone) was
	 * winning on source order and tinting the text on hover.
	 */
	color: var(--wp--preset--color--brand-purple-dark);
	transform: translateY(-2px);
	box-shadow: 0 12px 24px -14px rgba(57, 18, 102, 0.35);
}

/* Inspector: repeater rows (profiles + plans) */
.solea-pricing-tabs-repeater-row {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 0;
	border-top: 1px solid #e0e0e0;
}

.solea-pricing-tabs-repeater-row:first-child {
	padding-top: 0;
	border-top: none;
}

.solea-pricing-tabs-repeater-row__heading {
	margin: 0;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #757575;
}

.solea-pricing-tabs-repeater-row--profile {
	gap: 16px;
	padding: 20px 0;
}

.solea-pricing-tabs-repeater-row__plans {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-left: 16px;
	border-left: 3px solid #e0e0e0;
}

.solea-pricing-tabs-repeater-row--nested {
	padding: 12px;
	border-top: none;
	background: #f6f6f6;
	border-radius: 4px;
}

.solea-pricing-tabs-repeater-row__reorder {
	display: flex;
	gap: 4px;
}

/* Inspector: champ WYSIWYG (mini barre d'outils + RichText), partagé entre
   blocs via window.SoleaRichTextField (assets/js/richtext-toolbar.js) */
.solea-richtext-field {
	margin-bottom: 12px;
}

.solea-richtext-field__label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.6875rem;
	font-weight: 500;
	text-transform: uppercase;
}

.solea-richtext-field__toolbar {
	display: flex;
	gap: 2px;
	margin-bottom: 4px;
}

.solea-richtext-field__input {
	margin: 0;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 2px;
	min-height: 60px;
}

.solea-pricing-tabs-link-picker__label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.6875rem;
	font-weight: 500;
	text-transform: uppercase;
}

.solea-pricing-tabs-link-picker__button {
	width: 100%;
	justify-content: flex-start;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 960px) {
	.solea-pricing-tabs__grid {
		grid-template-columns: 1fr;
	}

	.solea-pricing-tabs__plan.is-highlighted {
		margin-top: 0;
	}
}

@media (max-width: 768px) {
	.solea-pricing-tabs__tablist {
		display: flex;
		flex-direction: column;
		width: 100%;
		border-radius: 16px;
	}

	.solea-pricing-tabs__tab {
		width: 100%;
		border-radius: 8px;
	}
}
