/**
 * DatalumeX – component styles.
 *
 * Global tokens (colours, fonts, spacing) come from theme.json and are exposed
 * as CSS custom properties (--wp--preset--*). This file only adds component
 * styles and the light/dark scheme switch.
 *
 * Contents
 *  1. Colour schemes (dark default, light override, "always dark" sections)
 *  2. Base & accessibility
 *  3. Utilities (eyebrow, lead, muted, gradient text)
 *  4. Buttons
 *  5. Header & navigation
 *  6. Sections & cards
 *  7. Hero
 *  8. Home sections (steps, compare)
 *  9. About (mission, team, timeline)
 * 10. Services & contact
 * 11. Blog (cards, single article, entry content)
 * 12. Footer
 * 13. Forms (shared by search, contact form and WooCommerce)
 * 14. 404
 * 15. Motion preferences
 */

/* ------------------------------------------------------------------
 * 1. Colour schemes
 * ------------------------------------------------------------------ */
:root {
	--dlx-radius-sm: var(--wp--custom--radius--sm, 8px);
	--dlx-radius: var(--wp--custom--radius--md, 14px);
	--dlx-radius-lg: var(--wp--custom--radius--lg, 20px);
	--dlx-header-h: var(--wp--custom--header-height, 72px);
	--dlx-ring: 0 0 0 3px rgba(167, 139, 250, 0.55);
	--dlx-glass: rgba(21, 27, 43, 0.72);
	--dlx-header-bg: rgba(15, 20, 32, 0.78);
	--dlx-grid-line: rgba(255, 255, 255, 0.04);
	color-scheme: dark;
}

/* Light scheme – toggled by the header button (stored in localStorage). */
html[data-theme="light"] {
	--wp--preset--color--base: #ffffff;
	--wp--preset--color--base-2: #f5f7fb;
	--wp--preset--color--base-3: #eaeff7;
	--wp--preset--color--border: #dde3ee;
	--wp--preset--color--contrast: #0f1420;
	--wp--preset--color--contrast-2: #4a5468;
	--wp--preset--color--primary-soft: #6d28d9;
	--wp--preset--color--accent: #c2410c;
	--wp--preset--color--success: #047857;
	--wp--preset--color--danger: #b91c1c;
	--wp--preset--shadow--card: 0 1px 2px rgba(15, 20, 32, 0.06), 0 12px 32px -16px rgba(15, 20, 32, 0.18);
	--dlx-glass: rgba(255, 255, 255, 0.8);
	--dlx-header-bg: rgba(255, 255, 255, 0.82);
	--dlx-grid-line: rgba(15, 20, 32, 0.05);
	color-scheme: light;
}

/* Sections that stay dark in both schemes (hero, page headers, footer). */
.is-style-dlx-dark {
	--wp--preset--color--base: #0f1420;
	--wp--preset--color--base-2: #151b2b;
	--wp--preset--color--base-3: #1c2438;
	--wp--preset--color--border: #273049;
	--wp--preset--color--contrast: #e8ecf4;
	--wp--preset--color--contrast-2: #a7b0c3;
	--wp--preset--color--primary-soft: #a78bfa;
	--wp--preset--color--accent: #fb923c;
	--wp--preset--color--success: #34d399;
	--wp--preset--color--danger: #f87171;
	--wp--preset--shadow--card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 10px 30px -12px rgba(0, 0, 0, 0.45);
	--dlx-glass: rgba(21, 27, 43, 0.72);
	--dlx-grid-line: rgba(255, 255, 255, 0.04);
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	color-scheme: dark;
}

body {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	transition: background-color 0.25s ease, color 0.25s ease;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* ------------------------------------------------------------------
 * 2. Base & accessibility
 * ------------------------------------------------------------------ */
html {
	scroll-behavior: smooth;
}

/* Anchored sections must not hide under the sticky header. */
:where([id]) {
	scroll-margin-top: calc(var(--dlx-header-h) + 16px);
}

::selection {
	background: rgba(124, 58, 237, 0.35);
	color: inherit;
}

/* Clear, high-contrast focus ring for every interactive element (WCAG 2.4.7). */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary-soft);
	outline-offset: 3px;
	border-radius: 6px;
}

.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--base-3);
	color: var(--wp--preset--color--contrast);
	border-radius: var(--dlx-radius-sm);
	box-shadow: var(--dlx-ring);
	z-index: 100000;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

