/*
Theme Name: R2S Revamp
Description: Block theme for the local demo of a promotions-agency site revamp. Layout follows the client's design deck (November 2026).
Version: 0.3.0
Requires PHP: 8.2
Text Domain: r2s-revamp
*/

/*
 * Design tokens live in theme.json. WordPress turns them into CSS variables such as
 * --wp--preset--color--ink. Use those variables here, not raw colour values.
 *
 * Contents: colour setup · base · type · buttons · header · Products menu ·
 * footer · shared pieces (labels, cards, bands, questions, forms, the phone drawing).
 * Page-specific design is in assets/css/landing.css, product.css and case-study.css.
 */

/* ---------- Colour setup ---------- */

/* The site has one colour scheme: light. Its colours are the tokens in theme.json. */

:root {
	color-scheme: light;
	--r2s-shadow: 0 1px 2px rgb(26 26 26 / 0.05), 0 12px 32px -12px rgb(26 26 26 / 0.18);
}

/*
 * Tones: any element with data-tone="mint" (and so on) picks up that pastel and its
 * matching text colour. data-style picks one of the solid fills from the deck.
 */
[data-tone="mint"] { --r2s-bg: var(--wp--custom--tone--mint--bg); --r2s-ink: var(--wp--custom--tone--mint--ink); }
[data-tone="peach"] { --r2s-bg: var(--wp--custom--tone--peach--bg); --r2s-ink: var(--wp--custom--tone--peach--ink); }
[data-tone="butter"] { --r2s-bg: var(--wp--custom--tone--butter--bg); --r2s-ink: var(--wp--custom--tone--butter--ink); }
[data-tone="pink"] { --r2s-bg: var(--wp--custom--tone--pink--bg); --r2s-ink: var(--wp--custom--tone--pink--ink); }
[data-tone="lavender"] { --r2s-bg: var(--wp--custom--tone--lavender--bg); --r2s-ink: var(--wp--custom--tone--lavender--ink); }
[data-tone="sky"] { --r2s-bg: var(--wp--custom--tone--sky--bg); --r2s-ink: var(--wp--custom--tone--sky--ink); }
[data-style="highlight"] { --r2s-bg: var(--wp--preset--color--highlight); --r2s-ink: var(--wp--preset--color--ink); }
[data-style="accent"] { --r2s-bg: var(--wp--preset--color--accent); --r2s-ink: var(--wp--custom--on-accent); }
[data-style="deep"] { --r2s-bg: var(--wp--preset--color--deep); --r2s-ink: var(--wp--custom--on-deep); }
[data-style="surface"] { --r2s-bg: var(--wp--preset--color--surface); --r2s-ink: var(--wp--preset--color--ink); }

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 1rem;
}

html.r2s-no-scroll {
	overflow: hidden;
}

