/* Locals — company page only. Builds on site.css and ui.css. */

/* Hero */

.co-hero .crumbs {
	margin-bottom: 18px;
}

.co-hero h1 {
	font-size: clamp(42px, 4.6vw, 68px);
}

/* Hero visual: money in, settled, money out */

.io {
	position: relative;
	width: 100%;
	height: 590px;
	max-width: 560px;
	justify-self: end;
}

.io-wires {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.io-path,
.io-flow {
	fill: none;
	vector-effect: non-scaling-stroke;
}

.io-path {
	stroke: #c9c2ad;
	stroke-width: 2;
	stroke-dasharray: 4 6;
}

.io-flow {
	stroke: var(--forest-3);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-dasharray: 16 200;
	stroke-dashoffset: 16;
	opacity: 0;
}

.io-flow.run {
	opacity: 1;
	animation: io-flow 1.1s var(--ease-out) forwards;
}

@keyframes io-flow {
	to { stroke-dashoffset: -100; }
}

.io-card,
.io-hub {
	position: absolute;
	width: 300px;
	border-radius: 18px;
	transition: opacity 0.5s ease, transform 0.6s var(--ease-out), box-shadow 0.5s ease;
}

.io-card {
	padding: 16px 18px 14px;
	background: var(--white);
	border: 1px solid var(--line);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.8) inset,
		0 40px 80px -40px rgba(16, 41, 30, 0.45),
		0 14px 30px -22px rgba(16, 41, 30, 0.3);
}

.io-in {
	left: 0;
	top: 0;
}

.io-out {
	right: 0;
	top: 404px;
}

.io.is-run .io-card:not(.on),
.io.is-run .io-hub:not(.on) {
	opacity: 0.45;
	transform: scale(0.98);
}

.io-head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.io-head .fl {
	width: 34px;
	height: 34px;
}

.io-head b {
	display: block;
	font-size: 15px;
	letter-spacing: -0.01em;
}

.io-head small {
	display: block;
	font-size: 12px;
	color: var(--muted);
}

.io-head .state {
	margin-left: auto;
	font-size: 11.5px;
	padding: 4px 9px;
}

.state.io-early {
	background: var(--paper-2);
	color: var(--muted);
}

.io-amt {
	margin: 14px 0 12px;
	font-size: 30px;
	font-weight: 750;
	letter-spacing: -0.04em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.io-rows {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;
	padding-top: 10px;
	border-top: 1px solid var(--paper-2);
}

.io-rows > div:last-child {
	text-align: right;
}

.io-rows small {
	display: block;
	font-size: 11px;
	color: var(--muted);
}

.io-rows b {
	font-family: var(--mono);
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
}

.io-hub {
	left: 116px;
	top: 252px;
	width: 324px;
	display: grid;
	grid-template-columns: 44px 1fr;
	gap: 10px 12px;
	align-items: center;
	padding: 14px 16px;
	color: var(--white);
	background:
		radial-gradient(120% 160% at 100% 0%, rgba(200, 241, 105, 0.32), transparent 60%),
		var(--forest);
	box-shadow: 0 40px 70px -34px rgba(11, 31, 22, 0.7);
	z-index: 1;
}

.io-mark {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--line-dark);
	--mk-a: var(--paper);
	--mk-c: var(--lime);
}

.io-mark svg {
	width: 26px;
	height: 26px;
}

.io-hub-main small {
	display: block;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.6);
}

.io-hub-main b {
	font-family: var(--mono);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.03em;
}

.io-hub-main em {
	font-style: normal;
	font-size: 12.5px;
	color: var(--lime);
	margin-left: 6px;
}

.io-ticks {
	grid-column: 1 / -1;
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 6px;
}

.io-ticks li {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 9px 4px 6px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 650;
	color: var(--lime);
	background: rgba(200, 241, 105, 0.1);
	border: 1px solid rgba(200, 241, 105, 0.18);
	--ic-fill: rgba(200, 241, 105, 0.18);
	transition: opacity 0.4s ease;
}

.io-ticks .ic {
	width: 15px;
	height: 15px;
}

.io.is-run .io-ticks li:not(.on) {
	opacity: 0.3;
}

.io-chip {
	top: 58px;
	right: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	font-family: var(--mono);
	font-size: 12.5px;
	background: #0a1a12;
	color: #d9e4dc;
	border-color: rgba(255, 255, 255, 0.08);
}

.io-chip-in {
	top: auto;
	right: auto;
	left: -40px;
	bottom: 112px;
}

.io-chip b {
	color: var(--lime);
	font-weight: 600;
}

.io-chip .ic {
	width: 18px;
	height: 18px;
	color: var(--lime);
	--ic-fill: rgba(200, 241, 105, 0.2);
}

/* Mission statement */

.co-value {
	padding: 120px 0 110px;
}

.co-value .mono-kicker {
	margin-bottom: 28px;
}

.co-value .statement {
	margin-bottom: 0;
}

