/* ============================================================
   FleetOS product page. Everything is scoped under #flos, so the short class
   names are safe. Loaded after product-page.css, which holds what the product
   pages share (base, chips, stamp, node, rail, hero frame, question stack and
   meter, turning point, FAQ, final CTA). The 02 steps, 06 capabilities, 07
   before/after, 08 tabs and 09 timeline follow supportos.css.

   Colour meaning is fixed: red = critical, amber = warning, grey = low, green
   = done or passed; blue = FleetOS working; gold = what your team does. Gold is
   never used for anything FleetOS does. Severity always carries its word.
   GPS dots are plain white or grey: they only know where a truck is.

   Motion: markup renders in its finished state. The page script "arms" a
   section before animating it, and arming only ever changes opacity, visibility
   or transform, so nothing shifts. Logical properties throughout (RTL); the
   maps and the node diagrams are always left to right (dir="ltr" in markup).
   ============================================================ */

@keyframes fo-drift {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(calc(10px * var(--dir)));
  }
}

@keyframes fo-blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0.15;
  }
}

@keyframes fo-drain {
  from {
    transform: scaleY(1);
  }

  to {
    transform: scaleY(0.12);
  }
}

@keyframes fo-tow {
  0%,
  35% {
    transform: translateX(calc(-70px * var(--dir)));
    opacity: 0;
  }

  60%,
  100% {
    transform: none;
    opacity: 1;
  }
}

@keyframes fo-slide {
  0% {
    transform: translateX(0);
  }

  70%,
  100% {
    transform: translateX(calc(46px * var(--dir)));
  }
}

@keyframes fo-shrink {
  0%,
  15% {
    transform: scaleX(1);
  }

  70%,
  100% {
    transform: scaleX(0.18);
  }
}

@keyframes fo-ping {
  from {
    box-shadow: 0 0 0 0 var(--ping, rgb(61 107 255 / 55%));
  }

  to {
    box-shadow: 0 0 0 16px rgb(61 107 255 / 0%);
  }
}

@keyframes fo-scan {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

@keyframes fo-draw {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* ---------- base ---------- */

/* The -ink colours are the ones dark enough to read as small text on their
   own tint (AA); the plain ones are for fills, stripes and dots. */
#flos {
  --fo-crit-ink: #b42318;
  --fo-warn: #f59e0b;
  --fo-warn-ink: #92400e;
  --fo-low: var(--nlm-gray-500);
}

/* Severity chips */
#flos .sv-crit {
  --st-c: var(--fo-crit-ink);
  --st-bg: var(--nlm-danger-soft);
}

#flos :is(.sv-high, .sv-med) {
  --st-c: var(--fo-warn-ink);
  --st-bg: rgb(245 158 11 / 16%);
}

#flos .sv-low {
  --st-c: var(--nlm-fg-2);
  --st-bg: var(--nlm-gray-100);
}

#flos .sv-done {
  --st-c: var(--nlm-success);
  --st-bg: var(--nlm-success-soft);
}

#flos .dark .sv-crit {
  --st-c: #ff8a8a;
  --st-bg: rgb(239 68 68 / 16%);
}

#flos .dark :is(.sv-high, .sv-med) {
  --st-c: #fbbf24;
  --st-bg: rgb(245 158 11 / 14%);
}

/* AlertCard: a stripe at the start edge for its severity. */
#flos .alert {
  --al: var(--fo-warn);

  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--nlm-fg-1);
  background: #fff;
  border: 1px solid var(--nlm-line);
  border-inline-start: 4px solid var(--al);
  border-radius: 10px;
  padding: 8px 10px;
}

#flos .alert :is(svg, i[data-lucide]) {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: var(--al);
}

#flos .al-crit {
  --al: var(--pq-bad);
}

#flos .al-low {
  --al: var(--fo-low);
}

#flos .al-done {
  --al: var(--pq-ok);
}

#flos .dark .alert {
  color: #fff;
  background: var(--nlm-navy-800);
  border-color: var(--nlm-line-dark);
  border-inline-start-color: var(--al);
}

/* Facts FleetOS pulled out */
#flos .pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#flos .pill {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--nlm-signal-ink);
  background: var(--nlm-signal-soft);
  border-radius: 999px;
  padding: 5px 11px;
}

#flos .dark .pill {
  color: #fff;
  background: rgb(61 107 255 / 22%);
}

#flos .btn-s {
  font-size: 13px;
  padding: 8px 14px;
}

#flos .dr-a {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

/* A decision taken stays gold: it is the human's action. */
#flos .is-taken:disabled {
  opacity: 1;
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* The corridor map: thin roads, city labels, GPS dots. */
#flos .map {
  display: block;
  width: 100%;
  height: 100%;
}

#flos .road {
  fill: none;
  stroke: var(--nlm-line-strong);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#flos .city {
  fill: var(--nlm-fg-3);
}

#flos .city-l {
  font-family: var(--nlm-font-mono);
  font-size: 22px;
  letter-spacing: 0.04em;
  fill: var(--nlm-fg-3);
}

#flos .dark .road {
  stroke: rgb(255 255 255 / 16%);
}

#flos .dark :is(.city, .city-l) {
  fill: var(--nlm-navy-400);
}

/* ---------- hero ---------- */

#flos .tagline {
  font-family: var(--nlm-font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.3;
  color: var(--pq-ai);
  margin: -6px 0 16px;
}

#flos .auth {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

#flos .auth-l {
  font-family: var(--nlm-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--nlm-navy-400);
  margin-inline-end: 4px;
}

#flos .auth-b {
  font-family: var(--nlm-font-display);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 6px;
  padding: 4px 10px;
}

/* The control tower: a live console. A header bar, the process FleetOS runs
   (track, watch, detect, draft, you decide), the corridor map beside the alert
   feed, the one truck's vitals, and the work order with the human approval.
   The static frame (no script, reduced motion) is the approved work order. */
#flos .stage.ct {
  padding: 14px;
}

#flos .ct-in {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#flos .ct-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  font-family: var(--nlm-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--nlm-navy-300);
}

#flos .ct-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #5ee08a;
}

#flos .ct-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pq-ok);
  animation: fo-blink 1.4s steps(1) infinite;
}

#flos .ct-t {
  flex: 1;
  font-family: var(--nlm-font-display);
  font-size: 13px;
  letter-spacing: 0;
  color: #fff;
}

#flos .ct-clk {
  color: #fff;
}

#flos .ct-k {
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 999px;
  padding: 3px 9px;
}

#flos .ct-k.is-bad {
  color: #ff8a8a;
  border-color: rgb(239 68 68 / 45%);
}

/* The process strip: done = green tick, the step running now = blue, the
   last step (the human's) = gold. */
#flos .ct-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

