/* ==========================================================================
   Chatbot Factory EU: holographic blueprint
   Palette: deep blueprint navy, brand blue, holographic line cyan,
   paper white, EU signal yellow, fault coral.
   Type: Saira (variable width + weight), Saira Stencil One for numerals.
   ========================================================================== */

/* Fonts (self-hosted, SIL Open Font License) ------------------------------ */
@font-face {
	font-family: "Saira";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	font-stretch: 50% 125%;
	src: url("../fonts/saira-latin-ext-wdth-normal.woff2") format("woff2-variations"), url("../fonts/saira-latin-ext-wdth-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Saira";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	font-stretch: 50% 125%;
	src: url("../fonts/saira-latin-wdth-normal.woff2") format("woff2-variations"), url("../fonts/saira-latin-wdth-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Saira Stencil";
	font-style: normal;
	font-display: swap;
	font-weight: 400;
	src: url("../fonts/saira-stencil-one-latin-ext-400-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Saira Stencil";
	font-style: normal;
	font-display: swap;
	font-weight: 400;
	src: url("../fonts/saira-stencil-one-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tokens ------------------------------------------------------------------- */
:root {
	/* Dark ink: text on light or yellow surfaces, dark accents, menus. */
	--ink: #051537;
	--ink-2: #08204c;
	--ink-3: #0b2a5e;
	/* Page background. Hue, saturation and lightness come from the Customizer
	   (Chatbot Factory > Colours and effects) and can be changed live. */
	--bg-h: 218;
	--bg-s: 90%;
	--bg-l: 38%;
	--bg: hsl(var(--bg-h) var(--bg-s) var(--bg-l));
	--bg-deep: hsl(var(--bg-h) var(--bg-s) calc(var(--bg-l) * 0.5));
	--bg-bar: hsl(var(--bg-h) var(--bg-s) calc(var(--bg-l) * 0.42) / 0.88);
	/* Panels on the page: translucent, so they follow the background. */
	--panel: rgba(4, 18, 50, 0.4);
	--panel-2: rgba(4, 18, 50, 0.58);
	--panel-line: rgba(255, 255, 255, 0.26);
	--line: #c2e7ff;
	--line-rgb: 194, 231, 255;
	--paper: #f1f6ff;
	--muted: #d3e1fb;
	--fault: #ffb3aa;
	--fault-rgb: 255, 179, 170;
	--signal: #ffcc00;
	--signal-rgb: 255, 204, 0;
	--blueprint: #0a4bb8;
	--blueprint-rgb: 10, 75, 184;

	--font: "Saira", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--stencil: "Saira Stencil", "Saira", Impact, sans-serif;

	--fs-xs: 0.8125rem;
	--fs-sm: 0.9375rem;
	--fs-base: 1.125rem;
	--fs-lead: 1.3125rem;
	--fs-h3: 1.5rem;
	--fs-h2: clamp(2.25rem, 1.45rem + 2.6vw, 3.75rem);
	--fs-ask: clamp(1.75rem, 1.05rem + 2.6vw, 3.5rem);
	--fs-answer: clamp(2.5rem, 0.9rem + 6vw, 6.5rem);

	--wrap: 1240px;
	--gutter: clamp(20px, 4vw, 40px);
	--header-h: 72px;
	--r-bubble: 16px;
	--r-btn: 6px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--grid-a: rgba(255, 255, 255, 0.1);
	--grid-b: rgba(255, 255, 255, 0.045);
	/* Background effects: strength from the Customizer (0 to 1). */
	--fx-a: 0.8;
	--fx-sp: 1.3;
}

/* Base --------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
	background: var(--bg);
}

/* The body stays transparent so the fixed background layer (.fx) shows. */
body {
	margin: 0;
	background: transparent;
	color: var(--paper);
	font-family: var(--font);
	font-size: var(--fs-base);
	font-stretch: 100%;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

body.menu-open,
body.chat-open {
	overflow: hidden;
}

img,
svg,
video,
canvas {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: var(--line);
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

a:hover {
	color: var(--paper);
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--signal);
	outline-offset: 3px;
}

::selection {
	background: var(--signal);
	color: var(--ink);
}

h1,
h2,
h3,
h4 {
	text-wrap: balance;
	overflow-wrap: break-word;
	-webkit-hyphens: auto;
	hyphens: auto;
}

/* Section titles keep whole words: on narrow screens main.js shrinks them
   until the longest word fits ("Produktionslinie", "kuukausimaksullista"). */
.section__title {
	-webkit-hyphens: manual;
	hyphens: manual;
}

.btn,
.chip,
.module__name,
.station__title,
.feature__title {
	overflow-wrap: break-word;
}

p {
	text-wrap: pretty;
}

.icon {
	width: 22px;
	height: 22px;
	flex: none;
}

.sr-only,
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: var(--r-btn);
	background: var(--signal);
	color: var(--ink);
	font-weight: 700;
	text-decoration: none;
}

.skip-link:focus {
	top: 12px;
}

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.wrap--text {
	max-width: calc(800px + 2 * var(--gutter));
}

/* Blueprint grid ------------------------------------------------------------ */
.bp-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--grid-a) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-a) 1px, transparent 1px),
		linear-gradient(var(--grid-b) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-b) 1px, transparent 1px);
	background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
	background-position: center -1px;
	-webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 35%, transparent 85%);
	mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 35%, transparent 85%);
}

.bp-grid--lit {
	--grid-a: rgba(var(--line-rgb), 0.34);
	--grid-b: rgba(var(--line-rgb), 0.15);
	-webkit-mask-image: radial-gradient(circle 240px at var(--mx, 70%) var(--my, 40%), #000, transparent 75%);
	mask-image: radial-gradient(circle 240px at var(--mx, 70%) var(--my, 40%), #000, transparent 75%);
	opacity: 0;
	transition: opacity 0.5s;
}

.hero.is-lit .bp-grid--lit {
	opacity: 1;
}

/* Background layer: grid and futuristic effects --------------------------- */
/* Fixed behind the whole page. Each effect has its own switch in the
   Customizer (body classes fx-*) and --fx-a sets their strength. */
.fx {
	position: fixed;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
}

.fx > * {
	position: absolute;
	display: none;
}

.fx-grid .fx__grid,
.fx-aurora .fx__aurora,
.fx-hud .fx__hud,
.has-effects.fx-pulses .fx__pulses,
.has-effects.fx-dust .fx__dust,
.has-effects.fx-scan .fx__scan {
	display: block;
}

.fx__grid {
	inset: 0;
	background-image:
		linear-gradient(var(--grid-a) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-a) 1px, transparent 1px),
		linear-gradient(var(--grid-b) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-b) 1px, transparent 1px);
	background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
}

/* 3D wave of light points (drawn by wave.js). With the wave on, the flat
   grid stays in the upper part of the screen, like a sky over the surface. */
.fx-wave .fx__wave {
	display: block;
}

.fx-wave .fx__grid {
	-webkit-mask-image: linear-gradient(180deg, #000 0, #000 36%, transparent 58%);
	mask-image: linear-gradient(180deg, #000 0, #000 36%, transparent 58%);
}

.fx__wave {
	inset: 0;
	width: 100%;
	height: 100%;
}

/* Text over the moving light keeps a soft shadow, so it stays easy to read. */
.fx-wave .hero__lead,
.fx-wave .hero__ask,
.fx-wave .section__text,
.fx-wave .section__title {
	text-shadow: 0 1px 14px rgba(3, 14, 40, 0.5);
}

/* Optional background video, tinted with the page colour */
.fx--video {
	background: var(--bg);
}

.fx-video-on .fx__video {
	display: block;
}

.fx__video {
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.15);
	mix-blend-mode: screen;
	opacity: calc(var(--fx-a) * 0.7);
}

/* Soft glows of light drifting behind the content */
.fx__aurora {
	inset: 0;
	opacity: var(--fx-a);
}

.fx__aurora i {
	position: absolute;
	width: 72vmax;
	height: 72vmax;
	border-radius: 50%;
}

.fx__aurora i:nth-child(1) {
	left: -26vmax;
	top: -30vmax;
	background: radial-gradient(closest-side, rgba(64, 224, 255, 0.26), rgba(64, 224, 255, 0) 72%);
}

.fx__aurora i:nth-child(2) {
	right: -30vmax;
	top: 18vh;
	background: radial-gradient(closest-side, rgba(139, 120, 255, 0.3), rgba(139, 120, 255, 0) 72%);
}

.fx__aurora i:nth-child(3) {
	left: 12vw;
	bottom: -44vmax;
	background: radial-gradient(closest-side, rgba(150, 214, 255, 0.2), rgba(150, 214, 255, 0) 72%);
}

/* Rotating instrument rings, like a head-up display */
.fx__hud {
	opacity: calc(var(--fx-a) * 0.55);
}

.fx__hud--a {
	right: -14vmin;
	top: calc(var(--header-h) + 4vh);
	width: 64vmin;
	height: 64vmin;
}

.fx__hud--b {
	left: -16vmin;
	bottom: -14vmin;
	width: 46vmin;
	height: 46vmin;
	opacity: calc(var(--fx-a) * 0.4);
}

.fx__ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: rgba(255, 255, 255, 0.55);
	stroke-width: 1;
}

.fx__ring .fx__dash {
	stroke: rgba(166, 219, 255, 0.85);
	stroke-dasharray: 2 10;
	stroke-width: 2;
}

.fx__ring .fx__dash--long {
	stroke-dasharray: 46 14;
	stroke-width: 1.5;
}

.fx__ring .fx__ticks {
	stroke-dasharray: 1 7.85;
	stroke-width: 10;
	stroke: rgba(255, 255, 255, 0.4);
}

.fx__ring path {
	stroke: var(--signal);
	stroke-width: 2.5;
	stroke-linecap: round;
	opacity: 0.85;
}

.fx__ring circle[r="6"] {
	fill: rgba(166, 219, 255, 0.9);
	stroke: none;
}

/* Light pulses travelling along the grid lines */
.fx__pulses {
	inset: 0;
	opacity: var(--fx-a);
}

.fx__pulse {
	position: absolute;
	border-radius: 2px;
	background: linear-gradient(90deg, rgba(166, 219, 255, 0), rgba(166, 219, 255, 0.85) 70%, #fff);
	box-shadow: 0 0 10px rgba(166, 219, 255, 0.9);
}

.fx__pulse--h {
	left: 0;
	top: calc(var(--k) * 96px - 0.5px);
	width: 180px;
	height: 2px;
	transform: translateX(-220px);
}

.fx__pulse--v {
	top: 0;
	left: calc(var(--k) * 96px - 0.5px);
	width: 2px;
	height: 180px;
	background: linear-gradient(180deg, rgba(166, 219, 255, 0), rgba(166, 219, 255, 0.85) 70%, #fff);
	transform: translateY(-220px);
}

/* Particles of light rising slowly */
.fx__dust {
	inset: 0;
	opacity: var(--fx-a);
}

.fx__dust i {
	position: absolute;
	left: var(--x);
	bottom: -12px;
	width: var(--s);
	height: var(--s);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 8px 1px rgba(166, 219, 255, 0.9);
	opacity: 0;
}

/* A band of light that sweeps down the screen */
.fx__scan {
	left: 0;
	right: 0;
	top: -24vh;
	height: 24vh;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.05) 62%, rgba(166, 219, 255, 0.24) 97%, rgba(255, 255, 255, 0));
	opacity: var(--fx-a);
}

/* Grid points that flash up, as if data were passing through them */
.has-effects.fx-sparks .fx__sparks,
.has-effects.fx-streaks .fx__streaks {
	display: block;
}

.fx__sparks,
.fx__streaks {
	inset: 0;
	opacity: var(--fx-a);
}

.fx__sparks i {
	position: absolute;
	left: calc(var(--c) * 96px - 3px);
	top: calc(var(--r) * 96px - 3px);
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 10px 3px rgba(166, 219, 255, 0.95), 0 0 26px 8px rgba(64, 224, 255, 0.35);
	opacity: 0;
}

.fx__sparks i.is-signal {
	background: #fff6cc;
	box-shadow: 0 0 10px 3px rgba(255, 204, 0, 0.95), 0 0 26px 8px rgba(255, 204, 0, 0.35);
}

/* Shooting streaks of light crossing the screen */
.fx__streaks i {
	position: absolute;
	top: var(--y);
	left: 0;
	width: var(--l);
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, rgba(166, 219, 255, 0), rgba(166, 219, 255, 0.7) 75%, #fff);
	box-shadow: 0 0 12px rgba(166, 219, 255, 0.9);
	opacity: 0;
	transform-origin: right center;
}

/* All durations are divided by --fx-sp, the speed set in the Customizer. */
@media (prefers-reduced-motion: no-preference) {
	.has-effects.fx-grid .fx__grid {
		animation: fxGrid calc(16s / var(--fx-sp)) linear infinite;
	}

	/* Pulses and grid points travel with the grid, so they stay on its lines. */
	.has-effects.fx-grid .fx__pulses,
	.has-effects.fx-grid .fx__sparks {
		animation: fxGridMove calc(16s / var(--fx-sp)) linear infinite;
	}

	.has-effects .fx__aurora i:nth-child(1) {
		animation: fxDrift calc(20s / var(--fx-sp)) ease-in-out infinite alternate, fxGlow calc(7s / var(--fx-sp)) ease-in-out infinite alternate;
	}

	.has-effects .fx__aurora i:nth-child(2) {
		animation: fxDrift2 calc(24s / var(--fx-sp)) ease-in-out -6s infinite alternate, fxGlow calc(9s / var(--fx-sp)) ease-in-out -3s infinite alternate;
	}

	.has-effects .fx__aurora i:nth-child(3) {
		animation: fxDrift calc(28s / var(--fx-sp)) ease-in-out -10s infinite alternate-reverse, fxGlow calc(8s / var(--fx-sp)) ease-in-out -5s infinite alternate;
	}

	.has-effects .fx__ring--1 {
		animation: fxSpin calc(70s / var(--fx-sp)) linear infinite;
	}

	.has-effects .fx__ring--2 {
		animation: fxSpin calc(36s / var(--fx-sp)) linear infinite reverse;
	}

	.has-effects .fx__ring--3 {
		animation: fxSpin calc(18s / var(--fx-sp)) linear infinite, fxBreath calc(5s / var(--fx-sp)) ease-in-out infinite alternate;
	}

	.has-effects .fx__pulse--h {
		animation: fxRunX calc(var(--t) / var(--fx-sp)) linear var(--d) infinite;
	}

	.has-effects .fx__pulse--h.is-back {
		animation-name: fxRunXBack;
	}

	.has-effects .fx__pulse--v {
		animation: fxRunY calc(var(--t) / var(--fx-sp)) linear var(--d) infinite;
	}

	.has-effects .fx__pulse--v.is-back {
		animation-name: fxRunYBack;
	}

	.has-effects .fx__dust i {
		animation: fxRise calc(var(--t) / var(--fx-sp)) linear var(--d) infinite;
	}

	.has-effects .fx__scan {
		animation: fxScan calc(8s / var(--fx-sp)) cubic-bezier(0.45, 0, 0.55, 1) infinite;
	}

	.has-effects .fx__sparks i {
		animation: fxSpark calc(var(--t) / var(--fx-sp)) ease-out var(--d) infinite;
	}

	.has-effects .fx__streaks i {
		animation: fxStreak calc(var(--t) / var(--fx-sp)) cubic-bezier(0.3, 0, 0.7, 1) var(--d) infinite;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fx__pulses,
	.fx__dust,
	.fx__scan,
	.fx__sparks,
	.fx__streaks {
		display: none !important;
	}
}

/* "Pause motion": the background holds still. */
.is-still .fx,
.is-still .fx * {
	animation-play-state: paused !important;
}

@keyframes fxDrift {
	to {
		transform: translate(18vmax, 12vmax) scale(1.3);
	}
}

@keyframes fxDrift2 {
	to {
		transform: translate(-20vmax, 16vmax) scale(1.25);
	}
}

@keyframes fxGlow {
	from {
		opacity: 0.55;
	}

	to {
		opacity: 1;
	}
}

@keyframes fxBreath {
	to {
		scale: 1.12;
	}
}

@keyframes fxGrid {
	to {
		background-position: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
	}
}

@keyframes fxGridMove {
	from {
		transform: translate(-96px, -96px);
	}

	to {
		transform: translate(0, 0);
	}
}

@keyframes fxSpark {
	0%,
	100% {
		opacity: 0;
		transform: scale(0.3);
	}

	6% {
		opacity: 1;
		transform: scale(1.4);
	}

	22% {
		opacity: 0;
		transform: scale(0.6);
	}
}

@keyframes fxStreak {
	0% {
		opacity: 0;
		transform: translate(110vw, 0) rotate(-18deg) scaleX(0.4);
	}

	4% {
		opacity: 1;
	}

	22% {
		opacity: 0.9;
		transform: translate(-30vw, 0) rotate(-18deg) scaleX(1);
	}

	26%,
	100% {
		opacity: 0;
		transform: translate(-40vw, 0) rotate(-18deg) scaleX(1);
	}
}

@keyframes fxRunXBack {
	0% {
		transform: translateX(calc(100vw + 40px)) scaleX(-1);
	}

	45%,
	100% {
		transform: translateX(-220px) scaleX(-1);
	}
}

@keyframes fxRunYBack {
	0% {
		transform: translateY(calc(100vh + 40px)) scaleY(-1);
	}

	45%,
	100% {
		transform: translateY(-220px) scaleY(-1);
	}
}

@keyframes fxSpin {
	to {
		transform: rotate(360deg);
	}
}

/* Each pulse crosses the screen, then waits off-screen before the next run. */
@keyframes fxRunX {
	0% {
		transform: translateX(-220px);
	}

	45%,
	100% {
		transform: translateX(calc(100vw + 40px));
	}
}

@keyframes fxRunY {
	0% {
		transform: translateY(-220px);
	}

	45%,
	100% {
		transform: translateY(calc(100vh + 40px));
	}
}

@keyframes fxRise {
	0% {
		opacity: 0;
		transform: translateY(0);
	}

	12% {
		opacity: 0.9;
	}

	85% {
		opacity: 0.7;
	}

	100% {
		opacity: 0;
		transform: translateY(-105vh);
	}
}

@keyframes fxScan {
	0% {
		transform: translateY(0);
	}

	60%,
	100% {
		transform: translateY(150vh);
	}
}

/* Buttons ------------------------------------------------------------------- */
.btn {
	--h: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: var(--h);
	padding: 0 22px;
	border: 1px solid transparent;
	border-radius: var(--r-btn);
	background: none;
	font-size: 1rem;
	font-stretch: 105%;
	font-weight: 650;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.25s, color 0.2s, border-color 0.2s;
}

.btn .icon {
	width: 18px;
	height: 18px;
}

.btn--signal {
	background: var(--signal);
	color: var(--ink);
	box-shadow: 0 12px 32px -14px rgba(var(--signal-rgb), 0.75);
}

.btn--signal:hover {
	color: var(--ink);
	transform: translateY(-1px);
	box-shadow: 0 0 0 4px rgba(var(--signal-rgb), 0.18), 0 16px 36px -14px rgba(var(--signal-rgb), 0.85);
}

.btn--line {
	border-color: rgba(var(--line-rgb), 0.5);
	color: var(--paper);
}

.btn--line:hover {
	border-color: var(--line);
	background: rgba(var(--line-rgb), 0.1);
	color: var(--paper);
}

.btn--large {
	--h: 56px;
	padding: 0 28px;
	font-size: 1.0625rem;
}

.btn--small {
	--h: 38px;
	padding: 0 14px;
	font-size: 0.875rem;
}

.btn[aria-disabled="true"],
.btn:disabled {
	opacity: 0.45;
	pointer-events: none;
}

/* Header -------------------------------------------------------------------- */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	height: var(--header-h);
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

.site-header.is-scrolled {
	background: var(--bg-bar);
	border-bottom-color: rgba(var(--line-rgb), 0.14);
	-webkit-backdrop-filter: blur(14px) saturate(1.2);
	backdrop-filter: blur(14px) saturate(1.2);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	height: 100%;
}

.brand {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--paper);
	font-size: 1.0625rem;
	font-stretch: 112.5%;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-decoration: none;
	white-space: nowrap;
}