body {
	font-stretch: 100%;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a:where(:not(.wp-element-button)) {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:where(:not(.wp-element-button)):hover {
	text-decoration-thickness: 2px;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent-ink);
	outline-offset: 2px;
}

img {
	height: auto;
}

/* ---------- Type ---------- */

/*
 * Headings use the client's font, Pill Gothic 600mg (theme.json "heading" token).
 * If its files are missing they fall back to Archivo, set slightly wide for a poster-like voice.
 * Big numbers and card titles that act like headings use the same font.
 */
:where(h1, h2, h3, .r2s-display) {
	font-stretch: 112%;
	text-wrap: balance;
}

:where(.r2s-display, .r2s-facts strong, .r2s-stat__number, .r2s-featured-case__stats dd, .r2s-mega__card-title) {
	font-family: var(--wp--preset--font-family--heading);
}

p {
	text-wrap: pretty;
}

/*
 * Accent words: italic words in a heading switch to Fraunces, a soft italic serif.
 * In the editor, select the words and press Ctrl+I.
 */
:where(h1, h2, h3, .r2s-mega__card-title) em {
	font-family: var(--wp--preset--font-family--accent);
	font-style: italic;
	font-weight: 380;
	font-stretch: 100%;
	font-size: 1.06em;
	letter-spacing: -0.02em;
	font-variation-settings: "SOFT" 100;
}

/* Handwritten notes, such as "a little magic". */
.r2s-hand {
	font-family: var(--wp--preset--font-family--hand);
	font-size: 1.375rem;
	line-height: 1.1;
	letter-spacing: 0.01em;
}

.r2s-muted {
	color: var(--wp--preset--color--muted);
}

/* ---------- Buttons ---------- */

.wp-element-button,
.r2s-button--ghost {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 48px;
	cursor: pointer;
	text-decoration: none;
	transition:
		background-color var(--wp--custom--motion--fast),
		color var(--wp--custom--motion--fast),
		border-color var(--wp--custom--motion--fast),
		transform var(--wp--custom--motion--fast);
}

.wp-element-button:hover {
	background-color: color-mix(in srgb, var(--wp--preset--color--ink) 80%, var(--wp--preset--color--muted));
}

.wp-element-button:active {
	transform: scale(0.98);
}

/* Teal button, used on dark panels. */
.r2s-button--accent > .wp-element-button,
.wp-element-button.r2s-button--accent {
	background: var(--wp--preset--color--accent);
	color: var(--wp--custom--on-accent);
}

.r2s-button--accent > .wp-element-button:hover,
.wp-element-button.r2s-button--accent:hover {
	background: color-mix(in srgb, var(--wp--preset--color--accent) 82%, #fff);
}

/* Outline button. Padding drops by the border so both buttons are the same height. */
.wp-block-button.is-style-outline > .wp-element-button,
.wp-element-button.r2s-button--outline,
.r2s-button--ghost {
	border: 1.5px solid currentcolor;
	background: transparent;
	color: inherit;
	padding: calc(0.85rem - 1.5px) calc(1.4rem - 1.5px);
	border-radius: var(--wp--custom--radius--control);
	font-weight: 600;
}

.wp-block-button.is-style-outline > .wp-element-button:hover,
.wp-element-button.r2s-button--outline:hover,
.r2s-button--ghost:hover {
	background: color-mix(in srgb, currentcolor 10%, transparent);
}

/* Buttons with an arrow. The arrow is decoration, so screen readers skip it. */
.r2s-has-arrow .wp-element-button::after {
	content: "\2192" / "";
	display: inline-block;
	transition: transform var(--wp--custom--motion--fast);
}

.r2s-has-arrow .wp-element-button:hover::after {
	transform: translateX(3px);
}

/* Small icons inside footer buttons, drawn with a mask so they take the text colour. */
:is(.r2s-icon-mail, .r2s-icon-calendar, .r2s-icon-linkedin) .wp-element-button::before {
	content: "";
	width: 1.1em;
	height: 1.1em;
	background: currentcolor;
	-webkit-mask: var(--r2s-mask) center / contain no-repeat;
	mask: var(--r2s-mask) center / contain no-repeat;
}

.r2s-icon-mail { --r2s-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3.5 7l8.5 6 8.5-6'/%3E%3C/svg%3E"); }
.r2s-icon-calendar { --r2s-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.r2s-icon-linkedin { --r2s-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='2.5'/%3E%3Cpath d='M8 10.5V16M8 7.8v.01M11.5 16v-5.5M11.5 13a2.2 2.2 0 0 1 4.4 0v3'/%3E%3C/svg%3E"); }

/* An underlined text link at the end of a section heading. */
.r2s-underline-link {
	margin: 0;
}

.r2s-underline-link a,
a.r2s-underline-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: inherit;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

/* ---------- Wordmark ---------- */

.r2s-wordmark {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 44px;
	margin: 0;
	color: inherit;
	font-size: 1.125rem;
	font-stretch: 118%;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.r2s-wordmark a {
	color: inherit;
	text-decoration: none;
}

/* The mark: two linked rounded shapes in signal yellow. Original drawing, not a client logo. */
.r2s-wordmark__mark,
.r2s-wordmark--footer a::before {
	content: "";
	flex: none;
	width: 2rem;
	height: 1.35rem;
	border-radius: 0.45rem 0.9rem 0.45rem 0.9rem;
	background:
		radial-gradient(circle at 30% 50%, transparent 0.24rem, #f3b23a 0.26rem) left / 55% 100% no-repeat,
		radial-gradient(circle at 70% 50%, transparent 0.24rem, #f3b23a 0.26rem) right / 55% 100% no-repeat;
}

.r2s-wordmark--footer {
	justify-content: center;
	font-size: 1.5rem;
}

.r2s-wordmark--footer a {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 44px;
}

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

/* Elements the menu script shows or hides must stay hidden, whatever their display style. */
.r2s-nav [hidden] {
	display: none !important;
}

.r2s-header {
	position: relative;
	z-index: 20;
	background: var(--wp--preset--color--surface);
	border-block-end: 1px solid var(--wp--preset--color--line);
}

.r2s-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30);
	min-height: 4.5rem;
}

.r2s-nav__panel {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--40);
}

.r2s-nav__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.r2s-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	min-height: 44px;
	padding: 0.5rem 0.85rem;
	border: 0;
	border-radius: var(--wp--custom--radius--control);
	background: transparent;
	color: inherit;
	cursor: pointer;
	font: inherit;
	font-weight: 500;
	text-decoration: none;
}

.r2s-nav__link:hover {
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

.r2s-nav__link[aria-current="page"],
.r2s-nav__trigger[data-current] {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.35em;
}

/* "Products" turns into a dark pill while its menu is open, as in the deck. */
.r2s-nav__trigger[aria-expanded="true"] {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--background);
	text-decoration: none;
}

.r2s-nav__caret {
	width: 1rem;
	height: 1rem;
	transition: transform var(--wp--custom--motion--fast);
}

.r2s-nav__trigger[aria-expanded="true"] .r2s-nav__caret {
	transform: rotate(180deg);
}

.r2s-nav__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--control);
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.r2s-nav__toggle-close,
.r2s-nav.is-panel-open .r2s-nav__toggle-open {
	display: none;
}

.r2s-nav.is-panel-open .r2s-nav__toggle-close {
	display: block;
}

/* ---------- Products menu ---------- */

.r2s-mega {
	position: absolute;
	inset-inline: clamp(1rem, 4vw, 2.5rem);
	top: calc(100% + 0.75rem);
	max-width: 1280px;
	margin-inline: auto;
	padding: clamp(1.25rem, 2.5vw, 2rem);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--panel);
	box-shadow: var(--r2s-shadow);
	color: var(--wp--preset--color--ink);
}

.r2s-mega[hidden] {
	display: none;
}

.r2s-mega__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(15rem, 1.1fr);
	gap: var(--wp--preset--spacing--30);
}

.r2s-mega__heading {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.5rem;
	color: var(--wp--preset--color--muted);
	font-weight: 600;
}

.r2s-mega__heading::before {
	content: "";
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 50%;
	background: var(--r2s-dot, var(--wp--preset--color--ink));
}

.r2s-mega__heading--sub {
	margin-block-start: var(--wp--preset--spacing--40);
}

[data-dot="teal"] { --r2s-dot: #13c4b0; }
[data-dot="yellow"] { --r2s-dot: #e3b93a; }
[data-dot="purple"] { --r2s-dot: #8d7be3; }
[data-dot="blue"] { --r2s-dot: #5b8fdb; }
[data-dot="ink"] { --r2s-dot: var(--wp--preset--color--ink); }

.r2s-mega__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.r2s-mega__list a {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	min-height: 40px;
	color: inherit;
	text-decoration: none;
}

.r2s-mega__list a:hover {
	text-decoration: underline;
}

.r2s-mega__list .r2s-badge {
	padding: 0 0.5rem;
	line-height: 1.5;
}

.r2s-mega__list a[aria-current="page"] {
	font-weight: 700;
}

.r2s-mega__more {
	color: var(--wp--preset--color--accent-ink) !important;
	font-weight: 600;
}

.r2s-mega__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.r2s-mega__aside {
	display: grid;
	align-content: start;
	gap: var(--wp--preset--spacing--30);
}

.r2s-mega__card {
	padding: var(--wp--preset--spacing--40);
	border-radius: var(--wp--custom--radius--card);
	background: var(--r2s-bg);
	color: var(--r2s-ink);
}

.r2s-mega__card p {
	margin: 0 0 0.5rem;
}

.r2s-mega__card--dark {
	background: var(--wp--preset--color--deep);
	color: var(--wp--custom--on-deep);
}

.r2s-mega__card--dark p:not(.r2s-mega__card-title) {
	color: color-mix(in srgb, var(--wp--custom--on-deep) 78%, transparent);
}

.r2s-mega__card-title {
	font-size: var(--wp--preset--font-size--medium);
	font-stretch: 110%;
	font-weight: 700;
	line-height: 1.2;
}

.r2s-mega__card--dark em {
	color: var(--wp--preset--color--accent);
}

.r2s-mega__card-kicker {
	font-weight: 600;
}

.r2s-mega__card-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: inherit;
	font-weight: 700;
	text-decoration: none;
}

.r2s-mega__card--dark .r2s-mega__card-link {
	color: var(--wp--preset--color--accent);
}

.r2s-mega__card-link:hover {
	text-decoration: underline;
}

/* Desktop: links sit at the right beside the button. */
@media (min-width: 960px) {
	.r2s-nav__item--mega {
		position: static;
	}
}

/* Tablet: the menu has fewer columns. */
@media (min-width: 960px) and (max-width: 1199px) {
	.r2s-mega__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Phone and small tablet: a menu button opens a full-height panel. */
@media (max-width: 959px) {
	.r2s-nav.is-ready .r2s-nav__toggle {
		display: inline-flex;
	}

	.r2s-nav.is-ready .r2s-nav__panel {
		display: none;
	}

	.r2s-nav.is-ready.is-panel-open .r2s-nav__panel {
		position: fixed;
		inset: 4.5rem 0 0;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: var(--wp--preset--spacing--40);
		padding: var(--wp--preset--spacing--40) clamp(1rem, 4vw, 2.5rem) var(--wp--preset--spacing--60);
		overflow-y: auto;
		background: var(--wp--preset--color--background);
	}

	/* Without JavaScript the links simply wrap under the logo. */
	.r2s-nav:not(.is-ready) {
		flex-wrap: wrap;
		padding-block: 0.5rem;
	}

	.r2s-nav:not(.is-ready) .r2s-nav__panel {
		flex-wrap: wrap;
	}

	.r2s-nav.is-panel-open .r2s-nav__links {
		flex-direction: column;
		align-items: stretch;
	}

	.r2s-nav.is-panel-open .r2s-nav__link {
		width: 100%;
		justify-content: space-between;
		padding-inline: 0;
		font-size: var(--wp--preset--font-size--large);
		font-stretch: 110%;
		font-weight: 700;
	}

	.r2s-nav.is-panel-open .r2s-nav__trigger[aria-expanded="true"] {
		padding-inline: 0.85rem;
	}

	.r2s-mega {
		position: static;
		margin-block: 0.5rem 1rem;
		padding: var(--wp--preset--spacing--30);
		box-shadow: none;
	}

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

	.r2s-nav__cta {
		align-self: flex-start;
	}
}

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

.r2s-footer {
	margin-block-start: 0;
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--deep);
	color: #f2f0eb;
}

.r2s-footer a:where(:not(.wp-element-button)) {
	color: var(--wp--custom--deep-text);
	text-decoration: none;
}

.r2s-footer a:where(:not(.wp-element-button)):hover {
	color: var(--wp--custom--on-deep);
	text-decoration: underline;
}

.r2s-footer :focus-visible {
	outline-color: var(--wp--custom--on-deep);
}

.r2s-footer__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	padding-block-end: var(--wp--preset--spacing--50);
	border-block-end: 1px solid var(--wp--custom--deep-line);
}

.r2s-footer__grid > *,
.r2s-footer__col > * {
	margin-block: 0;
}

.r2s-footer h2 {
	margin-block: 0 0.5rem;
	color: var(--wp--custom--on-deep);
	font-size: var(--wp--preset--font-size--base);
	font-stretch: 100%;
	font-weight: 650;
	letter-spacing: 0;
}

.r2s-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Links wrap like text, so a "Free" badge stays on the same line as its last word. */
.r2s-footer li a {
	display: inline-block;
	padding-block: 0.45rem;
	line-height: 1.35;
}

.r2s-footer__strong a {
	color: var(--wp--custom--on-deep) !important;
	font-weight: 650;
}

.r2s-free {
	display: inline-block;
	margin-inline-start: 0.3rem;
	white-space: nowrap;
	padding: 0.05rem 0.45rem;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--accent);
	color: var(--wp--custom--on-accent);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.5;
}

/* "Contact us" over "Book a quick call": same width, with a gap between them. */
.r2s-footer__buttons {
	display: grid;
	gap: 0.6rem;
	max-width: 15rem;
	margin-block-start: var(--wp--preset--spacing--30) !important;
}

.r2s-footer__buttons .wp-block-button {
	display: block;
	width: 100%;
	margin: 0;
}

.r2s-footer__buttons .wp-element-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding-inline: 1rem;
}

.r2s-footer__base {
	display: grid;
	justify-items: center;
	gap: var(--wp--preset--spacing--20);
	padding-block-start: var(--wp--preset--spacing--50);
	text-align: center;
}

.r2s-footer__base > * {
	margin: 0 !important;
}

.r2s-footer__legal {
	color: #bdb9b1;
}

.r2s-footer__links {
	gap: 0.25rem 1.5rem;
}

.r2s-footer__links p {
	margin: 0;
}

.r2s-footer__links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.r2s-footer .is-style-outline > .wp-element-button {
	border-color: var(--wp--preset--color--muted);
	color: var(--wp--custom--on-deep);
}

@media (min-width: 700px) {
	.r2s-footer__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Six columns. The last one (Company) is a little wider, so its two buttons fit on one line. */
@media (min-width: 1100px) {
	.r2s-footer__grid {
		grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(12.5rem, 1.25fr);
	}

	.r2s-footer__buttons .wp-element-button {
		white-space: nowrap;
	}
}

/* ---------- Page bands: full-width stripes of cream or white ---------- */

.r2s-band {
	margin-block: 0 !important;
	padding-block: var(--wp--preset--spacing--70);
}

.r2s-band--cream {
	background: var(--wp--preset--color--background);
}

.r2s-band--surface {
	background: var(--wp--preset--color--surface);
	border-block: 1px solid var(--wp--preset--color--line);
}

/* Beige, between cream and white bands (the gamification and events bands on the home page). */
.r2s-band--sand {
	background: var(--wp--preset--color--line);
}

.r2s-band--top {
	padding-block-start: var(--wp--preset--spacing--60);
}

/* Bands printed by the plugin hold their content in an inner box at the wide width. */
.r2s-band__inner {
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding-inline: var(--wp--style--root--padding-left, 1rem) var(--wp--style--root--padding-right, 1rem);
}

.r2s-band--deep {
	background: var(--wp--preset--color--deep);
	color: var(--wp--custom--on-deep);
}

/* Main areas sit flush between header and footer: each band brings its own spacing. */
main.wp-block-group {
	margin-block: 0;
}

main.wp-block-group > * + * {
	margin-block-start: 0;
}

/* Sections that are not bands still need space between them. */
.r2s-section {
	padding-block: var(--wp--preset--spacing--70);
}

/* Inside a band, the band's own padding is enough: no double gap at its top or bottom. */
.r2s-band > .r2s-section:first-child {
	padding-block-start: 0;
}

.r2s-band > .r2s-section:last-child {
	padding-block-end: 0;
}

/* ---------- Section headings ---------- */

.r2s-section-head {
	display: grid;
	gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--50);
	margin-block-end: var(--wp--preset--spacing--50);
}

.r2s-section-head > * {
	margin: 0;
}

.r2s-section-head h2 {
	max-width: 22ch;
}

.r2s-section-head p {
	max-width: 38rem;
	color: var(--wp--preset--color--muted);
}

.r2s-section-head--center {
	justify-items: center;
	text-align: center;
}

.r2s-section-head--center h2 {
	max-width: none;
}

.r2s-section-sub {
	margin-block: calc(var(--wp--preset--spacing--40) * -1) var(--wp--preset--spacing--50);
	color: var(--wp--preset--color--muted);
}

@media (min-width: 800px) {
	.r2s-section-head:not(.r2s-section-head--center) {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
		align-items: end;
	}

	.r2s-section-head:not(.r2s-section-head--center) > p:not(.r2s-underline-link) {
		justify-self: end;
	}

	.r2s-section-head--link > :last-child {
		justify-self: end;
	}
}

/* ---------- Labels, pills and chips ---------- */

.r2s-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	width: fit-content;
	margin: 0;
	padding: 0.2rem 0.65rem;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--r2s-bg, var(--wp--preset--color--line));
	color: var(--r2s-ink, var(--wp--preset--color--ink));
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
}

