/* ELD Runner Pro — site styles */

/* Brand fonts (brand book): Outfit for headlines, Inter for body text */
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Brand colors (brand book): Abyss, Deep Ocean, Teal, Electric Cyan, Paper */
:root {
  --ocean: #012E43;
  --deep: #011C29;
  --teal: #04C1C5;
  --cyan: #00F6F5;
  --mid: #0A6F8A;
  --light: #F3F5F4;
  --white: #FFFFFF;

  --ink: #011C29;
  --ink-muted: #45606D;
  --line: #D3DDE1;
  --field-line: #6E8794;
  --on-dark: #E8F3F6;
  --on-dark-muted: #A9C2CC;
  --error: #B3261E;
  --error-on-dark: #FFB4AB;

  --font-head: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 40px -18px rgba(1, 28, 41, 0.35);
  --angle: 48px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  font-weight: 600;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--mid);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ocean);
}

ul {
  margin: 0;
  padding: 0;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--mid);
  outline-offset: 3px;
  border-radius: 4px;
}

.section-dark :focus-visible,
.hero :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.legal-hero :focus-visible {
  outline-color: var(--cyan);
}

.visually-hidden {
  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: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--cyan);
  color: var(--deep);
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.container-narrow {
  max-width: 820px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-sm {
  min-height: 42px;
  padding: 8px 18px;
  font-size: 0.92rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background: var(--teal);
  color: var(--deep);
}

.btn-primary:hover {
  background: var(--cyan);
  color: var(--deep);
}

.btn-ghost {
  border-color: rgba(232, 243, 246, 0.45);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-outline {
  border-color: var(--mid);
  color: var(--mid);
}

.btn-outline:hover {
  background: var(--mid);
  color: var(--white);
}

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(1, 28, 41, 0.96);
  border-bottom: 1px solid rgba(4, 193, 197, 0.18);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgba(1, 28, 41, 0.86);
    backdrop-filter: blur(10px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
}

.brand:hover {
  color: var(--white);
}

.brand-logo {
  width: auto;
  height: 24px;
}

@media (min-width: 400px) {
  .brand-logo {
    height: 26px;
  }
}

@media (min-width: 1100px) {
  .brand-logo {
    height: 28px;
  }
}

.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(232, 243, 246, 0.3);
  border-radius: 12px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bar {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  left: 0;
  margin-left: 0;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-list {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-list a {
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--cyan);
}

@media (max-width: 1079px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 16px 24px;
    background: var(--deep);
    border-bottom: 1px solid rgba(4, 193, 197, 0.25);
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, 0.6);
  }

  .js .site-nav.is-open {
    display: flex;
  }

  .js .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .js .nav-list a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(232, 243, 246, 0.1);
  }

  .no-js .header-inner {
    flex-wrap: wrap;
    padding-block: 12px;
  }

  .no-js .site-nav {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .no-js .nav-list {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 48px 0 0;
  color: var(--on-dark);
  background:
    radial-gradient(55% 65% at 80% 30%, rgba(4, 193, 197, 0.3), transparent 70%),
    radial-gradient(45% 55% at 0% 100%, rgba(10, 111, 138, 0.35), transparent 70%),
    linear-gradient(160deg, var(--ocean) 0%, var(--deep) 65%);
  overflow: hidden;
}

/* Speed field that flows along the slant of the mark (one tile = one loop) */
.hero::before {
  content: "";
  position: absolute;
  top: -999px;
  left: -720px;
  width: calc(100% + 1440px);
  height: calc(100% + 1998px);
  background: url("/assets/img/speed-tile.svg") 0 0 / 720px 999px repeat;
  animation: streaks 18s linear infinite;
  will-change: transform;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(1, 28, 41, 0.72) 0%, rgba(1, 28, 41, 0.3) 45%, rgba(1, 28, 41, 0) 70%);
  pointer-events: none;
}

@keyframes streaks {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(720px, 999px, 0);
  }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--cyan);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow-dark {
  color: var(--mid);
}

