/* ==========================================================================
   Argelit Autopark — promo theme.
   Tokens are ported from the product (frontend/src/styles.css): a dark-only navy canvas,
   cyan as the single action colour, lime for live/success, glass cards with white-alpha
   hairlines, Manrope for headings and Inter for text.
   ========================================================================== */

/* ---- Fonts (self-hosted, SIL OFL) ---- */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/inter-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/inter-latin.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: "Manrope";
	font-style: normal;
	font-weight: 500 800;
	font-display: swap;
	src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 500 800;
	font-display: swap;
	src: url("../fonts/manrope-latin.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 {
	color-scheme: dark;

	--background: #070e16;
	--foreground: #f2f6f8;
	--card: #0f1923;
	--elevated: #17232f;
	--muted: #16202b;
	--muted-foreground: #95a0ab;
	--sidebar: #0b151f;

	--hairline: rgba(255, 255, 255, 0.08);
	--border: rgba(255, 255, 255, 0.1);
	--input: rgba(255, 255, 255, 0.12);

	--cyan: #00dfe8;
	--cyan-rgb: 0, 223, 232;
	--lime: #b5ed60;
	--lime-rgb: 181, 237, 96;
	--amber: #fc9f30;
	--amber-rgb: 252, 159, 48;
	--danger: #fc4447;
	--danger-rgb: 252, 68, 71;
	--mint: #cbfaf0;
	--on-accent: #070e16;

	--radius-sm: 4px;
	--radius-md: 6px;
	--radius-lg: 8px;
	--radius-xl: 12px;
	--radius-2xl: 16px;
	--radius-3xl: 20px;

	--shadow-glow: 0 0 0 1px rgba(var(--cyan-rgb), 0.4), 0 10px 40px -10px rgba(var(--cyan-rgb), 0.5);
	--shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

	--font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Manrope", "Inter", ui-sans-serif, system-ui, sans-serif;

	--container: 1280px;
	--gutter: 16px;
	--section-gap: 80px;
	--header-h: 64px;
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@supports (color: oklch(0 0 0)) {
	:root {
		--background: oklch(0.16 0.02 250);
		--foreground: oklch(0.97 0.005 240);
		--card: oklch(0.21 0.025 250);
		--elevated: oklch(0.25 0.028 250);
		--muted: oklch(0.24 0.025 250);
		--muted-foreground: oklch(0.7 0.02 250);
		--cyan: oklch(0.82 0.14 200);
		--lime: oklch(0.88 0.18 128);
		--amber: oklch(0.78 0.16 65);
		--danger: oklch(0.66 0.22 25);
		--mint: oklch(0.95 0.05 180);
	}
}

@media (min-width: 768px) {
	:root {
		--gutter: 24px;
		--section-gap: 112px;
		--header-h: 70px;
	}
}

/* ---- Base ---- */
*,
*::before,
*::after {
	box-sizing: border-box;
	border-color: var(--border);
}

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

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	min-height: 100vh;
	background-color: var(--background);
	background-image:
		radial-gradient(1200px 800px at 85% -10%, rgba(var(--cyan-rgb), 0.08), transparent 60%),
		radial-gradient(900px 700px at -10% 110%, rgba(var(--lime-rgb), 0.05), transparent 60%);
	background-attachment: fixed;
	color: var(--foreground);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
	text-wrap: balance;
}

p,
ul,
ol,
dl,
dd,
figure {
	margin: 0;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

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

img {
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
}

::selection {
	background: rgba(var(--cyan-rgb), 0.3);
	color: var(--foreground);
}

:focus-visible {
	outline: 2px solid var(--cyan);
	outline-offset: 2px;
	border-radius: var(--radius-md);
}

code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
	padding: 1px 6px;
	border-radius: var(--radius-sm);
	background: var(--elevated);
}

/* ---- Utilities ---- */
.ap-container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.ap-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ap-skip {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: var(--radius-md);
	background: var(--cyan);
	color: var(--on-accent);
	font-weight: 600;
}

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

.ap-grad {
	background: linear-gradient(90deg, var(--cyan), var(--mint));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.ap-icon {
	width: 16px;
	height: 16px;
	flex: none;
}

.ap-flip {
	transform: scaleX(-1);
}

.ap-dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: var(--muted-foreground);
}

.ap-dot--lime { background: var(--lime); }
.ap-dot--cyan { background: var(--cyan); }
.ap-dot--amber { background: var(--amber); }

.ap-note {
	padding: 12px 14px;
	border: 1px solid rgba(var(--amber-rgb), 0.3);
	border-radius: var(--radius-md);
	background: rgba(var(--amber-rgb), 0.1);
	color: var(--amber);
	font-size: 14px;
}

/* ---- Buttons ---- */
.ap-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 40px;
	padding: 9px 16px;
	border: 1px solid transparent;
	border-radius: var(--radius-md);
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: filter 0.2s, border-color 0.2s, background-color 0.2s, color 0.2s;
}

.ap-btn--lg {
	min-height: 46px;
	padding: 12px 20px;
}

.ap-btn--primary {
	background: var(--cyan);
	color: var(--on-accent);
	font-weight: 600;
}

