/* Robopack theme: only what theme.json can't express. */

/* Sticky, blurred header (same feel as the current site). */
.rp-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: rgba(18, 12, 40, 0.85);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--wp--custom--border--subtle);
}
body.admin-bar .rp-site-header { top: var(--wp-admin--admin-bar--height, 32px); }

/* No gap between header, main and footer (theme.json blockGap is for content). */
.wp-site-blocks > * + * { margin-block-start: 0; }

html {
	scroll-behavior: smooth;
	/* Paint the whole window in the page colour, also below short pages. */
	background-color: var(--wp--preset--color--base);
}
:where(h2, h3, [id]) { scroll-margin-top: 90px; }

/* Visible keyboard focus everywhere. */
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary-light);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Button: gradient style. */
.wp-block-button.is-style-gradient .wp-block-button__link {
	background: var(--wp--preset--gradient--brand);
	color: var(--wp--preset--color--contrast);
}
.wp-block-button.is-style-gradient .wp-block-button__link:hover {
	filter: brightness(1.1);
	background: var(--wp--preset--gradient--brand);
	color: var(--wp--preset--color--contrast);
}

/* Button: outline (core style) in brand colours. */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 1px solid rgba(169, 170, 221, 0.35);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(169, 170, 221, 0.1);
	color: var(--wp--preset--color--contrast);
}

/* Group: card style. */
.wp-block-group.is-style-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--custom--border--subtle);
	border-radius: var(--wp--custom--radius--medium);
	padding: var(--wp--preset--spacing--40);
}

/* Paragraph: eyebrow style. */
p.is-style-eyebrow {
	color: var(--wp--preset--color--primary-light);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 0;
}

/* Mobile menu overlay in brand colours. */
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--contrast) !important;
}

/* Language switcher (details/summary, no JavaScript). */
.rp-lang { position: relative; }
.rp-lang summary {
	list-style: none;
	cursor: pointer;
	padding: 0.55rem 0.8rem;
	border: 1px solid transparent;
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--contrast);
	font-size: 0.9rem;
	font-weight: 500;
	white-space: nowrap;
}
.rp-lang summary::-webkit-details-marker { display: none; }
.rp-lang summary::after {
	content: "";
	display: inline-block;
	margin-left: 0.4em;
	border: 4px solid transparent;
	border-top-color: currentColor;
	vertical-align: middle;
	transform: translateY(2px);
}
.rp-lang[open] summary,
.rp-lang summary:hover { border-color: var(--wp--custom--border--subtle); }
.rp-lang ul {
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	z-index: 110;
	min-width: 10rem;
	margin: 0;
	padding: 0.4rem;
	list-style: none;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--custom--border--subtle);
	border-radius: var(--wp--custom--radius--small);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
/* Page in one language only: just the code, no dropdown. */
.rp-lang--single {
	display: inline-block;
	padding: 0.55rem 0.8rem;
	color: var(--wp--preset--color--muted);
	font-size: 0.9rem;
	font-weight: 500;
	cursor: default;
}
.rp-lang a {
	display: block;
	padding: 0.45rem 0.7rem;
	border-radius: 6px;
	color: var(--wp--preset--color--muted);
}
.rp-lang a:hover,
.rp-lang a[aria-current] {
	background: rgba(169, 170, 221, 0.1);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

/* ---------- Sections ---------- */

/* Image: screenshot style (rounded, framed). */
.wp-block-image.is-style-screenshot img,
.rp-step-thumb img {
	border-radius: var(--wp--custom--radius--medium);
	border: 1px solid var(--wp--custom--border--subtle);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	width: 100%;
	height: auto;
}

/* Customer logo band. */
.rp-logo-band { border-bottom: 1px solid var(--wp--custom--border--subtle); }
.rp-logos { gap: clamp(20px, 4vw, 48px); align-items: center; }
.rp-logos .wp-block-image { margin: 0; }
.rp-logos img {
	height: clamp(24px, 2.6vw, 40px);
	width: auto;
	max-width: 168px;
	object-fit: contain;
	opacity: 0.82;
}

/* Feature rows: stack with the image first on phones. */
@media (max-width: 781px) {
	.rp-feature { flex-direction: column; }
	.rp-feature > .wp-block-column { flex-basis: 100% !important; }
	.rp-feature > .wp-block-column:has(.wp-block-image) { order: -1; }
}

/* Sandbox steps: numbered cards. */
.rp-steps { counter-reset: rp-step; }
.rp-step {
	counter-increment: rp-step;
	position: relative;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--custom--border--subtle);
	border-radius: var(--wp--custom--radius--medium);
	padding: 0 22px 22px;
	overflow: hidden;
}
.rp-step .rp-step-thumb { margin: 0 -22px 18px; }
.rp-step .rp-step-thumb img { border: 0; border-radius: 0; box-shadow: none; }
.rp-step h3::before {
	content: counter(rp-step);
	display: inline-grid;
	place-items: center;
	width: 1.8em;
	height: 1.8em;
	margin-right: 0.5em;
	border-radius: 50%;
	background: var(--wp--preset--gradient--brand);
	color: var(--wp--preset--color--contrast);
	font-size: 0.8em;
	vertical-align: 0.1em;
}

/* Table: comparison style. */
.wp-block-table.is-style-comparison { overflow-x: auto; }
.wp-block-table.is-style-comparison table {
	border-collapse: separate;
	border-spacing: 0;
	min-width: 640px;
	width: 100%;
	border: 1px solid var(--wp--custom--border--subtle);
	border-radius: var(--wp--custom--radius--medium);
	overflow: hidden;
}
.wp-block-table.is-style-comparison th,
.wp-block-table.is-style-comparison td {
	border: 0;
	border-bottom: 1px solid var(--wp--custom--border--subtle);
	padding: 14px 18px;
	text-align: left;
	vertical-align: top;
}
.wp-block-table.is-style-comparison thead th {
	background: var(--wp--preset--color--surface-raised);
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}
.wp-block-table.is-style-comparison tbody tr:last-child td { border-bottom: 0; }
.wp-block-table.is-style-comparison tbody td:first-child { color: var(--wp--preset--color--contrast); font-weight: 500; }
.wp-block-table.is-style-comparison tbody td:last-child { background: rgba(128, 112, 255, 0.08); }

/* FAQ (details blocks inside .rp-faq). */
.rp-faq .wp-block-details {
	border: 1px solid var(--wp--custom--border--subtle);
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--surface);
	padding: 0;
	margin-top: 12px;
}
.rp-faq .wp-block-details summary {
	cursor: pointer;
	list-style: none;
	padding: 18px 52px 18px 20px;
	position: relative;
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}
.rp-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.rp-faq .wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.4em;
	font-weight: 400;
	color: var(--wp--preset--color--primary-light);
}
.rp-faq .wp-block-details[open] summary::after { content: "\2212"; }
.rp-faq .wp-block-details > :not(summary) { padding: 0 20px; }
.rp-faq .wp-block-details > summary + * { margin-top: 0; }
.rp-faq .wp-block-details > :last-child { padding-bottom: 18px; }

