/*
 * Snapback site: the home page sections, composed from the system in style.css
 * (frame, head, field, band, window, phone, buttons). Section by section, in page order.
 */

/* === hero: a centred first screen. The words in the middle over a faint grid; under them, on the
   field, one browser window: the recovery page with the site brought back. === */
.sb-hero > * {
	margin: 0 !important;
}
.sb-hero__text {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: clamp(3.5rem, 2rem + 6vw, 6.5rem) var(--sb-inset) clamp(2.75rem, 2rem + 3vw, 4rem);
	text-align: center;
}
/* The grid: square cells in hairlines, fading out from the top. */
.sb-hero__text::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(to right, rgb(12 14 40 / 0.05) 1px, transparent 1px),
		linear-gradient(to bottom, rgb(12 14 40 / 0.05) 1px, transparent 1px);
	background-size: 64px 64px;
	background-position: center top;
	-webkit-mask-image: radial-gradient(70% 90% at 50% 0%, #000 0%, transparent 70%);
	mask-image: radial-gradient(70% 90% at 50% 0%, #000 0%, transparent 70%);
	pointer-events: none;
}
.sb-hero__text > * {
	margin-block: 0;
}
/* context.dev's hero type: 56px, regular, tight, two lines that say what the product is. */
.sb-hero h1 {
	font-size: clamp(2.25rem, 1.1rem + 3.4vw, 3.5rem);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.035em;
}
.sb-hero__text .is-style-lead {
	margin-top: 24px;
	max-width: 40em;
}
.sb-hero__actions {
	justify-content: center;
	gap: 12px;
	margin-top: 36px;
}
.sb-hero__actions .wp-block-button__link {
	min-height: 52px;
	padding: 12px 26px 15px;
}
.sb-hero__note.sb-hero__note {
	margin-top: 18px;
}
/* The stage: the field from rail to rail, the window whole in its middle. */
.sb-hero__stage {
	display: flex;
	justify-content: center;
	padding: clamp(2rem, 1rem + 4vw, 4rem) var(--sb-inset) clamp(2.25rem, 1.25rem + 4.5vw, 4.5rem);
	border-top: 1px solid var(--sb-sec-line);
}
.sb-hero__stage > * {
	margin: 0 !important;
}
.sb-hero__window {
	width: min(880px, 100%);
	border-radius: var(--sb-radius-md);
	box-shadow:
		0 0 0 1px rgb(15 15 120 / 0.08),
		0 2px 4px rgb(15 15 120 / 0.05),
		0 30px 60px -20px rgb(15 15 120 / 0.28);
}
.sb-hero__window .sb-window__body {
	padding: clamp(16px, 3vw, 28px);
}
/* Inside the window: the result on the left, the restore points on the right. */
.sb-hero__mock {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	align-items: stretch;
	gap: clamp(12px, 2vw, 20px);
}
.sb-hero__mock > * {
	margin: 0 !important;
}
.sb-hero__mock .sb-ui {
	width: 100%;
	box-shadow: 0 0 0 1px rgb(15 15 120 / 0.08), 0 1px 2px rgb(15 15 120 / 0.05);
	font-size: 0.9375rem;
}
.sb-hero__mock .sb-ui--status {
	align-content: center;
	padding: 32px 26px 28px;
}
.sb-hero__mock .sb-ui--status::before {
	width: 52px;
	height: 52px;
	margin-bottom: 16px;
	background-size: 24px 24px, auto;
}
.sb-hero__mock .sb-ui--status .sb-ui__title {
	font-size: 1.1875rem;
	letter-spacing: -0.015em;
}
.sb-hero__mock .sb-ui .sb-ui__sub {
	font-size: 0.875rem;
}
.sb-hero__mock .sb-ui--status .sb-ui__sub {
	margin-top: 4px !important;
}
.sb-hero__mock .sb-ui--status .sb-ui__btn {
	padding: 11px 16px 13px;
	font-size: 0.875rem;
	line-height: 20px;
}
.sb-hero__mock .sb-ui--status .sb-ui__sub + .sb-ui__btn {
	margin-top: 22px !important;
}
.sb-hero__mock .sb-ui--list {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 8px 20px;
}
.sb-hero__mock .sb-ui__row {
	padding-block: 16px;
}
.sb-hero__mock .sb-ui .sb-ui__tag,
.sb-hero__mock .sb-ui .sb-ui__btn--small {
	font-size: 0.8125rem;
}
@media (max-width: 720px) {
	.sb-hero__mock {
		grid-template-columns: minmax(0, 1fr);
	}
}
@media (max-width: 420px) {
	.sb-hero__actions .wp-block-button {
		flex-basis: 100%;
	}
	.sb-hero__actions .wp-block-button__link {
		width: 100%;
	}
}

/* === the feature name: one plain label that opens each of the six features === */
.sb-name.sb-name {
	margin: 0 0 14px;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -0.005em;
	color: var(--sb-blue);
}
.sb-sec--dark .sb-name.sb-name {
	color: var(--sb-blue-on-dark);
}
.sb-band__text > .sb-name + :is(h2, h3) {
	margin-top: 0;
}
.sb-head__title > * {
	margin-block: 0;
}
/* A wide row with its picture on the left. */
.sb-band--wide.sb-band--flip {
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

/* A closing line for a section: a plain sentence, and a small note beside it. */
.sb-closing {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 12px clamp(32px, 6vw, 96px);
	align-items: baseline;
	padding: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem) var(--sb-inset);
	border-top: 1px solid var(--sb-sec-line);
}
.sb-closing > * {
	margin: 0 !important;
}
.sb-closing > :first-child:not(.is-style-meta) {
	max-width: 34em;
	font-size: var(--wp--preset--font-size--body);
	color: var(--sb-ink);
}

/* === founder story: the surface ground; the title, portrait and name on the left, the story on the right === */
.sb-founder__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 40px clamp(40px, 7vw, 112px);
	align-items: start;
}
.sb-founder__grid > * {
	margin: 0 !important;
}
.sb-founder__aside > * {
	margin-block: 0;
}
.sb-founder__aside h2 {
	max-width: 11em;
}
/* The portrait slot is an empty Image block: with no picture chosen it takes no room. */
.sb-founder__portrait {
	width: 96px;
	margin-top: 32px !important;
}
.sb-founder__portrait img {
	display: block;
	width: 96px;
	height: 96px;
	border-radius: var(--sb-radius-md);
	object-fit: cover;
}
.sb-founder__portrait:not(:has(img[src])) {
	display: none;
}
.sb-founder__sign {
	margin-top: 28px !important;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	color: var(--sb-muted);
}
.sb-founder__sign strong {
	font-size: var(--wp--preset--font-size--body);
	color: var(--sb-ink);
}
.sb-founder__story > * {
	margin-block: 0;
}
.sb-founder__story > p:not(.is-style-pull) {
	max-width: 36em;
	font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
	line-height: 1.625;
	color: color-mix(in srgb, var(--sb-ink) 72%, transparent);
}
.sb-founder__story > p + p {
	margin-top: 1.1em;
}
.sb-founder__story > .is-style-pull {
	max-width: 17em;
	margin-bottom: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
}
@media (min-width: 961px) {
	.sb-founder__aside {
		position: sticky;
		top: calc(var(--sb-header-h) + 32px);
	}
}

