/* Gatehouse website. One stylesheet for every page. */

:root {
	--bg: #fbfbf9;
	--bg-2: #f4f3ef;
	--surface: #ffffff;
	--ink: #141413;
	--ink-2: #3d3d3a;
	--muted: #6b6963;
	--line: #e6e4dd;
	--line-2: #d6d3ca;
	--accent: #4a3aa7;
	--accent-hover: #3d2f8e;
	--accent-ink: #ffffff;
	--accent-soft: rgba(74, 58, 167, 0.08);
	--accent-line: rgba(74, 58, 167, 0.28);
	--good: #006300;
	--good-soft: rgba(12, 163, 12, 0.1);
	--bad: #b3261e;
	--bad-soft: rgba(208, 59, 59, 0.09);
	--code: #f3f2ee;
	--shadow: 0 1px 2px rgba(20, 20, 19, 0.05), 0 12px 32px -18px rgba(20, 20, 19, 0.28);
	--shadow-lg: 0 2px 4px rgba(20, 20, 19, 0.04), 0 40px 80px -30px rgba(42, 31, 110, 0.45);
	--radius: 16px;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--hero: radial-gradient(80% 120% at 0% 0%, #7a6cf0 0%, transparent 55%), linear-gradient(135deg, #4a3aa7 0%, #2a1f6e 100%);
	color-scheme: light;
}


@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0d0d0d;
		--bg-2: #141413;
		--surface: #1a1a19;
		--ink: #f5f4ee;
		--ink-2: #c3c2b7;
		--muted: #a3a19a;
		--line: #2c2c2a;
		--line-2: #3a3a37;
		--accent: #a59cf0;
		--accent-hover: #b3abf3;
		--accent-ink: #12101f;
		--accent-soft: rgba(165, 156, 240, 0.12);
		--accent-line: rgba(165, 156, 240, 0.35);
		--good: #3fc23f;
		--good-soft: rgba(12, 163, 12, 0.16);
		--bad: #ef8a8a;
		--bad-soft: rgba(208, 59, 59, 0.18);
		--code: #222221;
		--shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -18px rgba(0, 0, 0, 0.7);
		--shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--bg: #0d0d0d;
	--bg-2: #141413;
	--surface: #1a1a19;
	--ink: #f5f4ee;
	--ink-2: #c3c2b7;
	--muted: #a3a19a;
	--line: #2c2c2a;
	--line-2: #3a3a37;
	--accent: #a59cf0;
	--accent-hover: #b3abf3;
	--accent-ink: #12101f;
	--accent-soft: rgba(165, 156, 240, 0.12);
	--accent-line: rgba(165, 156, 240, 0.35);
	--good: #3fc23f;
	--good-soft: rgba(12, 163, 12, 0.16);
	--bad: #ef8a8a;
	--bad-soft: rgba(208, 59, 59, 0.18);
	--code: #222221;
	--shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -18px rgba(0, 0, 0, 0.7);
	--shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
	color-scheme: dark;
}

/* ------------------------------------------------------------------ Base */

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink-2);
	font: 17px/1.65 var(--font);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
	color: var(--ink);
	line-height: 1.18;
	letter-spacing: -0.02em;
	margin: 0 0 0.5em;
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
	text-wrap: pretty;
}

a {
	color: var(--accent);
	text-underline-offset: 3px;
}

