/**
 * GutSlider site header (gsl/header) and footer (gsl/footer), shared by the landing pages and
 * the blog. Tokens and buttons come from base.css.
 */

/* No block-gap strips around the header, main area and footer. */
:where(.gsl-landing-page, .gsl-blog-page, .gsl-post-page, .gsl-docs-page) .wp-site-blocks > * {
	margin-block-start: 0 !important;
}

.gsl-masthead {
	display: contents;
}

.gsl-logo {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 10px;
	color: var(--gsl-ink);
	font-family: var(--gsl-display);
	font-size: 1.375rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	text-decoration: none;
}

.gsl-logo__mark {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: linear-gradient(145deg, #7b3bff, var(--gsl-brand) 55%, #3a0aa8);
	box-shadow: 0 6px 16px -6px rgba(90, 24, 230, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3);
	color: #fff;
	transition: transform 0.5s var(--gsl-spring);
}

.gsl-logo__mark svg {
	width: 18px;
	height: 17px;
}

.gsl-logo:hover .gsl-logo__mark {
	transform: rotate(-8deg) scale(1.06);
}

/* announcement */
.gsl-announce {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 8px 52px;
	background:
		linear-gradient(90deg, rgba(90, 24, 230, 0.1), rgba(255, 107, 91, 0.1), rgba(242, 183, 5, 0.12)),
		var(--gsl-paper);
	border-bottom: 1px solid var(--gsl-line);
	color: var(--gsl-ink-2);
	font-size: 0.875rem;
	text-align: center;
}

.gsl-no-announce .gsl-announce,
.gsl-announce.is-closed {
	display: none;
}

.gsl-announce__text {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 12px;
	margin: 0;
}

.gsl-announce__tag {
	padding: 2px 9px;
	border-radius: 99px;
	background: var(--gsl-brand);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.gsl-announce a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--gsl-brand);
	font-weight: 500;
	text-decoration: none;
}

.gsl-announce a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.gsl-announce a .gsl-icon {
	width: 15px;
	height: 15px;
	transition: transform 0.3s var(--gsl-ease);
}

.gsl-announce a:hover .gsl-icon {
	transform: translateX(3px);
}

.gsl-announce__close {
	position: absolute;
	top: 50%;
	right: 14px;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	margin-top: -15px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--gsl-ink-3);
	cursor: pointer;
}

.gsl-announce__close:hover {
	background: rgba(22, 18, 31, 0.06);
	color: var(--gsl-ink);
}

.gsl-announce__close .gsl-icon {
	width: 16px;
	height: 16px;
}

/* bar */
.gsl-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 900;
	margin: 0 !important;
	padding: 12px var(--gsl-gutter);
	background: linear-gradient(var(--gsl-cream) 55%, transparent);
	transition: background-color 0.4s;
}

.gsl-header.is-scrolled {
	background: transparent;
}

.gsl-header__bar {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	max-width: 1280px;
	height: 64px;
	margin-inline: auto;
	padding: 0 10px 0 14px;
	border: 1px solid transparent;
	border-radius: 22px;
	transition: max-width 0.6s var(--gsl-ease), height 0.6s var(--gsl-ease), background-color 0.4s, border-color 0.4s, box-shadow 0.5s;
}

.gsl-header.is-scrolled .gsl-header__bar,
.gsl-header.is-open .gsl-header__bar {
	max-width: 1160px;
	height: 60px;
	border-color: rgba(255, 255, 255, 0.9);
	background: rgba(255, 253, 248, 0.78);
	box-shadow: 0 1px 0 rgba(22, 18, 31, 0.04), 0 16px 40px -20px rgba(40, 20, 90, 0.35);
	backdrop-filter: blur(18px) saturate(1.5);
	-webkit-backdrop-filter: blur(18px) saturate(1.5);
}

.gsl-nav {
	position: relative;
	margin-inline: auto;
}

.gsl-nav__list {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gsl-nav__list li {
	margin: 0;
}

.gsl-nav__link {
	display: block;
	padding: 9px 15px;
	border-radius: 99px;
	color: var(--gsl-ink-2);
	font-size: 0.9375rem;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.25s;
}

.gsl-nav__link:hover,
.gsl-nav__link[aria-current] {
	color: var(--gsl-ink);
}

.gsl-nav__pill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: var(--w, 0);
	border-radius: 99px;
	background: var(--gsl-white);
	box-shadow: 0 1px 2px rgba(22, 18, 31, 0.08), 0 4px 12px -6px rgba(40, 20, 90, 0.25);
	opacity: 0;
	transform: translateX(var(--x, 0));
	transition: transform 0.5s var(--gsl-ease), width 0.5s var(--gsl-ease), opacity 0.3s;
	pointer-events: none;
}

