/* Contact flow (Figma "Contact flow · D / · M", "Pattern / contact-modal",
   "Pattern / contact-router", "Pattern / hero-gradient", "Pattern /
   people-grid"). Markup: template parts "Contact flow" and "Contact flow ·
   pop-up", inc/contact-flow.php; behaviour: assets/js/contact.js.
   Tokens only; the navy hairlines Figma draws as #1b2b56 at 7/12/18 % are
   text-primary mixed down. */

.capra-flow,
.capra-contact {
	--capra-line: color-mix(in srgb, var(--wp--custom--token--text-primary) 18%, transparent);
	--capra-line-soft: color-mix(in srgb, var(--wp--custom--token--text-primary) 7%, transparent);
	--capra-push-time: .6s;   /* moving between steps: the content and the robot (contact.js reads these) */
	--capra-push-ease: cubic-bezier(.5, 0, .2, 1);
	--capra-push-gap: var(--wp--preset--spacing--64);
	--capra-flow-ground: var(--wp--custom--token--bg-page);   /* what the flow stands on */
}

/* --- Flow: screens ------------------------------------------------------- */

/* One screen at a time: the one the form's data-step names (set by the page
   from ?topic= / ?sent=, then by contact.js). */
.capra-flow__screen {
	display: none;
}

.capra-flow[data-step="choose"] .capra-step-choose,
.capra-flow[data-step="demo"] .capra-step-demo,
.capra-flow[data-step="tech"] .capra-step-tech,
.capra-flow[data-step="partner"] .capra-step-partner,
.capra-flow[data-step="support"] .capra-step-support,
.capra-flow[data-step="details"] .capra-step-details,
.capra-flow[data-step="person"] .capra-step-person,
.capra-flow[data-step="sent-demo"] .capra-step-sent-demo,
.capra-flow[data-step="sent-tech"] .capra-step-sent-tech,
.capra-flow[data-step="sent-partner"] .capra-step-sent-partner,
.capra-flow[data-step="sent-support"] .capra-step-sent-support,
.capra-flow[data-step="sent-person"] .capra-step-sent-person {
	display: var(--capra-screen-display, flex);
}

/* Moving between steps (contact.js): choosing a route or a person, and
   backing out, zooms through (Jonas, 23 Oct 2026). Otherwise the screens
   are one strip. The next
   comes in from the right and pushes the one before out to the left; going
   back, the other way round. Only the content moves: the bar above it, with
   "Previous step" and the robot, stays, the robot driving along (Jonas, 23
   Oct 2026). In the pop-up, when the side column changes too (the people,
   a route's photos, a person), it moves with the flow as one panel, out at
   the screen's edges; otherwise only the flow moves, clipped at its
   column's sides. While they move, the leaving parts lie where they were. The step count
   stays on top: the route's name slides away under it, through a short
   fade in the colour of the ground. */
.capra-flow__screens {
	position: relative;
}

.capra-flow__screens.is-pushing,
.capra-contact__sheet.is-pushing {
	overflow-x: clip;
}

.capra-flow__count {
	position: relative;
	z-index: 1;
	background: var(--capra-flow-ground);
}

.capra-flow__count::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-end: 100%;
	inline-size: var(--wp--preset--spacing--32);
	background: linear-gradient(90deg, transparent, var(--capra-flow-ground));
	pointer-events: none;
}

.capra-flow .capra-flow__screen.is-leaving {
	display: flex;
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	pointer-events: none;
}

@keyframes capra-flow-in {
	from {
		opacity: 0;
		translate: 0 8px;
	}
}

/* Without JavaScript a route's questions and details are one form, so the
   details show under them; nothing steps, so no progress or Continue. */
.capra-flow:not(.is-enhanced):is([data-step="demo"], [data-step="tech"], [data-step="partner"]) .capra-step-details {
	display: flex;
}

.capra-flow:not(.is-enhanced) :is(.capra-flow__progress, .capra-questions .capra-flow__actions) {
	display: none;
}

/* The details' own question, its Send button and the route's name show for
   the route only; so do its questions ("Area of interest" for demo and tech). */
.capra-step-details :is(.capra-field, .wp-block-button, .capra-flow__route, .capra-question):is(.capra-for-demo, .capra-for-tech, .capra-for-partner, .capra-for-support) {
	display: none;
}

.capra-flow[data-route="demo"] .capra-step-details .capra-for-demo,
.capra-flow[data-route="tech"] .capra-step-details .capra-for-tech,
.capra-flow[data-route="partner"] .capra-step-details .capra-for-partner,
.capra-flow[data-route="support"] .capra-step-details .capra-for-support {
	display: flex;
}

.capra-flow[data-route="demo"] .capra-step-details .capra-question.capra-for-demo,
.capra-flow[data-route="tech"] .capra-step-details .capra-question.capra-for-tech,
.capra-flow[data-route="partner"] .capra-step-details .capra-question.capra-for-partner,
.capra-flow[data-route="support"] .capra-step-details .capra-question.capra-for-support {
	display: block;
}

/* Chips among the fields take the whole row. */
.capra-fields > .capra-question {
	grid-column: 1 / -1;
}

/* The news box under the message: optional, unticked (Jonas, 11 Nov 2026). */
.capra-consent {
	display: flex;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--12);
	color: var(--wp--custom--token--text-body);
	font-size: var(--wp--preset--font-size--body-s);
	cursor: pointer;
}

.capra-consent input {
	flex: none;
	inline-size: 20px;
	block-size: 20px;
	margin: 0;
	accent-color: var(--wp--custom--token--bg-action);
	cursor: pointer;
}

.capra-flow__screen {
	flex-direction: column;
	gap: var(--wp--preset--spacing--24);
}

/* Title and line: Heading/L over Body/M, 10 apart (Figma); phones Heading/M. */
.capra-flow__title {
	font-size: var(--wp--preset--font-size--heading-l);
	letter-spacing: var(--wp--custom--tracking--heading-l);
	--capra-leading: var(--wp--custom--leading--heading-l);
}

.capra-flow__title:focus {
	outline: none;
}

/* The route's name over steps 2 and 3, so the visitor always sees which way
   they chose (Jonas, 21 Oct 2026); the eyebrow sits 12 above the title. */
.capra-flow__screen > .capra-flow__route {
	margin-block-end: calc(var(--wp--preset--spacing--12) - var(--wp--preset--spacing--24));
	color: var(--wp--custom--token--text-muted);
	opacity: 1;
}

.capra-flow__screen > .capra-flow__route:is(.capra-for-demo, .capra-for-tech, .capra-for-partner, .capra-for-support) {
	display: none;
}

.capra-flow__screen > .capra-flow__lead {
	max-inline-size: 560px;
	margin-block-start: calc(var(--wp--preset--spacing--10) - var(--wp--preset--spacing--24));
	color: var(--wp--custom--token--text-body);
}

.capra-flow__foot,
.capra-flow__note {
	font-size: var(--wp--preset--font-size--body-s);
	color: var(--wp--custom--token--text-muted);
}

