/* Sellgrip: beeldtaal (uitstralingsronde 21 okt 2026).
 *
 * Twee vaste onderdelen, sitebreed:
 * 1. "Uitsnede met aanwijzer" (sg-crop): één rij of blok uit een echte opname,
 *    groter dan in het hele scherm, met genummerde rondjes en een korte zin.
 *    Dunne zwarte lijn, geen kleur.
 * 2. Eén labelstijl (sg-label): klein, hoofdletters, spatiëring, grafiet, met
 *    het III-merk (de drie streepjes uit het logo) in inkt ervoor.
 *
 * De basisregels hieronder deelt de home (branch look-home) met de functie-
 * pagina's (branch look-visual). Eigen regels per pagina staan eronder.
 */

/* ---------------------------------------------------------------- basis */
.sg-crop {
	margin: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
}

.sg-crop-img {
	display: block;
	width: 100%;
	height: auto;
}

.sg-pin {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 20px;
	height: 20px;
	border: 1.5px solid currentColor;
	border-radius: 50%;
	color: var(--ink);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.sg-crop-note {
	font-size: 0.875rem;
	color: var(--muted);
}

/* Labelstijl. Het merk is de 16-rastertekening van Mark (kaufpilot/web/app/
 * components/Logo.tsx), als masker in currentColor, dus inkt in licht en
 * wit in donker. */
.sg-label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--graphite);
}

