/* Vome — investor pitch deck shared styles.
 *
 * Used by every full-viewport slide deck under the portal.  Slides are
 * absolutely stacked: the *current* and all previously-seen slides sit
 * at translateX(0); later slides park at translateX(100%).  Z-index
 * follows slide index so newer slides cover older ones.  Forward nav
 * animates the next slide in from the right; backward nav animates the
 * current slide off to the right, revealing the previous one.
 *
 * Theming variables (``--bg-primary`` etc.) come from vomehome.css.
 */

html, body {
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: var(--bg-primary);
}
body { padding: 0; }

/* ── Stage that holds all slides ────────────────────────────── */
.deck {
	position: fixed;
	inset: 0;
	overflow: hidden;
	touch-action: pan-y;
}

.slide {
	position: absolute;
	inset: 0;
	padding: 5rem 1.5rem 5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow-y: auto;
	background: var(--bg-primary);
	transform: translateX(100%);
	transition: transform 0.55s cubic-bezier(0.7, 0.0, 0.25, 1);
	will-change: transform;
}
.slide.in-view { transform: translateX(0); }
.slide.no-anim { transition: none; }

.slide-inner {
	max-width: 1000px;
	width: 100%;
}
.slide-tag {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--primary);
	margin-bottom: 0.9rem;
}
.slide h2 {
	font-size: 2.4rem;
	font-weight: 800;
	margin-bottom: 1.25rem;
	line-height: 1.15;
	color: var(--text-primary);
}
.slide h3 {
	font-size: 1.35rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
	color: var(--text-primary);
}
.slide p, .slide li {
	color: var(--text-secondary);
	font-size: 1.05rem;
	line-height: 1.7;
}
.slide p.lede {
	font-size: 1.2rem;
	color: var(--text-primary);
	max-width: 760px;
	margin-bottom: 2rem;
}
.slide ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.slide ul li {
	padding-left: 1.6rem;
	position: relative;
	margin-bottom: 0.85rem;
}
.slide ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.85rem;
	width: 0.7rem;
	height: 1px;
	background: var(--primary);
}
.slide strong { color: var(--text-primary); }
.slide .conv {
	color: var(--text-muted);
	font-size: 0.85em;
	font-weight: 400;
	margin-left: 0.2em;
}

/* ── Cover slide ────────────────────────────────────────────── */
.slide-cover {
	background:
		radial-gradient(ellipse at 20% 10%, rgba(255, 152, 0, 0.12), transparent 55%),
		radial-gradient(ellipse at 80% 90%, rgba(16, 185, 129, 0.10), transparent 55%),
		var(--bg-primary);
}
.cover-mark {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	font-weight: 800;
	font-size: 1.4rem;
	letter-spacing: 0.02em;
	margin-bottom: 2rem;
}
.cover-mark .gradient-text {
	background: linear-gradient(135deg, var(--primary), var(--accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: 1.6rem;
}
.cover-title {
	font-size: 3.2rem;
	font-weight: 800;
	line-height: 1.1;
	margin-bottom: 1.5rem;
	max-width: 820px;
	color: var(--text-primary);
}
.cover-title .gradient-text {
	background: linear-gradient(135deg, var(--primary), var(--accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.cover-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	color: var(--text-muted);
	font-size: 0.95rem;
	margin-top: 2.5rem;
}
.cover-meta strong {
	display: block;
	color: var(--text-primary);
	font-weight: 600;
	margin-bottom: 0.15rem;
}

.cols-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}
.cols-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}
.cols-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}
@media (max-width: 820px) {
	.cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}

.card-mini {
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
	height: 100%;
}
.card-mini .icon {
	width: 44px;
	height: 44px;
	border-radius: var(--radius);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	margin-bottom: 0.9rem;
	background: rgba(255, 152, 0, 0.13);
	color: var(--primary);
}
.card-mini.accent .icon {
	background: rgba(16, 185, 129, 0.13);
	color: var(--accent);
}
.card-mini.muted .icon {
	background: rgba(176, 176, 176, 0.10);
	color: var(--text-secondary);
}
.card-mini h3 {
	font-size: 1.15rem;
	margin-bottom: 0.4rem;
}
.card-mini p { font-size: 0.98rem; margin: 0; }

.stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin-top: 1.5rem;
}
@media (max-width: 820px) { .stats { grid-template-columns: 1fr; } }
.stat {
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-left: 3px solid var(--primary);
	border-radius: var(--radius);
	padding: 1.1rem 1.25rem;
}
.stat .num {
	display: block;
	font-size: 2.1rem;
	font-weight: 800;
	color: var(--text-primary);
	line-height: 1.1;
}
.stat .label {
	display: block;
	font-size: 0.88rem;
	color: var(--text-muted);
	margin-top: 0.3rem;
}
.stat .source {
	display: block;
	font-size: 0.78rem;
	color: var(--text-muted);
	margin-top: 0.4rem;
	font-style: italic;
}

