/*
 * Styles for the public marketing site.
 *
 * Ported from the standalone Astro site. Astro scoped each component's styles
 * automatically; Django has no equivalent, so the page-specific rules below are
 * namespaced by section prefix (.hero-, .plan-, .help-, .panel-, .trend-) and
 * grouped under the page they belong to.
 *
 * Brand tokens track the app: primary #135bec, Manrope, and the slate neutral
 * scale used throughout templates/core/base_modern.html.
 */

:root {
	--brand-500: #2f6ff0;
	--brand-600: #135bec;
	--brand-700: #1048c7;
	--brand-800: #0b3fa8;
	--brand-gradient: linear-gradient(135deg, #135bec 0%, #1048c7 50%, #0b3fa8 100%);
	--brand-tint: #eff6ff;
	--brand-tint-strong: #dbeafe;

	--ink: #0f172a;
	--body: #334155;
	--muted: #64748b;
	--line: #e2e8f0;
	--surface: #ffffff;
	--surface-2: #f8fafc;
	--bg: #f1f5f9;

	--shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
	--shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
	--shadow-lg: 0 24px 60px rgba(19, 91, 236, 0.16);
	--radius: 0.75rem;
	--radius-lg: 1rem;
	--radius-btn: 0.5rem;

	--maxw: 1140px;
	--nav-h: 72px;

	--font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font);
	color: var(--body);
	background: var(--surface);
	line-height: 1.65;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
	color: var(--ink);
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 0.5em;
	font-weight: 700;
}

h1 {
	font-size: clamp(2.2rem, 5vw, 3.6rem);
}
h2 {
	font-size: clamp(1.7rem, 3.5vw, 2.5rem);
}
h3 {
	font-size: 1.25rem;
}

p {
	margin: 0 0 1rem;
}

a {
	color: var(--brand-700);
	text-decoration: none;
	transition: color 0.15s ease;
}
a:hover {
	color: var(--brand-800);
}

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

/* ---------- Layout helpers ---------- */
.container {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: 24px;
}

.section {
	padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section--tint {
	background: var(--surface-2);
	border-block: 1px solid var(--line);
}

/*
 * A page hero already provides generous breathing room, so the first section
 * after it shouldn't add its full top padding -- that stacks into a large empty
 * gap. Tighten it for a cleaner transition into the content.
 */
.page-hero + .section {
	padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.eyebrow {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--brand-700);
	margin-bottom: 0.75rem;
}

.section-head {
	max-width: 640px;
	margin: 0 auto clamp(2rem, 5vw, 3.5rem);
	text-align: center;
}
.section-head p {
	color: var(--muted);
	font-size: 1.1rem;
	margin-bottom: 0;
}

.lead {
	font-size: 1.2rem;
	color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.8rem 1.4rem;
	border-radius: var(--radius-btn);
	font-size: 0.98rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	border: 1px solid transparent;
	transition:
		transform 0.15s ease,
		box-shadow 0.2s ease,
		background 0.2s ease,
		color 0.2s ease;
	white-space: nowrap;
}

.btn--primary {
	background: var(--brand-gradient);
	color: #fff;
	box-shadow: 0 10px 24px rgba(19, 91, 236, 0.28);
}
.btn--primary:hover {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 16px 32px rgba(19, 91, 236, 0.36);
}

.btn--ghost {
	background: var(--surface);
	color: var(--ink);
	border-color: var(--line);
	box-shadow: var(--shadow-sm);
}
.btn--ghost:hover {
	color: var(--brand-700);
	border-color: var(--brand-500);
	transform: translateY(-2px);
}

.btn--light {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.3);
	color: #fff;
	backdrop-filter: blur(8px);
}
.btn--light:hover {
	background: rgba(255, 255, 255, 0.24);
	color: #fff;
	transform: translateY(-2px);
}

.btn--lg {
	padding: 1rem 1.75rem;
	font-size: 1.05rem;
}

/* ---------- Cards ---------- */
.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 1.75rem;
	box-shadow: var(--shadow-sm);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		border-color 0.2s ease;
}
.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-color: #cbd5e1;
}

.grid {
	display: grid;
	gap: 1.5rem;
}
.grid--3 {
	grid-template-columns: repeat(3, 1fr);
}
.grid--2 {
	grid-template-columns: repeat(2, 1fr);
}