.co-facts {
	grid-template-columns: repeat(3, 1fr);
}

/* What Locals is: layers */

.co-what {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
	gap: 64px;
	align-items: center;
}

.layers {
	position: relative;
	display: grid;
	gap: 14px;
}

.lyr-line {
	position: absolute;
	left: 21px;
	top: 30px;
	bottom: 30px;
	width: 2px;
	background: var(--paper-2);
}

.lyr-line i {
	position: absolute;
	left: -3px;
	width: 8px;
	height: 44px;
	margin-top: -22px;
	top: 0;
	border-radius: 4px;
	background: var(--lime-2);
	box-shadow: 0 0 14px 3px rgba(200, 241, 105, 0.6);
	transition: top 0.8s var(--ease-out);
}

.lyr {
	position: relative;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}

.lyr-n {
	position: relative;
	z-index: 1;
	width: 44px;
	height: 44px;
	margin-top: 14px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--muted);
	background: var(--white);
	border: 1px solid var(--line);
	transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.lyr.on .lyr-n {
	background: var(--forest);
	border-color: var(--forest);
	color: var(--lime);
}

.lyr-body {
	padding: 16px 18px;
	border-radius: 18px;
	background: var(--paper);
	border: 1px solid var(--line);
	transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease, border-color 0.5s ease;
}

.lyr.on .lyr-body {
	transform: translateX(6px);
	border-color: #b9cfa6;
	box-shadow: 0 26px 44px -30px rgba(16, 41, 30, 0.5);
}

.lyr-top {
	display: flex;
	align-items: center;
	gap: 12px;
}

.lyr-top .ic-box {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	display: grid;
	place-items: center;
	flex-shrink: 0;
	background: var(--white);
	border: 1px solid var(--line);
	color: var(--forest);
}

.lyr-top .brand svg {
	width: 22px;
	height: 22px;
}

.lyr-top strong {
	display: block;
	font-size: 16px;
	letter-spacing: -0.015em;
}

.lyr-top small {
	display: block;
	font-size: 13px;
	color: var(--muted);
}

.lyr-tag {
	margin-left: auto;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--white);
	border: 1px solid var(--line);
	color: var(--muted);
}

.lyr-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 12px;
}

.lc {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px 4px 8px;
	border-radius: 999px;
	background: var(--white);
	border: 1px solid var(--line);
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
}

.lc .ic {
	width: 15px;
	height: 15px;
	color: var(--forest);
}

.lc .fl {
	width: 18px;
	height: 18px;
	margin-left: -3px;
}

.lyr-chips.mono .lc {
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 500;
}

.lc small {
	font-weight: 500;
	color: var(--muted);
}

.dotst {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #b7b2a3;
	flex-shrink: 0;
}

.dotst.live {
	background: #3fae2a;
}

.dotst.soon {
	background: var(--amber);
}

.lyr-api .lyr-body {
	background:
		radial-gradient(90% 120% at 100% 0%, rgba(200, 241, 105, 0.22), transparent 60%),
		var(--forest);
	border-color: var(--forest);
	color: var(--white);
}

.lyr-api.on .lyr-body {
	border-color: var(--forest);
}

.lyr-api .lyr-top .ic-box {
	background: rgba(255, 255, 255, 0.06);
	border-color: var(--line-dark);
	--mk-a: var(--paper);
	--mk-c: var(--lime);
}

.lyr-api .lyr-top small {
	color: rgba(255, 255, 255, 0.6);
}

.lyr-api .lyr-tag {
	background: var(--lime);
	border-color: var(--lime);
	color: var(--forest);
}

.lyr-api .lc {
	background: rgba(255, 255, 255, 0.06);
	border-color: var(--line-dark);
	color: #d9e4dc;
}

.lyr-api .lc .ic {
	color: var(--lime);
	--ic-fill: rgba(200, 241, 105, 0.2);
}

.co-checks {
	margin-top: 0;
}

.co-legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	margin: 0 0 22px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	font-size: 14px;
	color: var(--muted);
}

.co-legend > span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

/* The shared CTA follows the dark compliance section */
#compliance + .cta-band {
	padding-top: 120px;
}

/* Principles */

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

.pr {
	display: flex;
	flex-direction: column;
	padding: 26px;
	border-radius: 22px;
	background: var(--white);
	border: 1px solid var(--line);
	transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.pr:hover {
	transform: translateY(-4px);
	box-shadow: 0 30px 50px -36px rgba(16, 41, 30, 0.5);
}

.pr-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 26px;
}

.pr-top .ic-box {
	width: 46px;
	height: 46px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: var(--forest);
	color: var(--lime);
	--ic-fill: rgba(200, 241, 105, 0.22);
}

.pr-top .ic {
	width: 24px;
	height: 24px;
}

.pr-n {
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--muted);
}

.pr h4 {
	font-size: 20px;
	margin-bottom: 8px;
}

.pr p {
	color: var(--ink-2);
	font-size: 15.5px;
	margin: 0 0 22px;
}

