/* 6lock — long-form and listing pages: the blog, the 6 x 6lock podcast, legal pages, the trust center,
   partner and campaign pages, and form states. Uses the tokens in site.css, so light mode follows along.

   Contents: layout helpers · insights tabs · cards · filters · article · prose · podcast · forms ·
   legal · trust center · news · partner pages · gated downloads · interactive tools */

/* ---------- layout helpers ---------- */
.stack-lg {
	display: grid;
	gap: clamp(36px, 5vw, 64px);
}
.list-head {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	align-items: center;
	justify-content: space-between;
}
/* a rail's heading sits straight above its cards (no stack gap), so it brings its own */
.rail-head {
	margin-bottom: clamp(28px, 3.5vw, 48px);
}
.post-meta {
	font-family: var(--mono);
	font-size: max(0.72rem, var(--type-floor));
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--fg-dim);
}

/* ---------- insights tabs (blog · podcast · news) ---------- */
.insights-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}
.insights-tabs a {
	padding: 9px 16px;
	border-radius: 999px;
	font-size: 0.92rem;
	color: var(--fg-dim);
	box-shadow: 0 0 0 1px var(--line) inset;
	transition:
		color var(--t-fast) var(--ease),
		box-shadow var(--t-fast) var(--ease);
}
.insights-tabs a:hover,
.insights-tabs a[aria-current='page'] {
	color: var(--fg);
	box-shadow: 0 0 0 1px var(--signal) inset;
}

