:root {
	--bg: #0b1020;
	--panel: #111936;
	--ink: #e5e7eb;
	--muted: #9aa3b2;
	--brand: #f472b6;
	--brand-2: #60a5fa;
	--vault: #2f7d5f;
	--vault-2: #7fc6ac;
	--warn: #f59e0b;
	--danger: #fb7185;
	--line: rgba(255,255,255,.08);
	--line-2: rgba(255,255,255,.14);
	--sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
	--mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	--radius: 16px;
	--shadow: 0 10px 30px rgba(0,0,0,.35);
	--shadow-sm: 0 6px 18px rgba(0,0,0,.25);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: radial-gradient(1100px 700px at 85% -10%, rgba(127,198,172,.14), transparent 60%), radial-gradient(900px 600px at 5% 5%, rgba(96,165,250,.12), transparent 55%), var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	line-height: 1.65;
	-webkit-text-size-adjust: 100%;
}

a {
	color: var(--brand-2);
	text-decoration: none;
}

	a:hover {
		text-decoration: underline;
	}

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

.wrap {
	max-width: 1180px;
	margin-inline: auto;
	padding: clamp(16px, 3vw, 32px);
}

/* ---------- Header ---------- */
header.site {
	position: sticky;
	top: 0;
	z-index: 60;
	backdrop-filter: blur(8px);
	background: rgba(11,16,32,.82);
	border-bottom: 1px solid var(--line);
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 700;
	letter-spacing: .3px;
	color: var(--ink);
}

	.brand:hover {
		text-decoration: none;
	}

.logo {
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	box-shadow: var(--shadow-sm);
	font-weight: 800;
	color: #0b1020;
}

header.site nav {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

	header.site nav a {
		padding: 8px 10px;
		border-radius: 10px;
		font-size: 15px;
	}

		header.site nav a:hover {
			background: rgba(255,255,255,.06);
			text-decoration: none;
		}

		header.site nav a.here {
			background: rgba(127,198,172,.14);
			color: var(--vault-2);
		}

/* ---------- Hero ---------- */
.hero {
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	gap: min(5vw, 44px);
	align-items: center;
	padding-block: clamp(28px, 5vw, 60px);
}

	.hero h1 {
		font-size: clamp(30px, 4.4vw, 50px);
		line-height: 1.12;
		margin: .25em 0 .3em;
		letter-spacing: -.5px;
	}

	.hero .lede {
		color: var(--muted);
		font-size: clamp(16px, 1.35vw, 19px);
		margin: 0 0 6px;
		max-width: 54ch;
	}

.apphead {
	display: flex;
	align-items: center;
	gap: 16px;
}

	.apphead img {
		width: 76px;
		height: 76px;
		border-radius: 18px;
		box-shadow: var(--shadow);
	}

.eyebrow {
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted);
}

.apptitle {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

.badges {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 13px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	background: linear-gradient(180deg, rgba(127,198,172,.16), rgba(127,198,172,.05));
	border: 1px solid rgba(127,198,172,.28);
	color: var(--vault-2);
}

	.badge svg {
		width: 15px;
		height: 15px;
		flex: none;
	}

.cta-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 22px;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border-radius: 12px;
	border: 1px solid var(--line-2);
	background: #151b33;
	color: var(--ink);
	font-weight: 600;
	box-shadow: var(--shadow-sm);
	transition: transform .12s ease, box-shadow .12s ease;
}

	.btn:hover {
		text-decoration: none;
		transform: translateY(-1px);
		box-shadow: var(--shadow);
	}

	.btn.primary {
		background: linear-gradient(135deg, var(--vault-2), var(--brand-2));
		color: #08130f;
		border-color: transparent;
	}

	.btn.play {
		background: #0f1730;
		border-color: rgba(255,255,255,.2);
	}

		.btn.play:hover {
			background: #16203f;
		}

	.btn svg {
		width: 17px;
		height: 17px;
		flex: none;
	}

	.btn.play svg {
		width: 18px;
		height: 18px;
	}

.hero-art img {
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	border: 1px solid var(--line);
}

/* ---------- Layout: TOC + content ---------- */
.layout {
	display: grid;
	grid-template-columns: 244px minmax(0, 1fr);
	gap: clamp(20px, 4vw, 52px);
	align-items: start;
	padding-bottom: 40px;
}

.toc {
	position: sticky;
	top: 84px;
}

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

	.toc ol {
		list-style: none;
		margin: 0;
		padding: 0;
		display: grid;
		gap: 1px;
	}

	.toc a {
		display: block;
		padding: 7px 12px;
		border-radius: 9px;
		font-size: 14.5px;
		color: var(--muted);
		border-left: 2px solid transparent;
	}

		.toc a:hover {
			background: rgba(255,255,255,.05);
			color: var(--ink);
			text-decoration: none;
		}

		.toc a.active {
			color: var(--vault-2);
			background: rgba(127,198,172,.10);
			border-left-color: var(--vault-2);
			font-weight: 600;
		}

