/*
Theme Name: Vexo.Club Design Studio
Theme URI: https://vexo.club
Author: Vexo.Club Design Studio
Author URI: https://vexo.club
Description: A fast, self-contained custom theme for R-Track GPS. No page builder, no license server, no third-party plugins required. Includes the home, about, solutions and contact designs, a built-in contact form with lead inbox, SEO tags, and security hardening.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: vexo
*/

/* ---------- Tokens ---------- */
:root {
	--ink: #14213d;
	--ink-2: #1d2d50;
	--ink-3: #2a3c66;
	--paper: #eef3f1;
	--paper-2: #e2eae7;
	--white: #ffffff;
	--violet: #5b3df5;
	--violet-2: #4a2fe0;
	--teal: #0e9f9a;
	--teal-soft: #b8ebe6;
	--amber: #ffb020;
	--line: #cbd6d2;
	--line-dark: rgba(255, 255, 255, 0.12);
	--muted: #55627a;
	--muted-dark: #a9b4cc;

	--font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

	--step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
	--step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
	--step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
	--step-2: clamp(1.5rem, 1.32rem + 0.8vw, 1.95rem);
	--step-3: clamp(1.9rem, 1.55rem + 1.6vw, 2.9rem);
	--step-4: clamp(2.5rem, 1.8rem + 3.2vw, 4.6rem);
	--step-5: clamp(3rem, 1.9rem + 5vw, 6.4rem);

	--wrap: 1220px;
	--gutter: clamp(1.1rem, 0.6rem + 2.4vw, 2.5rem);
	--section: clamp(4rem, 3rem + 5vw, 8rem);
	--r-sm: 6px;
	--r-md: 14px;
	--r-lg: 28px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--step-0);
	font-variation-settings: "opsz" 14;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violet-2); }
h1, h2, h3, h4 {
	margin: 0 0 0.5em;
	line-height: 1.05;
	font-weight: 700;
	font-variation-settings: "opsz" 96;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); letter-spacing: -0.01em; }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--teal-soft); color: var(--ink); }

.screen-reader-text, .sr-only {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 10px; left: 10px; z-index: 1000; width: auto; height: auto; clip: auto;
	background: var(--white); color: var(--ink); padding: 0.7em 1em; border-radius: var(--r-sm);
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 62ch; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 52ch; }
.on-dark .lead, .lead.on-dark { color: var(--muted-dark); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 0.6em;
	padding: 0.85em 1.35em;
	font: 600 var(--step-0)/1 var(--font);
	border-radius: 999px; border: 2px solid transparent;
	text-decoration: none; cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--violet); color: var(--white); }
