/*
	Keynetica site-wide layout fixes.
	Loaded after main.css on every page; keeps the Solid State look and only
	fixes overflow, image sizing and a few spacing issues.
*/

/* Logos and banner photos carry fixed inline widths (400px / 600px).
   Never let them be wider than the screen. */
#banner .logo img,
#wrapper > header .logo img,
#banner .image,
#banner .image img {
	max-width: 100%;
}
#banner .logo img,
#wrapper > header .logo img,
#banner .image img {
	height: auto !important;
}

/* Spotlight photos: true circles whatever the source photo's shape. */
.wrapper.spotlight .image img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
}

/* Feature-card photos: one consistent 3:2 crop so cards line up. */
.features article .image img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
	display: block;
}

/* Product logos in feature cards: same frame height, shown whole on white. */
.features article .image.kn-logo {
	background: #ffffff;
}
.features article .image.kn-logo img {
	aspect-ratio: 16 / 5;
	object-fit: contain;
	padding: 0.75em 1.5em;
	box-sizing: border-box;
	background: #ffffff;
}

/* Short capability lists inside feature cards (fcto.html). */
.kn-points {
	list-style: none;
	padding: 0;
	margin: 0 0 1em 0;
}
.kn-points li {
	position: relative;
	padding: 0.45em 0 0.45em 1.75em;
	border-top: solid 1px rgba(255, 255, 255, 0.08);
	line-height: 1.4;
}
.kn-points li:first-child { border-top: 0; }
.kn-points li:before {
	content: '\f00c';
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	position: absolute;
	left: 0;
	top: 0.5em;
	font-size: 0.8em;
	color: rgba(255, 255, 255, 0.6);
}

/* Clears a floated image before the next section (book.html). */
.kn-clear {
	clear: both;
	height: 1em;
}

@media screen and (max-width: 736px) {
	/* Right-aligned paragraphs are hard to read on a phone. */
	.wrapper.spotlight .inner {
		text-align: left !important;
	}
	/* Floated headshot: full width above the text on small screens. */
	.image.right.kn-stack-mobile {
		float: none;
		margin: 0 0 1.5em 0;
		display: block;
		max-width: 16em;
	}
}

/* SEO heading fix (2026-10-22). The header logo text is no longer an <h1>
   (it is div.kn-site-title) and each page's main heading is now the single
   <h1 class="kn-page-title">. These rules copy the h1/h2 rules from main.css
   so both look exactly as before. */
#header .kn-site-title {
	color: #ffffff;
	font-family: Raleway, Helvetica, sans-serif;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	-moz-transition: opacity 0.2s ease-in-out, visibility 0.2s;
	-webkit-transition: opacity 0.2s ease-in-out, visibility 0.2s;
	-ms-transition: opacity 0.2s ease-in-out, visibility 0.2s;
	transition: opacity 0.2s ease-in-out, visibility 0.2s;
	border-bottom: 0;
	font-size: 0.8em;
	margin: 0;
	opacity: 1;
	visibility: visible;
}
#header .kn-site-title a {
	color: inherit;
	text-decoration: none;
	border: 0;
}
#header.alt .kn-site-title {
	opacity: 0;
	visibility: hidden;
}