.toc-toggle {
	display: none;
}

/* ---------- Sections ---------- */
section.doc {
	padding-block: clamp(26px, 4vw, 46px);
	scroll-margin-top: 84px;
	border-top: 1px solid var(--line);
}

	section.doc:first-of-type {
		border-top: 0;
		padding-top: 0;
	}

	section.doc > h2 {
		font-size: clamp(22px, 3vw, 32px);
		margin: 0 0 8px;
		letter-spacing: -.3px;
		display: flex;
		align-items: baseline;
		gap: 12px;
		flex-wrap: wrap;
	}

		section.doc > h2 .num {
			font-family: var(--mono);
			font-size: 14px;
			font-weight: 700;
			color: var(--vault-2);
			background: rgba(127,198,172,.12);
			border: 1px solid rgba(127,198,172,.25);
			border-radius: 8px;
			padding: 2px 9px;
			letter-spacing: 0;
		}

	section.doc > p.lead {
		color: var(--muted);
		margin: 0 0 20px;
		font-size: 17px;
		max-width: 62ch;
	}

	section.doc h3 {
		font-size: 19px;
		margin: 26px 0 8px;
	}

	section.doc p {
		max-width: 68ch;
	}

/* ---------- Split (text + phone) ---------- */
.split {
	display: grid;
	grid-template-columns: minmax(0,1fr) 268px;
	gap: clamp(20px, 3vw, 40px);
	align-items: start;
}

	.split .body > :first-child {
		margin-top: 0;
	}

	/* Two screenshots would squeeze the prose into a gutter, so those sections
           run the text full width with the pair of phones centred beneath it. */
	.split.two-shots {
		grid-template-columns: 1fr;
	}

.shots {
	display: flex;
	gap: 26px;
	flex-wrap: wrap;
	justify-content: center;
}

	.shots figure.phone {
		flex: 0 1 268px;
	}

/* ---------- Phone frame ---------- */
figure.phone {
	margin: 0;
}

	figure.phone .frame {
		border-radius: 26px;
		padding: 9px;
		background: linear-gradient(160deg, #232c4e, #131a33);
		border: 1px solid var(--line-2);
		box-shadow: var(--shadow);
	}

	figure.phone img {
		border-radius: 18px;
		width: 100%;
		cursor: zoom-in;
		background: #fff;
	}

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

/* ---------- Steps ---------- */
ol.steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
	counter-reset: step;
}

	ol.steps > li {
		position: relative;
		padding-left: 44px;
		max-width: 66ch;
	}

		ol.steps > li::before {
			counter-increment: step;
			content: counter(step);
			position: absolute;
			left: 0;
			top: 2px;
			width: 28px;
			height: 28px;
			border-radius: 9px;
			display: grid;
			place-items: center;
			font-size: 14px;
			font-weight: 800;
			font-family: var(--mono);
			background: linear-gradient(135deg, var(--vault-2), var(--brand-2));
			color: #08130f;
		}

		ol.steps > li b {
			color: #fff;
		}

/* ---------- Cards / callouts ---------- */
.card {
	background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 14px;
	margin-top: 18px;
}

	.cards .card {
		padding: 18px 20px;
	}

	.cards h4 {
		margin: 0 0 6px;
		font-size: 16px;
	}

	.cards p {
		margin: 0;
		color: var(--muted);
		font-size: 14.5px;
	}

.note {
	border-radius: 14px;
	padding: 15px 18px;
	margin: 20px 0;
	max-width: 72ch;
	border: 1px solid var(--line);
	background: rgba(96,165,250,.07);
	border-left: 3px solid var(--brand-2);
}

	.note.warn {
		background: rgba(245,158,11,.08);
		border-left-color: var(--warn);
	}

	.note.danger {
		background: rgba(251,113,133,.08);
		border-left-color: var(--danger);
	}

	.note.good {
		background: rgba(127,198,172,.08);
		border-left-color: var(--vault-2);
	}

	.note > :first-child {
		margin-top: 0;
	}

	.note > :last-child {
		margin-bottom: 0;
	}

	.note .label {
		display: block;
		font-size: 12px;
		letter-spacing: .09em;
		text-transform: uppercase;
		font-weight: 800;
		margin-bottom: 5px;
		color: var(--brand-2);
	}

	.note.warn .label {
		color: var(--warn);
	}

	.note.danger .label {
		color: var(--danger);
	}

	.note.good .label {
		color: var(--vault-2);
	}

/* ---------- Inline UI chips ---------- */
.ui {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 7px;
	font-size: .92em;
	font-weight: 600;
	background: rgba(127,198,172,.13);
	border: 1px solid rgba(127,198,172,.28);
	color: var(--vault-2);
	white-space: nowrap;
}

	.ui.red {
		background: rgba(251,113,133,.12);
		border-color: rgba(251,113,133,.3);
		color: var(--danger);
	}