hr.wp-block-separator {
	border-color: var(--wp--preset--color--border);
	opacity: 1;
}

.dlx-main {
	margin-block-start: 0;
	padding-block-end: 0;
}

/* Remove the default gap between template parts and the main area. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* ------------------------------------------------------------------
 * 3. Utilities
 * ------------------------------------------------------------------ */
.is-style-dlx-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	width: fit-content;
	margin-inline: auto;
	padding: 0.35rem 0.85rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 45%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--primary) 12%, transparent);
	color: var(--wp--preset--color--primary-soft);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.is-style-dlx-eyebrow::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	box-shadow: 0 0 12px var(--wp--preset--color--accent);
}

p.is-style-dlx-eyebrow:not(.has-text-align-center) {
	margin-inline: 0;
}

/* Centre eyebrows inside centred heads (they are inline-flex). */
.has-text-align-center.is-style-dlx-eyebrow {
	display: flex;
}

.dlx-lead {
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--contrast-2);
	line-height: 1.6;
}

.dlx-muted {
	color: var(--wp--preset--color--contrast-2);
}

.dlx-small {
	font-size: var(--wp--preset--font-size--x-small);
}

.dlx-gradient-text {
	background: linear-gradient(90deg, #fb923c 0%, #f472b6 50%, #a78bfa 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

html[data-theme="light"] .dlx-gradient-text {
	background-image: linear-gradient(90deg, #ea580c 0%, #db2777 50%, #7c3aed 100%);
}

html[data-theme] .is-style-dlx-dark .dlx-gradient-text {
	background-image: linear-gradient(90deg, #fb923c 0%, #f472b6 50%, #a78bfa 100%);
}

/* ------------------------------------------------------------------
 * 4. Buttons
 * ------------------------------------------------------------------ */
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 44px; /* touch target */
	box-shadow: 0 8px 24px -12px rgba(219, 39, 119, 0.7);
	transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
	transform: translateY(-1px);
	filter: brightness(1.08);
	box-shadow: 0 14px 30px -12px rgba(124, 58, 237, 0.85);
}

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

.dlx-btn-lg .wp-block-button__link {
	padding: 1rem 1.6rem;
	font-size: var(--wp--preset--font-size--medium);
	border-radius: 14px;
}

/* Ghost / outline style */
.wp-block-button.is-style-dlx-ghost .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--border);
	box-shadow: none;
}

.wp-block-button.is-style-dlx-ghost .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--primary);
	background: color-mix(in srgb, var(--wp--preset--color--primary) 10%, transparent);
	color: var(--wp--preset--color--contrast);
	filter: none;
}

/* ------------------------------------------------------------------
 * 5. Header & navigation
 * ------------------------------------------------------------------ */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}

.admin-bar header.wp-block-template-part {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {
	.admin-bar header.wp-block-template-part {
		top: 0;
	}
}

/* The frosted-glass effect lives on a pseudo-element: a backdrop-filter on the
   header itself would trap the dropdown and the full-screen mobile menu inside it. */
.dlx-header {
	position: relative;
	isolation: isolate;
	background: transparent;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--border) 70%, transparent);
	padding-block: 0.75rem;
}

.dlx-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--dlx-header-bg);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	pointer-events: none;
}

.dlx-header__inner {
	min-height: calc(var(--dlx-header-h) - 1.5rem);
	gap: 1rem;
}

.dlx-brand {
	gap: 0.6rem;
	flex-shrink: 0;
}

.dlx-brand .wp-block-site-title {
	margin: 0;
	line-height: 1;
}

.dlx-brand .wp-block-site-logo img {
	display: block;
	height: auto;
}

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

.dlx-nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--contrast-2);
	padding: 0.5rem 0.75rem;
	border-radius: 10px;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.dlx-nav .wp-block-navigation-item__content:hover,
.dlx-nav .current-menu-item > .wp-block-navigation-item__content,
.dlx-nav [aria-current="page"] {
	color: var(--wp--preset--color--contrast);
	background: color-mix(in srgb, var(--wp--preset--color--contrast) 7%, transparent);
}

.dlx-nav .wp-block-navigation__container {
	gap: 0.15rem;
}

/* Mobile overlay menu */
.dlx-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--contrast) !important;
	padding: 1.5rem;
	z-index: 100000;
}

.dlx-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: var(--wp--preset--color--contrast) !important;
}

