/**
 * Ryytas 2+1 Mix-and-Match Landing Page
 * BEM namespace: .r2p1-*
 * Brand: brown #825D44, coral #E97951, cream #FFFCF9, text #37352F
 */

/* Take over the page layout: hide sidebar, full-width main column */
body.r2p1-page .sidebar-container { display: none !important; }
body.r2p1-page .site-content,
body.r2p1-page .row .col-lg-9,
body.r2p1-page main.site-main {
	max-width: 100% !important;
	flex: 0 0 100% !important;
	width: 100% !important;
}
body.r2p1-page .entry-content,
body.r2p1-page .post-content {
	max-width: 100% !important;
	padding: 0 !important;
}

.r2p1-wrap {
	--r2p1-brown: #825D44;
	--r2p1-brown-dark: #6a4a36;
	--r2p1-coral: #E97951;
	--r2p1-coral-dark: #d6643d;
	--r2p1-cream: #FFFCF9;
	--r2p1-cream-2: #f5efe7;
	--r2p1-text: #37352F;
	--r2p1-muted: #6b6660;
	--r2p1-border: #e7ddd2;
	--r2p1-shadow: 0 6px 24px rgba(130, 93, 68, 0.10);

	box-sizing: border-box;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px 220px;
	color: var(--r2p1-text);
	font-family: inherit;
}

.r2p1-wrap *,
.r2p1-wrap *::before,
.r2p1-wrap *::after {
	box-sizing: border-box;
}

/* ====================== Hero ====================== */

.r2p1-hero {
	background: linear-gradient(135deg, var(--r2p1-brown) 0%, var(--r2p1-brown-dark) 100%);
	color: var(--r2p1-cream);
	padding: 64px 24px 72px;
	margin: 24px -16px 0;
	border-radius: 18px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.r2p1-hero::before,
.r2p1-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: var(--r2p1-coral);
	opacity: 0.12;
	pointer-events: none;
}
.r2p1-hero::before { width: 280px; height: 280px; top: -90px; right: -80px; }
.r2p1-hero::after  { width: 200px; height: 200px; bottom: -80px; left: -60px; }

.r2p1-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 720px;
	margin: 0 auto;
}

.r2p1-hero__badge {
	display: inline-block;
	background: var(--r2p1-coral);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 7px 16px;
	border-radius: 999px;
	margin-bottom: 18px;
}

.r2p1-hero__title {
	margin: 0 0 14px;
	font-size: clamp(28px, 5vw, 46px);
	line-height: 1.1;
	font-weight: 800;
	color: var(--r2p1-cream);
	letter-spacing: -0.01em;
}

.r2p1-hero__sub {
	margin: 0;
	font-size: clamp(15px, 1.7vw, 18px);
	opacity: 0.92;
	line-height: 1.5;
}

/* ====================== How-it-works ====================== */

.r2p1-steps {
	list-style: none;
	margin: -28px auto 36px;
	padding: 24px;
	max-width: 980px;
	background: var(--r2p1-cream);
	border: 1px solid var(--r2p1-border);
	border-radius: 14px;
	box-shadow: var(--r2p1-shadow);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	position: relative;
	z-index: 2;
}

.r2p1-steps__item {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--r2p1-text);
}

.r2p1-steps__num {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--r2p1-brown);
	color: var(--r2p1-cream);
	font-weight: 800;
	font-size: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.r2p1-steps__txt {
	flex: 1;
	font-weight: 500;
}

/* ====================== Grid ====================== */

.r2p1-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 22px;
	margin-bottom: 40px;
}

/* ====================== Card ====================== */

.r2p1-card {
	background: #fff;
	border: 2px solid var(--r2p1-border);
	border-radius: 14px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
	position: relative;
}

.r2p1-card[data-r2p1-active="1"] {
	border-color: var(--r2p1-coral);
	box-shadow: 0 8px 24px rgba(233, 121, 81, 0.18);
	transform: translateY(-2px);
}

.r2p1-card[data-r2p1-active="1"]::after {
	content: "✓";
	position: absolute;
	top: 12px;
	right: 12px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--r2p1-coral);
	color: #fff;
	font-weight: 800;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(233, 121, 81, 0.4);
}

.r2p1-card__img {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 10px;
	background: var(--r2p1-cream-2);
	margin-bottom: 14px;
}

