/**
 * Riva landing page section styles.
 *
 * Everything is prefixed rv- and scoped so it cannot collide with Elementor,
 * the theme, or the widget styles in riva.css. Band backgrounds and vertical
 * padding are left to the Elementor section settings; this file handles the
 * content inside each HTML widget.
 */

.rv-wrap {
	--rv-ink: #09090b;
	--rv-ink-2: #0f0f12;
	--rv-ink-3: #15151a;
	--rv-char: #1e1e24;
	--rv-line: rgba(201, 169, 97, 0.2);
	--rv-line-soft: rgba(255, 255, 255, 0.08);
	--rv-fog: #9b9ba4;
	--rv-fog-2: #6e6e77;
	--rv-chalk: #f6f5f2;
	--rv-gold: #c9a961;
	--rv-gold-hi: #e6cb90;
	--rv-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	--rv-body: "Inter", "Helvetica Neue", Arial, sans-serif;

	max-width: 1140px;
	margin-inline: auto;
	padding-inline: 20px;
	font-family: var(--rv-body);
	color: var(--rv-chalk);
	line-height: 1.6;
}

.rv-wrap * {
	box-sizing: border-box;
}

/* ---------- light bands ----------
   Added to .rv-wrap inside the widget markup rather than to the Elementor
   section, because the section CSS Classes field does not survive import on
   every Elementor version. The section still paints --rv-ink as its own
   background colour; this only re-points the tokens, so every component rule
   below is reused untouched.

   The one value that cannot simply invert is the gold. Brand gold #C9A961 on
   an off-white ground measures about 2:1, far under the 4.5:1 that body text
   and small labels need, so text gold darkens to #866A2D (about 5.3:1) while
   fills and borders keep the brand value. */
.rv-light {
	--rv-ink: #f4f2ed;
	--rv-ink-2: #ffffff;
	--rv-ink-3: #faf8f4;
	--rv-char: #d9d4c8;
	--rv-line: rgba(134, 106, 45, 0.3);
	--rv-line-soft: rgba(22, 22, 26, 0.12);
	--rv-fog: #56565f;
	--rv-fog-2: #6a6a74;
	--rv-chalk: #16161a;
	--rv-gold: #866a2d;
	--rv-gold-hi: #6d5523;
	--rv-gold-fill: #c9a961;
}

/* Solid buttons keep the brand gold behind near-black text; only the outlined
   variant follows the darkened text gold, since its colour is the label. */
.rv-light .rv-btn {
	background: var(--rv-gold-fill);
	border-color: var(--rv-gold-fill);
	color: #121008;
}

.rv-light .rv-btn:hover,
.rv-light .rv-btn:focus {
	background: #b89750;
	border-color: #b89750;
	color: #121008;
}

.rv-light .rv-btn--ghost {
	background: transparent;
	color: var(--rv-gold);
	border-color: var(--rv-gold);
}

.rv-light .rv-btn--ghost:hover,
.rv-light .rv-btn--ghost:focus {
	background: rgba(134, 106, 45, 0.08);
	color: var(--rv-gold-hi);
}

/* Cards sit on a tinted ground, so they need an edge to read as objects. */
.rv-light .rv-prob,
.rv-light .rv-pillar,
.rv-light .rv-inc,
.rv-light .rv-tier,
.rv-light .rv-level {
	border-color: rgba(22, 22, 26, 0.1);
}

.rv-light .rv-plan {
	border-color: var(--rv-gold-fill);
	background: linear-gradient(170deg, rgba(201, 169, 97, 0.16), var(--rv-ink-2) 48%);
	box-shadow: 0 1px 2px rgba(22, 22, 26, 0.04), 0 8px 24px rgba(22, 22, 26, 0.05);
}

.rv-light .rv-tier--2 {
	background: linear-gradient(170deg, rgba(201, 169, 97, 0.14), var(--rv-ink-2));
}

.rv-light .rv-tier--3 {
	background: linear-gradient(170deg, rgba(201, 169, 97, 0.26), var(--rv-ink-2) 70%);
	border-color: var(--rv-gold-fill);
}

