/* Public website. Brand colour comes from Settings via --brand. */

:root {
	--brand: #15803d;
	--brand-soft: color-mix(in srgb, var(--brand) 12%, transparent);
	--brand-strong: color-mix(in srgb, var(--brand) 82%, #000);
	--bg: #ffffff;
	--bg-alt: #f6f8f7;
	--surface: #ffffff;
	--border: #e3e8e5;
	--text: #101814;
	--muted: #56635c;
	--faint: #8b968f;
	--code-bg: #0d1512;
	--code-text: #d7e3dc;
	--radius: 14px;
	--shadow: 0 1px 2px rgb(16 24 20 / 6%), 0 8px 24px rgb(16 24 20 / 6%);
	--shadow-lg: 0 24px 60px rgb(16 24 20 / 18%);
	--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, "Cascadia Code", Menlo, Consolas, monospace;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0b100e;
		--bg-alt: #111815;
		--surface: #141c18;
		--border: #233029;
		--text: #e8efeb;
		--muted: #9aaba2;
		--faint: #6d7c74;
		--shadow: 0 1px 2px rgb(0 0 0 / 40%);
		--shadow-lg: 0 24px 60px rgb(0 0 0 / 55%);
		color-scheme: dark;
	}
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--brand);
}

h1,
h2,
h3,
h4 {
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 12px;
}
h1 {
	font-size: clamp(34px, 5.2vw, 58px);
	font-weight: 800;
}
h2 {
	font-size: clamp(26px, 3.4vw, 38px);
	font-weight: 750;
}
h3 {
	font-size: 18px;
	font-weight: 700;
}
p {
	margin: 0 0 14px;
}
code {
	font-family: var(--mono);
	font-size: 0.9em;
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 1px 6px;
}

.wrap {
	width: 100%;
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 20px;
}
.narrow {
	max-width: 760px;
}
.center {
	text-align: center;
}
.muted {
	color: var(--muted);
}
.small {
	font-size: 14px;
}
.sub {
	max-width: 620px;
	margin: 0 auto 36px;
	font-size: 18px;
}
.i {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
}
.i.sm {
	width: 16px;
	height: 16px;
}
.skip {
	position: absolute;
	left: -999px;
}
.skip:focus {
	left: 12px;
	top: 12px;
	z-index: 99;
	background: var(--surface);
	padding: 8px 12px;
	border-radius: 8px;
}

/* --------------------------------------------------------------- buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 42px;
	padding: 0 18px;
	border-radius: 10px;
	border: 1px solid transparent;
	font: 650 15px/1 var(--font);
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
	white-space: nowrap;
}
.btn:hover {
	transform: translateY(-1px);
}
.btn.primary {
	background: var(--brand);
	color: #fff;
	box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent);
}
.btn.primary:hover {
	background: var(--brand-strong);
}
.btn.outline {
	border-color: var(--border);
	color: var(--text);
	background: var(--surface);
}
.btn.ghost {
	color: var(--text);
}
.btn.lg {
	height: 52px;
	padding: 0 24px;
	font-size: 16px;
}
.btn.block {
	width: 100%;
}
.link {
	font-weight: 650;
	text-decoration: none;
}

/* ---------------------------------------------------------------- header */

.top {
	position: sticky;
	top: 0;
	z-index: 20;
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid var(--border);
}
.top-in {
	display: flex;
	align-items: center;
	gap: 20px;
	height: 68px;
}
.logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 18px;
	color: var(--text);
	text-decoration: none;
}
.mark {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	background: var(--brand);
	color: #fff;
}
.nav {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
}
.nav > a {
	padding: 8px 12px;
	border-radius: 8px;
	color: var(--muted);
	text-decoration: none;
	font-weight: 550;
	font-size: 15px;
}
.nav > a:hover,
.nav > a[aria-current="page"] {
	color: var(--text);
	background: var(--bg-alt);
}
.nav-cta {
	display: flex;
	gap: 6px;
	margin-left: 10px;
}
.menu-btn {
	display: none;
	margin-left: auto;
	background: none;
	border: 0;
	color: var(--text);
	padding: 8px;
	cursor: pointer;
}

/* ------------------------------------------------------------------ hero */

.hero {
	position: relative;
	overflow: hidden;
	padding: 72px 0 64px;
	background:
		radial-gradient(900px 480px at 85% -10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
		radial-gradient(700px 400px at -10% 110%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%);
}
.hero-in {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 56px;
	align-items: center;
}
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--brand-soft);
	color: var(--brand);
	font-weight: 650;
	font-size: 13.5px;
	margin-bottom: 18px;
}
.lead {
	font-size: clamp(17px, 1.6vw, 20px);
	color: var(--muted);
	max-width: 640px;
}
.cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 28px 0 22px;
}
.proof {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	padding: 0;
	margin: 0;
	list-style: none;
	color: var(--muted);
	font-size: 14.5px;
}
.proof li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.proof .i {
	color: var(--brand);
}

