/**
 * Front page (sv + en). All classes are prefixed ch- (Cajka home).
 * Tokens come from style.css (:root --c-*).
 */

/* ---------- Base on pages that use this design (body class cajka-ch) ---------- */
.cajka-ch .entry-content > section,
.cajka-ch .entry-content > .wp-block-group { margin: 0; }
.cajka-ch .entry-content .ch-block p,
.cajka-ch .entry-content .ch-hero p,
.cajka-ch .entry-content .ch-hb p { margin: 0; max-width: none; }
body.cajka-ch .entry-content a { text-decoration: none; }
.ch-block { padding-block: clamp(72px, 9vw, 128px); }
.ch-block + .ch-block { padding-top: 0; }
.ch-eyebrow {
	font-family: var(--f-mono);
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-mist);
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.ch-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-blue); box-shadow: 0 0 12px var(--c-blue); }
.ch-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; max-width: 760px; }
.ch-h2,
.entry-content h2.ch-h2 {
	font-family: var(--f-display);
	font-size: clamp(32px, 4.2vw, 52px);
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: var(--c-paper);
	margin: 0;
}
.ch-head p, .ch-intro p { font-size: 18px; color: var(--c-text); }
.ch-more { margin-top: 28px; font-weight: 600; color: var(--c-paper); display: inline-flex; gap: 8px; }
.ch-more span { color: var(--c-blue); transition: transform 0.2s; }
.ch-more:hover span { transform: translateX(3px); }

/* ---------- Buttons ---------- */
.ch-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font: 600 16px/1 var(--f-body);
	padding: 16px 22px;
	border-radius: 10px;
	border: 1px solid transparent;
	transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}
