/* Homepage template. Header, footer, tokens, and shared components stay in style.css. */

.tp-hero {
	position: relative;
	overflow: hidden;
	padding: 40px 0 33px;
	background:
		radial-gradient(ellipse at 4% 35%, var( --tp-color-surface ) 0%, transparent 45%),
		radial-gradient(ellipse at 93% 30%, var( --tp-color-primary-wash ) 0%, transparent 45%),
		linear-gradient(108deg, var( --tp-color-surface ) 4%, #fff 57%, var( --tp-color-surface ) 100%);
}

.tp-hero-inner {
	position: relative;
	z-index: 1;
	text-align: center;
}

.tp-eyebrow,
.tp-tag {
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 1.7px;
	text-transform: uppercase;
	color: var( --tp-color-primary );
	margin: 0 0 8px;
}

.tp-hero h1 {
	font-size: clamp(34px, 4.5vw, 54px);
	letter-spacing: -2.2px;
	line-height: 1.14;
	max-width: 850px;
	margin: 13px auto 17px;
	font-weight: 800;
}

.tp-hero-lead {
	font-size: 18px;
	color: #45414d;
	margin: 0 auto 30px;
	max-width: 640px;
}

.tp-ask {
	height: 62px;
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid #ddc9e9;
	box-shadow: 0 14px 35px rgba(79, 42, 116, 0.08);
	max-width: 650px;
	margin: 0 auto;
	border-radius: 8px;
	padding: 6px 7px 6px 22px;
	text-align: left;
}

.tp-ask-icon {
	font-size: 21px;
	color: #6c6179;
	padding-right: 13px;
}

.tp-ask input {
	border: 0;
	outline: 0;
	font-size: 15px;
	min-width: 0;
	flex: 1;
	background: transparent;
}

.tp-ask button {
	border: 0;
	background: var( --tp-color-primary );
	color: #fff;
	border-radius: 6px;
	padding: 15px 23px;
	font-weight: 800;
	font-size: 14px;
}

.tp-ask button:hover,
.tp-ask button:focus {
	background: var( --tp-color-primary-deep );
}

.tp-searchresult {
	max-width: 650px;
	margin: 10px auto 0;
	padding: 15px;
	background: #fff;
	border-radius: 9px;
	text-align: left;
	border: 1px solid #d8cce8;
}

.tp-searchresult strong {
	display: block;
	margin: 4px 10px 8px;
	font-size: 13px;
}

.tp-searchresult a {
	display: block;
	padding: 10px;
	color: var( --tp-color-primary-deep );
	font-weight: 700;
	font-size: 13px;
	text-decoration: none;
}

.tp-searchresult a:hover {
	background: var( --tp-color-surface );
}

.tp-quick-title {
	font-weight: 800;
	font-size: 13px;
	margin: 40px 0 18px;
}

.tp-quick-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 11px;
	max-width: 1080px;
	margin: auto;
	text-align: left;
}

.tp-quick {
	background: rgba(255, 255, 255, 0.94);
	min-height: 111px;
	border: 1px solid #e9ddef;
	border-radius: 9px;
	padding: 17px 15px;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	box-shadow: 0 8px 24px rgba(88, 50, 124, 0.05);
	color: inherit;
	text-decoration: none;
}

.tp-quick:hover,
.tp-quick:focus {
	border-color: #bf9cdd;
	box-shadow: 0 12px 24px rgba(79, 33, 121, 0.12);
	text-decoration: none;
	color: inherit;
}

.tp-quick-ico {
	width: 31px;
	height: 31px;
	flex-shrink: 0;
	border-radius: 8px;
	background: var( --tp-color-surface );
	color: var( --tp-color-primary );
	display: grid;
	place-items: center;
	font-size: 16px;
}

.tp-quick strong {
	display: block;
	font-size: 14px;
	margin: 2px 0 7px;
	line-height: 1.25;
}

.tp-quick small {
	display: block;
	font-size: 11px;
	line-height: 1.42;
	color: #626169;
}

.tp-hero-foot {
	font-size: 12px;
	color: #655a6d;
	margin: 25px 0 0;
}

.tp-section {
	padding: 25px 0;
	scroll-margin-top: 90px;
}

.tp-section-tight {
	padding-top: 12px;
}

.tp-h2 {
	font-size: clamp(25px, 3vw, 34px);
	font-weight: 800;
	line-height: 1.23;
	margin: 0 0 13px;
}

.tp-sub {
	color: #62656a;
	max-width: 690px;
	line-height: 1.6;
	margin: 0 0 31px;
}

.tp-section-head {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: center;
	margin-bottom: 25px;
}

.tp-section-head .tp-h2 {
	margin: 0;
}

.tp-section-head a {
	font-weight: 800;
	color: var( --tp-color-primary-deep );
	font-size: 13px;
	white-space: nowrap;
}