.r2s-badge .r2s-icon {
	width: 1.05rem;
	height: 1.05rem;
}

.r2s-badge--lg {
	padding: 0.35rem 0.85rem;
}

.r2s-badge--outline {
	background: transparent;
	border: 1px solid currentcolor;
	color: inherit;
}

/* Badge with a little shop icon, for the home page label typed in the editor. */
.r2s-badge--store {
	--r2s-bg: var(--wp--custom--tone--mint--bg);
	--r2s-ink: var(--wp--custom--tone--mint--ink);
}

.r2s-badge--store::before {
	content: "";
	width: 1.05rem;
	height: 1.05rem;
	background: currentcolor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9.5 5.5 4h13L20 9.5M4 9.5V20h16V9.5M4 9.5h16M9.5 20v-5.5h5V20'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9.5 5.5 4h13L20 9.5M4 9.5V20h16V9.5M4 9.5h16M9.5 20v-5.5h5V20'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Rounded outline pill: sibling navigation, industries and filters. */
.r2s-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 44px;
	padding: 0.4rem 1rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	font: inherit;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition:
		background-color var(--wp--custom--motion--fast),
		border-color var(--wp--custom--motion--fast);
}

.r2s-pill:hover {
	border-color: var(--wp--preset--color--ink);
}

