/* Shared styles for the solution pages: always-on-mmm, in-house-mmm,
   incrementality-testing and measurement-engine. Colours follow style.css:
   green rgb(41, 202, 171), ink #111c28, pink #ff0061. */

.sol-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	border-radius: 50px;
	background: rgba(255, 255, 255, 0.85);
	color: #111c28;
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	font-weight: 600;
}

.sol-badge .dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ff0061;
}

/* Section pill heading, as used across the site */
.sol-pill {
	width: 90%;
}

/* Cards (.sol-step, .card-badge, .sol-link-card) live in style.css, so every page shares them */

/* Tick list */
.sol-check {
	padding-left: 0;
}

.sol-check li {
	list-style: none;
	position: relative;
	padding-left: 30px;
	margin-bottom: 10px;
}

.sol-check li::before {
	content: "\F26A";
	font-family: "bootstrap-icons";
	position: absolute;
	left: 0;
	top: 1px;
	color: rgb(41, 202, 171);
}

/* Chips for tech names and data sources */
.sol-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	margin: 0 6px 12px 0;
	border-radius: 50px;
	background: #fff;
	color: #191b1c;
	font-weight: 600;
	box-shadow: 0 1px 4px rgba(17, 28, 40, 0.1);
}

.sol-chip i {
	color: rgb(31, 156, 133);
}

/* Placeholder for screenshots and illustrations still to be produced */
.sol-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 280px;
	padding: 24px;
	border: 2px dashed rgba(41, 202, 171, 0.7);
	border-radius: 8px;
	background: rgba(41, 202, 171, 0.06);
	color: #5c6b69;
	text-align: center;
	font-size: 15px;
}

.sol-placeholder i {
	font-size: 40px;
	color: rgb(41, 202, 171);
}

/* Comparison table: the Linea column is one highlighted green block */
.sol-compare {
	table-layout: fixed;
	border-collapse: separate;
	border-spacing: 0;
	min-width: 720px;
}

.sol-compare th,
.sol-compare td {
	vertical-align: middle;
	padding: 14px 12px;
	border-top: 1px solid #e6ecee;
	text-align: center;
}

.sol-compare thead th {
	border-top: 0;
	font-weight: 600;
	font-size: 1rem;
	vertical-align: bottom;
}

.sol-compare th:first-child,
.sol-compare td:first-child {
	text-align: left;
	width: 32%;
}

.sol-compare td:first-child small {
	display: block;
	color: #8a9799;
}

.sol-compare .linea {
	background: rgb(41, 202, 171);
	color: #06261f;
	border-top-color: rgba(6, 38, 31, 0.1);
}

.sol-compare thead .linea {
	border-radius: 18px 18px 0 0;
	padding-top: 20px;
}

.sol-compare thead .linea img {
	display: block;
	width: 88px;
	margin: 0 auto 6px;
}

.sol-compare tbody tr:last-child .linea {
	border-radius: 0 0 18px 18px;
}

.sol-yes,
.sol-no,
.sol-some {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background: #f1f5f6;
	font-size: 1.05rem;
	font-weight: 800;
}

.sol-yes {
	color: rgb(31, 156, 133);
}

.sol-no {
	color: #ff0061;
}

.sol-some {
	color: #b98025;
}

.sol-compare .linea .sol-yes {
	background: rgba(6, 38, 31, 0.12);
	color: #06261f;
}

.sol-compare-key {
	font-size: 14px;
	color: #5c6b69;
}

