/**
 * Variant CSS: offer--bordered-feature-panel
 * Layer 2 — Path B universal offer variant (authored 2026-06-10).
 *
 * Concept: ONE flagship service enclosed in a clearly FRAMED, centred panel with
 * decorative corner ticks (a "brackets" frame). Inside, a single centred column:
 * kicker, a strong title, a description, an inline price ribbon (label + amount on
 * a faded accent pill) and one primary CTA. Light surface, all type centred.
 * Built for Element Count: 1 (the rebuild keeps exactly one service).
 *
 * Differentiator vs sibling EC=1 offer variants:
 *   - solo-feature-statement: a top-rule card GRID cell, icon + text-link, no price, no frame.
 *   - signature-spotlight-poster: a DARK poster with a ghost numeral + spec strip.
 *   - single-split-panel: a two-column split, text vs an accent colour panel.
 *   THIS one: a LIGHT centred panel inside a heavy border with corner ticks + price.
 *
 * Colour intent: light --background-card panel; text uses the --ink family. The
 * price pill is --accent-fade with --accent text (a light tint, clears AA). Corner
 * ticks are drawn as absolutely-positioned spans (NOT centred flow children, so the
 * A8/A9 left-shift rule never applies to them). Not a self-dark band.
 *
 * area-1-* tokens: title, desc, price. Section: kicker, cta.
 */

/* == Section shell == */
body.aibt-universal .universal-offer--bordered-feature-panel {
	padding-block: calc(clamp(var(--space-xl), 8vw, var(--space-3xl)) * var(--density, 1));
}

/* == Framed panel == */
/* The constrained panel centres itself (margin-inline:auto, injected by the WP
   constrained layout + reinforced here). Heavy double-weight border + a soft
   surface make the "frame". Corner ticks are pinned to the panel via the relative
   positioning context here. */
body.aibt-universal .universal-offer--bordered-feature-panel .universal-offer__panel {
	position: relative;
	margin-inline: auto;
	background: var(--background-card);
	border: var(--decor-border-width, 1px) solid var(--divider-primary);
	border-radius: var(--decor-radius);
	padding: clamp(var(--space-lg), 6vw, var(--space-2xl)) clamp(var(--space-md), 5vw, var(--space-2xl));
	box-shadow: var(--decor-shadow);
}

/* Inner accent rule frame — a second, inset hairline in the accent hue gives the
   "bracketed" look without a second wrapper element (drawn via a pseudo-border). */
body.aibt-universal .universal-offer--bordered-feature-panel .universal-offer__panel::before {
	content: "";
	position: absolute;
	inset: clamp(0.6rem, 1.4vw, 1rem);
	border: 1px solid var(--divider-accent, color-mix(in srgb, var(--accent) 30%, transparent));
	border-radius: calc(var(--decor-radius) - 2px);
	pointer-events: none;
}

/* Decorative corner ticks (top-left + bottom-right) — accent L-shapes that sit on
   top of the frame for an editorial "registration mark" feel. Absolutely placed,
   so they are NOT centred flow children (A8/A9 not applicable). */
body.aibt-universal .universal-offer--bordered-feature-panel .universal-offer__corner {
	position: absolute;
	width: clamp(1.5rem, 3vw, 2.25rem);
	height: clamp(1.5rem, 3vw, 2.25rem);
	z-index: 1;
	pointer-events: none;
}

body.aibt-universal .universal-offer--bordered-feature-panel .universal-offer__corner--tl {
	top: clamp(0.6rem, 1.4vw, 1rem);
	left: clamp(0.6rem, 1.4vw, 1rem);
	border-top: 2px solid var(--accent);
	border-left: 2px solid var(--accent);
}

body.aibt-universal .universal-offer--bordered-feature-panel .universal-offer__corner--br {
	bottom: clamp(0.6rem, 1.4vw, 1rem);
	right: clamp(0.6rem, 1.4vw, 1rem);
	border-bottom: 2px solid var(--accent);
	border-right: 2px solid var(--accent);
}

/* == Content == */
/* Centred kicker — margin-inline:auto so a centred direct child of the constrained
   panel never sticks to the left edge (CLAUDE.md A8/A9). */
body.aibt-universal .universal-offer--bordered-feature-panel .universal-offer__kicker {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: var(--tracking-widest);
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 auto var(--space-md) auto;
}

body.aibt-universal .universal-offer--bordered-feature-panel .universal-offer__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.9rem, 4.2vw, 3.2rem);
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--ink);
	margin: 0 auto var(--space-md) auto;
	max-width: 20ch;
}

body.aibt-universal .universal-offer--bordered-feature-panel .universal-offer__title em {
	font-style: italic;
	color: var(--italic-color, var(--accent));
	font-weight: var(--italic-weight, 600);
}