a:hover {
	color: var(--accent-hover);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

code {
	font: 0.86em/1.5 var(--mono);
	background: var(--code);
	border-radius: 5px;
	padding: 1px 6px;
	overflow-wrap: anywhere;
}

pre {
	background: var(--code);
	border-radius: 12px;
	padding: 16px 18px;
	overflow-x: auto;
	font-size: 14px;
}

pre code {
	padding: 0;
	background: none;
	overflow-wrap: normal;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.skip {
	position: absolute;
	left: -999px;
	top: 8px;
	z-index: 100;
	background: var(--accent);
	color: var(--accent-ink);
	padding: 10px 14px;
	border-radius: 10px;
	font-weight: 600;
}

.skip:focus {
	left: 12px;
}

.sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.wrap {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ------------------------------------------------------------------ Header */

.site-head {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: saturate(1.6) blur(14px);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid var(--line);
}

.site-head .wrap {
	display: flex;
	align-items: center;
	gap: 28px;
	height: 68px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	font-weight: 700;
	font-size: 18px;
	letter-spacing: -0.01em;
	text-decoration: none;
	flex-shrink: 0;
}

.brand:hover {
	color: var(--ink);
}

.mark {
	width: 32px;
	height: 32px;
	border-radius: 9px;
	display: grid;
	place-items: center;
	color: #fff;
	background: var(--hero);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 6px 16px -6px rgba(74, 58, 167, 0.7);
}

.nav {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
}

.nav a {
	white-space: nowrap;
	color: var(--ink-2);
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	padding: 8px 12px;
	border-radius: 10px;
}

.nav a:hover,
.nav a[aria-current="page"] {
	color: var(--ink);
	background: var(--bg-2);
}

.head-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.icon-btn {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink-2);
	border-radius: 10px;
	cursor: pointer;
	padding: 0;
}

.icon-btn:hover {
	color: var(--ink);
	border-color: var(--line-2);
}

.menu-btn {
	display: none;
}

@media (max-width: 1100px) {
	.nav {
		display: none;
		position: absolute;
		top: 68px;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
		padding: 12px 16px 18px;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow);
	}

	.nav.is-open {
		display: flex;
	}

	.nav a {
		padding: 12px 14px;
		font-size: 16px;
	}

	.menu-btn {
		display: grid;
	}

	.head-actions {
		margin-left: auto;
	}

	.head-actions .btn {
		display: none;
	}
}

/* ------------------------------------------------------------------ Buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 20px;
	border-radius: 12px;
	border: 1px solid transparent;
	font: 600 15.5px/1.2 var(--font);
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
	background: var(--accent);
	color: var(--accent-ink);
	box-shadow: 0 8px 22px -10px rgba(74, 58, 167, 0.8);
}

.btn-primary:hover {
	background: var(--accent-hover);
	color: var(--accent-ink);
	transform: translateY(-1px);
}

.btn-ghost {
	background: var(--surface);
	color: var(--ink);
	border-color: var(--line-2);
}

.btn-ghost:hover {
	color: var(--ink);
	border-color: var(--ink-2);
}

.btn-light {
	background: #fff;
	color: #2a1f6e;
}

.btn-light:hover {
	color: #2a1f6e;
	transform: translateY(-1px);
}

.btn-outline-light {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.16);
}

.btn[aria-disabled="true"] {
	opacity: 0.6;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

.btn-sm {
	min-height: 38px;
	padding: 8px 14px;
	font-size: 14.5px;
	border-radius: 10px;
}

/* ------------------------------------------------------------------ Hero */

.hero {
	position: relative;
	overflow: hidden;
	padding: 88px 0 0;
	background:
		radial-gradient(60% 60% at 85% 10%, var(--accent-soft) 0%, transparent 70%),
		radial-gradient(50% 50% at 0% 30%, var(--accent-soft) 0%, transparent 70%);
}

.hero .wrap {
	text-align: center;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px 6px 8px;
	border-radius: 999px;
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--ink-2);
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 26px;
	box-shadow: var(--shadow);
}