/* === pricing: on white, like the rest of the page. One offer in two halves, in the same ring as a
   feature card: the plan and its button on a pale blue panel on the left, the launch ladder on the right. === */
.sb-deal > * {
	margin-block: 0 !important;
}
.sb-offer {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	border-radius: var(--sb-radius-md);
	background-color: #fff;
	box-shadow:
		0 0 0 1px var(--sb-card-line),
		0 0 0 6px var(--sb-card-ring);
	overflow: hidden;
}
.sb-offer > * {
	margin: 0 !important;
}

/* The plan: a pale blue panel, the price, one button. */
.sb-plan {
	display: flex;
	flex-direction: column;
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	background-color: var(--sb-tint);
}
.sb-plan > * {
	margin: 0;
}
.sb-plan__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
}
.sb-plan__head > * {
	margin: 0;
}
.sb-plan__name {
	font-family: var(--sb-text);
	font-size: var(--wp--preset--font-size--title);
	font-weight: 450;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: var(--sb-ink);
}
/* How many are left at this price: the one loud thing in the section. */
.sb-track__now.sb-track__now {
	box-sizing: border-box;
	padding: 5px 12px;
	border-radius: var(--wp--custom--radius--full);
	background-color: var(--sb-blue);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 18px;
	white-space: nowrap;
	color: #fff;
}
.sb-plan__figure {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 14px;
	margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem) !important;
}
.sb-plan__figure > * {
	margin: 0;
}
.sb-plan__price.sb-plan__price {
	font-family: var(--sb-display);
	font-size: clamp(4rem, 2.5rem + 5vw, 6rem);
	font-weight: 400;
	line-height: 0.9;
	letter-spacing: -0.045em;
	color: var(--sb-ink);
	font-variant-numeric: proportional-nums;
}
.sb-plan__regular.sb-plan__regular {
	font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--sb-muted);
}
.sb-plan__regular s {
	text-decoration-thickness: 1.5px;
}
.sb-plan__once.sb-plan__once {
	flex-basis: 100%;
	margin-top: 8px !important;
	font-size: var(--wp--preset--font-size--body);
	color: var(--sb-muted);
}
.sb-plan__per-site.sb-plan__per-site {
	margin-top: 2px !important;
	font-size: var(--wp--preset--font-size--small);
	color: var(--sb-muted);
}
.sb-plan__next.sb-plan__next {
	margin-top: 16px !important;
	font-size: var(--wp--preset--font-size--body);
	font-weight: 500;
	color: var(--sb-ink);
}
.sb-offer__list.sb-offer__list {
	display: grid;
	grid-template-columns: repeat(3, auto);
	justify-content: start;
	gap: 10px clamp(1rem, 2.5vw, 2.25rem);
	margin-top: auto !important;
	padding-top: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	border-top: 1px solid var(--sb-card-line);
	font-size: var(--wp--preset--font-size--body);
}
.sb-offer__list.sb-offer__list li {
	margin: 0;
	color: var(--sb-ink);
}
.sb-plan__action {
	margin-top: auto !important;
	padding-top: clamp(1.5rem, 1.25rem + 1vw, 2rem);
}
.sb-plan .wp-block-button .wp-block-button__link {
	min-height: 52px;
}
/* Checkout is not open: the button has no link and looks it. */
.sb-plan .wp-block-button .wp-block-button__link:not([href]) {
	--sb-btn-bg: #fff;
	--sb-btn-fg: var(--sb-muted);
	--sb-btn-edge: inset 0 0 0 1px var(--sb-card-line);
}
.sb-deal__note.sb-deal__note {
	margin-top: 14px !important;
}

