/* ===========================================================
   RewardRace — Features Hero (rrFeatHero)
   Centered hero for the Features page:
     - Pill badge with yellow star
     - Two-line headline with brand-purple accent
     - Subtitle, two CTAs, trust indicators
   Pulls colour tokens, type weights and shadows from base.css
   so the page matches "How It Works" / "Pricing" / Hero.
   =========================================================== */

.rrFeatHero {
	--rrfh-heading:        var(--rr-heading);
	--rrfh-text:           var(--rr-text);
	--rrfh-muted:          var(--rr-muted);
	--rrfh-accent:         var(--rr-brand);
	--rrfh-accent-soft:    var(--rr-brand-soft);
	--rrfh-divider:        var(--rr-divider);
	--rrfh-border:         var(--rr-border);

	/* Soft purple-tinted page background — matches the main Hero
	   so the Features page feels like part of the same surface. */
	--rrfh-section-bg:     linear-gradient(180deg, #F6F4FE 0%, #FAF8FF 50%, #FFFFFF 100%);
	--rrfh-glow1:          rgba(139, 115, 255, .32);
	--rrfh-glow2:          rgba(233, 213, 255, .52);

	/* Badge — subtle white→lavender wash, yellow star, hairline
	   purple border. 1:1 with the main Hero badge. */
	--rrfh-badge-bg:       linear-gradient(135deg, rgba(255, 255, 255, .85) 0%, rgba(238, 234, 251, .85) 100%);
	--rrfh-badge-border:   rgba(87, 63, 211, .15);
	--rrfh-badge-color:    #2D2A3D;
	--rrfh-badge-star:     #FFB300;
	--rrfh-badge-shadow:   0 1px 2px rgba(11, 10, 20, .04);

	/* Trust pip — soft brand-tint circle with brand-purple glyph. */
	--rrfh-trust-icon-bg:  rgba(87, 63, 211, .12);
	--rrfh-trust-icon-fg:  var(--rr-brand);

	position: relative;
	font-family: var(--rr-font-sans);
	color: var(--rrfh-text);
	background: var(--rrfh-section-bg);
	overflow: hidden;
	box-sizing: border-box;
	/* Kill global section divider — same as the main Hero. */
	border-top: 0 !important;
}
.rrFeatHero *,
.rrFeatHero *::before,
.rrFeatHero *::after { box-sizing: border-box; }

/* ----- Dark mode ----- */
.rrFeatHero--dark,
html[data-theme="dark"] .rrFeatHero--auto {
	--rrfh-section-bg:    linear-gradient(180deg, #14102B 0%, #0E0B22 50%, #0A0912 100%);
	--rrfh-glow1:         rgba(139, 115, 255, .26);
	--rrfh-glow2:         rgba(87, 63, 211, .20);

	--rrfh-badge-bg:      linear-gradient(135deg, rgba(255, 255, 255, .08) 0%, rgba(139, 115, 255, .14) 100%);
	--rrfh-badge-border:  rgba(255, 255, 255, .12);
	--rrfh-badge-color:   #FFFFFF;
	--rrfh-badge-star:    #FFB300;
	--rrfh-badge-shadow:  0 1px 2px rgba(0, 0, 0, .35);

	--rrfh-trust-icon-bg: rgba(139, 115, 255, .18);
	--rrfh-trust-icon-fg: #B8A6FF;
}

/* ===========================================================
   Soft background glows
   =========================================================== */
.rrFeatHero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}
.rrFeatHero__glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(110px);
}
.rrFeatHero__glow--tl {
	width: 620px; height: 620px;
	top: -240px; left: -180px;
	background: radial-gradient(circle at center, var(--rrfh-glow1) 0%, transparent 70%);
}
.rrFeatHero__glow--br {
	width: 560px; height: 560px;
	bottom: -220px; right: -160px;
	background: radial-gradient(circle at center, var(--rrfh-glow2) 0%, transparent 70%);
}

/* ===========================================================
   Layout
   =========================================================== */
.rrFeatHero__inner {
	position: relative;
	z-index: 1;
	max-width: var(--rr-container);
	margin: 0 auto;
	padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1.25rem, 3vw, 2.5rem);
	display: flex;
	justify-content: center;
}
.rrFeatHero__content {
	max-width: 880px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* ===========================================================
   Badge
   =========================================================== */
.rrFeatHero .rrFeatHero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px 8px 14px;
	background: var(--rrfh-badge-bg);
	border: 1px solid var(--rrfh-badge-border);
	border-radius: var(--rr-radius-pill);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--rrfh-badge-color);
	margin-bottom: clamp(1.5rem, 2.5vw, 2rem);
	box-shadow: var(--rrfh-badge-shadow);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	line-height: 1;
}

.rrFeatHero__badge-icon {
	display: inline-flex;
	width: 16px;
	height: 16px;
	align-items: center;
	justify-content: center;
	color: var(--rrfh-badge-star);
	flex-shrink: 0;
	line-height: 0;
}
.rrFeatHero__badge-icon svg { display: block; }

.rrFeatHero__badge-text {
	font: inherit;
	color: inherit;
	line-height: 1;
}

/* ===========================================================
   Heading
   =========================================================== */
.rrFeatHero .rrFeatHero__heading {
	font-size: clamp(2.25rem, 1rem + 4.2vw, 4.25rem);
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: -.028em;
	margin: 0 0 clamp(1.25rem, 2vw, 1.75rem);
	color: var(--rrfh-heading);
	text-wrap: balance;
}
.rrFeatHero__heading-line {
	display: block;
}
.rrFeatHero .rrFeatHero__heading-accent {
	color: var(--rrfh-accent) !important;
	font-weight: 800;
	font-style: normal !important;
}

