/*
	Features > AI and automation

	A one-off page, not a detail-page template. Same language as the home and phone pages - one
	grotesque family, left-aligned, rules instead of cards. What belongs only to this page is the
	hero: the promise on the left and, on the right, the conversation it describes, drawn in HTML.

	Everything is prefixed .ax- so nothing fights the theme's .dp- primitives; only .dp-container
	is borrowed. Nothing on the page moves.
*/

.ax {
	--ax-ink: #102338;
	--ax-ink-soft: #4a5b6d;
	--ax-fog: #edf0f3;
	--ax-line: #d5dbe2;
	--ax-blue: #1478cf;
	--ax-blue-bright: #2196f3;
	--ax-font: "Schibsted Grotesk", "Segoe UI", sans-serif;

	font-family: var(--ax-font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ax-ink);
}

/* :where() keeps the reset at the lowest specificity, so every class rule below wins over it */
.ax :where(h1, h2, h3, p, ul, ol, figure) {
	margin: 0;
	padding: 0;
	font-family: var(--ax-font);
}

.ax :where(ul, ol) {
	list-style: none;
}

.ax a:focus-visible {
	outline: 3px solid var(--ax-blue-bright);
	outline-offset: 3px;
}


/* ---------------------------------------------------------------- Type and buttons */

.ax .ax-title {
	max-width: 18ch;
	font-size: clamp(32px, 4.2vw, 54px);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.028em;
	text-wrap: balance;
}

.ax .ax-lede {
	max-width: 46ch;
	margin-top: 20px;
	font-size: 18px;
	line-height: 1.6;
	color: var(--ax-ink-soft);
}

.ax .ax-section {
	padding: 112px 0;
}

/* Section opener: the title on the left, the sentence that explains it on the right */
.ax .ax-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
	gap: 20px 64px;
	align-items: end;
	margin-bottom: 64px;
}

.ax .ax-head .ax-lede {
	margin-top: 0;
}

.ax .ax-btn {
	display: inline-block;
	padding: 16px 28px;
	border-radius: 4px;
	background: var(--ax-ink);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	color: #ffffff;
	transition: background-color 0.15s, color 0.15s;
}

.ax .ax-btn:hover,
.ax .ax-btn:focus {
	background: var(--ax-blue);
	text-decoration: none;
	color: #ffffff;
}

/* On the navy and blue grounds the button turns over */
.ax .ax-btn-light {
	background: #ffffff;
	color: var(--ax-ink);
}

.ax .ax-btn-light:hover,
.ax .ax-btn-light:focus {
	background: #d8ecfd;
	color: var(--ax-ink);
}

.ax .ax-link {
	font-size: 16px;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
	text-decoration-color: var(--ax-line);
	color: var(--ax-ink);
	transition: text-decoration-color 0.15s;
}

.ax .ax-link:hover,
.ax .ax-link:focus {
	text-decoration-color: var(--ax-blue-bright);
	color: var(--ax-ink);
}


/* ---------------------------------------------------------------- Hero */

.ax .ax-hero {
	overflow: hidden;
	background-color: var(--ax-ink);
	background-image: radial-gradient(ellipse 55% 80% at 100% 40%, rgba(33, 150, 243, 0.3) 0%, rgba(33, 150, 243, 0) 70%);
	color: #ffffff;

	/* 60px of the top is the fixed header */
	padding: 112px 0 104px 0;
}

.ax .ax-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 64px;
	align-items: center;
}

.ax .ax-crumbs {
	margin-bottom: 28px;
}

.ax .ax-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0 8px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.64);
}

.ax .ax-crumbs li + li:before {
	content: "/";
	margin-right: 8px;
	color: rgba(255, 255, 255, 0.3);
}

.ax .ax-crumbs a {
	text-decoration: none;
	color: rgba(255, 255, 255, 0.8);
}

.ax .ax-crumbs a:hover,
.ax .ax-crumbs a:focus {
	text-decoration: underline;
	color: #ffffff;
}

.ax .ax-hero-title {
	max-width: 11em;
	font-size: clamp(40px, 5.6vw, 76px);
	font-weight: 800;
	line-height: 0.99;
	letter-spacing: -0.04em;
	text-wrap: balance;
}