.ap-btn--primary:hover {
	filter: brightness(1.1);
}

.ap-btn--glow {
	box-shadow: var(--shadow-glow);
}

.ap-btn--secondary {
	border-color: var(--hairline);
	background: var(--elevated);
	color: var(--foreground);
}

.ap-btn--secondary:hover {
	border-color: rgba(var(--cyan-rgb), 0.5);
}

.ap-btn--outline {
	border-color: rgba(var(--cyan-rgb), 0.4);
	background: rgba(var(--cyan-rgb), 0.1);
	color: var(--cyan);
	font-weight: 600;
}

.ap-btn--outline:hover {
	background: rgba(var(--cyan-rgb), 0.16);
}

.ap-btn--ghost,
.ap-btn--link {
	color: var(--muted-foreground);
}

.ap-btn--ghost:hover,
.ap-btn--link:hover {
	color: var(--foreground);
}

.ap-btn--link {
	padding-inline: 8px;
}

.ap-round {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--hairline);
	border-radius: 999px;
	background: rgba(7, 14, 22, 0.6);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	cursor: pointer;
	transition: border-color 0.2s;
}

.ap-round:hover {
	border-color: rgba(var(--cyan-rgb), 0.5);
}

.ap-round:disabled {
	opacity: 0.4;
	cursor: default;
}

.ap-round:disabled:hover {
	border-color: var(--hairline);
}

.ap-round .ap-icon {
	width: 18px;
	height: 18px;
}

/* ---- Brand ---- */
.ap-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.ap-brand__tile {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	flex: none;
	border-radius: var(--radius-md);
	background: linear-gradient(135deg, var(--cyan), var(--lime));
	color: var(--on-accent);
	font-weight: 700;
	font-size: 17px;
}

.ap-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	min-width: 0;
}

.ap-brand__name {
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.ap-brand__tag {
	font-size: 11px;
	color: var(--muted-foreground);
	white-space: nowrap;
}

/* ---- Header ---- */
.ap-header {
	position: sticky;
	top: 0;
	z-index: 40;
	border-bottom: 1px solid var(--hairline);
	background: rgba(7, 14, 22, 0.72);
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
}

.ap-header.is-scrolled {
	background: rgba(7, 14, 22, 0.88);
	box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.8);
}

.admin-bar .ap-header {
	top: var(--wp-admin--admin-bar--height, 0px);
}

html:has(body.admin-bar) {
	scroll-padding-top: calc(var(--header-h) + 16px + var(--wp-admin--admin-bar--height, 0px));
}

@media (max-width: 600px) {
	.admin-bar .ap-header {
		top: 0;
	}
}

.ap-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: var(--header-h);
}

.ap-nav {
	display: none;
}

.ap-nav__list {
	display: flex;
	gap: 2px;
}

.ap-nav__link {
	display: block;
	padding: 8px 12px;
	border-radius: var(--radius-md);
	color: var(--muted-foreground);
	font-size: 14px;
	transition: color 0.2s, background-color 0.2s;
}

.ap-nav__link:hover {
	color: var(--foreground);
}

.ap-nav__link.is-active {
	background: var(--elevated);
	color: var(--foreground);
}

.ap-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ap-header__demo,
.ap-header__cta {
	display: none;
}

.ap-burger {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-md);
	background: transparent;
	cursor: pointer;
}

.ap-burger .ap-icon {
	width: 20px;
	height: 20px;
}

.ap-burger__close,
.ap-burger[aria-expanded="true"] .ap-burger__open {
	display: none;
}

.ap-burger[aria-expanded="true"] .ap-burger__close {
	display: block;
}

.ap-mobile {
	max-height: calc(100vh - var(--header-h));
	max-height: calc(100dvh - var(--header-h));
	overflow-y: auto;
	overscroll-behavior: contain;
	border-top: 1px solid var(--hairline);
	padding-block: 12px 20px;
}

/* Without JavaScript the burger cannot open the menu. */
.no-js .ap-burger {
	display: none;
}

.ap-mobile__link {
	display: block;
	padding: 12px 4px;
	border-bottom: 1px solid var(--hairline);
	font-size: 16px;
}

.ap-mobile__actions {
	display: grid;
	gap: 10px;
	margin-top: 16px;
}

@media (min-width: 560px) {
	.ap-header__cta {
		display: inline-flex;
	}
}

@media (min-width: 1100px) {
	.ap-nav,
	.ap-header__demo {
		display: block;
	}

	.ap-header__demo {
		display: inline-flex;
	}

	.ap-burger,
	.ap-mobile {
		display: none !important;
	}
}

/* ---- Sections ---- */
.ap-main {
	display: block;
}

.ap-section {
	position: relative;
	padding-top: var(--section-gap);
}

.ap-head {
	max-width: 720px;
	margin-bottom: 40px;
}

.ap-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--cyan);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ap-eyebrow__num {
	display: inline-grid;
	place-items: center;
	min-width: 30px;
	height: 22px;
	padding-inline: 6px;
	border: 1px solid rgba(var(--cyan-rgb), 0.3);
	border-radius: var(--radius-md);
	background: rgba(var(--cyan-rgb), 0.08);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
}

