/*
 * Store&Floor marketing site — visual language after cartage.ai (materials/design-dna/cartage-dna.json):
 * huge centred headlines with tight tracking, big rounded panels, pill buttons, floating dark
 * notifications, stacking panels and lots of air. The COLOURS stay Store&Floor's own system palette
 * (indigo, slate, #0B1220, #F8FAFC) — the user's decision: adopt the style, not the warm palette.
 * Discovery Fs is the only font (02-Brand-Design-System.md).
 * Motion: calm and premium; everything that moves is behind prefers-reduced-motion: no-preference.
 */

:root {
	/* Store&Floor system palette (02-Brand-Design-System.md): the style follows cartage.ai, the colours do not. */
	--sf-primary: #4f46e5;
	--sf-primary-strong: #4338ca;
	--sf-primary-soft: #eef2ff;
	--sf-secondary: #818cf8;
	--sf-accent: #22d3ee;
	--sf-gradient: linear-gradient(135deg, #4f46e5 0%, #818cf8 50%, #22d3ee 100%);
	--sf-bg: #f8fafc;
	--sf-panel: #eef2ff;
	--sf-panel-strong: #e0e7ff;
	--sf-surface: #ffffff;
	--sf-border: #e2e8f0;
	--sf-ink: #0b1220;
	--sf-ink-2: #1e293b;
	--sf-text: #111827;
	--sf-muted: #64748b;
	--sf-faint: #94a3b8;
	--sf-success: #10b981;
	--sf-warning: #f59e0b;

	--sf-radius-panel: 32px;
	--sf-radius-card: 24px;
	--sf-radius-window: 16px;
	--sf-shadow-soft: 0 30px 80px -24px rgb(30 27 75 / 0.16);
	--sf-shadow-window: 0 24px 60px -24px rgb(30 27 75 / 0.28), 0 2px 6px rgb(15 23 42 / 0.04);
	--sf-shadow-toast: 0 18px 40px -12px rgb(11 18 32 / 0.5);

	--sf-ease: cubic-bezier(0.2, 0, 0, 1);
	--sf-ease-calm: cubic-bezier(0.4, 0, 0.2, 1);
	--sf-quick: 160ms;
	--sf-standard: 260ms;
	--sf-slow: 700ms;

	--sf-header-h: 72px;
	--sf-wide: 1200px;
	--sf-panel-w: 1040px;
}

/* Base ------------------------------------------------------------------------------------ */

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

html {
	scroll-padding-block-start: calc(var(--sf-header-h) + 1rem);
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	font-size-adjust: from-font;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
	color: var(--sf-text);
	background: var(--sf-bg);
}

:where(h1, h2, h3) {
	text-wrap: balance;
	color: var(--sf-text);
}

:where(p, li) {
	text-wrap: pretty;
}

::selection {
	background: color-mix(in oklab, var(--sf-primary) 18%, transparent);
}

:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
	outline: 2px solid var(--sf-primary);
	outline-offset: 3px;
	border-radius: 8px;
}

.is-style-sf-dark :where(a, button, summary):focus-visible {
	outline-color: #fff;
}

.sf-icon {
	inline-size: 1em;
	block-size: 1em;
	flex-shrink: 0;
	vertical-align: -0.125em;
}

.sf-skip {
	position: absolute;
	inset-inline-start: 1rem;
	inset-block-start: -100px;
	z-index: 1000;
	padding: 0.75rem 1.25rem;
	background: var(--sf-ink);
	color: #fff;
	border-radius: 999px;
	font-weight: 500;
	text-decoration: none;
}

.sf-skip:focus {
	inset-block-start: 1rem;
}

/* The one highlighted word of a headline: the brand gradient */
.sf-grad {
	background: var(--sf-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

@media (forced-colors: active) {
	.sf-grad {
		color: CanvasText;
		background: none;
	}
}

.sf-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	background: rgb(11 18 32 / 0.78);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 500;
	backdrop-filter: blur(6px);
}

/* Buttons: pills ------------------------------------------------------------------------- */

.sf-btn,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-block-size: 46px;
	border-radius: 999px;
	text-decoration: none;
	white-space: nowrap;
	font-weight: 500;
	transition:
		background-color var(--sf-quick) var(--sf-ease),
		color var(--sf-quick) var(--sf-ease),
		border-color var(--sf-quick) var(--sf-ease),
		box-shadow var(--sf-standard) var(--sf-ease),
		translate var(--sf-standard) var(--sf-ease);
}

.sf-btn {
	padding: 0.65rem 1.35rem;
	font-size: 0.9375rem;
	line-height: 1.2;
	border: 1px solid transparent;
}

/* Arrow after the label of primary actions, like the reference's "→" (pointing left in RTL) */
.sf-btn--primary::after,
.wp-block-button:not(.is-style-sf-ghost) .wp-block-button__link::after {
	content: "";
	inline-size: 1em;
	block-size: 1em;
	background-color: currentColor;
	mask: url("../icons/arrow-left.svg") no-repeat center / contain;
	transition: translate var(--sf-standard) var(--sf-ease);
}

.sf-btn--primary:hover::after,
.wp-block-button:not(.is-style-sf-ghost) .wp-block-button__link:hover::after {
	translate: -3px 0;
}

.sf-btn--primary,
.wp-block-button:not(.is-style-sf-ghost) .wp-block-button__link {
	background: var(--sf-primary);
	color: #fff;
}

.sf-btn--primary:hover,
.wp-block-button:not(.is-style-sf-ghost) .wp-block-button__link:hover {
	background: var(--sf-primary-strong);
	color: #fff;
}

.sf-btn--ghost,
.is-style-sf-ghost .wp-block-button__link {
	background: var(--sf-surface);
	color: var(--sf-text);
	border: 1px solid var(--sf-border);
}

.sf-btn--ghost:hover,
.is-style-sf-ghost .wp-block-button__link:hover {
	border-color: var(--sf-text);
	color: var(--sf-ink);
}

.is-style-sf-dark .is-style-sf-ghost .wp-block-button__link {
	background: transparent;
	color: #fff;
	border-color: rgb(255 255 255 / 0.3);
}

.is-style-sf-dark .wp-block-button:not(.is-style-sf-ghost) .wp-block-button__link {
	background: #fff;
	color: var(--sf-ink);
}

.sf-btn--link {
	color: var(--sf-text);
	padding-inline: 0.75rem;
}

.sf-btn--link:hover {
	color: var(--sf-primary);
}

.wp-block-buttons {
	gap: 0.6rem;
}

/* "See how →" links */
.is-style-sf-more a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-weight: 500;
	text-decoration: none;
	color: var(--sf-primary);
}

.is-style-sf-more a::after {
	content: "";
	inline-size: 1em;
	block-size: 1em;
	background-color: currentColor;
	mask: url("../icons/arrow-left.svg") no-repeat center / contain;
	transition: translate var(--sf-standard) var(--sf-ease);
}

.is-style-sf-more a:hover::after {
	translate: -4px 0;
}

.is-style-sf-dark .is-style-sf-more a {
	color: #c7d2fe;
}

/* Header ---------------------------------------------------------------------------------- */

.wp-block-template-part:has(> .site-header) {
	display: contents;
}

.site-header {
	position: sticky;
	inset-block-start: 0;
	z-index: 100;
	background: rgb(255 255 255 / 0.86);
	backdrop-filter: saturate(1.4) blur(16px);
	-webkit-backdrop-filter: saturate(1.4) blur(16px);
	transition: box-shadow var(--sf-standard) var(--sf-ease);
}

.admin-bar .site-header {
	inset-block-start: var(--wp-admin--admin-bar--height, 0px);
}

/* No line under the header (user's request): a soft shadow once the page scrolls. */
.site-header.is-scrolled {
	box-shadow: 0 8px 24px -20px rgb(15 23 42 / 0.35);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	max-inline-size: var(--sf-wide);
	min-block-size: var(--sf-header-h);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
}

.header-inner > * {
	flex-shrink: 0;
	white-space: nowrap;
}

.site-logo {
	display: inline-flex;
	align-items: center;
}

.site-logo img {
	block-size: 34px;
	inline-size: auto;
}

.site-nav {
	margin-inline-start: auto;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.site-menu,
.site-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-menu a,
.dropdown-trigger {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.6rem 0.85rem;
	border-radius: 12px;
	color: var(--sf-text);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 400;
	text-decoration: none;
	background: none;
	border: 0;
	cursor: pointer;
	inline-size: 100%;
	transition: background-color var(--sf-quick) var(--sf-ease), color var(--sf-quick) var(--sf-ease);
}

.site-menu a:hover,
.dropdown-trigger:hover,
.dropdown-trigger[aria-expanded="true"] {
	background: var(--sf-panel);
	color: var(--sf-ink);
}

/* Current page: a soft pill, no underline (user's request); not colour alone (WCAG 1.4.1). */
.site-menu a[aria-current="page"] {
	color: var(--sf-primary-strong);
	font-weight: 500;
	background: var(--sf-primary-soft);
}

.sf-nav-icon {
	color: var(--sf-muted);
	font-size: 1.1rem;
}

.sf-chevron {
	margin-inline-start: auto;
	font-size: 0.85rem;
	transition: rotate var(--sf-standard) var(--sf-ease);
}

.dropdown-trigger[aria-expanded="true"] .sf-chevron {
	rotate: 180deg;
}

.menu-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-block-size: 44px;
	padding: 0.5rem 0.95rem;
	border: 1px solid var(--sf-border);
	border-radius: 999px;
	background: var(--sf-surface);
	color: var(--sf-text);
	font: inherit;
	font-weight: 500;
	cursor: pointer;
	anchor-name: --menu-button;
}

.menu-button .sf-icon {
	font-size: 1.2rem;
}

.sf-menu-close {
	display: none;
}

.site-header:has(.site-menu:popover-open) .sf-menu-open,
.site-header.menu-open .sf-menu-open {
	display: none;
}

.site-header:has(.site-menu:popover-open) .sf-menu-close,
.site-header.menu-open .sf-menu-close {
	display: inline;
}

/* Collapsed layout: the menu is a popover panel under the button */
.site-header:not(.is-wide) .site-menu {
	position: fixed;
	inset: auto;
	inset-block-start: calc(var(--sf-header-h) + 0.25rem);
	inset-block-start: anchor(--menu-button bottom);
	inset-inline: 1rem;
	inline-size: auto;
	max-inline-size: 30rem;
	margin-inline-start: auto;
	block-size: fit-content;
	max-block-size: calc(100dvh - var(--sf-header-h) - 2rem);
	margin-block-start: 0.5rem;
	overflow: auto;
	padding: 0.75rem;
	border: 1px solid var(--sf-border);
	border-radius: var(--sf-radius-card);
	background: var(--sf-surface);
	box-shadow: var(--sf-shadow-soft);
	color: var(--sf-text);
}

.site-header:not(.is-wide) .site-menu:not(:popover-open):not(.is-open) {
	display: none;
}

.site-header:not(.is-wide) .dropdown-list {
	padding-inline-start: 0.75rem;
	margin-block: 0.25rem 0.5rem;
	border-inline-start: 2px solid var(--sf-panel);
}

.site-header:not(.is-wide) .mega-label {
	display: block;
	padding: 0.75rem 0.85rem 0.25rem;
	color: var(--sf-muted);
	font-size: 0.8125rem;
}

.site-header:not(.is-wide) .header-actions > :not(.sf-btn--primary) {
	display: none;
}

.menu-actions {
	display: grid;
	gap: 0.5rem;
	margin-block-start: 0.75rem;
	padding-block-start: 0.75rem;
	border-block-start: 1px solid var(--sf-border);
}

.menu-actions .sf-btn {
	inline-size: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	.site-header:not(.is-wide) .site-menu {
		transition:
			opacity var(--sf-standard) var(--sf-ease),
			translate var(--sf-standard) var(--sf-ease),
			display var(--sf-standard),
			overlay var(--sf-standard);
		transition-behavior: allow-discrete;
	}

	.site-header:not(.is-wide) .site-menu:not(:popover-open) {
		opacity: 0;
		translate: 0 -8px;
	}

	@starting-style {
		.site-header:not(.is-wide) .site-menu:popover-open {
			opacity: 0;
			translate: 0 -8px;
		}
	}
}

/* Wide layout: inline navigation */
.site-header.is-wide .menu-button,
.site-header.is-wide .menu-actions {
	display: none;
}

.site-header.is-wide .site-nav {
	margin-inline: auto 0;
}

.site-header.is-wide .site-menu {
	position: static;
	display: flex;
	align-items: center;
	gap: 0.125rem;
	inline-size: auto;
	max-inline-size: none;
	block-size: auto;
	max-block-size: none;
	overflow: visible;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.site-header.is-wide .site-menu::backdrop {
	display: none;
}

.site-header.is-wide .site-menu > li > a,
.site-header.is-wide .dropdown-trigger {
	padding: 0.5rem 0.75rem;
	inline-size: auto;
}

.site-header.is-wide .dropdown-trigger .sf-chevron {
	margin-inline-start: 0;
}

.site-header.is-wide .dropdown-list[popover] {
	position: absolute;
	position-area: block-end span-inline-end;
	position-try-fallbacks: flip-inline;
	inset: auto;
	height: auto;
	inline-size: max-content;
	min-inline-size: 15rem;
	margin: 0.5rem 0 0;
	padding: 0.5rem;
	overflow: visible;
	border: 1px solid var(--sf-border);
	border-radius: var(--sf-radius-card);
	background: var(--sf-surface);
	box-shadow: var(--sf-shadow-soft);
	color: var(--sf-text);
}

.site-header.is-wide .dropdown-list::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: 100%;
	block-size: 0.75rem;
}

.site-header.is-wide .dropdown-list:not(:is(:popover-open, .\:popover-open)) {
	display: none;
}

.site-header.is-wide .dropdown-list:is(:popover-open, .\:popover-open) {
	display: grid;
}