#flos .ct-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--nlm-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--nlm-navy-400);
  background: rgb(255 255 255 / 4%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 8px;
  padding: 6px 8px;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

#flos .ct-sn {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgb(255 255 255 / 25%);
  color: transparent;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

#flos .ct-sn :is(svg, i[data-lucide]) {
  width: 10px;
  height: 10px;
}

#flos .ct-steps li.is-on {
  color: #fff;
  border-color: var(--nlm-signal);
  background: rgb(61 107 255 / 18%);
}

#flos .ct-steps li.is-on .ct-sn {
  border-color: var(--pq-ai);
  animation: fo-ping 1.2s ease-out infinite;
}

#flos .ct-steps li.is-done {
  color: #fff;
  border-color: rgb(34 197 94 / 40%);
}

#flos .ct-steps li.is-done .ct-sn {
  color: #fff;
  background: var(--pq-ok);
  border-color: var(--pq-ok);
}

#flos .ct-steps li.is-gold.is-done {
  color: var(--pq-gold);
  border-color: var(--pq-gold);
  background: rgb(227 178 60 / 12%);
}

#flos .ct-steps li.is-gold.is-done .ct-sn {
  color: var(--pq-gold-ink);
  background: var(--pq-gold);
  border-color: var(--pq-gold);
}

#flos .ct-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 10px;
}

#flos .ct-map {
  position: relative;
  aspect-ratio: 1000 / 560;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 12px;
  background:
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--nlm-navy-950);
}

#flos .ct-map .map {
  position: absolute;
  inset: 0;
}

#flos .ct .road {
  stroke: rgb(110 150 255 / 70%);
  stroke-width: 3;
}

#flos .ct .city {
  fill: #fff;
}

#flos .ct .city-l {
  fill: rgb(255 255 255 / 80%);
  paint-order: stroke;
  stroke: rgb(8 9 31 / 85%);
  stroke-width: 5px;
}

/* The real map's credit (OpenStreetMap's licence requires it). */
#flos .ct-credit {
  position: absolute;
  inset-block-end: 3px;
  inset-inline-end: 6px;
  z-index: 1;
  font-family: var(--nlm-font-mono);
  font-size: 8.5px;
  color: rgb(255 255 255 / 55%);
  pointer-events: none;
}

#flos .ct .gd {
  fill: #fff;
  opacity: 0.85;
  transition: opacity 0.5s;
}

#flos .ct .gd.is-hero {
  fill: var(--pq-ai);
  opacity: 1;
}

#flos .ct .gd-ring {
  fill: rgb(61 107 255 / 18%);
  stroke: var(--nlm-signal);
  stroke-width: 3;
  transition: opacity 0.5s;
}

/* The ring only goes round the truck once FleetOS is watching it. */
#flos .ct.is-armed:not([data-f="3"], [data-f="4"], [data-f="5"]) .gd-ring {
  opacity: 0;
}

#flos .ct[data-f="1"] .gd.is-hero {
  opacity: 0.85;
  fill: #fff;
}

#flos .ct[data-f="2"] .gd:not(.is-hero) {
  opacity: 0.18;
}

#flos :is(.ct-cap, .ct-neq) {
  position: absolute;
  inset-inline: 0;
  z-index: 2;
  margin: 0;
  text-align: center;
  pointer-events: none;
}

#flos .ct-cap {
  inset-block-end: 20px;
  display: grid;
  font-family: var(--nlm-font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #fff;
}

#flos .ct-cap > span {
  grid-area: 1 / 1;
}

#flos .ct-neq {
  inset-block-start: calc(50% - 18px);
  font-family: var(--nlm-font-display);
  font-weight: 800;
  font-size: clamp(18px, 2vw, 24px);
  color: #fff;
  text-shadow: 0 4px 20px rgb(8 9 31 / 90%);
}

#flos .ct-feed {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#flos .ct-h {
  margin: 0;
  font-family: var(--nlm-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nlm-navy-400);
}

#flos .ct-feed .alert {
  flex: 1;
  align-items: center;
  font-size: 11.5px;
  padding: 6px 9px;
}

#flos .ct-vitals {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 6px;
}

#flos .ct-trk {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--nlm-font-mono);
  font-weight: 600;
  font-size: 11px;
  color: #fff;
  background: var(--nlm-signal);
  border-radius: 999px;
  padding: 3px 10px;
}

#flos .ct-trk :is(svg, i[data-lucide]) {
  width: 14px;
  height: 14px;
}

#flos .ct-v {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  font-size: 10.5px;
  line-height: 1.3;
  color: #fff;
  background: rgb(61 107 255 / 10%);
  border: 1px solid rgb(61 107 255 / 35%);
  border-radius: 8px;
  padding: 6px 7px;
}

#flos .ct-v :is(svg, i[data-lucide]) {
  flex: none;
  width: 13px;
  height: 13px;
  color: var(--pq-ai);
}

#flos .ct-v > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

#flos .ct-v b {
  font-family: var(--nlm-font-mono);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--pq-ai);
}

#flos .ct-v.is-warn {
  background: rgb(239 68 68 / 12%);
  border-color: rgb(239 68 68 / 45%);
}

#flos .ct-v.is-warn :is(b, svg, i[data-lucide]) {
  color: #ff8a8a;
}

/* Slots still waiting for FleetOS: dashed outlines, so the console keeps its
   shape while the story fills it in. */
#flos .ct :is(.alert, .ct-v, .wo) {
  transition: opacity 0.35s var(--nlm-ease), transform 0.45s var(--nlm-ease-soft), color 0.3s, background 0.3s, border-color 0.3s;
}

#flos .ct :is(.alert, .ct-v, .wo).is-off {
  opacity: 1;
  transform: none;
  color: transparent;
  background: transparent;
  border: 1px dashed rgb(255 255 255 / 14%);
}

#flos .ct :is(.alert, .ct-v, .wo).is-off :is(svg, i[data-lucide], b, span) {
  color: transparent;
  opacity: 0;
}

#flos .ct-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding-top: 10px;
  border-top: 1px solid rgb(255 255 255 / 10%);
}

#flos .ct-arrow {
  width: 18px;
  height: 18px;
  color: var(--nlm-navy-400);
}

#flos .fh-end {
  position: absolute;
  inset: -14px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  background: var(--nlm-navy-950);
  border-radius: 18px;
  pointer-events: none;
}

#flos .fh-word {
  font-family: var(--nlm-font-display);
  font-weight: 800;
  font-size: clamp(44px, 5.4vw, 68px);
  letter-spacing: -0.035em;
  color: #fff;
  line-height: 1;
}

#flos .fh-by {
  font-family: var(--nlm-font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--nlm-navy-300);
}

#flos .eco-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

#flos .eco-links line {
  stroke: var(--nlm-signal);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  transition: opacity 0.5s var(--nlm-ease);
  transition-delay: calc(var(--i) * 70ms);
}

#flos .wo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 12.5px;
  color: var(--nlm-fg-2);
  background: #fff;
  border: 1px solid var(--nlm-line);
  border-radius: 12px;
  padding: 9px 12px;
}

