/* ============================================================
   Mowtopia — Lawn Care Solution
   Design system + layout. No build tools, plain CSS.
   ============================================================ */

:root {
  /* Brand palette — fresh, outdoorsy, trustworthy */
  --green-900: #14361f;
  --green-700: #1f7a44;
  --green-600: #259b52;
  --green-500: #2ec46a;
  --green-100: #e3f7ea;
  --green-50:  #f1fbf4;

  --soil:   #6b4f3a;
  --sun:    #f5b400;
  --sky:    #2f80ed;

  --ink:    #11231a;
  --muted:  #5d7166;
  --line:   #e2eae5;
  --bg:     #f6f9f7;
  --card:   #ffffff;
  --danger: #e0533d;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16,40,28,.06), 0 8px 24px rgba(16,40,28,.06);
  --shadow-lg: 0 12px 40px rgba(16,40,28,.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html, body { height: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}

/* ---------- App shell ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }

.sidebar {
  background: linear-gradient(180deg, var(--green-900), #0e2616);
  color: #dff3e7;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 18px; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(140deg, var(--green-500), var(--green-700));
  display: grid; place-items: center; font-size: 20px;
  box-shadow: 0 6px 16px rgba(46,196,106,.4);
}
.brand .name { font-weight: 800; font-size: 19px; letter-spacing: -.4px; color: #fff; }
.brand .tag { font-size: 11px; color: #8fc8a6; margin-top: -2px; }

.nav-group-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .8px;
  color: #6fa886; margin: 16px 10px 6px; font-weight: 700;
}

.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: #cdebd9; font-size: 14.5px; font-weight: 500;
  cursor: pointer; border: none; background: none; width: 100%; text-align: left;
  transition: background .15s, color .15s;
}
.nav-item .ico { width: 20px; text-align: center; font-size: 16px; }
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { background: var(--green-600); color: #fff; box-shadow: 0 4px 12px rgba(37,155,82,.4); }
.nav-item .lock { margin-left: auto; font-size: 12px; opacity: .85; }

.sidebar-footer { margin-top: auto; }

.plan-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 14px; margin-top: 14px;
}
.plan-card .label { font-size: 11px; color: #8fc8a6; text-transform: uppercase; letter-spacing: .6px; }
.plan-card .current { font-weight: 800; font-size: 16px; color: #fff; margin: 2px 0 10px; }

/* Plan toggle */
.plan-toggle { display: flex; background: rgba(0,0,0,.25); border-radius: 9px; padding: 3px; }
.plan-toggle button {
  flex: 1; border: none; background: none; color: #a9d6bb;
  padding: 7px 0; border-radius: 7px; font-weight: 700; font-size: 12.5px; cursor: pointer;
}
.plan-toggle button.on { background: var(--sun); color: #3a2c00; }
.plan-toggle button.on.free { background: #fff; color: var(--green-900); }

/* Viewing-as user switcher (role demo) */
.user-switch {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 14px;
}
.user-switch .label { font-size: 11px; color: #8fc8a6; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
.user-switch select {
  width: 100%; background: rgba(0,0,0,.25); color: #fff; border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; padding: 8px 9px; font-size: 13px; font-weight: 600; font-family: var(--font); cursor: pointer;
}
.user-switch select option { color: #11231a; }
.role-badge { margin-top: 9px; font-size: 12px; font-weight: 700; text-align: center; padding: 5px 8px; border-radius: 999px; }
.role-badge.admin { background: rgba(245,180,0,.18); color: #f5d27a; }
.role-badge.member { background: rgba(255,255,255,.1); color: #a9d6bb; }

/* Account chip (cloud auth) */
.acct { padding: 12px; margin-bottom: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; }
.acct-biz { font-weight: 700; font-size: 13.5px; color: #fff; }
.acct-email { font-size: 11px; color: #8fc8a6; margin: 2px 0 10px; word-break: break-all; }
.acct-demo { font-size: 11px; color: #8fc8a6; text-align: center; margin-top: 6px; }

/* ---------- Demo controls dropdown (topbar, dashboard only) ---------- */
.demo-menu { position: relative; }
.demo-menu[hidden], .demo-menu-panel[hidden] { display: none !important; }
.demo-menu-panel {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 264px; max-width: calc(100vw - 32px);
  background: linear-gradient(180deg, var(--green-900), #0e2616);
  color: #dff3e7; border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 14px; box-shadow: var(--shadow-lg); z-index: 60;
}
.demo-menu-title { font-size: 10.5px; text-transform: uppercase; letter-spacing: .8px; color: #6fa886; font-weight: 700; margin-bottom: 12px; }

/* Team page: a crew lead's own crew is highlighted */
.team-mine { border: 1.5px solid var(--green-500); box-shadow: 0 0 0 4px rgba(46,196,106,.10); }

/* ---------- Main ---------- */
.main { min-width: 0; }

.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 30px; background: var(--card);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 21px; letter-spacing: -.5px; font-weight: 800; }
.topbar .sub { color: var(--muted); font-size: 13px; }
.topbar .spacer { flex: 1; }

.btn {
  border: none; border-radius: 10px; padding: 10px 16px;
  font-weight: 700; font-size: 14px; cursor: pointer; font-family: var(--font);
  display: inline-flex; align-items: center; gap: 8px; transition: transform .08s, box-shadow .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-600); color: #fff; box-shadow: 0 6px 16px rgba(37,155,82,.3); }
.btn-primary:hover { background: var(--green-700); }
.btn-ghost { background: var(--green-50); color: var(--green-700); }
.btn-ghost:hover { background: var(--green-100); }
.btn-outline { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--green-500); color: var(--green-700); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn-danger { background: #fff; border: 1.5px solid #f3c9c1; color: var(--danger); }

.content { padding: 26px 30px 60px; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 18px; }
/* minmax(0,1fr) lets tracks shrink below their content's min width, so a wide,
   non-wrapping child (e.g. a card head with a chip + button) can't force the
   whole page wider than the viewport. */
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.card h2 { font-size: 16px; margin-bottom: 4px; }
.card .card-sub { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2 { margin: 0; }

/* Stat tiles */
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat .stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat .ico-badge { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; }
.stat .value { font-size: 28px; font-weight: 800; letter-spacing: -1px; }
.stat .label { color: var(--muted); font-size: 13px; }
.stat .delta { font-size: 12px; font-weight: 700; }
.delta.up { color: var(--green-600); }
.delta.down { color: var(--danger); }

.bg-green { background: var(--green-100); color: var(--green-700); }
.bg-sun  { background: #fff3d0; color: #a87b00; }
.bg-sky  { background: #e0edff; color: var(--sky); }
.bg-soil { background: #efe6dd; color: var(--soil); }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 700;
}
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr.row-click { cursor: pointer; }
.table tr.row-click:hover td { background: var(--green-50); }

.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center;
  font-weight: 700; font-size: 13px; color: #fff; margin-right: 10px; vertical-align: middle;
}

.cell-main { display: flex; align-items: center; }
.cell-name { font-weight: 600; }
.cell-meta { color: var(--muted); font-size: 12.5px; }

/* Badges / pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px;
  border-radius: 999px; font-size: 12px; font-weight: 700;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; }
.pill-green { background: var(--green-100); color: var(--green-700); }
.pill-green .dot { background: var(--green-600); }
.pill-amber { background: #fff3d0; color: #a87b00; }
.pill-amber .dot { background: var(--sun); }
.pill-sky { background: #e0edff; color: var(--sky); }
.pill-sky .dot { background: var(--sky); }
.pill-gray { background: #eef2f0; color: var(--muted); }
.pill-gray .dot { background: var(--muted); }
.pill-red { background: #fde7e2; color: var(--danger); }
.pill-red .dot { background: var(--danger); }

/* ---------- Schedule ---------- */
.sched-day { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.sched-day .day-head {
  padding: 10px 14px; background: var(--green-50); border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between;
}
.sched-day .day-head .dow { font-weight: 800; font-size: 14px; }
.sched-day .day-head .date { color: var(--muted); font-size: 12px; }
.sched-day .day-head.today .dow { color: var(--green-700); }
.job-chip {
  padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer;
  display: flex; align-items: center; gap: 10px;
}
.job-chip:last-child { border-bottom: none; }
.job-chip:hover { background: var(--green-50); }
.job-chip .stripe { width: 4px; align-self: stretch; border-radius: 4px; background: var(--green-500); }
.job-chip .j-time { font-size: 12px; color: var(--muted); font-weight: 600; width: 58px; }
.job-chip .j-cust { font-weight: 600; font-size: 13.5px; }
.job-chip .j-svc { color: var(--muted); font-size: 12px; }
.job-chip.done { opacity: .55; }
.job-chip.done .j-cust { text-decoration: line-through; }
/* one-tap field timer on a job chip */
.chip-timer {
  flex: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--green-500); background: #fff; color: var(--green-700);
  font-size: 12px; display: grid; place-items: center; line-height: 1;
}
.chip-timer:hover { background: var(--green-50); }
.chip-timer.on { background: var(--danger); border-color: var(--danger); color: #fff; }
.empty-day { padding: 18px 14px; color: #aab8b0; font-size: 13px; text-align: center; }

/* ---------- Forms / modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(14,38,22,.5); backdrop-filter: blur(3px);
  display: none; align-items: flex-start; justify-content: center; z-index: 100; padding: 40px 16px; overflow: auto;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border-radius: 18px; width: 100%; max-width: 540px;
  box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .18s ease;
}
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { font-size: 18px; }
.modal-head .x { border: none; background: var(--bg); width: 32px; height: 32px; border-radius: 9px; cursor: pointer; font-size: 18px; color: var(--muted); }
.modal-body { padding: 22px 24px; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; background: var(--green-50); }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: #2c4536; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 14px; font-family: var(--font); color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px var(--green-100); }
.field textarea { resize: vertical; min-height: 70px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* ---------- Pro gate / lock screen ---------- */
.lock-screen { text-align: center; padding: 50px 30px; }
.lock-screen .lock-ico { font-size: 52px; margin-bottom: 14px; }
.lock-screen h2 { font-size: 24px; margin-bottom: 8px; }
.lock-screen p { color: var(--muted); max-width: 460px; margin: 0 auto 22px; }
.pro-badge {
  display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(120deg, var(--sun), #ffd34d);
  color: #5a4400; padding: 3px 9px; border-radius: 7px; font-size: 11px; font-weight: 800; letter-spacing: .3px;
}

.feature-list { display: grid; gap: 11px; text-align: left; max-width: 420px; margin: 0 auto 26px; }
.feature-list .fl { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; }
.feature-list .fl .ck { color: var(--green-600); font-weight: 800; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; }
.price-card { border: 2px solid var(--line); border-radius: 18px; padding: 26px; background: #fff; position: relative; }
.price-card.featured { border-color: var(--green-500); box-shadow: 0 14px 40px rgba(46,196,106,.18); }
.price-card .ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--green-600); color: #fff; font-size: 11px; font-weight: 800; padding: 5px 14px; border-radius: 999px; letter-spacing: .4px;
}
.price-card .p-name { font-weight: 800; font-size: 18px; }
.price-card .p-price { font-size: 38px; font-weight: 800; letter-spacing: -1.5px; margin: 8px 0 2px; }
.price-card .p-price span { font-size: 15px; color: var(--muted); font-weight: 600; }
.price-card .p-note { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.intro-badge { display: inline-block; background: var(--green-100); color: var(--green-700); font-weight: 800; font-size: 12.5px; padding: 5px 11px; border-radius: 8px; margin: 0 0 12px; }
.price-card ul { list-style: none; display: grid; gap: 10px; margin-bottom: 22px; }
.price-card li { display: flex; gap: 9px; font-size: 13.5px; align-items: flex-start; }
.price-card li .ck { color: var(--green-600); font-weight: 800; }
.price-card li .xk { color: #c2cdc7; font-weight: 800; }
.price-card li.off { color: #aab8b0; }

/* misc */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.search { flex: 1; min-width: 200px; position: relative; }
.search input { width: 100%; padding: 10px 13px 10px 38px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px; font-family: var(--font); }
.search .s-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.section-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 30px 0 12px; }

.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--green-900); color: #fff; padding: 13px 20px; border-radius: 11px;
  font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 200; display: flex; align-items: center; gap: 9px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state .e-ico { font-size: 40px; margin-bottom: 10px; }

.money { font-variant-numeric: tabular-nums; font-weight: 700; }
.text-muted { color: var(--muted); }
.mt { margin-top: 18px; }
.flex { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }

/* Progress bar */
.bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--green-500), var(--green-600)); border-radius: 999px; }

/* ============================================================
   Components added in the full build
   ============================================================ */

/* Nav scroll area + 3-way plan toggle */
#navHost { overflow-y: auto; flex: 1; margin: 0 -4px; padding: 0 4px; }
#navHost::-webkit-scrollbar { width: 6px; }
#navHost::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }
.plan-toggle button { font-size: 11.5px; padding: 6px 0; }
.plan-toggle button.on { background: var(--sun); color: #3a2c00; }
.plan-toggle button[data-plan="free"].on { background: #fff; color: var(--green-900); }
.plan-hint { font-size: 11px; color: #8fc8a6; margin-top: 9px; line-height: 1.4; }

/* Topbar buttons */
.icon-btn { background: var(--bg); border: 1px solid var(--line); width: 38px; height: 38px; border-radius: 10px; font-size: 18px; cursor: pointer; }
.btn-search { color: var(--muted); }
.only-mobile { display: none; }

/* Segmented control */
.seg { display: inline-flex; background: #eef2f0; border-radius: 10px; padding: 3px; }
.seg button { border: none; background: none; padding: 7px 16px; border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--muted); font-family: var(--font); }
.seg button.on { background: #fff; color: var(--green-700); box-shadow: var(--shadow); }

/* Toggle switch */
.switch { width: 44px; height: 25px; border-radius: 999px; background: #d4ded8; border: none; cursor: pointer; position: relative; transition: background .18s; flex: none; }
.switch span { position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .18s; }
.switch.on { background: var(--green-500); }
.switch.on span { left: 22px; }

/* Mini select */
.mini-select { padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 13.5px; font-family: var(--font); background: #fff; color: var(--ink); }

/* Time-on-site block + effective rate readout (job modal) */
.time-block { background: var(--green-50); border: 1px solid var(--green-100); border-radius: 11px; padding: 13px; margin-bottom: 15px; }
.rate-readout { display: flex; align-items: center; height: 44px; padding: 0 13px; border-radius: 10px; font-weight: 800; font-size: 16px; background: #fff; border: 1.5px solid var(--line); color: var(--muted); }
.rate-readout.good { color: var(--green-700); border-color: var(--green-500); background: var(--green-50); }
.rate-readout.ok { color: #a87b00; border-color: var(--sun); background: #fff8e6; }
.rate-readout.bad { color: var(--danger); border-color: #f3c9c1; background: #fdf0ed; }

/* Job costing breakdown (job modal) */
.cost-breakdown { margin-top: 12px; background: var(--green-50); border: 1px solid var(--green-100); border-radius: 11px; padding: 8px 13px; }
.cost-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 5px 0; color: #2c4536; }
.cost-row span { color: var(--muted); }
.cost-row strong { font-weight: 700; }
.cost-row.net { border-top: 1px dashed var(--green-100); margin-top: 3px; padding-top: 8px; }
.cost-row.net span { color: #11231a; font-weight: 700; }
.cost-row.net strong { color: var(--green-700); font-size: 15px; }

/* Partner perks marketplace */
.perk-card { transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.perk-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(17,35,26,.1); border-color: var(--green-500); }

/* Maintenance task editor (equipment modal) */
.task-row { display: grid; grid-template-columns: 1fr auto 68px 96px 30px; gap: 7px; align-items: center; margin-bottom: 7px; }
.task-row .t-lbl { font-size: 12px; color: var(--muted); }
.task-row input, .task-row select { padding: 8px 9px; font-size: 13px; }
.task-row .t-del { border: none; background: none; color: var(--muted); cursor: pointer; font-size: 14px; border-radius: 6px; }
.task-row .t-del:hover { color: var(--danger); }

/* Checklist (job modal) */
.checklist { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.check-item { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.check-item.done { background: var(--green-50); border-color: var(--green-100); }
.check-box { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 13px; font-weight: 800; color: #fff; display: grid; place-items: center; flex: none; }
.check-item.done .check-box { background: var(--green-600); border-color: var(--green-600); }
.check-text { flex: 1; font-size: 14px; }
.check-item.done .check-text { text-decoration: line-through; color: var(--muted); }
.check-del { border: none; background: none; color: #c2cdc7; cursor: pointer; font-size: 13px; }
.check-del:hover { color: var(--danger); }
.check-add { display: flex; gap: 8px; }
.check-add input { flex: 1; padding: 8px 11px; border: 1.5px solid var(--line); border-radius: 9px; font-size: 13.5px; font-family: var(--font); }
.check-add input:focus { outline: none; border-color: var(--green-500); }
.check-sugg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-btn { border: 1px dashed var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; cursor: pointer; font-family: var(--font); }
.chip-btn:hover { border-color: var(--green-500); color: var(--green-700); }

/* Photo grid (job modal) */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 10px; }
.photo-cell { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 6px; border: none; background: rgba(17,35,26,.65); color: #fff; cursor: pointer; font-size: 12px; }
.photo-del:hover { background: var(--danger); }
.photo-tag { position: absolute; bottom: 4px; left: 4px; border: none; border-radius: 6px; padding: 3px 8px; font-size: 11px; font-weight: 800; cursor: pointer; background: rgba(255,255,255,.85); color: var(--muted); }
.photo-tag.tagged { background: var(--green-600); color: #fff; }
.photo-add-btn { display: inline-flex; }

/* Live timer display */
.timer-display { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 20px; color: var(--danger); letter-spacing: .5px; min-width: 56px; }
.dot.pulse { animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

/* Callout (warning banner inside cards) */
.callout-bad { background: #fdf0ed; border: 1px solid #f3c9c1; color: #8a2f1e; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 16px; line-height: 1.5; }
/* week-ahead per-crew day jobs */
.day-job { background: var(--green-50); border: 1px solid var(--green-100); color: #2c4536; border-radius: 7px; padding: 3px 8px; font-size: 12px; font-weight: 600; white-space: nowrap; }

/* Goal input (projections) */
.goal-input { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 10px; background: #fff; }
.goal-input span { color: var(--muted); font-weight: 700; font-size: 14px; }
.goal-input input { border: none; outline: none; padding: 9px 4px; width: 92px; font-size: 14px; font-family: var(--font); font-weight: 700; color: var(--ink); }

/* Month calendar */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; padding-bottom: 4px; }
.cal-cell { min-height: 92px; border: 1px solid var(--line); border-radius: 9px; padding: 5px; cursor: pointer; transition: background .12s; overflow: hidden; }
.cal-cell:hover { background: var(--green-50); }
.cal-cell.empty { border: none; background: none; cursor: default; }
.cal-cell.today { border-color: var(--green-500); box-shadow: 0 0 0 1px var(--green-500) inset; }
.cal-num { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 3px; }
.cal-cell.today .cal-num { color: var(--green-700); }
.cal-ev { font-size: 10.5px; padding: 2px 5px; margin-bottom: 2px; background: var(--green-50); border-left: 3px solid var(--green-500); border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev:hover { background: var(--green-100); }
.cal-more { font-size: 10px; color: var(--muted); padding-left: 5px; }

/* Line items editor */
.line-items { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.li-row { display: grid; grid-template-columns: 1fr 70px 100px 90px 30px; gap: 8px; align-items: center; margin-bottom: 7px; }
.li-row.li-head { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 700; margin-bottom: 9px; }
.li-row input { padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 13px; font-family: var(--font); width: 100%; }
.li-row input:focus { outline: none; border-color: var(--green-500); }
.li-amt { text-align: right; font-size: 13px; }
.li-del { border: none; background: none; color: var(--muted); cursor: pointer; font-size: 14px; border-radius: 6px; }
.li-del:hover { color: var(--danger); background: #fde7e2; }

.field-label { display: block; font-size: 13px; font-weight: 700; margin: 4px 0 8px; color: #2c4536; }
.doc-totals { margin-top: 16px; padding: 14px; background: var(--green-50); border-radius: 10px; }
.doc-total { padding-top: 8px; margin-top: 6px; font-size: 17px; }
.modal-body .doc-total { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 12px 0 0; border-top: 1px solid var(--line); font-size: 17px; }

/* 3-tier pricing */
.price-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; margin: 0 auto; }

/* Search / command palette */
.cmd-input { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px; font-size: 15px; font-family: var(--font); }
.cmd-input:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px var(--green-100); }
.cmd-results { margin-top: 12px; max-height: 360px; overflow-y: auto; }
.cmd-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: none; background: none; border-radius: 10px; cursor: pointer; font-family: var(--font); }
.cmd-row:hover { background: var(--green-50); }
.cmd-ico { font-size: 18px; }

/* Responsive */
@media (max-width: 920px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 50;
    transform: translateX(-100%); transition: transform .25s; height: 100vh;
  }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .only-mobile { display: inline-flex; align-items: center; justify-content: center; }
  .only-desktop { display: none; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3, .grid-2, .price-grid, .price-grid-3 { grid-template-columns: 1fr; }
  .content { padding: 18px 16px 60px; }
  .cal-cell { min-height: 64px; }
  .li-row { grid-template-columns: 1fr 50px 76px 70px 26px; gap: 5px; }
}

/* ============================================================
   Dashboard refresh — "Command Center"
   Light theme, green brand, rationed accent. Reuses existing tokens.
   ============================================================ */

/* One new text token → a 3-tier ink ramp (headings/values · sub-values · labels). */
:root { --ink-2: #33483d; }

/* Numbers are first-class: tabular figures wherever digits compare. */
.stat .value, .stat-sub, .delta, .money, .table .money { font-variant-numeric: tabular-nums; }

/* Near-flat resting card; the 1px --line border carries separation. Elevation = floating only. */
.card { box-shadow: 0 1px 2px rgba(16,40,28,.04); }

/* ---- KPI tile, restyled ---- */
.stat { position: relative; gap: 4px; }
.stat .stat-label { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.stat .label { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.stat .value { font-size: 28px; font-weight: 800; letter-spacing: -.5px; line-height: 1.05; color: var(--ink); margin-top: 2px; }
.stat .stat-sub { color: var(--ink-2); font-size: 12px; }

/* Neutral inline line-icon replacing the four colored badges (no bg passed = this path). */
.stat .stat-ico { display: inline-grid; place-items: center; width: 20px; height: 20px; color: var(--muted); flex: none; }
.stat .stat-ico svg { width: 18px; height: 18px; }

/* Hero tile: one dominant value, the row's only green. */
.stat--hero .value { font-size: 34px; letter-spacing: -1px; }
.stat--hero .stat-ico, .stat--hero .stat-spark { color: var(--green-600); }
.stat .stat-spark { margin-top: 8px; height: 30px; }
.stat .stat-spark svg, .spark-wide svg { width: 100%; height: 100%; display: block; }
.stat .stat-ring { position: absolute; top: 16px; right: 16px; line-height: 0; }

/* Delta chip — redundant encoding (glyph + sign + muted note). up/down colors defined above. */
.delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; white-space: nowrap; flex: none; }
.stat .stat-top .stat-label { flex: 1 1 auto; min-width: 0; }
.delta .delta-note { color: var(--muted); font-weight: 600; }

/* Clickable tiles: quiet hover + a visible accent focus ring. */
.stat--link { cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.stat--link:hover { background: var(--green-50); border-color: var(--green-500); transform: translateY(-1px); }
.stat--link:focus-visible, .btn:focus-visible { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green-600) 30%, transparent); }

/* Sparkline + progress-ring drawing. */
.ring-track { stroke: var(--line); }
.ring-fill { stroke: var(--green-600); stroke-linecap: round; }
.spark-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark-dot { fill: currentColor; }
@keyframes spark-draw { from { stroke-dashoffset: var(--len, 200); } to { stroke-dashoffset: 0; } }
.spark-line.draw { stroke-dasharray: var(--len, 200); animation: spark-draw .6s ease forwards; }
.ring-fill.draw { animation: spark-draw .7s ease forwards; }

/* A touch more air between dashboard rows than inside cards. */
.mt { margin-top: 22px; }

/* A too-wide table scrolls inside its card rather than pushing the page wider. */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 920px) {
  .stat--hero .value { font-size: 30px; }
  .stat .stat-ring { top: 14px; right: 14px; }
}

/* Global reduced-motion guard (was absent) — protects pop/pulse/bar + the new draw-ins. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .spark-line.draw, .ring-fill.draw { stroke-dasharray: none; animation: none; }
}

/* ============================================================
   Marketing landing (logged-out) + demo banner + big buttons
   ============================================================ */
.btn-lg { padding: 13px 24px; font-size: 15px; border-radius: 12px; }
.linkish { border: none; background: none; padding: 0; color: var(--green-700); font-weight: 700; cursor: pointer; text-decoration: underline; font-family: var(--font); font-size: inherit; }

/* full-screen landing overlay (the app shell is [hidden] behind it)
   Design: "First Mow of the Morning" — deep striped-lawn greens, warm cream,
   amber CTAs, Fraunces display serif (JS-injected on the landing only). */
.lp {
  --lp-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --lp-night: #12331d;
  --lp-night-deep: #0c2213;
  --lp-cream: #f7f3e9;
  --lp-cream-ink: #f2edda;
  --lp-cream-dim: rgba(233, 239, 224, .72);
  --lp-amber: #f2b64b;
  --lp-amber-deep: #e0a134;
  position: fixed; inset: 0; z-index: 40; overflow-y: auto;
  background: var(--lp-cream);
  color: var(--ink); -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
}
.lp section { scroll-margin-top: 76px; }
.lp-wrap { max-width: 1020px; margin: 0 auto; padding: 0 24px; }
.lp-wrap.narrow { max-width: 760px; }

/* mown-lawn stripes + morning glow (shared by hero + final CTA) */
.lp-stripes { position: relative; background: linear-gradient(175deg, var(--lp-night) 0%, var(--lp-night-deep) 90%); overflow: hidden; }
.lp-stripes::before {
  content: ""; position: absolute; inset: -20%;
  background: repeating-linear-gradient(100deg, rgba(255,255,255,.035) 0 54px, rgba(255,255,255,0) 54px 108px);
  transform: skewY(-1deg); pointer-events: none;
}
.lp-stripes::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(720px 340px at 78% -10%, rgba(242,182,75,.16), transparent 65%);
}
.lp-stripes > * { position: relative; z-index: 1; }

/* sticky nav — dark band that rides over every section */
.lp-nav {
  position: sticky; top: 0; z-index: 6;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 22px;
  background: rgba(12, 34, 19, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.lp-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; color: var(--lp-cream-ink); letter-spacing: -.2px; }
.lp-logo { font-size: 22px; }
.lp-links { display: flex; gap: 2px; }
.lp-link {
  border: none; background: none; cursor: pointer; font-family: var(--font);
  font-size: 13.5px; font-weight: 600; color: var(--lp-cream-dim);
  padding: 7px 11px; border-radius: 8px; transition: color .15s, background .15s;
}
.lp-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.lp-nav-cta { display: flex; gap: 8px; }
.btn-navghost { background: transparent; color: var(--lp-cream-dim); border: 1px solid rgba(255,255,255,.22); }
.btn-navghost:hover { color: #fff; border-color: rgba(255,255,255,.45); }

/* amber CTA — the "work-light" accent */
.btn-amber {
  background: linear-gradient(180deg, #f6c05c, var(--lp-amber-deep)); color: #241a04;
  border: none; font-weight: 800; box-shadow: 0 8px 24px -8px rgba(242,182,75,.55);
}
.btn-amber:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-hollow { background: transparent; color: var(--lp-cream-ink); border: 1.5px solid rgba(255,255,255,.3); }
.btn-hollow:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); }

/* hero */
.lp-hero { padding: 64px 0 84px; }
.lp-hero-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 44px; align-items: center;
}
.lp-eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--lp-amber); margin-bottom: 16px;
}
.lp-eyebrow.dark { color: var(--green-600); text-align: center; margin-bottom: 10px; }
.lp-hero h1 {
  font-family: var(--lp-serif); font-weight: 660; font-size: clamp(42px, 5.6vw, 66px);
  line-height: 1.02; letter-spacing: -1.5px; margin: 0 0 18px; color: var(--lp-cream-ink);
}
.lp-hero h1 em { font-style: italic; color: var(--lp-amber); font-weight: 560; }
.lp-hero p { font-size: 17.5px; line-height: 1.6; color: var(--lp-cream-dim); margin: 0 0 28px; max-width: 520px; }
.lp-hero p b { color: var(--lp-cream-ink); }
.lp-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-hero-note { margin-top: 18px; font-size: 12.5px; color: var(--lp-cream-dim); display: flex; gap: 18px; flex-wrap: wrap; }

/* hero entrance choreography */
[data-hr] { animation: lpUp .7s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--h, 0) * .09s); }
@keyframes lpUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* CSS product mock — today's route + a paid toast */
.lp-mock { position: relative; min-height: 300px; }
.lpm-card { background: #fff; border-radius: 16px; box-shadow: 0 24px 60px -18px rgba(0,0,0,.55); }
.lpm-route { padding: 16px 16px 12px; transform: rotate(-2deg); max-width: 340px; margin-left: auto; }
.lpm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.lpm-title { font-weight: 800; font-size: 14px; color: var(--green-900); }
.lpm-pill { font-size: 11px; font-weight: 700; color: var(--green-700); background: var(--green-50); padding: 3px 9px; border-radius: 999px; }
.lpm-job {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  font-size: 12.5px; color: var(--ink); border: 1px solid var(--line); margin-bottom: 7px; background: #fff;
}
.lpm-job.done { background: var(--green-50); border-color: var(--green-100); color: var(--green-700); }
.lpm-job.now { border-color: var(--lp-amber); box-shadow: 0 0 0 3px rgba(242,182,75,.18); }
.lpm-t { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--green-900); }
.lpm-job.done .lpm-t { color: var(--green-700); }
.lpm-n { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpm-s { font-weight: 800; color: var(--green-700); display: flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.lpm-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--lp-amber-deep); animation: lpPulse 1.4s ease-in-out infinite; }
@keyframes lpPulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.lpm-path { width: 100%; height: 40px; margin-top: 4px; }
.lpm-path path { stroke: var(--green-500); stroke-width: 2; stroke-dasharray: 5 6; stroke-linecap: round; }
.lpm-path circle { fill: var(--green-600); }
.lpm-paid {
  position: absolute; right: -6px; bottom: -22px;
  display: flex; align-items: center; gap: 11px; padding: 13px 18px 13px 14px;
  transform: rotate(2.5deg); animation: lpFloat 5s ease-in-out infinite alternate;
}
@keyframes lpFloat { from { transform: rotate(2.5deg) translateY(0); } to { transform: rotate(2.5deg) translateY(-8px); } }
.lpm-check {
  width: 30px; height: 30px; border-radius: 999px; background: var(--green-500); color: #fff;
  display: grid; place-items: center; font-weight: 900; font-size: 15px;
}
.lpm-paid-t { font-weight: 800; font-size: 13px; color: var(--green-900); }
.lpm-paid-x { font-size: 11.5px; color: var(--muted); }

/* shared section headings */
.lp h2 {
  font-family: var(--lp-serif); font-weight: 650; font-size: clamp(27px, 3.6vw, 40px);
  letter-spacing: -.8px; line-height: 1.08; margin: 0 0 30px; color: var(--green-900); text-align: center;
}
.lp h2 em { font-style: italic; color: var(--green-600); font-weight: 560; }

/* scroll reveals */
[data-rv] { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); transition-delay: var(--d, 0s); }
[data-rv].in { opacity: 1; transform: none; }

/* gripes — validated incumbent complaints */
.lp-gripes { padding: 66px 0 58px; }
.lp-gripe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 18px; }
.lp-gripe { text-align: center; padding: 0 8px; }
.lp-gripe-q {
  font-family: var(--lp-serif); font-style: italic; font-weight: 560;
  font-size: clamp(19px, 2.2vw, 23px); color: var(--green-900); letter-spacing: -.3px;
  text-decoration: line-through; text-decoration-color: rgba(196, 90, 60, .55); text-decoration-thickness: 2px;
  margin-bottom: 10px;
}
.lp-gripe-a { font-size: 14px; color: var(--ink); font-weight: 600; }
.lp-gripe-a::before { content: "→ "; color: var(--green-600); font-weight: 800; }
.lp-gripe-src { text-align: center; margin-top: 26px; font-size: 12.5px; color: var(--muted); }

/* white full-bleed bands */
.lp-band { background: #fff; border-block: 1px solid rgba(20, 54, 31, .08); padding: 72px 0; }

/* features */
.lp-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.lp-feat {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--lp-cream); border: 1px solid rgba(20, 54, 31, .1); border-radius: 14px; padding: 18px 16px;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s, border-color .25s;
}
.lp-feat:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(20,54,31,.35); border-color: var(--green-500); }
.lp-feat-i { font-size: 23px; line-height: 1; }
.lp-feat-t { font-weight: 800; font-size: 14.5px; margin-bottom: 4px; color: var(--green-900); }
.lp-feat-x { font-size: 13px; color: var(--muted); line-height: 1.5; }
.lp-chip-pro {
  display: inline-block; vertical-align: 1px; margin-left: 4px;
  font-size: 9px; font-weight: 900; letter-spacing: .08em; color: #7a5b00;
  background: linear-gradient(180deg, #fbe3ae, #f2cd7d); border-radius: 5px; padding: 2px 5px;
}

/* how it works */
.lp-how { padding: 72px 0; }
.lp-how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lp-step {
  position: relative; background: #fff; border: 1px solid rgba(20,54,31,.1); border-radius: 16px;
  padding: 26px 22px 22px; overflow: hidden;
}
.lp-step-n {
  position: absolute; top: -18px; right: 2px; font-family: var(--lp-serif); font-style: italic;
  font-size: 96px; font-weight: 560; color: var(--green-100); line-height: 1; user-select: none;
}
.lp-step-t { position: relative; font-weight: 800; font-size: 16px; color: var(--green-900); margin-bottom: 6px; }
.lp-step-x { position: relative; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* comparison table */
.lp-tbl-scroll { overflow-x: auto; margin-top: 6px; border-radius: 14px; -webkit-overflow-scrolling: touch; }
.lp-tbl { width: 100%; min-width: 680px; border-collapse: separate; border-spacing: 0; font-size: 13px; background: #fff; }
.lp-tbl th, .lp-tbl td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.lp-tbl thead th { font-size: 12.5px; font-weight: 800; color: var(--muted); background: var(--lp-cream); position: sticky; top: 0; }
.lp-tbl tbody th { text-align: left; font-weight: 700; color: var(--green-900); font-size: 12.5px; background: var(--lp-cream); white-space: nowrap; }
.lp-tbl td { color: var(--ink); }
.lp-tbl .c-us { background: var(--green-50); border-inline: 2px solid var(--green-500); font-weight: 700; color: var(--green-900); }
.lp-tbl thead .c-us { background: var(--green-600); color: #fff; border-top: 2px solid var(--green-500); border-radius: 10px 10px 0 0; font-size: 13px; }
.lp-tbl tbody tr:last-child .c-us { border-bottom: 2px solid var(--green-500); border-radius: 0 0 10px 10px; }
.lp-math {
  margin: 22px auto 0; max-width: 780px; background: #fff; border: 1px solid rgba(20,54,31,.1);
  border-left: 4px solid var(--lp-amber); border-radius: 12px; padding: 16px 20px;
  font-size: 14.5px; line-height: 1.6; color: var(--ink);
}
.lp-math b { color: var(--green-900); }
.lp-math b.us { color: var(--green-600); }
.lp-fine { text-align: center; margin-top: 14px; font-size: 11.5px; color: var(--muted); }

/* pricing */
.lp-pricing { padding: 72px 0; }
.lp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; align-items: stretch; }
.lp-plan { position: relative; background: #fff; border: 1px solid rgba(20,54,31,.12); border-radius: 16px; padding: 24px 22px; display: flex; flex-direction: column; }
.lp-plan ul { flex: 1; }
.lp-plan-pro { border: 2px solid var(--green-500); box-shadow: 0 18px 44px -18px rgba(46,196,106,.55); }
.lp-badge { position: absolute; top: -11px; left: 22px; background: var(--green-600); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .5px; padding: 4px 10px; border-radius: 999px; }
.lp-plan-name { font-weight: 800; font-size: 15px; color: var(--green-900); }
.lp-plan-price { font-family: var(--lp-serif); font-size: 38px; font-weight: 650; letter-spacing: -1px; margin: 4px 0 12px; color: var(--ink); }
.lp-plan-price span { font-family: var(--font); font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.lp-save { display: inline-block; align-self: flex-start; background: var(--green-100); color: var(--green-700); font-weight: 800; font-size: 11.5px; padding: 4px 10px; border-radius: 8px; margin: -6px 0 10px; }
.lp-plan ul { list-style: none; padding: 0; margin: 0 0 18px; }
.lp-plan li { position: relative; padding: 5px 0 5px 22px; font-size: 13.5px; color: var(--ink); }
.lp-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green-600); font-weight: 800; }
.lp-guarantee { text-align: center; margin-top: 22px; font-size: 13px; color: var(--ink); font-weight: 600; }
.lp-guarantee a { color: var(--green-700); }

/* FAQ */
.lp-faq-list { max-width: 680px; margin: 0 auto; }
.lp-faq details { border-bottom: 1px solid var(--line); }
.lp-faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 16px 2px; font-weight: 700; font-size: 15px; color: var(--green-900);
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-family: var(--lp-serif); font-size: 22px; color: var(--green-600); transition: transform .25s; flex: none; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details p { margin: 0 0 16px; padding: 0 26px 0 2px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.lp-faq details a { color: var(--green-700); }

/* final CTA band (holds the legal footer) */
.lp-cta { padding: 84px 24px 40px; text-align: center; }
.lp-cta h2 { color: var(--lp-cream-ink); margin-bottom: 26px; }
.lp-cta h2 em { color: var(--lp-amber); }
.lp-foot-note { margin-top: 16px; font-size: 13px; color: var(--lp-cream-dim); }
.linkish.lite { color: var(--lp-cream-ink); }
.lp-legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: var(--lp-cream-dim); }
.lp-legal a { color: var(--lp-cream-ink); text-decoration: none; }
.lp-legal a:hover { text-decoration: underline; }
.lp-copy { margin-top: 8px; color: var(--lp-cream-dim); }

@media (max-width: 860px) {
  .lp-links { display: none; }
  .lp-hero { padding: 44px 0 96px; }
  .lp-hero-inner { grid-template-columns: 1fr; gap: 54px; text-align: center; }
  .lp-hero p { margin-inline: auto; }
  .lp-hero-cta, .lp-hero-note { justify-content: center; }
  .lp-mock { max-width: 360px; margin: 0 auto; }
  .lpm-route { margin: 0 auto; }
  .lpm-paid { right: 2px; }
  .lp-gripe-grid, .lp-feats, .lp-how-grid, .lp-plans { grid-template-columns: 1fr; }
  .lp-band, .lp-how, .lp-pricing { padding: 56px 0; }
}

/* opt-in demo floating banner */
.demo-banner {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  background: var(--green-900); color: #fff; padding: 9px 14px; border-radius: 999px;
  box-shadow: var(--shadow-lg); z-index: 150; max-width: calc(100vw - 24px);
}
.demo-banner-txt { font-size: 12.5px; }
.demo-banner .btn { white-space: nowrap; }
.demo-banner .btn-ghost { color: #cde4d8; }

/* ============================================================
   Sign-up wizard (full-screen, resumable)
   ============================================================ */
.wz {
  position: fixed; inset: 0; z-index: 41; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: radial-gradient(1200px 600px at 50% -10%, var(--green-100), var(--bg) 60%);
  color: var(--ink); display: flex; flex-direction: column;
}
.wz-top { display: flex; align-items: center; justify-content: space-between; max-width: 760px; width: 100%; margin: 0 auto; padding: 18px 24px 6px; }
.wz-count { font-size: 12.5px; }
.wz-progress { display: flex; gap: 5px; max-width: 760px; width: 100%; margin: 0 auto; padding: 6px 24px; }
.wz-seg { flex: 1; height: 5px; border-radius: 999px; background: var(--line); transition: background .2s; }
.wz-seg.done { background: var(--green-500); }
.wz-seg.now { background: var(--green-600); }
.wz-steplabel { max-width: 760px; width: 100%; margin: 2px auto 0; padding: 0 24px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.wz-body { max-width: 560px; width: 100%; margin: 0 auto; padding: 18px 24px 12px; flex: 1; }
.wz-step { }
.wz-h { font-size: 28px; letter-spacing: -.6px; line-height: 1.12; margin: 6px 0 8px; color: var(--green-900); }
.wz-sub { font-size: 15px; color: var(--muted); line-height: 1.5; margin: 0 0 20px; }
.wz-fields { }
.wz-err { color: var(--danger); font-size: 12.5px; min-height: 16px; margin-top: 4px; }
.wz-foot { position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px; max-width: 560px; width: 100%; margin: 0 auto; padding: 12px 24px 22px; background: linear-gradient(to top, var(--bg) 62%, transparent); }
.wz-pro { font-size: 11px; font-weight: 800; color: var(--green-700); background: var(--green-50); padding: 2px 7px; border-radius: 999px; }

.wz-verify { text-align: center; padding: 14px 0 6px; }
.wz-verify-glyph { font-size: 46px; animation: wzbob 2.4s ease-in-out infinite; }
.wz-verify-wait { font-size: 13px; margin-top: 8px; }
@keyframes wzbob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.wz-emoji { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px; }
.wz-emoji button { font-size: 22px; padding: 8px 0; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; transition: border-color .12s, transform .12s; }
.wz-emoji button:hover { transform: translateY(-1px); }
.wz-emoji button.on { border-color: var(--green-500); background: var(--green-50); }

.wz-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wz-plans-3 { grid-template-columns: repeat(3, 1fr); }
.wz-plan { position: relative; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 18px; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.wz-plan:hover { border-color: var(--green-100); }
.wz-plan.sel { border-color: var(--green-600); box-shadow: 0 8px 24px -12px rgba(37,155,82,.55); }
.wz-plan.pro { }
.wz-plan .lp-plan-name { font-weight: 800; font-size: 15px; color: var(--green-900); }
.wz-plan .lp-plan-price { font-size: 27px; font-weight: 800; margin: 2px 0 8px; }
.wz-plan .lp-plan-price span { font-size: 13px; font-weight: 600; color: var(--muted); }
.wz-plan ul { list-style: none; padding: 0; margin: 6px 0 0; }
.wz-plan li { position: relative; padding: 3px 0 3px 18px; font-size: 12.5px; color: var(--ink); }
.wz-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green-600); font-weight: 800; }

.wz-summary { padding: 16px 18px; }
.wz-sumrow { display: flex; align-items: center; gap: 11px; padding: 7px 0; font-size: 14px; border-bottom: 1px solid var(--green-50); }
.wz-sumrow:last-child { border-bottom: 0; }
.wz-sumico { font-size: 18px; width: 22px; text-align: center; }

@media (max-width: 720px) {
  .wz-h { font-size: 24px; }
  .wz-plans { grid-template-columns: 1fr; }
}
