/* ============================================================
   TaskLogix360 — Hero + Dashboard section
   De-iframed from embeds/wix-embed-hero.html (2026-07-09).
   Pairs with sections/hero.html + assets/js/hero.js.

   Conversion notes / judgment calls (visual result unchanged):
   - Embed's root <section class="hero"> became .tlx-hero — the
     container (container-type:inline-size; container-name:tlxhero)
     now lives on the section class, so all cqw units + the
     @container tlxhero query keep measuring the section.
   - :root token block removed — every token already in tokens.css;
     NO new tokens needed.
   - html/body rules dropped (iframe artifacts: height/min-height
     100%, overflow:hidden). Body font/color/font-smoothing moved
     onto .tlx-hero; body background #FBFDFE dropped because the
     section's own opaque gradient stack fully covers it.
     overflow:hidden stays on .tlx-hero (it was on .hero itself —
     the design needs it to clip the dot canvas / gradients).
   - Bare `button` scoped to `.tlx-hero button`. Bare :focus-visible
     removed — base.css defines the identical rule.
   - .btn/.btn-primary/.btn-secondary scoped under .tlx-hero: base.css
     also defines them (vw-based); the embed's cqw-based versions win
     inside the section and no longer leak to the rest of the page.
     Property sets are identical, so base.css .btn is fully masked here.
   - Also scoped for the same cross-file-collision reason: .cta-row
     (pages use a bare .cta-row outside the hero) and .dash + .anim
     (outcomes.css uses the same class names on the same page).
   - @keyframes fadeUp/fadeIn renamed tlxHeroFadeUp/tlxHeroFadeIn —
     keyframes are document-global and outcomes.css defines different
     fadeUp/fadeIn; unprefixed they'd clobber each other on index.html.
   - .hero-top top padding clamp(100px,15.625cqw,210px) kept AS-IS:
     intentional clearance for the overlaid fixed nav.
   ============================================================ */

/* ============================================================ HERO (section root) ============================================================ */
.tlx-hero{
  position:relative;overflow:hidden;
  container-type:inline-size;container-name:tlxhero;
  font-family:var(--font);color:var(--navy-deep);
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;
  /* Reverted 2026-07-11 (per Sam): back to the ORIGINAL clean white ground — the dark
     hero and the moody-colorful experiment are both dropped. (To restore the moody
     colorful light version instead, swap in the rgba blue/green/teal wash stack.) */
  background:
    radial-gradient(135% 95% at 78% 4%, #E1EAF4 0%, rgba(225,234,244,0) 50%),
    radial-gradient(120% 70% at 50% 120%, rgba(30,154,68,.08) 0%, rgba(30,154,68,0) 60%),
    linear-gradient(160deg, #FFFFFF 0%, #FAFCFE 42%, #EEF4FA 100%);
}
.tlx-hero button{background:transparent;border:0;cursor:pointer;font:inherit;color:inherit;padding:0;text-align:left}

/* dot grid spans the WHOLE hero; the dashboard's white frame covers the dots beneath it */
.dots{position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.9}

/* copy zone (above the dots) */
/* top padding = room for an overlaid nav. 200px at the 1280 desktop width (200/1280 = 15.625%),
   scaling proportionally — with a higher floor (100px) so smaller breakpoints keep enough clearance. */
.hero-top{position:relative;z-index:2;padding:clamp(100px,15.625cqw,210px) clamp(20px,5cqw,64px) 0}
.hero-top::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:radial-gradient(58% 62% at 50% 42%, rgba(255,255,255,.82) 0%, rgba(255,255,255,0) 70%);
}
.hero-content{position:relative;z-index:2;max-width:920px;margin:0 auto;text-align:center}

/* Badge */
.badge{
  display:inline-flex;align-items:center;gap:var(--sp-2);padding:var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-3);
  background:#fff;border:1px solid var(--border);border-radius:999px;
  box-shadow:0 1px 2px rgba(8,54,93,.05), 0 6px 18px -10px rgba(8,54,93,.18);
  /* was clamp(10px,1.05cqw,12px): rendered 10-12px, i.e. under the 13.33px floor
     at EVERY container width. Retuned to land on 14px at desktop so the hero
     eyebrow matches the site-wide .eyebrow (base.css) instead of undercutting it. */
  font-size:clamp(13.5px,1.2cqw,14px);font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--navy);margin-bottom:clamp(24px,3cqw,32px);
}
.badge-dot{width:8px;height:8px;border-radius:50%;background:var(--green);flex-shrink:0;
  box-shadow:0 0 0 0 rgba(30,154,68,.55);animation:pulse 1.9s var(--ease) infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(30,154,68,.5)}70%{box-shadow:0 0 0 9px rgba(30,154,68,0)}100%{box-shadow:0 0 0 0 rgba(30,154,68,0)}}

