/* 6lock — partner, campaign and gated-download pages (the pages sales sends to specific firms and events).
   Builds on site.css: night sections use the theme tokens (--fg, --fg-dim, --line, --ink-2, --signal) so light
   mode follows along; day sections stay paper in both themes and use the paper tokens.

   Contents: hero + co-brand lockup · rich text and lists · story chapters · stat tiles · closing section ·
   campaign extras (notes, steps) · Newport (figures, customer logos, report checklist, testimonial) ·
   gated downloads */

/* ---------- hero ---------- */
.cp-hero {
	padding-block: clamp(56px, 8vw, 112px) clamp(56px, 8vw, 104px);
}
.cp-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
}
.cp-hero-copy {
	gap: 22px;
}
.cp-title {
	font-size: clamp(2.2rem, 4.2vw, 3.5rem);
	letter-spacing: -0.04em;
	line-height: 1.02;
}
.cp-form {
	display: grid;
	gap: 22px;
}
.cp-form .form {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cp-form .form .btn[type='submit'] {
	grid-column: 1 / -1;
}
/* a dark form card inside a paper section keeps its night link colour */
.day .night .link-arrow {
	color: var(--signal);
}
@media (max-width: 560px) {
	.cp-form .form {
		grid-template-columns: minmax(0, 1fr);
	}
}
.cp-form-title {
	font-size: clamp(1.25rem, 1.9vw, 1.55rem);
	letter-spacing: -0.02em;
	line-height: 1.2;
}
.cp-form-title span {
	color: var(--signal);
}
.cp-form-title small {
	display: block;
	margin-top: 6px;
	font-size: 0.98rem;
	letter-spacing: 0;
	font-weight: 400;
	color: var(--fg-dim);
}
@media (max-width: 960px) {
	.cp-hero-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* co-brand lockup: the firm's own logo on a plate, then the 6lock wordmark */
.cp-lockup {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}
.cp-plate {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 60px;
	padding: 12px 20px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--line);
}
.cp-plate.is-dark {
	background: var(--navy);
}
.cp-plate.is-badge {
	padding: 0;
	overflow: hidden;
	min-height: 0;
}
.cp-logo {
	height: 34px;
	width: auto;
	max-width: min(180px, 52vw);
	object-fit: contain;
}
.cp-plate.is-badge .cp-logo {
	height: 76px;
	width: 76px;
}
.cp-plus {
	font-size: 1.5rem;
	line-height: 1;
	color: var(--fg-dim);
}
.cp-6lock {
	display: inline-flex;
	color: var(--fg);
}
.cp-6lock svg {
	height: 26px;
	width: auto;
}

/* ---------- rich text ---------- */
.cp-rich {
	display: grid;
	gap: 14px;
	color: var(--fg-dim);
	font-size: 1.04rem;
	line-height: 1.6;
}
.cp-rich strong,
.cp-copy strong {
	color: var(--fg);
	font-weight: 500;
}
.cp-lead {
	color: var(--fg);
	font-weight: 500;
	font-size: 1.12rem;
	letter-spacing: -0.01em;
}
.cp-rich a,
.cp-copy p a {
	color: var(--signal);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.cp-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}
.cp-list li {
	position: relative;
	padding-left: 32px;
}
/* a check in a soft disc; .is-x marks the "no more" lists */
.cp-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--signal) 16%, transparent);
}
.cp-list li::after {
	content: '';
	position: absolute;
	left: 7px;
	top: calc(0.2em + 5px);
	width: 5px;
	height: 9px;
	border: solid var(--signal);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.cp-list.is-x li::before {
	background: color-mix(in srgb, var(--threat) 14%, transparent);
}
.cp-list.is-x li::after {
	content: '×';
	left: 0;
	top: 0.2em;
	width: 20px;
	height: 20px;
	border: 0;
	transform: none;
	display: grid;
	place-items: center;
	font-size: 15px;
	line-height: 20px;
	font-weight: 700;
	text-align: center;
	color: var(--threat);
}

/* day sections: paper tokens */
.day .cp-rich,
.day .cp-copy {
	color: var(--ink-dim);
}
.day .cp-rich strong,
.day .cp-copy strong,
.day .cp-lead {
	color: var(--ink-text);
}
.day .cp-rich a,
.day .cp-copy p a {
	color: var(--blue);
}
.day .cp-list li::before {
	background: color-mix(in srgb, var(--blue) 11%, transparent);
}
.day .cp-list li::after {
	border-color: var(--blue);
}
.day .cp-list.is-x li::before {
	background: rgba(194, 65, 45, 0.1);
}
.day .cp-list.is-x li::after {
	color: #c2412d;
}

/* ---------- story chapters: copy beside a photo with a product callout ---------- */
.cp-head {
	max-width: 920px;
}
.cp-head .lede {
	max-width: 62ch;
}
.cp-chapters {
	display: grid;
	gap: clamp(72px, 10vw, 136px);
}
.cp-chapter {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 88px);
	align-items: center;
}
.cp-chapter.flip .cp-media {
	order: -1;
}
.cp-copy {
	display: grid;
	gap: 16px;
	align-content: start;
	color: var(--fg-dim);
	font-size: 1.04rem;
	line-height: 1.6;
}
.cp-copy :is(h2, h3) {
	margin-bottom: 6px;
	color: var(--fg);
}
.day .cp-copy :is(h2, h3) {
	color: var(--ink-text);
}
.cp-num {
	font-family: var(--mono);
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	color: var(--signal);
}
.day .cp-num {
	color: var(--blue);
}
.cp-media {
	position: relative;
	margin: 0;
	width: 100%;
	max-width: 540px;
	justify-self: center;
	padding: 0 0 clamp(36px, 6vw, 64px) clamp(28px, 6vw, 64px);
}
.cp-chapter.flip .cp-media {
	padding-left: 0;
	padding-right: clamp(28px, 6vw, 64px);
}
.cp-photo {
	width: 100%;
	height: auto;
	border-radius: 28px;
	box-shadow: 0 40px 80px -48px rgba(4, 10, 24, 0.55);
}
.cp-chip {
	position: absolute;
	left: 0;
	bottom: 0;
	width: min(50%, 250px);
	height: auto;
	filter: drop-shadow(0 22px 34px rgba(4, 10, 24, 0.28));
}
.cp-chapter.flip .cp-chip {
	left: auto;
	right: 0;
}
.cp-media-plain {
	padding: 0;
}
.cp-media-arch .cp-photo {
	border-radius: 0 0 28px 28px;
	box-shadow: none;
}
@media (max-width: 860px) {
	.cp-chapter {
		grid-template-columns: minmax(0, 1fr);
	}
	.cp-chapter.flip .cp-media {
		order: 0;
	}
	.cp-media {
		max-width: 460px;
	}
}