.capra-flow__foot a,
.capra-flow__note a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (hover: hover) {
	.capra-flow__foot a:hover,
	.capra-flow__note a:hover {
		color: var(--wp--custom--token--text-link);
	}
}

.capra-flow__trap {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

/* --- Progress: "Previous", the count and the step track ------------------ */
/* One group at the flow's top right: Previous, its arrow in an outlined circle, then
   "Step x of 3" and its track. On a route's steps it sits on the eyebrow's line (from 745), so
   a step reads route, title, lead (Jonas, 12 Nov 2026, of three on the review page: back belongs
   with its step count, and the route and title come first; a person's screen too, under
   "Direct message", Jonas, 12 Nov 2026). On Choose (no eyebrow) the group is a line of its own,
   still at the top right; on phones the row is a line of its own, Previous at its start. */
.capra-flow {
	position: relative;
}

.capra-flow__progress {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--16);
	block-size: var(--wp--preset--spacing--32);
	margin-block-end: var(--wp--preset--spacing--24);
}

/* The word stays for screen readers (and as the tooltip). */
.capra-flow__back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	inline-size: var(--wp--preset--spacing--32);
	block-size: var(--wp--preset--spacing--32);
	padding: 0;
	border: 1px solid var(--wp--custom--token--border-default);
	border-radius: var(--wp--custom--radius--full);
	background: var(--capra-flow-ground);
	color: var(--wp--custom--token--text-primary);
	font-size: 0;
	cursor: pointer;
	transition: border-color .2s ease;
}

@media (min-width: 745px) {
	/* Above the screens, which come after it and are positioned too: without it they cover
	   Previous and take its clicks (Jonas, 12 Nov 2026). */
	.capra-flow:not([data-step="choose"]) .capra-flow__progress {
		position: absolute;
		z-index: 2;
		inset-block-start: 0;
		inset-inline-end: 0;
		margin: 0;
	}

	.capra-flow__progress {
		justify-content: flex-end;
	}

	/* The route's name is as tall as the group beside it, its text centred on the group's. */
	.capra-flow__screen > .capra-flow__route {
		min-block-size: var(--wp--preset--spacing--32);
	}
}


.capra-flow__back::before {
	content: "";
	inline-size: 16px;
	block-size: 16px;
	background: currentColor;
	-webkit-mask: var(--capra-i-arrow-l) center / contain no-repeat;
	mask: var(--capra-i-arrow-l) center / contain no-repeat;
	transition: translate .2s ease;
}

@media (hover: hover) {
	.capra-flow__back:hover {
		border-color: var(--wp--custom--token--border-strong);
	}

	.capra-flow__back:hover::before {
		translate: -2px 0;
	}
}

.capra-flow[data-step="choose"] .capra-flow__back {
	visibility: hidden;
}

.capra-flow[data-step^="sent-"] .capra-flow__progress {
	display: none;
}

/* Writing to one person is one screen after the choice, not a sequence: Choose's "of 3" cannot go
   on, so no count or robot (Jonas, 12 Nov 2026: "2 of 2" after "1 of 3" read wrong). Previous goes
   to the start of the "Direct message" line: back on the left, Close on the right, as a dialog
   has them; on phones it starts its own line as everywhere. */
.capra-flow[data-step="person"] .capra-flow__count {
	display: none;
}

@media (min-width: 745px) {
	.capra-flow[data-step="person"] .capra-flow__progress {
		inset-inline: 0 auto;
	}

	.capra-step-person > .capra-flow__route {
		padding-inline-start: calc(var(--wp--preset--spacing--32) + var(--wp--preset--spacing--16));
	}
}

.capra-flow__count {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--10);
	margin: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--mono-caps-m);
	letter-spacing: var(--wp--custom--tracking--mono-caps);
	text-transform: uppercase;
	color: var(--wp--custom--token--text-muted);
}

/* Figma Step track: 34 x 3 segments 6 apart; done in action blue; the
   robot sits on the current one and drives on to the next. The line is
   centred on "Step 1 of 3" and the robot stands above it (Jonas, 21 Oct 2026). */
.capra-track {
	--capra-seg: 34px;
	--capra-gap: 6px;
	position: relative;
	display: inline-flex;
	gap: var(--capra-gap);
}

.capra-track__seg {
	position: relative;
	overflow: hidden;
	inline-size: var(--capra-seg);
	block-size: 3px;
	border-radius: var(--wp--custom--radius--full);
	background: var(--wp--custom--token--bg-muted);
}

/* A step's line fills as the robot drives onto it, and empties again as it
   backs off, in time with the content. */
.capra-track__seg::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--wp--custom--token--text-primary);
	scale: 0 1;
	transform-origin: left;
	transition: scale var(--capra-push-time) var(--capra-push-ease);
}

.capra-track[data-of="2"] .capra-track__seg:nth-child(3) {
	display: none;
}

/* Done and current steps navy, as the robot on them: one object, and blue stays
   for what can be clicked (Jonas, 12 Nov 2026; blue lines and a navy robot before;
   20 Oct 2026: Figma's top-down mark on the line was too small). */
.capra-track[data-at="1"] .capra-track__seg:nth-child(-n + 1)::before,
.capra-track[data-at="2"] .capra-track__seg:nth-child(-n + 2)::before,
.capra-track[data-at="3"] .capra-track__seg:nth-child(-n + 3)::before {
	scale: 1;
}

/* The robot, side on, its wheels on its step's line (the drawing has 10%
   room under the wheels, hence the 1px). At this size it is the small drawing: thicker
   lines, the body and its wheels only (Jonas, 12 Nov 2026: the lines were too thin). */
.capra-track__mark {
	position: absolute;
	inset-block-end: calc(100% - 1px);
	inset-inline-start: calc(var(--capra-seg) / 2 - 12px);
	inline-size: 24px;
	block-size: 14px;
	background: var(--wp--custom--token--text-primary);
	-webkit-mask: var(--capra-i-robot-side-s) center / contain no-repeat;
	mask: var(--capra-i-robot-side-s) center / contain no-repeat;
	transition: translate var(--capra-push-time) var(--capra-push-ease);
}

.capra-track[data-at="2"] .capra-track__mark {
	translate: calc(var(--capra-seg) + var(--capra-gap)) 0;
}

.capra-track[data-at="3"] .capra-track__mark {
	translate: calc(2 * (var(--capra-seg) + var(--capra-gap))) 0;
}

/* --- Intent cards (Figma Card · Intent) ---------------------------------- */
.capra-intents {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--16);
}

.capra-intent {
	position: relative;
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) 28px;
	grid-template-areas:
		"icon . ring"
		"title title title"
		"text text text";
	align-content: start;
	row-gap: var(--wp--preset--spacing--6);
	--capra-intent-pad: var(--wp--preset--spacing--24);
	padding: var(--capra-intent-pad) var(--wp--preset--spacing--20) var(--capra-intent-pad) var(--capra-intent-pad);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--custom--token--bg-surface);
	box-shadow: inset 0 0 0 1px var(--capra-line-soft), var(--wp--preset--shadow--card);
	transition: box-shadow .2s ease;
}