/* Icon chip */
.chip {
	width: 48px;
	height: 48px;
	border-radius: var(--radius);
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--brand-tint) 0%, var(--brand-tint-strong) 100%);
	color: var(--brand-800);
	margin-bottom: 1.1rem;
}
.chip svg {
	width: 24px;
	height: 24px;
}

.text-gradient {
	background: var(--brand-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Checkmark bullet list, shared by the home and features pages. */
.check-list {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0 0;
	display: grid;
	gap: 0.75rem;
}
.check-list li {
	position: relative;
	padding-left: 2rem;
	color: var(--body);
}
.check-list li::before {
	content: '\2713';
	position: absolute;
	left: 0;
	top: 0.1rem;
	width: 22px;
	height: 22px;
	display: grid;
	place-items: center;
	background: var(--brand-gradient);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	border-radius: 50%;
}

/* Accessibility */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

:focus-visible {
	outline: 3px solid var(--brand-500);
	outline-offset: 2px;
	border-radius: 6px;
}

.is-hidden {
	display: none !important;
}

@media (max-width: 900px) {
	.grid--3 {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 640px) {
	.grid--3,
	.grid--2 {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

/* ===================================================================
 * Header
 * =================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--line);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--nav-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--ink);
	font-weight: 700;
}
.brand:hover {
	color: var(--ink);
}
.brand-mark {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--brand-gradient);
	color: #fff;
	font-weight: 800;
	font-size: 1.15rem;
	box-shadow: 0 6px 16px rgba(19, 91, 236, 0.3);
}
.brand-name {
	font-size: 1.3rem;
	letter-spacing: -0.02em;
}

.nav {
	display: flex;
	align-items: center;
	gap: 2rem;
}
.nav-links {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav-link {
	color: var(--body);
	font-weight: 500;
	font-size: 0.98rem;
}
.nav-link:hover {
	color: var(--brand-700);
}
.nav-link.active {
	color: var(--brand-700);
	font-weight: 600;
}
.nav-cta {
	display: flex;
	align-items: center;
	gap: 1rem;
}

/* Mobile toggle (CSS-only, no JavaScript) */
.nav-toggle,
.nav-burger {
	display: none;
}
.nav-burger {
	flex-direction: column;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 12px 10px;
	cursor: pointer;
	border-radius: 10px;
}
.nav-burger span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--ink);
	border-radius: 2px;
	transition:
		transform 0.2s ease,
		opacity 0.2s ease;
}

@media (max-width: 820px) {
	.nav-burger {
		display: flex;
	}
	.nav {
		position: fixed;
		inset: var(--nav-h) 0 auto 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--surface);
		border-bottom: 1px solid var(--line);
		padding: 1rem 24px 1.5rem;
		box-shadow: var(--shadow-md);
		transform: translateY(-120%);
		transition: transform 0.25s ease;
	}
	.nav-toggle:checked ~ .nav {
		transform: translateY(0);
	}
	.nav-links {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}
	.nav-links li {
		border-bottom: 1px solid var(--line);
	}
	.nav-link {
		display: block;
		padding: 0.9rem 0;
		font-size: 1.05rem;
	}
	.nav-cta {
		flex-direction: column;
		align-items: stretch;
		margin-top: 1rem;
		gap: 0.75rem;
	}
	.nav-cta .nav-link {
		text-align: center;
		border: 1px solid var(--line);
		border-radius: var(--radius-btn);
	}
	.nav-toggle:checked ~ .nav-burger span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}
	.nav-toggle:checked ~ .nav-burger span:nth-child(2) {
		opacity: 0;
	}
	.nav-toggle:checked ~ .nav-burger span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}
}

/* ===================================================================
 * Footer
 * =================================================================== */
.site-footer {
	background: var(--ink);
	color: #cbd5e1;
	padding-top: 3.5rem;
}
.footer-inner {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 2rem;
	padding-bottom: 2.5rem;
}
.footer-brand p {
	color: #94a3b8;
	max-width: 32ch;
	margin-top: 1rem;
}
.site-footer .brand {
	color: #fff;
}
.site-footer .brand:hover {
	color: #fff;
}
.site-footer .brand-mark {
	width: 34px;
	height: 34px;
	font-size: 1.05rem;
	box-shadow: none;
}
.site-footer .brand-name {
	font-size: 1.25rem;
}

