/* --- Automation page pattern ------------------------------------------------
   Built for AI & Business Automation, which deliberately uses a different
   page rhythm from the other core service pages. Global tokens, typography,
   buttons, header and footer are unchanged; only the composition differs.

   .sd-benefit-strip, .sd-checkline, .sd-timeline and .sd-footnote are generic
   and free to reuse anywhere. The rest is the automation family.
   ---------------------------------------------------------------------- */

/* Compact horizontal benefit strip. Acts as a transition, not a section. */
.sd-benefit-strip {
	background: #EEEEDE;
	border-top: 1px solid var(--sd-border);
	border-bottom: 1px solid var(--sd-border);
}
.sd-benefit-strip__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sd-space-xs);
	min-height: 90px;
	flex-wrap: wrap;
}
.sd-benefit-strip__item {
	display: flex;
	align-items: center;
	gap: 13px;
	font-size: var(--sd-text-ui);
	font-weight: var(--sd-weight-medium);
}
.sd-benefit-strip__item .sd-icon { width: 22px; height: 22px; flex: none; color: #5F6B44; }

@media (max-width: 768px) {
	.sd-benefit-strip__inner { flex-direction: column; align-items: flex-start; gap: 14px; padding-block: 24px; }
}

/* Generic check line, used by engagement cards and the control panel. */
.sd-checkline { display: flex; gap: 12px; align-items: flex-start; font-size: var(--sd-text-small); line-height: 1.6; }
.sd-checkline .sd-icon { width: 18px; height: 18px; margin-top: 3px; flex: none; color: var(--sd-coral-text); }
.sd-checkline + .sd-checkline { margin-top: 15px; }

/* Small centred note under a section. */
.sd-footnote { padding-top: 25px; font-size: 13px; text-align: center; color: var(--sd-text-secondary); }
.sd-footnote a { color: var(--sd-text-primary); border-bottom: 1px solid var(--sd-border); }
.sd-footnote a:hover { border-bottom-color: var(--sd-coral-text); color: var(--sd-coral-text); }

/* --- Productised solution menu --------------------------------------------- */
.sd-solutions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sd-solution-card {
	display: flex;
	flex-direction: column;
	padding: 28px 27px 24px;
	background: var(--sd-surface-raised);
	border: 1px solid var(--sd-border-card);
	border-radius: 14px;
	transition: border-color var(--sd-dur) var(--sd-ease), transform var(--sd-dur) var(--sd-ease);
}
.sd-solution-card:hover { border-color: var(--sd-coral); transform: translateY(-2px); }
.sd-solution-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 27px; }
.sd-solution-card__no { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--sd-text-secondary); }
.sd-solution-card__title { font-size: 23px; line-height: 1.18; margin-bottom: 16px; }
/* Titles run to one or two lines depending on the solution name. Reserving two
   lines while the cards sit side by side keeps every body paragraph in a row on
   the same baseline; below 700px the cards are stacked so the reserve is dropped. */
@media (min-width: 701px) {
	.sd-solution-card__title { min-height: 2.36em; }
}
.sd-solution-card__body { flex: 1; font-size: var(--sd-text-small); line-height: 1.7; color: var(--sd-text-secondary); }
.sd-solution-card__flow {
	margin-top: 16px;
	padding: 15px 0;
	border-top: 1px solid var(--sd-border);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--sd-text-secondary);
}
.sd-solution-card__foot { margin-top: auto; }

@media (max-width: 1100px) { .sd-solutions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .sd-solutions { grid-template-columns: 1fr; } }