.site-header.is-wide .dropdown-list.mega[popover] {
	position: fixed;
	position-area: none;
	inset-block-start: calc(var(--sf-header-h) + var(--wp-admin--admin-bar--height, 0px));
	inset-inline: 0;
	margin-inline: auto;
	margin-block-start: 0.25rem;
	inline-size: min(64rem, calc(100vw - 2rem));
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5rem 1.5rem;
	padding: 1.5rem;
}

.site-header.is-wide .mega-label {
	display: block;
	padding: 0 0.85rem 0.5rem;
	color: var(--sf-muted);
	font-size: 0.8125rem;
}

.site-header.is-wide .mega-all {
	grid-column: 1 / -1;
	padding-block-start: 0.75rem;
	border-block-start: 1px solid var(--sf-border);
}

.mega-all a {
	font-weight: 500;
	color: var(--sf-primary);
	inline-size: auto;
}

@media (prefers-reduced-motion: no-preference) {
	.site-header.is-wide .dropdown-list[popover] {
		transition:
			opacity var(--sf-standard) var(--sf-ease),
			translate var(--sf-standard) var(--sf-ease),
			display var(--sf-standard),
			overlay var(--sf-standard);
		transition-behavior: allow-discrete;
	}

	.site-header.is-wide .dropdown-list[popover]:not(:popover-open) {
		opacity: 0;
		translate: 0 -6px;
	}

	@starting-style {
		.site-header.is-wide .dropdown-list[popover]:popover-open {
			opacity: 0;
			translate: 0 -6px;
		}
	}
}

.site-header.is-measuring * {
	transition: none !important;
}

@supports not selector(:popover-open) {
	[popover]:not(.\:popover-open):not(.is-open) {
		display: none;
	}
}

@media (width < 480px) {
	.header-inner {
		gap: 0.5rem;
	}

	.site-logo img {
		block-size: 28px;
	}

	.menu-button {
		padding-inline: 0.7rem;
	}

	.header-actions .sf-btn--primary {
		min-block-size: 42px;
		padding-inline: 0.9rem;
	}

	.header-actions .sf-btn--primary::after {
		display: none;
	}
}

/* Sections & typography ------------------------------------------------------------------- */

.sf-main {
	margin-block: 0;
}

.sf-main > .wp-block-post-content > :first-child {
	margin-block-start: 0;
}

.sf-section {
	position: relative;
	padding-block: clamp(4rem, 11vw, 10rem);
	margin-block: 0 !important;
}

.sf-section--tight {
	padding-block: clamp(2rem, 4vw, 3rem);
}

/* Centred section heads: one idea per screen */
.sf-section__head,
.sf-panel > .wp-block-heading,
.sf-panel > p {
	text-align: center;
}

.sf-section__head {
	max-inline-size: 52rem;
	margin-inline: auto !important;
	margin-block-end: clamp(2.5rem, 5vw, 4.5rem);
}

.sf-section__head > * {
	margin-inline: auto;
}

.sf-section__head p,
.sf-panel > p:not(.is-style-sf-more) {
	max-inline-size: 36rem;
	margin-inline: auto;
	color: var(--sf-muted);
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.6;
}

.sf-section__foot {
	margin-block-start: 2.5rem;
	text-align: center;
}

.is-style-sf-lead {
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.6;
	color: var(--sf-muted);
}

.is-style-sf-eyebrow {
	font-size: 1rem !important;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--sf-text);
}

.is-style-sf-tinted {
	background: var(--sf-panel);
}

/* Panels: the reference's big cream cards ------------------------------------------------- */

.sf-panel {
	position: relative;
	max-inline-size: var(--sf-panel-w) !important;
	margin-inline: auto !important;
	padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem) 0;
	border-radius: var(--sf-radius-panel);
	background: var(--sf-panel);
	overflow: clip;
	box-shadow: var(--sf-shadow-soft);
}

.sf-panel > * {
	margin-block: 0 !important;
}

.sf-panel > * + * {
	margin-block-start: 1rem !important;
}

.sf-panel > .wp-block-heading {
	font-size: clamp(2.25rem, 5vw, 4rem);
	letter-spacing: -0.03em;
}

.sf-panel > .is-style-sf-more {
	text-align: center;
	margin-block-start: 1.25rem !important;
}

.sf-panel__visual {
	margin-block-start: clamp(2rem, 4vw, 3.5rem) !important;
	margin-inline: auto !important;
	max-inline-size: 760px;
}

/* The product window sits on the panel's bottom edge, like the reference */
.sf-panel__visual .sf-screen__frame {
	border-end-start-radius: 0;
	border-end-end-radius: 0;
	border-block-end: 0;
}

.sf-panel__visual .sf-flow,
.sf-panel__visual .sf-compare {
	margin-block-end: clamp(2rem, 4vw, 3.5rem);
}

.sf-panel.is-style-sf-dark {
	background: var(--sf-ink);
	color: #f8fafc;
}

.sf-panel.is-style-sf-dark > .wp-block-heading {
	color: #fff;
}

.sf-panel.is-style-sf-dark > p:not(.is-style-sf-more) {
	color: #94a3b8;
}

/* Deck: panels that stick and stack as you scroll */
.sf-deck {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.5rem);
}

.sf-deck > .sf-panel {
	inline-size: 100%;
	padding-block-end: clamp(2.5rem, 5vw, 4rem);
}

@media (width >= 782px) and (min-height: 640px) {
	.sf-deck > .sf-panel {
		position: sticky;
		inset-block-start: calc(var(--sf-header-h) + 1.25rem + var(--i, 0) * 14px);
	}
}

.sf-deck .sf-grid {
	margin-block-start: clamp(2rem, 4vw, 3rem) !important;
}

/* Dark sections (outside a panel) */
.is-style-sf-dark:not(.sf-panel) {
	background: var(--sf-ink);
	color: #f8fafc;
}

.is-style-sf-dark :where(h1, h2, h3, h4) {
	color: #fff;
}

.is-style-sf-dark :where(p) {
	color: #94a3b8;
}

/* Hero ------------------------------------------------------------------------------------ */

.sf-hero {
	padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 5vw, 4rem);
	overflow: clip;
	isolation: isolate;
	text-align: center;
}

.sf-hero__text {
	max-inline-size: 76rem;
	margin-inline: auto !important;
}

.sf-hero__text > * {
	margin-inline: auto;
}

.sf-hero h1 {
	margin-block: 0 1.5rem;
}

.sf-hero--home h1 {
	font-size: var(--wp--preset--font-size--huge);
	letter-spacing: -0.04em;
}

.sf-hero .is-style-sf-lead {
	max-inline-size: 38rem;
	margin-block-end: 2.25rem;
}

.sf-hero .wp-block-buttons {
	justify-content: center;
}

.sf-hero__visual {
	margin-block-start: clamp(1.5rem, 4vw, 3rem) !important;
	margin-inline: auto !important;
	max-inline-size: var(--sf-wide) !important;
}

.sf-hero__visual .sf-screen {
	max-inline-size: 980px;
	margin-inline: auto;
}

@media (prefers-reduced-motion: no-preference) {
	@keyframes sf-rise {
		from {
			opacity: 0;
			translate: 0 16px;
		}
	}

	.sf-hero__text > * {
		animation: sf-rise var(--sf-slow) var(--sf-ease-calm) backwards;
	}

	.sf-hero__text > :nth-child(2) {
		animation-delay: 90ms;
	}

	.sf-hero__text > :nth-child(n + 3) {
		animation-delay: 180ms;
	}

	.sf-hero__visual {
		animation: sf-rise 1000ms var(--sf-ease-calm) 200ms backwards;
	}
}

/* Form pages keep a two-column hero */
.sf-hero--form {
	text-align: start;
}

/* 3D devices ------------------------------------------------------------------------------ */

.sf-devices {
	position: relative;
	inline-size: 100%;
	aspect-ratio: 16 / 8;
	max-block-size: 38rem;
	margin-inline: auto;
	touch-action: pan-y;
}

.sf-devices__glow {
	position: absolute;
	inset: auto 12% 2% 12%;
	block-size: 30%;
	z-index: -1;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgb(11 18 32 / 0.08), transparent);
	filter: blur(20px);
}

.sf-devices__fallback,
.sf-devices__canvas {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
}

.sf-devices__canvas {
	opacity: 0;
	transition: opacity 800ms var(--sf-ease-calm);
}

.sf-devices.is-3d .sf-devices__canvas {
	opacity: 1;
}

.sf-devices__fallback {
	transition: opacity 500ms var(--sf-ease-calm);
}

.sf-devices.is-3d .sf-devices__fallback {
	opacity: 0;
}

.sf-devices__badge {
	position: absolute;
	inset-block-end: 2%;
	inset-inline-end: 2%;
}

@media (width < 782px) {
	.sf-devices {
		aspect-ratio: 4 / 3;
	}
}

/* Cards ----------------------------------------------------------------------------------- */

.is-style-sf-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: clamp(1.5rem, 3vw, 2rem);
	background: var(--sf-panel);
	border-radius: var(--sf-radius-card);
	transition:
		background-color var(--sf-standard) var(--sf-ease),
		translate var(--sf-standard) var(--sf-ease);
}

/* Inside a cream panel the cards turn white */
.sf-panel .is-style-sf-card,
.is-style-sf-tinted .is-style-sf-card {
	background: var(--sf-surface);
}

.is-style-sf-card > * {
	margin-block: 0 !important;
}

.is-style-sf-card h3 {
	font-size: 1.3125rem;
	font-weight: 500;
	letter-spacing: -0.01em;
}

.is-style-sf-card p {
	color: var(--sf-muted);
	line-height: 1.6;
}

.is-style-sf-card .is-style-sf-more {
	margin-block-start: auto !important;
	padding-block-start: 0.5rem;
}

.is-style-sf-card:has(.is-style-sf-more a) .is-style-sf-more a::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.is-style-sf-card:has(.is-style-sf-more a):hover {
	background: var(--sf-panel-strong);
}

.sf-panel .is-style-sf-card:has(.is-style-sf-more a):hover,
.is-style-sf-tinted .is-style-sf-card:has(.is-style-sf-more a):hover {
	background: var(--sf-surface);
	box-shadow: var(--sf-shadow-window);
}

@media (prefers-reduced-motion: no-preference) {
	.is-style-sf-card:has(.is-style-sf-more a):hover {
		translate: 0 -2px;
	}
}

.sf-iconbox {
	display: inline-grid;
	place-items: center;
	inline-size: 2.75rem;
	block-size: 2.75rem;
	border-radius: 999px;
	background: var(--sf-surface);
	color: var(--sf-text);
	font-size: 1.25rem;
	box-shadow: 0 0 0 1px var(--sf-border);
}

.sf-panel .sf-iconbox,
.is-style-sf-tinted .sf-iconbox {
	background: var(--sf-panel);
	box-shadow: none;
}

.sf-grid {
	gap: clamp(0.75rem, 1.6vw, 1.25rem) !important;
}

.sf-grid:not(.sf-bento),
.sf-steps {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)) !important;
}

.sf-solutions {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)) !important;
}

@media (width >= 1000px) {
	.sf-bento {
		grid-template-columns: repeat(4, 1fr) !important;
	}

	.sf-bento > .sf-bento--lg {
		grid-column: span 2;
	}
}

/* Product screen (screenshot or schematic) in a clean window ------------------------------- */

.sf-screen {
	position: relative;
	margin: 0;
}

.sf-screen__frame {
	position: relative;
	border-radius: var(--sf-radius-window);
	background: var(--sf-surface);
	border: 1px solid var(--sf-border);
	box-shadow: var(--sf-shadow-window);
	overflow: hidden;
}

.sf-screen__bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0.75rem 1rem;
	border-block-end: 1px solid var(--sf-border);
	background: #fff;
	direction: ltr;
}

.sf-screen__bar i {
	inline-size: 8px;
	block-size: 8px;
	border-radius: 50%;
	background: #cbd5e1;
}

.sf-screen__bar span {
	margin-inline: auto;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--sf-muted);
	direction: rtl;
}

.sf-screen__img {
	display: block;
	inline-size: 100%;
	block-size: auto;
}

.sf-screen__schematic {
	aspect-ratio: 16 / 10;
	padding: clamp(0.9rem, 2.4vw, 1.5rem);
	background: #f8fafc;
}

.sf-screen__badge {
	position: absolute;
	inset-block-end: 0.85rem;
	inset-inline-start: 0.85rem;
}

/* The reference's dark notification that floats over a product window */
.sf-screen:has(.sf-toast) {
	padding-block-start: 1.75rem;
}

.sf-toast {
	position: absolute;
	z-index: 2;
	inset-block-start: 0;
	inset-inline: 0;
	margin-inline: auto;
	inline-size: min(26rem, 86%);
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.8rem 1.1rem;
	border-radius: 18px;
	background: var(--sf-ink);
	color: #fff;
	box-shadow: var(--sf-shadow-toast);
	text-align: start;
}

.sf-toast img {
	inline-size: 22px;
	block-size: auto;
	flex-shrink: 0;
}

.sf-toast__text {
	display: grid;
	line-height: 1.35;
	min-inline-size: 0;
}

.sf-toast__text b {
	font-weight: 500;
	font-size: 0.9375rem;
}

.sf-toast__text span {
	font-size: 0.8125rem;
	color: #94a3b8;
}

@media (prefers-reduced-motion: no-preference) {
	@supports ((animation-timeline: view()) and (animation-range: entry)) {
		@keyframes sf-toast-in {
			from {
				opacity: 0;
				translate: 0 14px;
				scale: 0.96;
			}
		}

		.sf-toast {
			animation: sf-toast-in linear both;
			animation-timeline: view();
			animation-range: entry 20% cover 35%;
		}
	}
}

/* Schematic parts (used when a block has no screenshot) */
.sfs-line {
	display: block;
	block-size: 0.55rem;
	inline-size: var(--w, 80%);
	margin-block-end: 0.6rem;
	border-radius: 999px;
	background: #e2e8f0;
}