/* ---------- cards ---------- */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 2.4vw, 32px);
}
.post-card,
.episode-card {
	display: grid;
	gap: 14px;
	align-content: start;
	min-width: 0;
}
.post-card[hidden],
.episode-card[hidden] {
	display: none;
}
.post-card-link,
.episode-card-link {
	display: grid;
	gap: 16px;
	color: inherit;
}
.post-card-media,
.episode-card-media {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: 20px;
	overflow: hidden;
	background: var(--ink-2);
	box-shadow: 0 0 0 1px var(--line) inset;
}
.episode-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 25%;
	transition: transform var(--t-med) var(--ease);
}
/* covers are a mix of photos and square graphics with text, so they're shown whole, never cropped */
.post-card-media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform var(--t-med) var(--ease);
}
.post-card-link:hover img,
.episode-card-link:hover img {
	transform: scale(1.035);
}
.post-card-blank {
	position: absolute;
	inset: 0;
	background: radial-gradient(
		60% 70% at 30% 30%,
		rgba(11, 52, 199, 0.5),
		transparent 70%
	);
}
.post-card-body,
.episode-card-body {
	display: grid;
	gap: 8px;
}
.post-card h3,
.episode-card h3 {
	font-size: clamp(1.15rem, 1.6vw, 1.35rem);
	line-height: 1.25;
	letter-spacing: -0.01em;
	font-weight: 500;
	transition: color var(--t-fast) var(--ease);
}
.post-card-link:hover h3,
.episode-card-link:hover h3 {
	color: var(--signal);
}
.post-card p,
.episode-card p {
	color: var(--fg-dim);
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.post-card .pill-list span,
.episode-card .pill-list span,
.article-hero .pill-list span {
	font-size: 0.78rem;
	padding: 6px 12px;
	box-shadow: 0 0 0 1px var(--line) inset;
	color: var(--fg-dim);
}
/* the newest item, full width */
.post-card--lead .post-card-link,
.episode-card--lead .episode-card-link {
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
}
.post-card--lead h3,
.episode-card--lead h3 {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	letter-spacing: -0.025em;
}
.post-card--lead .post-card-media {
	border-radius: 28px;
}
.episode-card--lead .episode-card-media {
	aspect-ratio: 4 / 3;
	border-radius: 28px;
}
.episode-no {
	position: absolute;
	left: 14px;
	bottom: 14px;
	font-family: var(--mono);
	font-size: max(0.72rem, var(--type-floor));
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 6px 10px;
	border-radius: 999px;
	color: #fff;
	background: rgba(4, 10, 24, 0.72);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.episode-guest {
	font-size: 0.92rem;
}
@media (max-width: 900px) {
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.post-card--lead .post-card-link,
	.episode-card--lead .episode-card-link {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 600px) {
	.post-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- filters ---------- */
.chip-filter {
	display: none;
	flex-wrap: wrap;
	gap: 8px;
}
.js .chip-filter {
	display: flex;
}
.chip-filter button {
	font: inherit;
	font-size: 0.86rem;
	color: var(--fg-dim);
	background: none;
	border: 0;
	cursor: pointer;
	padding: 8px 14px;
	border-radius: 999px;
	box-shadow: 0 0 0 1px var(--line) inset;
	transition:
		color var(--t-fast) var(--ease),
		background var(--t-fast) var(--ease);
}
.chip-filter button:hover {
	color: var(--fg);
}
.chip-filter button[aria-pressed='true'] {
	color: #fff;
	background: var(--blue);
	box-shadow: none;
}
.filter-empty {
	color: var(--fg-dim);
}

/* ---------- article ---------- */
.article-hero {
	padding-bottom: clamp(32px, 5vw, 56px);
}
.article-hero .wrap.narrow {
	gap: 18px;
}
.article-hero h1 {
	letter-spacing: -0.03em;
	line-height: 1.05;
}
.article-hero .lede {
	max-width: 60ch;
}
.crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 0.88rem;
	color: var(--fg-dim);
}
.crumbs a {
	color: var(--signal);
	/* a taller tap area without moving the line */
	padding-block: 8px;
	margin-block: -8px;
}
.crumbs span:last-child {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: min(60ch, 70vw);
}
.article-cover {
	position: relative;
	margin-top: clamp(32px, 5vw, 56px);
}
/* covers come in every shape, so the frame is fixed (no jump when the image arrives) and the
   cover sits whole inside it, as on the cards */
.article-cover img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	max-height: 620px;
	object-fit: contain;
	border-radius: 28px;
	background: var(--ink-2);
	box-shadow: 0 0 0 1px var(--line);
}

/* ---------- prose (posts, show notes, legal) ---------- */
.prose {
	font-size: 1.08rem;
	line-height: 1.7;
	color: var(--fg);
	overflow-wrap: anywhere;
}
.prose > * + * {
	margin-top: 1.1em;
}
.prose h2 {
	font-size: clamp(1.5rem, 2.4vw, 1.9rem);
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin-top: 2em;
}
.prose h3 {
	font-size: clamp(1.2rem, 1.8vw, 1.4rem);
	letter-spacing: -0.01em;
	line-height: 1.3;
	margin-top: 1.8em;
}
.prose h4 {
	font-size: 1.05rem;
	margin-top: 1.6em;
}
.prose > :first-child {
	margin-top: 0;
}
.prose p,
.prose li {
	color: color-mix(in srgb, var(--fg) 86%, var(--fg-dim));
}
/* "Go deeper": links to the explainers under an FAQ */
.explainer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px 22px;
	margin: 40px auto 0;
	color: var(--fg-dim);
	font-size: 0.95rem;
}
.prose .ask-ai {
	margin-top: 2.4em;
	font-size: 0.9rem;
}
.prose .ask-ai a:not(.btn) {
	color: var(--fg);
	text-decoration: none;
}
.prose a:not(.btn) {
	color: var(--signal);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.prose ul,
.prose ol {
	padding-left: 1.3em;
	display: grid;
	gap: 0.5em;
}
.prose ul {
	list-style: disc;
}
.prose ol {
	list-style: decimal;
}
.prose li::marker {
	color: var(--signal);
}
.prose blockquote {
	padding: 4px 0 4px 22px;
	border-left: 2px solid var(--signal);
	font-size: 1.2rem;
	line-height: 1.5;
	color: var(--fg);
}
.prose img {
	border-radius: 20px;
	width: 100%;
	height: auto;
}
@media (max-width: 600px) {
	.article-cover img {
		aspect-ratio: 4 / 3;
	}
}
.prose figure {
	margin-inline: 0;
}
.prose figure.embed,
.video-embed {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 20px;
	overflow: hidden;
	background: var(--ink-2);
}
.prose figure.embed iframe,
.video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.prose hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin-block: 2em;
}
.prose code {
	font-family: var(--mono);
	font-size: 0.92em;
}
.trust-note {
	margin-top: 2.6em !important;
	padding: 18px 22px;
	border-radius: 16px;
	font-size: 0.98rem;
	color: var(--fg-dim);
	background: var(--ink-2);
	box-shadow: 0 0 0 1px var(--line) inset;
}

/* ---------- podcast ---------- */
.podcast-title {
	line-height: 0;
}
.podcast-mark {
	width: min(440px, 80vw);
	height: auto;
	color: var(--fg);
}
.podcast-intro {
	display: grid;
	gap: 0.8em;
	max-width: 62ch;
}
.listen-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.listen-links .btn {
	padding: 10px 16px;
	font-size: 0.92rem;
}
.guest {
	display: flex;
	gap: 16px;
	align-items: center;
}
.guest-photo {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 1px var(--line);
}
.guest div {
	display: grid;
	gap: 2px;
}
.guest span {
	color: var(--fg-dim);
	font-size: 0.94rem;
}
.pod-player {
	margin-top: 8px;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 0 0 1px var(--line);
}
.pod-player iframe {
	display: block;
	width: 100%;
	height: 160px;
	border: 0;
}

/* ---------- forms ---------- */
.hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.hp input {
	font-size: 16px; /* iOS zooms into any field under 16px, even an off-screen one */
}
.form {
	position: relative;
}
.form .btn[type='submit'] {
	justify-self: start;
}
.form-fail {
	grid-column: 1 / -1;
	padding: 16px 18px;
	border-radius: 14px;
	background: rgba(255, 90, 78, 0.1);
	color: var(--threat);
	box-shadow: 0 0 0 1px rgba(255, 90, 78, 0.3) inset;
}
.form-done .link-arrow {
	margin-left: 4px;
}
.form :disabled {
	opacity: 0.6;
}

/* ---------- demo times (the demo form's [data-booking] fieldset, filled by site.js) ---------- */
.booking {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 18px;
	border: 0;
	border-radius: 16px;
	box-shadow: 0 0 0 1px var(--line) inset;
}
.booking[hidden] {
	display: none;
}
.booking legend {
	float: left; /* keeps the legend inside the padded box */
	width: 100%;
	padding: 0;
	font-size: 0.95rem;
	color: var(--fg);
}
.booking legend span,
.booking-zone {
	font-size: 0.82rem;
	color: var(--fg-dim);
}
.booking-zone {
	margin: 0;
}
.booking-times[hidden],
.booking-suggest[hidden] {
	display: none;
}
.booking-times button {
	min-width: 88px;
	min-height: 44px; /* a comfortable tap target on phones */
}
.booking-other {
	justify-self: start;
	font: inherit;
	font-size: 0.86rem;
	background: none;
	border: 0;
	padding: 8px 0;
	cursor: pointer;
}
.booking-suggest {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}
@media (max-width: 640px) {
	.booking-suggest {
		grid-template-columns: 1fr;
	}
}

/* ---------- admin preview ---------- */
.preview-banner {
	position: fixed;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	z-index: 200;
	padding: 10px 18px;
	border-radius: 999px;
	font-size: 0.9rem;
	color: #fff;
	background: #b54708;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ---------- persona pages: customer stories and figure rows ---------- */
.stories {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 32px;
}
.story {
	display: grid;
	gap: 18px;
	align-content: start;
	padding: 28px;
	border-radius: 24px;
	background: var(--ink-2);
	box-shadow: 0 0 0 1px var(--line) inset;
}
.story h3 {
	font-size: 1.3rem;
	letter-spacing: -0.01em;
}
.story dl {
	display: grid;
	gap: 14px;
	margin: 0;
}
.story dt {
	font-family: var(--mono);
	font-size: max(0.72rem, var(--type-floor));
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--signal);
}
.story dd {
	margin: 6px 0 0;
	color: var(--fg-dim);
	line-height: 1.5;
}
.story dd.result {
	color: var(--fg);
	font-size: 1.08rem;
}
.stat-quad {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}
.stat-quad .tile .big {
	font-size: clamp(2.6rem, 5vw, 4.4rem);
}
@media (max-width: 900px) {
	.stories {
		grid-template-columns: 1fr;
	}
	.stat-quad {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 420px) {
	.stat-quad {
		grid-template-columns: 1fr;
	}
}
.ticks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
}
.ticks li {
	position: relative;
	padding: 14px 0 14px 34px;
	border-top: 1px solid var(--line);
	line-height: 1.5;
}
.day .ticks li {
	border-color: var(--line-paper);
}
.ticks li::before {
	content: '';
	position: absolute;
	left: 2px;
	top: 18px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--blue)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
		center / 12px no-repeat;
}
/* a "you never" list: the items are things 6lock removes, so no strike-through */
.js .compare .before.no-strike li span {
	background: none;
}
