/* Rialto: offer comparison matrix. Brand tokens are redeclared rather than
   inherited, so the shortcode renders correctly on any page including ones
   outside the .rlt wrapper. */
.rlt-cmp {
	--bg: #0a0b0f;
	--surface: #14171f;
	--surface-2: #1a1e28;
	--text: #f4f5f7;
	--muted: #99a2b2;
	--line: rgba(255, 255, 255, .08);
	--accent: #ffb347;
	--accent-2: #ff6a3d;
	--grad: linear-gradient(118deg, #ffb347 0%, #ff6a3d 100%);
	background: var(--bg);
	color: var(--text);
	font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	padding: clamp(48px, 7vw, 96px) 24px;
}
.rlt-cmp-head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.rlt-cmp-head h2 {
	font-family: 'Sora', sans-serif;
	font-size: clamp(1.7rem, 3.6vw, 2.6rem);
	font-weight: 800;
	letter-spacing: -.02em;
	margin: 0 0 14px;
	color: var(--text);
}
.rlt-cmp-head p { color: var(--muted); font-size: 1rem; line-height: 1.65; margin: 0; }

/* ---------- committed cost, stated before the detail ----------
   This is the argument the table then supports, so it leads. */
.rlt-cmp-summary {
	max-width: 1140px;
	margin: 0 auto clamp(20px, 3vw, 30px);
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: 14px;
	overflow: hidden;
}
.rlt-cmp-summary > div { background: var(--surface); padding: 15px 17px; }
.rlt-cmp-summary > div.is-best { background: rgba(255, 179, 71, .07); }
.rlt-cmp-sm-name {
	display: block;
	font-family: 'Sora', sans-serif;
	font-size: .78rem;
	font-weight: 700;
	color: var(--muted);
	margin-bottom: 5px;
}
.rlt-cmp-sm-fig {
	display: block;
	font-family: 'Sora', sans-serif;
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -.02em;
	font-variant-numeric: tabular-nums;
}
.rlt-cmp-summary > div.is-best .rlt-cmp-sm-fig {
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.rlt-cmp-sm-unit { display: block; color: var(--muted); font-size: .72rem; margin-top: 3px; }
@media (max-width: 700px) {
	.rlt-cmp-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rlt-cmp-sm-fig { font-size: 1.25rem; }
}

/* The table is wide by nature; let it scroll rather than crushing the columns.
   border-collapse must be `separate` for the sticky feature column below to
   paint: collapsed borders are shared, and a shared border cannot stick. */
.rlt-cmp-scroll { max-width: 1140px; margin: 0 auto; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rlt-cmp-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; }

.rlt-cmp-table th,
.rlt-cmp-table td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.rlt-cmp-table tbody th[scope="row"] {
	text-align: left;
	font-weight: 500;
	color: var(--text);
	font-size: .92rem;
	width: 34%;
	/* Without this the feature labels scroll away and the reader is left
	   looking at four ticks with nothing to attach them to. */
	position: sticky;
	left: 0;
	background: var(--bg);
	z-index: 2;
}
.rlt-cmp-table thead th:first-child {
	position: sticky;
	left: 0;
	background: var(--bg);
	z-index: 3;
}
.rlt-cmp-group th > span {
	position: sticky;
	left: 0;
	display: inline-block;
}

/* Column heads */
.rlt-cmp-table thead th { vertical-align: bottom; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.rlt-cmp-flag {
	display: inline-block;
	margin-bottom: 10px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--grad);
	color: #0a0b0f;
	font-size: .66rem;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
}
.rlt-cmp-name { display: block; font-family: 'Sora', sans-serif; font-size: .95rem; font-weight: 700; }
.rlt-cmp-price { display: block; font-family: 'Sora', sans-serif; font-size: 1.7rem; font-weight: 800; margin-top: 4px; }
.rlt-cmp-unit { display: block; color: var(--muted); font-size: .76rem; font-weight: 400; margin-top: 2px; }

/* Group headers break the list into arguments rather than one long wall. */
.rlt-cmp-group th {
	text-align: left;
	font-family: 'Sora', sans-serif;
	font-size: .68rem;
	font-weight: 800;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--accent);
	padding-top: 30px;
	border-bottom: 1px solid var(--line);
}

.rlt-cmp-yes { color: var(--accent); font-size: 1.15rem; font-weight: 700; }
.rlt-cmp-no { color: rgba(255, 255, 255, .22); font-size: 1.1rem; }
.rlt-cmp-note { color: var(--muted); font-size: .82rem; }

/* The recommended column is tinted the whole way down, so it reads as one
   object rather than as a highlighted header sitting above ordinary cells. */
.rlt-cmp-table .is-best { background: rgba(255, 179, 71, .06); }
.rlt-cmp-table thead th.is-best { border-radius: 14px 14px 0 0; }
.rlt-cmp-table tfoot td.is-best { border-radius: 0 0 14px 14px; border-bottom: 0; }

.rlt-cmp-table tfoot td { padding-top: 24px; border-bottom: 0; }
.rlt-cmp-table tfoot td.rlt-cmp-rowhead { position: sticky; left: 0; background: var(--bg); z-index: 2; }
.rlt-cmp-btn {
	display: inline-block;
	padding: 11px 20px;
	border-radius: 999px;
	border: 1px solid var(--line);
	color: var(--text);
	font-size: .85rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color .25s, transform .25s;
}
.rlt-cmp-btn:hover { border-color: rgba(255, 179, 71, .55); transform: translateY(-2px); }
.rlt-cmp-btn.is-primary { background: var(--grad); border-color: transparent; color: #0a0b0f; }

.rlt-cmp-foot {
	max-width: 720px;
	margin: clamp(24px, 4vw, 40px) auto 0;
	text-align: center;
	color: var(--muted);
	font-size: .9rem;
	line-height: 1.7;
}
.rlt-cmp-foot strong { color: var(--accent); }

@media (max-width: 640px) {
	.rlt-cmp-table tbody th[scope="row"] { font-size: .86rem; width: 40%; }
	.rlt-cmp-price { font-size: 1.4rem; }
}