code {
	font-family: var(--mono);
	font-size: .9em;
	background: rgba(255,255,255,.07);
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 1px 6px;
}

ul.plain {
	padding-left: 1.15rem;
	max-width: 68ch;
}

	ul.plain li {
		margin: .45rem 0;
	}

ul.check {
	list-style: none;
	padding: 0;
	margin: 14px 0;
	display: grid;
	gap: 10px;
	max-width: 70ch;
}

	ul.check li {
		position: relative;
		padding-left: 30px;
	}

		ul.check li::before {
			content: "";
			position: absolute;
			left: 0;
			top: .5em;
			width: 16px;
			height: 16px;
			border-radius: 5px;
			background: rgba(127,198,172,.16);
			border: 1px solid rgba(127,198,172,.4);
		}

		ul.check li::after {
			content: "";
			position: absolute;
			left: 5px;
			top: .68em;
			width: 5px;
			height: 9px;
			border: solid var(--vault-2);
			border-width: 0 2px 2px 0;
			transform: rotate(45deg);
		}

/* ---------- FAQ ---------- */
.faq {
	display: grid;
	gap: 10px;
	margin-top: 8px;
}

details.qa {
	border: 1px solid var(--line);
	border-radius: 13px;
	background: rgba(255,255,255,.03);
	overflow: hidden;
}

	details.qa summary {
		cursor: pointer;
		padding: 15px 46px 15px 18px;
		font-weight: 650;
		list-style: none;
		position: relative;
	}

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

		details.qa summary::after {
			content: "";
			position: absolute;
			right: 20px;
			top: 21px;
			width: 8px;
			height: 8px;
			border: solid var(--muted);
			border-width: 0 2px 2px 0;
			transform: rotate(45deg);
			transition: transform .18s ease;
		}

	details.qa[open] summary::after {
		transform: rotate(-135deg);
	}

	details.qa summary:hover {
		background: rgba(255,255,255,.04);
	}

	details.qa .qa-body {
		padding: 0 18px 16px;
		color: var(--muted);
	}

		details.qa .qa-body > :first-child {
			margin-top: 0;
		}

		details.qa .qa-body > :last-child {
			margin-bottom: 0;
		}

		details.qa .qa-body strong {
			color: var(--ink);
		}

/* ---------- Support ---------- */
.support {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
	margin-top: 18px;
}

	.support .card {
		padding: 20px;
		display: grid;
		gap: 6px;
		align-content: start;
	}

		.support .card h4 {
			margin: 0;
			font-size: 16px;
		}

		.support .card p {
			margin: 0;
			color: var(--muted);
			font-size: 14.5px;
		}

/* ---------- Footer ---------- */
footer.site {
	border-top: 1px solid var(--line);
	margin-top: 20px;
}

	footer.site .wrap {
		display: flex;
		justify-content: space-between;
		gap: 16px;
		flex-wrap: wrap;
		color: var(--muted);
		font-size: 14.5px;
		padding-block: 30px 50px;
	}

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

/* ---------- Lightbox ---------- */
#lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: none;
	place-items: center;
	background: rgba(4,7,16,.9);
	backdrop-filter: blur(4px);
	padding: 24px;
	cursor: zoom-out;
}

	#lightbox.on {
		display: grid;
	}

	#lightbox img {
		max-height: 88vh;
		max-width: min(420px, 92vw);
		border-radius: 20px;
		box-shadow: 0 24px 70px rgba(0,0,0,.6);
		background: #fff;
	}

	#lightbox .hint {
		position: absolute;
		bottom: 20px;
		left: 0;
		right: 0;
		text-align: center;
		color: var(--muted);
		font-size: 13px;
	}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
	.layout {
		grid-template-columns: 1fr;
	}

	.toc {
		position: static;
		margin-bottom: 8px;
	}

		.toc h2 {
			display: none;
		}

	.toc-toggle {
		display: block;
		width: 100%;
		text-align: left;
		cursor: pointer;
		background: rgba(255,255,255,.05);
		color: var(--ink);
		border: 1px solid var(--line);
		border-radius: 12px;
		padding: 12px 16px;
		font: inherit;
		font-weight: 650;
	}

	.toc ol {
		margin-top: 8px;
		display: none;
	}

	.toc.open ol {
		display: grid;
	}
}

@media (max-width: 860px) {
	.hero {
		grid-template-columns: 1fr;
	}

	.hero-art {
		max-width: 560px;
	}

	.split {
		grid-template-columns: 1fr;
	}
	/* auto margins stop a grid item stretching, so size it explicitly then centre it */
	figure.phone {
		width: min(100%, 300px);
		justify-self: center;
	}

	.shots figure.phone {
		width: auto;
		max-width: 262px;
	}
}

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

	* {
		transition: none !important;
	}
}