.hero h1 {
  color: var(--white);
}

.accent {
  display: block;
  color: var(--teal);
}

.lead {
  max-width: 30em;
  margin-bottom: 30px;
  color: var(--on-dark);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-points,
.trial-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  color: var(--on-dark-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.hero-points li,
.trial-points li {
  position: relative;
  padding-left: 22px;
}

.hero-points li::before,
.trial-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-phones {
  width: 100%;
  max-width: 400px;
  height: auto;
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.5));
}

/* Truck on the road: drives in, then cruises; wheels spin and lane marks pass by */
.road-scene {
  --truck-w: min(94vw, 880px);
  position: relative;
  z-index: 2;
  margin-top: 36px;
}

.truck-wrap {
  position: relative;
  z-index: 2;
  width: var(--truck-w);
  margin: 0 0 calc(var(--truck-w) * -0.02 - 20px) max(3vw, calc((100% - 1180px) / 2 + 24px));
  animation: truck-in 2.8s cubic-bezier(0.16, 0.84, 0.3, 1) both, truck-cruise 1.4s ease-in-out 2.8s infinite;
}

.truck {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.wheel {
  transform-box: fill-box;
  transform-origin: center;
  animation: wheel-spin 0.5s linear infinite;
}

.road {
  position: relative;
  height: 64px;
  overflow: hidden;
  border-top: 2px solid rgba(4, 193, 197, 0.55);
  background: linear-gradient(180deg, #072230 0%, #03141d 100%);
  box-shadow: 0 -2px 22px rgba(4, 193, 197, 0.22);
}

.road-lines {
  position: absolute;
  top: 40px;
  left: 0;
  width: calc(100% + 180px);
  height: 4px;
  background: repeating-linear-gradient(90deg, rgba(232, 243, 246, 0.5) 0 90px, transparent 90px 180px);
  animation: lanes 0.75s linear infinite;
  will-change: transform;
}

@media (max-width: 639px) {
  .road-scene {
    --truck-w: 128vw;
  }

  .truck-wrap {
    margin-left: -24vw;
  }
}

@keyframes truck-in {
  from {
    transform: translateX(-120vw);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes truck-cruise {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-1.5px);
  }
}

@keyframes wheel-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes lanes {
  to {
    transform: translateX(-180px);
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 72px 0 0;
  }

  .road-scene {
    margin-top: 8px;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }

  .hero-phones {
    max-width: 470px;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
}

@media (min-width: 960px) {
  .section {
    padding: 104px 0;
  }
}

.section-light {
  background: var(--white);
}

.section-tint,
.section-paper {
  background: var(--light);
}

.section-dark {
  color: var(--on-dark);
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(4, 193, 197, 0.16), transparent 70%),
    var(--deep);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-angled {
  padding-top: calc(72px + var(--angle));
  margin-top: calc(-1 * var(--angle));
  clip-path: polygon(0 var(--angle), 100% 0, 100% 100%, 0 100%);
}

@media (min-width: 960px) {
  .section-angled {
    padding-top: calc(104px + var(--angle));
  }
}

.section-head {
  max-width: 680px;
  margin-bottom: 44px;
}

.section-lead {
  font-size: 1.08rem;
  color: var(--ink-muted);
}

.section-dark .section-lead {
  color: var(--on-dark-muted);
}

/* Driver app screens */

.screens {
  display: grid;
  gap: 52px;
  margin-bottom: 64px;
  list-style: none;
}

@media (min-width: 760px) {
  .screens {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.screen {
  text-align: center;
}

.screen img {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin: 0 auto 26px;
  filter: drop-shadow(0 28px 36px rgba(1, 28, 41, 0.28));
}

.screen h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.screen p {
  max-width: 22em;
  margin: 0 auto;
  color: var(--ink-muted);
}

.mini-features {
  display: grid;
  gap: 24px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
  list-style: none;
}

@media (min-width: 640px) {
  .mini-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 32px;
  }
}

@media (min-width: 960px) {
  .mini-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mini-features li {
  display: flex;
  gap: 14px;
}

.mini-features h3 {
  margin-bottom: 4px;
  font-size: 1.08rem;
}

.mini-features p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.mini-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ocean);
  color: var(--cyan);
}

.mini-icon svg {
  width: 22px;
  height: 22px;
}

/* Fleet portal */

.portal-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .portal-grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

.feature-list {
  display: grid;
  gap: 22px;
  margin-top: 32px;
  list-style: none;
}

@media (min-width: 640px) {
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 28px;
  }
}

.feature-list li {
  display: flex;
  gap: 14px;
}

.feature-list h3 {
  margin-bottom: 4px;
  font-size: 1.02rem;
}

.feature-list p {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: 0.95rem;
}

.feature-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(4, 193, 197, 0.14);
  color: var(--cyan);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.window {
  overflow: hidden;
  border: 1px solid rgba(4, 193, 197, 0.3);
  border-radius: var(--radius-lg);
  background: #04222F;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(232, 243, 246, 0.08);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(232, 243, 246, 0.2);
}

.window-bar em {
  margin-left: 10px;
  color: var(--on-dark-muted);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
}

.window-body {
  display: grid;
}

.map {
  width: 100%;
  height: auto;
  aspect-ratio: 400 / 260;
  font-family: var(--font-head);
}

.truck-list {
  list-style: none;
  padding: 10px 14px 14px;
}

.truck-list li {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(232, 243, 246, 0.08);
  font-size: 0.88rem;
}

.truck-name {
  color: var(--white);
  font-weight: 700;
}

.truck-meta {
  color: var(--on-dark-muted);
  font-size: 0.82rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-driving {
  background: var(--cyan);
}

.status-on {
  background: #F5B83D;
}

.status-off {
  background: #8FB3C2;
}

.truck-list .truck-alert {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: rgba(245, 184, 61, 0.14);
  color: #FFD88A;
  font-weight: 600;
  font-size: 0.84rem;
}

.truck-name {
  white-space: nowrap;
}

/* Brand statement band (photo from the brand book) */

.statement {
  padding: 96px 0;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(1, 28, 41, 0.45) 0%, rgba(1, 28, 41, 0.92) 75%),
    url("/assets/img/photo-driver.webp") 72% 20% / cover no-repeat,
    var(--deep);
}

@media (min-width: 760px) {
  .statement {
    padding: 140px 0;
    background:
      linear-gradient(90deg, rgba(1, 28, 41, 0.96) 0%, rgba(1, 28, 41, 0.78) 42%, rgba(1, 28, 41, 0.15) 100%),
      url("/assets/img/photo-driver.webp") 70% 22% / cover no-repeat,
      var(--deep);
  }
}

.statement h2 {
  max-width: 11em;
  color: var(--white);
  font-size: clamp(2.3rem, 5.5vw, 3.8rem);
}

.statement p {
  max-width: 28em;
  margin-bottom: 30px;
  color: var(--on-dark);
  font-size: 1.15rem;
}

.statement :focus-visible {
  outline-color: var(--cyan);
}

/* ELD device */

.steps {
  display: grid;
  gap: 18px;
  margin: 0 0 56px;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}

.step {
  padding: 28px 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--teal);
  color: var(--deep);
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
}

.step h3 {
  margin-bottom: 6px;
  font-size: 1.18rem;
}

.step p {
  margin: 0;
  color: var(--ink-muted);
}

.cables-title {
  margin-bottom: 18px;
  font-size: 1.3rem;
}

.cables {
  display: grid;
  gap: 14px;
  list-style: none;
}

@media (min-width: 640px) {
  .cables {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cable {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--ocean);
  color: var(--on-dark);
}

.cable svg {
  flex: none;
  width: 52px;
  height: 52px;
  color: var(--cyan);
}

.cable h4 {
  margin: 0 0 2px;
  color: var(--white);
  font-size: 1.08rem;
}

.cable p {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: 0.92rem;
}

/* Bands: three cuts of the mark (brand book) */

.section-bands {
  position: relative;
  overflow: hidden;
}

.section-bands::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  height: 380px;
  background: url("/assets/img/bands.svg") right top / auto 100% no-repeat;
  opacity: 0.35;
  pointer-events: none;
}

.section-bands > .container {
  position: relative;
}

@media (min-width: 960px) {
  .section-bands::before {
    width: min(46%, 600px);
    height: 100%;
    opacity: 0.9;
  }
}

/* Products overview */

.products {
  display: grid;
  gap: 18px;
  list-style: none;
}

@media (min-width: 640px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .products {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.product-soon {
  background: var(--light);
}

.product-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--ocean);
  color: var(--cyan);
}

.product-icon svg {
  width: 26px;
  height: 26px;
}

.product h3 {
  margin: 20px 0 8px;
  font-size: 1.28rem;
}

.product p {
  flex: 1;
  margin: 0 0 18px;
  color: var(--ink-muted);
}

.product-link {
  align-self: flex-start;
  color: var(--mid);
  font-weight: 600;
  text-decoration: none;
}

.product-link::after {
  content: " \2192";
}

.product-link:hover {
  color: var(--ocean);
  text-decoration: underline;
}

.soon {
  position: absolute;
  top: 22px;
  right: 20px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #DDF3F4;
  color: #075A70;
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.soon-inline {
  position: static;
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
}

/* Integrations */

.section-head-center {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.integrations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 16px;
  list-style: none;
}

@media (min-width: 640px) {
  .integrations {
    gap: 44px 32px;
  }
}

@media (min-width: 960px) {
  .integrations {
    grid-template-columns: repeat(3, 1fr);
    gap: 52px 40px;
  }
}

.integration {
  text-align: center;
}

.int-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 116px;
  height: 116px;
  margin: 0 auto 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 24px -16px rgba(1, 28, 41, 0.35);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.integration:hover .int-logo {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.int-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.integration h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.integration p {
  max-width: 24em;
  margin: 0 auto;
  color: var(--ink-muted);
}

@media (max-width: 639px) {
  .int-logo {
    width: 96px;
    height: 96px;
    margin-bottom: 14px;
    padding: 12px;
  }

  .integration h3 {
    font-size: 1.08rem;
  }

  .integration p {
    font-size: 0.9rem;
  }
}

/* AI dash camera (coming soon) */

.camera-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .camera-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
  }
}

.camera-points {
  display: grid;
  gap: 12px;
  margin: 0 0 30px;
  list-style: none;
}

.camera-points li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-muted);
}