/* Hero over a photo (Cover block): vignette + text shadow for legibility. */
.rp-hero-cover::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		radial-gradient(ellipse 60% 64% at 50% 44%, rgba(18, 12, 40, 0.9) 0%, rgba(18, 12, 40, 0.55) 56%, rgba(18, 12, 40, 0) 100%),
		linear-gradient(180deg, rgba(18, 12, 40, 0.6) 0%, rgba(18, 12, 40, 0) 40%, rgba(18, 12, 40, 0.85) 100%);
}
.rp-hero-cover .wp-block-cover__inner-container { position: relative; z-index: 2; }
.rp-hero-cover h1,
.rp-hero-cover p { text-shadow: 0 1px 3px rgba(13, 10, 31, 0.7), 0 2px 14px rgba(13, 10, 31, 0.85); }
.rp-hero-cover h1 { font-size: clamp(2.25rem, 4.6vw, 3.9rem); line-height: 1.08; }

/* ---------- Header navigation (inc/navigation.php) ---------- */
/* Matches the mega menu on the current robopack.com (style_main_2.css). */

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* Padding and borders count inside the width (the mobile buttons are 100% wide). */
.rp-nav,
.rp-nav *,
.rp-nav *::before,
.rp-nav *::after { box-sizing: border-box; }
.rp-nav ul { list-style: none; margin: 0; padding: 0; }
.rp-nav a { text-decoration: none; }
.rp-nav__link {
	display: block;
	padding: 8px 12px;
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--contrast);
	font-size: 0.95rem;
	font-weight: 500;
	white-space: nowrap;
	transition: background-color 0.2s ease;
}
.rp-nav__link:hover,
.rp-nav__link:focus-visible,
.rp-nav__item.is-open > .rp-nav__link { background: rgba(169, 170, 221, 0.1); }

/* Gradient-border tile / pill used by the icons and buttons. */
.rp-nav__icon,
.rp-nav__pill,
.rp-btn-icon .wp-block-button__link {
	border: 1px solid transparent;
	background:
		linear-gradient(var(--wp--preset--color--surface), var(--wp--preset--color--surface)) padding-box,
		linear-gradient(to top right, rgba(169, 170, 221, 0.35), rgba(169, 170, 221, 0.1) 44%, rgba(169, 170, 221, 0.25) 81%) border-box;
}