.brand:hover {
	color: var(--paper);
}

.brand .mark {
	width: 34px;
	height: 34px;
	color: var(--line);
}

.brand__img {
	max-height: 44px;
	width: auto;
}

.mark__hub {
	fill: var(--signal);
}

.site-nav {
	display: flex;
	align-items: center;
	margin-left: auto;
}

.site-nav__list {
	display: flex;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list a {
	position: relative;
	display: block;
	padding: 8px 12px;
	border-radius: 4px;
	color: var(--muted);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s;
}

.site-nav__list a:hover,
.site-nav__list a.is-active {
	color: var(--paper);
}

.site-nav__list a.is-active::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 2px;
	height: 2px;
	background: var(--signal);
}

.site-nav__cta {
	display: none;
}

.menu-toggle {
	position: relative;
	z-index: 2;
	display: none;
	width: 44px;
	height: 44px;
	margin-left: 4px;
	padding: 0;
	border: 1px solid rgba(var(--line-rgb), 0.4);
	border-radius: var(--r-btn);
	background: none;
	cursor: pointer;
}

.menu-toggle__bars {
	position: relative;
	display: block;
	width: 18px;
	height: 12px;
	margin: auto;
}

.menu-toggle__bars span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 1px;
	background: var(--paper);
	transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out);
}

.menu-toggle__bars span:first-child {
	top: 1px;
}

.menu-toggle__bars span:last-child {
	top: 9px;
}

.is-open .menu-toggle__bars span:first-child {
	top: 5px;
	transform: rotate(45deg);
}

.is-open .menu-toggle__bars span:last-child {
	top: 5px;
	transform: rotate(-45deg);
}

/* Language switcher */
.lang {
	position: relative;
	z-index: 3;
}

.lang__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid rgba(var(--line-rgb), 0.4);
	border-radius: var(--r-btn);
	background: none;
	color: var(--paper);
	font-size: var(--fs-sm);
	font-stretch: 105%;
	font-weight: 650;
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s;
}

.lang__btn:hover,
.lang.is-open .lang__btn {
	border-color: var(--line);
	background: rgba(var(--line-rgb), 0.1);
}

.lang__btn .icon {
	width: 18px;
	height: 18px;
	color: var(--line);
}

.lang__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 220px;
	margin: 0;
	padding: 6px;
	list-style: none;
	border: 1px solid rgba(var(--line-rgb), 0.4);
	border-radius: 12px;
	background: rgba(8, 32, 76, 0.97);
	box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8), 0 0 40px -20px rgba(var(--line-rgb), 0.5);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	animation: panelIn 0.25s var(--ease-out) both;
	transform-origin: top right;
}

.lang__menu[hidden] {
	display: none;
}

.lang__menu a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 12px;
	border-radius: 8px;
	color: var(--paper);
	font-size: var(--fs-sm);
	text-decoration: none;
}

.lang__menu a:hover,
.lang__menu a:focus-visible {
	background: rgba(var(--line-rgb), 0.12);
	outline: none;
}

.lang__menu a[aria-current] {
	background: rgba(var(--signal-rgb), 0.12);
	box-shadow: inset 3px 0 0 var(--signal);
}

.lang__short {
	width: 24px;
	color: var(--line);
	font-size: var(--fs-xs);
	font-stretch: 87.5%;
	font-weight: 700;
}

.langs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.langs a {
	display: inline-block;
	padding: 4px 10px;
	border: 1px solid rgba(var(--line-rgb), 0.28);
	border-radius: 999px;
	color: var(--muted);
	font-size: var(--fs-xs);
	text-decoration: none;
}

.langs a:hover {
	border-color: var(--line);
	color: var(--paper);
}

.langs a[aria-current] {
	border-color: var(--signal);
	color: var(--paper);
}

@media (max-width: 1080px) {
	.menu-toggle {
		display: grid;
	}

	.lang {
		margin-left: auto;
	}

	.site-nav {
		position: fixed;
		inset: 0;
		z-index: 1;
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 28px;
		margin: 0;
		padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
		background:
			linear-gradient(var(--grid-a) 1px, transparent 1px) 0 0 / 48px 48px,
			linear-gradient(90deg, var(--grid-a) 1px, transparent 1px) 0 0 / 48px 48px,
			var(--bg);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-12px);
		transition: opacity 0.3s, transform 0.4s var(--ease-out), visibility 0s 0.4s;
	}

	.is-open .site-nav {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity 0.3s, transform 0.4s var(--ease-out);
	}

	.site-nav__list {
		flex-direction: column;
		gap: 4px;
	}

	.site-nav__list a {
		padding: 4px 0;
		color: var(--paper);
		font-size: clamp(1.75rem, 1.2rem + 3vw, 2.5rem);
		font-stretch: 112.5%;
		font-weight: 700;
	}

	.site-nav__list a.is-active::after {
		display: none;
	}

	.site-nav__cta {
		display: inline-flex;
	}
}

@media (max-width: 460px) {
	.site-header__cta {
		display: none;
	}

	.brand {
		font-size: 1rem;
	}

	/* Hidden on screen to make room for the language button, kept as the
	   link's accessible name. */
	.brand--header .brand__name {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

@media (max-width: 360px) {
	.lang__btn {
		padding: 0 8px;
	}
}

/* Sections ------------------------------------------------------------------ */
.section {
	position: relative;
	padding-block: clamp(84px, 10vw, 144px);
}

.section__head {
	max-width: 780px;
	margin-bottom: clamp(40px, 5vw, 64px);
}

.section__title {
	margin: 0 0 20px;
	font-size: var(--fs-h2);
	font-stretch: 112.5%;
	font-weight: 720;
	line-height: 1.04;
	letter-spacing: -0.015em;
}

.section__head .section__title:last-child {
	margin-bottom: 0;
}

.section__text {
	max-width: 60ch;
	margin: 0;
	color: var(--muted);
	font-size: var(--fs-lead);
	line-height: 1.5;
}

/* Hero ---------------------------------------------------------------------- */
.hero {
	position: relative;
	padding-top: calc(var(--header-h) + clamp(24px, 5vh, 64px));
	padding-bottom: clamp(56px, 7vw, 104px);
	overflow: clip;
}

.hero__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.hero__bg::after {
	content: "";
	position: absolute;
	right: -10%;
	top: 10%;
	width: 70%;
	height: 90%;
	background: radial-gradient(closest-side, rgba(var(--blueprint-rgb), 0.45), transparent);
	filter: blur(20px);
}

.hero__inner {
	position: relative;
}

.hero__title {
	margin: 0 0 clamp(24px, 3vw, 32px);
	font-weight: 400;
	line-height: 1;
}

.hero__ask {
	display: block;
	min-height: 1.1em;
	font-size: var(--fs-ask);
	font-stretch: 70%;
	font-weight: 400;
	letter-spacing: 0.005em;
	line-height: 1.1;
}

.hero__ask.is-typing::after {
	content: "";
	display: inline-block;
	width: 0.08em;
	height: 0.9em;
	margin-left: 0.06em;
	background: var(--signal);
	vertical-align: -0.1em;
	animation: caret 0.9s steps(1) infinite;
}

.hero__answer {
	display: block;
	font-size: var(--fs-answer);
	font-stretch: 125%;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 0.98;
}

/* Desktop: the headline stands in the left column, one word per line, next
   to the assistant app. The script sizes it so the longest word fills the
   column. */
@media (min-width: 1101px) {
	.hero__title {
		margin-bottom: 24px;
	}

	.hero__ask {
		font-size: clamp(2rem, 0.9rem + 2.2vw, 3.25rem);
	}

	.hero__answer {
		line-height: 0.95;
	}

	.hero__word {
		display: block;
		white-space: nowrap;
	}

	.hero .hero__lead {
		margin-bottom: 28px;
		font-size: 1.1875rem;
	}

	.hero .plate {
		margin-top: 32px;
	}
}

/* Short laptop screens: keep the whole app in the first view. */
@media (min-width: 1101px) and (max-height: 800px) {
	.hero {
		padding-top: calc(var(--header-h) + 12px);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.js .has-effects .hero:not(.is-answered) .hero__answer {
		font-stretch: 50%;
		opacity: 0;
		filter: blur(10px);
	}

	.js .has-effects .hero.is-answered .hero__answer {
		transition: font-stretch 1.15s var(--ease-out), opacity 0.35s, filter 0.7s var(--ease-out);
	}
}

/* Desktop: the answer starts folded, so the text sits right under the
   question, then unfolds and pushes the text down. If the script never runs,
   it unfolds on its own after a few seconds. */
@media (min-width: 1101px) and (prefers-reduced-motion: no-preference) {
	.js .has-effects .hero__answer {
		display: grid;
		grid-template-rows: 1fr;
	}

	.js .has-effects .hero__answer-in {
		min-height: 0;
		overflow: hidden;
	}

	.js .has-effects .hero:not(.is-answered) .hero__answer {
		grid-template-rows: 0fr;
		animation: heroUnfold 0.6s 6s forwards;
	}

	.js .has-effects .hero.is-answered .hero__answer {
		transition: grid-template-rows 0.9s var(--ease-out), font-stretch 1.15s var(--ease-out), opacity 0.35s, filter 0.7s var(--ease-out);
	}

	.js .has-effects .hero.is-ready .hero__answer-in {
		overflow: visible;
	}
}

@keyframes heroUnfold {
	to {
		grid-template-rows: 1fr;
		font-stretch: 125%;
		opacity: 1;
		filter: none;
	}
}

.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
	gap: clamp(32px, 4vw, 56px);
	align-items: start;
}

.hero__lead {
	max-width: 36ch;
	margin: 0 0 32px;
	color: var(--muted);
	font-size: var(--fs-lead);
	line-height: 1.5;
}

.hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Machine nameplate */
.plate {
	position: relative;
	max-width: 480px;
	margin-top: 44px;
	padding: 16px 18px 8px;
	border: 1px solid rgba(var(--line-rgb), 0.3);
	border-radius: 10px;
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px),
		linear-gradient(160deg, rgba(234, 241, 255, 0.11), rgba(234, 241, 255, 0.02) 60%),
		var(--panel-2);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.35), 0 24px 48px -28px rgba(0, 0, 0, 0.7);
}

.plate__rivet {
	position: absolute;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #e6eeff, #7586ab 55%, #26365a);
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.plate__rivet--tl { top: 8px; left: 8px; }
.plate__rivet--tr { top: 8px; right: 8px; }
.plate__rivet--bl { bottom: 8px; left: 8px; }
.plate__rivet--br { bottom: 8px; right: 8px; }

.plate__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 12px 10px;
	color: var(--line);
	font-size: 0.875rem;
	font-stretch: 87.5%;
	font-weight: 600;
}

.plate__mark {
	width: 18px;
	height: 18px;
}

.plate__rows {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: 0;
}

.plate__row {
	padding: 10px 12px;
	border-top: 1px solid rgba(var(--line-rgb), 0.16);
}

.plate__row:nth-child(odd) {
	border-right: 1px solid rgba(var(--line-rgb), 0.16);
}

.plate dt {
	color: var(--muted);
	font-size: var(--fs-xs);
	font-stretch: 87.5%;
}

.plate dd {
	margin: 2px 0 0;
	font-size: 1rem;
	font-weight: 650;
	line-height: 1.3;
}

/* The assistant app with its drawing annotations */
.hero__stage {
	position: relative;
	display: flex;
	justify-content: center;
}

/* Same size and proportions as the TTF SHIFT assistant: 395 x 682. */
.holo {
	position: relative;
	z-index: 1;
	width: min(395px, 100%);
}

.holo__device {
	position: relative;
	border-radius: 24px;
}

/* Callouts: drawing annotations around the device */
.callout {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	width: 168px;
	margin: 0;
	color: var(--line);
	font-size: var(--fs-xs);
	font-stretch: 87.5%;
	font-weight: 550;
	line-height: 1.3;
	pointer-events: none;
}

.callout__text {
	flex: 1;
}

.callout__line {
	position: relative;
	flex: none;
	width: 40px;
	height: 1px;
	margin-left: 10px;
	background: var(--line);
	transform-origin: right center;
}

.callout__line::after {
	content: "";
	position: absolute;
	right: -4px;
	top: -3.5px;
	width: 8px;
	height: 8px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--bg);
}

.callout--tl,
.callout--bl {
	right: calc(100% - 6px);
	text-align: right;
}

.callout--tr,
.callout--br {
	left: calc(100% - 6px);
	flex-direction: row-reverse;
}

.callout--tr .callout__line,
.callout--br .callout__line {
	margin: 0 10px 0 0;
	transform-origin: left center;
}

.callout--tr .callout__line::after,
.callout--br .callout__line::after {
	right: auto;
	left: -4px;
}

.callout--tl { top: 7%; }
.callout--tr { top: 30%; }
.callout--bl { bottom: 13%; }
.callout--br { bottom: 30%; }

@media (prefers-reduced-motion: no-preference) {
	.js .has-effects .callout {
		opacity: 0;
		transition: opacity 0.5s calc(var(--i) * 0.14s);
	}

	.js .has-effects .callout__line {
		transform: scaleX(0);
		transition: transform 0.6s var(--ease-out) calc(var(--i) * 0.14s + 0.1s);
	}

	.js .has-effects .hero.is-ready .callout {
		opacity: 1;
	}

	.js .has-effects .hero.is-ready .callout__line {
		transform: none;
	}
}

@media (max-width: 1239px) {
	.callout {
		display: none;
	}
}

@media (max-width: 1100px) {
	.hero__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	/* On narrow screens the live demo comes before the nameplate. */
	.hero__copy {
		display: contents;
	}

	.hero__lead {
		order: 1;
		max-width: 48ch;
	}

	.hero__ctas {
		order: 2;
	}

	.hero__stage {
		order: 3;
		margin-top: 40px;
	}

	.plate {
		order: 4;
		margin-top: 8px;
	}
}

@media (max-width: 600px) {
	.hero__ask {
		font-stretch: 75%;
	}

	.hero__answer {
		font-stretch: 112.5%;
		letter-spacing: -0.025em;
	}

	.hero__ctas .btn {
		flex: 1 1 auto;
	}

	.plate {
		padding-inline: 12px;
	}

	.plate__row {
		padding-inline: 8px;
	}

	.plate dd {
		font-size: var(--fs-sm);
	}
}

/* Chat messages (assistant app, assistants section, FAQ) ------------------- */
.msg {
	display: flex;
	flex-direction: column;
	max-width: 88%;
}

.msg--user {
	align-self: flex-end;
	align-items: flex-end;
}

.msg--bot {
	align-self: flex-start;
	align-items: flex-start;
}

.js .chat__log .msg {
	animation: msgIn 0.35s var(--ease-out) both;
}

.bubble {
	padding: 10px 14px;
	border: 1px solid rgba(var(--line-rgb), 0.2);
	border-radius: var(--r-bubble);
	background: rgba(var(--line-rgb), 0.1);
	overflow-wrap: anywhere;
}

.bubble p {
	margin: 0;
}

.bubble p + p,
.bubble p + ul,
.bubble ul + p {
	margin-top: 8px;
}

.bubble ul {
	margin: 8px 0 0;
	padding-left: 18px;
}

.bubble li + li {
	margin-top: 4px;
}

.msg--user .bubble {
	border-color: transparent;
	border-bottom-right-radius: 4px;
	background: var(--paper);
	color: var(--ink);
}

.msg--bot .bubble {
	border-bottom-left-radius: 4px;
}

.msg__meta {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-top: 5px;
	color: var(--muted);
	font-size: 0.75rem;
	font-stretch: 87.5%;
}

.msg__meta .icon {
	width: 13px;
	height: 13px;
	color: var(--signal);
	stroke-width: 2.4;
}

.msg__ms {
	margin-left: 4px;
	opacity: 0.75;
}

.msg__actions,
.chat__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.msg__actions {
	margin-top: 10px;
}

.chat__chips {
	padding: 0 16px 10px;
}

.chat__chips:empty {
	display: none;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	padding: 5px 12px;
	border: 1px solid rgba(var(--line-rgb), 0.45);
	border-radius: 999px;
	background: rgba(5, 21, 55, 0.4);
	color: var(--paper);
	font-size: var(--fs-xs);
	line-height: 1.25;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s;
}

.chip:hover {
	border-color: var(--line);
	background: rgba(var(--line-rgb), 0.16);
	color: var(--paper);
}

.chip--primary {
	border-color: var(--signal);
	background: var(--signal);
	color: var(--ink);
	font-weight: 650;
}

.chip--primary:hover {
	background: var(--signal);
	color: var(--ink);
}

.chip .icon {
	width: 15px;
	height: 15px;
}

.typing {
	display: inline-flex;
	gap: 4px;
	padding: 14px 16px;
	border: 1px solid rgba(var(--line-rgb), 0.2);
	border-radius: var(--r-bubble);
	border-bottom-left-radius: 4px;
	background: rgba(var(--line-rgb), 0.1);
}

.typing i,
.qa__typing i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--line);
	animation: typing 1s infinite;
}

.typing i:nth-child(2),
.qa__typing i:nth-child(2) {
	animation-delay: 0.15s;
}

.typing i:nth-child(3),
.qa__typing i:nth-child(3) {
	animation-delay: 0.3s;
}