.tp-trust {
	padding: 33px 0 29px;
	border-bottom: 1px solid #e8e8ed;
}

.tp-trust-grid {
	display: grid;
	grid-template-columns: 1.3fr repeat(3, 1fr);
	align-items: start;
	gap: 40px;
}

.tp-trust h2 {
	font-size: 30px;
	font-weight: 800;
	line-height: 1.25;
	margin: 0;
}

.tp-metric b {
	font-family: var( --tp-font-display );
	font-weight: 800;
	font-size: 32px;
	display: block;
	color: var( --tp-color-primary-deep );
	letter-spacing: -0.04em;
}

.tp-metric span {
	font-size: 13px;
	line-height: 1.5;
	color: #686371;
}

.tp-spreads-section {
	padding: 25px 0 0;
	background: linear-gradient(180deg, #fff 0%, var( --tp-color-surface ) 52%, #fff 100%);
	scroll-margin-top: 90px;
}

.tp-spread-wrap {
	width: min(1360px, calc(100% - 48px));
}

.tp-spread-intro {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 26px;
}

.tp-spread-intro h2 {
	font-size: clamp(27px, 3vw, 39px);
	line-height: 1.15;
	margin: 0 0 9px;
}

.tp-spread-intro p {
	margin: 0;
	color: #686070;
	line-height: 1.6;
	font-size: 15px;
}

.tp-spread-note {
	display: grid;
	grid-template-columns: 10px auto;
	align-items: center;
	gap: 3px 9px;
	background: #fff;
	padding: 13px 17px;
	border-radius: 11px;
	border: 1px solid #eddff3;
}

.tp-spread-dot {
	width: 9px;
	height: 9px;
	background: #22ad63;
	border-radius: 50%;
	grid-row: 1;
}

.tp-spread-note strong {
	font-size: 12px;
	color: #382755;
}

.tp-spread-note small {
	grid-column: 2;
	color: #88788b;
	font-size: 10px;
}

.tp-spread-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	margin-top: 20px;
}

.tp-spread-bottom p {
	color: #746a7a;
	font-size: 12px;
	margin: 0;
	max-width: 680px;
	line-height: 1.65;
}

.tp-spread-bottom a {
	font-weight: 800;
	color: var( --tp-color-primary );
	font-size: 13px;
	white-space: nowrap;
}