.ap-head__title {
	margin-top: 14px;
	font-size: clamp(28px, 4.2vw, 40px);
	line-height: 1.15;
}

.ap-head__lead {
	margin-top: 14px;
	color: var(--muted-foreground);
	font-size: 17px;
	line-height: 1.6;
}

/* ---- Cards and icon tiles ---- */
.ap-card {
	position: relative;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-xl);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.ap-card--hover {
	transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.ap-card--hover:hover {
	border-color: rgba(var(--cyan-rgb), 0.4);
	transform: translateY(-4px);
}

.ap-tile {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	flex: none;
	border-radius: var(--radius-md);
	background: rgba(var(--cyan-rgb), 0.1);
	color: var(--cyan);
}

.ap-tile .ap-icon {
	width: 20px;
	height: 20px;
}

.ap-tile--sm {
	width: 38px;
	height: 38px;
}

.ap-tile--sm .ap-icon {
	width: 18px;
	height: 18px;
}

.ap-tile--lime {
	background: rgba(var(--lime-rgb), 0.1);
	color: var(--lime);
}

.ap-checks {
	display: grid;
	gap: 10px;
}

.ap-checks li {
	display: flex;
	gap: 10px;
	font-size: 15px;
}

.ap-checks .ap-icon {
	margin-top: 3px;
	color: var(--lime);
}

/* ---- Devices: browser and phone frames for screenshots ---- */
.ap-device {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--hairline);
	background: var(--card);
	box-shadow: var(--shadow-2xl);
}

.ap-device img {
	width: 100%;
}

.ap-device--browser {
	border-radius: var(--radius-2xl);
}

.ap-device__bar {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	padding-inline: 12px;
	border-bottom: 1px solid var(--hairline);
	background: rgba(11, 21, 31, 0.9);
}

.ap-device__bar i {
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
}

.ap-device__bar span {
	overflow: hidden;
	margin-left: 10px;
	padding: 2px 10px;
	border-radius: var(--radius-sm);
	background: rgba(255, 255, 255, 0.05);
	color: var(--muted-foreground);
	font-size: 11px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.ap-device--phone {
	border: 6px solid #1b2835;
	border-radius: 30px;
	box-shadow: var(--shadow-2xl), 0 0 0 1px var(--hairline);
}

/* ---- Hero ---- */
.ap-hero {
	position: relative;
	overflow: hidden;
}

.ap-hero__grid-lines,
.ap-cta__grid-lines {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 44px 44px;
	pointer-events: none;
}

.ap-hero__grid-lines {
	opacity: 0.35;
	-webkit-mask-image: linear-gradient(180deg, #000 40%, transparent);
	mask-image: linear-gradient(180deg, #000 40%, transparent);
}

.ap-hero__inner {
	position: relative;
	display: grid;
	gap: 48px;
	padding-top: 48px;
	padding-bottom: 24px;
}

.ap-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px;
	border: 1px solid var(--hairline);
	border-radius: 999px;
	background: var(--elevated);
	color: var(--muted-foreground);
	font-size: 12px;
}

.ap-pill a {
	color: var(--foreground);
	text-decoration: underline;
	text-decoration-color: rgba(var(--cyan-rgb), 0.5);
	text-underline-offset: 3px;
}

.ap-pill__dot {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: var(--lime);
	box-shadow: 0 0 0 0 rgba(var(--lime-rgb), 0.6);
	animation: ap-pulse 2s infinite;
}

@keyframes ap-pulse {
	0% { box-shadow: 0 0 0 0 rgba(var(--lime-rgb), 0.55); }
	70% { box-shadow: 0 0 0 7px rgba(var(--lime-rgb), 0); }
	100% { box-shadow: 0 0 0 0 rgba(var(--lime-rgb), 0); }
}

.ap-hero__title {
	margin-top: 22px;
	font-size: clamp(36px, 6.4vw, 62px);
	line-height: 1.05;
}

.ap-hero__lead {
	max-width: 600px;
	margin-top: 22px;
	color: var(--muted-foreground);
	font-size: 18px;
	line-height: 1.6;
}

.ap-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 24px;
}

.ap-chips li {
	padding: 6px 12px;
	border: 1px solid var(--hairline);
	border-radius: 999px;
	background: rgba(23, 35, 47, 0.5);
	color: var(--muted-foreground);
	font-size: 12px;
}

.ap-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 32px;
}

.ap-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	max-width: 560px;
	margin-top: 32px;
}

.ap-fact {
	padding: 12px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-lg);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.ap-fact dt {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.ap-fact dd {
	margin-top: 2px;
	color: var(--muted-foreground);
	font-size: 11px;
	line-height: 1.4;
}

.ap-hero__visual {
	position: relative;
	padding-bottom: 28px;
}

@media (min-width: 1024px) {
	.ap-hero__screen {
		transform: perspective(1800px) rotateY(-6deg) rotateX(2deg);
		transform-origin: right center;
	}
}

.ap-hero__phone {
	position: absolute;
	left: -6px;
	bottom: 0;
	width: 26%;
	min-width: 104px;
	max-width: 170px;
}

.ap-hero__photo {
	overflow: hidden;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-2xl);
}