.rv-light .rv-level:nth-child(1) {
	background: linear-gradient(90deg, rgba(201, 169, 97, 0.22), var(--rv-ink-2) 70%);
}

.rv-light .rv-tier--1 .rv-tier-name {
	color: #6b7076;
}

.rv-light .rv-tier--3 .rv-tier-name {
	color: #3e6584;
}

.rv-wrap h1,
.rv-wrap h2,
.rv-wrap h3,
.rv-wrap h4,
.rv-wrap h5 {
	font-family: var(--rv-display);
	text-wrap: balance;
	margin: 0;
	letter-spacing: -0.02em;
	line-height: 1.08;
	color: var(--rv-chalk);
}

.rv-wrap p {
	margin: 0;
}

.rv-gold {
	color: var(--rv-gold);
}

.rv-eyebrow {
	font-family: var(--rv-display);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--rv-gold);
	margin: 0 0 18px;
}

.rv-h2 {
	font-size: clamp(28px, 4.2vw, 46px);
	font-weight: 800;
	text-transform: uppercase;
}

.rv-lede {
	color: var(--rv-fog);
	font-size: clamp(15px, 1.5vw, 18px);
	max-width: 62ch;
	margin-top: 16px;
}

.rv-head {
	margin-bottom: clamp(32px, 4vw, 52px);
}

/* A second heading inside a band that already opened with one. */
.rv-head--sub {
	margin-top: clamp(48px, 5.5vw, 78px);
	margin-bottom: clamp(26px, 3vw, 38px);
}

.rv-head--sub + .rv-pillars {
	margin-top: 0;
}

.rv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--rv-display);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 14px 26px;
	border-radius: 2px;
	border: 1px solid var(--rv-gold);
	background: var(--rv-gold);
	color: #121008;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.18s, color 0.18s;
}

.rv-btn:hover,
.rv-btn:focus {
	background: var(--rv-gold-hi);
	border-color: var(--rv-gold-hi);
	color: #121008;
}

.rv-btn--ghost {
	background: transparent;
	color: var(--rv-gold);
}

.rv-btn--ghost:hover,
.rv-btn--ghost:focus {
	background: rgba(201, 169, 97, 0.1);
	color: var(--rv-gold-hi);
}

.rv-btn--sm {
	padding: 11px 18px;
	font-size: 11.5px;
}

.rv-btn--wide {
	width: 100%;
	padding: 17px 26px;
}

.rv-wrap a:focus-visible,
.rv-wrap button:focus-visible,
.rv-wrap summary:focus-visible {
	outline: 2px solid var(--rv-gold-hi);
	outline-offset: 3px;
}

/* ---------- nav ---------- */

.rv-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(9, 9, 11, 0.88);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--rv-line-soft);
}

.rv-nav .rv-wrap {
	display: flex;
	align-items: center;
	gap: 28px;
	padding-block: 14px;
}

/* The lockup is a bundled image rather than inline markup, so the asset can be
   swapped through the riva_platform_images filter without editing any widget.
   The link carries the aria-label, so the image itself is decorative. */
.rv-mark {
	display: block;
	text-decoration: none;
	flex: 0 0 auto;
	line-height: 0;
}

.rv-logo {
	display: block;
	width: clamp(132px, 14vw, 178px);
	aspect-ratio: 4.455 / 1;
	background-image: var(--rv-img-logo-light);
	background-repeat: no-repeat;
	background-position: left center;
	background-size: contain;
}

/* For any band that ends up on a light ground. */
.rv-on-light .rv-logo {
	background-image: var(--rv-img-logo-dark);
}

.rv-foot-grid .rv-mark {
	margin-bottom: 18px;
}

.rv-nav-links {
	display: flex;
	gap: 26px;
	margin-left: auto;
	font-size: 13.5px;
	color: var(--rv-fog);
}

.rv-nav-links a {
	text-decoration: none;
	color: inherit;
}