.eyebrow b {
	background: var(--accent);
	color: var(--accent-ink);
	border-radius: 999px;
	padding: 2px 9px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.hero h1 {
	font-size: clamp(38px, 6.2vw, 68px);
	letter-spacing: -0.035em;
	max-width: 900px;
	margin: 0 auto 22px;
}

.hero h1 em {
	font-style: normal;
	background: linear-gradient(120deg, #7a6cf0, #4a3aa7 60%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

:root[data-theme="dark"] .hero h1 em {
	background: linear-gradient(120deg, #c9c2ff, #a59cf0 60%);
	-webkit-background-clip: text;
	background-clip: text;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .hero h1 em {
		background: linear-gradient(120deg, #c9c2ff, #a59cf0 60%);
		-webkit-background-clip: text;
		background-clip: text;
	}
}

.lede {
	font-size: clamp(18px, 2vw, 21px);
	color: var(--ink-2);
	max-width: 720px;
	margin: 0 auto 32px;
}

.cta-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.hero-note {
	margin: 18px 0 0;
	color: var(--muted);
	font-size: 14px;
}

.hero-shot {
	position: relative;
	margin: 64px auto 0;
	max-width: 1120px;
}

.browser {
	border-radius: 14px;
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-lg);
}

.browser-bar {
	display: flex;
	align-items: center;
	gap: 7px;
	height: 38px;
	padding: 0 14px;
	background: var(--bg-2);
	border-bottom: 1px solid var(--line);
}

.browser-bar i {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--line-2);
}

.browser-bar span {
	margin-left: 12px;
	flex: 1;
	max-width: 420px;
	height: 22px;
	border-radius: 7px;
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--muted);
	font-size: 12px;
	line-height: 20px;
	padding: 0 10px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.hero-shot .browser {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	border-bottom: 0;
}

/* ------------------------------------------------------------------ Sections */

.section {
	padding: 104px 0;
}

.section-alt {
	background: var(--bg-2);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.section-head {
	max-width: 760px;
	margin: 0 auto 56px;
	text-align: center;
}

.section-head h2 {
	font-size: clamp(30px, 4.2vw, 46px);
}

.section-head p {
	font-size: 19px;
	color: var(--ink-2);
}

.kicker {
	display: block;
	color: var(--accent);
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

/* Problem stats */

.stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.stat {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px;
	box-shadow: var(--shadow);
}

.stat strong {
	display: block;
	color: var(--ink);
	font-size: 22px;
	line-height: 1.25;
	margin-bottom: 8px;
	letter-spacing: -0.01em;
}

.stat p {
	margin: 0;
	font-size: 16px;
}

.stat .ic {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: var(--bad-soft);
	color: var(--bad);
	margin-bottom: 18px;
}

/* Flow */

.flow {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
	counter-reset: step;
	list-style: none;
	padding: 0;
	margin: 0;
}

.flow li {
	position: relative;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px 20px 22px;
	box-shadow: var(--shadow);
}

.flow li::before {
	counter-increment: step;
	content: counter(step);
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent);
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 14px;
}

.flow li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 38px;
	right: -11px;
	width: 8px;
	height: 8px;
	border-top: 2px solid var(--line-2);
	border-right: 2px solid var(--line-2);
	transform: rotate(45deg);
}

.flow li.is-gate {
	border-color: var(--accent-line);
	background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%);
}

.flow h3 {
	font-size: 17px;
	margin-bottom: 6px;
	letter-spacing: -0.01em;
}

.flow p {
	font-size: 14.5px;
	margin: 0;
	line-height: 1.55;
}

.flow small {
	display: inline-block;
	margin-top: 10px;
	font-size: 12px;
	font-weight: 600;
	color: var(--accent);
	letter-spacing: 0.02em;
}

/* Feature rows */

.feature {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 64px;
	align-items: center;
	margin-bottom: 112px;
}

.feature:last-child {
	margin-bottom: 0;
}

.feature.flip {
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.feature.flip .feature-text {
	order: 2;
}

.feature h3 {
	font-size: clamp(26px, 3vw, 34px);
}

.feature-text > p {
	font-size: 18px;
}

.ticks {
	list-style: none;
	padding: 0;
	margin: 22px 0 0;
}

.ticks li {
	position: relative;
	padding-left: 32px;
	margin-bottom: 12px;
	font-size: 16.5px;
}

.ticks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--good-soft)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%230ca30c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
		center/16px no-repeat;
}

.shot {
	margin: 0;
}

.shot img {
	border-radius: 14px;
	border: 1px solid var(--line);
	box-shadow: var(--shadow-lg);
	background: var(--surface);
}

.shot figcaption {
	margin-top: 12px;
	color: var(--muted);
	font-size: 14px;
	text-align: center;
}

.pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 14px;
}

/* Feature grid */

.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px;
	box-shadow: var(--shadow);
}

.card h3 {
	font-size: 18.5px;
	margin-bottom: 8px;
	letter-spacing: -0.01em;
}

.card p {
	margin: 0;
	font-size: 15.5px;
}

.card .ic {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: var(--accent-soft);
	color: var(--accent);
	margin-bottom: 16px;
}

a.card {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

a.card:hover {
	border-color: var(--accent-line);
	transform: translateY(-2px);
	color: inherit;
}

a.card .more {
	display: inline-block;
	margin-top: 14px;
	color: var(--accent);
	font-weight: 600;
	font-size: 14.5px;
}

/* Redaction demo */

.redact {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	gap: 18px;
	align-items: stretch;
	max-width: 980px;
	margin: 0 auto;
}

.redact-box {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px 24px;
	box-shadow: var(--shadow);
}

.redact-box h3 {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted);
	margin-bottom: 12px;
}

.redact-box p {
	font: 15.5px/1.75 var(--mono);
	margin: 0;
	color: var(--ink);
}