.ap-hero__status {
	position: absolute;
	right: 12px;
	bottom: 6px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	padding: 9px 12px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-lg);
	background: rgba(7, 14, 22, 0.78);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font-size: 12px;
}

.ap-hero__status span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ap-hero__status span:first-child {
	color: var(--muted-foreground);
}

@media (min-width: 1024px) {
	.ap-hero__inner {
		grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
		align-items: center;
		gap: 40px;
		padding-top: 72px;
		padding-bottom: 32px;
	}

}

@media (max-width: 479px) {
	.ap-hero__status span:first-child {
		display: none;
	}

	.ap-facts {
		gap: 8px;
	}

	.ap-fact {
		padding: 10px;
	}

	.ap-fact dt {
		font-size: 17px;
	}
}

/* ---- 01 Problems ---- */
.ap-problems {
	display: grid;
	gap: 16px;
}

.ap-problem {
	padding: 24px;
}

.ap-problem__pain {
	margin-top: 18px;
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.35;
}

.ap-problem__fix {
	display: flex;
	gap: 10px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--hairline);
	color: var(--muted-foreground);
	font-size: 14px;
	line-height: 1.55;
}

.ap-problem__check {
	margin-top: 2px;
	color: var(--lime);
}

@media (min-width: 640px) {
	.ap-problems {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.ap-problems {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
	}
}

/* ---- 02 Roles (tabs) ---- */
.ap-tabs__list {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	width: max-content;
	max-width: 100%;
	margin-bottom: 24px;
	padding: 4px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-lg);
	background: var(--muted);
	scrollbar-width: none;
}

.ap-tabs__list::-webkit-scrollbar {
	display: none;
}

.ap-tabs__tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border: 1px solid transparent;
	border-radius: var(--radius-md);
	background: transparent;
	color: var(--muted-foreground);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.2s, background-color 0.2s;
}

.ap-tabs__tab:hover {
	color: var(--foreground);
}

.ap-tabs__tab[aria-selected="true"] {
	border-color: rgba(var(--cyan-rgb), 0.3);
	background: rgba(var(--cyan-rgb), 0.1);
	color: var(--foreground);
}

.ap-tabs__tab[aria-selected="true"] .ap-icon {
	color: var(--cyan);
}

/* Without JavaScript every panel is shown one after another, so the tab bar is not needed. */
.no-js .ap-tabs__list {
	display: none;
}

.js .ap-tabs__panel[data-inactive] {
	display: none;
}

.ap-role {
	display: grid;
	gap: 32px;
	align-items: center;
	padding: 24px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-2xl);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
}

.no-js .ap-role + .ap-role {
	margin-top: 20px;
}

.ap-role__kicker {
	color: var(--cyan);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ap-role__title {
	margin-top: 10px;
	font-size: clamp(22px, 2.6vw, 28px);
}

.ap-role__text {
	margin: 14px 0 22px;
	color: var(--muted-foreground);
	line-height: 1.6;
}

.ap-role--phone .ap-role__screen {
	width: min(300px, 80%);
	margin-inline: auto;
}

@media (min-width: 1024px) {
	.ap-role {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 48px;
		padding: 40px;
	}

	.ap-role--phone {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	}
}

/* ---- 03 Modules ---- */
.ap-modules {
	display: grid;
	gap: 16px;
}

.ap-module {
	display: flex;
	flex-direction: column;
	padding: 24px;
}

.ap-module__title {
	margin-top: 18px;
	font-size: 18px;
}

.ap-module__text {
	margin-top: 8px;
	color: var(--muted-foreground);
	font-size: 14px;
	line-height: 1.55;
}

.ap-module__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: auto;
	padding-top: 16px;
}

.ap-module__tags li {
	padding: 3px 8px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-md);
	background: rgba(23, 35, 47, 0.6);
	color: var(--muted-foreground);
	font-size: 12px;
}

