/**
 * Easy Accordion 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 {
	/* The Blocksy look the site had: Poppins, slate text, #192a3d headings and the teal brand. */
	--gsl-ink: var(--wp--preset--color--heading, #192a3d);
	--gsl-ink-2: var(--wp--preset--color--body-text, #3a4f66);
	--gsl-ink-3: #64748b;
	--gsl-cream: var(--wp--preset--color--page, #fefefe);
	--gsl-paper: var(--wp--preset--color--surface-light, #fafbfc);
	--gsl-white: #fff;
	--gsl-lilac: #eef7f5;
	--gsl-brand: var(--wp--preset--color--primary, #3fa796);
	--gsl-brand-2: var(--wp--preset--color--primary-dark, #2a9886);
	--gsl-brand-soft: rgba(63, 167, 150, 0.1);
	--gsl-sun: var(--wp--preset--color--primary, #3fa796);
	--gsl-sun-ink: #1f7a6b;
	--gsl-sun-soft: rgba(63, 167, 150, 0.14);
	--gsl-coral: #2872fa;
	--gsl-mint: var(--wp--preset--color--blue, #2872fa);
	--gsl-mint-soft: rgba(40, 114, 250, 0.1);
	--gsl-line: var(--wp--preset--color--border, #e1e8ed);
	--gsl-line-2: #cfd9e0;
	--gsl-radius: 18px;
	--gsl-radius-lg: 24px;
	--gsl-shadow-sm: 0 1px 2px rgba(25, 42, 61, 0.05), 0 4px 14px -6px rgba(25, 42, 61, 0.1);
	--gsl-shadow: 0 2px 4px rgba(25, 42, 61, 0.04), 0 18px 40px -18px rgba(34, 56, 101, 0.22);
	--gsl-shadow-lg: 0 4px 8px rgba(25, 42, 61, 0.04), 0 40px 80px -30px rgba(34, 56, 101, 0.3);
	--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--poppins, "Poppins", system-ui, sans-serif);
	--gsl-body: var(--wp--preset--font-family--poppins, "Poppins", 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(63, 167, 150, 0.14), transparent 70%),
		radial-gradient(50% 40% at 0% 100%, rgba(63, 167, 150, 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: 600;
	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(25, 42, 61, 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-sun);
	box-shadow: 0 0 0 4px var(--gsl-sun-soft);
}

.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;
}

/* the emphasised words get a teal marker stroke under them */
.gsl-h2 em,
.gsl-h1 em {
	font-style: normal;
	background: linear-gradient(transparent 62%, color-mix(in srgb, var(--gsl-sun) 32%, transparent) 62%, color-mix(in srgb, var(--gsl-sun) 32%, transparent) 90%, transparent 90%) no-repeat;
	background-size: 100% 100%;
	padding-inline: 0.04em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.gsl-js .gsl-hero .gsl-h1 em {
	background-size: 0% 100%;
	animation: gsl-marker 1s var(--gsl-ease) 0.7s forwards;
}

@keyframes gsl-marker {
	to {
		background-size: 100% 100%;
	}
}

.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), var(--gsl-sun));
	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-brand);
	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-2), #23806f);
	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 -12px rgba(42, 152, 134, 0.7), 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(42, 152, 134, 0.75);
	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 {
	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: var(--gsl-sun);
	color: #fff;
}

.gsl-badge--free {
	background: rgba(40, 114, 250, 0.14);
	color: #1d5fd6;
}

.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: #cfd9e0;
	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);
}