.btn-primary:hover { background: var(--violet-2); color: var(--white); }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.on-dark .btn-ghost { color: var(--white); }
.on-dark .btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn .pin { width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(255,176,32,.3); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(238, 243, 241, 0.88);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.brand-name { font-weight: 750; font-size: 1.3rem; font-variation-settings: "opsz" 48; letter-spacing: -0.02em; }
.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.primary-nav a {
	display: block; padding: 0.55em 0.9em; border-radius: 999px;
	color: var(--ink); text-decoration: none; font-weight: 500;
}
.primary-nav a:hover { background: var(--paper-2); }
.primary-nav .current-menu-item > a, .primary-nav .current_page_item > a, .primary-nav a[aria-current="page"] { background: var(--ink); color: var(--white); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-actions .login { color: var(--ink); font-weight: 600; text-decoration: none; padding: 0.5em 0.4em; }
.header-actions .login:hover { color: var(--violet); }
.header-actions .btn { padding: 0.7em 1.15em; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 0.6rem; cursor: pointer; color: var(--ink); }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.primary-nav, .header-actions { display: none; }
	.site-header.nav-open .primary-nav,
	.site-header.nav-open .header-actions { display: flex; }
	.header-inner { flex-wrap: wrap; gap: 0; }
	.site-header.nav-open .primary-nav { order: 3; flex-basis: 100%; margin: 0; padding: 0.5rem 0 0.25rem; }
	.site-header.nav-open .primary-nav ul { flex-direction: column; width: 100%; }
	.site-header.nav-open .primary-nav a { padding: 0.8em 0; border-radius: 0; border-bottom: 1px solid var(--line); font-size: var(--step-1); }
	.site-header.nav-open .primary-nav a:hover { background: none; color: var(--violet); }
	.site-header.nav-open .primary-nav .current-menu-item > a, .site-header.nav-open .primary-nav a[aria-current="page"] { background: none; color: var(--violet); }
	.site-header.nav-open .header-actions { order: 4; flex-basis: 100%; padding: 1rem 0 1.25rem; justify-content: space-between; }
}

/* ---------- Hero (live route map) ---------- */
.hero {
	position: relative; overflow: hidden;
	background: var(--ink); color: var(--white);
	border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.hero-grid {
	position: relative; z-index: 2;
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(2rem, 4vw, 4rem); align-items: center;
	padding-block: clamp(3.5rem, 6vw, 6.5rem) clamp(3.5rem, 6vw, 6rem);
}
.hero h1 {
	font-size: clamp(3rem, 1.6rem + 5.6vw, 6.6rem);
	font-weight: 740; font-stretch: 84%;
	line-height: 0.94; letter-spacing: -0.018em;
	margin-bottom: 0.35em;
}
.hero h1 .line { display: block; }
.hero .lead { color: var(--muted-dark); margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-proof { display: flex; gap: 2rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); flex-wrap: wrap; }
.hero-proof div { font-size: var(--step--1); color: var(--muted-dark); line-height: 1.3; }
.hero-proof strong { display: block; color: var(--white); font-size: var(--step-2); font-weight: 700; font-variation-settings: "opsz" 48; letter-spacing: -0.02em; }

.map-panel {
	position: relative;
	aspect-ratio: 5 / 5.2;
	border-radius: var(--r-lg);
	background: var(--ink-2);
	border: 1px solid var(--line-dark);
	overflow: hidden;
}
.map-panel svg.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-grid line { stroke: rgba(255,255,255,0.055); stroke-width: 1; }
.map-contour { fill: none; stroke: rgba(184,235,230,0.13); stroke-width: 1.2; }
.map-road { fill: none; stroke: rgba(255,255,255,0.12); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.map-road-minor { fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 3; stroke-linecap: round; }
.map-route-base { fill: none; stroke: rgba(14,159,154,0.25); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.map-route {
	fill: none; stroke: var(--teal); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
	stroke-dasharray: 1; stroke-dashoffset: 1;
	animation: draw-route 3.2s cubic-bezier(.6,.05,.3,1) .3s forwards;
}
@keyframes draw-route { to { stroke-dashoffset: 0; } }
.map-geofence { fill: rgba(91,61,245,0.12); stroke: var(--violet); stroke-width: 1.5; stroke-dasharray: 6 6; }
.map-stop circle.ring { fill: var(--ink-2); stroke: var(--white); stroke-width: 2.5; }
.map-stop text { fill: var(--muted-dark); font: 600 13px var(--font); }
.map-stop.end circle.ring { stroke: var(--teal); }
.vehicle { opacity: 0; animation: appear .4s ease 3.2s forwards; }
@keyframes appear { to { opacity: 1; } }
.vehicle .pulse { fill: rgba(255,176,32,0.35); transform-box: fill-box; transform-origin: center; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

.telemetry {
	position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1.1rem;
	display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center;
	padding: 1rem 1.1rem;
	background: rgba(20,33,61,0.86);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border: 1px solid var(--line-dark);
	border-radius: var(--r-md);
	font-size: var(--step--1);
}
.telemetry .plate {
	background: var(--amber); color: var(--ink);
	font-weight: 700; letter-spacing: 0.04em; font-variation-settings: "opsz" 14;
	padding: 0.45em 0.7em; border-radius: var(--r-sm); line-height: 1.1; text-align: center;
}
.telemetry .plate small { display: block; font-weight: 500; letter-spacing: 0; font-size: 0.75em; opacity: .75; }
.telemetry dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.telemetry dt { color: var(--muted-dark); font-size: 0.82em; }
.telemetry dd { margin: 0; color: var(--white); font-weight: 650; font-size: 1.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.telemetry .status-moving::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); margin-right: 6px; vertical-align: middle; box-shadow: 0 0 0 3px rgba(14,159,154,.3); }
.map-alert {
	position: absolute; top: 1.1rem; right: 1.1rem;
	display: flex; align-items: center; gap: 0.55rem;
	padding: 0.55rem 0.85rem; border-radius: 999px;
	background: var(--white); color: var(--ink); font-size: var(--step--1); font-weight: 600;
	opacity: 0; transform: translateY(-6px);
	animation: alert-in .5s ease 3.6s forwards;
}
.map-alert i { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }
@keyframes alert-in { to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; }
	.map-panel { aspect-ratio: 4 / 4.2; }
}
@media (max-width: 600px) {
	.map-panel { aspect-ratio: auto; }
	.map-panel svg.map { position: relative; height: 300px; }
	.telemetry { position: relative; left: auto; right: auto; bottom: auto; margin: 0 .75rem .75rem; grid-template-columns: 1fr; gap: .75rem; }
	.telemetry .plate { justify-self: start; }
	.telemetry dl { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.map-alert { left: .75rem; right: auto; top: .25rem; }
	.hero-visual .telemetry { margin: 1rem 0 0; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section-ink { background: var(--ink); color: var(--white); }
.section-white { background: var(--white); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); }
.section-ink .section-head p { color: var(--muted-dark); }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

/* Clients */
.clients { display: flex; align-items: center; gap: 2rem 3rem; flex-wrap: wrap; }
.clients p { margin: 0; font-weight: 600; color: var(--muted); flex: 0 0 auto; }
.clients ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem 2.75rem; flex: 1; }
.clients img { height: 44px; width: auto; max-width: 120px; object-fit: contain; filter: brightness(0); opacity: .55; transition: opacity .2s; }
.clients li:hover img { opacity: .9; }
@media (max-width: 640px) {
	.clients { flex-direction: column; align-items: flex-start; }
	.clients ul { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); width: 100%; gap: 1.5rem 1rem; }
}

/* Legend (capabilities) */
.legend-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); }
.legend-intro { position: sticky; top: 120px; align-self: start; }
.legend-intro h2 { margin-bottom: 0.4em; }
.legend-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.legend-list li { display: grid; grid-template-columns: 96px minmax(0,1fr); align-items: center; gap: 1.25rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.legend-list h3 { font-size: var(--step-1); margin: 0 0 .3em; font-weight: 680; font-variation-settings: "opsz" 32; }
.legend-list p { margin: 0; color: var(--muted); }
.legend-key { width: 96px; height: 96px; display: grid; place-items: center; }
.legend-key img { width: 96px; height: 96px; object-fit: contain; }
.legend-key svg { width: 64px; height: 44px; }
.legend-key svg { width: 100%; height: 100%; }
@media (max-width: 860px) { .legend-layout { grid-template-columns: 1fr; } .legend-intro { position: static; } }

/* Odometer stats */
.odometer { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.odometer div { padding: 2rem 1.5rem 2rem 0; }
.odometer div + div { padding-left: 1.5rem; border-left: 1px solid var(--line-dark); }
.odometer .num { display: flex; gap: 3px; margin-bottom: .75rem; }
.odometer .num span {
	display: inline-grid; place-items: center; min-width: 0.66em; height: 1.25em;
	padding: 0 .08em;
	background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 6px;
	font-size: var(--step-3); font-weight: 700; font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 48;
}
.odometer .num span.unit { background: none; border: 0; color: var(--teal-soft); min-width: 0; padding-left: .12em; }
.odometer p { margin: 0; color: var(--muted-dark); }
@media (max-width: 860px) {
	.odometer { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.odometer div:nth-child(3) { border-left: 0; padding-left: 0; }
	.odometer div:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; counter-reset: step; position: relative; }
.steps li { position: relative; padding: 0 1.5rem 0 0; counter-increment: step; }
.steps li::before {
	content: counter(step);
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	background: var(--white); border: 2px solid var(--ink); font-weight: 700; margin-bottom: 1.25rem; position: relative; z-index: 1;
}
.steps li::after { content: ""; position: absolute; top: 21px; left: 44px; right: 0; border-top: 2px dashed var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: var(--step-1); margin-bottom: .35em; font-variation-settings: "opsz" 32; }
.steps p { color: var(--muted); margin: 0; max-width: 30ch; }
@media (max-width: 860px) {
	.steps { grid-template-columns: 1fr; gap: 2rem; }
	.steps li { padding: 0 0 0 64px; }
	.steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
	.steps li::after { top: 44px; bottom: -2rem; left: 21px; right: auto; border-top: 0; border-left: 2px dashed var(--line); }
}

/* Industries */
.industries { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.industries a {
	display: inline-flex; align-items: center; gap: .55em;
	padding: .7em 1.15em; border-radius: 999px;
	background: var(--white); border: 1px solid var(--line);
	color: var(--ink); text-decoration: none; font-weight: 600;
	transition: border-color .2s, background-color .2s;
}
.industries .ind-icon, .industries svg { width: 26px; height: 26px; flex: none; object-fit: contain; }
.industries svg { color: var(--violet); }
.industries a:hover { border-color: var(--ink); }

/* Apps + demo */
.split-cta { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1.25rem; }
.cta-block { border-radius: var(--r-lg); padding: clamp(2rem, 4vw, 3.5rem); }
.cta-block h2 { font-size: var(--step-3); }
.cta-block p { color: var(--muted); max-width: 44ch; }
.cta-demo { background: var(--violet); color: var(--white); }
.cta-demo p { color: #d9d2ff; }
.cta-demo .btn-primary { background: var(--white); color: var(--violet); }
.cta-demo .btn-primary:hover { background: var(--ink); color: var(--white); }
.cta-app { background: var(--white); border: 1px solid var(--line); }
.store-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.store-link {
	display: inline-flex; align-items: center; gap: .7rem; padding: .7rem 1.1rem;
	border-radius: var(--r-md); background: var(--ink); color: var(--white); text-decoration: none; line-height: 1.15;
}
.store-link:hover { background: var(--ink-3); color: var(--white); }
.store-link svg { width: 24px; height: 24px; flex: none; }
.store-link small { display: block; font-size: .72rem; color: var(--muted-dark); }
.store-link strong { font-weight: 650; }
@media (max-width: 820px) { .split-cta { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
	list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center;
	padding: 1.4rem 0; font-size: var(--step-1); font-weight: 650; font-variation-settings: "opsz" 32;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ink);
	background:
		linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
		linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
	transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 1.6rem; color: var(--muted); max-width: 70ch; }

/* Posts */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 2.5rem 2rem; }
.post-card { display: flex; flex-direction: column; }
.post-card .thumb { aspect-ratio: 16/10; border-radius: var(--r-md); overflow: hidden; background: var(--paper-2); margin-bottom: 1.1rem; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .thumb img { transform: scale(1.03); }
.post-card h2, .post-card h3 { font-size: var(--step-2); margin-bottom: .35em; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--violet); }
.post-card time, .post-meta { color: var(--muted); font-size: var(--step--1); }
.post-card p { color: var(--muted); margin-top: .5rem; }

/* Page header */
.page-hero { padding-block: clamp(3.5rem, 6vw, 6.5rem) clamp(2rem, 4vw, 3.5rem); }
.page-hero h1 { font-size: var(--step-5); font-stretch: 80%; font-weight: 760; line-height: .95; letter-spacing: -0.03em; max-width: 14ch; }
.page-hero.is-article h1 { font-size: var(--step-4); max-width: 22ch; font-stretch: 86%; }
.breadcrumb { font-size: var(--step--1); color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--muted); }

/* Prose */
.prose { max-width: 70ch; font-size: 1.075rem; line-height: 1.72; }
.prose h2 { font-size: var(--step-2); margin: 2em 0 .6em; }
.prose h3 { font-size: var(--step-1); margin: 1.8em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--r-md); margin: 2rem 0; }
.prose blockquote { margin: 2rem 0; padding-left: 1.25rem; border-left: 3px solid var(--teal); font-size: var(--step-1); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .6rem .5rem; text-align: left; }
.article-feature { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 3rem; }
.article-feature img { width: 100%; }

/* About */
.statement-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--line-dark); }
.statement-grid div { padding: 2rem 2rem 0 0; }
.statement-grid div + div { padding-left: 2rem; border-left: 1px solid var(--line-dark); }
.statement-grid h3 { font-size: var(--step-1); color: var(--teal-soft); font-variation-settings: "opsz" 32; }
.statement-grid p { color: var(--white); font-size: var(--step-1); line-height: 1.45; }
@media (max-width: 860px) {
	.statement-grid { grid-template-columns: 1fr; }
	.statement-grid div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); }
}
.two-col { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2rem, 5vw, 5rem); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: .9rem 0 .9rem 2.2rem; border-bottom: 1px solid var(--line); }
.check-list li::before {
	content: ""; position: absolute; left: 0; top: 1.15rem; width: 1.2rem; height: 1.2rem; border-radius: 50%;
	background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}