@media (min-width: 640px) {
	.ap-modules {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.ap-modules {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
	}
}

@media (min-width: 1280px) {
	.ap-modules {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ---- 04 Flow ---- */
.ap-steps {
	position: relative;
	display: grid;
	gap: 14px;
	counter-reset: step;
}

.ap-steps::before {
	content: "";
	position: absolute;
	top: 18px;
	bottom: 18px;
	left: 17px;
	width: 2px;
	background: linear-gradient(180deg, var(--cyan), var(--lime));
	opacity: 0.45;
}

.ap-step {
	position: relative;
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	gap: 16px;
}

.ap-step__marker {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(var(--cyan-rgb), 0.4);
	border-radius: 999px;
	background: var(--background);
	color: var(--cyan);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 14px;
}

.ap-step:last-child .ap-step__marker {
	border-color: rgba(var(--lime-rgb), 0.5);
	color: var(--lime);
}

.ap-step__body {
	padding: 18px 20px;
}

.ap-step__who {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--cyan);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ap-step__title {
	margin-top: 8px;
	font-size: 18px;
	overflow-wrap: break-word;
}

.ap-step__text {
	margin-top: 6px;
	color: var(--muted-foreground);
	font-size: 14px;
	line-height: 1.55;
}

@media (min-width: 1280px) {
	.ap-steps {
		grid-template-columns: repeat(7, minmax(0, 1fr));
		gap: 14px;
	}

	.ap-steps::before {
		top: 17px;
		bottom: auto;
		left: 18px;
		right: 18px;
		width: auto;
		height: 2px;
		background: linear-gradient(90deg, var(--cyan), var(--lime));
	}

	.ap-step {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: 36px 1fr;
		gap: 16px;
	}

	.ap-step__body {
		height: 100%;
		padding: 16px;
	}

	.ap-step__title {
		font-size: 16px;
	}

	.ap-step__text {
		font-size: 13px;
	}
}

/* ---- 05 Screens strip and lightbox ---- */
.ap-strip__list {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(82vw, 560px);
	gap: 20px;
	overflow-x: auto;
	padding: 4px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 20px;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.ap-strip__item {
	scroll-snap-align: start;
}

.ap-shot {
	display: block;
	color: inherit;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
	cursor: zoom-in;
}

.ap-shot__frame {
	display: block;
	overflow: hidden;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-xl);
	background: var(--card);
	transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.ap-shot:hover .ap-shot__frame,
.ap-shot:focus-visible .ap-shot__frame {
	border-color: rgba(var(--cyan-rgb), 0.45);
	transform: translateY(-3px);
}

.ap-shot__frame img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: top left;
}

.ap-shot__title {
	display: block;
	margin-top: 14px;
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 600;
}

.ap-shot__text {
	display: block;
	margin-top: 4px;
	color: var(--muted-foreground);
	font-size: 14px;
}

.ap-strip__controls {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.no-js .ap-strip__controls {
	display: none;
}

.ap-lightbox {
	width: min(1400px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100vh - 32px);
	padding: 0;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-xl);
	background: var(--card);
	color: var(--foreground);
	overflow: auto;
}

.ap-lightbox::backdrop {
	background: rgba(0, 0, 0, 0.82);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.ap-lightbox__img {
	width: 100%;
}

.ap-lightbox__caption {
	padding: 14px 18px;
	border-top: 1px solid var(--hairline);
	color: var(--muted-foreground);
	font-size: 14px;
}

.ap-lightbox__close-form {
	position: sticky;
	top: 0;
	z-index: 1;
	height: 0;
	text-align: right;
}

.ap-lightbox__close {
	display: inline-grid;
	margin: 10px;
}

/* ---- 06 Client site ---- */
.ap-fleet {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(180px, 1fr);
	gap: 12px;
	overflow-x: auto;
	margin-bottom: 40px;
	padding-bottom: 8px;
	scrollbar-width: none;
}

.ap-fleet::-webkit-scrollbar {
	display: none;
}

.ap-fleet__item {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-xl);
	background: var(--elevated);
}

.ap-fleet__item img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 0.5s var(--ease-out);
}

.ap-fleet__item:hover img {
	transform: scale(1.04);
}

.ap-fleet__label {
	position: absolute;
	left: 10px;
	bottom: 10px;
	display: flex;
	flex-direction: column;
	padding: 6px 10px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-md);
	background: rgba(7, 14, 22, 0.75);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: var(--muted-foreground);
	font-size: 11px;
	line-height: 1.35;
}

.ap-fleet__label b {
	color: var(--foreground);
	font-size: 13px;
	font-weight: 600;
}

.ap-client__grid {
	display: grid;
	gap: 40px;
	align-items: center;
}

.ap-points {
	display: grid;
	gap: 22px;
}

.ap-point {
	display: flex;
	gap: 14px;
}

.ap-point__title {
	font-size: 17px;
}

.ap-point__text {
	margin-top: 4px;
	color: var(--muted-foreground);
	font-size: 14px;
	line-height: 1.55;
}

.ap-client__visual {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	justify-items: start;
	gap: 20px;
}

.ap-client__visual .ap-device {
	width: 100%;
}

.ap-route-card {
	width: 100%;
	padding: 20px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-xl);
	background: rgba(7, 14, 22, 0.4);
}

.ap-route-card__svg,
.ap-cta__svg {
	width: 100%;
	height: auto;
	overflow: visible;
}

.ap-route-card__path,
.ap-cta__path {
	fill: none;
	stroke-width: 2.5;
	stroke-dasharray: 6 6;
	animation: ap-dash 1.4s linear infinite;
}

@keyframes ap-dash {
	to { stroke-dashoffset: -40; }
}

.ap-route-card__legend,
.ap-cta__legend {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
	color: var(--muted-foreground);
	font-size: 12px;
}

.ap-route-card__legend span,
.ap-cta__legend span {
	display: flex;
	flex-direction: column;
}

.ap-route-card__legend span:last-child,
.ap-cta__legend span:last-child {
	text-align: right;
}

.ap-route-card__legend b,
.ap-cta__legend b {
	color: var(--foreground);
	font-size: 14px;
	font-weight: 600;
}

