/*
 * Instant Funding LP — page styles
 * Scoped to body.instant-funding.
 * Loaded only on page-instant-funding.php.
 * Mobile-first: base = mobile, overrides via @media (min-width).
 */

/* Variables */
:root {
	/* Brand palette */
	--if-orange: #f3981f;
	--if-orange-light: #ffaf45;
	--if-cta-gradient: linear-gradient(105.97deg, #f3981f 0%, #e57625 100%);
	--if-title-gradient: linear-gradient(90deg, #ffc271 0%, #ff9242 100%);

	/* Surfaces */
	--if-black: #141313;
	--if-bg: #141313;

	/* Text */
	--if-white: #ffffff;
	--if-cream: #f5f0e6;

	/* Shadows */
	--if-cta-shadow: 0 2px 21.2px rgba(243, 152, 31, 0.39);

	/* Radii */
	--if-radius: 12px;
	--if-radius-sm: 7px;

	/* Typography — Figtree, line-height 100% */
	--if-font: "Figtree", sans-serif;
	--if-fs-s: 14px;
	--if-fs-m: 16px;
	--if-fw-regular: 400;
	--if-fw-medium: 500;
	--if-fw-semibold: 600;
	--if-fw-bold: 700;

	/* Layout */
	--if-wrapper-max: 1200px;
}

/* Base */
body.instant-funding {
	margin: 0;
	background: var(--if-bg);
	font-family: var(--if-font);
	font-size: var(--if-fs-m);
	font-weight: var(--if-fw-regular);
	line-height: 1.4;
	color: var(--if-white);
}

body.instant-funding *,
body.instant-funding *::before,
body.instant-funding *::after {
	box-sizing: border-box;
}

body.instant-funding ::selection {
	background: var(--if-orange);
	color: var(--if-black);
}

body.instant-funding img {
	max-width: 100%;
	height: auto;
}

body.instant-funding a {
	color: var(--if-orange);
	text-decoration: none;
}

body.instant-funding a:hover {
	color: var(--if-orange-light);
}

body.instant-funding .wrapper {
	max-width: calc(var(--if-wrapper-max) + 28px);
	padding-inline: 14px;
	margin-inline: auto;
}

@media (min-width: 768px) {
	body.instant-funding .wrapper {
		max-width: calc(var(--if-wrapper-max) + 24px);
		padding-inline: 12px;
	}
}

/* Hero background container */
body.instant-funding .if-hero-bg {
	position: relative;
}

/* Header */
body.instant-funding .if-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: transparent;
	transition:
		background 0.25s ease,
		backdrop-filter 0.25s ease;
}

body.instant-funding .if-header.is-scrolled {
	background: rgba(20, 19, 19, 0.7);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

body.instant-funding .if-header .wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 10px;
}

body.instant-funding .if-header__logo {
	flex-shrink: 0;
	display: inline-flex;
}

body.instant-funding .if-header__logo img {
	display: block;
	width: 56px;
	height: auto;
}

body.instant-funding .if-header__cta {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border-radius: var(--if-radius-sm);
	background-image: var(--if-cta-gradient);
	box-shadow: var(--if-cta-shadow);
	color: var(--if-black);
	font-size: var(--if-fs-s);
	font-weight: var(--if-fw-semibold);
	line-height: 1;
	white-space: nowrap;
	transition:
		box-shadow 0.25s ease,
		background 0.25s ease,
		transform 0.25s ease;
}

body.instant-funding .if-header__cta:hover,
body.instant-funding .if-header__cta:focus-visible {
	background-image: linear-gradient(92.95deg, #ffab3c 0%, #ee8436 100%);
	box-shadow: 0 2px 24px rgba(243, 152, 31, 0.5);
	color: var(--if-black);
	transform: translateY(-1px);
}

@media (min-width: 992px) {
	body.instant-funding .if-header__logo img {
		width: 73px;
	}
}

/* Headings */
body.instant-funding .if-heading-lg,
body.instant-funding .if-heading-sm {
	text-align: center;
	color: var(--if-white);
	margin: 0;
}

body.instant-funding .if-heading-lg span,
body.instant-funding .if-heading-sm span {
	background: var(--if-title-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Primary button */
body.instant-funding .if-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 56px;
	padding: 0 34px 0 40px;
	border-radius: var(--if-radius);
	background-image: var(--if-cta-gradient);
	box-shadow: 0 20px 40px -10px rgba(255, 107, 71, 0.4);
	color: var(--if-black);
	font-size: 20px;
	font-weight: var(--if-fw-bold);
	line-height: 1;
	white-space: nowrap;
	transition:
		box-shadow 0.25s ease,
		background 0.25s ease,
		transform 0.25s ease;
}

body.instant-funding .if-btn-primary:hover,
body.instant-funding .if-btn-primary:focus-visible {
	background-image: linear-gradient(92.95deg, #ffab3c 0%, #ee8436 100%);
	box-shadow: 0 2px 24px rgba(243, 152, 31, 0.5);
	color: var(--if-black);
	transform: translateY(-1px);
}

body.instant-funding .if-btn-primary__arrow {
	flex-shrink: 0;
}

/* Secondary button */
body.instant-funding .if-btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 30px;
	border-radius: 10px;
	border: 1px solid #393532;
	background: #282320;
	color: var(--if-cream);
	font-size: var(--if-fs-s);
	font-weight: var(--if-fw-semibold);
	line-height: 1;
	white-space: nowrap;
	transition:
		background 0.25s ease,
		border-color 0.25s ease,
		box-shadow 0.25s ease,
		transform 0.25s ease;
}

body.instant-funding .if-btn-secondary:hover,
body.instant-funding .if-btn-secondary:focus-visible {
	background:
		linear-gradient(
			92.95deg,
			rgba(255, 171, 60, 0.16) 0%,
			rgba(238, 132, 54, 0.16) 100%
		),
		#282320;
	border-color: rgba(243, 152, 31, 0.45);
	box-shadow: 0 2px 24px rgba(243, 152, 31, 0.18);
	color: var(--if-cream);
	transform: translateY(-1px);
}

@media (min-width: 992px) {
	body.instant-funding .if-btn-primary {
		font-size: 22px;
	}
}

/* Hero */
body.instant-funding .if-hero {
	position: relative;
	isolation: isolate;
	padding-block: 20px 40px;
}

body.instant-funding .if-hero::before {
	content: "";
	position: absolute;
	inset: -200px 0 0 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(
			ellipse 400px 110px at 30% 550px,
			rgba(243, 152, 31, 0.1),
			transparent 90%
		),
		radial-gradient(
			ellipse 500px 260px at 45% 1050px,
			rgba(243, 152, 31, 0.1),
			transparent 90%
		);
	animation: ifHeroGlowEnter 0.9s ease-out both;
}

@keyframes ifHeroGlowEnter {
	0% {
		opacity: 0;
		transform: translateY(-24px) scale(1.1);
	}

	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

body.instant-funding .if-hero .wrapper {
	position: relative;
	z-index: 1;
}

body.instant-funding .if-hero__inner {
	display: flex;
	flex-direction: column;
	gap: 60px;
}

body.instant-funding .if-hero__content {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

body.instant-funding .if-hero__title {
	margin: 0;
	color: var(--if-cream);
	font-size: clamp(52px, 14vw, 55px);
	font-weight: var(--if-fw-medium);
	line-height: 1.1;
}

body.instant-funding .if-hero__title span {
	color: var(--if-orange);
}

body.instant-funding .if-hero__features {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

body.instant-funding .if-hero__feature {
	display: flex;
	align-items: center;
	gap: 9px;
	color: var(--if-cream);
	font-size: 18px;
	font-weight: var(--if-fw-medium);
	line-height: 1.5;
}

body.instant-funding .if-hero__marker {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	background: rgba(255, 122, 0, 0.08);
	border: 1px solid rgba(255, 122, 0, 0.25);
}

body.instant-funding .if-hero__marker::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 3px;
	background: var(--if-orange);
}

body.instant-funding .if-hero__cta {
	width: 100%;
}

body.instant-funding .if-hero__media {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

body.instant-funding .if-hero__media .ts-trader-slider {
	width: 100%;
}

@media (min-width: 768px) {
	body.instant-funding .if-hero::before {
		background:
			radial-gradient(
				ellipse 360px 130px at calc(50% - 450px + 120px) 560px,
				rgba(243, 152, 31, 0.1),
				transparent 90%
			),
			radial-gradient(
				ellipse 620px 420px at calc(50% + 120px) 920px,
				rgba(243, 152, 31, 0.1),
				transparent 90%
			);
	}
}

@media (min-width: 992px) {
	body.instant-funding .if-hero {
		padding-block: 24px 90px;
	}

	body.instant-funding .if-hero__inner {
		flex-direction: row;
		justify-content: space-between;
		gap: 40px;
	}

	body.instant-funding .if-hero__content {
		padding-top: 25px;
		gap: 30px;
		max-width: 612px;
	}

	body.instant-funding .if-hero__title {
		font-size: 88px;
	}

	body.instant-funding .if-hero__feature {
		gap: 14px;
		font-size: 22px;
	}

	body.instant-funding .if-hero__marker {
		width: 30px;
		height: 30px;
	}

	body.instant-funding .if-hero__cta {
		width: 370px;
	}

	body.instant-funding .if-hero__media {
		width: 527px;
		flex-shrink: 0;
		gap: 35px;
	}
}

@media (min-width: 1240px) {
	body.instant-funding .if-hero::before {
		background: radial-gradient(
			ellipse 900px 600px at calc(50% - 600px + 1260px) 400px,
			rgba(243, 152, 31, 0.1),
			transparent 90%
		);
	}
}

/* Trust cards */
body.instant-funding .if-trust {
	padding-block: 0;
}

body.instant-funding .if-trust .trust-cards-wrap {
	--tc-max-width: 1200px;
	margin-inline: auto;
}

/* How it works */
body.instant-funding .if-how {
	--if-wrapper-max: 764px;
	padding-block: 60px 20px;
}

body.instant-funding .if-how__head {
	margin-bottom: 32px;
	text-align: center;
}

body.instant-funding .if-how__title {
	margin: 0;
	color: var(--if-cream);
	font-size: 48px;
	font-weight: var(--if-fw-medium);
	line-height: 1;
	text-shadow: 0 14px 24px rgba(0, 0, 0, 0.6);
}

body.instant-funding .if-how__title span {
	color: var(--if-orange);
}

body.instant-funding .if-how__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 12px 12px 30px;
	border-radius: 16px;
	background: linear-gradient(
		to top,
		rgba(20, 19, 19, 0.18) 0%,
		rgba(20, 19, 19, 0.36) 11%,
		rgba(43, 31, 22, 0.9) 100%
	);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

body.instant-funding .if-how__panel::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	border-radius: inherit;
	padding: 0.5px;
	background: linear-gradient(
		180deg,
		#65400e 0%,
		rgba(116, 116, 116, 0.2) 50%,
		rgba(255, 255, 255, 0.2) 100%
	);
	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
}

body.instant-funding .if-how__card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px 20px;
	border: 1px solid #63350d;
	border-radius: 12px;
	background: linear-gradient(to right, #261e16 0%, #362313 100%);
}

body.instant-funding .if-how__step {
	color: #ffa454;
	font-size: 13px;
	font-weight: var(--if-fw-semibold);
	line-height: 1;
	letter-spacing: 2.16px;
	text-transform: uppercase;
}

body.instant-funding .if-how__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

body.instant-funding .if-how__card-title {
	margin: 0;
	color: var(--if-cream);
	font-size: 21px;
	font-weight: var(--if-fw-semibold);
	line-height: 1.2;
}

body.instant-funding .if-how__card-text {
	margin: 0;
	color: #a8a8a8;
	font-size: 16px;
	font-weight: var(--if-fw-regular);
	line-height: 1.2;
}

@media (min-width: 992px) {
	body.instant-funding .if-how {
		padding-block: 100px 40px;
	}

	body.instant-funding .if-how__title {
		font-size: 58px;
	}

	body.instant-funding .if-how__panel {
		gap: 20px;
		padding: 30px;
	}

	body.instant-funding .if-how__card-title {
		font-size: 26px;
	}
}

/* Orange glow behind payouts + pricing */
body.instant-funding .if-glow {
	position: relative;
	isolation: isolate;
}

/* Glow is desktop-only */
@media (min-width: 992px) {
	body.instant-funding .if-glow::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		pointer-events: none;
		background:
			radial-gradient(
				ellipse 48% 48% at 63% 36%,
				rgba(217, 108, 0, 0.13),
				rgba(217, 108, 0, 0.05) 45%,
				transparent 85%
			),
			radial-gradient(
				ellipse 38% 36% at 33% 69%,
				rgba(255, 191, 0, 0.07),
				rgba(255, 191, 0, 0.02) 45%,
				transparent 85%
			);
	}
}

/* Payouts marquee */
body.instant-funding .if-payouts {
	padding-block: 40px 30px;
}

@media (min-width: 992px) {
	body.instant-funding .if-payouts {
		padding-block: 60px 50px;
	}
}

/* Pricing */
body.instant-funding .if-pricing {
	padding-block: 30px 40px;
}

body.instant-funding .if-pricing__head {
	margin-bottom: 32px;
	text-align: center;
}

body.instant-funding .if-pricing__title {
	margin: 0;
	color: var(--if-cream);
	font-size: 48px;
	font-weight: var(--if-fw-medium);
	line-height: 1;
}

body.instant-funding .if-pricing__title span {
	color: var(--if-orange);
}

/* Every account includes */
body.instant-funding .if-includes {
	max-width: 770px;
	margin: 60px auto 0;
	padding: 32px 28px;
	border: 1px solid #272727;
	border-radius: 16px;
	background: #141414;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
}

body.instant-funding .if-includes__title {
	margin: 0;
	color: var(--if-cream);
	font-size: 18px;
	font-weight: var(--if-fw-regular);
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
}

body.instant-funding .if-includes__grid {
	margin: 0;
	padding: 0;
	list-style: none;
	width: 100%;
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: repeat(3, auto);
	grid-auto-columns: minmax(min-content, 1fr);
	gap: 14px 16px;
}

body.instant-funding .if-includes__item {
	display: flex;
	align-items: center;
	gap: 7px;
	color: #a8a8a8;
	font-size: 14px;
	font-weight: var(--if-fw-regular);
	line-height: 1;
}

body.instant-funding .if-includes__text {
	white-space: nowrap;
}

body.instant-funding .if-includes__br {
	display: inline;
}

body.instant-funding .if-includes__check {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 11px;
	background: rgba(16, 185, 129, 0.15);
}

body.instant-funding .if-includes__check img {
	display: block;
	width: auto;
	height: 10px;
}

/* Reviews */
body.instant-funding .if-reviews {
	--if-wrapper-max: 1125px;
	padding-block: 20px 40px;
}

body.instant-funding .if-reviews__head {
	margin-bottom: 32px;
	text-align: center;
}

body.instant-funding .if-reviews__title {
	margin: 0;
	color: var(--if-cream);
	font-size: 48px;
	font-weight: var(--if-fw-medium);
	line-height: 1;
}

body.instant-funding .if-reviews__title span {
	color: var(--if-orange);
}

body.instant-funding .if-reviews__br-desktop {
	display: none;
}

/* Interviews */
body.instant-funding .if-interviews {
	padding-block: 20px 100px;
}

body.instant-funding .if-interviews__head {
	margin-bottom: 32px;
	text-align: center;
}

body.instant-funding .if-interviews__title {
	margin: 0;
	color: var(--if-cream);
	font-size: clamp(45px, 9vw, 48px);
	font-weight: var(--if-fw-medium);
	line-height: 1;
	white-space: nowrap;
}

body.instant-funding .if-interviews__title span {
	color: var(--if-orange);
}

body.instant-funding .if-interviews__br-mobile {
	display: inline;
}

@media (min-width: 992px) {
	body.instant-funding .if-pricing {
		padding-block: 50px 60px;
	}

	body.instant-funding .if-pricing__head {
		margin-bottom: 50px;
	}

	body.instant-funding .if-pricing__title {
		font-size: 58px;
	}

	body.instant-funding .if-includes {
		margin-top: 32px;
		padding: 40px 60px;
	}

	body.instant-funding .if-includes__grid {
		width: auto;
		grid-template-rows: repeat(2, auto);
		grid-auto-columns: max-content;
		justify-content: center;
		column-gap: 67px;
	}

	body.instant-funding .if-includes__br {
		display: none;
	}

	body.instant-funding .if-reviews {
		padding-block: 40px 60px;
	}

	body.instant-funding .if-reviews__title {
		font-size: 58px;
	}

	body.instant-funding .if-reviews__br-desktop {
		display: inline;
	}

	body.instant-funding .if-interviews {
		padding-block: 40px 100px;
	}

	body.instant-funding .if-interviews__head {
		margin-bottom: 52px;
	}

	body.instant-funding .if-interviews__title {
		font-size: 58px;
	}

	body.instant-funding .if-interviews__title span {
		display: block;
	}

	body.instant-funding .if-interviews__br-mobile {
		display: none;
	}
}

body.instant-funding .if-reveal-on-scroll {
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
		transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body.instant-funding .if-reveal-on-scroll.is-in {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	body.instant-funding .if-reveal-on-scroll {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