.capra-intent:has(a:focus-visible) {
	box-shadow: inset 0 0 0 1px var(--capra-line-soft), var(--wp--preset--shadow--raised);
}

@media (hover: hover) {
	.capra-intent:hover {
		box-shadow: inset 0 0 0 1px var(--capra-line-soft), var(--wp--preset--shadow--raised);
	}
}

.capra-intent__icon {
	grid-area: icon;
	display: grid;
	place-items: center;
	inline-size: 56px;
	block-size: 56px;
	margin: 0 0 var(--wp--preset--spacing--8);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--custom--token--bg-surface-tint);
}

.capra-intent__icon img {
	inline-size: 32px;
	block-size: 32px;
}

.capra-intent__title {
	grid-area: title;
	font-size: var(--wp--preset--font-size--title-l);
	font-weight: var(--wp--custom--weight--bold);
	letter-spacing: 0;
	--capra-leading: var(--wp--custom--leading--title);
}

.capra-intent__title a {
	color: var(--wp--custom--token--text-primary);
	text-decoration: none;
}

/* The whole card is the link. */
.capra-intent__title a::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.capra-intent__title a:focus-visible {
	outline: none;
}

.capra-intent:has(a:focus-visible) {
	outline: 2px solid var(--wp--custom--token--border-focus);
	outline-offset: 2px;
}

.capra-intent__text {
	grid-area: text;
	font-size: var(--wp--preset--font-size--body-m);
	color: var(--wp--custom--token--text-body);
}

/* The ring top right: the theme's one arrow-in-ring (components.css). */
.capra-intent::after {
	grid-area: ring;
	align-self: start;
	pointer-events: none;
	--capra-ring-size: 28px;
	color: var(--wp--custom--token--text-link);
}

/* Support's two cards have an icon, not an illustration: the tile is the
   card's ::before, the glyph sits on it from the title (the card's ::after is
   the ring, the title link's ::before the click area). Side by side like the
   first screen's cards; rows on phones, as every card there. */
.capra-intent:is(.capra-intent--phone, .capra-intent--pin)::before {
	content: "";
	grid-area: icon;
	inline-size: 56px;
	block-size: 56px;
	margin-block-end: var(--wp--preset--spacing--8);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--custom--token--bg-surface-tint);
}

.capra-intent:is(.capra-intent--phone, .capra-intent--pin) .capra-intent__title::after {
	content: "";
	position: absolute;
	inset-block-start: calc(var(--capra-intent-pad) + 17px);
	inset-inline-start: calc(var(--capra-intent-pad) + 17px);
	inline-size: 22px;
	block-size: 22px;
	background: var(--wp--custom--token--icon-primary);
	-webkit-mask: var(--capra-intent-glyph) center / contain no-repeat;
	mask: var(--capra-intent-glyph) center / contain no-repeat;
	pointer-events: none;
}

.capra-intent--phone {
	--capra-intent-glyph: var(--capra-i-phone);
}

.capra-intent--pin {
	--capra-intent-glyph: var(--capra-i-pin);
}

/* --- Questions: selectable chips ---------------------------------------- */
/* In the Site Editor a question is its blocks (inc/contact-flow.php makes the
   chips on the page): shown close to the page, the answers as chips. */
:is(.is-style-capra-question, .is-style-capra-question-multi, .is-style-capra-question-select) {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--8);
}

:is(.is-style-capra-question, .is-style-capra-question-multi, .is-style-capra-question-select) > p:first-child {
	font-weight: var(--wp--custom--weight--bold);
	color: var(--wp--custom--token--text-primary);
}

:is(.is-style-capra-question, .is-style-capra-question-multi, .is-style-capra-question-select) > p + p {
	font-size: var(--wp--preset--font-size--body-s);
	color: var(--wp--custom--token--text-muted);
}

:is(.is-style-capra-question, .is-style-capra-question-multi, .is-style-capra-question-select) > ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--8);
	margin: 0;
	padding: 0;
	list-style: none;
}

:is(.is-style-capra-question, .is-style-capra-question-multi, .is-style-capra-question-select) > ul > li {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--8);
	min-block-size: 40px;
	padding: var(--wp--preset--spacing--8) var(--wp--preset--spacing--14);
	border-radius: var(--wp--custom--radius--full);
	box-shadow: inset 0 0 0 1px var(--capra-line);
	color: var(--wp--custom--token--text-primary);
	font-size: var(--wp--preset--font-size--label-s);
	font-weight: var(--wp--custom--weight--semibold);
}

:is(.is-style-capra-question, .is-style-capra-question-multi, .is-style-capra-question-select) > ul > li img {
	inline-size: 20px;
	block-size: 20px;
}

.capra-questions {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--24);
}

.capra-question {
	margin: 0;
	padding: 0;
	border: 0;
}

.capra-question__label {
	padding: 0;
	margin-block-end: var(--wp--preset--spacing--12);
	font-weight: var(--wp--custom--weight--bold);
	color: var(--wp--custom--token--text-primary);
}

.capra-question__hint {
	margin-inline-start: var(--wp--preset--spacing--8);
	font-size: var(--wp--preset--font-size--body-s);
	font-weight: var(--wp--custom--weight--regular);
	color: var(--wp--custom--token--text-muted);
}

.capra-question__error {
	margin-inline-start: var(--wp--preset--spacing--8);
	font-weight: var(--wp--custom--weight--regular);
}

.capra-question[aria-invalid] .capra-question__hint {
	display: none;
}

.capra-question[aria-invalid] .capra-chip {
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wp--custom--token--text-danger) 45%, transparent);
}

.capra-chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--8);
}

.capra-chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--8);
	min-block-size: 40px;
	padding: var(--wp--preset--spacing--8) var(--wp--preset--spacing--14);
	border-radius: var(--wp--custom--radius--full);
	background: var(--wp--custom--token--bg-surface);
	box-shadow: inset 0 0 0 1px var(--capra-line);
	color: var(--wp--custom--token--text-primary);
	font-size: var(--wp--preset--font-size--label-s);
	font-weight: var(--wp--custom--weight--semibold);
	cursor: pointer;
	transition: box-shadow .15s ease;
}

@media (hover: hover) {
	.capra-chip:hover {
		box-shadow: inset 0 0 0 1px var(--wp--custom--token--text-primary);
	}
}