body.aibt-universal .universal-offer--bordered-feature-panel .universal-offer__desc {
	font-family: var(--font-body);
	font-size: var(--text-lg);
	line-height: var(--leading-relaxed);
	color: var(--ink-soft, var(--ink));
	margin: 0 auto var(--space-lg) auto;
	max-width: 52ch;
}

/* == Price ribbon == */
/* A faded-accent pill carrying the label + price, centred. */
body.aibt-universal .universal-offer--bordered-feature-panel .universal-offer__price-ribbon {
	gap: var(--space-sm) !important;
	width: fit-content;
	margin: 0 auto var(--space-lg) auto;
	padding: var(--space-2xs) var(--space-md);
	background: var(--accent-fade, color-mix(in srgb, var(--accent) 10%, transparent));
	border: 1px solid var(--divider-accent, color-mix(in srgb, var(--accent) 30%, transparent));
	border-radius: var(--decor-radius-pill, 999px);
}

body.aibt-universal .universal-offer--bordered-feature-panel .universal-offer__price-label {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--ink-soft, var(--ink));
	margin: 0;
}

body.aibt-universal .universal-offer--bordered-feature-panel .universal-offer__price {
	font-family: var(--font-display);
	font-size: clamp(1.3rem, 2.4vw, 1.7rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.01em;
	color: var(--accent);
	margin: 0;
}

/* == CTA == */
/* The buttons wrap is centred by WP flex layout; keep it from collapsing left. */
body.aibt-universal .universal-offer--bordered-feature-panel .universal-offer__cta-wrap {
	margin-inline: auto;
}

body.aibt-universal .universal-offer--bordered-feature-panel .universal-offer__cta .wp-block-button__link {
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: 600;
	letter-spacing: var(--tracking-wide);
	color: var(--cta-text-primary, #ffffff);
	background: var(--cta-bg-primary, var(--accent));
	padding: 0.95rem 2.2rem;
	border: 1px solid transparent;
	border-radius: var(--decor-radius);
	transition:
		background-color var(--duration-fast) var(--ease-default),
		transform var(--duration-fast) var(--ease-default);
}

body.aibt-universal .universal-offer--bordered-feature-panel .universal-offer__cta .wp-block-button__link:hover {
	background: var(--accent-hover, var(--accent));
	transform: translateY(-2px);
}

body.aibt-universal .universal-offer--bordered-feature-panel .universal-offer__cta .wp-block-button__link:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* == Responsive == */
/* Desktop (≥960): give the panel a touch more inner breathing room. */
@media (min-width: 960px) {
	body.aibt-universal .universal-offer--bordered-feature-panel .universal-offer__panel {
		padding: clamp(var(--space-xl), 5vw, var(--space-2xl)) clamp(var(--space-lg), 5vw, var(--space-2xl));
	}
}

/* Tablet (641-959): no structural change; tighten the title scale slightly. */
@media (min-width: 641px) and (max-width: 959px) {
	body.aibt-universal .universal-offer--bordered-feature-panel .universal-offer__title {
		font-size: clamp(1.9rem, 3.6vw, 2.6rem);
	}
}

/* Mobile (≤640): pull the corner ticks + inner frame inward, drop uppercase
   tracking (A5), let the price ribbon + CTA breathe; keep everything centred. */
@media (max-width: 640px) {
	body.aibt-universal .universal-offer--bordered-feature-panel .universal-offer__panel::before {
		inset: 0.5rem;
	}
	body.aibt-universal .universal-offer--bordered-feature-panel .universal-offer__corner--tl {
		top: 0.5rem;
		left: 0.5rem;
	}
	body.aibt-universal .universal-offer--bordered-feature-panel .universal-offer__corner--br {
		bottom: 0.5rem;
		right: 0.5rem;
	}
	body.aibt-universal .universal-offer--bordered-feature-panel .universal-offer__kicker,
	body.aibt-universal .universal-offer--bordered-feature-panel .universal-offer__price-label {
		letter-spacing: 0;
	}
	/* Let a long label + price stack inside the pill rather than overflow. */
	body.aibt-universal .universal-offer--bordered-feature-panel .universal-offer__price-ribbon {
		flex-wrap: wrap !important;
		justify-content: center !important;
		row-gap: var(--space-3xs) !important;
	}
}

/* == Motion respect == */
@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-offer--bordered-feature-panel .universal-offer__cta .wp-block-button__link {
		transition: none;
	}
	body.aibt-universal .universal-offer--bordered-feature-panel .universal-offer__cta .wp-block-button__link:hover {
		transform: none;
	}
}
