/**
 * Platform challenges / comparison fold.
 * Scoped to .platform-challenges — does not affect homepage sections.
 *
 * Signal OS desktop: Figma 2456:37216
 * Signal OS mobile:  Figma 2456:38794
 *
 * @package Fundamento
 */

.platform-challenges {
	--pc-text: var(--color-text-default);
	--pc-text-subtle: var(--color-text-subtle);
	--pc-text-muted: var(--color-text-muted);
	--pc-brand: var(--color-text-brand);
	--pc-eyebrow-bg: var(--color-bg-emphasis);
	--pc-eyebrow-marker: var(--color-neutral-600);
	--pc-pill-border: var(--color-neutral-200);
	--pc-pill-marker: #1f7e61;
	--pc-challenge-bg: var(--color-bg-muted);
	--pc-challenge-text: var(--color-neutral-400);
	--pc-impact-bg: var(--color-surface-accent);
	--pc-callout-bg: var(--color-bg-subtle);
	--pc-callout-border: var(--color-border-brand);
	--pc-max: 74rem; /* 1184px */
	background-color: var(--color-surface-default);
	color: var(--pc-text);
}

.platform-challenges__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-80);
	max-width: var(--pc-max);
	margin-inline: auto;
	padding: var(--space-160) 0;
}

/* -------------------------------------------------------------------------
   Intro
   ------------------------------------------------------------------------- */

.platform-challenges__intro {
	display: flex;
	flex-direction: column;
	gap: var(--space-64);
	width: 100%;
	max-width: var(--pc-max);
}

.platform-challenges--align-left .platform-challenges__intro {
	align-items: flex-start;
	text-align: left;
}

.platform-challenges--align-center .platform-challenges__intro {
	align-items: center;
	text-align: center;
}

.platform-challenges__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	background-color: var(--pc-eyebrow-bg);
}

.platform-challenges__eyebrow-marker {
	width: 10px;
	height: 10px;
	flex-shrink: 0;
	background-color: var(--pc-eyebrow-marker);
}

.platform-challenges__eyebrow-text {
	font-family: var(--font-family-body);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.4;
	color: var(--color-neutral-600);
}

.platform-challenges__heading {
	margin: 0;
	font-family: var(--font-family-display);
	font-size: var(--text-display-h1-alt-size); /* 60 */
	font-weight: 400;
	line-height: var(--text-display-h1-alt-lh);
	letter-spacing: 0;
	color: var(--pc-brand);
	/* text-wrap: balance; */
}

.platform-challenges--align-left .platform-challenges__heading {
	max-width: none;
}

.platform-challenges--align-center .platform-challenges__heading {
	max-width: 57.25rem;
}

.platform-challenges__description {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 0;
	max-width: 47.75rem; /* 764 */
}

.platform-challenges--align-center .platform-challenges__description {
	max-width: 58.375rem;
	align-items: center;
}

.platform-challenges__description p {
	margin: 0;
	font-family: var(--font-family-body);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.4;
	color: var(--pc-text);
}

.platform-challenges--align-center .platform-challenges__description p {
	color: var(--pc-text-subtle);
}

/* Inline context (pipe list) — Signal OS desktop */
.platform-challenges__context {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	width: 100%;
}

.platform-challenges__context-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	max-width: 72.5rem;
}

.platform-challenges__context-item {
	position: relative;
	margin: 0;
	font-family: var(--font-family-body);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.4;
	color: var(--pc-text);
	white-space: nowrap;
}

.platform-challenges__context-item:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 50%;
	right: -0.75rem;
	width: 1px;
	height: 21px;
	background-color: var(--pc-pill-marker);
	transform: translate(50%, -50%);
}

.platform-challenges__context-footer {
	margin: 0;
	font-family: var(--font-family-body);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.4;
	color: var(--pc-text);
}

/* White border pills (pressure / journey / questions) */
.platform-challenges__pills,
.platform-challenges__question-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.platform-challenges--align-center .platform-challenges__pills,
.platform-challenges--align-center .platform-challenges__question-pills {
	justify-content: center;
}

.platform-challenges--journeys.platform-challenges--align-center .platform-challenges__pills,
.platform-challenges--journeys.platform-challenges--align-center .platform-challenges__question-pills {
	max-width: 52.5rem; /* 840 — Figma 3+2 wrap */
	margin-inline: auto;
}

.platform-challenges--journeys.platform-challenges--align-center .platform-challenges__heading {
	max-width: 54.625rem; /* 874 */
}

.platform-challenges--journeys.platform-challenges--align-center .platform-challenges__description {
	max-width: 47.75rem; /* 764 */
}

.platform-challenges--journeys.platform-challenges--align-center .platform-challenges__description p,
.platform-challenges--journeys .platform-challenges__support-text {
	color: var(--color-neutral-600, #59554f);
}

.platform-challenges--journeys .platform-challenges__support-text {
	max-width: 65.5rem; /* first para one line @1440 */
}

.platform-challenges__pill,
.platform-challenges__question-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.5rem 1.25rem;
	border: 1px solid var(--pc-pill-border);
	border-radius: 100px;
	background-color: var(--color-surface-default);
	box-shadow: 0 4px 2px rgba(151, 135, 102, 0.08);
}