.capra-chip input {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.capra-chip img {
	inline-size: 20px;
	block-size: 20px;
}

/* Picked: Figma's 2px focus-blue ring and a low shadow (marketing, 30 Oct 2026:
   less than the raised one). */
.capra-chip:has(input:checked) {
	box-shadow: inset 0 0 0 2px var(--wp--custom--token--border-focus), var(--wp--preset--shadow--low);
}

/* Step 3 sums up step 2 (marketing, 30 Oct 2026: see what you are sending): the chosen
   chips again, tinted and at rest, between the route's question and its box (contact.js;
   none with nothing chosen, e.g. a link straight to step 3). The selector's setup and weight
   lead them, and head step 2 as "Your setup" (Jonas, 11 Nov 2026: not typed into the box). */
.capra-flow__picked {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--8);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* In the message's field: a breath from its label, more from the box (Jonas, 11 Nov 2026). */
.capra-field > .capra-flow__picked {
	margin-block: var(--wp--preset--spacing--4) var(--wp--preset--spacing--12);
}

.capra-flow__picked > .capra-chip {
	min-block-size: 32px;
	padding-block: var(--wp--preset--spacing--4);
	background: var(--wp--custom--token--bg-action-subtle);
	box-shadow: none;
	pointer-events: none;
}

.capra-chip:has(input:focus-visible) {
	outline: 2px solid var(--wp--custom--token--border-focus);
	outline-offset: 2px;
}

/* --- Fields -------------------------------------------------------------- */
.capra-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--12) var(--wp--preset--spacing--16);
}

.capra-field {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--4);
}

/* Required: a red asterisk after the label, explained in the small print under the Send button
   (Jonas, 11 Nov 2026: no line of text over the fields). */
.capra-field__required {
	margin-inline-start: var(--wp--preset--spacing--2);
	color: var(--wp--custom--token--text-danger);
}

.capra-flow__note > .capra-field__required {
	margin-inline: 0;
}

.capra-field--wide {
	grid-column: 1 / -1;
}

.capra-field__label {
	font-size: var(--wp--preset--font-size--title-s);
	font-weight: var(--wp--custom--weight--bold);
	color: var(--wp--custom--token--text-primary);
	--capra-leading: var(--wp--custom--leading--title);
}

.capra-field :is(input, select, textarea) {
	inline-size: 100%;
	padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--14);
	border: 0;
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--custom--token--bg-surface);
	box-shadow: inset 0 0 0 1px var(--capra-line);
	color: var(--wp--custom--token--text-primary);
	font: inherit;
	font-size: var(--wp--preset--font-size--body-m);
	transition: box-shadow .15s ease;
}

.capra-field textarea {
	resize: vertical;
}

/* A dropdown, and the country's type-ahead, draw our chevron 16 in from the edge, as the Specs
   tabs' does on phones (Jonas, 12 Nov 2026: the browser's own sat against the edge, and the
   country's was a different, filled triangle). */
.capra-field__select {
	position: relative;
	display: block;
}

.capra-field__select::after {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-end: var(--wp--preset--spacing--16);
	inline-size: 20px;
	background: var(--wp--custom--token--icon-primary);
	-webkit-mask: var(--capra-i-chev-d) center / contain no-repeat;
	mask: var(--capra-i-chev-d) center / contain no-repeat;
	pointer-events: none;
}

.capra-field :is(select, input[list]) {
	padding-inline-end: calc(var(--wp--preset--spacing--16) + 20px + var(--wp--preset--spacing--12));
}

.capra-field select {
	appearance: none;
	cursor: pointer;
}

/* The type-ahead's own triangle, invisible under our chevron: a click there still opens its list. */
.capra-field input[list]::-webkit-calendar-picker-indicator {
	opacity: 0;
	cursor: pointer;
}

/* A dropdown with nothing chosen reads as a placeholder, as the empty fields beside it do. */
.capra-field select:invalid {
	color: var(--wp--custom--token--text-muted);
}

.capra-field select option {
	color: var(--wp--custom--token--text-primary);
}

.capra-field :is(input, select, textarea)::placeholder {
	color: var(--wp--custom--token--text-muted);
}

@media (hover: hover) {
	.capra-field :is(input, select, textarea):hover {
		box-shadow: inset 0 0 0 1px var(--wp--custom--token--text-primary);
	}
}

.capra-field :is(input, select, textarea):focus {
	outline: none;
	box-shadow: inset 0 0 0 2px var(--wp--custom--token--bg-action);
}

.capra-field :is(input, select, textarea)[aria-invalid="true"] {
	box-shadow: inset 0 0 0 2px var(--wp--custom--token--text-danger);
}

/* A field with an error keeps its red edge and still shows where focus is (the audit,
   6 Nov 2026: the red edge replaced the focus ring). */
.capra-field :is(input, select, textarea)[aria-invalid="true"]:focus-visible {
	outline: 2px solid var(--wp--custom--token--border-focus);
	outline-offset: 2px;
}

/* Windows contrast themes drop the box-shadow ring: an outline instead. */
@media (forced-colors: active) {
	.capra-field :is(input, select, textarea):focus {
		outline: 2px solid Highlight;
	}
}

.capra-field__error,
.capra-flow__alert {
	font-size: var(--wp--preset--font-size--body-s);
	color: var(--wp--custom--token--text-danger);
}

/* --- Actions ------------------------------------------------------------- */
.capra-flow__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--16) var(--wp--preset--spacing--24);
	padding-block-start: var(--wp--preset--spacing--8);
}

/* Buttons are Btn L (components.css); the submit is a <button>. */
.capra-flow button.wp-block-button__link {
	cursor: pointer;
}

.capra-flow button.wp-block-button__link {
	font: inherit;
	font-size: var(--wp--preset--font-size--body-m);
	font-weight: var(--wp--custom--weight--bold);
}

.capra-flow.is-sending .capra-flow__send {
	opacity: .6;
	cursor: progress;
}

/* --- Sent ---------------------------------------------------------------- */
/* Figma's ring with a check (64 there; 48 beside the title since 12 Nov 2026), the title, the line, the actions. */
.capra-flow__sent::before {
	content: "";
	inline-size: 48px;
	block-size: 48px;
	background: var(--wp--custom--token--bg-action);
	-webkit-mask:
		var(--capra-i-check) center / 22px no-repeat,
		radial-gradient(farthest-side, transparent calc(100% - 2.75px), #000 calc(100% - 2px), #000 calc(100% - .75px), transparent 100%);
	mask:
		var(--capra-i-check) center / 22px no-repeat,
		radial-gradient(farthest-side, transparent calc(100% - 2.75px), #000 calc(100% - 2px), #000 calc(100% - .75px), transparent 100%);
}

/* Sent (Jonas, 12 Nov 2026, B of two): the ring beside the title, then under the lead what happens
   next (contact.js; not capra-flow__next, which is Continue), a card of rows: the address we reply to, always (the visitor gets no mail
   from us, so a typo shows only here), and, "Keep me updated" ticked, the newsletter's
   confirmation. */
.capra-flow .capra-flow__sent {
	--capra-screen-display: grid;   /* as its step, the one sent alone (Jonas, 1 Dec 2026: every route's Sent showed at once) */
	grid-template-columns: 48px minmax(0, 1fr);
	align-items: center;
	column-gap: var(--wp--preset--spacing--16);
}

.capra-flow__sent > * {
	grid-column: 1 / -1;
}

.capra-flow__sent > .capra-flow__title {
	grid-column: 2;
}

.capra-flow__followup {
	display: flex;
	flex-direction: column;
	max-inline-size: 560px;
	margin: 0;
	padding: var(--wp--preset--spacing--4) var(--wp--preset--spacing--20);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--custom--token--bg-subtle);
	list-style: none;
}

.capra-flow__followup li {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--12);
	padding: var(--wp--preset--spacing--14) 0;
	color: var(--wp--custom--token--text-body);
}

