:root {
	--ink: #0b1530;
	--ink-2: #16234a;
	--paper: #f4f6fb;
	--tint: #e7ebf5;
	--card: #ffffff;
	--line: #dce2ee;
	--text: #141c33;
	--muted: #55607a;
	--signal: #e11d74;
	--signal-d: #be185d;
	--signal-rgb: 225, 29, 116;
	--signal-light: #ff8fc0;
	--signal-soft: #fdeef5;
	--signal-line: #f9c6dc;
	--cre: #4338ca;
	--cre-soft: #eceafd;
	--merchant: #0f9488;
	--merchant-soft: #e0f5f2;
	--est: #b7791f;
	--est-soft: #fdf3e1;
	--ai: #7c3aed;
	--ai-soft: #f1eafe;
	--map-bg: #0e1a38;
	--map-grid: rgba(255, 255, 255, 0.05);
	--radius: 14px;
	--shadow: 0 1px 2px rgba(12, 22, 34, 0.06), 0 8px 24px rgba(12, 22, 34, 0.06);
	--display: "Archivo", system-ui, sans-serif;
	--body: "Inter", system-ui, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 72px;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
	font-family: var(--display);
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin: 0;
	color: var(--ink);
}

h2 {
	font-size: clamp(1.7rem, 4vw, 2.6rem);
	font-weight: 800;
	margin-bottom: 14px;
}

h3 {
	font-size: 1.05rem;
	font-weight: 700;
}

p {
	margin: 0;
}

a {
	color: inherit;
}

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

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.wrap {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.eyebrow {
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--signal-d);
	margin-bottom: 12px;
	font-weight: 600;
}

.eyebrow-light {
	color: var(--signal-light);
}

.lede {
	color: var(--muted);
	font-size: 1.08rem;
	max-width: 60ch;
}

.hint {
	color: var(--muted);
	font-size: 0.9rem;
	margin-top: 10px;
}

.small {
	font-size: 0.8rem;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 10px;
	border: 1px solid transparent;
	font: 600 0.92rem var(--body);
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s, transform 0.15s, border-color 0.15s;
	white-space: nowrap;
}

.btn:active {
	transform: translateY(1px);
}

.btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

.btn-primary {
	background: var(--signal);
	color: #fff;
}

.btn-primary:hover {
	background: var(--signal-d);
}

.btn-dark {
	background: var(--ink);
	color: #fff;
}

.btn-ghost {
	background: transparent;
	color: var(--ink);
}

.btn-ghost:hover {
	background: var(--tint);
}

.btn-outline {
	background: #fff;
	color: var(--ink);
	border-color: var(--line);
}

.btn-outline:hover {
	border-color: var(--ink);
}

.btn-secondary {
	background: #fff;
	border-color: var(--line);
	color: var(--ink);
}

.btn-glass {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.3);
	color: #fff;
	backdrop-filter: blur(6px);
}

.btn-glass:hover {
	background: rgba(255, 255, 255, 0.18);
}

.btn-lg {
	min-height: 52px;
	padding: 0 24px;
	font-size: 1rem;
}

.btn-block {
	width: 100%;
}

.icon-btn {
	width: 40px;
	height: 40px;
	display: inline-grid;
	place-items: center;
	border-radius: 10px;
	border: 1px solid var(--line);
	background: #fff;
	color: var(--ink);
	font-size: 1.2rem;
	cursor: pointer;
	flex-shrink: 0;
}

.link-btn {
	background: none;
	border: 0;
	padding: 6px 0;
	color: var(--cre);
	font: 600 0.85rem var(--body);
	cursor: pointer;
	min-height: 32px;
}

.link-btn:hover {
	text-decoration: underline;
}

/* Logo */
.logo {
	display: inline-flex;
	align-items: center;
	gap: 9px;
}

.logo .arc {
	fill: none;
	stroke-width: 2.6;
	stroke-linecap: round;
}

.arc-cre {
	stroke: var(--cre);
}

.arc-merchant {
	stroke: var(--merchant);
}

.arc-faint {
	opacity: 0.45;
}

.logo-word {
	font-family: var(--display);
	font-weight: 900;
	letter-spacing: 0.18em;
	font-size: 1.05rem;
	color: var(--ink);
}