.r2p1-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.r2p1-card__title {
	margin: 0 0 8px;
	font-size: 16px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--r2p1-text);
	min-height: 2.6em;
}

.r2p1-card__price {
	font-size: 17px;
	font-weight: 800;
	color: var(--r2p1-brown);
	margin-bottom: 10px;
}

.r2p1-card__price .amount,
.r2p1-card__price bdi {
	color: inherit;
}

.r2p1-card__excerpt {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--r2p1-muted);
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ====================== Stepper ====================== */

.r2p1-card__stepper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	background: var(--r2p1-cream-2);
	border-radius: 999px;
	padding: 6px;
	margin-top: auto;
}

.r2p1-wrap .r2p1-step,
button.r2p1-step {
	width: 44px !important;
	height: 44px !important;
	border-radius: 50% !important;
	border: 0 !important;
	background: var(--r2p1-brown) !important;
	color: #fff !important;
	font-size: 22px !important;
	line-height: 1 !important;
	font-weight: 800 !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: background-color 0.15s, transform 0.1s !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
	-webkit-tap-highlight-color: transparent !important;
	padding: 0 !important;
	text-transform: none !important;
	min-width: 0 !important;
	letter-spacing: 0 !important;
}

.r2p1-wrap .r2p1-step:hover:not(:disabled),
button.r2p1-step:hover:not(:disabled) {
	background: var(--r2p1-coral) !important;
	color: #fff !important;
}

.r2p1-wrap .r2p1-step:active:not(:disabled),
button.r2p1-step:active:not(:disabled) {
	transform: scale(0.94) !important;
}

.r2p1-wrap .r2p1-step--minus:disabled,
button.r2p1-step--minus:disabled {
	background: #d8cfc4 !important;
	color: #fff !important;
	cursor: not-allowed !important;
	box-shadow: none !important;
}

.r2p1-step__qty {
	font-size: 20px;
	font-weight: 800;
	color: var(--r2p1-text);
	min-width: 28px;
	text-align: center;
}

/* ====================== Sticky footer ====================== */

.r2p1-footer {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--r2p1-cream);
	border-top: 2px solid var(--r2p1-border);
	box-shadow: 0 -8px 28px rgba(55, 53, 47, 0.12);
	padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
	z-index: 9990;
}

.r2p1-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 24px;
	align-items: center;
}

/* ----- Summary (left) ----- */

.r2p1-footer__summary {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.r2p1-footer__progress {
	display: flex;
	align-items: center;
	gap: 14px;
}

.r2p1-footer__progress-track {
	flex: 1;
	height: 8px;
	background: var(--r2p1-cream-2);
	border-radius: 999px;
	overflow: hidden;
	max-width: 240px;
}

.r2p1-footer__progress-fill {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--r2p1-coral) 0%, var(--r2p1-coral-dark) 100%);
	border-radius: 999px;
	transition: width 0.3s ease;
}

.r2p1-footer__progress-label {
	font-size: 14px;
	color: var(--r2p1-muted);
	white-space: nowrap;
}

.r2p1-footer__progress-label strong {
	color: var(--r2p1-brown);
	font-size: 18px;
	font-weight: 800;
}

.r2p1-footer__totals {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	font-size: 14px;
}

.r2p1-footer__totals[hidden] {
	display: none;
}

.r2p1-footer__line {
	display: flex;
	gap: 6px;
	color: var(--r2p1-muted);
}

.r2p1-footer__line span:last-child {
	font-weight: 700;
	color: var(--r2p1-text);
}

.r2p1-footer__line--discount span:last-child {
	color: var(--r2p1-coral);
}

.r2p1-footer__line--total span:last-child {
	color: var(--r2p1-brown);
	font-size: 16px;
	font-weight: 800;
}

/* ----- CTA (right) ----- */

.r2p1-footer__cta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
}

.r2p1-footer__hint {
	margin: 0;
	font-size: 12px;
	color: var(--r2p1-muted);
	font-weight: 500;
}

.r2p1-wrap .r2p1-cta,
button.r2p1-cta {
	background: var(--r2p1-coral) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 16px 36px !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	cursor: pointer !important;
	transition: background-color 0.15s, transform 0.1s, box-shadow 0.15s !important;
	letter-spacing: 0.02em !important;
	box-shadow: 0 6px 18px rgba(233, 121, 81, 0.35) !important;
	min-width: 220px !important;
	text-align: center !important;
	text-transform: none !important;
	line-height: 1.2 !important;
}