/* Panel content */
.rp-nav__title {
	margin: 0;
	color: var(--wp--preset--color--contrast);
	font-size: 2.3rem;
	font-weight: 600;
	line-height: 1.15;
}
.rp-nav__lead,
.rp-nav__heading {
	margin: 0 0 12px;
	color: var(--wp--preset--color--contrast);
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.3;
}
.rp-nav__group + .rp-nav__group { margin-top: 28px; }
.rp-nav__plain {
	display: block;
	padding: 5px 0;
	color: var(--wp--preset--color--contrast);
	font-size: 1rem;
	line-height: 1.5;
}
.rp-nav__plain:hover,
.rp-nav__plain:focus-visible { color: var(--wp--preset--color--primary-light); }
.rp-nav__feature {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 12px 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.9rem;
	line-height: 1.35;
	transition: color 0.2s ease;
}
.rp-nav__feature:hover,
.rp-nav__feature:focus-visible { color: var(--wp--preset--color--contrast); }
.rp-nav__icon {
	display: flex;
	flex: 0 0 50px;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 16px;
	transition: border-color 0.2s ease;
}
.rp-nav__feature:hover .rp-nav__icon { background: linear-gradient(#241f45, #241f45) padding-box, linear-gradient(to top right, rgba(169, 170, 221, 0.5), rgba(169, 170, 221, 0.2)) border-box; }
.rp-nav__icon-img { display: block; width: 24px; height: 24px; }
.rp-nav__pill .rp-nav__icon-img { width: 20px; height: 20px; }

/* Pills: "Request a demo" (link) and "In-Depth Analysis…" (label only). */
.rp-nav .rp-nav__pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	margin: 20px 0 0;
	padding: 9px 16px;
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--contrast);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.2;
}
.rp-nav a.rp-nav__pill:hover { background: linear-gradient(#241f45, #241f45) padding-box, linear-gradient(to top right, rgba(169, 170, 221, 0.5), rgba(169, 170, 221, 0.2)) border-box; }
.rp-nav__pill--static { max-width: 250px; font-size: 0.95rem; }

/* MVP heads: overlapping circles, name shows on hover. */
.rp-nav .rp-mvps { display: flex; margin: 32px 0 0; padding-left: 20px; }
.rp-mvps li { position: relative; margin-left: -20px; }
.rp-mvps li:nth-child(1) { z-index: 4; }
.rp-mvps li:nth-child(2) { z-index: 3; }
.rp-mvps li:nth-child(3) { z-index: 2; }
.rp-mvps li:nth-child(4) { z-index: 1; }
.rp-mvps li:hover,
.rp-mvps li:focus-within { z-index: 10; }
.rp-mvp {
	position: relative;
	display: block;
	width: 70px;
	height: 70px;
	border-radius: 50%;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.rp-mvp img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.rp-mvp:hover,
.rp-mvp:focus-visible { transform: scale(1.12); box-shadow: 0 0 0 1px rgb(205, 205, 236); }
.rp-mvp__label {
	position: absolute;
	bottom: 100%;
	left: 50%;
	padding: 6px 12px;
	border-radius: 9999px;
	background: #222231;
	color: var(--wp--preset--color--contrast);
	font-size: 0.75rem;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transform: translateX(-50%);
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.rp-mvp:hover .rp-mvp__label,
.rp-mvp:focus-visible .rp-mvp__label { opacity: 1; transform: translateX(-50%) translateY(-6px); }

/* Header buttons with the Robopack icon (Try now, Request a demo). */
.rp-btn-icon .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	font-size: 0.95rem;
	line-height: 1;
	white-space: nowrap;
}
.rp-btn-icon .wp-block-button__link::before {
	content: "";
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	background: url("../images/nav/icon-rp-5.svg") center / contain no-repeat;
}
.wp-block-button.rp-btn-icon .wp-block-button__link:hover {
	background:
		linear-gradient(#241f45, #241f45) padding-box,
		linear-gradient(to top right, rgba(169, 170, 221, 0.5), rgba(169, 170, 221, 0.2)) border-box;
}
.rp-header-ctas { gap: 8px; }

.rp-nav__toggle {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
}
.rp-nav__toggle::before {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.15s ease;
}
.rp-nav__toggle[aria-expanded="true"]::before { transform: translateY(2px) rotate(-135deg); }

.rp-burger { display: none; }
.rp-nav__mobile-ctas { display: none; }

/* Desktop: horizontal bar, no chevrons; panels open on hover/focus and
   drop down full width under the header. Same breakpoint as today (1200px). */
@media (min-width: 1200px) {
	.rp-nav { flex: 1; display: flex; justify-content: center; }
	.rp-nav__list { display: flex; align-items: center; gap: 2px; }
	.rp-nav__item { display: flex; align-items: center; }
	.rp-nav__toggle { display: none; }
	.rp-nav__item.has-panel:hover > .rp-nav__link,
	.rp-nav__item.has-panel:focus-within > .rp-nav__link { background: rgba(169, 170, 221, 0.1); }
	.rp-nav__panel {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		z-index: 101;
		visibility: hidden;
		opacity: 0;
		pointer-events: none;
		transform: translateY(15px);
		transition: opacity 0.24s ease, transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s linear 0.32s;
		background: var(--wp--preset--color--base);
		border-bottom: 1px solid rgba(169, 170, 221, 0.35);
		cursor: default;
	}
	/* Invisible bridge so the panel doesn't close while the mouse moves down to it. */
	.rp-nav__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
	.rp-nav__item.has-panel:hover > .rp-nav__panel,
	.rp-nav__item.has-panel:focus-within > .rp-nav__panel,
	.rp-nav__item.is-open > .rp-nav__panel {
		visibility: visible;
		opacity: 1;
		pointer-events: auto;
		transform: none;
		transition-delay: 0s;
	}
	.rp-nav__panel-inner {
		display: grid;
		grid-template-columns: 1.5fr 1fr 1fr 1fr;
		gap: 46px;
		max-width: 1240px;
		margin: 0 auto;
		padding: 48px 20px 36px;
	}
	.rp-nav__intro { display: flex; flex-direction: column; align-items: flex-start; }
	.rp-nav__lead { max-width: 340px; }
	/* Columns fade in one after another, as today. */
	.rp-nav__intro,
	.rp-nav__column { opacity: 0; transform: translateY(10px); transition: opacity 0.28s ease, transform 0.28s ease; }
	.rp-nav__item.has-panel:hover .rp-nav__panel-inner > *,
	.rp-nav__item.has-panel:focus-within .rp-nav__panel-inner > *,
	.rp-nav__item.is-open .rp-nav__panel-inner > * { opacity: 1; transform: none; }
	.rp-nav__panel-inner > :nth-child(2) { transition-delay: 40ms; }
	.rp-nav__panel-inner > :nth-child(3) { transition-delay: 80ms; }
	.rp-nav__panel-inner > :nth-child(4) { transition-delay: 120ms; }
}
/* 1200-1359px: tighten so longer labels (FR, DE) still fit on one line. */
@media (min-width: 1200px) and (max-width: 1359px) {
	.rp-nav__link { padding: 8px 8px; }
	.rp-btn-icon .wp-block-button__link { padding: 8px 11px; }
	.rp-header-ctas { gap: 6px; }
}
@media (min-width: 1200px) and (prefers-reduced-motion: reduce) {
	.rp-nav__panel,
	.rp-nav__intro,
	.rp-nav__column { transition: none; transform: none; }
}

/* Mobile/tablet: hamburger opens a full-screen menu with accordions. */
@media (max-width: 1199px) {
	.rp-header-ctas { display: none !important; }
	.rp-burger {
		display: inline-grid;
		place-items: center;
		width: 42px;
		height: 42px;
		padding: 0;
		border: 1px solid var(--wp--custom--border--subtle);
		border-radius: 10px;
		background: transparent;
		color: var(--wp--preset--color--contrast);
		cursor: pointer;
	}
	.rp-burger__bars,
	.rp-burger__bars::before,
	.rp-burger__bars::after {
		display: block;
		width: 18px;
		height: 2px;
		border-radius: 2px;
		background: currentColor;
		transition: transform 0.2s ease, opacity 0.2s ease;
	}
	.rp-burger__bars { position: relative; }
	.rp-burger__bars::before,
	.rp-burger__bars::after { content: ""; position: absolute; left: 0; }
	.rp-burger__bars::before { top: -6px; }
	.rp-burger__bars::after { top: 6px; }
	.rp-nav-open .rp-burger__bars { background: transparent; }
	.rp-nav-open .rp-burger__bars::before { transform: translateY(6px) rotate(45deg); }
	.rp-nav-open .rp-burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

	.rp-nav {
		display: none;
		position: fixed;
		inset: 0;
		z-index: 90;
		overflow-y: auto;
		padding: calc(var(--wp-admin--admin-bar--height, 0px) + 84px) 20px 40px;
		background: var(--wp--preset--color--base);
		overflow-x: hidden;
	}
	body.rp-nav-open { overflow: hidden; }
	/* backdrop-filter would trap the fixed menu inside the header box. */
	body.rp-nav-open .rp-site-header {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background: var(--wp--preset--color--base);
	}
	/* Keep logo, language switcher and the close button above the open menu. */
	.rp-site-header .rp-logo,
	.rp-header-actions { position: relative; z-index: 95; }
	body.rp-nav-open .rp-nav { display: block; }
	.rp-nav__item {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		border-bottom: 1px solid var(--wp--custom--border--subtle);
	}
	.rp-nav__link { flex: 1; padding: 14px 2px; border-radius: 0; font-size: 1.1rem; }
	.rp-nav__link:hover,
	.rp-nav__link:focus-visible,
	.rp-nav__item.is-open > .rp-nav__link { background: none; }
	.rp-nav__panel { display: none; width: 100%; }
	.rp-nav__item.is-open > .rp-nav__panel { display: block; }
	.rp-nav__panel-inner { padding: 4px 2px 20px; }
	.rp-nav__intro,
	.rp-nav__column { margin-bottom: 24px; }
	.rp-nav__title { font-size: 1.6rem; }
	.rp-nav__lead,
	.rp-nav__heading { font-size: 1.1rem; }
	.rp-nav .rp-mvps { margin-top: 20px; }
	.rp-nav__mobile-ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
	.rp-nav__mobile-ctas .rp-nav__pill { width: 100%; justify-content: center; margin: 0; padding: 12px 16px; }
}

/* ---------- Footer (inc/footer.php) ---------- */
/* Matches the footer on the current robopack.com (style_4.css). */

.rp-footer {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 40px 20px 24px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}
/* Soft glow rising from the bottom edge. */
.rp-footer::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 50%;
	bottom: -55%;
	width: max(2200px, 160%);
	height: 115%;
	transform: translateX(-50%);
	background: radial-gradient(closest-side, rgba(71, 76, 102, 0.95), rgba(92, 86, 160, 0.35) 60%, rgba(128, 112, 255, 0));
	pointer-events: none;
}
.rp-footer > * { max-width: var(--wp--style--global--wide-size, 1200px); margin-inline: auto; }
.rp-footer p { margin: 0; }
.rp-footer ul { list-style: none; margin: 0; padding: 0; }
.rp-footer a { color: var(--wp--preset--color--contrast); text-decoration: none; transition: color 0.2s ease; }
.rp-footer a:hover,
.rp-footer a:focus-visible { color: var(--wp--preset--color--primary-light); }

/* Divider that fades out left and right. */
.rp-footer .rp-footer__divider {
	height: 1px;
	margin-top: 0;
	margin-bottom: 88px;
	border: 0;
	background: linear-gradient(90deg, rgba(169, 170, 221, 0), rgba(169, 170, 221, 0.35) 15%, rgba(169, 170, 221, 0.35) 85%, rgba(169, 170, 221, 0));
	opacity: 1;
}

.rp-footer__main { display: grid; grid-template-columns: 290px 1fr; gap: 88px; }

/* Brand column */
.rp-footer__title { font-size: 2.3rem; font-weight: 600; line-height: 1.15; max-width: 290px; }
.rp-footer .rp-footer__follow { display: inline-flex; align-items: center; gap: 8px; margin-top: 35px; font-size: 1.2rem; font-weight: 500; }
.rp-footer__follow img { display: block; width: 28px; height: 28px; }
.rp-footer__verified { margin-top: 50px; }
.rp-footer__verified img { display: block; width: 240px; height: auto; margin: 0 0 15px -14px; }
.rp-footer__verified p { max-width: 330px; font-size: 0.85rem; line-height: 1.35; color: rgba(183, 186, 228, 0.65); }
.rp-footer__flags { display: flex; gap: 8px; align-items: center; margin-top: 15px; }
.rp-footer__flags .geo-flags { display: flex; gap: 8px; align-items: center; }
.rp-footer__flags img { display: block; height: 30px; width: auto; }
.rp-footer__g2 { margin-top: 30px; }
.rp-footer__g2 img { display: block; width: 100%; max-width: 200px; height: auto; }

/* Link columns */
.rp-footer__columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; }
.rp-footer__heading { margin-bottom: 14px !important; font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.rp-footer__intro { margin-bottom: 15px !important; font-size: 0.95rem; line-height: 1.3; color: rgba(183, 186, 228, 0.65); }
.rp-footer__note { max-width: 230px; }
.rp-footer__note::before { content: "• "; }
.rp-footer__columns li { margin-bottom: 10px; }
.rp-footer__columns li a { font-size: 0.95rem; font-weight: 500; line-height: 1.4; }

/* Bottom row */
.rp-footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 18px;
	margin-top: 60px;
	padding: 15px 0;
}
.rp-footer__logo img { display: block; width: 170px; height: auto; }
.rp-footer__legal p { font-size: 0.9rem; line-height: 1.35; color: rgba(183, 186, 228, 0.5); }

@media (max-width: 1099px) {
	.rp-footer .rp-footer__divider { margin-bottom: 64px; }
	.rp-footer__main { grid-template-columns: 1fr; gap: 64px; }
	.rp-footer__columns { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 40px 32px; }
}
@media (max-width: 600px) {
	.rp-footer__title { font-size: 2rem; }
	.rp-footer__bottom { flex-wrap: wrap; }
}

/* Contact page (patterns/contact.php): two company cards. */
body:has(.rp-contact) .wp-block-post-title,
body:has(.rp-contact) .editor-post-title {
	text-align: center;
}

.rp-contact {
	max-width: 1040px;
	margin-inline: auto !important;
}

.rp-contact > .wp-block-column > .is-style-card {
	height: 100%;
	padding: var(--wp--preset--spacing--50);
}

.rp-contact h2 {
	margin: 0 0 var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--large);
}

.rp-contact p {
	margin: 0 0 10px;
	line-height: 1.5;
}

.rp-contact a {
	text-decoration: underline;
	overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------ */
/* Blog (templates home/single/archive/author/search, inc/blog.php)    */
/* ------------------------------------------------------------------ */

.rp-card,
.rp-author,
.rp-share__link { box-sizing: border-box; }

.rp-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 var(--wp--preset--spacing--30);
	padding: 0;
	list-style: none;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.rp-breadcrumbs li + li::before {
	content: "/";
	margin-right: 0.4rem;
	opacity: 0.5;
}

.rp-breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.rp-breadcrumbs a:hover { color: var(--wp--preset--color--contrast); }

.rp-blog-intro { color: var(--wp--preset--color--muted); }

.rp-blog-tools {
	gap: var(--wp--preset--spacing--30);
	margin-block: var(--wp--preset--spacing--40) !important;
}

/* Category chips and tags. */
.rp-chips ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rp-chips a,
.rp-tags a {
	display: inline-block;
	padding: 0.35rem 0.9rem;
	border: 1px solid var(--wp--custom--border--subtle);
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
}

.rp-chips a:hover,
.rp-tags a:hover,
.rp-chips a[aria-current] {
	border-color: var(--wp--preset--color--primary);
	background: color-mix(in srgb, var(--wp--preset--color--primary) 18%, transparent);
}

.rp-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: var(--wp--preset--spacing--50) !important;
}

.rp-tags .wp-block-post-terms__separator { display: none; }

.rp-blog-search { min-width: min(320px, 100%); }

/* Search results: "All posts" link under the heading (inc/blog.php). */
.rp-search-back { margin-top: 0.4rem !important; font-size: 0.95rem; }
.rp-search-back a { color: var(--wp--preset--color--primary-light); text-decoration: none; }
.rp-search-back a:hover { color: var(--wp--preset--color--contrast); text-decoration: underline; }

.rp-blog-search .wp-block-search__input {
	padding: 0.6rem 1rem;
	border: 1px solid var(--wp--custom--border--subtle);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	font: inherit;
}

.rp-blog-search .wp-block-search__input::placeholder { color: var(--wp--preset--color--muted); }

/* Post cards. */
.rp-post-grid .wp-block-post-template { gap: var(--wp--preset--spacing--40); }

@media (max-width: 781px) {
	.rp-post-grid .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr; }
}

