/* PaperlessCrew — premium light SaaS theme */
:root {
  /* surfaces */
  --bg: #FAFBFC;
  --bg-2: #F4F6FA;
  --bg-3: #EEF1F6;
  --panel: #FFFFFF;
  --panel-2: #F7F9FC;
  --line: rgba(11,18,32,0.07);
  --line-2: rgba(11,18,32,0.12);
  --line-strong: rgba(11,18,32,0.18);

  /* ink */
  --ink: #0B1220;
  --ink-2: #3F4A60;
  --ink-3: #6B7689;
  --ink-4: #98A0B1;
  --ink-on-dark: #E8ECF4;

  /* brand */
  --accent: #005afb;          /* brand blue */
  --accent-bright: #2D7BFF;
  --accent-deep: #0040B8;
  --accent-soft: #E6EEFF;     /* tint */
  --accent-soft-2: #CFDEFF;

  --success: #10A765;
  --success-soft: #E6F7EE;
  --warn: #C77A05;
  --warn-soft: #FDF3E0;
  --danger: #DC2626;
  --purple: #6D5BFF;
  --purple-soft: #EFEDFF;

  /* dark accents (for contrast sections) */
  --dark: #0B1220;
  --dark-2: #131B2E;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11,18,32,0.04), 0 1px 3px rgba(11,18,32,0.05);
  --shadow-md: 0 4px 12px -2px rgba(11,18,32,0.06), 0 2px 6px rgba(11,18,32,0.04);
  --shadow-lg: 0 24px 60px -20px rgba(11,18,32,0.18), 0 8px 24px -8px rgba(11,18,32,0.08), 0 0 0 1px rgba(11,18,32,0.04);
  --shadow-glow: 0 24px 60px -20px rgba(0,90,251,0.25), 0 0 0 1px rgba(0,90,251,0.15);
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
  --sans: 'Geist', 'Geist Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.45;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------------- Layout ---------------- */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: 120px 0; position: relative; }
.section.tight { padding: 80px 0; }
.section.alt { background: var(--bg-2); }
.section.dark { background: var(--dark); color: var(--ink-on-dark); }
.section.dark p { color: rgba(232,236,244,0.7); }
.section.dark .eyebrow {
  color: var(--accent-bright);
  border-color: rgba(45,169,255,0.3);
  background: rgba(45,169,255,0.08);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 11px;
  border: 1px solid var(--accent-soft-2);
  border-radius: 999px;
  background: var(--accent-soft);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(21,119,214,0.5);
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 0;
  line-height: 1.05;
  text-wrap: balance;
  color: var(--ink);
}
.section.dark h1, .section.dark h2, .section.dark h3, .section.dark h4 { color: white; }
h1 { font-size: clamp(48px, 6vw, 80px); letter-spacing: -0.03em; font-weight: 600; }
h2 { font-size: clamp(34px, 4vw, 54px); letter-spacing: -0.025em; }
h3 { font-size: 22px; letter-spacing: -0.015em; }
p { margin: 0; color: var(--ink-2); }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 620px; }
.mono { font-family: var(--mono); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 160ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, #2D7BFF 0%, #005afb 100%);
  color: white;
  font-weight: 500;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 6px 18px -6px rgba(0,90,251,0.5);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(0,90,251,0.6); }
.btn-accent {
  background: linear-gradient(180deg, #2DA9FF 0%, #1577D6 100%);
  color: white;
  font-weight: 500;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 6px 18px -6px rgba(21,119,214,0.45);
}
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(21,119,214,0.55); }
.btn-ghost {
  background: white;
  border-color: var(--line-2);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: var(--bg-2); border-color: var(--line-strong); }
.btn-on-dark {
  background: white;
  color: var(--ink);
  font-weight: 500;
}
.btn-on-dark:hover { transform: translateY(-1px); }
.btn-arrow::after {
  content: "→";
  font-size: 15px;
  transition: transform 160ms ease;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(250,251,252,0.82);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 32px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}