.compare {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin-top: 1.25rem;
	font-size: 0.95rem;
}
.compare th, .compare td {
	padding: 0.85rem 0.9rem;
	border-bottom: 1px solid var(--border);
	text-align: left;
	color: var(--text-secondary);
}
.compare th {
	color: var(--text-muted);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.78rem;
}
.compare tr.us td {
	background: rgba(255, 152, 0, 0.06);
	color: var(--text-primary);
	font-weight: 500;
}
.compare tr.us td:first-child { border-left: 3px solid var(--primary); }

.diagram {
	display: grid;
	grid-template-columns: 1fr auto 1fr auto 1fr;
	gap: 0.75rem;
	align-items: stretch;
	margin-top: 1.5rem;
}
.diagram .node {
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1rem;
	text-align: center;
}
.diagram .node .title {
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 0.3rem;
}
.diagram .node .sub {
	color: var(--text-muted);
	font-size: 0.85rem;
}
.diagram .arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-muted);
	font-size: 1.3rem;
}
@media (max-width: 820px) {
	.diagram { grid-template-columns: 1fr; }
	.diagram .arrow { transform: rotate(90deg); padding: 0.25rem 0; }
}

/* ── Positioning chart (HA vs alternatives) ────────────────── */
.posmap {
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 1rem;
	margin-top: 1.25rem;
}
.posmap-grid {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 1.25rem;
	align-items: center;
}
@media (max-width: 820px) {
	.posmap-grid { grid-template-columns: 1fr; }
}
.posmap-legend ul {
	margin-top: 0.5rem;
}
.posmap-legend li::before { content: ""; display: none; }
.posmap-legend li {
	padding-left: 0;
	font-size: 0.92rem;
	color: var(--text-muted);
	margin-bottom: 0.35rem;
}
.posmap-legend .swatch {
	display: inline-block;
	width: 11px;
	height: 11px;
	border-radius: 999px;
	margin-right: 0.5rem;
	vertical-align: 0;
}
.posmap-trigger {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0;
	background: transparent;
	border: 1px solid transparent;
	border-radius: var(--radius);
	cursor: zoom-in;
	text-align: left;
	transition: var(--transition);
	position: relative;
}
.posmap-trigger:hover,
.posmap-trigger:focus-visible {
	border-color: rgba(255, 152, 0, 0.45);
	outline: none;
}
.posmap-trigger .zoom-badge {
	position: absolute;
	top: 0.4rem;
	right: 0.4rem;
	background: rgba(18, 18, 18, 0.7);
	color: var(--text-secondary);
	font-size: 0.72rem;
	font-weight: 600;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	border: 1px solid var(--border);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
}
.posmap-trigger:hover .zoom-badge,
.posmap-trigger:focus-visible .zoom-badge { opacity: 1; }

.posmap-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	background: rgba(0, 0, 0, 0.78);
	backdrop-filter: blur(4px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}