.logo-link {
	text-decoration: none;
}

.logo svg {
	flex-shrink: 0;
	filter: drop-shadow(0 2px 6px rgba(var(--signal-rgb), 0.28));
}

.logo-wave {
	fill: none;
	stroke: #fff;
	stroke-width: 2.2;
	stroke-linecap: round;
}

.logo-wave-faint {
	opacity: 0.55;
}

/* Top bar */
.topbar {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(244, 246, 251, 0.88);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}

.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: 64px;
}

.nav {
	display: none;
}

.nav a {
	text-decoration: none;
	font-weight: 500;
	font-size: 0.92rem;
	color: var(--muted);
	padding: 8px 12px;
	border-radius: 8px;
}

.nav a:hover {
	color: var(--ink);
	background: var(--tint);
}

.nav.open {
	display: flex;
	flex-direction: column;
	position: absolute;
	top: 64px;
	left: 0;
	right: 0;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	padding: 8px 20px 16px;
}

.topbar-actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.user-chip {
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 6px 12px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 999px;
}

.hide-sm {
	display: none;
}

@media (max-width: 899px) {
	.user-chip {
		display: none;
	}

	.topbar-actions .btn {
		padding: 0 12px;
	}
}

@media (min-width: 900px) {
	.nav,
	.nav.open {
		display: flex;
		position: static;
		flex-direction: row;
		background: none;
		border: 0;
		padding: 0;
		gap: 2px;
	}

	.menu-btn {
		display: none;
	}

	.hide-sm {
		display: inline-flex;
	}

	.user-chip {
		max-width: 220px;
	}
}

/* Hero */
.hero {
	position: relative;
	background: var(--ink);
	color: #fff;
	overflow: hidden;
}

.hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.55;
}

.hero-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(11, 21, 48, 0.97) 0%, rgba(11, 21, 48, 0.88) 55%, rgba(67, 56, 202, 0.55) 100%);
}

.hero-inner {
	position: relative;
	padding-top: 72px;
	padding-bottom: 72px;
}

.hero h1 {
	color: #fff;
	font-size: clamp(2.3rem, 7vw, 4.6rem);
	font-weight: 900;
	letter-spacing: -0.035em;
	max-width: 16ch;
}

.hero-lede {
	margin-top: 20px;
	max-width: 58ch;
	color: rgba(255, 255, 255, 0.82);
	font-size: 1.1rem;
}

.hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.hero-modules {
	display: grid;
	gap: 12px;
	margin-top: 44px;
	max-width: 720px;
}

.hm {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 16px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-left-width: 4px;
}

.hm b {
	font-family: var(--display);
	font-size: 1.05rem;
}

.hm span {
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.7);
}

.hm-cre {
	border-left-color: var(--cre);
}

.hm-merchant {
	border-left-color: var(--merchant);
}

@media (min-width: 640px) {
	.hero-modules {
		grid-template-columns: 1fr 1fr;
	}
}

/* At a glance */
.glance {
	background: #fff;
	border-bottom: 1px solid var(--line);
}

.glance-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.glance-grid > div {
	padding: 18px 12px;
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.glance-grid span {
	font-family: var(--mono);
	font-size: 0.66rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.glance-grid b {
	font-family: var(--display);
	font-size: 0.98rem;
	color: var(--ink);
}

@media (min-width: 900px) {
	.glance-grid {
		grid-template-columns: repeat(6, 1fr);
	}

	.glance-grid > div {
		border-bottom: 0;
	}

	.glance-grid > div:last-child {
		border-right: 0;
	}
}

.verify-bar {
	margin-top: 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	padding: 12px 16px;
	background: var(--est-soft);
	border: 1px solid #f1d9a8;
	border-radius: 12px;
	font-size: 0.9rem;
}

.verify-msg {
	color: var(--muted);
}

/* Console */
.console {
	padding: 56px 0 24px;
}

.console-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	flex-wrap: wrap;
}

.sample-tag {
	font-family: var(--mono);
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--est-soft);
	color: var(--est);
	border: 1px dashed var(--est);
	font-weight: 700;
}

.console-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 8px 0 18px;
	align-items: center;
}

.seg {
	display: inline-flex;
	flex-wrap: wrap;
	padding: 4px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	gap: 2px;
}

