/*
 * CellQual — base.
 *
 * Reset, typography scale, buttons, primitives. Every colour and every
 * measurement here reads a custom property printed by inc/dynamic-css.php, so
 * this file never hard-codes a value from the palette.
 */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 120px;
}

body {
	margin: 0;
	background: var(--ink);
	color: var(--muted-dark);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

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

a { color: var(--green-br); text-decoration: none; }
a:hover { color: #fff; }

button { font: inherit; color: inherit; }

::selection { background: var(--green); color: #fff; }

/* ------------------------------------------------------------------ Focus */
:focus-visible {
	outline: 2px solid var(--green-br);
	outline-offset: 2px;
}

.cq-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: 14px 22px;
	background: var(--green);
	color: #fff;
	font-weight: 700;
}
.cq-skip:focus { left: 12px; top: 12px; color: #fff; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ------------------------------------------------------------- Container */
.cq-in {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--gut);
}

.cq-site { position: relative; overflow: clip; }
.cq-main { display: block; }

/* ------------------------------------------------------------ Typography */
.cq-display,
.cq-h1,
.cq-h2,
.cq-card__t,
.cq-step__t,
.cq-why__t,
.cq-ft__h,
.cq-faq__title {
	font-family: var(--font-head);
	color: #fff;
	margin: 0;
}

.cq-display {
	font-size: clamp(38px, 6.4vw, 86px);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 0.97;
	text-transform: uppercase;
	text-wrap: balance;
}

.cq-h1 {
	font-size: clamp(32px, 5vw, 64px);
	font-weight: 800;
	letter-spacing: -0.022em;
	line-height: 1.02;
	text-transform: uppercase;
}

.cq-h2 {
	font-size: clamp(26px, 3.2vw, 42px);
	font-weight: 700;
	letter-spacing: -0.018em;
	line-height: 1.08;
	text-wrap: balance;
}

.cq-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-head);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--green-br);
	margin-bottom: 18px;
}
.cq-eyebrow::before {
	content: "";
	width: 34px;
	height: 1px;
	background: currentColor;
	flex: none;
}

.cq-lede {
	font-size: clamp(16px, 1.3vw, 19px);
	line-height: 1.62;
	color: var(--muted-dark);
	max-width: 62ch;
	margin: 18px 0 0;
}

.cq-sub {
	font-size: clamp(15px, 1.15vw, 18px);
	line-height: 1.62;
	color: var(--muted-dark);
	max-width: 58ch;
	margin: 22px 0 0;
}

.cq-copy p {
	max-width: var(--measure);
	margin: 0 0 1.35em;
	color: var(--muted-dark);
}
.cq-copy p:last-child { margin-bottom: 0; }

.cq-copy--2 {
	columns: 2;
	column-gap: clamp(28px, 4vw, 64px);
}
.cq-copy--2 p { max-width: none; break-inside: avoid; }

/* ------------------------------------------------------------ Prose body */
.cq-prose { max-width: var(--measure); color: var(--muted-dark); }
.cq-prose > * + * { margin-top: 1.3em; }
.cq-prose h2, .cq-prose h3, .cq-prose h4 {
	font-family: var(--font-head);
	color: #fff;
	line-height: 1.15;
	letter-spacing: -0.015em;
	margin-top: 2em;
}
.cq-prose h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; }
.cq-prose h3 { font-size: clamp(19px, 1.8vw, 24px); font-weight: 700; }
.cq-prose ul, .cq-prose ol { padding-inline-start: 1.3em; }
.cq-prose li + li { margin-top: .5em; }
.cq-prose strong, .cq-prose b { color: #fff; font-weight: 600; }
.cq-prose blockquote {
	margin: 0;
	padding-inline-start: 22px;
	border-inline-start: 2px solid var(--tint);
	color: #fff;
	font-size: 1.1em;
}
.cq-prose table { width: 100%; border-collapse: collapse; }
.cq-prose th, .cq-prose td {
	padding: 12px 14px;
	border-bottom: 1px solid rgba(255,255,255,.09);
	text-align: start;
}
.cq-prose th { color: #fff; font-family: var(--font-head); font-weight: 700; }

/* ---------------------------------------------------------------- Buttons */
.cq-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 26px;
	border: 1px solid transparent;
	border-radius: var(--r-btn);
	font-family: var(--font-head);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		background var(--d-btn) var(--e-ui),
		border-color var(--d-btn) var(--e-ui),
		color var(--d-btn) var(--e-ui);
}
.cq-btn .cq-arw { transition: transform var(--d-btn) var(--e-ui); flex: none; }
.cq-btn:hover .cq-arw { transform: translateX(4px); }

.cq-btn--p {
	background: var(--green);
	color: #fff;
}
.cq-btn--p:hover { background: var(--green-br); color: #fff; }
.cq-btn--p:active { background: var(--green-deep); }

.cq-btn--s {
	background: rgba(255,255,255,.04);
	border-color: rgba(255,255,255,.22);
	color: #fff;
}
.cq-btn--s:hover {
	background: rgba(255,255,255,.09);
	border-color: var(--green-br);
	color: #fff;
}

.cq-btn--d {
	background: transparent;
	border-color: var(--line);
	color: var(--text);
}
.cq-btn--d:hover { border-color: var(--green); color: var(--green-deep); }

.cq-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 34px;
}
.cq-btns--center { justify-content: center; }

/* ------------------------------------------------------------- Icon button */
.cq-iconbtn {
	display: grid;
	place-items: center;
	width: 40px; height: 40px;
	padding: 0;
	background: transparent;
	border: 1px solid rgba(255,255,255,.16);
	border-radius: var(--r-btn);
	color: #fff;
	cursor: pointer;
	transition: border-color var(--d-btn) var(--e-ui), background var(--d-btn) var(--e-ui);
}
.cq-iconbtn svg { width: 18px; height: 18px; }
.cq-iconbtn:hover { border-color: var(--green-br); background: rgba(255,255,255,.06); }

/* -------------------------------------------------------------- Icon slots */
.cq-icon {
	display: grid;
	place-items: center;
	flex: none;
	color: var(--green-br);
}
.cq-icon img { width: 100%; height: 100%; object-fit: contain; }
.cq-icon svg { width: 100%; height: 100%; }

/* ------------------------------------------------------------ Placeholders */
.cq-ph {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: var(--ph-ratio, 16 / 9);
	background:
		radial-gradient(120% 120% at 78% 18%, rgba(105,185,75,.10), transparent 58%),
		linear-gradient(150deg, var(--ink3), var(--void));
	overflow: hidden;
}
.cq-ph--grid::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
	background-size: 48px 48px;
}
.cq-ph__mark {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(115deg, transparent 47.6%, rgba(255,255,255,.05) 49.8%, transparent 52%);
}
.cq-ph__label {
	position: absolute;
	inset-inline-start: 14px;
	inset-block-end: 12px;
	padding: 5px 10px;
	background: rgba(5,7,10,.72);
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 2px;
	font-family: var(--font-head);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted-dark);
	white-space: nowrap;
	max-width: calc(100% - 28px);
	overflow: hidden;
	text-overflow: ellipsis;
}

/* -------------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* ------------------------------------------------- Placeholder icon glyph */
/* The fallback glyph has to occupy exactly the space the real icon will, or
   swapping in the master artwork shifts every layout it appears in. */
.cq-icon--fallback { color: var(--green-br); opacity: .78; }
.cq-ico--placeholder { width: 100%; height: 100%; display: block; }
.cq-sec--light .cq-icon--fallback,
.cq-sec--soft .cq-icon--fallback { color: var(--green); }