.sfs-card {
	padding: 1rem;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--sf-border);
}

.sfs-bars {
	display: flex;
	align-items: flex-end;
	gap: 6%;
	block-size: 7rem;
}

.sfs-bars i {
	flex: 1;
	block-size: var(--h);
	border-radius: 6px 6px 2px 2px;
	background: var(--sf-primary);
	opacity: 0.85;
}

.sfs-dash {
	display: grid;
	gap: 0.9rem;
	block-size: 100%;
	grid-template-rows: auto 1fr;
}

.sfs-kpis {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.6rem;
}

.sfs-kpis i {
	block-size: 3.2rem;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--sf-border);
}

.sfs-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 0.9rem;
}

.sfs-chat {
	display: grid;
	gap: 1rem;
	align-content: center;
	block-size: 100%;
}

.sfs-bubble {
	margin: 0;
	padding: 0.9rem 1.1rem;
	border-radius: 16px;
	font-weight: 500;
}

.sfs-bubble--q {
	justify-self: start;
	background: var(--sf-ink);
	color: #fff;
}

.sfs-bubble--a {
	display: flex;
	gap: 0.75rem;
	justify-self: end;
	inline-size: 82%;
	background: #fff;
	border: 1px solid var(--sf-border);
}

.sfs-bubble--a > div {
	flex: 1;
}

.sfs-pos,
.sfs-perms,
.sfs-customer {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 0.9rem;
	block-size: 100%;
	position: relative;
}

.sfs-tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.6rem;
}

.sfs-tiles i {
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--sf-border);
}

.sfs-cart {
	display: flex;
	flex-direction: column;
	padding: 1rem;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--sf-border);
}

.sfs-pay {
	margin-block-start: auto;
	padding: 0.75rem;
	border-radius: 999px;
	background: var(--sf-primary);
	color: #fff;
	text-align: center;
}

.sfs-role {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 0.75rem;
	padding-block: 0.65rem;
	border-block-end: 1px solid var(--sf-border);
	font-size: 0.9rem;
}

.sfs-toggle {
	inline-size: 2.2rem;
	block-size: 1.25rem;
	border-radius: 999px;
	background: #e2e8f0;
	position: relative;
}

.sfs-toggle::after {
	content: "";
	position: absolute;
	inset-block-start: 0.15rem;
	inset-inline-end: 0.15rem;
	inline-size: 0.95rem;
	block-size: 0.95rem;
	border-radius: 50%;
	background: #fff;
}

.sfs-toggle.is-on {
	background: var(--sf-primary);
}

.sfs-toggle.is-on::after {
	inset-inline-end: auto;
	inset-inline-start: 0.15rem;
}

.sfs-alert {
	position: absolute;
	inset-block-end: 0.5rem;
	inset-inline-end: 1rem;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 0.9rem;
	border-radius: 12px;
	background: var(--sf-ink);
	color: #fff;
	font-size: 0.875rem;
}

.sfs-points {
	display: grid;
	align-content: center;
	gap: 0.25rem;
	padding: 1.25rem;
	border-radius: 14px;
	background: var(--sf-ink);
	color: #fff;
}

.sfs-points b {
	font-size: 2rem;
	font-weight: 500;
}

.sfs-migrate {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	block-size: 100%;
	font-size: 3rem;
	color: var(--sf-text);
}

/* Compare (§02) ---------------------------------------------------------------------------- */

.sf-compare {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

@media (width < 600px) {
	.sf-compare {
		grid-template-columns: 1fr;
	}
}

.sf-compare__side {
	margin: 0;
	padding: 1rem;
	border-radius: var(--sf-radius-card);
	background: var(--sf-surface);
}

.sf-compare__side--one {
	box-shadow: var(--sf-shadow-window);
}

.sf-compare__side figcaption {
	margin-block-start: 0.75rem;
	text-align: center;
	font-weight: 500;
	font-size: 0.95rem;
}

.sf-compare__side--split figcaption {
	color: var(--sf-muted);
}

.sf-compare__stage {
	position: relative;
	aspect-ratio: 300 / 220;
}

.sf-compare__stage > svg {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	fill: none;
	overflow: visible;
}

.sf-compare__wires path {
	stroke: #cbd5e1;
	stroke-width: 1.5;
	stroke-dasharray: 4 6;
	vector-effect: non-scaling-stroke;
}

.sf-compare__spokes path {
	stroke: var(--sf-primary);
	stroke-width: 1.5;
	stroke-dasharray: 3 7;
	vector-effect: non-scaling-stroke;
}

@media (prefers-reduced-motion: no-preference) {
	@keyframes sf-dash {
		to {
			stroke-dashoffset: -40;
		}
	}

	.sf-compare__spokes path {
		animation: sf-dash 1.8s linear infinite;
	}

	@keyframes sf-jitter {
		50% {
			translate: -50% calc(-50% - 3px);
		}
	}

	.sf-compare__side--split .sf-compare__node {
		animation: sf-jitter 3.4s var(--sf-ease-calm) infinite;
		animation-delay: calc(var(--n, 0) * -0.7s);
	}
}

.sf-compare__node {
	position: absolute;
	translate: -50% -50%;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	background: var(--sf-surface);
	border: 1px solid var(--sf-border);
	font-size: 0.8125rem;
	font-weight: 500;
	white-space: nowrap;
}

.sf-compare__node .sf-icon {
	color: var(--sf-muted);
}

.sf-compare__side--one .sf-compare__node .sf-icon {
	color: var(--sf-primary);
}

.sf-compare__side--split .sf-compare__node--0 { left: 18%; top: 16%; --n: 0; }
.sf-compare__side--split .sf-compare__node--1 { left: 80%; top: 20%; --n: 1; }
.sf-compare__side--split .sf-compare__node--2 { left: 50%; top: 52%; --n: 2; }
.sf-compare__side--split .sf-compare__node--3 { left: 22%; top: 84%; --n: 3; }
.sf-compare__side--split .sf-compare__node--4 { left: 80%; top: 82%; --n: 4; }
.sf-compare__side--one .sf-compare__node--0 { left: 20%; top: 18%; }
.sf-compare__side--one .sf-compare__node--1 { left: 80%; top: 18%; }
.sf-compare__side--one .sf-compare__node--2 { left: 13%; top: 68%; }
.sf-compare__side--one .sf-compare__node--3 { left: 87%; top: 68%; }
.sf-compare__side--one .sf-compare__node--4 { left: 50%; top: 93%; }

.sf-compare__hub {
	position: absolute;
	left: 50%;
	top: 50%;
	translate: -50% -50%;
	display: grid;
	place-items: center;
	inline-size: 3.4rem;
	block-size: 3.4rem;
	border-radius: 999px;
	background: var(--sf-surface);
	box-shadow: 0 0 0 6px var(--sf-panel), var(--sf-shadow-window);
}

.sf-compare__hub img {
	inline-size: 2.1rem;
	block-size: auto;
}

/* Flow (§04) on a dark panel --------------------------------------------------------------- */

.sf-flow {
	position: relative;
	padding: clamp(1.25rem, 3vw, 2rem);
	border-radius: var(--sf-radius-card);
	background: rgb(255 255 255 / 0.04);
	border: 1px solid rgb(255 255 255 / 0.1);
	--sf-flow-cycle: 6s;
}

.sf-flow__steps {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-flow__step {
	display: grid;
	justify-items: center;
	gap: 0.75rem;
	text-align: center;
	font-weight: 500;
	font-size: 0.95rem;
	color: #e2e8f0;
}

.sf-flow__icon {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	inline-size: 3.75rem;
	block-size: 3.75rem;
	border-radius: 999px;
	background: #fff;
	color: var(--sf-ink);
	font-size: 1.4rem;
}

.sf-flow__track {
	position: absolute;
	inset-inline: calc(clamp(1.25rem, 3vw, 2rem) + 12.5% - 0.5rem);
	inset-block-start: calc(clamp(1.25rem, 3vw, 2rem) + 1.875rem);
	block-size: 1px;
	background: rgb(255 255 255 / 0.18);
	overflow: hidden;
}

.sf-flow__light {
	position: absolute;
	inset: 0;
	background: linear-gradient(to left, transparent, #c7d2fe, var(--sf-primary), transparent);
}

@media (prefers-reduced-motion: no-preference) {
	@keyframes sf-flow-light {
		0% {
			translate: 100% 0;
		}
		70%,
		100% {
			translate: -100% 0;
		}
	}

	@keyframes sf-flow-step {
		0%,
		100% {
			background: #fff;
			color: var(--sf-ink);
			box-shadow: none;
		}
		8%,
		55% {
			background: var(--sf-primary);
			color: #fff;
			box-shadow: 0 0 0 6px rgb(79 70 229 / 0.25);
		}
	}

	.sf-flow__light {
		animation: sf-flow-light var(--sf-flow-cycle) var(--sf-ease-calm) infinite;
	}

	.sf-flow__step .sf-flow__icon {
		animation: sf-flow-step var(--sf-flow-cycle) var(--sf-ease-calm) infinite;
		animation-delay: calc(var(--i) * 0.9s);
	}
}

@media (width < 600px) {
	.sf-flow__steps {
		grid-template-columns: 1fr 1fr;
		row-gap: 1.75rem;
	}

	.sf-flow__track {
		display: none;
	}
}

/* Story ------------------------------------------------------------------------------------ */

.sf-story {
	max-inline-size: 56rem;
	margin-inline: auto !important;
	text-align: center;
}

.sf-story h2 {
	margin-block-end: 1.75rem;
}

.sf-story .is-style-sf-lead {
	font-size: clamp(1.25rem, 2.2vw, 1.5rem);
	line-height: 1.6;
}

.sf-story__quote {
	margin-block: 2.5rem 1.5rem !important;
	font-size: clamp(1.6rem, 3.4vw, 2.75rem);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.025em;
	color: var(--sf-text);
}

/* Media band (video or image) -------------------------------------------------------------- */

.sf-media {
	position: relative;
	max-inline-size: var(--sf-wide);
	margin: clamp(2.5rem, 6vw, 5rem) auto 0;
	border-radius: var(--sf-radius-panel);
	overflow: hidden;
	background: var(--sf-panel);
	aspect-ratio: 16 / 9;
}

.sf-media > video,
.sf-media > img {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	object-position: top center;
}

.sf-media__badge {
	position: absolute;
	inset-block-end: 1rem;
	inset-inline-start: 1rem;
}

.sf-media__toggle {
	position: absolute;
	inset-block-end: 1rem;
	inset-inline-end: 1rem;
	display: grid;
	place-items: center;
	inline-size: 2.5rem;
	block-size: 2.5rem;
	border: 0;
	border-radius: 999px;
	background: rgb(11 18 32 / 0.7);
	color: #fff;
	cursor: pointer;
}

/* Steps (migration) ------------------------------------------------------------------------ */

.sf-steps {
	counter-reset: sf-step;
}

.sf-step {
	counter-increment: sf-step;
}

.sf-step::before {
	content: counter(sf-step);
	display: grid;
	place-items: center;
	inline-size: 2.25rem;
	block-size: 2.25rem;
	border-radius: 999px;
	background: var(--sf-ink);
	color: #fff;
	font-weight: 500;
	margin-block-end: 0.5rem;
}

.sf-step .sf-iconbox {
	display: none;
}

.sf-step h3 {
	font-size: 1.125rem;
	line-height: 1.45;
}

/* FAQ (Modern Web Guidance: accordion from details) ---------------------------------------- */

.sf-faq {
	max-inline-size: 48rem;
	margin-inline: auto !important;
}

.sf-faq > h2 {
	text-align: center;
	margin-block-end: 2.5rem;
}

.is-style-sf-faq {
	margin-block: 0 !important;
	border-block-end: 1px solid var(--sf-border);
}

.is-style-sf-faq summary {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-block: 1.4rem;
	font-size: 1.1875rem;
	font-weight: 500;
	cursor: pointer;
}

.is-style-sf-faq summary::-webkit-details-marker {
	display: none;
}

.is-style-sf-faq summary::before {
	content: "";
	inline-size: 1em;
	block-size: 1em;
	flex-shrink: 0;
	background-color: var(--sf-text);
	mask: url("../icons/chevron-down.svg") no-repeat center / contain;
	rotate: 90deg;
}

.is-style-sf-faq[open] > summary::before {
	rotate: 0deg;
}

.is-style-sf-faq summary:hover {
	color: var(--sf-primary);
}

.is-style-sf-faq p {
	margin: 0 0 1.4rem;
	padding-inline-start: 1.75rem;
	color: var(--sf-muted);
}

.is-style-sf-faq::details-content {
	interpolate-size: allow-keywords;
	overflow: clip;
	contain: layout;
}

.is-style-sf-faq:not([open])::details-content {
	block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
	.is-style-sf-faq summary::before {
		transition: rotate 0.2s var(--sf-ease);
	}

	.is-style-sf-faq::details-content {
		transition: block-size, content-visibility, display;
		transition-duration: 0.3s;
		transition-timing-function: var(--sf-ease);
		transition-behavior: allow-discrete;
	}
}

/* See also / CTA ---------------------------------------------------------------------------- */

.sf-seealso {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem 2rem;
	padding-block-start: 1.5rem;
	border-block-start: 1px solid var(--sf-border);
}

.sf-seealso > *,
.sf-seealso__links > * {
	margin: 0 !important;
}

.sf-seealso__links {
	gap: 0.5rem 1.75rem !important;
}

.sf-cta {
	padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 8vw, 7rem);
}

.sf-cta__inner {
	padding-block-end: clamp(2.5rem, 6vw, 4.5rem);
	text-align: center;
}

.sf-cta__inner .wp-block-buttons {
	justify-content: center;
	margin-block-start: 2rem !important;
}

/* Forms ------------------------------------------------------------------------------------- */

.sf-form-page {
	align-items: flex-start !important;
	gap: clamp(2rem, 5vw, 4.5rem) !important;
}

.sf-form-page__text {
	flex-basis: 44% !important;
}

.sf-form-page__form {
	flex-basis: 56% !important;
}

.sf-form-page__text .sf-screen {
	margin-block-start: 2rem;
}

.sf-form-card {
	padding: clamp(1.25rem, 3vw, 2rem) !important;
	background: var(--sf-surface) !important;
	box-shadow: var(--sf-shadow-soft);
}

.sf-form-card:not(:has(.sf-form)) {
	display: none;
}

.sf-form iframe {
	display: block;
	inline-size: 100%;
}

.sf-form--pending {
	padding: 1.5rem;
	border: 2px dashed var(--sf-warning);
	border-radius: 16px;
	background: #fffbeb;
	color: #78350f;
}

.sf-form--pending p {
	margin-block: 0 0.5rem;
	color: inherit;
}

.sf-form__title {
	font-weight: 500;
}

.sf-form__note {
	font-size: 0.875rem;
}

.sf-privacy-note {
	font-size: 0.875rem;
	color: var(--sf-muted);
}

.sf-useful-links > * {
	margin: 0 !important;
}

.sf-thanks {
	max-inline-size: 40rem;
	margin-inline: auto !important;
	align-items: center;
	text-align: center;
	padding: clamp(2rem, 5vw, 3.5rem) !important;
}

.sf-thanks .sf-iconbox {
	inline-size: 3.5rem;
	block-size: 3.5rem;
	font-size: 1.75rem;
	color: var(--sf-success);
}

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

.site-footer {
	padding-block: clamp(3rem, 6vw, 5rem) 2rem;
	padding-inline: clamp(1rem, 4vw, 2rem);
	background: var(--sf-bg);
	border-block-start: 1px solid var(--sf-border);
}

.footer-inner {
	display: grid;
	grid-template-columns: minmax(16rem, 1.4fr) repeat(4, minmax(9rem, 1fr));
	gap: 2.5rem;
	max-inline-size: var(--sf-wide);
	margin-inline: auto;
}

@media (width < 1000px) {
	.footer-inner {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-brand {
		grid-column: 1 / -1;
	}
}

.footer-logo img {
	block-size: 34px;
	inline-size: auto;
}

.footer-brand p {
	max-inline-size: 22rem;
	color: var(--sf-muted);
}

.footer-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.footer-col h2 {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0;
}

.footer-col ul,
.footer-legal {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.6rem;
}

.footer-col a,
.footer-legal a {
	color: var(--sf-muted);
	text-decoration: none;
	font-size: 0.9375rem;
}

.footer-col a:hover,
.footer-legal a:hover {
	color: var(--sf-text);
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	max-inline-size: var(--sf-wide);
	margin: 3rem auto 0;
	padding-block-start: 1.5rem;
	border-block-start: 1px solid var(--sf-border);
	color: var(--sf-muted);
	font-size: 0.875rem;
}

.footer-bottom p {
	margin: 0;
}

.footer-legal {
	display: flex;
	gap: 1.5rem;
}

/* Knowledge centre and articles (PRIMATIK SEO writes regular posts; inc/articles.php) ------- */

.sf-hero--archive .sf-hero__text {
	max-inline-size: 52rem;
}

/* Category chips under the title */
.sf-cat-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin: 1.75rem 0 0 !important;
	padding: 0;
	list-style: none;
}

.sf-cat-chips a {
	display: inline-block;
	padding: 0.5rem 1.05rem;
	border-radius: 999px;
	background: var(--sf-surface);
	border: 1px solid var(--sf-border);
	color: var(--sf-text);
	font-weight: 500;
	font-size: 0.95rem;
	text-decoration: none;
	transition: border-color var(--sf-quick) var(--sf-ease), color var(--sf-quick) var(--sf-ease);
}

.sf-cat-chips a:hover,
.sf-cat-chips a:focus-visible,
.sf-cat-chips .current-cat a {
	border-color: var(--sf-primary);
	color: var(--sf-primary);
}

.sf-section--posts {
	padding-block: clamp(1.5rem, 4vw, 3rem) clamp(4rem, 9vw, 7rem);
}

.sf-posts {
	gap: clamp(1rem, 2vw, 1.5rem) !important;
}

@media (width < 900px) {
	.sf-posts {
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)) !important;
	}
}