html:not(.js) .app__home,
html:not(.js) .app__tabs,
html:not(.js) .app__foot,
html:not(.js) .app__actions,
html:not(.js) .app__bar [data-go],
html:not(.js) .chat__form,
html:not(.js) .chat__note,
html:not(.js) .assistant,
html:not(.js) [data-try],
html:not(.js) [data-assistant-open-inline] {
	display: none;
}

/* Without scripts the app shows its sample conversation. */
html:not(.js) .app__chat[hidden] {
	display: flex;
}

.attach {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	padding: 7px 12px;
	border: 1px dashed rgba(var(--line-rgb), 0.5);
	border-radius: 10px;
	background: rgba(5, 21, 55, 0.5);
	color: var(--paper);
	font-size: var(--fs-xs);
	text-decoration: none;
}

.attach .icon {
	width: 17px;
	height: 17px;
	color: var(--signal);
}

/* Cost comparison inside the chat */
.mini-bars {
	display: grid;
	gap: 6px;
	margin-top: 10px;
}

.mini-bar {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2px 10px;
	font-size: 0.75rem;
}

.mini-bar__track {
	grid-column: 1 / -1;
	height: 8px;
	border-radius: 4px;
	background: rgba(var(--line-rgb), 0.12);
	overflow: hidden;
}

.mini-bar__fill {
	display: block;
	height: 100%;
	width: var(--w);
	border-radius: 4px;
	background: var(--signal);
}

.mini-bar--sub .mini-bar__fill {
	background: repeating-linear-gradient(135deg, var(--fault) 0 5px, rgba(var(--fault-rgb), 0.65) 5px 10px);
}

/* Message form inside the chat */
.mini-form {
	display: grid;
	gap: 8px;
	margin-top: 10px;
}

.mini-form input[type="text"],
.mini-form input[type="email"],
.mini-form textarea {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid rgba(var(--line-rgb), 0.35);
	border-radius: 8px;
	background: rgba(5, 21, 55, 0.7);
	color: var(--paper);
	font-size: 16px;
}

.mini-form textarea {
	min-height: 76px;
	resize: vertical;
}

.mini-form input:focus,
.mini-form textarea:focus {
	outline: none;
	border-color: var(--signal);
}

.mini-form label {
	font-size: 0.75rem;
	color: var(--muted);
}

.mini-form .check {
	font-size: 0.75rem;
}

.mini-form__err {
	margin: 0;
	color: var(--fault);
	font-size: 0.75rem;
}

/* Assistant app: home screen, chat, calculator ------------------------------
   A light app on the blueprint page, as in a phone: a night scene with the
   assistant at the top of the home screen, topics on white cards, a tab bar. */
.app {
	--app-ink: #0b1f4a;
	--app-sub: #56627f;
	--app-faint: #5f6a84;
	--app-line: #e2e7f1;
	--app-bg: #f1f4fa;
	--app-card: #ffffff;
	--app-bubble: #e7ecf6;
	--app-gold: #9a6510;
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	overflow: hidden;
	border-radius: 24px;
	background: var(--app-bg);
	color: var(--app-ink);
	font-size: var(--fs-sm);
	line-height: 1.45;
	text-align: left;
	isolation: isolate;
	/* The picture header is sized from the app's width (cqi units). */
	container-type: inline-size;
}

.app__screens {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
}

.app__screen {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
}

.app__screen[hidden] {
	display: none;
}

/* Home ---------------------------------------------------------------------- */
.app__home {
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: none;
}

.app__home::-webkit-scrollbar {
	display: none;
}

/* Picture header in the proportions of the reference app (395 x 255, so
   64.56% of the app's width). It grows when its text needs more room and
   gives a few pixels back only when the home screen would otherwise scroll. */
.app__hero {
	position: relative;
	z-index: 0;
	display: flex;
	flex: 0 1 64.56cqi;
	flex-direction: column;
	align-items: flex-start;
	min-height: min-content;
	padding: 18px 16px 46px;
	color: #fff;
}

.app__scene {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	background: #08245a;
}

.app__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: right center;
}

.app__scene::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(5, 21, 55, 0.8) 0%, rgba(5, 21, 55, 0.58) 45%, rgba(5, 21, 55, 0.12) 70%, rgba(5, 21, 55, 0) 85%),
		linear-gradient(0deg, rgba(5, 21, 55, 0.5), rgba(5, 21, 55, 0) 45%);
}

.app__scan {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	z-index: 1;
	height: 56px;
	background: linear-gradient(180deg, transparent, rgba(var(--line-rgb), 0.16) 70%, rgba(var(--line-rgb), 0.5) 98%, transparent);
	opacity: 0;
	transform: translateY(-100%);
	pointer-events: none;
}

.app__top {
	display: flex;
	align-self: stretch;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.app__badge {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 6px 14px 6px 6px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.6);
	color: var(--app-ink);
	font-size: 1.1875rem;
	font-stretch: 105%;
	font-weight: 720;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.app__badge-mark {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: var(--ink);
	color: var(--line);
}

.app__badge-mark .mark {
	width: 25px;
	height: 25px;
}

.app__badge b,
.app__name b {
	color: var(--app-gold);
	font-weight: 760;
}

.app__hello {
	margin: auto 0 0;
	padding-top: 12px;
	font-size: 2rem;
	font-stretch: 105%;
	font-weight: 760;
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.app__wave {
	display: inline-block;
	transform-origin: 70% 80%;
}

.app__rule {
	display: block;
	width: 38px;
	height: 3px;
	margin: 8px 0 10px;
	border-radius: 2px;
	background: var(--signal);
	transform-origin: left center;
}

.app__intro {
	max-width: 70%;
	margin: 0;
	color: rgba(255, 255, 255, 0.94);
	font-size: 0.875rem;
	line-height: 1.42;
	text-shadow: 0 1px 10px rgba(5, 21, 55, 0.6);
}

.app__body {
	position: relative;
	display: grid;
	flex: none;
	align-content: start;
	gap: 10px;
	margin-top: -32px;
	padding: 0 12px 10px;
}

.app__topics {
	margin: 0;
	padding: 0;
	overflow: hidden;
	border-radius: 18px;
	background: var(--app-card);
	box-shadow: 0 12px 30px -16px rgba(5, 21, 55, 0.45), 0 0 0 1px rgba(5, 21, 55, 0.05);
	list-style: none;
}

.app__topics li + li {
	border-top: 1px solid var(--app-line);
}

.app__topic {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	min-height: 45px;
	padding: 10px 14px 10px 16px;
	overflow: hidden;
	border: 0;
	background: none;
	color: var(--app-ink);
	font: inherit;
	font-size: 0.9375rem;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.2s;
}

.app__topic::before {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	bottom: 10px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: var(--signal);
	transform: scaleY(0);
	transition: transform 0.25s var(--ease-out);
}

.app__topic .icon {
	width: 18px;
	height: 18px;
	flex: none;
	color: #8b95ab;
	transition: transform 0.25s var(--ease-out), color 0.2s;
}

.app__topic:focus-visible {
	background: #f5f7fc;
}

.app__topic:focus-visible::before {
	transform: none;
}

.app__topic:focus-visible .icon {
	color: var(--app-ink);
	transform: translateX(3px);
}

@media (hover: hover) {
	.app__topic:hover {
		background: #f5f7fc;
	}

	.app__topic:hover::before {
		transform: none;
	}

	.app__topic:hover .icon {
		color: var(--app-ink);
		transform: translateX(3px);
	}

	.app__tab:hover {
		background: #f3f6fb;
	}
}

.app__card {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 12px 12px 12px 16px;
	overflow: hidden;
	border: 0;
	border-radius: 18px;
	background: var(--app-card);
	box-shadow: 0 12px 30px -18px rgba(5, 21, 55, 0.45), 0 0 0 1px rgba(5, 21, 55, 0.05);
	color: var(--app-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.app__card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, transparent 35%, rgba(var(--line-rgb), 0.28) 50%, transparent 65%);
	transform: translateX(-100%);
	pointer-events: none;
}

.app__card-text {
	display: grid;
	gap: 2px;
}

.app__card-text strong {
	font-size: 0.9375rem;
	font-weight: 700;
}

.app__card-text span {
	color: var(--app-sub);
	font-size: 0.8125rem;
	line-height: 1.35;
	text-wrap: pretty;
}

.app__card-icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex: none;
	border-radius: 12px;
	background: #eaeff8;
	color: var(--app-ink);
}

.app__card-icon .icon {
	width: 22px;
	height: 22px;
	transition: transform 0.25s var(--ease-out);
}

.app__card--order {
	background: linear-gradient(135deg, var(--ink-3), var(--ink) 70%);
	box-shadow: 0 14px 30px -16px rgba(5, 21, 55, 0.85), inset 0 0 0 1px rgba(var(--line-rgb), 0.3);
	color: #fff;
	text-decoration: none;
}

.app__card--order:hover,
.app__card--order:focus-visible {
	color: #fff;
}

.app__card--order .app__card-text span {
	color: var(--muted);
}

.app__card--order .app__card-icon {
	background: var(--signal);
	box-shadow: 0 6px 16px -6px rgba(var(--signal-rgb), 0.9);
	color: var(--ink);
}

.app__card--order:hover .app__card-icon .icon,
.app__card--order:focus-visible .app__card-icon .icon {
	transform: translateX(3px);
}

/* Bars at the top of the chat and calculator ------------------------------- */
.app__bar {
	position: relative;
	z-index: 3;
	display: flex;
	flex: none;
	align-items: center;
	gap: 10px;
	padding: 10px 10px 10px 8px;
	border-bottom: 1px solid var(--app-line);
	background: var(--app-card);
}

.app__icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	flex: none;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 10px;
	background: none;
	color: var(--app-ink);
	cursor: pointer;
	transition: background-color 0.2s;
}

.app__icon:hover {
	background: #edf1f8;
}

.app__icon .icon {
	width: 20px;
	height: 20px;
}