.r2p1-wrap .r2p1-cta:hover:not(:disabled),
button.r2p1-cta:hover:not(:disabled) {
	background: var(--r2p1-coral-dark) !important;
	box-shadow: 0 8px 22px rgba(233, 121, 81, 0.45) !important;
	color: #fff !important;
}

.r2p1-wrap .r2p1-cta:active:not(:disabled),
button.r2p1-cta:active:not(:disabled) {
	transform: scale(0.98) !important;
}

.r2p1-wrap .r2p1-cta:disabled,
button.r2p1-cta:disabled {
	background: #c9bfb3 !important;
	color: #fff !important;
	cursor: not-allowed !important;
	box-shadow: none !important;
}

.r2p1-wrap .r2p1-cta--loading,
button.r2p1-cta--loading {
	opacity: 0.85 !important;
	pointer-events: none !important;
}

/* ====================== Homepage hero banner ====================== */

.r2p1-home-hero {
	display: flex;
	justify-content: center;
	padding: 28px 16px 32px;
}

.r2p1-home-hero__inner {
	max-width: 540px;
	width: 100%;
	background: #fff;
	border: 1.5px solid #e7ddd2;
	border-radius: 16px;
	padding: 32px 28px;
	text-align: center;
	box-shadow: 0 4px 20px rgba(130, 93, 68, 0.08);
}

.r2p1-home-hero__badge {
	display: inline-block;
	background: #825D44;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 5px 14px;
	border-radius: 999px;
	margin-bottom: 14px;
}

.r2p1-home-hero__title {
	margin: 0 0 8px;
	font-size: clamp(22px, 5vw, 30px);
	line-height: 1.15;
	font-weight: 800;
	color: #37352F;
	letter-spacing: -0.01em;
}

.r2p1-home-hero__sub {
	margin: 0 0 20px;
	font-size: 14px;
	color: #6b6660;
	line-height: 1.5;
}

.r2p1-home-hero__cta {
	display: inline-block;
	background: #E97951;
	color: #fff !important;
	border: 0;
	border-radius: 999px;
	padding: 13px 32px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	letter-spacing: 0.01em;
	box-shadow: 0 4px 14px rgba(233, 121, 81, 0.3);
	transition: background-color 0.15s, transform 0.1s, box-shadow 0.15s;
}

.r2p1-home-hero__cta:hover {
	background: #d6643d;
	box-shadow: 0 6px 18px rgba(233, 121, 81, 0.4);
	color: #fff !important;
	transform: translateY(-1px);
}

.r2p1-home-hero__cta:active {
	transform: scale(0.98);
}

@media (max-width: 640px) {
	.r2p1-home-hero {
		padding: 20px 12px 24px;
	}

	.r2p1-home-hero__inner {
		padding: 24px 20px;
	}
}

/* ====================== Responsive ====================== */

@media (max-width: 900px) {
	.r2p1-steps {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 20px;
	}

	.r2p1-footer__inner {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.r2p1-footer__cta {
		align-items: stretch;
	}

	.r2p1-cta {
		width: 100%;
		min-width: 0;
	}

	.r2p1-footer__hint {
		text-align: center;
	}

	.r2p1-footer__progress-track {
		max-width: 100%;
	}
}

@media (max-width: 640px) {
	.r2p1-wrap {
		padding-bottom: 260px;
	}

	.r2p1-hero {
		padding: 44px 20px 56px;
		border-radius: 14px;
	}

	.r2p1-grid {
		grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
		gap: 14px;
	}

	.r2p1-card {
		padding: 12px;
	}

	.r2p1-card__title {
		font-size: 14px;
		min-height: 2.4em;
	}

	.r2p1-card__price {
		font-size: 15px;
	}

	.r2p1-card__excerpt {
		display: none;
	}

	.r2p1-step {
		width: 38px;
		height: 38px;
		font-size: 20px;
	}

	.r2p1-cta {
		padding: 14px 22px;
		font-size: 15px;
	}

	.r2p1-footer__totals {
		gap: 12px;
		font-size: 13px;
	}
}
