/* ================================
   Homepage
   ================================ */

/* ---------- Product screenshots ================================ */
.product-shot {
	max-width: 980px;
	margin: 0 auto;
}

.product-shot img,
.hero-shot img,
.workflow-media img,
.feature-shot img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	border: 1px solid var(--color-border-light);
	box-shadow: 0 12px 30px var(--color-shadow-light);
	background: var(--color-bg);
}

.shot-caption {
	margin-top: 1rem;
	font-size: 0.9rem;
	color: var(--color-text-muted-light);
	text-align: center;
}

/* Features-page (A/B/C section) screenshots. Fomantic's .ui.image clamps the
   width inside grid columns, but nothing reset the height attribute, so the
   literal pixel height stuck and squashed the image. Keep the intrinsic ratio. */
img.feature-shot {
	display: block;
	width: 100%;
	height: auto;
}

.shot-cta {
	text-align: center;
	margin-top: 2rem;
}


/* ================================
   Workflow narrative
   ================================ */
.home-workflows {
	background: var(--color-bg-light) !important;
}

.workflow-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
}

.workflow-card {
	background: var(--color-bg);
	border: 1px solid var(--color-border-light);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 12px var(--color-shadow-lightest);
	display: flex;
	flex-direction: column;
}

.workflow-media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--color-primary-bg-light);
	border-bottom: 1px solid var(--color-border-lighter);
}

.workflow-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left top;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.workflow-body {
	padding: 1.5rem;
}

.workflow-step {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-primary-dark);
	margin-bottom: 0.5rem;
}

.workflow-body h3 {
	font-size: 1.2rem !important;
	font-weight: 700 !important;
	color: var(--color-bg-dark) !important;
	margin: 0 0 0.5rem !important;
}

.workflow-body p {
	color: var(--color-text-muted);
	margin: 0;
}

/* ================================
   Implementation steps
   ================================ */
.home-implementation {
	background: var(--color-bg-light);
}

.steps-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.step-card {
	background: var(--color-bg);
	border: 1px solid var(--color-border-light);
	border-radius: 14px;
	padding: 1.75rem;
	box-shadow: 0 4px 12px var(--color-shadow-lightest);
}

.step-number {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--color-primary-bg-light);
	color: var(--color-primary-dark);
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
}

.step-card h3 {
	font-size: 1.1rem !important;
	font-weight: 700 !important;
	color: var(--color-bg-dark) !important;
	margin: 0 0 0.5rem !important;
}

.step-card p {
	color: var(--color-text-muted);
	margin: 0;
}

/* ================================
   Shared responsive behaviour
   ================================ */
@media (max-width: 767px) {
	.workflow-grid,
	.steps-grid {
		grid-template-columns: 1fr;
	}

	.workflow-media {
		aspect-ratio: 16 / 10;
	}
}

/* Let the comparison table scroll instead of overflowing on narrow screens */
.table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.table-scroll .benefits-table {
	min-width: 640px;
}

/* Prevent wide media from forcing horizontal scroll */
.product-shot,
.workflow-grid,
.steps-grid {
	max-width: 100%;
}

.product-shot img,
.workflow-media img {
	max-width: 100%;
}
