/* Grip, assistent voor je shop (founder, 8 nov 2026): de functiepagina /<taal>/<functies>/grip/
 * (scripts/grip-page.py) en de vijfde kaart op de homepage (scripts/home-grip-card.py). Het gesprek is
 * HTML; het net en het hoofd tekenen grip-network.js en grip-avatar.js. Alleen thematokens uit
 * sellgrip.css, behalve het zwarte vak (zwart in licht en donker). Geen streep, geen gloed, geen verloop.
 * De voorbeelden onder /voorbeeld/ houden hun eigen kopie (grip-preview.css). */

/* ------------------------------------------------- functiepagina: secties */
.gp-asks .tool h3 {
	font-size: 0.8125rem;
	font-weight: 650;
	letter-spacing: 0.02em;
	color: var(--muted);
}

.gp-asks .tool .gp-q {
	margin: 6px 0 0;
	font-size: 1.125rem;
	font-weight: 650;
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: var(--ink);
}

.gp-also {
	max-width: 760px;
	margin: 24px 0 0;
	color: var(--graphite);
}

/* Tekst links, voorbeeld rechts: dezelfde kolommen en dezelfde tussenruimte als de kop
 * (feature-art.css, .fa-has-shot), zodat de randen onder elkaar recht staan. */
.gp-split {
	display: grid;
	gap: 28px;
}

@media (min-width: 1000px) {
	.gp-split {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
		column-gap: clamp(32px, 4vw, 64px);
		align-items: start;
	}
}

.gp-split .section-head {
	margin-bottom: 24px;
}

.gp-split .tp-prose p:first-child {
	margin-top: 0;
}

.gp-split figure {
	margin: 0;
}

.gp-split figcaption {
	margin-top: 8px;
	font-size: 0.8125rem;
	color: var(--muted);
}

/* Het ticket en het concept */
.gp-ticket {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	background: var(--card);
	font-size: 0.9375rem;
	line-height: 1.45;
}

.gp-ticket p {
	margin: 0;
}

.gp-t-head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--line);
	font-size: 0.8125rem;
	color: var(--muted);
}

.gp-t-head b {
	color: var(--ink);
	font-weight: 650;
}

.gp-t-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	background: var(--paper);
}

.gp-t-buyer {
	align-self: flex-start;
	max-width: 88%;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	background: var(--card);
}

.gp-t-who {
	display: block;
	margin-bottom: 2px;
	font-size: 0.75rem;
	color: var(--muted);
}

.gp-draft {
	padding: 12px 14px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	background: var(--paper-2);
}

.gp-draft-l {
	margin-bottom: 6px !important;
	font-size: 0.8125rem;
	font-weight: 650;
	color: var(--muted);
}

.gp-draft-acts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px !important;
}

.gp-btn {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--card);
	color: var(--ink);
	font-size: 0.875rem;
	font-weight: 600;
}

.gp-btn-main {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--paper);
}