.r2s-pill[aria-current="page"],
.r2s-pill[aria-pressed="true"] {
	border-color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--background);
}

/* The current page's pill has an orange dot, as in the deck. */
.r2s-pill[aria-current="page"]::before {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: #ff9a5c;
}

.r2s-pill[data-dot]::before {
	content: "";
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: var(--wp--custom--tone--peach--ink);
}

.r2s-pill[data-dot="mint"]::before { background: #13c4b0; }
.r2s-pill[data-dot="peach"]::before { background: #ff9a5c; }
.r2s-pill[data-dot="butter"]::before { background: #e3b93a; }
.r2s-pill[data-dot="lavender"]::before { background: #8d7be3; }
.r2s-pill[data-dot="sky"]::before { background: #5b8fdb; }
.r2s-pill[data-dot="pink"]::before { background: #e86a8a; }

/* Pastel chip that links to a mechanic. */
.r2s-chip-link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	min-height: 40px;
	padding: 0.35rem 0.9rem;
	border: 1px solid transparent;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--r2s-bg);
	color: var(--r2s-ink);
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

a.r2s-chip-link:hover {
	border-color: currentcolor;
}

.r2s-chip-link.is-current {
	border-color: var(--wp--custom--tone--peach--ink);
	background: transparent;
}

.r2s-band--deep .r2s-chip-link.is-current {
	border-color: #ffb48a;
	color: #ffb48a;
}

/* A small dark chip with a tick, such as "Receipt validated". */
.r2s-status-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	padding: 0.35rem 0.8rem;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--deep);
	color: var(--wp--preset--color--surface);
	font-size: 1rem;
	font-weight: 600;
	box-shadow: var(--r2s-shadow);
}

.r2s-status-chip .r2s-icon,
.r2s-status-chip::before {
	width: 1rem;
	height: 1rem;
	color: var(--wp--preset--color--accent);
}

.r2s-icon {
	flex: none;
	width: 1.5rem;
	height: 1.5rem;
}

/* Square icon tile on a pastel. */
.r2s-icon-box {
	display: inline-grid;
	flex: none;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.6rem;
	background: var(--r2s-bg);
	color: var(--r2s-ink);
}

.r2s-icon-box .r2s-icon {
	width: 1.25rem;
	height: 1.25rem;
}

/* ---------- Tick lists ---------- */

.r2s-ticks {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.r2s-ticks li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
}

.r2s-ticks .r2s-icon {
	width: 1.2rem;
	height: 1.2rem;
	margin-block-start: 0.2rem;
	color: var(--wp--preset--color--accent-ink);
}

/* The editor list on the home page has no icons in its HTML, so CSS draws the ticks. */
.r2s-ticks--css li::before {
	content: "";
	flex: none;
	width: 1.2rem;
	height: 1.2rem;
	margin-block-start: 0.2rem;
	background: var(--wp--preset--color--accent-ink);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (min-width: 480px) {
	.r2s-ticks--two {
		grid-template-columns: repeat(2, minmax(0, max-content));
		column-gap: var(--wp--preset--spacing--50);
	}
}

/* ---------- Hero: copy on the left, picture on the right ---------- */

.r2s-hero {
	display: grid;
	gap: var(--wp--preset--spacing--50);
	align-items: center;
	padding-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60);
}

.r2s-hero > * {
	min-width: 0;
}

.r2s-hero__copy {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	justify-items: start;
}

.r2s-hero__copy > * {
	margin: 0;
}

.r2s-hero__title {
	max-width: 13ch;
	font-size: var(--wp--preset--font-size--xx-large);
	letter-spacing: -0.035em;
}

.r2s-hero__lede {
	max-width: 34rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.5;
}

@media (min-width: 900px) {
	.r2s-hero {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: var(--wp--preset--spacing--60);
	}
}

/* The coloured picture panel. */
.r2s-hero-visual {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 22rem;
	padding: var(--wp--preset--spacing--50);
	overflow: hidden;
	border-radius: var(--wp--custom--radius--panel);
	background: var(--r2s-bg);
	color: var(--r2s-ink);
}

/* A fixed shape only where there is room: on a phone, min-height plus a ratio would force the panel wider than the screen. */
@media (min-width: 600px) {
	.r2s-hero-visual {
		aspect-ratio: 1.05;
	}
}

/*
 * A photo keeps its own shape, so nothing in it is cut off at the edges (a fixed square
 * used to crop wide photos such as the Text and win one). Very tall photos stop at 34rem.
 */
.r2s-hero-visual.has-image {
	display: block;
	min-height: 0;
	padding: 0;
	aspect-ratio: auto;
}

.r2s-hero-visual__image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 34rem;
	object-fit: cover;
}

.r2s-hero-visual__note {
	position: absolute;
	inset: 1.25rem 1.5rem auto auto;
	margin: 0;
	color: var(--wp--preset--color--ink);
	transform: rotate(-6deg);
}

.r2s-hero-visual__card {
	display: grid;
	justify-items: center;
	gap: 0.75rem;
	width: min(72%, 18rem);
	padding: var(--wp--preset--spacing--40);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--surface);
	box-shadow: var(--r2s-shadow);
	transform: rotate(-3deg);
}

.r2s-hero-visual__card .r2s-preview {
	width: 100%;
	height: auto;
	max-width: 12rem;
	color: var(--r2s-ink);
}

.r2s-hero-visual__name {
	margin: 0;
	color: var(--wp--preset--color--ink);
	font-stretch: 110%;
	font-weight: 700;
}

.r2s-hero-visual .r2s-status-chip {
	position: absolute;
	inset: auto 1.25rem 1.25rem auto;
}

/* ---------- The drawn phone, used in several pictures ---------- */

.r2s-phone {
	position: relative;
	width: min(58%, 15.5rem);
	padding: 0.6rem;
	border-radius: var(--wp--custom--radius--phone);
	background: var(--wp--preset--color--deep);
	box-shadow: var(--r2s-shadow);
	color: var(--wp--preset--color--deep);
}

.r2s-phone__screen {
	display: grid;
	gap: 0.3rem;
	padding: 1.6rem 0.9rem 1rem;
	border-radius: calc(var(--wp--custom--radius--phone) - 0.5rem);
	background: var(--wp--preset--color--surface);
	/*
	 * Small on purpose: a drawing of a phone screen. The whole scene is one picture with a
	 * text label (role="img"), so this text is not read and the 16px rule does not apply.
	 */
	font-size: 0.8125rem;
	line-height: 1.3;
}

.r2s-phone__screen::before {
	content: "";
	position: absolute;
	inset: 1.1rem auto auto 50%;
	width: 3rem;
	height: 0.3rem;
	border-radius: 1rem;
	background: #ddd;
	transform: translateX(-50%);
}

.r2s-phone__title {
	margin: 0 0 0.4rem;
	font-size: 1.05rem;
	font-stretch: 110%;
	font-weight: 750;
	line-height: 1.15;
}

.r2s-phone__banner {
	display: grid;
	margin-block-end: 0.4rem;
	padding: 0.6rem 0.7rem;
	border-radius: 0.6rem;
	background: var(--wp--custom--tone--peach--bg);
}

.r2s-phone__banner span {
	color: var(--wp--custom--tone--peach--ink);
}

.r2s-phone__banner strong {
	font-size: 1.05rem;
	font-stretch: 110%;
}

.r2s-phone__label {
	color: #555;
}

.r2s-phone__input {
	display: block;
	min-height: 1.9rem;
	margin-block-end: 0.25rem;
	padding: 0.3rem 0.5rem;
	border: 1px solid #ddd;
	border-radius: 0.45rem;
}

.r2s-phone__input.is-filled {
	border: 1.5px solid #13c4b0;
}

.r2s-phone__value {
	font-family: ui-monospace, Consolas, monospace;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.r2s-phone__upload {
	padding: 0.5rem;
	border: 1.5px dashed #13c4b0;
	border-radius: 0.45rem;
	color: var(--wp--preset--color--accent-ink);
	font-weight: 600;
	text-align: center;
}

.r2s-phone__optin {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin-block: 0.3rem;
	color: #555;
}

.r2s-phone__optin span {
	flex: none;
	width: 0.85rem;
	height: 0.85rem;
	border: 1px solid #aaa;
	border-radius: 0.2rem;
}

.r2s-phone__optin span.is-on {
	border-color: #13c4b0;
	background: #13c4b0;
}

.r2s-phone__button {
	margin-block-start: 0.4rem;
	padding: 0.6rem;
	border-radius: 0.55rem;
	background: var(--wp--preset--color--deep);
	color: var(--wp--custom--on-deep);
	font-weight: 600;
	text-align: center;
}

/* Scene: a tilted card beside the phone. */
.r2s-scene {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 0;
}

.r2s-scene__card {
	z-index: 1;
	display: grid;
	gap: 0.5rem;
	margin-inline-end: -1.5rem;
	padding: 0.8rem;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--surface);
	box-shadow: var(--r2s-shadow);
	color: var(--wp--preset--color--deep);
	transform: rotate(-4deg);
}

.r2s-scene__card-art {
	padding: 0.5rem;
	border-radius: 0.7rem;
	background: #e9f6ee;
}

.r2s-scene__card-title {
	margin: 0;
	font-stretch: 110%;
	font-weight: 700;
	line-height: 1.2;
}

.r2s-scene__card-cta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0.45rem;
	border-radius: 0.55rem;
	background: var(--wp--preset--color--deep);
	color: var(--wp--custom--on-deep);
	font-size: 0.875rem;
	font-weight: 600;
}