.ch-btn--primary { background: var(--c-btn); color: var(--c-on-blue) !important; box-shadow: 0 8px 30px -8px rgba(76, 125, 255, 0.6); }
.ch-btn--primary:hover { background: var(--c-blue-hover); transform: translateY(-1px); box-shadow: 0 0 0 4px rgba(76, 125, 255, 0.18), 0 10px 36px -8px rgba(76, 125, 255, 0.8); }
.ch-btn--ghost { color: var(--c-paper) !important; border-color: #2E3A52; background: rgba(20, 27, 42, 0.5); }
.ch-btn--ghost:hover { border-color: var(--c-blue); }
.ch-btn .ch-arrow { transition: transform 0.2s; }
.ch-btn:hover .ch-arrow { transform: translateX(3px); }

/* ---------- Hero: copy + live code editor ---------- */
.ch-hero {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
	padding-block: clamp(64px, 8vw, 112px);
}
@media (max-width: 960px) { .ch-hero { grid-template-columns: minmax(0, 1fr); } }
.ch-hero::before {
	content: "";
	position: absolute;
	right: -20%;
	bottom: -10%;
	width: 70%;
	height: 80%;
	background: radial-gradient(closest-side, rgba(76, 125, 255, 0.22), transparent);
	pointer-events: none;
	z-index: -1;
}
.ch-hero__copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.entry-content h1.ch-h1 {
	font-family: var(--f-display);
	font-size: clamp(42px, 6vw, 84px);
	line-height: 1;
	letter-spacing: -0.045em;
	color: var(--c-paper);
	margin: 0;
	hyphens: auto;
	text-wrap: balance;
}
/* The gradient runs top to bottom over the whole heading. On an inline span the tight letter-spacing
   pushed the last glyph of each line outside the clipped box, so the gradient lives on the block instead. */
.entry-content h1.ch-h1 {
	background: linear-gradient(180deg, var(--c-paper) 0%, var(--c-paper) 30%, var(--c-blue-soft) 62%, var(--c-blue) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	padding-bottom: 0.08em;
}
.ch-lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--c-text); max-width: 52ch; }
.ch-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ch-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-chip { font: 500 12px/1 var(--f-mono); color: var(--c-blue-soft); border: 1px solid #2E3A52; background: rgba(20, 27, 42, 0.6); border-radius: 999px; padding: 7px 11px; }

.ch-ide {
	position: relative;
	min-width: 0;
	border-radius: 14px;
	border: 1px solid #2E3A52;
	background: linear-gradient(180deg, #111827, #0D121C);
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(76, 125, 255, 0.06), 0 0 60px -20px rgba(76, 125, 255, 0.35);
	overflow: hidden;
}
.ch-ide__bar,
.ch-browser__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--c-line); background: #0F1522; }
.ch-dots { display: flex; gap: 6px; flex: none; }
.ch-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2E3A52; display: block; }
.ch-tabs { display: flex; gap: 2px; font: 12px/1 var(--f-mono); }
.ch-tabs span { padding: 7px 10px; border-radius: 6px; color: var(--c-mist); }
.ch-tabs span.is-on { background: var(--c-slate); color: var(--c-paper); }
.ch-code { font: 13.5px/1.75 var(--f-mono); padding: 16px 0; min-height: 262px; color: #C7D2EA; overflow-x: auto; }
.ch-code .ln { display: grid; grid-template-columns: 42px minmax(0, 1fr); white-space: pre; }
.ch-code .ln::before { content: attr(data-n); color: #3A4660; text-align: right; padding-right: 16px; }
@media (max-width: 480px) {
	.ch-code { font-size: 11px; }
	.ch-code .ln { grid-template-columns: 30px minmax(0, 1fr); }
	.ch-code .ln::before { padding-right: 10px; }
}
.ch-code .t-tag, .ch-code .t-prop { color: #7FA4FF; }
.ch-code .t-attr { color: #A9C1FF; }
.ch-code .t-str, .ch-code .t-val { color: #DCE6FF; }
.ch-code .t-com { color: #4F5B75; }
.ch-caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -0.2em; background: var(--c-blue); box-shadow: 0 0 8px var(--c-blue); animation: ch-blink 1s steps(2) infinite; }
@keyframes ch-blink { 50% { opacity: 0; } }
.ch-ide__preview { border-top: 1px solid var(--c-line); background: var(--c-ink); padding: 14px; }
.ch-browser { border-radius: 10px; border: 1px solid var(--c-line); overflow: hidden; background: var(--c-ink); }
.ch-browser__bar { padding: 8px 10px; background: #111827; }
.ch-url { flex: 1; min-width: 0; font: 11px/1 var(--f-mono); color: var(--c-mist); background: var(--c-ink); border: 1px solid var(--c-line); border-radius: 6px; padding: 6px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-url b { color: #7CE0A3; font-weight: 500; }
.ch-page { padding: 18px; min-height: 124px; display: grid; gap: 8px; align-content: start; }
.ch-page > * { transition: opacity 0.4s, transform 0.4s; }
.ch-js .ch-page > * { opacity: 0; transform: translateY(6px); }
.ch-js .ch-page > .is-in { opacity: 1; transform: none; }
.ch-page__h { font: 700 26px/1 var(--f-display); letter-spacing: -0.04em; color: var(--c-paper); }
.ch-page__p { font-size: 13px; color: var(--c-mist); }
.ch-page__b { justify-self: start; font: 600 12px/1 var(--f-body); background: var(--c-btn); color: var(--c-on-blue); padding: 8px 12px; border-radius: 7px; }
.ch-ide__status { display: flex; justify-content: space-between; gap: 12px; font: 11px/1 var(--f-mono); color: var(--c-mist); padding: 8px 14px; border-top: 1px solid var(--c-line); background: #0F1522; }
.ch-ide__status .ok { color: #7CE0A3; }

/* ---------- Hero B: interactive grid (Tjänster / Services) ---------- */
.ch-hb {
	position: relative;
	isolation: isolate;
	padding-block: clamp(88px, 12vw, 160px);
	display: flex;
	flex-direction: column;
	gap: 26px;
}
.ch-hb__bg {
	--mx: 70%;
	--my: 35%;
	position: absolute;
	z-index: -1;
	top: 0;
	bottom: 0;
	left: calc(50% - 50vw);
	width: 100vw;
	overflow: hidden;
	pointer-events: none;
}
.ch-hb__bg span { position: absolute; inset: 0; display: block; }
.ch-hb__grid {
	background-image: linear-gradient(var(--c-line) 1px, transparent 1px), linear-gradient(90deg, var(--c-line) 1px, transparent 1px);
	background-size: 56px 56px;
	background-position: center top;
	opacity: 0.55;
	-webkit-mask-image: radial-gradient(ellipse 70% 85% at 65% 35%, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 85% at 65% 35%, #000 30%, transparent 75%);
}
.ch-hb__spot { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(76, 125, 255, 0.26), transparent 60%); }
.ch-hb__spotgrid {
	background-image: linear-gradient(rgba(76, 125, 255, 0.55) 1px, transparent 1px), linear-gradient(90deg, rgba(76, 125, 255, 0.55) 1px, transparent 1px);
	background-size: 56px 56px;
	background-position: center top;
	-webkit-mask-image: radial-gradient(220px circle at var(--mx) var(--my), #000, transparent 70%);
	mask-image: radial-gradient(220px circle at var(--mx) var(--my), #000, transparent 70%);
}
.ch-hb__bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(transparent, var(--c-ink)); }
.ch-hb .ch-h1 { max-width: 14ch; }
.cajka-ch .entry-content .ch-hb p.ch-lead { max-width: 46ch; }
.ch-hb > :not(.ch-hb__bg):not(.ch-floaters) { position: relative; z-index: 1; }
.ch-floaters { position: absolute; top: 0; bottom: 0; right: 0; left: 58%; pointer-events: none; }
@media (max-width: 760px) { .ch-floaters { display: none; } }
.ch-float {
	position: absolute;
	font: 500 12.5px/1 var(--f-mono);
	color: var(--c-blue-soft);
	background: rgba(14, 19, 29, 0.88);
	border: 1px solid #2E3A52;
	border-radius: 8px;
	padding: 9px 12px;
	white-space: nowrap;
	box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.8), 0 0 24px -10px rgba(76, 125, 255, 0.6);
	transform: translate3d(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px), 0);
	transition: transform 0.25s ease-out;
	animation: ch-bob 6s ease-in-out infinite;
}
.ch-float b { color: var(--c-paper); font-weight: 500; }
.ch-float .g { color: #7CE0A3; }
@keyframes ch-bob { 50% { translate: 0 -8px; } }
@media (max-width: 1200px) { .ch-float.is-wide { display: none; } }

/* ---------- Two-column text + checklist (Tjänster) ---------- */
.ch-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; scroll-margin-top: 110px; }
.ch-split.is-flip > :first-child { order: 2; }
@media (max-width: 900px) { .ch-split { grid-template-columns: minmax(0, 1fr); } .ch-split.is-flip > :first-child { order: 0; } }
.ch-split p { font-size: 17px; color: var(--c-text); }
.ch-anchor { scroll-margin-top: 110px; }

/* Detailed service cards (non-link variant of .ch-path) */
.ch-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 800px) { .ch-detail { grid-template-columns: minmax(0, 1fr); } }
.ch-detail .ch-path { scroll-margin-top: 110px; }
.ch-detail .ch-path:hover { transform: none; }
.ch-detail .ch-path p { font-size: 16px; }
a.ch-card { display: block; color: inherit; }

/* ---------- Compact hero (legal pages, single case, 404) ---------- */
.ch-hb.ch-hb--compact { padding-block: clamp(64px, 8vw, 112px); gap: 22px; }
.ch-hb--compact .ch-h1 { max-width: 20ch; }

/* Case facts under the lead */
.ch-facts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 4px 0 0; }
.ch-facts div { display: grid; gap: 6px; }
.ch-facts dt { font: 500 11px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-mist); }
.ch-facts dd { margin: 0; color: var(--c-paper); font-weight: 600; }

/* Big browser frame on a single case */
.ch-bigframe { max-width: 1100px; }
.ch-bigframe .cajka-case__media { aspect-ratio: 16 / 9; }
.ch-bigframe:hover { transform: none; }

/* Free text on a single case */
.ch-prose { max-width: 68ch; font-size: 18px; }
.cajka-ch .entry-content .ch-prose p { margin: 0 0 1em; max-width: none; }

/* 404 */
.ch-404__code {
	font: 700 clamp(96px, 18vw, 220px)/0.85 var(--f-mono);
	letter-spacing: -0.04em;
	/* Solid, translucent fill: text-stroke draws the overlapping contours of variable fonts twice. */
	color: rgba(76, 125, 255, 0.22);
	text-shadow: 0 0 40px rgba(76, 125, 255, 0.45);
}
.ch-404__req { font: 500 14px/1.4 var(--f-mono); color: var(--c-mist); }
.ch-404__req .m { color: var(--c-blue-soft); }
.ch-404__req .s { color: #FF8A8A; }

/* Case filter (Case / Work page) */
.ch-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.ch-filter__label { font: 500 13px/1 var(--f-mono); color: var(--c-mist); margin-right: 4px; }
.entry-content .ch-filter button {
	font: 500 13px/1 var(--f-mono);
	color: var(--c-text);
	background: rgba(20, 27, 42, 0.6);
	border: 1px solid #2E3A52;
	border-radius: 999px;
	padding: 9px 14px;
	cursor: pointer;
	box-shadow: none;
	transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.entry-content .ch-filter button:hover { border-color: var(--c-blue); color: var(--c-paper); background: rgba(20, 27, 42, 0.9); }
.entry-content .ch-filter button[aria-pressed="true"] { background: var(--c-btn); border-color: var(--c-btn); color: var(--c-on-blue); }
.ch-filter__count { opacity: 0.75; margin-left: 4px; }
.cajka-case[hidden] { display: none !important; }

/* Legal pages: keep text links visibly underlined */
body.cajka-ch .entry-content .cajka-legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- External links in text (e.g. agency names) ---------- */
body.cajka-ch .entry-content a.ch-ext {
	color: var(--c-blue-soft);
	text-decoration: underline;
	text-decoration-color: rgba(76, 125, 255, 0.6);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	transition: color 0.2s, text-decoration-color 0.2s;
}
/* Non-breaking space, so the arrow never wraps to a line of its own. */
body.cajka-ch .entry-content a.ch-ext::after { content: "\00A0↗"; font-size: 0.85em; color: var(--c-blue); }
body.cajka-ch .entry-content a.ch-ext:hover,
body.cajka-ch .entry-content a.ch-ext:focus-visible { color: var(--c-paper); text-decoration-color: var(--c-blue); }

/* ---------- Om: name story ---------- */
.ch-name { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .ch-name { grid-template-columns: minmax(0, 1fr); } }
.ch-name__word {
	font: 700 clamp(88px, 15vw, 200px)/0.9 var(--f-display);
	letter-spacing: -0.05em;
	color: var(--c-paper);
	text-shadow: 0 0 60px rgba(76, 125, 255, 0.35);
	/* Room for the descender of the "j", which hangs below the tight line box. */
	padding-bottom: 0.24em;
}
.ch-name__ipa { display: block; margin-top: 8px; font: 500 15px/1 var(--f-mono); color: var(--c-blue-soft); letter-spacing: 0.04em; }
.ch-name p { font-size: 18px; color: var(--c-text); }

/* Steps with three items (Kontakt) */
.ch-steps.ch-steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .ch-steps.ch-steps--3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Tech marquee (full width) ---------- */
.ch-marquee {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	border-block: 1px solid var(--c-line);
	overflow: hidden;
	padding-block: 22px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ch-marquee__track { display: flex; gap: 48px; width: max-content; animation: ch-slide 40s linear infinite; font: 500 15px/1 var(--f-mono); color: var(--c-mist); }
.ch-marquee__track span { display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.ch-marquee__track span::after { content: "/"; color: var(--c-blue); }
@keyframes ch-slide { to { transform: translateX(-50%); } }

/* ---------- Two paths ---------- */
.ch-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 800px) { .ch-paths { grid-template-columns: minmax(0, 1fr); } }
.ch-path {
	position: relative;
	overflow: hidden;
	min-width: 0;
	border-radius: 16px;
	border: 1px solid #2E3A52;
	background: linear-gradient(160deg, rgba(76, 125, 255, 0.10), transparent 45%), var(--c-slate);
	padding: clamp(26px, 3.5vw, 40px);
	display: flex;
	flex-direction: column;
	gap: 14px;
	color: var(--c-text);
	transition: border-color 0.3s, transform 0.3s;
}
.ch-path:hover { border-color: rgba(76, 125, 255, 0.6); transform: translateY(-3px); color: var(--c-text); }
.ch-path__tag { font: 500 12px/1 var(--f-mono); color: var(--c-blue-soft); }
.ch-path h3 { font-size: clamp(24px, 2.6vw, 32px); margin: 0; color: var(--c-paper); }
.ch-path ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.ch-path li { padding-left: 22px; position: relative; }
.ch-path li::before { content: "→"; position: absolute; left: 0; color: var(--c-blue); font-family: var(--f-mono); }
.ch-path__go { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--c-paper); }
.ch-path__go span { color: var(--c-blue); }
.ch-path__big { position: absolute; right: -10px; bottom: -34px; font: 700 140px/1 var(--f-mono); color: rgba(76, 125, 255, 0.07); pointer-events: none; }

/* ---------- Service cards with spotlight border ---------- */
.ch-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .ch-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ch-cards { grid-template-columns: minmax(0, 1fr); } }
.ch-card { --cx: 50%; --cy: 0%; position: relative; min-width: 0; border-radius: 14px; padding: 1px; background: radial-gradient(260px circle at var(--cx) var(--cy), rgba(76, 125, 255, 0.7), var(--c-line) 60%); transition: transform 0.25s; }
.ch-card:hover { transform: translateY(-3px); }
.ch-card__in { height: 100%; border-radius: 13px; background: radial-gradient(320px circle at var(--cx) var(--cy), rgba(76, 125, 255, 0.10), transparent 60%), var(--c-slate); padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.ch-glyph { font: 500 15px/1 var(--f-mono); color: var(--c-blue); width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(76, 125, 255, 0.1); border: 1px solid rgba(76, 125, 255, 0.25); box-shadow: 0 0 20px -6px rgba(76, 125, 255, 0.6); }
.ch-card h3 { font-size: 21px; letter-spacing: -0.02em; margin: 0; color: var(--c-paper); }
.ch-card p { font-size: 15px; color: var(--c-text); }

/* ---------- About + timeline ---------- */
.ch-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .ch-about { grid-template-columns: minmax(0, 1fr); } }
.ch-about__story { display: flex; flex-direction: column; gap: 16px; }
.ch-timeline { border-left: 1px solid #2E3A52; margin-left: 8px; }
.ch-tl { position: relative; padding: 0 0 28px 30px; }
.ch-tl:last-child { padding-bottom: 0; }
.ch-tl::before { content: ""; position: absolute; left: -6px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--c-ink); border: 2px solid var(--c-blue); }
.ch-tl.is-now::before { background: var(--c-blue); box-shadow: 0 0 0 5px rgba(76, 125, 255, 0.18), 0 0 14px var(--c-blue); }
.ch-tl__yrs { font: 600 34px/1 var(--f-display); letter-spacing: -0.03em; color: var(--c-paper); }
.ch-tl__yrs small { font: 500 13px/1 var(--f-mono); color: var(--c-blue-soft); margin-left: 8px; letter-spacing: 0.04em; }
.ch-tl h3 { font-size: 18px; margin: 8px 0 0; color: var(--c-paper); }
.ch-tl p { font-size: 15px; color: var(--c-mist); margin-top: 4px; }

/* ---------- Process timeline ---------- */
.ch-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: ch-step; }
@media (max-width: 900px) { .ch-steps { grid-template-columns: minmax(0, 1fr); } }
.ch-steps::before { content: ""; position: absolute; top: 15px; left: 0; right: 0; height: 1px; background: var(--c-line); }
.ch-steps__bar { position: absolute; top: 15px; left: 0; height: 1px; width: 100%; background: linear-gradient(90deg, var(--c-blue), var(--c-blue-soft)); box-shadow: 0 0 12px var(--c-blue); transition: width 1.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.ch-js .ch-steps__bar { width: 0; }
.ch-js .ch-steps.is-in .ch-steps__bar { width: 100%; }
@media (max-width: 900px) { .ch-steps::before, .ch-steps__bar { display: none; } }
.ch-step { position: relative; display: flex; flex-direction: column; gap: 10px; padding-top: 44px; }
.ch-step::before { counter-increment: ch-step; content: "0" counter(ch-step); position: absolute; top: 0; left: 0; width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; font: 500 11px/1 var(--f-mono); color: var(--c-blue-soft); background: var(--c-ink); border: 1px solid #2E3A52; }
.ch-step h3 { font-size: 20px; margin: 0; color: var(--c-paper); }
.ch-step p { font-size: 15px; }

/* ---------- Included checklist ---------- */
.ch-included { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .ch-included { grid-template-columns: minmax(0, 1fr); } }
.ch-intro { display: flex; flex-direction: column; gap: 14px; }
.ch-checklist { font: 14px/1.9 var(--f-mono); background: #0E131D; border: 1px solid #2E3A52; border-radius: 14px; padding: 22px 24px; min-width: 0; overflow-x: auto; box-shadow: 0 0 50px -20px rgba(76, 125, 255, 0.35); }
.ch-check { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding-block: 4px; border-bottom: 1px dashed var(--c-line); }
.ch-check:last-child { border-bottom: 0; }
.ch-check .ok { color: #7CE0A3; }
.ch-check .k { color: var(--c-paper); }
.ch-check .v { color: var(--c-mist); font-size: 12.5px; text-align: right; }
@media (max-width: 560px) { .ch-check { grid-template-columns: 22px minmax(0, 1fr); } .ch-check .v { grid-column: 2; text-align: left; } }

/* ---------- FAQ (core Details blocks, so the FAQ schema keeps working) ---------- */
.entry-content .wp-block-group.ch-faq { padding-inline: 0; }
.entry-content .ch-faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .entry-content .ch-faq { grid-template-columns: minmax(0, 1fr); } }
.ch-faq > * { margin: 0 !important; }
.ch-faq .wp-block-details { border: 0; border-bottom: 1px solid var(--c-line); padding: 0; max-width: none; }
.ch-faq .wp-block-details:first-child { border-top: 1px solid var(--c-line); }
.ch-faq .wp-block-details summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: center;
	padding: 22px 0;
	font: 600 19px/1.3 var(--f-display);
	color: var(--c-paper);
	letter-spacing: -0.01em;
}
.ch-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.ch-faq .wp-block-details summary::after {
	content: "+";
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font: 400 18px/1 var(--f-mono);
	color: var(--c-blue);
	border: 1px solid #2E3A52;
}
.ch-faq .wp-block-details[open] summary::after { content: "−"; background: rgba(76, 125, 255, 0.12); }
.ch-faq .wp-block-details summary:hover { color: var(--c-blue-soft); }
.ch-faq .wp-block-details p { padding: 0 48px 22px 0; margin: 0; color: var(--c-text); font-size: 16px; max-width: none; }

/* ---------- Contact ---------- */
.ch-contact {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(32px, 5vw, 64px);
	border-radius: 20px;
	border: 1px solid #2E3A52;
	background: radial-gradient(700px circle at 0% 0%, rgba(76, 125, 255, 0.16), transparent 55%), var(--c-slate);
	padding: clamp(28px, 5vw, 64px);
}
@media (max-width: 960px) { .ch-contact { grid-template-columns: minmax(0, 1fr); } }
.ch-contact__info { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ch-direct { display: grid; gap: 10px; margin-top: 6px; }
.ch-direct a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid #2E3A52; background: rgba(11, 15, 23, 0.5); transition: border-color 0.2s; min-width: 0; }
.ch-direct a:hover { border-color: var(--c-blue); }
.ch-direct .k { font: 500 11px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-mist); width: 70px; flex: none; }
.ch-direct .v { font: 600 17px/1.2 var(--f-display); color: var(--c-paper); overflow-wrap: anywhere; }
.ch-contact__form { min-width: 0; }
.ch-contact .wpforms-container {
	--wpforms-field-background-color: var(--c-ink);
	--wpforms-field-border-color: #2E3A52;
	--wpforms-field-border-color-spare: #2E3A52;
	--wpforms-field-text-color: var(--c-paper);
	--wpforms-field-menu-color: var(--c-ink);
	--wpforms-label-color: var(--c-paper);
	--wpforms-label-sublabel-color: var(--c-mist);
	--wpforms-label-error-color: #FF8A8A;
	--wpforms-button-background-color: var(--c-btn);
	--wpforms-button-border-color: var(--c-btn);
	--wpforms-button-text-color: var(--c-on-blue);
	--wpforms-field-border-radius: 10px;
	--wpforms-button-border-radius: 10px;
	--wpforms-field-size-input-height: 48px;
	--wpforms-label-size-font-size: 14px;
	--wpforms-field-size-font-size: 16px;
	margin: 0 !important;
}
/* Compact layout: name | email and company | phone side by side, everything else full width. */
.ch-contact .wpforms-field-container {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
.ch-contact .wpforms-field-container > .wpforms-field { padding: 0 !important; grid-column: 1 / -1; min-width: 0; }
.ch-contact .wpforms-field-container > [id$="-field_0-container"],
.ch-contact .wpforms-field-container > [id$="-field_1-container"],
.ch-contact .wpforms-field-container > [id$="-field_2-container"],
.ch-contact .wpforms-field-container > [id$="-field_3-container"] { grid-column: auto; }
@media (max-width: 560px) {
	.ch-contact .wpforms-field-container { grid-template-columns: minmax(0, 1fr); }
	.ch-contact .wpforms-field-container > .wpforms-field { grid-column: 1 / -1 !important; }
}
.ch-contact .wpforms-field-label { font-weight: 600; margin-bottom: 7px !important; }
.ch-contact .wpforms-field textarea { height: 130px !important; min-height: 130px; }
.ch-contact .wpforms-submit-container { margin-top: 22px !important; padding: 0 !important; }
.cajka-ch .entry-content .ch-contact p.ch-recaptcha { margin-top: 16px; }
.ch-contact .wpforms-field input::placeholder,
.ch-contact .wpforms-field textarea::placeholder { color: #5E6A82; opacity: 1; }
.ch-contact .wpforms-field input:focus,
.ch-contact .wpforms-field select:focus,
.ch-contact .wpforms-field textarea:focus { box-shadow: 0 0 0 4px rgba(76, 125, 255, 0.18) !important; }
.ch-contact .wpforms-field-gdpr-checkbox label { color: var(--c-text); font-size: 14px; }
.ch-contact .wpforms-field-gdpr-checkbox input[type="checkbox"] { border-color: var(--c-mist) !important; }
.ch-contact .wpforms-submit { font-family: var(--f-body); font-weight: 600; padding-inline: 26px; box-shadow: 0 8px 30px -8px rgba(76, 125, 255, 0.6); }
.ch-contact .wpforms-confirmation-container-full { background: var(--c-ink); border: 1px solid var(--c-blue); color: var(--c-paper); border-radius: 12px; }
.ch-recaptcha { font-size: 12px; line-height: 1.5; color: var(--c-mist); margin-top: 12px; }
body.cajka-ch .entry-content .ch-recaptcha a { color: var(--c-mist); text-decoration: underline; }

/* ---------- Reveal on scroll (only once JS is running) ---------- */
.ch-js .ch-rv { opacity: 0; transform: translateY(18px); transition: opacity 0.7s, transform 0.7s; }
.ch-js .ch-rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.ch-marquee__track, .ch-caret { animation: none; }
	.ch-js .ch-rv, .ch-js .ch-page > * { opacity: 1; transform: none; transition: none; }
	.ch-js .ch-steps__bar { width: 100%; transition: none; }
	.ch-card, .ch-path, .ch-btn, .ch-float { transition: none; animation: none; }
}

/* ---------- Blog ---------- */
.ch-hb--compact .ch-h1--post { max-width: 24ch; font-size: clamp(36px, 4.6vw, 64px); }
.ch-post-meta { font: 500 13px/1.5 var(--f-mono); color: var(--c-mist); }
.ch-post-meta a { color: var(--c-text); }
.ch-post-meta a:hover { color: var(--c-blue-soft); }

.ch-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .ch-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ch-posts { grid-template-columns: minmax(0, 1fr); } }
.ch-post-card .ch-card__in { padding: 26px 24px; }
.ch-post-card__meta { font: 500 12px/1.4 var(--f-mono); color: var(--c-mist); }
.ch-post-card h3 { font-size: 22px; line-height: 1.2; }
.ch-post-card p { flex: 1; }
.ch-post-card__more { font-weight: 600; color: var(--c-paper); display: inline-flex; gap: 8px; }
.ch-post-card__more span { color: var(--c-blue); transition: transform 0.2s; }
.ch-post-card:hover .ch-post-card__more span { transform: translateX(3px); }

.ch-pagination { margin-top: 40px; }
.ch-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-pagination .page-numbers { font: 500 14px/1 var(--f-mono); color: var(--c-text); border: 1px solid var(--c-line); border-radius: 8px; padding: 10px 14px; }
.ch-pagination .page-numbers.current, .ch-pagination a.page-numbers:hover { color: var(--c-paper); border-color: var(--c-blue); }

/* Article text */
.ch-block--post { padding-top: clamp(40px, 5vw, 64px); }
.ch-prose--post { font-size: 18px; line-height: 1.7; color: var(--c-text); }
.cajka-ch .entry-content .ch-prose--post > * { margin: 0 0 1.1em; max-width: none; }
.cajka-ch .entry-content .ch-prose--post h2 { font: 700 clamp(26px, 2.6vw, 34px)/1.15 var(--f-display); letter-spacing: -0.02em; color: var(--c-paper); margin: 1.8em 0 0.6em; }
.cajka-ch .entry-content .ch-prose--post h3 { font: 700 21px/1.25 var(--f-display); color: var(--c-paper); margin: 1.5em 0 0.4em; }
.cajka-ch .entry-content .ch-prose--post > h2:first-child { margin-top: 0; }
.ch-prose--post ul, .ch-prose--post ol { padding-left: 1.3em; }
.ch-prose--post li { margin-bottom: 0.45em; }
.ch-prose--post li::marker { color: var(--c-blue); }
.ch-prose--post strong { color: var(--c-paper); }
body.cajka-ch .entry-content .ch-prose--post a { color: var(--c-blue-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
body.cajka-ch .entry-content .ch-prose--post a:hover { color: var(--c-paper); }
.ch-prose--post code { font-size: 0.85em; background: var(--c-slate); border: 1px solid var(--c-line); border-radius: 5px; padding: 1px 6px; color: var(--c-paper); }
.ch-prose--post blockquote { margin-left: 0; padding: 18px 22px; border: 1px solid var(--c-line); border-left: 3px solid var(--c-blue); border-radius: 0 10px 10px 0; background: var(--c-slate); }
.cajka-ch .entry-content .ch-prose--post blockquote p { margin: 0; }

.ch-post-cta { max-width: 760px; border: 1px solid var(--c-line); border-radius: 16px; padding: clamp(28px, 4vw, 44px); background: radial-gradient(500px circle at 0% 0%, rgba(76, 125, 255, 0.14), transparent 60%), var(--c-slate); display: grid; gap: 18px; }
.ch-post-cta .ch-h2 { font-size: clamp(26px, 3vw, 38px); }
.ch-post-cta p { font-size: 17px; color: var(--c-text); }