.camera-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.35em;
  width: 8px;
  height: 14px;
  background: var(--teal);
  transform: skewX(-25deg);
}

.camera-points strong {
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
}

.cam-view {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: var(--deep);
  box-shadow: 0 30px 60px -25px rgba(1, 28, 41, 0.55);
}

.cam-view img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cam-rec,
.cam-ai {
  position: absolute;
  top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.cam-rec {
  left: 16px;
  background: rgba(1, 28, 41, 0.72);
  color: var(--white);
}

.cam-rec::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #FF4D4F;
  animation: rec-blink 1.2s ease-in-out infinite;
}

.cam-ai {
  right: 16px;
  border: 1px solid rgba(0, 246, 245, 0.55);
  background: rgba(1, 28, 41, 0.6);
  color: var(--cyan);
}

.cam-box {
  position: absolute;
  top: 33%;
  left: 60.5%;
  width: 11.5%;
  height: 29%;
  border: 2px solid var(--cyan);
  border-radius: 4px;
  box-shadow: 0 0 16px rgba(0, 246, 245, 0.45);
  animation: box-pulse 2.4s ease-in-out infinite;
}

.cam-label {
  position: absolute;
  bottom: 100%;
  left: -2px;
  margin-bottom: 4px;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--cyan);
  color: var(--deep);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.cam-corners {
  position: absolute;
  inset: 12px;
  opacity: 0.75;
  pointer-events: none;
  background:
    linear-gradient(var(--cyan), var(--cyan)) left top / 24px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) left top / 2px 24px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) right top / 24px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) right top / 2px 24px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) left bottom / 24px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) left bottom / 2px 24px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) right bottom / 24px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) right bottom / 2px 24px no-repeat;
}