.pr-proof {
	margin-top: auto;
	align-self: flex-start;
	font-size: 12.5px;
	color: var(--forest-3);
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 5px 9px;
}

/* Compliance */

.co-comp {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 28px;
	align-items: stretch;
}

.co-guard {
	align-self: start;
	padding: 20px;
	border-radius: 22px;
	background: var(--white);
	color: var(--ink);
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
	--ic-fill: rgba(200, 241, 105, 0.55);
}

.cg-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--paper-2);
}

.cg-head .fl {
	width: 34px;
	height: 34px;
}

.cg-head b {
	display: block;
	font-size: 15px;
}

.cg-head > div {
	min-width: 0;
}

.cg-head small {
	display: block;
	font-family: var(--mono);
	font-size: 12px;
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cg-head .state {
	margin-left: auto;
	font-size: 11.5px;
	padding: 4px 9px;
	white-space: nowrap;
}

.cg-row {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid var(--paper-2);
	font-size: 14px;
	transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
}

.co-guard.is-run .cg-row:not(.show) {
	opacity: 0;
	transform: translateY(8px);
}

.cg-ic {
	width: 36px;
	height: 36px;
	border-radius: 11px;
	display: grid;
	place-items: center;
}

.cg-ic .ic {
	width: 19px;
	height: 19px;
}

.cg-row.ok .cg-ic {
	background: #eef8e2;
	color: #2e6b1f;
	--ic-fill: rgba(63, 174, 42, 0.2);
}

.cg-row.held .cg-ic {
	background: #fbefd6;
	color: #7a4f05;
	--ic-fill: rgba(242, 179, 61, 0.3);
}

.cg-row strong {
	display: block;
	font-weight: 650;
}

.cg-row small {
	display: block;
	font-family: var(--mono);
	font-size: 11.5px;
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cg-amt {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	font-family: var(--mono);
	font-weight: 600;
	white-space: nowrap;
}

.cg-amt .st {
	font-family: var(--font);
	font-size: 11.5px;
	font-weight: 650;
	padding: 3px 9px;
	border-radius: 999px;
	transition: background 0.3s ease, color 0.3s ease;
}

.cg-row.ok .st {
	background: #e4f6cf;
	color: #24531a;
}

.cg-row.held .st {
	background: #fbefd6;
	color: #7a4f05;
}

.cg-row .st.checking {
	background: var(--paper-2);
	color: var(--muted);
}

.cg-note {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--paper);
	font-size: 13.5px;
	color: var(--ink-2);
	transition: opacity 0.4s ease;
}

.cg-note .ic {
	width: 18px;
	height: 18px;
	color: var(--forest);
}

.co-guard.is-run .cg-note:not(.show) {
	opacity: 0;
}

.cg-foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 6px 12px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed var(--line);
}

.cg-foot code {
	font-size: 12px;
	color: var(--forest-3);
}

.cg-foot span {
	font-size: 12.5px;
	color: var(--muted);
}

.co-trust {
	grid-template-columns: 1fr 1fr;
}

.co-trust > div {
	padding: 28px 26px;
}

.co-trust .ico {
	margin-bottom: 22px;
}

/* Responsive */

@media (max-width: 1080px) {
	.io {
		justify-self: start;
		margin-top: 16px;
	}

	.co-what,
	.co-comp {
		grid-template-columns: minmax(0, 1fr);
	}

	.co-what {
		gap: 48px;
	}

	.co-princ {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 680px) {
	.io {
		height: auto;
		display: grid;
		gap: 26px;
	}

	.io-wires,
	.io-chip {
		display: none;
	}

	.io-card,
	.io-hub {
		position: relative;
		left: auto;
		right: auto;
		top: auto;
		width: auto;
	}

	.io-hub::before,
	.io-out::before {
		content: '';
		position: absolute;
		left: 50%;
		top: -24px;
		height: 22px;
		border-left: 2px dashed #c9c2ad;
	}

	.io-amt {
		font-size: 27px;
	}

	.io-ticks {
		flex-wrap: wrap;
	}

	.co-value {
		padding: 80px 0;
	}

	#compliance + .cta-band {
		padding-top: 80px;
	}

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

	.lyr {
		grid-template-columns: 32px minmax(0, 1fr);
		gap: 10px;
	}

	.lyr-n {
		width: 32px;
		height: 32px;
		font-size: 11.5px;
	}

	.lyr-line {
		left: 15px;
	}

	.lyr-body {
		padding: 14px;
	}

	.lyr.on .lyr-body {
		transform: none;
	}

	.lyr-tag {
		display: none;
	}

	.co-princ,
	.co-trust {
		grid-template-columns: minmax(0, 1fr);
	}

	.co-guard {
		padding: 16px;
	}

	.cg-row small {
		white-space: normal;
	}

}

/* Screenshots and reduced motion show the final state */

.shot .io-flow {
	animation: none;
	opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
	.io-flow {
		animation: none;
		opacity: 0;
	}
}
