/* =====================================================
   revdam.com — KPI Control Center™ landing
   PRI design system: Fraunces + Inter, gold accent,
   one colour per Propulsion Station™
   ===================================================== */

:root {
	--bg: #FCFBF8;
	--bg-2: #F5F3EC;
	--panel: #FFFFFF;
	--line: #E5E2D8;
	--line-soft: #EDEAE1;

	--ink: #16203A;
	--ink-dim: #4C5870;
	--ink-faint: #8A93A8;

	--ember: #D8A23B;
	--ember-2: #E8B04B;
	--ember-deep: #A5761A;

	/* one per Propulsion Station™ */
	--c1: #C98F24; --c2: #22857C; --c3: #C24A7E; --c4: #3D6FD4;
	--c5: #348F58; --c6: #7E50C4; --c7: #1F97BD; --c8: #C2543A;

	--navy: #101A31;
	--navy-2: #16223E;
	--navy-line: #26324E;
	--navy-ink: #EEF2FA;
	--navy-dim: #9AA7C2;

	/* Control Center statuses */
	--s-green: #2F8A4E;
	--s-yellow: #B98A0E;
	--s-orange: #D06A1F;
	--s-red: #C0392B;

	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "Inter", -apple-system, "Segoe UI", sans-serif;

	--shadow-sm: 0 1px 2px rgba(22,32,58,.05), 0 4px 14px -6px rgba(22,32,58,.08);
	--shadow-md: 0 2px 6px rgba(22,32,58,.06), 0 16px 34px -18px rgba(22,32,58,.18);

	--radius: 8px;
	--btn-radius: 5px;
	--radius-sm: 4px;
	--container: 1180px;
	--gutter: 32px;
}

@media (min-width: 1440px) { :root { --container: 1280px; --gutter: 40px; } }
@media (max-width: 720px)  { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--ember-deep); }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.1rem; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.muted { color: var(--ink-faint); }
.warn { color: var(--s-red); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--panel); padding: 8px 12px; }
.skip-link:focus { left: 8px; }

.eyebrow {
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ember-deep);
	margin-bottom: 12px;
}
.lede { font-size: 1.08rem; color: var(--ink-dim); max-width: 46rem; }
.fine { font-size: .85rem; color: var(--ink-faint); margin-top: 14px; }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 12px 22px;
	border-radius: var(--btn-radius);
	font-weight: 600; font-size: .95rem; line-height: 1.25;
	text-decoration: none; text-align: center;
	border: 1.5px solid transparent;
	transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { border-color: var(--navy-dim); color: var(--navy-ink); }