.footer-col h4 {
	color: #fff;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 1rem;
}
.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.6rem;
}
.footer-col a {
	color: #94a3b8;
	font-size: 0.95rem;
}
.footer-col a:hover {
	color: #fff;
}

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: #64748b;
	font-size: 0.88rem;
}
.footer-bottom p {
	margin: 0;
}
.footer-legal {
	display: flex;
	gap: 1.25rem;
	flex-wrap: wrap;
}
.footer-legal a {
	color: #64748b;
}
.footer-legal a:hover {
	color: #cbd5e1;
}

@media (max-width: 820px) {
	.footer-inner {
		grid-template-columns: 1fr 1fr;
	}
	.footer-brand {
		grid-column: 1 / -1;
	}
}
@media (max-width: 520px) {
	.footer-bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ===================================================================
 * CTA band
 * =================================================================== */
.cta-band {
	background: var(--brand-gradient);
	color: #fff;
	padding-block: clamp(3rem, 7vw, 5rem);
}
.cta-inner {
	text-align: center;
	max-width: 680px;
}
.cta-band h2 {
	color: #fff;
}
.cta-band p {
	color: rgba(255, 255, 255, 0.85);
	font-size: 1.15rem;
	margin-bottom: 2rem;
}
.cta-actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

/* ===================================================================
 * Shared page hero (features, pricing, FAQ, help index)
 * =================================================================== */
.page-hero {
	background:
		radial-gradient(60% 120% at 85% -20%, rgba(19, 91, 236, 0.12), transparent 60%),
		linear-gradient(180deg, var(--bg) 0%, #ffffff 80%);
	padding-block: clamp(3rem, 7vw, 5rem);
	text-align: center;
}
.page-hero .lead {
	max-width: 60ch;
	margin-inline: auto;
}
.page-hero--tight {
	padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

/* ===================================================================
 * Home page
 * =================================================================== */
.hero {
	background:
		radial-gradient(60% 120% at 80% -10%, rgba(19, 91, 236, 0.12), transparent 60%),
		linear-gradient(180deg, var(--bg) 0%, #ffffff 70%);
	padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero-grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 3rem;
	align-items: center;
}
.hero-copy .lead {
	max-width: 46ch;
	margin-bottom: 2rem;
}
.hero-actions {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}
.hero-note {
	color: var(--muted);
	font-size: 0.9rem;
	margin: 0;
}

/* Hero mock dashboard */
.hero-visual {
	perspective: 1600px;
}
.mock {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	transform: rotateY(-6deg) rotateX(3deg);
}
.mock-top {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 12px 16px;
	background: var(--surface-2);
	border-bottom: 1px solid var(--line);
}
.mock-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #cbd5e1;
}
.mock-dot:nth-child(1) {
	background: #f87171;
}
.mock-dot:nth-child(2) {
	background: #fbbf24;
}
.mock-dot:nth-child(3) {
	background: #34d399;
}
.mock-title {
	margin-left: auto;
	font-size: 0.8rem;
	color: var(--muted);
	font-weight: 600;
}
.mock-body {
	padding: 1.25rem;
}
.mock-kpis {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}
.kpi {
	background: var(--surface-2);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.kpi-label {
	font-size: 0.72rem;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.kpi-value {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--ink);
}
.kpi-up {
	font-size: 0.72rem;
	color: #059669;
	font-weight: 600;
}
.kpi-down {
	font-size: 0.72rem;
	color: #dc2626;
	font-weight: 600;
}
.mock-chart {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	height: 120px;
	padding: 0.75rem;
	background: var(--surface-2);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	margin-bottom: 1rem;
}
.mock-bar {
	flex: 1;
	border-radius: 6px 6px 0 0;
	background: var(--brand-gradient);
	opacity: 0.85;
}
.mock-insight {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	background: linear-gradient(135deg, var(--brand-tint), var(--surface-2));
	border: 1px solid var(--brand-tint-strong);
	border-radius: var(--radius);
	padding: 0.8rem 0.9rem;
}
.mock-insight .spark {
	color: var(--brand-600);
	font-size: 1rem;
	line-height: 1.4;
}
.mock-insight p {
	margin: 0;
	font-size: 0.85rem;
	color: var(--brand-800);
}

/* Trust strip */
.strip {
	border-block: 1px solid var(--line);
	background: var(--surface-2);
}
.strip-inner {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	padding-block: 2rem;
}
.strip-item {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	text-align: center;
}
.strip-value {
	font-size: 1.35rem;
	font-weight: 800;
}
.strip-label {
	font-size: 0.9rem;
	color: var(--muted);
}

.features-more {
	text-align: center;
	margin-top: 2.5rem;
}

/* Steps */
.step {
	padding: 0.5rem;
}
.step-n {
	display: inline-block;
	font-size: 0.95rem;
	font-weight: 800;
	color: var(--brand-700);
	background: var(--brand-tint-strong);
	border-radius: 8px;
	padding: 0.2rem 0.6rem;
	margin-bottom: 0.75rem;
}

/* Insight highlight */
.insight-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}
.insight-copy .check-list {
	margin: 0 0 2rem;
}
.insight-chat {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	background: var(--surface-2);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
	box-shadow: var(--shadow-md);
}
.chat-line {
	padding: 0.85rem 1.1rem;
	border-radius: 14px;
	font-size: 0.95rem;
	max-width: 90%;
}
.chat-you {
	align-self: flex-end;
	background: var(--brand-gradient);
	color: #fff;
	border-bottom-right-radius: 4px;
}
.chat-ai {
	align-self: flex-start;
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--body);
	border-bottom-left-radius: 4px;
}
.chat-ai strong {
	color: var(--ink);
}

@media (max-width: 900px) {
	.hero-grid,
	.insight-grid {
		grid-template-columns: 1fr;
	}
	.hero-visual {
		order: -1;
	}
	.mock {
		transform: none;
	}
	.strip-inner {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ===================================================================
 * Features page
 * =================================================================== */
.feat-card:hover h3 {
	color: var(--brand-700);
}

.detail-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}
.detail-grid.reverse .detail-copy {
	order: 2;
}
.detail-copy .chip {
	width: 52px;
	height: 52px;
}

.detail-visual .panel {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	padding: 1.5rem;
}
.panel-title {
	display: block;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted);
	margin-bottom: 1.25rem;
	font-weight: 700;
}
.panel-rows {
	display: grid;
	gap: 0.9rem;
}
.panel-row {
	display: grid;
	grid-template-columns: 8.5rem 1fr auto;
	align-items: center;
	gap: 0.85rem;
}
.panel-key {
	font-size: 0.82rem;
	color: var(--body);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.panel-track {
	display: block;
	height: 12px;
	border-radius: 8px;
	background: var(--surface-2);
	border: 1px solid var(--line);
	overflow: hidden;
}
.panel-bar {
	display: block;
	height: 100%;
	border-radius: 8px;
	background: var(--brand-gradient);
}
.panel-val {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--ink);
	white-space: nowrap;
	text-align: right;
}

/* Trend (time-series) chart */
.panel-trend {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px dashed var(--line);
}
.trend-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.9rem;
}
.trend-caption {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted);
	font-weight: 700;
}
.trend-delta {
	font-size: 0.78rem;
	font-weight: 700;
	color: #059669;
	white-space: nowrap;
}
.trend-delta.neg {
	color: #dc2626;
}
.trend-chart {
	display: flex;
	align-items: flex-end;
	gap: 0.5rem;
	height: 110px;
}
.trend-col {
	flex: 1;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	gap: 0.4rem;
}
.trend-bar {
	width: 100%;
	max-width: 26px;
	border-radius: 6px 6px 0 0;
	background: var(--brand-gradient);
	opacity: 0.9;
	transition: opacity 0.2s ease;
}
.trend-col:last-child .trend-bar {
	opacity: 1;
	box-shadow: 0 6px 14px rgba(19, 91, 236, 0.3);
}
.trend-label {
	font-size: 0.68rem;
	color: var(--muted);
	font-weight: 600;
}

