:root {
	--ink: #121212;
	--forest: #384836;
	--mist: #5a6e58;
	--moss: #708f6c;
	--paper: #ffffff;
	--elevated: #f4f5f3;
	--line: #d4dad2;
	--danger: #8b3a3a;
	--serif: "Spectral", Georgia, serif;
	--sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

::selection {
	background: rgba(112, 143, 108, 0.25);
}

a {
	color: var(--forest);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

h1,
h2,
h3 {
	font-family: var(--serif);
	font-weight: 500;
	text-wrap: balance;
}
p,
li,
dd {
	text-wrap: pretty;
}

:focus-visible {
	outline: 2px solid var(--moss);
	outline-offset: 2px;
}

.skip {
	position: absolute;
	left: 12px;
	top: -48px;
	background: var(--ink);
	color: var(--paper);
	padding: 8px 14px;
	border-radius: 2px;
	z-index: 20;
}
.skip:focus {
	top: 12px;
}

.container {
	max-width: 72rem;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- Nav ---------- */

.topnav {
	display: flex;
	align-items: center;
	gap: 28px;
	max-width: 72rem;
	margin: 0 auto;
	padding: 20px 24px;
}
.topnav .logo img {
	height: 26px;
	display: block;
}
.topnav .links {
	display: flex;
	gap: 22px;
	margin-left: auto;
	font-size: 0.9375rem;
	font-weight: 500;
}
.topnav .links a {
	color: var(--ink);
}
.nav-toggle {
	display: none;
}

.btn {
	display: inline-block;
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	padding: 0.85rem 1.35rem;
	border-radius: 2px;
	border: 1px solid var(--ink);
	color: var(--ink);
	background: transparent;
}
.btn:hover {
	background: var(--elevated);
	text-decoration: none;
}
.btn.primary {
	background: var(--ink);
	color: var(--paper);
}
.btn.primary:hover {
	background: var(--forest);
}
.topnav .cta {
	font-size: 0.875rem;
	font-weight: 500;
	padding: 0.55rem 1rem;
	border-radius: 2px;
	background: var(--ink);
	color: var(--paper);
}
.topnav .cta:hover {
	background: var(--forest);
	text-decoration: none;
}

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

.hero {
	padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
	border-bottom: 1px solid var(--line);
}
.hero h1 {
	font-size: clamp(2.25rem, 5.5vw, 3.75rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
	max-width: 21ch;
}
.hero h1 em {
	font-style: italic;
	color: var(--forest);
}
.hero-sub {
	margin: 1.4rem 0 2rem;
	max-width: 56ch;
	color: var(--mist);
	font-size: 1.125rem;
}
.hero-actions {
	display: flex;
	gap: 14px;
	align-items: center;
	flex-wrap: wrap;
}
.hero-note {
	font-size: 0.875rem;
	color: var(--mist);
}

/* The product shot: an agent hits canonical state; the team decides in Slack. */
.shot {
	margin-top: clamp(2.5rem, 6vw, 4rem);
	display: grid;
	grid-template-columns: 1fr 1fr;
	border: 1px solid var(--line);
	border-radius: 4px;
	overflow: hidden;
	background: var(--elevated);
}
.shot-col {
	padding: 22px 24px;
	min-width: 0;
}
.shot-col + .shot-col {
	border-left: 1px solid var(--line);
	background: var(--paper);
}
.shot-col h3 {
	font-family: var(--sans);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--mist);
	margin-bottom: 12px;
}
.shot pre {
	font-family: var(--mono);
	font-size: 0.8125rem;
	line-height: 1.6;
	white-space: pre-wrap;
	word-break: break-word;
}
.shot .hl {
	color: var(--danger);
}
.shot .ok {
	color: var(--forest);
	font-weight: 600;
}

.slackmsg {
	border: 1px solid var(--line);
	border-radius: 4px;
	background: var(--paper);
	padding: 16px 18px;
	font-size: 0.875rem;
	line-height: 1.5;
}
.slackmsg .from {
	font-weight: 700;
	margin-bottom: 6px;
}
.slackmsg .from span {
	color: var(--mist);
	font-weight: 400;
}
.slackmsg p {
	margin: 4px 0;
}
.slackmsg code {
	font-family: var(--mono);
	font-size: 0.8125rem;
	background: var(--elevated);
	padding: 1px 5px;
	border-radius: 2px;
}
.slackmsg .acts {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}
.slackmsg .acts span {
	font-size: 0.8125rem;
	font-weight: 500;
	border: 1px solid var(--line);
	border-radius: 3px;
	padding: 4px 10px;
}
.slackmsg .acts .approve {
	background: var(--forest);
	border-color: var(--forest);
	color: var(--paper);
}

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

section {
	padding: clamp(4rem, 10vw, 7rem) 0 0;
}
section:last-of-type {
	padding-bottom: clamp(4rem, 10vw, 7rem);
}
.kicker {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--moss);
	margin-bottom: 14px;
}
section h2 {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	line-height: 1.2;
	letter-spacing: -0.015em;
	max-width: 30ch;
}
.lede {
	margin-top: 1.1rem;
	max-width: 60ch;
	color: var(--mist);
}

.cols3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0 40px;
	margin-top: 3rem;
	border-top: 1px solid var(--line);
}
.cols3 > div {
	padding-top: 1.6rem;
}
.cols3 h3 {
	font-size: 1.25rem;
	margin-bottom: 0.6rem;
}
.cols3 p {
	font-size: 0.9375rem;
	color: var(--mist);
}
.cols3 .mode {
	font-family: var(--mono);
	font-size: 0.75rem;
	color: var(--moss);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	display: block;
	margin-bottom: 10px;
}

/* Ledger rows: open layout over cards. */
.ledger {
	margin-top: 3rem;
	border-top: 1px solid var(--line);
}
.ledger > div {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 32px;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--line);
}
.ledger h3 {
	font-size: 1.125rem;
}
.ledger p {
	font-size: 0.9375rem;
	color: var(--mist);
	max-width: 62ch;
}
.ledger code {
	font-family: var(--mono);
	font-size: 0.8125rem;
	background: var(--elevated);
	padding: 1px 5px;
	border-radius: 2px;
}

