/* ====================================================
   Fieldwork — landing page styles
   Mobile-first. Desktop breakpoint: min-width 900px.
   ==================================================== */

:root {
  --bg:           #F4EFE6;
  --bg-alt:       #EDE7DB;
  --bg-dark:      #1A3A1C;
  --fg:           #1A1A1A;
  --fg-muted:     #5C5C5C;
  --accent:       #1A3A1C;
  --accent-warm:  #C4622D;
  --border:       #D4CFC5;
  --nav-h:        60px;
  --radius:       10px;
  --max-w:        1120px;
  --pad-x:        20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Utilities ---- */
.section-label {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 14px;
}
.section-label--light { color: rgba(255,255,255,0.55); }

.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 4vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 600px;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s;
}
.btn-primary:hover { background: #14301A; }

.btn-ghost {
  display: inline-block;
  color: var(--fg-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  padding: 14px 0;
  text-decoration: none;
  transition: color 0.15s;
}
.btn-ghost:hover { color: var(--fg); }

/* ---- NAV ---- */
.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}
.nav-brand { display: flex; align-items: baseline; gap: 10px; }
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.nav-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  display: none;
}
.nav-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-cta:hover { background: #14301A; }
.nav-links {
  display: none;
  align-items: center;
  gap: 20px;
}
.nav-link {
  font-size: 13px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--fg); }
@media (min-width: 900px) {
  .nav-links { display: flex; }
}

/* ---- HERO ---- */
.hero {
  padding: 72px var(--pad-x) 80px;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-warm);
  background: rgba(196,98,45,0.1);
  border: 1px solid rgba(196,98,45,0.25);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 28px;
}
.hero-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--fg);
  margin-bottom: 24px;
  max-width: 760px;
}
.hero-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 600px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.hero-capabilities {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-cap-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--fg-muted);
}
.hero-cap-sep {
  color: var(--border);
  font-size: 13px;
}
.hero-cap-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
.hero-cap-link:hover { color: var(--accent); }
.hero-proof {
  font-size: 13px;
  color: var(--fg-muted);
  border-left: 3px solid var(--border);
  padding-left: 12px;
  max-width: 480px;
}

/* ---- BEFORE / AFTER ---- */
.before-after {
  padding: 80px var(--pad-x);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.ba-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.ba-header { margin-bottom: 48px; }
.ba-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ba-col {
  flex: 1;
  padding: 32px 0;
}
.ba-col-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.ba-before .ba-col-label { color: var(--accent-warm); }
.ba-after .ba-col-label { color: var(--accent); }
.ba-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ba-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg);
}
.ba-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
}
.ba-dot--bad { background: var(--accent-warm); opacity: 0.6; }
.ba-dot--good { background: var(--accent); }
.ba-divider {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 16px 0;
}
.ba-divider-line { flex: 1; height: 1px; background: var(--border); }
.ba-divider-icon { padding: 0 16px; flex-shrink: 0; }

