/* FieldDesk — Theme CSS */
:root {
  --bg: #080f1c;
  --bg-alt: #0d1a2d;
  --fg: #e8edf5;
  --fg-muted: #7a8899;
  --accent: #f5a623;
  --accent-dim: rgba(245, 166, 35, 0.12);
  --border: rgba(255,255,255,0.08);
  --card-bg: #0d1a2d;
}

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

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

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8,15,28,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

/* HERO */
.hero {
  padding: 140px 32px 80px;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.hero-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 32px;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-dim);
  border: 1px solid rgba(245,166,35,0.2);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
}

/* Hero CTA buttons row */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* DISPATCH GRID (hero visual) */
.hero-visual { display: flex; justify-content: center; }
.dispatch-grid {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}
.dispatch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.dispatch-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dispatch-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #22c55e;
  font-weight: 500;
}
.live-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.dispatch-call {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(245,166,35,0.06);
  border: 1px solid rgba(245,166,35,0.15);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.dispatch-call-dim { opacity: 0.5; }
.call-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.call-info { flex: 1; }
.call-name { display: block; font-size: 13px; font-weight: 600; color: var(--fg); }
.call-location { display: block; font-size: 11px; color: var(--fg-muted); margin-top: 2px; }
.booked-badge {
  background: #22c55e;
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.queued-badge {
  background: rgba(255,255,255,0.1);
  color: var(--fg-muted);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.dispatch-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.metric { text-align: center; }
.metric-value {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}
.metric-label {
  display: block;
  font-size: 10px;
  color: var(--fg-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* STATS */
.stats-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 48px 32px;
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}
.stat { text-align: center; flex: 1; }
.stat-number {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.stat-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}

/* HOW SECTION */
.how-section { padding: 100px 32px; max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.section-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 64px;
}
.how-steps { display: flex; gap: 48px; }
.how-step { flex: 1; }
.step-number {
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.25;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.how-step h3 {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}
.how-step p { font-size: 15px; color: var(--fg-muted); line-height: 1.7; }

/* FEATURES */
.features-section { padding: 80px 32px; background: var(--bg-alt); }
.features-inner { max-width: 1100px; margin: 0 auto; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.feature-card {
  background: var(--card-bg);
  padding: 32px 28px;
  border: 1px solid var(--border);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}
.feature-card p { font-size: 14px; color: var(--fg-muted); line-height: 1.65; }

/* PROCESS */
.process-section { padding: 100px 32px; max-width: 1100px; margin: 0 auto; }
.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.process-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}
.proc-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
}
.proc-dot-final { background: var(--accent); box-shadow: 0 0 0 4px rgba(245,166,35,0.2); }
.proc-text { flex: 1; }
.proc-text strong { display: block; font-size: 15px; font-weight: 600; color: var(--fg); margin-bottom: 6px; }
.proc-text span { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }
.process-connector {
  flex-shrink: 0;
  width: 60px;
  height: 1px;
  background: var(--border);
  margin-top: 12px;
  margin-left: 16px;
  margin-right: 16px;
}

/* CLOSING */
.closing-section { padding: 100px 32px 120px; max-width: 1100px; margin: 0 auto; }
.closing-inner { max-width: 700px; }
.closing-statement {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}
.closing-statement:last-child { margin-bottom: 0; }
.closing-tagline {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  line-height: 1.4;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 32px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--fg);
}
.footer-note {
  font-size: 13px;
  color: var(--fg-muted);
}

/* ── MODALS ──────────────────────────────────────── */
.modal-body-lock { overflow: hidden; }

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.modal-open { display: flex; }

.modal-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 32px 64px rgba(0,0,0,0.6);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--fg-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--fg); }

.modal-badge {
  display: inline-block;
  background: var(--accent-dim);
  border: 1px solid rgba(245,166,35,0.25);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.modal-badge-blue {
  background: rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.25);
  color: #60a5fa;
}
.modal-badge-green {
  background: rgba(34,197,94,0.1);
  border-color: rgba(34,197,94,0.25);
  color: #4ade80;
}

.modal-title {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.2;
}
.modal-sub {
  font-size: 15px;
  color: var(--fg-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--fg);
  line-height: 1.5;
}
.modal-check {
  color: #4ade80;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: var(--accent-dim);
  border: 1px solid rgba(245,166,35,0.15);
  border-radius: 10px;
}
.modal-price {
  font-family: 'Syne', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.modal-price-note {
  font-size: 14px;
  color: var(--fg-muted);
}

.modal-cta {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--accent);
  color: #000;
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-align: center;
  letter-spacing: -0.01em;
  min-height: 50px;
  position: relative;
}
.modal-cta:hover { background: #f0a020; }
.modal-cta:active { transform: scale(0.99); }
.modal-cta:disabled { opacity: 0.6; cursor: not-allowed; }
.modal-cta-green { background: #22c55e; }
.modal-cta-green:hover { background: #16a34a; }

.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.modal-guarantee {
  text-align: center;
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 12px;
}

.modal-error {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Lead form inputs */
.form-row { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--fg-muted); opacity: 0.7; }
.form-textarea { resize: vertical; min-height: 80px; }

/* Success state */
.modal-success-icon {
  width: 56px;
  height: 56px;
  background: rgba(34,197,94,0.15);
  border: 2px solid #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #4ade80;
  margin: 0 auto 24px;
}

/* Paid banner */
#paid-banner {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80;
  text-align: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
}

/* Trigger buttons (used on landing/pricing) */
.btn-upgrade {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: #000;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.btn-upgrade:hover { background: #f0a020; }
.btn-upgrade-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-upgrade-outline:hover { background: var(--accent-dim); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .dispatch-grid { max-width: 100%; }
  .how-steps { flex-direction: column; gap: 36px; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-inner { flex-direction: column; gap: 28px; }
  .stat-divider { display: none; }
  .process-steps { flex-direction: column; gap: 24px; }
  .process-connector { display: none; }
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
  .hero { padding: 120px 20px 60px; }
  .hero-headline { font-size: 36px; }
  .section-heading { font-size: 28px; }
}
/* ══════════════════════════════════════════════
   MODALS
══════════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.modal-open { display: flex; }
.modal-body-lock { overflow: hidden; }

.modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none;
  font-size: 1.5rem; cursor: pointer;
  color: #9CA3AF; line-height: 1;
  padding: 4px;
}
.modal-close:hover { color: #374151; }

.modal-badge {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  background: #FEF9C3; color: #854D0E;
  border-radius: 99px; padding: 4px 12px;
  margin-bottom: 16px;
}
.modal-badge-blue  { background: #DBEAFE; color: #1E40AF; }
.modal-badge-green { background: #D1FAE5; color: #065F46; }

.modal-title {
  font-size: 1.4rem; font-weight: 800;
  margin-bottom: 8px; color: #111827;
  line-height: 1.25;
}
.modal-sub {
  font-size: 0.9rem; color: #6B7280;
  margin-bottom: 20px; line-height: 1.6;
}

.modal-features {
  list-style: none; margin-bottom: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.modal-features li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.9rem; color: #111827;
}
.modal-check { color: #10B981; font-weight: 700; flex-shrink: 0; }

.modal-price-row {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 20px;
}
.modal-price { font-size: 2.5rem; font-weight: 800; color: #111827; }
.modal-price-note { font-size: 0.875rem; color: #6B7280; }

.modal-error {
  background: #FEF2F2; border: 1px solid #FCA5A5;
  border-radius: 8px; padding: 12px 16px;
  font-size: 0.875rem; color: #DC2626;
  margin-bottom: 16px;
}

.modal-cta {
  width: 100%; padding: 15px 24px;
  background: #F59E0B; color: #fff;
  font-size: 1rem; font-weight: 700;
  border: none; border-radius: 10px;
  cursor: pointer; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.15s;
}
.modal-cta:hover:not(:disabled) { background: #D97706; }
.modal-cta:disabled { opacity: 0.6; cursor: not-allowed; }

.modal-cta-green { background: #10B981; }
.modal-cta-green:hover:not(:disabled) { background: #059669; }

.modal-guarantee {
  text-align: center; font-size: 0.8rem; color: #9CA3AF;
}

/* Lead form fields */
.form-row { margin-bottom: 14px; }
.form-label {
  display: block; font-size: 0.82rem;
  font-weight: 600; color: #374151;
  margin-bottom: 5px;
}
.form-input {
  width: 100%; padding: 11px 14px;
  font-size: 0.9rem; font-family: inherit;
  border: 1.5px solid #E5E7EB; border-radius: 8px;
  outline: none; transition: border-color 0.15s;
  color: #111827;
}
.form-input:focus { border-color: #10B981; }
.form-textarea { resize: vertical; min-height: 80px; }

/* Success state */
.modal-success-icon {
  width: 56px; height: 56px;
  background: #D1FAE5; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; color: #10B981;
  margin: 0 auto 16px;
}

/* Spinner placeholder */
.btn-spinner::after {
  content: '⟳';
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@media (max-width: 520px) {
  .modal-box { padding: 24px 20px; }
  .modal-title { font-size: 1.2rem; }
}