.seg-btn {
	border: 0;
	background: transparent;
	padding: 8px 14px;
	min-height: 38px;
	border-radius: 9px;
	font: 600 0.86rem var(--body);
	color: var(--muted);
	cursor: pointer;
}

.seg-btn.on {
	color: #fff;
	background: var(--ink);
}

.seg-btn.seg-cre.on {
	background: var(--cre);
}

.seg-btn.seg-merchant.on {
	background: var(--merchant);
}

.seg-lg {
	margin: 10px 0 24px;
}

.seg-lg .seg-btn {
	padding: 10px 20px;
	font-size: 0.95rem;
}

.select {
	min-height: 46px;
	padding: 0 36px 0 14px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235b6672'/%3E%3C/svg%3E") no-repeat right 14px center;
	appearance: none;
	font: 500 0.88rem var(--body);
	color: var(--ink);
	max-width: 100%;
}

.chip-focus {
	min-height: 38px;
	border: 1px solid var(--signal);
	color: var(--signal-d);
	background: var(--signal-soft);
	border-radius: 999px;
	padding: 0 14px;
	font: 600 0.82rem var(--body);
	cursor: pointer;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.console-grid {
	display: grid;
	gap: 16px;
}

@media (min-width: 960px) {
	.console-grid {
		grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
	}
}

.map-card {
	background: var(--map-bg);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
}

.map-svg {
	display: block;
	width: 100%;
	height: auto;
	background: radial-gradient(ellipse at 60% 40%, #17304a 0%, var(--map-bg) 70%);
}

.road {
	fill: none;
	stroke: rgba(255, 255, 255, 0.16);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.road-label {
	font: 600 10px var(--mono);
	fill: rgba(255, 255, 255, 0.38);
}

.city-label {
	font: 700 11px var(--mono);
	letter-spacing: 0.12em;
	fill: rgba(255, 255, 255, 0.55);
}

.watch-ring {
	fill: rgba(var(--signal-rgb), 0.06);
	stroke: rgba(var(--signal-rgb), 0.5);
	stroke-dasharray: 4 4;
	stroke-width: 1.5;
}

.watch-ring.on {
	fill: rgba(var(--signal-rgb), 0.14);
	stroke: var(--signal);
}

.pin {
	cursor: pointer;
	outline: none;
}

.pin-dot {
	stroke: #fff;
	stroke-width: 2;
	transition: r 0.15s;
}

.pin-cre .pin-dot {
	fill: var(--cre);
}

.pin-merchant .pin-dot {
	fill: var(--merchant);
}

.pin-both .pin-dot {
	fill: var(--signal);
}

.pin-core {
	fill: #fff;
}

.pin:focus-visible .pin-dot,
.pin:hover .pin-dot {
	stroke: var(--signal-line);
	stroke-width: 3;
}

.pin-pulse {
	fill: none;
	stroke: #fff;
	stroke-width: 1.5;
	opacity: 0.7;
	animation: pulse 1.8s ease-out infinite;
	transform-origin: center;
	transform-box: fill-box;
}

@keyframes pulse {
	from {
		transform: scale(0.5);
		opacity: 0.9;
	}
	to {
		transform: scale(1.4);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pin-pulse {
		animation: none;
	}
}

.map-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	padding: 12px 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.7);
}

.map-legend span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.lg {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
}

.lg-cre {
	background: var(--cre);
}

.lg-merchant {
	background: var(--merchant);
}

.lg-both {
	background: var(--signal);
}

.lg-ring {
	border: 1.5px dashed var(--signal);
}

.detail-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px;
	box-shadow: var(--shadow);
	scroll-margin-top: 80px;
}

.detail-top {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.mod-tag {
	font: 700 0.7rem var(--mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 4px 8px;
	border-radius: 6px;
}

.mod-cre {
	background: var(--cre-soft);
	color: var(--cre);
}

.mod-merchant {
	background: var(--merchant-soft);
	color: var(--merchant);
}

.mod-both {
	background: var(--signal-soft);
	color: var(--signal-d);
}

.kind {
	display: inline-block;
	font: 700 0.68rem var(--mono);
	letter-spacing: 0.04em;
	padding: 3px 8px;
	border-radius: 999px;
	white-space: nowrap;
}

.kind-fact {
	background: #e7f6ec;
	color: #18794e;
}

.kind-est {
	background: var(--est-soft);
	color: var(--est);
}

.kind-ai {
	background: var(--ai-soft);
	color: var(--ai);
}

.detail-title {
	font-size: 1.3rem;
	font-weight: 800;
}

.detail-place {
	color: var(--muted);
	font-size: 0.88rem;
	margin-top: 4px;
}

.detail-summary {
	margin-top: 12px;
	font-size: 0.95rem;
}

.facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 16px 0 0;
}

.facts div {
	background: var(--paper);
	border-radius: 10px;
	padding: 10px;
	min-width: 0;
}

.facts dt {
	font: 600 0.62rem var(--mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.facts dd {
	margin: 2px 0 0;
	font-weight: 700;
	font-size: 0.88rem;
	overflow-wrap: anywhere;
}

.angles {
	margin-top: 14px;
	display: grid;
	gap: 8px;
	font-size: 0.88rem;
}

.t-cre {
	color: var(--cre);
}

.t-merchant {
	color: var(--merchant);
}

.provenance {
	margin-top: 16px;
	border-top: 1px dashed var(--line);
	padding-top: 14px;
}

.prov-title {
	font: 700 0.68rem var(--mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 8px;
}

.prov-grid {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 14px;
	font-size: 0.84rem;
}

.prov-grid span {
	color: var(--muted);
}

.conf-high {
	color: #18794e;
}

.conf-medium {
	color: var(--est);
}

.conf-low {
	color: #c2410c;
}

.detail-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}

.save-msg {
	margin-top: 10px;
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--ink);
}

.disclaimer {
	margin-top: 14px;
	font-size: 0.74rem;
	color: var(--muted);
}

/* AI research report */
.btn-report {
	background: var(--ai);
	color: #fff;
	border-color: var(--ai);
}

.btn-report:hover {
	background: #6a2bd6;
}

.feed-row {
	display: flex;
	gap: 6px;
	align-items: stretch;
}

.feed-row .feed-item {
	flex: 1;
	min-width: 0;
}

.feed-report {
	order: 2;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-width: 56px;
	padding: 6px 8px;
	border: 1px solid #ddd0fb;
	border-radius: 12px;
	background: var(--ai-soft);
	color: var(--ai);
	font: 700 0.95rem var(--body);
	cursor: pointer;
}

.feed-report:hover {
	background: #e6dafd;
	border-color: var(--ai);
}

.feed-report-text {
	font: 700 0.64rem var(--mono);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.dialog.report-dialog {
	max-width: 640px;
	padding: 26px 22px 20px;
}

.report-dialog h2 {
	font-size: 1.35rem;
	line-height: 1.2;
	padding-right: 40px;
	outline: none;
}

.report-place {
	color: var(--muted);
	font-size: 0.88rem;
	margin: 2px 0 14px;
}

.report-inputs {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 10px 14px;
	font-size: 0.84rem;
}

.report-inputs ul {
	margin: 4px 0 0;
	padding-left: 18px;
}

.report-inputs li + li {
	margin-top: 2px;
}

.report-label {
	font: 700 0.66rem var(--mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0;
}

.report-start {
	margin-top: 16px;
	display: grid;
	gap: 12px;
	justify-items: start;
	font-size: 0.92rem;
}

.report-busy {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
	padding: 16px;
	border-radius: 12px;
	background: var(--ai-soft);
	color: var(--ai);
	font-weight: 600;
}

.report-busy .spinner {
	border-top-color: var(--ai);
}

.report-error {
	margin-top: 14px;
}

.report-body {
	margin-top: 16px;
	display: grid;
	gap: 12px;
}

.report-overview {
	margin: 0;
	font-size: 0.95rem;
	color: var(--text);
}

.report-sec {
	border-radius: 12px;
	padding: 12px 14px;
	border-left: 4px solid;
}

.report-sec-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 2px 10px;
	margin-bottom: 6px;
}

.report-sec h3 {
	font-size: 0.95rem;
	margin: 0;
}

.report-sec-head span {
	font: 600 0.68rem var(--mono);
	color: var(--muted);
}

.report-sec ul {
	margin: 0;
	padding-left: 18px;
	font-size: 0.88rem;
}

.report-sec li + li {
	margin-top: 4px;
}

.sec-fact {
	background: #f1faf4;
	border-color: #18794e;
}

.sec-fact h3 {
	color: #18794e;
}

.sec-est {
	background: var(--est-soft);
	border-color: var(--est);
}

.sec-est h3 {
	color: var(--est);
}

.sec-ai {
	background: var(--ai-soft);
	border-color: var(--ai);
}

.sec-ai h3 {
	color: var(--ai);
}

.sec-q {
	background: var(--paper);
	border-color: var(--ink);
}

.report-none {
	margin: 0;
	font-size: 0.85rem;
	color: var(--muted);
}

.report-foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	font: 600 0.72rem var(--mono);
	color: var(--muted);
}

.report-disclaimer {
	margin: 16px 0 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	color: #7c2d12;
	font-size: 0.78rem;
}

.lower-grid {
	display: grid;
	gap: 16px;
	margin-top: 16px;
}

@media (min-width: 960px) {
	.lower-grid {
		grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
	}
}

.feed,
.watch {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px;
	box-shadow: var(--shadow);
	min-width: 0;
}

.panel-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 12px;
}

.count {
	font: 600 0.74rem var(--mono);
	color: var(--muted);
}

.feed-list,
.watch-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.feed-list {
	max-height: 520px;
	overflow-y: auto;
}

.feed-item {
	width: 100%;
	display: flex;
	gap: 12px;
	text-align: left;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 12px;
	cursor: pointer;
	font: inherit;
	color: inherit;
	transition: border-color 0.15s, background 0.15s;
}

.feed-item:hover {
	border-color: #c9c2b3;
}

.feed-item.on {
	border-color: var(--ink);
	background: var(--paper);
}

.feed-bar {
	width: 4px;
	border-radius: 4px;
	flex-shrink: 0;
}

.bar-cre {
	background: var(--cre);
}

.bar-merchant {
	background: var(--merchant);
}

.bar-both {
	background: linear-gradient(var(--cre), var(--merchant));
}

.feed-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.feed-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	align-items: center;
	font: 600 0.7rem var(--mono);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
}

.feed-title {
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--ink);
}

