/**
 * MarketSnap Investing Philosophy — journey + page styles
 *
 * Process = 4 large cards (Find → Value → Invest → Hold).
 * Outcome = full-width destination card (Build wealth…).
 */

.ms-philo {
	width: 100%;
	max-width: 100%;
	padding: 56px 20px 40px;
	box-sizing: border-box;
	text-align: center;
	background: none;
}

.ms-philo__title {
	font-size: clamp(24px, 3.2vw, 34px);
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 40px;
	letter-spacing: -0.02em;
}

/* ---- Process row (01–04) ---- */
.ms-philo__process {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	max-width: 1100px;
	margin: 0 auto;
	list-style: none;
	padding: 0;
}

.ms-philo__stage {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	min-width: 0;
}

.ms-philo__card {
	width: 100%;
	max-width: 420px;
	padding: 28px 24px 24px;
	border-radius: 10px;
	background: linear-gradient(135deg, #1a1f24 0%, #2d3748 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	text-align: center;
	box-sizing: border-box;
	transition: border-color 0.2s ease;
}

.ms-philo__card:hover {
	border-color: rgba(255, 181, 70, 0.35);
}

.ms-philo__num {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: #d19316;
	margin-bottom: 12px;
}

.ms-philo__visual {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 88px;
	margin: 0 0 16px;
	color: #ffb546;
}

.ms-philo__visual svg {
	width: 110px;
	height: 70px;
	overflow: visible;
}

.ms-philo__label {
	font-size: 16px;
	font-weight: 700;
	color: #ffffff;
	margin: 0;
	line-height: 1.4;
	overflow-wrap: break-word;
}

.ms-philo__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 28px;
	font-size: 0;
	user-select: none;
}

.ms-philo__arrow::before {
	content: '↓';
	font-size: 18px;
	color: rgba(255, 181, 70, 0.55);
}

.ms-philo__rail {
	display: none;
	margin: 28px auto 8px;
	max-width: 720px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.35);
}

.ms-philo__rail span {
	color: rgba(255, 181, 70, 0.75);
}

.ms-philo__to-outcome {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	margin: 8px auto 0;
}

.ms-philo__to-outcome::before {
	content: '↓';
	font-size: 22px;
	color: rgba(255, 181, 70, 0.7);
}

/* ---- Outcome (05) ---- */
.ms-philo__stage--outcome {
	max-width: 1100px;
	margin: 0 auto;
	width: 100%;
}

.ms-philo__card--outcome,
.ms-philo__stage--outcome .ms-philo__card {
	max-width: 1100px;
	width: 100%;
	padding: 32px 28px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	background: linear-gradient(145deg, rgba(255, 181, 70, 0.14) 0%, rgba(26, 31, 36, 0.95) 50%, #1a1f24 100%);
	border-color: rgba(255, 181, 70, 0.5);
	box-shadow: 0 0 0 1px rgba(255, 181, 70, 0.1);
}

.ms-philo__stage--outcome .ms-philo__num {
	color: #ffb546;
	font-size: 13px;
}

.ms-philo__stage--outcome .ms-philo__label {
	font-size: clamp(18px, 2.4vw, 24px);
	color: #ffb546;
	letter-spacing: 0.01em;
}

.ms-philo__stage--outcome .ms-philo__visual {
	height: 96px;
}

.ms-philo__stage--outcome .ms-philo__visual svg {
	width: 140px;
	height: 72px;
}

.ms-philo__cta {
	margin: 28px 0 0;
}

.ms-philo__cta a {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	color: #ffb546;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 181, 70, 0.35);
	padding-bottom: 2px;
	transition: color 0.15s, border-color 0.15s;
}

.ms-philo__cta a:hover {
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.4);
}

