:root {
  --turf: #07140e;
  --moss: #0f2a1c;
  --lawn: #1c7a46;
  --lawn-2: #2f9a5c;
  --lime: #d8f25c;
  --lime-ink: #1a2a0a;
  --paper: #f1ece2;
  --card: #fbfaf6;
  --ink: #101712;
  --muted: #5c6a62;
  --line: rgba(16, 23, 18, 0.1);
  --line-strong: rgba(16, 23, 18, 0.16);
  --warn: #c45c2a;
  --good: #1c7a46;
  --sky: #dce8df;
  --shadow: 0 24px 50px -28px rgba(7, 20, 14, 0.55);
  --radius: 18px;
  --sidebar: 248px;
  --display: "Syne", "Segoe UI", sans-serif;
  --sans: "Outfit", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { scroll-behavior: smooth; }
body {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.04em; line-height: 1.08; margin: 0; }
p { margin: 0; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ——— marketing ——— */
.mkt-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.6rem;
  background: rgba(7, 20, 14, 0.78);
  backdrop-filter: blur(16px);
  color: #f4f7f2;
  border-bottom: 1px solid rgba(216, 242, 92, 0.12);
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
}
.brand img { width: 36px; height: 36px; }
.brand-name {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
}
.brand-name span { display: block; font-family: var(--sans); font-weight: 500; letter-spacing: 0.28em; font-size: 0.58rem; color: var(--lime); }
.mkt-nav nav { display: flex; gap: 1.4rem; font-size: 0.92rem; color: #c9d6cc; }
.mkt-nav nav a:hover { color: var(--lime); }

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  color: #f6f8f3;
  overflow: hidden;
  background: var(--turf);
}
.hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,20,14,0.15) 0%, rgba(7,20,14,0.35) 40%, rgba(7,20,14,0.92) 100%),
    linear-gradient(90deg, rgba(7,20,14,0.55), transparent 55%);
}
.hero-copy {
  position: relative; z-index: 1;
  width: min(1180px, calc(100% - 2.4rem));
  margin: 0 auto 4.5rem;
}
.kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid rgba(216,242,92,0.35);
  background: rgba(7,20,14,0.35);
  color: var(--lime);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  max-width: 14ch;
  margin: 0.8rem 0 0.6rem;
}
.hero p.lede {
  max-width: 46ch;
  font-size: 1.15rem;
  color: #d5e0d6;
  margin-bottom: 1.4rem;
}
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: 0; border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 650;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-lime:hover { background: #e7ff7a; }
.btn-ghost {
  background: transparent; color: inherit;
  border: 1px solid rgba(255,255,255,0.28);
}
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-dark { background: var(--turf); color: #fff; }
.btn-dark:hover { background: #0c2418; }
.btn-line {
  background: #fff; border: 1px solid var(--line-strong); color: var(--ink);
}
.btn-line:hover { border-color: var(--lawn); }
.btn-warn { background: #f8e6dc; color: var(--warn); }
.btn-sm { padding: 0.45rem 0.8rem; font-size: 0.85rem; }
.btn-icon {
  width: 38px; height: 38px; padding: 0; border-radius: 12px;
  background: #fff; border: 1px solid var(--line);
}

.trust {
  background: var(--turf); color: var(--lime);
  overflow: hidden; border-top: 1px solid rgba(216,242,92,0.15);
}
.trust-track {
  display: flex; gap: 2.4rem; padding: 0.85rem 0;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
}
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding: 5.5rem 0; }
.wrap { width: min(1180px, calc(100% - 2.4rem)); margin-inline: auto; }
.eyebrow {
  letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.72rem; font-weight: 700; color: var(--lawn);
}
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.display { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.muted { color: var(--muted); }

.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem;
}
.feat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding: 1.3rem;
  min-height: 180px;
}
.feat .ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--sky); color: var(--lawn); margin-bottom: 0.9rem;
}
.feat h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }

.desk-preview {
  background: var(--turf);
  color: #e7eee8;
  border-radius: 1.8rem;
  padding: 1.1rem;
  box-shadow: var(--shadow);
}
.desk-preview header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: #9db0a3; margin-bottom: 0.8rem;
}
.desk-row { display: grid; gap: 0.45rem; }
.chip {
  display: flex; justify-content: space-between; gap: 0.6rem;
  background: #0f2a1c; border-radius: 12px; padding: 0.7rem 0.8rem; font-size: 0.88rem;
}
.chip b { color: var(--lime); font-weight: 650; }