.phone {
	justify-self: center;
	width: min(360px, 100%);
	border-radius: 34px;
	padding: 14px;
	background: linear-gradient(160deg, #1d2a24, #0b100e);
	box-shadow: var(--shadow-lg);
	transform: rotate(2deg);
	animation: float 6s ease-in-out infinite;
}
@keyframes float {
	50% {
		transform: rotate(2deg) translateY(-10px);
	}
}
.phone-top {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 22px 22px 0 0;
	background: var(--brand-strong);
	color: #fff;
}
.phone-top small {
	display: block;
	opacity: 0.8;
	font-size: 12px;
}
.avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: rgb(255 255 255 / 20%);
	font-weight: 800;
}
.bubbles {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 12px 22px;
	min-height: 330px;
	border-radius: 0 0 22px 22px;
	background: #e9e2d8 radial-gradient(circle at 1px 1px, rgb(0 0 0 / 6%) 1px, transparent 0) 0 0 / 16px 16px;
}
.bubble {
	max-width: 82%;
	padding: 8px 12px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.4;
	color: #111;
	box-shadow: 0 1px 1px rgb(0 0 0 / 10%);
	opacity: 0;
	animation: pop 0.5s forwards;
}
.bubble.in {
	align-self: flex-start;
	background: #fff;
	border-top-left-radius: 4px;
}
.bubble.out {
	align-self: flex-end;
	background: #d9fdd3;
	border-top-right-radius: 4px;
}
.bubble:nth-child(1) {
	animation-delay: 0.2s;
}
.bubble:nth-child(2) {
	animation-delay: 0.8s;
}
.bubble:nth-child(3) {
	animation-delay: 1.5s;
}
.bubble:nth-child(4) {
	animation-delay: 2.2s;
}
.bubble:nth-child(5) {
	animation-delay: 2.9s;
}
@keyframes pop {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.strip {
	border-block: 1px solid var(--border);
	background: var(--bg-alt);
}
.strip-in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 14px;
	padding: 18px 20px;
}
.chip {
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--surface);
	border: 1px solid var(--border);
	font-weight: 600;
	font-size: 14px;
}

/* -------------------------------------------------------------- sections */

.section {
	padding: 88px 0;
}
.section.tight {
	padding-top: 24px;
}
.section.alt {
	background: var(--bg-alt);
}
.page-head {
	padding: 72px 0 32px;
	background: radial-gradient(800px 360px at 50% -20%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%);
}

.features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.feature {
	padding: 26px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
	transition: transform 0.2s, border-color 0.2s;
}
.feature:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
}
.feature p {
	color: var(--muted);
	margin: 0;
}
.feature-icon {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	margin-bottom: 16px;
	background: var(--brand-soft);
	color: var(--brand);
}

.steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	padding: 0;
	margin: 36px 0 0;
	list-style: none;
}
.steps li {
	padding: 28px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
}
.steps li > span {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	margin-bottom: 14px;
	background: var(--brand);
	color: #fff;
	font-weight: 800;
}
.steps p {
	color: var(--muted);
	margin: 0;
}

.split {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 56px;
	align-items: center;
}
.split.reverse > :first-child {
	order: 2;
}

pre {
	margin: 0;
	padding: 20px;
	border-radius: var(--radius);
	background: var(--code-bg);
	color: var(--code-text);
	font: 13.5px/1.65 var(--mono);
	overflow-x: auto;
}
pre code {
	background: none;
	border: 0;
	padding: 0;
	color: inherit;
	font-size: inherit;
}
.code-card {
	box-shadow: var(--shadow-lg);
}
.code-tabs {
	border-radius: var(--radius);
	background: var(--code-bg);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}
.code-tabs pre {
	border-radius: 0;
	box-shadow: none;
}
.tab-row {
	display: flex;
	gap: 4px;
	padding: 10px 10px 0;
	border-bottom: 1px solid rgb(255 255 255 / 8%);
}
.tab-row button {
	border: 0;
	background: none;
	color: #8ea398;
	padding: 8px 12px;
	border-radius: 8px 8px 0 0;
	font: 600 13px var(--font);
	cursor: pointer;
}
.tab-row button[aria-selected="true"] {
	color: #fff;
	background: rgb(255 255 255 / 8%);
}

/* --------------------------------------------------------------- pricing */

.plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 22px;
	align-items: stretch;
}
.plan {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 30px;
	border-radius: 18px;
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
}
.plan.featured {
	border: 2px solid var(--brand);
	transform: translateY(-6px);
	box-shadow: var(--shadow-lg);
}
.plan .badge {
	position: absolute;
	top: -12px;
	left: 30px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}