/* ---------- stat tiles (the TMF Group proof point) ---------- */
.cp-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	margin-top: 6px;
	border-radius: 20px;
	overflow: hidden;
	background: var(--line);
	box-shadow: 0 0 0 1px var(--line);
}
.cp-stats > div {
	display: grid;
	gap: 4px;
	align-content: start;
	padding: 18px 20px;
	background: var(--ink-2);
}
.cp-stats b {
	font-size: 1.12rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: var(--fg);
}
.cp-stats span {
	font-size: 0.92rem;
	color: var(--fg-dim);
}
.day .cp-stats {
	background: var(--line-paper);
	box-shadow: 0 0 0 1px var(--line-paper);
}
.day .cp-stats > div {
	background: #fff;
}
.day .cp-stats b {
	color: var(--ink-text);
}
.day .cp-stats span {
	color: var(--ink-dim);
}
@media (max-width: 480px) {
	.cp-stats {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- closing section ---------- */
.cp-close {
	overflow: clip;
}
.cp-close::before {
	content: '';
	position: absolute;
	left: 30%;
	top: 50%;
	width: 900px;
	height: 900px;
	max-width: 160vw;
	transform: translate(-50%, -50%);
	background: radial-gradient(circle, rgba(11, 52, 199, 0.42), transparent 62%);
	pointer-events: none;
}
html[data-theme='light'] .cp-close::before {
	background: radial-gradient(
		circle,
		rgba(77, 132, 255, 0.16),
		transparent 62%
	);
}
.cp-close-grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(32px, 6vw, 88px);
	align-items: center;
}
.cp-close-copy {
	gap: 24px;
}
.cp-close-copy .cta-row {
	margin-top: 8px;
}
@media (max-width: 860px) {
	.cp-close-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- campaign extras ---------- */
/* "Bottom line" and "Pro tip" asides */
.cp-note {
	padding: 18px 22px;
	border-radius: 18px;
	background: var(--ink-2);
	box-shadow: 0 0 0 1px var(--line) inset;
	color: var(--fg-dim);
}
.day .cp-note {
	background: #fff;
	box-shadow: 0 0 0 1px var(--line-paper);
	color: var(--ink-dim);
}
/* the four advantages, as small tiles */
.cp-perks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 4px;
}
.cp-perks > div {
	display: grid;
	gap: 6px;
	align-content: start;
	padding: 20px 22px;
	border-radius: 20px;
	background: var(--ink-2);
	box-shadow: 0 0 0 1px var(--line) inset;
}
.cp-perks h4 {
	font-size: 1.1rem;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: var(--fg);
}
.cp-perks p {
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--fg-dim);
}
.day .cp-perks > div {
	background: #fff;
	box-shadow: 0 0 0 1px var(--line-paper);
}
.day .cp-perks h4 {
	color: var(--ink-text);
}
.day .cp-perks p {
	color: var(--ink-dim);
}
@media (max-width: 480px) {
	.cp-perks {
		grid-template-columns: minmax(0, 1fr);
	}
}
/* numbered steps */
.cp-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: cp-step;
	display: grid;
	border-top: 1px solid var(--line);
}
.cp-steps li {
	counter-increment: cp-step;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 12px;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}
