/**
 * Nexora — component styles.
 *
 * Every colour, radius, shadow, font size and space below is read from a
 * theme.json token. Tints and translucency are derived with color-mix() from
 * those same tokens, so there is no literal colour value anywhere in this file.
 *
 * Contents
 *   1. Shared primitives (shell, section, eyebrow, lede, microcopy)
 *   2. Buttons
 *   3. Header + navigation
 *   4. Hero
 *   5. Product preview (static illustration)
 *   6. Trust row
 *   7. Feature grid
 *   8. Call to action
 *   9. Footer
 *  10. Blog / prose
 *  11. Reduced motion
 *
 * @package Nexora
 */

/* ========================================================================== *
 * 1. Shared primitives
 * ========================================================================== */

/*
 * .nexora-shell is the single gutter authority. Pair it with a constrained
 * layout group and the children cap out at the layout's contentSize inside a
 * consistently padded box at every breakpoint.
 */
.nexora-shell {
	padding-inline: var( --wp--custom--gutter );
}

.nexora-section {
	position: relative;
}

.nexora-section--surface {
	background-color: var( --wp--preset--color--surface );
	border-block: 1px solid var( --wp--preset--color--border );
}

/* Centred section header. */
.nexora-section__head {
	max-width: 44rem;
	margin-inline: auto;
	text-align: center;
}

.nexora-section__head .nexora-lede {
	margin-inline: auto;
}

/* Pill-shaped eyebrow label with a live accent dot. */
.nexora-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0.375rem 0.8125rem 0.375rem 0.6875rem;
	border: 1px solid var( --wp--preset--color--border );
	border-radius: var( --wp--custom--radius--pill );
	background-color: var( --wp--preset--color--base );
	box-shadow: var( --wp--preset--shadow--subtle );
	color: var( --wp--preset--color--muted );
	font-size: var( --wp--preset--font-size--x-small );
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
}

.nexora-eyebrow::before {
	content: "";
	flex: none;
	width: 0.5rem;
	aspect-ratio: 1;
	border-radius: 50%;
	background-color: var( --wp--preset--color--accent );
	box-shadow: 0 0 0 3px color-mix( in srgb, var( --wp--preset--color--accent ) 16%, transparent );
}

.nexora-lede {
	max-width: 42rem;
	color: var( --wp--preset--color--muted );
	font-size: var( --wp--preset--font-size--large );
	line-height: 1.6;
}

.nexora-microcopy {
	color: var( --wp--preset--color--muted );
	line-height: 1.5;
}

/* ========================================================================== *
 * 2. Buttons
 *
 * The default (primary) button lives in theme.json. These are the registered
 * variants; class selectors here comfortably out-specify the global styles.
 * ========================================================================== */

.wp-block-button .wp-block-button__link {
	transition:
		background-color var( --wp--custom--motion--duration ) var( --wp--custom--motion--ease ),
		border-color var( --wp--custom--motion--duration ) var( --wp--custom--motion--ease ),
		box-shadow var( --wp--custom--motion--duration ) var( --wp--custom--motion--ease ),
		transform var( --wp--custom--motion--duration ) var( --wp--custom--motion--ease ),
		color var( --wp--custom--motion--duration ) var( --wp--custom--motion--ease );
	will-change: transform;
}

.wp-block-button .wp-block-button__link:hover {
	transform: translateY( -1px );
}

.wp-block-button .wp-block-button__link:active {
	transform: translateY( 0 );
}

/* Larger hero / CTA scale. */
.wp-block-button.nexora-button--lg > .wp-block-button__link {
	padding: 0.875rem 1.375rem;
	font-size: var( --wp--preset--font-size--medium );
	border-radius: var( --wp--custom--radius--sm );
}

/* Secondary — light surface with a hairline border. */
.wp-block-button.is-style-nexora-secondary > .wp-block-button__link {
	background-color: var( --wp--preset--color--base );
	border-color: var( --wp--preset--color--border );
	color: var( --wp--preset--color--contrast );
	box-shadow: var( --wp--preset--shadow--subtle );
}

.wp-block-button.is-style-nexora-secondary > .wp-block-button__link:hover,
.wp-block-button.is-style-nexora-secondary > .wp-block-button__link:focus {
	background-color: var( --wp--preset--color--base );
	border-color: color-mix( in srgb, var( --wp--preset--color--accent ) 40%, var( --wp--preset--color--border ) );
	color: var( --wp--preset--color--accent );
	box-shadow: var( --wp--preset--shadow--card );
}

/* Ghost — chrome-free, used for the header's "Sign in". */
.wp-block-button.is-style-nexora-ghost > .wp-block-button__link {
	background-color: transparent;
	border-color: transparent;
	color: var( --wp--preset--color--muted );
	box-shadow: none;
}

.wp-block-button.is-style-nexora-ghost > .wp-block-button__link:hover,
.wp-block-button.is-style-nexora-ghost > .wp-block-button__link:focus {
	background-color: color-mix( in srgb, var( --wp--preset--color--surface-strong ) 80%, transparent );
	border-color: transparent;
	color: var( --wp--preset--color--contrast );
	box-shadow: none;
	transform: none;
}

/* Invert — for use on the dark CTA panel. */
.wp-block-button.is-style-nexora-invert > .wp-block-button__link {
	background-color: var( --wp--preset--color--base );
	border-color: var( --wp--preset--color--base );
	color: var( --wp--preset--color--contrast );
	box-shadow: var( --wp--preset--shadow--lifted );
}

