/* Hero presentation only. Every visible text and image remains a Gutenberg block. */
.inocharge-hero--premium {
	--inocharge-hero-line: rgb(255 255 255 / 14%);
	position: relative;
	isolation: isolate;
	overflow: clip;
	color: var(--inocharge-white);
	background:
		radial-gradient(ellipse at 85% 25%, rgb(0 182 154 / 16%), transparent 43%),
		linear-gradient(125deg, var(--inocharge-graphite) 15%, #07151b 65%, #102e32);
	padding: clamp(2.25rem, 4vw, 4rem) clamp(1rem, 4vw, 3rem) 0;
}

.inocharge-hero--premium .inocharge-hero__inner,
.inocharge-hero--premium .inocharge-hero__strip {
	width: min(100%, 84rem);
	max-width: 84rem;
	margin-inline: auto;
}

.inocharge-hero--premium .inocharge-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: clamp(1.5rem, 3vw, 2.5rem);
}

.inocharge-hero--premium .inocharge-hero__inner > *,
.inocharge-hero--premium .inocharge-hero__chips > *,
.inocharge-hero--premium .inocharge-hero__strip > * {
	min-width: 0;
	margin-block: 0;
}

.inocharge-hero--premium .inocharge-hero__copy {
	position: relative;
	z-index: 2;
	max-width: 48rem;
}

.inocharge-hero--premium .inocharge-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0 0 1.25rem;
	color: var(--inocharge-teal);
	font-size: clamp(0.66rem, 1vw, 0.75rem);
	letter-spacing: 0.16em;
	line-height: 1.6;
}

.inocharge-hero--premium .inocharge-eyebrow::before {
	flex: 0 0 0.4rem;
	width: 0.4rem;
	height: 0.4rem;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 1rem rgb(0 182 154 / 65%);
	content: '';
}

.inocharge-hero--premium .inocharge-hero__title {
	max-width: 22ch;
	margin: 0;
	font-size: clamp(2.1rem, 1.25rem + 3.3vw, 4.5rem);
	font-weight: 650;
	letter-spacing: -0.055em;
	line-height: 1.07;
	text-wrap: balance;
	overflow-wrap: break-word;
}

.inocharge-hero--premium .inocharge-section-lead {
	max-width: 44ch;
	margin-block: 1.5rem 0;
	color: #bccbce;
	font-size: clamp(1rem, 1.35vw, 1.16rem);
	line-height: 1.7;
}

.inocharge-hero--premium .inocharge-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-block: 1.75rem 0;
}

.inocharge-hero--premium .wp-block-button__link {
	min-height: 3.25rem;
	padding-inline: clamp(0.9rem, 1.5vw, 1.4rem);
	border-radius: 0.7rem;
	font-size: 0.84rem;
	font-weight: 700;
}

.inocharge-hero--premium .inocharge-button-primary .wp-block-button__link {
	box-shadow: 0 0.4rem 2rem rgb(0 182 154 / 16%);
}

.inocharge-hero--premium .inocharge-button-primary .wp-block-button__link::after {
	margin-left: 0.65rem;
	font-size: 1.1rem;
	content: '\2197';
}

.inocharge-hero--premium .inocharge-button-outline .wp-block-button__link {
	border-color: rgb(255 255 255 / 28%);
	background: rgb(255 255 255 / 3%);
	color: var(--inocharge-white);
}

.inocharge-hero--premium .inocharge-hero__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.5rem;
}

.inocharge-hero--premium .inocharge-hero__chip {
	border: 1px solid var(--inocharge-hero-line);
	border-radius: 100vmax;
	background: rgb(255 255 255 / 3%);
	padding: 0.45rem 0.7rem;
	color: #c9d5d7;
	font-size: 0.7rem;
	font-weight: 550;
	line-height: 1.4;
	white-space: nowrap;
}

.inocharge-hero--premium .inocharge-hero__stage {
	position: relative;
	isolation: isolate;
	display: grid;
	place-items: center;
	justify-self: center;
	width: 100%;
	min-width: 0;
	max-width: 32rem;
	aspect-ratio: 1 / 1.01;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	padding: 0;
	margin: 0;
}

/* Light sits behind the unfiltered product; it never changes the LED or body color. */
.inocharge-hero--premium .inocharge-hero__stage::before {
	position: absolute;
	inset: 8% -2%;
	z-index: -1;
	border-radius: 50%;
	background: radial-gradient(ellipse, rgb(0 182 154 / 24%), rgb(0 182 154 / 8%) 42%, transparent 70%);
	transform: translate3d(var(--inocharge-shift-x, 0px), var(--inocharge-shift-y, 0px), 0);
	content: '';
	pointer-events: none;
}