@media (min-width: 1024px) {
	.ap-fleet {
		grid-auto-flow: row;
		grid-template-columns: repeat(6, minmax(0, 1fr));
		overflow: visible;
	}

	.ap-client__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 56px;
	}
}

/* ---- 07 Driver ---- */
.ap-driver__grid {
	display: grid;
	gap: 40px;
	align-items: center;
}

.ap-points--compact {
	gap: 18px;
}

.ap-phones {
	display: flex;
	justify-content: center;
	gap: 18px;
}

.ap-phones .ap-device--phone {
	width: min(260px, 46%);
}

.ap-phones .ap-device--phone:nth-child(2) {
	margin-top: 48px;
}

@media (min-width: 1024px) {
	.ap-driver__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 56px;
	}
}

/* ---- 08 Reliability ---- */
.ap-grid4 {
	display: grid;
	gap: 16px;
}

.ap-mini {
	padding: 22px;
}

.ap-mini__title {
	margin-top: 16px;
	font-size: 16px;
}

.ap-mini__text {
	margin-top: 6px;
	color: var(--muted-foreground);
	font-size: 14px;
	line-height: 1.55;
}

@media (min-width: 640px) {
	.ap-grid4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.ap-grid4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 20px;
	}
}

/* ---- 09 Launch and the demo CTA ---- */
.ap-launch {
	display: grid;
	gap: 16px;
	margin-bottom: 48px;
}

.ap-launch__step {
	padding: 22px 0 0;
	border-top: 1px solid var(--hairline);
}

.ap-launch__num {
	color: var(--cyan);
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.ap-launch__title {
	margin-top: 10px;
	font-size: 20px;
}

.ap-launch__text {
	margin-top: 6px;
	color: var(--muted-foreground);
	font-size: 14px;
	line-height: 1.55;
}

@media (min-width: 768px) {
	.ap-launch {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 24px;
	}
}

.ap-cta {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
	overflow: hidden;
	padding: 28px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-3xl);
	background: linear-gradient(135deg, var(--elevated), var(--card));
}

.ap-cta__grid-lines {
	opacity: 0.4;
}

.ap-cta__route {
	position: relative;
	padding: 20px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-xl);
	background: rgba(7, 14, 22, 0.4);
}

.ap-cta__copy {
	position: relative;
}

.ap-cta__title {
	margin-top: 12px;
	font-size: clamp(26px, 3.6vw, 36px);
}

.ap-cta__text {
	margin-top: 14px;
	color: var(--muted-foreground);
	line-height: 1.6;
}

.ap-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

.ap-cta__actions .ap-btn {
	max-width: 100%;
	white-space: normal;
	text-align: center;
}

@media (min-width: 1024px) {
	.ap-cta {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: center;
		gap: 56px;
		padding: 56px;
	}
}

/* ---- 10 FAQ ---- */
.ap-faq {
	display: grid;
	gap: 0;
}

.ap-faq__list {
	display: grid;
	gap: 10px;
}

.ap-faq__item {
	border: 1px solid var(--hairline);
	border-radius: var(--radius-xl);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
	transition: border-color 0.2s;
}

.ap-faq__item[open] {
	border-color: rgba(var(--cyan-rgb), 0.3);
}

.ap-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.ap-faq__q::-webkit-details-marker {
	display: none;
}

.ap-faq__chevron {
	width: 18px;
	height: 18px;
	color: var(--muted-foreground);
	transition: transform 0.25s var(--ease-out);
}

.ap-faq__item[open] .ap-faq__chevron {
	transform: rotate(180deg);
	color: var(--cyan);
}

.ap-faq__a {
	padding: 0 20px 20px;
	color: var(--muted-foreground);
	line-height: 1.65;
}

@media (min-width: 1024px) {
	.ap-faq {
		grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
		gap: 56px;
		align-items: start;
	}
}

/* ---- 11 Contact and the Contact Form 7 form ---- */
.ap-contact__grid {
	display: grid;
	gap: 40px;
}

.ap-next {
	display: grid;
	gap: 20px;
}

.ap-next__item {
	display: flex;
	gap: 14px;
}

.ap-next__title {
	font-size: 17px;
}

.ap-next__text {
	margin-top: 4px;
	color: var(--muted-foreground);
	font-size: 14px;
	line-height: 1.55;
}

.ap-contact__form {
	padding: 24px;
	border-radius: var(--radius-2xl);
}

.ap-contact__form-title {
	font-size: 22px;
}

.ap-contact__form-text {
	margin: 6px 0 22px;
	color: var(--muted-foreground);
	font-size: 14px;
}

@media (min-width: 1024px) {
	.ap-contact__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 56px;
		align-items: start;
	}

	.ap-contact__form {
		padding: 36px;
	}
}

.ap-form__grid {
	display: grid;
	gap: 14px;
}

@media (min-width: 640px) {
	.ap-form__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ap-field--wide {
		grid-column: 1 / -1;
	}
}

.ap-field {
	display: block;
}