.dlx-nav .is-menu-open .wp-block-navigation__responsive-container-content,
.dlx-nav .is-menu-open .wp-block-navigation__container,
.dlx-nav .is-menu-open .wp-block-navigation-item {
	align-items: flex-start !important;
	text-align: left;
}

.dlx-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--large);
	padding: 0.6rem 0;
}

.dlx-nav .wp-block-navigation__responsive-container-open,
.dlx-nav .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--contrast);
	padding: 0.5rem;
	border-radius: 10px;
}

.dlx-header__actions {
	gap: 0.5rem;
	flex-shrink: 0;
}

.dlx-header__cta .wp-block-button__link {
	padding: 0.6rem 1.05rem;
	min-height: 40px;
}

.dlx-theme-toggle {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.dlx-theme-toggle:hover {
	border-color: var(--wp--preset--color--primary);
	background: color-mix(in srgb, var(--wp--preset--color--primary) 10%, transparent);
}

/* Show the icon for the scheme you will switch TO. */
.dlx-theme-toggle .dlx-icon-moon {
	display: none;
}

html[data-theme="light"] .dlx-theme-toggle .dlx-icon-sun {
	display: none;
}

html[data-theme="light"] .dlx-theme-toggle .dlx-icon-moon {
	display: block;
}

/* Desktop: logo | menu | actions. Mobile: logo | actions | burger. */
@media (max-width: 599px) {
	.dlx-nav {
		order: 3;
		flex: 0 0 auto;
	}

	.dlx-header .dlx-header__cta {
		display: none !important;
	}

	.dlx-header .wp-block-site-title {
		font-size: var(--wp--preset--font-size--medium);
	}
}

@media (min-width: 600px) and (max-width: 1080px) {
	/* Tablets: use the burger menu too so nothing wraps. */
	.dlx-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.dlx-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.dlx-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		display: flex;
	}

	.dlx-nav {
		order: 3;
		flex: 0 0 auto;
	}
}

/* ------------------------------------------------------------------
 * 6. Sections & cards
 * ------------------------------------------------------------------ */
.dlx-section {
	padding-block: var(--wp--preset--spacing--60);
	position: relative;
}

.dlx-section--alt {
	background: var(--wp--preset--color--base-2);
	border-block: 1px solid color-mix(in srgb, var(--wp--preset--color--border) 60%, transparent);
}

.dlx-section__head {
	margin-block-end: var(--wp--preset--spacing--50);
	text-align: center;
}

.dlx-section__head > * + * {
	margin-block-start: 1rem;
}

.dlx-section__head h2 {
	margin-block-start: 1rem;
	text-wrap: balance;
}

/* Hide the testimonials band entirely until real testimonials exist. */
.dlx-testimonials-section:not(:has(.dlx-testimonials)) {
	display: none;
}

/* Card style for Group blocks (Styles panel → "Card"). */
.is-style-dlx-card {
	background: var(--wp--preset--color--base-2);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--dlx-radius-lg);
	padding: clamp(1.25rem, 3vw, 2rem);
	box-shadow: var(--wp--preset--shadow--card);
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	height: 100%;
}

.dlx-section--alt .is-style-dlx-card {
	background: var(--wp--preset--color--base);
}

.is-style-dlx-card:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 55%, var(--wp--preset--color--border));
	transform: translateY(-2px);
}

.is-style-dlx-card > * {
	margin-block-start: 0;
}

.is-style-dlx-card > * + * {
	margin-block-start: 0.85rem;
}

.is-style-dlx-card > h2 {
	font-size: var(--wp--preset--font-size--x-large);
}

.is-style-dlx-card h3 {
	margin-block-start: 1.1rem;
}

/* Glass panel */
.is-style-dlx-glass {
	background: var(--dlx-glass);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--dlx-radius-lg);
	padding: clamp(1.5rem, 4vw, 3rem);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

/* Equal-height card rows inside Columns. */
.dlx-cards,
.dlx-steps {
	gap: clamp(1rem, 2.5vw, 1.5rem);
}

.dlx-cards > .wp-block-column {
	display: flex;
	flex-direction: column;
}

.dlx-grid {
	gap: clamp(1rem, 2.5vw, 1.5rem);
}

/* App window frame for screenshots (Image block → Styles → "App window frame"). */
.is-style-dlx-frame img {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--dlx-radius-lg);
	box-shadow: 0 30px 80px -30px rgba(124, 58, 237, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03);
	background: var(--wp--preset--color--base-2);
	width: 100%;
}

.wp-block-image.is-style-rounded img {
	border-radius: 9999px;
}

