/* === DESIGN TOKENS === */
:root {
  --bg: #F8F5EF;
  --bg-alt: #EEE8DC;
  --fg: #1C1C1E;
  --fg-muted: #6B6B6B;
  --accent: #C9621A;
  --accent-dark: #A34F14;
  --teal: #0B525B;
  --teal-light: #0E6B74;
  --zone-warn: #E8A838;
  --zone-ok: #2D8B4E;
  --zone-done: #0B525B;
  --radius: 8px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,245,239,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(28,28,30,0.08);
  padding: 0 2rem;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--teal);
}
.nav-tag {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

/* === HERO === */
.hero {
  padding: 5rem 2rem 4rem;
  overflow: hidden;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.hero-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--teal);
  color: #F8F5EF;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
}

/* === DISPATCH MOCK === */
.hero-visual {
  display: flex;
  justify-content: center;
}
.dispatch-mock {
  background: var(--fg);
  color: #F8F5EF;
  border-radius: 14px;
  padding: 1.25rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 60px rgba(11,82,91,0.25);
  font-size: 0.82rem;
}
.dispatch-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(248,245,239,0.12);
  padding-bottom: 0.75rem;
}
.dispatch-title { font-weight: 600; font-size: 0.9rem; }
.dispatch-date { color: rgba(248,245,239,0.5); font-size: 0.75rem; }

.dispatch-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(248,245,239,0.07);
}
.dispatch-row:last-child { border-bottom: none; }
.dispatch-row--dim { opacity: 0.45; }
.dispatch-row--active { opacity: 1; }

.dispatch-time {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  padding-top: 0.1rem;
}
.dispatch-customer { font-weight: 600; font-size: 0.85rem; margin-bottom: 0.2rem; }
.dispatch-address { font-size: 0.72rem; color: rgba(248,245,239,0.55); margin-bottom: 0.35rem; }
.dispatch-meta {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.dispatch-zone,
.dispatch-job-type,
.dispatch-tech {
  font-size: 0.68rem;
  background: rgba(248,245,239,0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  color: rgba(248,245,239,0.7);
}
.dispatch-tech { background: rgba(201,98,26,0.2); color: var(--zone-warn); }

.dispatch-status {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  align-self: center;
}
.dispatch-status--done { background: rgba(45,139,78,0.25); color: #5DC87A; }
.dispatch-status--active { background: rgba(201,98,26,0.25); color: #F5A87A; }
.dispatch-status--pending { background: rgba(248,245,239,0.08); color: rgba(248,245,239,0.4); }

/* === PROBLEM === */
.problem {
  background: var(--fg);
  color: var(--bg);
  padding: 5rem 2rem;
}
.problem-inner {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: start;
}
.problem-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  padding-top: 0.25rem;
}
.problem-headline {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  color: var(--bg);
}
.problem-body {
  color: rgba(248,245,239,0.7);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.problem-body:last-child { color: rgba(248,245,239,0.5); font-style: italic; }

/* === FEATURES === */
.features {
  padding: 5rem 2rem;
  background: var(--bg-alt);
}
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 3rem;
  max-width: 560px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg);
  border-radius: 12px;
  padding: 1.75rem;
  border: 1px solid rgba(28,28,30,0.07);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-alt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  margin-bottom: 1.1rem;
}
.feature-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--fg);
}
.feature-desc {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* === ZONES === */
.zones {
  padding: 5rem 2rem;
  background: var(--teal);
  color: #F8F5EF;
}
.zones-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.zones-headline {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  color: #F8F5EF;
}
.zones-body {
  color: rgba(248,245,239,0.7);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.zone-map {
  background: rgba(248,245,239,0.06);
  border-radius: 16px;
  padding: 1.5rem;
}
.zone-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.zone-row:last-child { margin-bottom: 0; }
.zone-box {
  background: rgba(248,245,239,0.08);
  border-radius: 8px;
  padding: 0.75rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.zone-box--active { background: rgba(45,139,78,0.25); border: 1px solid rgba(45,139,78,0.5); }
.zone-box--warn { background: rgba(232,168,56,0.2); border: 1px solid rgba(232,168,56,0.4); }
.zone-box--done { background: rgba(11,82,91,0.6); border: 1px solid rgba(248,245,239,0.3); }
.zone-label { font-size: 0.78rem; font-weight: 700; color: #F8F5EF; }
.zone-status { font-size: 0.68rem; color: rgba(248,245,239,0.55); }
.zone-status--ok { color: #5DC87A; font-weight: 600; }
.zone-status--warn { color: var(--zone-warn); font-weight: 600; }
.zone-status--done { color: rgba(248,245,239,0.8); font-weight: 600; }
.zone-date { font-size: 0.62rem; color: rgba(248,245,239,0.4); }

/* === CLOSING === */
.closing {
  padding: 6rem 2rem;
  background: var(--bg);
  text-align: center;
}
.closing-inner {
  max-width: 640px;
  margin: 0 auto;
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.closing-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.closing-sub:last-child {
  color: var(--fg-muted);
  font-size: 0.95rem;
}

/* === FOOTER === */
.footer {
  padding: 3rem 2rem;
  background: var(--fg);
  color: rgba(248,245,239,0.5);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #F8F5EF;
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
  color: rgba(248,245,239,0.35);
}
.footer-copy { font-size: 0.75rem; color: rgba(248,245,239,0.25); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; }
  .dispatch-mock { max-width: 100%; }
  .problem-inner { grid-template-columns: 1fr; }
  .problem-number { font-size: 2.5rem; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .zones-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 600px) {
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .problem, .features, .zones, .closing { padding: 3.5rem 1.25rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .zone-row { grid-template-columns: repeat(2, 1fr); }
  .dispatch-row { grid-template-columns: 55px 1fr; }
  .dispatch-status { display: none; }
}