/* ==========================================================================
   Platform Components Block — Frontend Styles
   ========================================================================== */

.pc-block {
	--pc-navy:        #0a1628;
	--pc-navy-mid:    #0e1f3d;
	--pc-navy-light:  #162a52;
	--pc-blue:        #1a56db;
	--pc-blue-bright: #3b82f6;
	--pc-blue-glow:   rgba(59, 130, 246, 0.35);
	--pc-teal:        #06d6c7;
	--pc-white:       #ffffff;
	--pc-white-dim:   rgba(255, 255, 255, 0.65);
	--pc-rail-bg:     rgba(255, 255, 255, 0.06);
	--pc-border:      rgba(255, 255, 255, 0.1);
	--pc-radius-pill: 9999px;
	--pc-radius-lg:   16px;
	--pc-radius-md:   12px;
	--pc-transition:  0.22s ease;

	padding: 56px 48px 48px;
	font-family: inherit;
	overflow: hidden;
	position: relative;
}

/* --------------------------------------------------------------------------
   Unified Grid (pills → connectors → rail)
   -------------------------------------------------------------------------- */

.pc-outcomes-row {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	margin-bottom: 0;
	padding: 40px 0;
}

.pc-axis-label--outcomes {
	width: 100%;
}

.pc-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	width: 100%;
	grid-gap: 0 12px;
	gap: 0 12px;
}

.pc-grid-col {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.pc-grid-col--connector {
	height: 203px;
	justify-content: stretch;
}

.pc-connector {
	display: block;
	width: 1px;
	flex: 1;
	border-left: 1.5px dashed rgba(59, 130, 246, 0.5);
}

.pc-outcome-pill {
	display: flex;
	width: 100%;
	padding: 20px 16px;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	border-radius: 150px;
	background: rgba(41, 83, 250, 0.40);
	color: #FFF;
	text-align: center;
	font-size: 28px;
	font-style: normal;
	font-weight: 600;
	line-height: 120%;
	transition: background-color var(--pc-transition);
}

.pc-outcome-pill.is-first {
	background: rgba(41, 83, 250, 0.80);
}

/* --------------------------------------------------------------------------
   Axis Labels
   -------------------------------------------------------------------------- */

.pc-axis-label {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	color: #CCC;
	font-size: 28px;
	font-style: normal;
	font-weight: 600;
	line-height: 120%;
	white-space: nowrap;
}

.pc-axis-arrow {
	flex: 1;
	display: flex;
	align-items: center;
	min-width: 0;
	overflow: hidden;
}

.pc-axis-arrow svg {
	display: block;
	width: 100%;
	height: 15px;
	overflow: visible;
}

.pc-axis-row {
	margin-top: 0;
	padding: 40px 0;
	display: flex;
	justify-content: center;
}

.pc-axis-label--steps {
	width: 100%;
	justify-content: center;
	text-align: center;
}

/* --------------------------------------------------------------------------
   Icon Row — floats above the steps container
   -------------------------------------------------------------------------- */

.pc-icons-row {
	grid-column: 1 / -1;
	display: flex;
	justify-content: space-around;
	align-items: flex-end;
	position: relative;
	z-index: 1;
}

.pc-icon-cell {
	flex: 1;
	display: flex;
	justify-content: center;
}

/* Icon circle */

.pc-step-icon-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100px;
	height: 100px;
	border-radius: 50%;
	background: rgba(0, 55, 133, 0.70);
	border: 3px solid #2953FA;
	position: relative;
	z-index: 2;
}

.pc-step-icon-wrap svg {
	width: 60%;
	height: 60%;
}

.pc-step-icon-wrap.is-active {
	border-color: #00C7F3;
	box-shadow: 0 2px 10px 3px rgba(0, 199, 243, 0.45);
}

/* --------------------------------------------------------------------------
   Steps Rail + Container + Buttons
   -------------------------------------------------------------------------- */

.pc-steps-rail {
	grid-column: 1 / -1;
	width: 100%;
	padding: 0;
	background: none;
	border: none;
}

.pc-steps-container {
	display: flex;
	align-items: center;
	width: 100%;
	border-radius: 150px;
	background: radial-gradient(50% 50% at 50% 50%, rgba(41, 83, 250, 0.40) 0%, rgba(24, 49, 148, 0.40) 100%);
	padding: 20px;
	gap: 0;
}

.pc-step-divider {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	flex-shrink: 0;
}

.pc-step {
	display: flex;
	height: 100px;
	padding: 42px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 10px;
	flex: 1 0 0;
	border-radius: 120px;
	background: rgba(0, 0, 0, 0.10);
	border: none;
	cursor: pointer;
	outline: none;
	transition: background-color var(--pc-transition);
}

.pc-step.is-active {
	background: rgba(41, 83, 250, 0.35);
}

/* Label */

.pc-step-label {
	font-size: 28px;
	font-weight: 600;
	color: var(--pc-white);
	letter-spacing: 0.01em;
	transition: color var(--pc-transition);
	pointer-events: none;
}

/* ---- Hover State ---- */