.wp-block-image figcaption {
	text-align: center;
	margin-top: 0.85rem;
}

/* ------------------------------------------------------------------
 * 7. Hero
 * ------------------------------------------------------------------ */
.dlx-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding-block: clamp(3.5rem, 9vw, 7rem) var(--wp--preset--spacing--60);
	background: var(--wp--preset--gradient--hero);
}

/* Subtle grid + glow decoration */
.dlx-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(var(--dlx-grid-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--dlx-grid-line) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
	mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
	pointer-events: none;
}

.dlx-hero__copy > * + * {
	margin-block-start: 1.5rem;
}

.dlx-hero__title {
	text-wrap: balance;
}

.dlx-hero .dlx-lead {
	max-width: 46rem;
	margin-inline: auto;
}

.dlx-hero__actions {
	gap: 0.85rem;
	margin-block-start: 2rem !important;
}

.dlx-trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.5rem;
	padding: 0;
	margin-block-start: 1.75rem !important;
	list-style: none;
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--small);
}

.dlx-trust li {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.dlx-trust li::before {
	content: "";
	width: 16px;
	height: 16px;
	flex: none;
	background: var(--wp--preset--color--success);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.dlx-hero__shot {
	margin-block-start: var(--wp--preset--spacing--50) !important;
	position: relative;
}

.dlx-hero__shot::after {
	/* Light beam under the screenshot */
	content: "";
	position: absolute;
	left: 10%;
	right: 10%;
	bottom: -40px;
	height: 80px;
	background: radial-gradient(closest-side, rgba(219, 39, 119, 0.35), transparent);
	filter: blur(20px);
	z-index: -1;
}

.dlx-hero--page {
	padding-block: clamp(3rem, 8vw, 5.5rem);
	text-align: center;
}

.dlx-hero--page > * + * {
	margin-block-start: 1.25rem;
}

.dlx-hero--page h1 {
	font-size: var(--wp--preset--font-size--xx-large);
	text-wrap: balance;
}

/* Simple title band used by page.html / home.html */
.dlx-page-hero {
	padding-block: clamp(2.5rem, 7vw, 4.5rem);
	background: var(--wp--preset--gradient--hero);
	text-align: center;
	margin-block-end: var(--wp--preset--spacing--50);
}

.dlx-page-hero h1,
.dlx-page-hero .wp-block-post-title,
.dlx-page-hero .wp-block-query-title {
	font-size: var(--wp--preset--font-size--xx-large);
	margin-block: 0.75rem 0;
}

.dlx-page-hero > * + * {
	margin-block-start: 1rem;
}

/* ------------------------------------------------------------------
 * 8. Home sections
 * ------------------------------------------------------------------ */
.dlx-step {
	position: relative;
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--dlx-radius-lg);
	background: linear-gradient(180deg, var(--wp--preset--color--base-2), transparent);
}

.dlx-section--alt .dlx-step {
	background: linear-gradient(180deg, var(--wp--preset--color--base), transparent);
}

.dlx-step > * {
	margin-block: 0;
}

.dlx-step > * + * {
	margin-block-start: 0.85rem;
}

.dlx-step h3 {
	padding-inline-end: 3.25rem;
}

.dlx-step__num {
	position: absolute;
	top: 1.25rem;
	right: 1.5rem;
	font-size: 3.5rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
	color: transparent;
	-webkit-text-stroke: 1px color-mix(in srgb, var(--wp--preset--color--primary) 60%, transparent);
	margin: 0 !important;
	user-select: none;
}

.dlx-compare {
	gap: clamp(1rem, 3vw, 2rem);
}

.dlx-compare__label {
	display: inline-block;
	padding: 0.3rem 0.8rem;
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-block-end: 0.85rem;
}

.dlx-compare__side--before .dlx-compare__label {
	background: color-mix(in srgb, var(--wp--preset--color--danger) 15%, transparent);
	color: var(--wp--preset--color--danger);
}

.dlx-compare__side--after .dlx-compare__label {
	background: color-mix(in srgb, var(--wp--preset--color--success) 15%, transparent);
	color: var(--wp--preset--color--success);
}

/* Pricing section background flourish */
.dlx-pricing-section::before {
	content: "";
	position: absolute;
	inset: 10% 20% auto;
	height: 360px;
	background: radial-gradient(closest-side, rgba(124, 58, 237, 0.18), transparent);
	pointer-events: none;
	z-index: 0;
}

.dlx-pricing-section > * {
	position: relative;
	z-index: 1;
}

.dlx-section--cta {
	padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
}

/* ------------------------------------------------------------------
 * 9. About
 * ------------------------------------------------------------------ */
.dlx-split {
	gap: clamp(1.5rem, 5vw, 4rem);
}

.dlx-split .wp-block-column > * + * {
	margin-block-start: 1rem;
}

.dlx-mission {
	text-align: center;
}

.dlx-mission__text {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.015em;
	text-wrap: balance;
	margin-block-start: 1rem;
}

.dlx-team-card {
	text-align: center;
}

.dlx-team-card__photo img {
	border: 3px solid var(--wp--preset--color--border);
}

.dlx-team-card__role {
	color: var(--wp--preset--color--primary-soft);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	margin-block-start: 0.25rem !important;
}

.dlx-timeline {
	position: relative;
	padding-inline-start: 2.25rem;
}

.dlx-timeline::before {
	content: "";
	position: absolute;
	left: 0.6rem;
	top: 0.4rem;
	bottom: 0.4rem;
	width: 2px;
	background: linear-gradient(180deg, var(--wp--preset--color--primary), var(--wp--preset--color--accent), transparent);
}

.dlx-timeline__item {
	position: relative;
	padding-block-end: 2rem;
}

.dlx-timeline__item > * {
	margin-block: 0;
}

.dlx-timeline__item > * + * {
	margin-block-start: 0.5rem;
}

.dlx-timeline__item::before {
	content: "";
	position: absolute;
	left: calc(-2.25rem + 0.6rem - 7px);
	top: 0.35rem;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--wp--preset--color--base);
	border: 3px solid var(--wp--preset--color--accent);
	box-shadow: 0 0 14px color-mix(in srgb, var(--wp--preset--color--accent) 60%, transparent);
}