.brand-logo-footer {
  height: 36px;
}
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, #2DA9FF 0%, #1577D6 60%, #0A52A0 100%);
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(21,119,214,0.25), 0 4px 10px -2px rgba(21,119,214,0.4);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 6px;
  border: 1.5px solid white;
  border-radius: 3px;
  border-bottom: none;
  border-right: none;
}
.nav-links {
  display: flex; gap: 4px;
  font-size: 14px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: var(--ink-2);
  padding: 7px 12px;
  border-radius: 7px;
  font-weight: 450;
  transition: all 140ms;
  cursor: pointer;
}
.nav-links a:hover { color: var(--ink); background: rgba(11,18,32,0.04); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .signin { color: var(--ink-2); font-size: 14px; padding: 7px 12px; border-radius: 7px; }
.nav-cta .signin:hover { color: var(--ink); background: rgba(11,18,32,0.04); }

/* ---------------- Hero ---------------- */
.hero {
  padding: 64px 0 0;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -180px; left: 50%; transform: translateX(-50%);
  width: 1200px; height: 600px;
  background:
    radial-gradient(ellipse at center, rgba(45,169,255,0.18) 0%, rgba(21,119,214,0.05) 35%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11,18,32,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,18,32,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
.hero-top {
  text-align: center;
  max-width: 980px;
  margin: 0 auto 56px;
  padding: 0 32px;
}
.hero h1 {
  margin: 22px 0 22px;
  color: var(--ink);
}
.hero h1 .accent {
  background: linear-gradient(180deg, #2DA9FF 0%, #0A52A0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 auto;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}
.hero-meta {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-3);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { color: var(--success); }

/* Hero stage */
.hero-stage {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-stage-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: stretch;
}

/* ---------------- Dispatcher Dashboard mock ---------------- */
.dash {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.dash-titlebar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(11,18,32,0.1); }
.dash-url {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  padding: 4px 10px;
  background: white;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.dash-titlebar-right { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3); }
.live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em;
  color: var(--success);
  padding: 3px 9px;
  border: 1px solid rgba(16,167,101,0.25);
  border-radius: 999px;
  background: var(--success-soft);
}
.live-pill .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16,167,101,0.5); }
  70% { box-shadow: 0 0 0 6px rgba(16,167,101,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,167,101,0); }
}

.dash-body {
  display: grid;
  grid-template-columns: 56px 1fr 320px;
  min-height: 540px;
}
.dash-side {
  border-right: 1px solid var(--line);
  background: var(--panel-2);
  padding: 14px 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.dash-side .ico {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: var(--ink-3);
  font-size: 16px;
}
.dash-side .ico.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.dash-main {
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 14px;
  min-width: 0;
}
.dash-head {
  display: flex; align-items: center; justify-content: space-between;
}
.dash-head h4 {
  font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.dash-head .count {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3);
  padding: 2px 7px;
  background: var(--bg-2);
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 400;
}
.dash-tabs { display: flex; gap: 4px; font-size: 12px; padding: 3px; background: var(--bg-2); border-radius: 8px; border: 1px solid var(--line); }
.dash-tabs .tab {
  padding: 4px 10px;
  color: var(--ink-3);
  border-radius: 5px;
  cursor: pointer;
}
.dash-tabs .tab.active {
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.kpi {
  padding: 12px 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.kpi .label { font-size: 10.5px; color: var(--ink-3); font-family: var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.kpi .val { font-size: 22px; font-weight: 600; margin-top: 4px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.kpi .delta { font-size: 11px; color: var(--success); font-family: var(--mono); }

.dispatch-board {
  flex: 1;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.dispatch-board-head {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 0.8fr;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}
.job-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 0.8fr;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink);
  transition: background 180ms;
}
.job-row:last-child { border-bottom: none; }
.job-row.highlight {
  background: linear-gradient(90deg, rgba(21,119,214,0.06) 0%, transparent 100%);
  animation: rowFlash 1.2s ease-out;
}
@keyframes rowFlash {
  0% { background: rgba(21,119,214,0.14); }
  100% { background: linear-gradient(90deg, rgba(21,119,214,0.06) 0%, transparent 100%); }
}
.job-row .cust { display: flex; flex-direction: column; gap: 2px; }
.job-row .cust strong { font-weight: 500; }
.job-row .cust span { font-size: 11.5px; color: var(--ink-3); font-family: var(--mono); }
.crew-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-2);
}
.crew-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 10px; font-weight: 600;
  display: grid; place-items: center;
  color: white;
}
.av-1 { background: linear-gradient(135deg, #2DA9FF, #0A52A0); }
.av-2 { background: linear-gradient(135deg, #F5A623, #C77A05); }
.av-3 { background: linear-gradient(135deg, #6D5BFF, #4030C0); }
.av-4 { background: linear-gradient(135deg, #10A765, #057A47); }

.status-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.status-chip .dotc { width: 6px; height: 6px; border-radius: 50%; }
.status-en-route { background: var(--warn-soft); color: var(--warn); border-color: rgba(199,122,5,0.2); }
.status-en-route .dotc { background: var(--warn); }
.status-in-progress { background: var(--accent-soft); color: var(--accent); border-color: rgba(21,119,214,0.2); }
.status-in-progress .dotc { background: var(--accent); }
.status-completed { background: var(--success-soft); color: var(--success); border-color: rgba(16,167,101,0.2); }
.status-completed .dotc { background: var(--success); }
.status-scheduled { background: var(--bg-2); color: var(--ink-3); border-color: var(--line-2); }
.status-scheduled .dotc { background: var(--ink-3); }

.progress {
  width: 100%; height: 4px;
  background: rgba(11,18,32,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.progress > i {
  display: block; height: 100%;
  background: linear-gradient(90deg, #2DA9FF 0%, #1577D6 100%);
  border-radius: 2px;
  transition: width 600ms ease;
}

/* Right rail: activity */
.dash-rail {
  border-left: 1px solid var(--line);
  background: var(--panel-2);
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  min-width: 0;
}
.rail-head { display: flex; align-items: center; justify-content: space-between; }
.rail-head h5 { font-size: 13px; font-weight: 600; margin: 0; color: var(--ink); }
.rail-feed {
  display: flex; flex-direction: column;
  flex: 1;
  position: relative;
}
.feed-item {
  display: flex; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  position: relative;
  animation: slideIn 400ms ease;
}
.feed-item:last-child { border-bottom: none; }
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.feed-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 13px;
}
.feed-icon.green { background: var(--success-soft); color: var(--success); }
.feed-icon.blue { background: var(--accent-soft); color: var(--accent); }
.feed-icon.amber { background: var(--warn-soft); color: var(--warn); }
.feed-icon.purple { background: var(--purple-soft); color: var(--purple); }
.feed-body { flex: 1; min-width: 0; }
.feed-body .t { color: var(--ink); line-height: 1.4; }
.feed-body .t b { font-weight: 500; }
.feed-body .meta {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-4);
  margin-top: 3px;
  letter-spacing: 0.03em;
}
.feed-new {
  position: absolute; top: 10px; right: 0;
  font-size: 9.5px;
  font-family: var(--mono);
  color: var(--accent);
  padding: 1px 5px;
  border: 1px solid rgba(21,119,214,0.25);
  border-radius: 4px;
  background: var(--accent-soft);
}

/* ---------------- Tablet mock ---------------- */
.tablet-col { display: flex; align-items: stretch; }
.tablet {
  flex: 1;
  align-self: stretch;
  background: #1A1F2C;
  border-radius: 28px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  position: relative;
  display: flex; flex-direction: column;
}
.tablet::before {
  content: ""; position: absolute; top: 50%; left: 4px; width: 4px; height: 60px;
  background: rgba(255,255,255,0.08); border-radius: 0 4px 4px 0;
  transform: translateY(-50%);
}
.tablet-screen {
  flex: 1;
  background: #F4F5F7;
  color: #0B1019;
  border-radius: 16px;
  padding: 16px 14px;
  display: flex; flex-direction: column;
  gap: 12px;
  overflow: hidden;
  position: relative;
}
.tab-status {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10.5px;
  color: #535C73;
}
.tab-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #E6E8EF;
}
.tab-back { color: #535C73; font-size: 13px; display: flex; align-items: center; gap: 4px; }
.tab-route { font-weight: 600; font-size: 14px; }
.tab-crew-pill {
  font-family: var(--mono); font-size: 10px;
  background: #0B1019; color: white;
  padding: 3px 7px; border-radius: 6px;
}
.tab-stop {
  background: white;
  border: 1px solid #E6E8EF;
  border-radius: 12px;
  padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.tab-stop-head { display: flex; justify-content: space-between; align-items: flex-start; }
.tab-stop-head h6 { font-size: 14px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.tab-stop-head .sub { font-size: 11.5px; color: #535C73; margin-top: 2px; font-family: var(--mono); }
.tab-stop .badge {
  font-family: var(--mono); font-size: 10px;
  background: #FFF6E5; color: #B07A12;
  padding: 3px 7px; border-radius: 999px;
  border: 1px solid #FAE4A9;
}
.tab-stop .badge.cur { background: #E8F2FC; color: #0A52A0; border-color: #B8DAF5; }
.tab-checklist { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.tab-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  color: #0B1220;
}
.tab-check .box {
  width: 16px; height: 16px; border-radius: 4px;
  border: 1.5px solid #C2C8D6;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.tab-check.done .box {
  background: #0B1019; border-color: #0B1019;
  color: white; font-size: 10px;
}
.tab-check.done { color: #535C73; text-decoration: line-through; text-decoration-color: rgba(83,92,115,0.4); }
.tab-photos {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.tab-photos .ph {
  aspect-ratio: 1;
  border-radius: 7px;
  background: linear-gradient(135deg, #5070AA 0%, #2E3D5C 100%);
  position: relative;
  overflow: hidden;
}
.tab-photos .ph::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 40%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 6px);
}
.tab-photos .ph.add {
  background: white;
  border: 1.5px dashed #C2C8D6;
  display: grid; place-items: center;
  color: #535C73;
  font-size: 18px;
}
.tab-cta {
  margin-top: auto;
  background: linear-gradient(180deg, #2DA9FF 0%, #1577D6 100%);
  color: white;
  font-weight: 600;
  font-size: 14px;
  border: none;
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px -6px rgba(21,119,214,0.5);
}
.tab-cta.pressed {
  background: linear-gradient(180deg, #10A765 0%, #057A47 100%);
  box-shadow: 0 6px 20px -6px rgba(16,167,101,0.5);
}

/* ---------------- Social proof ---------------- */
.proof {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 64px 0;
  background: var(--bg);
}
.proof-lede {
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 36px;
}
.logo-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 64px;
}
.logo-cell {
  display: grid; place-items: center;
  color: var(--ink-3);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  opacity: 0.7;
  transition: opacity 200ms;
}
.logo-cell:hover { opacity: 1; color: var(--ink); }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.stat {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .lbl {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.4;
}

/* ---------------- Section heads ---------------- */
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}
.section-head h2 { margin: 18px 0 16px; }
.section-head p { font-size: 18px; line-height: 1.55; }

/* ---------------- Workflow ---------------- */
.workflow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.workflow-step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  transition: all 220ms ease;
  box-shadow: var(--shadow-sm);
}
.workflow-step.active {
  border-color: rgba(21,119,214,0.4);
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(21,119,214,0.25), 0 0 0 1px rgba(21,119,214,0.2);
}
.step-no {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  display: flex; align-items: center; justify-content: space-between;
}
.step-no .who { color: var(--ink-3); letter-spacing: 0.04em; }
.step-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
  display: grid; place-items: center;
  color: var(--accent);
}
.workflow-step.active .step-icon {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-color: var(--accent-deep);
  color: white;
}
.step-title { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.step-desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.step-connector {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-4);
  font-size: 14px;
  z-index: 2;
}

.workflow-tray {
  margin-top: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.tray-meta { display: flex; flex-direction: column; gap: 8px; }
.tray-meta .tag {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.tray-meta h4 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.tray-meta p { font-size: 13.5px; color: var(--ink-3); }
.tray-stage {
  height: 160px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

/* ---------------- Before / After ---------------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-md);
}
.compare-side { padding: 40px; position: relative; }
.compare-side.before {
  background: var(--bg-2);
  color: var(--ink);
  border-right: 1px solid var(--line);
}
.compare-side.after {
  background: linear-gradient(160deg, #0B1220 0%, #131B2E 100%);
  color: white;
  position: relative;
}
.compare-side.after::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 70% 30%, black, transparent 70%);
  pointer-events: none;
}
.compare-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
}
.compare-side.after .compare-head { color: var(--accent-bright); }
.compare-side.before .compare-head { color: var(--ink-3); }
.compare h3 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  position: relative;
}
.compare-side.after h3 { color: white; }
.compare-list { display: flex; flex-direction: column; gap: 0; position: relative; }
.compare-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(11,18,32,0.06);
  font-size: 15px;
}
.compare-side.after .compare-item { border-bottom-color: rgba(255,255,255,0.08); }
.compare-item:last-child { border-bottom: none; }
.compare-item .ic {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 12px;
}
.compare-side.before .ic { background: rgba(11,18,32,0.06); color: var(--ink-3); }
.compare-side.after .ic { background: rgba(16,167,101,0.18); color: #4BD68E; }
.compare-item .ttl { font-weight: 500; }
.compare-item .sub { font-size: 12.5px; opacity: 0.7; margin-top: 2px; }

/* ---------------- Feature grid ---------------- */
.features {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex; flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color 200ms, transform 200ms, box-shadow 200ms;
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-card .ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
}
.feature-card h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.feature-card p { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.feature-visual {
  margin-top: auto;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  height: 160px;
  position: relative;
  overflow: hidden;
}
.feature-card.span-6 { grid-column: span 6; }
.feature-card.span-4 { grid-column: span 4; }
.feature-card.span-3 { grid-column: span 3; }

/* ---------------- Tablet section ---------------- */
.tablet-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.tablet-section-copy h2 { margin-bottom: 22px; }
.tablet-features {
  margin-top: 32px;
  display: flex; flex-direction: column; gap: 18px;
}
.tablet-feat {
  display: flex; gap: 16px;
  padding-left: 18px;
  border-left: 2px solid var(--line);
}
.tablet-feat.active { border-left-color: var(--accent); }
.tablet-feat-i {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--accent-soft-2);
}
.tablet-feat h5 { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--ink); }
.tablet-feat p { font-size: 13.5px; color: var(--ink-3); margin: 0; }

.tablet-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 640px;
}
.tablet-big {
  width: 440px; height: 600px;
  background: #1A1F2C;
  border-radius: 36px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.tablet-big::before {
  content: ""; position: absolute; top: 50%; left: -4px; width: 4px; height: 80px;
  background: #1A1F2C; border-radius: 4px 0 0 4px;
  transform: translateY(-50%);
}
.tablet-big-screen {
  width: 100%; height: 100%;
  background: #F4F5F7;
  color: #0B1019;
  border-radius: 22px;
  padding: 24px;
  display: flex; flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

/* ---------------- Analytics (dark section for contrast) ---------------- */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.an-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 22px;
  color: white;
}
.an-card .h {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 14px;
}
.an-card .h-lab { font-size: 11.5px; color: rgba(255,255,255,0.5); font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.an-card .h-val { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: white; margin-top: 4px; }
.an-card .h-delta { font-size: 12px; color: #4BD68E; font-family: var(--mono); }
.an-c-8 { grid-column: span 8; }
.an-c-4 { grid-column: span 4; }
.an-c-6 { grid-column: span 6; }
.an-c-3 { grid-column: span 3; }

/* ---------------- Final CTA ---------------- */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-card {
  position: relative;
  background: linear-gradient(160deg, #0B1220 0%, #131B2E 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 28px;
  padding: 88px 64px;
  text-align: center;
  overflow: hidden;
  color: white;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(45,169,255,0.3) 0%, transparent 60%),
    radial-gradient(ellipse 30% 40% at 80% 0%, rgba(45,169,255,0.18) 0%, transparent 60%);
}
.cta-card::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent 75%);
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { margin-bottom: 18px; color: white; }
.cta-card .lead { color: rgba(255,255,255,0.75); margin: 0 auto 32px; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; }

/* ---------------- Footer ---------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  background: var(--bg);
}
.footer-top {
  margin-bottom: 48px;
}
.footer-col h6 {
  font-size: 12px; font-family: var(--mono); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.footer-col a:hover { color: var(--ink); }
.footer-tag { color: var(--ink-3); font-size: 13px; max-width: 280px; line-height: 1.5; margin-top: 12px; }
.footer-bot {
  display: flex; justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-4);
  font-family: var(--mono);
}

/* ---------------- Product mockup chrome (matches real app) ---------------- */
.pc-app {
  background: #F4F5F7;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 620px;
}
.pc-header {
  display: grid;
  grid-template-columns: 280px 1fr auto;
  align-items: center;
  background: #0B1019;
  color: white;
  padding: 0 18px;
  height: 60px;
  gap: 24px;
}
.pc-header-left { display: flex; align-items: center; gap: 12px; }
.pc-brand-mark {
  width: 38px; height: 38px;
  background: #0B1019;
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 18px;
  color: white;
}
.pc-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.pc-brand-name { font-size: 14px; font-weight: 600; }
.pc-brand-customer { font-size: 10.5px; font-family: var(--mono); letter-spacing: 0.08em; color: rgba(255,255,255,0.55); margin-top: 2px; }
.pc-header-nav {
  display: flex; gap: 4px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  justify-content: center;
}
.pc-header-nav span {
  padding: 7px 14px;
  border-radius: 7px;
  cursor: default;
}
.pc-header-nav span.active {
  background: #1B2230;
  color: white;
  font-weight: 500;
}
.pc-header-right { display: flex; align-items: center; gap: 14px; }
.pc-search {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
}
.pc-search-icon { font-size: 13px; }
.pc-search-text { width: 110px; }
.pc-search-kbd {
  font-family: var(--mono); font-size: 10.5px;
  background: rgba(255,255,255,0.08);
  padding: 1px 5px;
  border-radius: 4px;
  color: rgba(255,255,255,0.8);
}
.pc-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFB066, #F58422);
  display: grid; place-items: center;
  color: white; font-size: 12px; font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.pc-header-action {
  font-size: 12.5px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
}

/* Schedule page body */
.pc-page {
  padding: 22px 28px 28px;
  display: flex; flex-direction: column; gap: 18px;
  flex: 1;
}
.pc-page-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px;
}
.pc-page-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.pc-page-sub { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.pc-page-actions { display: flex; gap: 8px; align-items: center; }
.pc-date-picker {
  display: inline-flex; align-items: center; gap: 8px;
  background: white;
  border: 1px solid var(--line-2);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--ink);
}
.pc-date-arrow { color: var(--ink-3); cursor: pointer; padding: 0 2px; }
.pc-date-today {
  font-family: var(--mono); font-size: 10px;
  background: var(--bg-3);
  padding: 1px 6px; border-radius: 999px;
  color: var(--ink-2);
}
.pc-btn {
  background: white;
  border: 1px solid var(--line-2);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.pc-btn:hover { border-color: var(--line-strong); }
.pc-btn-primary {
  background: #0B1019;
  color: white;
  border-color: #0B1019;
}
.pc-chips { display: flex; gap: 8px; }
.pc-chip {
  font-size: 12px;
  padding: 5px 12px;
  background: white;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.pc-chip-icon { font-size: 11px; }
.pc-schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1;
  align-items: start;
}

/* Crew card */
.pc-crew-card {
  background: white;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.pc-crew-card.selected {
  border-color: #3B5BE0;
  box-shadow: 0 0 0 1px rgba(59,91,224,0.5), 0 6px 16px -8px rgba(59,91,224,0.3);
}
.pc-crew-card-head { display: flex; align-items: center; gap: 10px; }
.pc-chev { color: var(--ink-3); font-size: 11px; }
.pc-crew-num { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.pc-crew-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: #EEF1FF;
  color: #3B5BE0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.pc-crew-pill-sep { opacity: 0.5; }
.pc-crew-actions { margin-left: auto; display: flex; gap: 8px; color: var(--ink-3); }
.pc-crew-action { display: inline-flex; cursor: pointer; }
.pc-crew-action:hover { color: var(--ink); }

/* Crew people chips */
.pc-crew-people { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-person {
  display: inline-flex; align-items: center; gap: 5px;
  background: #F1F2F5;
  padding: 3px 9px 3px 4px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink);
}
.pc-person-driver { background: #FFE9D6; color: #8C4A0C; }
.pc-person-init {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  display: grid; place-items: center;
  font-size: 9.5px; font-weight: 600;
}
.pc-person-driver .pc-person-init { background: rgba(140,74,12,0.2); color: #8C4A0C; }
.pc-person-star { color: #F5A623; font-size: 11px; }
.pc-person-x { color: var(--ink-4); margin-left: 2px; font-size: 12px; cursor: pointer; }

.pc-crew-meta {
  display: flex; gap: 18px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}

/* Stop list */
.pc-stop-list { display: flex; flex-direction: column; gap: 6px; }
.pc-stop {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: white;
  font-size: 13px;
  transition: all 220ms ease;
}
.pc-stop.completed {
  background: #EAF8F1;
  border-color: rgba(31,171,94,0.25);
}
.pc-stop.completed .pc-stop-title {
  text-decoration: line-through;
  text-decoration-color: rgba(31,171,94,0.4);
  color: var(--ink-2);
}
.pc-stop.highlight {
  animation: pcStopFlash 1.4s ease-out;
}
@keyframes pcStopFlash {
  0% { background: #C5EBD6; box-shadow: 0 0 0 2px rgba(31,171,94,0.4); }
  100% { background: #EAF8F1; box-shadow: 0 0 0 0 transparent; }
}
.pc-stop-num {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--bg-3);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600;
  color: var(--ink-2);
  flex-shrink: 0;
}
.pc-stop-check {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: #10A765;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.pc-stop-check-inner { color: white; font-size: 12px; font-weight: 700; }
.pc-stop-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pc-stop-title { font-weight: 500; }
.pc-stop-id { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.02em; }
.pc-stop-count {
  font-weight: 600;
  color: var(--success);
  font-size: 14px;
}
.pc-stop-x { color: var(--ink-4); font-size: 13px; cursor: pointer; }
.pc-stop-add {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--ink-4);
}
.pc-stop-add-plus {
  width: 22px; height: 22px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-size: 13px;
  color: var(--ink-3);
}
.pc-stop-add-input { flex: 1; }
.pc-stop-add-return { color: var(--ink-4); }

/* Empty add-crew card */
.pc-add-crew {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 12px;
  padding: 60px 24px;
  background: rgba(255,255,255,0.4);
  min-height: 280px;
}
.pc-add-crew-plus {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-size: 20px; color: var(--ink-3);
}
.pc-add-crew-text { font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
.pc-add-crew-hint { font-size: 12px; color: var(--ink-4); }

/* Crew tablet — Stop Detail in the field */
.pc-tablet {
  align-self: stretch;
  background: #1A1F2C;
  border-radius: 28px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}
.pc-tablet::before {
  content: ""; position: absolute; top: 50%; left: 4px; width: 4px; height: 60px;
  background: rgba(255,255,255,0.08); border-radius: 0 4px 4px 0;
  transform: translateY(-50%);
}
.pc-tablet-screen {
  flex: 1;
  background: #F4F5F7;
  border-radius: 16px;
  padding: 14px 14px 16px;
  display: flex; flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.pc-tablet-status {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px;
  color: #6B7689;
}
.pc-tablet-status-mid { color: var(--success); font-weight: 500; }
.pc-tablet-titlebar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0 10px;
  border-bottom: 1px solid #E2E5EC;
}
.pc-tablet-back { font-size: 12px; color: var(--ink-3); }
.pc-tablet-titlebar-r { display: flex; gap: 10px; }
.pc-tablet-tb-action { font-size: 11.5px; color: var(--ink-3); }

.pc-tablet-stop-hero {
  background: white;
  border: 1px solid #E2E5EC;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.pc-tablet-stop-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-tablet-stop-title { font-size: 16px; font-weight: 700; margin: 0; color: var(--ink); letter-spacing: -0.01em; }
.pc-tablet-stop-id { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.pc-tablet-pill {
  font-size: 10.5px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
  letter-spacing: 0.02em;
}
.pc-tablet-pill-done { background: #E4F7EC; color: #117A45; border: 1px solid rgba(16,167,101,0.25); }
.pc-tablet-pill-active { background: #EEF1FF; color: #3B5BE0; border: 1px solid rgba(59,91,224,0.25); }
.pc-tablet-stop-loc { font-size: 12px; color: var(--ink-3); }
.pc-tablet-stop-stat { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.pc-tablet-stat-num { font-size: 26px; font-weight: 700; color: var(--success); letter-spacing: -0.02em; line-height: 1; }
.pc-tablet-stat-lbl { font-family: var(--mono); font-size: 9.5px; color: var(--ink-3); letter-spacing: 0.1em; }

.pc-tablet-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 4px;
}
.pc-tablet-field-lbl { font-family: var(--mono); font-size: 9.5px; color: var(--ink-3); letter-spacing: 0.08em; margin-bottom: 3px; }
.pc-tablet-field-val { font-size: 12.5px; color: var(--ink); font-weight: 500; }

.pc-tablet-wo {
  background: white;
  border: 1px solid #E2E5EC;
  border-radius: 10px;
  padding: 10px 14px;
}
.pc-tablet-wo-head { display: flex; justify-content: space-between; align-items: center; }
.pc-tablet-wo-lbl { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.08em; }
.pc-tablet-wo-state { font-size: 12px; font-weight: 600; }
.pc-tablet-wo-state.sent { color: var(--success); }
.pc-tablet-wo-state.pending { color: var(--ink-3); }
.pc-tablet-wo-detail { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; font-family: var(--mono); }

.pc-tablet-box {
  background: white;
  border: 1px solid #E2E5EC;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.pc-tablet-box-lbl { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.08em; margin-bottom: 2px; }
.pc-tablet-box-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pc-tablet-check { color: var(--success); font-weight: 700; }

.pc-tablet-cta-row { margin-top: auto; }
.pc-tablet-cta {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: #0B1019;
  color: white;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
}
.pc-tablet-cta.done {
  background: #10A765;
}

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .hero-stage-inner { grid-template-columns: 1fr; }
  .pc-schedule-grid { grid-template-columns: 1fr; }
  .pc-header { grid-template-columns: 1fr auto; }
  .pc-header-nav { display: none; }
  .tablet-section { grid-template-columns: 1fr; gap: 40px; }
  .features { grid-template-columns: repeat(6, 1fr); }
  .feature-card.span-6, .feature-card.span-4, .feature-card.span-3 { grid-column: span 3; }
  .compare { grid-template-columns: 1fr; }
}

/* ---------------- Day Report mock ---------------- */
.dayreport {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.dayreport-back { font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.dayreport-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px;
}
.dayreport-title { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.dayreport-date { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.dayreport-actions { display: flex; gap: 8px; align-items: center; }
.dayreport-check {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--ink-2);
}
.dayreport-check input { accent-color: var(--accent); }

.dayreport-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 16px;
}
.dr-kpi-num {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  display: inline-flex; align-items: baseline; gap: 6px;
}
.dr-kpi-num.dr-success { color: var(--success); }
.dr-kpi-num.dr-accent { color: var(--accent); }
.dr-kpi-denom { font-size: 18px; font-weight: 500; color: var(--ink-4); }
.dr-kpi-lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-top: 8px;
}

.dayreport-crews { display: flex; flex-direction: column; gap: 16px; }
.dr-crew {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}
.dr-crew-banner {
  background: linear-gradient(180deg, #3B5BE0 0%, #2E47B8 100%);
  color: white;
  padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.dr-crew-num { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.dr-crew-people { font-size: 13px; color: rgba(255,255,255,0.8); margin-top: 2px; }
.dr-crew-banner-r { display: flex; gap: 28px; align-items: center; }
.dr-crew-stat { display: flex; flex-direction: column; align-items: flex-end; }
.dr-crew-stat-num { font-size: 22px; font-weight: 700; line-height: 1; }
.dr-crew-stat-lbl { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.7); letter-spacing: 0.08em; margin-top: 2px; }
.dr-crew-actions { display: flex; gap: 6px; }
.dr-crew-action {
  font-size: 12px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 7px;
  color: white;
  cursor: pointer;
}
.dr-crew-meta {
  display: flex; gap: 20px;
  padding: 10px 18px;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.dr-crew-stops { display: flex; flex-direction: column; }
.dr-crew-stop {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.dr-crew-stop:last-child { border-bottom: none; }
.dr-crew-stop-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-2);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.dr-crew-stop-check.done { background: var(--success-soft); color: var(--success); font-weight: 700; }
.dr-crew-stop-body { flex: 1; }
.dr-crew-stop-title { font-weight: 500; }
.dr-crew-stop-time { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.dr-crew-stop-box {
  font-size: 11px;
  padding: 3px 9px;
  background: var(--success-soft);
  color: var(--success);
  border-radius: 999px;
  font-weight: 500;
}
.dr-crew-stop-count {
  font-weight: 700;
  color: var(--success);
  width: 30px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.dr-crew-stop-count:not(.done) { color: var(--ink-4); }

/* ---------------- Crew tablet — real crew app UI ---------------- */
.tb-screen {
  padding: 14px 16px 18px;
  gap: 12px;
}
.tb-statusbar {
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}
.tb-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid #E2E5EC;
  gap: 10px;
}
.tb-head-l { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tb-crew-num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.tb-driver {
  color: #B8472A;
  font-weight: 600;
  font-size: 12px;
  margin-top: 6px;
}
.tb-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 1px;
}
.tb-head-r {
  display: flex; align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.tb-lang {
  display: inline-flex;
  background: var(--bg-3);
  border-radius: 999px;
  padding: 2px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}
.tb-lang span {
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--ink-3);
}
.tb-lang span.active {
  background: #3B5BE0;
  color: white;
}
.tb-signout {
  background: white;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10.5px;
  color: var(--ink-2);
  cursor: pointer;
}

.tb-banner {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}
.tb-banner-leaving {
  background: #FBEFE0;
  color: #B8472A;
}
.tb-banner-ready {
  background: #E8F0FF;
  color: #2A47B4;
}

.tb-vehicle {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-2);
}

.tb-stops { display: flex; flex-direction: column; gap: 8px; }

.tb-stop {
  background: #F7F3F7;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
  transition: background 220ms ease;
}
.tb-stop-in-progress { background: #E8F0FF; }
.tb-stop-completed { background: #E4F7EC; }
.tb-stop-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tb-stop-cust { font-size: 12.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.005em; }
.tb-stop-status {
  font-size: 9.5px;
  color: var(--ink-3);
  font-weight: 500;
  flex-shrink: 0;
}
.tb-stop-status-in-progress { color: #2A47B4; font-weight: 600; }
.tb-stop-status-completed { color: #0E7B47; font-weight: 600; }
.tb-stop-addr { font-size: 10.5px; color: var(--ink-3); }
.tb-stop-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 4px;
  gap: 8px;
}
.tb-stop-wo {
  display: flex; gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.tb-stop-wo-id { font-weight: 600; color: var(--ink-2); }
.tb-stop-wo-count.has { color: var(--success); font-weight: 600; }
.tb-navigate {
  background: white;
  border: 1px solid #3B5BE0;
  color: #3B5BE0;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
}

.tb-cta {
  margin-top: auto;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(59,91,224,0.4);
}
.tb-cta-start, .tb-cta-end { background: #3B5BE0; }
.tb-cta-start:hover, .tb-cta-end:hover { background: #2E47B8; }

/* Sign-in tablet screen */
.tb-signin-screen {
  padding: 18px 22px 24px;
  gap: 0 !important;
  background: white !important;
}
.tb-signin-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px;
}
.tb-signin-refresh, .tb-signin-menu {
  color: var(--ink-3);
  font-size: 18px;
  cursor: pointer;
}
.tb-signin-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--ink);
}
.tb-signin-tabs {
  display: flex; gap: 12px;
  justify-content: center;
  margin-bottom: 36px;
}
.tb-signin-tab {
  background: white;
  border: 1px solid var(--line-2);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  font-weight: 500;
}
.tb-signin-tab.active {
  background: #FBEFE0;
  border-color: #F0D2A0;
  color: #8A4A0F;
}
.tb-signin-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.tb-signin-crew {
  background: white;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 200ms;
}
.tb-signin-crew:hover { border-color: var(--ink-4); }
.tb-signin-crew-selected {
  border-color: #B8C8F0;
  background: #FAFCFF;
}
.tb-signin-crew-num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.tb-signin-crew-driver {
  color: #B8472A;
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
}

/* Video modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-modal.open { display: flex; }
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 24, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: video-modal-fade 180ms ease-out;
}
.video-modal-content {
  position: relative;
  width: min(1100px, 100%);
  max-height: 90vh;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  animation: video-modal-rise 220ms cubic-bezier(.2,.8,.2,1);
}
.video-modal-content video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  background: #000;
}
.video-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: background 120ms ease;
}
.video-modal-close:hover { background: rgba(0,0,0,0.8); }
@keyframes video-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes video-modal-rise {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------------- Mobile (≤720px) ---------------- */
@media (max-width: 720px) {
  /* Layout */
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }
  .section.tight { padding: 48px 0; }

  /* Headings */
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 19px; }

  /* Nav */
  .nav-inner { padding: 12px 18px; gap: 8px; }
  .brand-logo { height: 24px; }
  .nav-cta .signin { display: none; }
  .nav-cta .btn { padding: 8px 14px; font-size: 13.5px; }

  /* Hero */
  .hero { padding: 28px 0 0; }
  .hero-top { margin-bottom: 32px; padding: 0 18px; }
  .hero h1 { margin: 16px 0; }
  .hero-sub { font-size: 16px; line-height: 1.5; }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 24px;
  }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-meta {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
    margin-top: 20px;
  }
  /* Hide the dense schedule preview — it doesn't scale to phones */
  .hero-stage { display: none; }

  /* Workflow — stack steps */
  .workflow {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .step-connector { display: none; }
  .workflow-tray {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 18px;
    margin-top: 24px;
  }
  /* Timeline playhead is positioned for desktop layout — hide on mobile */
  #timeline-playhead { display: none; }

  /* Before/After (already stacks at 1100, tune padding) */
  .compare-side { padding: 24px; }

  /* Features — single column */
  .features { grid-template-columns: 1fr; gap: 12px; }
  .feature-card.span-6,
  .feature-card.span-4,
  .feature-card.span-3 { grid-column: 1 / -1; }
  .feature-visual { height: 140px; }

  /* Tablet section copy + image stack */
  .tablet-section { gap: 32px; }

  /* CTA card */
  .cta-card {
    padding: 48px 22px;
    border-radius: 20px;
  }
  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .cta-buttons .btn { width: 100%; justify-content: center; }

  /* Day report */
  .dayreport { padding: 18px; }
  .dayreport-head {
    flex-direction: column;
    gap: 12px;
  }
  .dayreport-title { font-size: 22px; }
  .dayreport-kpis {
    grid-template-columns: repeat(2, 1fr);
    padding: 14px;
    gap: 12px;
  }
  .dr-kpi-num { font-size: 28px; }

  /* Footer */
  .footer { padding: 48px 0 28px; }
  .footer-bot {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  /* Section heads */
  .section-head h2 { margin: 12px 0 12px; }
  .section-head p { font-size: 16px; }

  /* Video modal — full-width on mobile */
  .video-modal { padding: 12px; }
  .video-modal-content { border-radius: 10px; }
}

@media (max-width: 720px) {
  .stats-row {
    grid-template-columns: 1fr;
    border-top: none;
  }
  .stat {
    padding: 22px 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .stat:last-child { border-bottom: none; }
  .stat .num { font-size: 32px; }
}