.wp-block-button.is-style-nexora-invert > .wp-block-button__link:hover,
.wp-block-button.is-style-nexora-invert > .wp-block-button__link:focus {
	background-color: var( --wp--preset--color--base );
	border-color: var( --wp--preset--color--base );
	color: var( --wp--preset--color--accent );
	box-shadow: var( --wp--preset--shadow--float );
}

/* Ghost invert — the secondary action alongside .is-style-nexora-invert on a
   dark CTA panel (e.g. "Contact Sales" next to "Start Free Trial"). */
.wp-block-button.is-style-nexora-ghost-invert > .wp-block-button__link {
	background-color: transparent;
	border-color: color-mix( in srgb, var( --wp--preset--color--base ) 30%, transparent );
	color: var( --wp--preset--color--base );
	box-shadow: none;
}

.wp-block-button.is-style-nexora-ghost-invert > .wp-block-button__link:hover,
.wp-block-button.is-style-nexora-ghost-invert > .wp-block-button__link:focus {
	background-color: color-mix( in srgb, var( --wp--preset--color--base ) 12%, transparent );
	border-color: color-mix( in srgb, var( --wp--preset--color--base ) 55%, transparent );
	color: var( --wp--preset--color--base );
	box-shadow: none;
}

/*
 * Status/priority badges — output by nexora_status_badge()/nexora_priority_badge()
 * (inc/support-dashboard.php). Kept here (always loaded) rather than in
 * support-dashboard.css, since the customer-facing /account/ page also uses
 * them but does not load the dashboard's stylesheet. Always paired with a
 * visible text label by the functions that generate them — never color alone.
 */
.nexora-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.6rem;
	border-radius: var( --wp--custom--radius--pill );
	font-size: var( --wp--preset--font-size--x-small );
	font-weight: 700;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

.nexora-badge--priority-low {
	background-color: var( --wp--preset--color--surface-strong );
	color: var( --wp--preset--color--muted );
}

.nexora-badge--priority-medium {
	background-color: var( --wp--preset--color--accent-soft );
	color: var( --wp--preset--color--accent-strong );
}

.nexora-badge--priority-high {
	background-color: color-mix( in srgb, var( --wp--preset--color--warning ) 16%, transparent );
	color: var( --wp--preset--color--warning );
}

.nexora-badge--priority-urgent {
	background-color: var( --wp--preset--color--warning );
	color: var( --wp--preset--color--base );
}

.nexora-badge--status-open {
	background-color: var( --wp--preset--color--accent-soft );
	color: var( --wp--preset--color--accent-strong );
}

.nexora-badge--status-in_progress {
	background-color: color-mix( in srgb, var( --wp--preset--color--warning ) 16%, transparent );
	color: var( --wp--preset--color--warning );
}

.nexora-badge--status-resolved {
	background-color: color-mix( in srgb, var( --wp--preset--color--success ) 15%, transparent );
	color: var( --wp--preset--color--success );
}

.nexora-badge--status-closed {
	background-color: var( --wp--preset--color--surface-strong );
	color: var( --wp--preset--color--muted );
}

/*
 * Ticket detail view — shared by the agent-facing Support Dashboard
 * (nexora_render_ticket_detail(), inc/support-dashboard.php) and the
 * customer-facing view on /account/ (nexora_render_customer_ticket_detail(),
 * inc/customer-account.php). Kept here rather than in support-dashboard.css
 * for the same reason as the badges above: /account/ doesn't load that
 * stylesheet.
 */
.nexora-ticket-detail {
	display: flex;
	flex-direction: column;
	gap: var( --wp--preset--spacing--30 );
}

.nexora-dash-back {
	align-self: flex-start;
	color: var( --wp--preset--color--muted );
	font-size: var( --wp--preset--font-size--small );
	font-weight: 600;
	text-decoration: none;
}

.nexora-dash-back:hover,
.nexora-dash-back:focus-visible {
	color: var( --wp--preset--color--accent );
}

.nexora-ticket-detail__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: var( --wp--preset--spacing--30 );
	border-bottom: 1px solid var( --wp--preset--color--border );
}

.nexora-ticket-detail__number {
	margin: 0 0 0.25rem;
	color: var( --wp--preset--color--muted );
	font-size: var( --wp--preset--font-size--small );
	font-weight: 700;
	letter-spacing: 0.03em;
}

.nexora-ticket-detail__subject {
	margin: 0;
	font-size: var( --wp--preset--font-size--x-large );
}

.nexora-ticket-detail__badges {
	display: flex;
	gap: 0.5rem;
}

.nexora-ticket-detail__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var( --wp--preset--spacing--30 );
}

