/**
 * macOS launch (inc/macos-launch.php). Only loaded while the launch is live
 * (the macOS page is published, or ?rp_macos_preview=1 for editors).
 */

/* macOS launch offer bar on /pricing/ (inc/macos-launch.php), under the
   calculator. Until 1 June 2027. */
.rp-pricing-calc:has(.rp-macos-offer) { flex-wrap: wrap; row-gap: 32px; }
.rp-macos-offer {
	box-sizing: border-box;
	/* A full row inside the calculator, as wide as the fields (440px), the gap (72px) and the plan card (max 520px). */
	flex: 0 0 100%;
	max-width: calc(440px + 72px + 520px);
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0;
	padding: 20px 24px;
	border: 1px solid color-mix(in srgb, #7c6cff 45%, transparent);
	border-radius: 16px;
	background: linear-gradient(100deg, rgba(64, 164, 255, 0.14), rgba(124, 108, 255, 0.18) 55%, rgba(124, 108, 255, 0.06));
}
.rp-macos-offer__icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	background: rgba(10, 8, 30, 0.55);
	color: #fff;
}
.rp-macos-offer__text { flex: 1; min-width: 0; }
.rp-macos-offer__text p { margin: 0; }
.rp-macos-offer__title { font-weight: 700; color: #fff; }
.rp-macos-offer__lead { margin-top: 4px !important; color: rgba(194, 196, 222, 1); font-size: 0.95rem; }
.rp-macos-offer__link { flex-shrink: 0; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.rp-macos-offer__link:hover { color: #b9b0ff; }
.rp-new-pill {
	display: inline-block;
	margin-right: 6px;
	padding: 2px 10px;
	border-radius: 999px;
	background: linear-gradient(90deg, #40a4ff, #7c6cff);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	vertical-align: 2px;
}
@media (max-width: 781px) {
	.rp-macos-offer { flex-wrap: wrap; }
	.rp-macos-offer__link { width: 100%; padding-left: 72px; }
}

/* macOS launch (inc/macos-launch.php): only shown once the macOS page is published. */
.rp-new-pill--light { background: #fff; color: #3b2f9e; }
.rp-new-pill--sm { margin: 0 0 0 8px; padding: 1px 8px; font-size: 0.62rem; vertical-align: 1px; }
.rp-new-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 16px 5px 6px;
	border: 1px solid color-mix(in srgb, #7c6cff 60%, transparent);
	border-radius: 999px;
	background: rgba(124, 108, 255, 0.1);
	color: #fff !important;
	font-size: 0.95rem;
	text-decoration: none !important;
}
.rp-new-link .rp-new-pill { margin: 0; }
.rp-new-link:hover { border-color: #7c6cff; background: rgba(124, 108, 255, 0.2); }

/* NEW bar above the header, all pages. */
.rp-newbar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 56px;
	background: linear-gradient(90deg, #3d8bf2 0%, #6a6cf6 50%, #8b6cff 100%);
	color: #fff;
	font-size: 0.95rem;
	line-height: 1.4;
	text-align: center;
}
.rp-newbar__text { margin: 0; }
.rp-newbar__text strong { font-weight: 600; }
.rp-newbar__link { margin-left: 8px; color: #fff !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.rp-newbar__close {
	position: absolute;
	top: 50%;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
}
.rp-newbar__close:hover,
.rp-newbar__close:focus-visible { background: rgba(255, 255, 255, 0.35); }
.rp-newbar-closed .rp-newbar { display: none; }
@media (max-width: 900px) {
	.rp-newbar { justify-content: flex-start; padding: 10px 52px 10px 16px; text-align: left; }
	.rp-newbar__long { display: none; }
	.rp-newbar__link { display: inline-block; margin: 4px 0 0; }
	.rp-newbar__text .rp-new-pill { margin-right: 4px; }
}

/* Front page: NEW pill in the hero and the Windows + Mac section. */
.rp-home-hero__new { margin: 0 0 1.25rem !important; }
.rp-home-macos .rp-home-intro { max-width: 760px; margin-inline: auto; }
.rp-home-macos__graphic { max-width: 560px; margin: 2rem auto 1.5rem !important; }
.rp-home-macos__graphic img { width: 100%; height: auto; }

/* Other pages. */
.rp-offer-mac { margin-top: 0.75rem !important; color: #fff; font-weight: 600; }
.rp-try-card__mac { margin: auto 0 0 !important; color: #fff; font-weight: 600; font-size: 0.95rem; }
.rp-try-card__mac + .rp-try-card__cta { margin-top: 14px !important; }
.rp-ipm-mac { margin-top: 0.5rem !important; }

/* Why Robopack? menu: NEW card under the MVP videos. */
.rp-nav__news {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	margin-top: 24px;
	padding: 18px 20px;
	border: 1px solid color-mix(in srgb, #7c6cff 55%, transparent);
	border-radius: 14px;
	background: rgba(124, 108, 255, 0.08);
	color: #fff;
	text-decoration: none;
}
.rp-nav__news:hover { border-color: #7c6cff; background: rgba(124, 108, 255, 0.16); }
.rp-nav__news .rp-new-pill { margin: 0 0 4px; }
.rp-nav__news-title { font-weight: 600; font-size: 1.05rem; }
.rp-nav__news-text { color: rgba(194, 196, 222, 1); font-size: 0.92rem; line-height: 1.5; }
.rp-nav__news-more { color: #b9b0ff; font-weight: 600; font-size: 0.92rem; }