@media (min-width: 782px) and (max-width: 1099px) {
	.rp-post-grid .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.rp-card {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	height: 100%;
	padding: 0 0 var(--wp--preset--spacing--40);
	overflow: hidden;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--custom--border--subtle);
	border-radius: var(--wp--custom--radius--medium);
	transition: border-color 0.2s ease;
}

.rp-card:hover { border-color: color-mix(in srgb, var(--wp--preset--color--primary) 60%, transparent); }

.rp-card > *:not(.rp-card__image) { margin-inline: var(--wp--preset--spacing--40) !important; }

.rp-card__image { margin: 0 0 0.4rem !important; }

.rp-card__image img { width: 100%; }

.rp-card__placeholder {
	display: block;
	aspect-ratio: 16 / 9;
	background:
		radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--wp--preset--color--primary) 45%, transparent), transparent 60%),
		radial-gradient(circle at 80% 90%, color-mix(in srgb, var(--wp--preset--color--accent) 35%, transparent), transparent 55%),
		var(--wp--preset--color--surface-raised);
}

.rp-card__category,
.rp-card__category a {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--primary-light);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.rp-card__title {
	margin: 0 !important;
	font-size: var(--wp--preset--font-size--large) !important;
	line-height: 1.25;
}

.rp-card__title a { text-decoration: none; }

.rp-card__excerpt {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.rp-card__excerpt p { margin: 0; }

.rp-card .rp-byline { margin-top: auto; }

/* Byline. */
.rp-byline {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-block: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--small);
}

.rp-byline__text {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.rp-byline__name a { font-weight: 600; }

.rp-byline__credential,
.rp-byline__meta { color: var(--wp--preset--color--muted); }

.rp-byline__credential::before {
	content: "\00b7";
	margin-right: 0.35rem;
}

.rp-byline--compact { margin: 0.4rem 0 0; }

.rp-avatar {
	flex: none;
	border-radius: 50%;
	object-fit: cover;
	background: var(--wp--preset--color--surface-raised);
}

.rp-avatar--initials {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--gradient--brand, var(--wp--preset--color--primary));
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	font-size: 0.85em;
}

/* Article body: comfortable reading width and rhythm. */
.rp-article {
	font-size: 1.0625rem;
	line-height: 1.7;
}