@media ( min-width: 700px ) {
	.nexora-ticket-detail__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.nexora-ticket-detail__panel {
	padding: 1.25rem 1.5rem;
	border: 1px solid var( --wp--preset--color--border );
	border-radius: var( --wp--custom--radius--lg );
	background-color: var( --wp--preset--color--base );
	box-shadow: var( --wp--preset--shadow--subtle );
}

.nexora-ticket-detail__panel h3 {
	margin: 0 0 0.75rem;
	color: var( --wp--preset--color--muted );
	font-size: var( --wp--preset--font-size--x-small );
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.nexora-ticket-detail__customer-name {
	margin: 0 0 0.15rem;
	color: var( --wp--preset--color--contrast );
	font-size: var( --wp--preset--font-size--medium );
	font-weight: 600;
}

.nexora-ticket-detail__customer-email {
	margin: 0;
	color: var( --wp--preset--color--muted );
}

.nexora-ticket-detail__panel dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.5rem 1rem;
	margin: 0;
}

.nexora-ticket-detail__panel dt {
	color: var( --wp--preset--color--muted );
}

.nexora-ticket-detail__panel dd {
	margin: 0;
	color: var( --wp--preset--color--contrast );
	font-weight: 600;
}

.nexora-ticket-detail__message-body {
	color: var( --wp--preset--color--contrast );
	line-height: 1.65;
}

.nexora-ticket-detail__message-body p {
	margin-block: 0 0.9em;
}

.nexora-ticket-detail__message-body p:last-child {
	margin-bottom: 0;
}

/* ========================================================================== *
 * 3. Header + navigation
 * ========================================================================== */

/*
 * The header template part renders as `.wp-site-blocks > header`, which is the
 * outermost element in the flow — the only place `position: sticky` can work
 * without being clipped by a wrapper's own height.
 */
.wp-site-blocks > header {
	position: sticky;
	top: 0;
	z-index: 100;
	/* Own stacking context, so the ::before backdrop layer stays behind the
	   header's content instead of dropping behind the page. */
	isolation: isolate;
	border-bottom: 1px solid transparent;
	transition:
		border-color var( --wp--custom--motion--duration ) var( --wp--custom--motion--ease ),
		box-shadow var( --wp--custom--motion--duration ) var( --wp--custom--motion--ease );
}

/*
 * The frosted backdrop lives on a pseudo-element, NOT on the header itself.
 *
 * backdrop-filter (like filter and transform) makes an element a containing
 * block for its position: fixed descendants. With it on the header, the core
 * Navigation block's mobile overlay — which is `position: fixed; inset: 0` —
 * sized itself to the 72px-tall header instead of the viewport, collapsing the
 * menu. A pseudo-element is not an ancestor of the overlay, so the effect is
 * preserved without capturing it.
 */
.wp-site-blocks > header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: color-mix( in srgb, var( --wp--preset--color--base ) 82%, transparent );
	-webkit-backdrop-filter: saturate( 180% ) blur( 14px );
	backdrop-filter: saturate( 180% ) blur( 14px );
	pointer-events: none;
}

/* Applied by assets/js/theme.js once the page is scrolled. */
.wp-site-blocks > header.is-scrolled {
	border-bottom-color: var( --wp--preset--color--border );
	box-shadow: var( --wp--preset--shadow--subtle );
}

.nexora-header__inner {
	min-height: var( --wp--custom--header--height );
}

/* --- Brand ---------------------------------------------------------------- */

.nexora-brand {
	gap: 0.5625rem;
}

/*
 * The mark is a mask over an accent gradient, so the logo re-colours itself
 * whenever the accent token changes. The counter of the "N" is knocked out,
 * letting the page background show through.
 */
.nexora-brand::before {
	content: "";
	flex: none;
	width: 1.75rem;
	aspect-ratio: 1;
	background-image: var( --wp--preset--gradient--accent-veil );
	-webkit-mask: url("nexora-mark.svg") center / contain no-repeat;
	mask: url("nexora-mark.svg") center / contain no-repeat;
}

.nexora-brand .wp-block-site-title {
	margin: 0;
}

/* --- Navigation ----------------------------------------------------------- */

.nexora-nav {
	flex: 1 1 auto;
}

.nexora-nav .wp-block-navigation-item__content {
	padding: 0.5rem 0.75rem;
	border-radius: var( --wp--custom--radius--sm );
	color: var( --wp--preset--color--muted );
	font-size: var( --wp--preset--font-size--small );
	font-weight: 500;
	text-decoration: none;
	transition:
		color var( --wp--custom--motion--duration ) var( --wp--custom--motion--ease ),
		background-color var( --wp--custom--motion--duration ) var( --wp--custom--motion--ease );
}

.nexora-nav .wp-block-navigation-item__content:hover,
.nexora-nav .wp-block-navigation-item__content:focus {
	background-color: color-mix( in srgb, var( --wp--preset--color--surface-strong ) 75%, transparent );
	color: var( --wp--preset--color--contrast );
}

/*
 * Duplicated links that should only appear inside the mobile overlay.
 * The extra qualifiers are needed to out-specify core's
 * `.wp-block-navigation .wp-block-navigation-item { display: flex }`.
 */
.nexora-nav .wp-block-navigation-item.nexora-nav__overlay-only {
	display: none;
}

/* Hamburger + close controls. */
.nexora-nav .wp-block-navigation__responsive-container-open,
.nexora-nav .wp-block-navigation__responsive-container-close {
	padding: 0.5rem;
	border-radius: var( --wp--custom--radius--sm );
	color: var( --wp--preset--color--contrast );
	transition: background-color var( --wp--custom--motion--duration ) var( --wp--custom--motion--ease );
}

.nexora-nav .wp-block-navigation__responsive-container-open:hover,
.nexora-nav .wp-block-navigation__responsive-container-close:hover {
	background-color: color-mix( in srgb, var( --wp--preset--color--surface-strong ) 75%, transparent );
}

