/**
 * GutSlider site base: design tokens, buttons, badges, icons and section heads.
 * Shared by the landing pages (landing.css) and the blog (blog.css).
 */

/* 1. Tokens ---------------------------------------------------------------------------------- */

:root {
	--gsl-ink: #16121f;
	--gsl-ink-2: #36303f;
	--gsl-ink-3: #5c5668;
	--gsl-cream: var(--wp--preset--color--background, #f5f1e9);
	--gsl-paper: #fffdf8;
	--gsl-white: #fff;
	--gsl-lilac: #eee8ff;
	--gsl-brand: var(--wp--preset--color--gutslider, #5a18e6);
	--gsl-brand-2: #8b5cf6;
	--gsl-brand-soft: rgba(90, 24, 230, 0.08);
	--gsl-sun: var(--wp--preset--color--zanthous, #f2b705);
	--gsl-coral: #ff6b5b;
	--gsl-mint: #18b98a;
	--gsl-line: rgba(22, 18, 31, 0.1);
	--gsl-line-2: rgba(22, 18, 31, 0.16);
	--gsl-radius: 22px;
	--gsl-radius-lg: 30px;
	--gsl-shadow-sm: 0 1px 2px rgba(22, 18, 31, 0.06), 0 4px 14px -6px rgba(22, 18, 31, 0.12);
	--gsl-shadow: 0 2px 4px rgba(22, 18, 31, 0.04), 0 18px 40px -18px rgba(40, 20, 90, 0.28);
	--gsl-shadow-lg: 0 4px 8px rgba(22, 18, 31, 0.04), 0 40px 80px -30px rgba(50, 20, 120, 0.42);
	--gsl-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--gsl-ease-io: cubic-bezier(0.65, 0, 0.35, 1);
	--gsl-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	--gsl-gutter: clamp(16px, 4vw, 40px);
	--gsl-display: var(--wp--preset--font-family--utile-display, "UtileDisplay", system-ui, sans-serif);
	--gsl-body: var(--wp--preset--font-family--matter, "Matter", system-ui, sans-serif);
}

@property --gsl-p {
	syntax: "<number>";
	inherits: false;
	initial-value: 1;
}

/* 2. Page & sections ------------------------------------------------------------------------- */

:where([class^="gsl-"], [class*=" gsl-"]),
:where([class^="gsl-"], [class*=" gsl-"]) *,
:where([class^="gsl-"], [class*=" gsl-"]) ::before,
:where([class^="gsl-"], [class*=" gsl-"]) ::after {
	box-sizing: border-box;
}

.gsl-landing-page {
	background: var(--gsl-cream);
	color: var(--gsl-ink);
	overflow-x: clip;
}

.gsl-landing-page .wp-block-post-content > .gsl-section:first-child {
	margin-block-start: 0;
}

/* No block-gap strips between the header, main area, sections and footer. */
.gsl-landing-page .wp-site-blocks > *,
.gsl-landing-page .wp-site-blocks > main > *,
.gsl-landing-page .wp-block-post-content > *,
.gsl-landing-page .gsl-masthead > * {
	margin-block-start: 0 !important;
}

.gsl-landing-page .wp-block-post-content > .alignfull {
	margin-block: 0;
}

.gsl-section {
	position: relative;
	overflow-x: clip;
	padding-block: clamp(72px, 10vw, 128px);
	padding-inline: var(--gsl-gutter) !important;
}

.gsl-section--tight {
	padding-block: clamp(40px, 6vw, 72px);
}

.gsl-section--paper {
	background: var(--gsl-paper);
}

.gsl-section--lilac {
	background:
		radial-gradient(60% 50% at 85% 0%, rgba(139, 92, 246, 0.14), transparent 70%),
		radial-gradient(50% 40% at 0% 100%, rgba(242, 183, 5, 0.1), transparent 70%),
		var(--gsl-lilac);
}

.gsl-section--lined {
	border-block: 1px solid var(--gsl-line);
}

.gsl-landing-page :where(h1, h2, h3) {
	font-family: var(--gsl-display);
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--gsl-ink);
}

.gsl-head {
	--gsl-head-gap: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--gsl-head-gap);
	max-width: 920px !important;
	margin-inline: auto !important;
	margin-block-end: clamp(40px, 5vw, 64px) !important;
	text-align: center;
}

/* one rhythm: label, title and description sit the same distance apart */
.gsl-head > * {
	margin: 0 !important;
}

.gsl-head--left {
	align-items: flex-start;
	margin-inline: 0 !important;
	margin-block-end: 28px !important;
	text-align: left;
}

.gsl-head .gsl-lead {
	max-width: 720px;
	margin: 0 !important;
	text-wrap: pretty;
}

/* the title's line box adds a little air of its own; trim it so the gaps read equal */
.gsl-head .gsl-h2 {
	margin-block: -0.06em 0 !important;
}

.gsl-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-block: 0 16px;
	padding: 6px 14px 6px 10px;
	border: 1px solid rgba(90, 24, 230, 0.18);
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.7);
	color: var(--gsl-brand);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	backdrop-filter: blur(8px);
}