.posmap-modal.is-open {
	opacity: 1;
	pointer-events: auto;
}
.posmap-modal-inner {
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
	max-width: min(1100px, 96vw);
	max-height: 92vh;
	width: 100%;
	overflow: auto;
	position: relative;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.posmap-modal-inner svg {
	width: 100%;
	height: auto;
	max-height: 70vh;
}
.posmap-modal-close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: var(--bg-primary);
	border: 1px solid var(--border);
	color: var(--text-secondary);
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1;
}
.posmap-modal-close:hover {
	border-color: var(--primary);
	color: var(--primary);
}
.posmap-modal h3 {
	margin: 0 0 0.5rem 0;
	color: var(--text-primary);
	font-size: 1.1rem;
}
.posmap-modal .legend-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 0.75rem;
	color: var(--text-muted);
	font-size: 0.88rem;
}
.posmap-modal .legend-strip .swatch {
	display: inline-block;
	width: 11px;
	height: 11px;
	border-radius: 999px;
	margin-right: 0.4rem;
	vertical-align: 0;
}

/* ── Roadmap timeline ──────────────────────────────────────── */
.timeline {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	margin-top: 1.5rem;
}
@media (max-width: 820px) { .timeline { grid-template-columns: 1fr; } }
.tl-step {
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.1rem;
}
.tl-step .when {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--primary);
	font-weight: 700;
	margin-bottom: 0.4rem;
}
.tl-step h4 {
	font-size: 1.02rem;
	margin-bottom: 0.4rem;
	color: var(--text-primary);
}
.tl-step p { font-size: 0.92rem; margin: 0; color: var(--text-secondary); }

/* ── Three paths cards ─────────────────────────────────────── */
.paths {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin-top: 1.25rem;
}
@media (max-width: 820px) { .paths { grid-template-columns: 1fr; } }
.path {
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 1.4rem;
	display: flex;
	flex-direction: column;
}
.path.feature { border-color: rgba(255, 152, 0, 0.5); box-shadow: 0 0 0 1px rgba(255, 152, 0, 0.2) inset; }
.path .pname {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: 700;
	color: var(--primary);
	margin-bottom: 0.4rem;
}
.path h4 {
	font-size: 1.2rem;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
}
.path .ask {
	font-size: 1.45rem;
	font-weight: 800;
	color: var(--text-primary);
	margin-bottom: 0.8rem;
	line-height: 1.2;
}
.path .ask .conv { font-size: 0.7em; }
.path p { font-size: 0.95rem; margin-bottom: 0.6rem; color: var(--text-secondary); }
.path ul { margin-top: 0.4rem; }
.path ul li { font-size: 0.9rem; margin-bottom: 0.4rem; }

/* ── Navigation chrome ─────────────────────────────────────── */
.deck-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--border);
	z-index: 100;
}
.deck-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--primary), var(--accent));
	width: 0;
	transition: width 0.55s cubic-bezier(0.7, 0, 0.25, 1);
}