.capra-flow__followup li + li {
	border-block-start: 1px solid var(--wp--custom--token--border-subtle);
}

.capra-flow__followup li::before {
	content: "";
	flex: none;
	inline-size: 20px;
	block-size: 20px;
	background: var(--wp--custom--token--bg-action);
	-webkit-mask: var(--capra-i-news) center / contain no-repeat;
	mask: var(--capra-i-news) center / contain no-repeat;
}

.capra-flow__followup .capra-flow__followup-reply::before {
	-webkit-mask-image: var(--capra-i-mail);
	mask-image: var(--capra-i-mail);
}

.capra-flow__followup strong {
	color: var(--wp--custom--token--text-primary);
	font-weight: var(--wp--custom--weight--bold);
}

.capra-flow__sent-actions.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--16) var(--wp--preset--spacing--24);
	margin: 0;
}

/* --- The pop-up (Figma Pattern / contact-modal) --------------------------- */
/* A full-screen sheet on the page surface, no backdrop; the bar and sheet
   scroll together. To 1100 the side column moves under the flow. */
.capra-contact {
	inline-size: 100%;
	max-inline-size: none;
	block-size: 100%;
	max-block-size: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--custom--token--text-body);
	--capra-flow-ground: var(--wp--custom--token--bg-surface);   /* the backdrop's */
	/* Always a scrollbar where the page has one, so the sheet's content
	   lines up with the header behind it (Close over Get in touch). */
	overflow-y: scroll;
	overscroll-behavior: contain;
}

/* Opening: the page washes out to the surface colour (the backdrop), and
   the sheet rises in just after, so the two never cross-dissolve. Closing
   runs it backwards; contact.js waits for it before closing the dialog. */
.capra-contact[open] {
	display: block;
}

.capra-contact::backdrop {
	background: var(--wp--custom--token--bg-surface);
	animation: capra-contact-wash .22s ease-out;
}

.capra-contact[open] .capra-contact__sheet {
	animation: capra-contact-in .34s .12s cubic-bezier(.2, .7, .3, 1) backwards;
}

.capra-contact.is-closing {
	pointer-events: none;
}

.capra-contact.is-closing .capra-contact__sheet {
	animation: capra-contact-out .16s ease-in forwards;
}

/* Its own keyframes: the opening's run in reverse kept their name, so the browser counted them as
   long finished and the wash was gone at once, the sheet fading over the bare page (Jonas, 12 Nov
   2026: "flashes", the step row's white ground lingering on the photo). */
.capra-contact.is-closing::backdrop {
	animation: capra-contact-unwash .2s .06s ease-in forwards;
}

@keyframes capra-contact-wash {
	from {
		opacity: 0;
	}
}

@keyframes capra-contact-unwash {
	to {
		opacity: 0;
	}
}

@keyframes capra-contact-in {
	from {
		opacity: 0;
	}
}

@keyframes capra-contact-out {
	to {
		opacity: 0;
	}
}

/* The page stays still underneath: it stops scrolling, and keeps the room
   its scrollbar had (measured by contact.js), so neither it nor the fixed
   header shifts sideways while the sheet fades. */
html:has(.capra-contact[open]) {
	overflow: hidden;
	padding-inline-end: var(--capra-scrollbar, 0px);
}

html:has(.capra-contact[open]) .capra-nav {
	inset-inline-end: var(--capra-scrollbar, 0px);
}

/* Logged in, the admin bar stays above the sheet, and the wash stops under
   it too (it covered the bar, 21 Oct 2026). WordPress's bar is 32px, 46px on
   phones; the fallbacks are for browsers whose backdrop inherits nothing. */
.admin-bar .capra-contact {
	inset-block-start: var(--wp-admin--admin-bar--height, 0px);
	block-size: calc(100% - var(--wp-admin--admin-bar--height, 0px));
}

.admin-bar .capra-contact::backdrop {
	inset-block-start: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 782px) {
	.admin-bar .capra-contact::backdrop {
		inset-block-start: var(--wp-admin--admin-bar--height, 46px);
	}
}

.capra-contact__sheet {
	max-inline-size: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding: 0 var(--wp--custom--layout--margin) var(--wp--preset--spacing--32);
}

.capra-contact__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	block-size: var(--wp--custom--layout--header-height);
	container-type: inline-size;
}

/* Figma Btn · Close: a tinted pill, "Close", and a white disc (the link's
   ::before) under the cross (its ::after, where other buttons have the ring). */
.capra-contact__close .wp-block-button__link {
	--capra-btn-height: var(--wp--custom--button--height-s);
	gap: var(--wp--preset--spacing--10);
	padding: 0 var(--wp--preset--spacing--4) 0 var(--wp--preset--spacing--16);
	background: color-mix(in srgb, var(--wp--custom--token--text-primary) 6%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wp--custom--token--text-primary) 12%, transparent);
	color: var(--wp--custom--token--text-primary);
}

.capra-contact__close .wp-block-button__link:is(:focus, :active, :visited) {
	color: var(--wp--custom--token--text-primary);
}

@media (hover: hover) {
	.capra-contact__close .wp-block-button__link:is(:hover, :focus, :active, :visited) {
		color: var(--wp--custom--token--text-primary);
	}
}

@media (hover: hover) {
	.capra-contact__close .wp-block-button__link:hover {
		background: color-mix(in srgb, var(--wp--custom--token--text-primary) 12%, transparent);
	}
}

.capra-contact__close .wp-block-button__link::before {
	content: "";
	position: absolute;
	/* All four sides: every button's ::before is inset 0 (the lit edge), and a left of 0
	   pulled the disc over "Close" (Jonas, 5 Nov 2026). */
	inset-block: calc(50% - 16px) auto;
	inset-inline: auto var(--wp--preset--spacing--4);
	inline-size: 32px;
	block-size: 32px;
	border-radius: var(--wp--custom--radius--full);
	background: var(--wp--custom--token--bg-surface);
	transition: background-color .2s ease;
}

.capra-contact__close .wp-block-button__link::after {
	--capra-ring-size: 16px;
	position: relative;
	margin-inline: var(--wp--preset--spacing--8);
	background: var(--wp--custom--token--icon-primary);
	-webkit-mask: var(--capra-i-close) center / contain no-repeat;
	mask: var(--capra-i-close) center / contain no-repeat;
}

.capra-contact__close .wp-block-button__link:focus-visible::after {
	-webkit-mask-position: center;
	mask-position: center;
	background: var(--wp--custom--token--text-on-action);
}

@media (hover: hover) {
	.capra-contact__close .wp-block-button__link:hover::after {
		-webkit-mask-position: center;
		mask-position: center;
		background: var(--wp--custom--token--text-on-action);
	}
}

.capra-contact__close .wp-block-button__link:focus-visible::before {
	background: var(--wp--custom--token--bg-brand);
}

@media (hover: hover) {
	.capra-contact__close .wp-block-button__link:hover::before {
		background: var(--wp--custom--token--bg-brand);
	}
}