#flos .wo :is(svg, i[data-lucide]) {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--nlm-signal);
}

#flos .wo > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#flos .wo b {
  font-family: var(--nlm-font-display);
  font-size: 14px;
  color: var(--nlm-fg-1);
}

#flos .dark .wo {
  color: var(--nlm-navy-300);
  background: var(--nlm-navy-800);
  border-color: rgb(61 107 255 / 50%);
}

#flos .dark .wo b {
  color: #fff;
}

/* ---------- 01 the questions ---------- */

#flos .qa {
  height: 104px;
}

#flos .qn {
  font-family: var(--nlm-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--nlm-danger);
  margin-bottom: 8px;
}

#flos .qa-note {
  font-family: var(--nlm-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nlm-fg-3);
}

#flos .qa-note b {
  display: block;
  font-family: var(--nlm-font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0;
  color: var(--nlm-danger);
}

/* Q1: a dot that never moves while the fuel drains */
#flos .qa-dot {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--nlm-gray-500);
  box-shadow: 0 0 0 6px var(--nlm-gray-100);
}

#flos .qa-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--nlm-font-mono);
  font-size: 9.5px;
  color: var(--nlm-fg-3);
}

#flos .qa-gauge i {
  position: relative;
  width: 16px;
  height: 46px;
  border: 1.5px solid var(--nlm-line-strong);
  border-radius: 4px;
  overflow: hidden;
}

#flos .qa-gauge i::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 2px;
  background: var(--pq-amber);
  transform-origin: 50% 100%;
  animation: fo-drain 5s ease-in infinite;
}

/* Q2: hazard lights on the hard shoulder, then the tow truck */
#flos .qa-2 {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

#flos .qa-road {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  border-bottom: 2px dashed var(--nlm-line-strong);
  padding-bottom: 6px;
}

#flos .qa-truck {
  position: relative;
  color: var(--nlm-fg-2);
}

#flos .qa-road :is(svg, i[data-lucide]) {
  width: 34px;
  height: 34px;
}

#flos .qa-haz {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pq-amber);
  animation: fo-blink 0.9s steps(1) infinite;
}

#flos .qa-tow {
  color: var(--nlm-danger);
  animation: fo-tow 4.5s var(--nlm-ease-soft) infinite;
}

/* Q3: five anonymous drivers; one costs you, and nobody knows who */
#flos .qa-drivers {
  display: flex;
  gap: 8px;
}

#flos .drv {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nlm-fg-3);
  background: var(--nlm-gray-100);
}

#flos .drv :is(svg, i[data-lucide]) {
  width: 20px;
  height: 20px;
}

#flos .drv.is-bad {
  color: #fff;
  background: var(--pq-bad);
  animation: fo-blink 1.6s steps(1) infinite;
}

#flos .drv b {
  position: absolute;
  inset-block-start: -10px;
  inset-inline-end: -12px;
  font-family: var(--nlm-font-display);
  font-size: 11px;
  color: var(--nlm-danger);
  background: #fff;
  border: 1px solid var(--nlm-danger);
  border-radius: 999px;
  padding: 0 5px;
}

/* Q4: documents sliding towards the expiry line */
#flos .qa-4 {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
}

#flos .qa-docs {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
}

#flos .doc {
  font-family: var(--nlm-font-mono);
  font-size: 10px;
  color: var(--nlm-fg-2);
  background: var(--nlm-gray-50);
  border: 1px solid var(--nlm-line-strong);
  border-radius: 999px;
  padding: 4px 8px;
  animation: fo-slide 5s var(--nlm-ease) infinite;
  animation-delay: calc(var(--i) * 0.25s);
}

#flos .qa-line {
  position: absolute;
  inset-block: -10px;
  inset-inline-end: 0;
  border-inline-start: 2px solid var(--pq-bad);
}

#flos .qa-line span {
  position: absolute;
  inset-block-start: -14px;
  inset-inline-end: 4px;
  font-family: var(--nlm-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nlm-danger);
}

#flos .qa-fine {
  animation: pq-seq 5s infinite;
  animation-delay: 2.4s;
}

/* Q5: costs bite into the revenue bar until the margin is a question mark */
#flos .qa-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  font-family: var(--nlm-font-mono);
  font-size: 10px;
  color: var(--nlm-fg-3);
}

#flos :is(.qa-rev, .qa-mgn) {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

#flos :is(.qa-rev, .qa-mgn) i {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: var(--nlm-signal);
  transform-origin: 0 50%;
}

[dir="rtl"] #flos :is(.qa-rev, .qa-mgn) i {
  transform-origin: 100% 50%;
}

#flos .qa-rev {
  grid-template-columns: 64px minmax(0, 1fr);
}

/* At rest (reduced motion) the margin is already the sliver that is left. */
#flos .qa-mgn i {
  background: var(--pq-ok);
  transform: scaleX(0.18);
  animation: fo-shrink 5s var(--nlm-ease) infinite;
}

#flos .qa-mgn b {
  font-family: var(--nlm-font-display);
  font-size: 22px;
  color: var(--nlm-danger);
}

#flos .qchips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#flos .qchip {
  font: inherit;
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--nlm-fg-1);
  background: #fff;
  border: 1px solid var(--nlm-line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

#flos .qchip[aria-pressed="true"] {
  color: #fff;
  background: var(--nlm-navy-900);
  border-color: var(--nlm-navy-900);
}

#flos .qsay {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--nlm-fg-2);
  margin: 12px 0 0;
}

/* the meter */
#flos .meter-h {
  margin: 0 0 14px;
}

#flos .meter-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  font-size: 13px;
}

#flos .meter-rows > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

#flos .meter-rows dd {
  margin: 0;
  font-family: var(--nlm-font-mono);
  font-weight: 600;
  white-space: nowrap;
  color: #ff8a8a;
}

#flos .meter-x {
  display: block;
  font-family: var(--nlm-font-mono);
  font-size: 11px;
  color: var(--nlm-navy-400);
}

#flos .qrate {
  margin-top: 0;
}

#flos .qrate input {
  width: 112px;
}

/* ---------- what if ---------- */

#flos .turn-flow {
  gap: 6px;
}

#flos .turn-flow li {
  font-size: 13.5px;
  padding: 7px 12px;
}

#flos .turn-q + .turn-q {
  margin-top: 10px;
}

/* ---------- 02 the solution: dot -> ecosystem, then six steps ---------- */

#flos .eco {
  margin-bottom: clamp(48px, 6vw, 72px);
}

#flos .eco-top {
  min-height: 40px;
  margin-bottom: 18px;
}

#flos .seg-d {
  border-color: rgb(255 255 255 / 24%);
}

#flos .seg-d button {
  color: var(--nlm-navy-300);
}

#flos .seg-d button[aria-pressed="true"] {
  color: var(--nlm-navy-950);
  background: #fff;
}