.sf-post-card {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	overflow: hidden;
	margin: 0;
	padding: clamp(1.25rem, 2.5vw, 1.75rem) !important;
	border-radius: var(--sf-radius-card);
	background: var(--sf-surface);
	border: 1px solid var(--sf-border);
	box-shadow: 0 18px 40px -30px rgb(30 27 75 / 0.35);
	transition: box-shadow var(--sf-standard) var(--sf-ease), translate var(--sf-standard) var(--sf-ease);
}

.sf-post-card:hover {
	box-shadow: var(--sf-shadow-soft);
	translate: 0 -2px;
}

.sf-post-card > * {
	margin: 0 !important;
}

.sf-post-card .sf-post-card__image,
.sf-post-card .wp-block-post-featured-image {
	display: block;
	margin: calc(clamp(1.25rem, 2.5vw, 1.75rem) * -1) calc(clamp(1.25rem, 2.5vw, 1.75rem) * -1) 0.5rem !important;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--sf-panel);
}

.sf-post-card .sf-post-card__image img,
.sf-post-card .wp-block-post-featured-image img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.sf-post-card__title {
	font-size: 1.3rem;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.sf-post-card__title a {
	color: inherit;
	text-decoration: none;
}

.sf-post-card__title a:hover {
	color: var(--sf-primary);
}

.sf-post-card__excerpt,
.sf-post-card__excerpt p {
	margin: 0;
	color: var(--sf-muted);
	line-height: 1.6;
}

.sf-posts-empty {
	text-align: center;
	color: var(--sf-muted);
	font-size: var(--wp--preset--font-size--lead);
}

.sf-posts-links {
	margin-block-start: clamp(2.5rem, 5vw, 4rem) !important;
	text-align: center;
	color: var(--sf-faint);
}

/* Category, date and reading time */
.sf-article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.9rem;
	margin: 0;
	font-size: 0.875rem;
	color: var(--sf-muted);
}

.sf-article-meta > * + *::before {
	content: "·";
	margin-inline-end: 0.9rem;
	color: var(--sf-faint);
}

.sf-article-meta__cat {
	color: var(--sf-primary);
	font-weight: 600;
	text-decoration: none;
}

/* The article */
.sf-article__wrap {
	padding-block: clamp(2rem, 5vw, 4rem) clamp(2rem, 5vw, 3.5rem);
}

.sf-article__head {
	max-inline-size: 48rem !important;
	margin-block-end: clamp(1.75rem, 4vw, 2.75rem) !important;
}

.sf-article__head .sf-article-meta {
	margin-block-end: 1rem;
}

.sf-article__head h1 {
	font-size: clamp(2.25rem, 4.6vw, 3.75rem);
	line-height: 1.08;
	letter-spacing: -0.03em;
	margin: 0;
}

.sf-article__image {
	margin-block-end: clamp(2rem, 5vw, 3.5rem) !important;
}

.sf-article__image img {
	border-radius: var(--sf-radius-panel);
	box-shadow: var(--sf-shadow-soft);
}

.sf-article__body {
	font-size: 1.15rem;
	line-height: 1.85;
	color: var(--sf-ink-2);
}

.sf-article__body > * {
	max-inline-size: 46rem;
}

.sf-article__body :where(h2) {
	font-size: clamp(1.6rem, 2.6vw, 2.1rem);
	line-height: 1.2;
	letter-spacing: -0.02em;
	margin-block: 2.4em 0.7em;
}

.sf-article__body :where(h3) {
	font-size: 1.35rem;
	line-height: 1.3;
	margin-block: 2em 0.5em;
}

.sf-article__body :where(p, ul, ol) {
	margin-block: 0 1.15em;
}

.sf-article__body :where(ul, ol) {
	padding-inline-start: 1.4em;
}

.sf-article__body :where(li) + :where(li) {
	margin-block-start: 0.35em;
}

.sf-article__body :where(li)::marker {
	color: var(--sf-primary);
}

.sf-article__body a {
	color: var(--sf-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.sf-article__body :where(blockquote) {
	margin-inline: 0;
	padding: 0.25rem 1.25rem;
	border-inline-start: 3px solid var(--sf-primary);
	color: var(--sf-text);
	font-size: 1.2rem;
}

.sf-article__body :where(img) {
	border-radius: var(--sf-radius-card);
}

.sf-article__body :where(table) {
	inline-size: 100%;
	border-collapse: collapse;
	font-size: 1rem;
}

.sf-article__body :where(th, td) {
	padding: 0.6rem 0.75rem;
	border-block-end: 1px solid var(--sf-border);
	text-align: start;
}

.sf-article__body :where(th) {
	background: var(--sf-panel);
	font-weight: 600;
}

.sf-article__body :where(.wp-block-table) {
	overflow-x: auto;
}

/* More articles */
.sf-section--related {
	padding-block: 0 clamp(2rem, 5vw, 4rem);
}

.sf-related {
	border-block-start: 1px solid var(--sf-border);
	padding-block-start: clamp(2rem, 5vw, 3rem);
}

.sf-related__title {
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	margin: 0 0 1.5rem;
}

.sf-related__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-404 {
	padding-block: clamp(4rem, 10vw, 8rem);
	text-align: center;
}

.sf-404 .wp-block-buttons {
	justify-content: center;
}

/* Reveal on scroll (Modern Web Guidance: scroll entry effects) ------------------------------ */

@media (prefers-reduced-motion: no-preference) {
	@supports ((animation-timeline: view()) and (animation-range: entry)) {
		@keyframes sf-reveal {
			from {
				opacity: 0;
				translate: 0 32px;
			}
		}

		.sf-reveal {
			animation: sf-reveal linear backwards;
			animation-timeline: view();
			animation-range: entry 0% entry 60%;
		}
	}

	.sf-io .sf-reveal {
		transition:
			opacity var(--sf-slow) var(--sf-ease-calm),
			translate var(--sf-slow) var(--sf-ease-calm);
	}

	.sf-io .sf-reveal:not(.is-visible) {
		opacity: 0;
		translate: 0 32px;
	}
}

/* Mobile ------------------------------------------------------------------------------------ */

@media (width < 782px) {
	/* WordPress already stacks columns below 782px (wrap + 100% basis); keep that. */
	.sf-form-page {
		align-items: stretch !important;
	}

	.sf-panel {
		border-radius: 24px;
	}
}

/* Each deck panel sticks a little lower than the one before, so the stack shows its edges. */
.sf-deck > :nth-child(2) { --i: 1; }
.sf-deck > :nth-child(3) { --i: 2; }
.sf-deck > :nth-child(4) { --i: 3; }
.sf-deck > :nth-child(5) { --i: 4; }
.sf-deck > :nth-child(6) { --i: 5; }

.sf-panel > p a,
.sf-section__head p a {
	color: var(--sf-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

/* System palette on the reference's components ------------------------------------------- */

/* Cards outside a panel: white on the light page, like the app's cards */
.is-style-sf-card {
	background: var(--sf-surface);
	box-shadow: 0 0 0 1px var(--sf-border);
}

.is-style-sf-card:has(.is-style-sf-more a):hover {
	background: var(--sf-surface);
	box-shadow: 0 0 0 1px rgb(129 140 248 / 0.55), var(--sf-shadow-window);
}

.sf-panel .is-style-sf-card,
.is-style-sf-tinted .is-style-sf-card {
	box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
}

.sf-iconbox,
.sf-panel .sf-iconbox,
.is-style-sf-tinted .sf-iconbox {
	background: var(--sf-primary-soft);
	color: var(--sf-primary);
	box-shadow: none;
}

.sf-panel .sf-iconbox,
.is-style-sf-tinted .sf-iconbox {
	background: var(--sf-panel);
}

/* Dark panels: the app's dark tone with a soft indigo glow */
.sf-panel.is-style-sf-dark,
.is-style-sf-dark:not(.sf-panel) {
	background:
		radial-gradient(40rem 22rem at 85% 0%, rgb(79 70 229 / 0.35), transparent 65%),
		radial-gradient(34rem 20rem at 10% 100%, rgb(34 211 238 / 0.14), transparent 65%),
		var(--sf-ink);
}

.sf-flow__icon {
	color: var(--sf-primary);
}

.sf-step::before,
.sfs-bubble--q {
	background: var(--sf-primary);
}

.site-header {
	background: rgb(248 250 252 / 0.85);
}

/* Photos in cards ------------------------------------------------------------------------- */

.sf-photo {
	margin: calc(clamp(1.5rem, 3vw, 2rem) * -1) calc(clamp(1.5rem, 3vw, 2rem) * -1) 0.75rem !important;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--sf-radius-card) var(--sf-radius-card) 0 0;
	background: var(--sf-panel);
}

.sf-photo img {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	transition: scale 900ms var(--sf-ease-calm);
}

@media (prefers-reduced-motion: no-preference) {
	.is-style-sf-card:hover .sf-photo img {
		scale: 1.04;
	}
}

/* A card with a photo drops its icon: the picture says it */
.is-style-sf-card:has(.sf-photo) .sf-iconbox {
	display: none;
}

@media (width >= 1000px) {
	.sf-bento > .sf-bento--lg .sf-photo {
		aspect-ratio: 21 / 9;
	}
}

/* Backdrops: image or video behind a panel, under a dark overlay ----------------------------- */

.sf-backdrop {
	position: absolute !important;
	inset: 0;
	z-index: 0;
	margin: 0 !important;
}

.sf-backdrop img,
.sf-backdrop video {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	object-position: var(--sf-pos, center);
}

.sf-backdrop::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(60rem 30rem at 85% 0%, rgb(79 70 229 / 0.35), transparent 65%),
		linear-gradient(180deg, rgb(11 18 32 / 0.55) 0%, rgb(11 18 32 / 0.82) 100%);
}

.sf-panel:has(> .sf-backdrop) {
	background: var(--sf-ink);
	color: #f8fafc;
	isolation: isolate;
}

.sf-panel:has(> .sf-backdrop) > :not(.sf-backdrop) {
	position: relative;
	z-index: 1;
}

.sf-panel:has(> .sf-backdrop) :where(h1, h2, h3) {
	color: #fff;
}

.sf-panel:has(> .sf-backdrop) p:not(.is-style-sf-more) {
	color: #cbd5e1;
}

.sf-panel:has(> .sf-backdrop) .is-style-sf-more a {
	color: #c7d2fe;
}

.sf-panel:has(> .sf-backdrop) .wp-block-button:not(.is-style-sf-ghost) .wp-block-button__link {
	background: #fff;
	color: var(--sf-ink);
}

.sf-backdrop__toggle {
	z-index: 2 !important;
	position: absolute !important;
}

.sf-media__toggle .sf-icon {
	font-size: 1rem;
}

/* Story panel: a full photo panel, cartage's big dark band */
.sf-story.sf-panel {
	max-inline-size: var(--sf-wide) !important;
	padding-block: clamp(4rem, 10vw, 8rem) !important;
}

.sf-story.sf-panel .sf-story__quote {
	color: #fff;
	border: 0;
}

/* Panel bottom breathing room (user's note: content looked pressed to the bottom edge).
   Every panel gets bottom padding; only a product window still sits on the edge, on purpose. */
.sf-panel {
	padding-block-end: clamp(2.5rem, 6vw, 4.5rem);
}

.sf-panel:has(> .sf-panel__visual .sf-screen) {
	padding-block-end: 0;
}

.sf-panel__visual .sf-flow,
.sf-panel__visual .sf-compare {
	margin-block-end: 0;
}

.sf-deck > .sf-panel,
.sf-cta__inner {
	padding-block-end: clamp(2.5rem, 6vw, 4.5rem);
}

/* Migration scene (sf/migrate) ------------------------------------------------------------- */

.sf-migrate {
	--mg-t: 10s;
}

.mg-pin {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.5rem);
}

.mg-stage {
	display: grid;
	grid-template-columns: 1fr minmax(5rem, 9rem) 1fr;
	align-items: center;
}

.mg-window {
	position: relative;
	border-radius: var(--sf-radius-card);
	background: var(--sf-surface);
	box-shadow: 0 0 0 1px var(--sf-border), var(--sf-shadow-window);
	overflow: hidden;
}

.mg-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0.7rem 1rem;
	border-block-end: 1px solid var(--sf-border);
	direction: ltr;
}

