/**
 * SSRP LP — Social Proof block.
 *
 * Figma "Trusted by top providers" pattern. White cards with a blue quote
 * glyph at the top, italic quote, hairline divider, then author name/role/
 * company (blue link) below. Three layout modes for grid density.
 */

.ssrp-lp-section--social-proof .ssrp-lp-social-proof__header {
	max-width: 48rem;
	margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   Stats row (optional)
   -------------------------------------------------------------------------- */
.ssrp-lp-social-proof__stats {
	list-style: none;
	margin: 0 0 2.5rem;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: 1.5rem;
	text-align: center;
}

.ssrp-lp-social-proof__stat {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.ssrp-lp-social-proof__stat-value {
	font-family: var(--ssrp-lp-font);
	font-size: 2.25rem;
	font-weight: 400;
	line-height: 1.1;
	color: var(--ssrp-lp-ink);
	font-variant-numeric: tabular-nums;
}

.ssrp-lp-social-proof__stat-label {
	font-size: 0.9375rem;
	color: var(--ssrp-lp-ink-muted);
}

/* --------------------------------------------------------------------------
   Testimonial grid
   -------------------------------------------------------------------------- */
.ssrp-lp-social-proof__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.5rem;
}

.ssrp-lp-social-proof__list--grid-3 { grid-template-columns: repeat(3, 1fr); }
.ssrp-lp-social-proof__list--grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 54rem; margin-inline: auto; }
.ssrp-lp-social-proof__list--stacked { grid-template-columns: 1fr; max-width: 44rem; margin-inline: auto; }

.ssrp-lp-social-proof__item {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.5rem;
	background: var(--ssrp-lp-surface);
	border: 1px solid var(--ssrp-lp-border);
	border-radius: var(--ssrp-lp-radius);
	position: relative;
}

/* Big quote glyph at the top of each card. */
.ssrp-lp-social-proof__item::before {
	content: '';
	display: block;
	width: 1.75rem;
	height: 1.5rem;
	background-color: var(--ssrp-lp-brand);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20' fill='black'%3E%3Cpath d='M8.4 0C5 0 2.2 2.8 2.2 6.2V20h7.2V10.8H5.6c0-2 1.4-3.6 3.4-3.6V0Zm13.4 0c-3.4 0-6.2 2.8-6.2 6.2V20h7.2V10.8H19c0-2 1.4-3.6 3.4-3.6V0Z'/%3E%3C/svg%3E") no-repeat center/contain;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20' fill='black'%3E%3Cpath d='M8.4 0C5 0 2.2 2.8 2.2 6.2V20h7.2V10.8H5.6c0-2 1.4-3.6 3.4-3.6V0Zm13.4 0c-3.4 0-6.2 2.8-6.2 6.2V20h7.2V10.8H19c0-2 1.4-3.6 3.4-3.6V0Z'/%3E%3C/svg%3E") no-repeat center/contain;
}

.ssrp-lp-social-proof__quote {
	margin: 0;
	font-family: var(--ssrp-lp-font);
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--ssrp-lp-ink-muted);
	font-style: italic;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--ssrp-lp-border);
}

.ssrp-lp-social-proof__quote p {
	margin: 0;
}

.ssrp-lp-social-proof__author {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

.ssrp-lp-social-proof__avatar {
	width: 3rem;
	height: 3rem;
	border-radius: 999px;
	object-fit: cover;
}

.ssrp-lp-social-proof__author-meta {
	display: flex;
	flex-direction: column;
}

.ssrp-lp-social-proof__author-name {
	font-weight: 600;
	color: var(--ssrp-lp-ink);
	font-size: 1rem;
	line-height: 1.3;
}

.ssrp-lp-social-proof__author-role {
	font-size: 0.875rem;
	color: var(--ssrp-lp-ink-muted);
}

/* Blue company/role link per Figma. */
.ssrp-lp-social-proof__author-company-link {
	color: var(--ssrp-lp-brand);
	font-size: 0.875rem;
	text-decoration: none;
}
.ssrp-lp-social-proof__author-company-link:hover,
.ssrp-lp-social-proof__author-company-link:focus {
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Video testimonial card
   -------------------------------------------------------------------------- */
.ssrp-lp-social-proof__item--video {
	padding: 0;
	overflow: hidden;
}

.ssrp-lp-social-proof__video {
	display: block;
	position: relative;
	aspect-ratio: 9 / 16;
	max-height: 28rem;
	overflow: hidden;
	background: var(--ssrp-lp-ink);
	border-radius: var(--ssrp-lp-radius);
}

.ssrp-lp-social-proof__video-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0.85;
}

.ssrp-lp-social-proof__play {
	position: absolute;
	inset: auto 1rem 1rem auto;
	width: 3rem;
	height: 3rem;
	border-radius: 999px;
	background: var(--ssrp-lp-surface);
	color: var(--ssrp-lp-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--ssrp-lp-shadow-sm);
}

.ssrp-lp-social-proof__item--video::before {
	display: none;
}

.ssrp-lp-social-proof__item--video .ssrp-lp-social-proof__quote {
	display: none;
}

.ssrp-lp-social-proof__item--video .ssrp-lp-social-proof__author {
	padding: 1rem;
	background: linear-gradient(180deg, transparent, rgb(0 0 0 / 0.85));
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	color: var(--ssrp-lp-surface);
}
.ssrp-lp-social-proof__item--video .ssrp-lp-social-proof__author-name,
.ssrp-lp-social-proof__item--video .ssrp-lp-social-proof__author-role {
	color: var(--ssrp-lp-surface);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
	.ssrp-lp-social-proof__list--grid-3 {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 640px) {
	.ssrp-lp-social-proof__list--grid-3,
	.ssrp-lp-social-proof__list--grid-2 {
		grid-template-columns: 1fr;
	}
}

/* --------------------------------------------------------------------------
   Ink variant
   -------------------------------------------------------------------------- */
.ssrp-lp-section--ink .ssrp-lp-social-proof__item {
	background: rgb(255 255 255 / 0.04);
	border-color: rgb(255 255 255 / 0.1);
}
.ssrp-lp-section--ink .ssrp-lp-social-proof__quote {
	color: rgb(255 255 255 / 0.85);
	border-bottom-color: rgb(255 255 255 / 0.15);
}
.ssrp-lp-section--ink .ssrp-lp-social-proof__author-name { color: var(--ssrp-lp-surface); }
.ssrp-lp-section--ink .ssrp-lp-social-proof__author-role { color: rgb(255 255 255 / 0.7); }
.ssrp-lp-section--ink .ssrp-lp-social-proof__item::before { background-color: var(--ssrp-lp-cyan); }