#flos .eco-g {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}

#flos .eco-stage {
  position: relative;
  height: 340px;
  border: 1px solid var(--nlm-line-dark);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 50%, rgb(61 107 255 / 18%), transparent 55%),
    var(--nlm-navy-900);
}

#flos .eco-dot {
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nlm-navy-950);
  background: #fff;
  transition: background 0.4s, color 0.4s;
}

#flos .eco-dot :is(svg, i[data-lucide]) {
  width: 24px;
  height: 24px;
}

#flos .eco-ring {
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 2px solid var(--nlm-signal);
  box-shadow: 0 0 24px var(--pq-glow);
  transition: opacity 0.4s;
}

#flos .eco-id {
  position: absolute;
  inset-inline-start: 50%;
  top: calc(50% + 40px);
  translate: -50% 0;
  font-family: var(--nlm-font-mono);
  font-size: 11px;
  color: var(--nlm-navy-300);
}

#flos .eco-n {
  position: absolute;
  inset-inline-start: var(--x);
  top: var(--y);
  translate: -50% -50%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: inherit;
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: #fff;
  background: var(--nlm-navy-800);
  border: 1px solid rgb(61 107 255 / 55%);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: opacity 0.4s var(--nlm-ease), transform 0.5s var(--nlm-ease-soft), background 0.2s;
  transition-delay: calc(var(--i) * 70ms), calc(var(--i) * 70ms), 0s;
}

#flos .eco-n :is(svg, i[data-lucide]) {
  width: 15px;
  height: 15px;
  color: var(--pq-ai);
}

#flos .eco-n[aria-pressed="true"] {
  background: var(--nlm-signal);
  border-color: var(--nlm-signal);
}

#flos .eco-n[aria-pressed="true"] :is(svg, i[data-lucide]) {
  color: #fff;
}

#flos .eco-card {
  border-radius: 16px;
  padding: 18px 20px;
  transition: opacity 0.4s var(--nlm-ease);
}

#flos .eco-card .panel-t {
  display: flex;
  align-items: center;
  gap: 8px;
}

#flos .eco-card .panel-t :is(svg, i[data-lucide]) {
  width: 14px;
  height: 14px;
}

#flos .eco-gps {
  color: var(--nlm-navy-300);
  background: rgb(255 255 255 / 4%);
  border: 1px dashed rgb(255 255 255 / 22%);
  margin-bottom: 12px;
}

#flos .eco-gps .panel-t {
  color: var(--nlm-navy-400);
}

#flos .eco-gps ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-family: var(--nlm-font-mono);
  font-size: 12.5px;
}

#flos .eco-fleet {
  background: var(--nlm-navy-900);
  border: 1px solid rgb(61 107 255 / 55%);
}

#flos .eco-fleet .panel-t {
  color: var(--pq-ai);
}

#flos .eco-hint {
  font-size: 13px;
  color: var(--nlm-navy-400);
  margin: 12px 0 0;
}

/* GPS only: a plain dot, one grey card, nothing else. */
#flos .eco[data-mode="gps"] .eco-n {
  opacity: 0;
  transform: scale(0.3);
  pointer-events: none;
  transition-delay: 0s;
}

#flos .eco[data-mode="gps"] .eco-links line {
  opacity: 0;
  transition-delay: 0s;
}

#flos .eco[data-mode="gps"] .eco-ring {
  opacity: 0;
}

#flos .eco[data-mode="gps"] .eco-dot {
  color: var(--nlm-navy-950);
  background: var(--nlm-gray-300);
}

#flos .eco[data-mode="gps"] :is(.eco-fleet, .eco-hint) {
  opacity: 0.18;
}

#flos .eco[data-mode="fleet"] .eco-gps {
  opacity: 0.55;
}

#flos .flow-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

#flos .flow-ai {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--nlm-font-display);
  font-weight: 700;
  font-size: clamp(19px, 2vw, 24px);
  color: #fff;
}

#flos .flow-ai .node {
  width: 52px;
  height: 52px;
}

#flos .flow-ai .node-core {
  width: 40px;
  height: 40px;
}

#flos .flow-ai .node-core :is(svg, i[data-lucide]) {
  width: 18px;
  height: 18px;
}

#flos .flow-replay {
  padding-inline: 12px 16px;
}

#flos .flow-replay :is(svg, i[data-lucide]) {
  width: 15px;
  height: 15px;
}

#flos .steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

#flos .step {
  background: var(--nlm-navy-800);
  border: 1px solid var(--nlm-line-dark);
  border-radius: 14px;
  padding: 20px 18px;
  transition: border-color 0.35s, opacity 0.35s;
}

#flos .step.is-done {
  border-color: rgb(34 197 94 / 45%);
}

#flos .step.is-gold.is-done {
  border-color: var(--pq-gold);
}

#flos .flow.is-armed .step:not(.is-done) {
  opacity: 0.45;
}

#flos .step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

#flos .step .ico {
  width: 36px;
  height: 36px;
  background: rgb(61 107 255 / 18%);
  color: var(--pq-ai);
}

#flos .step.is-gold .ico {
  background: rgb(227 178 60 / 18%);
  color: var(--pq-gold);
}

#flos .step-n {
  font-family: var(--nlm-font-mono);
  font-size: 11px;
  color: var(--nlm-navy-400);
}

#flos .step h4 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  margin: 0 0 8px;
}

#flos .step p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--nlm-navy-300);
  margin: 0;
}

#flos .ck {
  flex: none;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgb(255 255 255 / 25%);
  color: transparent;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

#flos .ck :is(svg, i[data-lucide]) {
  width: 12px;
  height: 12px;
}

#flos .step.is-done .ck {
  background: var(--pq-ok);
  border-color: var(--pq-ok);
  color: #fff;
}

#flos .step.is-gold.is-done .ck {
  background: var(--pq-gold);
  border-color: var(--pq-gold);
  color: var(--pq-gold-ink);
}

#flos .flow.is-armed .step.is-done .ck {
  animation: pq-pop 0.4s var(--nlm-ease-soft);
}

/* ---------- 03 see it work: one day on the corridor ---------- */

#flos .day-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

#flos .day-ctl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#flos .day-n {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

#flos .day-n li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--nlm-line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--nlm-fg-2);
}

#flos .day-n b {
  font-family: var(--nlm-font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.1;
  color: var(--nlm-fg-1);
}

[dir="rtl"] #flos .day-n b.ltr {
  text-align: end;
}

#flos .day-n .is-bad b {
  color: var(--nlm-danger);
}

#flos .day-n .is-ai b {
  color: var(--nlm-signal-ink);
}

#flos .day-g {
  display: grid;
  grid-template: "tower feed" auto "drawer drawer" auto / minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 14px;
}

#flos .tower {
  grid-area: tower;
  position: relative;
  aspect-ratio: 1000 / 560;
  background: #fff;
  border: 1px solid var(--nlm-line);
  border-radius: 16px;
  overflow: hidden;
}