.r2s-scene__qr {
	width: 1.8rem;
	height: 1.8rem;
	border-radius: 0.2rem;
}

.r2s-scene .r2s-phone {
	width: 100%;
	max-width: 15rem;
	transform: rotate(3deg);
}

/* ---------- Preview drawings (plugin: includes/preview-visuals.php) ---------- */

.r2s-dim {
	fill: currentcolor;
	fill-opacity: 0.18;
}

.r2s-disc {
	fill: var(--wp--preset--color--accent);
}

.r2s-hub {
	fill: var(--r2s-tile-bg, var(--wp--preset--color--surface));
	stroke: currentcolor;
	stroke-width: 6;
}

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

.r2s-mcards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
	gap: var(--wp--preset--spacing--30);
	margin: 0;
	padding: 0;
	list-style: none;
}

.r2s-mcards--compact {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
}

.r2s-mcard {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: var(--wp--preset--spacing--40);
	border: 1px solid color-mix(in srgb, var(--r2s-ink) 12%, transparent);
	border-radius: var(--wp--custom--radius--card);
	background: var(--r2s-bg);
	color: var(--r2s-ink);
	transition: transform var(--wp--custom--motion--fast), box-shadow var(--wp--custom--motion--fast);
}

.r2s-mcard:hover {
	transform: translateY(-3px);
	box-shadow: var(--r2s-shadow);
}

.r2s-mcard__icon {
	width: 1.6rem;
	height: 1.6rem;
}

.r2s-mcard__kicker {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
}

.r2s-mcard__title {
	margin: 0;
	color: inherit;
	font-size: var(--wp--preset--font-size--medium);
}

.r2s-mcard__title a {
	color: inherit;
	text-decoration: none;
}

/* The title link covers the whole card. */
.r2s-mcard__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.r2s-mcard__title a:focus-visible {
	outline: none;
}

.r2s-mcard__title a:focus-visible::after {
	outline: 3px solid var(--wp--preset--color--ink);
	outline-offset: 3px;
}

.r2s-mcard__text {
	margin: 0;
	line-height: 1.5;
}

.r2s-mcard__link {
	margin: auto 0 0;
	padding-block-start: 0.5rem;
	color: var(--wp--preset--color--ink);
	font-weight: 650;
}

.r2s-mcards--compact .r2s-mcard {
	min-height: 8.5rem;
}

.r2s-mcards--compact .r2s-mcard__link,
.r2s-mcards--used .r2s-mcard__link {
	color: inherit;
}

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

.r2s-quote-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--40);
	margin: 0;
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--ink) 10%, transparent);
	border-radius: var(--wp--custom--radius--card);
	background: var(--r2s-bg);
	color: var(--r2s-ink);
}

.r2s-quote-card blockquote {
	margin: 0;
	padding: 0;
	border: 0;
}

.r2s-quote-card blockquote p {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
	font-stretch: 105%;
	line-height: 1.25;
	letter-spacing: -0.015em;
}

.r2s-quote-card blockquote em {
	font-family: var(--wp--preset--font-family--accent);
	font-variation-settings: "SOFT" 100;
}

.r2s-quote-card blockquote .r2s-quote-card__context {
	margin-block-start: 0.75rem;
	font-size: var(--wp--preset--font-size--base);
	font-stretch: 100%;
	line-height: 1.5;
}

.r2s-quote-card figcaption {
	display: grid;
}

.r2s-quote-card__mark {
	font-family: var(--wp--preset--font-family--accent);
	font-size: 4rem;
	line-height: 0.6;
}

/* ---------- Questions and answers ---------- */

.r2s-faq h2 {
	margin-block: 0 var(--wp--preset--spacing--50);
	text-align: center;
}

.r2s-faq__list {
	display: grid;
	gap: 0.6rem;
	max-width: 46rem;
	margin-inline: auto;
}

.r2s-faq__item {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--surface);
	margin: 0 !important;
}