.mg-bar i {
	inline-size: 8px;
	block-size: 8px;
	border-radius: 50%;
	background: #cbd5e1;
}

.mg-bar span {
	margin-inline: auto;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--sf-muted);
}

.mg-body {
	position: relative;
	min-block-size: 15.5rem;
	padding: 1.25rem;
}

.mg-act {
	position: absolute;
	inset: 1.25rem;
	display: grid;
	align-content: start;
	gap: 0.55rem;
}

.mg-title {
	font-weight: 500;
	margin-block-end: 0.25rem;
}

.mg-option,
.mg-check,
.mg-row {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.6rem 0.8rem;
	border-radius: 12px;
	background: var(--sf-bg);
	box-shadow: 0 0 0 1px var(--sf-border);
	font-size: 0.9rem;
	font-weight: 500;
}

.mg-option .sf-icon,
.mg-row .sf-icon {
	color: var(--sf-primary);
}

.mg-check i {
	display: grid;
	place-items: center;
	inline-size: 1.15rem;
	block-size: 1.15rem;
	border-radius: 6px;
	font-size: 0.8rem;
	/* static / reduced-motion state: ticked */
	background: var(--sf-primary);
	color: #fff;
}

.mg-go {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-block-start: 0.25rem;
	padding: 0.5rem 1rem;
	border-radius: 999px;
	background: var(--sf-primary);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 500;
}

.mg-cursor {
	position: absolute;
	inline-size: 14px;
	block-size: 14px;
	border-radius: 50%;
	background: var(--sf-primary);
	box-shadow: 0 0 0 6px rgb(79 70 229 / 0.2);
	inset-inline-start: 70%;
	inset-block-start: 3.4rem;
	opacity: 0;
}

.mg-bridge {
	position: relative;
	block-size: 4rem;
}

.mg-progress {
	position: absolute;
	inset-inline: 0.75rem;
	inset-block-start: 50%;
	block-size: 4px;
	border-radius: 4px;
	background: var(--sf-border);
	overflow: hidden;
}

.mg-progress i {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	inline-size: 100%;
	background: var(--sf-gradient);
}

.mg-chip {
	position: absolute;
	inset-block-start: calc(50% - 1.1rem);
	inset-inline-start: 0;
	display: grid;
	place-items: center;
	inline-size: 2.2rem;
	block-size: 2.2rem;
	border-radius: 999px;
	background: var(--sf-primary);
	color: #fff;
	box-shadow: 0 8px 20px -8px rgb(79 70 229 / 0.8);
	opacity: 0;
}

.mg-dest .mg-body {
	display: grid;
	align-content: start;
	gap: 0.55rem;
}

.mg-mark {
	inline-size: 2.4rem;
	block-size: auto;
	margin-block-end: 0.25rem;
}

.mg-row--in em {
	margin-inline-start: auto;
	color: var(--sf-success);
	font-style: normal;
}

.mg-done {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	justify-self: start;
	margin-block-start: 0.35rem;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	background: #ecfdf5;
	color: #047857;
	font-weight: 500;
	font-size: 0.9rem;
}

.mg-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mg-step {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	border-radius: 999px;
	background: var(--sf-surface);
	box-shadow: 0 0 0 1px var(--sf-border);
	font-weight: 500;
}

.mg-num {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	inline-size: 2rem;
	block-size: 2rem;
	border-radius: 999px;
	background: var(--sf-primary);
	color: #fff;
	font-weight: 600;
}

/* Static state (and reduced motion): the move is done */
.mg-act--pick,
.mg-act--send {
	visibility: hidden;
}

/* Animated mode: assets/js/site.js steps data-phase / data-sub through the scene (never for
   reduced motion, which keeps the finished state above). */
.sf-migrate[data-phase] .mg-act {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s var(--sf-ease), visibility 0.4s;
}

.sf-migrate[data-phase="pick"] .mg-act--pick,
.sf-migrate[data-phase="choose"] .mg-act--choose,
.sf-migrate[data-phase="send"] .mg-act--send,
.sf-migrate[data-phase="done"] .mg-act--send {
	opacity: 1;
	visibility: visible;
}

/* Act 1: the cursor glides to the first option, which gets picked */
.sf-migrate[data-phase] .mg-cursor {
	opacity: 0;
	translate: 0 3rem;
	transition: translate 0.9s var(--sf-ease-calm), opacity 0.3s, scale 0.2s;
}

.sf-migrate[data-phase="pick"]:not([data-sub="0"]) .mg-cursor {
	opacity: 1;
	translate: 0 0;
}

.sf-migrate[data-phase="pick"][data-sub="2"] .mg-cursor {
	scale: 0.75;
}

.mg-option {
	transition: background-color 0.3s, box-shadow 0.3s;
}

.sf-migrate[data-phase="pick"][data-sub="2"] .mg-option--on {
	background: var(--sf-primary-soft);
	box-shadow: 0 0 0 2px var(--sf-primary);
}

/* Act 2: boxes tick one after another, then the button is pressed */
.sf-migrate[data-phase] .mg-check i {
	background: transparent;
	color: transparent;
	box-shadow: inset 0 0 0 1.5px #cbd5e1;
	transition: background-color 0.25s, color 0.25s, box-shadow 0.25s, scale 0.25s;
	transition-delay: calc(var(--i) * 0.3s);
}

.sf-migrate[data-phase="choose"]:not([data-sub="0"]) .mg-check i {
	background: var(--sf-primary);
	color: #fff;
	box-shadow: none;
}

.mg-go {
	transition: scale 0.2s var(--sf-ease), box-shadow 0.3s;
}

.sf-migrate[data-phase="choose"][data-sub="2"] .mg-go {
	scale: 0.94;
	box-shadow: 0 0 0 8px rgb(79 70 229 / 0.18);
}

/* Act 3: rows leave the old system, chips arc across, rows land in Store&Floor */
.sf-migrate[data-phase] .mg-act--send .mg-row {
	transition: opacity 0.5s, translate 0.5s;
	transition-delay: calc(var(--i) * 0.5s);
}

.sf-migrate[data-phase="send"][data-sub="1"] .mg-act--send .mg-row,
.sf-migrate[data-phase="done"] .mg-act--send .mg-row {
	opacity: 0.3;
	translate: -6px 0;
}

@keyframes mg-fly {
	0% { opacity: 0; inset-inline-start: 0%; translate: 0 0; }
	12% { opacity: 1; }
	50% { translate: 0 -1.75rem; }
	88% { opacity: 1; inset-inline-start: calc(100% - 2.2rem); translate: 0 0; }
	100% { opacity: 0; inset-inline-start: calc(100% - 2.2rem); }
}

.sf-migrate[data-phase="send"][data-sub="1"] .mg-chip {
	animation: mg-fly 1.3s var(--sf-ease-calm) both;
	animation-delay: calc(var(--i) * 0.5s);
}

.sf-migrate[data-phase] .mg-progress i {
	inline-size: 0;
	transition: inline-size 2.6s linear;
}

.sf-migrate[data-phase="send"][data-sub="1"] .mg-progress i,
.sf-migrate[data-phase="done"] .mg-progress i {
	inline-size: 100%;
}

.sf-migrate[data-phase] .mg-row--in {
	opacity: 0;
	translate: 10px 0;
	transition: opacity 0.4s var(--sf-ease), translate 0.4s var(--sf-ease);
	transition-delay: calc(var(--i) * 0.5s + 1s);
}

.sf-migrate[data-phase="send"][data-sub="1"] .mg-row--in,
.sf-migrate[data-phase="done"] .mg-row--in {
	opacity: 1;
	translate: 0 0;
}

.sf-migrate[data-phase] .mg-done {
	opacity: 0;
	scale: 0.85;
	transition: opacity 0.4s var(--sf-ease), scale 0.4s var(--sf-ease);
}

.sf-migrate[data-phase="done"] .mg-done {
	opacity: 1;
	scale: 1;
}

/* The step list follows the scene */
.sf-migrate[data-phase] .mg-num {
	background: var(--sf-primary-soft);
	color: var(--sf-primary);
	transition: background-color 0.3s, color 0.3s;
}

.sf-migrate[data-phase="pick"] .mg-step:nth-child(1) .mg-num,
.sf-migrate[data-phase="choose"] .mg-step:nth-child(2) .mg-num,
.sf-migrate[data-phase="send"] .mg-step:nth-child(3) .mg-num,
.sf-migrate[data-phase="done"] .mg-step:nth-child(3) .mg-num {
	background: var(--sf-primary);
	color: #fff;
}

.mg-stage {
	align-items: stretch;
}

.mg-window {
	display: flex;
	flex-direction: column;
}

.mg-body {
	flex: 1;
	min-block-size: 17.5rem;
}

.mg-bridge {
	align-self: center;
}

@media (width < 782px) {
	.mg-stage {
		grid-template-columns: 1fr;
	}

	.mg-bridge {
		block-size: 2.5rem;
	}

	.mg-chip,
	.mg-progress {
		display: none;
	}

	.mg-bridge::after {
		content: "";
		position: absolute;
		inset: 0;
		margin: auto;
		inline-size: 1.5rem;
		block-size: 1.5rem;
		background-color: var(--sf-primary);
		mask: url("../icons/chevron-down.svg") no-repeat center / contain;
	}

	.mg-steps {
		grid-template-columns: 1fr;
	}
}

/* Testimonials on a rope (sf/testimonials) -------------------------------------------------- */

.sf-rope {
	position: relative;
	--rope-y: 2.75rem;
	--thread: 3.25rem;
}

.sf-rope__stage {
	position: relative;
}

/* The rope: a slack line across the whole width, with a soft shadow under it */
.sf-rope__line {
	position: absolute;
	inset-inline: 0;
	inset-block-start: var(--rope-y);
	block-size: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, transparent, #94a3b8 6%, #64748b 50%, #94a3b8 94%, transparent);
	box-shadow: 0 6px 10px -4px rgb(15 23 42 / 0.25);
	pointer-events: none;
	z-index: 1;
}

.sf-rope__track {
	display: flex;
	gap: clamp(1rem, 2.5vw, 2rem);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: calc(var(--rope-y) - 0.5rem) clamp(1rem, 10vw, 10rem) 3rem;
	cursor: grab;
}

.sf-rope__track::-webkit-scrollbar {
	display: none;
}

.sf-rope__track.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	user-select: none;
}

.sf-rope__card {
	position: relative;
	flex: 0 0 min(22rem, 78vw);
	margin: 0;
	padding-block-start: var(--thread);
	scroll-snap-align: center;
	transform-origin: 50% 0.5rem;
	rotate: var(--swing, 0deg);
	will-change: rotate;
}

.sf-rope__thread {
	position: absolute;
	inset-block-start: 0.5rem;
	inset-inline-start: calc(50% - 0.75px);
	inline-size: 1.5px;
	block-size: calc(var(--thread) - 0.5rem);
	background: #94a3b8;
}

/* A little clothes-peg on the rope */
.sf-rope__pin {
	position: absolute;
	z-index: 2;
	inset-block-start: 0;
	inset-inline-start: calc(50% - 7px);
	inline-size: 14px;
	block-size: 24px;
	border-radius: 5px;
	background: linear-gradient(180deg, var(--sf-secondary), var(--sf-primary));
	box-shadow: 0 3px 6px -2px rgb(30 27 75 / 0.5), inset 0 1px 0 rgb(255 255 255 / 0.4);
}