.rp-article h2 {
	margin-top: var(--wp--preset--spacing--60);
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.25;
}

.rp-article h3 {
	margin-top: var(--wp--preset--spacing--50);
	font-size: var(--wp--preset--font-size--large);
}

.rp-article a {
	color: var(--wp--preset--color--primary-light);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.rp-article img { border-radius: var(--wp--custom--radius--small); }

.rp-article blockquote {
	margin-inline: 0;
	padding-left: var(--wp--preset--spacing--30);
	border-left: 3px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--muted);
}

.rp-article :not(pre) > code {
	padding: 0.1em 0.35em;
	border-radius: 4px;
	background: var(--wp--preset--color--surface-raised);
	font-size: 0.9em;
}

.rp-article pre {
	padding: var(--wp--preset--spacing--30);
	overflow-x: auto;
	border: 1px solid var(--wp--custom--border--subtle);
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--surface);
	font-size: 0.9rem;
	line-height: 1.5;
}

/* Share links. */
.rp-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-block: var(--wp--preset--spacing--40);
}

.rp-share__label {
	margin: 0;
	font-weight: 600;
}

.rp-share ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rp-share__link {
	display: inline-block;
	padding: 0.4rem 0.9rem;
	border: 1px solid var(--wp--custom--border--subtle);
	border-radius: var(--wp--custom--radius--pill);
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
	cursor: pointer;
}

.rp-share__link:hover { border-color: var(--wp--preset--color--primary); }

/* Author box and author page header. */
.rp-author {
	display: flex;
	gap: var(--wp--preset--spacing--40);
	align-items: flex-start;
	margin-block: var(--wp--preset--spacing--50);
	padding: var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--custom--border--subtle);
	border-radius: var(--wp--custom--radius--medium);
}

.rp-author--page {
	margin-top: 0;
	margin-bottom: var(--wp--preset--spacing--60);
}

.rp-author__body > * { margin: 0 0 0.35rem; }

.rp-author__eyebrow {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--primary-light);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.rp-author__name {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
}

h1.rp-author__name { font-size: var(--wp--preset--font-size--xx-large, 2.5rem); }

.rp-author__name a { text-decoration: none; }

.rp-author__role { font-weight: 500; }

.rp-author__credential { color: var(--wp--preset--color--primary-light); }

.rp-author__bio {
	margin-top: 0.75rem !important;
	color: var(--wp--preset--color--muted);
}

.rp-author__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.25rem;
	margin-top: 0.75rem !important;
	padding: 0;
	list-style: none;
	font-size: var(--wp--preset--font-size--small);
}

.rp-author__links a { text-decoration: underline; }

@media (max-width: 600px) {
	.rp-author { flex-direction: column; }
}

/* Comments. */
.rp-comments { margin-top: var(--wp--preset--spacing--60) !important; }

.rp-comment {
	margin-bottom: var(--wp--preset--spacing--40);
	padding-bottom: var(--wp--preset--spacing--30);
	border-bottom: 1px solid var(--wp--custom--border--subtle);
}

.rp-comment__meta {
	gap: 0.6rem;
	font-size: var(--wp--preset--font-size--small);
}

.rp-comment__meta .wp-block-comment-author-name { font-weight: 600; }

.rp-comment__meta .wp-block-comment-date,
.rp-comment__meta .wp-block-comment-date a { color: var(--wp--preset--color--muted); }

.rp-comment__actions { font-size: var(--wp--preset--font-size--small); }

.rp-comments .comment-respond input:not([type="submit"]):not([type="checkbox"]),
.rp-comments .comment-respond textarea {
	width: 100%;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--wp--custom--border--subtle);
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	font: inherit;
}

.rp-comments .comment-respond label { display: block; margin-bottom: 0.3rem; }

.rp-comments .comment-form-cookies-consent label { display: inline; }

.rp-comments .comment-notes,
.rp-comments .logged-in-as { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }

/* Related posts. */
.rp-related { margin-top: var(--wp--preset--spacing--60) !important; }

.rp-related__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: var(--wp--preset--spacing--40);
	margin: 0;
	padding: 0;
	list-style: none;
}

.rp-related .rp-card { padding: 0; }

.rp-card__link {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	height: 100%;
	padding-bottom: var(--wp--preset--spacing--30);
	color: inherit;
	text-decoration: none;
}

.rp-card__link img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.rp-card__link .rp-card__title,
.rp-card__link .rp-card__meta { margin-inline: var(--wp--preset--spacing--30); }

.rp-card__meta { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }

/* ------------------------------------------------------------------ */
/* Front page (patterns/front-page.php, templates/front-page.html)     */
/* ------------------------------------------------------------------ */

.rp-front > .wp-block-post-content > :first-child { margin-top: 0; }

/* Hero: text left; product image over the purple hexagons on the right. */
.rp-home-hero {
	margin-top: 0 !important;
	padding-block: clamp(48px, 7vw, 100px) clamp(40px, 6vw, 80px);
	overflow: hidden;
}

.rp-home-hero__inner { gap: clamp(24px, 4vw, 56px) !important; margin-bottom: 0 !important; }

.rp-home-hero__text > * { max-width: 600px; }

.rp-home-hero h1 {
	margin-top: 0.4rem;
	font-size: clamp(2.5rem, 5vw, 4.1rem);
	line-height: 1.05;
}

.rp-home-hero p.is-style-eyebrow {
	text-transform: none;
	letter-spacing: 0;
	font-size: clamp(1.1rem, 1.6vw, 1.4rem);
	font-weight: 500;
}

.rp-home-hero__lead {
	color: var(--wp--preset--color--muted);
	font-size: 1.125rem;
	line-height: 1.6;
}

.rp-home-hero .wp-block-buttons { margin-top: var(--wp--preset--spacing--40); }

.rp-home-hero__news { margin-top: var(--wp--preset--spacing--40); font-size: var(--wp--preset--font-size--small); }

.rp-home-hero__news a { color: var(--wp--preset--color--contrast); }

.rp-home-hero__visual {
	position: relative;
	align-self: stretch !important;
	display: flex;
	align-items: center;
	min-height: 360px;
}

/* The hexagons sit behind the screens, as on the current site. */
.rp-home-hero__visual::before {
	content: "";
	position: absolute;
	inset: -18% -22% -18% -6%;
	background: url(../images/home/hexagons.webp) no-repeat center / contain;
	pointer-events: none;
}

.rp-home-hero__screens { position: relative; flex: 0 0 120%; margin: 0 !important; max-width: none !important; }

@media (max-width: 781px) { .rp-home-hero__screens { flex-basis: 100%; } }

.rp-home-hero__screens img { width: 100%; height: auto; }

@media (max-width: 781px) {
	.rp-home-hero__visual { min-height: 0; margin-top: var(--wp--preset--spacing--40); }
	.rp-home-hero__visual::before { inset: -10% -15%; }
}

/* Logo band under the hero: a faded line above the logos (as on the
   current site), instead of the full-width line under them. */
.rp-home-hero + .rp-logo-band {
	position: relative;
	margin-top: 0 !important;
	border-bottom: 0;
}