.r2s-faq__item summary {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 3.5rem;
	padding: 0.75rem 1.25rem;
	cursor: pointer;
	font-weight: 650;
	list-style: none;
}

.r2s-faq__item summary::-webkit-details-marker {
	display: none;
}

.r2s-faq__item summary::before {
	content: "\25B6" / "";
	flex: none;
	font-size: 0.7em;
	transition: transform var(--wp--custom--motion--fast);
}

.r2s-faq__item[open] summary::before {
	transform: rotate(90deg);
}

.r2s-faq__item > :not(summary) {
	margin: 0;
	padding: 0 1.25rem 1.1rem 2.55rem;
	color: var(--wp--preset--color--muted);
}

/* ---------- Teal call-to-action panel ---------- */

.r2s-cta-band {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	align-items: center;
	margin-block: var(--wp--preset--spacing--60) !important;
	padding: var(--wp--preset--spacing--50) clamp(1.25rem, 3vw, 2rem);
	border-radius: var(--wp--custom--radius--panel);
	background: var(--wp--preset--color--accent);
	color: var(--wp--custom--on-accent);
}

.r2s-cta-band > *,
.r2s-cta-band > div > * {
	margin: 0;
}

.r2s-cta-band h2 {
	color: inherit;
	font-size: var(--wp--preset--font-size--x-large);
}

.r2s-cta-band p {
	max-width: 34rem;
	margin-block-start: 0.75rem;
}

.r2s-cta-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

/* Dark buttons stay dark on the teal panel. */
.r2s-cta-band .wp-element-button:not(.r2s-button--outline) {
	background: var(--wp--preset--color--deep);
	color: var(--wp--custom--on-deep);
}

.r2s-cta-band .is-style-outline > .wp-element-button,
.r2s-cta-band .r2s-button--outline {
	background: transparent;
	color: var(--wp--custom--on-accent);
}

.r2s-cta-band :focus-visible {
	outline-color: var(--wp--custom--on-accent);
}

@media (min-width: 800px) {
	.r2s-cta-band {
		grid-template-columns: minmax(0, 1fr) auto;
	}
}

/* ---------- Breadcrumbs and sibling pills ---------- */

.r2s-subnav {
	display: grid;
	gap: 0.5rem;
	padding-block: var(--wp--preset--spacing--30) 0;
}

.r2s-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--wp--preset--color--muted);
}

.r2s-breadcrumb li + li::before {
	content: "/" / "";
	margin-inline-end: 0.5rem;
}

.r2s-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.r2s-breadcrumb a:hover {
	text-decoration: underline;
}

.r2s-breadcrumb [aria-current] {
	color: var(--wp--preset--color--ink);
	font-weight: 500;
}

/* The pills scroll sideways on a phone instead of wrapping into many rows. */
.r2s-siblings {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	overflow-x: auto;
	scrollbar-width: thin;
	padding-block: 0.25rem;
}

.r2s-siblings__label {
	flex: none;
	color: var(--wp--preset--color--muted);
}

.r2s-siblings ul {
	display: flex;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.r2s-siblings__all {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding-inline: 0.5rem;
	color: var(--wp--preset--color--accent-ink);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

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

.r2s-form {
	display: grid;
	gap: var(--wp--preset--spacing--30);
}

.r2s-form[hidden] {
	display: none;
}

.r2s-field {
	display: grid;
	gap: 0.35rem;
	margin: 0;
}

.r2s-field label {
	font-weight: 500;
}

.r2s-field :is(input, textarea, select) {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 0.7rem 0.9rem;
	/* Field edges need 3:1 contrast to be seen, so they are darker than the "line" colour. */
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--ink) 45%, var(--wp--preset--color--surface));
	border-radius: var(--wp--custom--radius--control);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	font: inherit;
}

.r2s-field :is(input, textarea)::placeholder {
	color: color-mix(in srgb, var(--wp--preset--color--muted) 85%, transparent);
}

.r2s-field textarea {
	resize: vertical;
}

.r2s-form__row {
	display: grid;
	gap: var(--wp--preset--spacing--30);
}

@media (min-width: 640px) {
	.r2s-form__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.r2s-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
}

.r2s-form__actions p {
	margin: 0;
}

/* The message under the button takes no space until there is something to say. */
.r2s-form__status:empty {
	display: none;
}

.r2s-form__status {
	margin: 0;
	padding: 0.75rem 1rem;
	border-radius: var(--wp--custom--radius--control);
	background: var(--wp--custom--tone--mint--bg);
	color: var(--wp--custom--tone--mint--ink);
	font-weight: 500;
}

.r2s-form__status.is-error {
	background: var(--wp--custom--tone--pink--bg);
	color: var(--wp--custom--tone--pink--ink);
}

.r2s-field__hint {
	color: var(--wp--preset--color--muted);
}

/* A problem with one field, shown under it. */
.r2s-field__error {
	color: var(--r2s-error, var(--wp--custom--tone--pink--ink));
	font-weight: 600;
}

.r2s-field__error:empty {
	display: none;
}

.r2s-field [aria-invalid="true"] {
	border-color: var(--wp--custom--tone--pink--ink);
	box-shadow: 0 0 0 1px var(--wp--custom--tone--pink--ink);
}

/*
 * Tick boxes sit inside .r2s-field too, but they are not text boxes:
 * undo the text-box width, height, padding and white fill, or the box
 * stretches into a tall empty rectangle.
 */
.r2s-form .r2s-field input:is([type="checkbox"], [type="radio"]) {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

/* A tick box with a problem gets a ring around it instead of a red edge. */
.r2s-form .r2s-field input:is([type="checkbox"], [type="radio"])[aria-invalid="true"] {
	box-shadow: none;
	outline: 2px solid var(--r2s-error, var(--wp--custom--tone--pink--ink));
	outline-offset: 2px;
}

/* The anti-robot field: kept off screen, never shown to people. */
.r2s-honeypot {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

button[aria-busy="true"] {
	cursor: progress;
	opacity: 0.7;
}

/* A tick box inside a bordered tile. */
.r2s-check {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 3.25rem;
	padding: 0.6rem 0.9rem;
	border: 1px solid var(--r2s-check-line, var(--wp--preset--color--line));
	border-radius: var(--wp--custom--radius--control);
	background: var(--r2s-check-bg, var(--wp--preset--color--surface));
	cursor: pointer;
	line-height: 1.3;
}

.r2s-check input {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
	accent-color: var(--wp--preset--color--accent);
}

.r2s-check:has(input:checked) {
	border-color: var(--wp--preset--color--accent);
}

/* ---------- Placeholders for photos the client has not supplied yet ---------- */

.r2s-placeholder {
	padding: 1rem;
	color: var(--r2s-ink, var(--wp--preset--color--muted));
	font-size: 1rem;
	text-align: center;
}

/* ---------- Inner pages ---------- */

.r2s-main {
	padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--70);
}

.r2s-main > * + * {
	margin-block-start: var(--wp--preset--spacing--40) !important;
}

.r2s-lede {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--medium);
}

.r2s-post-list {
	list-style: none;
	padding: 0;
}

.r2s-post-list .wp-block-post-title a {
	text-decoration: none;
}