.tp-tabnav {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.tp-tabnav button {
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 30px;
	padding: 12px 22px;
	font-weight: 800;
	font-size: 13px;
	color: var( --tp-color-text );
}

.tp-tabnav button.is-active {
	background: var( --tp-color-primary );
	color: #fff;
	border-color: var( --tp-color-primary );
}

.tp-tabpane {
	display: none;
}

.tp-feature.is-active,
.tp-resourcebox.is-active {
	display: grid;
}

.tp-tool.is-active {
	display: block;
}

.tp-feature,
.tp-resourcebox,
.tp-promo {
	border: 1px solid #eadff1;
	border-radius: 13px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 5px 24px rgba(58, 31, 103, 0.035);
}

.tp-feature,
.tp-resourcebox {
	grid-template-columns: 1.15fr 0.85fr;
	min-height: 320px;
}

.tp-feature-copy,
.tp-promo-copy,
.tp-resource-copy {
	padding: 42px 45px;
}

.tp-feature-copy h3,
.tp-resource-copy h3,
.tp-promo h2 {
	font-weight: 800;
	margin: 14px 0;
}

.tp-feature-copy h3,
.tp-promo h2 {
	font-size: 31px;
	line-height: 1.2;
}

.tp-feature-copy p,
.tp-promo p,
.tp-resource-copy p {
	line-height: 1.65;
	color: #5b5c63;
	max-width: 540px;
}

.tp-feature-links,
.tp-resource-links {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	margin-top: 18px;
}

.tp-feature-links a,
.tp-resource-links a {
	font-size: 13px;
	color: var( --tp-color-primary-deep );
	font-weight: 700;
}

.tp-feature-art,
.tp-resource-art,
.tp-promo-art,
.tp-article-art {
	display: grid;
	place-items: center;
	overflow: hidden;
}

.tp-feature-art {
	background: #e6f5e8;
}

.tp-feature-art svg,
.tp-feature-art img {
	width: 90%;
	max-width: 360px;
	height: auto;
}

.tp-feature-art-forex {
	background: #e9f0ff;
}

.tp-feature-art-stocks {
	background: #fff0db;
}

.tp-feature-art-crypto {
	background: #f8eafa;
}

.tp-article-art {
	background: #e5edf9;
}

.tp-article-art-1 {
	background: #e1f3e5;
}

.tp-article-art-2 {
	background: #f7e6e2;
}

.tp-article-art svg,
.tp-article-art img {
	width: 100%;
	height: 100%;
}

.tp-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.tp-article {
	border: 1px solid #e1e1e5;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.tp-article-art {
	height: 170px;
}

.tp-article-info {
	padding: 23px;
}

.tp-article-info small {
	color: #666;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	font-weight: 800;
}

.tp-article-info h3 {
	font-size: 18px;
	line-height: 1.4;
	margin: 12px 0 14px;
}

.tp-article-info a {
	font-size: 13px;
	color: #4a2b84;
	font-weight: 800;
}

.tp-rates {
	background: linear-gradient(180deg, #fff9fd, #f8f3ff);
}

.tp-ratesbox {
	border: 1px solid #eadff1;
	background: #fff;
	border-radius: 12px;
	padding: 30px;
}

.tp-tool-text {
	margin: 0 0 20px;
	max-width: 720px;
	color: #5b5c63;
	line-height: 1.65;
}

.tp-promo {
	grid-template-columns: 1.25fr 0.75fr;
	display: grid;
	background: #e6f1ff;
}

.tp-promo-art {
	min-height: 220px;
	background: #d5edfd;
}

.tp-promo-art svg,
.tp-promo-art img {
	width: min(280px, 80%);
	height: auto;
}

.tp-resource-art {
	background: #f4eaf8;
}

.tp-resource-art svg,
.tp-resource-art img {
	width: 80%;
	max-width: 300px;
	height: auto;
}

.tp-resourcebox {
	margin-top: 8px;
}

.tp-factors {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	align-items: stretch;
}

.tp-factor {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid var( --tp-color-line );
	border-radius: 14px;
	padding: 22px 24px 24px;
	box-shadow: 0 8px 24px rgba( var( --tp-color-primary-rgb ), 0.06 );
}

.tp-factor-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.tp-factor-icon {
	display: inline-flex;
	flex: 0 0 36px;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var( --tp-color-surface );
	color: var( --tp-color-primary );
}

.tp-factor-icon svg {
	display: block;
	width: 20px;
	height: 20px;
}

.tp-factor h3 {
	margin: 0;
	font-size: 17px;
	line-height: 1.3;
}

.tp-factor p {
	margin: 0;
	color: #5b5c63;
	font-size: 15px;
	line-height: 1.65;
	text-align: justify;
	text-align-last: left;
}

.tp-factor a {
	color: var( --tp-color-primary-deep );
	font-weight: 700;
}

.tp-resource-copy h3 {
	font-size: 26px;
	line-height: 1.25;
}

.tp-team {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) auto;
	gap: 32px;
	align-items: center;
	background: var( --tp-color-primary );
	color: #fff;
	border-radius: 16px;
	padding: 36px 40px;
}

.tp-team h2 {
	margin: 0 0 12px;
	color: #fff;
	font-size: clamp(28px, 3vw, 36px);
	font-weight: 800;
	letter-spacing: -0.03em;
}

.tp-team p {
	margin: 0;
	max-width: 640px;
	color: rgba(255, 255, 255, 0.92);
	line-height: 1.65;
}

.tp-team-people {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 14px;
}

.tp-team-person {
	position: relative;
	width: 148px;
	aspect-ratio: 1;
	border-radius: 10px;
	overflow: hidden;
	background: var( --tp-color-primary-deep );
}

.tp-team-person a {
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.tp-team-person img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tp-team-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	padding: 28px 10px 10px;
	background: linear-gradient( transparent, rgba( 41, 32, 50, 0.88 ) );
	color: #fff;
}

.tp-team-caption strong {
	font-size: 14px;
	line-height: 1.2;
}

.tp-team-caption small {
	font-size: 12px;
	line-height: 1.3;
}


@media (max-width: 1000px) {
	.tp-quick-grid,
	.tp-trust-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.tp-spread-wrap {
		width: min(100% - 32px, 1220px);
	}

	.tp-hero {
		padding: 26px 0 18px;
	}

	.tp-hero-lead,
	.tp-ask input {
		font-size: 16px;
	}

	.tp-section {
		padding: 28px 0;
	}

	.tp-promo,
	.tp-cards,
	.tp-spread-intro,
	.tp-spread-bottom {
		grid-template-columns: 1fr;
		display: grid;
	}

	.tp-feature.is-active,
	.tp-resourcebox.is-active,
	.tp-promo {
		display: grid;
		grid-template-columns: 1fr;
	}

	.tp-feature-copy,
	.tp-promo-copy,
	.tp-resource-copy {
		padding: 24px;
	}

	.tp-feature-art,
	.tp-resource-art,
	.tp-promo-art {
		min-height: 140px;
	}

	.tp-section-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.tp-factors {
		grid-template-columns: 1fr;
	}

	.tp-team {
		grid-template-columns: 1fr;
		padding: 24px;
	}

	.tp-team-people {
		justify-content: flex-start;
	}
}
