/* aLIVE Clinic website – one stylesheet, no framework.
   Colours and type follow docs/branding.md of the alive-clinic repository (extracted from alive-service.de). */

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/InterVariable.woff2') format('woff2');
}

:root {
	--bg: #f8fafb;
	--bg2: #dbe6f7;
	--surf: #ffffff;
	--wash: #edf4fe;
	--wash-t: #00255d;
	--text: #232323;
	--text2: #5c5f62;
	--ink: #090b0e;
	--acc: #0061d8;
	--acc-h: #0049c6;
	--acc-t: #ffffff;
	--ok: #2e9b6a;
	--line: rgba(9, 11, 14, 0.08);
	--sh1: 0 8px 24px -10px rgba(9, 11, 14, 0.12);
	--sh2: 0 24px 48px -16px rgba(9, 11, 14, 0.2);
	--sh3: 0 36px 72px -20px rgba(18, 48, 95, 0.3);
	--shacc: 0 10px 24px -8px rgba(0, 97, 216, 0.55);
	--maxw: 1200px;
	--pad: 32px;
	--radius: 24px;
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #090b0e;
		--bg2: #0d1218;
		--surf: #131a22;
		--wash: #1b2430;
		--wash-t: #e8eef8;
		--text: #e8eef8;
		--text2: #acb8cb;
		--ink: #ffffff;
		--acc: #1f8cfb;
		--acc-h: #4ea3fc;
		--acc-t: #00255d;
		--line: rgba(232, 238, 248, 0.1);
		--sh1: 0 8px 24px -10px rgba(0, 0, 0, 0.5);
		--sh2: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
		--sh3: 0 36px 72px -20px rgba(0, 0, 0, 0.7);
		--shacc: 0 10px 24px -8px rgba(31, 140, 251, 0.45);
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	font: 400 16px/1.6 Inter, 'Segoe UI', Arial, sans-serif;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
svg {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--acc);
	text-decoration: none;
}

a:hover {
	color: var(--acc-h);
}

a:focus-visible,
button:focus-visible {
	outline: 3px solid var(--acc);
	outline-offset: 3px;
	border-radius: 6px;
}

h1,
h2,
h3 {
	margin: 0 0 16px;
	color: var(--ink);
	letter-spacing: -0.02em;
	line-height: 1.1;
	text-wrap: balance;
}

h1 {
	font-size: clamp(38px, 5.6vw, 68px);
	font-weight: 800;
}

h2 {
	font-size: clamp(30px, 4vw, 46px);
	font-weight: 800;
}

h3 {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
}

p {
	margin: 0 0 16px;
}

.lead {
	font-size: clamp(18px, 2vw, 21px);
	color: var(--text2);
	max-width: 60ch;
}

.wrap {
	width: min(100% - 2 * var(--pad), var(--maxw));
	margin-inline: auto;
}

.skip {
	position: absolute;
	left: -9999px;
	top: 8px;
	background: var(--surf);
	padding: 8px 14px;
	border-radius: 100px;
	box-shadow: var(--sh1);
	z-index: 100;
}

.skip:focus {
	left: 16px;
}

/* ---------- header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--bg) 85%, transparent);
	backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid var(--line);
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 76px;
}

.brand img {
	height: 40px;
	width: auto;
}

.brand .logo-dark {
	display: none;
}

@media (prefers-color-scheme: dark) {
	.brand .logo-light {
		display: none;
	}

	.brand .logo-dark {
		display: block;
	}
}

.menu {
	display: flex;
	align-items: center;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu a {
	color: var(--text);
	font-weight: 500;
}

.menu a:hover {
	color: var(--acc);
}

.menu-toggle {
	display: none;
	border: 0;
	background: var(--surf);
	box-shadow: var(--sh1);
	border-radius: 100px;
	width: 44px;
	height: 44px;
	cursor: pointer;
	color: var(--ink);
}

@media (max-width: 860px) {
	.menu-toggle {
		display: inline-grid;
		place-items: center;
	}

	.menu {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--surf);
		box-shadow: var(--sh2);
		padding: 8px 0 16px;
		display: none;
	}

	.menu.open {
		display: flex;
	}

	.menu li a {
		display: block;
		padding: 12px var(--pad);
	}

	.menu .btn {
		margin: 8px var(--pad) 0;
	}
}

/* ---------- buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 50px;
	padding: 0 26px;
	border-radius: 100px;
	border: 0;
	font: 600 15px/1 inherit;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	white-space: nowrap;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn--acc {
	background: var(--acc);
	color: var(--acc-t);
	box-shadow: var(--shacc);
}

.btn--acc:hover {
	background: var(--acc-h);
	color: var(--acc-t);
}

.btn--surf {
	background: var(--surf);
	color: var(--ink);
	box-shadow: var(--sh1);
}

.btn--surf:hover {
	color: var(--acc);
	box-shadow: var(--sh2);
}

.btn--lg {
	height: 56px;
	padding: 0 32px;
	font-size: 16px;
}

/* ---------- sections ---------- */

