/* ============================================
   MOBILE RESPONSIVE SWEEP
   Covers everything not already handled by inline media queries.
   ============================================ */

/* Prevent horizontal overflow page-wide */
html, body { overflow-x: hidden; }

/* ---------- Header ---------- */
@media (max-width: 640px) {
  .nav { height: 60px; gap: 12px; }
  .brand-name { font-size: 15px; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn-brand { padding: 0 14px; height: 36px; font-size: 13px; }
}

/* ---------- Hero ---------- */
@media (max-width: 1024px) {
  .hero-stage { aspect-ratio: 16 / 11; }
}
@media (max-width: 700px) {
  .hero h1 { font-size: clamp(30px, 8vw, 42px); }
  .hero .lead { font-size: 16px; line-height: 1.5; }
  .hero-ctas .btn { flex: 1; justify-content: center; }
  .hero-ctas { width: 100%; }
  .hero-meta { flex-wrap: wrap; gap: 8px 14px; font-size: 12px; }
  .hero-stage { aspect-ratio: 4 / 3; }
}

/* Hero dashboard internals — shrink on small screens */
@media (max-width: 900px) {
  .dashboard-side { width: 44px; padding: 36px 6px 8px; }
  .dashboard-side .side-icon { width: 30px; height: 30px; }
  .dashboard { grid-template-columns: 44px 1fr; }
  .dashboard-main { padding: 36px 12px 12px; }
  .kpi-row { grid-template-columns: repeat(3, 1fr); }
  .kpi-row .kpi:nth-child(n+4) { display: none; }
  .kpi-value { font-size: 16px; }
  .dashboard-chrome .url { font-size: 9.5px; max-width: 60%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .board { grid-template-columns: 1fr; gap: 8px; }
  .map-panel { aspect-ratio: 16/9; }
  .jobs-row, .jobs-head { grid-template-columns: 0.65fr 1fr 0.85fr 0.75fr; gap: 6px; padding: 6px 8px; font-size: 10px; }
  .jobs-row .route { display: none; }
  .jobs-head > div:nth-child(3) { display: none; }
}
@media (max-width: 520px) {
  .live-toast { display: none; }
  .jobs-row .driver { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Portals: tabs vs mobile select */
.tabs-select { display: none; }
@media (max-width: 700px) {
  .tabs { display: none !important; }
  .tabs-select {
    display: block;
    position: relative;
    margin: 0 auto 24px;
    max-width: 360px;
  }
  .tabs-select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 44px 14px 16px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.01em;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
  }
  .tabs-select select:focus { outline: 2px solid var(--brand); outline-offset: 2px; }
  .tabs-select .caret-ico {
    position: absolute;
    right: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--ink-3);
    pointer-events: none;
  }
}

/* ---------- Portals tab section ---------- */
@media (max-width: 700px) {
  .tabs {
    width: 100%;
    border-radius: 12px;
    padding: 4px;
    gap: 2px;
    justify-content: flex-start;
  }
  .tab { padding: 8px 12px; font-size: 12.5px; }
  .tab .num { display: none; }
}

/* Portal visuals — reduce internal padding */
@media (max-width: 700px) {
  .portal-visual { padding: 20px; border-radius: 16px; aspect-ratio: auto; }
  .portal-admin .pa-body { grid-template-columns: 1fr; gap: 10px; }
  .portal-admin .pa-body .map-panel { aspect-ratio: 16/9; }
  .portal-admin .jobs-row, .portal-admin .jobs-head { grid-template-columns: 0.7fr 1fr 0.6fr 0.7fr 0; }
  .driver-phone { width: 240px; }
}

/* Finance portal table */
@media (max-width: 700px) {
  .pf-kpis { grid-template-columns: 1fr; }
  .pf-kpi { padding: 10px 14px; }
  .pf-row { grid-template-columns: 1fr 0.7fr 0.8fr; gap: 6px; padding: 8px 12px; }
  .pf-row > div:nth-child(1),
  .pf-row > div:nth-child(3) { display: none; }
  .pf-row.head > div:nth-child(1),
  .pf-row.head > div:nth-child(3) { display: none; }
}

/* Tracking page */
@media (max-width: 520px) {
  .tr-progress { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .tr-progress::before, .tr-progress::after { display: none; }
  .tr-step { display: flex; align-items: center; gap: 10px; text-align: left; }
  .tr-step .dot { margin: 0; }
  .tr-step .label, .tr-step .time { margin: 0; }
}

/* Customer portal mock — keep tabs tidy */
@media (max-width: 520px) {
  .pc-tabs div { padding: 9px 10px; font-size: 11px; }
  .pc-tabs div:nth-child(n+4) { display: none; }
  .pc-order { grid-template-columns: auto 1fr; }
  .pc-order .num { display: none; }
}

/* ---------- Flow ---------- */
@media (max-width: 700px) {
  .flow-track { grid-template-columns: 1fr 1fr; gap: 8px; }
  .flow-step {
    padding: 16px 16px 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "num ico"
      "title title"
      "desc desc";
    column-gap: 10px;
    row-gap: 6px;
    align-items: center;
  }
  .flow-step .n { grid-area: num; margin: 0; }
  .flow-step .ico {
    grid-area: ico;
    margin: 0;
    justify-self: end;
    width: 28px; height: 28px;
  }
  .flow-step .ico svg { width: 14px; height: 14px; }
  .flow-step b { grid-area: title; margin-top: 4px; font-size: 13.5px; }
  .flow-step span { grid-area: desc; margin-top: 0; font-size: 11.5px; }
}
@media (max-width: 420px) {
  .flow-track { grid-template-columns: 1fr; }
}

/* ---------- Solutions cards ---------- */
@media (max-width: 700px) {
  .sol { padding: 22px; border-radius: 14px; }
  .sol h3 { font-size: 19px; }
  .sol-values { grid-template-columns: 1fr; gap: 6px; }
  .sol .badge { font-size: 10.5px; }
}

/* ---------- Integrations cards ---------- */
@media (max-width: 520px) {
  .int-cat { padding: 20px; }
  .int-cat .ico { width: 32px; height: 32px; margin-bottom: 12px; }
  .int-cat h4 { font-size: 15px; }
}

/* ---------- Features ---------- */
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .fe { padding: 22px 20px; min-height: 0; }
}

/* ---------- Customisation ---------- */
@media (max-width: 720px) {
  .custom-row { flex-direction: column; gap: 14px; }
  .custom-pill { flex: 0 1 auto; }
  .btn-coral { width: 100%; max-width: 320px; justify-content: center; }
}

/* ---------- FAQ ---------- */
@media (max-width: 700px) {
  .faq-q { font-size: 15px; padding: 18px 0; }
  .faq-q .plus { width: 24px; height: 24px; font-size: 14px; }
  .faq-a { font-size: 14px; padding-right: 0; padding-bottom: 18px; }
}

/* ---------- CTA ---------- */
@media (max-width: 700px) {
  .cta { padding: 48px 22px; margin: 0 16px; border-radius: 18px; }
  .cta h2 { font-size: clamp(26px, 6vw, 34px); }
  .cta-words { gap: 6px; }
  .cta-words span { font-size: 12px; padding: 5px 10px; }
  .cta-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
}

/* ---------- Footer ---------- */
@media (max-width: 540px) {
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .about p { max-width: 100%; }
  .foot-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ---------- Section heads ---------- */
@media (max-width: 700px) {
  .section-head { margin-bottom: 28px; }
  .section-head p { font-size: 15px; }
}

/* ---------- Why section ---------- */
@media (max-width: 480px) {
  .why-chips { grid-template-columns: 1fr 1fr; gap: 8px; }
  .chip { padding: 12px 12px; min-height: 84px; }
  .chip .label { font-size: 12.5px; }
}

/* ---------- Typography baseline ---------- */
@media (max-width: 540px) {
  body { font-size: 15.5px; }
  h2 { font-size: clamp(26px, 6.4vw, 36px); }
  .lead { font-size: 15.5px; }
}
/* Append: rest of styles */

/* ============================================
   "WHY MORE THAN BASIC" SECTION
   ============================================ */
.why {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; gap: 40px; } }

.why-h h2 { margin-top: 18px; }
.why-h p { margin-top: 18px; max-width: 460px; }

.why-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 700px) { .why-chips { grid-template-columns: repeat(2, 1fr); } }

.chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 14px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 96px;
  transition: border-color .15s ease, transform .15s ease;
}
.chip:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.chip .ico {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--brand-tint);
  color: var(--brand);
  display: grid; place-items: center;
}
.chip .ico svg { width: 14px; height: 14px; }
.chip .label { font-size: 13.5px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }

/* ============================================
   CORE PORTALS (TAB SECTION)
   ============================================ */
.portals {
  padding-top: 64px;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 14px; }

.tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  margin: 0 auto 32px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}
.tab {
  background: transparent;
  border: 0;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(10,22,40,.06), 0 1px 1px rgba(10,22,40,.04);
}
.tab .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
}
.tab.active .num { color: var(--brand); }

.tab-panels { display: grid; }
.tab-panel { display: none; }
.tab-panel.active { display: grid; }

.portal {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.portal.reverse { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.portal.reverse .portal-text { order: 2; }
@media (max-width: 960px) {
  .portal, .portal.reverse { grid-template-columns: 1fr; gap: 40px; }
  .portal.reverse .portal-text { order: 0; }
}

.portal-text .eyebrow { background: var(--brand-tint); color: var(--brand); }
.portal-text h3 { font-size: clamp(26px, 2.4vw, 34px); margin-top: 14px; line-height: 1.15; }
.portal-text > p { margin-top: 16px; color: var(--ink-3); font-size: 16.5px; max-width: 480px; }

.feature-list { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.feature-list li { list-style: none; display: flex; gap: 14px; }
.feature-list .ico {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
}
.feature-list .ico svg { width: 15px; height: 15px; }
.feature-list .ft b { font-weight: 600; font-size: 15px; color: var(--ink); display: block; }
.feature-list .ft span { font-size: 14px; color: var(--muted); margin-top: 2px; display: block; line-height: 1.5; }

/* Portal visuals */
.portal-visual {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 32px;
  aspect-ratio: 5 / 4;
  display: grid; place-items: center;
  overflow: hidden;
}
.portal-visual::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(400px 200px at 20% 0%, rgba(31,95,255,.08), transparent 70%);
  pointer-events: none;
}

/* Admin dashboard inside portal */
.portal-admin {
  width: 100%; max-width: 540px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.portal-admin .pa-head {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 10px;
  background: #fafbfd;
}
.portal-admin .pa-head .title { font-size: 13px; font-weight: 600; }
.portal-admin .pa-head .count { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-left: 4px; }
.portal-admin .pa-head .spacer { flex: 1; }
.portal-admin .pa-body {
  padding: 14px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
}

/* Customer portal */
.portal-customer {
  width: 100%; max-width: 520px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pc-top {
  background: var(--ink);
  color: #fff;
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.pc-top .b { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pc-top .b-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--brand);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
}
.pc-top .user { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .8; }
.pc-top .user .avatar { width: 22px; height: 22px; font-size: 9px; }

.pc-tabs {
  display: flex; border-bottom: 1px solid var(--line-2); background: #fbfcfd;
  font-size: 12px;
}
.pc-tabs div { padding: 10px 14px; color: var(--muted); }
.pc-tabs div.on { color: var(--ink); font-weight: 500; border-bottom: 2px solid var(--brand); margin-bottom: -1px; }

.pc-body { padding: 16px 18px; }
.pc-cta {
  background: linear-gradient(135deg, var(--brand) 0%, #4a7dff 100%);
  color: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.pc-cta .ic { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.pc-cta .ic svg { width: 16px; height: 16px; }
.pc-cta .tx { flex: 1; }
.pc-cta .tx b { display: block; font-size: 13px; font-weight: 600; }
.pc-cta .tx span { display: block; font-size: 11.5px; opacity: .85; margin-top: 1px; }
.pc-cta .go { background: rgba(255,255,255,.2); padding: 6px 10px; border-radius: 6px; font-size: 12px; }

.pc-section-h {
  margin-top: 18px; margin-bottom: 8px;
  display: flex; justify-content: space-between; align-items: center;
}
.pc-section-h .t { font-size: 12px; font-weight: 600; }
.pc-section-h .a { font-size: 11.5px; color: var(--brand); }

.pc-order {
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}
.pc-order + .pc-order { margin-top: 8px; }
.pc-order .num { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.pc-order .info b { font-size: 12.5px; font-weight: 500; display: block; }
.pc-order .info span { font-size: 11px; color: var(--muted); display: block; margin-top: 1px; }

/* Driver app (phone) */
.driver-phone {
  width: 280px;
  aspect-ratio: 9 / 19;
  background: #0a0a0a;
  border-radius: 36px;
  padding: 10px;
  position: relative;
  box-shadow: 0 30px 60px -10px rgba(10,22,40,.4), inset 0 0 0 1.5px #2a2a2a;
}
.driver-phone::before {
  content: ""; position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 24px;
  background: #000;
  border-radius: 14px;
  z-index: 2;
}
.driver-screen {
  background: #f6f8fc;
  width: 100%; height: 100%;
  border-radius: 28px;
  overflow: hidden;
  display: flex; flex-direction: column;
  font-size: 11px;
}
.ds-status {
  padding: 14px 18px 8px;
  display: flex; justify-content: space-between;
  font-size: 11.5px; font-weight: 600;
  color: var(--ink);
}
.ds-status .icons { display: flex; gap: 4px; align-items: center; }
.ds-header {
  padding: 28px 18px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.ds-header .h-l { display: flex; flex-direction: column; }
.ds-header .h-l span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.ds-header .h-l b { font-size: 14px; font-weight: 600; }
.ds-header .menu {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: grid; place-items: center;
}

.ds-stats {
  margin: 0 18px 14px;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 10px 12px;
}
.ds-stats > div { text-align: center; }
.ds-stats > div + div { border-left: 1px solid var(--line-2); }
.ds-stats b { display: block; font-family: var(--font-mono); font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.ds-stats span { display: block; font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 1px; }

.ds-active {
  margin: 0 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 14px;
  position: relative;
}
.ds-active .tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9.5px; padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  margin-bottom: 12px;
}
.ds-active .tag::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,122,31,.3);
}
.ds-route {
  display: flex; gap: 10px;
}
.ds-route .line {
  display: flex; flex-direction: column; align-items: center;
  padding-top: 4px;
}
.ds-route .line .d { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.ds-route .line .d.end { background: var(--green); }
.ds-route .line .v { width: 1.5px; height: 28px; background: rgba(255,255,255,.3); margin: 3px 0; }
.ds-route .col { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.ds-route .col > div span { display: block; font-size: 9px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: 0.04em; }
.ds-route .col > div b { display: block; font-size: 12px; font-weight: 500; margin-top: 1px; }

.ds-actions {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.ds-actions button {
  height: 36px;
  border-radius: 10px;
  border: 0;
  font-size: 11.5px; font-weight: 500;
  background: rgba(255,255,255,.1);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
}
.ds-actions button.primary {
  background: var(--accent); color: #fff;
  grid-column: span 2;
}
.ds-list {
  flex: 1; margin: 14px 18px 0; overflow: hidden;
}
.ds-list .h {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); margin-bottom: 8px;
}
.ds-list .item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.ds-list .item .n {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--surface);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 10px;
}
.ds-list .item .tx { flex: 1; min-width: 0; }
.ds-list .item .tx b { display: block; font-size: 11.5px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.ds-list .item .tx span { display: block; font-size: 9.5px; color: var(--muted); }
.ds-list .item .t {
  font-family: var(--font-mono);
  font-size: 10.5px; color: var(--ink-3);
}

/* Tracking page mock */
.portal-tracking {
  width: 100%; max-width: 540px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tr-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between;
  background: #fbfcfd;
}
.tr-head .brand-row { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.tr-head .brand-row .mk { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); }
.tr-head .lang { font-size: 11px; color: var(--muted); padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; }

.tr-body { padding: 22px; }
.tr-num { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.tr-num b { display: block; font-family: var(--font-mono); font-size: 18px; color: var(--ink); margin-top: 2px; letter-spacing: -0.01em; font-weight: 600; text-transform: none; }

.tr-progress {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.tr-progress::before {
  content: ""; position: absolute;
  left: 12px; right: 12px; top: 12px;
  height: 2px; background: var(--line);
  z-index: 0;
}
.tr-progress::after {
  content: ""; position: absolute;
  left: 12px; top: 12px;
  height: 2px; background: var(--green);
  width: calc(66.66% - 12px);
  z-index: 1;
}
.tr-step { position: relative; z-index: 2; text-align: center; }
.tr-step .dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--line);
  margin: 0 auto;
  display: grid; place-items: center;
  color: #fff;
}
.tr-step .dot svg { width: 12px; height: 12px; }
.tr-step.done .dot { background: var(--green); }
.tr-step.current .dot { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.tr-step .label { font-size: 11px; margin-top: 8px; color: var(--muted); }
.tr-step .time { font-size: 10px; color: var(--muted-2); margin-top: 2px; font-family: var(--font-mono); }
.tr-step.done .label, .tr-step.current .label { color: var(--ink); font-weight: 500; }

.tr-driver {
  margin-top: 22px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 14px;
  display: flex; align-items: center; gap: 12px;
}
.tr-driver .avatar { width: 36px; height: 36px; font-size: 13px; }
.tr-driver .info b { font-size: 13px; display: block; font-weight: 600; }
.tr-driver .info span { font-size: 11.5px; color: var(--muted); display: block; }
.tr-driver .eta {
  margin-left: auto; text-align: right;
}
.tr-driver .eta b { font-family: var(--font-mono); font-size: 16px; color: var(--brand); font-weight: 600; display: block; letter-spacing: -0.02em; }
.tr-driver .eta span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }


/* ============================================
   FLOW SECTION
   ============================================ */
.flow {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.flow::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(31,95,255,.2), transparent 60%),
    radial-gradient(600px 300px at 20% 100%, rgba(255,122,31,.1), transparent 60%);
  pointer-events: none;
}
.flow .section-head h2, .flow .section-head p { color: #fff; }
.flow .section-head p { color: rgba(255,255,255,.7); }
.flow .eyebrow { background: rgba(255,255,255,.08); color: #9ec0ff; }
.flow .eyebrow::before { background: #9ec0ff; }

.flow-track {
  position: relative;
  margin: 36px 0 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
@media (max-width: 1024px) {
  .flow-track { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

.flow-step {
  position: relative;
  padding: 24px 18px 22px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.flow-step .n {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #9ec0ff;
  letter-spacing: 0.05em;
}
.flow-step .ico {
  margin-top: 14px;
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(31,95,255,.18);
  color: #9ec0ff;
  display: grid; place-items: center;
}
.flow-step .ico svg { width: 18px; height: 18px; }
.flow-step b {
  margin-top: 14px;
  display: block;
  font-size: 14.5px;
  font-weight: 500;
}
.flow-step span {
  margin-top: 4px;
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  line-height: 1.45;
}

.flow-bottom {
  margin-top: 24px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap;
}
.flow-bottom .promise {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  display: inline-flex; align-items: center; gap: 8px;
}
.flow-bottom .promise b { color: #fff; font-weight: 500; }
.flow-bottom .promise .x { color: rgba(255,255,255,.3); }


/* ============================================
   SOLUTIONS BY BUSINESS
   ============================================ */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}
@media (max-width: 800px) { .solutions-grid { grid-template-columns: 1fr; } }

.sol {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.sol:hover { border-color: var(--ink-3); box-shadow: var(--shadow); }
.sol .badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500;
  padding: 4px 10px; border-radius: 999px;
  background: var(--surface); color: var(--ink-3);
  margin-bottom: 18px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
a.badge:hover { background: var(--surface-2); color: var(--ink); }
.sol .badge .d { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.sol .b-orange { background: var(--accent); }
.sol .b-green { background: var(--green); }
.sol .b-purple { background: #8b5cf6; }
.sol h3 { font-size: 22px; }
.sol .desc { margin-top: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.55; max-width: 480px; }

.sol-values {
  margin-top: 22px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
}
.sol-values li {
  list-style: none;
  font-size: 13.5px;
  color: var(--ink-2);
  display: flex; align-items: flex-start; gap: 8px;
  line-height: 1.4;
}
.sol-values li::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 5 L4 7 L8 3' stroke='%23047857' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
  flex-shrink: 0;
  margin-top: 2px;
}

.sol-illust {
  position: absolute;
  right: 24px; top: 24px;
  width: 80px; height: 80px;
  opacity: .9;
}

/* ============================================
   INTEGRATIONS
   ============================================ */
.integrations {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.int-logos {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}
@media (max-width: 800px) { .int-logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .int-logos { grid-template-columns: repeat(2, 1fr); } }

.int-logos .cell {
  padding: 26px 18px;
  display: grid; place-items: center;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  position: relative;
  min-height: 92px;
}
.int-logos .cell:nth-child(6n) { border-right: 0; }
.int-logos .cell:nth-last-child(-n+6) { border-bottom: 0; }
@media (max-width: 800px) {
  .int-logos .cell { border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
  .int-logos .cell:nth-child(6n) { border-right: 1px solid var(--line-2); }
  .int-logos .cell:nth-child(3n) { border-right: 0; }
  .int-logos .cell:nth-last-child(-n+3) { border-bottom: 0; }
}

.int-categories {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
 
@media (max-width: 960px) { .int-categories { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .int-categories { grid-template-columns: 1fr; } }

.int-cat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
a.int-cat:hover {
  border-color: var(--ink-3);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.int-cat .ico {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--brand-tint);
  color: var(--brand);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.int-cat .ico svg { width: 18px; height: 18px; }
.int-cat h4 { font-size: 16px; font-weight: 600; }
.int-cat p {
  font-size: 13.5px; color: var(--muted);
  margin-top: 6px; line-height: 1.5;
  flex: 1;
}
.int-cat .partners {
  margin-top: 14px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.int-cat .partners span {
  font-size: 11.5px; font-weight: 500;
  padding: 3px 8px;
  background: var(--surface);
  border-radius: 6px;
  color: var(--ink-3);
}

/* ============================================
   FEATURES GRID
   ============================================ */
.features-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
@media (max-width: 1100px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .features-grid { grid-template-columns: repeat(2, 1fr); } }

.fe {
  background: #fff;
  padding: 26px 22px;
  display: flex; flex-direction: column;
  min-height: 200px;
}
.fe:hover { background: var(--surface); }
.fe .ico {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.fe .ico svg { width: 15px; height: 15px; }
.fe b { font-size: 15px; font-weight: 600; display: block; letter-spacing: -0.01em; }
.fe p { font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

/* ============================================
   FAQ
   ============================================ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 32px; } }

.faq-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  text-align: left;
  font-size: 17px; font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.faq-q .plus {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 16px;
  color: var(--ink-3);
  transition: transform .25s ease, background .15s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item[open] .plus { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.faq-a {
  padding: 0 60px 22px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.faq-item summary { list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }

/* ============================================
   CTA
   ============================================ */
.cta {
  position: relative;
  background: var(--ink);
  color: #fff;
  border-radius: 24px;
  padding: 56px 56px;
  overflow: hidden;
  margin: 0 32px;
  text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 50% 100%, rgba(31,95,255,.35), transparent 60%),
    radial-gradient(400px 200px at 20% 0%, rgba(255,122,31,.15), transparent 60%);
  pointer-events: none;
}
.cta-grid {
  position: relative; max-width: 760px; margin: 0 auto;
}
.cta h2 { color: #fff; font-size: clamp(34px, 4vw, 52px); }
.cta .lead { color: rgba(255,255,255,.7); margin-top: 18px; }
.cta-words {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 32px;
}
.cta-words span {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
  color: rgba(255,255,255,.85);
}
.cta-actions {
  margin-top: 36px;
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.cta .btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.cta .btn-ghost:hover { background: rgba(255,255,255,.14); }
.cta .btn-brand { background: #fff; color: var(--ink); box-shadow: 0 8px 24px rgba(255,255,255,.15); }
.cta .btn-brand:hover { background: #f3f4f6; }

@media (max-width: 700px) {
  .cta { padding: 56px 24px; margin: 0 16px; }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 40px 0 24px;
  border-top: 1px solid var(--line);
  margin-top: 48px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

.foot-grid h5 {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  color: var(--muted); letter-spacing: 0.06em;
  margin: 0 0 16px;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-grid li a { font-size: 14px; color: var(--ink-3); }
.foot-grid li a:hover { color: var(--ink); }
.foot-grid .about p { font-size: 13.5px; color: var(--muted); margin-top: 14px; line-height: 1.55; max-width: 280px; }

.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}

/* ============================================
   TWEAKS PANEL OVERRIDES (color variants)
   ============================================ */
body[data-palette="indigo"] { --brand: #4f46e5; --brand-2: #3730a3; --brand-tint: #ede9fe; }
body[data-palette="ocean"]  { --brand: #0ea5e9; --brand-2: #0369a1; --brand-tint: #e0f2fe; }
body[data-palette="forest"] { --brand: #059669; --brand-2: #047857; --brand-tint: #d1fae5; }

/* ============================================
   CUSTOMISATION SECTION
   ============================================ */
.custom {
  background:
    radial-gradient(800px 320px at 50% 0%, var(--brand-tint), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--surface) 100%);
}
.custom-wrap {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}
.custom-wrap h2 {
  margin-top: 14px;
  font-size: clamp(28px, 3.4vw, 44px);
  white-space: nowrap;
  letter-spacing: -0.028em;
}
.custom-wrap > p {
  margin: 18px auto 0;
  max-width: 720px;
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1.55;
}
.custom-pill {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 22px 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.custom-row {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.custom-pill .ico {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.custom-pill .ico svg { width: 14px; height: 14px; }
.custom-pill .tx { display: flex; flex-direction: column; padding-right: 6px; }
.custom-pill .tx b { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.custom-pill .tx span { font-size: 12.5px; color: var(--muted); margin-top: 1px; }

@media (max-width: 720px) {
  .custom-wrap h2 { white-space: normal; }
  .custom-pill { padding: 12px 16px 12px 12px; }
}

/* ============================================
   FINANCE PORTAL MOCK
   ============================================ */
.portal-finance {
  width: 100%; max-width: 540px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pf-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 10px;
  background: #fafbfd;
}
.pf-head .title { font-size: 13px; font-weight: 600; }
.pf-head .crumbs { font-size: 11.5px; color: var(--muted); margin-left: 4px; }
.pf-head .crumbs b { color: var(--ink-2); font-weight: 500; }
.pf-head .spacer { flex: 1; }

.pf-kpis {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.pf-kpi {
  background: #fff;
  padding: 12px 14px;
}
.pf-kpi .l { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.pf-kpi .v {
  font-family: var(--font-mono);
  font-size: 18px; font-weight: 600;
  margin-top: 3px;
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 4px;
}
.pf-kpi .v small { font-size: 11px; color: var(--muted); font-weight: 400; }
.pf-kpi .spark {
  margin-top: 4px;
  height: 16px;
}

.pf-table {
  display: flex; flex-direction: column;
}
.pf-row {
  display: grid;
  grid-template-columns: 1.05fr 1.1fr 0.6fr 0.7fr 0.85fr;
  gap: 8px;
  padding: 9px 16px;
  font-size: 11px;
  align-items: center;
  border-bottom: 1px solid var(--line-2);
}
.pf-row.head {
  font-size: 9.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #fafbfd;
}
.pf-row:last-child { border-bottom: none; }
.pf-row .inv { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink); }
.pf-row .cust { color: var(--ink-2); font-weight: 500; }
.pf-row .due { color: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.pf-row .amt {
  font-family: var(--font-mono);
  font-weight: 600;
  text-align: right;
  font-size: 12px;
  color: var(--ink);
  font-feature-settings: "tnum";
}

.status.paid { background: var(--green-tint); color: #065f46; }
.status.paid::before { background: var(--green); }
.status.pending { background: var(--amber-tint); color: #92510a; }
.status.pending::before { background: var(--amber); }
.status.overdue { background: var(--red-tint); color: #991b1b; }
.status.overdue::before { background: var(--red); }
.status.draft { background: #f1f5f9; color: var(--muted); }
.status.draft::before { background: var(--muted-2); }
