/* ==========================================================================
   Dynamico Systems — static rebuild overrides
   Everything the static rebuild adds or changes vs. the original WP theme CSS.
   ========================================================================== */

/* ---------- WebGL hero ---------- */
/* the original site lets the hero artwork render at natural aspect and
   bleed below the hero section (z-index -1), showing through the
   transparent top of the next section — do NOT clip or cover-crop it */
.hero-area { position: relative; }
.hero-area .hero-bg { position: absolute; top: 0; left: 0; right: 0; z-index: -1; }
.hero-area .hero-bg img { width: 100%; height: auto; display: block; }
#hero-canvas {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	display: block;
	pointer-events: none;
}
.hero-area .container { position: relative; z-index: 2; }
/* the background keeps its full colour while the (fully transparent) WebGL
   scene draws over it — no dimming (user preference, 2026-07-16) */

/* hero option switcher chip (only shown on ?hero-picker) */
.hero-picker {
	position: fixed;
	bottom: 18px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 100000; /* above the cookie bar so /hero-options/ stays usable */
	background: rgba(19, 18, 57, .92);
	border: 1px solid var(--theme-color);
	border-radius: 30px;
	padding: 8px 14px;
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 14px;
	color: #fff;
}
.hero-picker button {
	background: transparent;
	border: 1px solid rgba(255,255,255,.25);
	color: #fff;
	border-radius: 20px;
	padding: 5px 12px;
	cursor: pointer;
	font-size: 13px;
}
.hero-picker button.active {
	background: var(--theme-color);
	border-color: var(--theme-color);
	color: #131239;
	font-weight: 700;
}

/* ---------- Scroll-driven Dynamico Suite box animation ---------- */
/* theme.css sets #page{overflow:hidden} (horizontal-clip fix for the Shell Element
   Designer page), but a hidden-overflow ancestor disables position:sticky, so the
   stage below never pins. overflow:clip clips identically without creating a scroll
   container; browsers without clip support keep theme.css's hidden. */
#page { overflow: clip; }
.scrolly-box { position: relative; }
.scrolly-stage {
	position: sticky;
	top: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.scrolly-track { height: 260vh; }           /* scroll distance that drives the animation */
/* Original WP markup structure (animated-box-wrap / -first / -last): every animation
   state comes from the theme's own rules in main-style.css — the walls fly out and
   STAY, the base stays, and feature-show.svg fades in over them. Here we only add
   proportional scaling so the 380px box layers and the 1139px feature-show
   composition stay registered at every viewport (the WP site used fixed px steps),
   sized to always fit inside the pinned stage. */
.scrolly-stage .animated-box-wrap {
	--bw: min(1139px, 94vw, calc((100vh - 150px) * 1.47));
	width: var(--bw);
	margin: 0 auto;
}
@supports (height: 100svh) {
	.scrolly-stage .animated-box-wrap { --bw: min(1139px, 94vw, calc((100svh - 150px) * 1.47)); }
}
.about-feature-show { display: block; width: 100%; height: auto; }
.scrolly-stage .animated-box-first img { width: calc(var(--bw) * 0.3336); }  /* 380/1139 */

/* scroll hint */
.scrolly-hint {
	position: absolute;
	bottom: 26px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-family: 'Nova Square', cursive;
	font-size: 15px;
	letter-spacing: .18em;
	text-transform: uppercase;
	opacity: .75;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	transition: opacity .4s ease;
}
.scrolly-hint i { color: var(--theme-color); animation: hint-bob 1.6s ease-in-out infinite; }
@keyframes hint-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(7px); }
}
.scrolly-done .scrolly-hint { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
	.scrolly-track { height: auto !important; }
	.scrolly-stage { position: static; min-height: 0; padding: 60px 0; }
}