.redact-box mark {
	background: var(--bad-soft);
	color: var(--bad);
	border-radius: 4px;
	padding: 1px 4px;
}

.redact-box .tok {
	background: var(--accent-soft);
	color: var(--accent);
	border-radius: 4px;
	padding: 1px 4px;
	font-weight: 600;
}

.redact-arrow {
	display: grid;
	place-items: center;
	color: var(--accent);
}

/* Calculator */

.calc {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0;
	max-width: 980px;
	margin: 0 auto;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

.calc-in {
	padding: 34px;
}

.calc-out {
	padding: 34px;
	background: var(--hero);
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.calc label {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	font-weight: 600;
	color: var(--ink);
	font-size: 15.5px;
	margin-bottom: 6px;
}

.calc label output {
	font: 700 17px var(--font);
	color: var(--accent);
	font-variant-numeric: tabular-nums;
}

.calc .help {
	display: block;
	color: var(--muted);
	font-size: 13.5px;
	margin: 6px 0 26px;
	line-height: 1.5;
}

.calc input[type="range"] {
	width: 100%;
	accent-color: var(--accent);
	height: 28px;
	margin: 0;
}

.calc-out .big {
	font-size: clamp(42px, 5vw, 58px);
	font-weight: 750;
	letter-spacing: -0.03em;
	line-height: 1;
	margin: 6px 0 4px;
	font-variant-numeric: tabular-nums;
}

.calc-out .lbl {
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	opacity: 0.85;
}

.calc-out .row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	padding: 12px 0;
	font-size: 15px;
}

.calc-out .row b {
	font-variant-numeric: tabular-nums;
}

.calc-out .fine {
	font-size: 12.5px;
	opacity: 0.85;
	margin: 14px 0 0;
	line-height: 1.5;
}

/* Comparison table */

.compare {
	max-width: 900px;
	margin: 0 auto;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.compare table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15.5px;
}

.compare th,
.compare td {
	padding: 14px 20px;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.compare thead th {
	background: var(--bg-2);
	color: var(--ink);
	font-size: 14px;
}

.compare td:not(:first-child),
.compare th:not(:first-child) {
	text-align: center;
	width: 22%;
}

.compare tr:last-child td {
	border-bottom: 0;
}

.yes {
	color: var(--good);
	font-weight: 700;
}

.no {
	color: var(--muted);
}

/* Pricing */

.plans {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	align-items: stretch;
}

.plan {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 28px 24px;
	box-shadow: var(--shadow);
}

.plan.is-featured {
	border: 2px solid var(--accent);
	box-shadow: var(--shadow-lg);
	position: relative;
}

.plan .badge {
	position: absolute;
	top: -13px;
	left: 24px;
	background: var(--accent);
	color: var(--accent-ink);
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
}

.plan h3 {
	font-size: 19px;
	margin-bottom: 4px;
}

.plan .for {
	color: var(--muted);
	font-size: 14.5px;
	margin-bottom: 18px;
}

.price {
	display: flex;
	align-items: baseline;
	gap: 6px;
	color: var(--ink);
	margin-bottom: 20px;
}

.price b {
	font-size: 42px;
	letter-spacing: -0.03em;
	line-height: 1;
}

.price span {
	color: var(--muted);
	font-size: 15px;
}

.plan .ticks {
	margin: 0 0 24px;
	flex: 1;
}

.plan .ticks li {
	font-size: 15px;
	margin-bottom: 10px;
}

.plan .btn {
	width: 100%;
}

.plan-note {
	text-align: center;
	color: var(--muted);
	font-size: 14.5px;
	margin: 28px auto 0;
	max-width: 720px;
}

/* FAQ */

.faq {
	max-width: 820px;
	margin: 0 auto;
}

.faq details {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 14px;
	margin-bottom: 12px;
	box-shadow: var(--shadow);
}

.faq summary {
	cursor: pointer;
	list-style: none;
	padding: 18px 54px 18px 22px;
	position: relative;
	font-weight: 600;
	color: var(--ink);
	font-size: 17px;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	content: "";
	position: absolute;
	right: 22px;
	top: 50%;
	width: 9px;
	height: 9px;
	margin-top: -7px;
	border-right: 2px solid var(--muted);
	border-bottom: 2px solid var(--muted);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.faq details[open] summary::after {
	transform: rotate(225deg);
	margin-top: -2px;
}

.faq details > div {
	padding: 0 22px 18px;
	font-size: 16px;
}

.faq details > div p:last-child {
	margin: 0;
}

/* CTA band */

.cta-band {
	background: var(--hero);
	color: #fff;
	border-radius: 28px;
	padding: 64px 48px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.cta-band h2 {
	color: #fff;
	font-size: clamp(30px, 4vw, 44px);
}

.cta-band p {
	font-size: 19px;
	opacity: 0.92;
	max-width: 640px;
	margin: 0 auto 30px;
}

/* ------------------------------------------------------------------ Page head (inner pages) */

.page-head {
	padding: 72px 0 48px;
	background: radial-gradient(60% 80% at 80% 0%, var(--accent-soft) 0%, transparent 70%);
	border-bottom: 1px solid var(--line);
}

.page-head h1 {
	font-size: clamp(34px, 5vw, 54px);
	letter-spacing: -0.03em;
}

.page-head p {
	font-size: 19px;
	max-width: 720px;
	margin: 0;
}

/* Prose (trust, changelog) */

.prose {
	max-width: 780px;
}

.prose h2 {
	font-size: 30px;
	margin-top: 64px;
	padding-top: 8px;
}

.prose h2:first-child {
	margin-top: 0;
}

.prose h3 {
	font-size: 20px;
	margin-top: 32px;
}

.prose ul {
	padding-left: 22px;
}

.prose li {
	margin-bottom: 8px;
}

.trust-layout {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 64px;
	padding: 64px 0 120px;
}

.toc {
	position: sticky;
	top: 100px;
	align-self: start;
}

.toc h2 {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--muted);
	margin-bottom: 10px;
}

.toc ol {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 2px solid var(--line);
}

.toc a {
	display: block;
	padding: 6px 0 6px 14px;
	margin-left: -2px;
	border-left: 2px solid transparent;
	color: var(--ink-2);
	text-decoration: none;
	font-size: 15px;
}

.toc a:hover,
.toc a[aria-current="true"] {
	color: var(--accent);
	border-left-color: var(--accent);
}

.facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 22px 0;
}

.fact {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 18px 20px;
}

.fact b {
	display: block;
	color: var(--ink);
	margin-bottom: 4px;
	font-size: 16px;
}

.fact span {
	font-size: 15px;
	color: var(--ink-2);
}

.release {
	border-bottom: 1px solid var(--line);
	padding: 0 0 28px;
	margin: 0 0 32px;
}

.release h2 {
	font-size: 24px;
	margin: 0 0 12px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.release:first-child h2::after {
	content: "Latest";
	font-size: 12px;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--good-soft);
	color: var(--good);
	letter-spacing: 0;
}

/* ------------------------------------------------------------------ Help center */

.docs-hero {
	padding: 64px 0 40px;
	text-align: center;
	background: radial-gradient(60% 80% at 50% 0%, var(--accent-soft) 0%, transparent 70%);
}

.docs-hero h1 {
	font-size: clamp(34px, 5vw, 50px);
	letter-spacing: -0.03em;
}

.docs-hero p {
	font-size: 19px;
	margin: 0 auto 28px;
	max-width: 640px;
}

.search {
	position: relative;
	max-width: 620px;
	margin: 0 auto;
	text-align: left;
}

.search input {
	width: 100%;
	height: 56px;
	padding: 0 20px 0 52px;
	border-radius: 16px;
	border: 1px solid var(--line-2);
	background: var(--surface)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6963' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E")
		18px center/20px no-repeat;
	color: var(--ink);
	font: 17px var(--font);
	box-shadow: var(--shadow);
}

.search input:focus {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.search-results {
	position: absolute;
	z-index: 20;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	max-height: 60vh;
	overflow: auto;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: var(--shadow-lg);
	padding: 8px;
	margin: 0;
	list-style: none;
}

.search-results[hidden] {
	display: none;
}

.search-results a {
	display: block;
	padding: 12px 14px;
	border-radius: 10px;
	color: var(--ink-2);
	text-decoration: none;
	font-size: 14.5px;
	line-height: 1.45;
}

.search-results a:hover,
.search-results a.is-active {
	background: var(--accent-soft);
}

.search-results b {
	display: block;
	color: var(--ink);
	font-size: 15.5px;
	margin-bottom: 2px;
}

.search-results small {
	color: var(--accent);
	font-weight: 600;
	font-size: 12.5px;
}

.search-results .empty {
	padding: 14px;
	color: var(--muted);
}

.docs-groups {
	padding: 24px 0 112px;
}

.docs-groups h2 {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--muted);
	margin: 48px 0 16px;
}

.docs-layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr) 200px;
	gap: 48px;
	padding: 40px 0 120px;
}