.watch-cta {
	background: var(--paper);
	border-radius: 12px;
	padding: 14px;
	margin-bottom: 12px;
	display: grid;
	gap: 10px;
	font-size: 0.88rem;
}

.watch-cta .btn {
	justify-self: start;
}

.watch-item {
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 12px;
	display: grid;
	gap: 8px;
}

.watch-item.on {
	border-color: var(--signal);
	background: var(--signal-soft);
}

.watch-main {
	display: flex;
	gap: 10px;
	min-width: 0;
}

.mod-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin-top: 6px;
	flex-shrink: 0;
}

.dot-cre {
	background: var(--cre);
}

.dot-merchant {
	background: var(--merchant);
}

.watch-name {
	font-weight: 700;
	font-size: 0.92rem;
	overflow-wrap: anywhere;
}

.watch-sub {
	font-size: 0.78rem;
	color: var(--muted);
}

.watch-note {
	font-size: 0.8rem;
	margin-top: 4px;
	color: var(--text);
}

.watch-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
	padding-left: 20px;
}

.watch-actions .icon-btn {
	width: 36px;
	height: 36px;
}

.toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 0.82rem;
	font-weight: 600;
	min-height: 36px;
	position: relative;
}

.toggle input {
	position: absolute;
	opacity: 0;
	width: 36px;
	height: 22px;
	margin: 0;
	cursor: pointer;
}