.rp-home-hero + .rp-logo-band::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: min(var(--wp--style--global--wide-size, 1200px), 100%);
	height: 1px;
	transform: translateX(-50%);
	background: linear-gradient(90deg, rgba(169, 170, 221, 0), rgba(169, 170, 221, 0.35) 15%, rgba(169, 170, 221, 0.35) 85%, rgba(169, 170, 221, 0));
}

/* Section rhythm. */
.rp-home-section { margin-block: clamp(64px, 9vw, 120px) !important; }

.rp-home-title {
	margin-top: 0.3rem !important;
	font-size: clamp(2.25rem, 4.5vw, 3.5rem) !important;
	line-height: 1.1;
}

.rp-home-intro { color: var(--wp--preset--color--muted); }

/* 30K+ apps: cards as on the current site (pill corners, gradient edge,
   lift on hover). */
.rp-app-grid {
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
	gap: 20px;
	max-width: var(--wp--style--global--wide-size, 1200px) !important;
	margin-top: var(--wp--preset--spacing--50) !important;
}

@media (max-width: 560px) { .rp-app-grid { grid-template-columns: 1fr !important; } }

.rp-app {
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	border: 1px solid transparent;
	border-radius: 26px;
	background:
		linear-gradient(var(--wp--preset--color--surface), var(--wp--preset--color--surface)) padding-box,
		linear-gradient(to top right, rgba(169, 170, 221, 0.35), rgba(169, 170, 221, 0.1) 44%, rgba(169, 170, 221, 0.25) 81%) border-box;
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.rp-app:hover {
	border-color: var(--wp--preset--color--primary);
	transform: translateY(-6px);
}

.rp-update {
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--custom--border--subtle);
	border-radius: var(--wp--custom--radius--medium);
}

.rp-app__icon,
.rp-update__icon,
.rp-update__status { flex: none; margin: 0 !important; }

.rp-app__icon img { width: 54px; height: 54px; object-fit: contain; }

.rp-app__text > * { margin: 0 !important; }

.rp-app__name { font-weight: 500; color: var(--wp--preset--color--contrast); }

.rp-app__publisher { color: rgba(178, 187, 197, 0.6); font-size: 0.85rem; }

.rp-update__publisher { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }

/* Automatic updates. */
.rp-updates { display: grid; gap: 10px; margin-top: var(--wp--preset--spacing--50) !important; }

.rp-update { padding: 12px 18px; border-radius: var(--wp--custom--radius--pill); }

.rp-update > * { margin: 0 !important; }

.rp-update__icon img { width: 32px; height: 32px; object-fit: contain; }

.rp-update__publisher { flex: 0 0 140px; }

.rp-update__name { flex: 1; font-size: var(--wp--preset--font-size--small); }

.rp-update__status { margin-left: auto !important; }

.rp-update__status img { width: 22px; height: 22px; opacity: 0.8; }

@media (max-width: 560px) { .rp-update__publisher { display: none; } }

/* Why Robopack? */
.rp-checklist {
	margin-top: var(--wp--preset--spacing--40) !important;
	padding: 0;
	list-style: none;
}

.rp-checklist li {
	padding: 0.65rem 0 0.65rem 2rem;
	border-bottom: 1px solid var(--wp--custom--border--subtle);
	background: url(../images/home/icon-check.svg) no-repeat left center / 18px 18px;
}

/* Feature cards: swipe sideways on small screens. */
.rp-feature-cards {
	gap: 20px;
	align-items: stretch !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 12px;
	margin-block: clamp(48px, 7vw, 96px) !important;
	scrollbar-color: var(--wp--preset--color--primary) transparent;
}

.rp-feature-card {
	flex: 0 0 min(340px, 82vw);
	scroll-snap-align: start;
	padding: 32px 28px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--custom--border--subtle);
	border-radius: 24px;
	box-sizing: border-box;
}

.rp-feature-card__icon { margin: 0 0 1.2rem !important; }

.rp-feature-card__icon img { width: 48px; height: 48px; }

.rp-feature-card h3 { margin: 0 0 0.6rem; font-size: var(--wp--preset--font-size--large); }

.rp-feature-card p { margin: 0; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); line-height: 1.6; }

/* Events (inc/events.php): quarter "ruler" as on the current site. */
#rp-events > * { max-width: 1240px; }

#rp-events .rp-home-title { font-size: clamp(2rem, 3.6vw, 3rem) !important; }

.rp-events { margin-top: var(--wp--preset--spacing--40); }

.rp-events__tabs {
	position: relative;
	display: flex;
	max-width: 620px;
	margin: 0 auto var(--wp--preset--spacing--40);
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}

.rp-events__tabs::-webkit-scrollbar { display: none; }

/* Room at both ends, so the first and last quarter can sit in the middle. */
.rp-events__tabs::before,
.rp-events__tabs::after { content: ""; flex: 0 0 244px; }

.rp-events__tabs button {
	flex: 0 0 132px;
	padding: 0 0 28px;
	border: 0;
	background:
		linear-gradient(rgba(217, 217, 217, 0.9), rgba(217, 217, 217, 0.9)) center bottom / 2px 16px no-repeat,
		repeating-linear-gradient(90deg, rgba(217, 217, 217, 0.55) 0 1px, transparent 1px 22px) 0 100% / 100% 5px no-repeat,
		repeating-linear-gradient(90deg, rgba(217, 217, 217, 0.55) 0 1px, transparent 1px 22px) 11px 100% / 100% 10px no-repeat;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 1.05rem;
	cursor: pointer;
	white-space: nowrap;
}

.rp-events__tabs button[aria-selected="true"] { color: var(--wp--preset--color--primary); }

.rp-events__tabs button:focus-visible { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 2px; }

.rp-events__list { margin: 0; padding: 0; list-style: none; }

.rp-events__list li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.3rem 1.4rem;
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--wp--custom--border--subtle);
}

.rp-events__list li.is-past { opacity: 0.6; }

.rp-events__date { flex: 0 0 140px; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }

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

.rp-events__title { font-size: 1.2rem; font-weight: 400; color: var(--wp--preset--color--contrast); }

.rp-events__title a { color: inherit; text-decoration: none; }

.rp-events__title a:hover { text-decoration: underline; }

.rp-events__badge {
	margin-left: 0.6rem;
	padding: 0.15rem 0.6rem;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: var(--wp--custom--radius--pill);
	background: #c8474c;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	vertical-align: middle;
}

.rp-events__note { display: block !important; color: var(--wp--preset--color--muted); }

@media (max-width: 600px) {
	.rp-events__date { flex-basis: 100%; }
}

/* Customer stories. */
/* The hexagons behind the stories, soft and faded at every edge (as on the
   current site), not cut off by the section. */
.rp-home-customers { position: relative; }

.rp-home-customers::before {
	content: "";
	position: absolute;
	top: 40px;
	left: 50%;
	z-index: 0;
	width: min(820px, 100%);
	height: 900px;
	transform: translateX(-50%);
	background: url(../images/home/hexagons.webp) no-repeat center top / contain;
	opacity: 0.45;
	-webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 45%, #000 55%, transparent 100%);
	mask-image: radial-gradient(ellipse 50% 50% at 50% 45%, #000 55%, transparent 100%);
	pointer-events: none;
}

.rp-home-customers > * { position: relative; z-index: 1; }

.rp-quotes { gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60); margin-top: var(--wp--preset--spacing--50) !important; }