.check-list strong { display: block; }
.check-list span { color: var(--muted); }

/* Solutions */
.solution-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 clamp(2rem, 5vw, 5rem); }
.solution-list li { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 1.25rem; padding: 2rem 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.solution-list .icon { width: 52px; height: 52px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; color: var(--violet); }
.solution-list .icon svg { width: 26px; height: 26px; }
.solution-list .icon img { width: 32px; height: 32px; object-fit: contain; }
.solution-list h2 { font-size: var(--step-1); margin: .55rem 0 .4em; font-variation-settings: "opsz" 32; letter-spacing: -0.01em; }
.solution-list p { color: var(--muted); margin: 0; }
.solution-list li:target { background: linear-gradient(90deg, rgba(14,159,154,.08), transparent); }
@media (max-width: 760px) { .solution-list { grid-template-columns: 1fr; } }

/* Contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.form-card { background: var(--white); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.75rem); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.1rem 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: var(--step--1); }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
	width: 100%; font: inherit; color: var(--ink);
	padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper);
	transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); background: var(--white); box-shadow: 0 0 0 4px rgba(91,61,245,.12); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #c2410c; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--step--1); color: var(--muted); margin: 1rem 0 0; }
.notice { padding: 1rem 1.2rem; border-radius: var(--r-md); margin-bottom: 1.5rem; font-weight: 500; }
.notice-success { background: #dcf5f2; color: #0b5f5b; border: 1px solid #9fdcd6; }
.notice-error { background: #fdecea; color: #8a1c12; border: 1px solid #f3b9b1; }
.contact-details { display: grid; gap: 1.75rem; }
.contact-details h3 { font-size: var(--step--1); color: var(--muted); font-weight: 600; margin: 0 0 .35rem; font-variation-settings: "opsz" 14; letter-spacing: 0; }
.contact-details p { margin: 0; font-size: var(--step-1); line-height: 1.4; }
.contact-details a { color: var(--ink); text-decoration: none; }
.contact-details a:hover { color: var(--violet); }
.map-embed { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/7; background: var(--paper-2); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 700px) { .map-embed { aspect-ratio: 4/3; } }

/* Pagination */
.pagination { margin-top: 3.5rem; }
.pagination .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.pagination .page-numbers.current { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Search form */
.search-form { display: flex; gap: .5rem; max-width: 480px; }
.search-form input[type="search"] { flex: 1; font: inherit; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); }

/* 404 */
.lost { text-align: left; }
.lost .code { font-size: clamp(6rem, 18vw, 14rem); font-weight: 780; font-stretch: 75%; line-height: .85; letter-spacing: -0.04em; color: var(--ink); margin-bottom: .2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); margin-top: var(--section); padding-top: clamp(3.5rem, 6vw, 5.5rem); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.site-footer.flush, main:has(> .section:last-child) + .site-footer { margin-top: 0; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand .logo-chip { display: inline-block; background: var(--white); border-radius: var(--r-md); padding: .6rem .8rem; margin-bottom: 1.25rem; }
.footer-brand .logo-chip img { height: 44px; width: auto; }
.footer-brand p { max-width: 36ch; }
.site-footer h2 { font-size: var(--step-0); color: var(--white); font-weight: 650; letter-spacing: 0; font-variation-settings: "opsz" 14; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: var(--muted-dark); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-contact li { line-height: 1.45; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--line-dark); font-size: var(--step--1); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* WordPress core classes */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: var(--step--1); color: var(--muted); }
.sticky, .bypostauthor, .gallery-caption { }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.map-route { stroke-dashoffset: 0; }
	.vehicle, .map-alert { opacity: 1; transform: none; }
}

/* ---------- Original R-Track imagery ---------- */
.hero-visual { position: relative; padding: 2.5rem 0 4.5rem; }
.hero-glow {
	position: absolute; inset: 8% 4% 18%; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(14,159,154,.45), rgba(91,61,245,.25) 55%, transparent);
	filter: blur(30px);
}
.hero-device { position: relative; margin: -6% -16% -4% -10%; }
@media (max-width: 900px) { .hero-device { margin: -4% -8%; } }
.hero-device img { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-badge {
	position: absolute; top: 1.2rem; left: 0; z-index: 3;
	background: var(--amber); color: var(--ink); font-weight: 750; font-size: .85rem;
	padding: .35rem .75rem; border-radius: 999px; transform: rotate(-8deg);
	box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.hero-visual .map-alert { top: .5rem; right: 0; z-index: 3; }
.hero-visual .telemetry { left: -.5rem; right: 2rem; bottom: 0; z-index: 3; }
@media (max-width: 600px) {
	.hero-visual { padding: 3rem 0 0; }
	.hero-badge { top: 3.2rem; }
}

.app-showcase .two-col { align-items: center; }
.app-copy h2 { font-size: var(--step-4); }
.app-copy .check-list { margin: 1.5rem 0 2rem; }
.phones { position: relative; min-height: 560px; }
.phones .phone { position: absolute; width: 44%; height: auto; filter: drop-shadow(0 24px 40px rgba(20,33,61,.28)); }
.phones .phone-center { left: 28%; top: 0; z-index: 2; }
.phones .phone-left { left: 0; top: 12%; transform: rotate(-7deg); opacity: .95; }
.phones .phone-right { right: 0; top: 12%; transform: rotate(7deg); opacity: .95; }
@media (max-width: 860px) { .phones { min-height: 120vw; max-height: 560px; } }

.stats-band { background: linear-gradient(rgba(20,33,61,.86), rgba(20,33,61,.95)), var(--world, none) center / cover no-repeat, var(--ink); }

.cta-art { width: 100%; max-width: 250px; height: auto; margin: -.5rem 0 1rem; }
.cta-demo .cta-art { max-width: 100%; border-radius: var(--r-md); margin: 1.75rem 0 0; aspect-ratio: 16 / 7; object-fit: cover; }
.split-cta .cta-block { display: flex; flex-direction: column; align-items: flex-start; }
.plan-art { margin-top: 2rem; border-radius: var(--r-md); width: 100%; height: auto; max-width: 480px; }

.page-hero.has-media .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.page-hero-media { margin: 0; }
.page-hero-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
@media (max-width: 860px) { .page-hero.has-media .wrap { grid-template-columns: 1fr; } }

.photo-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.photo-strip img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-md); }
.photo-strip img:nth-child(even) { margin-top: 2.5rem; }
@media (max-width: 700px) { .photo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.contact-art { width: 100%; max-width: 280px; height: auto; border-radius: var(--r-md); }

@media (prefers-reduced-motion: reduce) { .hero-device img { animation: none; } }