.inocharge-hero__stage .inocharge-hero__media-label,
.inocharge-hero__stage .inocharge-hero__media-caption {
	position: absolute;
	left: 1.25rem;
	right: 1.25rem;
	margin: 0;
	color: #a7c4c5;
	font-size: 0.62rem;
	font-weight: 550;
	letter-spacing: 0.13em;
	line-height: 1.6;
	text-transform: uppercase;
}

.inocharge-hero__stage .inocharge-hero__media-label {
	top: 1.25rem;
}

.inocharge-hero__stage .inocharge-hero__media-caption {
	bottom: 1.25rem;
	border-top: 1px solid rgb(255 255 255 / 10%);
	padding-top: 1rem;
}

.inocharge-hero__placeholder {
	width: 80%;
	max-width: 25rem;
	margin: 0;
	text-align: center;
}

.inocharge-hero__wordmark {
	margin: 0;
	color: var(--inocharge-white);
	font-size: clamp(1.5rem, 3.4vw, 2.75rem);
	font-weight: 750;
	letter-spacing: 0.09em;
	line-height: 1.2;
}

.inocharge-hero__media-title {
	max-width: 22ch;
	margin: 0.8rem auto 0;
	color: #b4cec9;
	font-size: clamp(0.8rem, 1.2vw, 1rem);
	line-height: 1.5;
}

.inocharge-hero__media-hint {
	max-width: 25ch;
	margin: 1.25rem auto 0;
	color: #9bb6b8;
	font-size: 0.65rem;
	line-height: 1.5;
}

.inocharge-hero__stage:has(img) .inocharge-hero__placeholder,
.inocharge-hero__stage:has(img) .inocharge-hero__media-label,
.inocharge-hero__stage:has(img) .inocharge-hero__media-caption {
	display: none;
}

/* Use the whole canvas: the supplied PNG has faint edge pixels and little vertical
 * clearance. Enlarging the stage instead of cropping preserves every cable end. */
.inocharge-hero--premium .inocharge-hero__stage > .wp-block-image {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
}

.inocharge-hero--premium .inocharge-hero__stage > .wp-block-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	filter: none;
	mix-blend-mode: normal;
}

.inocharge-hero--premium .inocharge-hero__strip {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
	border-top: 1px solid var(--inocharge-hero-line);
	margin-top: clamp(1.5rem, 3vw, 2.75rem);
	padding-block: 1.5rem;
}

.inocharge-hero__strip-label {
	color: #94acae;
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.13em;
	line-height: 1.6;
}

.inocharge-hero__strip-item {
	color: #c9d5d7;
	font-size: 0.75rem;
	line-height: 1.5;
}

.inocharge-hero :where(a, button):focus-visible {
	outline: 3px solid var(--inocharge-white);
	outline-offset: 4px;
}

/* Scoped to pages whose first content block is the hero, including saved parts. */
.inocharge-hero-page .wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #111820;
	border-bottom: 1px solid rgb(255 255 255 / 9%);
	transition: background-color 220ms ease, box-shadow 220ms ease;
}

.inocharge-hero-page .wp-site-blocks > header.wp-block-template-part.inocharge-header--scrolled {
	background: rgb(17 24 32 / 98%);
	box-shadow: 0 0.7rem 2rem rgb(0 0 0 / 18%);
}

.inocharge-hero-page .wp-site-blocks > header.wp-block-template-part > .wp-block-group {
	border-bottom: 0;
	background: transparent;
	color: var(--inocharge-white);
}

.inocharge-hero-page .wp-site-blocks > header.wp-block-template-part .wp-block-site-title a,
.inocharge-hero-page .wp-site-blocks > header :where(.wp-block-navigation-item__content, .inocharge-header__contact a) {
	color: var(--inocharge-white);
}

.inocharge-hero-page header .inocharge-header__tagline,
.inocharge-hero-page header > .wp-block-group > p:not(.wp-block-site-title) {
	color: #aec2c5;
	font-size: 0.75rem;
}

.inocharge-hero-page header .wp-block-inocharge-language-switcher {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	border: 1px solid rgb(255 255 255 / 15%);
	border-radius: 100vmax;
	padding: 0.2rem 0.55rem;
}

.inocharge-hero-page header .wp-block-inocharge-language-switcher a {
	display: inline-flex;
	align-items: center;
	min-height: 2.25rem;
	color: #aec2c5;
	font-size: 0.7rem;
}

.inocharge-hero-page header .wp-block-inocharge-language-switcher a[aria-current="page"] {
	color: var(--inocharge-teal);
}

.inocharge-hero-page header .inocharge-header__contact {
	border-color: rgb(255 255 255 / 20%);
	background: rgb(255 255 255 / 5%);
	color: var(--inocharge-white);
}