/* Mobile overlay panel. */
.nexora-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: var( --wp--preset--spacing--30 ) var( --wp--custom--gutter ) var( --wp--preset--spacing--50 );
	background-color: var( --wp--preset--color--base );
}

.nexora-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: var( --wp--preset--spacing--30 );
	width: 100%;
}

/*
 * The desktop nav is centred and non-wrapping. Inside the overlay those same
 * layout attributes would leave a narrow, centred column, so the list is reset
 * to a full-width stack.
 */
.nexora-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	width: 100%;
	align-items: stretch;
	justify-content: flex-start;
	/* Rows already carry their own padding and dividers. */
	gap: 0;
}

.nexora-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	border-bottom: 1px solid var( --wp--preset--color--border );
}

.nexora-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:last-child {
	border-bottom: 0;
}

.nexora-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 0.875rem 0;
	border-radius: 0;
	color: var( --wp--preset--color--contrast );
	font-size: var( --wp--preset--font-size--large );
	font-weight: 600;
}

.nexora-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
	background-color: transparent;
	color: var( --wp--preset--color--accent );
}

/*
 * Core collapses the navigation into the overlay at 600px. Four nav items plus
 * a brand and two buttons need more room than that, so the breakpoint is moved
 * to 900px. !important is needed to beat core's own media-query rules, which
 * carry equal specificity.
 */
@media ( min-width: 600px ) and ( max-width: 899px ) {
	.nexora-nav .wp-block-navigation__responsive-container:not( .is-menu-open ) {
		display: none !important;
	}

	.nexora-nav .wp-block-navigation__responsive-container-open:not( .always-shown ) {
		display: flex !important;
	}
}

@media ( max-width: 899px ) {
	.nexora-nav {
		flex: 0 0 auto;
		/* Move the hamburger to the end of the row: brand → CTA → menu. */
		order: 3;
	}

	.nexora-nav .wp-block-navigation-item.nexora-nav__overlay-only {
		display: flex;
	}

	.nexora-header__inner {
		gap: 0.5rem;
	}

	/*
	 * The overlay carries "Sign in" on small screens. Qualified to out-specify
	 * core's `.wp-block-buttons > .wp-block-button` display rule.
	 */
	.nexora-header__actions .wp-block-button.nexora-hide-compact {
		display: none;
	}
}

/* ========================================================================== *
 * 4. Hero
 * ========================================================================== */

.nexora-hero {
	overflow: hidden;
	background-image: var( --wp--preset--gradient--surface-fade );
}

/* Accent bloom behind the headline. */
.nexora-hero::before {
	content: "";
	position: absolute;
	inset: -30% -10% auto;
	height: 80%;
	background-image: radial-gradient(
		55% 60% at 50% 0%,
		color-mix( in srgb, var( --wp--preset--color--accent ) 18%, transparent ),
		transparent 70%
	);
	pointer-events: none;
}