.rv-nav-links a:hover {
	color: var(--rv-gold);
}

/* ---------- hero ---------- */

.rv-hero-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: clamp(28px, 4vw, 56px);
	align-items: center;
}

.rv-tag {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	border: 1px solid var(--rv-line);
	border-radius: 999px;
	padding: 7px 16px;
	font-size: 11px;
	font-family: var(--rv-display);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--rv-gold);
}

.rv-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--rv-gold);
}

.rv-hero h1 {
	font-size: clamp(30px, 3.4vw, 54px);
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1.04;
	margin: 26px 0 0;
	max-width: 17ch;
}

/* Stacked, the headline has the full column, so it can carry more weight. */
@media (max-width: 1024px) {
	.rv-hero h1 {
		font-size: clamp(32px, 6vw, 56px);
	}
}

.rv-hero-sub {
	font-family: var(--rv-display);
	font-weight: 600;
	font-size: clamp(17px, 2.2vw, 24px);
	margin-top: 22px;
	letter-spacing: -0.01em;
}

.rv-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

/* ---------- hero stage ----------
   Four Dubai frames on a slow Ken Burns crossfade, with the platform's
   headline numbers cut in on the same 24s cycle. Pure CSS, no JS, no video. */

.rv-stage {
	position: relative;
	aspect-ratio: 16 / 11;
	overflow: hidden;
	border: 1px solid var(--rv-line);
	background: #0c0c0f;
	isolation: isolate;
}

.rv-stage::after {
	content: "";
	position: absolute;
	inset: 9px;
	border: 1px solid rgba(201, 169, 97, 0.14);
	pointer-events: none;
	z-index: 4;
}

.rv-frame {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transform: scale(1.06);
	animation: rv-frame 24s cubic-bezier(0.4, 0, 0.2, 1) infinite;
	will-change: opacity, transform;
}

.rv-frame--1 { background-image: var(--rv-img-1); animation-delay: 0s; }
.rv-frame--2 { background-image: var(--rv-img-2); animation-delay: 6s; }
.rv-frame--3 { background-image: var(--rv-img-3); animation-delay: 12s; }
.rv-frame--4 { background-image: var(--rv-img-4); animation-delay: 18s; }

@keyframes rv-frame {
	0%       { opacity: 0; transform: scale(1.14); }
	4%, 23%  { opacity: 1; }
	6%       { transform: scale(1.1); }
	25%      { opacity: 0; transform: scale(1.02); }
	100%     { opacity: 0; transform: scale(1.14); }
}

/* Keeps the gold type legible over any frame. */
.rv-stage-veil {
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		linear-gradient(180deg, rgba(9, 9, 11, 0.5) 0%, rgba(9, 9, 11, 0.1) 35%, rgba(9, 9, 11, 0.92) 100%),
		linear-gradient(90deg, rgba(9, 9, 11, 0.55), transparent 60%);
}

.rv-stage-cap {
	position: absolute;
	inset: auto 0 0 0;
	z-index: 3;
	padding: clamp(18px, 2.4vw, 28px);
	min-height: 7.2em;
}

.rv-cap {
	position: absolute;
	left: clamp(18px, 2.4vw, 28px);
	right: clamp(18px, 2.4vw, 28px);
	bottom: clamp(18px, 2.4vw, 28px);
	opacity: 0;
	transform: translateY(8px);
	animation: rv-cap 24s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.rv-cap--1 { animation-delay: 0s; }
.rv-cap--2 { animation-delay: 6s; }
.rv-cap--3 { animation-delay: 12s; }
.rv-cap--4 { animation-delay: 18s; }

.rv-cap b {
	display: block;
	font-family: var(--rv-display);
	font-weight: 800;
	font-size: clamp(30px, 3.6vw, 46px);
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--rv-gold-hi);
}

.rv-cap span {
	display: block;
	margin-top: 8px;
	font-size: clamp(12.5px, 1.1vw, 14.5px);
	color: var(--rv-chalk);
	max-width: 30ch;
}

