/* Shared by / and /ai-politik/. One grid: every block starts at the .wrap content edge. */
@font-face {
	font-family: "Atkinson Hyperlegible Next";
	src: url("/assets/fonts/atkinson-hyperlegible-next.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
:root {
	--green: #163229;
	--ink: #1b3029;
	--muted: #4a5a52;
	--accent: #245a32;
	--line: #c5cdc3;
	--paper: #fffefb;
	--pale: #edf0e8;
	--lime: #d8fc71;
	--font:
		"Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto,
		Arial, sans-serif;
	--gap: clamp(28px, 4vw, 48px);
	--section: clamp(64px, 9vw, 112px);
}
* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.5rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
ul {
	margin: 0;
}
h1,
h2,
h3 {
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	overflow-wrap: break-word;
	text-wrap: balance;
}
p,
li {
	text-wrap: pretty;
}
h1 {
	font-size: clamp(2.75rem, 1.6rem + 4.2vw, 4.75rem);
	line-height: 1.08;
}
h2 {
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
}
h3 {
	font-size: 1.625rem;
	line-height: 1.25;
}
em,
.accent {
	font-style: normal;
	color: var(--accent);
}
a {
	color: inherit;
	text-underline-offset: 5px;
}
a:focus-visible {
	outline: 3px solid #759b22;
	outline-offset: 4px;
}
main,
section,
article,
div {
	min-width: 0;
}
section[id] {
	scroll-margin-top: 24px;
}
.wrap {
	max-width: 1240px;
	margin-inline: auto;
	padding-inline: clamp(20px, 5vw, 64px);
}
.skip {
	position: absolute;
	top: -100px;
	left: 20px;
	padding: 12px 18px;
	background: var(--lime);
	z-index: 5;
}
.skip:focus {
	top: 12px;
}

/* header / nav */
.topbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	padding-block: 20px;
	border-bottom: 2px solid var(--line);
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	text-decoration: none;
	font-size: 1.75rem;
	font-weight: 800;
}
.brand img {
	width: 56px;
	height: 56px;
	flex: none;
}
.nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 24px;
	font-size: 1.25rem;
}
.nav a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	text-decoration: none;
}
.nav a:hover {
	text-decoration: underline;
}
.nav .nav-cta {
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

/* shared building blocks */
.section {
	padding-block: var(--section);
}
.green {
	background: var(--green);
	color: var(--paper);
}
.pale {
	background: var(--pale);
}
.label {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--accent);
	margin-bottom: 12px;
}
.green .label,
.green .accent {
	color: var(--lime);
}
.head {
	max-width: 48rem;
	margin-bottom: var(--gap);
}
.intro {
	margin-top: 20px;
	font-size: 1.625rem;
	line-height: 1.55;
}
.prose {
	max-width: 42rem;
}
.prose > * + *,
.intro > * + * {
	margin-top: 20px;
}
.block {
	margin-top: calc(var(--gap) * 1.5);
	padding-top: var(--gap);
	border-top: 2px solid var(--ink);
}
.green .block {
	border-color: var(--lime);
}
.grid {
	display: grid;
	gap: var(--gap);
}
.grid-2 {
	grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
	grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
	grid-template-columns: repeat(4, 1fr);
}
.card {
	border-top: 2px solid var(--line);
	padding-top: 20px;
}
.card[id] {
	scroll-margin-top: 24px;
}
.card h3 {
	margin-bottom: 12px;
}
.card .num {
	display: block;
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--accent);
	margin-bottom: 12px;
}
.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
	margin-top: 32px;
}
.button {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	min-height: 56px;
	max-width: 100%;
	padding: 14px 26px;
	background: var(--green);
	color: #fff;
	border: 2px solid var(--green);
	text-decoration: none;
	font-size: 1.25rem;
	font-weight: 700;
}
.button:hover {
	background: #2d5142;
}
.text-link {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	font-size: 1.25rem;
	font-weight: 700;
}

/* hero */
.hero {
	padding-block: clamp(40px, 6vw, 80px);
}
.hero-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: var(--gap);
	align-items: center;
}
.hero-copy {
	max-width: 38rem;
	margin-top: 24px;
	font-size: 1.625rem;
	line-height: 1.55;
}
.hero-copy p + p {
	margin-top: 20px;
}
.diagram {
	position: relative;
	aspect-ratio: 1;
	width: 100%;
	max-width: 460px;
	margin-inline: auto;
}
.orbit {
	position: absolute;
	inset: 8%;
	border: 2px solid #b6c1b5;
	border-radius: 50%;
}
.orbit.inner {
	inset: 25%;
	border-style: dashed;
}
.diagram-center {
	position: absolute;
	inset: 38%;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--green);
	color: var(--paper);
	font-size: 1.5rem;
	font-weight: 700;
	z-index: 2;
}
.node {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	background: var(--paper);
	font-size: 1.25rem;
	font-weight: 700;
	white-space: nowrap;
	z-index: 2;
}
.dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--green);
	flex: none;
}
.node.one {
	left: 50%;
	top: 2%;
	transform: translateX(-50%);
}
.node.three {
	left: 50%;
	bottom: 2%;
	transform: translateX(-50%);
}
.node.two {
	right: 0;
	top: 50%;
	transform: translateY(-50%);
}
.node.four {
	left: 0;
	top: 50%;
	transform: translateY(-50%);
}
.node.two .dot,
.node.four .dot {
	background: var(--lime);
	box-shadow: 0 0 0 2px var(--green);
}

