/* StatPulse. Components on top of theme.json. Class prefix: sp- */

:root {
	--sp-ink: var(--wp--preset--color--contrast, #0D1B2A);
	--sp-ink-2: var(--wp--preset--color--ink-2, #15283D);
	--sp-muted: var(--wp--preset--color--contrast-2, #4B5563);
	--sp-paper: var(--wp--preset--color--base, #FAFAF7);
	--sp-surface: var(--wp--preset--color--surface, #F0EFEA);
	--sp-line: var(--wp--preset--color--line, #DEDCD4);
	--sp-coral: var(--wp--preset--color--primary, #FF5A36);
	--sp-coral-deep: var(--wp--preset--color--primary-deep, #C23A1B);
	--sp-display: var(--wp--preset--font-family--display);
	--sp-mono: var(--wp--preset--font-family--mono);
	--sp-gutter: clamp(1.25rem, 4vw, 2.5rem);
	--sp-wide: 74rem;
	--sp-radius: 16px;
	--sp-section: clamp(4.5rem, 9vw, 7.5rem);
	--sp-header-h: 4.25rem;
}

html { scroll-padding-top: calc(var(--sp-header-h) + 1rem); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* Blocks inside post content should not get flow-layout gaps between the
   full-bleed sections; each section manages its own spacing. */
.wp-site-blocks > *,
.sp-main .wp-block-post-content > *,
.sp-main .entry-content > * { margin-block: 0; }
.sp-main { overflow-x: clip; }

.sp-wrap {
	width: min(100% - 2 * var(--sp-gutter), var(--sp-wide));
	margin-inline: auto;
}
.sp-wrap--narrow { width: min(100% - 2 * var(--sp-gutter), 46rem); }

:focus-visible { outline: 2px solid var(--sp-coral); outline-offset: 3px; border-radius: 4px; }

.sp-skip {
	position: absolute; left: 1rem; top: -4rem; z-index: 100;
	background: var(--sp-ink); color: var(--sp-paper); padding: .75rem 1rem; border-radius: 8px;
	text-decoration: none;
}
.sp-skip:focus { top: 1rem; }

/* ------------------------------------------------------------------ type */

.sp-eyebrow {
	display: inline-flex; align-items: center; gap: .6rem;
	margin: 0 0 1.1rem;
	font-family: var(--sp-mono); font-size: .78rem; font-weight: 500;
	letter-spacing: .1em; text-transform: uppercase;
	color: var(--sp-coral-deep);
}
.sp-eyebrow::before {
	content: ""; width: .5rem; height: .5rem; border-radius: 50%;
	background: var(--sp-coral);
	box-shadow: 0 0 0 0 rgb(255 90 54 / .5);
	animation: sp-ping 2.6s ease-out infinite;
}
@keyframes sp-ping {
	0% { box-shadow: 0 0 0 0 rgb(255 90 54 / .45); }
	70%, 100% { box-shadow: 0 0 0 .55rem rgb(255 90 54 / 0); }
}

.sp-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.55;
	color: var(--sp-muted);
	max-width: 42rem;
	margin: 0;
}
.sp-head { max-width: 48rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.sp-head h2 { margin: 0 0 1rem; }
.sp-head--center { margin-inline: auto; text-align: center; }
.sp-head--center .sp-lead { margin-inline: auto; }
.sp-note { font-size: .9rem; color: var(--sp-muted); }
.sp-mono { font-family: var(--sp-mono); }

h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

/* --------------------------------------------------------------- buttons */

.sp-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 0; align-items: center; }
.sp-btn {
	box-sizing: border-box;
	display: inline-flex; align-items: center; gap: .55rem;
	text-decoration: none;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.sp-btn .sp-icon { width: 1.15rem; height: 1.15rem; }
.wp-element-button.sp-btn:hover { transform: translateY(-1px); }
.sp-btn--ghost,
.sp-btn--ghost-light {
	padding: calc(.9rem - 1.5px) calc(1.5rem - 1.5px);
	border-radius: 999px;
	font-weight: 600; font-size: 1rem; line-height: 1.2;
	border: 1.5px solid var(--sp-ink);
	color: var(--sp-ink);
	background: transparent;
}
.sp-btn--ghost:hover { background: var(--sp-ink); color: var(--sp-paper); }
.sp-btn--ghost-light { border-color: rgb(250 250 247 / .35); color: var(--sp-paper); }
.sp-btn--ghost-light:hover { border-color: var(--sp-paper); background: rgb(250 250 247 / .06); color: var(--sp-paper); }
.sp-btn--small { padding: .6rem 1.1rem; font-size: .92rem; }

/* ---------------------------------------------------------------- header */

.sp-header-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
}
.sp-header {
	background: rgb(250 250 247 / .86);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.sp-scrolled .sp-header { border-bottom-color: var(--sp-line); }
.sp-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
	min-height: var(--sp-header-h);
}

.sp-brand {
	display: inline-flex; align-items: center; gap: .6rem;
	text-decoration: none; color: var(--sp-ink);
}
.sp-mark { width: 2rem; height: 2rem; flex: none; }
.sp-brand__word {
	font-family: var(--sp-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em;
}
.sp-brand__word span { font-weight: 400; }
.sp-brand:hover { color: var(--sp-ink); }

.sp-nav__list {
	display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem);
	list-style: none; margin: 0; padding: 0;
}
.sp-nav__link {
	color: var(--sp-ink); text-decoration: none; font-weight: 500; font-size: .96rem;
	padding-block: .35rem;
	background: linear-gradient(var(--sp-coral), var(--sp-coral)) no-repeat left bottom / 0 2px;
	transition: background-size .2s ease, color .2s ease;
}
.sp-nav__link:hover { color: var(--sp-ink); background-size: 100% 2px; }
.sp-nav__link.is-current { background-size: 100% 2px; }
.sp-nav__link--lang {
	font-family: var(--sp-mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
	color: var(--sp-muted);
}
.sp-nav__cta .sp-btn { white-space: nowrap; }
.sp-nav__cta .sp-btn.is-current { background: var(--sp-ink); color: var(--sp-paper); }

.sp-nav__toggle {
	display: none;
	align-items: center; gap: .6rem;
	background: none; border: 1.5px solid var(--sp-line); border-radius: 999px;
	padding: .5rem .9rem; font: inherit; font-weight: 600; font-size: .9rem; color: var(--sp-ink);
	cursor: pointer;
}
.sp-nav__bars { position: relative; width: 1rem; height: .7rem; display: inline-block; }
.sp-nav__bars span {
	position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
	transition: transform .2s ease, top .2s ease;
}
.sp-nav__bars span:first-child { top: 0; }
.sp-nav__bars span:last-child { top: calc(100% - 2px); }
.sp-nav.is-open .sp-nav__bars span:first-child { top: calc(50% - 1px); transform: rotate(45deg); }
.sp-nav.is-open .sp-nav__bars span:last-child { top: calc(50% - 1px); transform: rotate(-45deg); }

@media (max-width: 56rem) {
	.sp-nav__toggle { display: inline-flex; }
	.sp-nav__list {
		display: none;
		position: fixed; left: 0; right: 0;
		top: calc(var(--sp-header-h) + var(--wp-admin--admin-bar--height, 0px));
		bottom: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		padding: 1rem var(--sp-gutter) 2rem;
		background: var(--sp-paper);
		border-top: 1px solid var(--sp-line);
		overflow-y: auto;
	}
	.sp-nav.is-open .sp-nav__list { display: flex; }
	.sp-nav__list li { border-bottom: 1px solid var(--sp-line); }
	.sp-nav__list .sp-nav__link { display: block; padding: 1.1rem 0; font-family: var(--sp-display); font-size: 1.5rem; font-weight: 600; background: none; }
	.sp-nav__list .sp-nav__link.is-current { color: var(--sp-coral-deep); }
	.sp-nav__list .sp-nav__link--lang { font-family: var(--sp-mono); font-size: .9rem; font-weight: 500; }
	.sp-nav__list .sp-nav__cta { border: 0; padding-top: 1.5rem; }
	.sp-nav__cta .sp-btn { width: 100%; justify-content: center; padding: 1rem; font-size: 1.05rem; }
	.sp-nav-open { overflow: hidden; }
	/* backdrop-filter makes the header the containing block for fixed
	   children, which would trap the open menu inside the header bar. */
	.sp-nav-open .sp-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--sp-paper); }
}

/* ------------------------------------------------------------- home hero */

.sp-hero {
	position: relative;
	isolation: isolate;
	background: var(--sp-ink);
	color: rgb(250 250 247 / .78);
	padding-block: clamp(4.5rem, 10vw, 8rem) clamp(4rem, 8vw, 6.5rem);
	overflow: hidden;
}
.sp-hero::before {
	/* Faint graph paper, fading out toward the bottom. */
	content: ""; position: absolute; inset: 0; z-index: -2;
	background-image:
		linear-gradient(rgb(250 250 247 / .045) 1px, transparent 1px),
		linear-gradient(90deg, rgb(250 250 247 / .045) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}
.sp-hero::after {
	content: ""; position: absolute; z-index: -1;
	width: 46rem; height: 46rem; right: -14rem; top: -18rem;
	background: radial-gradient(closest-side, rgb(255 90 54 / .22), transparent);
}
.sp-hero__grid {
	display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.sp-hero .sp-eyebrow { color: var(--sp-coral); }
.sp-hero h1 {
	color: var(--sp-paper);
	font-size: clamp(2.5rem, 5.4vw, 4.25rem);
	line-height: 1.02; letter-spacing: -.035em;
	margin: 0 0 1.5rem;
}
.sp-hero h1 em { font-style: normal; color: var(--sp-coral); }
.sp-hero .sp-lead { color: rgb(250 250 247 / .75); }
.sp-hero .sp-btn--ghost { border-color: rgb(250 250 247 / .35); color: var(--sp-paper); }
.sp-hero .sp-btn--ghost:hover { border-color: var(--sp-paper); background: rgb(250 250 247 / .06); }
.sp-hero__foot {
	margin: 2.25rem 0 0; font-size: .9rem; color: rgb(250 250 247 / .55);
	display: flex; flex-wrap: wrap; gap: .4rem 1.25rem;
}
.sp-hero__foot span { display: inline-flex; align-items: center; gap: .45rem; }
.sp-hero__foot .sp-icon { width: 1rem; height: 1rem; color: var(--sp-coral); }

/* The illustrative agent run in the hero. */
.sp-run {
	position: relative;
	background: linear-gradient(180deg, rgb(21 40 61 / .92), rgb(13 27 42 / .92));
	border: 1px solid rgb(250 250 247 / .1);
	border-radius: 20px;
	padding: 1.25rem;
	box-shadow: 0 30px 80px -30px rgb(0 0 0 / .6), inset 0 1px 0 rgb(250 250 247 / .06);
	font-size: .92rem;
	color: rgb(250 250 247 / .85);
}
.sp-run__bar {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding-bottom: 1rem; margin-bottom: .5rem; border-bottom: 1px solid rgb(250 250 247 / .08);
	font-family: var(--sp-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
	color: rgb(250 250 247 / .55);
}
.sp-run__bar b { color: var(--sp-paper); font-weight: 500; }
.sp-run__chip {
	border: 1px solid rgb(250 250 247 / .2); border-radius: 999px; padding: .15rem .55rem;
	font-size: .68rem;
}
.sp-run__in {
	margin: .75rem 0 1rem; padding: .85rem 1rem; border-radius: 12px;
	background: rgb(250 250 247 / .05); border: 1px dashed rgb(250 250 247 / .14);
	color: rgb(250 250 247 / .9); line-height: 1.45;
}
.sp-run__in small { display: block; font-family: var(--sp-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: rgb(250 250 247 / .45); margin-bottom: .3rem; }
.sp-run__steps { list-style: none; margin: 0; padding: 0; position: relative; }
.sp-run__steps::before {
	content: ""; position: absolute; left: .6rem; top: .8rem; bottom: .8rem; width: 1px;
	background: rgb(250 250 247 / .12);
}
.sp-run__step {
	position: relative; display: grid; grid-template-columns: 1.25rem 1fr auto; gap: .8rem; align-items: start;
	padding: .55rem 0;
	opacity: 0; transform: translateY(6px);
	animation: sp-step-in .5s ease forwards;
}
.sp-run__step:nth-child(1) { animation-delay: .3s; }
.sp-run__step:nth-child(2) { animation-delay: .9s; }
.sp-run__step:nth-child(3) { animation-delay: 1.5s; }
.sp-run__step:nth-child(4) { animation-delay: 2.1s; }
.sp-run__step:nth-child(5) { animation-delay: 2.7s; }
@keyframes sp-step-in { to { opacity: 1; transform: none; } }
.sp-run__dot {
	width: 1.25rem; height: 1.25rem; border-radius: 50%; display: grid; place-items: center;
	background: var(--sp-ink); border: 1.5px solid var(--sp-coral); color: var(--sp-coral);
}
.sp-run__dot .sp-icon { width: .8rem; height: .8rem; stroke-width: 2.6; }
.sp-run__step--wait .sp-run__dot { border-color: rgb(250 250 247 / .5); color: var(--sp-paper); }
.sp-run__step--wait .sp-run__dot::after {
	content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--sp-paper);
	animation: sp-blink 1.2s ease-in-out infinite;
}
@keyframes sp-blink { 50% { opacity: .25; } }
.sp-run__txt { line-height: 1.4; }
.sp-run__txt small { display: block; color: rgb(250 250 247 / .5); font-size: .8rem; margin-top: .15rem; }
.sp-run__t { font-family: var(--sp-mono); font-size: .72rem; color: rgb(250 250 247 / .4); padding-top: .15rem; }
.sp-run__foot {
	margin-top: .75rem; padding-top: 1rem; border-top: 1px solid rgb(250 250 247 / .08);
	display: flex; gap: .6rem; flex-wrap: wrap;
}
.sp-run__foot span {
	font-size: .82rem; padding: .45rem .8rem; border-radius: 999px;
	background: rgb(250 250 247 / .06); color: rgb(250 250 247 / .75);
}
.sp-run__foot span:first-child { background: var(--sp-coral); color: var(--sp-ink); font-weight: 600; }

@media (max-width: 60rem) {
	.sp-hero__grid { grid-template-columns: 1fr; }
	.sp-run { max-width: 34rem; }
}

/* ------------------------------------------------------ interior page hero */

.sp-page-hero {
	position: relative;
	padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 4.5rem);
	border-bottom: 1px solid var(--sp-line);
	overflow: hidden;
}
.sp-page-hero::after {
	content: ""; position: absolute; right: -10rem; top: -12rem; width: 34rem; height: 34rem; z-index: -1;
	background: radial-gradient(closest-side, rgb(255 90 54 / .12), transparent);
}
.sp-page-hero { isolation: isolate; }
.sp-page-hero h1 {
	font-size: clamp(2.3rem, 5.2vw, 3.9rem);
	line-height: 1.04; letter-spacing: -.03em;
	max-width: 22ch;
	margin: 0 0 1.5rem;
}
.sp-page-hero--404 { border-bottom: 0; min-height: 60vh; }
.sp-pulse-line { display: block; width: 100%; height: 60px; color: var(--sp-coral); }
.sp-pulse-line--404 { max-width: 28rem; margin-bottom: 2rem; }

/* -------------------------------------------------------------- sections */

.sp-section { padding-block: var(--sp-section); }
.sp-section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.sp-section--surface { background: var(--sp-surface); }
.sp-section--line { border-top: 1px solid var(--sp-line); }
.sp-section--dark {
	background: var(--sp-ink); color: rgb(250 250 247 / .78);
	position: relative; isolation: isolate; overflow: hidden;
}
.sp-section--dark h2,
.sp-section--dark h3 { color: var(--sp-paper); }
.sp-section--dark .sp-eyebrow { color: var(--sp-coral); }
.sp-section--dark .sp-lead { color: rgb(250 250 247 / .72); }
.sp-section--dark a:not(.sp-btn):not(.wp-element-button) { color: var(--sp-coral); }

.sp-split {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.sp-split > .sp-head { position: sticky; top: calc(var(--sp-header-h) + 2rem); margin-bottom: 0; }
.sp-split__body > :first-child { margin-top: 0; }
.sp-split__body p { margin: 0 0 1.1rem; }
.sp-split__body h3 { margin: 2.25rem 0 .75rem; font-size: var(--wp--preset--font-size--large); }
@media (max-width: 56rem) {
	.sp-split { grid-template-columns: 1fr; }
	.sp-split > .sp-head { position: static; }
}

/* A single strong sentence, set big. */
.sp-statement {
	font-family: var(--sp-display); font-weight: 500;
	font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.2; letter-spacing: -.02em;
	color: var(--sp-ink); max-width: 30ch; margin: 0;
}
.sp-statement em { font-style: normal; color: var(--sp-coral-deep); }
.sp-section--dark .sp-statement { color: var(--sp-paper); }
.sp-section--dark .sp-statement em { color: var(--sp-coral); }

/* ----------------------------------------------------------------- cards */

.sp-cards { display: grid; gap: 1.25rem; }
.sp-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sp-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 62rem) { .sp-cards--3 { grid-template-columns: 1fr; } }
@media (max-width: 48rem) { .sp-cards--2 { grid-template-columns: 1fr; } }

.sp-card {
	position: relative;
	display: flex; flex-direction: column;
	background: var(--sp-paper);
	border: 1px solid var(--sp-line);
	border-radius: var(--sp-radius);
	padding: clamp(1.5rem, 3vw, 2rem);
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.sp-card:hover { border-color: var(--sp-ink); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgb(13 27 42 / .35); }
.sp-card h3 { margin: 1.5rem 0 .75rem; font-size: 1.5rem; }
.sp-card p { margin: 0 0 1rem; color: var(--sp-muted); }
.sp-card__top { display: flex; align-items: center; justify-content: space-between; }
.sp-card__icon {
	width: 3rem; height: 3rem; border-radius: 12px; display: grid; place-items: center;
	background: var(--sp-ink); color: var(--sp-coral);
}
.sp-card__icon .sp-icon { width: 1.5rem; height: 1.5rem; }
.sp-card__num { font-family: var(--sp-mono); font-size: .8rem; color: var(--sp-muted); letter-spacing: .08em; }
.sp-card__link { color: inherit; text-decoration: none; }
.sp-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.sp-card__more {
	margin-top: auto !important; padding-top: .5rem;
	display: inline-flex; align-items: center; gap: .4rem;
	font-weight: 600; color: var(--sp-coral-deep) !important;
}
.sp-card__more .sp-icon { width: 1.1rem; height: 1.1rem; transition: transform .2s ease; }
.sp-card:hover .sp-card__more .sp-icon { transform: translateX(4px); }
.sp-section--surface .sp-card { background: #fff; }

/* -------------------------------------------------------------- features */

.sp-features { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 3rem); }
.sp-features--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp-features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sp-features--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 62rem) { .sp-features--3, .sp-features--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .sp-features--2, .sp-features--3, .sp-features--4 { grid-template-columns: 1fr; } }
.sp-feature { border-top: 1px solid var(--sp-line); padding-top: 1.5rem; }
.sp-section--dark .sp-feature { border-top-color: rgb(250 250 247 / .12); }
.sp-feature__icon { color: var(--sp-coral-deep); display: inline-flex; }
.sp-section--dark .sp-feature__icon { color: var(--sp-coral); }
.sp-feature__icon .sp-icon { width: 1.75rem; height: 1.75rem; }
.sp-feature h3 { font-size: 1.2rem; margin: 1rem 0 .5rem; letter-spacing: -.01em; }
.sp-feature p { margin: 0; color: var(--sp-muted); font-size: 1rem; }
.sp-section--dark .sp-feature p { color: rgb(250 250 247 / .68); }

/* ------------------------------------------------------------- use cases */

.sp-usecases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 62rem) { .sp-usecases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .sp-usecases { grid-template-columns: 1fr; } }
.sp-usecase {
	background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-radius);
	padding: 1.5rem 1.5rem 1.6rem;
}
.sp-section--dark .sp-usecase { background: var(--sp-ink-2); border-color: rgb(250 250 247 / .08); }
.sp-usecase .sp-usecase__tag {
	display: inline-block; margin: 0 0 1rem; padding: .25rem .6rem; border-radius: 999px;
	font-family: var(--sp-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
	background: rgb(255 90 54 / .1); color: var(--sp-coral-deep);
}
.sp-section--dark .sp-usecase .sp-usecase__tag { background: rgb(255 90 54 / .14); color: var(--sp-coral); }
.sp-usecase h3 { font-size: 1.2rem; margin: 0 0 .6rem; letter-spacing: -.01em; }
.sp-usecase p { margin: 0; color: var(--sp-muted); font-size: .98rem; }
.sp-section--dark .sp-usecase p { color: rgb(250 250 247 / .68); }
.sp-usecases__note { margin-top: 1.5rem; }

/* ----------------------------------------------------------------- steps */

.sp-steps {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem;
	counter-reset: none;
}
.sp-steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sp-step { position: relative; padding-top: 2rem; }
.sp-step::before {
	content: ""; position: absolute; top: .45rem; left: 0; right: -1.5rem; height: 1px; background: var(--sp-line);
}
.sp-step:last-child::before { right: 0; }
.sp-step::after {
	content: ""; position: absolute; top: 0; left: 0; width: 1rem; height: 1rem; border-radius: 50%;
	background: var(--sp-paper); border: 2px solid var(--sp-coral);
}
.sp-section--dark .sp-step::before { background: rgb(250 250 247 / .14); }
.sp-section--dark .sp-step::after { background: var(--sp-ink); }
.sp-section--surface .sp-step::after { background: var(--sp-surface); }
.sp-step__n { font-family: var(--sp-mono); font-size: .8rem; letter-spacing: .08em; color: var(--sp-coral-deep); }
.sp-section--dark .sp-step__n { color: var(--sp-coral); }
.sp-step h3 { font-size: 1.3rem; margin: .6rem 0 .25rem; }
.sp-step__meta { margin: 0 0 .75rem; font-family: var(--sp-mono); font-size: .78rem; color: var(--sp-muted); letter-spacing: .02em; }
.sp-section--dark .sp-step__meta { color: rgb(250 250 247 / .5); }
.sp-step p { margin: 0; color: var(--sp-muted); font-size: 1rem; }
.sp-section--dark .sp-step p { color: rgb(250 250 247 / .68); }
@media (max-width: 62rem) {
	.sp-steps, .sp-steps--3 { grid-template-columns: 1fr; gap: 0; }
	.sp-step { padding: 0 0 2rem 2.25rem; }
	.sp-step::before { top: 1rem; bottom: 0; left: .45rem; right: auto; width: 1px; height: auto; }
	.sp-step:last-child::before { display: none; }
	.sp-step h3 { margin-top: .1rem; }
}

/* ---------------------------------------------------------------- checks */

.sp-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.sp-checks li { display: grid; grid-template-columns: 1.35rem 1fr; gap: .75rem; align-items: start; }
.sp-checks .sp-icon { width: 1.35rem; height: 1.35rem; color: var(--sp-coral-deep); margin-top: .15rem; stroke-width: 2.2; }
.sp-section--dark .sp-checks .sp-icon { color: var(--sp-coral); }
.sp-checks strong { color: var(--sp-ink); font-weight: 600; }
.sp-section--dark .sp-checks strong { color: var(--sp-paper); }
.sp-checks--compact { gap: .5rem; margin: .25rem 0 1.5rem; font-size: .95rem; }
.sp-checks--compact .sp-icon { width: 1.1rem; height: 1.1rem; }
.sp-checks--no .sp-icon { color: var(--sp-muted); }
.sp-checks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; }
@media (max-width: 48rem) { .sp-checks--2 { grid-template-columns: 1fr; } }

.sp-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.sp-compare__col { border-radius: var(--sp-radius); padding: clamp(1.5rem, 3vw, 2.25rem); }
.sp-compare__col h3 { font-size: 1.25rem; margin: 0 0 1.25rem; }
.sp-compare__col--yes { background: #fff; border: 1px solid var(--sp-line); }
.sp-compare__col--no { background: transparent; border: 1px dashed var(--sp-line); }
.sp-compare__col--no li span { color: var(--sp-muted); }
@media (max-width: 48rem) { .sp-compare { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- stack */

.sp-stack { margin: 0; display: grid; gap: 1.25rem; }
.sp-stack__row { display: grid; grid-template-columns: 12rem 1fr; gap: 1rem; align-items: baseline; border-top: 1px solid var(--sp-line); padding-top: 1.25rem; }
.sp-stack dt { font-family: var(--sp-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sp-muted); }
.sp-stack dd { margin: 0; }
.sp-stack ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.sp-stack li { border: 1px solid var(--sp-line); background: #fff; border-radius: 999px; padding: .35rem .85rem; font-size: .92rem; }
@media (max-width: 40rem) { .sp-stack__row { grid-template-columns: 1fr; gap: .6rem; } }

/* ------------------------------------------------------------------- faq */

.sp-faq { border-top: 1px solid var(--sp-line); }
.sp-faq__item { border-bottom: 1px solid var(--sp-line); }
.sp-faq__item summary {
	list-style: none; cursor: pointer;
	display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
	padding: 1.35rem 0;
	font-family: var(--sp-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; color: var(--sp-ink);
}
.sp-faq__item summary::-webkit-details-marker { display: none; }
.sp-faq__item summary:hover { color: var(--sp-coral-deep); }
.sp-faq__sign { position: relative; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 1.5px solid var(--sp-line); }
.sp-faq__sign::before, .sp-faq__sign::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: .7rem; height: 1.5px; background: currentColor;
	transform: translate(-50%, -50%); transition: transform .2s ease;
}
.sp-faq__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.sp-faq__item[open] .sp-faq__sign::after { transform: translate(-50%, -50%) rotate(0deg); }
.sp-faq__item[open] .sp-faq__sign { border-color: var(--sp-coral); color: var(--sp-coral-deep); }
.sp-faq__body { padding: 0 3rem 1.5rem 0; color: var(--sp-muted); }
.sp-faq__body p { margin: 0 0 .85rem; }
.sp-faq__body p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------- cta */

.sp-cta {
	position: relative; isolation: isolate; overflow: hidden;
	background: var(--sp-ink); color: rgb(250 250 247 / .75);
	padding-block: clamp(4rem, 8vw, 6rem);
}
.sp-cta::after {
	content: ""; position: absolute; z-index: -1; width: 40rem; height: 40rem; left: -12rem; bottom: -26rem;
	background: radial-gradient(closest-side, rgb(255 90 54 / .25), transparent);
}
.sp-cta__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem 4rem; flex-wrap: wrap; }
.sp-cta__text { max-width: 40rem; }
.sp-cta h2 { color: var(--sp-paper); margin: 0 0 1rem; font-size: clamp(2rem, 4.2vw, 3rem); }
.sp-cta p { margin: 0; font-size: 1.1rem; }
.sp-cta .sp-actions { margin: 0; }

/* --------------------------------------------------------- vendor strip */

.sp-strip { border-bottom: 1px solid var(--sp-line); padding-block: 1.6rem; }
.sp-strip__inner { display: flex; align-items: center; gap: 1rem 2.5rem; flex-wrap: wrap; }
.sp-strip__label { font-family: var(--sp-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sp-muted); margin: 0; }
.sp-strip__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.sp-strip__list li { font-family: var(--sp-display); font-weight: 600; font-size: 1.05rem; color: var(--sp-ink); opacity: .72; }

/* --------------------------------------------------------------- founder */

.sp-founder { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 52rem) { .sp-founder { grid-template-columns: 1fr; } .sp-founder__media { max-width: 20rem; } }
.sp-portrait { width: 100%; height: auto; aspect-ratio: 1; border-radius: 20px; object-fit: cover; display: block; }
.sp-portrait--initials {
	display: grid; place-items: center; position: relative; overflow: hidden;
	background: var(--sp-ink);
}
.sp-portrait--initials::before {
	content: ""; position: absolute; inset: 0;
	background-image:
		linear-gradient(rgb(250 250 247 / .05) 1px, transparent 1px),
		linear-gradient(90deg, rgb(250 250 247 / .05) 1px, transparent 1px);
	background-size: 32px 32px;
}
.sp-portrait--initials span {
	position: relative; font-family: var(--sp-display); font-weight: 600; font-size: clamp(4rem, 10vw, 7rem);
	letter-spacing: -.04em; color: var(--sp-coral);
}
.sp-founder__name { font-size: var(--wp--preset--font-size--xx-large); margin: 0 0 .25rem; }
.sp-founder__role { font-family: var(--sp-mono); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sp-muted); margin: 0 0 1.75rem; }
.sp-founder__body p { margin: 0 0 1.1rem; }
.sp-founder__body .sp-lead { color: var(--sp-ink); margin-bottom: 1.5rem; }
.sp-founder__links { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

.sp-teaser { display: grid; grid-template-columns: 9rem 1fr; gap: 2rem; align-items: center; }
.sp-teaser .sp-portrait { border-radius: 16px; }
.sp-teaser .sp-portrait--initials span { font-size: 3rem; }
.sp-teaser p { margin: 0 0 1rem; }
@media (max-width: 40rem) { .sp-teaser { grid-template-columns: 1fr; } .sp-teaser .sp-portrait { max-width: 7rem; } }

/* -------------------------------------------------------------- channels */

.sp-channels { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.sp-channels a { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: inherit; font-weight: 500; }
.sp-channels a:hover { color: var(--sp-coral-deep); }
.sp-channels .sp-icon { width: 1.2rem; height: 1.2rem; color: var(--sp-coral-deep); }

/* ---------------------------------------------------------------- contact */

.sp-contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 56rem) { .sp-contact { grid-template-columns: 1fr; } }
.sp-aside { background: var(--sp-surface); border-radius: var(--sp-radius); padding: clamp(1.5rem, 3vw, 2rem); }
.sp-aside h2, .sp-aside h3 { font-size: 1.25rem; margin: 0 0 1rem; }
.sp-aside + .sp-aside { margin-top: 1.25rem; }
.sp-aside ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .75rem; color: var(--sp-muted); }
.sp-aside ol strong { color: var(--sp-ink); }

/* The form comes from statpulse-core; its look lives here with the theme. */
.sp-form { display: grid; gap: 1.25rem; }
.sp-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 40rem) { .sp-form__grid { grid-template-columns: 1fr; } }
.sp-field { margin: 0; display: grid; gap: .4rem; }
.sp-field label, .sp-field legend { font-weight: 600; font-size: .92rem; color: var(--sp-ink); }
.sp-field__hint { font-weight: 400; color: var(--sp-muted); font-size: .85rem; }
.sp-field input, .sp-field textarea, .sp-field select {
	width: 100%; box-sizing: border-box;
	font: inherit; font-size: 1rem; color: var(--sp-ink);
	background: #fff; border: 1.5px solid var(--sp-line); border-radius: 10px;
	padding: .8rem .95rem;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.sp-field textarea { min-height: 9rem; resize: vertical; }
.sp-field input:focus, .sp-field textarea:focus, .sp-field select:focus {
	outline: none; border-color: var(--sp-ink); box-shadow: 0 0 0 4px rgb(255 90 54 / .18);
}
.sp-field--choices { border: 0; padding: 0; margin: 0; }
.sp-field--choices legend { margin-bottom: .6rem; padding: 0; }
.sp-choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.sp-choice { position: relative; }
.sp-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sp-choice span {
	display: inline-block; cursor: pointer;
	padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--sp-line); background: #fff;
	font-size: .95rem; transition: all .15s ease;
}
.sp-choice input:checked + span { background: var(--sp-ink); border-color: var(--sp-ink); color: var(--sp-paper); }
.sp-choice input:focus-visible + span { outline: 2px solid var(--sp-coral); outline-offset: 2px; }
.sp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sp-form__error { margin: 0; padding: .9rem 1rem; border-radius: 10px; background: rgb(194 58 27 / .08); color: var(--sp-coral-deep); font-weight: 500; }
.sp-form__actions { margin: .25rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.sp-form__actions .wp-element-button { border: 0; cursor: pointer; }
.sp-form__privacy { margin: 0; font-size: .85rem; color: var(--sp-muted); }
.sp-form__done {
	border-radius: var(--sp-radius); padding: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--sp-ink); color: rgb(250 250 247 / .8);
}
.sp-form__done h2, .sp-form__done h3 { color: var(--sp-paper); margin: 0 0 .5rem; }
.sp-form__done p { margin: 0; }

/* ---------------------------------------------------------------- prose */

.sp-prose { max-width: 46rem; }
.sp-prose h2 { font-size: var(--wp--preset--font-size--x-large); margin: 2.75rem 0 .9rem; }
.sp-prose h2:first-child { margin-top: 0; }
.sp-prose p, .sp-prose ul { margin: 0 0 1rem; }
.sp-prose ul { padding-left: 1.2rem; }
.sp-prose li { margin-bottom: .4rem; }
.sp-prose .sp-note { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--sp-line); }

/* ---------------------------------------------------------------- footer */

.sp-footer {
	background: var(--sp-ink); color: rgb(250 250 247 / .68);
	padding-block: clamp(3.5rem, 7vw, 5rem) 2rem;
	font-size: .95rem;
}
.sp-footer a { color: rgb(250 250 247 / .82); text-decoration: none; }
.sp-footer a:hover { color: var(--sp-coral); }
.sp-footer .sp-brand, .sp-footer .sp-brand:hover { color: var(--sp-paper); }
.sp-footer .sp-mark rect { fill: var(--sp-ink-2); }
.sp-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
@media (max-width: 56rem) { .sp-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 30rem) { .sp-footer__grid { grid-template-columns: 1fr; } }
.sp-footer__tag { color: var(--sp-paper); margin: 1.25rem 0 .35rem; font-weight: 500; }
.sp-footer__where { margin: 0; max-width: 22rem; }
.sp-footer__h {
	font-family: var(--sp-mono); font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
	color: rgb(250 250 247 / .45); margin: 0 0 1rem;
}
.sp-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.sp-footer .sp-channels .sp-icon { color: var(--sp-coral); }
.sp-footer__base {
	margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid rgb(250 250 247 / .1);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem;
}
.sp-footer__base p { margin: 0; }
.sp-footer__links { display: flex; gap: 1.5rem; }
.sp-footer__lang { font-family: var(--sp-mono); letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; }

/* ------------------------------------------------------------ misc bits */

.sp-index { padding-block: var(--sp-section); }
.sp-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 52rem) { .sp-grid-2 { grid-template-columns: 1fr; } }
.sp-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.sp-kpis li { border-top: 2px solid var(--sp-ink); padding-top: 1rem; }
.sp-kpis b { display: block; font-family: var(--sp-display); font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 600; letter-spacing: -.03em; color: var(--sp-ink); line-height: 1.1; }
.sp-kpis span { color: var(--sp-muted); font-size: .95rem; }
.sp-section--dark .sp-kpis li { border-top-color: var(--sp-coral); }
.sp-section--dark .sp-kpis b { color: var(--sp-paper); }
.sp-section--dark .sp-kpis span { color: rgb(250 250 247 / .65); }
@media (max-width: 48rem) { .sp-kpis { grid-template-columns: 1fr; } }

.sp-link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; color: var(--sp-coral-deep); }
.sp-link-arrow .sp-icon { width: 1.1rem; height: 1.1rem; transition: transform .2s ease; }
.sp-link-arrow:hover .sp-icon { transform: translateX(4px); }
.sp-section--dark .sp-link-arrow { color: var(--sp-coral); }

.sp-toc { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.sp-toc a {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .5rem .95rem; border-radius: 999px; border: 1.5px solid var(--sp-line);
	text-decoration: none; color: var(--sp-ink); font-weight: 500; font-size: .95rem; background: #fff;
}
.sp-toc a:hover { border-color: var(--sp-ink); }
.sp-toc .sp-icon { width: 1.1rem; height: 1.1rem; color: var(--sp-coral-deep); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.sp-run__step { opacity: 1; transform: none; }
}

/* Editor: the dark sections need their own background in the canvas too. */
.editor-styles-wrapper .sp-header-part { position: static; }

/* ---------------------------------------------------------------- phases */

.sp-phases { border-top: 1px solid var(--sp-line); }
.sp-phase {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem clamp(2rem, 6vw, 5rem);
	padding-block: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--sp-line);
}
.sp-phase__n { font-family: var(--sp-mono); font-size: .85rem; letter-spacing: .08em; color: var(--sp-coral-deep); }
.sp-phase h3 { margin: .5rem 0 1rem; font-size: var(--wp--preset--font-size--x-large); }
.sp-phase__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.sp-phase__meta li {
	font-family: var(--sp-mono); font-size: .75rem; letter-spacing: .04em;
	padding: .3rem .7rem; border-radius: 999px; background: var(--sp-surface); color: var(--sp-ink);
}
.sp-phase__meta li:first-child { background: var(--sp-ink); color: var(--sp-paper); }
.sp-phase__body > p:first-child { margin-top: 0; font-size: 1.08rem; }
.sp-phase__label { font-family: var(--sp-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sp-muted); margin: 1.5rem 0 .9rem; }
@media (max-width: 52rem) { .sp-phase { grid-template-columns: 1fr; } }
.sp-grid-2 h2 { margin: 0 0 1rem; font-size: var(--wp--preset--font-size--x-large); }
.sp-grid-2 .sp-lead { margin-bottom: 2rem; font-size: 1.1rem; }
.sp-pulse-line + .sp-statement { margin-top: 2rem; }
.sp-aside .sp-note { margin: 0; }