@keyframes rv-cap {
	0%       { opacity: 0; transform: translateY(8px); }
	5%, 22%  { opacity: 1; transform: translateY(0); }
	26%      { opacity: 0; transform: translateY(-8px); }
	100%     { opacity: 0; transform: translateY(-8px); }
}

.rv-stage-mark {
	position: absolute;
	top: clamp(16px, 2vw, 24px);
	left: clamp(16px, 2vw, 24px);
	z-index: 3;
	font-family: var(--rv-display);
	font-weight: 700;
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--rv-chalk);
	background: rgba(9, 9, 11, 0.5);
	border: 1px solid var(--rv-line);
	padding: 6px 10px;
}

/* No motion: hold the first frame and its caption. */
@media (prefers-reduced-motion: reduce) {
	.rv-frame,
	.rv-cap {
		animation: none;
	}

	.rv-frame--1,
	.rv-cap--1 {
		opacity: 1;
		transform: none;
	}
}

.rv-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-top: 1px solid var(--rv-line);
	margin-top: clamp(40px, 5vw, 72px);
}

.rv-stat {
	padding: 26px 20px 0;
	border-right: 1px solid var(--rv-line-soft);
}

.rv-stat:last-child {
	border-right: 0;
}

.rv-stat b {
	display: block;
	font-family: var(--rv-display);
	font-weight: 700;
	font-size: clamp(22px, 3vw, 34px);
	color: var(--rv-gold);
	font-variant-numeric: tabular-nums;
}

.rv-stat span {
	font-size: 12.5px;
	color: var(--rv-fog);
	display: block;
	margin-top: 6px;
}

.rv-skyline {
	display: block;
	width: 100%;
	height: clamp(70px, 9vw, 128px);
	margin-top: 28px;
	color: var(--rv-char);
}

/* ---------- carousel ----------
   Native scroll-snap, so it swipes on touch and works with no JS at all.
   riva-carousel.js only layers on autoplay, dots and arrow keys. */

.rv-carousel {
	position: relative;
	margin-top: 44px;
}

/* Flex, not grid: grid tracks shrink to fit the container, which would stop
   the strip ever overflowing and there would be nothing to scroll. */
