/*
 * CSSFlow website shared styles.
 * Scoped to CSSFlow templates to avoid affecting unrelated theme content.
 */

:root {
	--cssflow-accent: #5b4cf0;
	--cssflow-accent-2: #3f63f3;
	--cssflow-accent-dark: #493bd1;
	--cssflow-text: #172033;
	--cssflow-body: #465064;
	--cssflow-muted: #687386;
	--cssflow-border: #e2e6ef;
	--cssflow-surface: #ffffff;
	--cssflow-soft: #f7f8fc;
	--cssflow-soft-purple: #f5f3ff;
	--cssflow-radius: 18px;
	--cssflow-shadow: 0 18px 50px rgba(23, 32, 51, 0.08);
	color: var(--cssflow-text);
	font-size: 17px;
	line-height: 1.72;
}

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

.cssflow-container {
	margin-inline: auto;
	width: min(1180px, calc(100% - 40px));
}

.cssflow-container--wide {
	width: min(1320px, 90vw);
}

.cssflow-site h1,
.cssflow-site h2,
.cssflow-site h3 {
	color: var(--cssflow-text);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.13;
}
#primary.cssflow-site {
    margin-top: 0 !important;
}
.cssflow-site h1 {
	font-size: clamp(2.8rem, 5.6vw, 5.25rem);
	margin: 0 0 24px;
}

.cssflow-site h2 {
	font-size: clamp(2rem, 3.5vw, 3.2rem);
	margin: 0 0 18px;
}

.cssflow-site h3 {
	font-size: 1.26rem;
	margin: 0 0 10px;
}

.cssflow-site p {
	color: var(--cssflow-body);
	margin: 0 0 1.1em;
}

.cssflow-site a {
	color: var(--cssflow-accent);
	text-underline-offset: 0.16em;
}

.cssflow-site a:hover {
	color: var(--cssflow-accent-dark);
}

.cssflow-eyebrow {
	color: var(--cssflow-accent) !important;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	margin-bottom: 12px !important;
	text-transform: uppercase;
}

.cssflow-button {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 11px;
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	min-height: 50px;
	padding: 12px 21px;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, filter 160ms ease, transform 160ms ease;
}

.cssflow-button:hover {
	transform: translateY(-1px);
}

.cssflow-button:focus-visible,
.cssflow-site a:focus-visible,
.cssflow-site button:focus-visible,
.cssflow-product-header a:focus-visible,
.cssflow-product-header button:focus-visible {
	outline: 3px solid rgba(91, 76, 240, 0.28);
	outline-offset: 3px;
}

.cssflow-button--primary {
	background: var(--cssflow-accent);
	color: #ffffff !important;
}