.dlx-timeline__badge {
	display: inline-block;
	padding: 0.15rem 0.6rem;
	border-radius: 8px;
	background: color-mix(in srgb, var(--wp--preset--color--primary) 15%, transparent);
	color: var(--wp--preset--color--primary-soft);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
}

/* ------------------------------------------------------------------
 * 10. Services & contact
 * ------------------------------------------------------------------ */
.dlx-service-card {
	gap: 0.85rem;
}

.dlx-service-card > * {
	margin: 0 !important;
}

.dlx-service-card .dlx-muted {
	flex-grow: 1;
}

.dlx-service-card--cta {
	background:
		radial-gradient(500px 220px at 100% 0%, rgba(249, 115, 22, 0.16), transparent 70%),
		linear-gradient(160deg, rgba(219, 39, 119, 0.18), rgba(124, 58, 237, 0.14)) !important;
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 55%, var(--wp--preset--color--border)) !important;
}

.dlx-service-card__actions {
	margin-block-start: 0.5rem !important;
}

.dlx-contact {
	gap: clamp(1rem, 3vw, 2rem);
}

.dlx-contact__info h3 {
	margin-block-start: 1.75rem;
	font-size: var(--wp--preset--font-size--medium);
}

.dlx-map {
	margin-block-start: var(--wp--preset--spacing--50) !important;
}

.dlx-map img {
	border-radius: var(--dlx-radius-lg);
	border: 1px solid var(--wp--preset--color--border);
	width: 100%;
}

/* ------------------------------------------------------------------
 * 11. Blog
 * ------------------------------------------------------------------ */
.dlx-post-grid {
	padding-block-end: var(--wp--preset--spacing--60);
}

.dlx-post-grid .wp-block-post-template {
	gap: clamp(1rem, 2.5vw, 1.5rem);
}

.dlx-post-card {
	display: flex;
	flex-direction: column;
	padding: 0 !important;
	overflow: hidden;
}

.dlx-post-card > * {
	margin-inline: clamp(1.1rem, 2.5vw, 1.5rem) !important;
}

.dlx-post-card > .dlx-post-card__image {
	margin: 0 !important;
}

.dlx-post-card__image img {
	border-radius: 0;
}

.dlx-post-card__date {
	margin-block-start: 1.25rem !important;
}

.dlx-post-card__title {
	font-size: var(--wp--preset--font-size--large);
}

.dlx-post-card__title a:hover {
	color: var(--wp--preset--color--primary-soft);
}

.dlx-post-card__excerpt {
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--small);
	padding-block-end: 1.5rem;
}