@media (max-width: 781px) { .rp-quotes { grid-template-columns: 1fr !important; } }

.rp-quote {
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 0 24px;
	align-content: start;
}

.rp-quote > * { margin: 0 !important; grid-column: 2; }

.rp-quote__logo { grid-column: 1 !important; grid-row: 1 / span 2; }

.rp-quote__logo img { width: 110px; max-height: 56px; object-fit: contain; object-position: left top; }

.rp-quote__text { color: var(--wp--preset--color--primary-light); font-size: var(--wp--preset--font-size--small); line-height: 1.6; }

.rp-quote__author { margin-top: 1rem !important; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }

.rp-quote__author strong { display: inline-block; margin-bottom: 0.15rem; color: var(--wp--preset--color--contrast); font-size: 1.05rem; font-weight: 500; }

@media (max-width: 560px) {
	.rp-quote { grid-template-columns: 1fr; }
	.rp-quote > *, .rp-quote__logo { grid-column: 1 !important; grid-row: auto; }
	.rp-quote__logo { margin-bottom: 0.8rem !important; }
}

.rp-more-quotes { margin-top: var(--wp--preset--spacing--50) !important; }

.rp-more-quotes summary {
	display: table;
	margin: 0 auto;
	padding: 0.6rem 1.2rem;
	border: 1px solid var(--wp--custom--border--subtle);
	border-radius: var(--wp--custom--radius--pill);
	cursor: pointer;
	list-style: none;
}

.rp-more-quotes summary::-webkit-details-marker { display: none; }

.rp-more-quotes[open] summary { display: none; }

/* Free for small teams. */
.rp-home-smb__icon { margin: 0 auto !important; text-align: center; }

.rp-home-smb__icon img { width: 96px; height: auto; }

.rp-home-smb .wp-block-buttons,
.rp-home-cta .wp-block-buttons { margin-top: var(--wp--preset--spacing--40); }

/* Closing CTA with the mascot: the same soft glow as the current site (a
   blurred ellipse, turned upside down, at 40%), fading out before the top. */
.rp-home-cta {
	position: relative;
	margin-top: 0 !important;
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
	overflow: hidden;
}

.rp-home-cta::before {
	content: "";
	position: absolute;
	top: -350px;
	left: 50%;
	z-index: 0;
	width: 1800px;
	height: 1200px;
	transform: translateX(-50%) rotate(180deg);
	background: url(../images/home/glow.svg) no-repeat center / 100% 100%;
	opacity: 0.4;
	pointer-events: none;
}

.rp-home-cta > * { position: relative; z-index: 1; }

.rp-home-cta__mascot { margin: 0 auto -1rem !important; text-align: center; }

.rp-home-cta__mascot img { width: min(400px, 80vw); height: auto; filter: saturate(120%); }

/* ==========================================================================
   Try now page (patterns/try-now.php), same layout as the static /try-now/.
   ========================================================================== */

.rp-try,
.rp-try-trust {
	--rp-try-line: rgba(169, 170, 221, 0.18);
	--rp-try-line-strong: rgba(169, 170, 221, 0.35);
	--rp-try-accent-2: #a495ff;
}

.rp-try {
	margin-top: 0 !important;
	padding-top: var(--wp--preset--spacing--60);
}

.rp-try > .rp-try-cards,
.rp-try > .rp-try-preview,
.rp-try > .rp-try-compare { max-width: 920px; }

/* Hero */
.rp-try-hero { text-align: center; }
.rp-try-hero > * { margin-inline: auto; }
.rp-try-hero .is-style-eyebrow { color: var(--rp-try-accent-2); font-size: 0.95rem; letter-spacing: 0.01em; text-transform: none; }
.rp-try-title {
	max-width: 680px;
	margin-top: 0.85rem !important;
	font-size: clamp(2.25rem, 4.6vw, 3.25rem) !important;
	font-weight: 800;
	line-height: 1.08;
}
.rp-try-subtitle { max-width: 640px; color: var(--wp--preset--color--muted); font-size: 1.125rem; line-height: 1.55; }
.rp-try-learn { margin-top: 1.1rem !important; font-size: 0.95rem; }
.rp-try-learn a {
	color: var(--rp-try-accent-2);
	text-decoration: none;
	border-bottom: 1px solid rgba(164, 149, 255, 0.4);
	padding-bottom: 1px;
}
.rp-try-learn a:hover { color: var(--wp--preset--color--contrast); border-bottom-color: currentColor; }

/* Fork line (inc/try-now.php) */
.rp-try-fork { max-width: 780px; margin: 0 auto !important; padding-top: 34px; }
.rp-try-fork svg { display: block; width: 100%; height: auto; }
.rp-try-fork__path {
	fill: none;
	stroke: var(--rp-try-line-strong);
	stroke-width: 1.5;
	stroke-dasharray: 600;
	stroke-dashoffset: 600;
	animation: rp-try-draw 1.1s ease-out 0.15s forwards;
}
@keyframes rp-try-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .rp-try-fork__path { animation: none; stroke-dashoffset: 0; } }

/* The two cards */
.rp-try-cards { gap: 28px; margin-top: -2px !important; }
.rp-try-card {
	gap: 0;
	padding: 34px 32px 30px;
	border: 1px solid transparent;
	border-radius: 20px;
	background:
		linear-gradient(var(--wp--preset--color--surface), var(--wp--preset--color--surface)) padding-box,
		linear-gradient(to bottom right, rgba(169, 170, 221, 0.32), rgba(169, 170, 221, 0.06) 50%, rgba(169, 170, 221, 0.22)) border-box;
}
.rp-try-card > * { margin: 0; }
.rp-try-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 20px !important;
	border-radius: 12px;
	background: rgba(128, 112, 255, 0.14);
}
.rp-try-card__icon img { width: 22px; height: 22px; }
.rp-try-card h2 { margin-bottom: 6px; font-size: 1.375rem; font-weight: 700; line-height: 1.25; }
.rp-try-card__meta { margin-bottom: 16px !important; color: var(--rp-try-accent-2); font-size: 0.85rem; font-weight: 600; }
.rp-try-card__desc { margin-bottom: 20px !important; color: var(--wp--preset--color--muted); font-size: 0.95rem; line-height: 1.55; }
.rp-try-card__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 26px !important;
	padding: 0;
	list-style: none;
}
.rp-try-card__list li {
	position: relative;
	padding-left: 25px;
	color: var(--wp--preset--color--muted);
	font-size: 0.9rem;
	line-height: 1.4;
}
.rp-try-card__list li::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 0;
	width: 15px;
	height: 15px;
	background: var(--rp-try-accent-2);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 L6.5 12 L13 4' fill='none' stroke='%23000' stroke-width='1.8'/%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 16 16'%3E%3Cpath d='M3 8.5 L6.5 12 L13 4' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rp-try-card__cta { margin-top: auto !important; }