/* Pakketten: drie vakken zoals de drie op de Kansen-pagina (kt-triangle). */
.gp-plans {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gp-plans li {
	padding: 20px 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	background: var(--card);
}

.gp-plans span {
	display: block;
	font-size: 13px;
	font-weight: 650;
	letter-spacing: 0.02em;
	color: var(--muted);
}

.gp-plans strong {
	display: block;
	margin-top: 6px;
	font-size: 18px;
	font-variant-numeric: tabular-nums;
}

.gp-plans small {
	display: block;
	margin-top: 6px;
	font-size: 15px;
	line-height: 1.45;
	color: var(--graphite);
}

.gp-plans-more {
	margin: 20px 0 0;
	color: var(--graphite);
}

@media (max-width: 760px) {
	.gp-plans {
		grid-template-columns: 1fr;
	}
}

.gp-caret {
	display: inline-block;
	width: 2px;
	height: 1.05em;
	margin-left: 1px;
	vertical-align: -0.15em;
	background: currentColor;
	animation: gp-blink 1s steps(1) infinite;
}

@keyframes gp-blink {
	50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.gp-caret {
		display: none;
	}
}

@media print {
	.gp-caret {
		display: none;
	}
}

/* ------------------------------------------- Grip in een zwart vak met het net (variant C)
 * founder, 8 nov 2026: het net van de shop achter het gesprek, Grip's hoofd in het midden
 * (grip-network.js, grip-avatar.js). Het vak is zwart in licht en donker; de tekst staat op dichte
 * vlakken, dus de lijnen erachter halen het contrast niet omlaag (minstens 5,2:1). */
.gx-box {
	position: relative;
	height: 470px;
	overflow: hidden;
	border: 1px solid #0b0b0b;
	border-radius: var(--radius-card);
	background: #0b0b0b;
	color: #fff;
	font-size: 0.875rem;
	line-height: 1.4;
	text-align: left;
}

html[data-theme="dark"] .gx-box {
	border-color: #2a2a2a;
}

.gx-box p {
	margin: 0;
}

.gx-canvas {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.gx-anchor {
	position: absolute;
	top: 52px;
	bottom: 10px;
	left: 0;
	width: 52%;
	pointer-events: none;
}

.gx-head-av {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	pointer-events: none;
	will-change: transform;
}

.gx-top {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 2px 8px 2px 2px;
	border-radius: var(--radius);
	background: #0b0b0b;
}

.gx-top p {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.gx-name {
	font-size: 0.9375rem;
	font-weight: 700;
}

.gx-sub {
	font-size: 0.75rem;
	color: #a8a8a8;
}

.gx-av {
	flex: none;
	width: 32px;
	height: 32px;
}

.gx-conv {
	position: absolute;
	top: 12px;
	right: 12px;
	bottom: 12px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 8px;
	width: min(300px, 50%);
}

.gx-u {
	align-self: flex-end;
	max-width: 92%;
	padding: 9px 12px;
	border-radius: var(--radius-card);
	background: #fff;
	color: #171717;
}

.gx-tool {
	display: flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	padding: 2px 6px;
	border-radius: var(--radius);
	background: #0b0b0b;
	font-size: 0.75rem;
	color: #a8a8a8;
}

.gx-tool svg {
	flex: none;
	width: 13px;
	height: 13px;
}

.gx-busy .gx-tool svg {
	display: none;
}

.gx-row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.gx-a,
.gx-input {
	padding: 10px 12px;
	border: 1px solid #2e2e2e;
	border-radius: var(--radius-card);
	background: #171717;
}

.gx-a {
	flex: 1;
	min-width: 0;
}

.gx-a > * + * {
	margin-top: 6px !important;
}

.gx-rows {
	margin: 0;
	padding: 0;
	list-style: none;
	font-variant-numeric: tabular-nums;
}

.gx-rows li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	gap: 10px;
	padding: 5px 0;
	border-top: 1px solid #2e2e2e;
}

.gx-rows li:last-child {
	border-bottom: 1px solid #2e2e2e;
}

.gx-rows small {
	font-size: 0.75rem;
	color: #a8a8a8;
}

.gx-rows b {
	font-weight: 650;
}

.gx-src {
	font-size: 0.75rem;
	color: #a8a8a8;
}

.gx-src a,
.gx-src span {
	color: #f2525c;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.gx-field {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 0 4px 0 10px;
	border: 1px solid #3a3a3a;
	border-radius: var(--radius);
	color: #8f8f8f;
}

.gx-field > span:first-child {
	flex: 1;
	min-width: 0;
}

.gx-send {
	flex: none;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: var(--radius);
	background: #fff;
	color: #171717;
}

.gx-send svg {
	width: 14px;
	height: 14px;
}

.gx-status {
	margin-top: 6px !important;
	font-size: 0.75rem;
	color: #a8a8a8;
}

/* Wat na de vraag komt; zonder JS of bij rustige beweging staat alles er. */
.gx-later {
	transition: opacity 320ms ease, transform 320ms ease;
}

.gx-run .gx-later {
	opacity: 0;
	transform: translateY(6px);
}

.gx-run .gx-later.gx-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.gx-later {
		transition: none;
	}
}

/* Functiepagina: het vak staat waar het scherm stond. */
.gx-shot .gx-box {
	height: 480px;
}

/* Telefoon: eerst het net met het hoofd, dan het gesprek. */
@media (max-width: 600px) {
	.gx-box,
	.gx-shot .gx-box {
		height: auto;
	}

	.gx-anchor {
		position: relative;
		top: auto;
		bottom: auto;
		width: auto;
		height: 250px;
		margin-top: 52px;
	}

	.gx-conv {
		position: relative;
		inset: auto;
		width: auto;
		padding: 0 12px 12px;
	}
}

/* --------------------------------------- homepage: de Grip-kaart, zwart zoals de Kansen-kaart */
body.home:not(.sg-academy) .sk-stack > .sk-card.sk-c5 {
	--sk-bg: #0b0b0b;
	border-color: #0b0b0b;
	color: #fff;
}

html[data-theme="dark"] body.home:not(.sg-academy) .sk-stack > .sk-card.sk-c5 {
	border-color: #2a2a2a;
}

body.home:not(.sg-academy) .sk-card.sk-c5 .zz-h,
body.home:not(.sg-academy) .sk-card.sk-c5 .sk-label {
	color: #fff;
}

body.home:not(.sg-academy) .sk-card.sk-c5 .zz-lead {
	color: rgba(255, 255, 255, 0.72);
}

body.home:not(.sg-academy) .sk-card.sk-c5 .sk-num {
	border-color: rgba(255, 255, 255, 0.24);
	background: #0b0b0b;
	color: #fff;
}

body.home:not(.sg-academy) .sk-card.sk-c5 .link-arrow {
	color: #f2525c;
}

body.home:not(.sg-academy) .sk-card.sk-c5 .lk-hl {
	--mk: rgba(255, 255, 255, 0.2);
}

.gx-fig {
	margin: 0;
}

.gx-label {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 10px;
	font-size: 0.8125rem;
	color: #a8a8a8;
}

.gx-label .sg-label {
	margin: 0;
	color: #a8a8a8;
}

.gx-label .sg-label::before {
	background: #a8a8a8;
}

.sk-card .gx-box {
	height: 440px;
	border-color: #2a2a2a;
}

/* Phone: the net sits above the conversation (see max-width 600px above), so the card's box takes its
 * full height too; at 440px it cut off the answer and the question field (sweep 9 Nov 2026). */
@media (max-width: 600px) {
	.sk-card .gx-box {
		height: auto;
	}
}
