/*
 * Kordavio launch polish.
 * This file intentionally sits after the main theme so layout corrections remain
 * easy to audit independently from the established visual system.
 */

.neo-button {
	align-items: stretch;
	justify-content: space-between;
	min-height: 58px;
	overflow: hidden;
}
.neo-button span {
	display: flex;
	align-items: center;
	min-height: 56px;
	padding: 10px 24px;
	line-height: 1.25;
	text-align: left;
}
.neo-button b {
	flex: 0 0 56px;
	min-height: 56px;
	line-height: 1;
}
.hero-actions,
.demo-access,
.button-row,
.woocommerce .form-row.place-order,
.woocommerce-account .orca-order-licenses td:last-child {
	gap: 12px;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .button,
.site-main .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 11px 18px;
	line-height: 1.2;
}
.orca-order-licenses td:last-child .button {
	margin: 4px 8px 4px 0;
	white-space: nowrap;
}

/* Keep labels readable: the cube turns horizontally on a fixed diagonal plane. */
.holo-box {
	animation: kordavio-cube-turn 16s linear infinite;
}
@keyframes kordavio-cube-turn {
	from { transform: rotateX(-24deg) rotateZ(-7deg) rotateY(45deg); }
	to { transform: rotateX(-24deg) rotateZ(-7deg) rotateY(405deg); }
}
.holo-face {
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}
.holo-face span {
	line-height: 1;
	backface-visibility: hidden;
}

/* Compensate for the hero plane perspective so the K reads as a mark, not a dash. */
.hero-orbit {
	transform: translateY(-50%) rotateX(48deg) rotateZ(calc(var(--scroll-progress, 0) * 72deg));
}
.hero-orbit .core span {
	transform: rotate(-45deg) scaleY(1.38);
	transform-origin: center;
}
.core-rings {
	flex: 0 0 auto;
	aspect-ratio: 1 / 1;
}

.plugin-module {
	isolation: isolate;
}
.module-meta {
	min-height: 45px;
	align-items: center;
}
.module-copy a,
.system-action a,
.diag-copy a {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	line-height: 1.25;
}

.sequence-track article div {
	min-width: 0;
}
.sequence-track strong {
	line-height: 1.06;
}

select,
select option,
.woocommerce select,
.woocommerce select option {
	background-color: #0a1513;
	color: #f3f6ef;
}