@keyframes rec-blink {
  50% {
    opacity: 0.2;
  }
}

@keyframes box-pulse {
  50% {
    box-shadow: 0 0 4px rgba(0, 246, 245, 0.2);
  }
}

/* Pricing */

.pricing-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .pricing-grid {
    grid-template-columns: 1fr 440px;
    gap: 72px;
  }
}

.pricing-copy .section-lead {
  margin-bottom: 28px;
}

.price-card {
  position: relative;
  padding: 34px 28px 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(80% 55% at 100% 0%, rgba(0, 246, 245, 0.28), transparent 70%),
    linear-gradient(160deg, var(--ocean), var(--deep));
  color: var(--on-dark);
  box-shadow: var(--shadow);
}

.price-plan {
  margin-bottom: 6px;
  color: var(--cyan);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 22px;
  color: var(--white);
  font-family: var(--font-head);
}

.price-amount {
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.price-period {
  color: var(--on-dark-muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.check-list {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
}

.price-card :focus-visible {
  outline-color: var(--cyan);
}

.price-note {
  margin: 14px 0 0;
  color: var(--on-dark-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 12px;
}

.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.faq summary {
  position: relative;
  padding: 20px 60px 20px 22px;
  font-family: var(--font-head);
  font-size: 1.04rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--mid);
  transition: transform 0.2s ease;
}

.faq summary::after {
  transform: rotate(90deg);
}

.faq[open] summary::after {
  transform: rotate(0deg);
}

.faq summary:focus-visible {
  outline-offset: -3px;
  border-radius: var(--radius);
}

.faq p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--ink-muted);
}

/* Trial form */

.trial-grid {
  display: grid;
  gap: 44px;
}

@media (min-width: 960px) {
  .trial-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: start;
  }
}

