/* ===========================================================
   RewardRace — Integrations Hero (rrIntHero)
   Centered hero for the Integrations page:
     - Pill badge with brand-purple sparkle
     - Two-line headline with brand-purple accent
     - Subtitle, two CTAs, trust indicators
     - Soft glows + faint side dot-grid decoration
   Pulls colour tokens, type weights, badge and shadows from
   base.css so it matches the Features Hero 1:1.
   =========================================================== */

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

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

	/* Faint side dot-grid decoration. */
	--rrih-dot:            rgba(87, 63, 211, .20);

	/* Badge — subtle white→lavender wash, brand-purple sparkle,
	   hairline purple border. 1:1 with the Features Hero badge. */
	--rrih-badge-bg:       linear-gradient(135deg, rgba(255, 255, 255, .85) 0%, rgba(238, 234, 251, .85) 100%);
	--rrih-badge-border:   rgba(87, 63, 211, .15);
	--rrih-badge-color:    #573FD3;
	--rrih-badge-icon:     #573FD3;
	--rrih-badge-shadow:   0 1px 2px rgba(11, 10, 20, .04);

	/* Trust glyph — brand-purple check circle. */
	--rrih-trust-icon-fg:  var(--rr-brand);

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

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

	--rrih-dot:           rgba(139, 115, 255, .22);

	--rrih-badge-bg:      linear-gradient(135deg, rgba(255, 255, 255, .08) 0%, rgba(139, 115, 255, .14) 100%);
	--rrih-badge-border:  rgba(255, 255, 255, .12);
	--rrih-badge-color:   #C9BCFF;
	--rrih-badge-icon:    #B8A6FF;
	--rrih-badge-shadow:  0 1px 2px rgba(0, 0, 0, .35);

	--rrih-trust-icon-fg: #B8A6FF;
}

/* ===========================================================
   Side dot-grid decoration
   =========================================================== */
.rrIntHero__dots {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}
.rrIntHero__dot-field {
	position: absolute;
	top: 0;
	bottom: 0;
	width: clamp(90px, 15vw, 240px);
	background-image: radial-gradient(var(--rrih-dot) 1.4px, transparent 1.6px);
	background-size: 24px 24px;
}
.rrIntHero__dot-field--left {
	left: 0;
	-webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 100%);
	        mask-image: linear-gradient(90deg, #000 0%, transparent 100%);
}
.rrIntHero__dot-field--right {
	right: 0;
	-webkit-mask-image: linear-gradient(270deg, #000 0%, transparent 100%);
	        mask-image: linear-gradient(270deg, #000 0%, transparent 100%);
}

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

/* ===========================================================
   Layout
   =========================================================== */
.rrIntHero__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;
}
.rrIntHero__content {
	max-width: 880px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* ===========================================================
   Badge
   =========================================================== */
.rrIntHero .rrIntHero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 15px 7px 13px;
	background: var(--rrih-badge-bg);
	border: 1px solid var(--rrih-badge-border);
	border-radius: var(--rr-radius-pill);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--rrih-badge-color);
	margin-bottom: clamp(1.5rem, 2.5vw, 2rem);
	box-shadow: var(--rrih-badge-shadow);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	line-height: 1;
}

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

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

/* ===========================================================
   Heading
   =========================================================== */
.rrIntHero .rrIntHero__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(--rrih-heading);
	text-wrap: balance;
}
.rrIntHero__heading-line {
	display: block;
}
.rrIntHero .rrIntHero__heading-accent {
	color: var(--rrih-accent) !important;
	font-weight: 800;
	font-style: normal !important;
}

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

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

/* Shared button base — mirrors the Features Hero CTA. */
.rrIntHero .rrIntHero__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. */
.rrIntHero .rrIntHero__btn--primary {
	background: var(--rr-brand-gradient);
	color: #FFFFFF;
	box-shadow: var(--rr-shadow-brand-sm);
}
.rrIntHero .rrIntHero__btn--primary:hover {
	color: #FFFFFF;
	transform: translateY(-1px);
	box-shadow: var(--rr-shadow-brand-md);
	filter: saturate(1.05);
}
.rrIntHero .rrIntHero__btn--primary:focus-visible {
	outline: none;
	box-shadow: var(--rr-shadow-brand-md), var(--rr-ring);
}

/* Shopify glyph — small lift on hover. */
.rrIntHero .rrIntHero__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);
}
.rrIntHero .rrIntHero__btn-icon--shopify svg { display: block; }
.rrIntHero .rrIntHero__btn--primary:hover .rrIntHero__btn-icon--shopify {
	transform: translateY(-1px) rotate(-4deg);
}

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

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

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

/* ===========================================================
   Trust indicators
   =========================================================== */
.rrIntHero__trust {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(1rem, 2.4vw, 2.25rem);
}
.rrIntHero__trust-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--rrih-muted);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}
.rrIntHero__trust-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	color: var(--rrih-trust-icon-fg);
	flex-shrink: 0;
}
.rrIntHero__trust-icon svg { display: block; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 780px) {
	.rrIntHero .rrIntHero__heading {
		font-size: clamp(2rem, 7vw, 3.125rem);
	}
	.rrIntHero__dot-field {
		width: clamp(60px, 12vw, 120px);
	}
}

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

	.rrIntHero .rrIntHero__heading {
		font-size: clamp(1.75rem, 8vw, 2.625rem);
	}
	.rrIntHero .rrIntHero__description {
		font-size: 1rem;
	}

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

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

	/* Side dots distract on narrow screens — fade them out. */
	.rrIntHero__dots { display: none; }
}

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