@media (max-width: 900px) {
	.detail-grid,
	.detail-grid.reverse {
		grid-template-columns: 1fr;
	}
	.detail-grid.reverse .detail-copy {
		order: 0;
	}
}

/* ===================================================================
 * Pricing page
 * =================================================================== */
.plans {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	align-items: stretch;
}
.plan {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 2rem 1.75rem;
	box-shadow: var(--shadow-sm);
}
.plan.featured {
	border-color: var(--brand-500);
	box-shadow: var(--shadow-lg);
	transform: translateY(-8px);
}
.plan-badge {
	position: absolute;
	top: -13px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--brand-gradient);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	white-space: nowrap;
}
.plan-name {
	font-size: 1.3rem;
	margin-bottom: 0.25rem;
}
.plan-blurb {
	color: var(--muted);
	font-size: 0.95rem;
	min-height: 3rem;
}
.plan-price {
	display: flex;
	align-items: baseline;
	gap: 0.35rem;
	margin: 0.5rem 0 0.35rem;
}
.plan-price .amount {
	font-size: 2.6rem;
	font-weight: 800;
	color: var(--ink);
	letter-spacing: -0.03em;
}
.plan-price .cadence {
	color: var(--muted);
	font-weight: 500;
}
.plan-seats {
	display: block;
	font-size: 0.85rem;
	color: var(--muted);
	font-weight: 600;
	margin-bottom: 1.5rem;
}
.plan-cta {
	width: 100%;
	margin-bottom: 1.5rem;
}
.plan-features {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.75rem;
}
.plan-features li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-size: 0.95rem;
	color: var(--body);
}
.plan-features svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--brand-600);
}
.plan-features li.excluded {
	color: var(--muted);
}
.plan-features li.excluded svg {
	color: #cbd5e1;
}