/* The narrowest phones: the logo and "Close" don't fit side by side, so the cross
   alone on its disc, the word kept for screen readers (Jonas, 6 Nov 2026). */
@container (max-width: 300px) {
	.capra-contact__close .wp-block-button__link {
		gap: 0;
		padding-inline: var(--wp--preset--spacing--4);
		font-size: 0;
	}
}

.capra-contact__body {
	display: grid;
	grid-template-columns: minmax(360px, 1fr) minmax(0, 760px);
	column-gap: var(--wp--preset--spacing--64);
	padding-block-start: var(--wp--preset--spacing--32);
}

.capra-contact__intro {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--24);
}

/* The side column's label over the people (Choose): mono caps, like the
   route's name over the flow, so the routes keep the one heading. */
.capra-on > .capra-contact__aside-title {
	margin-block-end: var(--wp--preset--spacing--12);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--mono-caps-l);
	font-weight: var(--wp--custom--weight--mono-medium);
	letter-spacing: var(--wp--custom--tracking--mono-caps);
	text-transform: uppercase;
	color: var(--wp--custom--token--text-muted);
	--capra-leading: 2;
}

/* The side column follows the step: the sales team, the route's photos, or
   the person written to. */
.capra-on {
	display: none;
}

.capra-contact[data-step="choose"] .capra-on-choose,
.capra-contact:not([data-step]) .capra-on-choose,
.capra-contact[data-route="demo"] .capra-on-demo,
.capra-contact[data-route="tech"] .capra-on-tech,
.capra-contact[data-route="partner"] .capra-on-partner,
.capra-contact[data-route="support"] .capra-on-support,
.capra-contact[data-route="person"] .capra-on-person {
	display: block;
}

.capra-contact[data-step="choose"] :is(.capra-on-demo, .capra-on-tech, .capra-on-partner, .capra-on-support, .capra-on-person) {
	display: none;
}

/* Route photos: one 360 x 260, or Solution's two, staggered. */
.capra-route__img img {
	inline-size: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--lg);
}

.capra-on-demo {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--12);
}

.capra-contact[data-route="demo"]:not([data-step="choose"]) .capra-on-demo {
	display: grid;
}

.capra-on-demo .capra-route__img img {
	aspect-ratio: 174 / 320;
	border-radius: var(--wp--custom--radius--md);
}

.capra-on-demo .capra-route__img:last-child {
	margin-block-start: var(--wp--preset--spacing--40);
}

/* Sales tiles (Figma Person · Contact, Overlay): a 2 x 2 grid of big
   portraits, the region over the name at each one's foot on a gentle scrim
   (Jonas, 23 Oct 2026: big pictures, no titles, no shelf; the red room's navy
   foot was too strong). Over the name: the person's short title if set (Lars:
   "CCO"), else the region. */
.capra-contact__aside,
.capra-contact:is([data-step="choose"], :not([data-step])) .capra-on-choose,
.capra-tiles {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.capra-tiles__list {
	display: grid;
	flex: 1;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: minmax(260px, 1fr);
	gap: var(--wp--preset--spacing--12);
	margin: 0;
	padding: 0;
	list-style: none;
}

.capra-tiles__list > li {
	display: grid;
	container-type: inline-size;   /* a name sizes by its tile (below) */
}

/* Under the four: everyone on the Contact page (leadership and the people
   you will talk to). */
.capra-on-choose > .capra-tiles__more {
	margin-block-start: var(--wp--preset--spacing--16);
}

.capra-tile {
	--capra-tile-pad: var(--wp--preset--spacing--16);
	position: relative;
	display: grid;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--preset--shadow--card);
	color: var(--wp--custom--token--text-inverse);
	cursor: pointer;
	isolation: isolate;
	transition: box-shadow .2s ease;
}

/* No zoom on the people (marketing, 30 Oct 2026); the tile lifts instead, as the
   cards do (Jonas, 4 Nov 2026: "the shadow should increase a bit on hover"). */
.capra-tile:focus-visible {
	box-shadow: var(--wp--preset--shadow--raised);
}

@media (hover: hover) {
	.capra-tile:hover {
		box-shadow: var(--wp--preset--shadow--raised);
	}
}

.capra-tile > * {
	grid-area: 1 / 1;
}

/* The portrait fills the tile from the top, on the studio grey; a gentle
   scrim under the words. */
.capra-tile > .capra-tile__photo {
	position: relative;
	z-index: -1;
	margin: 0;
	overflow: hidden;
	background: linear-gradient(90deg, var(--wp--custom--token--bg-subtle), color-mix(in srgb, var(--wp--custom--token--bg-muted) 90%, var(--wp--custom--token--text-primary)));
}

.capra-tile__photo img {
	position: absolute;
	inset: 0;
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	object-position: 50% 0;
}

/* The scrim eases in (Jonas, 4 Nov 2026: darker at the foot, lighter higher up, so it
   blends): clear down to the chin, darkest under the words. */
.capra-tile__photo::after {
	--capra-scrim: var(--wp--custom--token--bg-inverse);
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		transparent 40%,
		color-mix(in srgb, var(--capra-scrim) 4%, transparent) 52%,
		color-mix(in srgb, var(--capra-scrim) 14%, transparent) 62%,
		color-mix(in srgb, var(--capra-scrim) 32%, transparent) 72%,
		color-mix(in srgb, var(--capra-scrim) 56%, transparent) 84%,
		color-mix(in srgb, var(--capra-scrim) 88%, transparent) 100%
	);
}

.capra-tile::after {
	content: "";
	position: absolute;
	inset-block-start: var(--wp--preset--spacing--12);
	inset-inline-end: var(--wp--preset--spacing--12);
	--capra-ring-size: 22px;
	color: var(--wp--custom--token--text-primary);
}

.capra-tile:focus-visible {
	outline: 2px solid var(--wp--custom--token--border-focus);
	outline-offset: 2px;
}

.capra-tile__text {
	align-self: end;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--2);
	padding: var(--capra-tile-pad);
}

/* Big enough to read on a photo (Jonas, 23 Oct 2026: the region was too
   small and thin): the largest mono caps, semibold, the name a size up. */
.capra-tile .capra-tile__region {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--mono-caps-l);
	font-weight: var(--wp--custom--weight--mono-semibold);
	letter-spacing: var(--wp--custom--tracking--mono-caps-s);
	text-transform: uppercase;
	color: color-mix(in srgb, currentColor 92%, transparent);
}

.capra-tile__name {
	font-size: var(--wp--preset--font-size--title-m);
	font-weight: var(--wp--custom--weight--bold);
	letter-spacing: 0;
	color: inherit;
	--capra-leading: var(--wp--custom--leading--title);
}

/* A name on two lines at most (Jonas, 1 Dec 2026: "Sebastian Geubtner-Brunner" took three): a size
   smaller and a closer margin on the narrowest tiles (tablets near 768, phones near 360). */