.app__icon--glass {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.app__icon--glass:hover {
	background: rgba(255, 255, 255, 0.26);
}

.app__avatar {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	flex: none;
	border-radius: 10px;
	background: var(--ink);
	color: var(--line);
}

.app__avatar .mark {
	width: 26px;
	height: 26px;
}

.app__avatar .icon {
	width: 20px;
	height: 20px;
	color: var(--signal);
}

.app__id {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	line-height: 1.25;
}

.app__name {
	overflow: hidden;
	font-size: 1rem;
	font-stretch: 105%;
	font-weight: 740;
	letter-spacing: -0.01em;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.app__role {
	display: flex;
	align-items: center;
	gap: 6px;
	overflow: hidden;
	color: var(--app-sub);
	font-size: 0.8125rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.app__calc .app__role {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-height: 1.3;
	white-space: normal;
}

.app__dot {
	width: 7px;
	height: 7px;
	flex: none;
	border-radius: 50%;
	background: #1aa053;
	box-shadow: 0 0 0 3px rgba(26, 160, 83, 0.18);
}

.app__actions {
	position: relative;
	display: flex;
	gap: 2px;
}

.app__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 5;
	display: grid;
	min-width: 220px;
	padding: 6px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 20px 44px -14px rgba(5, 21, 55, 0.5), 0 0 0 1px rgba(5, 21, 55, 0.07);
	animation: appMenuIn 0.18s var(--ease-out) both;
}

.app__menu[hidden] {
	display: none;
}

.app__menu button,
.app__menu a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 0;
	border-radius: 10px;
	background: none;
	color: var(--app-ink);
	font: inherit;
	font-size: 0.9rem;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.app__menu button:hover,
.app__menu a:hover,
.app__menu button:focus-visible,
.app__menu a:focus-visible {
	background: #edf1f8;
}

.app__menu .icon {
	width: 18px;
	height: 18px;
	color: var(--app-sub);
}

/* Chat ---------------------------------------------------------------------- */
.app__chat {
	background: #f5f7fb;
}

.app .chat__log {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 14px;
	min-height: 0;
	padding: 16px 14px 10px;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: none;
	scrollbar-color: #c9d2e3 transparent;
	scrollbar-width: thin;
}

.app .msg {
	display: flex;
	flex-direction: row;
	gap: 8px;
	max-width: 92%;
}

.app .msg--user {
	align-self: flex-end;
}

.app .msg--bot {
	align-self: flex-start;
}

.msg__avatar {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	flex: none;
	margin-top: 2px;
	border-radius: 8px;
	background: var(--ink);
	color: var(--line);
}

.msg__avatar .mark {
	width: 19px;
	height: 19px;
}

.msg__col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.msg--user .msg__col {
	align-items: flex-end;
}

.app .bubble {
	padding: 11px 14px;
	border: 0;
	border-radius: 18px;
	background: var(--app-bubble);
	color: var(--app-ink);
	overflow-wrap: anywhere;
}

.app .msg--bot .bubble {
	border-top-left-radius: 6px;
}

.app .msg--user .bubble {
	border-top-right-radius: 6px;
	background: var(--ink-3);
	color: #fff;
}

.app .bubble ul {
	margin: 8px 0 0;
	padding-left: 18px;
}

.app .bubble li::marker {
	color: var(--blueprint);
}

.app .msg__meta {
	display: flex;
	align-items: baseline;
	gap: 5px;
	margin-top: 5px;
	color: var(--app-faint);
	font-size: 0.72rem;
	font-stretch: 100%;
}

.app .msg__meta:empty {
	display: none;
}

.app .msg__meta .icon {
	width: 13px;
	height: 13px;
	color: #16924b;
	stroke-width: 2.4;
}

.app .msg__time {
	flex: none;
}

.app .msg__ok {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 5px;
	min-width: 0;
}

.app .msg__time + .msg__ok::before {
	content: "·";
}

.app .msg__ms {
	margin-left: 0;
	opacity: 1;
}

.app .msg__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.app .chat__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 0 0 36px;
}

.app .chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 34px;
	padding: 6px 14px;
	overflow: hidden;
	border: 1px solid #cdd5e4;
	border-radius: 999px;
	background: #fff;
	color: var(--app-ink);
	font-size: 0.875rem;
	line-height: 1.25;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.app .chip:hover {
	border-color: var(--app-ink);
	background: #f5f7fc;
	color: var(--app-ink);
}

.app .chip--primary {
	border-color: var(--signal);
	background: var(--signal);
	box-shadow: 0 8px 18px -10px rgba(var(--signal-rgb), 0.95);
	color: var(--ink);
	font-weight: 680;
}

.app .chip--primary:hover {
	border-color: var(--signal);
	background: #ffd83d;
	color: var(--ink);
}

.app .chip--act .icon {
	width: 16px;
	height: 16px;
	color: var(--blueprint);
}

.app .msg--typing {
	align-items: flex-start;
}

.app .typing {
	display: inline-flex;
	gap: 4px;
	padding: 14px 16px;
	border: 0;
	border-radius: 18px;
	border-top-left-radius: 6px;
	background: var(--app-bubble);
}

.app .typing i {
	background: #7b869e;
}

.app .chat__form {
	display: flex;
	flex: none;
	align-items: center;
	gap: 8px;
	margin: 6px 12px 0;
	padding: 5px 5px 5px 16px;
	border: 1px solid #d3d9e6;
	border-radius: 999px;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.app .chat__form:focus-within {
	border-color: var(--blueprint);
	box-shadow: 0 0 0 3px rgba(var(--blueprint-rgb), 0.16);
}

.app .chat__input {
	flex: 1;
	min-width: 0;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--app-ink);
	font-size: 16px;
}

.app .chat__input::placeholder {
	color: var(--app-faint);
	opacity: 1;
}

.app .chat__input:focus {
	border: 0;
	box-shadow: none;
	outline: none;
}

.app .chat__send {
	position: relative;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex: none;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 50%;
	background: #7d88a2;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.25s, box-shadow 0.25s, color 0.25s;
}

.app .chat__form.has-text .chat__send {
	background: var(--signal);
	box-shadow: 0 0 0 4px rgba(var(--signal-rgb), 0.25), 0 8px 18px -8px rgba(var(--signal-rgb), 0.95);
	color: var(--ink);
}

.app .chat__send .icon {
	width: 18px;
	height: 18px;
}

.app .chat__note {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 6px 14px 8px;
	background: none;
	color: var(--app-faint);
	font-size: 0.72rem;
	font-stretch: 100%;
	line-height: 1.35;
	text-align: center;
}

.app .chat__note .icon {
	width: 13px;
	height: 13px;
	flex: none;
}

/* Answers with bars and the message form, on white */
.app .mini-bar {
	color: var(--app-ink);
}

.app .mini-bar__track {
	background: #dde4f0;
}

.app .mini-bar--us .mini-bar__fill {
	background: var(--blueprint);
}

.app .mini-form input[type="text"],
.app .mini-form input[type="email"],
.app .mini-form textarea {
	border-color: #cdd5e4;
	background: #fff;
	color: var(--app-ink);
}

.app .mini-form input:focus,
.app .mini-form textarea:focus {
	border-color: var(--blueprint);
}

.app .mini-form label {
	color: var(--app-sub);
}

.app .mini-form .check {
	color: var(--app-ink);
}

.app .mini-form .check__box {
	border-color: #9aa5bd;
	background: #fff;
}

.app .mini-form__err {
	color: #c2341f;
}

/* Calculator ---------------------------------------------------------------- */
.app__calc-body {
	display: grid;
	flex: 1;
	align-content: start;
	gap: 12px;
	padding: 14px 12px 16px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.app__field {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 8px 10px;
	padding: 14px 16px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 26px -18px rgba(5, 21, 55, 0.45), 0 0 0 1px rgba(5, 21, 55, 0.05);
}

.app__field label {
	color: var(--app-sub);
	font-size: 0.875rem;
}

.app__field output {
	font-size: 1.0625rem;
	font-weight: 760;
	font-variant-numeric: tabular-nums;
}

.app__field input[type="range"] {
	grid-column: 1 / -1;
	width: 100%;
	accent-color: var(--blueprint);
}

.app__result {
	padding: 16px;
	border-radius: 16px;
	background: linear-gradient(160deg, var(--ink-3), var(--ink));
	box-shadow: 0 16px 36px -20px rgba(5, 21, 55, 0.9), inset 0 0 0 1px rgba(var(--line-rgb), 0.25);
	color: var(--paper);
}

.app__result .mini-bars {
	margin-top: 0;
}

.app__result .mini-bar {
	color: var(--paper);
	font-size: 0.8125rem;
}

.app__result .mini-bar strong {
	font-size: 0.9375rem;
	font-variant-numeric: tabular-nums;
}

.app__result .mini-bar__track {
	height: 10px;
	background: rgba(var(--line-rgb), 0.14);
}

.app__result .mini-bar__fill {
	transition: width 0.5s var(--ease-out);
}

.app__result .mini-bar--us .mini-bar__fill {
	background: var(--signal);
}

.app__save {
	margin: 14px 0 0;
	color: var(--signal);
	font-size: 1.5rem;
	font-stretch: 105%;
	font-weight: 800;
	line-height: 1.15;
}

.app__save:empty {
	display: none;
}

.app__verdict {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 0.8125rem;
}

.app__cta {
	display: grid;
	gap: 8px;
}

.app__cta .btn {
	justify-content: center;
	width: 100%;
}

.btn--app {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 18px;
	border: 1px solid #cdd5e4;
	border-radius: var(--r-btn);
	background: #fff;
	color: var(--app-ink);
	font: inherit;
	font-weight: 650;
	cursor: pointer;
}

.btn--app .icon {
	width: 18px;
	height: 18px;
}

.btn--app:hover {
	border-color: var(--app-ink);
}

/* Tab bar ------------------------------------------------------------------- */
.app__tabs {
	position: relative;
	display: grid;
	flex: none;
	grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid var(--app-line);
	background: #fff;
}

.app__tab {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 10px 4px 8px;
	overflow: hidden;
	border: 0;
	background: none;
	color: var(--app-faint);
	font: inherit;
	font-size: 0.78rem;
	font-weight: 560;
	cursor: pointer;
	transition: color 0.25s, background-color 0.25s;
}

.app__tab .icon {
	width: 22px;
	height: 22px;
}

.app__tab[aria-selected="true"] {
	color: var(--app-ink);
	font-weight: 740;
}

.app__tab.is-pressed {
	background: #f3f6fb;
}

.app__tabline {
	position: absolute;
	top: -1px;
	left: 0;
	width: calc(100% / 3);
	height: 3px;
	pointer-events: none;
	transition: transform 0.45s var(--ease-out);
}

.app__tabline::before {
	content: "";
	position: absolute;
	left: 50%;
	width: 34px;
	height: 3px;
	margin-left: -17px;
	border-radius: 0 0 3px 3px;
	background: var(--ink);
}

.app[data-screen="chat"] .app__tabline {
	transform: translateX(100%);
}

.app[data-screen="calc"] .app__tabline {
	transform: translateX(200%);
}

.app__foot {
	flex: none;
	margin: 0;
	padding: 2px 0 8px;
	background: #fff;
	color: var(--app-faint);
	font-size: 0.7rem;
	text-align: center;
}

/* Touch ripple */
.ripple {
	position: absolute;
	border-radius: 50%;
	background: rgba(var(--blueprint-rgb), 0.16);
	transform: scale(0);
	pointer-events: none;
	animation: appRipple 0.6s var(--ease-out) forwards;
}

.chip--primary .ripple,
.app__icon--glass .ripple {
	background: rgba(5, 21, 55, 0.18);
}

/* The app inside the hero hologram and the floating panel ------------------- */
.app--hero {
	height: auto;
	aspect-ratio: 395 / 682;
	box-shadow:
		0 0 0 1px rgba(var(--line-rgb), 0.4),
		0 0 80px -14px rgba(var(--line-rgb), 0.55),
		0 40px 80px -36px rgba(0, 0, 0, 0.8);
}

.app--hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 8;
	padding: 1.5px;
	border-radius: inherit;
	background: conic-gradient(from var(--app-spin, 0deg), rgba(var(--line-rgb), 0) 0deg, rgba(var(--line-rgb), 0.95) 60deg, rgba(var(--signal-rgb), 0.9) 100deg, rgba(var(--line-rgb), 0) 160deg, rgba(var(--line-rgb), 0) 360deg);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

.app--static {
	height: 520px;
}

@property --app-spin {
	syntax: "<angle>";
	inherits: false;
	initial-value: 0deg;
}

.assistant__panel .app {
	border-radius: inherit;
}

@media (max-width: 600px) {
	.holo {
		width: 100%;
	}

	.app--hero {
		height: min(682px, calc(100vh - 96px));
		height: min(682px, calc(100svh - 96px));
		aspect-ratio: auto;
	}

	.assistant__panel .app {
		border-radius: 0;
	}

	.assistant__panel .app__expand {
		display: none;
	}
}

@media (max-width: 380px) {
	.app__intro {
		max-width: 72%;
	}

	.app__hello {
		font-size: 1.75rem;
	}
}

/* Motion: only with effects on and when the visitor allows it -------------- */
@media (prefers-reduced-motion: no-preference) {
	.has-effects .app__screen.is-from-right {
		animation: appFromRight 0.38s var(--ease-out) both;
	}

	.has-effects .app__screen.is-from-left {
		animation: appFromLeft 0.38s var(--ease-out) both;
	}

	.has-effects .app__home:not([hidden]) .app__topics li {
		animation: appRowIn 0.45s var(--ease-out) both;
		animation-delay: calc(0.12s + var(--i, 0) * 60ms);
	}

	.has-effects .app__wave {
		animation: appWave 2.4s 0.9s ease-in-out 2;
	}

	.has-effects .app__home:not([hidden]) .app__rule {
		animation: appRuleIn 0.8s 0.35s var(--ease-out) both;
	}

	.has-effects .app__scan {
		animation: appScan 7s 1.4s ease-in-out infinite;
	}

	.has-effects .app__card:hover::after {
		animation: appSheen 0.9s var(--ease-out);
	}

	.has-effects .app__topic:active,
	.has-effects .app__card:active,
	.has-effects .app .chip:active {
		transform: scale(0.985);
	}

	.has-effects .app .chat__chips .chip {
		animation: appChipIn 0.35s var(--ease-out) both;
		animation-delay: calc(var(--i, 0) * 70ms);
	}

	.has-effects .app__tab[aria-selected="true"] .icon {
		animation: appTabPop 0.45s var(--ease-out);
	}

	.has-effects .app__dot {
		animation: appLive 2.2s infinite;
	}

	.has-effects .app--hero::before {
		animation: appSpin 6s linear infinite;
	}
}

@keyframes appFromRight {
	from {
		opacity: 0;
		transform: translateX(18px);
	}
}

@keyframes appFromLeft {
	from {
		opacity: 0;
		transform: translateX(-18px);
	}
}

@keyframes appRowIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

@keyframes appWave {
	0%,
	60%,
	100% {
		transform: rotate(0);
	}

	10%,
	30% {
		transform: rotate(16deg);
	}

	20%,
	40% {
		transform: rotate(-10deg);
	}

	50% {
		transform: rotate(10deg);
	}
}

@keyframes appRuleIn {
	from {
		transform: scaleX(0);
	}
}

@keyframes appScan {
	0% {
		opacity: 0;
		transform: translateY(-100%);
	}

	8% {
		opacity: 1;
	}

	34% {
		opacity: 0.7;
		transform: translateY(250px);
	}

	35%,
	100% {
		opacity: 0;
		transform: translateY(250px);
	}
}

@keyframes appSheen {
	to {
		transform: translateX(100%);
	}
}

@keyframes appChipIn {
	from {
		opacity: 0;
		transform: translateY(6px) scale(0.97);
	}
}

@keyframes appTabPop {
	40% {
		transform: translateY(-3px) scale(1.1);
	}
}

@keyframes appLive {
	50% {
		box-shadow: 0 0 0 6px rgba(26, 160, 83, 0);
	}
}

@keyframes appSpin {
	to {
		--app-spin: 360deg;
	}
}

@keyframes appMenuIn {
	from {
		opacity: 0;
		transform: translateY(-4px) scale(0.98);
	}
}

@keyframes appRipple {
	to {
		opacity: 0;
		transform: scale(1);
	}
}


/* The day: same questions around the clock ---------------------------------- */
.day {
	position: relative;
}

.day__switch {
	position: relative;
	display: inline-grid;
	grid-template-columns: 1fr 1fr;
	margin-bottom: 36px;
	padding: 4px;
	border: 1px solid rgba(var(--line-rgb), 0.3);
	border-radius: 999px;
	background: var(--panel);
}

.day__opt {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 46px;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	background: none;
	color: var(--muted);
	font-size: var(--fs-sm);
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.35s;
}

.day__opt .icon {
	width: 18px;
	height: 18px;
}

.day__opt[aria-pressed="true"] {
	color: var(--ink);
}

.day__knob {
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: 4px;
	width: calc(50% - 4px);
	border-radius: 999px;
	background: var(--paper);
	transition: transform 0.5s var(--ease-out), background-color 0.35s;
}

.day.is-with .day__knob {
	transform: translateX(100%);
	background: var(--signal);
}

.day__track {
	--near: 28px;
	--far: 170px;
	position: relative;
	height: 640px;
}

.day__zone {
	position: absolute;
	top: 0;
	bottom: 0;
	transition: background-color 0.6s;
}

.day__zone span {
	position: absolute;
	top: 10px;
	left: 12px;
	color: var(--muted);
	font-size: 0.75rem;
	font-stretch: 87.5%;
	white-space: nowrap;
}

.day__zone--closed {
	background-image: repeating-linear-gradient(135deg, rgba(var(--line-rgb), 0.06) 0 1px, transparent 1px 11px);
}

.day.is-with .day__zone--closed {
	background-image: repeating-linear-gradient(135deg, rgba(var(--signal-rgb), 0.09) 0 1px, transparent 1px 11px);
}

.day__zone--night1 {
	left: 0;
	width: 37.5%;
}

.day__zone--open {
	left: 37.5%;
	width: 33.333%;
	border-inline: 1px dashed rgba(var(--line-rgb), 0.4);
	background: rgba(var(--line-rgb), 0.05);
}

.day__zone--open span {
	color: var(--line);
}

.day__zone--night2 {
	left: 70.833%;
	right: 0;
}

.day__axis {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 1px;
	background: rgba(var(--line-rgb), 0.55);
}

.day__tick {
	position: absolute;
	left: calc(var(--t) * 1%);
	top: 12px;
	color: var(--muted);
	font-size: 0.6875rem;
	font-stretch: 87.5%;
	font-variant-numeric: tabular-nums;
	transform: translateX(-50%);
}

.day__tick:first-child {
	transform: none;
}

.day__tick:last-child {
	transform: translateX(-100%);
}

.day__tick::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -12px;
	width: 1px;
	height: 8px;
	background: rgba(var(--line-rgb), 0.7);
}

.day__items {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.day__item {
	position: absolute;
	left: calc(var(--t) * 1%);
	top: 50%;
	width: 0;
	height: 0;
}

.day__pin {
	position: absolute;
	left: -7px;
	top: -7px;
	z-index: 2;
	width: 14px;
	height: 14px;
	border: 2px solid var(--line);
	border-radius: 50%;
	background: var(--bg);
	transition: border-color 0.4s calc(var(--i) * 0.07s), box-shadow 0.4s calc(var(--i) * 0.07s);
}

.day.is-without .is-closed .day__pin {
	border-color: var(--fault);
	box-shadow: 0 0 0 4px rgba(var(--fault-rgb), 0.15);
}

.day.is-with .day__pin {
	border-color: var(--signal);
	box-shadow: 0 0 0 4px rgba(var(--signal-rgb), 0.18);
}

.day__item::before {
	content: "";
	position: absolute;
	z-index: 0;
	left: 0;
	width: 1px;
	background: rgba(var(--line-rgb), 0.45);
}

.day__item--a::before,
.day__item--b::before {
	bottom: 7px;
}

.day__item--c::before,
.day__item--d::before {
	top: 7px;
}

.day__item--a::before,
.day__item--d::before {
	height: calc(var(--far) - 7px);
}

.day__item--b::before,
.day__item--c::before {
	height: calc(var(--near) - 7px);
}

.day__card {
	position: absolute;
	z-index: 1;
	left: -1px;
	width: 214px;
	padding: 11px 14px 12px;
	border: 1px solid rgba(var(--line-rgb), 0.28);
	border-radius: 10px;
	background: var(--panel);
	transition: border-color 0.4s calc(var(--i) * 0.07s);
}

.day__item--a .day__card { bottom: var(--far); }
.day__item--b .day__card { bottom: var(--near); }
.day__item--c .day__card { top: var(--near); }
.day__item--d .day__card { top: var(--far); }

.day__item.is-right .day__card {
	left: auto;
	right: -1px;
}

.day.is-with .day__card {
	border-color: rgba(var(--signal-rgb), 0.4);
}

.day__time {
	display: block;
	color: var(--line);
	font-size: var(--fs-xs);
	font-stretch: 87.5%;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.day__q {
	margin: 3px 0 0;
	font-size: var(--fs-sm);
	font-weight: 600;
	line-height: 1.35;
}

.day__repeat {
	display: inline-block;
	margin: 6px 0 0;
	padding: 1px 8px;
	border-radius: 999px;
	background: rgba(var(--line-rgb), 0.14);
	color: var(--paper);
	font-size: 0.75rem;
	font-stretch: 87.5%;
}

.day__status,
.day__sum {
	display: grid;
}

.day__status {
	margin: 7px 0 0;
	font-size: var(--fs-xs);
	font-weight: 550;
}

.day__s {
	display: inline-flex;
	grid-area: 1 / 1;
	align-items: center;
	gap: 6px;
	transition: opacity 0.35s calc(var(--i, 0) * 0.07s), transform 0.35s calc(var(--i, 0) * 0.07s);
}

.day__s .icon {
	width: 15px;
	height: 15px;
}

.day__s--without {
	color: var(--muted);
}

.is-closed .day__s--without {
	color: var(--fault);
}

.day__s--with {
	color: var(--signal);
	opacity: 0;
	transform: translateY(5px);
}

.day.is-with .day__s--without {
	opacity: 0;
	transform: translateY(-5px);
}

.day.is-with .day__s--with {
	opacity: 1;
	transform: none;
}

.day__sum {
	max-width: 48ch;
	margin: 24px 0 0;
	font-size: var(--fs-lead);
	font-weight: 600;
	line-height: 1.4;
}

.day__sum .day__s--without {
	color: var(--paper);
}

@media (max-width: 1023px) {
	.day__switch {
		display: grid;
		width: 100%;
	}

	.day__opt {
		height: auto;
		min-height: 46px;
		padding: 6px 10px;
		font-size: var(--fs-xs);
		line-height: 1.2;
		white-space: normal;
	}

	.day__track {
		height: auto;
		padding-left: 34px;
	}

	.day__zone,
	.day__tick {
		display: none;
	}

	.day__axis {
		left: 10px;
		right: auto;
		top: 0;
		bottom: 0;
		width: 1px;
		height: auto;
	}

	.day__items {
		position: static;
		display: grid;
		gap: 12px;
	}

	.day__item {
		position: relative;
		left: auto;
		top: auto;
		width: auto;
		height: auto;
	}

	.day__item::before {
		display: none;
	}

	.day__pin {
		left: -31px;
		top: 16px;
	}

	.day__card,
	.day__item--a .day__card,
	.day__item--b .day__card,
	.day__item--c .day__card,
	.day__item--d .day__card,
	.day__item.is-right .day__card {
		position: relative;
		inset: auto;
		width: auto;
	}

	.day__item.is-closed .day__card {
		background-image: repeating-linear-gradient(135deg, rgba(var(--line-rgb), 0.05) 0 1px, transparent 1px 11px);
	}
}

/* Configurator ---------------------------------------------------------------- */
.config {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}

.config__modules {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	border: 0;
}

.module {
	position: relative;
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 18px 20px;
	border: 1px solid rgba(var(--line-rgb), 0.24);
	border-radius: 12px;
	background: var(--panel);
	cursor: pointer;
	transition: border-color 0.25s, background-color 0.25s;
}

.module:hover {
	border-color: rgba(var(--line-rgb), 0.55);
}

.module.is-on {
	border-color: var(--signal);
	background: linear-gradient(90deg, rgba(var(--signal-rgb), 0.09), transparent 70%), var(--panel);
}

.module:focus-within {
	outline: 2px solid var(--signal);
	outline-offset: 3px;
}

.module:has(.module__input:focus:not(:focus-visible)) {
	outline: none;
}

.module__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.module__icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(var(--line-rgb), 0.35);
	border-radius: 10px;
	color: var(--line);
	transition: color 0.25s, border-color 0.25s;
}

.module.is-on .module__icon {
	border-color: rgba(var(--signal-rgb), 0.6);
	color: var(--signal);
}

.module__name {
	display: block;
	font-size: 1.125rem;
	font-stretch: 105%;
	font-weight: 650;
	line-height: 1.3;
}

.module__text {
	display: block;
	margin-top: 3px;
	color: var(--muted);
	font-size: var(--fs-sm);
	line-height: 1.45;
}

.module__switch {
	position: relative;
	width: 46px;
	height: 26px;
	border-radius: 999px;
	background: rgba(var(--line-rgb), 0.2);
	transition: background-color 0.25s;
}

.module__switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--paper);
	transition: transform 0.3s var(--ease-out), background-color 0.25s;
}

.module.is-on .module__switch {
	background: var(--signal);
}

.module.is-on .module__switch::after {
	transform: translateX(20px);
	background: var(--ink);
}

.config__stage {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 24px;
	align-items: center;
	padding: 28px;
	overflow: hidden;
	border: 1px solid rgba(var(--line-rgb), 0.22);
	border-radius: 16px;
	background:
		linear-gradient(var(--grid-b) 1px, transparent 1px) 0 0 / 24px 24px,
		linear-gradient(90deg, var(--grid-b) 1px, transparent 1px) 0 0 / 24px 24px,
		rgba(8, 32, 76, 0.55);
}

.stack {
	position: relative;
	height: 330px;
}

.stack__base,
.stack__plate {
	position: absolute;
	left: 50%;
	top: 62%;
	width: 168px;
	height: 168px;
	margin: -84px 0 0 -84px;
	border-radius: 14px;
	transform: rotateX(58deg) rotateZ(-45deg) translateZ(calc(var(--lvl, 0) * 44px + var(--lift, 0px)));
}

.stack__base {
	--lvl: -0.5;
	border: 1px solid rgba(var(--line-rgb), 0.35);
	background:
		linear-gradient(var(--grid-a) 1px, transparent 1px) 0 0 / 14px 14px,
		linear-gradient(90deg, var(--grid-a) 1px, transparent 1px) 0 0 / 14px 14px,
		rgba(5, 21, 55, 0.8);
	box-shadow: 0 0 60px rgba(var(--line-rgb), 0.25);
}

.stack__plate {
	--lift: 70px;
	border: 1px dashed rgba(var(--line-rgb), 0.4);
	background: rgba(var(--line-rgb), 0.03);
	opacity: 0.35;
	transition: transform 0.7s var(--ease-out), opacity 0.4s, border-color 0.4s, background-color 0.4s, box-shadow 0.5s;
}