.rv-track {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.rv-track > * {
	flex: 0 0 calc(33.333% - 16px);
}

.rv-track::-webkit-scrollbar {
	display: none;
}

.rv-cell {
	position: relative;
	scroll-snap-align: start;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border: 1px solid var(--rv-line-soft);
	background: #0c0c0f;
}

.rv-cell-img {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.rv-cell:hover .rv-cell-img,
.rv-cell:focus-within .rv-cell-img {
	transform: scale(1.05);
}

.rv-cell--1 .rv-cell-img { background-image: var(--rv-img-1); }
.rv-cell--2 .rv-cell-img { background-image: var(--rv-img-2); }
.rv-cell--3 .rv-cell-img { background-image: var(--rv-img-3); }
.rv-cell--4 .rv-cell-img { background-image: var(--rv-img-4); }

.rv-cell-body {
	position: absolute;
	inset: auto 0 0 0;
	padding: 20px;
	background: linear-gradient(180deg, transparent, rgba(9, 9, 11, 0.92) 55%);
}

.rv-cell-body h4 {
	font-size: 17px;
	font-weight: 700;
	color: var(--rv-chalk);
}

.rv-cell-body p {
	margin-top: 6px;
	font-size: 13px;
	color: var(--rv-fog);
}

.rv-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 22px;
}

/* Scoped: .rv-dot on its own is the small gold dot in the hero pill. */
.rv-dots .rv-dot {
	width: 28px;
	height: 3px;
	border: 0;
	border-radius: 0;
	padding: 0;
	cursor: pointer;
	background: var(--rv-line-soft);
	transition: background 0.25s;
}

.rv-dots .rv-dot[aria-current="true"] {
	background: var(--rv-gold);
}

@media (max-width: 900px) {
	.rv-track > * {
		flex-basis: calc(50% - 12px);
	}
}

@media (max-width: 560px) {
	.rv-track {
		gap: 16px;
	}

	.rv-track > * {
		flex-basis: 84%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rv-track {
		scroll-behavior: auto;
	}

	.rv-cell-img {
		transition: none;
	}
}

/* ---------- promise slides ----------
   The three parts of the positioning line, each carrying its own diagram.
   Shares .rv-track and .rv-dots with the market carousel, so the same script
   drives both: three across on desktop where nothing scrolls, swipe below. */

.rv-promise {
	position: relative;
	margin-top: clamp(30px, 3.4vw, 48px);
}

.rv-slide {
	--rv-slide-img: var(--rv-img-promise-1);
	position: relative;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 520px;
	overflow: hidden;
	border: 1px solid var(--rv-line-soft);
	background: #0c0c0f;
	padding: clamp(24px, 2.6vw, 32px);
}

.rv-slide--2 {
	--rv-slide-img: var(--rv-img-promise-2);
}

.rv-slide--3 {
	--rv-slide-img: var(--rv-img-promise-3);
}

/* The artwork already carries its own duotone grade and its fade to black at
   the foot, so nothing is washed over it here. The copy sits in that fade. */
.rv-slide-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image: var(--rv-slide-img);
	background-size: cover;
	background-position: center top;
	transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.rv-slide:hover .rv-slide-bg {
	transform: scale(1.04);
}

.rv-slide-body {
	position: relative;
	z-index: 1;
}

.rv-slide-step {
	font-family: var(--rv-display);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--rv-gold);
	margin-bottom: 12px;
}

/* Two lines' worth whether the title needs them or not, so the eyebrow and
   body copy sit on the same baseline across all three cards. */
.rv-slide-body h3 {
	font-size: clamp(21px, 2.3vw, 27px);
	font-weight: 800;
	text-transform: uppercase;
	color: var(--rv-chalk);
	min-height: 2.16em;
}

.rv-slide-body p {
	margin-top: 10px;
	font-size: 13.5px;
	color: var(--rv-fog);
}

@media (max-width: 900px) {
	.rv-slide {
		min-height: 390px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rv-slide-bg {
		transition: none;
	}
}

/* ---------- problems ---------- */

.rv-probs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	background: var(--rv-line-soft);
	border: 1px solid var(--rv-line-soft);
}

.rv-prob {
	background: var(--rv-ink-2);
	padding: clamp(24px, 3vw, 38px);
	min-width: 0;
}

.rv-prob h3 {
	font-size: 19px;
	font-weight: 700;
	margin-bottom: 14px;
}

.rv-prob p {
	color: var(--rv-fog);
	font-size: 14.5px;
}

.rv-num {
	font-family: var(--rv-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
	color: var(--rv-gold);
	display: block;
	margin-bottom: 16px;
}

.rv-pillars {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	margin-top: clamp(28px, 3vw, 44px);
}

.rv-pillar {
	border: 1px solid var(--rv-line-soft);
	padding: 26px 22px;
	min-width: 0;
	background: var(--rv-ink-3);
}

.rv-pillar h4 {
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 10px;
}

.rv-pillar p {
	font-size: 13.5px;
	color: var(--rv-fog);
}

.rv-pillar svg,
.rv-inc svg {
	width: 24px;
	height: 24px;
	color: var(--rv-gold);
	margin-bottom: 18px;
	display: block;
}

/* ---------- plans ---------- */

.rv-plans {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

/* Both models are presented as equals: same gold edge, same wash. The only
   thing that still separates them is the call to action, solid on Elite and
   outlined on Partners. */
.rv-plan {
	border: 1px solid var(--rv-gold);
	background: linear-gradient(170deg, rgba(201, 169, 97, 0.12), var(--rv-ink-3) 48%);
	padding: clamp(26px, 3vw, 38px);
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.rv-plan h3 {
	font-size: clamp(22px, 2.6vw, 28px);
	font-weight: 800;
	text-transform: uppercase;
}

.rv-who {
	color: var(--rv-fog);
	font-size: 13.5px;
	margin-top: 8px;
}

.rv-price {
	font-family: var(--rv-display);
	font-weight: 800;
	font-size: clamp(28px, 3.4vw, 38px);
	color: var(--rv-gold);
	margin: 24px 0 4px;
	font-variant-numeric: tabular-nums;
}

.rv-price span {
	font-size: 14px;
	color: var(--rv-fog);
	font-weight: 500;
	letter-spacing: 0;
}

.rv-price-note {
	font-size: 12.5px;
	color: var(--rv-fog);
	min-height: 20px;
}

.rv-plan ul {
	list-style: none;
	padding: 0;
	margin: 24px 0 28px;
	display: grid;
	gap: 12px;
}

.rv-plan li {
	display: flex;
	gap: 11px;
	font-size: 14px;
	color: var(--rv-fog);
	align-items: flex-start;
	margin: 0;
}

.rv-plan li b {
	color: var(--rv-chalk);
	font-weight: 600;
}

.rv-tick {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	color: var(--rv-gold);
	margin-top: 4px;
}

.rv-plan .rv-btn {
	margin-top: auto;
}

/* ---------- tiers ---------- */

.rv-tiers {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	align-items: end;
}

.rv-tier {
	border: 1px solid var(--rv-line-soft);
	padding: clamp(22px, 2.6vw, 32px);
	min-width: 0;
	background: var(--rv-ink-3);
}

.rv-tier--2 {
	background: linear-gradient(170deg, rgba(201, 169, 97, 0.08), var(--rv-ink-3));
}

.rv-tier--3 {
	background: linear-gradient(170deg, rgba(201, 169, 97, 0.2), var(--rv-ink-3) 70%);
	border-color: var(--rv-gold);
}

.rv-lvl {
	font-family: var(--rv-display);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.2em;
	color: var(--rv-fog);
	text-transform: uppercase;
}

.rv-tier-name {
	font-family: var(--rv-display);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.24em;
	margin-top: 6px;
	text-transform: uppercase;
}

.rv-tier--1 .rv-tier-name {
	color: #bfc4c9;
}

.rv-tier--2 .rv-tier-name {
	color: var(--rv-gold);
}

.rv-tier--3 .rv-tier-name {
	color: #a9c6de;
}

.rv-pct {
	font-family: var(--rv-display);
	font-weight: 800;
	font-size: clamp(34px, 4.6vw, 52px);
	margin: 20px 0 8px;
	font-variant-numeric: tabular-nums;
}

.rv-tier p {
	font-size: 13px;
	color: var(--rv-fog);
}

/* ---------- table ---------- */

.rv-table-scroll {
	overflow-x: auto;
	border: 1px solid var(--rv-line-soft);
}

.rv-table-scroll table {
	width: 100%;
	border-collapse: collapse;
	min-width: 520px;
	margin: 0;
}

.rv-table-scroll th,
.rv-table-scroll td {
	text-align: left;
	padding: 16px 20px;
	font-size: 14px;
	border: 0;
	border-bottom: 1px solid var(--rv-line-soft);
}

.rv-table-scroll th {
	font-family: var(--rv-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rv-gold);
	background: var(--rv-ink-3);
}

.rv-table-scroll td {
	color: var(--rv-fog);
	background: var(--rv-ink-2);
}

.rv-table-scroll td:first-child {
	color: var(--rv-chalk);
	font-weight: 500;
}

.rv-table-scroll tr:last-child td {
	border-bottom: 0;
}

.rv-note {
	font-size: 11.5px;
	color: var(--rv-fog-2);
	margin-top: 14px;
}

/* ---------- referral levels ---------- */

.rv-levels {
	display: grid;
	gap: 12px;
}

.rv-level {
	display: flex;
	align-items: center;
	gap: clamp(16px, 3vw, 32px);
	border: 1px solid var(--rv-line-soft);
	padding: clamp(18px, 2.4vw, 28px);
	background: var(--rv-ink-3);
	min-width: 0;
}

.rv-level:nth-child(1) {
	background: linear-gradient(90deg, rgba(201, 169, 97, 0.16), var(--rv-ink-3) 70%);
	border-color: var(--rv-line);
}

.rv-level:nth-child(2) {
	margin-left: clamp(0px, 4vw, 52px);
}

.rv-level:nth-child(3) {
	margin-left: clamp(0px, 8vw, 104px);
}

.rv-level b {
	font-family: var(--rv-display);
	font-weight: 800;
	font-size: clamp(26px, 3.4vw, 38px);
	color: var(--rv-gold);
	font-variant-numeric: tabular-nums;
	flex: 0 0 auto;
	min-width: 72px;
}

.rv-level p {
	font-size: 14.5px;
}

.rv-level small {
	display: block;
	color: var(--rv-fog);
	font-size: 12.5px;
	margin-top: 3px;
}

/* ---------- included ---------- */

.rv-incs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--rv-line-soft);
	border: 1px solid var(--rv-line-soft);
}

.rv-inc {
	background: var(--rv-ink-2);
	padding: clamp(20px, 2.4vw, 28px);
	min-width: 0;
}

.rv-inc h4 {
	font-size: 14.5px;
	font-weight: 700;
	margin-bottom: 8px;
}

.rv-inc p {
	font-size: 12.5px;
	color: var(--rv-fog);
}

.rv-inc svg {
	width: 20px;
	height: 20px;
	margin-bottom: 16px;
}

/* ---------- steps ---------- */

.rv-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.rv-step {
	border-top: 1px solid var(--rv-line);
	padding-top: 22px;
	min-width: 0;
}

.rv-step b {
	font-family: var(--rv-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
	color: var(--rv-gold);
	display: block;
	margin-bottom: 12px;
}

.rv-step h4 {
	font-size: 17px;
	font-weight: 700;
	margin-bottom: 8px;
}

.rv-step p {
	font-size: 13.5px;
	color: var(--rv-fog);
}

/* ---------- faq ---------- */

.rv-faq details {
	border-bottom: 1px solid var(--rv-line-soft);
}

.rv-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 22px 40px 22px 0;
	font-family: var(--rv-display);
	font-weight: 600;
	font-size: clamp(15px, 1.8vw, 18px);
	position: relative;
}

.rv-faq summary::-webkit-details-marker {
	display: none;
}

.rv-faq summary::after {
	content: "+";
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--rv-gold);
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
}

.rv-faq details[open] summary::after {
	content: "\2212";
}

.rv-faq details p {
	color: var(--rv-fog);
	font-size: 14.5px;
	padding: 0 0 24px;
	max-width: 70ch;
}

/* ---------- footer ---------- */

.rv-foot-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 32px;
}