.sg-label::before {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	background: var(--ink);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1' y='3' width='3' height='10' rx='0.5'/%3E%3Crect x='6' y='3' width='3' height='10' rx='0.5'/%3E%3Crect x='11' y='7' width='3' height='6' rx='0.5'/%3E%3Crect x='12.5' y='3' width='3' height='3' rx='0.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1' y='3' width='3' height='10' rx='0.5'/%3E%3Crect x='6' y='3' width='3' height='10' rx='0.5'/%3E%3Crect x='11' y='7' width='3' height='6' rx='0.5'/%3E%3Crect x='12.5' y='3' width='3' height='3' rx='0.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ------------------------------------------------- functiepagina's: uitsneden
 * Opbouw: figure.sg-crop > .sg-crop-frame (beeld + markeringen) +
 * figcaption.sg-crop-notes. --crop-w is de CSS-breedte van de uitsnede in het
 * dashboard (1440-beeld); op een groot scherm staat hij op 1,5 keer die maat,
 * de zinnen ernaast in de marge. */
.sg-crop-fig {
	--crop-scale: 1.5;
	display: grid;
	grid-template-columns: minmax(0, calc(var(--crop-w) * var(--crop-scale) * 1px + 33px)) minmax(200px, 300px);
	width: fit-content;
	max-width: 100%;
	margin: clamp(32px, calc(4vw / var(--vz, 1)), 48px) 0 0;
	overflow: hidden;
	background: var(--card);
}

.sg-crop-frame {
	align-self: stretch;
	padding: 16px;
	border-right: 1px solid var(--line);
}

/* De markeringen staan in procenten van het beeld; de rand eromheen geeft
 * de rondjes ruimte, ook bij een getal aan de rand van de uitsnede. */
.sg-crop-canvas {
	position: relative;
}

.sg-crop .sg-crop-dark {
	display: none;
}

/* Een markering: dunne inktlijn om het getal of de knop, het rondje op de
 * linkerlijn (of rechts, als links geen ruimte is). */
.sg-mark {
	position: absolute;
	box-sizing: content-box;
	margin: -2px 0 0 -11px;
	padding: 2px 11px;
	border: 1.5px solid var(--ink);
	border-radius: 6px;
	pointer-events: none;
}

.sg-mark .sg-pin {
	position: absolute;
	top: 50%;
	left: 0;
	transform: translate(-50%, -50%);
	background: var(--card);
}

.sg-mark.sg-mark-r .sg-pin {
	left: auto;
	right: 0;
	transform: translate(50%, -50%);
}

.sg-crop-notes {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 20px 22px;
	margin: 0;
}

.sg-crop-note {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0;
	line-height: 1.45;
	color: var(--graphite);
}

.sg-crop-note .sg-pin {
	margin-top: 0.05em;
}

/* Twee uitsneden naast elkaar zou te druk zijn: elk op een eigen regel. */
.sg-crop-fig + .sg-crop-fig {
	margin-top: 24px;
}

@media (max-width: 960px) {
	.sg-crop-fig {
		--crop-scale: 1.25;
	}
}

/* Telefoon en smalle tablet: beeld boven, zinnen eronder, op volle breedte.
 * Het hele scherm bovenaan valt weg: op 390px is dat onleesbaar, de
 * uitsneden niet. */
@media (max-width: 760px) {
	.sg-crop-fig {
		grid-template-columns: minmax(0, 1fr);
		width: auto;
	}

	.sg-crop-frame {
		padding: 12px;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.sg-crop-notes {
		gap: 10px;
		padding: 14px 16px 16px;
	}

	.sg-pin {
		width: 18px;
		height: 18px;
		font-size: 11px;
	}

	main:has(.sg-crop-fig) .tp-shot {
		display: none;
	}

	main:has(.sg-crop-fig) .tp-shot + .section {
		padding-top: var(--section);
	}
}

@media screen {
	html[data-theme="dark"] .sg-crop .sg-crop-light {
		display: none;
	}

	html[data-theme="dark"] .sg-crop .sg-crop-dark {
		display: block;
	}
}

/* ------------------------------------------------------------- labels
 * De oude stijlen worden de ene labelstijl: de bovenregel met icoontegel
 * (functie- en toolpagina's) en de groepskop met rode bovenlijn (/xmas26,
 * gidsen, KGM). */
.page-hero .eyebrow.sg-label {
	margin-bottom: 16px;
}

.usp-group-h.sg-label {
	padding-top: 0;
	border-top: 0;
}

.sg-crop-fig .sg-crop-note {
	font-size: 0.95rem;
}

@media (max-width: 760px) {
	.sg-crop-fig .sg-crop-note {
		font-size: 0.9rem;
	}
}

/* ------------------------------------------------------------------ home
 * scripts/look-home.py zet de HTML. */

.sg-crop.lk-crop,
.sg-crop.hero-today {
	background: var(--card);
	overflow: hidden;
}

/* Telefoon: "Heute zu tun" onder de kop (rapport punt 4). Desktop heeft de
 * hele demo ernaast, dus daar niet. */
.hero-today {
	display: none;
}

@media (max-width: 640px) {
	.hero-copy .hero-today {
		display: block;
		margin-top: 20px;
	}
}

.hero-today-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
}

.hero-today-head strong {
	font-size: 1rem;
	font-weight: 700;
}

.hero-today-head span {
	font-size: 0.8125rem;
	color: var(--muted);
}

.hero-today ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hero-today li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 12px;
	align-items: end;
	padding: 10px 16px 12px;
	border-top: 1px solid var(--line);
	font-variant-numeric: tabular-nums;
}

.hero-today-when {
	grid-column: 1 / -1;
	font-size: 0.8125rem;
	color: var(--muted);
}

.hero-today-title {
	font-size: 1.0625rem;
	line-height: 1.35;
	color: var(--graphite);
}

.hero-today li:first-child .hero-today-title {
	font-weight: 650;
	color: var(--ink);
}

.hero-today-amt {
	font-size: 1rem;
	font-weight: 600;
	white-space: nowrap;
}

/* Feitenregel onder de hero (punt 6): zwarte cijfers, dunne lijnen. */
.lk-facts {
	border-block: 1px solid var(--line);
	background: var(--paper);
}

.lk-facts ul {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.lk-facts li {
	padding: 20px 0 20px 24px;
	border-left: 1px solid var(--line);
}

.lk-facts li:first-child {
	padding-left: 0;
	border-left: 0;
}

.lk-facts a {
	display: block;
	color: inherit;
	text-decoration: none;
}

.lk-facts a:hover .lk-fact-t {
	color: var(--ink);
	text-decoration: underline;
}

.lk-fact-n {
	display: block;
	font-size: 1.75rem;
	font-weight: 750;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--ink);
	font-variant-numeric: tabular-nums;
}