.stack__plate.is-on {
	--lift: 0px;
	border: 1px solid var(--line);
	background: linear-gradient(135deg, rgba(var(--line-rgb), 0.28), rgba(var(--blueprint-rgb), 0.5));
	box-shadow: 0 0 30px -4px rgba(var(--line-rgb), 0.55), inset 0 0 22px rgba(var(--line-rgb), 0.25);
	opacity: 1;
}

.stack__plate.is-last {
	border-color: var(--signal);
	box-shadow: 0 0 34px -4px rgba(var(--signal-rgb), 0.55), inset 0 0 22px rgba(var(--signal-rgb), 0.2);
}

.stack__face {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--line);
}

.stack__plate.is-last .stack__face {
	color: var(--signal);
}

.stack__face .icon {
	width: 60px;
	height: 60px;
	stroke-width: 1.2;
}

.stack__tag {
	display: none;
}

.config__panel {
	display: grid;
	gap: 18px;
	align-content: start;
	justify-items: start;
}

.config__summary {
	display: grid;
	gap: 2px;
	margin: 0;
}

.config__label,
.config__example-label {
	color: var(--line);
	font-size: var(--fs-xs);
	font-stretch: 87.5%;
	font-weight: 600;
}

.config__name {
	font-size: 1.5rem;
	font-stretch: 112.5%;
	font-weight: 720;
	line-height: 1.2;
}

.config__empty {
	margin: 0;
	color: var(--fault);
	font-size: var(--fs-sm);
}

.config__examples {
	display: grid;
	gap: 10px;
	width: 100%;
	font-size: var(--fs-sm);
	line-height: 1.45;
}

.config__example-label {
	margin: 0;
}

.example {
	display: grid;
	gap: 10px;
}

.example[hidden] {
	display: none;
}

.example .msg {
	max-width: 100%;
	animation: msgIn 0.4s var(--ease-out) both;
}

.example .msg--bot {
	animation-delay: 0.15s;
}

@media (max-width: 1100px) {
	.config {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 640px) {
	.config__stage {
		grid-template-columns: minmax(0, 1fr);
		padding: 20px;
	}

	.stack {
		height: 240px;
	}

	.stack__base,
	.stack__plate {
		width: 128px;
		height: 128px;
		margin: -64px 0 0 -64px;
		transform: rotateX(58deg) rotateZ(-45deg) translateZ(calc(var(--lvl, 0) * 34px + var(--lift, 0px)));
	}

	.stack__face .icon {
		width: 44px;
		height: 44px;
	}

	.module {
		grid-template-columns: 40px minmax(0, 1fr) auto;
		gap: 12px;
		padding: 14px;
	}

	.module__icon {
		width: 40px;
		height: 40px;
	}
}

/* Production line ----------------------------------------------------------- */
.process {
	padding-block: 0;
}

.process__pin {
	padding-block: clamp(84px, 10vw, 144px);
}

.process.is-pinned {
	height: 320vh;
}

.process.is-pinned .process__pin {
	position: sticky;
	top: 0;
	display: flex;
	align-items: center;
	height: 100vh;
	padding-block: calc(var(--header-h) + 8px) 24px;
	overflow: hidden;
}

.process.is-pinned .section__head {
	margin-bottom: clamp(28px, 4vh, 48px);
}

.line {
	position: relative;
}

.line__stations {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.station {
	position: relative;
	padding: 20px 18px 22px;
	border: 1px solid rgba(var(--line-rgb), 0.24);
	border-radius: 12px;
	background: rgba(8, 32, 76, 0.75);
	transition: border-color 0.45s, background-color 0.45s, transform 0.5s var(--ease-out), opacity 0.45s, box-shadow 0.45s;
}

.station__num {
	display: block;
	color: transparent;
	font-family: var(--stencil);
	font-size: 3.25rem;
	line-height: 1;
	-webkit-text-stroke: 1px rgba(var(--line-rgb), 0.75);
	transition: color 0.4s;
}

.station__lamp {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(var(--line-rgb), 0.3);
	transition: background-color 0.3s, box-shadow 0.3s;
}

.station__machine {
	position: absolute;
	top: 38px;
	right: 16px;
	color: var(--line);
}

.station__machine .icon {
	width: 30px;
	height: 30px;
	stroke-width: 1.4;
}

.station__title {
	margin: 14px 0 6px;
	font-size: 1.25rem;
	font-stretch: 105%;
	font-weight: 680;
	line-height: 1.2;
}

.station__text {
	margin: 0;
	color: var(--muted);
	font-size: var(--fs-sm);
	line-height: 1.5;
}

.process.is-pinned .station {
	opacity: 0.78;
}

.process.is-pinned .station.is-done {
	opacity: 0.9;
}

.process.is-pinned .station.is-done .station__lamp {
	background: var(--line);
}

.process.is-pinned .station.is-active {
	opacity: 1;
	border-color: var(--signal);
	background: linear-gradient(180deg, rgba(var(--signal-rgb), 0.1), transparent 60%), var(--panel);
	box-shadow: 0 24px 50px -24px rgba(var(--signal-rgb), 0.45);
	transform: translateY(-10px);
}

.process.is-pinned .station.is-active .station__num {
	color: var(--signal);
	-webkit-text-stroke: 0;
}

.process.is-pinned .station.is-active .station__lamp {
	background: var(--signal);
	box-shadow: 0 0 14px 3px rgba(var(--signal-rgb), 0.7);
}

.process.is-pinned .station.is-active .station__machine {
	color: var(--signal);
}

.belt {
	position: relative;
	height: 70px;
	margin-top: 26px;
}

.belt__surface {
	position: absolute;
	left: 0;
	right: 0;
	top: 22px;
	height: 22px;
	border: 1px solid rgba(var(--line-rgb), 0.5);
	border-radius: 11px;
	background: repeating-linear-gradient(90deg, rgba(var(--line-rgb), 0.28) 0 2px, transparent 2px 22px);
	background-position-x: var(--belt, 0px);
}

.belt__rollers {
	position: absolute;
	left: 10px;
	right: 10px;
	top: 50px;
	display: flex;
	justify-content: space-between;
}

.belt__roller {
	width: 14px;
	height: 14px;
	border: 1px solid rgba(var(--line-rgb), 0.6);
	border-radius: 50%;
	background: conic-gradient(from var(--roll, 0deg), rgba(var(--line-rgb), 0.7) 0 25%, transparent 0 50%, rgba(var(--line-rgb), 0.7) 0 75%, transparent 0);
}

.product {
	position: absolute;
	top: -26px;
	left: calc(10% + var(--p, 0) * 80% - 30px);
	width: 60px;
	height: 52px;
}

.product__box {
	display: grid;
	place-items: center;
	width: 60px;
	height: 52px;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: var(--bg-deep);
	color: var(--line);
	box-shadow: 0 0 22px -4px rgba(var(--line-rgb), 0.7);
	transition: background-color 0.4s, color 0.4s, box-shadow 0.4s, border-color 0.4s;
}

.product__mark {
	width: 32px;
	height: 32px;
}

.product .mark__gear {
	transform-origin: 16px 14.2px;
	transform: rotate(calc(var(--p, 0) * 720deg));
}

.product__stamp {
	position: absolute;
	top: -10px;
	right: -10px;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--signal);
	color: var(--ink);
	transform: scale(0);
	transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.product__stamp .icon {
	width: 16px;
	height: 16px;
	stroke-width: 2.6;
}

.product[data-stage="3"] .product__stamp,
.product[data-stage="4"] .product__stamp {
	transform: scale(1);
}

.product[data-stage="4"] .product__box {
	border-color: var(--signal);
	background: var(--signal);
	color: var(--ink);
	box-shadow: 0 0 36px rgba(var(--signal-rgb), 0.75);
}

.product[data-stage="4"] .mark__hub {
	fill: var(--ink);
}

/* Dimension lines (technical drawing) */
.dim {
	position: relative;
	height: 30px;
	margin: 0;
	border-inline: 1px solid var(--line);
}

.dim::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 1px;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9'%3E%3Cpath d='M0 4.5 9 0v9z' fill='%237cc6ff'/%3E%3C/svg%3E") left center / 9px 9px no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9'%3E%3Cpath d='M9 4.5 0 0v9z' fill='%237cc6ff'/%3E%3C/svg%3E") right center / 9px 9px no-repeat,
		linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat;
	height: 9px;
	margin-top: -4.5px;
}

.dim__label {
	position: relative;
	display: table;
	margin: 0 auto;
	padding: 0 12px;
	background: var(--bg);
	color: var(--line);
	font-size: var(--fs-xs);
	font-stretch: 87.5%;
	font-weight: 600;
	line-height: 30px;
}

.dim--line {
	margin: 20px 10% 0 30%;
}

@media (max-width: 1099px) {
	.line__stations {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
		padding-left: 0;
	}

	.station {
		display: grid;
		grid-template-columns: 64px minmax(0, 1fr);
		column-gap: 16px;
		padding: 18px;
	}

	.station__num {
		grid-row: span 2;
		font-size: 2.75rem;
	}

	.station__title {
		margin-top: 0;
	}

	.station__lamp {
		display: none;
	}

	.station__machine {
		top: 16px;
	}

	.belt {
		display: none;
	}

	.dim--line {
		margin: 24px 0 0;
	}
}

/* Features: phone + admin ---------------------------------------------------- */
.features__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(40px, 6vw, 96px);
	align-items: center;
}

.feature-list {
	display: grid;
	gap: 22px;
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}

.feature {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}

.feature__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(var(--line-rgb), 0.35);
	border-radius: 10px;
	color: var(--line);
}

.feature__title {
	display: block;
	font-size: 1.0625rem;
	font-weight: 650;
	line-height: 1.35;
}

.feature__text {
	display: block;
	color: var(--muted);
	font-size: var(--fs-sm);
	line-height: 1.5;
}

.features__demo {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
}

.phone {
	--brand: #0a4bb8;
	position: relative;
	width: 300px;
	height: 612px;
	padding: 11px;
	border: 1px solid rgba(var(--line-rgb), 0.4);
	border-radius: 48px;
	background: linear-gradient(160deg, #13224a, #070f26);
	box-shadow:
		0 0 0 6px rgba(var(--line-rgb), 0.05),
		0 50px 90px -40px rgba(0, 0, 0, 0.85),
		0 0 90px -24px rgba(var(--line-rgb), 0.35);
}

.phone::before {
	content: "";
	position: absolute;
	top: 20px;
	left: 50%;
	z-index: 2;
	width: 84px;
	height: 22px;
	border-radius: 12px;
	background: #070f26;
	transform: translateX(-50%);
}

.phone__screen {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: 38px;
	background: #f3f6fc;
	color: #141a2b;
	font-size: 0.8125rem;
	line-height: 1.4;
	view-transition-name: phone-screen;
}

.pchat__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 48px 16px 14px;
	background: var(--brand);
	color: #fff;
	transition: background-color 0.4s;
}

.pchat__logo {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	flex: none;
	border-radius: 50%;
	background: #fff;
	color: var(--brand);
	font-size: 1rem;
	font-stretch: 112.5%;
	font-weight: 800;
}

.pchat__id {
	display: grid;
	line-height: 1.25;
}

.pchat__name {
	font-size: 0.875rem;
	font-weight: 650;
}

.pchat__status {
	font-size: 0.6875rem;
	opacity: 0.85;
}

.pchat__log {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 14px 12px;
	overflow: hidden;
}

.pmsg {
	max-width: 86%;
	margin: 0;
	padding: 8px 11px;
	border-radius: 14px;
}

.pmsg p {
	margin: 0;
}

.pmsg--user {
	align-self: flex-end;
	border-bottom-right-radius: 4px;
	background: var(--brand);
	color: #fff;
}

.pmsg--bot {
	align-self: flex-start;
	border: 1px solid #e1e6f0;
	border-bottom-left-radius: 4px;
	background: #fff;
}

.pchat__file {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	padding: 6px 8px;
	border-radius: 8px;
	background: color-mix(in srgb, var(--brand) 10%, #fff);
	color: var(--brand);
	font-weight: 650;
}

.pchat__file .icon,
.pchat__calc-label .icon,
.pchat__leave .icon {
	width: 16px;
	height: 16px;
}

.pmsg--calc {
	display: grid;
	gap: 1px;
}

.pchat__calc-label {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #5b6478;
	font-size: 0.6875rem;
	font-weight: 600;
}

.pchat__calc-value {
	color: var(--brand);
	font-size: 1.5rem;
	font-stretch: 112.5%;
	font-weight: 800;
	line-height: 1.15;
}

.pchat__calc-note {
	color: #5b6478;
	font-size: 0.6875rem;
}

.pchat__leave {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid var(--brand);
	border-radius: 999px;
	color: var(--brand);
	font-weight: 650;
}

.pchat__input {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 8px 10px 14px;
	padding: 6px 6px 6px 14px;
	border: 1px solid #e1e6f0;
	border-radius: 999px;
	background: #fff;
	color: #5f6a84;
}

.pchat__send {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--brand);
	color: #fff;
}

.pchat__send .icon {
	width: 15px;
	height: 15px;
}

.swatches {
	text-align: center;
}

.swatches__label {
	margin: 0 0 12px;
	color: var(--muted);
	font-size: var(--fs-sm);
}

.swatches__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.swatch {
	width: 36px;
	height: 36px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 50%;
	background: var(--c);
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
	cursor: pointer;
	transition: transform 0.25s var(--ease-out), border-color 0.2s;
}

.swatch:hover {
	transform: scale(1.08);
}

.swatch[aria-pressed="true"] {
	border-color: var(--paper);
	transform: scale(1.15);
}

.swatches__name {
	min-height: 1.5em;
	margin: 12px 0 0;
	font-size: var(--fs-sm);
	font-weight: 600;
}

::view-transition-old(phone-screen),
::view-transition-new(phone-screen) {
	animation: none;
	mix-blend-mode: normal;
}

::view-transition-new(phone-screen) {
	animation: brandWipe 0.7s var(--ease-out) both;
}

@media (max-width: 960px) {
	.features__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Admin mockup */
.admin {
	margin-top: clamp(84px, 10vw, 144px);
}

.admin__title {
	max-width: 30ch;
	margin: 0 0 28px;
	font-size: clamp(1.625rem, 1.15rem + 1.5vw, 2.375rem);
	font-stretch: 112.5%;
	font-weight: 700;
	line-height: 1.1;
}

.admin__window {
	overflow: hidden;
	border: 1px solid rgba(var(--line-rgb), 0.32);
	border-radius: 14px;
	background: var(--panel-2);
	box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.8);
}

.admin__bar {
	display: flex;
	gap: 7px;
	padding: 12px 16px;
	border-bottom: 1px solid rgba(var(--line-rgb), 0.18);
	background: rgba(5, 21, 55, 0.6);
}

.admin__bar span {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: rgba(var(--line-rgb), 0.3);
}

.admin__body {
	display: grid;
	grid-template-columns: 290px minmax(0, 1fr);
	min-height: 420px;
}

.admin__tabs {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px;
	border-right: 1px solid rgba(var(--line-rgb), 0.16);
}

.admin__tab {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: none;
	color: var(--muted);
	text-align: left;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.admin__tab:hover {
	color: var(--paper);
}

.admin__tab[aria-selected="true"] {
	border-color: rgba(var(--line-rgb), 0.35);
	background: rgba(var(--line-rgb), 0.1);
	color: var(--paper);
}

.admin__tab[aria-selected="true"] > .icon {
	color: var(--signal);
}

.admin__tab-text {
	display: grid;
	gap: 2px;
	line-height: 1.3;
}

.admin__tab-text strong {
	font-size: var(--fs-sm);
	font-weight: 650;
}

.admin__tab-text span {
	font-size: var(--fs-xs);
}

.admin__panels {
	padding: 26px;
}

.admin__panel[hidden] {
	display: none;
}

.admin__panel {
	animation: msgIn 0.35s var(--ease-out) both;
}

.editor {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 24px;
}

.field {
	display: grid;
	gap: 6px;
	margin-bottom: 14px;
}

.field__label {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--line);
	font-size: var(--fs-xs);
	font-stretch: 87.5%;
	font-weight: 600;
}

.field__label .icon {
	width: 16px;
	height: 16px;
}

.field__input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid rgba(var(--line-rgb), 0.32);
	border-radius: 8px;
	background: var(--panel-2);
	color: var(--paper);
	font-size: var(--fs-sm);
}

.field__input:focus {
	outline: none;
	border-color: var(--signal);
	box-shadow: 0 0 0 3px rgba(var(--signal-rgb), 0.2);
}

.field__input--area {
	min-height: 104px;
	line-height: 1.5;
	resize: vertical;
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tag {
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(var(--line-rgb), 0.13);
	font-size: var(--fs-xs);
}

.editor__hint {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--muted);
	font-size: var(--fs-xs);
}

.editor__hint .icon {
	width: 16px;
	height: 16px;
	color: var(--signal);
}

.editor__preview {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	border: 1px dashed rgba(var(--line-rgb), 0.4);
	border-radius: 12px;
	background: rgba(5, 21, 55, 0.55);
	font-size: var(--fs-sm);
	line-height: 1.45;
}

.editor__preview .msg {
	max-width: 95%;
}

.import__drop {
	display: grid;
	justify-items: center;
	gap: 12px;
	padding: 32px 24px;
	border: 1.5px dashed rgba(var(--line-rgb), 0.45);
	border-radius: 12px;
	color: var(--muted);
	text-align: center;
}

.import__drop > .icon {
	width: 46px;
	height: 46px;
	color: var(--line);
	stroke-width: 1.3;
}

.import__drop p {
	max-width: 42ch;
	margin: 0;
	font-size: var(--fs-sm);
}

.import__file {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border-radius: 8px;
	background: rgba(var(--line-rgb), 0.12);
	color: var(--paper);
	font-size: var(--fs-sm);
}

.import__file .icon {
	width: 17px;
	height: 17px;
}

.import__run {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	margin-top: 22px;
}

.import__bar {
	height: 8px;
	overflow: hidden;
	border-radius: 4px;
	background: rgba(var(--line-rgb), 0.15);
}

.import__fill {
	display: block;
	width: var(--w, 0%);
	height: 100%;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--line), var(--signal));
}

.import__count {
	color: var(--muted);
	font-size: var(--fs-sm);
	white-space: nowrap;
}

.import__count strong {
	color: var(--paper);
	font-size: 1.5rem;
	font-variant-numeric: tabular-nums;
}

.unknown {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.unknown__item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	gap: 16px;
	align-items: center;
	padding: 14px 16px;
	border: 1px solid rgba(var(--line-rgb), 0.22);
	border-radius: 10px;
}

.unknown__q {
	font-weight: 600;
	font-size: var(--fs-sm);
}

