/* Homepage sections (18 Oct 2026): problem comparison, step timeline, service system.
   Typographic rules carry the body:not(#rr) main prefix so they beat mobile-type.css
   and type-desktop.css (which size every main h3 with !important). */

.rr-problem-cmp, .rr-problem-points, .rr-timeline, .rr-system-list,
.rr-problem-cmp__rows { list-style: none; margin: 0; padding: 0; }

/* ======================= 1. Problem: comparison panel ======================= */
.rr-problem-cmp {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: #14222A;
	border: 1px solid #283C46;
	border-radius: 14px;
}
.rr-problem-cmp__col { padding: 28px 32px; min-width: 0; }
.rr-problem-cmp__col + .rr-problem-cmp__col { border-left: 1px solid #283C46; }
body:not(#rr) main .rr-problem-cmp__label {
	margin: 0 0 8px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 20px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
	color: #C3FF32;
}
.rr-problem-cmp__rows { margin: 0 !important; }
/* Fixed row height keeps the two columns level so the eye reads across. */
.rr-problem-cmp__row {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 56px;
	margin: 0 !important;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.95rem;
	color: #F6F8F8;
	white-space: nowrap;
}
.rr-problem-cmp__row + .rr-problem-cmp__row { border-top: 1px solid #283C46; }
.rr-problem-cmp__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #55666e; }
.rr-problem-cmp__dot--on { background: #C3FF32; box-shadow: 0 0 0 4px rgba(195, 255, 50, 0.15); }
.rr-problem-cmp__name { overflow: hidden; text-overflow: ellipsis; }
.rr-problem-cmp__status { margin-left: auto; font-size: 0.875rem; color: #8a979d; }
.rr-problem-cmp__status--on { color: #C3FF32; font-weight: 600; }

.rr-problem-cmp__row--bar {
	display: grid;
	grid-template-columns: 8.5rem 1fr 2.75rem;
	gap: 16px;
}
.rr-problem-cmp__row--bar .rr-problem-cmp__status { text-align: right; }
.rr-problem-cmp__bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.rr-problem-cmp__bar-fill { display: block; height: 100%; border-radius: inherit; background: #C3FF32; }
.rr-problem-cmp__bar-fill--muted { background: #55666e; }

.rr-problem-points {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin-top: 48px !important;
}
.rr-problem-points__item { margin: 0 !important; }
body:not(#rr) main .rr-problem-points__title {
	margin: 0 0 8px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.0625rem !important;
	line-height: 1.3 !important;
	color: #F6F8F8;
}
body:not(#rr) main .rr-problem-points__text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: #C2CACD;
}

/* ======================= 2. Steps: timeline ======================= */
.rr-timeline {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}
.rr-timeline__item { position: relative; margin: 0 !important; min-width: 0; }
/* Connector: from the right edge of this node to the left edge of the next. */
.rr-timeline__line {
	position: absolute;
	top: 21px;
	left: 44px;
	width: calc(100% + 32px - 44px);
	height: 2px;
	background: #283C46;
}
.rr-timeline__node {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	box-sizing: border-box;
	border-radius: 50%;
	background: #14222A;
	border: 1px solid #C3FF32;
}
.rr-timeline__num {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1;
	color: #C3FF32;
}
body:not(#rr) main .rr-timeline__title {
	margin: 20px 0 8px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.125rem !important;
	line-height: 1.3 !important;
	color: #F6F8F8;
}
body:not(#rr) main .rr-timeline__text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: #C2CACD;
}

/* ======================= 3. Services: system diagram + list ======================= */
.rr-system-wrap {
	display: grid;
	grid-template-columns: 48fr 52fr;
	gap: 48px;
	align-items: center;
}
.rr-system {
	position: relative;
	width: 100%;
	max-width: 480px;
	aspect-ratio: 1;
	margin: 0 auto !important;
}
.rr-system__map { position: absolute; inset: 0; width: 100%; height: 100%; }
.rr-system-fig { margin: 0 !important; position: sticky; top: 110px; }
.rr-system-wrap { align-items: start !important; }
body:not(#rr) main .rr-system--dense .rr-system__node { font-size: 0.6875rem; padding: 6px 11px; }
.rr-system--dense .rr-system__core { width: 20.8%; font-size: 0.6875rem; }
.rr-system__legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 22px;
	margin: 18px 0 0 !important;
	padding: 0;
	list-style: none;
}
.rr-system__legend li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 !important;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #55666e;
}
.rr-system__swatch { width: 12px; height: 12px; border-radius: 50%; }
.rr-system__swatch--lime { background: #E4F5B8; border: 1px solid rgba(150, 200, 20, 0.7); }
.rr-system__swatch--grey { background: #EEF1F2; border: 1px solid #C9D1D4; }
.rr-system__swatch--dark { background: #14222A; border: 1px solid #14222A; }
.rr-system__core {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 20.8%;
	aspect-ratio: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin: 0 !important;
	border-radius: 50%;
	background: #14222A;
	color: #F6F8F8;
	text-align: center;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.2;
	box-shadow: 0 8px 24px rgba(16, 26, 32, 0.18);
}
.rr-system__core span { max-width: 80%; }
body:not(#rr) main .rr-system__node {
	position: absolute;
	z-index: 2;
	transform: translate(-50%, -50%);
	margin: 0;
	padding: 7px 13px;
	border-radius: 999px;
	white-space: nowrap;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
/* Opaque tints (over the section grey) so spokes don't show through */
body:not(#rr) main .rr-system__node--lime {
	background: linear-gradient(rgba(195, 255, 50, 0.22), rgba(195, 255, 50, 0.22)), #F6F8F8;
	border: 1px solid rgba(150, 200, 20, 0.55);
	color: #1C2C34;
}
body:not(#rr) main .rr-system__node--grey { background: #EEF1F2; border: 1px solid #E0E5E7; color: #55666e; }
body:not(#rr) main .rr-system__node--dark { background: #14222A; border: 1px solid #14222A; color: #F6F8F8; }
body:not(#rr) main .rr-system__node.is-soon { border-style: dashed; opacity: 0.8; }
body:not(#rr) main .rr-system__node em { font-style: normal; font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; margin-left: 4px; }
body:not(#rr) main .rr-system__node:hover { border-color: #C3FF32; box-shadow: 0 0 0 2px rgba(195, 255, 50, 0.5); }

.rr-system-list { margin: 0 !important; border-top: 1px solid #E0E5E7; }
.rr-system-list > li { margin: 0 !important; border-bottom: 1px solid #E0E5E7; }
body:not(#rr) main .rr-system-list__row {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	align-items: center;
	gap: 20px;
	padding: 20px 12px;
	color: inherit;
	text-decoration: none;
	transition: background-color 0.15s ease;
}
body:not(#rr) main .rr-system-list__row:hover { background: rgba(195, 255, 50, 0.08); }
body:not(#rr) main .rr-system-list__row:focus-visible { outline: 2px solid #14222A; outline-offset: -2px; }
.rr-system-list__thumb {
	display: block;
	width: 56px;
	height: 56px;
	box-sizing: border-box;
	padding: 8px;
	border-radius: 10px;
	background: #1C2C34;
	object-fit: contain;
}
.rr-system-list__body { min-width: 0; }
body:not(#rr) main .rr-system-list .rr-chip { padding: 2px 8px; font-size: 0.625rem; border-radius: 8px; }
body:not(#rr) main .rr-system-list__title {
	margin: 6px 0 4px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.125rem !important;
	line-height: 1.3 !important;
	color: #14222A;
	text-decoration: underline 2px transparent;
	text-underline-offset: 4px;
	transition: text-decoration-color 0.15s ease;
}
body:not(#rr) main .rr-system-list__row:hover .rr-system-list__title { text-decoration-color: #C3FF32; }
.rr-system-list__text { display: block; font-size: 0.9375rem; line-height: 1.5; color: #4a5a62; }
/* Same chip as the old service cards, but not pushed down by their margin-top:auto */
body:not(#rr) main .rr-system-list .rr-price { margin: 0 !important; }
body:not(#rr) main .rr-system-list .rr-price--soon { background: transparent; border-style: dashed; }
.rr-system-list__row.is-soon { opacity: 0.75; }
span.rr-system-list__thumb { background: #1C2C34; }

/* ======================= Breakpoints ======================= */
@media (max-width: 940px) {
	.rr-system-wrap { grid-template-columns: 1fr; gap: 40px; }
	.rr-system-fig { position: static; }
}
@media (max-width: 781px) {
	.rr-problem-cmp { grid-template-columns: 1fr; }
	.rr-problem-cmp__col { padding: 22px 20px; }
	.rr-problem-cmp__col + .rr-problem-cmp__col { border-left: 0; border-top: 1px solid #283C46; }
	.rr-problem-points { grid-template-columns: 1fr; gap: 24px; margin-top: 36px !important; }

	/* Timeline turns vertical: line on the left, text beside each node */
	.rr-timeline { grid-template-columns: 1fr; gap: 40px; }
	.rr-timeline__item { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; }
	.rr-timeline__node { grid-row: 1 / span 2; }
	.rr-timeline__line { top: 44px; left: 21px; width: 2px; height: calc(100% - 44px + 40px); }
	body:not(#rr) main .rr-timeline__title { margin: 10px 0 6px; }

	.rr-system-fig { display: none; }
}
@media (max-width: 640px) {
	.rr-problem-cmp__row--bar { grid-template-columns: 7.5rem 1fr 2.5rem; gap: 12px; }
	body:not(#rr) main .rr-system-list__row { grid-template-columns: 48px 1fr; gap: 14px 16px; padding: 18px 4px; align-items: start; }
	.rr-system-list__thumb { width: 48px; height: 48px; }
	body:not(#rr) main .rr-system-list .rr-price { grid-column: 2; justify-self: start; }
}