.price {
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 6px 0 10px;
}
.price small {
	font-size: 15px;
	font-weight: 500;
	color: var(--muted);
}
.ticks {
	list-style: none;
	padding: 0;
	margin: 6px 0 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}
.ticks li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}
.ticks .i {
	color: var(--brand);
	margin-top: 3px;
}

/* ------------------------------------------------------------------- faq */

.faq {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 28px;
}
.faq details {
	padding: 18px 22px;
	border-radius: 12px;
	background: var(--surface);
	border: 1px solid var(--border);
}
.faq summary {
	cursor: pointer;
	font-weight: 650;
	list-style: none;
}
.faq summary::after {
	content: "+";
	float: right;
	color: var(--brand);
	font-weight: 800;
}
.faq details[open] summary::after {
	content: "–";
}
.faq p {
	margin: 12px 0 0;
	color: var(--muted);
}
.final {
	background:
		radial-gradient(700px 300px at 50% 120%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
		var(--bg);
}

/* ----------------------------------------------------------- integrations */

.integrations {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 18px;
	margin-bottom: 36px;
}
.integration {
	padding: 24px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
}

/* ------------------------------------------------------------------ docs */

main.wide .wrap.docs {
	max-width: 1280px;
}
.docs {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 40px;
	padding-bottom: 80px;
}
.toc {
	position: sticky;
	top: 88px;
	align-self: start;
	max-height: calc(100vh - 110px);
	overflow-y: auto;
	font-size: 14px;
}
.toc ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.toc > ul > li {
	margin-bottom: 14px;
}
.toc li li a {
	display: block;
	padding: 3px 0 3px 10px;
	color: var(--muted);
	text-decoration: none;
	border-left: 2px solid var(--border);
}
.toc li li a:hover {
	color: var(--brand);
	border-color: var(--brand);
}
.doc-group {
	margin-bottom: 48px;
}
.endpoint {
	padding: 22px 0;
	border-top: 1px solid var(--border);
	scroll-margin-top: 90px;
}
.endpoint h3 {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 16px;
}
.method {
	padding: 3px 9px;
	border-radius: 6px;
	font: 800 12px var(--mono);
	color: #fff;
	background: #2563eb;
}
.method.post {
	background: var(--brand);
}
.method.delete {
	background: #dc2626;
}
.method.patch,
.method.put {
	background: #d97706;
}
.params {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0;
	font-size: 14px;
}
.params th,
.params td {
	text-align: left;
	padding: 7px 10px;
	border-bottom: 1px solid var(--border);
	vertical-align: top;
}
.params th {
	color: var(--muted);
	font-weight: 600;
	background: var(--bg-alt);
}
.req {
	color: #d97706;
	font-size: 12px;
	font-weight: 700;
}
.pill {
	display: inline-block;
	padding: 1px 9px;
	border-radius: 999px;
	background: var(--brand-soft);
	color: var(--brand);
	font-size: 12.5px;
	font-weight: 650;
}
.quick li {
	margin-bottom: 6px;
}
.prose h2 {
	margin-top: 36px;
	font-size: 26px;
}
.prose li {
	margin-bottom: 10px;
}

/* ---------------------------------------------------------------- footer */

.foot {
	border-top: 1px solid var(--border);
	background: var(--bg-alt);
	padding: 56px 0 28px;
}
.foot-in {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 32px;
}
.foot-links {
	display: flex;
	gap: 56px;
	flex-wrap: wrap;
}
.foot-links h4 {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--faint);
}
.foot-links a {
	display: block;
	color: var(--muted);
	text-decoration: none;
	margin: 6px 0;
	font-size: 15px;
}
.foot-links a:hover {
	color: var(--brand);
}
.foot-note {
	margin-top: 36px;
	font-size: 13px;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 960px) {
	.hero-in,
	.split {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.split.reverse > :first-child {
		order: 0;
	}
	.features,
	.steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.docs {
		grid-template-columns: 1fr;
	}
	.toc {
		position: static;
		max-height: none;
	}
}

@media (max-width: 760px) {
	.menu-btn {
		display: block;
	}
	.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(--border);
		box-shadow: var(--shadow-lg);
	}
	.nav.open {
		display: flex;
	}
	.nav-cta {
		margin: 8px 0 0;
	}
	.nav-cta .btn {
		flex: 1;
	}
	.features,
	.steps {
		grid-template-columns: 1fr;
	}
	.section {
		padding: 64px 0;
	}
	.hero {
		padding: 44px 0;
	}
	.phone {
		transform: none;
		animation: none;
	}
	.cta .btn {
		flex: 1;
	}
	.plan.featured {
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
	.bubble {
		opacity: 1;
	}
}