.docs-nav {
	position: sticky;
	top: 92px;
	align-self: start;
	max-height: calc(100vh - 110px);
	overflow: auto;
	padding-right: 8px;
}

.docs-nav .search {
	margin-bottom: 20px;
}

.docs-nav .search input {
	height: 42px;
	font-size: 15px;
	border-radius: 12px;
	padding-left: 40px;
	background-position: 13px center;
	background-size: 17px;
	box-shadow: none;
}

.docs-nav h2 {
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--muted);
	margin: 22px 0 6px 10px;
}

.docs-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.docs-nav a {
	display: block;
	padding: 7px 10px;
	border-radius: 9px;
	color: var(--ink-2);
	text-decoration: none;
	font-size: 15px;
}

.docs-nav a:hover {
	background: var(--bg-2);
	color: var(--ink);
}

.docs-nav a[aria-current="page"] {
	background: var(--accent-soft);
	color: var(--accent);
	font-weight: 600;
}

.doc {
	min-width: 0;
	max-width: 780px;
}

.crumbs {
	font-size: 14px;
	color: var(--muted);
	margin-bottom: 18px;
}

.crumbs a {
	color: var(--muted);
}

.doc h1 {
	font-size: clamp(32px, 4vw, 42px);
	letter-spacing: -0.03em;
}