.trial-points {
  flex-direction: column;
  margin-bottom: 32px;
}

.trial-contact {
  padding: 20px 22px;
  border: 1px solid rgba(232, 243, 246, 0.14);
  border-radius: var(--radius);
  color: var(--on-dark-muted);
}

.trial-contact h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.trial-form {
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}

@media (min-width: 640px) {
  .trial-form {
    padding: 36px 32px;
  }
}

.trial-form :focus-visible {
  outline-color: var(--mid);
}

.form-row {
  margin-bottom: 18px;
}

.form-grid {
  display: grid;
  gap: 0 16px;
}

@media (min-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.trial-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.94rem;
}

.req {
  color: var(--error);
}

.trial-form input[type="text"],
.trial-form input[type="tel"],
.trial-form input[type="email"],
.trial-form select,
.trial-form textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid var(--field-line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.trial-form select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23012E43' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.trial-form textarea {
  resize: vertical;
  min-height: 110px;
}

.trial-form input:focus,
.trial-form select:focus,
.trial-form textarea:focus {
  border-color: var(--mid);
  box-shadow: 0 0 0 3px rgba(10, 111, 138, 0.2);
  outline: none;
}

.trial-form input:focus-visible,
.trial-form select:focus-visible,
.trial-form textarea:focus-visible {
  outline: 3px solid var(--mid);
  outline-offset: 1px;
}