#flos .tower .map {
  position: absolute;
  inset: 0;
}

/* A truck: a real button on the map. Grey = nothing to report. */
#flos .trk {
  --tc: var(--nlm-gray-500);

  position: absolute;
  inset-inline-start: var(--x);
  top: var(--y);
  translate: -50% -50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

#flos .trk i {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--tc);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgb(8 9 31 / 30%);
  transition: transform 0.2s;
}

#flos .trk:hover i,
#flos .trk.is-sel i {
  transform: scale(1.35);
}

#flos .trk.is-sel i {
  box-shadow: 0 0 0 4px rgb(61 107 255 / 35%);
}

#flos .trk.sv-crit {
  --tc: var(--pq-bad);
}

#flos .trk:is(.sv-high, .sv-med) {
  --tc: var(--fo-warn);
}

#flos .trk.sv-done {
  --tc: var(--pq-ok);
}

#flos .trk.is-ping i {
  animation: fo-ping 0.9s ease-out 2;
}

/* Before its event fires, a truck is only a GPS dot. */
#flos .day.is-armed .trk.is-quiet {
  --tc: var(--nlm-gray-500);
}

#flos .feed {
  grid-area: feed;
  position: relative;
  min-height: 300px;
  background: #fff;
  border: 1px solid var(--nlm-line);
  border-radius: 16px;
  overflow: hidden;
}

#flos .feed-h {
  margin: 0;
  padding: 12px 14px;
  font-family: var(--nlm-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nlm-fg-3);
  border-bottom: 1px solid var(--nlm-line);
}

#flos .feed-l {
  position: absolute;
  inset: 41px 0 0;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#flos .ev {
  --al: var(--fo-warn);

  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  text-align: start;
  color: var(--nlm-fg-2);
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--nlm-line);
  border-inline-start: 4px solid var(--al);
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s;
}

#flos .ev:hover,
#flos .ev.is-sel {
  background: var(--nlm-gray-50);
}

#flos .ev.is-sel {
  box-shadow: inset 0 0 0 2px rgb(61 107 255 / 35%);
}

#flos .ev:focus-visible {
  outline-offset: -3px;
}

#flos .ev.al-crit {
  --al: var(--pq-bad);
}

#flos .ev.al-low {
  --al: var(--fo-low);
}

#flos .ev.al-done {
  --al: var(--pq-ok);
}

#flos .ev-m {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--nlm-font-mono);
  font-size: 11px;
  color: var(--nlm-fg-3);
}

#flos .ev-t {
  font-size: 13px;
  line-height: 1.4;
  color: var(--nlm-fg-1);
}

#flos .ev-done {
  position: absolute;
  top: 10px;
  inset-inline-end: 12px;
  color: var(--pq-gold);
}

#flos .ev-done :is(svg, i[data-lucide]) {
  width: 18px;
  height: 18px;
}

#flos .drawer {
  grid-area: drawer;
  min-height: 210px;
}

#flos .dr-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

#flos .dr-id {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--nlm-fg-3);
}

#flos .dr-id :is(svg, i[data-lucide]) {
  width: 18px;
  height: 18px;
  color: var(--nlm-fg-1);
}

#flos .dr-id b {
  font-family: var(--nlm-font-display);
  font-size: 18px;
  color: var(--nlm-fg-1);
}

#flos .dr-g {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
  margin-bottom: 14px;
}

#flos .dr-g > div {
  border-radius: 12px;
  padding: 14px 16px;
}

#flos .dr-g .panel-t {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

#flos .dr-g .panel-t :is(svg, i[data-lucide]) {
  width: 14px;
  height: 14px;
}

#flos .dr-gps {
  color: var(--nlm-fg-2);
  background: var(--nlm-gray-50);
  border: 1px dashed var(--nlm-line-strong);
}

#flos .dr-gps p:last-child {
  margin: 0;
  font-family: var(--nlm-font-mono);
  font-size: 13px;
}

#flos .dr-fleet {
  background: rgb(61 107 255 / 6%);
  border: 1px solid rgb(61 107 255 / 30%);
}

#flos .dr-fleet .panel-t {
  color: var(--nlm-signal-ink);
}

#flos .dr-caught {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--nlm-fg-1);
  margin: 0 0 10px;
}

#flos .dr-stake {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--nlm-fg-3);
}

#flos .dr-stake b {
  font-family: var(--nlm-font-mono);
  font-size: 14px;
  color: var(--nlm-danger);
}

#flos .dr-quiet {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--nlm-fg-2);
}

#flos .drawer.is-quiet :is(.dr-g, .dr-a) {
  display: none;
}

/* ---------- 04 vehicles, drivers, riyals ---------- */

#flos .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

#flos .tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--nlm-fg-2);
  background: #fff;
  border: 1px solid var(--nlm-line-strong);
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

#flos .tab :is(svg, i[data-lucide]) {
  width: 16px;
  height: 16px;
}

#flos .tab[aria-selected="true"] {
  color: #fff;
  background: var(--nlm-navy-900);
  border-color: var(--nlm-navy-900);
}

#flos .vp {
  background: var(--nlm-gray-50);
  border: 1px solid var(--nlm-line);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 32px);
  animation: pq-rise 0.45s var(--nlm-ease-soft);
}

#flos .vq {
  font-family: var(--nlm-font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.25;
  color: var(--nlm-fg-1);
  margin: 0 0 18px;
}

#flos .vnote {
  font-size: 13px;
  font-style: italic;
  color: var(--nlm-fg-3);
  margin: 14px 0 0;
}

/* Tab A: vehicle health */
#flos .hl-g {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
  align-items: start;
}

#flos .hl-r {
  width: 100%;
  margin: 8px 0 18px;
  accent-color: var(--nlm-signal);
}

#flos .vp .qctl output {
  color: var(--nlm-fg-1);
}

#flos .parts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

#flos .parts li {
  display: grid;
  grid-template-columns: minmax(0, 120px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: var(--nlm-fg-1);
}

#flos .pbar {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: var(--nlm-gray-100);
  overflow: hidden;
}

#flos .pbar i {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: var(--pq-ok);
  transform-origin: 0 50%;
  transform: scaleX(var(--f));
  transition: transform 0.3s var(--nlm-ease), background 0.3s;
}

[dir="rtl"] #flos .pbar i {
  transform-origin: 100% 50%;
}

#flos .parts .is-warn .pbar i {
  background: var(--pq-bad);
}

#flos .pv {
  min-width: 13ch;
  white-space: nowrap;
  font-family: var(--nlm-font-mono);
  font-size: 11.5px;
  color: var(--nlm-fg-3);
  text-align: end;
}

#flos .parts .is-warn .pv {
  color: var(--nlm-danger);
}

#flos .hl-fault {
  margin: 14px 0 0;
}