.doc h2 {
	font-size: 26px;
	margin-top: 52px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.doc h3 {
	font-size: 19.5px;
	margin-top: 32px;
}

.doc h4 {
	font-size: 17px;
	margin-top: 24px;
}

.doc h2 .anchor,
.doc h3 .anchor {
	opacity: 0;
	margin-left: 8px;
	color: var(--muted);
	text-decoration: none;
	font-weight: 400;
}

.doc h2:hover .anchor,
.doc h3:hover .anchor,
.doc .anchor:focus {
	opacity: 1;
}

.doc ul,
.doc ol {
	padding-left: 24px;
}

.doc li {
	margin-bottom: 6px;
}

.doc li > ul,
.doc li > ol {
	margin-top: 6px;
}

.doc table {
	display: block;
	overflow-x: auto;
	border-collapse: collapse;
	margin: 18px 0 24px;
	font-size: 15.5px;
}

.doc th,
.doc td {
	border-bottom: 1px solid var(--line);
	padding: 10px 14px;
	text-align: left;
	vertical-align: top;
}

.doc th {
	color: var(--ink);
	background: var(--bg-2);
}

.doc blockquote {
	margin: 20px 0;
	padding: 14px 18px;
	border-left: 3px solid var(--accent);
	background: var(--accent-soft);
	border-radius: 0 12px 12px 0;
}

.doc blockquote p {
	margin: 0;
}

.doc figure {
	margin: 24px 0 32px;
}

.doc figure img {
	border-radius: 12px;
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
	cursor: zoom-in;
}

.doc figcaption {
	color: var(--muted);
	font-size: 14px;
	text-align: center;
	margin-top: 10px;
}

.pager {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 64px;
}

.pager a {
	display: block;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 16px 18px;
	text-decoration: none;
	color: var(--ink);
	font-weight: 600;
	background: var(--surface);
}

.pager a:hover {
	border-color: var(--accent-line);
}

.pager small {
	display: block;
	color: var(--muted);
	font-weight: 500;
	font-size: 13px;
	margin-bottom: 2px;
}

.pager .next {
	text-align: right;
	grid-column: 2;
}

.on-page {
	position: sticky;
	top: 92px;
	align-self: start;
	font-size: 14px;
	max-height: calc(100vh - 110px);
	overflow: auto;
}

.on-page h2 {
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--muted);
	margin-bottom: 8px;
}

.on-page ul {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 2px solid var(--line);
}

.on-page a {
	display: block;
	padding: 5px 0 5px 12px;
	margin-left: -2px;
	border-left: 2px solid transparent;
	color: var(--ink-2);
	text-decoration: none;
	line-height: 1.4;
}

