/* Kadstar color system, dark mode, cards, buttons, and motion. */

:root {
	--ks-blue: #0160f9;
	--ks-white: #ffffff;
	--ks-grey: #f7f7f7;
	--ks-black: #000000;
	--ks-ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

.site-header.header--blue {
	background-color: var(--ks-blue);
	border-color: rgba(255, 255, 255, 0.2);
	color: #ffffff;
}

.site-header.header--blue .logo-dark {
	display: none;
}

.site-header.header--blue .logo-light {
	display: block;
}

.site-header.header--blue .kadstar-wordmark,
.site-header.header--blue .kadstar-nav a,
.site-header.header--blue .kadstar-menu-btn {
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.28);
}

.site-header.header--blue .kadstar-wordmark-sub,
.site-header.header--blue .kadstar-nav a {
	color: rgba(255, 255, 255, 0.82);
}

.site-header.header--blue .kadstar-nav a[aria-current="page"],
.site-header.header--blue .kadstar-nav .current-menu-item > a {
	color: #ffffff;
	font-weight: 700;
}

.site-section.section--blue,
.site-section.section--black,
.site-footer {
	background-color: var(--ks-blue) !important;
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.2);
}

.site-footer :is(p, span, a, li, div, h1, h2, h3, h4) {
	color: #ffffff;
}

.site-footer a {
	color: #ffffff !important;
	transition: color 0.3s ease;
}

.site-footer a:hover,
.site-footer .kadstar-footer-nav li:hover,
.site-footer .kadstar-footer-nav li:hover a {
	color: #000000 !important;
}

.site-footer .bg-surface-container-lowest,
.site-footer .bg-surface-container-lowest :is(span, a) {
	color: #000000 !important;
}

.site-section.section--blue :is(h1, h2, h3, h4, p, li, blockquote, label),
.site-section.section--black :is(h1, h2, h3, h4, p, li, blockquote, label) {
	color: #ffffff;
}

.kadstar-ink-white :is(h1, h2, h3, h4, h5, h6, p, span, li, label, a, div) {
	color: #ffffff !important;
}

.kadstar-ink-white .bg-surface-container-lowest,
.kadstar-ink-white .bg-surface-container-lowest :is(h1, h2, h3, h4, p, span, li, label, a, div) {
	color: #000000 !important;
}

.kadstar-ink-white .bg-surface-container-lowest .bg-primary,
.kadstar-ink-white .bg-surface-container-lowest .bg-primary :is(span, div) {
	color: #ffffff !important;
}

.site-section.section--blue .bg-primary-container,
.site-section.section--black .bg-primary-container {
	background-color: rgba(0, 0, 0, 0.18) !important;
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.2) !important;
}

.site-section .kadstar-focus-card {
	background-color: #ffffff;
	box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12) !important;
}

.site-section .kadstar-focus-card:hover {
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16) !important;
	transform: translateY(-5px);
}

html[data-kadstar-mode="dark"] .site-section .kadstar-focus-card {
	background-color: #161616;
	box-shadow: none;
	border-color: rgba(255, 255, 255, 0.1);
}

.site-section :is(.bg-surface-container-lowest, .bg-surface-container-low, .bg-surface-container, .bg-surface-container-high, .bg-tertiary-container):is(.border, .border-2, .shadow-sm, .shadow-md, .shadow-lg, .shadow-2xl) {
	box-shadow: 0 10px 35px rgba(0, 0, 0, 0.07);
	border-color: rgba(0, 0, 0, 0.05);
	transition: transform 0.35s var(--ks-ease), box-shadow 0.35s var(--ks-ease);
}

.site-section :is(.bg-surface-container-lowest, .bg-surface-container-low, .bg-surface-container, .bg-tertiary-container):is(.border, .border-2, .shadow-sm, .shadow-md):hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

a.bg-primary,
button.bg-primary,
.kadstar-cta {
	position: relative;
	z-index: 0;
	overflow: hidden;
	background-color: #000000 !important;
	color: #ffffff !important;
	border-color: #000000 !important;
	transition: color 0.35s var(--ks-ease), transform 0.35s var(--ks-ease), box-shadow 0.35s var(--ks-ease);
}

a.bg-primary::before,
button.bg-primary::before,
.kadstar-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--ks-blue);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.35s var(--ks-ease);
}

a.bg-primary:hover,
button.bg-primary:hover,
.kadstar-cta:hover {
	color: #ffffff !important;
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(1, 96, 249, 0.22);
}

a.bg-primary:hover::before,
button.bg-primary:hover::before,
.kadstar-cta:hover::before {
	transform: scaleX(1);
}

.section--blue :is(a, button).bg-primary::before,
.section--black :is(a, button).bg-primary::before,
.header--blue .kadstar-cta::before,
.site-footer :is(a, button).bg-primary::before {
	background: #ffffff;
}

.section--blue :is(a, button).bg-primary:hover,
.section--black :is(a, button).bg-primary:hover,
.header--blue .kadstar-cta:hover,
.site-footer :is(a, button).bg-primary:hover {
	color: var(--ks-blue) !important;
}