/* ===========================================================
   Description
   =========================================================== */
.rrFeatHero .rrFeatHero__description {
	font-size: clamp(1rem, .9rem + .35vw, 1.1875rem);
	line-height: 1.6;
	color: var(--rrfh-muted);
	margin: 0 0 clamp(2rem, 3vw, 2.5rem);
	max-width: 640px;
	font-weight: 400;
	text-wrap: balance;
}

/* ===========================================================
   Actions
   =========================================================== */
.rrFeatHero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

/* Shared button base — mirrors the main Hero CTA. */
.rrFeatHero .rrFeatHero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 26px;
	border-radius: 999px;
	text-decoration: none;
	font-size: .9375rem;
	font-weight: 700;
	letter-spacing: var(--rr-tracking-snug, -.015em);
	line-height: 1;
	white-space: nowrap;
	border: 1px solid transparent;
	cursor: pointer;
	transition:
		transform var(--rr-dur-fast) var(--rr-ease-out),
		box-shadow var(--rr-dur-fast) var(--rr-ease-out),
		filter var(--rr-dur-fast) var(--rr-ease-out),
		background-color var(--rr-dur-fast) var(--rr-ease-out),
		color var(--rr-dur-fast) var(--rr-ease-out),
		border-color var(--rr-dur-fast) var(--rr-ease-out);
}

/* Primary — brand purple gradient, matches header CTA + Hero. */
.rrFeatHero .rrFeatHero__btn--primary {
	background: var(--rr-brand-gradient);
	color: #FFFFFF;
	box-shadow: var(--rr-shadow-brand-sm);
}
.rrFeatHero .rrFeatHero__btn--primary:hover {
	color: #FFFFFF;
	transform: translateY(-1px);
	box-shadow: var(--rr-shadow-brand-md);
	filter: saturate(1.05);
}
.rrFeatHero .rrFeatHero__btn--primary:focus-visible {
	outline: none;
	box-shadow: var(--rr-shadow-brand-md), var(--rr-ring);
}

/* Shopify glyph — small lift on hover. */
.rrFeatHero .rrFeatHero__btn-icon--shopify {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px; height: 20px;
	transition: transform var(--rr-dur-base) var(--rr-ease-out);
}
.rrFeatHero .rrFeatHero__btn-icon--shopify svg { display: block; }
.rrFeatHero .rrFeatHero__btn--primary:hover .rrFeatHero__btn-icon--shopify {
	transform: translateY(-1px) rotate(-4deg);
}

/* Secondary — outlined white pill with brand-purple text + border. */
.rrFeatHero .rrFeatHero__btn--secondary {
	background: #FFFFFF;
	color: var(--rrfh-accent);
	border-color: var(--rrfh-accent);
	box-shadow: 0 1px 2px rgba(11, 10, 20, .04);
}
.rrFeatHero .rrFeatHero__btn--secondary:hover {
	color: var(--rr-brand-hover, var(--rrfh-accent));
	border-color: var(--rr-brand-hover, var(--rrfh-accent));
	background: var(--rr-brand-ghost, #FFFFFF);
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(87, 63, 211, .18);
}
.rrFeatHero .rrFeatHero__btn--secondary:focus-visible {
	outline: none;
	box-shadow: 0 6px 18px rgba(87, 63, 211, .18), var(--rr-ring);
}

.rrFeatHero--dark .rrFeatHero__btn--secondary,
html[data-theme="dark"] .rrFeatHero--auto .rrFeatHero__btn--secondary {
	background: rgba(255, 255, 255, .04);
	color: var(--rrfh-accent);
	border-color: var(--rrfh-accent);
}

.rrFeatHero .rrFeatHero__btn-icon--play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px; height: 20px;
	color: currentColor;
	transition: transform var(--rr-dur-base) var(--rr-ease-out);
}
.rrFeatHero .rrFeatHero__btn-icon--play svg { display: block; }
.rrFeatHero .rrFeatHero__btn--secondary:hover .rrFeatHero__btn-icon--play {
	transform: scale(1.06);
}

/* ===========================================================
   Trust indicators
   =========================================================== */
.rrFeatHero__trust {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(.75rem, 1.6vw, 1.75rem);
}
.rrFeatHero__trust-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--rrfh-muted);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}
.rrFeatHero__trust-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--rrfh-trust-icon-bg);
	color: var(--rrfh-trust-icon-fg);
	flex-shrink: 0;
}
.rrFeatHero__trust-icon svg { display: block; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 780px) {
	.rrFeatHero .rrFeatHero__heading {
		font-size: clamp(2rem, 7vw, 3.125rem);
	}
}

@media (max-width: 560px) {
	.rrFeatHero__inner {
		padding: clamp(2.5rem, 9vw, 3.5rem) 1.25rem;
	}

	.rrFeatHero .rrFeatHero__heading {
		font-size: clamp(1.75rem, 8vw, 2.625rem);
	}
	.rrFeatHero .rrFeatHero__description {
		font-size: 1rem;
	}

	.rrFeatHero__actions {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		gap: 10px;
	}
	.rrFeatHero__actions .rrFeatHero__btn {
		width: 100%;
		padding: 15px 22px;
	}

	.rrFeatHero__trust {
		gap: 10px 16px;
	}
	.rrFeatHero__trust-item {
		font-size: 13px;
	}
}

/* ===========================================================
   Reduced motion
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
	.rrFeatHero .rrFeatHero__btn { transition: none; }
	.rrFeatHero .rrFeatHero__btn:hover { transform: none; }
	.rrFeatHero .rrFeatHero__btn:hover .rrFeatHero__btn-icon--shopify,
	.rrFeatHero .rrFeatHero__btn:hover .rrFeatHero__btn-icon--play {
		transform: none;
	}
}