.deck-top {
	position: fixed;
	top: 3px;
	left: 0;
	right: 0;
	z-index: 60;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.7rem 1.25rem;
	background: rgba(18, 18, 18, 0.7);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--border);
	font-size: 0.92rem;
}
.deck-top .brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--text-primary);
	font-weight: 700;
	text-decoration: none;
}
.deck-top .brand .gradient-text {
	background: linear-gradient(135deg, var(--primary), var(--accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.deck-top .top-actions { display: flex; gap: 0.6rem; align-items: center; }
.deck-top a.top-link {
	color: var(--text-secondary);
	text-decoration: none;
	font-weight: 500;
	padding: 0.3rem 0.6rem;
	border-radius: var(--radius-sm);
}
.deck-top a.top-link:hover,
.deck-top button.top-link:hover {
	color: var(--primary);
	background: rgba(255, 152, 0, 0.08);
}
.deck-top button.top-link {
	background: transparent;
	border: 0;
	cursor: pointer;
	font: inherit;
}

.deck-counter {
	position: fixed;
	bottom: 1.2rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 60;
	background: rgba(18, 18, 18, 0.85);
	backdrop-filter: blur(8px);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 0.4rem 1rem;
	color: var(--text-secondary);
	font-size: 0.85rem;
	font-variant-numeric: tabular-nums;
	pointer-events: none;
}
.deck-counter strong { color: var(--text-primary); }

.deck-arrows {
	position: fixed;
	bottom: 1.1rem;
	right: 1.1rem;
	z-index: 60;
	display: flex;
	gap: 0.5rem;
}
.deck-arrows button {
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: rgba(18, 18, 18, 0.85);
	border: 1px solid var(--border);
	color: var(--text-secondary);
	cursor: pointer;
	font-size: 1.1rem;
	transition: var(--transition);
}
.deck-arrows button:hover:not([disabled]) {
	border-color: var(--primary);
	color: var(--primary);
}
.deck-arrows button[disabled] {
	opacity: 0.35;
	cursor: not-allowed;
}

.deck-foot-link {
	position: fixed;
	bottom: 1.2rem;
	left: 1.1rem;
	z-index: 60;
	color: var(--text-muted);
	font-size: 0.85rem;
	text-decoration: none;
}
.deck-foot-link:hover { color: var(--primary); }
@media (max-width: 720px) { .deck-foot-link { display: none; } }

.kbd-hint {
	position: fixed;
	top: 4.5rem;
	right: 1rem;
	z-index: 60;
	color: var(--text-muted);
	font-size: 0.8rem;
	background: rgba(18, 18, 18, 0.6);
	padding: 0.3rem 0.6rem;
	border-radius: 999px;
	border: 1px solid var(--border);
	pointer-events: none;
	opacity: 0.85;
	animation: hint-fade 6s ease-in 1.5s forwards;
}
@keyframes hint-fade {
	to { opacity: 0; visibility: hidden; }
}
@media (max-width: 720px) { .kbd-hint { display: none; } }

/* ── Packages grid (used by the Hire deck) ─────────────────── */
.packages {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}
@media (max-width: 820px) { .packages { grid-template-columns: 1fr; } }
.package {
	background: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
}
.package h4 {
	font-size: 1.1rem;
	color: var(--text-primary);
	margin-bottom: 0.3rem;
}
.package .price {
	font-size: 0.95rem;
	color: var(--primary);
	font-weight: 700;
	margin-bottom: 0.6rem;
}
.package ul { margin: 0; padding: 0; }
.package li { font-size: 0.9rem; margin-bottom: 0.35rem; }

/* ── Print: clean export to PDF ────────────────────────────── */
@media print {
	html, body {
		overflow: visible;
		height: auto;
		background: white;
		color: black;
	}
	.deck { position: static; overflow: visible; height: auto; }
	.deck-top, .deck-counter, .deck-arrows,
	.deck-foot-link, .deck-progress, .kbd-hint { display: none !important; }
	.slide {
		position: relative !important;
		inset: auto !important;
		transform: none !important;
		transition: none !important;
		min-height: auto;
		page-break-after: always;
		break-after: page;
		padding: 2.5rem 1.5rem;
		color: #111;
		background: white !important;
		overflow: visible;
	}
	.slide h2, .slide h3, .slide p, .slide li,
	.cover-title, .stat .num, .card-mini h3,
	.tl-step h4, .path h4, .path .ask,
	.diagram .node .title, .compare th, .compare td,
	.package h4, .package li {
		color: #111 !important;
	}
	.gradient-text {
		color: #b35a00 !important;
		-webkit-text-fill-color: #b35a00 !important;
	}
	.card-mini, .stat, .tl-step, .path,
	.deck-foot-link, .diagram .node, .posmap, .package {
		background: #fafafa !important;
		border-color: #ddd !important;
		box-shadow: none !important;
	}
	.compare tr.us td { background: #fff5e6 !important; }
}