.gsl-nav.has-active .gsl-nav__pill {
	opacity: 1;
}

.gsl-header__actions {
	display: flex;
	flex: none;
	align-items: center;
	gap: 6px;
}

.gsl-header__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 9px 12px;
	border-radius: 99px;
	color: var(--gsl-ink-2);
	font-size: 0.9375rem;
	text-decoration: none;
	transition: color 0.25s, background-color 0.25s;
}

.gsl-header__link:hover {
	background: rgba(22, 18, 31, 0.05);
	color: var(--gsl-ink);
}

.gsl-header__link .gsl-icon {
	width: 14px;
	height: 14px;
	opacity: 0.6;
}

.gsl-header__cta {
	min-height: 44px;
	padding-inline: 20px;
}

.gsl-burger {
	position: relative;
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--gsl-line-2);
	border-radius: 14px;
	background: var(--gsl-white);
	cursor: pointer;
}

.gsl-burger span {
	position: absolute;
	left: 13px;
	width: 16px;
	height: 1.8px;
	border-radius: 2px;
	background: var(--gsl-ink);
	transition: transform 0.4s var(--gsl-ease), top 0.4s var(--gsl-ease);
}

.gsl-burger span:first-child { top: 17px; }
.gsl-burger span:last-child { top: 24px; }

.gsl-header.is-open .gsl-burger span:first-child {
	top: 20.5px;
	transform: rotate(45deg);
}

.gsl-header.is-open .gsl-burger span:last-child {
	top: 20.5px;
	transform: rotate(-45deg);
}

.gsl-menu {
	position: absolute;
	top: calc(100% - 4px);
	left: var(--gsl-gutter);
	right: var(--gsl-gutter);
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	padding: 14px;
	border: 1px solid var(--gsl-line);
	border-radius: 24px;
	background: var(--gsl-paper);
	box-shadow: var(--gsl-shadow-lg);
	animation: gsl-menu-in 0.45s var(--gsl-ease);
}

.gsl-menu[hidden] {
	display: none;
}

@keyframes gsl-menu-in {
	from {
		opacity: 0;
		transform: translateY(-10px) scale(0.98);
	}
}

.gsl-menu__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gsl-menu__list li {
	margin: 0;
	animation: gsl-intro 0.5s var(--gsl-ease) both;
}

.gsl-menu__list li:nth-child(2) { animation-delay: 0.03s; }
.gsl-menu__list li:nth-child(3) { animation-delay: 0.06s; }
.gsl-menu__list li:nth-child(4) { animation-delay: 0.09s; }
.gsl-menu__list li:nth-child(5) { animation-delay: 0.12s; }
.gsl-menu__list li:nth-child(6) { animation-delay: 0.15s; }

.gsl-menu__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 12px;
	border-bottom: 1px solid var(--gsl-line);
	color: var(--gsl-ink);
	font-family: var(--gsl-display);
	font-size: 1.375rem;
	text-decoration: none;
}

.gsl-menu__list a .gsl-icon {
	color: var(--gsl-ink-3);
}

.gsl-menu__more {
	display: flex;
	gap: 8px;
	padding: 16px 12px 6px;
}

.gsl-menu__more a {
	color: var(--gsl-ink-2);
	font-size: 0.9375rem;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.gsl-menu__more a + a::before {
	content: "·";
	margin-right: 8px;
	color: var(--gsl-ink-3);
}

.gsl-menu__ctas {
	display: grid;
	gap: 8px;
	padding: 12px 0 0;
}

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

.gsl-footer {
	--mx: 50%;
	position: relative;
	margin: 0 !important;
	overflow: hidden;
	border-top: 1px solid var(--gsl-line);
	background:
		radial-gradient(50% 60% at 0% 0%, rgba(139, 92, 246, 0.08), transparent 70%),
		radial-gradient(40% 50% at 100% 10%, rgba(242, 183, 5, 0.08), transparent 70%),
		var(--gsl-paper);
	color: var(--gsl-ink-2);
}

.gsl-footer__inner {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin-inline: auto;
	padding: clamp(56px, 8vw, 96px) var(--gsl-gutter) 0;
}

.gsl-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
	gap: 40px;
}

.gsl-footer__brand p {
	max-width: 34ch;
	margin: 18px 0 20px;
	font-size: 1rem;
	line-height: 1.6;
}

.gsl-footer__rating {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid var(--gsl-line);
	border-radius: 99px;
	background: var(--gsl-white);
	color: var(--gsl-ink-2);
	font-size: 0.8125rem;
	text-decoration: none;
	transition: border-color 0.3s, box-shadow 0.3s;
}