.unknown__when {
	color: var(--muted);
	font-size: var(--fs-xs);
	white-space: nowrap;
}

.pages__note {
	margin: 0 0 14px;
	color: var(--muted);
	font-size: var(--fs-sm);
}

.pages {
	display: grid;
	gap: 8px;
	max-width: 440px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pages__item--pause {
	margin-top: 10px;
}

.toggle {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid rgba(var(--line-rgb), 0.2);
	border-radius: 8px;
	cursor: pointer;
}

.toggle input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.toggle__ui {
	position: relative;
	width: 40px;
	height: 24px;
	flex: none;
	border-radius: 999px;
	background: rgba(var(--line-rgb), 0.22);
	transition: background-color 0.2s;
}

.toggle__ui::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--paper);
	transition: transform 0.25s var(--ease-out), background-color 0.2s;
}

.toggle input:checked + .toggle__ui {
	background: var(--signal);
}

.toggle input:checked + .toggle__ui::after {
	transform: translateX(16px);
	background: var(--ink);
}

.toggle input:focus-visible + .toggle__ui {
	outline: 2px solid var(--signal);
	outline-offset: 2px;
}

.toggle__text {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: var(--fs-sm);
}

.toggle__text .icon {
	width: 17px;
	height: 17px;
}

@media (max-width: 860px) {
	.admin__body {
		grid-template-columns: minmax(0, 1fr);
	}

	.admin__tabs {
		flex-direction: row;
		overflow-x: auto;
		border-right: 0;
		border-bottom: 1px solid rgba(var(--line-rgb), 0.16);
		scrollbar-width: none;
	}

	.admin__tab {
		flex: none;
	}

	.admin__tab-text span {
		display: none;
	}

	.editor {
		grid-template-columns: minmax(0, 1fr);
	}

	.unknown__item {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.unknown__item .btn {
		grid-column: 1 / -1;
		justify-self: start;
	}

	.import__run {
		grid-template-columns: minmax(0, 1fr);
	}

	.admin__panels {
		padding: 18px;
	}
}

/* Comparison ---------------------------------------------------------------- */
.spec {
	overflow: hidden;
	border: 1px solid rgba(var(--line-rgb), 0.28);
	border-radius: 14px;
	background: rgba(8, 32, 76, 0.4);
}

.spec__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, 1.25fr));
}

.spec__row + .spec__row {
	border-top: 1px solid rgba(var(--line-rgb), 0.15);
}

.spec__row > * {
	padding: 18px 20px;
}

.spec__row--head {
	background: rgba(5, 21, 55, 0.7);
}

.spec__col {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1rem;
	font-weight: 650;
	line-height: 1.3;
}

.spec__col--us {
	background: var(--signal);
	color: var(--ink);
}

.spec__mark {
	width: 24px;
	height: 24px;
	color: var(--ink);
}

.spec__col--us .mark__hub {
	fill: var(--ink);
}

.spec__label {
	color: var(--muted);
	font-stretch: 87.5%;
	font-weight: 600;
}

.spec__cell {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: var(--fs-sm);
	line-height: 1.45;
}

.spec__cell .icon {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	stroke-width: 2.2;
}

.spec__cell--us {
	background: rgba(var(--line-rgb), 0.07);
	box-shadow: inset 1px 0 rgba(var(--signal-rgb), 0.45), inset -1px 0 rgba(var(--signal-rgb), 0.45);
	font-weight: 600;
}

.spec__cell--yes .icon {
	color: var(--signal);
}

.spec__cell--no .icon {
	color: var(--fault);
}

.spec__cell--na {
	color: var(--muted);
}

@media (max-width: 860px) {
	.spec__row--head {
		display: none;
	}

	.spec__row {
		grid-template-columns: minmax(0, 1fr);
		padding: 16px 0;
	}

	.spec__row > * {
		padding: 6px 18px;
	}

	.spec__label {
		color: var(--paper);
		font-size: 1.125rem;
		font-stretch: 100%;
	}

	.spec__cell {
		display: grid;
		grid-template-columns: 18px minmax(0, 1fr);
		column-gap: 10px;
	}

	.spec__cell::before {
		content: attr(data-col);
		grid-column: 2;
		color: var(--muted);
		font-size: 0.75rem;
		font-weight: 500;
	}

	.spec__cell > span {
		grid-column: 2;
	}

	.spec__cell .icon {
		grid-row: 1 / span 2;
		grid-column: 1;
		margin-top: 12px;
	}

	.spec__cell--us {
		margin-inline: 12px;
		padding-block: 10px;
		border-radius: 8px;
		box-shadow: inset 0 0 0 1px rgba(var(--signal-rgb), 0.5);
	}
}

/* Calculator */
.calc {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 32px clamp(32px, 5vw, 72px);
	margin-top: 48px;
	padding: clamp(24px, 3vw, 40px);
	border: 1px solid rgba(var(--line-rgb), 0.28);
	border-radius: 14px;
	background: var(--panel);
}

.calc__title {
	margin: 0 0 8px;
	font-size: var(--fs-h3);
	font-stretch: 112.5%;
	font-weight: 700;
}

.calc__text {
	margin: 0;
	color: var(--muted);
	font-size: var(--fs-sm);
}

.calc__head,
.calc__controls {
	grid-column: 1;
}

.calc__result {
	grid-column: 2;
	grid-row: 1 / span 2;
	align-self: center;
}

.slider {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 6px 16px;
	align-items: baseline;
	margin-top: 22px;
}

.slider__label {
	color: var(--muted);
	font-size: var(--fs-sm);
}

.slider__value {
	font-size: 1.25rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.slider__input {
	--fill: 50%;
	grid-column: 1 / -1;
	width: 100%;
	height: 30px;
	margin: 0;
	background: transparent;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.slider__input::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--line) var(--fill), rgba(var(--line-rgb), 0.2) var(--fill));
}

.slider__input::-webkit-slider-thumb {
	width: 24px;
	height: 24px;
	margin-top: -9px;
	border: 4px solid var(--ink-2);
	border-radius: 50%;
	background: var(--signal);
	box-shadow: 0 0 0 1px var(--signal);
	-webkit-appearance: none;
	appearance: none;
}

.slider__input::-moz-range-track {
	height: 6px;
	border-radius: 3px;
	background: rgba(var(--line-rgb), 0.2);
}

.slider__input::-moz-range-progress {
	height: 6px;
	border-radius: 3px;
	background: var(--line);
}

.slider__input::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border: 4px solid var(--ink-2);
	border-radius: 50%;
	background: var(--signal);
	box-shadow: 0 0 0 1px var(--signal);
}

.slider__input:focus-visible {
	outline: none;
}

.slider__input:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 1px var(--signal), 0 0 0 6px rgba(var(--signal-rgb), 0.35);
}

.slider__input:focus-visible::-moz-range-thumb {
	box-shadow: 0 0 0 1px var(--signal), 0 0 0 6px rgba(var(--signal-rgb), 0.35);
}

.bar {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr) auto;
	gap: 14px;
	align-items: center;
	margin-bottom: 16px;
}

.bar__label {
	color: var(--muted);
	font-size: var(--fs-sm);
}

.bar__track {
	height: 16px;
	overflow: hidden;
	border-radius: 8px;
	background: rgba(var(--line-rgb), 0.1);
}

.bar__fill {
	display: block;
	width: var(--w);
	height: 100%;
	border-radius: 8px;
	transition: width 0.55s var(--ease-out);
}

.bar--sub .bar__fill {
	background: repeating-linear-gradient(135deg, var(--fault) 0 6px, rgba(var(--fault-rgb), 0.65) 6px 12px);
}

.bar--us .bar__fill {
	background: var(--signal);
}

.bar__value {
	min-width: 96px;
	font-size: 1.125rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.calc__verdict {
	margin: 22px 0 8px;
	font-size: 1.25rem;
	font-weight: 650;
	line-height: 1.4;
}

.calc__note {
	margin: 0;
	color: var(--muted);
	font-size: var(--fs-xs);
}

@media (max-width: 860px) {
	.calc {
		grid-template-columns: minmax(0, 1fr);
	}

	.calc__result {
		grid-column: 1;
		grid-row: auto;
	}

	.bar {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.bar__track {
		grid-column: 1 / -1;
		grid-row: 2;
	}
}

/* Demos --------------------------------------------------------------------- */
.demos__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.demo {
	display: grid;
	grid-template-rows: auto 1fr;
	overflow: hidden;
	border: 1px solid rgba(var(--line-rgb), 0.28);
	border-radius: 16px;
	background: var(--panel);
}

.demo__screen {
	position: relative;
	height: 190px;
	border-bottom: 1px solid rgba(var(--line-rgb), 0.22);
	background:
		linear-gradient(var(--grid-a) 1px, transparent 1px) 0 0 / 24px 24px,
		linear-gradient(90deg, var(--grid-a) 1px, transparent 1px) 0 0 / 24px 24px,
		radial-gradient(ellipse at 70% 40%, rgba(var(--blueprint-rgb), 0.6), transparent 70%),
		var(--ink);
}

.demo__lang {
	position: absolute;
	top: 18px;
	left: 22px;
	color: transparent;
	font-family: var(--stencil);
	font-size: 3.25rem;
	line-height: 1;
	-webkit-text-stroke: 1px var(--line);
}

.demo__line {
	position: absolute;
	height: 12px;
	border-radius: 6px;
	background: rgba(var(--line-rgb), 0.3);
}

.demo__line--1 {
	top: 54px;
	left: 42%;
	width: 40%;
}

.demo__line--2 {
	top: 76px;
	left: 42%;
	width: 26%;
}

.demo__line--3 {
	top: 112px;
	right: 90px;
	width: 34%;
	background: var(--paper);
	opacity: 0.85;
}

.demo__bubble {
	position: absolute;
	right: 22px;
	bottom: 22px;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--signal);
	color: var(--ink);
	box-shadow: 0 0 30px rgba(var(--signal-rgb), 0.5);
}

.demo__bubble .mark {
	width: 32px;
	height: 32px;
}

.demo__bubble .mark__hub {
	fill: var(--ink);
}

.demo__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: 24px 26px 28px;
}

.demo__title {
	margin: 0;
	font-size: var(--fs-h3);
	font-stretch: 105%;
	font-weight: 700;
	line-height: 1.2;
}

.demo__text {
	margin: 0;
	color: var(--muted);
	font-size: var(--fs-sm);
}

.demo__specs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.demo__specs li {
	padding: 3px 10px;
	border: 1px solid rgba(var(--line-rgb), 0.32);
	border-radius: 999px;
	font-size: var(--fs-xs);
}

.demo .btn {
	margin-top: auto;
}

.demos__note {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin: 28px 0 0;
	padding: 18px 20px;
	border: 1px dashed rgba(var(--line-rgb), 0.4);
	border-radius: 12px;
	color: var(--muted);
	font-size: var(--fs-sm);
}

.demos__note span {
	flex: 1 1 260px;
}

.demos__mark {
	width: 28px;
	height: 28px;
	color: var(--line);
}

.demos__grid--single {
	grid-template-columns: minmax(0, 1fr);
}

.demos__grid--single .demo {
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	grid-template-rows: auto;
}

.demos__grid--single .demo__screen {
	height: auto;
	min-height: 300px;
	border-right: 1px solid rgba(var(--line-rgb), 0.22);
	border-bottom: 0;
}

.demos__grid--single .demo__body {
	justify-content: center;
	padding: clamp(24px, 4vw, 48px);
}

.demos__grid--single .demo__title {
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.demos__grid--single .demo__text {
	max-width: 56ch;
	font-size: var(--fs-base);
}

.demos__grid--single .demo .btn {
	margin-top: 10px;
}

@media (max-width: 760px) {
	.demos__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.demos__grid--single .demo {
		grid-template-columns: minmax(0, 1fr);
	}

	.demos__grid--single .demo__screen {
		min-height: 180px;
		border-right: 0;
		border-bottom: 1px solid rgba(var(--line-rgb), 0.22);
	}
}

/* Price --------------------------------------------------------------------- */
.price {
	overflow: clip;
	background: transparent;
	color: #fff;
}

.price__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(40px, 6vw, 96px);
	align-items: start;
}

.price__figure {
	display: inline-block;
	margin: 24px 0 28px;
}

.dim--price {
	border-color: rgba(255, 255, 255, 0.85);
	margin-bottom: 6px;
}

.dim--price::before {
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9'%3E%3Cpath d='M0 4.5 9 0v9z' fill='%23ffffff'/%3E%3C/svg%3E") left center / 9px 9px no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9'%3E%3Cpath d='M9 4.5 0 0v9z' fill='%23ffffff'/%3E%3C/svg%3E") right center / 9px 9px no-repeat,
		linear-gradient(#fff, #fff) center / 100% 1px no-repeat;
}

.dim--price .dim__label {
	background: var(--bg);
	color: #fff;
}

.price__amount {
	margin: 0;
	font-size: clamp(4.5rem, 2.2rem + 8.5vw, 9.5rem);
	font-stretch: 125%;
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 0.9;
	white-space: nowrap;
}

/* "from" sits above the figure in the signal colour, so the number stays the hero. */
.price__from {
	display: block;
	margin: 0 0 0.14em 0.03em;
	color: var(--signal);
	font-size: 0.26em;
	font-stretch: 100%;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1;
}

.price__fine {
	max-width: 44ch;
	margin: 0 0 14px;
	color: rgba(255, 255, 255, 0.92);
}

.price__limited {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 30px;
	font-weight: 600;
}

.price__limited .icon {
	margin-top: 3px;
	color: var(--signal);
}

.price__avail {
	display: inline-block;
	margin: 6px 0 0;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--signal);
	color: var(--ink);
}