.r2s-post-list .wp-block-post-date {
	color: var(--wp--preset--color--muted);
}

/* ---------- About and Contact pages (template: page-landing.html) ---------- */

.r2s-page .wp-block-post-content {
	margin-block: 0;
}

/* Page heading area on the Case studies and All products pages. */
.r2s-page-hero {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	align-items: end;
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
}

.r2s-page-hero > *,
.r2s-page-hero > .wp-block-group > * {
	margin-block: 0;
}

.r2s-page-hero > .wp-block-group {
	display: grid;
	gap: var(--wp--preset--spacing--30);
}

.r2s-page-hero__kicker {
	transform: rotate(-3deg);
	transform-origin: left;
}

@media (min-width: 900px) {
	.r2s-page-hero {
		grid-template-columns: minmax(0, 1fr) auto;
	}
}

/* Heading on the left, a picture on the right. */
.r2s-page-hero--split {
	align-items: center;
}

.r2s-page-hero--split .r2s-page-hero__image {
	width: 100%;
}

@media (min-width: 900px) {
	.r2s-page-hero--split {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
		gap: var(--wp--preset--spacing--60);
	}
}

.r2s-page-hero__image {
	box-sizing: border-box;
	margin: 0;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--panel);
	aspect-ratio: 4 / 3;
}

.r2s-page-hero__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* No picture chosen yet: a dashed frame that says so (Site settings > Page banners). */
.r2s-page-hero__image--empty {
	display: grid;
	place-items: center;
	border: 2px dashed color-mix(in srgb, var(--wp--preset--color--muted) 45%, transparent);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--muted);
	font-weight: 600;
	text-align: center;
}

/* Four short facts in a row, under the About hero. */
.r2s-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	gap: var(--wp--preset--spacing--30);
	margin: var(--wp--preset--spacing--50) auto 0;
	padding: 0;
	list-style: none;
}

.r2s-facts li {
	display: grid;
	/* Keep the label right under its figure, even when a card is taller than its text. */
	align-content: start;
	gap: 0.25rem;
	padding: var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--surface);
}

.r2s-facts strong {
	font-size: var(--wp--preset--font-size--large);
	font-stretch: 112%;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.r2s-facts span:not(.r2s-range) {
	color: var(--wp--preset--color--muted);
}

/*
 * The dash in a number range in a heading ("24–48 hours"), added by functions.php. The
 * heading font is wide and bold, so the dash is drawn narrower and lighter, with a little
 * space either side, so the numbers do not run together.
 */
.r2s-range {
	display: inline-block;
	margin-inline: 0.06em;
	font-stretch: 100%;
	font-weight: 500;
	transform: scaleX(0.8);
}

.r2s-logos--page {
	margin-block-end: var(--wp--preset--spacing--50);
	padding-block-start: 0;
}

/* Contact: the form on the left, other ways to reach us on the right. */
.r2s-contact {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	align-items: start;
}

.r2s-contact__form {
	padding: clamp(1.25rem, 3vw, 2.25rem);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--panel);
	background: var(--wp--preset--color--surface);
}

.r2s-contact__form > * {
	margin-block: 0;
}

.r2s-contact__title {
	margin-block-end: var(--wp--preset--spacing--40) !important;
	font-size: var(--wp--preset--font-size--large);
}

.r2s-contact__ways {
	display: grid;
	gap: var(--wp--preset--spacing--30);
	margin: 0;
	padding: 0;
	list-style: none;
}

.r2s-contact__ways li {
	display: grid;
	gap: 0.4rem;
	padding: var(--wp--preset--spacing--40);
	border-radius: var(--wp--custom--radius--card);
	background: var(--r2s-bg);
	color: var(--r2s-ink);
}

.r2s-contact__ways h2 {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
}

.r2s-contact__ways p {
	margin: 0;
}

.r2s-contact__ways a {
	color: inherit;
	font-weight: 650;
}

/*
 * The three cards use the main site colours (client feedback, 18 November 2026):
 * teal, lime and the dark panel, the same as the call-to-action band, the "Featured"
 * label and the footer. Set with data-style on each card.
 */
.r2s-contact__ways li[data-style="accent"] {
	--r2s-bg: var(--wp--preset--color--accent);
	--r2s-ink: var(--wp--custom--on-accent);
}

.r2s-contact__ways li[data-style="highlight"] {
	--r2s-bg: var(--wp--preset--color--highlight);
	--r2s-ink: var(--wp--preset--color--ink);
}

.r2s-contact__ways li[data-style="deep"] {
	--r2s-bg: var(--wp--preset--color--deep);
	--r2s-ink: var(--wp--custom--on-deep);
}

.r2s-contact__ways li[data-style="deep"] :focus-visible {
	outline-color: var(--wp--custom--on-deep);
}

.r2s-check--plain {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	min-height: 0;
	margin-block: 0;
	padding: 0;
	border: 0;
	background: none;
}

.r2s-check--plain input {
	width: 1.25rem;
	height: 1.25rem;
	margin-block-start: 0.15rem;
	accent-color: var(--wp--preset--color--ink);
}

@media (min-width: 900px) {
	.r2s-contact {
		grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	}
}

/* A clearly marked note, such as "Sample notice" on the privacy page. */
.r2s-notice {
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--highlight);
}

/* ---------- News list (template: home.html) ---------- */

.r2s-news .r2s-section-head {
	margin-block-end: var(--wp--preset--spacing--40);
}

.r2s-news .r2s-news-cards {
	margin-block-start: 0;
}

/* WordPress adds a top margin between list items; in a grid that staggers the cards. */
.r2s-news .r2s-news-cards > li {
	margin-block: 0 !important;
}

.r2s-news .r2s-news-card > * {
	margin: 0;
}

.r2s-news .r2s-news-card__media {
	margin: 0;
}

.r2s-news .r2s-news-card__title {
	font-size: var(--wp--preset--font-size--medium);
}

.r2s-news .r2s-news-card__title a {
	color: inherit;
	text-decoration: none;
}

.r2s-news .r2s-news-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.r2s-news .wp-block-post-date {
	color: var(--wp--preset--color--muted);
	font-size: 1rem;
}

.r2s-news .wp-block-post-excerpt {
	color: var(--wp--preset--color--muted);
}

.r2s-news .wp-block-post-excerpt__excerpt {
	margin: 0;
}

/* ---------- A news article (template: single.html) ---------- */

.r2s-article > * + * {
	margin-block-start: var(--wp--preset--spacing--30) !important;
}

.r2s-article__back {
	margin-block-end: var(--wp--preset--spacing--40) !important;
}

.r2s-article__back a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.r2s-article__date {
	color: var(--wp--preset--color--accent-ink);
	font-weight: 600;
}

.r2s-article__title {
	font-size: var(--wp--preset--font-size--xx-large);
	letter-spacing: -0.035em;
}

.r2s-article__image {
	margin-block: var(--wp--preset--spacing--50) !important;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--panel);
}

.r2s-article .wp-block-post-content h2 {
	margin-block-start: var(--wp--preset--spacing--50);
	font-size: var(--wp--preset--font-size--large);
}

.r2s-article .wp-block-post-content p,
.r2s-article .wp-block-post-content li {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.6;
}