.inocharge-hero-page .inocharge-header__inner > *,
.inocharge-hero-page .inocharge-header__brand > *,
.inocharge-hero-page .inocharge-header__actions > * {
	margin-block: 0;
}

.inocharge-hero-page header .wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay),
.inocharge-hero-page header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--inocharge-graphite);
	color: var(--inocharge-white);
}

.inocharge-hero-page header .wp-block-navigation__responsive-container-open,
.inocharge-hero-page header .wp-block-navigation__responsive-container-close {
	min-width: 2.75rem;
	min-height: 2.75rem;
	color: var(--inocharge-white);
}

.inocharge-hero-page .wp-site-blocks > main {
	margin-block-start: 0;
}

.inocharge-hero-page .wp-block-post-content > [id] {
	scroll-margin-top: var(--inocharge-header-offset, 10rem);
}

/* A fixed minimum height on the existing landscape slots forced mobile overflow. */
.inocharge-hero-page .inocharge-media-slot--landscape {
	width: 100%;
	min-height: 0;
}

.inocharge-hero-page.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: 32px;
}

@media (max-width: 782px) {
	.inocharge-hero-page.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.inocharge-hero-page.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
	.inocharge-hero--premium .inocharge-hero__buttons .wp-block-button {
		flex: 1 1 auto;
	}
	.inocharge-hero--premium .wp-block-button__link {
		width: 100%;
	}
	.inocharge-hero-page .inocharge-header__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 0.5rem 1rem;
	}
	.inocharge-hero-page .inocharge-header__brand {
		grid-area: 1 / 1;
	}
	.inocharge-hero-page .inocharge-header__inner > .inocharge-header__nav {
		grid-area: 1 / 2;
		justify-self: end;
		width: auto;
	}
	.inocharge-hero-page .inocharge-header__actions {
		grid-area: 2 / 1 / 3 / -1;
		justify-content: flex-end;
		margin: 0;
	}
	.inocharge-hero-page header.wp-block-template-part > .wp-block-group:not(.inocharge-header) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 0.5rem 1rem;
	}
	.inocharge-hero-page header.wp-block-template-part > .wp-block-group:not(.inocharge-header) > .wp-block-site-title {
		grid-area: 1 / 1;
	}
	.inocharge-hero-page header.wp-block-template-part > .wp-block-group:not(.inocharge-header) > .wp-block-navigation {
		grid-area: 1 / 2;
		justify-self: end;
	}
	.inocharge-hero-page header.wp-block-template-part > .wp-block-group:not(.inocharge-header) > p:not(.wp-block-site-title) {
		grid-area: 2 / 1;
		margin: 0;
	}
	.inocharge-hero-page header.wp-block-template-part > .wp-block-group:not(.inocharge-header) > .wp-block-inocharge-language-switcher {
		grid-area: 2 / 2;
		justify-self: end;
	}
}

@media (min-width: 48rem) {
	.inocharge-hero--premium .inocharge-hero__strip {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		align-items: center;
	}
	.inocharge-hero__strip-item {
		border-left: 1px solid var(--inocharge-hero-line);
		padding-left: 1.5rem;
	}
}

/* Below 1024px the copy needs a full row, especially for the longer TR title. */
@media (min-width: 64rem) {
	.inocharge-hero--premium .inocharge-hero__inner {
		grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
		gap: clamp(1.5rem, 2.5vw, 3rem);
	}
	.inocharge-hero--premium .inocharge-hero__title {
		max-width: 16ch;
	}
	.inocharge-hero--premium .inocharge-hero__stage {
		max-width: 42rem;
	}
}

@media (max-width: 23rem) {
	.inocharge-hero--premium .inocharge-hero__buttons .wp-block-button {
		flex-basis: 100%;
	}
}

@media (hover: hover) and (pointer: fine) {
	.inocharge-hero--premium .inocharge-button-outline .wp-block-button__link[href]:hover {
		border-color: var(--inocharge-teal);
		background: rgb(0 182 154 / 10%);
	}
}

@media (prefers-reduced-motion: no-preference) {
	body:not(.editor-styles-wrapper) .inocharge-hero--premium .inocharge-hero__copy,
	body:not(.editor-styles-wrapper) .inocharge-hero--premium .inocharge-hero__stage {
		animation: inocharge-hero-enter 850ms cubic-bezier(0.16, 1, 0.3, 1) both;
	}
	body:not(.editor-styles-wrapper) .inocharge-hero--premium .inocharge-hero__stage {
		animation-delay: 100ms;
	}
}

@keyframes inocharge-hero-enter {
	from { opacity: 0.35; transform: translateY(1rem); }
	to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.inocharge-hero-page .wp-site-blocks > header.wp-block-template-part {
		transition: none;
	}
}