/* The ladder: five steps of 40 licences, each with its price. The step on sale now is lit. */
.sb-track {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	border-left: 1px solid var(--sb-card-line);
}
.sb-track > * {
	margin-block: 0;
}
.sb-track__title {
	font-family: var(--sb-text);
	font-size: var(--wp--preset--font-size--title);
	font-weight: 450;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: var(--sb-ink);
}
.sb-track__bar {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
}
.sb-track__bar > * {
	margin: 0 !important;
}
.sb-track__step {
	--sb-fill: 0;
	position: relative;
	display: flex;
	flex-direction: column;
	padding-bottom: 18px;
}
.sb-track__step > * {
	margin: 0 !important;
}
.sb-track__price.sb-track__price {
	font-family: var(--sb-display);
	font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: color-mix(in srgb, var(--sb-ink) 36%, transparent);
	font-variant-numeric: tabular-nums;
}
.sb-track__step.is-current .sb-track__price {
	color: var(--sb-ink);
}
.sb-track__step.is-sold .sb-track__price {
	text-decoration: line-through;
	text-decoration-thickness: 1.5px;
}
.sb-track__range.sb-track__range {
	margin-top: 4px !important;
	font-size: var(--wp--preset--font-size--label);
	line-height: 1.4;
	color: var(--sb-muted);
	font-variant-numeric: tabular-nums;
}
.sb-track__step.is-current .sb-track__range {
	color: var(--sb-ink);
}
/* The unfilled step and its fill: two layers under the price, the fill scaled from the left. */
.sb-track__step::before,
.sb-track__step::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 6px;
	border-radius: var(--wp--custom--radius--full);
}
.sb-track__step::before {
	background-color: var(--sb-line);
}
.sb-track__step::after {
	background-color: var(--sb-ink);
	transform: scaleX(var(--sb-fill));
	transform-origin: left center;
	transition: transform 900ms var(--sb-ease);
}
.sb-track__step.is-current::before {
	background-color: var(--sb-blue);
}
.sb-track.is-armed .sb-track__step::after {
	transform: scaleX(0);
}
.sb-track__count.sb-track__count {
	margin-top: clamp(1.25rem, 1rem + 1vw, 1.75rem) !important;
	font-size: var(--wp--preset--font-size--body);
	line-height: 1.5;
	color: var(--sb-muted);
}
.sb-track__count strong {
	font-weight: 600;
	color: var(--sb-ink);
	font-variant-numeric: tabular-nums;
}
.sb-track__after.sb-track__after {
	margin-top: 8px !important;
	margin-bottom: clamp(1.5rem, 1.25rem + 1vw, 2rem) !important;
}
@media (max-width: 1100px) {
	.sb-offer__list.sb-offer__list {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* === questions: the title on the left, plain rows that open on the right === */
.sb-faq__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 32px clamp(40px, 7vw, 112px);
	align-items: start;
}
.sb-faq__grid > * {
	margin: 0 !important;
}
.sb-faq__head > * {
	margin-block: 0;
}
.sb-faq__head > * + * {
	margin-top: 16px;
}
.sb-faq__head > .wp-block-buttons {
	margin-top: 28px;
}
.sb-faq > * {
	margin: 0 !important;
}
.sb-faq details {
	border-bottom: 1px solid var(--sb-line);
	interpolate-size: allow-keywords;
}
.sb-faq details:first-child {
	border-top: 1px solid var(--sb-line);
}
.sb-faq summary {
	position: relative;
	padding: 20px 48px 20px 0;
	font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
	font-weight: 450;
	line-height: 1.4;
	letter-spacing: -0.012em;
	color: var(--sb-ink);
	list-style: none;
	cursor: pointer;
	transition: color var(--sb-fast) ease;
}
.sb-faq summary::-webkit-details-marker {
	display: none;
}
.sb-faq summary:hover {
	color: var(--sb-blue);
}
/* A plus that turns into a minus: two bars, the upright one rotates flat. */
.sb-faq summary::before,
.sb-faq summary::after {
	content: "";
	position: absolute;
	right: 6px;
	top: 50%;
	width: 14px;
	height: 1.5px;
	margin-top: -0.75px;
	border-radius: 2px;
	background-color: currentColor;
	transition: transform var(--sb-base) var(--sb-ease);
}
.sb-faq summary::after {
	transform: rotate(90deg);
}
.sb-faq details[open] summary::after {
	transform: rotate(0deg);
}
.sb-faq details > :not(summary) {
	max-width: 40em;
	margin: 0 0 14px;
	padding-right: 48px;
	color: var(--sb-muted);
}
.sb-faq details > :last-child:not(summary) {
	margin-bottom: 0;
	padding-bottom: 26px;
}
.sb-faq details a {
	color: var(--sb-ink);
	text-underline-offset: 3px;
}
.sb-faq details a:hover {
	color: var(--sb-blue);
}

/* === closing call: the one blue band === */
.sb-cta > * {
	margin: 0 !important;
}
.sb-cta__stage {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
	padding: clamp(4rem, 2.5rem + 6vw, 7rem) var(--sb-inset);
	text-align: center;
}
.sb-cta__stage > * {
	margin: 0 !important;
}
.sb-cta h2 {
	font-size: var(--wp--preset--font-size--headline);
	line-height: 1.12;
	letter-spacing: -0.035em;
}

/* === motion: only when the visitor has not asked for less === */
@media (prefers-reduced-motion: no-preference) {
	.sb-faq details::details-content {
		height: 0;
		overflow: hidden;
		transition:
			height var(--sb-base) var(--sb-ease),
			content-visibility var(--sb-base) allow-discrete;
	}
	.sb-faq details[open]::details-content {
		height: auto;
	}
}

/* === widths: each picture keeps its own size; a version made for the smaller width takes over === */

/* Bands stack before a 486px picture would have to shrink much. */
@media (max-width: 960px) {
	.sb-band,
	.sb-band--wide,
	.sb-band--wide.sb-band--flip {
		grid-template-columns: minmax(0, 1fr);
	}
	.sb-band__text,
	.sb-band--flip > .sb-band__text {
		padding: clamp(3rem, 2rem + 4vw, 4.5rem) var(--sb-inset) clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
	}
	.sb-band__media,
	.sb-band--flip > .sb-band__media {
		order: 0;
		border-inline: 0;
		border-top: 1px solid var(--sb-sec-line);
	}
	.sb-founder__grid,
	.sb-faq__grid,
	.sb-closing {
		grid-template-columns: minmax(0, 1fr);
	}
}
/* The 623px request needs room beside its words. */
@media (max-width: 1140px) {
	.sb-band--wide,
	.sb-band--wide.sb-band--flip {
		grid-template-columns: minmax(0, 1fr);
	}
	.sb-band--wide.sb-band--flip > .sb-band__media {
		order: 0;
		border-right: 0;
	}
	.sb-band--wide > .sb-band__text {
		padding: clamp(3rem, 2rem + 4vw, 4.5rem) var(--sb-inset) clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
	}
	.sb-band--wide > .sb-band__media {
		border-left: 0;
		border-top: 1px solid var(--sb-sec-line);
	}
}
/* The wide list: its 608px version under 1000px, its phone version under 700px. */
@media (max-width: 999px) {
	.sb-pic--desktop {
		display: none;
	}
	.sb-pic--tablet {
		display: block;
	}
}
@media (max-width: 699px) {
	.sb-pic--tablet {
		display: none;
	}
	.sb-pic--phone {
		display: block;
	}
}
/* The plan and the ladder stack. */
@media (max-width: 820px) {
	.sb-offer {
		grid-template-columns: minmax(0, 1fr);
	}
	.sb-track {
		border-left: 0;
		border-top: 1px solid var(--sb-card-line);
	}
	.sb-track__range.sb-track__range {
		font-size: 0.6875rem;
	}
}
/* Phones: every picture swaps to its phone version. */
@media (max-width: 599px) {
	.sb-pic--wide {
		display: none;
	}
	.sb-pic--phone {
		display: block;
	}
	.sb-hero .sb-window__bar {
		padding-inline: 64px 16px;
	}
	.sb-faq summary {
		padding-right: 40px;
	}
	.sb-faq details > :not(summary) {
		padding-right: 8px;
	}
}