.pricing-note {
	text-align: center;
	color: var(--muted);
	font-size: 0.9rem;
	margin-top: 2.5rem;
}
.included h3,
.addons h3 {
	margin-bottom: 0.4rem;
}
.included p,
.addons p {
	color: var(--muted);
	margin: 0;
}

@media (max-width: 900px) {
	.plans {
		grid-template-columns: 1fr;
		max-width: 460px;
		margin-inline: auto;
	}
	.plan.featured {
		transform: none;
	}
}

/* ===================================================================
 * FAQ page
 * =================================================================== */
.faq-wrap {
	max-width: 780px;
	display: grid;
	gap: 1rem;
}
.faq-item {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}
.faq-item[open] {
	border-color: var(--brand-500);
	box-shadow: var(--shadow-md);
}
.faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 1.5rem;
	cursor: pointer;
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--ink);
	list-style: none;
}
.faq-item summary::-webkit-details-marker {
	display: none;
}
.faq-caret {
	width: 20px;
	height: 20px;
	color: var(--brand-600);
	flex-shrink: 0;
	transition: transform 0.2s ease;
}
.faq-item[open] .faq-caret {
	transform: rotate(180deg);
}
.faq-answer {
	padding: 0 1.5rem 1.35rem;
}
.faq-answer p {
	margin: 0;
	color: var(--body);
}

/* ===================================================================
 * Help center index
 * =================================================================== */
.help-hero .lead {
	max-width: 48ch;
	margin-inline: auto;
	margin-bottom: 2rem;
}

.help-search {
	position: relative;
	max-width: 560px;
	margin-inline: auto;
}
.help-search svg {
	position: absolute;
	left: 1.1rem;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	color: var(--muted);
	pointer-events: none;
}
.help-search input {
	width: 100%;
	font-family: inherit;
	font-size: 1.05rem;
	color: var(--ink);
	padding: 1rem 1.25rem 1rem 3rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow-md);
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}
.help-search input::placeholder {
	color: var(--muted);
}
.help-search input:focus {
	outline: none;
	border-color: var(--brand-500);
	box-shadow: 0 0 0 4px rgba(19, 91, 236, 0.15);
}

/* Table of contents */
.help-index {
	margin-bottom: 3rem;
	padding: 1.5rem;
	background: var(--surface-2);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}
.help-index-label {
	display: block;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--muted);
	font-weight: 700;
	margin-bottom: 1rem;
}
.help-index ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
}
.help-index a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.7rem 1rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	color: var(--ink);
	font-weight: 600;
	font-size: 0.95rem;
	transition:
		border-color 0.2s ease,
		transform 0.2s ease,
		color 0.2s ease;
}
.help-index a:hover {
	border-color: var(--brand-500);
	color: var(--brand-700);
	transform: translateY(-2px);
}
.help-index-count {
	flex-shrink: 0;
	min-width: 1.6rem;
	height: 1.6rem;
	padding: 0 0.4rem;
	display: grid;
	place-items: center;
	border-radius: 999px;
	background: var(--brand-tint-strong);
	color: var(--brand-800);
	font-size: 0.78rem;
	font-weight: 700;
}

.help-noresults {
	text-align: center;
	color: var(--muted);
	font-size: 1.05rem;
	padding: 2rem 0;
}