@media (max-width: 680px) {
	.neo-button {
		min-height: 60px;
		font-size: 12px;
	}
	.neo-button span {
		min-height: 58px;
		padding: 12px 18px;
	}
	.neo-button b {
		flex-basis: 58px;
		min-height: 58px;
	}
	.hero-orbit {
		transform: translateY(-50%) rotateX(42deg) rotateZ(calc(var(--scroll-progress, 0) * 55deg));
	}
	.hero-orbit .core span {
		transform: rotate(-45deg) scaleY(1.55);
	}
	.plugin-module,
	.plugin-module-wide {
		grid-template-rows: auto minmax(260px, 42vh) auto;
		border-color: rgba(184, 255, 99, .2);
		box-shadow: 10px 10px 0 rgba(76, 230, 208, .035);
	}
	.plugin-module .admin-preview {
		min-height: 260px;
		border-bottom: 1px solid var(--neo-line);
	}
	.plugin-module .module-copy,
	.plugin-module-wide .module-copy {
		padding: 32px 28px 36px;
	}
	.plugin-module .module-copy h3 {
		margin-top: 0;
		font-size: 42px;
		line-height: .95;
	}
	.plugin-module .module-copy p {
		font-size: 15px;
		line-height: 1.6;
	}
	.plugin-module .module-copy a {
		width: 100%;
		margin-top: 9px;
		padding: 12px 0;
		border-top: 1px solid rgba(184, 255, 99, .25);
	}
	.sequence-track article {
		grid-template-columns: 48px minmax(0, 1fr);
		gap: 18px;
		min-height: 0;
		padding: 24px 0;
		align-items: start;
	}
	.sequence-track article div {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
		padding-top: 3px;
	}
	.sequence-track strong {
		max-width: 100%;
		font-size: clamp(25px, 8vw, 34px);
		line-height: 1.04;
		letter-spacing: -.045em;
		overflow-wrap: normal;
		word-break: normal;
		hyphens: none;
		white-space: normal;
	}
	.sequence-track b {
		line-height: 1.2;
	}
	.sequence-track:before {
		left: 23px;
	}
	.orca-order-licenses {
		overflow-x: auto;
	}
	.orca-order-licenses table {
		min-width: 660px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.holo-box {
		animation: none;
		transform: rotateX(-24deg) rotateZ(-7deg) rotateY(45deg);
	}
}

.guide-page {
	padding-top: 0;
}
.guide-hero {
	padding: clamp(90px, 12vw, 165px) 0 90px;
}
.guide-hero h1 {
	max-width: 1080px;
	margin: 26px 0;
	font-size: clamp(55px, 8.5vw, 126px);
	line-height: .82;
	letter-spacing: -.075em;
	text-transform: uppercase;
}
.guide-hero > p {
	max-width: 720px;
	color: #91a097;
	font-size: 19px;
}
.guide-jump {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 40px;
}
.guide-jump a {
	padding: 12px 16px;
	border: 1px solid var(--neo-line);
	color: var(--neo-green);
	font: 700 10px/1.2 Consolas, monospace;
	letter-spacing: .08em;
	text-decoration: none;
	text-transform: uppercase;
}
.guide-section {
	padding: 85px 0;
	border-top: 1px solid var(--neo-line);
}
.guide-section > header {
	display: grid;
	grid-template-columns: 70px 1fr;
	gap: 24px;
	align-items: start;
	margin-bottom: 48px;
}
.guide-section > header > span {
	display: grid;
	width: 55px;
	height: 55px;
	place-items: center;
	border: 1px solid var(--neo-cyan);
	border-radius: 50%;
	color: var(--neo-cyan);
	font: 700 11px/1 Consolas, monospace;
}
.guide-section header small { color: var(--neo-green); font: 700 9px/1.2 Consolas, monospace; letter-spacing: .12em; }
.guide-section h2 { margin: 8px 0 0; font-size: clamp(48px, 6vw, 84px); line-height: .85; letter-spacing: -.065em; }
.guide-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid var(--neo-line);
	border-left: 1px solid var(--neo-line);
}
.guide-grid article {
	min-height: 260px;
	padding: 28px;
	border-right: 1px solid var(--neo-line);
	border-bottom: 1px solid var(--neo-line);
	background: rgba(8, 13, 11, .66);
}
.guide-grid article > b { color: var(--neo-orange); font: 700 9px/1.2 Consolas, monospace; letter-spacing: .1em; }
.guide-grid h3 { margin: 30px 0 15px; font-size: 25px; line-height: 1; letter-spacing: -.04em; }
.guide-grid p,
.guide-copy { color: #94a198; line-height: 1.65; }
.guide-copy { max-width: 850px; font-size: 18px; }
.guide-support {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 50px;
	margin: 70px 0 110px;
	padding: 55px;
	border: 1px solid rgba(255, 107, 36, .45);
	background: linear-gradient(110deg, rgba(255, 107, 36, .12), rgba(8, 13, 11, .92) 60%);
}
.guide-support h2 { max-width: 800px; margin: 20px 0; font-size: clamp(40px, 5vw, 72px); line-height: .88; letter-spacing: -.06em; }
.guide-support p { max-width: 720px; color: #9ba89f; }
@media (max-width: 900px) {
	.guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.guide-support { align-items: stretch; flex-direction: column; }
}
@media (max-width: 680px) {
	.guide-hero { padding-top: 70px; }
	.guide-hero h1 { font-size: 51px; }
	.guide-grid { grid-template-columns: 1fr; }
	.guide-grid article { min-height: 0; }
	.guide-support { padding: 30px 24px; }
}