/* Relevant article cards */
.sol-article {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border-radius: var(--card-radius);
	overflow: hidden;
	box-shadow: var(--card-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	color: #191b1c;
}

.sol-article:hover {
	transform: translateY(-4px);
	box-shadow: var(--card-shadow-hover);
	text-decoration: none;
	color: #191b1c;
}

.sol-article img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.sol-article .body {
	padding: 20px 22px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
	text-align: left;
}

.sol-article h3 {
	font-size: 1.15rem;
	line-height: 1.4;
	margin-bottom: 8px;
}

.sol-article p {
	font-size: 15px;
	margin-bottom: 16px;
}

.sol-article .more {
	margin-top: auto;
	font-weight: 600;
	color: rgb(31, 156, 133);
}

/* Example prompt, styled after an assistant composer */
.hub-prompt {
	background: #fff;
	border: 2px solid rgb(41, 202, 171);
	border-radius: 14px;
	padding: 18px 22px;
	text-align: left;
	box-shadow: 0 6px 24px rgba(17, 28, 40, 0.08);
}

.hub-prompt .who {
	font-size: 13px;
	font-weight: 600;
	color: rgb(31, 156, 133);
}

.hub-prompt p {
	font-size: 17px;
	margin: 6px 0 0;
	color: #191b1c;
}

.hub-prompt .tool {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 12px;
	margin: 10px 6px 0 0;
	border-radius: 50px;
	background: rgba(41, 202, 171, 0.14);
	color: rgb(31, 156, 133);
	font-family: monospace;
	font-size: 13px;
	font-weight: 600;
}

/* Measurement Engine: "How it works" runs edge to edge on white. Towards the middle a soft grey
   ground, a patch of brand green and a field of dots fade in, then fade out again at the edges. The canvas grows with the screen
   but stays short enough to see whole */
.engine-stage {
	position: relative;
	margin-top: 48px;
	padding: 72px 0 56px;
	background: #ffffff;
}

.engine-stage::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(circle, #d3e2df 1.2px, transparent 1.7px) 0 0 / 22px 22px,
		radial-gradient(ellipse 34% 42% at 22% 38%, rgba(41, 202, 171, 0.2), transparent 70%),
		#f2f7f6;
	-webkit-mask-image: radial-gradient(ellipse 66% 60% at 50% 55%, #000 35%, rgba(0, 0, 0, 0.5) 65%, transparent 100%);
	mask-image: radial-gradient(ellipse 66% 60% at 50% 55%, #000 35%, rgba(0, 0, 0, 0.5) 65%, transparent 100%);
}

.engine-stage > * {
	position: relative;
}

.engine-canvas {
	width: min(100% - 32px, 1680px, calc((100vh - 110px) * 2.4));
	margin: 0 auto;
}

.engine-canvas svg[data-scene] {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 12 / 5;
	overflow: visible;
}

/* On phones the canvas keeps a readable size; while it plays, it pans itself to each step
   (js/hero-animations.js), and with reduced motion it can be scrolled by hand instead */
@media (max-width: 767px) {
	.engine-stage {
		padding: 48px 0 32px;
	}

	.engine-stage::before {
		-webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 60%, #000 25%, transparent 100%);
		mask-image: radial-gradient(ellipse 90% 60% at 50% 60%, #000 25%, transparent 100%);
	}

	.engine-canvas {
		width: 100%;
		overflow-x: auto;
	}

	.engine-canvas.is-following {
		overflow-x: hidden;
	}

	.engine-canvas svg[data-scene] {
		min-width: 900px;
	}
}

/* Business-question cards: a topic label, the question, a short answer and a small chart */
.q-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 36px;
}

.q-chips a {
	padding: 8px 18px;
	border-radius: 50px;
	background: rgba(41, 202, 171, 0.14);
	color: rgb(31, 156, 133);
	font-size: 14px;
	font-weight: 600;
	transition: background 0.2s ease, color 0.2s ease;
}

.q-chips a:hover {
	background: rgb(41, 202, 171);
	color: #06261f;
	text-decoration: none;
}

.q-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: var(--card-padding);
	border-radius: var(--card-radius);
	background: #fff;
	box-shadow: var(--card-shadow);
	text-align: left;
	scroll-margin-top: 24px;
}

.q-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: rgb(31, 156, 133);
	font-size: 14px;
	font-weight: 600;
}

.q-tag i {
	font-size: 18px;
}

.q-card h3 {
	margin: 12px 0 10px;
	font-size: 1.3rem;
	line-height: 1.35;
	color: #111c28;
}

.q-card p {
	margin-bottom: 12px;
	font-size: 16px;
	color: #4b5a58;
}

.q-card .q-more {
	font-size: 15px;
	font-weight: 600;
	color: rgb(31, 156, 133);
}

.q-chart {
	margin-top: auto;
	padding-top: 18px;
}

.q-chart img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid #eef2f3;
	border-radius: 10px;
}

/* Page hero: copy on the left, a framed product image bleeding off the right,
   on the homepage's white-to-green gradient */
.page-hero {
	position: relative;
	overflow: hidden;
	padding: 96px 24px;
	background: linear-gradient(7deg, #fff 52%, rgb(151, 230, 216) 100%);
}

.page-hero-inner {
	max-width: 1240px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 56px;
}

.page-hero-copy {
	flex: 1 1 420px;
	max-width: 500px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

.page-hero-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 1;
	color: #111c28;
}

.page-hero-eyebrow > i {
	color: rgb(31, 156, 133);
	font-size: 22px;
}

.page-hero-eyebrow .wordmark {
	font-family: "Montserrat Alternates", "Poppins", sans-serif;
	font-size: 28px;
}

.page-hero-eyebrow .sol-badge {
	background: rgba(41, 202, 171, 0.16);
	font-size: 13px;
	padding: 5px 12px;
}

.page-hero h1 {
	margin: 0;
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	font-size: clamp(36px, 3.9vw, 56px);
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: #111c28;
}

.page-hero-lead {
	margin: 0;
	font-size: 19px;
	line-height: 1.6;
	color: #16302f;
}

.page-hero-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.ph-btn {
	display: inline-block;
	padding: 15px 28px;
	border-radius: 50px;
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.ph-btn:hover {
	text-decoration: none;
}

.ph-btn-dark {
	background: #111c28;
	color: #fff;
	border: 2px solid #111c28;
}

.ph-btn-dark:hover {
	background: #22313f;
	color: #fff;
}

.ph-btn-light {
	background: #fff;
	color: #111c28;
	border: 2px solid #cfe0dd;
}

.ph-btn-light:hover {
	border-color: rgb(41, 202, 171);
	color: #111c28;
}

.ph-link {
	padding: 15px 8px;
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	font-size: 15px;
	color: #111c28;
}

.page-hero-facts {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: "Poppins", sans-serif;
	font-weight: 500;
	font-size: 14px;
	color: #16302f;
}

.page-hero-facts li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.page-hero-facts li::before {
	content: "\F26E";
	font-family: "bootstrap-icons";
	font-size: 18px;
	line-height: 1;
	color: rgb(31, 156, 133);
}

.page-hero-media {
	flex: 1.5 1 560px;
	min-width: 0;
}

.page-hero-frame {
	padding: 7px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 30px 80px rgba(9, 60, 50, 0.22);
}

.page-hero-frame img,
.page-hero-frame svg {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	border-radius: 9px;
}

.page-hero-frame img {
	object-fit: cover;
	object-position: left top;
}

/* Animated scenes, drawn by js/hero-animations.js */
svg[data-scene] {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

@media (max-width: 991px) {
	.page-hero {
		padding: 64px 16px;
	}

	.page-hero-copy {
		max-width: none;
	}
}

/* Image beside a list of steps: from lg up it starts level with the first step,
   then follows the scroll, held centred in the viewport, until the steps end.
   js/script.js sets `top` to centre it; 24px is the fallback. */
@media (min-width: 992px) {
	.sticky-media {
		position: sticky;
		top: 24px;
	}
}