h1.kn-page-title {
	font-size: 1.2em;
}
#banner h1 {
	-moz-transition: opacity 0.5s ease, -moz-transform 0.5s ease, -moz-filter 0.25s ease;
	-webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease, -webkit-filter 0.25s ease;
	-ms-transition: opacity 0.5s ease, -ms-transform 0.5s ease, -ms-filter 0.25s ease;
	transition: opacity 0.5s ease, transform 0.5s ease, filter 0.25s ease;
	-moz-transform: translateX(0);
	-webkit-transform: translateX(0);
	-ms-transform: translateX(0);
	transform: translateX(0);
	-moz-transition-delay: 0.65s;
	-webkit-transition-delay: 0.65s;
	-ms-transition-delay: 0.65s;
	transition-delay: 0.65s;
	-moz-filter: blur(0);
	-webkit-filter: blur(0);
	-ms-filter: blur(0);
	filter: blur(0);
	opacity: 1;
	border-bottom: solid 2px rgba(255, 255, 255, 0.125);
	font-size: 2.25em;
	margin-bottom: 0.8em;
	padding-bottom: 0.4em;
}
body.is-preload #banner h1 {
	opacity: 0;
	-moz-transform: translateX(0.25em);
	-webkit-transform: translateX(0.25em);
	-ms-transform: translateX(0.25em);
	transform: translateX(0.25em);
	-moz-filter: blur(2px);
	-webkit-filter: blur(2px);
	-ms-filter: blur(2px);
	filter: blur(2px);
}
#wrapper > header h1 {
	border-bottom: solid 2px rgba(255, 255, 255, 0.125);
	font-size: 2em;
	margin-bottom: 0.8em;
	padding-bottom: 0.4em;
}
@media screen and (max-width: 736px) {
	h1.kn-page-title {
		font-size: 1em;
	}
	#banner h1 {
		font-size: 1.5em;
	}
	#wrapper > header h1 {
		font-size: 1.25em;
	}
}

/* Extra link text for screen readers and search engines; not shown on screen. */
.kn-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Homepage hero (2026-10-22): three pain points and a call button under the
   subhead. Same fade-in as the banner text. */
#banner .kn-pains {
	list-style: none;
	padding: 0;
	margin: 0 0 2em 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1em;
	transition: opacity 0.5s ease, transform 0.5s ease;
	transition-delay: 0.95s;
	opacity: 1;
	transform: translateX(0);
}
#banner .kn-pains li {
	padding: 1em 1.1em;
	border: solid 1px rgba(255, 255, 255, 0.15);
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.04);
	font-size: 0.9em;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.75);
}
#banner .kn-pains strong {
	display: block;
	color: #ffffff;
	font-family: Raleway, Helvetica, sans-serif;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	font-size: 0.85em;
	margin-bottom: 0.35em;
}
#banner .kn-hero-actions { margin-bottom: 0; }
body.is-preload #banner .kn-pains {
	opacity: 0;
	transform: translateX(0.5em);
}
@media screen and (max-width: 736px) {
	#banner .kn-pains { grid-template-columns: 1fr; gap: 0.75em; }
	#banner .kn-hero-actions li { width: 100%; }
	#banner .kn-hero-actions .button { width: 100%; white-space: normal; height: auto; line-height: 1.4; padding: 1em 1.25em; }
}

/* AI Profit Roadmap H1 (2026-10-22): the full H1 is "AI Profit Roadmap: AI Strategy
   and Implementation Plan for Growing Companies"; the descriptive half is shown
   as a smaller second line so the hero keeps its look. */
h1.kn-page-title .ar-h1-sub {
	display: block;
	font-size: 0.5em;
	line-height: 1.4;
	letter-spacing: 0.08em;
	margin-top: 0.5em;
	color: rgba(255, 255, 255, 0.85);
}

/* About page Results (2026-10-22): three cards in one row on desktop, styled
   like the other .features cards; big figure plus one line each. */
.features.kn-results article {
	width: calc((100% - 4em) / 3);
	margin: 1.5em 2em 1.5em 0;
}
.features.kn-results article:nth-child(3n) { margin-right: 0; }
.kn-result-figure { margin-bottom: 0.75em; line-height: 1.2; }
.kn-result-num {
	display: block;
	color: #ffffff;
	font-family: Raleway, Helvetica, sans-serif;
	font-weight: 700;
	font-size: 2em;
	letter-spacing: 0.02em;
}
.kn-result-label {
	display: block;
	color: #ffffff;
	font-family: Raleway, Helvetica, sans-serif;
	font-weight: 700;
	font-size: 0.8em;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-top: 0.35em;
}
.kn-results-note { font-size: 0.8em; opacity: 0.7; margin-top: -1em; }
@media screen and (max-width: 980px) {
	.features.kn-results article { width: calc((100% - 2em) / 3); margin: 1em 1em 1em 0; }
	.kn-result-num { font-size: 1.6em; }
}
@media screen and (max-width: 736px) {
	.features.kn-results { display: block; }
	.features.kn-results article { width: 100%; margin: 0 0 1.25em 0 !important; }
}
