/* ==========================================================================
   Wise Addons: base styles loaded on every page.
   Tokens, typography, layout, buttons, header, footer, page hero, prose.
   ========================================================================== */

:root {
	--wa-primary: #5b4cf5;
	--wa-primary-strong: #4334e0;
	--wa-violet: #6d5dfc;
	--wa-teal: #22b8cf;
	--wa-mint: #2bd4c4;
	--wa-pink: #ff4d8d;
	--wa-dark: #0e1120;
	--wa-dark-2: #161a2d;
	--wa-dark-3: #20253d;
	--wa-bg: #f5f6fb;
	--wa-surface: #fff;
	--wa-text: #161a2b;
	--wa-ink-2: #3a3f57;
	--wa-muted: #5d6380;
	--wa-subtle: #8a90a8;
	--wa-border: #e6e8f1;
	--wa-border-strong: #d6d9e7;
	--wa-tint: #f0eeff;
	--wa-gradient: linear-gradient(135deg, #6d5dfc 0%, #22b8cf 70%, #2bd4c4 100%);
	--wa-gradient-text: linear-gradient(100deg, #5b4cf5 5%, #6d5dfc 35%, #1497b8 78%, #0fa3a0 100%);
	--wa-font: var(--wp--preset--font-family--jakarta, "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	--wa-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	--wa-radius-sm: 10px;
	--wa-radius: 16px;
	--wa-radius-lg: 24px;
	--wa-radius-xl: 32px;
	--wa-shadow-sm: 0 1px 2px rgba(22, 26, 43, .06);
	--wa-shadow: 0 1px 2px rgba(22, 26, 43, .05), 0 12px 32px -14px rgba(22, 26, 43, .18);
	--wa-shadow-lg: 0 2px 6px rgba(22, 26, 43, .05), 0 40px 80px -28px rgba(53, 40, 170, .35);
	--wa-container: 1200px;
	--wa-gutter: clamp(16px, 4vw, 32px);
	--wa-header-h: 72px;
	--wa-ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base ------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--wa-header-h) + 24px);
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	font-family: var(--wa-font);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--wa-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

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

svg { flex-shrink: 0; }

a {
	color: var(--wa-primary);
	text-decoration-thickness: .08em;
	text-underline-offset: .2em;
	transition: color .15s;
}

a:hover { color: var(--wa-primary-strong); }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	font-weight: 750;
	line-height: 1.15;
	letter-spacing: -.02em;
	color: inherit;
	text-wrap: balance;
}

p { margin: 0 0 1em; }

button { font: inherit; }

:focus-visible {
	outline: 3px solid var(--wa-primary);
	outline-offset: 3px;
}

::selection { background: #dcd7ff; color: var(--wa-text); }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	clip: auto;
	width: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	white-space: normal;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 12px;
	z-index: 1000;
	padding: 12px 18px;
	border-radius: 12px;
	background: var(--wa-dark);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.skip-link:focus { top: 12px; color: #fff; }

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

.container {
	width: 100%;
	max-width: calc(var(--wa-container) + var(--wa-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--wa-gutter);
}

.container--narrow { max-width: calc(760px + var(--wa-gutter) * 2); }

.site-main { display: block; }

.section { position: relative; padding-block: clamp(72px, 10vw, 128px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--tint { background: var(--wa-bg); }
.section--dark { background: var(--wa-dark); color: #c9cde0; }
.section--dark :focus-visible { outline-color: #a99fff; }

.section-head { max-width: 780px; margin: 0 auto clamp(40px, 5vw, 64px); }
.section-head--center { text-align: center; }
.section-head--left { margin-inline: 0; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wa-primary);
}

.eyebrow::before,
.section-head--center .eyebrow::after {
	content: "";
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background: var(--wa-gradient);
}

.section-title {
	margin: 0;
	font-size: clamp(2rem, 1.25rem + 2.7vw, 3.25rem);
	font-weight: 780;
	line-height: 1.08;
	letter-spacing: -.035em;
}

.section-lead {
	max-width: 62ch;
	margin: 20px auto 0;
	font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
	color: var(--wa-muted);
}

.section-head--left .section-lead { margin-left: 0; }
.section--dark .section-title { color: #fff; }
.section--dark .section-lead { color: #a9aec6; }
.section--dark .eyebrow { color: #b4abff; }

.text-gradient {
	background: var(--wa-gradient-text);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.section--dark .text-gradient,
.text-gradient--light { background-image: linear-gradient(100deg, #b4abff 0%, #8f84ff 30%, #5fd6e6 75%, #5ee6d8 100%); }

/* Buttons ---------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	min-height: 46px;
	padding: .7em 1.3em;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: .975rem;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: transform .2s var(--wa-ease), box-shadow .2s, background-color .2s, border-color .2s, color .2s;
}

.btn:active { transform: translateY(0); }

.btn--primary {
	background: linear-gradient(135deg, #5b4cf5, #6d5dfc);
	color: #fff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 20px -8px rgba(91, 76, 245, .7);
}

.btn--primary:hover {
	color: #fff;
	background: linear-gradient(135deg, #4b3cec, #5f50f7);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 14px 28px -10px rgba(91, 76, 245, .75);
	transform: translateY(-1px);
}

.btn--secondary {
	background: #fff;
	color: var(--wa-text);
	border-color: var(--wa-border-strong);
	box-shadow: var(--wa-shadow-sm);
}

.btn--secondary:hover {
	color: var(--wa-text);
	border-color: #b9bdd3;
	transform: translateY(-1px);
}

.btn--light { background: #fff; color: var(--wa-primary-strong); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .45); }
.btn--light:hover { color: var(--wa-dark); transform: translateY(-1px); }

.btn--ghost-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .16); color: #fff; }

.btn--sm { min-height: 40px; padding: .5em 1.05em; font-size: .9rem; }
.btn--lg { min-height: 54px; padding: .85em 1.6em; font-size: 1.03rem; }

/* Chips and badges ------------------------------------------------------- */

.chip {
	display: inline-flex;
	align-items: center;
	padding: 6px 13px;
	border: 1px solid var(--wa-border);
	border-radius: 999px;
	background: #fff;
	color: var(--wa-ink-2);
	font-size: .8125rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

a.chip:hover { border-color: #c9c3ff; color: var(--wa-primary-strong); background: var(--wa-tint); }

.chip--cat { border-color: transparent; background: var(--wa-tint); color: var(--wa-primary-strong); }

.badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 8px;
	border-radius: 999px;
	font-size: .6875rem;
	font-weight: 750;
	letter-spacing: .05em;
	line-height: 1.2;
	text-transform: uppercase;
	vertical-align: middle;
}

.badge--new { background: #ffe4ef; color: #b0124f; }
.badge--free { background: #d9f8f2; color: #05665c; }

/* Header ----------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .8);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.admin-bar .site-header { top: 32px; }

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}

.site-header.is-scrolled {
	background: rgba(255, 255, 255, .9);
	border-bottom-color: var(--wa-border);
	box-shadow: 0 8px 24px -20px rgba(22, 26, 43, .4);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: var(--wa-header-h);
}

.brand {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 11px;
	color: var(--wa-text);
	font-size: 1.125rem;
	font-weight: 780;
	letter-spacing: -.025em;
	text-decoration: none;
}

.brand:hover { color: var(--wa-text); }
.brand__mark { width: 38px; height: 38px; }
.brand__custom { width: auto; max-height: 40px; }

.site-nav { display: flex; flex: 1; align-items: center; gap: 16px; }
.site-nav__menu { display: flex; flex: 1; justify-content: center; }

.site-nav .menu {
	display: flex;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav .menu a {
	display: block;
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--wa-ink-2);
	font-size: .95rem;
	font-weight: 580;
	text-decoration: none;
	transition: background-color .15s, color .15s;
}

.site-nav .menu a:hover { background: #f1f2f8; color: var(--wa-text); }

.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current-menu-ancestor > a,
.site-nav .current_page_parent > a {
	background: var(--wa-tint);
	color: var(--wa-primary-strong);
}

.nav-toggle { display: none; }

@media (max-width: 960px) {
	.nav-toggle {
		display: inline-grid;
		place-items: center;
		width: 44px;
		height: 44px;
		margin-left: auto;
		padding: 0;
		border: 1px solid var(--wa-border);
		border-radius: 12px;
		background: #fff;
		color: var(--wa-text);
		cursor: pointer;
	}

	.nav-toggle .nav-toggle__open,
	.nav-toggle .nav-toggle__close { display: grid; place-items: center; }

	.nav-toggle .nav-toggle__close,
	.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }

	.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: grid; }

	.site-header.is-nav-open {
		background: #fff;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		border-bottom-color: var(--wa-border);
	}

	.site-nav {
		position: fixed;
		top: var(--wa-nav-top, var(--wa-header-h));
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 99;
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
		padding: 12px var(--wa-gutter) 32px;
		overflow-y: auto;
		background: #fff;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .2s, transform .2s var(--wa-ease), visibility 0s .2s;
	}

	.site-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity .2s, transform .25s var(--wa-ease);
	}

	.site-nav__menu { display: block; flex: none; }
	.site-nav .menu { flex-direction: column; gap: 0; }

	.site-nav .menu a {
		padding: 16px 6px;
		border-bottom: 1px solid var(--wa-border);
		border-radius: 0;
		font-size: 1.25rem;
		font-weight: 680;
		letter-spacing: -.01em;
	}

	.site-nav .menu a:hover,
	.site-nav .current-menu-item > a,
	.site-nav .current_page_item > a,
	.site-nav .current_page_parent > a { background: transparent; color: var(--wa-primary); }

	.site-nav__actions .btn { width: 100%; min-height: 54px; font-size: 1.05rem; }

	body.nav-open { overflow: hidden; }
}

/* Page hero (pages, blog, catalog) --------------------------------------- */

.page-hero,
.single-hero,
.not-found {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); text-align: center; }

.page-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(55% 80% at 50% -15%, rgba(109, 93, 252, .16), transparent 70%),
		radial-gradient(35% 60% at 92% 0%, rgba(34, 184, 207, .14), transparent 70%),
		linear-gradient(180deg, #fafaff 0%, #fff 100%);
}

.page-hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(91, 76, 245, .16) 1px, transparent 1.2px);
	background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 75%);
	mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 75%);
}

.page-hero__title {
	max-width: 18ch;
	margin: 0 auto;
	font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -.042em;
}

.page-hero__lead {
	max-width: 62ch;
	margin: 20px auto 0;
	color: var(--wa-muted);
	font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
}

.page-hero__lead p { margin: 0; }

.page-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 32px;
}

.page-hero__search { max-width: 560px; margin: 32px auto 0; }

/* Search form ------------------------------------------------------------ */

.search-form {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 6px 6px 48px;
	border: 1px solid var(--wa-border-strong);
	border-radius: 999px;
	background: #fff;
	box-shadow: var(--wa-shadow-sm);
	transition: border-color .15s, box-shadow .15s;
}

.search-form:focus-within { border-color: var(--wa-primary); box-shadow: 0 0 0 4px rgba(91, 76, 245, .16); }
.search-form__icon { position: absolute; left: 18px; color: var(--wa-subtle); }

.search-form__input {
	flex: 1;
	min-width: 0;
	padding: 8px 4px;
	border: 0;
	background: transparent;
	color: var(--wa-text);
	font: inherit;
	font-size: 1rem;
}

.search-form__input:focus { outline: none; }
.search-form__input::placeholder { color: var(--wa-subtle); }

/* Prose (post and page content) ------------------------------------------ */

.prose {
	color: #272c41;
	font-size: 1.125rem;
	line-height: 1.78;
}

.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.3em; }
.prose > h2 { margin-top: 2em; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem); letter-spacing: -.03em; }
.prose > h3 { margin-top: 1.7em; font-size: 1.4rem; letter-spacing: -.02em; }
.prose > h4 { margin-top: 1.5em; font-size: 1.15rem; }
.prose > h2 + *,
.prose > h3 + *,
.prose > h4 + * { margin-top: .7em; }
.prose a { font-weight: 560; }
.prose strong { color: var(--wa-text); font-weight: 700; }
.prose img { border-radius: var(--wa-radius); }
.prose ul,
.prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--wa-primary); }

.prose blockquote {
	margin-inline: 0;
	padding: 6px 0 6px 24px;
	border-left: 3px solid var(--wa-primary);
	color: var(--wa-text);
	font-size: 1.25rem;
	font-weight: 540;
	line-height: 1.6;
}

.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite { display: block; margin-top: 8px; color: var(--wa-muted); font-size: .95rem; font-style: normal; }

.prose code,
.prose kbd {
	padding: .15em .4em;
	border-radius: 6px;
	background: #f1f0ff;
	color: #4335d6;
	font-family: var(--wa-mono);
	font-size: .88em;
}

.prose pre {
	overflow: auto;
	padding: 20px 24px;
	border-radius: var(--wa-radius);
	background: var(--wa-dark);
	color: #e6e8f5;
	font-size: .9rem;
	line-height: 1.65;
}

.prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.prose hr { height: 1px; margin-block: 3em; border: 0; background: var(--wa-border); }
.prose figure { margin-inline: 0; }
.prose figcaption,
.wp-caption-text { margin-top: 10px; color: var(--wa-muted); font-size: .875rem; text-align: center; }

.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th,
.prose td { padding: 10px 12px; border-bottom: 1px solid var(--wa-border); text-align: left; }
.prose th { color: var(--wa-text); font-weight: 700; }

.prose .alignwide {
	width: min(1200px, calc(100vw - var(--wa-gutter) * 2));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.prose .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.prose .alignfull img,
.prose .alignwide img { width: 100%; }

.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.wp-caption { max-width: 100%; }
.gallery-caption { display: block; }
.bypostauthor > .comment-body .fn { color: var(--wa-primary-strong); }
.sticky.post-card { border-color: #d9d4ff; }

.page-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2em; font-weight: 600; }

/* Elementor content: no theme spacing or width limits. */
.entry-content--elementor,
.full-width-content { width: 100%; }

/* Block content in the Full Width template: wide column unless a block asks for full width. */
.full-width-content > :where(:not(.elementor):not(.alignfull)) {
	max-width: calc(var(--wa-container) + var(--wa-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--wa-gutter);
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
	position: relative;
	overflow: hidden;
	padding: clamp(56px, 8vw, 88px) 0 28px;
	background: var(--wa-dark);
	color: #b4b9d1;
	font-size: .975rem;
}

.site-footer::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(109, 93, 252, .7), rgba(34, 184, 207, .7), transparent);
}

.site-footer::after {
	content: "";
	position: absolute;
	top: -40%;
	left: -10%;
	width: 60%;
	height: 90%;
	background: radial-gradient(closest-side, rgba(91, 76, 245, .16), transparent);
	pointer-events: none;
}

.site-footer .container { position: relative; z-index: 1; }

.site-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
	gap: 48px;
}

.site-footer .brand { color: #fff; }
.site-footer__tagline { margin: 20px 0 6px; color: #fff; font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; }
.site-footer__about { max-width: 36ch; margin-bottom: 22px; }

.site-footer__title {
	margin: 6px 0 18px;
	color: #fff;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.site-footer__links { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.site-footer__links a { color: #b4b9d1; text-decoration: none; }
.site-footer__links a:hover { color: #fff; text-decoration: underline; }

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 28px;
	margin-top: clamp(40px, 6vw, 64px);
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .08);
	font-size: .875rem;
}

.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: #fff; }
.site-footer__legal { color: #8b91ad; }

.site-footer__top-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
}

.site-footer :focus-visible { outline-color: #a99fff; }

@media (max-width: 900px) {
	.site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
	.site-footer__brand { grid-column: 1 / -1; }
}

/* Reveal on scroll (only when JS confirms motion is OK) ------------------ */

.js-reveal [data-reveal] {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .7s var(--wa-ease), transform .7s var(--wa-ease);
}

.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

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