.ap-field__label {
	display: block;
	margin-bottom: 6px;
	color: var(--muted-foreground);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.ap-field__label b {
	color: var(--cyan);
	font-weight: 600;
}

.wpcf7-form-control-wrap {
	position: relative;
	display: block;
}

.ap-form input[type="text"],
.ap-form input[type="tel"],
.ap-form input[type="email"],
.ap-form select,
.ap-form textarea {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-md);
	background-color: var(--elevated);
	color: var(--foreground);
	font: 400 15px/1.4 var(--font-sans);
	transition: border-color 0.2s, box-shadow 0.2s;
	appearance: none;
}

.ap-form textarea {
	min-height: 108px;
	resize: vertical;
}

.ap-form select {
	padding-right: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2395a0ab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-position: right 12px center;
	background-repeat: no-repeat;
	background-size: 16px;
}

.ap-form select option {
	background: var(--card);
	color: var(--foreground);
}

.ap-form ::placeholder {
	color: var(--muted-foreground);
	opacity: 1;
}

.ap-form input:is([type="text"], [type="tel"], [type="email"]):focus,
.ap-form select:focus,
.ap-form textarea:focus {
	outline: none;
	border-color: rgba(var(--cyan-rgb), 0.6);
	box-shadow: 0 0 0 3px rgba(var(--cyan-rgb), 0.15);
}

.ap-form input[type="checkbox"]:focus-visible,
.ap-form .wpcf7-submit:focus-visible {
	outline: 2px solid var(--cyan);
	outline-offset: 3px;
}

.ap-form .wpcf7-form-control.wpcf7-not-valid {
	border-color: rgba(var(--danger-rgb), 0.6);
}

.wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	color: var(--danger);
	font-size: 12px;
}

.ap-trap {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ap-form__footer {
	display: grid;
	gap: 18px;
	margin-top: 20px;
}

.ap-form__consent {
	color: var(--muted-foreground);
	font-size: 13px;
	line-height: 1.5;
}

.ap-form__consent a {
	color: var(--foreground);
	text-decoration: underline;
	text-decoration-color: rgba(var(--cyan-rgb), 0.5);
	text-underline-offset: 3px;
}

.ap-form__consent .wpcf7-list-item {
	display: block;
	margin: 0;
}

.ap-form__consent label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

.ap-form input[type="checkbox"] {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--cyan);
	cursor: pointer;
}

.ap-form__submit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.ap-form .wpcf7-submit {
	box-shadow: var(--shadow-glow);
	font-family: var(--font-sans);
}

.ap-form .wpcf7-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.ap-form .wpcf7-spinner {
	margin: 0;
	background-color: var(--cyan);
}

.wpcf7-spinner {
	visibility: hidden;
	display: inline-block;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	opacity: 0.75;
	position: relative;
}

.wpcf7-spinner::before {
	content: "";
	position: absolute;
	top: 4px;
	left: 4px;
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background-color: var(--on-accent);
	transform-origin: 7px 7px;
	animation: ap-spin 1s linear infinite;
}

.submitting .wpcf7-spinner {
	visibility: visible;
}

@keyframes ap-spin {
	to { transform: rotate(360deg); }
}

.wpcf7 form .wpcf7-response-output {
	margin: 18px 0 0;
	padding: 12px 14px;
	border: 1px solid rgba(var(--danger-rgb), 0.3);
	border-radius: var(--radius-md);
	background: rgba(var(--danger-rgb), 0.1);
	color: var(--danger);
	font-size: 14px;
}

.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output {
	display: none;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: rgba(var(--lime-rgb), 0.3);
	background: rgba(var(--lime-rgb), 0.1);
	color: var(--lime);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
	border-color: rgba(var(--amber-rgb), 0.3);
	background: rgba(var(--amber-rgb), 0.1);
	color: var(--amber);
}

.screen-reader-response {
	position: absolute;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	word-wrap: normal !important;
}

.wpcf7 .hidden-fields-container {
	display: none;
}

/* ---- Footer ---- */
.ap-footer {
	margin-top: var(--section-gap);
	border-top: 1px solid var(--hairline);
	background: rgba(7, 14, 22, 0.6);
}

.ap-footer__grid {
	display: grid;
	gap: 36px;
	padding-block: 48px;
}

.ap-footer__about {
	max-width: 340px;
	margin-top: 16px;
	color: var(--muted-foreground);
	font-size: 14px;
	line-height: 1.6;
}

.ap-footer__title {
	margin-bottom: 12px;
	font-size: 14px;
	font-weight: 600;
}

.ap-footer__list {
	display: grid;
	gap: 9px;
	color: var(--muted-foreground);
	font-size: 14px;
}

.ap-footer__list a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: color 0.2s;
}

.ap-footer__list a:hover {
	color: var(--foreground);
}

.ap-footer__bar {
	border-top: 1px solid var(--hairline);
}

.ap-footer__bar-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-block: 20px;
	color: var(--muted-foreground);
	font-size: 12px;
}

.ap-footer__bar a {
	text-decoration: underline;
	text-decoration-color: var(--hairline);
	text-underline-offset: 3px;
}

.ap-footer__bar a:hover {
	color: var(--foreground);
}