.kadstar-arrow {
	transition: transform 0.35s var(--ks-ease);
}

a:hover .kadstar-arrow,
button:hover .kadstar-arrow {
	transform: translate(4px, -4px);
}

.kadstar-theme-switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	width: 54px;
	height: 28px;
	padding: 0 6px;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	flex: 0 0 auto;
	cursor: pointer;
}

.kadstar-theme-switch__sun,
.kadstar-theme-switch__moon {
	width: 12px;
	height: 12px;
	z-index: 1;
}

.kadstar-theme-switch__knob {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: currentColor;
	transition: transform 0.3s ease;
}

html[data-kadstar-mode="dark"] .kadstar-theme-switch__knob {
	transform: translateX(26px);
}

html[data-kadstar-mode="light"] .kadstar-theme-switch__moon,
html[data-kadstar-mode="dark"] .kadstar-theme-switch__sun {
	opacity: 0.35;
}

.kadstar-theme-switch:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

html[data-kadstar-mode="dark"] body,
html[data-kadstar-mode="dark"] main {
	background-color: #000000 !important;
	color: #ffffff;
}

html[data-kadstar-mode="dark"] .site-section.section--white {
	background-color: #000000 !important;
	color: #ffffff;
}

html[data-kadstar-mode="dark"] .site-section.section--grey {
	background-color: #111111 !important;
	color: #ffffff;
}

html[data-kadstar-mode="dark"] .site-section.section--blue,
html[data-kadstar-mode="dark"] .site-section.section--black,
html[data-kadstar-mode="dark"] .site-footer {
	background-color: var(--ks-blue) !important;
}

html[data-kadstar-mode="dark"] .site-section.section--white :is(h1, h2, h3, h4, blockquote),
html[data-kadstar-mode="dark"] .site-section.section--grey :is(h1, h2, h3, h4, blockquote),
html[data-kadstar-mode="dark"] .legal-copy h1,
html[data-kadstar-mode="dark"] .legal-copy h2 {
	color: #ffffff !important;
}

html[data-kadstar-mode="dark"] .site-section.section--white :is(p, li),
html[data-kadstar-mode="dark"] .site-section.section--grey :is(p, li),
html[data-kadstar-mode="dark"] .legal-copy,
html[data-kadstar-mode="dark"] .legal-copy p,
html[data-kadstar-mode="dark"] .legal-copy li {
	color: #d0d0d0 !important;
}

html[data-kadstar-mode="dark"] .site-section.section--white :is(.text-secondary, .text-on-surface-variant),
html[data-kadstar-mode="dark"] .site-section.section--grey :is(.text-secondary, .text-on-surface-variant) {
	color: #a8a8a8 !important;
}

html[data-kadstar-mode="dark"] .site-section.section--white :is(.bg-surface, .bg-surface-container-lowest, .bg-surface-container-low, .bg-surface-container, .bg-surface-container-high, .bg-tertiary-container),
html[data-kadstar-mode="dark"] .site-section.section--grey :is(.bg-surface, .bg-surface-container-lowest, .bg-surface-container-low, .bg-surface-container, .bg-surface-container-high, .bg-tertiary-container) {
	background-color: #161616 !important;
	color: #cccccc;
	border-color: rgba(255, 255, 255, 0.1) !important;
	box-shadow: none;
}