.section {
	padding-block: clamp(72px, 9vw, 120px);
}

.section--wash {
	background: var(--wash);
}

.section-head {
	max-width: 760px;
	margin-bottom: clamp(32px, 5vw, 56px);
}

.eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--acc);
	margin-bottom: 12px;
}

/* ---------- hero ---------- */

.hero {
	padding-top: clamp(48px, 7vw, 96px);
	padding-bottom: clamp(64px, 8vw, 112px);
	background:
		radial-gradient(900px 500px at 85% -10%, color-mix(in srgb, var(--acc) 14%, transparent), transparent 70%),
		var(--bg);
}

.hero-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
	gap: clamp(40px, 6vw, 72px);
	align-items: center;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 28px;
}

.hero-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
	color: var(--text2);
	font-size: 15px;
}

.hero-facts li::before {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ok);
	margin-right: 10px;
	vertical-align: middle;
}

/* The product preview is drawn with HTML and CSS: no screenshot to keep up to date. */

.preview {
	background: var(--surf);
	border-radius: var(--radius);
	box-shadow: var(--sh3);
	padding: 18px;
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 14px;
	aspect-ratio: 16 / 11;
	min-height: 320px;
}

.preview-video {
	position: relative;
	border-radius: 18px;
	background: linear-gradient(160deg, #12305f, #0061d8 70%, #1f8cfb);
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	padding: 14px;
}

.preview-video::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(200px 160px at 60% 45%, rgba(255, 255, 255, 0.22), transparent 70%);
}

.preview-avatar {
	position: absolute;
	left: 50%;
	top: 42%;
	width: 26%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	transform: translate(-50%, -50%);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.preview-avatar::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 42%;
	height: 42%;
	border-radius: 50%;
	background: #0061d8;
	transform: translate(-50%, -50%);
}

.preview-self {
	position: absolute;
	right: 14px;
	top: 14px;
	width: 26%;
	aspect-ratio: 4 / 3;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.5);
}

.preview-bar {
	position: relative;
	display: flex;
	gap: 8px;
	align-items: center;
	width: 100%;
	justify-content: center;
}

.preview-bar span {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.28);
}

.preview-bar span:last-child {
	background: #d4442f;
}

.preview-side {
	display: grid;
	grid-template-rows: auto 1fr auto;
	gap: 10px;
}

.preview-card {
	background: var(--wash);
	border-radius: 14px;
	padding: 12px;
	color: var(--wash-t);
	font-size: 12px;
	line-height: 1.4;
}

.preview-card strong {
	display: block;
	font-size: 12px;
	margin-bottom: 6px;
}

.preview-line {
	height: 8px;
	border-radius: 4px;
	background: color-mix(in srgb, var(--wash-t) 18%, transparent);
	margin-top: 7px;
}

.preview-line.short {
	width: 60%;
}

.preview-chat {
	display: grid;
	align-content: end;
	gap: 6px;
}

.preview-msg {
	max-width: 85%;
	padding: 8px 10px;
	border-radius: 12px;
	background: var(--wash);
	font-size: 11px;
	color: var(--wash-t);
}

.preview-msg.me {
	justify-self: end;
	background: var(--acc);
	color: var(--acc-t);
}

@media (max-width: 480px) {
	.preview {
		grid-template-columns: 1fr;
		aspect-ratio: auto;
	}

	.preview-side {
		grid-template-rows: auto auto;
	}

	.preview-chat {
		display: none;
	}

	.preview-video {
		min-height: 220px;
	}
}