/* Faint grid, faded out towards the edges. */
.nexora-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient( to right, var( --wp--preset--color--border ) 1px, transparent 1px ),
		linear-gradient( to bottom, var( --wp--preset--color--border ) 1px, transparent 1px );
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient( 70% 60% at 50% 15%, #000, transparent 78% );
	mask-image: radial-gradient( 70% 60% at 50% 15%, #000, transparent 78% );
	opacity: 0.55;
	pointer-events: none;
}

.nexora-hero > * {
	position: relative;
	z-index: 1;
}

.nexora-hero__grid {
	display: grid;
	gap: var( --wp--preset--spacing--60 );
	align-items: center;
}

@media ( min-width: 1000px ) {
	.nexora-hero__grid {
		grid-template-columns: minmax( 0, 0.9fr ) minmax( 0, 1.1fr );
		gap: var( --wp--preset--spacing--50 );
	}
}

.nexora-hero__copy {
	max-width: 36rem;
}

.nexora-hero__title {
	margin-block: 0.25rem;
}

.nexora-hero__actions {
	margin-block-start: 0.5rem;
}

/* ========================================================================== *
 * 5. Product preview
 *
 * The illustration sizes itself from a single fluid font-size and expresses
 * every internal dimension in `em`, so the whole composition scales
 * proportionally instead of breaking apart at narrow widths.
 * ========================================================================== */

.nexora-mock {
	position: relative;
	font-size: clamp( 0.5rem, 0.34rem + 0.62vw, 0.8125rem );
	line-height: 1.35;
}

.nexora-mock p,
.nexora-mock ul {
	margin: 0;
	padding: 0;
}

.nexora-mock ul {
	list-style: none;
}

.nexora-mock__window {
	overflow: hidden;
	border: 1px solid var( --wp--preset--color--border );
	border-radius: 1.25em;
	background-color: var( --wp--preset--color--base );
	box-shadow: var( --wp--preset--shadow--float );
}

@media ( min-width: 1000px ) {
	.nexora-mock__window {
		transform: perspective( 1800px ) rotateY( -2.4deg ) rotateX( 1.2deg );
		transform-origin: left center;
	}
}

/* --- Window chrome -------------------------------------------------------- */

.nexora-mock__chrome {
	display: flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.85em 1.1em;
	border-bottom: 1px solid var( --wp--preset--color--border );
	background-color: var( --wp--preset--color--surface );
}

.nexora-mock__dot {
	width: 0.7em;
	aspect-ratio: 1;
	border-radius: 50%;
	background-color: color-mix( in srgb, var( --wp--preset--color--muted ) 30%, transparent );
}

.nexora-mock__url {
	margin-inline: auto;
	padding: 0.2em 0.9em;
	border: 1px solid var( --wp--preset--color--border );
	border-radius: var( --wp--custom--radius--pill );
	background-color: var( --wp--preset--color--base );
	color: var( --wp--preset--color--muted );
	font-family: var( --wp--preset--font-family--mono );
	font-size: 0.85em;
}

/* --- Layout --------------------------------------------------------------- */

.nexora-mock__body {
	display: grid;
	grid-template-columns: 3.4em 1fr;
}

@media ( min-width: 620px ) {
	.nexora-mock__body {
		grid-template-columns: 11em 1fr;
	}
}

/* --- Sidebar -------------------------------------------------------------- */

.nexora-mock__side {
	display: flex;
	flex-direction: column;
	gap: 1.2em;
	padding: 1.1em 0.8em;
	border-right: 1px solid var( --wp--preset--color--border );
	background-color: var( --wp--preset--color--surface );
}

.nexora-mock__sidebrand {
	display: flex;
	align-items: center;
	gap: 0.45em;
	padding-inline: 0.35em;
	color: var( --wp--preset--color--contrast );
	font-size: 1.05em;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.nexora-mock__sidebrand::before {
	content: "";
	flex: none;
	width: 1.15em;
	aspect-ratio: 1;
	background-image: var( --wp--preset--gradient--accent-veil );
	-webkit-mask: url("nexora-mark.svg") center / contain no-repeat;
	mask: url("nexora-mark.svg") center / contain no-repeat;
}

.nexora-mock__nav {
	display: flex;
	flex-direction: column;
	gap: 0.15em;
}

.nexora-mock__nav li {
	display: flex;
	align-items: center;
	gap: 0.6em;
	padding: 0.5em 0.55em;
	border-radius: 0.55em;
	color: var( --wp--preset--color--muted );
	font-size: 0.95em;
	font-weight: 500;
}

.nexora-mock__nav li::before {
	content: "";
	flex: none;
	width: 1em;
	aspect-ratio: 1;
	border-radius: 0.3em;
	background-color: color-mix( in srgb, var( --wp--preset--color--muted ) 26%, transparent );
}

.nexora-mock__nav li.is-active {
	background-color: var( --wp--preset--color--base );
	box-shadow: var( --wp--preset--shadow--subtle );
	color: var( --wp--preset--color--contrast );
	font-weight: 600;
}

.nexora-mock__nav li.is-active::before {
	background-color: var( --wp--preset--color--accent );
}

/* Collapse to an icon rail on narrow screens. */
@media ( max-width: 619px ) {
	.nexora-mock__sidebrand span,
	.nexora-mock__nav li span {
		display: none;
	}

	.nexora-mock__nav li,
	.nexora-mock__sidebrand {
		justify-content: center;
		padding-inline: 0;
	}
}

/* --- Main column ---------------------------------------------------------- */

.nexora-mock__main {
	display: flex;
	flex-direction: column;
	gap: 0.9em;
	padding: 1.1em;
}

.nexora-mock__bar {
	display: flex;
	align-items: center;
	gap: 0.7em;
}

.nexora-mock__title {
	color: var( --wp--preset--color--contrast );
	font-size: 1.25em;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.nexora-mock__search {
	flex: 1 1 auto;
	padding: 0.5em 0.85em;
	border: 1px solid var( --wp--preset--color--border );
	border-radius: var( --wp--custom--radius--pill );
	background-color: var( --wp--preset--color--surface );
	color: var( --wp--preset--color--muted );
	font-size: 0.9em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nexora-mock__avatar {
	display: grid;
	place-items: center;
	flex: none;
	width: 2em;
	aspect-ratio: 1;
	border-radius: 50%;
	background-image: var( --wp--preset--gradient--accent-veil );
	color: var( --wp--preset--color--base );
	font-size: 0.85em;
	font-weight: 700;
}

/* --- Stat tiles ----------------------------------------------------------- */

.nexora-mock__stats {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 0.6em;
}

.nexora-mock__stat {
	display: flex;
	flex-direction: column;
	gap: 0.15em;
	padding: 0.75em 0.85em;
	border: 1px solid var( --wp--preset--color--border );
	border-radius: 0.8em;
	background-color: var( --wp--preset--color--base );
}

.nexora-mock__stat p {
	color: var( --wp--preset--color--muted );
	font-size: 0.85em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nexora-mock__stat strong {
	color: var( --wp--preset--color--contrast );
	font-size: 1.5em;
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.1;
}

.nexora-mock__stat em {
	font-size: 0.8em;
	font-style: normal;
	font-weight: 600;
}

.nexora-mock__stat em.is-up,
.nexora-mock__stat em.is-good {
	color: var( --wp--preset--color--success );
}

/* --- Ticket queue --------------------------------------------------------- */

.nexora-mock__panel {
	border: 1px solid var( --wp--preset--color--border );
	border-radius: 0.8em;
	background-color: var( --wp--preset--color--base );
}

.nexora-mock__panelhead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6em;
	padding: 0.7em 0.9em;
	border-bottom: 1px solid var( --wp--preset--color--border );
}

.nexora-mock__panelhead p {
	color: var( --wp--preset--color--contrast );
	font-size: 0.95em;
	font-weight: 600;
}

.nexora-mock__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.2em 0.6em;
	border-radius: var( --wp--custom--radius--pill );
	background-color: var( --wp--preset--color--accent-soft );
	color: var( --wp--preset--color--accent-strong );
	font-size: 0.78em;
	font-weight: 600;
	white-space: nowrap;
}

.nexora-mock__chip::before {
	content: "";
	width: 0.45em;
	aspect-ratio: 1;
	border-radius: 50%;
	background-color: var( --wp--preset--color--accent );
}

.nexora-mock__rows li {
	display: flex;
	align-items: center;
	gap: 0.7em;
	padding: 0.65em 0.9em;
	border-bottom: 1px solid color-mix( in srgb, var( --wp--preset--color--border ) 60%, transparent );
}

.nexora-mock__rows li:last-child {
	border-bottom: 0;
}

.nexora-mock__ava {
	display: grid;
	place-items: center;
	flex: none;
	width: 1.9em;
	aspect-ratio: 1;
	border-radius: 0.5em;
	background-color: var( --wp--preset--color--surface-strong );
	color: var( --wp--preset--color--muted );
	font-size: 0.8em;
	font-weight: 700;
}

.nexora-mock__text {
	display: flex;
	flex-direction: column;
	gap: 0.1em;
	min-width: 0;
	flex: 1 1 auto;
}

.nexora-mock__text b {
	color: var( --wp--preset--color--contrast );
	font-size: 0.95em;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nexora-mock__text i {
	color: var( --wp--preset--color--muted );
	font-size: 0.85em;
	font-style: normal;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nexora-mock__badge {
	flex: none;
	padding: 0.2em 0.6em;
	border-radius: var( --wp--custom--radius--pill );
	font-size: 0.78em;
	font-weight: 600;
	white-space: nowrap;
}

.nexora-mock__badge.is-urgent {
	background-color: color-mix( in srgb, var( --wp--preset--color--warning ) 14%, transparent );
	color: var( --wp--preset--color--warning );
}

.nexora-mock__badge.is-open {
	background-color: var( --wp--preset--color--accent-soft );
	color: var( --wp--preset--color--accent-strong );
}

.nexora-mock__badge.is-pending {
	background-color: var( --wp--preset--color--surface-strong );
	color: var( --wp--preset--color--muted );
}

.nexora-mock__badge.is-solved {
	background-color: color-mix( in srgb, var( --wp--preset--color--success ) 13%, transparent );
	color: var( --wp--preset--color--success );
}

@media ( max-width: 479px ) {
	.nexora-mock__rows li:nth-child( n + 4 ) {
		display: none;
	}
}

/* --- Volume chart --------------------------------------------------------- */

.nexora-mock__chart {
	display: flex;
	flex-direction: column;
	gap: 0.7em;
	padding: 0.85em 0.9em 0.9em;
	border: 1px solid var( --wp--preset--color--border );
	border-radius: 0.8em;
	background-color: var( --wp--preset--color--base );
}

.nexora-mock__charthead {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.6em;
}

.nexora-mock__charthead p {
	color: var( --wp--preset--color--contrast );
	font-size: 0.95em;
	font-weight: 600;
}

.nexora-mock__charthead span {
	color: var( --wp--preset--color--muted );
	font-size: 0.82em;
}

.nexora-mock__bars {
	display: flex;
	align-items: flex-end;
	gap: 0.3em;
	height: 4.2em;
}

.nexora-mock__bars span {
	flex: 1 1 0;
	border-radius: 0.25em 0.25em 0.1em 0.1em;
	background-color: color-mix( in srgb, var( --wp--preset--color--accent ) 22%, transparent );
}

/*
 * Bar heights are declared here rather than inline so the markup carries no
 * presentational attributes and the shape is editable in one place.
 */
.nexora-mock__bars span:nth-child( 1 )  { height: 34%; }
.nexora-mock__bars span:nth-child( 2 )  { height: 46%; }
.nexora-mock__bars span:nth-child( 3 )  { height: 38%; }
.nexora-mock__bars span:nth-child( 4 )  { height: 58%; }
.nexora-mock__bars span:nth-child( 5 )  { height: 50%; }
.nexora-mock__bars span:nth-child( 6 )  { height: 68%; }
.nexora-mock__bars span:nth-child( 7 )  { height: 60%; }
.nexora-mock__bars span:nth-child( 8 )  { height: 78%; }
.nexora-mock__bars span:nth-child( 9 )  { height: 66%; }
.nexora-mock__bars span:nth-child( 10 ) { height: 86%; }
.nexora-mock__bars span:nth-child( 11 ) { height: 72%; }
.nexora-mock__bars span:nth-child( 12 ) { height: 92%; }
.nexora-mock__bars span:nth-child( 13 ) { height: 80%; }

/* Most recent day reads as the live value. */
.nexora-mock__bars span:nth-child( 14 ) {
	height: 100%;
	background-color: var( --wp--preset--color--accent );
}

/* --- Floating metric cards ------------------------------------------------ */

.nexora-mock__float {
	display: none;
	position: absolute;
	padding: 0.85em 1em;
	border: 1px solid var( --wp--preset--color--border );
	border-radius: 0.9em;
	background-color: var( --wp--preset--color--base );
	box-shadow: var( --wp--preset--shadow--lifted );
}

@media ( min-width: 1100px ) {
	.nexora-mock__float {
		display: block;
	}
}

/*
 * Anchored into the gap between the hero's two columns, so it reads as lifted
 * off the window without covering any of the workspace's own labels.
 */
.nexora-mock__float--a {
	inset-inline-start: -2.2em;
	inset-block-end: 12%;
}

.nexora-mock__floatlabel {
	color: var( --wp--preset--color--muted );
	font-size: 0.85em;
	font-weight: 500;
}

.nexora-mock__floatvalue {
	display: flex;
	align-items: baseline;
	gap: 0.35em;
	color: var( --wp--preset--color--contrast );
	font-size: 1.6em;
	font-weight: 700;
	letter-spacing: -0.035em;
}

.nexora-mock__floatvalue em {
	color: var( --wp--preset--color--muted );
	font-size: 0.48em;
	font-style: normal;
	font-weight: 500;
	letter-spacing: 0;
}

.nexora-mock__spark {
	display: block;
	width: 5.5em;
	height: 0.35em;
	margin-block-start: 0.5em;
	border-radius: var( --wp--custom--radius--pill );
	background-image: linear-gradient(
		to right,
		color-mix( in srgb, var( --wp--preset--color--accent ) 25%, transparent ),
		var( --wp--preset--color--accent )
	);
}

/* ========================================================================== *
 * 6. Trust row
 * ========================================================================== */

.nexora-trust__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem 2.75rem;
}

/*
 * Demo wordmarks are set type rather than imagery: no third-party marks are
 * used, and each gets a distinct geometric glyph so the row still reads as a
 * set of logos.
 */
.nexora-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	color: color-mix( in srgb, var( --wp--preset--color--muted ) 82%, transparent );
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	transition: color var( --wp--custom--motion--duration ) var( --wp--custom--motion--ease );
}

.nexora-logo:hover {
	color: var( --wp--preset--color--contrast );
}

.nexora-logo::before {
	content: "";
	flex: none;
	width: 1.125rem;
	aspect-ratio: 1;
	background-color: currentColor;
	opacity: 0.85;
}

.nexora-trust__logos > .nexora-logo:nth-child( 1 )::before {
	border-radius: 50%;
}

.nexora-trust__logos > .nexora-logo:nth-child( 2 )::before {
	border-radius: 4px;
	transform: rotate( 45deg ) scale( 0.86 );
}

.nexora-trust__logos > .nexora-logo:nth-child( 3 )::before {
	border-radius: 50% 4px 50% 4px;
}

.nexora-trust__logos > .nexora-logo:nth-child( 4 )::before {
	clip-path: polygon( 50% 4%, 100% 96%, 0 96% );
}

.nexora-trust__logos > .nexora-logo:nth-child( 5 )::before {
	border-radius: 50% 50% 4px 50%;
}

.nexora-trust__logos > .nexora-logo:nth-child( 6 )::before {
	border-radius: 4px;
	clip-path: polygon( 0 0, 100% 0, 100% 58%, 58% 100%, 0 100% );
}

/* ========================================================================== *
 * 7. Feature grid
 * ========================================================================== */

.nexora-card {
	--nexora-card-pad: clamp( 1.375rem, 1.1rem + 0.8vw, 1.75rem );

	position: relative;
	padding: var( --nexora-card-pad );
	border: 1px solid var( --wp--preset--color--border );
	border-radius: var( --wp--custom--radius--lg );
	background-color: var( --wp--preset--color--base );
	box-shadow: var( --wp--preset--shadow--subtle );
	transition:
		transform var( --wp--custom--motion--duration ) var( --wp--custom--motion--ease ),
		box-shadow var( --wp--custom--motion--duration ) var( --wp--custom--motion--ease ),
		border-color var( --wp--custom--motion--duration ) var( --wp--custom--motion--ease );
}

.nexora-card:hover {
	transform: translateY( -3px );
	border-color: color-mix( in srgb, var( --wp--preset--color--accent ) 32%, var( --wp--preset--color--border ) );
	box-shadow: var( --wp--preset--shadow--lifted );
}

/* Tinted icon plate, in flow so the heading sits beneath it. */
.nexora-card::before {
	content: "";
	display: block;
	width: 2.75rem;
	aspect-ratio: 1;
	margin-block-end: var( --wp--preset--spacing--30 );
	border: 1px solid color-mix( in srgb, var( --wp--preset--color--accent ) 16%, transparent );
	border-radius: var( --wp--custom--radius--md );
	background-color: var( --wp--preset--color--accent-soft );
}

/* Masked glyph layered over the plate; --nexora-icon is set per card below. */
.nexora-card::after {
	content: "";
	position: absolute;
	inset-block-start: var( --nexora-card-pad );
	inset-inline-start: var( --nexora-card-pad );
	width: 2.75rem;
	height: 2.75rem;
	background-color: var( --wp--preset--color--accent );
	-webkit-mask: var( --nexora-icon ) center / 1.375rem no-repeat;
	mask: var( --nexora-icon ) center / 1.375rem no-repeat;
}

.nexora-card.is-icon-tickets       { --nexora-icon: url("tickets.svg"); }
.nexora-card.is-icon-knowledge     { --nexora-icon: url("knowledge.svg"); }
.nexora-card.is-icon-portal        { --nexora-icon: url("portal.svg"); }
.nexora-card.is-icon-automation    { --nexora-icon: url("automation.svg"); }
.nexora-card.is-icon-collaboration { --nexora-icon: url("collaboration.svg"); }
.nexora-card.is-icon-analytics     { --nexora-icon: url("analytics.svg"); }

.nexora-card .wp-block-heading {
	margin: 0;
}

.nexora-card__text {
	margin: 0;
	color: var( --wp--preset--color--muted );
	line-height: 1.6;
}

/* ========================================================================== *
 * 8. Call to action
 * ========================================================================== */

.nexora-cta__panel {
	position: relative;
	overflow: hidden;
	padding: var( --wp--preset--spacing--70 ) var( --wp--preset--spacing--30 );
	border-radius: var( --wp--custom--radius--xl );
	background-image: var( --wp--preset--gradient--dark-panel );
	text-align: center;
}

.nexora-cta__panel::before {
	content: "";
	position: absolute;
	inset: auto -20% -70%;
	height: 120%;
	background-image: radial-gradient(
		50% 50% at 50% 50%,
		color-mix( in srgb, var( --wp--preset--color--accent ) 42%, transparent ),
		transparent 70%
	);
	pointer-events: none;
}

.nexora-cta__panel > * {
	position: relative;
	z-index: 1;
}

.nexora-cta__panel .wp-block-heading {
	color: var( --wp--preset--color--base );
}

.nexora-cta__text {
	margin-inline: auto;
	max-width: 34rem;
	color: color-mix( in srgb, var( --wp--preset--color--base ) 74%, transparent );
	font-size: var( --wp--preset--font-size--large );
	line-height: 1.6;
}

/* ========================================================================== *
 * 9. Footer
 * ========================================================================== */

.wp-site-blocks > footer {
	border-top: 1px solid var( --wp--preset--color--border );
	background-color: var( --wp--preset--color--surface );
}

.nexora-footer__top {
	display: grid;
	gap: var( --wp--preset--spacing--40 );
}

@media ( min-width: 720px ) {
	.nexora-footer__top {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}

	.nexora-footer__brand {
		grid-column: 1 / -1;
	}
}

@media ( min-width: 960px ) {
	.nexora-footer__top {
		grid-template-columns: 1.5fr repeat( 4, minmax( 0, 1fr ) );
	}

	.nexora-footer__brand {
		grid-column: auto;
	}
}

.nexora-footer__brand {
	max-width: 20rem;
}

.nexora-footer__tagline {
	margin: 0;
	color: var( --wp--preset--color--muted );
}

.nexora-footer__heading {
	margin: 0 0 0.875rem;
	color: var( --wp--preset--color--contrast );
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.nexora-footer__links {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nexora-footer__links a {
	color: var( --wp--preset--color--muted );
	font-size: var( --wp--preset--font-size--small );
	text-decoration: none;
	transition: color var( --wp--custom--motion--duration ) var( --wp--custom--motion--ease );
}

.nexora-footer__links a:hover,
.nexora-footer__links a:focus {
	color: var( --wp--preset--color--accent );
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.nexora-footer__bottom {
	margin-block-start: var( --wp--preset--spacing--50 );
	padding-block-start: var( --wp--preset--spacing--30 );
	border-top: 1px solid var( --wp--preset--color--border );
}

.nexora-footer__bottom p {
	margin: 0;
	color: var( --wp--preset--color--muted );
}

/* ========================================================================== *
 * 10. Blog / prose
 * ========================================================================== */

.nexora-page-head .nexora-eyebrow {
	margin-block-end: var( --wp--preset--spacing--20 );
}

.nexora-postcard {
	padding-block-end: var( --wp--preset--spacing--40 );
	border-bottom: 1px solid var( --wp--preset--color--border );
}

.nexora-postlist > :last-child .nexora-postcard {
	border-bottom: 0;
}

.nexora-postcard__meta {
	color: var( --wp--preset--color--muted );
	font-variant-numeric: tabular-nums;
}

.nexora-postcard .wp-block-post-title a {
	color: var( --wp--preset--color--contrast );
	text-decoration: none;
	transition: color var( --wp--custom--motion--duration ) var( --wp--custom--motion--ease );
}

.nexora-postcard .wp-block-post-title a:hover,
.nexora-postcard .wp-block-post-title a:focus {
	color: var( --wp--preset--color--accent );
}

.nexora-postcard__excerpt {
	color: var( --wp--preset--color--muted );
}

.nexora-pagination {
	margin-block-start: var( --wp--preset--spacing--50 );
	padding-block-start: var( --wp--preset--spacing--30 );
	border-top: 1px solid var( --wp--preset--color--border );
	font-size: var( --wp--preset--font-size--small );
}

.nexora-prose .wp-block-post-content > * {
	margin-block: var( --wp--preset--spacing--30 );
}

/* Search form */
.wp-block-search__input {
	padding: 0.6875rem 0.875rem;
	border: 1px solid var( --wp--preset--color--border );
	border-radius: var( --wp--custom--radius--sm );
	background-color: var( --wp--preset--color--base );
	color: var( --wp--preset--color--contrast );
	font-size: var( --wp--preset--font-size--small );
}

.wp-block-search__input::placeholder {
	color: var( --wp--preset--color--muted );
}

.wp-block-search__button {
	margin-inline-start: 0.5rem;
}

/* ========================================================================== *
 * 11. Reduced motion
 * ========================================================================== */

@media ( prefers-reduced-motion: reduce ) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.nexora-mock__window {
		transform: none;
	}

	.wp-block-button .wp-block-button__link:hover,
	.nexora-card:hover {
		transform: none;
	}
}
