:root {
  --paper: #fbfbf7;
  --surface: #ffffff;
  --surface-soft: #f3f6f0;
  --ink: #15171d;
  --muted: #606672;
  --line: #dfe5df;
  --green: #12d92a;
  --green-dark: #168229;
  --red: #f1261a;
  --red-dark: #c51811;
  --blue: #2772d8;
  --yellow: #f2b334;
  --shadow: 0 18px 50px rgba(21, 23, 29, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px max(22px, calc((100vw - var(--max)) / 2));
  background: rgba(251, 251, 247, 0.92);
  border-bottom: 1px solid rgba(21, 23, 29, 0.08);
  backdrop-filter: blur(16px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand img,
.footer-brand img {
  border-radius: 8px;
}

.brand span {
  font-size: 1.12rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #31353d;
  font-weight: 650;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 750;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 152px);
  overflow: hidden;
  padding: 68px max(22px, calc((100vw - var(--max)) / 2)) 72px;
  background: #f6faf3;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -2;
  height: 110px;
  content: "";
  background: #e9f5e9;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 5rem;
  line-height: 0.95;
  font-weight: 900;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.45rem;
  line-height: 1.08;
  font-weight: 880;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.24;
  font-weight: 820;
}

.hero-lead {
  max-width: 560px;
  margin-bottom: 28px;
  color: #292d34;
  font-size: 1.3rem;
  line-height: 1.38;
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #cfd8d2;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 820;
  white-space: nowrap;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.store-link:hover,
.store-link:focus-visible {
  border-color: var(--green-dark);
  box-shadow: 0 8px 24px rgba(22, 130, 41, 0.13);
  transform: translateY(-1px);
}

.store-link-primary {
  border-color: var(--red);
  background: var(--red);
  color: #ffffff;
}

.store-link-primary:hover,
.store-link-primary:focus-visible {
  border-color: var(--red-dark);
  box-shadow: 0 10px 26px rgba(241, 38, 26, 0.22);
}

.store-link-disabled {
  color: #767d86;
  cursor: not-allowed;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 560px;
  margin-top: 26px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(22, 130, 41, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #24412a;
  font-size: 0.92rem;
  font-weight: 760;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-phone {
  position: absolute;
  width: 320px;
  border: 1px solid rgba(21, 23, 29, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-phone-main {
  right: max(42px, calc((100vw - var(--max)) / 2 + 70px));
  bottom: -28px;
  transform: rotate(2deg);
}

.hero-phone-side {
  right: max(300px, calc((100vw - var(--max)) / 2 + 340px));
  bottom: 34px;
  width: 230px;
  opacity: 0.42;
  transform: rotate(-7deg);
}

.risk-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink);
  color: #ffffff;
}

.risk-strip div {
  min-height: 116px;
  padding: 26px max(22px, calc((100vw - var(--max)) / 2));
  background: var(--ink);
}

.risk-strip strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 2rem;
  line-height: 1;
}

.risk-strip span {
  color: #d9dee4;
}

.section,
.screens {
  padding: 88px max(22px, calc((100vw - var(--max)) / 2));
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow),
.demo-copy p:not(.eyebrow),
.fleet-copy p,
.download p,
.site-footer p {
  color: var(--muted);
}

.step-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.step-card,
.feature-card,
.fleet-list article {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.step-card p,
.feature-card p,
.fleet-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 32px;
  margin-bottom: 22px;
  border-radius: 8px;
  background: #eef8ee;
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 900;
}

.demo {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  gap: 36px;
  align-items: center;
  padding: 78px max(22px, calc((100vw - var(--max)) / 2));
  background: #eef3ee;
}

.demo-copy {
  max-width: 520px;
}

.demo-surface {
  padding: 24px;
  border: 1px solid #d3ddd4;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 34px rgba(21, 23, 29, 0.08);
}

.truck-demo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  min-height: 220px;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid #ccd5cf;
  border-radius: 8px;
  background: #f8faf7;
}

.truck-demo::before {
  position: absolute;
  right: 5%;
  bottom: 42px;
  left: 28%;
  height: 2px;
  content: "";
  background: #8b949e;
}

.truck-cab {
  position: absolute;
  bottom: 48px;
  left: 6%;
  width: 20%;
  height: 42%;
  border: 3px solid #6b7178;
  border-radius: 8px 3px 3px 8px;
  background: #ffffff;
}

.truck-cab::before {
  position: absolute;
  top: 16%;
  right: 12%;
  width: 44%;
  height: 34%;
  content: "";
  border-radius: 4px;
  background: #d6e4ee;
}

.truck-cab::after {
  position: absolute;
  right: -16%;
  bottom: 0;
  width: 26%;
  height: 56%;
  content: "";
  border-top: 3px solid #6b7178;
  border-right: 3px solid #6b7178;
  background: #ffffff;
}

.truck-trailer {
  position: absolute;
  right: 5%;
  bottom: 70px;
  left: 29%;
  height: 44%;
  border: 3px solid #6b7178;
  border-radius: 4px;
  background: #ffffff;
}

.cargo-block {
  position: absolute;
  top: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58%;
  border-radius: 7px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 850;
  transition: left 180ms ease, background 180ms ease;
}

.cargo-a {
  left: calc(var(--load-pos, 58) * 0.52%);
  width: 30%;
  background: var(--blue);
}

.cargo-b {
  left: 7%;
  width: 14%;
  background: var(--yellow);
  color: #242424;
}

.axle {
  position: absolute;
  bottom: 35px;
  width: 25px;
  height: 25px;
  border: 5px solid #2f343a;
  border-radius: 50%;
  background: var(--surface);
}

.axle-front {
  left: 15%;
}

.axle-drive {
  left: 27%;
}

.axle-trailer-one {
  right: 27%;
}

.axle-trailer-two {
  right: 19%;
}

.axle-trailer-three {
  right: 11%;
}

.range-label {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  color: #272b31;
  font-weight: 780;
}

.range-input {
  width: 100%;
  accent-color: var(--green-dark);
}

.axis-readout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.axis-item {
  min-height: 84px;
  padding: 14px;
  border: 1px solid #d9e2dc;
  border-radius: 8px;
  background: #f7faf7;
}

.axis-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.axis-item strong {
  color: var(--green-dark);
  font-size: 1.38rem;
  line-height: 1;
}

.axis-item.is-over {
  border-color: rgba(241, 38, 26, 0.42);
  background: #fff2f0;
}

.axis-item.is-over strong {
  color: var(--red-dark);
}

.demo-status {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #eaf8ec;
  color: var(--green-dark);
  font-weight: 850;
}

.demo-status.is-over {
  background: #fff2f0;
  color: var(--red-dark);
}

.features {
  background: var(--paper);
}

.screens {
  background: #17191f;
  color: #ffffff;
}

.screens .section-heading p:not(.eyebrow) {
  color: #cfd5dc;
}

.screens .eyebrow {
  color: var(--green);
}

.screens-row {
  display: grid;
  grid-auto-columns: minmax(210px, 260px);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.screens-row img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #ffffff;
  scroll-snap-align: start;
}

.fleet {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: start;
  padding: 88px max(22px, calc((100vw - var(--max)) / 2));
  background: #f3f6f0;
}

.fleet-copy {
  max-width: 560px;
}

.fleet-list {
  display: grid;
  gap: 14px;
}

.fleet-list article {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-height: 108px;
}

.fleet-list h3 {
  margin-bottom: 0;
}

.download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 70px max(22px, calc((100vw - var(--max)) / 2));
  background: var(--red);
  color: #ffffff;
}

.download .eyebrow,
.download p {
  color: #ffffff;
}

.download h2 {
  margin-bottom: 10px;
}

.download p {
  max-width: 620px;
  margin-bottom: 0;
}

.download .store-link {
  border-color: rgba(255, 255, 255, 0.58);
}

.download .store-link-primary {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--red-dark);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 42px max(22px, calc((100vw - var(--max)) / 2));
  background: var(--ink);
  color: #ffffff;
}

.site-footer p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: start;
  justify-content: flex-end;
  color: #e7ebf0;
  font-weight: 700;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.legal-note a:hover,
.legal-note a:focus-visible {
  color: var(--green);
}

.legal-note {
  grid-column: 1 / -1;
  max-width: 920px;
  color: #b8c0ca;
  font-size: 0.88rem;
}

.legal-note a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1060px) {
  .hero-phone-main {
    right: -34px;
    opacity: 0.82;
  }

  .hero-phone-side {
    right: 210px;
    opacity: 0.22;
  }

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

  .demo {
    grid-template-columns: 1fr;
  }

  .demo-copy {
    max-width: 700px;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 64px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 14px 32px rgba(21, 23, 29, 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 44px;
    padding: 10px 12px;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 136px);
    padding-top: 44px;
    padding-bottom: 260px;
  }

  h1 {
    font-size: 3.7rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-lead {
    font-size: 1.12rem;
  }

  .hero-phone-main {
    right: 18px;
    bottom: -34px;
    width: 210px;
    opacity: 1;
  }

  .hero-phone-side {
    right: 178px;
    bottom: 10px;
    width: 150px;
    opacity: 0.2;
  }

  .risk-strip,
  .step-grid,
  .fleet,
  .download,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .risk-strip div {
    min-height: auto;
  }

  .axis-readout {
    grid-template-columns: 1fr;
  }

  .fleet-list article {
    grid-template-columns: 1fr;
  }

  .download-actions,
  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 580px) {
  body {
    font-size: 15px;
  }

  .hero-actions,
  .download-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .store-link {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section,
  .screens,
  .fleet {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .demo {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .demo-surface {
    padding: 16px;
  }

  .truck-demo {
    min-height: 190px;
  }

  .cargo-block {
    font-size: 0.82rem;
  }

  .axle {
    width: 20px;
    height: 20px;
    border-width: 4px;
  }
}