/* Headline — roomier line-height + bottom margin so it doesn't feel cramped */
.headline{margin:0 0 clamp(22px,2.8cqw,30px);font-weight:800;letter-spacing:-0.022em;line-height:1.16;font-size:clamp(28px,5.4cqw,60px)}
.headline .l1{display:block;color:var(--navy-deep)}
.headline .l2{display:block;color:var(--green);white-space:nowrap}  /* keep "for [word]" on one line */
.rot{display:inline-block;text-align:left;vertical-align:bottom;overflow:hidden;white-space:nowrap;transition:width .5s var(--ease)}
.rot-char{display:inline-block;will-change:transform,opacity}
@keyframes charIn{from{opacity:0;transform:translateY(.55em)}to{opacity:1;transform:none}}
.rot-char.in{opacity:0;animation:charIn .5s var(--ease) forwards}

/* Subhead */
.subhead{margin:0 auto clamp(30px,3.6cqw,40px);max-width:640px;font-size:clamp(15px,1.7cqw,19px);font-weight:400;line-height:1.6;color:var(--slate)}
.subhead strong{color:var(--navy);font-weight:700}

/* CTAs */
.tlx-hero .cta-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--sp-4);margin-bottom:clamp(26px,3.4cqw,38px)}
/* Element-first height (rulebook rule 2). padding:13px was a reverse-engineered
   way to land on 48px; stating --h-btn-lg says so directly and puts the vertical
   padding back on the grid. 12px + 19px line box + 3px border = 46px, so
   min-height is what holds the button at exactly 48px - measured, not assumed. */
.tlx-hero .btn{display:inline-flex;align-items:center;justify-content:center;min-height:var(--h-btn-lg);padding:var(--sp-3) clamp(20px,2.4cqw,28px);border-radius:10px;
  font-size:clamp(14px,1.45cqw,16px);font-weight:700;text-decoration:none;cursor:pointer;
  transition:transform .2s var(--ease),box-shadow .2s var(--ease),background-color .2s var(--ease),border-color .2s var(--ease)}