.platform-challenges__pill-marker {
	width: 10px;
	height: 10px;
	flex-shrink: 0;
	background-color: var(--pc-pill-marker);
}

.platform-challenges__pill-text {
	font-family: var(--font-family-body);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.4;
	color: var(--pc-text);
	white-space: nowrap;
}

/* Icon-feature grid (Integration) */
.platform-challenges__features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem 1.5rem;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.platform-challenges__feature {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.platform-challenges__feature-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	flex-shrink: 0;
	border-radius: 4px;
	background-color: var(--color-surface-accent);
	overflow: hidden;
}

.platform-challenges__feature-icon img {
	display: block;
	width: 1.5rem;
	height: 1.5rem;
}

.platform-challenges__feature-text {
	font-family: var(--font-family-body);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.4;
	color: var(--pc-brand);
}

.platform-challenges__support {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	width: 100%;
	text-align: center;
}

.platform-challenges__support-heading {
	margin: 0;
	max-width: 58.375rem;
	font-family: var(--font-family-display);
	font-size: 1.75rem; /* H4 28 */
	font-weight: 400;
	line-height: 1.2;
	color: var(--pc-text-subtle);
}

.platform-challenges__support-text {
	margin: 0;
	max-width: 58.375rem;
	font-family: var(--font-family-body);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.4;
	color: var(--pc-text-subtle);
}

/* Questions block */
.platform-challenges__questions {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	width: 100%;
}

.platform-challenges--align-left .platform-challenges__questions {
	align-items: flex-start;
}

.platform-challenges--align-center .platform-challenges__questions {
	align-items: center;
}

.platform-challenges__questions-heading {
	margin: 0;
	max-width: 39.75rem;
	font-family: var(--font-family-display);
	font-size: var(--text-display-h6-size); /* 20 */
	font-weight: 400;
	line-height: 1.2;
	color: var(--pc-brand);
}

.platform-challenges__question-pills {
	max-width: 72.5rem;
}

/* Callout */
.platform-challenges__callout {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	max-width: var(--pc-max);
	padding: 0.75rem 3.5rem; /* 12 / 56 */
	border-left: 8px solid var(--pc-callout-border);
	background-color: var(--pc-callout-bg);
}

.platform-challenges__callout-body {
	display: flex;
	flex-direction: column;
	max-width: 67.625rem;
}

.platform-challenges__callout-line {
	margin: 0;
	font-family: var(--font-family-body);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: -0.0125rem;
	color: var(--pc-brand);
}

.platform-challenges__callout-line strong {
	font-weight: 500;
}

/* -------------------------------------------------------------------------
   Comparison
   ------------------------------------------------------------------------- */

.platform-challenges__comparison {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	width: 100%;
}

.platform-challenges__comparison-heading {
	margin: 0 0 1rem 0;
	max-width: 54.625rem;
	font-family: var(--font-family-display);
	font-size: var(--text-display-h3-size); /* 40 */
	font-weight: 400;
	line-height: 1.2;
	color: var(--pc-brand);
	text-align: center;
}

.platform-challenges__comparison-heading-mobile {
	display: none;
}

.platform-challenges__comparison-labels {
	display: flex;
	align-items: center;
	gap: 8rem;
	width: 100%;
	max-width: var(--pc-max);
	padding-block: 0.25rem;
}

.platform-challenges__comparison-label {
	flex: 1 1 0;
	font-family: var(--font-family-body);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--color-neutral-600);
}

.platform-challenges__comparison-label--left {
	text-align: right;
}

.platform-challenges__comparison-label--right {
	text-align: left;
}

.platform-challenges__rows {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	width: 100%;
	max-width: var(--pc-max);
	margin: 0;
	padding: 0;
	list-style: none;
}

.platform-challenges__row {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	column-gap: 8rem;
	width: 100%;
}

.platform-challenges__connector {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 0;
	width: 24.75rem;
	height: 0;
	border-top: 1px dotted var(--color-neutral-300);
	transform: translate(-50%, -50%);
	pointer-events: none;
	grid-column: 1 / -1;
	grid-row: 1;
}

.platform-challenges__cell {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.5rem;
	max-width: 100%;
	grid-row: 1;
}

.platform-challenges__cell--left {
	grid-column: 1;
	justify-self: end;
	background-color: var(--pc-challenge-bg);
	text-align: right;
}

.platform-challenges__cell--right {
	grid-column: 2;
	justify-self: start;
	background-color: var(--pc-impact-bg);
	text-align: left;
}