.wp-block-post-excerpt__more-link {
	font-weight: 600;
}

.wp-block-query-pagination {
	margin-block-start: var(--wp--preset--spacing--50);
	gap: 0.4rem;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	padding: 0.45rem 0.8rem;
	border-radius: 10px;
	border: 1px solid var(--wp--preset--color--border);
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}

.wp-block-query-pagination .page-numbers.current {
	background: var(--wp--preset--gradient--primary);
	border-color: transparent;
	color: #fff;
}

.dlx-article {
	padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
}

.dlx-article__head {
	text-align: center;
}

.dlx-article__title {
	font-size: var(--wp--preset--font-size--xx-large);
	text-wrap: balance;
}

.dlx-article__meta {
	justify-content: center;
	gap: 0.75rem;
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--x-small);
}

.dlx-article__image img {
	border-radius: var(--dlx-radius-lg);
}

.dlx-entry {
	padding-block-end: var(--wp--preset--spacing--50);
}

.dlx-entry > h2 {
	font-size: var(--wp--preset--font-size--x-large);
	margin-block-start: 2.5rem;
}

.dlx-entry > h3 {
	margin-block-start: 2rem;
}

.dlx-entry :where(ul, ol) {
	padding-inline-start: 1.25rem;
}

.dlx-entry li + li {
	margin-block-start: 0.35rem;
}

.dlx-entry table {
	width: 100%;
	border-collapse: collapse;
}

.dlx-entry :where(th, td) {
	border: 1px solid var(--wp--preset--color--border);
	padding: 0.6rem 0.8rem;
}

.dlx-post-nav a {
	text-decoration: none;
	font-weight: 600;
}

.dlx-comments {
	margin-block-start: var(--wp--preset--spacing--50);
}

.dlx-comment {
	padding-block: 1rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

/* "Check marks" list style */
.is-style-dlx-checks {
	list-style: none;
	padding-inline-start: 0 !important;
}

.is-style-dlx-checks li {
	position: relative;
	padding-inline-start: 1.75rem;
}

.is-style-dlx-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35em;
	width: 1.05em;
	height: 1.05em;
	background: var(--wp--preset--color--success);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ------------------------------------------------------------------
 * 12. Footer
 * ------------------------------------------------------------------ */
.dlx-footer {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--base-2);
	font-size: var(--wp--preset--font-size--small);
}

.dlx-footer__cols {
	gap: clamp(1.5rem, 4vw, 3rem);
}

.dlx-footer__brand > * + * {
	margin-block-start: 1rem;
}

.dlx-footer__tagline {
	color: var(--wp--preset--color--accent);
	font-weight: 600;
}

.dlx-footer__title {
	font-size: var(--wp--preset--font-size--x-small);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--contrast);
	margin-block-end: 1rem;
}

.dlx-footer__menu {
	gap: 0.6rem;
}

.dlx-footer__menu .wp-block-navigation-item__content,
.dlx-footer a {
	color: var(--wp--preset--color--contrast-2);
	text-decoration: none;
}

.dlx-footer .wp-block-site-title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.dlx-footer__menu .wp-block-navigation-item__content:hover,
.dlx-footer a:hover {
	color: var(--wp--preset--color--contrast);
	text-decoration: underline;
}

.dlx-footer__bottom {
	margin-block-start: var(--wp--preset--spacing--50) !important;
	padding-block-start: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--x-small);
}

.dlx-footer__bottom p {
	margin: 0;
}

/* ------------------------------------------------------------------
 * 13. Forms
 * ------------------------------------------------------------------ */