/* ---- DIGEST PREVIEW ---- */
.digest-preview {
  padding: 80px var(--pad-x);
  border-bottom: 1px solid var(--border);
}
.dp-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.dp-header {
  margin-bottom: 48px;
  max-width: 640px;
}
.dp-email-frame {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.dp-email-chrome {
  background: #F1ECE3;
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 12px 16px;
}
.dp-chrome-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.dp-chrome-dots span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.dp-chrome-subject {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 4px;
}
.dp-chrome-from { font-size: 12px; color: var(--fg-muted); }
.dp-email-body { padding: 32px 28px 24px; }
.dp-email-header {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 20px;
  margin-bottom: 28px;
}
.dp-email-logo {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.dp-email-meta {
  font-size: 13px;
  color: var(--fg-muted);
}
.dp-meta-sep { margin: 0 8px; }
.dp-email-section { margin-bottom: 24px; }
.dp-summary {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg);
  padding: 16px 20px;
  background: var(--bg-alt);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}
.dp-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.dp-flag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}
.dp-flag--low { background: #FFF3E0; color: #C4622D; }
.dp-flag--medium { background: #FFF8E1; color: #9C6800; }
.dp-flag--high { background: #FFEBEE; color: #C62828; }
.dp-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dp-checklist li {
  font-size: 14px;
  color: var(--fg);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.dp-check {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.dp-checklist--next li { color: var(--fg-muted); }
.dp-next-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-warm);
  flex-shrink: 0;
  margin-top: 7px;
}
.dp-issue-card {
  background: #FFF8F5;
  border: 1px solid rgba(196,98,45,0.2);
  border-radius: 8px;
  padding: 16px 18px;
}
.dp-issue-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 6px;
}
.dp-issue-desc { font-size: 13px; color: var(--fg-muted); line-height: 1.6; }
.dp-email-note {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 4px;
  margin-bottom: 20px;
}
.dp-email-note p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 8px;
}
.dp-note-sig { font-style: italic; }
.dp-email-footer {
  font-size: 12px;
  color: #aaa;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.dp-caption {
  text-align: center;
  font-size: 14px;
  color: var(--fg-muted);
  margin-top: 24px;
}

/* ---- POSITIONING ---- */
.positioning {
  padding: 80px var(--pad-x);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.pos-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.pos-stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pos-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(72px, 14vw, 120px);
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--accent);
}
.pos-label {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 360px;
  line-height: 1.45;
}
.pos-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3.5vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 20px;
}
.pos-body {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 600px;
}
.pos-callout {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.pos-callout-line {
  flex-shrink: 0;
  width: 32px;
  height: 2px;
  background: var(--accent-warm);
}
.pos-callout p {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  font-style: italic;
}

/* ---- WAITLIST FORM ---- */
.waitlist {
  padding: 80px var(--pad-x);
  background: var(--bg-dark);
}
.wl-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.wl-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 4.5vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
}
.wl-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 28px;
}
.wl-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wl-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255,255,255,0.8);
}
.wl-form-wrap {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 32px 28px;
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
}
.form-optional { color: rgba(255,255,255,0.4); font-weight: 400; }
.form-required { color: var(--accent-warm); }
.form-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #fff;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.form-input::placeholder { color: rgba(255,255,255,0.3); }
.form-input:focus {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.12);
}
.form-submit {
  width: 100%;
  padding: 14px;
  background: #fff;
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  margin-bottom: 12px;
}
.form-submit:hover:not(:disabled) { background: #EDE7DB; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-message {
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-weight: 500;
}
.form-message--success { background: rgba(26,58,28,0.5); color: #a8e6a8; border: 1px solid rgba(168,230,168,0.3); }
.form-message--error { background: rgba(196,98,45,0.2); color: #ffa07a; border: 1px solid rgba(255,160,122,0.3); }
.form-message--info { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.15); }
.form-legal {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px var(--pad-x);
  background: var(--bg);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
}
.footer-copy { font-size: 13px; color: var(--fg-muted); }

/* ====================================================
   DISPATCHER DEMO
   ==================================================== */
.dispatcher-demo {
  padding: 80px var(--pad-x);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.dd-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.dd-header {
  margin-bottom: 48px;
  max-width: 640px;
}

/* demo wrapper: stacks on mobile, 3-col on desktop */
.dd-demo-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* panels */
.dd-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  flex: 1;
  min-width: 0;
}
.dd-panel--before { border-top: 3px solid var(--accent-warm); margin-bottom: 0; }
.dd-panel--after  { border-top: 3px solid var(--accent); }

.dd-panel-header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dd-panel-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.dd-panel-badge--bad  { color: var(--accent-warm); }
.dd-panel-badge--good { color: var(--accent); }

.dd-panel-stats {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  flex-wrap: wrap;
}
.dd-stats-bad  { color: var(--accent-warm); }
.dd-stats-good { color: var(--accent); transition: opacity 0.4s; }
.dd-stat strong { font-weight: 700; }
.dd-stat-sep { color: var(--border); }

/* SVG map */
.dd-map-wrap {
  padding: 0;
  background: #F4EFE6;
}
.dd-map {
  width: 100%;
  height: auto;
  display: block;
  max-height: 200px;
}

/* schedule cards */
.dd-schedule {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}
.dd-tech-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
}
.dd-tech-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.dd-tech-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dd-tech-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--fg);
}
.dd-tech-jobs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 18px;
}
.dd-job-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11px;
  color: var(--fg-muted);
  line-height: 1.4;
}
.dd-job-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 1px;
}
.dd-job-tag--hvac    { background: #E8F5E9; color: #2E7D32; }
.dd-job-tag--service { background: #E3F2FD; color: #1565C0; }
.dd-job-tag--install { background: #FFF3E0; color: #BF6000; }
.dd-job-tag--mismatch { background: #FFEBEE; color: #C62828; }

/* center optimize button */
.dd-center {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 0;
}
.dd-optimize-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.dd-optimize-btn:hover:not(:disabled) { background: #14301A; transform: translateY(-1px); }
.dd-optimize-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.dd-center-label {
  font-size: 11px;
  color: var(--fg-muted);
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
}

@keyframes dd-spin {
  to { transform: rotate(360deg); }
}
.dd-spinner {
  animation: dd-spin 0.9s linear infinite;
}

/* results banner */
.dd-results-banner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #F0F7F0;
  border-bottom: 1px solid rgba(26,58,28,0.1);
  padding: 12px 16px;
}
.dd-result-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.dd-result-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.dd-result-label {
  font-size: 10px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* caption */
.dd-caption {
  text-align: center;
  font-size: 14px;
  color: var(--fg-muted);
  margin-top: 28px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-style: italic;
}

/* ====================================================
   ESCALATION DEMO
   ==================================================== */
.escalation-demo {
  padding: 80px var(--pad-x);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.esc-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.esc-header {
  margin-bottom: 48px;
  max-width: 640px;
}

/* Ops feed */
.esc-ops-feed {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  margin-bottom: 24px;
}
.esc-feed-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.esc-feed-label {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.esc-feed-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.esc-feed-dot--live {
  background: #52C41A;
  box-shadow: 0 0 0 3px rgba(82,196,26,0.25);
  animation: esc-pulse 2s infinite;
}
@keyframes esc-pulse {
  0%,100% { box-shadow: 0 0 0 2px rgba(82,196,26,0.25); }
  50%      { box-shadow: 0 0 0 5px rgba(82,196,26,0.1); }
}
.esc-feed-time {
  font-size: 12px;
  color: var(--fg-muted);
  margin-left: auto;
}

/* Job rows */
.esc-job-list { display: flex; flex-direction: column; }
.esc-job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  transition: background 0.25s;
}
.esc-job-row:last-child { border-bottom: none; }
.esc-job-row--anomaly { background: #FFFBF5; }
.esc-job-row--anomaly-late  { border-left: 3px solid #FF4D4F; }
.esc-job-row--anomaly-gps   { border-left: 3px solid #FA8C16; }
.esc-job-row--anomaly-ping  { border-left: 3px solid #52C41A; }

.esc-job-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.esc-tech-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.esc-job-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.esc-job-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.esc-job-tech {
  font-size: 11px;
  color: var(--fg-muted);
}
.esc-job-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.esc-job-type {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.esc-type--hvac    { background: #E8F5E9; color: #2E7D32; }
.esc-type--service { background: #E3F2FD; color: #1565C0; }
.esc-type--install { background: #FFF3E0; color: #BF6000; }

.esc-job-status {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  text-transform: capitalize;
  white-space: nowrap;
}
.esc-status--enroute    { background: #E3F2FD; color: #1565C0; }
.esc-status--inprogress { background: #E8F5E9; color: #2E7D32; }
.esc-status--onsite     { background: #F3E5F5; color: #6A1B9A; }
.esc-status--scheduled  { background: #F4EFE6; color: var(--fg-muted); }
.esc-status--completed  { background: #F4EFE6; color: var(--fg-muted); }
.esc-status--alert-high { background: #FFF1F0; color: #CF1322; animation: esc-blink 1s step-end 3; }
.esc-status--alert-med  { background: #FFF7E6; color: #D46B08; animation: esc-blink 1s step-end 3; }
.esc-status--alert-low  { background: #F6FFED; color: #237804; animation: esc-blink 1s step-end 3; }
@keyframes esc-blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}
.esc-job-eta {
  font-size: 11px;
  color: var(--fg-muted);
  min-width: 52px;
  text-align: right;
  white-space: nowrap;
}
.esc-eta--done { color: #2E7D32; }

/* Cards area */
.esc-cards-area { margin-bottom: 24px; }
.esc-cards-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 14px;
}
.esc-cards { display: flex; flex-direction: column; gap: 14px; }
.esc-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 0;
  color: var(--fg-muted);
  font-size: 14px;
}

/* Individual escalation card */
.esc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.15s, box-shadow 0.15s;
}
.esc-card--animating {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.esc-card--high   { border-top: 3px solid #FF4D4F; }
.esc-card--medium { border-top: 3px solid #FA8C16; }
.esc-card--low    { border-top: 3px solid #52C41A; }
.esc-card--selected { box-shadow: 0 0 0 2px var(--accent), 0 4px 16px rgba(0,0,0,0.08); }

.esc-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 10px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.esc-card-sev-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.esc-card-sev {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  flex-shrink: 0;
}
.esc-card-title { font-size: 13px; font-weight: 600; color: var(--fg); }

.esc-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.esc-card-what {
  font-size: 13px;
  color: var(--fg);
  line-height: 1.6;
  padding: 12px 14px;
  background: var(--bg-alt);
  border-radius: 6px;
  margin: 0;
}
.esc-card-notified { display: flex; flex-direction: column; gap: 6px; }
.esc-notified-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.esc-notified-list { display: flex; flex-direction: column; gap: 4px; }
.esc-notified-item { font-size: 12px; color: var(--accent); }

.esc-card-draft { display: flex; flex-direction: column; gap: 6px; }
.esc-draft-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.esc-draft-text {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.65;
  font-style: italic;
  padding: 10px 12px;
  background: #FFFBF5;
  border: 1px solid rgba(196,98,45,0.18);
  border-radius: 6px;
  margin: 0;
}
.esc-card-cta {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.esc-card-cta:hover { background: #14301A; transform: translateY(-1px); }

/* Run button */
.esc-run-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 32px; }
.esc-run-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.esc-run-btn:hover:not(:disabled) { background: #14301A; transform: translateY(-1px); }
.esc-run-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.esc-run-btn--done { background: #2E7D32; }
.esc-run-btn--done:hover:not(:disabled) { background: #1B5E20; }
@keyframes esc-spin { to { transform: rotate(360deg); } }
.esc-spinner { animation: esc-spin 0.9s linear infinite; }
.esc-run-hint { font-size: 13px; color: var(--fg-muted); text-align: center; }

/* Alert email capture */
.esc-alert-capture {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
  pointer-events: none;
}
.esc-alert-capture--visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.esc-capture-inner {
  background: var(--bg-dark);
  border-radius: 12px;
  padding: 32px 28px;
  max-width: 520px;
  margin: 0 auto 32px;
}
.esc-capture-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
}
.esc-capture-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 20px;
}
.esc-capture-form { display: flex; gap: 10px; flex-direction: column; margin-bottom: 10px; }
.esc-email-input {
  flex: 1;
  padding: 11px 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #fff;
  outline: none;
  transition: border-color 0.15s;
}
.esc-email-input::placeholder { color: rgba(255,255,255,0.35); }
.esc-email-input:focus { border-color: rgba(255,255,255,0.5); }
.esc-send-btn {
  flex-shrink: 0;
  background: #fff;
  color: var(--accent);
  border: none;
  border-radius: 7px;
  padding: 11px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.esc-send-btn:hover:not(:disabled) { background: #EDE7DB; }
.esc-send-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.esc-capture-msg {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 500;
}
.esc-capture-msg--success { background: rgba(26,58,28,0.5); color: #a8e6a8; border: 1px solid rgba(168,230,168,0.3); }
.esc-capture-msg--error   { background: rgba(196,98,45,0.2); color: #ffa07a; border: 1px solid rgba(255,160,122,0.3); }
.esc-capture-legal { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 8px; }
.esc-caption {
  text-align: center;
  font-size: 14px;
  color: var(--fg-muted);
  margin-top: 28px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-style: italic;
}
@media (min-width: 640px) {
  .esc-capture-form { flex-direction: row; }
}

/* route lines */
.dd-route-line {
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  fill: none;
  opacity: 0.65;
}
.dd-route-line--before { stroke-dasharray: 4 3; }
.dd-route-line--after  { }

/* animate route lines drawing in */
@keyframes dd-draw-line {
  from { stroke-dashoffset: 1000; opacity: 0; }
  to   { stroke-dashoffset: 0; opacity: 0.75; }
}
.dd-route-animated {
  stroke-dasharray: 1000;
  animation: dd-draw-line 0.6s ease-out forwards;
}

/* ====================================================
   TABLET+ — min-width: 640px
   ==================================================== */
@media (min-width: 640px) {
  :root { --pad-x: 48px; --nav-h: 64px; }
  .nav-tagline { display: block; }
  .hero-actions { flex-direction: row; align-items: center; gap: 20px; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ====================================================
   DESKTOP — min-width: 900px
   ==================================================== */
@media (min-width: 900px) {
  .ba-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: start;
  }
  .ba-col { padding: 0; }
  .ba-divider {
    flex-direction: column;
    width: 64px;
    padding: 0 16px;
    align-self: stretch;
    justify-content: center;
    gap: 0;
  }
  .ba-divider-line { width: 1px; height: 100%; flex: 1; }
  .ba-divider-icon { padding: 16px 0; }

  .pos-inner {
    flex-direction: row;
    gap: 80px;
    align-items: flex-start;
  }
  .pos-stat { flex: 0 0 280px; }

  .wl-inner {
    flex-direction: row;
    gap: 72px;
    align-items: flex-start;
  }
  .wl-copy { flex: 1; }
  .wl-form-wrap { flex: 0 0 420px; }

  /* dispatcher: 3-column layout on desktop */
  .dd-demo-wrap {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }
  .dd-center {
    flex-direction: column;
    gap: 10px;
    padding: 0;
    padding-top: 180px; /* roughly center the button against the map */
    flex-shrink: 0;
    width: 100px;
  }
  .dd-map { max-height: 240px; }
}