/* front-page specifics */
.service-list {
	border-top: 2px solid var(--ink);
}
.service-row {
	display: grid;
	grid-template-columns: 4rem 1fr 1.6fr;
	gap: var(--gap);
	padding-block: 24px;
	border-bottom: 2px solid var(--line);
	align-items: baseline;
}
.service-row .num {
	font-weight: 700;
	color: var(--accent);
}
.statement {
	margin-top: calc(var(--gap) * 1.5);
	max-width: 48rem;
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	font-weight: 700;
	line-height: 1.35;
}
.focus-areas {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0 var(--gap);
	margin-block: 24px;
}
.focus-areas li {
	border-top: 2px solid var(--line);
	padding-block: 10px;
}
.interests {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	list-style: none;
	padding: 0;
	margin-bottom: var(--gap);
}
.interests li {
	padding: 8px 18px;
	border: 2px solid var(--green);
	border-radius: 999px;
	font-weight: 700;
}
.team-role {
	font-weight: 700;
	color: var(--accent);
	margin-bottom: 6px;
}
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--gap);
	align-items: start;
}
.contact-grid .head {
	margin-bottom: 0;
}
.contact-copy {
	margin-top: 0;
}
.contact-email {
	margin-top: 16px;
}
.contact-email a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	overflow-wrap: anywhere;
}

/* ai-politik specifics */
.policy-section {
	padding-block: clamp(40px, 6vw, 64px);
	border-top: 2px solid var(--line);
}
.policy-section:first-child {
	border-top-color: var(--ink);
}
.policy-section h2 {
	margin-bottom: 24px;
	max-width: 48rem;
}
.prose blockquote {
	margin: 0;
	padding: 4px 0 4px 22px;
	border-left: 4px solid var(--accent);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.4;
}
.closing {
	background: var(--green);
	color: var(--paper);
	padding: 32px clamp(20px, 4vw, 40px);
}
.closing p + p {
	margin-top: 14px;
}
.closing p:first-child strong {
	display: block;
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	line-height: 1.3;
	color: var(--lime);
}
.back {
	padding-block: 40px var(--section);
}

/* footer */
.footer {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--gap);
	padding-block: 40px;
	border-top: 2px solid var(--line);
	font-size: 1.25rem;
}
.footer-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	text-decoration: none;
	font-size: 1.5rem;
	font-weight: 800;
}
.footer-brand img {
	width: 48px;
	height: 48px;
	flex: none;
}
.footer p + p {
	margin-top: 12px;
}
.footer-links {
	display: flex;
	flex-direction: column;
}
.footer-links a {
	display: flex;
	align-items: center;
	min-height: 48px;
	overflow-wrap: anywhere;
}

/* #appen: vertical journey. Left-aligned text above the phone on small screens (medicine pair stacked), side by side and alternating from 961px. No JS. */
.journey {
	list-style: none;
	padding: 0;
	counter-reset: step;
	display: grid;
	gap: calc(var(--gap) * 1.5);
}
.phone {
	padding: 6px;
	background: #fff;
	border: 2px solid var(--ink);
	border-radius: 28px;
}
.phone img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 22px;
}
.step {
	display: grid;
	gap: 24px;
	justify-items: start;
}
.step-text {
	max-width: 30rem;
}
.step-text::before {
	counter-increment: step;
	content: counter(step);
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: var(--paper);
	color: var(--accent);
	font-size: 1.25rem;
	font-weight: 700;
}
.step-text p {
	margin-top: 12px;
}
.step .phone {
	width: min(100%, 260px);
}
.pair {
	display: grid;
	gap: 16px;
	width: 100%;
}
.pair .phone {
	width: min(100%, 260px);
}
@media (min-width: 961px) {
	.step {
		grid-template-columns: 1fr 1fr;
		align-items: center;
		justify-items: center;
	}
	.step-text {
		justify-self: start;
	}
	.step:nth-child(odd) .step-text {
		order: 1;
	}
	.step .phone {
		width: 300px;
	}
	.pair {
		display: flex;
		justify-content: center;
	}
	.pair .phone {
		width: 240px;
	}
}
@media (max-width: 960px) {
	.grid-3,
	.grid-4,
	.focus-areas {
		grid-template-columns: repeat(2, 1fr);
	}
	.hero-grid {
		grid-template-columns: 1fr;
	}
	.footer {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 640px) {
	.grid-2,
	.grid-3,
	.grid-4,
	.focus-areas,
	.footer,
	.contact-grid {
		grid-template-columns: 1fr;
	}
	h1 {
		font-size: clamp(2.5rem, 11vw, 2.75rem);
		text-wrap: wrap;
	}
	.service-row {
		grid-template-columns: 2.5rem 1fr;
		gap: 4px 16px;
	}
	.service-row p {
		grid-column: 2;
	}
	.diagram {
		aspect-ratio: auto;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0 16px;
		max-width: none;
	}
	.orbit {
		display: none;
	}
	.diagram-center {
		position: static;
		grid-column: 1 / -1;
		border-radius: 0;
		padding: 16px;
	}
	.node {
		position: static;
		padding: 14px 0;
		border-bottom: 2px solid var(--line);
		white-space: normal;
	}
	.node.one,
	.node.two,
	.node.three,
	.node.four {
		transform: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