#flos .hl-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#flos .hl-watch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  color: var(--nlm-fg-2);
  background: #fff;
  border: 1px dashed var(--nlm-line-strong);
  border-radius: 12px;
  padding: 14px 16px;
}

#flos .hl-watch :is(svg, i[data-lucide]) {
  width: 18px;
  height: 18px;
  color: var(--nlm-signal);
}

#flos .wo-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid rgb(61 107 255 / 35%);
  border-radius: 14px;
  padding: 14px 16px;
  animation: pq-rise 0.4s var(--nlm-ease-soft);
}

#flos .wo-card .wo {
  border: 0;
  padding: 0;
}

#flos .cmp {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#flos .cmp-c {
  background: #fff;
  border: 1px solid var(--nlm-line);
  border-top: 3px solid var(--pq-bad);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--nlm-fg-1);
}

#flos .cmp-c.is-ok {
  border-top-color: var(--pq-ok);
}

#flos .cmp-c p {
  margin: 0;
}

#flos .cmp-c .panel-t {
  margin-bottom: 6px;
}

#flos .cmp-s {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
  color: var(--nlm-fg-3);
}

#flos .cmp-s b {
  font-family: var(--nlm-font-display);
  font-size: 17px;
  color: var(--nlm-success);
}

/* Tab B: the driver scorecard */
#flos .sc-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--nlm-line);
  border-radius: 14px;
}

#flos .sc {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

#flos .sc :is(th, td) {
  text-align: start;
  padding: 10px 14px;
  border-bottom: 1px solid var(--nlm-line);
  white-space: nowrap;
}

#flos .sc thead th {
  font-family: var(--nlm-font-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nlm-fg-3);
}

#flos .sc tbody tr:last-child :is(th, td) {
  border-bottom: 0;
}

#flos .sc tr.is-sel {
  background: rgb(61 107 255 / 5%);
}

#flos .sc-n {
  font: inherit;
  font-weight: 600;
  color: var(--nlm-signal-ink);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgb(61 107 255 / 35%);
  text-underline-offset: 3px;
}

#flos .score {
  display: inline-block;
  min-width: 38px;
  text-align: center;
  font-family: var(--nlm-font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--nlm-fg-1);
  background: var(--nlm-gray-100);
  border-radius: 8px;
  padding: 3px 6px;
}

#flos .s-coach {
  color: var(--fo-crit-ink);
  background: var(--nlm-danger-soft);
}

#flos .s-top {
  color: var(--nlm-success);
  background: var(--nlm-success-soft);
}

#flos .sc-a {
  display: flex;
  align-items: center;
  gap: 10px;
}

#flos .week {
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--nlm-line);
  border-radius: 14px;
  padding: 14px 16px;
  animation: pq-rise 0.35s var(--nlm-ease-soft);
}

#flos .week-d {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

#flos .week-d li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
}

#flos .week-d b {
  font-family: var(--nlm-font-mono);
  font-weight: 500;
  font-size: 11px;
  color: var(--nlm-fg-3);
}

#flos .wk {
  color: var(--fo-warn-ink);
  background: rgb(245 158 11 / 14%);
  border-radius: 6px;
  padding: 4px 7px;
}

#flos .wk-ok {
  color: var(--nlm-fg-3);
  background: var(--nlm-gray-50);
}

/* Tab C: cost per km, revenue down to margin */
#flos .seg-l {
  margin-bottom: 18px;
  background: #fff;
}

#flos .wf {
  list-style: none;
  margin: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--nlm-line);
  border-radius: 14px;
}

#flos .wf li {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 64px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--nlm-fg-1);
}

#flos .wf b {
  font-family: var(--nlm-font-mono);
  font-weight: 600;
  text-align: end;
}

#flos .wf-t {
  position: relative;
  height: 18px;
}

/* the zero line */
#flos .wf-t::before {
  content: "";
  position: absolute;
  inset-block: -5px;
  inset-inline-start: var(--z);
  border-inline-start: 1px dashed var(--nlm-line-strong);
}

#flos .wf-t i {
  position: absolute;
  inset-block: 0;
  inset-inline-start: var(--a);
  width: var(--w);
  border-radius: 4px;
  background: var(--pq-amber);
  opacity: 0.85;
}

#flos .wf-revenue i {
  background: var(--nlm-signal);
  opacity: 1;
}

#flos .wf-margin {
  border-top: 1px solid var(--nlm-line);
  padding-top: 8px;
  font-weight: 700;
}

#flos .wf-margin i {
  background: var(--pq-ok);
  opacity: 1;
}

#flos .wf-margin b {
  color: var(--nlm-success);
}

#flos .wf-margin.is-neg i {
  background: var(--pq-bad);
}

#flos .wf-margin.is-neg b {
  color: var(--nlm-danger);
}

#flos .wf-loss {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

/* ---------- 05 compliance gate ---------- */

#flos .gate {
  background: var(--nlm-navy-900);
  border: 1px solid var(--nlm-line-dark);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 28px);
  margin-bottom: clamp(28px, 4vw, 44px);
}

#flos .gate-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

#flos .checks {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

#flos .chk {
  --ck: var(--nlm-navy-600);

  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #fff;
  background: rgb(255 255 255 / 4%);
  border: 1px solid var(--nlm-line-dark);
  border-top: 3px solid var(--ck);
  border-radius: 12px;
  padding: 12px;
  transition: border-color 0.3s, opacity 0.3s;
}

#flos .chk-i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--ck);
  transition: background 0.3s;
}

#flos .chk-i :is(svg, i[data-lucide]) {
  width: 15px;
  height: 15px;
}

#flos .chk :is(.i-pass, .i-fail) {
  display: none;
}

#flos .chk.is-pass {
  --ck: var(--pq-ok);
}

#flos .chk.is-pass .i-pass,
#flos .chk.is-fail .i-fail {
  display: inline-block;
}

#flos .chk.is-fail {
  --ck: var(--pq-bad);

  background: rgb(239 68 68 / 10%);
}

#flos .chk-r {
  font-size: 12.5px;
  color: #ff8a8a;
}

#flos .chk-r:empty {
  display: none;
}

/* Not checked yet, or only at invoicing: the card stays readable, only its
   mark and its stripe go quiet. */
#flos .chk:is(.is-skip, .is-later) {
  color: var(--nlm-navy-300);
}

#flos .chk:is(.is-skip, .is-later) .chk-i {
  opacity: 0.45;
}

#flos .chk.is-later {
  border-style: dashed;
}

/* Checking: the scanning bar crosses the card. */
#flos .chk.is-scan::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgb(61 107 255 / 35%), transparent);
  animation: fo-scan 0.8s linear infinite;
}

[dir="rtl"] #flos .chk.is-scan::after {
  animation-direction: reverse;
}

#flos .gate-out {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  min-height: 46px;
}

#flos .gate-out .st {
  font-size: 12px;
  padding: 6px 12px;
}