.toggle-track {
	width: 36px;
	height: 22px;
	border-radius: 999px;
	background: #cfd5dc;
	position: relative;
	transition: background 0.15s;
}

.toggle-track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.15s;
}

.toggle input:checked + .toggle-track {
	background: var(--merchant);
}

.toggle input:checked + .toggle-track::after {
	transform: translateX(14px);
}

.toggle input:focus-visible + .toggle-track {
	outline: 3px solid var(--signal);
	outline-offset: 2px;
}

/* Bands */
.band {
	padding: 72px 0;
}

.band-tint {
	background: var(--tint);
}

.band-ink {
	background: var(--ink);
	color: #fff;
}

.band-ink h2,
.band-ink h3 {
	color: #fff;
}

.two-col {
	display: grid;
	gap: 32px;
	align-items: start;
}

@media (min-width: 900px) {
	.two-col {
		grid-template-columns: 1fr 1fr;
		gap: 56px;
	}
}

.problem-cards {
	display: grid;
	gap: 14px;
}

.pcard {
	background: #fff;
	border: 1px solid var(--line);
	border-top: 4px solid;
	border-radius: var(--radius);
	padding: 20px;
}

.pcard-cre {
	border-top-color: var(--cre);
}

.pcard-merchant {
	border-top-color: var(--merchant);
}