/* ---------- cards ---------- */

.grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

.card {
	background: var(--surf);
	border-radius: var(--radius);
	padding: 28px;
	box-shadow: var(--sh1);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--sh2);
}

.card h3 {
	margin-top: 14px;
}

.card p {
	color: var(--text2);
	margin: 0;
}

.icon {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: var(--wash);
	color: var(--acc);
}

.icon svg {
	width: 24px;
	height: 24px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tag {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 100px;
	background: var(--wash);
	color: var(--wash-t);
	margin: 12px 6px 0 0;
}

/* ---------- steps ---------- */

.steps {
	counter-reset: step;
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.steps li {
	counter-increment: step;
	background: var(--surf);
	border-radius: var(--radius);
	padding: 28px;
	box-shadow: var(--sh1);
}

.steps li::before {
	content: counter(step);
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--acc);
	color: var(--acc-t);
	font-weight: 800;
	margin-bottom: 16px;
}

.steps p {
	color: var(--text2);
	margin: 0;
}

/* ---------- split (security) ---------- */

.split {
	display: grid;
	gap: clamp(32px, 5vw, 64px);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
	align-items: start;
}

.checks {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 14px;
}

.checks li {
	display: grid;
	grid-template-columns: 28px 1fr;
	gap: 12px;
	align-items: start;
}

.checks svg {
	width: 28px;
	height: 28px;
	stroke: var(--ok);
	fill: none;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	margin-top: 1px;
}

.checks strong {
	color: var(--ink);
}

.checks span {
	display: block;
	color: var(--text2);
}

/* ---------- about / contact ---------- */

.about-card {
	background: var(--surf);
	border-radius: var(--radius);
	padding: clamp(28px, 4vw, 48px);
	box-shadow: var(--sh1);
	display: grid;
	gap: clamp(24px, 4vw, 48px);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	align-items: center;
}

.about-card p:last-child {
	margin: 0;
}

.contact {
	background: linear-gradient(135deg, #12305f, #0061d8);
	color: #ffffff;
	border-radius: var(--radius);
	padding: clamp(32px, 5vw, 64px);
	box-shadow: var(--sh3);
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	align-items: center;
}

.contact h2 {
	color: #ffffff;
}

.contact p {
	color: rgba(255, 255, 255, 0.86);
}

.contact-actions {
	display: grid;
	gap: 12px;
	justify-items: start;
}

.contact .btn--surf {
	background: #ffffff;
	color: #0061d8;
}

.contact .btn--surf:hover {
	color: #0049c6;
}

.contact-note {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.75);
	margin: 0;
}

/* ---------- footer ---------- */

.site-footer {
	padding: 40px 0 48px;
	border-top: 1px solid var(--line);
	color: var(--text2);
	font-size: 14px;
}

.footer-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	justify-content: space-between;
	align-items: center;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-links a {
	color: var(--text2);
}

.footer-links a:hover {
	color: var(--acc);
}

/* ---------- legal pages ---------- */

.legal {
	max-width: 760px;
	padding-block: clamp(48px, 6vw, 80px);
}

.legal h1 {
	font-size: clamp(32px, 4vw, 48px);
}

.legal h2 {
	font-size: 24px;
	margin-top: 40px;
}

.legal h3 {
	font-size: 18px;
	margin-top: 28px;
}

.legal address {
	font-style: normal;
}

.notice {
	background: var(--wash);
	color: var(--wash-t);
	border-radius: 16px;
	padding: 16px 20px;
	font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.btn,
	.card {
		transition: none;
	}
}

/* ---------- helpers (no inline styles, the CSP forbids them) ---------- */

.copy {
	margin: 0;
}

.tags {
	margin-top: 20px;
}

.eyebrow--light {
	color: #9cc9ff;
}

.contact-link {
	color: #ffffff;
	text-decoration: underline;
}

.contact-link:hover {
	color: #ffffff;
}

.menu--static {
	display: flex;
}

@media (max-width: 860px) {
	.menu--static {
		position: static;
		flex-direction: row;
		box-shadow: none;
		background: transparent;
		padding: 0;
	}

	.menu--static li a {
		padding: 0;
	}

	.menu--static .btn {
		margin: 0;
		padding: 0 18px;
	}
}