.ax .ax-hero-subtitle {
	max-width: 44ch;
	margin-top: 28px;
	font-size: 20px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.78);
}

.ax .ax-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 28px;
	align-items: center;
	margin-top: 36px;
}

.ax .ax-hero .ax-link {
	text-decoration-color: rgba(255, 255, 255, 0.35);
	color: #ffffff;
}

.ax .ax-hero .ax-link:hover,
.ax .ax-hero .ax-link:focus {
	text-decoration-color: #7cc3fa;
	color: #ffffff;
}


/* ---------------------------------------------------------------- The conversation */

.ax .ax-chat {
	max-width: 480px;
	margin: 0 0 0 auto;
}

.ax .ax-chat-card {
	padding: 22px 22px 20px 22px;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 40px 70px -28px rgba(0, 0, 0, 0.6);
	color: var(--ax-ink);
}

.ax .ax-chat-bar {
	display: flex;
	gap: 10px;
	align-items: center;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--ax-line);
	font-size: 15px;
}

.ax .ax-chat-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #1a7f37;
}

.ax .ax-chat-name {
	font-weight: 700;
}

.ax .ax-chat-time {
	margin-left: auto;
	color: var(--ax-ink-soft);
}

.ax .ax-chat-log {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px 0;
}

.ax .ax-msg {
	max-width: 86%;
	padding: 11px 16px;
	border-radius: 16px;
	font-size: 16px;
	line-height: 1.45;
}

.ax .ax-msg-visitor {
	align-self: flex-end;
	border-bottom-right-radius: 4px;
	background: var(--ax-blue);
	color: #ffffff;
}

.ax .ax-msg-bot {
	align-self: flex-start;
	border-bottom-left-radius: 4px;
	background: var(--ax-fog);
}

.ax .ax-chat-result {
	display: flex;
	gap: 10px;
	align-items: center;
	padding-top: 16px;
	border-top: 1px solid var(--ax-line);
	font-size: 15px;
	font-weight: 700;
	color: #1a7f37;
}

.ax .ax-chat-caption {
	margin-top: 14px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.6);
}


/* ---------------------------------------------------------------- One night */

.ax .ax-night {
	background: #ffffff;
}

/* One rule runs across the four steps, and each step hangs a dot from it */
.ax .ax-line {
	counter-reset: ax-step;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px;
	margin-top: 64px;
	border-top: 2px solid var(--ax-ink);
}

.ax .ax-line li {
	counter-increment: ax-step;
	position: relative;
	padding-top: 32px;
}

.ax .ax-line li:before {
	content: "";
	position: absolute;
	top: -9px;
	left: 0;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--ax-blue-bright);
	box-shadow: 0 0 0 4px #ffffff;
}

.ax .ax-line h3 {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.015em;
}

.ax .ax-line h3:before {
	content: counter(ax-step) ". ";
	color: var(--ax-blue);
}

.ax .ax-line p {
	max-width: 28ch;
	margin-top: 10px;
	color: var(--ax-ink-soft);
}


/* ---------------------------------------------------------------- Assistants */

.ax .ax-assist {
	background: var(--ax-fog);
}

.ax .ax-assist-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 56px 48px;
}

.ax .ax-assist-list li {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding-top: 24px;
	border-top: 2px solid var(--ax-ink);
}

.ax .ax-assist-list li > i {
	font-size: 26px;
	color: var(--ax-blue);
}

.ax .ax-assist-list h3 {
	margin-top: 20px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.ax .ax-assist-list p {
	max-width: 36ch;
	margin: 12px 0 24px 0;
	color: var(--ax-ink-soft);
}

.ax .ax-assist-list .ax-link {
	margin-top: auto;
}


/* ---------------------------------------------------------------- Less typing */

.ax .ax-data {
	background: #ffffff;
}

.ax .ax-data-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 56px 64px;
}

.ax .ax-data-list h3 {
	display: flex;
	gap: 14px;
	align-items: baseline;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.015em;
}

.ax .ax-data-list h3 i {
	font-size: 20px;
	color: var(--ax-blue);
}

/* What goes in, an arrow, what comes out - the arrow is the whole job the feature does */
.ax .ax-flow {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr);
	gap: 16px;
	align-items: center;
	margin: 24px 0 20px 0;
}