.rp-try-card__cta .wp-block-button { width: 100%; }
.rp-try-card__cta .wp-block-button__link {
	display: block;
	width: 100%;
	padding: 13px 22px;
	font-size: 1rem;
	font-weight: 600;
	text-align: center;
}
.rp-try-card__cta .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: #9284ff; }
.rp-try-card__cta .is-style-outline .wp-block-button__link:hover {
	border-color: var(--rp-try-accent-2);
	background: rgba(128, 112, 255, 0.08);
}

/* Small grey labels above the previews, the table and the logos */
.rp-try-label { margin-bottom: 18px !important; color: rgba(255, 255, 255, 0.48); font-size: 0.875rem; font-weight: 500; }

/* Sandbox previews */
.rp-try-preview { margin-top: 48px !important; }
.rp-try-preview > * { max-width: none !important; }
.rp-try-shots { gap: 18px; }
.rp-try-shot {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	margin: 0;
	border: 1px solid var(--rp-try-line);
	border-radius: 14px;
	background: var(--wp--preset--color--surface);
	transition: border-color 0.15s ease, transform 0.15s ease;
}
.rp-try-shot:hover { border-color: var(--rp-try-accent-2); transform: translateY(-2px); }
.rp-try-shot img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 8 / 5;
	object-fit: cover;
	object-position: left top;
	border-bottom: 1px solid var(--rp-try-line);
}
.rp-try-shot figcaption {
	margin: 0;
	padding: 12px 14px 14px;
	color: var(--wp--preset--color--muted);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.4;
	text-align: left;
}
.rp-try-shot:hover figcaption { color: var(--wp--preset--color--contrast); }

/* Comparison table */
.rp-try-compare { margin-top: 56px !important; }
.rp-try-compare > * { max-width: none !important; }
.rp-try-compare__table { margin: 0; }
.rp-try-compare__table table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.rp-try-compare__table th,
.rp-try-compare__table td {
	padding: 14px 16px;
	border: 0;
	border-bottom: 1px solid var(--rp-try-line);
	text-align: left;
}
.rp-try-compare__table thead { border: 0; }
.rp-try-compare__table th { color: rgba(255, 255, 255, 0.48); font-size: 0.8rem; font-weight: 500; }
.rp-try-compare__table td { color: var(--wp--preset--color--contrast); font-weight: 500; }
.rp-try-compare__table td:first-child,
.rp-try-compare__table th:first-child { width: 34%; color: var(--wp--preset--color--muted); font-weight: 400; }
.rp-try-compare__table tbody tr:last-child td { border-bottom: 0; }

/* Secondary links */
.rp-try-links { flex-direction: column; gap: 14px; max-width: 640px; margin-top: 42px !important; }
.rp-try-links__item { margin: 0; font-size: 0.9rem; text-align: center; }
.rp-try-links a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	border-bottom: 1px solid var(--rp-try-line-strong);
	padding-bottom: 1px;
}
.rp-try-links a:hover { color: var(--wp--preset--color--contrast); }

/* Customer logos */
.rp-try-trust { margin-top: 70px !important; padding-top: 34px; border-top: 1px solid var(--rp-try-line); }
.rp-try-trust .rp-try-label { margin-bottom: 0 !important; }
.rp-try-trust .rp-logo-band { border-bottom: 0; margin-top: 0 !important; padding-top: 26px !important; padding-bottom: 60px !important; }
.rp-try-trust .rp-logo-band::before { display: none; }
.rp-try-trust .rp-logos { justify-content: center !important; gap: 26px 52px; }
.rp-try-trust .rp-logos img { width: auto; max-width: 150px; height: clamp(22px, 2.4vw, 34px); object-fit: contain; opacity: 0.72; }

@media (max-width: 760px) {
	.rp-try-fork { display: none; }
	.rp-try-cards { grid-template-columns: 1fr !important; gap: 18px; margin-top: 36px !important; }
	.rp-try-card { padding: 28px 22px 24px; }
	.rp-try-preview { margin-top: 36px !important; }
	.rp-try-shots { grid-template-columns: 1fr !important; gap: 10px; }
	.rp-try-shot { flex-direction: row; align-items: center; }
	.rp-try-shot a { flex: 0 0 42%; }
	.rp-try-shot img { border-bottom: 0; border-right: 1px solid var(--rp-try-line); }
	.rp-try-shot figcaption { padding: 10px 14px; }
	.rp-try-compare__table th,
	.rp-try-compare__table td { padding: 12px 10px; }
	.rp-try-trust .rp-logos { gap: 20px 26px; }
	.rp-try-trust .rp-logos img { max-width: 96px; height: 22px; }
}

/* ==========================================================================
   Legal pages (privacy, cookie policy, DPA, terms, SLA): content converted
   from the static pages, same look.
   ========================================================================== */

.rp-legal-toc,
.rp-legal-toc ul { list-style: none; padding-left: 0; }
.rp-legal-toc { margin-bottom: 2rem !important; }
.rp-legal-toc ul { margin: 0.4rem 0 0.6rem; padding-left: 1.25rem; }
.rp-legal-toc li { margin-bottom: 0.35rem; }
.rp-legal-toc a { text-decoration: none; }
.rp-legal-toc a:hover { text-decoration: underline; }

.rp-legal-clauses { list-style: none; padding-left: 1.5rem; }
.rp-legal-clauses > li { margin-bottom: 0.9rem; }
.rp-legal-clauses .rp-legal-clauses { margin-top: 0.9rem; }

/* Grid tables (DPA, SLA): scroll sideways on phones. */
.wp-block-table.rp-legal-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.25rem 0 1.5rem; }
.rp-legal-table table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 0.95rem; line-height: 1.55; }
.rp-legal-table th,
.rp-legal-table td { padding: 12px 14px; border: 1px solid rgba(169, 170, 221, 0.28); text-align: left; vertical-align: top; }
.rp-legal-table thead { border: 0; }
.rp-legal-table th { background: rgba(169, 170, 221, 0.1); font-weight: 600; }
.rp-legal-table tbody tr:nth-child(even) td { background: rgba(169, 170, 221, 0.04); }

/* Cookie tables: row lines only; stacked on phones. */
.wp-block-table.rp-cookie-table { margin: 1.1rem 0 1.75rem; }
.rp-cookie-table table { width: 100%; border-collapse: collapse; font-size: 0.9rem; text-align: left; }
.rp-cookie-table thead { border: 0; }
.rp-cookie-table th,
.rp-cookie-table td { padding: 12px 14px; border: 0; border-bottom: 1px solid rgba(169, 170, 221, 0.18); vertical-align: top; }
.rp-cookie-table th { color: var(--wp--preset--color--contrast); font-weight: 600; border-bottom-color: rgba(169, 170, 221, 0.35); }
.rp-cookie-table td { color: var(--wp--preset--color--muted); }
.rp-cookie-table tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 760px) {
	.rp-cookie-table table,
	.rp-cookie-table tbody,
	.rp-cookie-table tr,
	.rp-cookie-table td { display: block; width: 100%; box-sizing: border-box; }
	.rp-cookie-table thead { display: none; }
	.rp-cookie-table tr { margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid rgba(169, 170, 221, 0.25); }
	.rp-cookie-table td { padding: 4px 0; border-bottom: 0; }
	.rp-cookie-table td:first-child { color: var(--wp--preset--color--contrast); font-weight: 600; }
}