.cp-steps li::before {
	content: counter(cp-step, decimal-leading-zero);
	font-family: var(--mono);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	color: var(--signal);
	padding-top: 0.35em;
}
.day .cp-steps,
.day .cp-steps li {
	border-color: var(--line-paper);
}
.day .cp-steps li::before {
	color: var(--blue);
}

/* ---------- Newport: figures with sources ---------- */
.cp-figures {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid var(--line);
}
.cp-figures > div {
	display: grid;
	gap: 12px;
	align-content: start;
	padding: 36px 28px 8px 0;
}
.cp-figures > div + div {
	padding-left: 28px;
	border-left: 1px solid var(--line);
}
.cp-figures .stake-num {
	font-size: clamp(2.8rem, 5.6vw, 4.8rem);
}
.cp-figures p {
	color: var(--fg);
	font-size: 1.06rem;
	line-height: 1.4;
	max-width: 26ch;
}
.cp-figures .source {
	font-family: var(--mono);
	font-size: max(0.7rem, var(--type-floor));
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
@media (max-width: 760px) {
	.cp-figures {
		grid-template-columns: minmax(0, 1fr);
	}
	.cp-figures > div,
	.cp-figures > div + div {
		padding: 28px 0 24px;
		border-left: 0;
	}
	.cp-figures > div + div {
		border-top: 1px solid var(--line);
	}
}

/* customer logos, each on its own white tile */
.cp-customers {
	display: grid;
	gap: 22px;
	justify-items: center;
	text-align: center;
	margin-top: clamp(56px, 8vw, 96px);
}
.cp-customers h2 {
	font-size: 0.75rem;
	font-family: var(--mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 500;
	color: var(--fg-dim);
}
.cp-logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}
.cp-logos span {
	display: grid;
	place-items: center;
	overflow: hidden;
	width: 196px;
	height: 128px;
	padding: 12px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--line);
}
.cp-logos img {
	max-width: 100%;
	max-height: 100%;
	min-height: 0;
	width: auto;
	height: auto;
	object-fit: contain;
}
@media (max-width: 560px) {
	.cp-logos span {
		width: calc(50% - 7px);
		height: 104px;
	}
}