/* Desktop: 4 process cards in one row — same visual weight as Tools */
@media (min-width: 900px) {
	.ms-philo__process {
		grid-template-columns: repeat(4, 1fr);
		gap: 16px;
		align-items: stretch;
	}

	.ms-philo__stage {
		flex-direction: row;
		align-items: stretch;
	}

	.ms-philo__card {
		max-width: none;
		min-height: 240px;
		padding: 28px 18px 24px;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
	}

	.ms-philo__visual {
		height: 96px;
		flex: 0 0 auto;
	}

	.ms-philo__visual svg {
		width: 120px;
		height: 76px;
	}

	.ms-philo__label {
		font-size: 15px;
		margin-top: auto;
	}

	/* Arrows between process cards sit in the gap, not over text */
	.ms-philo__arrow {
		position: absolute;
		right: -10px;
		top: 50%;
		transform: translateY(-50%);
		width: 20px;
		height: auto;
		z-index: 2;
		pointer-events: none;
	}

	.ms-philo__arrow::before {
		content: '→';
		font-size: 18px;
	}

	.ms-philo__rail {
		display: block;
	}

	.ms-philo__card--outcome,
	.ms-philo__stage--outcome .ms-philo__card {
		flex-direction: row;
		gap: 28px;
		padding: 28px 40px;
		text-align: left;
		min-height: 120px;
	}

	.ms-philo__stage--outcome .ms-philo__visual {
		height: 80px;
		margin: 0;
		flex: 0 0 auto;
	}

	.ms-philo__stage--outcome .ms-philo__num {
		order: -1;
	}

	.ms-philo__stage--outcome .ms-philo__label {
		text-align: left;
		flex: 1;
	}
}

@media (min-width: 600px) and (max-width: 899px) {
	.ms-philo__process {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.ms-philo__card {
		max-width: none;
		min-height: 220px;
	}

	.ms-philo__arrow {
		display: none;
	}
}

/* Bottom blurb — understated */
.ms-philo-blurb {
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	padding: 36px 20px 48px;
	box-sizing: border-box;
	text-align: left;
}

.ms-philo-blurb p {
	font-size: 13px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.42);
	margin: 0 0 14px;
}

.ms-philo-blurb a {
	color: rgba(255, 181, 70, 0.85);
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
	border-bottom: 1px solid rgba(255, 181, 70, 0.3);
}

.ms-philo-blurb a:hover {
	color: #ffb546;
	border-color: rgba(255, 181, 70, 0.6);
}

/* Full philosophy page */
.ms-philo-page {
	max-width: 760px;
	margin: 0 auto;
	padding: 48px 20px 80px;
	color: rgba(255, 255, 255, 0.78);
	line-height: 1.7;
}

.ms-philo-page__h1 {
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 800;
	color: #ffb546;
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin: 0 0 16px;
}

.ms-philo-page__lede {
	font-size: 17px;
	color: rgba(255, 255, 255, 0.65);
	margin: 0 0 40px;
	line-height: 1.6;
}

.ms-philo-page__journey-wrap {
	margin: 0 0 48px;
	padding: 8px 0 24px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	width: min(1120px, calc(100vw - 32px));
	max-width: none;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
}

.ms-philo-page__journey-wrap .ms-philo {
	padding-top: 8px;
	padding-bottom: 8px;
}

.ms-philo-page__section {
	margin: 0 0 40px;
	padding-top: 8px;
}

.ms-philo-page__section h2 {
	font-size: clamp(20px, 2.4vw, 24px);
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 12px;
	line-height: 1.3;
}

.ms-philo-page__section h2 .ms-philo-page__n {
	color: #d19316;
	font-weight: 700;
	margin-right: 8px;
	font-size: 0.85em;
	letter-spacing: 0.04em;
}

.ms-philo-page__section p {
	font-size: 15px;
	margin: 0 0 12px;
	color: rgba(255, 255, 255, 0.68);
}

.ms-philo-page__section--outcome {
	padding: 24px 22px;
	border-radius: 10px;
	background: linear-gradient(145deg, rgba(255, 181, 70, 0.08) 0%, rgba(26, 31, 36, 0.6) 100%);
	border: 1px solid rgba(255, 181, 70, 0.28);
}

.ms-philo-page__section--outcome h2 {
	color: #ffb546;
}

.ms-philo-page__tools {
	margin-top: 48px;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ms-philo-page__tools h2 {
	font-size: 18px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 10px;
}

.ms-philo-page__tools p {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.55);
	margin: 0 0 10px;
}

.ms-philo-page__tools a {
	color: #ffb546;
	text-decoration: none;
}

.ms-philo-page__tools a:hover {
	text-decoration: underline;
}

.ms-philo-page__tools ul {
	margin: 12px 0 0;
	padding: 0 0 0 1.1em;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.55);
}

.ms-philo-page__tools li {
	margin: 0 0 6px;
}