.on-page a:hover,
.on-page a[aria-current="true"] {
	color: var(--accent);
	border-left-color: var(--accent);
}

.help-strip {
	margin-top: 48px;
	padding: 20px 22px;
	border-radius: 14px;
	background: var(--bg-2);
	border: 1px solid var(--line);
	font-size: 15.5px;
}

.help-strip p {
	margin: 0;
}

/* Lightbox */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(10, 10, 10, 0.82);
	cursor: zoom-out;
}

.lightbox img {
	max-height: 92vh;
	width: auto;
	border-radius: 10px;
}

.lightbox[hidden] {
	display: none;
}

/* ------------------------------------------------------------------ Footer */

.site-foot {
	border-top: 1px solid var(--line);
	padding: 56px 0 40px;
	background: var(--bg-2);
	font-size: 15px;
}

.foot-grid {
	display: grid;
	grid-template-columns: 2fr repeat(4, 1fr);
	gap: 40px;
}

.foot-grid h2 {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--muted);
	margin-bottom: 12px;
}

.foot-grid ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.foot-grid li {
	margin-bottom: 8px;
}

.foot-grid a {
	color: var(--ink-2);
	text-decoration: none;
}

.foot-grid a:hover {
	color: var(--accent);
	text-decoration: underline;
}

.foot-about p {
	max-width: 340px;
	margin-top: 14px;
}

.foot-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-top: 44px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 14px;
}

.foot-bottom a {
	color: var(--ink-2);
}

.heart {
	color: #d03b3b;
}

/* ------------------------------------------------------------------ Responsive */

@media (max-width: 1100px) {
	.docs-layout {
		grid-template-columns: 220px minmax(0, 1fr);
	}

	.on-page {
		display: none;
	}

	.plans {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.flow {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.flow li:not(:last-child)::after {
		display: none;
	}
}

@media (max-width: 860px) {
	body {
		font-size: 16.5px;
	}

	.section {
		padding: 72px 0;
	}

	.stats,
	.grid-3 {
		grid-template-columns: 1fr;
	}

	.feature,
	.feature.flip {
		grid-template-columns: 1fr;
		gap: 28px;
		margin-bottom: 80px;
	}

	.feature.flip .feature-text {
		order: 0;
	}

	.redact {
		grid-template-columns: 1fr;
	}

	.redact-arrow {
		transform: rotate(90deg);
	}

	.calc {
		grid-template-columns: 1fr;
	}

	.docs-layout,
	.trust-layout {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.docs-nav,
	.toc {
		position: static;
		max-height: none;
	}

	.docs-nav details:not([open]) ul,
	.docs-nav details:not([open]) h2 {
		display: none;
	}

	.foot-grid {
		grid-template-columns: 1fr 1fr;
	}

	.foot-about {
		grid-column: 1 / -1;
	}

	.facts {
		grid-template-columns: 1fr;
	}

	.cta-band {
		padding: 48px 24px;
		border-radius: 20px;
	}

	.compare th,
	.compare td {
		padding: 12px;
	}
}

@media (max-width: 600px) {
	.wrap {
		padding: 0 16px;
	}

	.hero {
		padding-top: 56px;
	}

	.plans,
	.flow {
		grid-template-columns: 1fr;
	}

	.pager {
		grid-template-columns: 1fr;
	}

	.pager .next {
		grid-column: 1;
	}

	.browser-bar span {
		display: none;
	}

	.calc-in,
	.calc-out {
		padding: 24px;
	}
}

.docs-nav-toggle {
	display: none;
}

@media (max-width: 860px) {
	.docs-nav-toggle {
		display: block;
		cursor: pointer;
		font-weight: 600;
		color: var(--ink);
		padding: 12px 14px;
		border: 1px solid var(--line);
		border-radius: 12px;
		background: var(--surface);
		list-style: none;
	}

	.docs-nav-toggle::-webkit-details-marker {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

@media print {
	.site-head,
	.site-foot,
	.docs-nav,
	.on-page,
	.pager {
		display: none;
	}

	.docs-layout {
		display: block;
	}
}

/* Gallery: same shape for every screenshot, showing the top of the screen. */
.gallery .shot img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: top left;
}

/* A limitation stated on the feature itself, not only in the docs. */
.feature-text .note {
	font-size: 14px;
	color: var(--muted);
	border-left: 3px solid var(--line, rgba(0, 0, 0, 0.12));
	padding-left: 12px;
	margin-top: 12px;
}