@media (min-width: 768px) {
	.ap-footer__grid {
		grid-template-columns: 2fr 1fr 1fr 1fr;
		padding-block: 56px;
	}
}

/* ---- Slide rail (wide screens) ---- */
.ap-rail {
	display: none;
}

@media (min-width: 1440px) {
	.ap-rail {
		position: fixed;
		top: 50%;
		right: 12px;
		padding: 6px;
		border: 1px solid transparent;
		border-radius: var(--radius-xl);
		transition: background-color 0.2s, border-color 0.2s;
		z-index: 30;
		display: block;
		transform: translateY(-50%);
	}

	.ap-rail:hover,
	.ap-rail:focus-within {
		border-color: var(--hairline);
		background: rgba(7, 14, 22, 0.9);
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
	}

	.ap-rail__list {
		display: grid;
		gap: 2px;
	}

	.ap-rail__link {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 8px;
		padding: 4px 6px;
		border-radius: var(--radius-md);
		color: var(--muted-foreground);
		font-size: 11px;
	}

	.ap-rail__num {
		font-variant-numeric: tabular-nums;
	}

	.ap-rail__label {
		max-width: 0;
		overflow: hidden;
		white-space: nowrap;
		opacity: 0;
		transition: max-width 0.3s var(--ease-out), opacity 0.2s;
	}

	.ap-rail:hover .ap-rail__label,
	.ap-rail:focus-within .ap-rail__label {
		max-width: 120px;
		opacity: 1;
	}

	.ap-rail__link::after {
		content: "";
		width: 14px;
		height: 2px;
		border-radius: 2px;
		background: rgba(255, 255, 255, 0.18);
		transition: width 0.3s var(--ease-out), background-color 0.2s;
	}

	.ap-rail__link:hover {
		color: var(--foreground);
	}

	.ap-rail__link.is-active {
		color: var(--foreground);
	}

	.ap-rail__link.is-active .ap-rail__num {
		color: var(--cyan);
	}

	.ap-rail__link.is-active::after {
		width: 24px;
		background: var(--cyan);
	}
}

/* ---- Pages: privacy policy, 404 ---- */
.ap-page__inner {
	max-width: 820px;
	padding-top: 56px;
}

.ap-page__title {
	margin: 14px 0 28px;
	font-size: clamp(30px, 4.5vw, 44px);
	line-height: 1.1;
}

.ap-prose {
	color: #c9d1d8;
	font-size: 16px;
	line-height: 1.7;
}

.ap-prose > * + * {
	margin-top: 16px;
}

.ap-prose h2 {
	margin-top: 36px;
	color: var(--foreground);
	font-size: 22px;
}

.ap-prose ul {
	padding-left: 20px;
	list-style: disc;
}

.ap-prose li + li {
	margin-top: 6px;
}

.ap-prose a {
	color: var(--cyan);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ap-page__updated {
	margin-top: 32px;
	color: var(--muted-foreground);
	font-size: 13px;
}

.ap-page__inner > p:last-child {
	margin-top: 40px;
}

.ap-404 {
	max-width: 560px;
	margin: 24px auto 0;
	padding: 40px 28px;
	border-radius: var(--radius-2xl);
	text-align: center;
}

.ap-404__eyebrow {
	color: var(--cyan);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
}

.ap-404__title {
	margin-top: 12px;
	font-size: clamp(28px, 4vw, 36px);
}

.ap-404__text {
	margin-top: 12px;
	color: var(--muted-foreground);
}

.ap-404__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 28px;
}

/* ---- Motion: only when it is welcome ---- */
@media (prefers-reduced-motion: no-preference) {
	/* The first screen rises with CSS alone, so it never waits for JavaScript (and stays the
	   largest contentful paint). It starts at 0.01, not 0, for the same reason. */
	[data-rise] {
		animation: ap-rise 0.6s var(--ease-out) both;
	}

	.ap-hero__copy > [data-rise]:nth-child(2) { animation-delay: 0.05s; }
	.ap-hero__copy > [data-rise]:nth-child(3) { animation-delay: 0.1s; }
	.ap-hero__copy > [data-rise]:nth-child(4) { animation-delay: 0.15s; }
	.ap-hero__copy > [data-rise]:nth-child(5) { animation-delay: 0.2s; }
	.ap-hero__copy > [data-rise]:nth-child(6) { animation-delay: 0.25s; }
	.ap-hero__visual[data-rise] { animation-delay: 0.12s; }

	/* Reveal on scroll: main.js puts .ap-reveal on <html> right before it starts observing, so
	   content is never hidden when the script fails to load or breaks. main.js drops the
	   attribute once the block is shown, which gives cards their own hover transitions back. */
	.ap-reveal [data-reveal] {
		transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
		transition-delay: var(--reveal-delay, 0s);
	}

	.ap-reveal [data-reveal]:not(.is-visible) {
		opacity: 0;
		transform: translateY(24px);
	}
}

@media print {
	[data-reveal],
	[data-rise] {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
	}
}

@keyframes ap-rise {
	from {
		opacity: 0.01;
		transform: translateY(18px);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.ap-hero__screen {
		transform: none;
	}
}