.price__sheet {
	padding: clamp(22px, 3vw, 34px);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 14px;
	background: rgba(5, 21, 55, 0.42);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.price__get {
	margin: 0 0 18px;
	font-size: 1.375rem;
	font-stretch: 105%;
	font-weight: 680;
}

.checklist {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.checklist__item {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	line-height: 1.45;
}

.checklist__check {
	width: 22px;
	height: 22px;
	margin-top: 1px;
	fill: none;
	stroke: var(--signal);
	stroke-width: 2.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 24;
	stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: no-preference) {
	.js .has-effects .checklist .checklist__check {
		stroke-dashoffset: 24;
	}

	.js .has-effects .checklist.is-drawn .checklist__check {
		stroke-dashoffset: 0;
		transition: stroke-dashoffset 0.5s var(--ease-out) calc(var(--i) * 0.09s + 0.15s);
	}
}

.titleblock {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: 26px 0 0;
	border: 1px solid rgba(255, 255, 255, 0.4);
}

.titleblock__cell {
	padding: 10px 14px;
	border-right: 1px solid rgba(255, 255, 255, 0.4);
	border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.titleblock__cell:nth-child(2n) {
	border-right: 0;
}

.titleblock__cell:nth-last-child(-n + 2) {
	border-bottom: 0;
}

.titleblock dt {
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.75rem;
	font-stretch: 87.5%;
}

.titleblock dd {
	margin: 2px 0 0;
	font-weight: 650;
}

@media (max-width: 960px) {
	.price__inner {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* FAQ as a conversation ----------------------------------------------------- */
.faq__grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	gap: clamp(40px, 6vw, 96px);
	align-items: start;
}

.faq__head {
	position: sticky;
	top: calc(var(--header-h) + 32px);
	margin: 0;
}

.faq__aside {
	display: grid;
	justify-items: start;
	gap: 14px;
	margin-top: 28px;
	color: var(--muted);
}

.faq__aside p {
	margin: 0;
}

.faq__mail a {
	color: var(--paper);
}

.faq__list {
	display: grid;
	gap: 16px;
}

.qa__q {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	list-style: none;
	cursor: pointer;
}

.qa__q::-webkit-details-marker {
	display: none;
}

.qa__q .bubble {
	max-width: 80%;
	border-color: transparent;
	border-bottom-right-radius: 4px;
	background: var(--paper);
	color: var(--ink);
	font-weight: 600;
	transition: background-color 0.2s;
}

.qa__q:hover .bubble {
	background: #fff;
}

.qa__q:focus-visible {
	outline: none;
}

.qa__q:focus-visible .bubble {
	outline: 2px solid var(--signal);
	outline-offset: 3px;
}

.qa__toggle {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	flex: none;
	border: 1px solid rgba(var(--line-rgb), 0.45);
	border-radius: 50%;
	color: var(--line);
	transition: transform 0.35s var(--ease-out), border-color 0.2s;
}

.qa__toggle .icon {
	width: 18px;
	height: 18px;
}

.qa[open] .qa__toggle {
	border-color: var(--signal);
	color: var(--signal);
	transform: rotate(45deg);
}

.qa__a {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	max-width: 88%;
	margin-top: 12px;
}

.qa__avatar {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	flex: none;
	border: 1px solid rgba(var(--line-rgb), 0.35);
	border-radius: 9px;
	background: rgba(var(--line-rgb), 0.1);
	color: var(--line);
}

.qa__avatar .mark {
	width: 22px;
	height: 22px;
}

.qa__a .bubble {
	position: relative;
	border-bottom-left-radius: 4px;
}

.qa__typing {
	position: absolute;
	left: 16px;
	top: 16px;
	display: none;
	gap: 4px;
}

@media (prefers-reduced-motion: no-preference) {
	.js .qa[open] .qa__typing {
		display: inline-flex;
		animation: fadeOut 0.2s 0.5s both;
	}

	.js .qa[open] .qa__a .bubble p {
		animation: fadeIn 0.35s 0.55s both;
	}

	.js .qa[open] .qa__a {
		animation: msgIn 0.35s var(--ease-out) both;
	}
}

@media (max-width: 960px) {
	.faq__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.faq__head {
		position: static;
	}
}

/* Quote request ------------------------------------------------------------- */
.quote {
	background: radial-gradient(ellipse 60% 50% at 80% 30%, rgba(255, 255, 255, 0.08), transparent 70%);
}

.quote__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(40px, 6vw, 96px);
	align-items: start;
}

.quote__next {
	margin: 40px 0 14px;
	color: var(--line);
	font-size: var(--fs-sm);
	font-stretch: 87.5%;
	font-weight: 650;
}

.quote__steps {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: qs;
}

.quote__steps li {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr);
	gap: 12px;
	color: var(--muted);
	counter-increment: qs;
}

.quote__steps li::before {
	content: counter(qs);
	color: var(--signal);
	font-family: var(--stencil);
	font-size: 1.5rem;
	line-height: 1.1;
}

.quote__mail {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 36px 0 0;
	color: var(--muted);
}

.quote__mail a {
	color: var(--paper);
}

.quote__mail .icon {
	color: var(--line);
}

.workorder {
	position: relative;
	padding: clamp(22px, 3vw, 40px);
	border: 1px solid rgba(var(--line-rgb), 0.38);
	border-radius: 16px;
	background: var(--panel);
	box-shadow: 0 50px 110px -50px rgba(var(--line-rgb), 0.35);
}

.workorder::before {
	content: "";
	position: absolute;
	inset: -9px;
	pointer-events: none;
	background:
		linear-gradient(var(--line), var(--line)) top left / 14px 1px no-repeat,
		linear-gradient(var(--line), var(--line)) top left / 1px 14px no-repeat,
		linear-gradient(var(--line), var(--line)) top right / 14px 1px no-repeat,
		linear-gradient(var(--line), var(--line)) top right / 1px 14px no-repeat,
		linear-gradient(var(--line), var(--line)) bottom left / 14px 1px no-repeat,
		linear-gradient(var(--line), var(--line)) bottom left / 1px 14px no-repeat,
		linear-gradient(var(--line), var(--line)) bottom right / 14px 1px no-repeat,
		linear-gradient(var(--line), var(--line)) bottom right / 1px 14px no-repeat;
	opacity: 0.7;
}

.qform.is-hidden {
	display: none;
}

.qform__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
}

.qfield--full {
	grid-column: 1 / -1;
}

.qfield__label {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 8px;
	font-size: var(--fs-sm);
	font-weight: 600;
}

.qfield__opt {
	color: var(--muted);
	font-size: var(--fs-xs);
	font-weight: 400;
}

.qfield__input {
	width: 100%;
	height: 52px;
	padding: 0 14px;
	border: 1px solid rgba(var(--line-rgb), 0.38);
	border-radius: 8px;
	background: var(--panel-2);
	color: var(--paper);
	font-size: 1rem;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.qfield__input:hover {
	border-color: rgba(var(--line-rgb), 0.6);
}

.qfield__input:focus {
	outline: none;
	border-color: var(--signal);
	box-shadow: 0 0 0 3px rgba(var(--signal-rgb), 0.22);
}

.qfield__input--area {
	height: auto;
	min-height: 128px;
	padding: 12px 14px;
	line-height: 1.5;
	resize: vertical;
}

.qfield__select {
	position: relative;
	display: block;
}

.qfield__select::after {
	content: "";
	position: absolute;
	right: 16px;
	top: 50%;
	width: 8px;
	height: 8px;
	margin-top: -6px;
	border-right: 2px solid var(--line);
	border-bottom: 2px solid var(--line);
	transform: rotate(45deg);
	pointer-events: none;
}

select.qfield__input {
	padding-right: 42px;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

select.qfield__input option {
	background: var(--ink);
	color: var(--paper);
}

.qfield__err {
	margin: 6px 0 0;
	color: var(--fault);
	font-size: var(--fs-xs);
}

.qfield__err:empty {
	display: none;
}

.qfield.is-invalid .qfield__input {
	border-color: var(--fault);
}

.qfield.is-invalid .check__box {
	border-color: var(--fault);
}

.check {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	color: var(--muted);
	font-size: var(--fs-sm);
	line-height: 1.45;
	cursor: pointer;
}

.check input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.check__box {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	flex: none;
	margin-top: 1px;
	border: 1.5px solid rgba(var(--line-rgb), 0.65);
	border-radius: 5px;
	color: transparent;
	transition: background-color 0.2s, border-color 0.2s;
}

.check__box .icon {
	width: 16px;
	height: 16px;
	stroke-width: 2.8;
}

.check input:checked + .check__box {
	border-color: var(--signal);
	background: var(--signal);
	color: var(--ink);
}

.check input:focus-visible + .check__box {
	outline: 2px solid var(--signal);
	outline-offset: 2px;
}

.check__text a {
	color: var(--paper);
}

.qform__trap {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.qform__alert {
	margin: 0 0 20px;
	padding: 12px 14px;
	border: 1px solid rgba(var(--fault-rgb), 0.55);
	border-radius: 8px;
	background: rgba(var(--fault-rgb), 0.12);
	color: #ffd5cf;
	font-size: var(--fs-sm);
}

.qform__alert[hidden] {
	display: none;
}

.qform__submit {
	width: 100%;
	margin-top: 26px;
}

.qform__spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: spin 0.7s linear infinite;
}

.is-sending .qform__spinner {
	display: inline-block;
}

.qdone {
	display: grid;
	justify-items: start;
	gap: 14px;
	padding: 12px 0;
}

.qdone[hidden] {
	display: none;
}

.qdone:focus {
	outline: none;
}

.qdone__title {
	margin: 10px 0 0;
	font-size: 2rem;
	font-stretch: 112.5%;
	font-weight: 720;
	line-height: 1.1;
}

.qdone__text {
	max-width: 46ch;
	margin: 0;
	color: var(--muted);
	font-size: var(--fs-lead);
}

.stamp {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	padding: 10px 20px 8px;
	border: 3px solid var(--signal);
	border-radius: 8px;
	color: var(--signal);
	font-family: var(--stencil);
	font-size: 2.25rem;
	line-height: 1;
	transform: rotate(-7deg);
}

.stamp small {
	margin-top: 5px;
	font-family: var(--font);
	font-size: 0.75rem;
	font-weight: 650;
	letter-spacing: 0.06em;
}

.qdone.is-visible .stamp {
	animation: stamp 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}

@media (max-width: 960px) {
	.quote__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 560px) {
	.qform__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Footer -------------------------------------------------------------------- */
.site-footer {
	position: relative;
	padding-top: 72px;
	overflow: clip;
	border-top: 1px solid rgba(var(--line-rgb), 0.16);
	background: var(--bg-deep);
}

.site-footer__top {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
}

.site-footer__langs {
	grid-column: 1 / -1;
	order: 5;
}

.site-footer__tagline {
	max-width: 32ch;
	margin: 16px 0 0;
	color: var(--muted);
}

.site-footer__list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__list a {
	color: var(--paper);
	text-decoration: none;
}

.site-footer__list a:hover {
	color: var(--signal);
}

.site-footer__contact {
	display: grid;
	justify-items: start;
	align-content: start;
	gap: 18px;
}

.site-footer__mail {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--paper);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.site-footer__mail .icon {
	color: var(--line);
}

.site-footer__word {
	margin: 72px 0 14px;
	background: linear-gradient(180deg, rgba(var(--line-rgb), 0.32), rgba(var(--line-rgb), 0) 80%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-family: var(--stencil);
	font-size: clamp(2.5rem, 0.4rem + 11vw, 9.25rem);
	line-height: 0.95;
	text-align: center;
	white-space: nowrap;
	-webkit-text-stroke: 1px rgba(var(--line-rgb), 0.5);
	user-select: none;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px 28px;
	padding: 22px 0 30px;
	border-top: 1px solid rgba(var(--line-rgb), 0.16);
	color: var(--muted);
	font-size: var(--fs-sm);
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__bottom a {
	color: var(--muted);
}

.site-footer__bottom a:hover {
	color: var(--paper);
}

@media (max-width: 760px) {
	.site-footer__top {
		grid-template-columns: minmax(0, 1fr);
	}

	.site-footer__bottom {
		justify-content: flex-start;
	}
}

/* Premium variant: live figures, coverage, business case, path to an offer ---
   Chart colours follow one rule: the signal yellow marks what the assistant
   brings (the point of each chart), a muted blue-grey carries the context.
   Labels and values always use the text colours, never the series colours. */
.variant-premium {
	--viz-accent: var(--signal);
	--viz-context: #8ea8d6;
	--viz-grid: rgba(255, 255, 255, 0.1);
	--viz-axis: rgba(255, 255, 255, 0.34);
	--viz-surface: #041941;
}

.viz-card,
.live__panel {
	position: relative;
	padding: clamp(20px, 3vw, 36px);
	border: 1px solid rgba(var(--line-rgb), 0.26);
	border-radius: 18px;
	background: linear-gradient(180deg, rgba(4, 19, 54, 0.86), rgba(3, 13, 40, 0.9));
	box-shadow: 0 30px 80px -40px rgba(0, 4, 20, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Small figure tiles */
.tile,
.kpi {
	display: flex;
	min-width: 0;
	flex-direction: column;
	padding: 16px 18px;
	border: 1px solid rgba(var(--line-rgb), 0.16);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
}

.tile__label,
.kpi__label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--muted);
	font-size: 0.875rem;
	line-height: 1.35;
}

.tile__value,
.kpi__value {
	margin: 6px 0 0;
	font-size: clamp(1.625rem, 1.15rem + 1.3vw, 2.375rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.kpi__value {
	font-size: clamp(1.375rem, 1.05rem + 1vw, 2rem);
}

.tile__note,
.kpi__note {
	margin: 6px 0 0;
	color: var(--muted);
	font-size: var(--fs-xs);
	line-height: 1.4;
}

.tile__note {
	margin-top: auto;
	padding-top: 6px;
}

.kpi--accent {
	border-color: rgba(var(--signal-rgb), 0.55);
	background: rgba(var(--signal-rgb), 0.07);
}

.tile__value,
.kpi__value {
	overflow: hidden;
}

/* Words as a value ("the first month") sit a size below the figures. */
[data-roi-k="payback"] {
	font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
	line-height: 1.15;
}

/* Labels of one row take the same height, so the figures line up. */
@media (min-width: 1101px) {
	.live__tiles .tile__label,
	.kpis--4 .kpi__label {
		min-height: 2.7em;
		align-items: flex-start;
	}
}

.kpis {
	display: grid;
	gap: 12px;
}

.kpis--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-bottom: 28px;
}

.kpis--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Legend keys: a swatch for areas and cells, a short stroke for lines */
.key {
	display: inline-block;
	width: 12px;
	height: 12px;
	flex: none;
	border-radius: 3px;
}

.key--team {
	background: var(--viz-context);
}

.key--only,
.key--us {
	background: var(--viz-accent);
}

.key--sub {
	background: var(--viz-context);
}

.key--now {
	border-radius: 50%;
	box-shadow: inset 0 0 0 2px var(--paper);
}

.key--line {
	width: 16px;
	height: 3px;
	border-radius: 2px;
}

/* Live figures --------------------------------------------------------------- */
.live {
	padding-block: 0 clamp(72px, 9vw, 128px);
}

.live__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 24px;
	margin-bottom: 22px;
}

.live__title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: var(--fs-h3);
	font-stretch: 112.5%;
	font-weight: 700;
	line-height: 1.2;
}

.live__dot {
	width: 10px;
	height: 10px;
	flex: none;
	border-radius: 50%;
	background: var(--signal);
	box-shadow: 0 0 0 4px rgba(var(--signal-rgb), 0.22);
}

.live__text {
	flex: 1 1 380px;
	max-width: 62ch;
	margin: 0;
	color: var(--muted);
	font-size: var(--fs-sm);
	line-height: 1.5;
}

.live__pause,
.viz__toggle,
.site-footer__motion {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 6px 14px;
	border: 1px solid rgba(var(--line-rgb), 0.45);
	border-radius: 999px;
	background: rgba(5, 21, 55, 0.4);
	color: var(--paper);
	font: inherit;
	font-size: var(--fs-xs);
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s;
}

.live__pause:hover,
.viz__toggle:hover,
.site-footer__motion:hover {
	border-color: var(--line);
	background: rgba(var(--line-rgb), 0.14);
}

.live__pause {
	margin-left: auto;
}

.live__pause-icon {
	display: inline-flex;
}

.live__pause-icon .icon,
.dock__motion-icon .icon {
	width: 15px;
	height: 15px;
}

.live__pause .icon:last-child,
.live__pause[aria-pressed="true"] .icon:first-child,
.dock__motion .icon:last-child,
.dock__motion[aria-pressed="true"] .icon:first-child {
	display: none;
}

.live__pause[aria-pressed="true"] .icon:last-child,
.dock__motion[aria-pressed="true"] .icon:last-child {
	display: block;
}

.live__tiles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.spark {
	display: block;
	width: 100%;
	height: 56px;
	margin-top: 10px;
	overflow: visible;
}

.spark__line {
	fill: none;
	stroke: var(--viz-accent);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.spark__base {
	stroke: var(--viz-grid);
	stroke-width: 1;
}

.spark__dot {
	fill: var(--viz-accent);
	stroke: var(--viz-surface);
	stroke-width: 2;
}

.meter {
	display: block;
	height: 8px;
	margin: 14px 0 4px;
	overflow: hidden;
	border-radius: 4px;
	background: rgba(var(--signal-rgb), 0.18);
}

.meter__fill {
	display: block;
	width: var(--w, 0%);
	height: 100%;
	border-radius: 4px;
	background: var(--viz-accent);
	transition: width 0.6s var(--ease-out);
}

html:not(.js) .tile--speed,
html:not(.js) .tile--typo {
	display: none;
}

/* Charts: shared parts ------------------------------------------------------- */
.viz {
	position: relative;
	min-width: 0;
	margin: 0;
}

.viz__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	margin-bottom: 14px;
}

.viz__title {
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
}

.viz__sub {
	order: 5;
	flex-basis: 100%;
	color: var(--muted);
	font-size: var(--fs-xs);
	line-height: 1.4;
}

.viz__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	color: var(--muted);
	font-size: var(--fs-xs);
}

.viz__key {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.viz__toggle {
	min-height: 32px;
	margin-left: auto;
	padding: 4px 12px;
}

.viz__plot {
	position: relative;
	border-radius: 8px;
}

.viz__plot:focus-visible {
	outline: 2px solid var(--signal);
	outline-offset: 4px;
}

.viz__svg {
	display: block;
	overflow: visible;
	font-family: var(--font);
}

.viz__grid line {
	stroke: var(--viz-grid);
	stroke-width: 1;
	shape-rendering: crispEdges;
}

.viz__grid line.viz__zero {
	stroke: var(--viz-axis);
}

.viz__tick {
	fill: var(--muted);
	font-size: 11.5px;
	font-variant-numeric: tabular-nums;
}

.viz__line {
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.viz__line.is-accent {
	stroke: var(--viz-accent);
}

.viz__line.is-context {
	stroke: var(--viz-context);
}

.viz__area--up {
	fill: rgba(var(--signal-rgb), 0.12);
}

.viz__area--down {
	fill: rgba(142, 168, 214, 0.14);
}

.viz__mline {
	stroke: rgba(var(--signal-rgb), 0.5);
	stroke-width: 1;
}

.viz__mdot,
.viz__dot {
	stroke: var(--viz-surface);
	stroke-width: 2;
}

.viz__mdot,
.viz__dot.is-accent {
	fill: var(--viz-accent);
}

.viz__dot.is-context {
	fill: var(--viz-context);
}

.viz__mlabel,
.viz__end {
	fill: var(--paper);
	font-size: 12px;
	font-weight: 650;
}

.viz__cross line {
	stroke: rgba(255, 255, 255, 0.5);
	stroke-width: 1;
}

.viz__tip {
	position: absolute;
	z-index: 3;
	min-width: 150px;
	max-width: 260px;
	padding: 10px 12px;
	border: 1px solid rgba(var(--line-rgb), 0.35);
	border-radius: 10px;
	background: rgba(2, 10, 30, 0.96);
	box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.75);
	font-size: var(--fs-xs);
	line-height: 1.35;
	pointer-events: none;
}

.viz__tip p {
	margin: 0;
}

.viz__tip-title {
	margin-bottom: 6px !important;
	color: var(--muted);
}

.viz__tip-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 3px !important;
}

.viz__tip-row strong {
	color: var(--paper);
	font-size: 0.9375rem;
}

.viz__tip-name,
.viz__tip-now {
	color: var(--muted);
}

.viz__table {
	overflow-x: auto;
}

.viz__tbl {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--fs-sm);
	font-variant-numeric: tabular-nums;
}

.viz__tbl th,
.viz__tbl td {
	padding: 8px 10px;
	border-bottom: 1px solid rgba(var(--line-rgb), 0.16);
	font-weight: 400;
	text-align: right;
}

.viz__tbl thead th {
	color: var(--muted);
	font-size: var(--fs-xs);
}

.viz__tbl th:first-child {
	text-align: left;
}

html:not(.js) .viz--line,
html:not(.js) .viz__toggle {
	display: none;
}

/* Coverage: a week, hour by hour --------------------------------------------- */
.viz-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 14px 22px;
	min-width: 0;
	margin: 0 0 24px;
	padding: 0;
	border: 0;
}

.viz-controls__legend {
	float: left;
	width: 100%;
	margin: 0 0 4px;
	padding: 0;
	color: var(--paper);
	font-weight: 650;
}

.pick {
	display: grid;
	gap: 6px;
}

.pick__label {
	color: var(--muted);
	font-size: var(--fs-xs);
}

.pick__select {
	position: relative;
	display: block;
}

.pick__select::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 14px;
	width: 7px;
	height: 7px;
	border-right: 2px solid var(--line);
	border-bottom: 2px solid var(--line);
	pointer-events: none;
	transform: translateY(-70%) rotate(45deg);
}

.pick select {
	min-width: 112px;
	height: 44px;
	padding: 0 38px 0 14px;
	border: 1px solid rgba(var(--line-rgb), 0.45);
	border-radius: 10px;
	background: rgba(5, 21, 55, 0.6);
	color: var(--paper);
	font: inherit;
	font-size: var(--fs-sm);
	font-variant-numeric: tabular-nums;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.pick select:focus-visible {
	outline: 2px solid var(--signal);
	outline-offset: 2px;
}

.pick select option {
	background: var(--ink-2);
	color: var(--paper);
}

.seg {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 2px;
	padding: 3px;
	border: 1px solid rgba(var(--line-rgb), 0.45);
	border-radius: 12px;
	background: rgba(5, 21, 55, 0.6);
}

.seg__opt {
	position: relative;
}

.seg__opt input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.seg__opt span {
	display: block;
	padding: 9px 14px;
	border-radius: 9px;
	color: var(--muted);
	font-size: var(--fs-sm);
	line-height: 1.2;
	transition: background-color 0.2s, color 0.2s;
}

.seg__opt input:checked + span {
	background: var(--signal);
	color: var(--ink);
	font-weight: 650;
}

.seg__opt input:focus-visible + span {
	outline: 2px solid var(--signal);
	outline-offset: 2px;
}

.heat {
	position: relative;
}

.heat__grid {
	display: grid;
	grid-template-columns: 48px repeat(24, minmax(0, 1fr));
	gap: 3px;
	align-items: center;
}

.heat__day {
	padding-right: 6px;
	overflow: hidden;
	color: var(--muted);
	font-size: var(--fs-xs);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.heat__cell {
	position: relative;
	height: 22px;
	border-radius: 4px;
	background: var(--viz-context);
	opacity: 0.88;
}

.heat__cell.is-team {
	background: var(--viz-context);
	opacity: 0.6;
}

.heat__cell.is-only {
	background: var(--viz-accent);
}

.heat__cell.is-now {
	z-index: 1;
	opacity: 1;
	box-shadow: 0 0 0 2px var(--viz-surface), 0 0 0 4px var(--paper);
}

.heat__axis {
	position: relative;
	height: 22px;
	margin: 8px 0 0 51px;
	color: var(--muted);
	font-size: var(--fs-xs);
	font-variant-numeric: tabular-nums;
}

.heat__axis span {
	position: absolute;
	top: 0;
	left: calc(var(--t) / 24 * 100%);
	transform: translateX(-50%);
}

.heat__axis span:first-child {
	transform: none;
}

.heat__axis span:last-child {
	transform: translateX(-100%);
}

.heat__grid.is-waiting .heat__cell {
	opacity: 0;
	transform: scale(0.4);
}

.heat__grid.is-in .heat__cell {
	transition: opacity 0.45s, transform 0.55s var(--ease-out);
	transition-delay: calc(var(--h) * 32ms + var(--d) * 18ms);
}

@media (prefers-reduced-motion: no-preference) {
	.has-effects .heat__cell.is-now::after {
		content: "";
		position: absolute;
		inset: -4px;
		border-radius: 6px;
		box-shadow: 0 0 0 2px var(--paper);
		animation: nowPulse 2.4s var(--ease-out) infinite;
	}

	.has-effects .live__dot {
		animation: livePulse 2s ease-in-out infinite;
	}
}

@keyframes nowPulse {
	0% {
		opacity: 0.8;
		transform: scale(1);
	}

	100% {
		opacity: 0;
		transform: scale(1.6);
	}
}

@keyframes livePulse {
	50% {
		box-shadow: 0 0 0 8px rgba(var(--signal-rgb), 0);
	}
}

/* Business case --------------------------------------------------------------- */
.roi__card {
	display: grid;
	grid-template-columns: minmax(250px, 0.78fr) minmax(0, 2.2fr);
	gap: 28px clamp(28px, 3.5vw, 48px);
}

.roi__controls {
	grid-row: 1 / span 4;
}

.roi__controls .slider:first-child {
	margin-top: 0;
}

.roi__basis,
.roi__note {
	margin: 18px 0 0;
	color: var(--muted);
	font-size: var(--fs-xs);
	line-height: 1.45;
}

.roi__note {
	max-width: 80ch;
	margin: 0;
}

.roi__charts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: auto auto auto;
	gap: 0 28px;
}

/* The two charts share rows, so their plots line up whatever the title length. */
.roi__charts .viz {
	display: grid;
	grid-row: span 3;
	grid-template-rows: subgrid;
	align-content: start;
}

.roi__charts .viz__head {
	align-items: flex-start;
	align-content: flex-start;
}

.roi__charts .viz__legend {
	order: 6;
	flex-basis: 100%;
}

.roi__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* The quote request: what the visitor chose on the way ----------------------- */
.qsum {
	margin: 28px 0 0;
	padding: 18px 20px;
	border: 1px solid rgba(var(--signal-rgb), 0.5);
	border-radius: 12px;
	background: rgba(var(--signal-rgb), 0.07);
}

.qsum__title {
	margin: 0 0 10px;
	font-weight: 700;
}

.qsum__list {
	display: grid;
	gap: 10px;
	margin: 0;
}

.qsum__row {
	display: grid;
	gap: 2px;
}

.qsum__row dt {
	color: var(--muted);
	font-size: var(--fs-xs);
}

.qsum__row dd {
	margin: 0;
	font-size: var(--fs-sm);
}

.qsum__note {
	margin: 12px 0 0;
	color: var(--muted);
	font-size: var(--fs-xs);
}

/* The dock: the path to an offer ---------------------------------------------- */
.dock {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 59;
	max-width: calc(100vw - 40px);
	visibility: hidden;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.35s, transform 0.45s var(--ease-out), visibility 0s 0.45s;
}

.dock.is-visible {
	visibility: visible;
	opacity: 1;
	transform: none;
	transition-delay: 0s;
}

.chat-open .dock {
	display: none;
}

.dock__inner {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 8px 8px 8px 9px;
	border: 1px solid rgba(var(--line-rgb), 0.5);
	border-radius: 999px;
	background: rgba(8, 32, 76, 0.95);
	box-shadow: 0 16px 44px -14px rgba(0, 0, 0, 0.8), 0 0 30px -12px rgba(var(--line-rgb), 0.55);
}

.dock__ring {
	position: relative;
	width: 40px;
	height: 40px;
	flex: none;
}

.dock__ring svg {
	transform: rotate(-90deg);
}

.dock__track,
.dock__arc {
	fill: none;
	stroke-width: 3.5;
}

.dock__track {
	stroke: rgba(var(--line-rgb), 0.25);
}

.dock__arc {
	stroke: var(--signal);
	stroke-dasharray: 0 100;
	stroke-linecap: round;
	transition: stroke-dasharray 0.7s var(--ease-out);
}

.dock__count {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 0.6875rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.dock__text {
	display: grid;
	min-width: 0;
	line-height: 1.3;
}

.dock__title {
	color: var(--muted);
	font-size: 0.75rem;
}

.dock__next {
	overflow: hidden;
	color: var(--paper);
	font-size: var(--fs-sm);
	font-weight: 650;
	text-decoration: none;
	white-space: nowrap;
	text-overflow: ellipsis;
}

a.dock__next:hover {
	text-decoration: underline;
}

.dock__steps {
	display: none;
}

.dock__cta {
	flex: none;
	white-space: nowrap;
}

.dock__motion {
	display: grid;
	width: 36px;
	height: 36px;
	flex: none;
	place-items: center;
	padding: 0;
	border: 1px solid rgba(var(--line-rgb), 0.35);
	border-radius: 50%;
	background: transparent;
	color: var(--paper);
	cursor: pointer;
}

.dock__motion:hover {
	border-color: var(--line);
}

.dock.is-complete .dock__cta {
	display: none;
}

/* The offer in the chat -------------------------------------------------------- */
.offer-card {
	display: grid;
	gap: 10px;
	margin-top: 10px;
}

.offer-card__title {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 700;
}

.offer-card__tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
}

.offer-card__tile {
	display: grid;
	align-content: start;
	gap: 2px;
	min-width: 0;
	padding: 9px 10px;
	border-radius: 10px;
	background: #fff;
}

.offer-card__tile.is-accent {
	box-shadow: inset 0 0 0 2px var(--signal);
}

.offer-card__value {
	font-size: 1.0625rem;
	line-height: 1.2;
}

.offer-card__note {
	color: var(--app-sub);
	font-size: 0.72rem;
	line-height: 1.3;
}

.offer-card__notes {
	margin: 0;
	padding-left: 18px;
	font-size: 0.8125rem;
}

.offer-card__bars {
	margin-top: 0;
	padding: 9px 10px;
	border-radius: 10px;
	background: #fff;
}

.mini-bars__title {
	margin: 0 0 2px;
	color: var(--app-sub);
	font-size: 0.72rem;
}

.app .mini-bar--team .mini-bar__fill {
	background: #8792ab;
}

.mini-form__opt {
	color: var(--app-faint);
	font-weight: 400;
}

/* Premium: responsive -------------------------------------------------------- */
@media (max-width: 1100px) {
	.live__tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.roi__card {
		grid-template-columns: minmax(0, 1fr);
	}

	.roi__controls {
		display: grid;
		grid-row: auto;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 32px;
	}

	.roi__controls .slider:nth-child(2) {
		margin-top: 0;
	}

	.roi__basis {
		grid-column: 1 / -1;
	}
}

@media (max-width: 760px) {
	.kpis--3,
	.kpis--4,
	.roi__charts {
		grid-template-columns: minmax(0, 1fr);
	}

	.roi__charts {
		gap: 28px;
	}

	.roi__charts .viz {
		display: block;
	}

	.kpis--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.roi__controls {
		grid-template-columns: minmax(0, 1fr);
	}

	.roi__controls .slider:nth-child(2) {
		margin-top: 22px;
	}

	.heat__grid {
		grid-template-columns: 34px repeat(24, minmax(0, 1fr));
		gap: 2px;
	}

	.heat__cell {
		height: 16px;
		border-radius: 2px;
	}

	.heat__axis {
		margin-left: 36px;
	}

	.live__pause {
		margin-left: 0;
	}
}

@media (max-width: 520px) {
	.seg {
		display: grid;
		width: 100%;
		grid-template-columns: minmax(0, 1fr);
	}

	.pick {
		flex: 1 1 120px;
	}

	.pick select {
		width: 100%;
	}
}

@media (max-width: 600px) {
	.dock {
		left: 12px;
		right: 92px;
		bottom: 14px;
	}

	.dock__inner {
		gap: 8px;
		justify-content: space-between;
	}

	.dock__text,
	.dock__motion {
		display: none;
	}

	.live__tiles {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Floating assistant -------------------------------------------------------- */
.assistant {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 60;
}

.assistant__launcher {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 58px;
	padding: 0 22px 0 14px;
	border: 1px solid rgba(var(--line-rgb), 0.55);
	border-radius: 999px;
	background: rgba(8, 32, 76, 0.94);
	box-shadow: 0 16px 44px -14px rgba(0, 0, 0, 0.8), 0 0 30px -10px rgba(var(--line-rgb), 0.6);
	color: var(--paper);
	font-weight: 600;
	cursor: pointer;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transition: transform 0.4s var(--ease-out), opacity 0.3s, border-color 0.2s;
}

.assistant__launcher:hover {
	border-color: var(--line);
}

.assistant__mark {
	width: 32px;
	height: 32px;
	flex: none;
	color: var(--line);
}

.assistant__hint {
	max-width: 0;
	overflow: hidden;
	opacity: 0;
	white-space: nowrap;
	transition: max-width 0.45s var(--ease-out), opacity 0.3s;
}

.assistant__launcher {
	gap: 0;
	padding: 0 12px;
}

.assistant.is-expanded .assistant__launcher,
.assistant__launcher:hover,
.assistant__launcher:focus-visible {
	gap: 10px;
	padding: 0 22px 0 14px;
}

.assistant.is-expanded .assistant__hint,
.assistant__launcher:hover .assistant__hint,
.assistant__launcher:focus-visible .assistant__hint {
	max-width: 220px;
	opacity: 1;
}

.assistant.is-hidden .assistant__launcher {
	opacity: 0;
	pointer-events: none;
	transform: translateY(140%);
}

.assistant.is-open .assistant__launcher {
	border-color: var(--signal);
}

.assistant__panel {
	position: fixed;
	right: 20px;
	bottom: 92px;
	width: min(400px, calc(100vw - 40px), calc((100vh - 116px) * 0.5792));
	height: auto;
	aspect-ratio: 395 / 682;
	overflow: hidden;
	border: 0;
	border-radius: 24px;
	background: #f1f4fa;
	box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(var(--line-rgb), 0.4), 0 0 70px -24px rgba(var(--line-rgb), 0.6);
	transform-origin: bottom right;
	animation: panelIn 0.4s var(--ease-out) both;
	transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out);
}

.assistant__panel.is-max {
	width: min(560px, calc(100vw - 40px));
	height: calc(100vh - 116px);
	aspect-ratio: auto;
}

.assistant__panel[hidden] {
	display: none;
}

@media (min-width: 601px) and (max-height: 829px) {
	.assistant.is-open .assistant__panel {
		bottom: 16px;
		width: min(400px, calc(100vw - 40px), calc((100vh - 32px) * 0.5792));
	}

	.assistant.is-open .assistant__launcher {
		visibility: hidden;
	}
}

@media (max-width: 600px) {
	.assistant {
		right: 14px;
		bottom: 14px;
	}

	.assistant .assistant__launcher,
	.assistant.is-expanded .assistant__launcher,
	.assistant .assistant__launcher:hover {
		width: 58px;
		gap: 0;
		padding: 0;
		justify-content: center;
	}

	.assistant__hint {
		display: none;
	}

	.assistant__panel {
		inset: 0;
		width: auto;
		height: 100%;
		height: 100dvh;
		aspect-ratio: auto;
		border: 0;
		border-radius: 0;
	}
}

/* Inner pages --------------------------------------------------------------- */
.page-shell {
	min-height: 70vh;
	padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(64px, 8vw, 112px);
	background:
		linear-gradient(var(--grid-b) 1px, transparent 1px) 0 0 / 24px 24px,
		linear-gradient(90deg, var(--grid-b) 1px, transparent 1px) 0 0 / 24px 24px;
	background-attachment: fixed;
}

.page-head {
	margin-bottom: 40px;
}

.page-title {
	margin: 0;
	font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
	font-stretch: 112.5%;
	font-weight: 720;
	letter-spacing: -0.015em;
	line-height: 1.06;
}

.page-intro {
	margin-top: 16px;
	color: var(--muted);
	font-size: var(--fs-lead);
}

.entry-content {
	font-size: var(--fs-base);
	line-height: 1.7;
}

.entry-content > * {
	margin-block: 0 1.2em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin: 1.9em 0 0.6em;
	font-stretch: 105%;
	font-weight: 680;
	line-height: 1.2;
}

.entry-content h2 {
	font-size: 1.75rem;
}

.entry-content h3 {
	font-size: 1.375rem;
}

.entry-content blockquote {
	margin-inline: 0;
	padding: 0.2em 0 0.2em 1.2em;
	border-left: 3px solid var(--signal);
	font-size: 1.25rem;
}

.entry-content pre,
.entry-content code {
	font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	font-size: 0.9em;
}

.entry-content pre {
	padding: 16px;
	overflow-x: auto;
	border: 1px solid rgba(var(--line-rgb), 0.25);
	border-radius: 8px;
	background: var(--panel-2);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 8px 10px;
	border: 1px solid rgba(var(--line-rgb), 0.25);
	text-align: left;
}

.entry-content hr {
	border: 0;
	border-top: 1px solid rgba(var(--line-rgb), 0.25);
}

.entry-content figure {
	margin-inline: 0;
}

.entry-content figcaption,
.wp-caption-text {
	margin-top: 8px;
	color: var(--muted);
	font-size: var(--fs-sm);
}

.alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

.aligncenter {
	margin-inline: auto;
}

.alignwide {
	margin-inline: min(-80px, calc((800px - 100vw) / 4));
	max-width: none;
}

.alignfull {
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}

.entry-media {
	margin: 0 0 32px;
}

.entry-media img {
	border-radius: 12px;
}

.entry-footer {
	margin-top: 40px;
}

.entry-tags a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 3px 12px;
	border: 1px solid rgba(var(--line-rgb), 0.35);
	border-radius: 999px;
	font-size: var(--fs-xs);
	text-decoration: none;
}

.entry-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin: 56px 0;
	padding: 24px 26px;
	border: 1px solid rgba(var(--signal-rgb), 0.5);
	border-radius: 14px;
	background: rgba(var(--signal-rgb), 0.06);
}

.entry-cta p {
	max-width: 40ch;
	margin: 0;
	font-weight: 600;
}

.post-card {
	display: grid;
	gap: 16px;
	padding: 30px 0;
	border-top: 1px solid rgba(var(--line-rgb), 0.16);
}

.post-card__media img {
	border-radius: 12px;
}

.post-card__date {
	margin: 0;
	color: var(--line);
	font-size: var(--fs-xs);
	font-stretch: 87.5%;
	font-weight: 600;
}

.post-card__title {
	margin: 4px 0 8px;
	font-size: 1.75rem;
	font-stretch: 105%;
	font-weight: 700;
	line-height: 1.2;
}

.post-card__title a {
	color: var(--paper);
	text-decoration: none;
}

.post-card__title a:hover {
	color: var(--signal);
}

.post-card__excerpt p {
	margin: 0;
	color: var(--muted);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 32px;
}

.nav-links a,
.nav-links span {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid rgba(var(--line-rgb), 0.3);
	border-radius: var(--r-btn);
	text-decoration: none;
}

.nav-links .current {
	border-color: var(--signal);
	color: var(--signal);
}

.post-navigation .nav-links {
	justify-content: space-between;
}

.post-navigation a {
	display: block;
	padding: 12px 16px;
	color: var(--paper);
}

.nav-sub {
	display: block;
	color: var(--muted);
	font-size: var(--fs-xs);
}

.empty {
	padding: 32px 0;
	color: var(--muted);
}

.search-form {
	display: flex;
	gap: 10px;
	max-width: 520px;
	margin-top: 32px;
}

.search-form__input {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding: 0 14px;
	border: 1px solid rgba(var(--line-rgb), 0.38);
	border-radius: 8px;
	background: var(--panel-2);
	color: var(--paper);
}

.search-form__input:focus {
	outline: none;
	border-color: var(--signal);
}

.err-code {
	margin: 0 0 18px;
	color: transparent;
	font-family: var(--stencil);
	font-size: clamp(6rem, 20vw, 13rem);
	line-height: 0.85;
	-webkit-text-stroke: 2px var(--line);
}

.err-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.comments {
	margin-top: 56px;
}

.comments__list {
	padding-left: 0;
	list-style: none;
}

.comments__list .children {
	list-style: none;
}

.comment-body {
	margin-bottom: 20px;
	padding: 18px;
	border: 1px solid rgba(var(--line-rgb), 0.2);
	border-radius: 10px;
}

.comment-form input:not([type="checkbox"]):not([type="submit"]),
.comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid rgba(var(--line-rgb), 0.38);
	border-radius: 8px;
	background: var(--panel-2);
	color: var(--paper);
}