.pcard-label {
	font: 700 0.72rem var(--mono);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 10px;
	color: var(--muted);
}

.pcard ul,
.phase ul,
.plan ul,
.quality-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}

.pcard li,
.phase li,
.plan li {
	padding-left: 20px;
	position: relative;
	font-size: 0.92rem;
}

.pcard li::before,
.phase li::before,
.plan li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.6em;
	width: 8px;
	height: 2px;
	background: var(--signal);
}

/* Platform diagram */
.stack-diagram {
	display: grid;
	gap: 10px;
	margin-top: 28px;
}

.layer {
	border-radius: var(--radius);
	padding: 18px 20px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.04);
}

.layer p {
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.92rem;
	margin-top: 6px;
}

.layer-tag {
	font: 700 0.72rem var(--mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.layer-top .layer-tag {
	color: var(--signal-light);
}

.layer-cre {
	background: rgba(49, 87, 245, 0.16);
	border-color: rgba(49, 87, 245, 0.5);
}

.layer-cre .layer-tag {
	color: #9db0ff;
}

.layer-merchant {
	background: rgba(12, 154, 122, 0.16);
	border-color: rgba(12, 154, 122, 0.5);
}

.layer-merchant .layer-tag {
	color: #6fe0c2;
}

.layer-base {
	background: rgba(var(--signal-rgb), 0.12);
	border-color: rgba(var(--signal-rgb), 0.45);
}

.layer-base .layer-tag {
	color: var(--signal-light);
}

.layer-pair {
	display: grid;
	gap: 10px;
}

@media (min-width: 720px) {
	.layer-pair {
		grid-template-columns: 1fr 1fr;
	}
}

/* Features */
.feature-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr;
}

@media (min-width: 600px) {
	.feature-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1000px) {
	.feature-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.feature {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px;
	min-height: 120px;
}

.feature p {
	color: var(--muted);
	font-size: 0.88rem;
	margin-top: 6px;
}

.fg-cre .feature h3 {
	color: var(--cre);
}

.fg-merchant .feature h3 {
	color: var(--merchant);
}

.usecase {
	margin-top: 18px;
	border-radius: var(--radius);
	padding: 20px;
	display: grid;
	gap: 6px;
	font-size: 0.98rem;
}

.uc-cre {
	background: var(--cre-soft);
}

.uc-merchant {
	background: var(--merchant-soft);
}

.uc-label {
	font: 700 0.7rem var(--mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

/* Cross-market visual */
.split-visual {
	background: #fff;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	padding: 24px;
	display: grid;
	gap: 0;
	justify-items: center;
	box-shadow: var(--shadow);
}

.sv-source {
	display: grid;
	justify-items: center;
	gap: 4px;
	text-align: center;
	padding: 16px 20px;
	border-radius: 12px;
	background: var(--signal-soft);
	border: 1px solid var(--signal-line);
}

.sv-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--signal);
	box-shadow: 0 0 0 6px rgba(var(--signal-rgb), 0.18);
}

.sv-source small,
.sv-out small {
	color: var(--muted);
	font-size: 0.8rem;
}

.sv-lines {
	display: flex;
	gap: 40%;
	width: 60%;
	height: 36px;
	justify-content: center;
}

.sv-lines span {
	width: 2px;
	background: repeating-linear-gradient(var(--line) 0 4px, transparent 4px 8px);
}

.sv-outs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	width: 100%;
}

.sv-out {
	display: grid;
	gap: 2px;
	padding: 14px;
	border-radius: 12px;
	text-align: center;
}

.sv-cre {
	background: var(--cre-soft);
	color: var(--cre);
}

.sv-merchant {
	background: var(--merchant-soft);
	color: var(--merchant);
}

/* Segments */
.segment-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr;
	margin-top: 20px;
}

@media (min-width: 600px) {
	.segment-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1000px) {
	.segment-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.segment {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 16px;
	border-left: 4px solid;
}

.segment p {
	color: var(--muted);
	font-size: 0.86rem;
	margin-top: 4px;
}

.seg-c {
	border-left-color: var(--cre);
}

.seg-m {
	border-left-color: var(--merchant);
}

/* Positioning table */
.pos-table {
	margin-top: 20px;
	display: grid;
	gap: 8px;
}

.pos-row {
	display: grid;
	gap: 4px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 14px 16px;
	font-size: 0.9rem;
}

.pos-row span[data-label]::before {
	content: attr(data-label);
	display: block;
	font: 600 0.62rem var(--mono);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted);
}

.pos-head {
	display: none;
}

.pos-diff {
	color: var(--ink);
	font-weight: 600;
}

@media (min-width: 800px) {
	.pos-table {
		gap: 0;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		overflow: hidden;
	}

	.pos-row {
		grid-template-columns: 1fr 1fr 1.4fr;
		gap: 16px;
		border: 0;
		border-bottom: 1px solid var(--line);
		border-radius: 0;
	}

	.pos-row:last-child {
		border-bottom: 0;
	}

	.pos-row span[data-label]::before {
		display: none;
	}

	.pos-head {
		display: grid;
		background: var(--ink);
		color: #fff;
		font: 700 0.7rem var(--mono);
		text-transform: uppercase;
		letter-spacing: 0.1em;
	}
}

/* Pricing */
.plans {
	display: grid;
	gap: 14px;
	margin-top: 28px;
}

@media (min-width: 640px) {
	.plans {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1080px) {
	.plans {
		grid-template-columns: repeat(4, 1fr);
	}
}

.plan {
	position: relative;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.plan ul {
	flex: 1;
	margin: 8px 0 16px;
}

.plan-featured {
	border: 2px solid var(--signal);
	box-shadow: 0 16px 40px rgba(var(--signal-rgb), 0.15);
}

.plan-flag {
	position: absolute;
	top: -12px;
	left: 20px;
	background: var(--signal);
	color: #fff;
	font: 700 0.66rem var(--mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
}

.plan-price {
	font-family: var(--display);
	font-size: 2.4rem;
	font-weight: 900;
	color: var(--ink);
	letter-spacing: -0.03em;
}

.plan-price span {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--muted);
	margin-left: 2px;
}

.plan-scope {
	font: 600 0.78rem var(--mono);
	color: var(--muted);
}

.pricing-notes {
	display: grid;
	gap: 10px;
	margin-top: 24px;
	font-size: 0.9rem;
}

@media (min-width: 800px) {
	.pricing-notes {
		grid-template-columns: repeat(3, 1fr);
	}
}

.pricing-notes p {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 14px 16px;
}

/* Data band */
.quality-list {
	margin: 18px 0;
}

.quality-list li {
	padding-left: 26px;
	position: relative;
	color: rgba(255, 255, 255, 0.88);
}

.quality-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #6fe0c2;
	font-weight: 800;
}

.muted-light {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.9rem;
}

.pipeline {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0;
}

.pipeline li {
	display: flex;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pipeline li:last-child {
	border-bottom: 0;
}

.pipe-n {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	flex-shrink: 0;
	background: rgba(var(--signal-rgb), 0.18);
	color: var(--signal-light);
	font: 700 0.85rem var(--mono);
}

.pipeline p {
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.86rem;
	margin-top: 2px;
}

/* GTM */
.gtm-grid {
	display: grid;
	gap: 12px;
	margin-top: 20px;
}

@media (min-width: 800px) {
	.gtm-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.gtm {
	border-radius: var(--radius);
	padding: 20px;
	background: #fff;
	border: 1px solid var(--line);
}

.gtm p {
	color: var(--muted);
	font-size: 0.9rem;
	margin-top: 6px;
}

.gtm-cre h3 {
	color: var(--cre);
}

.gtm-merchant h3 {
	color: var(--merchant);
}

.gtm-partner h3 {
	color: var(--signal-d);
}

.funnel {
	list-style: none;
	margin: 28px 0 0;
	padding: 0;
	display: grid;
	gap: 6px;
	justify-items: center;
}

.funnel li {
	width: 100%;
	display: grid;
	gap: 2px;
	padding: 12px 16px;
	border-radius: 10px;
	background: var(--ink);
	color: #fff;
	text-align: center;
	font-size: 0.86rem;
}

.funnel li span {
	color: rgba(255, 255, 255, 0.68);
}

@media (min-width: 700px) {
	.funnel li {
		width: var(--w);
	}
}

.funnel li:nth-child(2) {
	background: #1b2f48;
}

.funnel li:nth-child(3) {
	background: #24406a;
}

.funnel li:nth-child(4) {
	background: var(--cre);
}

.funnel li:nth-child(5) {
	background: var(--signal);
}

/* Roadmap */
.phases {
	display: grid;
	gap: 14px;
	margin-top: 24px;
}

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

.phase {
	background: #fff;
	border-radius: var(--radius);
	padding: 22px;
	border: 1px solid var(--line);
	display: grid;
	gap: 10px;
	align-content: start;
}

.phase-n {
	font: 700 0.72rem var(--mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--signal-d);
}

.not-mvp {
	margin-top: 18px;
	padding: 16px 18px;
	border-radius: 12px;
	border: 1px dashed #c9c2b3;
	font-size: 0.88rem;
	color: var(--muted);
}

.not-mvp b {
	color: var(--ink);
}

/* Final CTA + footer */
.final-cta {
	background: linear-gradient(135deg, var(--signal-soft) 0%, var(--cre-soft) 45%, var(--paper) 80%);
	padding: 80px 0;
	border-top: 1px solid var(--line);
}

.final-inner {
	display: grid;
	justify-items: center;
	text-align: center;
	gap: 14px;
}

.final-inner p {
	color: var(--muted);
	max-width: 48ch;
}

.footer {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.7);
	padding: 40px 0 48px;
	font-size: 0.9rem;
}

.footer .logo-word {
	color: #fff;
}

.footer-inner {
	display: grid;
	gap: 12px;
}

.footer .small {
	color: rgba(255, 255, 255, 0.45);
	max-width: 80ch;
}

/* Dialog */
.overlay {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba(12, 22, 34, 0.55);
	backdrop-filter: blur(4px);
	display: grid;
	place-items: center;
	padding: 16px;
}

.dialog {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 18px;
	padding: 28px 24px 22px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
	max-height: calc(100vh - 32px);
	overflow-y: auto;
}

.dialog h2 {
	font-size: 1.6rem;
	margin-bottom: 4px;
}

.dialog-close {
	position: absolute;
	top: 14px;
	right: 14px;
}

.auth-form {
	display: grid;
	gap: 14px;
	margin-top: 18px;
}

.field {
	display: grid;
	gap: 6px;
	font-size: 0.85rem;
	font-weight: 600;
}

.input {
	min-height: 46px;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 0 14px;
	font: 400 1rem var(--body);
	background: #fff;
	color: var(--ink);
	width: 100%;
}

.input:focus {
	border-color: var(--ink);
	outline: none;
	box-shadow: 0 0 0 3px rgba(var(--signal-rgb), 0.2);
}

.auth-foot {
	margin-top: 14px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	font-size: 0.85rem;
	align-items: center;
}

.auth-foot a {
	color: var(--muted);
}

/* Seeded state primitives */
.loading {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 18px 4px;
	color: var(--muted);
	font-size: 0.9rem;
}

.spinner {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid var(--line);
	border-top-color: var(--signal);
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.skeleton {
	background: linear-gradient(90deg, var(--tint), #f7f5f0, var(--tint));
	background-size: 200% 100%;
	border-radius: 8px;
	animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
	to {
		background-position: -200% 0;
	}
}

.empty {
	text-align: center;
	padding: 28px 12px;
	border: 1px dashed var(--line);
	border-radius: 12px;
}

.empty-title {
	font-weight: 700;
	color: var(--ink);
}

.alert {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 0.88rem;
	margin-bottom: 10px;
}

.alert-error {
	background: #fdecec;
	color: #a21b1b;
	border: 1px solid #f6c6c6;
}

.badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 0.75rem;
	background: var(--tint);
}