:where(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], input[type="password"], input[type="number"], select, textarea) {
	width: 100%;
	min-height: 46px;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

:where(input, select, textarea):focus {
	border-color: var(--wp--preset--color--primary);
	box-shadow: var(--dlx-ring);
	outline: none;
}

::placeholder {
	color: var(--wp--preset--color--contrast-2);
	opacity: 0.8;
}

label {
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
}

.dlx-search {
	max-width: 520px;
	margin-inline: auto;
}

.dlx-search .wp-block-search__inside-wrapper {
	gap: 0.5rem;
	border: 0;
	padding: 0;
}

.dlx-search .wp-block-search__button {
	margin: 0;
	border-radius: 12px;
}

/* ------------------------------------------------------------------
 * 14. 404
 * ------------------------------------------------------------------ */
.dlx-404 {
	text-align: center;
	padding-block: clamp(4rem, 12vw, 8rem);
}

.dlx-404 > * + * {
	margin-block-start: 1.25rem;
}

.dlx-404__code {
	font-size: clamp(5rem, 18vw, 10rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.06em;
}

.dlx-404 h1 {
	font-size: var(--wp--preset--font-size--xx-large);
}

/* ------------------------------------------------------------------
 * 15. Motion preferences
 * ------------------------------------------------------------------ */
.dlx-reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.dlx-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.dlx-reveal {
		opacity: 1;
		transform: none;
	}
}

/* ------------------------------------------------------------------
 * 16. DatalumeX v2: logos, badges, product pages
 * ------------------------------------------------------------------ */

/* Light/dark logo pairs – the toggle swaps them (html[data-theme]).
   Inside "always dark" sections the dark-theme file is always used. */
.dlx-logo--light {
	display: none !important;
}

html[data-theme="light"] .dlx-logo--dark {
	display: none !important;
}

html[data-theme="light"] .dlx-logo--light {
	display: block !important;
}

html[data-theme="light"] .is-style-dlx-dark .dlx-logo--dark {
	display: block !important;
}

html[data-theme="light"] .is-style-dlx-dark .dlx-logo--light {
	display: none !important;
}

/* Header logo (~48 px high) */
.dlx-brand-logo {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	flex-shrink: 0;
}

.dlx-brand-logo img {
	display: block;
	height: 48px;
	width: auto;
	max-width: none;
}

@media (max-width: 420px) {
	.dlx-brand-logo img {
		height: 38px;
	}
}

/* Products dropdown */
.dlx-nav .wp-block-navigation__submenu-container {
	min-width: 220px !important;
	padding: 0.4rem !important;
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: 14px;
	background: var(--wp--preset--color--base-2) !important;
	box-shadow: var(--wp--preset--shadow--card);
}

/* Core forces black submenu text; use the theme colours in both schemes. */
.dlx-nav .wp-block-navigation__submenu-container,
.dlx-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	color: var(--wp--preset--color--contrast) !important;
}

.dlx-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 0.55rem 0.75rem;
	border-radius: 10px;
}

.dlx-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.dlx-nav .wp-block-navigation__submenu-container [aria-current="page"] {
	background: color-mix(in srgb, var(--wp--preset--color--primary) 14%, transparent);
	color: var(--wp--preset--color--contrast) !important;
}

/* Inside the mobile overlay the submenu is a plain indented list. */
.dlx-nav .is-menu-open .wp-block-navigation__submenu-container {
	min-width: 0 !important;
	padding: 0 0 0 1rem !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none;
}

.dlx-nav .wp-block-navigation-submenu__toggle {
	color: var(--wp--preset--color--contrast-2);
}

/* "Coming soon" badge (EduX, Power BI & Power Automate) */
.dlx-badge-soon {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	width: fit-content;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent) 55%, transparent);
	background: color-mix(in srgb, var(--wp--preset--color--accent) 14%, transparent);
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

p.dlx-badge-soon {
	margin-block: 0;
}

.dlx-card-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 0.85rem;
}

.dlx-card-head h2,
.dlx-card-head h3 {
	margin: 0 !important;
}

/* Product / About page heroes with a logo on top */
.dlx-hero__logo {
	display: flex;
	justify-content: center;
}

.dlx-hero__logo img {
	display: block;
	height: auto;
}

.dlx-product-hero {
	text-align: center;
}

.dlx-product-hero .dlx-hero__actions {
	gap: 0.85rem;
}

.dlx-download-meta {
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--x-small);
	margin-block-start: 0.85rem !important;
	line-height: 1.6;
}

.dlx-download-meta strong {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

.dlx-shot {
	margin-block-start: var(--wp--preset--spacing--50) !important;
	position: relative;
}

.dlx-shot img {
	display: block;
	width: 100%;
	height: auto;
}

.dlx-shot::after {
	content: "";
	position: absolute;
	left: 10%;
	right: 10%;
	bottom: -40px;
	height: 80px;
	background: radial-gradient(closest-side, rgba(219, 39, 119, 0.32), transparent);
	filter: blur(20px);
	z-index: -1;
}

/* Inline notice (e.g. "installer coming soon") */
.dlx-inline-notice {
	max-width: 40rem;
	margin-inline: auto !important;
	padding: 0.75rem 1rem;
	border-radius: 12px;
	border: 1px dashed var(--wp--preset--color--border);
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--small);
}