.tlx-hero .btn-primary{background:var(--green-aa);color:#fff;border:1.5px solid var(--green-aa);box-shadow:0 1px 2px rgba(8,54,93,.06),0 10px 22px -12px rgba(30,154,68,.6)}
.tlx-hero .btn-primary:hover{background:var(--green-aa-deep);border-color:var(--green-aa-deep);transform:translateY(-2px);box-shadow:0 1px 2px rgba(8,54,93,.06),0 16px 30px -12px rgba(30,154,68,.7)}
.tlx-hero .btn-secondary{background:#fff;color:var(--navy);border:1.5px solid var(--navy-100);box-shadow:0 1px 2px rgba(8,54,93,.05)}
.tlx-hero .btn-secondary:hover{border-color:var(--navy);transform:translateY(-2px);box-shadow:0 1px 2px rgba(8,54,93,.05),0 12px 24px -14px rgba(11,70,120,.5)}

/* Trust strip — green-check chips (matches the QC hero's .vqc-marks) */
.trust{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--sp-3) clamp(18px,2.4cqw,28px);
  font-size:clamp(13.5px,1.4cqw,15px);font-weight:600;color:var(--slate)}
.trust span{display:inline-flex;align-items:center;gap:8px}
.trust svg{width:var(--sp-4);height:var(--sp-4);color:var(--green);flex-shrink:0}

/* Entrance (staggered) */
@keyframes tlxHeroFadeUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.tlx-hero .anim{opacity:0;animation:tlxHeroFadeUp .6s var(--ease) forwards}
/* .d1-.d5 scoped WITH .anim: the scoped .anim shorthand (0,2,0) would otherwise
   beat bare .dN (0,1,0) for animation-delay and kill the stagger */
.tlx-hero .d1{animation-delay:.15s}.tlx-hero .d2{animation-delay:.25s}.tlx-hero .d3{animation-delay:.35s}.tlx-hero .d4{animation-delay:.45s}.tlx-hero .d5{animation-delay:.55s}

/* 4pt-audit:archive-start
   ARCHIVE ONLY - this dashboard mock is not on any shipped page.
   Verified 2026-08-06 with _deadcss.js: of hero.css's 273 selectors, 242 match
   nothing on index.html at 390/820/1440. The markup for them (.dash-slide,
   .w-feed-row, .dc-row, .db-inv ...) survives only in _index-BEFORE-v2.html,
   _mock-home{,-a,-b}.html, v2-hero.html, v2-home.html and v-reporting-a.html -
   the record of the hero exploration, none of which ships.
   The v2 home rebuild replaced this mock; hero.js still loads but finds no
   .dash-slide and bails.
   It is neither deleted (that would break those archives) nor retrofitted
   (that would rewrite them while changing nothing that ships), so the 4-point
   audit classifies it instead: 114 spacing + 49 type violations, reported
   separately by _spacecheck.py and excluded from the QA gate.
   ONLY .chip leaks out of here: .tj-card-top .chip on the live page inherits its
   gap. home-system.css now sets that explicitly, so nothing live depends on this
   block. If the mock is ever revived, delete these markers and retrofit properly.
   ============================================================ */
/* ============================================================ DASHBOARD (desktop shape, scaled to fit) ============================================================ */
.dash-wrap{
  position:relative;z-index:2;max-width:1120px;margin:0 auto;
  padding:64px clamp(12px,3cqw,40px) clamp(40px,6cqw,76px);
  opacity:0;animation:tlxHeroFadeUp .7s var(--ease) .65s forwards;
}
.dash-fit{position:relative;width:100%;overflow:hidden;border-radius:14px;
  box-shadow:0 1px 2px rgba(0,0,0,.04),0 30px 70px -34px rgba(8,54,93,.34)}
.dash-design{width:1040px;transform-origin:top left;will-change:transform}  /* fixed desktop canvas; JS scales it */

.frame{overflow:hidden;border-radius:14px;background:#fff;box-shadow:inset 0 0 0 1px #D1D5DB}
.tlx-hero .dash{display:grid;grid-template-columns:188px 1fr;background:#fff}

/* Sidebar (always shown — desktop shape) */
.side{display:flex;border-right:1px solid var(--border);background:linear-gradient(180deg,#fff,#FAFBFD);padding:18px 14px;flex-direction:column;min-height:520px}
.side-nav{display:flex;flex-direction:column;gap:2px}
.nav-i{position:relative;display:flex;align-items:center;gap:10px;padding:8px;border-radius:8px;color:var(--slate);transition:background-color 200ms,color 200ms}
.nav-i:hover{background:var(--surface);color:var(--navy)}
.nav-i.active{background:var(--green-50);color:var(--navy)}
.nav-i.active::before{content:"";position:absolute;left:-14px;top:8px;bottom:8px;width:3px;border-radius:0 3px 3px 0;background:var(--green)}
.nav-ico{flex-shrink:0;width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center}
.nav-ico svg{width:100%;height:100%}
.nav-label{font-size:12px;font-weight:600;display:inline}

/* Main */
.main{display:flex;flex-direction:column;min-width:0;background:linear-gradient(180deg,#fff 0%,#FAFBFD 100%)}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 22px;border-bottom:1px solid var(--border)}
.tb-left{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
.chip{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:7px;background:#fff;box-shadow:inset 0 0 0 1px var(--border);font-size:11px;font-weight:600;color:var(--navy);white-space:nowrap}
.chip .caret{opacity:.5;font-size:9px}
.chip.muted{color:var(--slate);font-weight:500}
.tb-right{display:flex;align-items:center;gap:10px;flex-shrink:0}
.tb-status{display:inline-flex;align-items:center;gap:6px;font-size:10.5px;font-weight:600;color:var(--slate-light);white-space:nowrap}
.tb-status .live-dot{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 0 rgba(30,154,68,.5);animation:pulse 1.9s var(--ease) infinite}

/* Content — now the slideshow STAGE (slides cross-fade inside it) */
.content{position:relative;padding:0;background:#fff}

/* KPIs (always 4 across) */
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.kpi{position:relative;padding:14px;border-radius:10px;background:#fff;box-shadow:inset 0 0 0 1px var(--border);overflow:hidden}
.kpi-h{display:flex;align-items:center;gap:8px}
.kpi-ico{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;height:24px;width:24px;border-radius:6px;background:var(--navy-50);color:var(--navy)}
.kpi-ico.g{background:var(--green-50);color:var(--green)}
.kpi-ico.a{background:var(--amber-50);color:#92400E}
.kpi-ico svg{width:13px;height:13px}
.kpi-label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--slate)}
.kpi-v{margin-top:8px;font-size:26px;font-weight:800;color:var(--navy);letter-spacing:-0.02em;line-height:1}
.kpi-v .unit{font-size:13px;font-weight:700;color:var(--slate);margin-left:2px}
.kpi-delta{margin-top:5px;font-size:10px;font-weight:600;color:var(--slate-light);display:flex;align-items:center;gap:4px}
.kpi-delta .up{color:var(--green);font-weight:700}
.kpi-delta .down{color:var(--red);font-weight:700}
.kpi.tick .kpi-v{animation:kpiTick 800ms cubic-bezier(.16,1,.3,1)}
@keyframes kpiTick{0%{transform:translateY(8px);opacity:0}60%{transform:translateY(-2px);opacity:1}100%{transform:translateY(0);opacity:1}}

/* Widgets (always 2 across) */
.widgets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.widget{position:relative;display:flex;flex-direction:column;padding:14px;border-radius:10px;background:#fff;box-shadow:inset 0 0 0 1px var(--border);min-height:200px;overflow:hidden}
.w-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.w-h-l{display:flex;align-items:center;gap:6px;min-width:0}
.w-h-dot{height:5px;width:5px;border-radius:50%;background:var(--slate-light);flex-shrink:0;transition:background-color 250ms}
.widget.hot .w-h-dot{background:var(--green);box-shadow:0 0 0 4px rgba(30,154,68,.18)}
.w-title{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--slate)}
.widget.hot .w-title{color:var(--navy)}
.w-meta{font-size:9px;color:var(--slate-light);white-space:nowrap}
.w-meta b{font-family:var(--mono);font-weight:700;color:var(--green)}

.w-rev-head{display:flex;align-items:baseline;gap:10px;margin-bottom:4px}
.w-rev-v{font-size:22px;font-weight:800;color:var(--navy);line-height:1;letter-spacing:-0.02em}
.w-rev-delta{padding:2px 6px;border-radius:4px;background:var(--green-50);color:var(--green);font-size:9px;font-weight:700}
.w-rev-sub{font-size:9.5px;color:var(--slate-light)}
.w-rev-chart{margin-top:auto;position:relative;flex:1;min-height:80px}
.w-rev-chart svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.w-rev-line{fill:none;stroke:var(--green);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:800;stroke-dashoffset:0}
.w-rev-area{fill:url(#revG);opacity:.6}
.widget.hot .w-rev-line{animation:drawLine 1.4s cubic-bezier(.16,1,.3,1)}
.widget.hot .w-rev-area{animation:tlxHeroFadeIn 1.4s cubic-bezier(.16,1,.3,1)}
@keyframes drawLine{from{stroke-dashoffset:800}to{stroke-dashoffset:0}}
@keyframes tlxHeroFadeIn{from{opacity:0}to{opacity:.6}}
.w-rev-pt{fill:var(--green);stroke:#fff;stroke-width:2}
.w-rev-pt.live{animation:livePtPulse 1.8s ease-in-out infinite}
@keyframes livePtPulse{0%,100%{r:3}50%{r:5}}

.w-pipe-head{display:flex;align-items:baseline;gap:10px;margin-bottom:4px}
.w-pipe-v{font-size:22px;font-weight:800;color:var(--navy);line-height:1;letter-spacing:-0.02em}
.w-pipe-v .unit{font-size:13px;font-weight:700;color:var(--slate);margin-left:2px}
.w-pipe-delta{padding:2px 6px;border-radius:4px;background:var(--green-50);color:var(--green);font-size:9px;font-weight:700}
.w-pipe-sub{font-size:9.5px;color:var(--slate-light)}
.w-pipe-stages{margin-top:10px;display:flex;flex-direction:column;gap:7px;flex:1}
.w-pipe-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:8px;align-items:center;font-size:10px}
.w-pipe-name{color:var(--slate);font-weight:600}
.w-pipe-bar-wrap{height:10px;border-radius:4px;background:var(--surface);overflow:hidden}
.w-pipe-bar{height:100%;width:var(--target);border-radius:4px;background:linear-gradient(90deg,var(--navy),rgba(11,70,120,.6))}
.widget.hot .w-pipe-bar{animation:fillBar 1s cubic-bezier(.16,1,.3,1)}
@keyframes fillBar{from{width:0}to{width:var(--target)}}
.w-pipe-v-stage{font-family:var(--mono);font-size:10px;font-weight:700;color:var(--navy);min-width:18px;text-align:right}

.w-util{display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:center;flex:1;margin-top:6px}
.w-util-chart{position:relative;width:96px;height:96px;flex-shrink:0}
.w-util-chart svg{width:100%;height:100%;transform:rotate(-90deg)}
.w-util-track{fill:none;stroke:var(--border);stroke-width:9}
.w-util-fill{fill:none;stroke:var(--green);stroke-width:9;stroke-linecap:round;stroke-dasharray:251.327;stroke-dashoffset:57.8}
.widget.hot .w-util-fill{animation:donutDraw 1.4s cubic-bezier(.16,1,.3,1)}
@keyframes donutDraw{from{stroke-dashoffset:251.327}to{stroke-dashoffset:57.8}}
.w-util-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.w-util-v{font-size:22px;font-weight:800;color:var(--navy);line-height:1;letter-spacing:-0.02em}
.w-util-sub{font-size:8px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--slate-light);margin-top:3px}
.w-util-list{display:flex;flex-direction:column;gap:5px;min-width:0}
.w-util-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px;align-items:center;font-size:9.5px}
.w-util-av{display:inline-flex;align-items:center;justify-content:center;height:16px;width:16px;border-radius:50%;background:var(--navy);color:#fff;font-size:7px;font-weight:800}
.w-util-av.b{background:var(--green)} .w-util-av.c{background:var(--navy-deep)}
.w-util-name{color:var(--slate);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.w-util-pct{font-family:var(--mono);font-weight:700;color:var(--navy)}

.w-feed{flex:1;display:flex;flex-direction:column;gap:0;margin-top:6px;overflow:hidden}
.w-feed-row{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:8px;align-items:center;padding:5px 0;border-bottom:1px solid var(--border-soft);transition:background-color 250ms}
.w-feed-row:last-child{border-bottom:0}
.w-feed-row.fresh{background:linear-gradient(90deg,rgba(30,154,68,.12),transparent 60%);animation:freshFlash 1.2s ease-out}
@keyframes freshFlash{0%{background:rgba(30,154,68,.22)}100%{background:transparent}}
.w-feed-ico{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;border-radius:5px;background:var(--surface);color:var(--slate);flex-shrink:0}
.w-feed-ico.g{background:var(--green-50);color:var(--green)}
.w-feed-ico.n{background:var(--navy-50);color:var(--navy)}
.w-feed-ico.a{background:var(--amber-50);color:#92400E}
.w-feed-ico svg{width:10px;height:10px}
.w-feed-text{font-size:10px;color:var(--slate);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.w-feed-text b{font-weight:700;color:var(--navy)}
.w-feed-time{font-family:var(--mono);font-size:8.5px;color:var(--slate-dim);flex-shrink:0;font-weight:600}

.dash-foot{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:10px 20px 14px;border-top:1px solid var(--border-soft);background:#fff}
.foot-status{font-size:9.5px;font-weight:600;color:var(--slate-light);letter-spacing:.04em}
.foot-status .focus{color:var(--navy);font-weight:700}
.pause-btn{display:inline-flex;align-items:center;justify-content:center;height:28px;width:28px;border-radius:50%;background:var(--surface);color:var(--slate);box-shadow:inset 0 0 0 1px var(--border);transition:all 150ms}
.pause-btn:hover{background:#fff;color:var(--navy);box-shadow:inset 0 0 0 1px var(--navy)}
.pause-btn svg{height:11px;width:11px}

/* ============================================================ DASHBOARD SLIDESHOW (2026-07-13)
   The single Overview dashboard became a multi-screen product slideshow
   (Overview → Live Map → … Crews/Billing to come). Slides cross-fade inside
   the .content stage: the Overview slide stays in normal flow so it defines
   the frame height, every other slide is absolutely stacked over it. The
   sidebar active-state + the tab row under the frame follow the active slide.
   Engine: hero.js (slideshow IIFE). Prefixes: dash-slide / dm- (map).
   ============================================================ */
.dash-slide{transition:opacity .5s var(--ease)}
/* Overview keeps flow (defines height) + its original padded stack */
.dash-slide.s-over{padding:20px;display:flex;flex-direction:column;gap:16px}
.dash-slide.s-over:not(.act){opacity:0}
/* every other slide overlays the stage and cross-fades */
.dash-slide:not(.s-over){position:absolute;inset:0;opacity:0;pointer-events:none}
.dash-slide:not(.s-over).act{opacity:1;pointer-events:auto}

/* --- tab row under the frame (mirrors the QC hero's stage tabs) --- */
.dash-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
/* scoped under .tlx-hero so these beat the section's base `.tlx-hero button` reset */
.tlx-hero .dash-tab{position:relative;flex:1 1 150px;display:flex;align-items:center;gap:10px;padding:11px 14px;
  border-radius:11px;background:#fff;border:1px solid var(--border);
  box-shadow:0 1px 2px rgba(8,54,93,.05),0 10px 22px -16px rgba(8,54,93,.3);
  cursor:pointer;overflow:hidden;transition:border-color .2s var(--ease),box-shadow .2s var(--ease),transform .2s var(--ease)}
.tlx-hero .dash-tab:hover{transform:translateY(-1px);box-shadow:0 1px 2px rgba(8,54,93,.05),0 14px 26px -16px rgba(8,54,93,.42)}
.dash-tab .dt-ico{flex-shrink:0;width:26px;height:26px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;
  background:var(--navy-50);color:var(--navy);transition:background-color .2s var(--ease),color .2s var(--ease)}
.dash-tab .dt-ico svg{width:15px;height:15px}
.dash-tab .dt-txt{display:flex;flex-direction:column;gap:1px;min-width:0;text-align:left}
.dash-tab .dt-n{font-family:var(--mono);font-size:9px;font-weight:700;letter-spacing:.08em;color:var(--slate-light)}
.dash-tab .dt-l{font-size:12.5px;font-weight:700;color:var(--slate);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dash-tab.act{border-color:var(--green);box-shadow:0 1px 2px rgba(8,54,93,.05),0 14px 28px -16px rgba(30,154,68,.5)}
.dash-tab.act .dt-ico{background:var(--green-50);color:var(--green)}
.dash-tab.act .dt-l{color:var(--navy)}
.dash-prog{position:absolute;left:0;bottom:0;height:2.5px;width:0;background:var(--green);border-radius:0 3px 3px 0}
.dash-tab.act .dash-prog{animation:dashProg 5200ms linear forwards}   /* keep in sync with SLIDE_MS in hero.js */
.dash-tabs.paused .dash-tab.act .dash-prog{animation-play-state:paused}
@keyframes dashProg{from{width:0}to{width:100%}}

/* --- Slide 2 · Live Map (light basemap, Apple/Mapbox-light style) --- */
.s-map{background:linear-gradient(150deg,#EFF2F7 0%,#E7EDF4 60%,#E1E8F1 100%);overflow:hidden}
.dm-base{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
/* stylized light street basemap: parks, building blocks, grid, arterials, river, highway, live route */
.dm-park{fill:rgba(56,168,92,.15);stroke:rgba(56,168,92,.30);stroke-width:1}
.dm-blocks rect{fill:rgba(110,134,172,.12);stroke:rgba(110,134,172,.20);stroke-width:1}
.dm-st-minor{fill:none;stroke:rgba(88,112,152,.16);stroke-width:1.2}
.dm-st-major{fill:none;stroke:rgba(70,96,140,.28);stroke-width:2.6;stroke-linecap:round}
.dm-water{fill:none;stroke:#AAD2ED;stroke-width:32;stroke-linecap:round;stroke-linejoin:round}
.dm-hwy-case{fill:none;stroke:rgba(244,192,106,.55);stroke-width:6;stroke-linecap:round}
.dm-hwy{fill:none;stroke:rgba(230,158,58,.9);stroke-width:2.4;stroke-linecap:round}
.dm-route{fill:none;stroke:rgba(21,128,61,.9);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:5 6}
.dm-pulse{fill:#15803D}

.dm-pin{position:absolute;width:14px;height:14px;border-radius:50%;border:2.5px solid #fff;
  box-shadow:0 2px 6px rgba(8,54,93,.32);transform:translate(-50%,-50%);z-index:2}
.dm-pin.g{background:#1E9A44}.dm-pin.a{background:#F2A81E}.dm-pin.n{background:#5B7EA6}
.dm-pin.live::after{content:"";position:absolute;inset:-6px;border-radius:50%;border:2px solid #F2A81E;
  animation:dmPing 1.9s var(--ease) infinite}
@keyframes dmPing{0%{transform:scale(.55);opacity:.9}100%{transform:scale(1.9);opacity:0}}

.dm-card{position:absolute;transform:translate(-50%,-50%);z-index:3;width:104px;margin:0;
  background:#fff;border-radius:10px;overflow:hidden;
  box-shadow:0 10px 24px -10px rgba(8,54,93,.38),0 0 0 1px rgba(8,54,93,.10)}
.dm-card img{display:block;width:100%;height:62px;object-fit:cover;background:#DBE3EC}
.dm-card figcaption{display:block;padding:5px 8px}
.dm-card figcaption b{display:block;font-size:10px;font-weight:800;color:var(--navy);letter-spacing:.01em}
.dm-card figcaption span{display:flex;align-items:center;gap:4px;margin-top:1px;font-family:var(--mono);font-size:7.5px;color:var(--slate-light)}
.dm-card figcaption span i{width:5px;height:5px;border-radius:50%;background:var(--green);flex-shrink:0}

.dm-legend{position:absolute;left:16px;top:14px;z-index:4;display:flex;gap:14px;padding:8px 12px;
  border-radius:9px;background:rgba(255,255,255,.86);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  border:1px solid rgba(8,54,93,.10);box-shadow:0 4px 14px -8px rgba(8,54,93,.3)}
.dm-legend span{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:600;color:var(--slate)}
.dm-legend i{width:8px;height:8px;border-radius:50%;flex-shrink:0}
.dm-legend .lg-g{background:#1E9A44}.dm-legend .lg-a{background:#F2A81E}.dm-legend .lg-n{background:#5B7EA6}
.dm-live{position:absolute;right:16px;top:14px;z-index:4;display:inline-flex;align-items:center;gap:7px;
  padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.86);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  border:1px solid rgba(8,54,93,.10);box-shadow:0 4px 14px -8px rgba(8,54,93,.3);font-size:10.5px;font-weight:700;color:var(--navy)}
.dm-live i{width:7px;height:7px;border-radius:50%;background:#1E9A44;box-shadow:0 0 0 0 rgba(30,154,68,.6);animation:pulse 1.9s var(--ease) infinite}
.dm-scale{position:absolute;right:16px;bottom:14px;z-index:4;display:inline-flex;align-items:center;gap:6px;
  font-size:8px;font-family:var(--mono);color:var(--slate-light)}
.dm-scale .bar{width:46px;height:5px;border:1.5px solid rgba(8,54,93,.38);border-top:0}

/* --- Slide 3 · Crews / Field Activity --- */
.s-crews{padding:18px}
.dc-wrap{display:grid;grid-template-columns:1.15fr .85fr;gap:16px;height:100%}
.dc-list{display:flex;flex-direction:column;gap:7px;min-width:0}
.dc-lh{display:flex;align-items:center;justify-content:space-between;padding:2px 2px 6px}
.dc-lt{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--slate)}
.dc-lc{font-family:var(--mono);font-size:10px;font-weight:700;color:var(--green)}
.dc-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;
  padding:9px 11px;border-radius:9px;background:#fff;box-shadow:inset 0 0 0 1px var(--border)}
.dc-av{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;
  font-size:9px;font-weight:800;color:#fff;background:var(--navy);flex-shrink:0}
.dc-av.a1{background:var(--green)}.dc-av.a2{background:var(--navy)}.dc-av.a3{background:var(--navy-deep)}
.dc-av.a4{background:#2C6BB0}.dc-av.a5{background:#3E8E5A}.dc-av.sub{background:var(--slate-light)}
.dc-m{min-width:0}
.dc-m b{display:block;font-size:11.5px;font-weight:700;color:var(--navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dc-m span{display:block;font-size:9.5px;color:var(--slate-light);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dc-st{font-size:9px;font-weight:800;letter-spacing:.04em;padding:4px 8px;border-radius:999px;white-space:nowrap}
.dc-st.on{background:var(--green-50);color:var(--green)}
.dc-st.enr{background:var(--amber-50);color:#92400E}
.dc-st.qc{background:var(--navy-50);color:var(--navy)}
.dc-st.sch{background:var(--surface);color:var(--slate)}
.dc-side{display:flex;flex-direction:column;gap:10px;min-width:0}
.dc-shot{position:relative;margin:0;border-radius:11px;overflow:hidden;box-shadow:0 1px 2px rgba(8,54,93,.08),0 16px 30px -18px rgba(8,54,93,.5)}
.dc-shot img{display:block;width:100%;height:150px;object-fit:cover;background:#0A1F3C}
.dc-badge{position:absolute;top:9px;left:9px;display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:999px;
  background:rgba(8,26,50,.7);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);font-size:8px;font-weight:800;letter-spacing:.08em;color:#EAF2FB}
.dc-badge i{width:6px;height:6px;border-radius:50%;background:#22B457}
.dc-shot figcaption{position:absolute;left:0;right:0;bottom:0;padding:16px 11px 9px;
  background:linear-gradient(to top,rgba(6,18,36,.86),rgba(6,18,36,0))}
.dc-shot figcaption b{display:block;font-size:12px;font-weight:700;color:#fff}
.dc-shot figcaption span{display:block;font-family:var(--mono);font-size:8.5px;color:rgba(203,217,236,.85);margin-top:1px}
.dc-feed{display:flex;flex-direction:column;padding:4px 11px;border-radius:10px;background:#fff;box-shadow:inset 0 0 0 1px var(--border);flex:1}
.dc-fi{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:8px;align-items:center;padding:7px 0;border-bottom:1px solid var(--border-soft)}
.dc-fi:last-child{border-bottom:0}
.dc-fi .ic{width:20px;height:20px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center}
.dc-fi .ic.g{background:var(--green-50);color:var(--green)}.dc-fi .ic.n{background:var(--navy-50);color:var(--navy)}.dc-fi .ic.a{background:var(--amber-50);color:#92400E}
.dc-fi .ic svg{width:11px;height:11px}
.dc-fi .tx{font-size:10px;color:var(--slate);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dc-fi .tx b{color:var(--navy);font-weight:700}
.dc-fi .t{font-family:var(--mono);font-size:8.5px;color:var(--slate-dim)}

/* --- Slide 4 · Billing / Ready to Bill --- */
.s-bill{padding:18px}
.db-wrap{display:grid;grid-template-columns:1fr .9fr;gap:16px;height:100%}
.db-list{display:flex;flex-direction:column;gap:7px;min-width:0}
.db-lh{display:flex;align-items:center;justify-content:space-between;padding:2px 2px 6px}
.db-lt{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--slate)}
.db-sum{font-family:var(--mono);font-size:10px;font-weight:700;color:var(--green)}
.db-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;
  padding:9px 11px;border-radius:9px;background:#fff;box-shadow:inset 0 0 0 1px var(--border)}
.db-ck{width:20px;height:20px;border-radius:50%;background:var(--green);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.db-ck svg{width:11px;height:11px;color:#fff}
.db-m{min-width:0}
.db-m b{display:block;font-size:11.5px;font-weight:700;color:var(--navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.db-m span{display:block;font-size:9.5px;color:var(--slate-light);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.db-amt{font-family:var(--mono);font-size:12px;font-weight:800;color:var(--navy)}
.db-inv{display:flex;flex-direction:column;border-radius:12px;background:#fff;
  box-shadow:inset 0 0 0 1px var(--border),0 16px 30px -20px rgba(8,54,93,.4);padding:14px;min-width:0}
.db-inv-h{display:flex;align-items:center;justify-content:space-between}
.db-inv-t{font-size:14px;font-weight:800;color:var(--navy);letter-spacing:-0.01em}
.db-inv-badge{font-size:8.5px;font-weight:800;letter-spacing:.06em;padding:4px 8px;border-radius:999px;background:var(--green-50);color:var(--green)}
.db-inv-sub{font-size:9.5px;color:var(--slate-light);margin-top:2px}
.db-lines{display:flex;flex-direction:column;margin-top:10px}
.db-ln{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid var(--border-soft);font-size:10.5px}
.db-ln span{color:var(--slate);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.db-ln b{font-family:var(--mono);font-weight:700;color:var(--navy);flex-shrink:0}
.db-ln.muted span,.db-ln.muted b{color:var(--slate-light)}
.db-tot{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:11px;border-top:1.5px solid var(--border)}
.db-tot span{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--slate)}
.db-tot b{font-size:20px;font-weight:800;color:var(--green);letter-spacing:-0.02em}
.tlx-hero .db-send{margin-top:12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;height:36px;border-radius:9px;
  background:var(--green);color:#fff;font-size:12px;font-weight:700;cursor:pointer;box-shadow:0 10px 20px -12px rgba(30,154,68,.7)}
.tlx-hero .db-send svg{width:14px;height:14px}

/* 4pt-audit:archive-end */

/* Narrow copy / reduced motion  (LIVE - these target the real hero, not the mock) */
@container tlxhero (max-width: 540px){
  .tlx-hero .cta-row{flex-direction:column;gap:12px}
  .tlx-hero .btn{width:100%;max-width:320px}
  .trust{gap:8px 12px}
}
@media (prefers-reduced-motion: reduce){
  .badge-dot,.tb-status .live-dot{animation:none}
  .tlx-hero .anim,.dash-wrap{opacity:1;animation:none}
  .rot-char.in{opacity:1;animation:none}
  .w-rev-pt.live,.widget *,.kpi *{animation:none !important}
  .dash-slide{transition:none}
  .dash-tab.act .dash-prog{animation:none;width:100%}
  .dm-live i{animation:none}
  .dm-pin.live::after,.dm-pulse{animation:none;display:none}
}

/* 4pt-audit:archive-start  (same mock as above - .dash-navy reskins it) */
/* ============================================================ DASHBOARD — NAVY COLOR FRAMING (2026-07-15)
   Brings the QC hero widget's color language to the home dashboard: a
   full-width navy app-header band across the top + a navy nav rail, framing
   the white working area (KPIs / charts / slides stay light). Same navy
   family as the QC inspections widget so the two products feel like one.
   Scoped under .dash-navy so the original all-light treatment is preserved
   and reversible. Overrides beat base rules on specificity (0,2,0 / 0,3,0).
   ============================================================ */
/* app-header band across the top of the frame */
.dash-navy .dash-band{display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px 18px;background:linear-gradient(90deg,#0B2440,#0C2E52);position:relative;z-index:1}
.dash-navy .db-brand{display:inline-flex;align-items:center}
.dash-navy .db-brand img{height:23px;width:auto;display:block}
.dash-navy .db-band-meta{display:inline-flex;align-items:center}
.dash-navy .db-av{width:22px;height:22px;border-radius:50%;border:2px solid #0C2E52;flex-shrink:0}
.dash-navy .db-av.a{background:linear-gradient(135deg,#3D7CB8,#0B4678)}
.dash-navy .db-av.b{background:linear-gradient(135deg,#2FB85B,#1A8A3D);margin-left:-8px}

/* navy nav rail (mirrors the QC side rail); active state = green tint, no side-stripe */
.dash-navy .side{background:linear-gradient(180deg,#0C4070 0%,var(--navy-deep) 100%);border-right:0}
.dash-navy .nav-i{color:rgba(255,255,255,.68)}
.dash-navy .nav-i:hover{background:rgba(255,255,255,.06);color:#fff}
.dash-navy .nav-i.active{background:rgba(53,193,104,.16);color:#fff}
.dash-navy .nav-i.active::before{display:none}
.dash-navy .nav-i.active .nav-ico{color:#7BEBA6}

/* 4pt-audit:archive-end */