html[data-kadstar-mode="dark"] .site-header.header--white {
	background-color: #000000;
	border-color: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

html[data-kadstar-mode="dark"] .site-header.header--grey {
	background-color: #111111;
	border-color: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

html[data-kadstar-mode="dark"] .site-header.header--white .logo-dark,
html[data-kadstar-mode="dark"] .site-header.header--grey .logo-dark {
	display: none;
}

html[data-kadstar-mode="dark"] .site-header.header--white .logo-light,
html[data-kadstar-mode="dark"] .site-header.header--grey .logo-light {
	display: block;
}

html[data-kadstar-mode="dark"] .site-header.header--white .kadstar-wordmark,
html[data-kadstar-mode="dark"] .site-header.header--grey .kadstar-wordmark,
html[data-kadstar-mode="dark"] .site-header.header--white .kadstar-nav a,
html[data-kadstar-mode="dark"] .site-header.header--grey .kadstar-nav a,
html[data-kadstar-mode="dark"] .site-header.header--white .kadstar-menu-btn,
html[data-kadstar-mode="dark"] .site-header.header--grey .kadstar-menu-btn {
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.2);
}

html[data-kadstar-mode="dark"] .site-section.section--white :is(a, button).bg-primary,
html[data-kadstar-mode="dark"] .site-section.section--grey :is(a, button).bg-primary,
html[data-kadstar-mode="dark"] .site-header.header--white .kadstar-cta,
html[data-kadstar-mode="dark"] .site-header.header--grey .kadstar-cta {
	background-color: #ffffff !important;
	color: #000000 !important;
	border-color: #ffffff !important;
}

html[data-kadstar-mode="dark"] .site-section.section--white :is(a, button).bg-primary:hover,
html[data-kadstar-mode="dark"] .site-section.section--grey :is(a, button).bg-primary:hover,
html[data-kadstar-mode="dark"] .site-header.header--white .kadstar-cta:hover,
html[data-kadstar-mode="dark"] .site-header.header--grey .kadstar-cta:hover {
	color: #ffffff !important;
}

html[data-kadstar-mode="dark"] :is(input, textarea, select) {
	background-color: #111111 !important;
	color: #ffffff !important;
	border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-kadstar-mode="dark"] :is(input, textarea)::placeholder {
	color: #a8a8a8;
}

[data-ks-anim] {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.7s var(--ks-ease), transform 0.7s var(--ks-ease);
}

[data-ks-anim="image"] {
	transform: scale(1.04);
	clip-path: inset(8% 8% 8% 8%);
}

[data-ks-anim].is-in {
	opacity: 1;
	transform: none;
	clip-path: inset(0);
}

html[data-kadstar-mode="dark"] .site-section:not(.section--blue) :is(h1, h2, h3, h4, h5, h6, p, span, li, label, a, div, blockquote, button) {
	color: #ffffff !important;
}

html[data-kadstar-mode="dark"] .site-section:not(.section--blue) :is(a, button).bg-primary,
html[data-kadstar-mode="dark"] #submit-button,
html[data-kadstar-mode="dark"] .site-header:not(.header--blue) .kadstar-cta {
	color: #000000 !important;
	background-color: #ffffff !important;
	border-color: #ffffff !important;
}

html[data-kadstar-mode="dark"] .site-section:not(.section--blue) :is(a, button).bg-primary :is(span, svg),
html[data-kadstar-mode="dark"] #submit-button :is(span, svg) {
	color: #000000 !important;
	background-color: transparent !important;
}

html[data-kadstar-mode="dark"] .site-section .kadstar-ink-on-light {
	background-color: #f4f4f4 !important;
	color: #000000 !important;
}

html[data-kadstar-mode="dark"] .site-section .kadstar-ink-on-light :is(h1, h2, h3, h4, h5, h6, p, span, li, label, a, div, button) {
	color: #000000 !important;
}

html[data-kadstar-mode="dark"] .site-section .kadstar-ink-on-light a.bg-surface-container-lowest,
html[data-kadstar-mode="dark"] .site-section .kadstar-ink-on-light a.bg-surface-container-lowest .kadstar-arrow {
	background-color: #111111 !important;
	border-color: #111111 !important;
	color: #ffffff !important;
}

html[data-kadstar-mode="dark"] .site-section .kadstar-figure-dark,
html[data-kadstar-mode="dark"] .site-section .kadstar-figure-dark [class*="bg-"],
html[data-kadstar-mode="dark"] .site-section.section--white .kadstar-figure-dark [class*="bg-"],
html[data-kadstar-mode="dark"] .site-section.section--grey .kadstar-figure-dark [class*="bg-"] {
	background-color: #000000 !important;
	color: #ffffff !important;
}

html[data-kadstar-mode="dark"] .site-section .kadstar-figure-dark :is(span, p, div, label) {
	color: #ffffff !important;
}

.kadstar-hero-stage {
	padding: 2.35rem 1rem;
}

.kadstar-hero-marker {
	line-height: 1.4;
}

html[data-kadstar-mode="dark"] img.mix-blend-multiply {
	mix-blend-mode: normal !important;
	filter: invert(1) grayscale(1) contrast(1.05);
}

html[data-kadstar-mode="dark"] .site-section:not(.section--blue) :is(a, button).bg-primary:hover,
html[data-kadstar-mode="dark"] .site-section:not(.section--blue) :is(a, button).bg-primary:hover :is(span, svg),
html[data-kadstar-mode="dark"] #submit-button:hover,
html[data-kadstar-mode="dark"] #submit-button:hover :is(span, svg),
html[data-kadstar-mode="dark"] .site-header:not(.header--blue) .kadstar-cta:hover {
	color: #ffffff !important;
}

html[data-kadstar-mode="dark"] .site-section:not(.section--blue) :is(span, div).bg-primary {
	background-color: #ffffff !important;
	color: #000000 !important;
}

html[data-kadstar-mode="dark"] .site-section:not(.section--blue) a.border-2:not(.bg-primary),
html[data-kadstar-mode="dark"] .site-section:not(.section--blue) button.border-2:not(.bg-primary) {
	background-color: transparent !important;
	border-color: #ffffff !important;
	color: #ffffff !important;
}

@media (prefers-reduced-motion: reduce) {
	[data-ks-anim],
	[data-ks-anim].is-in {
		opacity: 1;
		transform: none;
		clip-path: none;
		transition: none;
	}

	a.bg-primary,
	button.bg-primary,
	.kadstar-cta,
	.kadstar-arrow,
	.site-section :is(.bg-surface-container-lowest, .bg-surface-container-low, .bg-surface-container) {
		transition: none;
	}
}