.help-toc {
	display: grid;
	gap: 3rem;
}
.help-group-title {
	font-size: 1.35rem;
	padding-bottom: 0.75rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid var(--line);
}
.help-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem;
}
.help-card {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.4rem 1.5rem;
	box-shadow: var(--shadow-sm);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		border-color 0.2s ease;
}
.help-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
	border-color: var(--brand-500);
}
.help-card h3 {
	margin-bottom: 0.4rem;
	font-size: 1.1rem;
}
.help-card p {
	color: var(--muted);
	font-size: 0.95rem;
	margin-bottom: 1rem;
	flex: 1;
}
.help-card-more {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--brand-700);
}

@media (max-width: 820px) {
	.help-index ul {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 640px) {
	.help-cards,
	.help-index ul {
		grid-template-columns: 1fr;
	}
}

/* ===================================================================
 * Help article
 * =================================================================== */
.help-article {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 3rem;
	padding-block: clamp(2rem, 5vw, 3.5rem);
	align-items: start;
}

.help-sidebar {
	position: sticky;
	top: calc(var(--nav-h) + 1.5rem);
	max-height: calc(100vh - var(--nav-h) - 3rem);
	overflow-y: auto;
	padding-right: 0.5rem;
}
.sidebar-home {
	display: inline-block;
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
}
.sidebar-group {
	margin-bottom: 1.5rem;
}
.sidebar-group h4 {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--muted);
	margin-bottom: 0.6rem;
}
.sidebar-group ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.15rem;
}
.sidebar-link {
	display: block;
	padding: 0.4rem 0.75rem;
	border-radius: 8px;
	font-size: 0.92rem;
	color: var(--body);
	border-left: 2px solid transparent;
}
.sidebar-link:hover {
	background: var(--surface-2);
	color: var(--brand-700);
}
.sidebar-link.active {
	color: var(--brand-700);
	font-weight: 600;
	background: var(--brand-tint);
	border-left-color: var(--brand-500);
}

.help-content {
	min-width: 0;
	max-width: 760px;
}
.breadcrumb {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	font-size: 0.88rem;
	color: var(--muted);
	margin-bottom: 1.25rem;
}
.breadcrumb span:last-child {
	color: var(--body);
}
.article-head {
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--line);
}
.article-head h1 {
	font-size: clamp(1.9rem, 4vw, 2.6rem);
	margin-bottom: 0.5rem;
}
.article-head .lead {
	margin-bottom: 0;
}

/* Rendered Markdown */
.prose h2 {
	font-size: 1.4rem;
	margin-top: 2.25rem;
	margin-bottom: 0.75rem;
}
.prose h3 {
	font-size: 1.15rem;
	margin-top: 1.75rem;
	margin-bottom: 0.5rem;
}
.prose p {
	color: var(--body);
	margin-bottom: 1rem;
}
.prose ul,
.prose ol {
	margin: 0 0 1.25rem;
	padding-left: 1.4rem;
	color: var(--body);
}
.prose li {
	margin-bottom: 0.5rem;
}
.prose li::marker {
	color: var(--brand-600);
}
.prose a {
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.prose strong {
	color: var(--ink);
}
.prose code {
	background: var(--surface-2);
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 0.1rem 0.4rem;
	font-size: 0.9em;
}
.prose blockquote {
	border-left: 3px solid var(--brand-500);
	margin: 1.25rem 0;
	padding: 0.25rem 0 0.25rem 1.25rem;
	color: var(--muted);
}

/* Prev / next */
.article-nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}
.article-nav-link {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.9rem 1.1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	max-width: 48%;
	transition:
		border-color 0.2s ease,
		transform 0.2s ease;
}
.article-nav-link:hover {
	border-color: var(--brand-500);
	transform: translateY(-2px);
}
.article-nav-link.next {
	text-align: right;
	margin-left: auto;
}
.article-nav-link .dir {
	font-size: 0.78rem;
	color: var(--muted);
	font-weight: 600;
}
.article-nav-link .ttl {
	font-weight: 600;
	color: var(--ink);
}

@media (max-width: 900px) {
	.help-article {
		grid-template-columns: 1fr;
	}
	.help-sidebar {
		position: static;
		max-height: none;
		overflow: visible;
		padding-bottom: 1.5rem;
		margin-bottom: 1rem;
		border-bottom: 1px solid var(--line);
	}
	.sidebar-group {
		margin-bottom: 1rem;
	}
}