@container (max-width: 159px) {
	.capra-tile {
		--capra-tile-pad: var(--wp--preset--spacing--12);
	}

	.capra-tile .capra-tile__name {
		font-size: var(--wp--preset--font-size--title-s);
	}
}

/* Person panel (Figma Person · Panel): only the one chosen shows. */
.capra-panels__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.capra-panels__list > .wp-block-post {
	display: none;
}

.capra-panels__list > .wp-block-post.is-chosen {
	display: block;
}

.capra-panel {
	overflow: hidden;
	max-inline-size: 360px;
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--custom--token--bg-subtle);
}

/* The portrait whole, as Figma's 360 x 300, not cut to a band (Jonas, 23 Oct
   2026: it was too much face), and all its corners rounded. */
.capra-panel__photo {
	margin: 0;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--lg);
}

.capra-panel__photo img {
	display: block;
	inline-size: 100%;
	aspect-ratio: 360 / 300;
	object-fit: cover;
	object-position: center 20%;
}

.capra-panel__body {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--6);
	padding: var(--wp--preset--spacing--24);
}

.capra-panel__name {
	font-size: var(--wp--preset--font-size--heading-m);
	letter-spacing: var(--wp--custom--tracking--heading-m);
	--capra-leading: var(--wp--custom--leading--heading-m);
}

.capra-panel__body > .capra-panel__region {
	margin-block-end: var(--wp--preset--spacing--10);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--mono-caps-m);
	letter-spacing: var(--wp--custom--tracking--mono-caps);
	text-transform: uppercase;
	color: var(--wp--custom--token--text-muted);
}

.capra-panel__phone,
.capra-panel__email {
	font-weight: var(--wp--custom--weight--bold);
}

.capra-panel__phone a,
.capra-panel__email a {
	color: var(--wp--custom--token--text-primary);
	text-decoration: none;
}

.capra-panel__actions.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--10);
	margin-block-start: var(--wp--preset--spacing--12);
}

/* --- Contact page --------------------------------------------------------- */
/* Router (Figma Pattern / contact-router): the flow beside the link column;
   below 1100 the column goes under the flow (Figma's tablet frame overflows).
   The column is hidden for now (Jonas, 21 Oct 2026), and the flow then has
   the row to itself. */
.capra-router {
	display: grid;
	grid-template-columns: minmax(0, 760px) minmax(0, 360px);
	justify-content: space-between;
	column-gap: var(--wp--preset--spacing--80);
	max-inline-size: var(--wp--style--global--content-size);
	margin-inline: auto;
	padding-block: var(--wp--preset--spacing--80);
}

.capra-router:not(:has(> .capra-router__links)) {
	grid-template-columns: minmax(0, 1fr);
}

/* From step 2 on, the route's photos stand beside the flow, as in the pop-up
   (Jonas, 21 Oct 2026): the shared part "Contact flow · photos". On the first
   step the flow has the row to itself. Read off the form's own data-step and
   data-route, so it holds without JavaScript too. */
.capra-router:has(.capra-flow:not([data-step="choose"])) {
	grid-template-columns: minmax(0, 360px) minmax(0, 760px);
	column-gap: var(--wp--preset--spacing--80);
}

.capra-router:has(.capra-flow[data-step="choose"]) > .capra-router__photos {
	display: none;
}

.capra-router:has(.capra-flow[data-route="demo"]) .capra-on-demo {
	display: grid;
	animation: capra-flow-in .32s cubic-bezier(.2, .7, .3, 1);
}

.capra-router:has(.capra-flow[data-route="tech"]) .capra-on-tech,
.capra-router:has(.capra-flow[data-route="partner"]) .capra-on-partner,
.capra-router:has(.capra-flow[data-route="support"]) .capra-on-support {
	display: block;
	animation: capra-flow-in .32s cubic-bezier(.2, .7, .3, 1);
}

.capra-router__links {
	display: flex;
	flex-direction: column;
}

.capra-router__block {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--12);
	padding-block: var(--wp--preset--spacing--20) var(--wp--preset--spacing--24);
	border-block-start: 1px solid var(--wp--custom--token--border-subtle);
}

/* Figma Mono/Caps M. */
.capra-router__label {
	font-size: var(--wp--preset--font-size--mono-caps-m);
	letter-spacing: var(--wp--custom--tracking--mono-caps);
	text-transform: uppercase;
	color: var(--wp--custom--token--text-muted);
}

.capra-router__block .is-style-capra-links {
	gap: var(--wp--preset--spacing--10);
	font-weight: var(--wp--custom--weight--semibold);
}

.capra-router__block .is-style-capra-links li:not(:has(a)) {
	color: var(--wp--custom--token--text-primary);
}


/* Desktop, from 1101 (red room, 22 Oct 2026). Nothing stretches to fill the
   screen: the content starts at the top and spare height stays under it.
   - Two columns from the top, no row across both (Jonas, 9 Nov 2026: "Previous
     step" sat over the photos at the far left, hard to see): the side column
     starts at once (the photos, or on Choose its label over the people); the
     flow's own row, "Previous step" level with its text and "Step x of 3" at
     its end, heads the flow, 12 above it. The route's name starts under the
     row, over its heading (marketing, 30 Oct 2026). The people's label is as
     tall as the row, so the tiles and the heading start level.
   - Choose: the four routes are rows (Figma Card · Intent, Row, as on
     phones), the one heading is theirs; the people's tiles end level with
     the last route, "Meet the whole team" with "Press or media?".
   - Steps 2 and 3: the route's photos are three quarters of the height
     under the header row. */
@media (min-width: 1101px) {
	.capra-contact .capra-flow__progress {
		margin-block-end: var(--wp--preset--spacing--12);
	}

	.capra-contact .capra-on-choose > .capra-contact__aside-title {
		display: flex;
		align-items: center;
		block-size: var(--wp--preset--spacing--32);
		margin-block: 0 var(--wp--preset--spacing--12);
	}

	/* routes look: Figma's 2 x 2 cards (Card · Intent, Stack), as on tablets (review, 23 Oct 2026) */
	/* end routes look */

	.capra-contact .capra-on:is(.capra-on-demo, .capra-on-tech, .capra-on-partner, .capra-on-support) {
		/* the sheet above and below the content: its bar, the body's top
		   padding, the sheet's bottom padding */
		--capra-sheet-chrome: calc(var(--wp--custom--layout--header-height) + 2 * var(--wp--preset--spacing--32));
		--capra-photo-height: clamp(360px, 0.75 * (100dvh - var(--wp-admin--admin-bar--height, 0px) - var(--capra-sheet-chrome)), 600px);
	}

	.capra-contact .capra-route__img img {
		block-size: var(--capra-photo-height);
		aspect-ratio: auto;
	}

	/* Solution's two stay staggered, both inside the same height. */
	.capra-contact .capra-on-demo .capra-route__img img {
		block-size: calc(var(--capra-photo-height) - var(--wp--preset--spacing--40));
	}

	.capra-contact .capra-panel {
		max-inline-size: none;
	}
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
	/* The pop-up stacks: intro, the flow, then the side column across. Above
	   1100 the two columns keep (Jonas, 22 Oct 2026: a laptop at 125% zoom is
	   about 1150 wide and put the photos under the form). */
	.capra-contact__body {
		grid-template-columns: minmax(0, 1fr);
		row-gap: var(--wp--preset--spacing--40);
	}

	/* Figma Tablet: the eyebrow, Choose's heading at Heading/XL, the flow,
	   then the side column (the tiles, a route's photos, the person). */
	.capra-contact__intro,
	.capra-contact__aside,
	.capra-contact[data-step="choose"] .capra-on-choose,
	.capra-contact:not([data-step]) .capra-on-choose {
		display: contents;
	}

	.capra-on > .capra-contact__aside-title {
		margin-block-end: calc(var(--wp--preset--spacing--12) - var(--wp--preset--spacing--40));
	}

	.capra-contact__aside > *,
	.capra-on-choose > .capra-contact__aside-title,
	.capra-on-choose > .capra-tiles,
	.capra-on-choose > .capra-tiles__more {
		order: 2;
	}

	.capra-tiles__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-auto-rows: 240px;
	}

	.capra-route__img img {
		max-inline-size: 440px;
	}

	.capra-on-demo {
		max-inline-size: 572px;
	}
}