.gsl-footer__rating:hover {
	border-color: rgba(90, 24, 230, 0.3);
	box-shadow: var(--gsl-shadow-sm);
}

.gsl-footer__stars {
	display: inline-flex;
	gap: 1px;
	color: var(--gsl-sun);
}

.gsl-footer__stars .gsl-icon {
	width: 13px;
	height: 13px;
}

.gsl-footer__social {
	display: flex;
	gap: 8px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.gsl-footer__social li {
	margin: 0;
}

.gsl-footer__social a {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--gsl-line-2);
	border-radius: 14px;
	background: var(--gsl-white);
	color: var(--gsl-ink-2);
	transition: all 0.3s var(--gsl-ease);
}

.gsl-footer__social a:hover {
	border-color: var(--gsl-brand);
	background: var(--gsl-brand);
	color: #fff;
	transform: translateY(-3px);
}

.gsl-footer__social .gsl-icon {
	width: 18px;
	height: 18px;
}

.gsl-footer__title {
	margin: 6px 0 18px !important;
	color: var(--gsl-ink-3) !important;
	font-family: var(--gsl-body) !important;
	font-size: 0.75rem !important;
	font-weight: 500 !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase;
}

.gsl-footer__col ul {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gsl-footer__col li {
	margin: 0;
}

.gsl-footer a {
	text-decoration: none;
}

.gsl-footer__col a,
.gsl-footer__legal a,
.gsl-footer__copy a {
	color: var(--gsl-ink-2);
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: color 0.25s, background-size 0.35s var(--gsl-ease);
}

.gsl-footer__col a:hover,
.gsl-footer__legal a:hover,
.gsl-footer__copy a:hover {
	color: var(--gsl-ink);
	background-size: 100% 1px;
}

.gsl-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 28px;
	margin-top: clamp(48px, 6vw, 72px);
	padding: 22px 0;
	border-top: 1px solid var(--gsl-line);
	font-size: 0.875rem;
}

.gsl-footer__copy {
	margin: 0 auto 0 0;
}

.gsl-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gsl-footer__legal li {
	margin: 0;
}

.gsl-footer__top-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid var(--gsl-line-2);
	border-radius: 99px;
	background: var(--gsl-white);
	color: var(--gsl-ink);
	transition: all 0.3s var(--gsl-ease);
}

.gsl-footer__top-link:hover {
	border-color: var(--gsl-ink);
	background: var(--gsl-ink);
	color: #fff;
}

.gsl-footer__top-link .gsl-icon {
	width: 15px;
	height: 15px;
	transition: transform 0.35s var(--gsl-ease);
}

.gsl-footer__top-link:hover .gsl-icon {
	transform: translateY(-2px);
}

.gsl-footer__wordmark {
	position: relative;
	margin-top: -0.06em;
	overflow: hidden;
	font-family: var(--gsl-display);
	font-size: clamp(5rem, 22vw, 21rem);
	font-weight: 500;
	letter-spacing: -0.06em;
	line-height: 0.78;
	text-align: center;
	white-space: nowrap;
	user-select: none;
	pointer-events: none;
}

.gsl-footer__wordmark span {
	display: inline-block;
	padding-inline: 0.05em;
	background:
		radial-gradient(28% 90% at var(--mx) 30%, rgba(90, 24, 230, 0.55), transparent 70%),
		linear-gradient(180deg, rgba(90, 24, 230, 0.22), rgba(90, 24, 230, 0.02) 85%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	transform: translateY(35%);
	transition: transform 1.4s var(--gsl-ease);
}

.gsl-footer__wordmark.is-in span {
	transform: translateY(14%);
}

@media (max-width: 1100px) {
	.gsl-nav,
	.gsl-header__link {
		display: none;
	}

	.gsl-burger {
		display: block;
	}

	.gsl-header__actions {
		margin-left: auto;
	}

	.gsl-footer__top {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

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

@media (max-width: 700px) {
	.gsl-announce {
		justify-content: flex-start;
		padding: 8px 48px 8px 16px;
		text-align: left;
	}

	.gsl-announce__text {
		justify-content: flex-start;
	}

	.gsl-header {
		padding-block: 8px;
	}

	.gsl-header__bar {
		height: 58px;
		padding-left: 8px;
	}

	.gsl-header__cta {
		min-height: 40px;
		padding-inline: 16px;
		font-size: 0.875rem;
	}

	.gsl-footer__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 36px 24px;
	}

	.gsl-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gsl-footer__wordmark span {
		transform: translateY(14%);
		transition: none;
	}

	.gsl-header__bar,
	.gsl-menu {
		transition: none;
		animation: none;
	}
}