/* ---------- Video modal (replaces wp-video-popup) ---------- */
.video-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(6, 6, 24, .88);
	padding: 4vmin;
}
.video-modal.open { display: flex; }
.video-modal .video-frame {
	position: relative;
	width: min(1100px, 92vw);
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 8px;
	box-shadow: 0 0 60px rgba(40, 211, 180, .25);
}
.video-modal iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; }
.video-modal .video-close {
	position: absolute;
	top: -44px;
	right: 0;
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 30px;
	cursor: pointer;
	line-height: 1;
}
.video-modal .video-close:hover { color: var(--theme-color); }
.hero-video-btn .video-btn { cursor: pointer; }

/* ---------- Compare editions popup (replaces Popup Maker) ---------- */
.ds-popup {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: flex-start;
	justify-content: center;
	background: rgba(6, 6, 24, .8);
	overflow-y: auto;
	padding: 40px 16px;
}
.ds-popup.open { display: flex; }
.ds-popup .ds-popup-inner {
	position: relative;
	background: #131239;
	border: 1px solid var(--theme-color);
	border-radius: 8px;
	max-width: 1000px;
	width: 100%;
	padding: 34px;
}
.ds-popup .ds-popup-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 26px;
	cursor: pointer;
}
.ds-popup .ds-popup-close:hover { color: var(--theme-color); }