.ax .ax-flow-from,
.ax .ax-flow-to {
	padding: 18px 20px;
	border-radius: 6px;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.35;
}

.ax .ax-flow-from {
	border: 2px dashed var(--ax-line);
	color: var(--ax-ink-soft);
}

.ax .ax-flow-to {
	background: var(--ax-ink);
	color: #ffffff;
}

.ax .ax-flow-arrow {
	font-size: 18px;
	color: var(--ax-blue-bright);
}

.ax .ax-data-text {
	max-width: 46ch;
	color: var(--ax-ink-soft);
}


/* ---------------------------------------------------------------- MCP server */

.ax .ax-mcp {
	background-color: var(--ax-ink);
	background-image: radial-gradient(ellipse 60% 90% at 0% 50%, rgba(33, 150, 243, 0.26) 0%, rgba(33, 150, 243, 0) 70%);
	color: #ffffff;
}

.ax .ax-mcp-grid {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	gap: 80px;
	align-items: center;
}

.ax .ax-mcp .ax-lede {
	color: rgba(255, 255, 255, 0.76);
}

.ax .ax-ask-label {
	margin-bottom: 20px;
	font-size: 16px;
	font-weight: 700;
	color: #7cc3fa;
}

/* The questions are set as messages the dealer would type, each with a bar down its left edge */
.ax .ax-ask-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ax .ax-ask-list li {
	padding: 16px 20px;
	border-left: 3px solid var(--ax-blue-bright);
	border-radius: 0 6px 6px 0;
	background: rgba(255, 255, 255, 0.07);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
}


/* ---------------------------------------------------------------- Control */

.ax .ax-control {
	background: var(--ax-fog);
}

.ax .ax-control-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 48px 64px;
	margin-top: 64px;
}

.ax .ax-control-list li {
	padding-top: 20px;
	border-top: 2px solid var(--ax-ink);
}

.ax .ax-control-list h3 {
	display: flex;
	gap: 14px;
	align-items: baseline;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.015em;
}

.ax .ax-control-list h3 i {
	font-size: 20px;
	color: var(--ax-blue);
}

.ax .ax-control-list p {
	max-width: 44ch;
	margin-top: 12px;
	color: var(--ax-ink-soft);
}


/* ---------------------------------------------------------------- Final call to action */

.ax .ax-final {
	padding: 104px 0;
	background: var(--ax-blue);
	color: #ffffff;
}

.ax .ax-final-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 36px 64px;
	align-items: flex-end;
	justify-content: space-between;
}

.ax .ax-final-title {
	max-width: 17ch;
	font-size: clamp(34px, 5vw, 64px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.ax .ax-final-text {
	max-width: 46ch;
	margin-top: 24px;
	font-size: 19px;
	color: rgba(255, 255, 255, 0.9);
}


/* ---------------------------------------------------------------- Narrower screens */

@media (max-width: 991px) {

	.ax .ax-hero-grid,
	.ax .ax-mcp-grid,
	.ax .ax-head {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}

	.ax .ax-head {
		gap: 20px;
		margin-bottom: 48px;
	}

	.ax .ax-chat {
		margin: 0;
	}

	.ax .ax-line {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 48px 32px;
		border-top: 0;
	}

	.ax .ax-line li {
		border-top: 2px solid var(--ax-ink);
	}

	.ax .ax-assist-list {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.ax .ax-data-list,
	.ax .ax-control-list {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}
}

@media (max-width: 767px) {

	.ax {
		font-size: 16px;
	}

	.ax .ax-section {
		padding: 72px 0;
	}

	.ax .ax-hero {
		padding: 100px 0 64px 0;
	}

	.ax .ax-hero-subtitle {
		font-size: 18px;
	}

	.ax .ax-line {
		grid-template-columns: minmax(0, 1fr);
	}

	.ax .ax-flow {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.ax .ax-flow-arrow {
		transform: rotate(90deg);
		justify-self: center;
	}

	.ax .ax-final {
		padding: 72px 0;
	}
}

@media (prefers-reduced-motion: reduce) {

	.ax .ax-btn,
	.ax .ax-link {
		transition: none;
	}
}