.platform-challenges__cell-icon {
	display: block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.platform-challenges__cell-text {
	font-family: var(--font-family-body);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.4;
	white-space: nowrap;
}

.platform-challenges__cell--left .platform-challenges__cell-text {
	color: var(--pc-challenge-text);
}

.platform-challenges__cell--right .platform-challenges__cell-text {
	color: var(--pc-text);
}

/* Intro: 16px cluster, then 64px before major blocks */
.platform-challenges__intro {
	gap: 1rem;
}

.platform-challenges__context,
.platform-challenges__pills,
.platform-challenges__features,
.platform-challenges__support,
.platform-challenges__questions,
.platform-challenges__callout {
	margin-top: calc(var(--space-64) - 1rem);
}

.platform-challenges__description + .platform-challenges__context {
	margin-top: 0;
}

.platform-challenges--ai-native-contact-centre .platform-challenges__inner{
	gap: var(--space-40);
}
.platform-challenges--ai-native-contact-centre .platform-challenges__pills,
.platform-challenges--ai-native-contact-centre .platform-challenges__support{
	margin-top:0;
}

.platform-challenges--integrations .platform-challenges__features .platform-challenges__feature{
	align-items: center;
}
.platform-challenges--integrations .platform-challenges__features .platform-challenges__feature .platform-challenges__feature-text{
	text-align:start;
	padding-right: 34px;
}

/* -------------------------------------------------------------------------
   Mobile — Figma 2456:38794
   ------------------------------------------------------------------------- */

@media (max-width: 61.99rem) {
	.platform-challenges__inner {
		gap: var(--space-64);
		padding: var(--space-64) 1.25rem;
	}

	/* Mobile frame centers intro even when desktop is left-aligned */
	.platform-challenges__intro,
	.platform-challenges--align-left .platform-challenges__intro,
	.platform-challenges--align-center .platform-challenges__intro {
		align-items: center;
		text-align: center;
		gap: 1rem;
	}

	.platform-challenges__heading {
		font-size: 2rem; /* 32 */
		line-height: 1.2;
		max-width: 21.4375rem;
	}

	.platform-challenges__description {
		max-width: none;
		align-items: center;
	}

	.platform-challenges__description p {
		color: var(--pc-text-subtle);
	}

	/* Context pipe list not in mobile frame */
	.platform-challenges__context {
		display: none;
	}

	.platform-challenges__questions {
		align-items: center;
		margin-top: calc(2.5rem - 1rem); /* gap 40 from intro cluster */
		width: 100%;
	}

	.platform-challenges__questions-heading {
		width: 100%;
		max-width: none;
		text-align: center;
		line-height: normal;
	}

	.platform-challenges__question-pills {
        justify-content: center;
		align-items: center;
		width: 100%;
	}

	.platform-challenges__pill-text {
		white-space: normal;
	}

	.platform-challenges__pills {
		justify-content: center;
	}

	.platform-challenges__features {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.platform-challenges__callout {
		margin-top: calc(2.5rem - 1rem);
		padding: 0.75rem 1.75rem;
		border-left-width: 4px;
	}

	.platform-challenges__callout-line strong {
		font-weight: 400; /* mobile Figma has no medium emphasis */
	}
    .platform-challenges--signal-os .platform-challenges__callout {
		text-align: left;
	}

	.platform-challenges__comparison {
		gap: 2.5rem;
	}

	.platform-challenges__comparison-heading {
		font-size: 1.5rem; /* 24 */
		line-height: normal;
		max-width: none;
	}

	.platform-challenges__comparison-heading-desktop {
		display: none;
	}

	.platform-challenges__comparison-heading-mobile {
		display: inline;
	}

	.platform-challenges__comparison-labels {
		gap: 0;
		justify-content: space-between;
	}

	.platform-challenges__comparison-label {
		flex: 1 1 0;
		text-align: center;
	}

	.platform-challenges__rows {
		gap: 0.5rem;
		position: relative;
	}

	/* Vertical dotted connector down the center (mobile) */
	.platform-challenges__rows::before {
		content: '';
		position: absolute;
		left: 50%;
		top: -21px;
		bottom: 0;
        height: 400px;
		z-index: 99;
		width: 0;
		border-left: 1px dashed var(--color-neutral-400);
		transform: translateX(-50%);
		pointer-events: none;
	}

	.platform-challenges__row {
		display: flex;
		gap: 0;
		align-items: stretch;
		column-gap: 0;
	}

	.platform-challenges__connector {
		display: none;
	}

	.platform-challenges__cell--left,
	.platform-challenges__cell--right {
		flex: 1 1 0;
		justify-self: auto;
		justify-content: flex-start;
		text-align: left;
		align-items: center;
		min-height: 3.25rem;
		max-width: none;
	}

	.platform-challenges__cell-text {
		font-size: 0.875rem;
		line-height: 1.5;
		white-space: normal;
	}
	
	.platform-challenges--journeys.platform-challenges--align-center .platform-challenges__pills, .platform-challenges--journeys.platform-challenges--align-center .platform-challenges__question-pills, .platform-challenges--journeys .platform-challenges__support{
		margin-top:0;
	}
	
}

@media (max-width: 48rem) {
    .platform-challenges__rows::before {
        height: 460px;
    }
	.platform-challenges--signal-os .platform-challenges__rows::before {
        height: 521px;
    }
    .platform-challenges__comparison{
    	gap: 20px;
    }
    .platform-challenges__comparison-heading{
    	margin-bottom: 0;
    }
	.platform-challenges__support-heading{
		font-size: 20px;	
	}
	.platform-challenges--integrations .platform-challenges__comparison-heading{
		margin-bottom: 20px;
	}
}