@media (max-width: 1100px) {
	.capra-router,
	.capra-router:has(.capra-flow:not([data-step="choose"])) {
		grid-template-columns: minmax(0, 1fr);
		row-gap: var(--wp--preset--spacing--48);
	}

	/* Under the form the photos would only push it down. */
	.capra-router > .capra-router__photos {
		display: none;
	}

	.capra-router__links {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: var(--wp--preset--spacing--24);
	}
}

@media (max-width: 744px) {
	.capra-flow__title {
		font-size: var(--wp--preset--font-size--heading-m);
		letter-spacing: var(--wp--custom--tracking--heading-m);
		--capra-leading: var(--wp--custom--leading--heading-m);
	}

	.capra-flow__progress {
		margin-block-end: var(--wp--preset--spacing--20);
	}

	/* One line on a 360 phone: shorter steps, no wrapping inside the labels. */
	.capra-track {
		--capra-seg: 26px;
		--capra-gap: 5px;
	}

	.capra-flow__count {
		white-space: nowrap;
	}

	/* The row sizes its parts by its own width (the page and the pop-up alike); only on
	   phones, where the row is not lifted onto the eyebrow's line. */
	.capra-flow__progress {
		container-type: inline-size;
	}

	/* Phones: every intent card is a row (Figma Card · Intent, Row). */
	.capra-intents {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--wp--preset--spacing--10);
	}

	.capra-intent {
		grid-template-columns: 44px minmax(0, 1fr) 28px;
		grid-template-areas:
			"icon title ring"
			"icon text ring";
		column-gap: var(--wp--preset--spacing--14);
		align-items: center;
		--capra-intent-pad: var(--wp--preset--spacing--16);
		padding: var(--capra-intent-pad);
	}

	.capra-intent__icon {
		inline-size: 44px;
		block-size: 44px;
		margin: 0;
	}

	.capra-intent__icon img {
		inline-size: 25px;
		block-size: 25px;
	}

	.capra-intent:is(.capra-intent--phone, .capra-intent--pin)::before {
		inline-size: 44px;
		block-size: 44px;
		margin: 0;
	}

	.capra-intent:is(.capra-intent--phone, .capra-intent--pin) .capra-intent__title::after {
		inset-block-start: calc(50% - 10px);
		inset-inline-start: calc(var(--capra-intent-pad) + 12px);
		inline-size: 20px;
		block-size: 20px;
	}

	.capra-intent__title {
		font-size: var(--wp--preset--font-size--title-m);
		align-self: end;
	}

	.capra-intent__text {
		font-size: var(--wp--preset--font-size--body-s);
		align-self: start;
	}

	.capra-intent::after {
		align-self: center;
	}

	.capra-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	/* iOS zooms into a field whose text is under 16px (1rem). */
	.capra-field :is(input, select, textarea) {
		font-size: max(1rem, var(--wp--preset--font-size--body-m));
	}

	.capra-tiles__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: 220px;
	}

	.capra-tile {
		--capra-tile-pad: var(--wp--preset--spacing--12);
	}

	/* "Denmark & Nordics" on the narrowest tiles. */
	.capra-tile .capra-tile__region {
		font-size: var(--wp--preset--font-size--mono-caps-m);
		letter-spacing: 0;
	}

	/* The CTA rules: on phones a pair stacks full width. */
	.capra-flow__actions,
	.capra-flow__sent-actions.wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.capra-flow__actions .wp-block-button,
	.capra-flow__actions .wp-block-button__link,
	.capra-flow__sent-actions .wp-block-button,
	.capra-flow__sent-actions .wp-block-button__link {
		inline-size: 100%;
		justify-content: center;
		padding-inline: var(--capra-btn-pad);
	}

	.capra-flow__note {
		text-align: center;
	}

	/* The pop-up on phones: only the team on the first screen and the person
	   written to show beside the flow; no route photos. */
	.capra-contact :is(.capra-on-demo, .capra-on-tech, .capra-on-partner, .capra-on-support),
	.capra-contact[data-route="demo"]:not([data-step="choose"]) .capra-on-demo {
		display: none;
	}

	.capra-contact__body {
		padding-block-start: var(--wp--preset--spacing--16);
		row-gap: var(--wp--preset--spacing--32);
	}

	.capra-router {
		padding-block: var(--wp--preset--spacing--32) var(--wp--preset--spacing--64);
	}

	.capra-router__links {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* The narrowest phones (Jonas, 6 Nov 2026: the flow never scrolls sideways): the steps a
   little shorter at 330 and below (Previous is its arrow alone everywhere since 12 Nov 2026). */
@container (max-width: 330px) {
	.capra-track {
		--capra-seg: 22px;
		--capra-gap: 4px;
	}

	.capra-flow__count {
		gap: var(--wp--preset--spacing--8);
	}
}

@media (prefers-reduced-motion: reduce) {
	.capra-flow__screen,
	.capra-contact .capra-contact__sheet,
	.capra-contact::backdrop,
	.capra-on {
		animation: none !important;
	}

	.capra-track__mark,
	.capra-track__seg::before {
		transition: none;
	}
}

/* --- In the Site Editor: every screen, one under another, framed ---------- */
.capra-flow--editing .capra-flow__screen {
	display: flex;
	padding: var(--wp--preset--spacing--24);
	margin-block-end: var(--wp--preset--spacing--24);
	border: 1px dashed var(--capra-line);
	border-radius: var(--wp--custom--radius--lg);
}

.capra-fields-slot {
	padding: var(--wp--preset--spacing--16);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--custom--token--bg-subtle);
	color: var(--wp--custom--token--text-muted);
	font-size: var(--wp--preset--font-size--body-s);
}

.editor-styles-wrapper .capra-on {
	display: block;
	margin-block-end: var(--wp--preset--spacing--24);
}

.editor-styles-wrapper .capra-panels__list > .wp-block-post {
	display: block;
}