.rv-foot-grid h5 {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--rv-gold);
	margin: 0 0 16px;
}

.rv-foot-grid p,
.rv-foot-grid a {
	font-size: 14px;
	color: var(--rv-fog);
	text-decoration: none;
	display: block;
	margin-bottom: 9px;
}

.rv-foot-grid a:hover {
	color: var(--rv-gold);
}

.rv-legal {
	border-top: 1px solid var(--rv-line-soft);
	margin-top: 40px;
	padding-block: 22px;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: space-between;
	font-size: 12px;
	color: var(--rv-fog-2);
	font-family: var(--rv-display);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* ---------- full bleed escape hatch ----------

   Only needed when the page cannot use the Elementor Canvas layout and the
   theme keeps the content inside a narrow centred column. Add rv-fullbleed to
   each section's CSS Classes field and the section breaks out to the full
   window width. Harmless when the section is already full width. */

/* box-sizing is stated rather than inherited: the full-bleed width and the
   boxed padding below only add up to a 1140px row under border-box, and a
   theme that resets it on sections would push the row past the viewport. */
.rv-fullbleed,
.rv-boxed {
	box-sizing: border-box;
}

.rv-fullbleed {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* Stops the scrollbar's own width from producing a horizontal scroll. */
body:has(.rv-fullbleed) {
	overflow-x: hidden;
}

/* ---------- boxed rows for the PHP widgets ---------- */

/* Put rv-boxed in the section's CSS Classes field when that section holds the
   calculator or the application form. The background stays full bleed, the row
   inside lines up with .rv-wrap exactly (1140px outer, 20px gutters). */
/* Constrain the SECTION itself rather than Elementor's inner wrapper. The
   wrapper is .elementor-container on classic sections but .e-con-inner (or
   nothing at all) once Elementor converts them to flexbox containers, so
   targeting it is unreliable. Padding on the section works in every case.
   !important because Elementor's own per-element padding rule outranks this
   selector. The result is a 1140px content box, identical to .rv-wrap. */
.rv-boxed {
	padding-inline: max(20px, calc((100% - 1140px) / 2)) !important;
}

/* Belt and braces. Newer Elementor converts imported sections to flexbox
   containers, where the padding above can be outranked by the container's own
   inline-padding custom properties. Capping whatever the direct child turns
   out to be centres the row no matter which markup the install produces.
   !important rather than specificity: Elementor's own `.e-con > .e-con-inner`
   is a two-class selector and would otherwise win against `.rv-boxed > div`. */
.rv-boxed > .elementor-container,
.rv-boxed > .e-con-inner,
.rv-boxed > .elementor-widget-wrap,
.rv-boxed > div {
	max-width: 1140px !important;
	margin-inline: auto !important;
	width: 100% !important;
}

/* ---------- apply row, laid out by the widget ----------
   The copy and the form are one widget, so the split is done here rather than
   with Elementor columns. Nothing outside the widget has to be styled, which
   is what makes it survive an Elementor version change. */

.rv-apply-split {
	display: grid;
	grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}

/* The copy block brings its own .rv-wrap from the template; inside the split
   it is already within one, so it stops constraining and just flows. */
.rv-apply-intro > .rv-wrap {
	max-width: none;
	margin-inline: 0;
	padding-inline: 0;
}

/* Two stats side by side, as a class rather than an inline style so the markup
   survives wp_kses_post when it comes through the widget's copy field. */
.rv-stats--pair {
	grid-template-columns: 1fr 1fr;
	margin-top: 36px;
}

@media (max-width: 1024px) {
	.rv-apply-split {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

/* Breathing room between the apply copy and the form while they sit side by
   side; removed once the columns stack. */
@media (min-width: 1025px) {
	.rv-apply-row > .elementor-container > .elementor-column:last-child > .elementor-widget-wrap {
		padding-left: 48px;
	}
}

@media (max-width: 1024px) {
	.rv-apply-row > .elementor-container > .elementor-column {
		width: 100%;
	}

	.rv-apply-row > .elementor-container > .elementor-column:last-child > .elementor-widget-wrap {
		padding-top: 40px;
		padding-left: 0;
	}

	/* Stacked under the copy, the form lines up with it instead of centring. */
	.rv-apply-row .riva-apply__form,
	.rv-apply-row .riva-apply__thanks {
		margin-inline: 0;
	}
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
	.rv-hero-grid {
		grid-template-columns: 1fr;
	}

	.rv-pillars,
	.rv-incs,
	.rv-steps {
		grid-template-columns: repeat(2, 1fr);
	}

	.rv-nav-links {
		display: none;
	}
}

@media (max-width: 720px) {
	.rv-probs,
	.rv-plans,
	.rv-tiers {
		grid-template-columns: 1fr;
	}

	.rv-stats {
		grid-template-columns: 1fr 1fr;
	}

	.rv-stat {
		border-bottom: 1px solid var(--rv-line-soft);
	}

	.rv-foot-grid {
		grid-template-columns: 1fr;
	}

	.rv-level:nth-child(2),
	.rv-level:nth-child(3) {
		margin-left: 0;
	}
}

@media (max-width: 520px) {
	.rv-pillars,
	.rv-incs,
	.rv-steps {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rv-btn {
		transition: none;
	}
}