.lk-fact-t {
	display: block;
	margin-top: 4px;
	font-size: 0.9375rem;
	line-height: 1.35;
	color: var(--muted);
}

@media (max-width: 760px) {
	.lk-facts ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lk-facts li,
	.lk-facts li:first-child {
		padding: 16px 0 16px 16px;
		border-left: 1px solid var(--line);
	}

	.lk-facts li:nth-child(odd) {
		padding-left: 0;
		border-left: 0;
	}

	.lk-facts li:nth-child(n+3) {
		border-top: 1px solid var(--line);
	}
}

/* "Zuletzt neu" onder "Alle Funktionen ansehen" (punt 10, home-latest.mjs). */
.lk-latest {
	margin-top: 16px;
	font-size: 0.9375rem;
	color: var(--muted);
}

.lk-latest a {
	color: var(--ink);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* Uitsneden in de tekstkolom van geld- en klantenblok (punt 5). */
.zz-text .lk-crop {
	margin-top: 32px;
}

.lk-crop .sg-crop-img {
	display: grid;
	grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr));
	grid-template-rows: auto auto auto;
	gap: 0 20px;
	padding: 22px 24px 20px;
	font-variant-numeric: tabular-nums;
}

/* Label, getal en regel eronder op één hoogte over de cellen heen, ook als
 * een label in twee regels breekt. */
.lk-cell {
	display: grid;
	grid-row: span 3;
	grid-template-rows: subgrid;
	align-items: end;
	min-width: 0;
}

.lk-cell .lk-label {
	align-self: start;
}

.lk-label {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 20px;
	font-size: 0.9375rem;
	line-height: 1.3;
	color: var(--graphite);
}

.lk-val {
	display: block;
	margin-top: 8px;
	font-size: 2.25rem;
	font-weight: 750;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--ink);
	white-space: nowrap;
}

.lk-sub {
	display: block;
	margin-top: 6px;
	font-size: 0.9375rem;
	color: var(--muted);
}

.lk-crop-notes {
	padding: 14px 24px 16px;
	border-top: 1px solid var(--line);
}

.lk-crop-notes ol {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lk-crop-notes li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.lk-crop-notes .sg-crop-note {
	padding-top: 1px;
}

.lk-crop-src {
	margin-top: 10px;
	font-size: 0.8125rem;
	color: var(--muted);
}

.lk-crop-money .lk-val {
	font-size: 2rem;
}

@media (max-width: 1100px) and (min-width: 641px) {
	.lk-crop-money .lk-val {
		font-size: 1.75rem;
	}
}

/* Telefoon: alleen uitsneden, geen hele schermen (rapport punt 4 en 7). De
 * drieluiken van geld en klanten wijken voor de uitsnede in de tekstkolom. */
@media (max-width: 640px) {
	#money .lv2-tri,
	#customers .lv2-tri {
		display: none;
	}

	.lk-crop .sg-crop-img {
		gap: 0 14px;
		padding: 18px 16px 16px;
	}

	.lk-crop-notes {
		padding: 12px 16px 14px;
	}

	.lk-label {
		align-items: flex-start;
		font-size: 0.875rem;
	}

	.lk-val {
		font-size: 1.75rem;
	}

	.lk-crop-money .lk-val {
		font-size: 1.5rem;
	}
}

/* "ohne Anmeldung" bij "Demo ansehen": zelfde knop of link, de toevoeging
 * rustiger. In de hero alleen op de telefoon, waar de knoppen de volle breedte
 * hebben: op 1024 tot 1440 duwde hij de demoknop naar een tweede regel (NL, IT
 * zelfs op 1440). In de afsluiter past hij altijd. */
.lk-nosignup {
	font-weight: 450;
	color: var(--muted);
}

@media (min-width: 641px) {
	.hero-actions .lk-nosignup {
		display: none;
	}
}

/* De sleutelregel in de hero: zelfde afstand als de kleine tekst eronder. */
.hero-copy .lk-keys-hero {
	margin-top: 12px;
}

.lk-keys a {
	white-space: nowrap;
}

.lk-crop-src strong {
	font-weight: 650;
	color: var(--ink);
}