.sf-rope__paper {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	block-size: 100%;
	padding: clamp(1.5rem, 3vw, 2rem);
	border-radius: var(--sf-radius-card);
	background: var(--sf-surface);
	box-shadow: 0 0 0 1px var(--sf-border), 0 24px 50px -28px rgb(30 27 75 / 0.45);
}

.sf-rope__stars {
	color: var(--sf-warning);
	letter-spacing: 2px;
	font-size: 1rem;
}

.sf-rope__paper blockquote {
	margin: 0;
	flex: 1;
}

.sf-rope__paper blockquote p {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--sf-text);
}

.sf-rope__paper figcaption {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-block-start: 1rem;
	border-block-start: 1px solid var(--sf-border);
}

.sf-rope__paper figcaption > span:last-child {
	display: grid;
	line-height: 1.35;
}

.sf-rope__paper small {
	color: var(--sf-muted);
	font-size: 0.875rem;
}

.sf-rope__avatar {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	inline-size: 2.75rem;
	block-size: 2.75rem;
	border-radius: 999px;
	background: var(--sf-gradient);
	color: #fff;
	font-weight: 600;
}

.sf-rope__nav {
	display: flex;
	justify-content: center;
	gap: 0.6rem;
}

.sf-rope__btn {
	display: grid;
	place-items: center;
	inline-size: 3rem;
	block-size: 3rem;
	border: 0;
	border-radius: 999px;
	background: var(--sf-surface);
	box-shadow: 0 0 0 1px var(--sf-border);
	color: var(--sf-text);
	font-size: 1.1rem;
	cursor: pointer;
	transition: background-color var(--sf-quick) var(--sf-ease), color var(--sf-quick) var(--sf-ease);
}

.sf-rope__btn:hover {
	background: var(--sf-primary);
	color: #fff;
}

/* "previous" points the other way (inline-start) */
.sf-rope__btn[data-dir="-1"] .sf-icon {
	rotate: 180deg;
}

@media (prefers-reduced-motion: no-preference) {
	.sf-rope__track {
		scroll-behavior: smooth;
	}
}

.sf-story.sf-panel > p.sf-story__quote {
	max-inline-size: 46rem;
	font-size: clamp(1.4rem, 2.8vw, 2.25rem);
	line-height: 1.25;
	color: #fff;
}

/* Migration scene, scroll mode: the block is tall, the scene pins, scroll position plays it. */
.sf-migrate[data-scroll] {
	block-size: 320vh;
	display: block;
}

.sf-migrate[data-scroll] > .mg-pin {
	position: sticky;
	inset-block-start: calc(var(--sf-header-h) + max(1.5rem, (100vh - var(--sf-header-h) - 32rem) / 2));
}

/* Ticks, press, rows and chips follow the scroll, not timers */
.sf-migrate[data-scroll] .mg-check i,
.sf-migrate[data-scroll] .mg-act--send .mg-row,
.sf-migrate[data-scroll] .mg-row--in {
	transition-delay: 0s;
}

.sf-migrate[data-scroll] .mg-check.is-on i {
	background: var(--sf-primary);
	color: #fff;
	box-shadow: none;
	scale: 1;
}

.sf-migrate[data-scroll] .mg-go.is-pressed {
	scale: 0.94;
	box-shadow: 0 0 0 8px rgb(79 70 229 / 0.18);
}

.sf-migrate[data-scroll] .mg-act--send .mg-row.is-out {
	opacity: 0.3;
	translate: -6px 0;
}

.sf-migrate[data-scroll] .mg-row--in.is-in {
	opacity: 1;
	translate: 0 0;
}

.sf-migrate[data-scroll] .mg-chip {
	animation: none;
	opacity: var(--o, 0);
	inset-inline-start: calc(var(--t, 0) * (100% - 2.2rem));
	translate: 0 calc(sin(var(--t, 0) * 180deg) * -1.75rem);
}

.sf-migrate[data-scroll] .mg-progress i {
	transition: none;
	inline-size: calc(var(--fill, 0) * 100%);
}

.sf-migrate[data-scroll][data-phase="done"] .mg-progress i {
	inline-size: 100%;
}

/* User's notes (0.5.0):
   1. Nothing sits cut on a panel edge any more: product windows keep their full frame and the
      panel keeps its bottom padding.
   2. One uniform page background: panels and tinted sections no longer switch to light purple;
      panels are white cards on the page, separated by a hairline and a soft shadow. */
.sf-panel:has(> .sf-panel__visual .sf-screen) {
	padding-block-end: clamp(2.5rem, 6vw, 4.5rem);
}

.sf-panel__visual .sf-screen__frame {
	border-end-start-radius: var(--sf-radius-window);
	border-end-end-radius: var(--sf-radius-window);
	border-block-end: 1px solid var(--sf-border);
}

.sf-panel:not(.is-style-sf-dark):not(:has(> .sf-backdrop)) {
	background: var(--sf-surface);
	box-shadow: 0 0 0 1px var(--sf-border), 0 30px 70px -40px rgb(30 27 75 / 0.25);
}

.is-style-sf-tinted {
	background: transparent;
}

/* Cards that live inside a white panel step back to the page tone */
.sf-panel:not(.is-style-sf-dark) .is-style-sf-card,
.sf-panel:not(.is-style-sf-dark) .sf-compare__side {
	background: var(--sf-bg);
	box-shadow: 0 0 0 1px var(--sf-border);
}

.sf-panel:not(.is-style-sf-dark) .is-style-sf-card:has(.is-style-sf-more a):hover {
	background: var(--sf-surface);
	box-shadow: 0 0 0 1px rgb(129 140 248 / 0.55), var(--sf-shadow-window);
}

.sf-panel:not(.is-style-sf-dark) .sf-compare__side--one {
	background: var(--sf-surface);
	box-shadow: 0 0 0 1px var(--sf-border), var(--sf-shadow-window);
}

.sf-panel .sf-iconbox,
.is-style-sf-tinted .sf-iconbox {
	background: var(--sf-primary-soft);
}

/* Dark band (user's note): the flow lives in a full-bleed dark section, not a card ----------- */

.sf-band {
	position: relative;
	overflow: clip;
	isolation: isolate;
	padding-block: clamp(5rem, 12vw, 10rem) !important;
	--mx: 50%;
	--my: 50%;
}

/* A soft light that follows the cursor across the band */
.sf-band::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(38rem circle at var(--mx) var(--my), rgb(129 140 248 / 0.22), rgb(34 211 238 / 0.06) 40%, transparent 65%);
	opacity: 0;
	transition: opacity 600ms var(--sf-ease-calm);
	pointer-events: none;
}

.sf-band.is-glowing::after {
	opacity: 1;
}

.sf-band__inner {
	max-inline-size: 64rem !important;
	margin-inline: auto !important;
	text-align: center;
}

.sf-band__inner > h2 {
	margin-block-end: 1rem;
}

.sf-band__inner > p:not(.is-style-sf-more) {
	max-inline-size: 38rem;
	margin-inline: auto;
	font-size: var(--wp--preset--font-size--lead);
	color: #cbd5e1;
}

.sf-band__inner > .is-style-sf-more {
	margin-block-start: 1.25rem;
}

.sf-band__visual {
	margin-block-start: clamp(3rem, 6vw, 5rem) !important;
}

/* The flow, with more presence */
.sf-band .sf-flow {
	padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 3vw, 2.5rem);
	border-radius: 28px;
	background: linear-gradient(180deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.02));
	border: 1px solid rgb(255 255 255 / 0.1);
	backdrop-filter: blur(6px);
	--sf-flow-cycle: 6.4s;
}

.sf-band .sf-flow__step {
	gap: 1rem;
	font-size: 1.0625rem;
	color: #e2e8f0;
}

.sf-band .sf-flow__icon {
	inline-size: 5.25rem;
	block-size: 5.25rem;
	font-size: 2rem;
	background: #fff;
	color: var(--sf-primary);
	box-shadow: 0 0 0 1px rgb(255 255 255 / 0.2);
}

.sf-band .sf-flow__track {
	inset-block-start: calc(clamp(2rem, 4vw, 3rem) + 2.625rem);
	block-size: 2px;
	background: rgb(255 255 255 / 0.14);
	overflow: visible;
}

/* A glowing packet travels the track from the sale to the points */
.sf-band .sf-flow__track::after {
	content: "";
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 0;
	inline-size: 14px;
	block-size: 14px;
	margin-block-start: -7px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 12px 4px rgb(129 140 248 / 0.9), 0 0 32px 10px rgb(34 211 238 / 0.45);
	opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
	@keyframes sf-packet {
		0% { inset-inline-start: 0%; opacity: 0; }
		6% { opacity: 1; }
		64% { opacity: 1; inset-inline-start: calc(100% - 14px); }
		70%, 100% { opacity: 0; inset-inline-start: calc(100% - 14px); }
	}

	@keyframes sf-band-step {
		0%, 100% {
			background: #fff;
			color: var(--sf-primary);
			box-shadow: 0 0 0 1px rgb(255 255 255 / 0.2);
			scale: 1;
		}
		6%, 50% {
			background: var(--sf-gradient);
			color: #fff;
			box-shadow: 0 0 0 8px rgb(79 70 229 / 0.25), 0 0 40px 6px rgb(129 140 248 / 0.55);
			scale: 1.12;
		}
		64% {
			scale: 1;
		}
	}

	.sf-band .sf-flow__track::after {
		animation: sf-packet var(--sf-flow-cycle) var(--sf-ease-calm) infinite;
	}

	.sf-band .sf-flow__step .sf-flow__icon {
		animation: sf-band-step var(--sf-flow-cycle) var(--sf-ease-calm) infinite;
		animation-delay: calc(var(--i) * 1.05s);
	}

	.sf-band .sf-flow__light {
		animation-duration: var(--sf-flow-cycle);
	}
}

@media (width < 600px) {
	.sf-band .sf-flow__icon {
		inline-size: 4rem;
		block-size: 4rem;
		font-size: 1.5rem;
	}
}

/* In the band the glowing packet replaces the streak (which would leak past the track) */
.sf-band .sf-flow__light {
	display: none;
}

/* Animated icons (inc/anim-icons.php) ------------------------------------------------------- */

.sfa [data-d] {
	stroke-dasharray: 1;
	stroke-dashoffset: 0;
}

.sfa * {
	transform-box: fill-box;
}

.sf-iconbox {
	inline-size: 3.25rem;
	block-size: 3.25rem;
	font-size: 1.6rem;
}