.btn-light:hover { border-color: var(--navy-ink); }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.cta-band .btn-primary { background: var(--ember); color: var(--navy); }
.cta-band .btn-primary:hover { background: var(--ember-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(252,251,248,.94);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand-logo { height: 38px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { display: flex; gap: 20px; }
.site-nav ul a { color: var(--ink-dim); text-decoration: none; font-size: .92rem; font-weight: 500; white-space: nowrap; }
.site-nav ul a:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
	position: absolute; left: 9px; width: 22px; height: 2px; background: var(--ink); content: ""; transition: transform .2s;
}
.nav-toggle-bar { top: 19px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1000px) {
	.nav-toggle { display: block; }
	.site-nav {
		display: none;
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 16px;
		padding: 16px var(--gutter) 24px;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow-md);
	}
	.site-nav.is-open { display: flex; }
	.site-nav ul { flex-direction: column; gap: 0; }
	.site-nav ul a { display: block; padding: 10px 0; font-size: 1rem; border-bottom: 1px solid var(--line-soft); }
	.brand-logo { height: 32px; }
}

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { margin-bottom: 44px; }
.section-head h2 { max-width: 40rem; margin-bottom: 14px; }
@media (max-width: 720px) { .section { padding: 60px 0; } .section-head { margin-bottom: 32px; } }

/* ---------- hero ---------- */
.hero {
	padding: 72px 0 80px;
	background:
		radial-gradient(900px 480px at 15% -10%, #F3EDDD 0%, transparent 62%),
		radial-gradient(700px 420px at 95% 110%, #EEF1F6 0%, transparent 55%);
}
.hero-grid { max-width: 52rem; }
.hero h1 { margin-bottom: 20px; }
.hero-art {
	margin-top: 44px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px 20px 16px;
	box-shadow: var(--shadow-md);
}
.hero-art figcaption { margin-top: 10px; font-size: .88rem; color: var(--ink-dim); }
.hero-art-hint { display: none; color: var(--ember-deep); font-weight: 600; }
@media (max-width: 900px) { .hero { padding: 48px 0 56px; } .hero-art { margin-top: 32px; } }
/* Seven stations need room: on narrow screens the line keeps its size and scrolls sideways. */
@media (max-width: 760px) {
	.hero-art { padding: 14px 0 12px; }
	.hero-art-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 14px; }
	.hero-art-scroll .rd-art { width: 760px; max-width: none; }
	.hero-art figcaption { padding: 0 14px; }
	.hero-art-hint { display: inline; }
}

.rd-art text { font-family: var(--sans); fill: var(--ink-dim); }
.rd-art-label { font-size: 13.5px; font-weight: 600; fill: var(--ink) !important; }
.rd-art-num { font-size: 14px; font-weight: 700; fill: var(--ink) !important; }
.rd-art-num-on { fill: #fff !important; }
.rd-art-lead { font-size: 15px; fill: var(--ink) !important; }
.rd-art-leak { font-size: 12px; font-weight: 700; fill: var(--c3) !important; text-transform: uppercase; letter-spacing: .06em; }
.rd-flow { animation: rd-flow 1.2s linear infinite; }
@keyframes rd-flow { to { stroke-dashoffset: -20; } }
.rd-drip { animation: rd-drip 2.4s ease-in infinite; animation-delay: calc(var(--i) * .6s); }
@keyframes rd-drip { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: .85; } 100% { transform: translateY(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rd-flow, .rd-drip { animation: none; } }

/* ---------- horizontal line ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.compare { display: grid; gap: 16px; }
.compare-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.compare-card h3 { margin-bottom: 10px; }
.compare-card li { position: relative; padding-left: 22px; color: var(--ink-dim); margin: 6px 0; }
.compare-vertical li::before { content: "×"; position: absolute; left: 2px; color: var(--s-red); font-weight: 700; }
.compare-horizontal { border-color: var(--c2); box-shadow: inset 4px 0 0 var(--c2); }
.compare-horizontal li::before { content: "→"; position: absolute; left: 0; color: var(--c2); font-weight: 700; }

.flow { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.flow h3 { margin-bottom: 14px; }
.flow-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.flow-table th, .flow-table td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.flow-table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); font-weight: 600; }
.flow-table tbody th { font-weight: 600; white-space: nowrap; box-shadow: inset 3px 0 0 var(--sc); padding-left: 12px; }
.flow-io { display: block; color: var(--ink-dim); }
.flow-bar { display: block; height: 6px; background: var(--line-soft); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.flow-bar i { display: block; height: 100%; background: var(--sc); border-radius: 3px; }
.flow-leak { color: var(--s-red); font-weight: 600; white-space: nowrap; text-align: right !important; }
.flow-sum { margin-top: 16px; }

/* ---------- the board ---------- */
.board {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px;
	box-shadow: var(--shadow-md);
}
.board-caption { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--ink-faint); margin-bottom: 16px; }
.board-caption .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); }
.board-row + .board-row { margin-top: 18px; }
.board-label { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.board-line { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; position: relative; }
.board-line::before {
	content: ""; position: absolute; left: 0; right: 0; top: 50%;
	height: 3px; background: var(--c2); opacity: .25; z-index: 0;
}
.board-line .station { padding: 12px 11px 10px; }
.board-line .station-purpose { font-size: .76rem; }

.station {
	position: relative; z-index: 1;
	background: var(--panel);
	border: 1px solid var(--line);
	border-top: 4px solid var(--sc);
	border-radius: var(--radius);
	padding: 14px 14px 12px;
	display: flex; flex-direction: column; gap: 8px;
	min-width: 0;
}
.station-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 8px; }
.station-head h3 { font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: 0; }
.station-num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 20px; height: 20px; margin-right: 2px; vertical-align: 1px;
	border-radius: 50%; background: var(--sc); color: #fff;
	font-size: .7rem; font-weight: 700;
}
.station-purpose { font-size: .82rem; color: var(--ink-dim); line-height: 1.45; }
.station-kpi { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); }
.station-kpi dt { font-size: .75rem; color: var(--ink-faint); }
.station-kpi dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: .85rem; }
.station-kpi strong { font-size: 1.1rem; font-weight: 600; }
.station-owner { font-size: .8rem; font-weight: 600; color: var(--ink); }
.station-owner-label { display: block; font-size: .72rem; font-weight: 400; color: var(--ink-faint); }