/* the report's contents, one checked item per row */
.cp-checks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	border-top: 1px solid var(--line-paper);
}
.cp-checks li {
	position: relative;
	display: grid;
	gap: 4px;
	padding: 18px 0 18px 36px;
	border-bottom: 1px solid var(--line-paper);
	color: var(--ink-dim);
}
.cp-checks li strong {
	color: var(--ink-text);
	font-weight: 500;
	font-size: 1.08rem;
	letter-spacing: -0.01em;
}
.cp-checks li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 21px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--blue);
}
.cp-checks li::after {
	content: '';
	position: absolute;
	left: 8px;
	top: 26px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.cp-visual {
	width: 100%;
	height: auto;
	border-radius: 28px;
}

/* a testimonial card with the speaker's photo */
.cp-voice {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
	padding: clamp(28px, 5vw, 56px);
	border-radius: 32px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--line-paper);
	color: var(--ink-text);
}
.cp-voice blockquote {
	margin: 0;
	display: grid;
	gap: 18px;
}
.cp-voice blockquote p:first-child {
	font-size: clamp(1.3rem, 2.4vw, 1.9rem);
	line-height: 1.3;
	letter-spacing: -0.025em;
	font-weight: 500;
}
.cp-voice blockquote p + p {
	color: var(--ink-dim);
	font-size: 1.04rem;
}
.cp-voice .who {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 24px;
}
.cp-voice .who img {
	width: 64px;
	height: auto;
}
.cp-voice .who b {
	display: block;
	font-weight: 500;
}
.cp-voice .who span {
	color: var(--ink-dim);
	font-size: 0.92rem;
}
.cp-voice-photo {
	width: 100%;
	height: auto;
	border-radius: 24px;
}
@media (max-width: 760px) {
	.cp-voice {
		grid-template-columns: minmax(0, 1fr);
	}
	.cp-voice-photo {
		max-width: 260px;
	}
}

/* ---------- gated downloads ---------- */
.cp-gate-hero .cp-hero-grid {
	align-items: center;
}
.cp-subtitle {
	font-size: clamp(1.25rem, 2vw, 1.6rem);
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: var(--fg);
	font-weight: 500;
}
.cp-cover {
	margin: 0;
	justify-self: center;
	width: min(100%, 420px);
}
.cp-cover img {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 40px 60px rgba(4, 10, 24, 0.5));
}
html[data-theme='light'] .cp-cover img {
	filter: drop-shadow(0 30px 50px rgba(11, 19, 40, 0.25));
}
.cp-gate {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(32px, 6vw, 80px);
	align-items: start;
}
.cp-gate-body {
	display: grid;
	gap: clamp(32px, 4vw, 48px);
}
.cp-gate-form {
	position: sticky;
	top: calc(var(--nav-h) + 24px);
}
.cp-quote {
	margin: 0;
	display: grid;
	gap: 22px;
	padding: clamp(26px, 4vw, 44px);
	border-radius: 28px;
	background: var(--navy);
	color: #fff;
	box-shadow: 0 30px 80px -40px rgba(11, 52, 199, 0.6);
}
.cp-quote blockquote {
	margin: 0;
	font-size: clamp(1.15rem, 1.8vw, 1.4rem);
	line-height: 1.4;
	letter-spacing: -0.015em;
}
.cp-quote figcaption {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 0.95rem;
}
.cp-quote figcaption img {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
}
.cp-quote figcaption small {
	display: block;
	color: var(--ice);
}
@media (max-width: 960px) {
	.cp-gate {
		grid-template-columns: minmax(0, 1fr);
	}
	.cp-gate-form {
		position: static;
	}
}