#flos .pillars {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

#flos .pillars li {
  background: var(--nlm-navy-900);
  border: 1px solid var(--nlm-line-dark);
  border-radius: 14px;
  padding: 18px 16px;
}

#flos .pillars .ico {
  background: rgb(61 107 255 / 18%);
  color: var(--pq-ai);
}

#flos .pillars h3 {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 12px 0 6px;
  font-family: var(--nlm-font-display);
  font-size: 17px;
  color: #fff;
}

#flos .pillars h3 span {
  font-family: var(--nlm-font-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--nlm-navy-400);
}

#flos .pillars p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--nlm-navy-300);
  margin: 0;
}

#flos .cover {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  font-size: 15px;
  color: var(--nlm-navy-300);
}

#flos .cover b {
  font-family: var(--nlm-font-display);
  font-weight: 800;
  font-size: 30px;
  color: #5ee08a;
}

/* ---------- 06 capabilities ---------- */

#flos .cloud {
  list-style: none;
  margin: 0 0 clamp(28px, 4vw, 44px);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#flos .cloud li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--nlm-fg-1);
  background: #fff;
  border: 1px solid rgb(61 107 255 / 35%);
  border-radius: 999px;
  padding: 8px 15px;
}

#flos .cloud :is(svg, i[data-lucide]) {
  width: 14px;
  height: 14px;
  color: var(--nlm-signal);
}

#flos .cloud.is-armed li {
  opacity: 0;
  transform: translateY(8px) scale(0.94);
}

#flos .cloud.is-armed.is-in li {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s var(--nlm-ease), transform 0.45s var(--nlm-ease-soft);
  transition-delay: calc(var(--i) * 60ms);
}

#flos .feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

#flos .feat {
  background: #fff;
  border: 1px solid var(--nlm-line);
  border-radius: 14px;
  padding: 16px;
  transition: transform 0.25s var(--nlm-ease), box-shadow 0.25s var(--nlm-ease);
}

#flos .feat:hover {
  transform: translateY(-4px);
  box-shadow: var(--nlm-shadow-md);
}

#flos .feat h3 {
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.3;
  color: var(--nlm-fg-1);
  margin: 12px 0 6px;
}

#flos .feat p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--nlm-fg-2);
  margin: 0;
}

#flos .roles {
  margin-top: clamp(24px, 3vw, 36px);
}

#flos .roles ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

#flos .roles li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--nlm-fg-2);
  background: #fff;
  border: 1px solid var(--nlm-line);
  border-radius: 12px;
  padding: 12px;
}

#flos .roles b {
  font-family: var(--nlm-font-display);
  font-size: 13.5px;
  color: var(--nlm-fg-1);
}

/* ---------- 07 before / after ---------- */

#flos .out-sw {
  margin-bottom: 20px;
}

#flos .out-g {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
}

#flos .core {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  font-size: 13.5px;
  line-height: 1.35;
}

#flos .core :is(th, td) {
  text-align: start;
  font-weight: 500;
  padding: 9px 12px;
  background: var(--nlm-navy-900);
  border-block: 1px solid var(--nlm-line-dark);
  transition: color 0.4s var(--nlm-ease), opacity 0.4s var(--nlm-ease);
}

#flos .core :is(th, td):first-child {
  border-inline-start: 1px solid var(--nlm-line-dark);
  border-start-start-radius: 10px;
  border-end-start-radius: 10px;
}

#flos .core :is(th, td):last-child {
  border-inline-end: 1px solid var(--nlm-line-dark);
  border-start-end-radius: 10px;
  border-end-end-radius: 10px;
}

#flos .core thead th {
  font-family: var(--nlm-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nlm-navy-400);
  background: transparent;
  border-color: transparent;
  padding-block: 0 2px;
}

#flos .core thead th:is(:first-child, :last-child) {
  border-color: transparent;
}

#flos .core td {
  position: relative;
  padding-inline-start: 32px;
}

#flos .core td :is(svg, i[data-lucide]) {
  position: absolute;
  top: calc(50% - 7px);
  inset-inline-start: 10px;
  width: 14px;
  height: 14px;
  color: var(--nlm-navy-600);
}

#flos .c-pain {
  color: var(--nlm-navy-400);
  text-decoration: line-through;
  text-decoration-color: rgb(255 255 255 / 30%);
}

#flos .c-ai {
  color: var(--pq-ai);
}

#flos .c-out {
  color: #5ee08a;
  font-weight: 600;
}

/* The last row is the human one: readable in both states, its outcome gold. */
#flos .is-human .c-pain {
  color: #fff;
  text-decoration: none;
}

#flos .is-human .c-ai {
  color: var(--nlm-navy-400);
}

#flos .is-human .c-out {
  color: var(--pq-gold);
}

#flos [data-state="before"] tr:not(.is-human) .c-pain {
  color: #ff8a8a;
  text-decoration-color: transparent;
}

/* Before FleetOS there is no AI action and no outcome to show: the cells
   stay, empty. */
#flos .core :is(.c-ai, .c-out) > * {
  transition: opacity 0.4s var(--nlm-ease), visibility 0s;
}

#flos [data-state="before"] tr:not(.is-human) :is(.c-ai, .c-out) > * {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--nlm-ease), visibility 0s 0.4s;
}

/* The morning fleet brief */
#flos .report {
  position: relative;
  background: var(--nlm-navy-900);
  border: 1px solid var(--nlm-line-dark);
  border-radius: 16px;
  overflow: hidden;
  color: var(--nlm-navy-300);
}

#flos .report-b {
  padding: clamp(18px, 2vw, 24px);
}

#flos .report-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 14px;
  font-family: var(--nlm-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#flos .report-h strong {
  font-family: var(--nlm-font-display);
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
}

#flos .kpis {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#flos .kpis li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.3;
  background: rgb(255 255 255 / 5%);
  border-radius: 10px;
  padding: 10px 12px;
}

#flos .kpis li:first-child {
  grid-column: 1 / -1;
}

#flos .kpis b {
  flex: none;
  font-family: var(--nlm-font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  color: #fff;
}

#flos .kpis li:first-child b {
  font-size: 28px;
}

#flos .kpis .is-bad b {
  color: #ff8a8a;
}

#flos .kpis .is-warn b {
  color: #fbbf24;
}

#flos .kpis .is-ok b {
  color: #5ee08a;
}

#flos .report-n {
  margin: 14px 0 0;
  font-size: 11.5px;
  font-style: italic;
  color: var(--nlm-navy-400);
}

#flos .blind {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: rgb(8 9 31 / 72%);
  backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--nlm-ease), visibility 0.5s;
}

#flos .blind b {
  display: block;
  font-family: var(--nlm-font-display);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
}

#flos .blind p {
  max-width: 34ch;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--nlm-navy-300);
}

#flos [data-state="before"] .blind {
  opacity: 1;
  visibility: visible;
}