/* comparison table inside popup */
.compare-table { width: 100%; border-collapse: collapse; color: #fff; font-size: 17px; }
.compare-table th, .compare-table td {
	border: 1px solid #41407B;
	padding: 12px 14px;
	text-align: center;
	background: #1a1946;
}
.compare-table td:first-child { text-align: left; }
.compare-table thead th { color: var(--theme-color); font-family: 'Nova Square', cursive; }
.compare-table .group-row td {
	background: transparent;
	border: 0;
	color: var(--theme-color);
	padding-top: 22px;
	font-size: 18px;
}
.compare-table .yes { color: var(--theme-color); font-size: 19px; }
.compare-table .no { color: #e5559b; font-size: 19px; }

/* ---------- Vanilla carousel (slick look-alike) ---------- */
.ds-carousel { position: relative; }
.ds-carousel .ds-carousel-viewport { overflow: hidden; }
.ds-carousel .ds-carousel-strip {
	display: flex;
	transition: transform .5s ease;
	will-change: transform;
}
.ds-carousel .ds-slide { flex: 0 0 33.3333%; min-width: 0; padding: 0 15px; }
@media (max-width: 991px) { .ds-carousel .ds-slide { flex-basis: 50%; } }
@media (max-width: 767px) { .ds-carousel .ds-slide { flex-basis: 100%; } }

.ds-carousel .slick-prev, .ds-carousel .slick-next { z-index: 5; }

/* ---------- FAQ accordion (replaces bootstrap.js behavior) ---------- */
.accordion-collapse { display: none; }
.accordion-collapse.show { display: block; }

/* FAQ search results */
.search_result { position: relative; }
.search_result ul {
	background: #1a1946;
	border: 1px solid var(--theme-color);
	border-radius: 6px;
	margin-top: 8px;
	max-height: 320px;
	overflow-y: auto;
	text-align: left;
}
.search_result ul li a {
	display: block;
	padding: 12px 16px;
	color: #fff;
	font-size: 16px;
	border-bottom: 1px solid #41407B;
}
.search_result ul li:last-child a { border-bottom: 0; }
.search_result ul li a:hover { color: var(--theme-color); }

/* ---------- Forms ---------- */
/* native selects styled like the original nice-select boxes */
.bordered-select-box select,
.try-now-form select,
.trial-form select {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	background: transparent url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2328D3B4' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 5px;
	color: #fff;
	font-size: 17px;
	padding: 14px 44px 14px 16px;
	cursor: pointer;
}
.bordered-select-box select:focus,
.try-now-form select:focus,
.trial-form select:focus { border-color: var(--theme-color); outline: none; }
.bordered-select-box select option,
.try-now-form select option,
.trial-form select option { background: #131239; color: #fff; }

.form-status { margin-top: 14px; font-size: 17px; display: none; }
.form-status.ok { display: block; color: var(--theme-color); }
.form-status.err { display: block; color: #e5559b; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- Cookie notice ---------- */
.cookie-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 99998;
	background: #0e0e2f;
	border-top: 1px solid var(--theme-color);
	color: #fff;
	padding: 14px 20px;
	display: none;
	gap: 16px;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	font-size: 15px;
}
.cookie-bar.visible { display: flex; }
.cookie-bar a { color: var(--theme-color); text-decoration: underline; }
.cookie-bar button {
	background: var(--theme-color);
	color: #131239;
	border: 0;
	border-radius: 5px;
	padding: 8px 22px;
	cursor: pointer;
	font-weight: 700;
}
.cookie-bar button.ghost { background: transparent; border: 1px solid #fff; color: #fff; font-weight: 400; }

/* ---------- Misc fixes for static build ---------- */
#scrollUp {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9999;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--theme-color);
	color: #131239;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
}
#scrollUp:hover { background: #fff; }

/* mobile menu behavior without metisMenu */
.sidebar-menu ul ul { display: none; }
.sidebar-menu li.mm-open > ul { display: block; }
.sidebar-menu .has-arrow { position: relative; }
.sidebar-menu .has-arrow::after {
	content: "";
	position: absolute;
	right: 6px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
	transition: transform .25s ease;
}
.sidebar-menu li.mm-open > .has-arrow::after { transform: translateY(-30%) rotate(-135deg); }

/* keyboard focus */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
	outline: 2px solid var(--theme-color);
	outline-offset: 2px;
}

/* the original .about-area top spacing relied on click-box; balance for scroll version */
.about-area { background-size: 100%; background-repeat: no-repeat; }

/* keyboard access for the hover dropdowns */
.mainmenu ul li:focus-within > ul {
	opacity: 1;
	visibility: visible;
	top: 100%;
}

/* keep the scroll-up button above the cookie bar while it is visible */
body.has-cookie-bar #scrollUp { bottom: 96px; }

/* mobile URL-bar-safe viewport units for the pinned stage */
@supports (height: 100svh) {
	.scrolly-stage { min-height: 100svh; }
}

/* lazy svg wrapper keeps layout height before inject */
.svg-wrapper { min-height: 260px; }

/* legal pages: the WP export leaves bare <li> text inheriting the body's
   dark colour; give list content the same treatment as paragraphs */
.licensing-content ul { padding-left: 22px; margin-bottom: 18px; }
.licensing-content ul li { color: #fff; line-height: 1.6; margin-bottom: 8px; list-style: disc; }
.licensing-content ol li { color: #fff; line-height: 1.6; margin-bottom: 8px; }
.licensing-content hr { border-color: rgba(255, 255, 255, .18); }

/* details/enquire buttons layout on product boxes */
.product-footer { text-align: center; }

/* edition pricing block on product cards */
.edition-prices {
	border: 1px solid var(--theme-color);
	border-radius: 6px;
	padding: 12px 10px;
	margin: 0 0 18px;
}
.edition-prices p { margin: 4px 0; font-size: 17px; }
.edition-prices p span {
	color: var(--theme-color);
	font-family: 'Nova Square', cursive;
	margin-right: 6px;
}

/* ---------- ROI calculator page ---------- */
.roi-title { text-align: center; }
.roi-grid { align-items: stretch; }
.roi-inputs {
	border-top: 5px solid var(--theme-color);
	border-radius: 0 0 10px 10px;
	box-shadow: 0 5px 10px var(--theme-color);
	padding: 30px;
	height: 100%;
}
.roi-results {
	border-top: 5px solid #2e8b57;
	border-radius: 0 0 10px 10px;
	box-shadow: inset 0 0 6px 0 green;
	padding: 30px;
	height: 100%;
	color: #fff;
}
.roi-results h3 { font-family: 'Nova Square', cursive; }
.roi-field { margin-bottom: 26px; }
.roi-field label {
	color: #fff;
	font-size: 18px;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}
.roi-field input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 15px;
	border-radius: 8px;
	background: #131239;
	border: 1px solid #41407B;
	outline: none;
}
.roi-field input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 25px;
	height: 25px;
	border-radius: 50%;
	background: var(--theme-color);
	border: 2px solid #fff;
	cursor: pointer;
}
.roi-field input[type="range"]::-moz-range-thumb {
	width: 25px;
	height: 25px;
	border-radius: 50%;
	background: var(--theme-color);
	border: 2px solid #fff;
	cursor: pointer;
}
.roi-caption { color: var(--theme-color); text-align: center; margin-top: 6px; font-size: 18px; }
.roi-hr { border-color: rgba(255, 255, 255, .5); margin: 26px 0; }
.roi-help { position: relative; display: inline-flex; cursor: help; }
.roi-help img { width: 18px; height: 18px; }
.roi-help::after {
	content: attr(data-tip);
	position: absolute;
	left: 50%;
	bottom: 130%;
	transform: translateX(-50%);
	width: 280px;
	background: #131239;
	border: 1px solid var(--theme-color);
	color: #fff;
	font-size: 15px;
	line-height: 1.4;
	padding: 10px;
	border-radius: 6px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease;
	z-index: 50;
}
.roi-help:hover::after, .roi-help:focus::after { opacity: 1; }
.roi-result-card {
	border: 1px solid #41407B;
	border-radius: 5px;
	padding: 14px;
	height: 100%;
}
.roi-result-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 17px;
	margin-bottom: 12px;
}
.roi-result-value {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 26px;
	font-family: 'Nova Square', cursive;
	color: #fff;
	min-height: 70px;
}
.roi-result-value img { width: 56px; height: 56px; object-fit: contain; }
.roi-cta .site-btn { margin: 0 8px; }
@media (max-width: 991px) {
	.roi-results { margin-top: 40px; }
}

/* ---------- product page (was WooCommerce single product) ---------- */
.single-product-area .woocommerce-breadcrumb { color: #fff; font-size: 16px; }
.single-product-area .woocommerce-breadcrumb a { color: #7978B9; }
.single-product-area .woocommerce-breadcrumb a:hover { color: var(--theme-color); }
.single-product-summary h2 { font-size: 42px; }
.single-product-summary .prod-tax { font-size: 20px; line-height: 1.7; }
.single-product-summary .prod-version { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.single-product-summary .version-history-btn { font-size: 15px; padding: 8px 18px; }
.prod-includes { margin: 10px 0 30px; }
.prod-includes li { color: #fff; padding: 4px 0; }
.prod-includes i { margin-right: 10px; }
.prod-actions { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.prod-action-btn {
	display: block;
	width: 100%;
	text-align: center;
	background: transparent;
	border: 1px solid var(--theme-color);
	color: #fff;
	padding: 15px 10px;
	border-radius: 4px;
	font-size: 17px;
	letter-spacing: .04em;
	cursor: pointer;
	transition: all .3s ease-out;
}
.prod-action-btn:hover { background: var(--theme-color); color: #131239; }
.prod-note { margin-top: 22px; color: #ccc; }
.single-product-img img { max-width: 100%; }

/* comparison table (matches Popup Maker styling) */
.software-comparison-table { width: 100%; border-collapse: collapse; color: #fff; font-size: 16px; }
.software-comparison-table th, .software-comparison-table td {
	border: 1px solid #41407B;
	padding: 11px 13px;
	text-align: center;
	background: #1a1946;
}
.software-comparison-table td:first-child { text-align: left; }
.software-comparison-table thead th { color: var(--theme-color); font-family: 'Nova Square', cursive; background: transparent; }
.software-comparison-table .fa-check-circle { color: var(--theme-color); }
.software-comparison-table .fa-times { color: #e5559b; }
.software-comparison-table .comparison-group td,
.software-comparison-table .group td {
	background: transparent;
	border: 0;
	color: var(--theme-color);
	padding-top: 20px;
}

/* error 404 */
.error-404-area p { font-size: 20px; }

/* accessibility: skip link */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--theme-color);
	color: #131239;
	padding: 10px 18px;
	z-index: 100000;
	border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }
