/* Delving marketing site — tokens + base styles.
   Dark is default; .light on <html> overrides. Palette mirrors Orchestra. */
:root {
	/* Dark bg sits a step below the logo's navy (#022764) so the kingfisher's
	   orbital ring and tail read instead of dissolving into the background. */
	--bg: #0a0f1c;
	--surface: #121a2e;
	--border: #334155;
	--text: #f1f5f9;
	--text-muted: #94a3b8;
	--accent: #2563eb;
	--accent-hover: #1d4ed8;
	/* Ambient wash behind the hero logo — a lifted-blue "sky" in dark, a faint
	   cool cushion in light — gives the navy swooshes a stage in both modes. */
	--hero-stage: rgba(72, 108, 188, 0.40);
	/* Gold from the logo (#f2ba13). Used for fills, rules, and the pipeline's
	   "catch" — never as small text on light (fails contrast). */
	--gold: #fc6;
	--gold-strong: #f2ba13;
	--on-gold: #1e293b;
	--radius: 12px;
	--maxw: 1080px;
	--font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	--font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
		Ubuntu, Cantarell, sans-serif;
}

:root.light {
	/* Cool paper, not stark white — takes the harsh edge off the logo's navy. */
	--bg: #eef2f9;
	--surface: #e4eaf5;
	--border: #d3dcec;
	--text: #1e293b;
	--text-muted: #64748b;
	--hero-stage: rgba(22, 44, 98, 0.085);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	font-size: 18px;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
	font-family: var(--font-heading);
	line-height: 1.15;
	font-weight: 700;
}

h1 {
	font-size: clamp(2rem, 5vw, 3.25rem);
	letter-spacing: -0.02em;
}

h2 {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	letter-spacing: -0.01em;
}

h3 {
	font-size: 1.25rem;
}

p {
	color: var(--text);
}

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

a:hover {
	color: var(--accent-hover);
}

.container {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.section {
	padding: 5rem 0;
}

/* Alternating band: a faint cobalt wash so sections read as distinct zones in
   both modes (--surface is near-white in light mode and wouldn't show). */
.section.alt {
	background: color-mix(in srgb, var(--accent) 6%, var(--bg));
}

/* Small transitional aside — hugs its neighbours instead of a full band. */
.section.section-aside {
	padding: 2rem 0;
}

.eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 1rem;
	font-weight: 600;
	color: var(--accent);
}

.muted {
	color: var(--text-muted);
}

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

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 1.4rem;
	border-radius: var(--radius);
	font-weight: 600;
	border: 1px solid var(--border);
	color: var(--text);
	cursor: pointer;
	background: transparent;
	transition: background 0.15s, border-color 0.15s;
}

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

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

.btn-primary:hover {
	background: var(--accent-hover);
	border-color: var(--accent-hover);
	color: #fff;
}

/* Cards + grids */
.grid {
	display: grid;
	gap: 1.5rem;
}

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

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.75rem;
}

.card h3 {
	margin-top: 0;
}

.feature-icon {
	width: 40px;
	height: 40px;
	display: block;
	margin: 0 auto 1rem;
	color: var(--accent);
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--border);
}

/* Light mode: solid header in the logo's main blue (#0c5bb8), edged with its dark #042863, light text */
:root.light .site-header {
	background: #0c5bb8;
	border-bottom-color: #042863;
}

:root.light .site-header .brand {
	color: #fff;
}

:root.light .site-header .nav a {
	color: #fff;
}

:root.light .site-header .nav a:hover {
	color: var(--gold);
	opacity: 1;
}

:root.light .site-header .theme-toggle {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.45);
}

:root.light .site-header .theme-toggle:hover {
	background: rgba(255, 255, 255, 0.15);
}

.site-header .container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	/* Column-gap guarantees space between the logo and the nav even when they
	   share a row; row-gap is what shows once .nav wraps onto its own line
	   on narrow viewports (see the .nav rule below) instead of letting links
	   overflow the header unseen and unclickable. */
	gap: 0.5rem 1.5rem;
	min-height: 64px;
	padding-block: 0.75rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 700;
	color: var(--text);
}

/* Header mark: inline SVG glyph traced from the logo; inherits brand colour
   (white on the blue/dark bar) via currentColor, crisp at any size. */
/* The logo's navy and blue vanish on any dark or blue header, so it sits on a white badge in both modes */
.brand img {
	width: 40px;
	height: 40px;
	padding: 5px;
	box-sizing: border-box;
	background: #fff;
	border-radius: 50%;
	display: block;
}

.nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
}

.nav a {
	color: var(--text);
	font-weight: 500;
}

.nav a:hover {
	color: var(--gold-strong);
}

.theme-toggle {
	background: transparent;
	border: 1px solid var(--border);
	color: var(--text);
	border-radius: 8px;
	width: 36px;
	height: 36px;
	cursor: pointer;
	font-size: 1rem;
}

.theme-toggle:hover {
	background: var(--surface);
}

/* Hero: the same faint cobalt wash as .section.alt, so the page header reads as its own zone */
.hero {
	padding: 6rem 0 4rem;
	background: color-mix(in srgb, var(--accent) 6%, var(--bg));
	border-bottom: 1px solid var(--border);
}

.hero .lead {
	margin: 1.25rem 0 2rem;
}

.hero-actions {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.hero-eyebrow {
	display: block;
	margin-bottom: 0.75rem;
}

.hero-logo {
	display: block;
	width: min(520px, 55vw);
	height: auto;
	margin: 0 auto 2rem;
}

/* Platform page: infographic anchor + numbered pipeline stages */
.infographic {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	border-radius: var(--radius);
	border: 1px solid var(--border);
}

.stage-grid {
	margin-top: 2rem;
}

.stage-card {
	text-align: left;
}

/* Number is the structural device — the stages are a real ordered sequence. */
.stage-num {
	display: block;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.6rem;
	line-height: 1;
	color: var(--accent);
	margin-bottom: 0.5rem;
	text-align: center;
}

/* Step icons: the Orchestra service motifs, outlined like .feature-icon. */
.stage-icon {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	color: var(--accent);
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Icon beside the step name, on one line. */
.stage-title {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.5rem;
}

.card .stage-title h3 {
	margin: 0;
}

.stage-card h3 {
	margin: 0 0 0.5rem;
}

/* Publish is the payoff — gold accent echoing the home pipeline's "catch". */
.stage-grid .stage-card:last-child {
	border-top: 3px solid var(--gold);
}

/* Roadmap note: a clearly-labelled "coming, not here" line on a stage. The
   gold pill flags future status so it never reads as a shipped capability. */
.stage-roadmap {
	margin: 1rem 0 0;
	padding-top: 1rem;
	border-top: 1px dashed var(--border);
	font-size: 0.9rem;
	color: var(--text-muted);
}

.roadmap-tag {
	display: inline-block;
	background: var(--gold);
	color: var(--on-gold);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 0.1rem 0.45rem;
	border-radius: 5px;
	margin-right: 0.5rem;
	vertical-align: 1px;
}

/* "Beyond the pipeline" reads as prose, left-aligned for real paragraphs. */
.beyond {
	margin-top: 1rem;
}

.beyond h2:first-child {
	margin-top: 0.5rem;
}

/* Centered pages (home + any page with `centered: true`): center sections under
   the hero, matching Orchestra's landing. Opt-in so other pages stay left-aligned. */
.centered .section {
	text-align: center;
}

.centered .section .lead {
	margin-left: auto;
	margin-right: auto;
}

.centered .section .pipeline {
	justify-content: center;
}

.centered .section .card {
	text-align: center;
}

.centered .prose {
	margin-left: auto;
	margin-right: auto;
}

/* Centered hero (home): big logo, gradient, everything centered — mirrors Orchestra's landing */
.hero-centered {
	text-align: center;
	background:
		radial-gradient(72% 62% at 50% 40%, var(--hero-stage) 0%, transparent 66%),
		color-mix(in srgb, var(--accent) 6%, var(--bg));
}

.hero-centered .container {
	max-width: 46rem;
}

.hero-centered h1 {
	/* Let the kingfisher be the colour hero; the headline reads in plain text.
	   (Was var(--accent) — loud on light, low-contrast on dark.) */
	color: var(--text);
}

.hero-centered .lead {
	margin-left: auto;
	margin-right: auto;
}

.hero-centered .hero-actions {
	justify-content: center;
}



/* Pipeline row — the product thesis, so it carries real weight. Steps lift off
   the band; gold arrows are the flow; the terminal step is the "catch". */
.pipeline {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	justify-content: center;
}

.pipeline .step {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 0.85rem 1.5rem;
	font-weight: 600;
	font-size: 1.05rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Publish: where raw records surface as living data — gold fill, the payoff. */
.pipeline .step:last-child {
	background: var(--gold);
	border-color: var(--gold);
	color: var(--on-gold);
	box-shadow: 0 2px 8px color-mix(in srgb, var(--gold) 40%, transparent);
}

.pipeline .arrow {
	color: var(--gold-strong);
	font-size: 1.4rem;
	font-weight: 700;
}

/* CTA band */
.cta-band {
	background: var(--surface);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.cta-band .container {
	text-align: center;
	padding: 4rem 1.5rem;
}

.cta-band h2 {
	margin: 0 0 1rem;
}

/* Footer */
.site-footer {
	border-top: 1px solid var(--border);
	color: var(--text-muted);
	padding: 2.5rem 0;
	font-size: 0.9rem;
}

.site-footer .container {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}

/* Prose (inner pages) */
.prose {
	max-width: 44rem;
}

.prose h2 {
	margin-top: 2.5rem;
}

.prose ul {
	padding-left: 1.25rem;
}

.prose li {
	margin: 0.4rem 0;
}

.prose img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 2rem auto;
	border-radius: var(--radius);
	border: 1px solid var(--border);
}

/* Services page: bundles as switch panels, then the menu as rows.
   The switch is the structural device — every service is its own on/off line. */
.switch {
	display: inline-block;
	width: 34px;
	height: 20px;
	border-radius: 10px;
	background: var(--border);
	position: relative;
	flex: none;
	vertical-align: middle;
}

.switch::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 14px;
	height: 14px;
	border-radius: 7px;
	background: var(--text-muted);
}

.switch.on {
	background: var(--gold-strong);
}

.switch.on::after {
	left: 17px;
	background: var(--on-gold);
}

/* In light mode the cobalt wash and the cards' --surface land on nearly the
   same tone, so the bundle cards sit on white instead. */
:root.light .bundle-section {
	background: #fff;
}

:root.light .bundle-section .card {
	background: var(--bg);
}

.bundle-card {
	display: flex;
	flex-direction: column;
}

/* The recommended entry point gets the gold rule, like Publish on the platform page. */
.bundle-lead {
	border-top: 3px solid var(--gold);
}

.bundle-size {
	font-size: 0.85rem;
}

.bundle-name {
	font-size: 1.65rem;
	margin: 0.25rem 0 0.75rem;
}

.bundle-who {
	font-size: 0.92rem;
	margin: 0 0 1.25rem;
}

.switch-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex-grow: 1;
	font-size: 0.9rem;
}

.switch-list li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.switch-list li .switch {
	transform: scale(0.75);
	margin: 0 -4px;
}

.switch-list li.off {
	color: var(--text-muted);
	opacity: 0.7;
}

.bundle-foot {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px dashed var(--border);
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-size: 0.9rem;
}

.bundle-foot p {
	margin: 0;
}

.bundle-foot .btn {
	align-self: flex-start;
	margin-top: 0.5rem;
}

.service-list {
	margin-top: 2rem;
	border-top: 1px solid var(--border);
}

.service-row {
	display: grid;
	grid-template-columns: 290px minmax(0, 1fr);
	gap: 1.5rem;
	align-items: center;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--border);
}

.service-name {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.service-name h3 {
	margin: 0;
	font-size: 1.05rem;
}

.service-row p {
	margin: 0;
	font-size: 0.92rem;
}

/* Product page: two-column hero when a screenshot is set, benefits, technical panel, price table */
.product-hero.has-image {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 520px;
	gap: 3rem;
	align-items: center;
}

.product-shot {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.benefit-grid {
	margin-top: 2.5rem;
}

.benefit-grid .card p {
	margin: 0.5rem 0 0;
}

.how-it-works {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 3rem;
}

.how-it-works .prose p:first-child {
	margin-top: 0;
}

.price-table {
	padding: 0;
	overflow: hidden;
	margin-top: 2rem;
}

.price-row {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
	border-bottom: 1px solid var(--border);
}

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

.price-row > div {
	padding: 1rem 1.5rem;
	font-size: 0.92rem;
}

.price-head {
	background: var(--bg);
}

.price-head > div {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.2rem;
}

.price {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.2rem;
	color: var(--gold);
}

.price-span {
	grid-column: span 4;
}

.price-note {
	margin: 1rem 0 0;
	font-size: 0.92rem;
}

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

	.service-row {
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}

	.product-hero.has-image,
	.how-it-works {
		grid-template-columns: 1fr;
	}

	.price-row {
		grid-template-columns: 1fr;
	}

	.price-span {
		grid-column: auto;
	}

	.nav {
		gap: 1rem;
	}

	.section {
		padding: 3.5rem 0;
	}
}

@media (max-width: 560px) {

	/* Keep all nav links visible; drop the wordmark text to make room (logo stays). */
	.brand span {
		display: none;
	}

	.nav {
		gap: 0.9rem;
		font-size: 0.95rem;
	}
}
/* Language switcher (header) */
.lang-switch {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin-left: 0.25rem;
	padding-left: 0.75rem;
	border-left: 1px solid var(--border);
	font-size: 0.8rem;
	letter-spacing: 0.02em;
}

.lang-switch a {
	color: var(--text);
	opacity: 0.5;
	font-weight: 600;
}

.lang-switch a:hover {
	opacity: 0.85;
}

.lang-switch a.active {
	opacity: 1;
	color: var(--gold-strong);
}

:root.light .site-header .lang-switch {
	border-left-color: rgba(255, 255, 255, 0.35);
}

:root.light .site-header .lang-switch a {
	color: #fff;
	opacity: 0.65;
}

:root.light .site-header .lang-switch a.active {
	opacity: 1;
	color: var(--gold);
}

/* Text for screen readers only (e.g. the new-tab note on external links) */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