.status {
	flex-shrink: 0;
	font-size: .7rem; font-weight: 600;
	padding: 2px 8px; border-radius: var(--radius-sm);
	white-space: nowrap;
	color: #fff;
}
.status-green  { background: var(--s-green); }
.status-yellow { background: var(--s-yellow); }
.status-orange { background: var(--s-orange); }
.status-red    { background: var(--s-red); }
.state { font-size: .72rem; font-weight: 600; white-space: nowrap; }
.state-failing { color: var(--s-red); }
.state-stalled { color: var(--s-yellow); }
.state-evidence-missing { color: var(--ink-faint); }

@media (min-width: 1001px) {
	.board-govern .station { display: grid; grid-template-columns: 180px 1fr auto auto; align-items: center; gap: 16px; }
	.board-govern .station-kpi { margin: 0; padding: 0 0 0 16px; border-top: 0; border-left: 1px dashed var(--line); }
}
@media (max-width: 1199px) {
	.board-line { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
	.board-line::before { display: none; }
}
@media (max-width: 700px) {
	.board-line { grid-template-columns: 1fr; }
	.board-line::before { display: block; left: 22px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
	.board-line .station-purpose { font-size: .82rem; }
}
@media (max-width: 560px) {
	.board { padding: 14px; }
}

.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.why-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.why-item h3 { margin-bottom: 8px; }
.why-item p { color: var(--ink-dim); font-size: .92rem; }
.why-reoff { border-color: var(--c7); }
.why-reoff img { margin-bottom: 10px; border-radius: 10px; }
@media (max-width: 1000px) { .why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .why { grid-template-columns: 1fr; } }

/* ---------- the path ---------- */
.path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: path; margin-bottom: 36px; }
.path-step {
	position: relative;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px 20px;
}
.path-step:not(:last-child)::after {
	content: "→"; position: absolute; right: -14px; top: 26px; z-index: 2;
	width: 24px; height: 24px; line-height: 22px; text-align: center;
	background: var(--bg); color: var(--ember-deep); font-weight: 700; border-radius: 50%;
}
.path-num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; border-radius: 50%;
	background: var(--bg-2); color: var(--ink); font-weight: 600; font-size: .9rem;
	margin-bottom: 14px;
}
.path-tag { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
.path-step h3 { margin-bottom: 8px; }
.path-step p:last-child { color: var(--ink-dim); font-size: .92rem; }
.path-step:first-child .path-tag { color: var(--c5); }
.path-step.is-here { border: 2px solid var(--ember); box-shadow: var(--shadow-md); }
.path-step.is-here .path-num { background: var(--ember); }
.path-step.is-here .path-tag { color: var(--ember-deep); }
@media (max-width: 1000px) {
	.path { grid-template-columns: 1fr 1fr; }
	.path-step:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
	.path { grid-template-columns: 1fr; gap: 22px; }
	.path-step:not(:last-child)::after { display: block; content: "↓"; right: auto; left: 22px; top: auto; bottom: -20px; }
}

/* ---------- demo tour and learn ---------- */
.tour, .learn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 36px; }
.learn { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0; }
.tour a, .learn a {
	display: block; height: 100%;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px;
	color: inherit; text-decoration: none;
	transition: border-color .15s, box-shadow .15s;
}
.tour a:hover, .learn a:hover { border-color: var(--ember); box-shadow: var(--shadow-sm); }
.tour h3, .learn h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; margin-bottom: 6px; }
.tour h3 span, .learn h3 span { color: var(--ember-deep); }
.tour p, .learn p { color: var(--ink-dim); font-size: .9rem; }
@media (max-width: 1000px) { .tour, .learn { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .tour, .learn { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: var(--navy-ink); padding: 84px 0; text-align: center; }
.cta-inner { max-width: 760px; }
.cta-band .eyebrow { color: var(--ember-2); }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--navy-dim); }
.cta-band .cta-row { justify-content: center; }
@media (max-width: 560px) { .cta-band .btn { width: 100%; } }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-2); color: var(--navy-dim); padding: 48px 0 32px; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--navy-line); }
.footer-brand { max-width: 26rem; }
.footer-title { font-family: var(--serif); color: var(--navy-ink); font-size: 1.2rem; margin-bottom: 6px; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 32px; }
.footer-links a { color: var(--navy-ink); text-decoration: none; }
.footer-links a:hover { color: var(--ember-2); }
.footer-legal { padding-top: 20px; font-size: .8rem; }
.footer-legal p + p { margin-top: 8px; }
@media (max-width: 560px) { .footer-links { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { padding: 120px 0; text-align: center; }
.notfound h1 { margin-bottom: 16px; }
.notfound .cta-row { justify-content: center; }