.sticky,
.bypostauthor,
.gallery-caption {
	display: block;
}

/* Keyframes ----------------------------------------------------------------- */
@keyframes caret {
	50% {
		opacity: 0;
	}
}

@keyframes msgIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

@keyframes typing {
	0%,
	60%,
	100% {
		opacity: 0.3;
		transform: translateY(0);
	}

	30% {
		opacity: 1;
		transform: translateY(-3px);
	}
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
}

@keyframes fadeOut {
	to {
		opacity: 0;
		visibility: hidden;
	}
}

@keyframes panelIn {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.97);
	}
}

@keyframes stamp {
	from {
		opacity: 0;
		transform: rotate(-7deg) scale(2.4);
	}

	70% {
		opacity: 1;
		transform: rotate(-7deg) scale(0.94);
	}
}

@keyframes brandWipe {
	from {
		clip-path: circle(0 at var(--vx, 50%) var(--vy, 100%));
	}

	to {
		clip-path: circle(150% at var(--vx, 50%) var(--vy, 100%));
	}
}

/* Reduced motion ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		transition-delay: 0s !important;
	}
}

/* Print --------------------------------------------------------------------- */
@media print {
	.dock,
	.fx,
	.live__pause,
	.viz__toggle {
		display: none !important;
	}

	.site-header,
	.assistant,
	.hero__stage {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}
}