/* Surfaces band */
.band {
	background: var(--elevated);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	margin-top: clamp(4rem, 10vw, 7rem);
	padding: clamp(3rem, 7vw, 5rem) 0;
}
.band section {
	padding: 0;
}
.surfaces {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	margin-top: 2.5rem;
}
.surface {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 26px 28px;
}
.surface h3 {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}
.surface p {
	font-size: 0.9375rem;
	color: var(--mist);
}
.surface pre {
	margin-top: 14px;
	font-family: var(--mono);
	font-size: 0.8125rem;
	line-height: 1.7;
	background: var(--elevated);
	border-radius: 3px;
	padding: 14px 16px;
	overflow-x: auto;
}

/* ---------- Pricing ---------- */

.pricing-box {
	margin-top: 3rem;
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: clamp(2rem, 5vw, 3rem);
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 24px;
	align-items: center;
}
.pricing-box h3 {
	font-size: 1.5rem;
}
.pricing-box p {
	color: var(--mist);
	font-size: 0.9375rem;
	max-width: 52ch;
	margin-top: 0.5rem;
}

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

footer {
	border-top: 1px solid var(--line);
	padding: 2.5rem 0 3rem;
}
.foot {
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: 72rem;
	margin: 0 auto;
	padding: 0 24px;
	font-size: 0.875rem;
	color: var(--mist);
}
.foot img {
	height: 20px;
	display: block;
}
.foot nav {
	margin-left: auto;
	display: flex;
	gap: 18px;
}
.foot a {
	color: var(--mist);
}

/* ---------- Console ---------- */

.console-body {
	background: var(--elevated);
	min-height: 100vh;
}
.console-shell {
	max-width: 60rem;
	margin: 0 auto;
	padding: 0 24px 64px;
}
.console-nav {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 20px 0 18px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 32px;
}
.console-nav .logo img {
	height: 22px;
	display: block;
}
.console-nav a {
	color: var(--ink);
	font-size: 0.9375rem;
	font-weight: 500;
}
.console-nav .active {
	text-decoration: underline;
	text-underline-offset: 5px;
	text-decoration-color: var(--moss);
}
.console-nav .who {
	margin-left: auto;
	font-size: 0.875rem;
	color: var(--mist);
}
.console-shell h1 {
	font-size: 1.75rem;
	letter-spacing: -0.01em;
	margin-bottom: 0.4rem;
}
.console-shell .sub {
	color: var(--mist);
	font-size: 0.9375rem;
	margin-bottom: 28px;
	max-width: 62ch;
}

.stat-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin: 24px 0 32px;
}
.stat {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 18px 20px;
}
.stat .n {
	font-family: var(--serif);
	font-size: 2rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.1;
}
.stat .l {
	font-size: 0.8125rem;
	color: var(--mist);
	margin-top: 4px;
}

.panel {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 24px 26px;
	margin-bottom: 24px;
}
.panel h2 {
	font-size: 1.125rem;
	font-family: var(--sans);
	font-weight: 600;
	margin-bottom: 14px;
}
.panel table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}
.panel td,
.panel th {
	text-align: left;
	padding: 8px 12px 8px 0;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}
.panel tr:last-child td {
	border-bottom: none;
}
.panel th {
	color: var(--mist);
	font-weight: 500;
	font-size: 0.8125rem;
}
.panel code {
	font-family: var(--mono);
	font-size: 0.8125rem;
	background: var(--elevated);
	padding: 1px 5px;
	border-radius: 2px;
}
.panel .dim {
	color: var(--mist);
}
.panel .good {
	color: var(--forest);
	font-weight: 600;
}
.panel .warn {
	color: var(--danger);
	font-weight: 600;
}
.panel p {
	font-size: 0.9375rem;
	color: var(--mist);
}
.panel p + p {
	margin-top: 0.6rem;
}

.signin-card {
	max-width: 26rem;
	margin: 12vh auto 0;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 40px 36px;
	text-align: center;
}
.signin-card img {
	height: 30px;
	margin-bottom: 20px;
}
.signin-card h1 {
	font-size: 1.5rem;
	margin-bottom: 0.6rem;
}
.signin-card p {
	color: var(--mist);
	font-size: 0.9375rem;
	margin-bottom: 24px;
}

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

@media (max-width: 860px) {
	.shot,
	.surfaces,
	.cols3 {
		grid-template-columns: 1fr;
	}
	.shot-col + .shot-col {
		border-left: none;
		border-top: 1px solid var(--line);
	}
	.ledger > div {
		grid-template-columns: 1fr;
		gap: 8px;
	}
	.stat-row {
		grid-template-columns: repeat(2, 1fr);
	}
	.pricing-box {
		grid-template-columns: 1fr;
	}
	.topnav {
		flex-wrap: wrap;
		gap: 16px;
	}
	.topnav .links {
		order: 3;
		width: 100%;
		margin-left: 0;
		flex-wrap: wrap;
		gap: 16px;
	}
	.topnav .cta {
		margin-left: auto;
	}
}