@media (prefers-reduced-motion: no-preference) {
	/* Draw-on when the icon reaches the screen */
	.sf-anim .sfa:not(.is-drawn) [data-d] {
		stroke-dashoffset: 1;
	}

	@keyframes sfa-draw {
		from { stroke-dashoffset: 1; }
		to { stroke-dashoffset: 0; }
	}

	.sf-anim .sfa.is-drawn [data-d]:not(.a-line):not(.a-check) {
		animation: sfa-draw 1.1s var(--sf-ease-calm) both;
	}

	.sf-anim .sfa:not(.is-drawn) [fill="currentColor"] {
		opacity: 0;
	}

	/* Loops, each icon its own little story */
	@keyframes sfa-drop { 0%, 15% { translate: 0 -7px; opacity: 0; } 35% { translate: 0 0; opacity: 1; } 42% { translate: 0 -1px; } 50%, 80% { translate: 0 0; opacity: 1; } 100% { opacity: 0; } }
	@keyframes sfa-pulse { 0%, 100% { opacity: 0.15; } 50% { opacity: 1; } }
	@keyframes sfa-write { 0% { stroke-dashoffset: 1; } 30%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
	@keyframes sfa-lid { 0%, 55%, 100% { rotate: 0deg; translate: 0 0; } 70%, 85% { rotate: -16deg; translate: 0 -1.5px; } }
	@keyframes sfa-roll { to { rotate: 360deg; } }
	@keyframes sfa-bump { 0%, 100% { translate: 0 0; } 50% { translate: 0 -0.6px; } }
	@keyframes sfa-speed { 0% { translate: 4px 0; opacity: 0; } 40% { opacity: 1; } 100% { translate: -2px 0; opacity: 0; } }
	@keyframes sfa-heart { 0%, 40% { scale: 0; opacity: 0; } 55% { scale: 1.25; opacity: 1; } 65%, 85% { scale: 1; opacity: 1; translate: 0 0; } 100% { scale: 0.8; opacity: 0; translate: 0 -2px; } }
	@keyframes sfa-letter { 0%, 30%, 100% { translate: 0 3px; } 55%, 80% { translate: 0 -4px; } }
	@keyframes sfa-swing { 0%, 100% { rotate: -9deg; } 50% { rotate: 9deg; } }
	@keyframes sfa-spin { 0%, 100% { scale: 1 1; } 50% { scale: 0.08 1; } }
	@keyframes sfa-bar { 0%, 10% { scale: 1 0.15; } 40%, 85% { scale: 1 1; } 100% { scale: 1 0.15; } }
	@keyframes sfa-win { 0%, 100% { opacity: 0.2; } 30%, 70% { opacity: 1; } }
	@keyframes sfa-ring { 0%, 60%, 100% { rotate: 0deg; } 66% { rotate: 14deg; } 72% { rotate: -12deg; } 78% { rotate: 8deg; } 84% { rotate: -4deg; } }
	@keyframes sfa-awning { 0%, 100% { translate: 0 0; } 50% { translate: 0 0.8px; } }
	@keyframes sfa-slide-r { 0%, 100% { translate: -1.5px 0; } 50% { translate: 1.5px 0; } }
	@keyframes sfa-slide-l { 0%, 100% { translate: 1.5px 0; } 50% { translate: -1.5px 0; } }
	@keyframes sfa-stack { 0%, 20% { translate: 0 -6px; opacity: 0; } 40% { translate: 0 0; opacity: 1; } 47% { translate: 0 -1px; } 54%, 85% { translate: 0 0; opacity: 1; } 100% { opacity: 0; } }
	@keyframes sfa-twinkle { 0%, 100% { scale: 0.85; opacity: 0.7; } 50% { scale: 1.12; opacity: 1; } }

	.sfa.is-live .a-drop { animation: sfa-drop 2.6s var(--sf-ease-calm) infinite 1s; }
	.sfa.is-live .a-wave { animation: sfa-pulse 1.6s ease-in-out infinite 1s; }
	.sfa.is-live .a-wave2 { animation-delay: 1.3s; }
	.sfa.is-live .a-line { animation: sfa-write 3.2s var(--sf-ease-calm) infinite 1s; }
	.sfa.is-live .a-l2 { animation-delay: 1.3s; }
	.sfa.is-live .a-l3 { animation-delay: 1.6s; }
	.sfa.is-live .a-lid { transform-origin: 0% 100%; animation: sfa-lid 3s var(--sf-ease-calm) infinite 1s; }
	.sfa.is-live .a-wheel { transform-origin: center; animation: sfa-roll 1.2s linear infinite; }
	.sfa.is-live .a-bounce { animation: sfa-bump 0.6s ease-in-out infinite; }
	.sfa.is-live .a-speed { animation: sfa-speed 1.2s linear infinite; }
	.sfa.is-live .a-heart { transform-origin: center; animation: sfa-heart 2.8s var(--sf-ease-calm) infinite 1s; }
	.sfa.is-live .a-letter { animation: sfa-letter 3s var(--sf-ease-calm) infinite 1s; }
	.sfa.is-live .a-swing { transform-origin: 10% 10%; animation: sfa-swing 2.4s ease-in-out infinite; }
	.sfa.is-live .a-spin { transform-origin: center; animation: sfa-spin 3.2s ease-in-out infinite; }
	.sfa.is-live .a-bar { transform-origin: 50% 100%; animation: sfa-bar 2.8s var(--sf-ease-calm) infinite 0.8s; }
	.sfa.is-live .a-b2 { animation-delay: 1s; }
	.sfa.is-live .a-b3 { animation-delay: 1.2s; }
	.sfa.is-live .a-check { animation: sfa-write 3s var(--sf-ease-calm) infinite 1s; }
	.sfa.is-live .a-win { animation: sfa-win 2.4s ease-in-out infinite; }
	.sfa.is-live .a-n2 { animation-delay: 0.6s; }
	.sfa.is-live .a-n3 { animation-delay: 1.2s; }
	.sfa.is-live .a-n4 { animation-delay: 1.8s; }
	.sfa.is-live .a-ring { transform-origin: 50% 0%; animation: sfa-ring 2.8s ease-in-out infinite; }
	.sfa.is-live .a-awning { animation: sfa-awning 1.8s ease-in-out infinite; }
	.sfa.is-live .a-slide-r { animation: sfa-slide-r 2s ease-in-out infinite; }
	.sfa.is-live .a-slide-l { animation: sfa-slide-l 2s ease-in-out infinite; }
	.sfa.is-live .a-stack { animation: sfa-stack 3s var(--sf-ease-calm) infinite 1s; }
	.sfa.is-live .a-rotate { transform-origin: center; animation: sfa-roll 4s linear infinite; }
	.sfa.is-live .a-twinkle { transform-origin: center; animation: sfa-twinkle 1.8s ease-in-out infinite; }
	.sfa.is-live .a-t2 { animation-delay: 0.5s; }
	.sfa.is-live .a-t3 { animation-delay: 1s; }

	/* Hover gives the icon a little extra life */
	.is-style-sf-card:hover .sf-iconbox {
		transform: scale(1.08);
	}
}

/* Icon badges: the brand gradient with white, animated strokes */
.sf-iconbox,
.sf-panel .sf-iconbox,
.is-style-sf-tinted .sf-iconbox {
	background: var(--sf-gradient);
	color: #fff;
	box-shadow: 0 10px 22px -10px rgb(79 70 229 / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.35);
	border-radius: 16px;
}

.sf-iconbox .sfa--mail .a-letter {
	fill: rgb(255 255 255 / 0.9);
	stroke: none;
}

/* ========================================================================================== */
/* Stage 2: feature and company pages                                                         */
/* ========================================================================================== */

/* New animated icons ------------------------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
	@keyframes sfa-seek { 0%, 100% { translate: 0 0; } 25% { translate: -1.5px -1px; } 50% { translate: 1px -1.5px; } 75% { translate: 1.5px 1px; } }
	@keyframes sfa-back { 0%, 40% { rotate: 0deg; } 80%, 100% { rotate: -360deg; } }
	@keyframes sfa-scan { 0%, 100% { translate: 0 -4.5px; } 50% { translate: 0 4.5px; } }
	@keyframes sfa-pop { 0%, 20% { scale: 0.6; opacity: 0; } 35% { scale: 1.08; opacity: 1; } 45%, 85% { scale: 1; opacity: 1; } 100% { opacity: 0; } }
	@keyframes sfa-fly { 0%, 55% { translate: 0 0; opacity: 1; } 75% { translate: 5px -5px; opacity: 0; } 76% { translate: -5px 5px; opacity: 0; } 100% { translate: 0 0; opacity: 1; } }
	@keyframes sfa-turn { 0%, 50%, 100% { rotate: 0deg; } 65%, 85% { rotate: -25deg; } }
	@keyframes sfa-shackle { 0%, 50%, 100% { translate: 0 0; } 65%, 80% { translate: 0 -2px; } }
	@keyframes sfa-layer1 { 0%, 100% { translate: 0 0; } 50% { translate: 0 1.2px; } }
	@keyframes sfa-layer2 { 0%, 100% { translate: 0 0; } 50% { translate: 0 2.4px; } }
	@keyframes sfa-dot { 0%, 60%, 100% { translate: 0 0; opacity: 0.45; } 30% { translate: 0 -2px; opacity: 1; } }
	@keyframes sfa-plug { 0%, 40%, 100% { translate: 0 0; } 55%, 85% { translate: 0 2px; } }
	@keyframes sfa-down { 0% { translate: 0 -3px; opacity: 0; } 30% { opacity: 1; } 60%, 80% { translate: 0 0; opacity: 1; } 100% { translate: 0 0; opacity: 0; } }
	@keyframes sfa-tilt { 0%, 100% { rotate: -6deg; } 50% { rotate: 6deg; } }
	@keyframes sfa-needle { 0%, 100% { rotate: -70deg; } 50% { rotate: 15deg; } }

	.sfa.is-live .a-seek { animation: sfa-seek 3s ease-in-out infinite; }
	.sfa.is-live .a-back { transform-origin: center; animation: sfa-back 3.2s var(--sf-ease-calm) infinite 1s; }
	.sfa.is-live .a-scan { animation: sfa-scan 1.8s ease-in-out infinite; }
	.sfa.is-live .a-pop { transform-origin: center; animation: sfa-pop 3s var(--sf-ease-calm) infinite 1s; }
	.sfa.is-live .a-fly { animation: sfa-fly 3s var(--sf-ease-calm) infinite 1s; }
	.sfa.is-live .a-turn { transform-origin: 25% 75%; animation: sfa-turn 3s var(--sf-ease-calm) infinite 1s; }
	.sfa.is-live .a-shackle { animation: sfa-shackle 3s var(--sf-ease-calm) infinite 1s; }
	.sfa.is-live .a-y1 { animation: sfa-layer1 2.4s ease-in-out infinite; }
	.sfa.is-live .a-y2 { animation: sfa-layer2 2.4s ease-in-out infinite; }
	.sfa.is-live .a-dot { animation: sfa-dot 1.2s ease-in-out infinite; }
	.sfa.is-live .a-d2 { animation-delay: 0.15s; }
	.sfa.is-live .a-d3 { animation-delay: 0.3s; }
	.sfa.is-live .a-plug { animation: sfa-plug 2.8s var(--sf-ease-calm) infinite 1s; }
	.sfa.is-live .a-down { animation: sfa-down 2.4s var(--sf-ease-calm) infinite 1s; }
	.sfa.is-live .a-tilt { transform-origin: 50% 0%; animation: sfa-tilt 2.6s ease-in-out infinite; }
	.sfa.is-live .a-needle { transform-origin: 0% 100%; animation: sfa-needle 3.2s var(--sf-ease-calm) infinite; }
	.sfa.is-live .a-c2 { animation-delay: 1.4s; }
}

/* Flow: any number of steps (the block sets --n and the cycle) ------------------------------ */

.sf-flow__steps {
	grid-template-columns: repeat(var(--n, 4), 1fr);
}

.sf-flow__track {
	inset-inline: calc(clamp(1.25rem, 3vw, 2rem) + 50% / var(--n, 4) - 0.5rem);
}

@media (prefers-reduced-motion: no-preference) {
	.sf-flow__step .sf-flow__icon {
		animation-delay: calc(var(--i) * var(--sf-flow-cycle) * 0.14);
	}

	.sf-band .sf-flow__step .sf-flow__icon {
		animation-delay: calc(var(--i) * var(--sf-flow-cycle) * 0.164);
	}
}

@media (width < 600px) {
	.sf-flow__steps {
		grid-template-columns: 1fr 1fr;
	}
}

/* Breadcrumb -------------------------------------------------------------------------------- */

.sf-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.5rem;
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
	font-size: 0.9rem;
	color: var(--sf-muted);
}

.sf-crumbs li + li::before {
	content: "/";
	margin-inline-end: 0.5rem;
	color: var(--sf-faint);
}

.sf-crumbs a {
	color: inherit;
	text-decoration: none;
}

.sf-crumbs a:hover,
.sf-crumbs a:focus-visible {
	color: var(--sf-primary);
}

.sf-crumbs [aria-current] {
	color: var(--sf-text);
	font-weight: 500;
}

/* Feature hero: text on the right, the product on the left (spec), text first on mobile ----- */

.sf-hero--split {
	text-align: start;
	padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem);
}

.sf-hero-split {
	align-items: center !important;
	gap: clamp(2rem, 5vw, 4.5rem) !important;
}

.sf-hero-split__text {
	flex-basis: 46% !important;
}

.sf-hero-split__visual {
	flex-basis: 54% !important;
	position: relative;
}

.sf-hero--split h1 {
	font-size: clamp(2.375rem, 4.3vw, 4rem);
	letter-spacing: -0.035em;
	margin-block: 0 1.25rem;
}

.sf-hero--split .is-style-sf-lead {
	margin-inline: 0;
	margin-block-end: 2rem;
}

.sf-hero--split .wp-block-buttons {
	justify-content: flex-start;
}

/* A soft halo behind the product window */
.sf-hero-split__visual::before {
	content: "";
	position: absolute;
	inset: 8% 4% -6%;
	z-index: -1;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgb(129 140 248 / 0.28), rgb(34 211 238 / 0.08) 60%, transparent);
	filter: blur(30px);
}

@media (prefers-reduced-motion: no-preference) {
	.sf-hero-split__text > * {
		animation: sf-rise var(--sf-slow) var(--sf-ease-calm) backwards;
	}

	.sf-hero-split__text > :nth-child(2) {
		animation-delay: 70ms;
	}

	.sf-hero-split__text > :nth-child(n + 3) {
		animation-delay: 150ms;
	}

	.sf-hero-split__visual {
		animation: sf-rise 1000ms var(--sf-ease-calm) 220ms backwards;
	}
}

/* Rows: text and product side by side, alternating ------------------------------------------ */

.sf-section--row {
	padding-block: clamp(2.5rem, 6vw, 5rem);
}

.sf-row {
	align-items: center !important;
	gap: clamp(2rem, 5vw, 5rem) !important;
}

.sf-row__text {
	flex-basis: 40% !important;
}

.sf-row__visual {
	flex-basis: 60% !important;
}

.sf-row__text h2 {
	font-size: var(--wp--preset--font-size--x-large);
	margin-block: 0 1rem;
}

.sf-row__text p {
	font-size: var(--wp--preset--font-size--lead);
	color: var(--sf-muted);
	max-inline-size: 32rem;
}

@media (width >= 782px) {
	.sf-row--flip {
		flex-direction: row-reverse;
	}
}

/* The product sits on a white stage with breathing room on every side */
.sf-row__visual > .sf-screen {
	padding: clamp(1rem, 3vw, 2.25rem);
	border-radius: var(--sf-radius-panel);
	background:
		radial-gradient(60% 50% at 85% 0%, rgb(129 140 248 / 0.16), transparent 70%),
		radial-gradient(50% 50% at 0% 100%, rgb(34 211 238 / 0.1), transparent 70%),
		var(--sf-surface);
	border: 1px solid var(--sf-border);
	box-shadow: var(--sf-shadow-soft);
}

.sf-row__visual > .sf-screen:has(.sf-toast) {
	padding-block-start: clamp(2.75rem, 5vw, 3.75rem);
}

.sf-row__visual > .sf-screen .sf-toast {
	inset-block-start: clamp(0.75rem, 2vw, 1.25rem);
}

/* Card grids whose titles are section headings (H2 per spec, sized like card titles) -------- */

.sf-trio .is-style-sf-card > h2 {
	font-size: var(--wp--preset--font-size--large);
	letter-spacing: -0.02em;
	margin-block: 1.25rem 0.75rem;
}

.sf-trio .is-style-sf-card > p {
	color: var(--sf-muted);
}

/* Live illustration (sf/vignette): the icon in a glowing core, the section's terms around it - */

.sf-vignette {
	--n: 4;
	position: relative;
	container-type: inline-size;
	aspect-ratio: 4 / 3;
	margin: 0;
	border-radius: var(--sf-radius-panel);
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(circle at 50% 50%, rgb(129 140 248 / 0.22), transparent 45%),
		radial-gradient(rgb(79 70 229 / 0.12) 1px, transparent 1.5px) 0 0 / 22px 22px,
		var(--sf-surface);
	border: 1px solid var(--sf-border);
	box-shadow: var(--sf-shadow-soft);
}