.r2s-article .r2s-cta-band {
	margin-block-start: var(--wp--preset--spacing--70) !important;
}

/* ---------- Screen reader text ---------- */

.r2s-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- Motion preference ---------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ---------- Page changes ---------- */

/* A short cross-fade between pages in browsers that support it. Off when motion is reduced. */
@media (prefers-reduced-motion: no-preference) {
	@view-transition {
		navigation: auto;
	}
}

/* ---------- Client logo and brand font ---------- */

/* The client's logo picture (set in Settings > General). */
.r2s-logo {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	flex: none;
}

.r2s-logo__img {
	display: block;
	width: auto;
	height: clamp(2.25rem, 4vw, 2.75rem);
}

.r2s-logo--footer .r2s-logo__img {
	height: 2.5rem;
}

/* Header links use the client's brand font, falling back to Archivo. */
.r2s-header .r2s-nav__link,
.r2s-header .r2s-nav__cta {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.0625rem;
	font-stretch: normal;
	letter-spacing: 0.01em;
}

.r2s-header .r2s-nav__link {
	font-weight: 700;
}

/* "Trusted by" strip with real logos: grey so no one brand shouts, colour on hover. */
.r2s-logos__list--images {
	align-items: center;
	gap: 0.5rem clamp(1rem, 3vw, 2.25rem);
}

.r2s-logos__list--images img {
	display: block;
	width: auto;
	height: clamp(3rem, 6vw, 4rem);
	filter: grayscale(1);
	mix-blend-mode: multiply;
	opacity: 0.75;
	transition: filter var(--wp--custom--motion--fast), opacity var(--wp--custom--motion--fast);
}

.r2s-logos__list--images li:hover img {
	filter: none;
	opacity: 1;
}

/* ---------- "Trusted by" logo strip: scrolls sideways without end ---------- */

.r2s-marquee-wrap {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.r2s-marquee:hover .r2s-marquee__track {
	animation-play-state: paused;
}

.r2s-marquee {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	/*
	 * The logo files have white backgrounds, which "multiply" blends into the page colour.
	 * The fade mask cuts the strip off from the page, so it needs the page colour itself.
	 */
	background: var(--wp--preset--color--background);
	/* Logos fade in and out at the edges. */
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.r2s-band--surface .r2s-marquee {
	background: var(--wp--preset--color--surface);
}

.r2s-marquee__track {
	display: flex;
	width: max-content;
	/* The moving track is its own layer, so the blend needs the page colour here too. */
	background: inherit;
}

.r2s-marquee .r2s-logos__list {
	flex: none;
	flex-wrap: nowrap;
	justify-content: flex-start;
	gap: 0;
}

.r2s-marquee .r2s-logos__item {
	flex: none;
	display: grid;
	place-items: center;
	padding-inline: clamp(1.25rem, 3vw, 2.25rem);
	white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
	.r2s-marquee__track {
		animation: r2s-marquee 40s linear infinite;
	}
}

/* The track holds two copies, so moving it by half its width loops without a jump. */
@keyframes r2s-marquee {
	to { transform: translateX(-50%); }
}

/* With reduced motion the strip stays still: one copy, centred, wrapping onto lines. */
@media (prefers-reduced-motion: reduce) {
	.r2s-marquee {
		mask-image: none;
	}

	.r2s-marquee__track {
		width: auto;
		justify-content: center;
	}

	.r2s-marquee .r2s-logos__list {
		flex-wrap: wrap;
		justify-content: center;
	}

	.r2s-marquee .r2s-logos__list[aria-hidden="true"],
	.r2s-marquee .r2s-logos__item[aria-hidden="true"] {
		display: none;
	}
}

/* ---------- Product group columns (r2s/product-groups block) ---------- */

.r2s-explore h2 {
	margin: 0 0 var(--wp--preset--spacing--50);
}

.r2s-explore__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
	gap: var(--wp--preset--spacing--30);
}

.r2s-explore__col {
	padding: var(--wp--preset--spacing--40);
	border-radius: var(--wp--custom--radius--card);
	background: var(--r2s-bg);
	color: var(--r2s-ink);
}

.r2s-explore__col h3 {
	margin: 0 0 0.5rem;
	font-size: var(--wp--preset--font-size--base);
	font-stretch: 105%;
	letter-spacing: 0;
}

.r2s-explore__col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.r2s-explore__col li {
	display: flex;
	align-items: center;
	min-height: 36px;
}

.r2s-explore__col a {
	color: inherit;
}

/* ---------- Previous and next product (mechanic pages) ---------- */

.r2s-pager {
	display: grid;
	gap: var(--wp--preset--spacing--30);
	margin-block: var(--wp--preset--spacing--50) 0 !important;
}

.r2s-pager__list {
	display: grid;
	gap: var(--wp--preset--spacing--30);
	margin: 0;
	padding: 0;
	list-style: none;
}

.r2s-pager__link {
	display: grid;
	grid-template-columns: 6rem minmax(0, 1fr);
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	height: 100%;
	box-sizing: border-box;
	padding: var(--wp--preset--spacing--20);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	transition: border-color var(--wp--custom--motion--fast), transform var(--wp--custom--motion--fast);
}

.r2s-pager__link:hover {
	border-color: var(--wp--preset--color--ink);
	text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
	.r2s-pager__link:hover {
		transform: translateY(-2px);
	}
}

.r2s-pager__image {
	display: grid;
	place-items: center;
	width: 6rem;
	height: 6rem;
	border-radius: var(--wp--custom--radius--control);
	background: var(--r2s-bg, var(--wp--preset--color--line));
	color: var(--r2s-ink, var(--wp--preset--color--ink));
	object-fit: cover;
}

.r2s-pager__text {
	display: grid;
	gap: 0.15rem;
	min-width: 0;
}

.r2s-pager__label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--wp--preset--color--accent-ink);
	font-weight: 650;
}

.r2s-pager__label .r2s-icon {
	width: 1rem;
	height: 1rem;
}

.r2s-pager__title {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	line-height: 1.2;
}

.r2s-pager__pitch {
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: var(--wp--preset--color--muted);
}

.r2s-pager__all {
	margin: 0;
	text-align: center;
}

.r2s-pager__all a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}

@media (min-width: 760px) {
	.r2s-pager__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* The next product reads right to left: text, then picture, arrow pointing on. */
	.r2s-pager__item--next .r2s-pager__link {
		grid-template-columns: minmax(0, 1fr) 6rem;
		text-align: end;
	}

	.r2s-pager__item--next .r2s-pager__image {
		order: 2;
	}

	.r2s-pager__item--next .r2s-pager__label {
		flex-direction: row-reverse;
		justify-self: end;
	}
}

/* Real photos in the case study photo row. */
.r2s-photo-slot:has(img) {
	padding: 0;
	overflow: hidden;
}

.r2s-photo-slot img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- Links to the funnel guide ---------- */

/* Products menu: the second link in the "Not sure which one?" card sits on its own line. */
.r2s-mega__card-link--guide {
	display: flex;
	width: fit-content;
}

/* Goal finder band on mechanic pages. */
.r2s-goals__guide {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--wp--preset--color--accent);
	font-weight: 700;
}
