@font-face {
  font-family: "Overpass";
  src: url("assets/fonts/overpass.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* The app's light scheme and map style. */
  --ink: #151826;
  --muted: #5d6478;
  --primary: #4f46e5;
  --primary-soft: #e3e2ff;
  --surface: #ffffff;
  --ground: #f3f4f7;
  --line: #dde0e7;
  --warning: #ffa100;
  --critical: #dc2626;
  --info: #475569;
  --success: #16a34a;
  --radius: 10px;
  --gutter: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 1.0625rem/1.55 "Overpass", system-ui, sans-serif;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 4px 20px 0;
  border: 1px solid #878ea0; border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  font-weight: 650; text-decoration: none;
  transition: background-color .15s, border-color .15s;
}
.btn svg { flex: none; width: 20px; height: 20px; margin: -4px 8px 0 0; }
.btn:hover { background: var(--ground); border-color: var(--ink); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: #4038c9; border-color: #4038c9; }
.btn-light { background: #fff; border-color: #fff; color: #2a2391; }
.btn-light:hover { background: var(--primary-soft); border-color: var(--primary-soft); }
.btn-ghost { background: transparent; border-color: rgb(255 255 255 / .6); color: #fff; }
.btn-ghost:hover { background: rgb(255 255 255 / .12); border-color: #fff; }

/* Hero: the map fills it, and the headline sits on the map as a place's label does, in a halo of white. */
.hero { position: relative; height: clamp(760px, 100svh, 1080px); overflow: hidden; background: var(--ground); }
.hero-map { position: absolute; inset: 0; }
.hero-map svg { width: 100%; height: 100%; max-width: none; }
.hero::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 58%; pointer-events: none;
  background: linear-gradient(90deg, rgb(243 244 247 / .94) 45%, rgb(243 244 247 / 0));
}
.nav, .hero-copy, .player { z-index: 2; }

.nav {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.6rem; font-weight: 900; text-decoration: none; letter-spacing: -0.015em; }
.brand span { padding-top: 5.5px; }
.nav nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); font-weight: 600; font-size: 1rem; }
.nav nav a {
  text-decoration: none;
  paint-order: stroke fill; -webkit-text-stroke: 5px rgb(255 255 255 / .9);
}
.nav nav a:hover { color: var(--primary); }
.nav nav .nav-signin {
  padding: 8px 16px 6px; border-radius: var(--radius);
  background: var(--ink); color: #fff; -webkit-text-stroke: 0;
}
.nav nav .nav-signin:hover { background: var(--primary); color: #fff; }

.hero-copy {
  position: relative; width: min(46vw, 680px);
  padding: clamp(28px, 8vh, 96px) 0 200px var(--gutter);
}
.hero-copy h1 {
  font-size: clamp(3rem, 6.1vw, 6rem); line-height: .98;
  paint-order: stroke fill; -webkit-text-stroke: 12px rgb(255 255 255 / .85); stroke-linejoin: round;
}
.hero-copy p { max-width: 30em; margin: 22px 0 28px; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: #3a4052; }

/* What the map draws */
.map-labels text {
  font: 600 19px "Overpass", sans-serif; fill: #6b7286; text-anchor: middle;
  paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round;
}
.map-labels .road { font-size: 15px; text-anchor: start; fill: #8a7a4f; }
.geofence circle { fill: rgb(79 70 229 / .13); stroke: var(--primary); stroke-width: 1.5; }
.geofence text {
  font: 700 16px "Overpass", sans-serif; fill: #2a2391; text-anchor: middle;
  paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round;
}
.car-label text {
  font: 700 16px "Overpass", sans-serif; fill: var(--ink);
  paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round;
}
.car-label circle { fill: var(--success); stroke: #fff; stroke-width: 1.5; }

/* The player, the app's playback bar */
.player {
  position: absolute; right: var(--gutter); bottom: 28px; width: min(760px, calc(100% - 2 * var(--gutter)));
  padding: 14px 18px 12px; background: var(--surface); border-radius: 20px;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -18px rgb(21 24 38 / .35);
}
.player-top { display: flex; align-items: baseline; gap: 14px; min-height: 26px; margin-bottom: 4px; font-size: .9375rem; }
.player-where { min-width: 0; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-where strong { font-weight: 650; }
.player-event { font-weight: 650; white-space: nowrap; }
.player-event[data-level="warning"] { color: #a86a00; }
.player-event[data-level="critical"] { color: var(--critical); }
.player-event[data-level="info"] { color: var(--info); }
.player-note { margin-left: auto; color: var(--muted); font-size: .8125rem; white-space: nowrap; }

.player-main { display: flex; align-items: center; gap: 16px; }
.play {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: var(--primary); color: #fff; cursor: pointer;
}
.play:hover { background: #4038c9; }
.play svg { width: 20px; height: 20px; }

.timeline { flex: 1; min-width: 0; }
.marks { position: relative; height: 6px; margin: 0 9px 2px; }
.marks i { position: absolute; top: 0; height: 5px; border-radius: 3px; background: var(--c); }
input[type="range"] {
  display: block; width: 100%; height: 22px; margin: 0; padding: 0; background: none;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--primary) var(--p, 0%), #e4e7ed var(--p, 0%));
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: #e4e7ed; }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--primary); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px;
  border: 3px solid #fff; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 1px rgb(21 24 38 / .2);
}
input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px; border: 3px solid #fff; border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 0 1px rgb(21 24 38 / .2);
}

.readout { flex: none; display: flex; gap: 18px; font-variant-numeric: tabular-nums; }
.readout div { min-width: 56px; }
.readout div:last-child { min-width: 82px; }
.readout dt { color: var(--muted); font-size: .75rem; line-height: 1.2; }
.readout dd { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; white-space: nowrap; }

/* Vehicles, parked to scale in their bays */
.fleet { padding: clamp(64px, 9vw, 120px) var(--gutter) 0; }
.fleet-intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px clamp(32px, 6vw, 96px); align-items: end; }
.fleet-intro p { max-width: 34em; color: var(--muted); font-size: 1.125rem; }
.bays {
  --asphalt: #3a3f4e;
  --paint: #eceef3;
  --concrete: #b4b8c5;
  --kerb: 12px;
  --bay: 256px;
  --aisle: 76px;
  --kerb-layer: linear-gradient(var(--concrete) 0 0);
  --dash-layer: repeating-linear-gradient(90deg, var(--paint) 0 32px, transparent 32px 60px);
  display: grid; grid-template-columns: repeat(8, 1fr); grid-auto-rows: var(--bay);
  margin: 44px calc(-1 * var(--gutter)) 0;
  padding: var(--kerb) var(--gutter) var(--aisle);
  background:
    var(--kerb-layer) 0 0 / 100% var(--kerb) no-repeat,
    var(--dash-layer) 0 calc(var(--kerb) + var(--bay) + var(--aisle) / 2 - 2px) / 100% 4px no-repeat,
    var(--asphalt);
}
.bays li {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 36px 0 12px; border-left: 4px solid var(--paint);
  color: var(--paint); font-weight: 700; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase;
}
.bays li:last-child { border-right: 4px solid var(--paint); }
/* The wheel stop each vehicle has pulled up to */
.bays li::before {
  content: ""; position: absolute; top: 14px; left: 50%; width: 56px; height: 8px; margin-left: -28px;
  background: var(--concrete); border-radius: 3px;
}
.bays img {
  width: 60px; max-height: 160px; object-fit: contain; object-position: top;
  filter: drop-shadow(0 3px 4px rgb(0 0 0 / .4));
}
.bays span { margin-top: auto; }

/* What it does */
#fitur { padding: clamp(40px, 6vw, 80px) var(--gutter) 0; }
.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  gap: clamp(32px, 6vw, 96px); padding-block: clamp(32px, 5vw, 64px);
}
.feature-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature-flip .feature-text { order: 2; }
.feature-text > p { margin-top: 18px; max-width: 32em; color: var(--muted); font-size: 1.125rem; }
.feature-text ul { margin-top: 24px; max-width: 32em; border-top: 1px solid var(--line); }
.feature-text li { padding: 11px 0 9px; border-bottom: 1px solid var(--line); }
.shot { width: 100%; max-width: 720px; justify-self: center; }
.shot-framed { border: 1px solid var(--line); border-radius: 20px; }

.anywhere {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center;
  gap: clamp(32px, 6vw, 96px); margin-top: clamp(40px, 6vw, 80px);
  padding: clamp(48px, 6vw, 88px) var(--gutter); background: var(--ground);
}
.anywhere p { margin-top: 18px; max-width: 32em; color: var(--muted); font-size: 1.125rem; }

/* Steps, as stops along a route: it starts hollow and ends filled, as a played-back way does */
.start { padding: clamp(64px, 9vw, 120px) var(--gutter); }
.start h2 { max-width: 16em; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 52px; counter-reset: step; }
.steps li { position: relative; padding: 42px 28px 0 0; counter-increment: step; }
.steps li::before {
  content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 5px; background: var(--primary);
}
.steps li:last-child::before { right: auto; width: 0; }
.steps li::after {
  content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: 28px; height: 28px; padding-top: 2px; border: 3px solid var(--primary); border-radius: 50%;
  background: #fff; color: var(--primary); font-weight: 800; font-size: .875rem;
}
.steps li:last-child::after { background: var(--primary); color: #fff; }
.steps h3 { font-size: 1.25rem; font-weight: 750; line-height: 1.2; }
.steps p { margin-top: 8px; max-width: 24em; color: var(--muted); }

.pricing {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: start;
  gap: clamp(32px, 6vw, 96px); padding: clamp(48px, 6vw, 88px) var(--gutter); background: var(--ground);
}
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 24px; color: var(--muted); font-size: 1.125rem; }
.price strong { color: var(--primary); font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.pricing .feature-text ul { margin-top: 0; }
.pricing .feature-text > p { font-size: inherit; }

.faq {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start;
  gap: clamp(32px, 6vw, 96px); padding: clamp(64px, 9vw, 120px) var(--gutter);
}
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 16px; padding: 16px 0 14px;
  font-weight: 650; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--primary); }
.faq summary svg { flex: none; width: 20px; height: 20px; color: var(--muted); transition: transform .15s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { max-width: 38em; padding: 0 36px 18px 0; color: var(--muted); }

.cta {
  padding: clamp(72px, 10vw, 136px) var(--gutter); color: #fff;
  background: var(--primary) url("assets/map-indigo.svg") center / cover;
}
.cta h2 { font-size: clamp(2.5rem, 6vw, 5.25rem); margin-bottom: 30px; }

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px;
  padding: 24px var(--gutter); color: var(--muted); font-size: .9375rem;
}
.footer nav { display: flex; gap: 22px; }
.footer a:hover { color: var(--ink); }

/* A page to read: the privacy policy */
.legal { max-width: calc(40rem + 2 * var(--gutter)); padding: clamp(24px, 5vw, 56px) var(--gutter) clamp(48px, 7vw, 88px); }
.legal h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
.legal h2 { margin-top: 44px; font-size: 1.625rem; line-height: 1.2; letter-spacing: -0.01em; }
.legal h3 { margin: 22px 0 0; font-size: 1.0625rem; font-weight: 700; }
.legal p, .legal address { margin-top: 12px; font-style: normal; }
.legal ul { margin-top: 8px; padding-left: 1.25em; list-style: disc; }
.legal li + li { margin-top: 4px; }
.legal li::marker { color: var(--muted); }
.legal .legal-date { margin: 12px 0 28px; color: var(--muted); }
.contact-email { color: var(--primary); font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 750; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.contact-whatsapp { display: inline-flex; align-items: center; gap: 8px; font-size: 1.125rem; font-weight: 600; }
.contact-whatsapp svg { flex: none; width: 22px; height: 22px; color: #25d366; }

/* Deleting an account */
button.btn { font-family: inherit; font-size: inherit; cursor: pointer; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-danger { background: var(--critical); border-color: var(--critical); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; border-color: #b91c1c; }
.legal h1:focus { outline: none; }
.notice { padding: 18px 20px; border-left: 4px solid var(--critical); background: #fef2f2; }
.legal .notice h2 { margin-top: 0; font-size: 1.125rem; font-weight: 700; }
.form { display: grid; gap: 20px; margin-top: 28px; }
.field label { display: block; margin-bottom: 6px; font-weight: 650; }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid #878ea0; border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font: inherit;
}
.legal .hint { margin-top: 6px; color: var(--muted); font-size: .9375rem; }
.field .otp { max-width: 13rem; font-size: 1.5rem; font-weight: 700; letter-spacing: .25em; font-variant-numeric: tabular-nums; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--critical); }
.legal .form-error { margin-top: 0; color: var(--critical); font-weight: 600; }
.legal .resend { margin-top: 0; color: var(--muted); }
.link-btn {
  padding: 0; border: 0; background: none; color: var(--primary); font: inherit; font-weight: 650;
  text-decoration: underline; cursor: pointer;
}
.link-btn:disabled { color: var(--muted); text-decoration: none; cursor: not-allowed; }
.legal .form-help { margin-top: 32px; color: var(--muted); }

/* Narrow: no room beside the map, so the copy goes above it and the player below. */
@media (max-width: 960px) {
  .hero { display: flex; flex-direction: column; height: auto; }
  .hero::after { display: none; }
  .nav { padding-block: 14px; background: var(--surface); }
  .nav nav a:not(.nav-signin) { display: none; }
  .hero-copy { width: auto; padding: 16px var(--gutter) 28px; background: var(--surface); }
  .hero-copy h1 { -webkit-text-stroke: 0; font-size: clamp(2.75rem, 12vw, 4.5rem); }
  .hero-copy p { margin: 16px 0 22px; }
  .hero-map { position: relative; inset: auto; aspect-ratio: 1 / 1; max-height: 70svh; width: 100%; }
  .player {
    position: relative; right: auto; bottom: auto; width: auto;
    border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); padding-inline: var(--gutter);
  }
  .fleet-intro, .feature, .feature-flip, .anywhere, .pricing, .faq { grid-template-columns: minmax(0, 1fr); }
  .feature-flip .feature-text { order: 0; }
  /* Two rows, each with its own kerb and aisle */
  .bays {
    --aisle: 56px;
    grid-template-columns: repeat(4, 1fr); row-gap: calc(var(--aisle) + var(--kerb));
    background:
      var(--kerb-layer) 0 0 / 100% var(--kerb) no-repeat,
      var(--dash-layer) 0 calc(var(--kerb) + var(--bay) + var(--aisle) / 2 - 2px) / 100% 4px no-repeat,
      var(--kerb-layer) 0 calc(var(--kerb) + var(--bay) + var(--aisle)) / 100% var(--kerb) no-repeat,
      var(--dash-layer) 0 calc(2 * var(--kerb) + 2 * var(--bay) + 1.5 * var(--aisle) - 2px) / 100% 4px no-repeat,
      var(--asphalt);
  }
  .bays li:nth-child(4n) { border-right: 4px solid var(--paint); }
  .steps { grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
  .steps li { padding: 0 0 30px 46px; }
  .steps li::before { left: 11.5px; right: auto; top: 0; bottom: 0; width: 5px; height: auto; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li:last-child::before { display: none; }
  .steps h3 { padding-top: 3px; }
}

@media (max-width: 560px) {
  .player-note { display: none; }
  .bays li { font-size: .6875rem; letter-spacing: .02em; }
  .player-top { flex-wrap: wrap; gap: 0 12px; min-height: 48px; }
  .player-main { flex-wrap: wrap; gap: 8px 12px; }
  .timeline { flex: 1 1 calc(100% - 60px); }
  .readout { width: 100%; }
  .actions .btn-primary { flex: 1 1 100%; justify-content: center; }
  .actions .btn:not(.btn-primary):not(.btn-light) { flex: 1 1 0; justify-content: center; }
  .cta .btn-light { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary svg { transition: none; }
}