.photo-break {
  position: relative; height: 420px; overflow: hidden;
}
.photo-break img { width: 100%; height: 100%; object-fit: cover; }
.photo-break .cap {
  position: absolute; left: 1.6rem; bottom: 1.4rem;
  color: #fff; font-family: var(--display); font-size: 1.6rem;
  text-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.footer {
  background: var(--turf); color: #c9d6cc; padding: 2.4rem 0;
  font-size: 0.9rem;
}
.footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer strong { color: var(--lime); }

/* ——— app shell ——— */
.app-body { display: flex; min-height: 100vh; background: var(--paper); }
.sidebar {
  width: var(--sidebar);
  background: var(--turf);
  color: #d5e0d6;
  padding: 1.1rem 0.8rem;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  flex-shrink: 0;
}
.side-brand {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.35rem 0.55rem 1rem;
  color: #fff;
}
.side-brand img { width: 32px; height: 32px; }
.side-brand b {
  font-family: var(--display); letter-spacing: 0.06em; font-size: 0.95rem;
}
.side-brand small { display: block; color: var(--lime); letter-spacing: 0.18em; font-size: 0.58rem; font-weight: 600; }
.nav-list { display: grid; gap: 0.15rem; }
.nav-list a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.58rem 0.7rem;
  border-radius: 12px;
  color: #c2d1c6;
  font-size: 0.92rem;
}
.nav-list a svg { opacity: 0.8; }
.nav-list a:hover { background: rgba(216,242,92,0.08); color: #fff; }
.nav-list a.on {
  background: var(--lime); color: var(--lime-ink); font-weight: 650;
}
.nav-list a.on svg { opacity: 1; }
.side-foot { margin-top: auto; padding: 0.8rem 0.55rem; font-size: 0.78rem; color: #8aa192; }
.side-foot b { display: block; color: #fff; font-size: 0.88rem; margin-bottom: 0.15rem; }

.workspace { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: rgba(241,236,226,0.9);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 20;
}
.search {
  flex: 1; display: flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.45rem 0.85rem; max-width: 520px;
}
.search input {
  border: 0; outline: 0; width: 100%; background: transparent;
}
.top-meta { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; color: var(--muted); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--moss); color: var(--lime);
  display: grid; place-items: center; font-weight: 700; font-size: 0.78rem;
}
.menu-btn { display: none; }

.view { padding: 1.2rem 1.3rem 3rem; }

.page-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
  margin-bottom: 1.1rem; flex-wrap: wrap;
}
.page-head h1 { font-size: 2rem; }
.page-head p { color: var(--muted); margin-top: 0.2rem; }
.row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.kpi {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.05rem;
}
.kpi span { color: var(--muted); font-size: 0.8rem; }
.kpi b { display: block; font-family: var(--display); font-size: 1.7rem; margin-top: 0.15rem; }
.kpi em { font-style: normal; color: var(--lawn); font-size: 0.78rem; font-weight: 650; }
.kpi.warn b, .kpi.warn em { color: var(--warn); }

.grid-2 { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 0.9rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem;
}
.card h2 { font-size: 1.15rem; margin-bottom: 0.8rem; }

.job {
  display: grid; grid-template-columns: auto 1fr auto; gap: 0.7rem; align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.job:last-child { border-bottom: 0; }
.dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--lawn);
}
.dot.done { background: #9bb3a4; }
.dot.progress { background: var(--lime); box-shadow: 0 0 0 4px rgba(216,242,92,0.35); }
.dot.skipped { background: #c9b7a4; }
.dot.overdue { background: var(--warn); }
.job .who { font-weight: 650; }
.job .meta { color: var(--muted); font-size: 0.8rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  border-radius: 999px; padding: 0.18rem 0.55rem;
  font-size: 0.72rem; font-weight: 650; letter-spacing: 0.02em;
  background: var(--sky); color: var(--lawn);
}
.pill.warn { background: #f8e6dc; color: var(--warn); }
.pill.lime { background: var(--lime); color: var(--lime-ink); }
.pill.mute { background: #eee9de; color: var(--muted); }
.pill.good { background: #d7efe0; color: #146038; }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.7rem 0.45rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 650; }
tr.click:hover { background: #f6f3eb; cursor: pointer; }
.right { text-align: right; }

.week {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.5rem;
}
.day {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; min-height: 220px; padding: 0.6rem;
}
.day.today { border-color: var(--lawn); box-shadow: inset 0 0 0 1px var(--lawn); }
.day h3 { font-size: 0.78rem; color: var(--muted); display: flex; justify-content: space-between; font-family: var(--sans); letter-spacing: 0; font-weight: 650; }
.visit {
  background: var(--sky); border-radius: 10px; padding: 0.45rem 0.5rem; margin-top: 0.4rem;
  font-size: 0.78rem; cursor: pointer;
}
.visit b { display: block; }
.visit.done { background: #eee9de; color: var(--muted); }
.visit.progress { background: var(--lime); color: var(--lime-ink); }

.form { display: grid; gap: 0.7rem; }
label { display: grid; gap: 0.28rem; font-size: 0.8rem; font-weight: 650; color: var(--muted); }
input, select, textarea {
  background: #fff; border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 0.65rem 0.75rem; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--lawn); box-shadow: 0 0 0 3px rgba(28,122,70,0.15); }
textarea { min-height: 90px; resize: vertical; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }

.modal {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(7,20,14,0.46);
  display: grid; place-items: center; padding: 1rem;
}
.modal[hidden], [hidden] { display: none !important; }
.sheet {
  background: var(--card); width: min(640px, 100%);
  border-radius: 1.4rem; padding: 1.2rem;
  max-height: 90vh; overflow: auto;
  box-shadow: var(--shadow);
}
.sheet.wide { width: min(860px, 100%); }
.sheet h2 { margin-bottom: 0.8rem; }

.toast {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 80;
  background: var(--turf); color: var(--lime);
  padding: 0.8rem 1rem; border-radius: 14px;
  box-shadow: var(--shadow); display: none;
}

.profile-hero {
  display: grid; grid-template-columns: 220px 1fr; gap: 1rem; align-items: stretch;
}
.profile-hero img {
  width: 100%; height: 180px; object-fit: cover; border-radius: 1.1rem;
}
.statline { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 0.8rem; }
.statline div { font-size: 0.85rem; color: var(--muted); }
.statline b { display: block; color: var(--ink); font-size: 1.05rem; }

.route-stop {
  display: grid; grid-template-columns: 42px 1fr auto; gap: 0.7rem; align-items: center;
  padding: 0.75rem 0; border-bottom: 1px solid var(--line);
}
.num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--turf); color: var(--lime);
  display: grid; place-items: center; font-weight: 700;
}

.empty {
  text-align: center; color: var(--muted); padding: 2rem 1rem;
}

.inv {
  background: #fff; border: 1px solid var(--line); border-radius: 1.2rem; padding: 1.4rem;
}
.inv-head { display: flex; justify-content: space-between; gap: 1rem; }
.word { font-family: var(--display); font-size: 1.6rem; }

.clock-card {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: var(--moss); color: #e7eee8; border-radius: 1.2rem; padding: 1rem 1.1rem;
}
.clock-card b { color: var(--lime); }

@media (max-width: 1080px) {
  .kpis, .grid-2, .grid-3, .feat-grid, .split, .week, .profile-hero { grid-template-columns: 1fr 1fr; }
  .week { grid-template-columns: repeat(2, 1fr); }
}
.wide-only { display: inline; }
.sm-only { display: none; }

@media (max-width: 860px) {
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 50;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }
  .sidebar.open { transform: none; }
  .sidebar.open ~ .workspace::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(7, 20, 14, 0.45);
    z-index: 40;
  }
  .menu-btn { display: inline-flex; }
  .kpis, .feat-grid, .split, .fields, .profile-hero, .week, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .mkt-nav nav { display: none; }
  .hero { min-height: 86vh; }
  .hero h1 { font-size: clamp(2.6rem, 14vw, 4.2rem); }
  .page-head h1 { font-size: 1.55rem; }
  #today-label { display: none; }
  .search { max-width: none; }
  .job { grid-template-columns: auto 1fr; }
  .job .row { grid-column: 1 / -1; justify-content: flex-end; }
  .card { overflow: auto; }
  .wide-only { display: none; }
  .sm-only { display: inline; }
  .mkt-nav { padding: 0.8rem 1rem; }
}

@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .workspace { display: block; }
  .view { padding: 0; }
  body { background: #fff; }
}