.pc-step:hover {
	background: rgba(41, 83, 250, 0.25);
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */

.pc-modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.pc-modal[hidden] {
	display: none;
}

.pc-modal-backdrop {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(5, 12, 30, 0.72);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	cursor: pointer;
}

.pc-modal-dialog {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 24px;
	padding: 64px;
	max-width: 1280px;
	width: 100%;
	backdrop-filter: blur(27px);
	-webkit-backdrop-filter: blur(27px);
	box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
	animation: pc-modal-in 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pc-modal-in {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.pc-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.06);
	border: none;
	color: #444;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color var(--pc-transition), color var(--pc-transition);
	z-index: 2;
}

.pc-modal-close:hover {
	background-color: rgba(0, 0, 0, 0.12);
	color: #000;
}

.pc-modal-close svg {
	width: 16px;
	height: 16px;
}

/* 2-column content layout */

.pc-modal-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 24px;
	gap: 24px;
	align-items: center;
}

/* Left column */

.pc-modal-body-col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 16px 8px 16px 16px;
}

.pc-modal-eyebrow {
	color: #2953FA;
	font-family: Graphik, sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 110%;
	letter-spacing: 0.9px;
	text-transform: uppercase;
	margin: 0 0 12px;
}

.pc-modal-title {
	color: #282D31;
	font-family: Graphik, sans-serif;
	font-size: 36px;
	font-weight: 600;
	line-height: 120%;
	margin: 0 0 16px;
}

.pc-modal-subtitle {
	color: #282D31;
	font-family: Graphik, sans-serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 150%;
	margin: 0 0 20px;
}

.pc-modal-body-col .wp-block-list {
	color: #282D31;
	margin: 0 0 28px;
}

/* Right column */

.pc-modal-image-col {
	border-radius: 16px;
	aspect-ratio: 4 / 3;
}

.pc-modal-image {
	width: 100%;
	height: 100%;
	-o-object-fit: contain;
	   object-fit: contain;
	display: block;
	border-radius: 8px;
	box-shadow: 0 9px 30px -4px rgba(0, 55, 133, 0.15);
}

.pc-modal-image-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e8edf8 0%, #d0d9f0 100%);
	border-radius: 16px;
}

/* --------------------------------------------------------------------------
   Mobile layout — hidden on desktop
   -------------------------------------------------------------------------- */

.pc-mobile-layout {
	display: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {

	/* Block wrapper: 20px horizontal padding */
	.wp-block-custom-platform-components {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}

	/* Hide desktop layout */
	.pc-outcomes-row,
	.pc-grid,
	.pc-axis-row {
		display: none;
	}

	/* Show mobile layout — two stacked sections with 60px gap */
	.pc-mobile-layout {
		display: flex;
		flex-direction: column;
		gap: 60px;
	}

	/* Each section: axis col on left, content on right */
	.pc-mobile-section {
		display: flex;
		flex-direction: row;
		gap: 16px;
		align-items: stretch;
	}

	/* Left: axis column */
	.pc-mobile-axis-col {
		flex-shrink: 0;
		width: 34px;
		display: flex;
		align-items: stretch;
	}

	/* Flex column: top arrow, stretchy line, bottom arrow */
	.pc-mobile-axis-line {
		width: 34px;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.pc-mobile-axis-arrowhead {
		flex-shrink: 0;
	}

	/* Stretchy line with centered label */
	.pc-mobile-axis-track {
		flex: 1;
		width: 1.5px;
		background: white;
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.pc-mobile-axis-label {
		writing-mode: vertical-rl;
		transform: rotate(180deg);
		font-size: 22px;
		font-weight: 600;
		color: white;
		line-height: 120%;
		white-space: nowrap;
		background: #03183d;
		padding: 12px 0;
		position: relative;
	}

	/* Right: pills or steps filling the width */
	.pc-mobile-outcomes,
	.pc-mobile-steps {
		flex: 1;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		gap: 60px;
	}

	/* Outcome pills */
	.pc-mobile-outcomes .pc-outcome-pill {
		font-size: 20px;
		padding: 18px 20px;
		border-radius: 150px;
		text-align: center;
		justify-content: center;
		width: 100%;
	}

	/* Step buttons — icon + label, no background container */
	.pc-mobile-step {
		display: flex;
		align-items: center;
		gap: 20px;
		width: 100%;
		padding: 12px 0;
		background: none;
		border: none;
		cursor: pointer;
		text-align: left;
	}

	.pc-mobile-step .pc-step-icon-wrap {
		width: 80px;
		height: 80px;
		flex-shrink: 0;
	}

	.pc-mobile-step .pc-step-icon-wrap svg {
		width: 55%;
		height: 55%;
	}

	.pc-mobile-step .pc-step-label {
		font-size: 28px;
		font-weight: 600;
		color: #FFF;
		line-height: 120%;
	}

	/* Modal stacks on mobile */
	.pc-modal {
		padding: 16px;
		align-items: flex-end;
	}

	.pc-modal-dialog {
		padding: 32px 24px;
		border-radius: 16px;
		max-height: 90vh;
		overflow-y: auto;
	}

	.pc-modal-content {
		grid-template-columns: 1fr;
	}

	.pc-modal-body-col {
		order: 2;
	}

	.pc-modal-image-col {
		order: 1;
		aspect-ratio: 16 / 9;
	}
}

@media (max-width: 480px) {
	.pc-mobile-axis-label {
		font-size: 20px;
	}

	.pc-mobile-step .pc-step-label {
		font-size: 22px;
	}
}