.cssflow-button--gradient {
	background: linear-gradient(135deg, var(--cssflow-accent-2), #7654f6);
	box-shadow: 0 10px 26px rgba(91, 76, 240, 0.25);
}

.cssflow-button--gradient:hover {
	box-shadow: 0 13px 32px rgba(91, 76, 240, 0.32);
	filter: brightness(1.04);
}

.cssflow-button--secondary {
	background: #ffffff;
	border-color: #d7dce7;
	color: var(--cssflow-text) !important;
}

.cssflow-button--secondary:hover {
	border-color: #bfc6d4;
	box-shadow: 0 8px 22px rgba(23, 32, 51, 0.06);
}

.cssflow-site-body {
	background: #ffffff;
}

.cssflow-skip-link {
	background: #ffffff;
	border: 2px solid #5b4cf0;
	border-radius: 6px;
	color: #172033;
	font-weight: 700;
	left: 12px;
	padding: 9px 12px;
	position: fixed;
	top: -100px;
	z-index: 100000;
}

.cssflow-skip-link:focus {
	top: 12px;
}

.cssflow-product-shell {
	margin-inline: auto;
	width: min(1320px, 90vw);
}

.cssflow-product-header {
	backdrop-filter: blur(14px);
	background: rgba(255, 255, 255, 0.94);
	border-bottom: 1px solid #e3e7ef;
	position: sticky;
	top: 0;
	z-index: 1000;
}

body.admin-bar .cssflow-product-header {
	top: 32px;
}

.cssflow-product-header .cssflow-product-shell {
	align-items: center;
	display: grid;
	gap: 24px;
	grid-template-columns: auto 1fr auto;
	min-height: 74px;
}

.cssflow-brand {
	align-items: center;
	color: #172033 !important;
	display: inline-flex;
	gap: 11px;
	text-decoration: none !important;
}

.cssflow-brand__logo {
	border-radius: 10px;
	display: block;
	flex: 0 0 auto;
	height: 42px;
	width: 42px;
}

.cssflow-brand__text {
	display: grid;
	line-height: 1.12;
}

.cssflow-brand__text strong {
	font-size: 1.06rem;
	letter-spacing: -0.02em;
}

.cssflow-brand__text small {
	color: #778195;
	font-size: 0.68rem;
	font-weight: 600;
	margin-top: 3px;
}

.cssflow-product-nav {
	align-items: center;
	display: flex;
	gap: 1px;
	justify-content: center;
}

.cssflow-product-nav a {
	border-radius: 8px;
	color: #4f596b !important;
	font-size: 0.86rem;
	font-weight: 600;
	padding: 9px 9px;
	text-decoration: none !important;
}

.cssflow-product-nav a:hover,
.cssflow-product-nav a.is-active {
	background: #f4f3ff;
	color: #5b4cf0 !important;
}

.cssflow-product-header__actions {
	align-items: center;
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.cssflow-header-cta {
    font-size: 0.86rem;
    min-height: 42px;
    padding: 9px 14px;
    line-height: 25px;
}
a.cssflow-brand {
    outline: none;
}
.cssflow-product-menu-toggle {
	align-items: center;
	background: #ffffff;
	border: 1px solid #dfe3ec;
	border-radius: 9px;
	color: #172033;
	cursor: pointer;
	display: none;
	gap: 10px;
	min-height: 42px;
	padding: 8px 11px;
}

.cssflow-product-menu-toggle__label {
	font-size: 0.84rem;
	font-weight: 700;
}

.cssflow-product-menu-toggle__icon {
	display: grid;
	gap: 4px;
	width: 19px;
}

.cssflow-product-menu-toggle__icon span {
	background: currentColor;
	border-radius: 999px;
	display: block;
	height: 2px;
	transition: transform 160ms ease, opacity 160ms ease;
	width: 100%;
}

.cssflow-product-menu-toggle[aria-expanded="true"] .cssflow-product-menu-toggle__icon span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.cssflow-product-menu-toggle[aria-expanded="true"] .cssflow-product-menu-toggle__icon span:nth-child(2) {
	opacity: 0;
}

.cssflow-product-menu-toggle[aria-expanded="true"] .cssflow-product-menu-toggle__icon span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

.cssflow-product-mobile-nav {
	background: #ffffff;
	border-top: 1px solid #edf0f5;
	box-shadow: 0 18px 32px rgba(23, 32, 51, 0.08);
}

.cssflow-product-mobile-nav .cssflow-product-shell {
	display: grid;
	gap: 2px;
	padding-block: 12px 18px;
}

.cssflow-product-mobile-nav a {
	border-radius: 8px;
	color: #465064;
	font-size: 0.95rem;
	font-weight: 650;
	padding: 10px 11px;
	text-decoration: none;
}

.cssflow-product-mobile-nav a:hover {
	background: #f6f5ff;
	color: #5b4cf0;
}

.cssflow-product-mobile-nav__cta {
	background: linear-gradient(135deg, #3f63f3, #7654f6);
	color: #ffffff !important;
	margin-top: 6px;
	text-align: center;
}

.cssflow-product-mobile-nav__status {
	color: #778195;
	font-size: 0.82rem;
	font-weight: 650;
	padding: 12px 11px 2px;
}

.cssflow-code-block {
	position: relative;
}

.cssflow-copy-button {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 7px;
	color: #ffffff;
	cursor: pointer;
	font-size: 0.74rem;
	font-weight: 700;
	line-height: 1;
	padding: 7px 9px;
	position: absolute;
	right: 10px;
	top: 10px;
	z-index: 2;
}

.cssflow-copy-button:hover {
	background: rgba(255, 255, 255, 0.16);
}

.cssflow-product-footer {
	background: #101321;
	color: #ffffff;
	margin-top: 0;
}

.cssflow-product-footer__main {
	display: grid;
	gap: 80px;
	grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
	padding-block: 56px 44px;
}

.cssflow-brand--footer {
	color: #ffffff !important;
}

.cssflow-brand--footer .cssflow-brand__text small {
	color: #aeb6c8;
}

.cssflow-product-footer__brand {
	max-width: 560px;
}

.cssflow-product-footer__brand > p {
	color: #aeb6c8;
	font-size: 0.94rem;
	margin: 19px 0 0;
	max-width: 500px;
}

.cssflow-product-footer__links {
	display: grid;
	gap: 50px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cssflow-product-footer__links > div {
	display: grid;
	gap: 8px;
}

.cssflow-product-footer__links strong {
	color: #ffffff;
	font-size: 0.82rem;
	letter-spacing: 0.06em;
	margin-bottom: 4px;
	text-transform: uppercase;
}

.cssflow-product-footer__links a,
.cssflow-product-footer__links span {
	color: #b9c0d0 !important;
	font-size: 0.9rem;
	text-decoration: none !important;
}

.cssflow-product-footer__links a:hover {
	color: #ffffff !important;
}

.cssflow-product-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.cssflow-product-footer__bottom .cssflow-product-shell {
	align-items: center;
	display: flex;
	gap: 20px;
	justify-content: space-between;
	padding-block: 18px;
}

.cssflow-product-footer__bottom p {
	color: #8993a7;
	font-size: 0.78rem;
	margin: 0;
}

.cssflow-product-footer__bottom a {
	color: #c8c2ff !important;
	text-decoration: none;
}

body.cssflow-site-body #ast-scroll-top {
	background: linear-gradient(135deg, #3f63f3, #7654f6);
	border-radius: 9px;
	box-shadow: 0 8px 22px rgba(91, 76, 240, 0.24);
}

@media (max-width: 1040px) {
	.cssflow-product-nav {
		display: none;
	}

	.cssflow-product-menu-toggle {
		display: inline-flex;
	}
}

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

@media (max-width: 720px) {
	.cssflow-container,
	.cssflow-container--wide,
	.cssflow-product-shell {
		width: min(100% - 28px, 1320px);
	}
	.cssflow-product-header .cssflow-product-shell {
	    gap: 0;
	}
	.cssflow-site {
		font-size: 16px;
	}

	.cssflow-product-header .cssflow-product-shell {
		min-height: 66px;
	}

	.cssflow-brand__logo {
		height: 36px;
		width: 36px;
	}

	.cssflow-brand__text small {
		display: none;
	}

	.cssflow-header-cta {
		display: none;
	}

	.cssflow-product-menu-toggle {
		display: inline-flex;
	}

	.cssflow-product-footer__main {
		gap: 36px;
		grid-template-columns: 1fr;
		padding-block: 44px 34px;
	}

	.cssflow-product-footer__links {
		gap: 28px;
		grid-template-columns: 1fr 1fr;
		max-width: 520px;
	}

	.cssflow-product-footer__bottom .cssflow-product-shell {
		align-items: flex-start;
		flex-direction: column;
		gap: 6px;
	}
}
