/* Homepage redesign 2025 — scoped to body.startpage */

body.startpage {
	background: #fafafa;
	color: #0a0a0a;
}

/* ---------- Header (restyle of the shared functional header) ---------- */

body.startpage .header {
	position: sticky;
	top: 0;
	z-index: 1040;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid #e5e5e5;
	padding: 14px 0;
}

body.startpage .header .container.flex {
	align-items: center;
}

body.startpage .header ul {
	margin: 0;
}

body.startpage .hp-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}

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

body.startpage .hp-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at top right, rgba(0, 0, 0, 0.08), transparent 35%),
		radial-gradient(circle at bottom left, rgba(0, 0, 0, 0.06), transparent 30%),
		#fff;
}

body.startpage .hp-hero .hp-wrap {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 48px;
	padding-top: 80px;
	padding-bottom: 80px;
}

body.startpage .hp-hero-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

body.startpage .hp-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	margin-bottom: 24px;
	padding: 8px 16px;
	border: 1px solid #e5e5e5;
	border-radius: 999px;
	background: #fafafa;
	font-size: 14px;
	color: #525252;
}

body.startpage .hp-badge svg {
	flex-shrink: 0;
}

body.startpage .hp-hero h1 {
	margin: 0;
	max-width: 18ch;
	font-size: clamp(2.5rem, 5vw, 4.25rem);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.025em;
	color: #0a0a0a;
}

body.startpage .hp-sub {
	margin: 24px 0 0;
	max-width: 42em;
	font-size: 18px;
	line-height: 1.8;
	color: #525252;
}

/* Search card wraps the shared akibase-search startsearch block */

body.startpage .hp-searchcard {
	margin-top: 36px;
	padding: 12px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 24px;
	box-shadow: 0 25px 50px -12px rgba(229, 229, 229, 0.7);
}

body.startpage .hp-searchcard form {
	margin: 0;
	padding: 0;
	background: none;
}

body.startpage .hp-searchcard form > p {
	display: none;
}

body.startpage .hp-searchcard .field {
	padding: 0;
	position: relative;
}

body.startpage .hp-searchcard .field .input {
	display: flex;
	gap: 12px;
	overflow: visible;
	border-radius: 0;
}

body.startpage .hp-searchcard .field .input input[type=text] {
	flex: 1 1 auto;
	min-width: 0;
	height: auto;
	padding: 16px 20px 16px 52px;
	background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") 20px center no-repeat;
	border: 1px solid transparent;
	border-radius: 16px;
	font-size: 16px;
	color: #0a0a0a;
	box-shadow: none;
}

body.startpage .hp-searchcard .field .input input[type=text]:focus {
	font-weight: 400;
	border-color: #0a0a0a;
	outline: none;
	background-color: #fff;
}

body.startpage .hp-searchcard #search,
body.startpage .hp-searchcard #search:focus {
	color: #0a0a0a;
	font-weight: 400;
	text-transform: none;
}

body.startpage .hp-searchcard #search::placeholder {
	font-size: 16px;
	color: #737373;
	text-transform: none;
}

body.startpage .hp-searchcard .field .input button {
	position: static;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 16px 28px;
	background: #0a0a0a;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	border: none;
	border-radius: 16px;
	cursor: pointer;
	transition: background 0.2s;
}

body.startpage .hp-searchcard .field .input button:hover {
	opacity: 1;
	background: #262626;
}

body.startpage .hp-searchcard .field .input button span {
	display: none;
}

body.startpage .hp-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 24px;
}