/* ---------- 08 who it's for ---------- */

#flos .tabp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  background: #fff;
  border: 1px solid var(--nlm-line);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 36px);
  animation: pq-rise 0.45s var(--nlm-ease-soft);
}

#flos .tabp h3 {
  font-family: var(--nlm-font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--nlm-fg-1);
  margin: 16px 0 10px;
}

#flos .tabp p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--nlm-fg-2);
  margin: 0;
}

#flos .ex {
  background: var(--nlm-gray-50);
  border: 1px solid var(--nlm-line);
  border-radius: 14px;
  padding: 18px;
}

#flos .tabp .ex-l {
  font-family: var(--nlm-font-mono);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nlm-fg-3);
  margin-bottom: 12px;
}

#flos .tabp .ex-q .alert {
  font-family: var(--nlm-font-display);
  font-weight: 600;
  font-size: clamp(15px, 1.5vw, 17px);
  padding: 12px 14px;
}

/* ---------- 09 getting started ---------- */

#flos .tl-wrap {
  position: relative;
}

#flos .tl {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
}

#flos .tl-line {
  position: absolute;
  top: 21px;
  inset-inline: 21px;
  height: 2px;
  background: var(--nlm-signal);
  transform-origin: 0 50%;
}

[dir="rtl"] #flos .tl-line {
  transform-origin: 100% 50%;
}

/* Scroll-linked, so only where view() timelines exist (see .reveal). */
@supports (animation-timeline: view()) {
  #flos .tl-line {
    animation: fo-draw linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 45%;
  }

  #flos .tl-dot {
    animation: pq-pop 0.6s var(--nlm-ease-soft) both;
    animation-timeline: view();
    animation-range: entry 20% cover 40%;
  }
}

#flos .tl li {
  position: relative;
}

#flos .tl-dot {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #fff;
  background: var(--nlm-navy-900);
  box-shadow: 0 0 0 6px #fff;
}

#flos .tl-dot :is(svg, i[data-lucide]) {
  width: 20px;
  height: 20px;
}

#flos .tl h3 {
  font-family: var(--nlm-font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--nlm-fg-1);
  margin: 0 0 8px;
}

#flos .tl p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--nlm-fg-2);
  margin: 0;
}

/* ---------- closing ---------- */

#flos .final .h2 {
  max-width: 24ch;
  margin-bottom: 16px;
}

#flos .cta-note {
  max-width: 46ch;
  margin: 0 auto 32px;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.55;
  color: var(--nlm-navy-300);
}

/* The twelve GPS dots from the hero, pulled into the line and the wordmark. */
#flos .cv-t {
  top: calc(50% - 7px);
  inset-inline-start: calc(50% - 7px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 0 0 4px rgb(255 255 255 / 12%);
}

#flos .also {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 30px 0 0;
  font-family: var(--nlm-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--nlm-navy-400);
}

#flos .also a {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 999px;
  padding: 5px 12px;
  transition: border-color 0.2s, background 0.2s;
}

#flos .also a:hover {
  border-color: var(--nlm-signal);
  background: var(--nlm-signal);
}

/* ---------- responsive ---------- */

@media (width <= 1180px) {
  #flos .feats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #flos .roles ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #flos .checks,
  #flos .pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (width <= 980px) {
  #flos .eco-g,
  #flos .hl-g,
  #flos .out-g,
  #flos .tabp {
    grid-template-columns: minmax(0, 1fr);
  }

  #flos .day-g {
    grid-template: "tower" auto "feed" auto "drawer" auto / minmax(0, 1fr);
  }

  #flos .feed-l {
    position: static;
    max-height: 340px;
  }

  #flos .steps,
  #flos .feats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* The meter rides the bottom of the screen here (see product-page.css), so it
     is kept short: the four figures sit two by two. */
  #flos .meter-l {
    margin-bottom: 4px;
  }

  #flos .meter-h {
    font-size: 22px;
    margin: 0 0 8px;
  }

  #flos .meter-rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 16px;
    font-size: 11.5px;
    line-height: 1.3;
  }

  #flos .meter-rows > div {
    flex-direction: column;
    gap: 1px;
  }

  #flos .meter-x {
    display: none;
  }
}

@media (width <= 640px) {
  /* The process strip: the tick above its word, five narrow columns. */
  #flos .ct-steps li {
    flex-direction: column;
    gap: 4px;
    font-size: 9.5px;
    letter-spacing: 0;
    text-align: center;
    padding: 6px 2px;
  }

  #flos .ct-main,
  #flos .steps,
  #flos .feats,
  #flos .dr-g,
  #flos .cmp,
  #flos .tl {
    grid-template-columns: minmax(0, 1fr);
  }

  #flos .tl-line {
    display: none;
  }

  #flos .ct-vitals,
  #flos .day-n,
  #flos .checks,
  #flos .pillars,
  #flos .roles ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #flos .eco-stage {
    height: 300px;
  }

  #flos .eco-n {
    font-size: 12px;
    padding: 6px 10px;
  }

  #flos .day-ctl {
    width: 100%;
  }

  #flos .day-ctl :is(.btn-n, .btn-g) {
    flex: 1;
    justify-content: center;
  }

  /* Trucks are at least 76 map units (24 px here) apart: a 24 px button never
     overlaps its neighbour. */
  #flos .trk {
    width: 24px;
    height: 24px;
  }

  /* The map is drawn at a third of its size here: keep the city names legible. */
  #flos .tower .city-l {
    font-size: 40px;
  }

  #flos .trk i {
    width: 11px;
    height: 11px;
  }

  #flos .parts li {
    grid-template-columns: minmax(0, 96px) minmax(0, 1fr) auto;
  }

  #flos .wf li {
    grid-template-columns: minmax(0, 104px) minmax(0, 1fr) 54px;
    gap: 8px;
    font-size: 12px;
  }

  #flos .week-d {
    grid-template-columns: minmax(0, 1fr);
  }

  #flos .week-d li {
    flex-flow: row wrap;
    align-items: center;
  }

  #flos .week-d b {
    min-width: 72px;
  }

  #flos .seg {
    flex-wrap: wrap;
    border-radius: 16px;
  }

  #flos .kpis {
    grid-template-columns: minmax(0, 1fr);
  }

  /* The table reads as stacked cards: pain, then what the AI does, then the outcome. */
  #flos .core,
  #flos .core tbody,
  #flos .core tr,
  #flos .core :is(th, td) {
    display: block;
  }

  #flos .core thead {
    display: none;
  }

  #flos .core tr {
    margin-bottom: 8px;
    background: var(--nlm-navy-900);
    border: 1px solid var(--nlm-line-dark);
    border-radius: 10px;
    padding: 8px 4px;
  }

  #flos .core tbody :is(th, td),
  #flos .core tbody :is(th, td):is(:first-child, :last-child) {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding-block: 4px;
  }
}