.sf-vignette__rings {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.sf-vignette__rings i {
	position: absolute;
	inset: 50% auto auto 50%;
	inline-size: 46%;
	aspect-ratio: 1;
	translate: -50% -50%;
	border-radius: 50%;
	border: 1px solid rgb(79 70 229 / 0.22);
}

.sf-vignette__rings i:nth-child(2) {
	inline-size: 70%;
	border-color: rgb(79 70 229 / 0.12);
}

.sf-vignette__rings i:nth-child(3) {
	inline-size: 94%;
	border-color: rgb(79 70 229 / 0.07);
}

.sf-vignette__core {
	position: absolute;
	inset: 50% auto auto 50%;
	translate: -50% -50%;
	z-index: 1;
	display: grid;
	place-items: center;
	inline-size: clamp(4.5rem, 17cqi, 7rem);
	aspect-ratio: 1;
	border-radius: 30%;
	background: var(--sf-gradient);
	color: #fff;
	font-size: clamp(2.25rem, 8.5cqi, 3.5rem);
	box-shadow: 0 0 0 10px rgb(79 70 229 / 0.08), 0 24px 50px -16px rgb(79 70 229 / 0.75), inset 0 1px 0 rgb(255 255 255 / 0.4);
}

.sf-vignette__core .sf-icon {
	inline-size: 1em;
	block-size: 1em;
}

.sf-vignette__chips {
	position: absolute;
	inset: 0;
	z-index: 2;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Chips sit on an ellipse around the core, the first one on top. Physical left/top: the circle math is direction-free. */
.sf-vignette__chips li {
	--a: calc(var(--i) / var(--n) * 360deg - 90deg);
	position: absolute;
	left: calc(50% + cos(var(--a)) * 31%);
	top: calc(50% + sin(var(--a)) * 37%);
	translate: -50% -50%;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	max-inline-size: 44%;
	padding: 0.55rem 0.95rem;
	border-radius: 999px;
	background: rgb(255 255 255 / 0.94);
	border: 1px solid var(--sf-border);
	box-shadow: 0 12px 28px -14px rgb(30 27 75 / 0.35);
	font-size: clamp(0.78rem, 2.3cqi, 0.95rem);
	font-weight: 500;
	line-height: 1.3;
	color: var(--sf-text);
	white-space: nowrap;
}

.sf-vignette__chips li i {
	flex: none;
	inline-size: 0.5rem;
	block-size: 0.5rem;
	border-radius: 50%;
	background: var(--sf-gradient);
}

/* Narrow: the core on top, the terms wrap below it */
@container (width < 460px) {
	.sf-vignette__core {
		position: relative;
		inset: auto;
		translate: none;
		margin: 1.75rem auto 1.25rem;
	}

	.sf-vignette__rings {
		display: none;
	}

	.sf-vignette__chips {
		position: relative;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.5rem;
		padding: 0 1rem 1.75rem;
	}

	.sf-vignette__chips li {
		position: static;
		translate: none;
		max-inline-size: none;
		white-space: normal;
	}
}

@supports not (left: calc(cos(0deg) * 1%)) {
	.sf-vignette__chips {
		display: flex;
		flex-wrap: wrap;
		align-content: flex-end;
		justify-content: center;
		gap: 0.5rem;
		padding: 1.5rem;
	}

	.sf-vignette__chips li {
		position: static;
		translate: none;
	}
}

@media (prefers-reduced-motion: no-preference) {
	@keyframes sfv-ring {
		0% { scale: 0.7; opacity: 0; }
		30% { opacity: 1; }
		100% { scale: 1.15; opacity: 0; }
	}

	@keyframes sfv-float {
		0%, 100% { translate: -50% -50%; }
		50% { translate: -50% calc(-50% - 6px); }
	}

	@keyframes sfv-core {
		0%, 100% { box-shadow: 0 0 0 10px rgb(79 70 229 / 0.08), 0 24px 50px -16px rgb(79 70 229 / 0.75), inset 0 1px 0 rgb(255 255 255 / 0.4); }
		50% { box-shadow: 0 0 0 20px rgb(79 70 229 / 0.04), 0 24px 60px -12px rgb(79 70 229 / 0.9), inset 0 1px 0 rgb(255 255 255 / 0.4); }
	}

	.sf-vignette__rings i {
		animation: sfv-ring 4.5s var(--sf-ease-calm) infinite;
	}

	.sf-vignette__rings i:nth-child(2) {
		animation-delay: 1.5s;
	}

	.sf-vignette__rings i:nth-child(3) {
		animation-delay: 3s;
	}

	.sf-vignette__core {
		animation: sfv-core 3.6s ease-in-out infinite;
	}

	.sf-vignette__chips li {
		animation: sfv-float 5s ease-in-out infinite;
		animation-delay: calc(var(--i) * -0.8s);
	}

	@container (width < 460px) {
		.sf-vignette__chips li {
			animation: none;
		}
	}
}

/* Dark tone, for a vignette inside a dark band */
.sf-vignette--dark {
	background:
		radial-gradient(circle at 50% 50%, rgb(129 140 248 / 0.3), transparent 45%),
		radial-gradient(rgb(255 255 255 / 0.08) 1px, transparent 1.5px) 0 0 / 22px 22px,
		rgb(255 255 255 / 0.03);
	border-color: rgb(255 255 255 / 0.1);
	box-shadow: none;
}

.sf-vignette--dark .sf-vignette__rings i {
	border-color: rgb(255 255 255 / 0.16);
}

.sf-vignette--dark .sf-vignette__chips li {
	background: rgb(255 255 255 / 0.08);
	border-color: rgb(255 255 255 / 0.14);
	color: #e2e8f0;
	box-shadow: none;
}

.sf-band__visual .sf-vignette {
	max-inline-size: 60rem;
	margin-inline: auto;
	aspect-ratio: 16 / 8;
}

/* Pricing: no plans are shown until real data exists (spec), only the fit check ------------ */

.sf-plans .wp-block-buttons {
	justify-content: center;
}

/* A vignette under a centred panel heading: wide and low */
.sf-panel__visual .sf-vignette {
	aspect-ratio: 16 / 8;
}

/* Numbered steps (core/list) as a row of cards ------------------------------------------- */

.sf-steps {
	counter-reset: sf-step;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1rem;
	margin: 0 0 clamp(2.5rem, 5vw, 4rem);
	padding: 0;
	list-style: none;
}

.sf-steps > li {
	counter-increment: sf-step;
	position: relative;
	padding: 1.5rem 1.5rem 1.6rem;
	border-radius: var(--sf-radius-card);
	background: var(--sf-surface);
	border: 1px solid var(--sf-border);
	box-shadow: 0 18px 40px -28px rgb(30 27 75 / 0.35);
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.5;
}

.sf-steps > li::before {
	content: counter(sf-step);
	display: grid;
	place-items: center;
	inline-size: 2.5rem;
	block-size: 2.5rem;
	margin-block-end: 1rem;
	border-radius: 12px;
	background: var(--sf-gradient);
	color: #fff;
	font-weight: 600;
	box-shadow: 0 10px 22px -10px rgb(79 70 229 / 0.7);
}

/* Five data types in one row on wide screens */
@media (width >= 1000px) {
	.sf-grid.sf-needs--five {
		grid-template-columns: repeat(5, 1fr) !important;
	}
}

/* The migration scene below the numbered steps */
.sf-section--migrate .sf-steps + * ,
.sf-section--migrate .wp-block-group:has(> .sf-steps) {
	margin-block-end: clamp(3rem, 6vw, 5rem) !important;
}

/* FAQ: the "see also" links follow right after, so the section ends with less air */
.sf-section--faq {
	padding-block-end: clamp(2.5rem, 5vw, 4rem);
}

/* ========================================================================================== */
/* Stage 3: solutions, FAQ, developers                                                        */
/* ========================================================================================== */

/* Solution hero: the business's photo, the product window resting on its corner ----------- */

.sf-composite {
	position: relative;
	padding-block-end: 14%;
}

.sf-composite > .sf-photo {
	margin: 0 !important;
	inline-size: 86%;
	aspect-ratio: 4 / 3;
	border-radius: var(--sf-radius-panel);
	box-shadow: var(--sf-shadow-soft);
}

.sf-composite > .sf-screen {
	position: absolute;
	inset-block-end: 0;
	inset-inline-end: 0;
	inline-size: 66%;
}

.sf-composite > .sf-screen .sf-screen__frame {
	box-shadow: 0 30px 70px -20px rgb(11 18 32 / 0.45), 0 2px 6px rgb(15 23 42 / 0.06);
}

@media (prefers-reduced-motion: no-preference) {
	@keyframes sf-settle {
		from {
			opacity: 0;
			translate: 0 24px;
		}
	}

	.sf-composite > .sf-screen {
		animation: sf-settle 1100ms var(--sf-ease-calm) 450ms backwards;
	}
}

/* The working day: a vertical line, a numbered stop per section ---------------------------- */

.sf-section--day {
	padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 9vw, 8rem);
}

.sf-day {
	counter-reset: sf-day;
	position: relative;
}

/* The line, and its fill that follows the scroll */
.sf-day::before,
.sf-day::after {
	content: "";
	position: absolute;
	z-index: 0;
	inset-block: 0;
	left: 50%;
	inline-size: 2px;
	translate: -50% 0;
	border-radius: 2px;
}

.sf-day::before {
	background: var(--sf-border);
}

.sf-day::after {
	background: linear-gradient(to bottom, var(--sf-primary), var(--sf-secondary), var(--sf-accent));
	transform-origin: 50% 0;
}

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		@keyframes sf-day-fill {
			from {
				scale: 1 0;
			}
			to {
				scale: 1 1;
			}
		}

		.sf-day::after {
			animation: sf-day-fill linear both;
			animation-timeline: view();
			animation-range: cover 15% cover 85%;
		}
	}
}

.sf-day__item {
	counter-increment: sf-day;
	position: relative;
	/* Above the line: the reveal animation gives every stop its own stacking context, so the
	   number circle's z-index only counts inside the stop; the whole stop has to sit above the line. */
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: clamp(3rem, 9vw, 8rem);
	padding-block: clamp(2rem, 5vw, 4rem);
}

.sf-day__item > * {
	margin: 0 !important;
}

/* Even stops swap sides, so the day zig-zags down the line */
.sf-day__item:nth-child(even) > .sf-day__text {
	order: 2;
}

.sf-day__item::before {
	content: counter(sf-day, decimal-leading-zero);
	position: absolute;
	z-index: 1;
	left: 50%;
	top: 50%;
	translate: -50% -50%;
	display: grid;
	place-items: center;
	inline-size: 3rem;
	block-size: 3rem;
	border-radius: 50%;
	background: var(--sf-surface);
	border: 2px solid var(--sf-primary);
	color: var(--sf-primary);
	font-weight: 600;
	font-size: 0.95rem;
	box-shadow: 0 0 0 8px var(--sf-bg);
}

.sf-day__text h2 {
	font-size: clamp(1.75rem, 3.2vw, 2.75rem);
	margin-block: 0 0.85rem;
}

.sf-day__text p {
	margin: 0;
	font-size: var(--wp--preset--font-size--lead);
	color: var(--sf-muted);
	max-inline-size: 30rem;
}

/* Product windows in the day and in rows share the white stage */
.sf-day__visual > .sf-screen {
	padding: clamp(0.85rem, 2.4vw, 1.75rem);
	border-radius: var(--sf-radius-panel);
	background:
		radial-gradient(60% 50% at 85% 0%, rgb(129 140 248 / 0.16), transparent 70%),
		radial-gradient(50% 50% at 0% 100%, rgb(34 211 238 / 0.1), transparent 70%),
		var(--sf-surface);
	border: 1px solid var(--sf-border);
	box-shadow: var(--sf-shadow-soft);
}

@media (width < 860px) {
	.sf-day::before,
	.sf-day::after {
		left: auto;
		inset-inline-start: 1.5rem;
		translate: 50% 0;
	}

	.sf-day__item {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		padding-inline-start: 4rem;
	}

	.sf-day__item:nth-child(even) > .sf-day__text {
		order: 0;
	}

	.sf-day__item::before {
		left: auto;
		top: clamp(2rem, 5vw, 4rem);
		inset-inline-start: 1.5rem;
		translate: 50% 0;
	}

	[dir="rtl"] .sf-day__item::before,
	[dir="rtl"] .sf-day::before,
	[dir="rtl"] .sf-day::after {
		translate: 50% 0;
	}
}

/* FAQ page: category chips under the title, one accordion per category --------------------- */

.sf-hero--faq {
	padding-block-end: 0;
}

.sf-faq-nav {
	gap: 0.5rem !important;
	margin-block-start: 1.5rem !important;
}

.sf-faq-nav .sf-chip {
	margin: 0;
}

.sf-faq-nav .sf-chip a {
	display: inline-block;
	padding: 0.55rem 1.1rem;
	border-radius: 999px;
	background: var(--sf-surface);
	border: 1px solid var(--sf-border);
	color: var(--sf-text);
	font-weight: 500;
	text-decoration: none;
	transition: border-color var(--sf-quick) var(--sf-ease), color var(--sf-quick) var(--sf-ease);
}

.sf-faq-nav .sf-chip a:hover,
.sf-faq-nav .sf-chip a:focus-visible {
	border-color: var(--sf-primary);
	color: var(--sf-primary);
}

.sf-faq-cats {
	display: grid;
	gap: clamp(2.5rem, 5vw, 4rem);
}

.sf-faq-cat > h2 {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	text-align: start;
	margin-block-end: 1rem;
}

/* Inside the category grid the accordion keeps its full measure (auto margins would shrink it) */
.sf-faq-cat {
	inline-size: 100%;
}

/* Nine API areas as a 3 x 3 grid */
@media (width >= 900px) {
	.sf-grid.sf-needs--three {
		grid-template-columns: repeat(3, 1fr) !important;
		max-inline-size: 60rem;
		margin-inline: auto !important;
	}
}