body.startpage .hp-chips button {
	padding: 8px 16px;
	background: #f5f5f5;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 14px;
	color: #525252;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

body.startpage .hp-chips button:hover {
	background: #e5e5e5;
	color: #0a0a0a;
}

body.startpage .hp-chips button.active {
	background: #0a0a0a;
	color: #fff;
}

/* Hero image collage */

body.startpage .hp-collage {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

body.startpage .hp-collage > div {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

body.startpage .hp-collage > div:first-child {
	padding-top: 40px;
}

body.startpage .hp-collage a {
	display: block;
	border-radius: 32px;
	background: #e5e5e5 center/cover no-repeat;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	transition: transform 0.25s;
}

body.startpage .hp-collage a:hover {
	transform: translateY(-4px);
}

body.startpage .hp-collage a.tall { height: 288px; }
body.startpage .hp-collage a.short { height: 224px; }

/* ---------- Shared section bits ---------- */

body.startpage .hp-section {
	padding: 80px 0;
}

body.startpage .hp-kicker {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: #737373;
}

body.startpage .hp-section h2 {
	margin: 12px 0 0;
	font-size: clamp(1.9rem, 3vw, 2.5rem);
	font-weight: 600;
	letter-spacing: -0.025em;
	color: #0a0a0a;
}

/* ---------- Categories ---------- */

body.startpage .hp-cats-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 40px;
}

body.startpage .hp-cats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

body.startpage .hp-cat {
	display: block;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 32px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	text-decoration: none;
	transition: transform 0.25s, box-shadow 0.25s;
}

body.startpage .hp-cat:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
	text-decoration: none;
}

body.startpage .hp-cat .bg {
	height: 176px;
	background: #e5e5e5 center/cover no-repeat;
}

body.startpage .hp-cat .body {
	padding: 20px;
}

body.startpage .hp-cat h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #0a0a0a;
}

body.startpage .hp-cat p {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.6;
	color: #525252;
}

/* ---------- Dark feature band ---------- */

body.startpage .hp-dark {
	background: #0a0a0a;
	color: #fff;
	padding: 80px 0;
}

body.startpage .hp-dark .hp-wrap {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

body.startpage .hp-dark .card {
	background: rgba(255, 255, 255, 0.1);
	border: none;
	border-radius: 32px;
	padding: 32px;
}

body.startpage .hp-dark .card svg {
	display: block;
}

body.startpage .hp-dark .card h3 {
	margin: 24px 0 0;
	font-size: 24px;
	font-weight: 600;
	color: #fff;
}

body.startpage .hp-dark .card p {
	margin: 12px 0 0;
	line-height: 1.75;
	color: #d4d4d4;
}

/* ---------- About / licensing section ---------- */

body.startpage .hp-about .hp-wrap {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 40px;
}

body.startpage .hp-about-copy .logo {
	margin-bottom: 24px;
}

body.startpage .hp-about-copy .logo img {
	max-width: 220px;
	height: auto;
}

body.startpage .hp-about-copy p {
	margin: 20px 0 0;
	line-height: 1.8;
	color: #525252;
}

body.startpage .hp-about-copy p.lead {
	font-size: 18px;
	font-weight: 600;
	color: #0a0a0a;
}

body.startpage .hp-about-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	align-content: start;
}

body.startpage .hp-about-cards .card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 32px;
	padding: 24px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body.startpage .hp-about-cards .card h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #0a0a0a;
}

body.startpage .hp-about-cards .card p {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.6;
	color: #525252;
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
	body.startpage .hp-hero .hp-wrap {
		grid-template-columns: 1fr;
		padding-top: 48px;
		padding-bottom: 48px;
	}

	body.startpage .hp-cats {
		grid-template-columns: 1fr 1fr;
	}

	body.startpage .hp-dark .hp-wrap {
		grid-template-columns: 1fr;
	}

	body.startpage .hp-about .hp-wrap {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 575px) {
	body.startpage .hp-section {
		padding: 48px 0;
	}

	body.startpage .hp-searchcard .field .input {
		flex-direction: column;
	}

	body.startpage .hp-searchcard .field .input button {
		justify-content: center;
	}

	body.startpage .hp-cats {
		grid-template-columns: 1fr;
	}

	body.startpage .hp-about-cards {
		grid-template-columns: 1fr;
	}

	body.startpage .hp-collage a.tall { height: 200px; }
	body.startpage .hp-collage a.short { height: 156px; }
}