/* Free Preview vs. Full License */
.dlx-compare-table {
	max-width: 820px;
	margin-inline: auto !important;
}

.dlx-compare-table table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--dlx-radius-lg);
	overflow: hidden;
	background: var(--wp--preset--color--base-2);
	font-size: var(--wp--preset--font-size--small);
}

.dlx-compare-table :where(th, td) {
	padding: 0.85rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	text-align: center;
}

.dlx-compare-table :where(th, td):first-child {
	text-align: left;
}

.dlx-compare-table tr:last-child td {
	border-bottom: 0;
}

.dlx-compare-table thead th {
	background: var(--wp--preset--color--base-3);
	color: var(--wp--preset--color--contrast);
	font-weight: 700;
}

.dlx-compare-table td.is-yes,
.dlx-compare-table td:has(> .dlx-yes) {
	color: var(--wp--preset--color--success);
	font-weight: 700;
}

.dlx-compare-table td.is-no {
	color: var(--wp--preset--color--contrast-2);
}

@media (max-width: 520px) {
	.dlx-compare-table :where(th, td) {
		padding: 0.7rem 0.6rem;
	}
}

/* Hidden slot reserved for future Power BI screenshots (Services).
   Remove the "dlx-is-hidden" class in the editor to show it. */
.dlx-is-hidden {
	display: none !important;
}

/* Lists in service cards */
.dlx-examples {
	margin-block-start: 0.5rem !important;
}

/* "Who it's for" / "What we do" links */
.dlx-text-link a,
a.dlx-text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-weight: 600;
	text-decoration: none;
}

.dlx-text-link a::after,
a.dlx-text-link::after {
	content: "\2192";
}

/* Contact page */
.dlx-quick-links {
	list-style: none;
	padding: 0 !important;
	display: grid;
	gap: 0.5rem;
}

.dlx-contact__info h3 {
	margin-block-start: 1.75rem;
}

/* Footer */
.dlx-footer__logo img {
	display: block;
	width: 190px;
	height: auto;
}

.dlx-footer__tagline {
	color: var(--wp--preset--color--contrast-2);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.02em;
}

.dlx-footer__bottom .dlx-social {
	margin: 0;
}

/* Blog header: categories + subscribe */
.dlx-blog-tools {
	display: grid;
	gap: 1.25rem;
	justify-items: center;
	margin-block-start: 1.5rem !important;
}

.dlx-cat-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.dlx-cat-list a {
	display: inline-block;
	padding: 0.35rem 0.85rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	text-decoration: none;
}

.dlx-cat-list a:hover,
.dlx-cat-list a[aria-current="page"] {
	border-color: var(--wp--preset--color--primary);
	background: color-mix(in srgb, var(--wp--preset--color--primary) 12%, transparent);
}

.dlx-blog-tools .dlx-subscribe {
	width: min(100%, 460px);
	text-align: left;
}

/* No sideways scrolling on small screens */
html,
body {
	overflow-x: clip;
}

.wp-block-table {
	overflow-x: auto;
}
/* Home: the blog band disappears with its block (fewer than 2 posts). */
.dlx-section--blog:not(:has(.dlx-latest)) {
	display: none;
}

.dlx-steps--4 .dlx-step h3 {
	padding-inline-end: 2.5rem;
}

@media (min-width: 782px) and (max-width: 1100px) {
	.dlx-steps--4 {
		flex-wrap: wrap !important;
	}

	.dlx-steps--4 > .wp-block-column {
		flex-basis: calc(50% - 1rem) !important;
	}
}

.dlx-about-intro {
	text-align: center;
	padding-block-end: var(--wp--preset--spacing--50);
}

.dlx-about-logo img {
	width: min(360px, 80vw);
	height: auto;
}

.dlx-about-title {
	font-size: var(--wp--preset--font-size--x-large);
	margin-block-start: 1.25rem;
}

.dlx-product-hero h1 {
	font-size: var(--wp--preset--font-size--xx-large);
	text-wrap: balance;
}

.dlx-product-hero .dlx-hero__logo img {
	max-width: min(360px, 80vw);
}

.dlx-notify-card {
	margin-block-start: var(--wp--preset--spacing--40) !important;
}

.dlx-notify-card .dlx-subscribe__note {
	text-align: center;
}

.dlx-service-card .dlx-subscribe {
	width: 100%;
}

.dlx-service-card h2 {
	font-size: var(--wp--preset--font-size--x-large);
}