.gsl-eyebrow::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--gsl-brand);
	box-shadow: 0 0 0 4px rgba(90, 24, 230, 0.15);
}

.gsl-h2 {
	margin-block: 0 !important;
	font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem) !important;
	line-height: 1.06 !important;
	text-wrap: balance;
}

.gsl-h2 em,
.gsl-h1 em {
	font-style: normal;
	background: linear-gradient(100deg, var(--gsl-brand) 10%, #b14bff 55%, var(--gsl-coral) 95%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.gsl-lead {
	margin-block: 20px 0 !important;
	color: var(--gsl-ink-2);
	font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem) !important;
	line-height: 1.6;
	text-wrap: pretty;
}

.gsl-landing-page .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.gsl-icon {
	width: 1.15em;
	height: 1.15em;
	flex: none;
	vertical-align: -0.2em;
}

/* scroll progress */
.gsl-progress {
	position: fixed;
	inset: 0 0 auto;
	z-index: 1000;
	height: 3px;
	transform-origin: 0 50%;
	transform: scaleX(var(--progress, 0));
	background: linear-gradient(90deg, var(--gsl-brand), #b14bff, var(--gsl-coral));
	pointer-events: none;
}

/* 3. Buttons, badges ------------------------------------------------------------------------- */

.gsl-btn,
.wp-block-button.gsl-btn-primary .wp-block-button__link,
.wp-block-button.gsl-btn-ghost .wp-block-button__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 14px 26px;
	border: 1px solid transparent;
	border-radius: 99px;
	background: var(--gsl-ink);
	color: #fff;
	font-family: var(--gsl-body);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.35s var(--gsl-ease), box-shadow 0.35s var(--gsl-ease), background-color 0.25s, color 0.25s, border-color 0.25s;
	isolation: isolate;
	overflow: hidden;
}

.gsl-btn::after,
.wp-block-button.gsl-btn-primary .wp-block-button__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(100deg, var(--gsl-brand), #9b4dff);
	opacity: 0;
	transition: opacity 0.35s;
}

.wp-block-button.gsl-btn-primary .wp-block-button__link {
	background: var(--gsl-brand);
	box-shadow: 0 10px 30px -10px rgba(90, 24, 230, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.gsl-btn:hover,
.gsl-btn:focus-visible,
.wp-block-button.gsl-btn-primary .wp-block-button__link:hover,
.wp-block-button.gsl-btn-primary .wp-block-button__link:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 16px 34px -12px rgba(90, 24, 230, 0.7);
	color: #fff;
}

.gsl-btn:hover::after,
.wp-block-button.gsl-btn-primary .wp-block-button__link:hover::after {
	opacity: 1;
}

.gsl-btn .gsl-icon,
.wp-block-button .gsl-icon {
	transition: transform 0.35s var(--gsl-ease);
}

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

.gsl-btn--ghost,
.wp-block-button.gsl-btn-ghost .wp-block-button__link {
	border-color: var(--gsl-line-2);
	background: rgba(255, 255, 255, 0.75);
	color: var(--gsl-ink);
	box-shadow: var(--gsl-shadow-sm);
}

.gsl-btn--ghost::after {
	background: var(--gsl-white);
}

.gsl-btn--ghost:hover,
.gsl-btn--ghost:focus-visible,
.wp-block-button.gsl-btn-ghost .wp-block-button__link:hover,
.wp-block-button.gsl-btn-ghost .wp-block-button__link:focus-visible {
	border-color: var(--gsl-ink);
	color: var(--gsl-ink);
	box-shadow: var(--gsl-shadow);
}

.gsl-btn--small {
	min-height: 40px;
	padding: 9px 18px;
	font-size: 0.9rem;
}

.gsl-landing-page :is(a, button):focus-visible,
.gsl-stage__viewport:focus-visible {
	outline: 2px solid var(--gsl-brand);
	outline-offset: 3px;
}

.gsl-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 99px;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-transform: uppercase;
	white-space: nowrap;
}

.gsl-badge--pro {
	background: linear-gradient(100deg, var(--gsl-brand), #a24bff);
	color: #fff;
}

.gsl-badge--free {
	background: rgba(24, 185, 138, 0.14);
	color: #0b7a5a;
}

.gsl-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 4px;
	border: 0;
	background: none;
	color: var(--gsl-ink-2);
	font: inherit;
	font-size: 0.9375rem;
	cursor: pointer;
}

.gsl-toggle i {
	position: relative;
	width: 40px;
	height: 24px;
	border-radius: 99px;
	background: #d9d4e3;
	transition: background-color 0.3s;
}

.gsl-toggle i::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: transform 0.35s var(--gsl-spring);
}

.gsl-toggle[aria-checked="true"] i {
	background: var(--gsl-brand);
}

.gsl-toggle[aria-checked="true"] i::after {
	transform: translateX(16px);
}