.trial-form [aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  margin: 6px 0 0;
  color: var(--error);
  font-size: 0.88rem;
  font-weight: 600;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-required-note {
  margin: -4px 0 16px;
  color: var(--ink-muted);
  font-size: 0.86rem;
}

.form-required-note span {
  color: var(--error);
}

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.consent input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--mid);
  cursor: pointer;
}

.trial-form .consent label {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.55;
  cursor: pointer;
}

.form-legal {
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-size: 0.84rem;
}

.form-status {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 600;
}

.form-status[data-tone="info"] {
  background: #E3F4F6;
  border: 1px solid #9BD6DC;
  color: var(--ocean);
}

.form-status[data-tone="success"] {
  background: #E6F5EC;
  border: 1px solid #9CD3B2;
  color: #145A32;
}

.form-status[data-tone="error"] {
  background: #FCEDEC;
  border: 1px solid #F0B4AF;
  color: var(--error);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 64px 0 28px;
  background: #00131C;
  color: var(--on-dark-muted);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 36px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 0.8fr 0.8fr;
  }
}

.footer-brand p {
  max-width: 28em;
  margin-top: 16px;
}

.footer-title {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col p {
  margin-bottom: 6px;
  color: var(--on-dark);
  font-weight: 600;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.site-footer a {
  color: var(--on-dark-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--cyan);
  text-decoration: underline;
}

.site-footer .brand {
  color: var(--white);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(232, 243, 246, 0.1);
  font-size: 0.86rem;
}

.footer-bottom p {
  margin: 0;
}

/* ---------- Legal pages ---------- */

.legal-hero {
  padding: 56px 0 48px;
  color: var(--on-dark);
  background:
    url("/assets/img/speed-field.svg") center / cover no-repeat,
    radial-gradient(60% 90% at 100% 0%, rgba(4, 193, 197, 0.22), transparent 70%),
    linear-gradient(160deg, var(--ocean), var(--deep));
}

.legal-hero h1 {
  margin-bottom: 10px;
  color: var(--white);
  font-size: clamp(2rem, 5vw, 2.9rem);
}

.legal-hero p {
  margin: 0;
  color: var(--on-dark-muted);
}

.legal-layout {
  display: grid;
  gap: 36px;
  padding-top: 48px;
  padding-bottom: 88px;
}

@media (min-width: 960px) {
  .legal-layout {
    grid-template-columns: 260px 1fr;
    gap: 64px;
  }
}

.toc {
  align-self: start;
  padding: 22px 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--light);
}

@media (min-width: 960px) {
  .toc {
    position: sticky;
    top: 92px;
  }
}

.toc h2 {
  margin-bottom: 12px;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  font-size: 0.94rem;
}

.toc a {
  color: var(--mid);
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.legal-body {
  max-width: 760px;
}

.legal-body section {
  margin-bottom: 40px;
}

.legal-body h2 {
  margin-bottom: 14px;
  font-size: 1.45rem;
}

.legal-body h3 {
  margin: 20px 0 8px;
  font-size: 1.06rem;
}

.legal-body p,
.legal-body li {
  color: #22404E;
}

.legal-body ul {
  display: grid;
  gap: 8px;
  margin: 0 0 1em;
  padding-left: 22px;
}

.legal-intro {
  font-size: 1.06rem;
}

/* ---------- 404 ---------- */

.not-found {
  padding: 96px 0 120px;
  color: var(--on-dark);
  text-align: center;
  background:
    url("/assets/img/speed-field.svg") center / cover no-repeat,
    radial-gradient(50% 60% at 50% 0%, rgba(4, 193, 197, 0.22), transparent 70%),
    linear-gradient(160deg, var(--ocean), var(--deep));
}

.not-found .not-found-code {
  margin: 0 auto 8px;
  color: var(--teal);
  font-family: var(--font-head);
  font-size: clamp(4.5rem, 16vw, 8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.not-found h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.not-found p {
  max-width: 30em;
  margin: 0 auto 28px;
  color: var(--on-dark-muted);
}

.not-found .hero-actions {
  justify-content: center;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