/* --- Dark workflow demonstration -------------------------------------------- */
.sd-workflow { background: #253529; color: #F4F7E9; padding-block: 78px 48px; }
.sd-workflow h1, .sd-workflow h2, .sd-workflow h3 { color: #F4F7E9; }

.sd-workflow__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 45px; margin-top: 45px; }
.sd-workflow__stage { position: relative; }
.sd-workflow__stage:not(:last-child)::after {
	content: '';
	position: absolute;
	right: -30px;
	top: 24px;
	width: 16px;
	height: 10px;
	background: #A7BA94;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%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 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain;
}
.sd-workflow__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px; height: 54px;
	border-radius: 11px;
	background: #3E5039;
	color: #DFEBA7;
	margin-bottom: 26px;
}
.sd-workflow__icon .sd-icon { width: 24px; height: 24px; }
.sd-workflow__no {
	float: right;
	margin-top: 16px;
	font-size: 11px;
	font-variant-numeric: tabular-nums;
	color: #C7D3BE;
}
.sd-workflow__title { font-size: 25px; margin-bottom: 13px; }
.sd-workflow__body { font-size: var(--sd-text-small); color: #C7D3BE; max-width: 26ch; }
.sd-workflow__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sd-space-md);
	flex-wrap: wrap;
	margin-top: 40px;
	padding-top: 22px;
	border-top: 1px solid #52624A;
}
.sd-workflow__assurance { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #DCE6D0; }
.sd-workflow__assurance .sd-icon { width: 17px; height: 17px; flex: none; }
.sd-workflow__label { font-size: 12px; color: #C7D3BE; }

@media (max-width: 900px) {
	.sd-workflow { padding-block: var(--sd-section-y); }
	.sd-workflow__grid { grid-template-columns: 1fr 1fr; gap: var(--sd-space-sm); }
	.sd-workflow__stage:not(:last-child)::after { display: none; }
	.sd-workflow__body { max-width: none; }
}
@media (max-width: 600px) { .sd-workflow__grid { grid-template-columns: 1fr; gap: var(--sd-space-xs); } }

/* --- Integration examples strip --------------------------------------------- */
.sd-tools {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sd-space-xs);
	flex-wrap: wrap;
	padding-block: 43px 20px;
}
.sd-tools__lead { font-size: 13px; line-height: 1.6; color: var(--sd-text-secondary); max-width: 22ch; }
.sd-tools__item { font-size: 16px; font-weight: 600; letter-spacing: -0.03em; }
.sd-tools__note { width: 100%; font-size: 12px; text-align: right; color: var(--sd-text-secondary); }

@media (max-width: 900px) {
	.sd-tools { gap: 14px 22px; padding-block: var(--sd-space-sm) var(--sd-space-2xs); }
	.sd-tools__lead { max-width: none; flex: 1 1 100%; }
	.sd-tools__note { text-align: left; }
}

/* --- Engagement models ------------------------------------------------------ */
.sd-engagement { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sd-engagement-card {
	display: flex;
	flex-direction: column;
	padding: 30px;
	background: var(--sd-bg);
	border: 1px solid var(--sd-border);
	border-radius: 14px;
}
.sd-engagement-card .sd-eyebrow { margin-bottom: 20px; }
.sd-engagement-card__title { font-size: 28px; line-height: 1.15; margin-bottom: 18px; }
.sd-engagement-card__body { font-size: var(--sd-text-small); line-height: 1.7; color: var(--sd-text-secondary); }
.sd-engagement-card__checks { margin-block: 28px; }
.sd-engagement-card__price {
	margin-top: auto;
	margin-bottom: 21px;
	padding-top: 20px;
	border-top: 1px solid var(--sd-border);
	font-size: 15px;
	font-weight: var(--sd-weight-heading);
}

@media (max-width: 1100px) { .sd-engagement { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px)  { .sd-engagement { grid-template-columns: 1fr; } }

/* --- Open implementation timeline ------------------------------------------- */
.sd-timeline {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	padding-top: 36px;
}
.sd-timeline::before {
	content: '';
	position: absolute;
	top: 6px; left: 5px; right: 5px;
	height: 1px;
	background: var(--sd-border);
}
.sd-timeline__item { position: relative; }
.sd-timeline__item::before {
	content: '';
	position: absolute;
	top: -36px; left: 0;
	width: 11px; height: 11px;
	border-radius: 50%;
	background: var(--sd-coral);
	box-shadow: 0 0 0 5px var(--sd-bg);
}
.sd-timeline__no {
	display: block;
	font-size: 13px;
	font-weight: var(--sd-weight-heading);
	font-variant-numeric: tabular-nums;
	color: var(--sd-coral-text);
	margin-bottom: 14px;
}
.sd-timeline__title { font-size: var(--sd-text-h4); margin-bottom: 10px; }
.sd-timeline__body { font-size: var(--sd-text-small); line-height: 1.7; color: var(--sd-text-secondary); max-width: 30ch; }

@media (max-width: 900px) {
	.sd-timeline { grid-template-columns: 1fr; gap: var(--sd-space-sm); padding-top: 0; padding-left: 28px; }
	.sd-timeline::before { top: 6px; bottom: 6px; left: 5px; right: auto; width: 1px; height: auto; }
	.sd-timeline__item::before { top: 6px; left: -28px; }
	.sd-timeline__body { max-width: none; }
}

/* --- Human control panel ----------------------------------------------------- */
.sd-control { background: #E3E9D3; padding-block: 60px; }
.sd-control__title { font-size: clamp(30px, 3.3vw, 43px); }
.sd-control__body, .sd-control__body p { font-size: var(--sd-text-body); max-width: 44ch; }
.sd-control__body { margin-top: 24px; }
.sd-control__list { padding: 35px 36px; border-left: 1px solid #C4CFAE; }
.sd-control__list .sd-checkline { font-size: var(--sd-text-small); }
.sd-control__list .sd-checkline + .sd-checkline { margin-top: 23px; }
.sd-control__list .sd-checkline .sd-icon { color: #4E6A3B; }

@media (max-width: 900px) {
	.sd-control { padding-block: var(--sd-section-y); }
	.sd-control__list { padding: 0; border-left: 0; border-top: 1px solid #C4CFAE; padding-top: var(--sd-space-xs); }
	.sd-control__body, .sd-control__body p { max-width: none; }
}

/* --- AI hero artwork --------------------------------------------------------
   Reuses the .sd-stage sizing and scaling machinery from the homepage hero, so
   it inherits the same fixed-composition-scaled-to-column behaviour. Only the
   contents differ: an assistant conversation with two result slips and a
   sticker, showing input, judgement, system action and human handoff.

   Literal colours are intentional, as with the homepage stage: this is one
   fixed illustration rather than a themeable surface. Every fact it shows also
   exists as real page text.
   ---------------------------------------------------------------------- */

.sd-stage--ai { background: #EDEDE0; }

.sd-chat {
	position: absolute;
	left: 30px; top: 83px;
	width: 330px;
	z-index: 2;
	background: #FFFEF7;
	border: 1px solid #DCE0CF;
	border-radius: 15px;
	box-shadow: 0 20px 30px rgba(72, 85, 60, 0.08);
	transform: rotate(-4deg);
	overflow: hidden;
	padding-bottom: 12px;
}
.sd-chat__bar {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 48px;
	padding-inline: 14px;
	border-bottom: 1px solid #E3E5DA;
	font-size: 11px;
	font-weight: 600;
	color: #47523F;
}
.sd-chat__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 25px; height: 25px;
	border-radius: 6px;
	background: #E46B50;
	color: #1C2A1E;
	font-size: 15px;
	font-weight: 800;
}
.sd-chat__dot { width: 6px; height: 6px; border-radius: 50%; background: #698852; margin-left: auto; }
.sd-chat__bubble {
	margin: 14px;
	padding: 12px 15px;
	max-width: 240px;
	border-radius: 12px;
	font-size: 11px;
	line-height: 1.6;
	color: #2A3328;
}
.sd-chat__bubble--from { background: #EEF0E5; margin-left: auto; border-bottom-right-radius: 0; }
.sd-chat__bubble--reply { background: #EDDDCC; border-bottom-left-radius: 0; }
.sd-chat__compose {
	display: flex;
	justify-content: space-between;
	margin: 12px 13px 0;
	padding: 8px 10px;
	border: 1px solid #E3E5DA;
	border-radius: 8px;
	font-size: 10px;
	color: #5E6655;
}
.sd-stage__slip--qual { top: 122px; right: -3px; transform: rotate(5deg); }
.sd-stage__slip--person { bottom: 58px; right: 3px; transform: rotate(3deg); }
.sd-stage--ai .sd-stage__sticker { bottom: 161px; right: 0; background: #EF8E72; }
