/* crmmaps.com teaser.
   Design language: raised tiles, after the CRMmaps logo. Flat tops sit on a solid near-black base edge.
   Palette: chart paper, logo navy, logo green, water, park. One family: Archivo (width axis). */
:root {
  --paper: #EDF0E7;
  --paper-2: #F7F9F4;
  --paper-3: #E1E7D8;
  --ink: #0B1536;
  --ink-2: #3E4A66;
  --ink-3: #77819A;
  --base: #020A2E;
  --green: #00DD51;
  --green-2: #00B845;
  --green-ink: #067A35;
  --green-soft: #D8F6E3;
  --amber: #F2A60D;
  --amber-soft: #F7E3B5;
  --water: #9CCBE6;
  --water-ink: #2C6890;
  --park: #C9DDB7;
  --park-ink: #4C7A3B;
  --road: #FFFFFF;
  --casing: #D2D8CA;
  --line: rgba(2, 10, 46, .13);
  --edge: 1.5px solid var(--base);
  --raise: 0 6px 0 0 var(--base);
  --raise-sm: 0 3px 0 0 var(--base);
  --r-lg: 26px;
  --r-md: 20px;
  --r-sm: 12px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --gutter: clamp(18px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
p { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green-ink); outline-offset: 3px; border-radius: 8px; }

.sr-only, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { top: 12px; }

/* Raised controls: buttons sit on a base edge and press down onto it. */
.raised, .signup button, .btn-small, .header-cta, .replay {
  border: var(--edge); box-shadow: var(--raise-sm);
  transition: transform .08s ease, box-shadow .08s ease, background-color .15s ease, color .15s ease;
}
.raised:active, .signup button:active, .btn-small:active, .header-cta:active, .replay:active {
  transform: translateY(3px); box-shadow: 0 0 0 0 var(--base);
}

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1400px; margin: 0 auto; padding: 20px var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { width: 46px; height: auto; display: block; }
.brand-word { font-stretch: 125%; font-weight: 770; font-size: 1.32rem; letter-spacing: -.01em; }
.header-cta {
  text-decoration: none; font-weight: 650; font-size: .95rem;
  padding: 9px 16px; border-radius: var(--r-sm); background: var(--paper-2);
}
.header-cta:hover { background: var(--green); }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 60px); align-items: center;
  max-width: 1400px; margin: 0 auto; padding: clamp(8px, 2.5vw, 28px) var(--gutter) clamp(52px, 7vw, 100px);
}
h1 {
  font-stretch: 125%; font-weight: 770;
  font-size: clamp(2.6rem, 4.9vw, 4.6rem); line-height: .96; letter-spacing: -.02em;
  margin: 0 0 1.4rem;
}
.lede { font-size: clamp(1.08rem, 1.5vw, 1.24rem); color: var(--ink-2); max-width: 36ch; margin-bottom: 1.8rem; }
.hero-note { color: var(--ink-3); font-size: .92rem; margin-top: 1rem; max-width: 40ch; }

/* Sign-up form */
.signup { display: flex; flex-wrap: wrap; gap: 10px 12px; max-width: 480px; }
.signup input[type="email"] {
  flex: 1 1 220px; min-width: 0;
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 16px; border-radius: var(--r-sm);
  border: var(--edge); background: #fff;
}
.signup input::placeholder { color: var(--ink-3); }
.signup button {
  flex: 0 0 auto; cursor: pointer;
  font-weight: 700; font-size: 1rem; padding: 12px 20px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff;
}
.signup button:hover { background: var(--green); color: var(--base); }
.signup button:disabled { cursor: default; }
.signup.sent button { background: var(--green); color: var(--base); }
.form-msg { flex-basis: 100%; font-size: .92rem; min-height: 1.4em; }
.consent { flex-basis: 100%; margin-top: -4px; font-size: .8rem; line-height: 1.45; color: var(--ink-3); max-width: 50ch; }
.consent a { color: inherit; text-underline-offset: 2px; }
.signup-cta .consent { color: rgba(2, 10, 46, .72); }
.form-msg[data-tone="error"] { color: #B4233A; }
.form-msg[data-tone="ok"] { color: var(--green-ink); font-weight: 600; }

/* Hero map */
.hero-map { position: relative; margin: 0 0 8px; }
.map-frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: var(--edge); box-shadow: 0 8px 0 0 var(--base);
  background: var(--paper); aspect-ratio: 720 / 560;
}
.map-frame svg { display: block; width: 100%; height: 100%; }
.land { fill: var(--paper); }
.park { fill: var(--park); }
.water { fill: var(--water); }
.river { fill: none; stroke: var(--water); stroke-width: 30; stroke-linecap: round; }
.casing path, .road path { fill: none; stroke-linecap: round; }
.casing path { stroke: var(--casing); }
.road path { stroke: var(--road); }
.casing.minor path { stroke-width: 9; }
.road.minor path { stroke-width: 6; }
.casing.major path { stroke-width: 15; }
.road.major path { stroke-width: 11; }
.label { font-stretch: 75%; font-weight: 600; font-size: 9.5px; fill: var(--ink-3); letter-spacing: .03em; }
.water-label { font-stretch: 85%; font-weight: 500; font-size: 10.5px; fill: var(--water-ink); letter-spacing: .1em; }
.park-label { font-stretch: 85%; font-weight: 600; font-size: 10px; fill: var(--park-ink); letter-spacing: .04em; }
.rec { stroke: var(--paper); stroke-width: 1.5; }
.rec-contact { fill: var(--water-ink); }
.rec-company { fill: var(--ink); }
.rec-deal { fill: var(--park-ink); }
.rec-custom { fill: var(--amber); }
.ring { fill: rgba(0, 221, 81, .05); stroke: var(--base); stroke-opacity: .45; stroke-width: 1.3; stroke-dasharray: 4 6; }
.route-base { fill: none; stroke: var(--base); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.route { fill: none; stroke: var(--green); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.pin-ctr { fill: var(--green); stroke: var(--base); stroke-width: 1.7; }
.pin-ctr-dot { fill: #fff; }
.pin-out { fill: var(--paper-2); stroke: var(--ink-3); stroke-width: 1.8; opacity: .8; }
.pin-out-dot { fill: var(--ink-3); opacity: .6; }
.pin-wo { fill: #FAFAFB; stroke: var(--base); stroke-width: 1.5; }
.pin-wo-dot { fill: var(--base); }
.pulse { fill: var(--green); opacity: 0; }
.rank circle { fill: var(--base); }
.rank text { fill: #fff; font-size: 10.5px; font-weight: 700; text-anchor: middle; }
.why { font-stretch: 85%; font-weight: 650; font-size: 10px; fill: var(--ink-2); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.north path { fill: var(--ink); }
.north text, .scale text { font-stretch: 85%; font-weight: 650; font-size: 10px; fill: var(--ink); text-anchor: middle; }
.scale path { fill: none; stroke: var(--ink); stroke-width: 2; }

.replay {
  position: absolute; top: 14px; left: 14px; cursor: pointer;
  background: var(--paper-2); border-radius: 999px; padding: 5px 12px; font-size: .82rem; font-weight: 650;
  opacity: 0; pointer-events: none;
}
.hero-map.done .replay, .hero-map.final .replay { opacity: 1; pointer-events: auto; }

.wo-card {
  position: absolute; left: 16px; bottom: 18px; width: min(318px, 48%);
  background: #fff; border: var(--edge); border-radius: var(--r-md); box-shadow: 0 5px 0 0 var(--base);
  padding: 14px 14px 10px; font-size: .86rem; line-height: 1.4;
}
.wo-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.wo-title { font-stretch: 112%; font-weight: 720; font-size: .98rem; white-space: nowrap; }
.wo-status {
  font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  color: var(--green-ink); background: var(--green-soft); white-space: nowrap;
}
.wo-meta { color: var(--ink-2); margin-bottom: 10px; }
.matches { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.matches li {
  display: grid; grid-template-columns: 18px 1fr auto auto; align-items: center; gap: 8px;
  padding: 7px 0; border-bottom: 1px solid var(--line);
}
.matches li:last-child { border-bottom: 0; }
.rk { width: 18px; height: 18px; border-radius: 50%; background: var(--base); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.nm { font-weight: 600; }
.dist { color: var(--ink-3); font-size: .8rem; }
.btn-assign {
  font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 8px;
  border: var(--edge); box-shadow: 0 2px 0 0 var(--base); background: #fff;
  transition: background .3s ease, transform .15s ease, box-shadow .15s ease;
}
.matches .excluded .rk { background: transparent; }
.matches .excluded .nm { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.matches .excluded .dist { color: #B4233A; grid-column: 3 / 5; }
.hero-map.assigned .btn-assign { background: var(--green); transform: translateY(2px); box-shadow: 0 0 0 0 var(--base); }
.hero-map.assigned .wo-status { color: var(--base); background: var(--green); }

/* Hero animation: one orchestrated sequence, only when JS runs and motion is allowed */
html.js .hero-map:not(.final) .casing path,
html.js .hero-map:not(.final) .road path,
html.js .hero-map:not(.final) .route,
html.js .hero-map:not(.final) .route-base { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.js .hero-map:not(.final) .fade,
html.js .hero-map:not(.final) .drop,
html.js .hero-map:not(.final) .rank,
html.js .hero-map:not(.final) .ring,
html.js .hero-map:not(.final) .wo-card,
html.js .hero-map:not(.final) .matches li { opacity: 0; }
.drop { transform: translateY(-16px); }
.ring, .rank, .pulse { transform-box: fill-box; transform-origin: center; }
html.js .hero-map:not(.final) .ring { transform: scale(.25); }
html.js .hero-map:not(.final) .rank { transform: scale(.4); }
html.js .hero-map:not(.final) .wo-card { transform: translateY(10px); }
html.js .hero-map:not(.final) .matches li { transform: translateX(-8px); }

.hero-map.play .casing path,
.hero-map.play .road path { animation: draw 1.1s var(--ease) forwards; }
.hero-map.play .route, .hero-map.play .route-base { animation: draw .85s var(--ease) var(--d) forwards; }
.hero-map.play .fade { animation: fade .7s ease var(--d) forwards; }
.hero-map.play .drop { animation: drop .55s cubic-bezier(.2, .9, .25, 1.3) var(--d) forwards; }
.hero-map.play .ring { animation: grow .9s var(--ease) var(--d) forwards; }
.hero-map.play .rank { animation: grow .4s cubic-bezier(.2, .9, .25, 1.4) var(--d) forwards; }
.hero-map.play .pulse { animation: pulse 1.6s ease-out var(--d) 3; }
.hero-map.play .wo-card { animation: rise .6s var(--ease) 1.5s forwards; }
.hero-map.play .matches li { animation: settle .45s var(--ease) var(--d) forwards; }
.hero-map.final .drop { transform: none; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes drop { to { opacity: 1; transform: none; } }
@keyframes grow { to { opacity: 1; transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes settle { to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { opacity: .45; transform: scale(.5); } 100% { opacity: 0; transform: scale(2.6); } }

/* Features */
.features { max-width: 1400px; margin: 0 auto; padding: 8px var(--gutter) 80px; }
h2 {
  font-stretch: 118%; font-weight: 730;
  font-size: clamp(1.85rem, 3.4vw, 2.8rem); line-height: 1.04; letter-spacing: -.012em;
  margin: 0 0 32px; max-width: 24ch; text-wrap: balance;
}
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 22px 18px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  min-height: 230px; padding: 22px; overflow: hidden;
  border-radius: var(--r-md); border: var(--edge); box-shadow: var(--raise); background: var(--paper-2);
}
.tile h3 { font-stretch: 108%; font-weight: 700; font-size: 1.2rem; line-height: 1.2; margin: 0 0 .45rem; }
.tile-text p { color: var(--ink-2); font-size: .98rem; max-width: 46ch; }
.tile-records { grid-column: span 7; grid-row: span 2; background: var(--paper); }
.tile-inrecord { grid-column: span 5; grid-row: span 2; }
.tile-picks { grid-column: span 5; }
.tile-assign { grid-column: span 4; background: var(--ink); color: #fff; }
.tile-assign .tile-text p { color: rgba(255, 255, 255, .78); }
.tile-sync { grid-column: span 3; }
.tile-routes { grid-column: span 7; flex-direction: row; align-items: stretch; }
.tile-routes .tile-text { flex: 1 1 44%; display: flex; flex-direction: column; }
.tile-checkin { grid-column: span 5; flex-direction: row; align-items: center; }
.tile-checkin .tile-text { flex: 1 1 50%; }
.tile-territories { grid-column: span 5; }
.tile-mobile { grid-column: span 4; }
.tile-drive { grid-column: span 3; }

/* Early access: the brand's own green map tile */
.tile-cta {
  grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 28px;
  min-height: 0; padding: clamp(26px, 4vw, 48px); margin-top: 6px;
  background-color: var(--green); color: var(--base); box-shadow: 0 9px 0 0 var(--base);
  background-image:
    linear-gradient(rgba(2, 10, 46, .07) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(2, 10, 46, .07) 1.5px, transparent 1.5px);
  background-size: 64px 64px, 64px 64px;
}
.tile-cta h2 { margin-bottom: .6rem; }
.tile-cta p { color: rgba(2, 10, 46, .78); max-width: 48ch; }
.signup-cta button { background: var(--base); color: #fff; }
.signup-cta button:hover { background: #fff; color: var(--base); }
.signup-cta .form-msg[data-tone="ok"] { color: var(--base); }
.signup-cta .form-msg[data-tone="error"] { color: #7A0F22; }
.signup-cta.sent button { background: #fff; color: var(--base); }

/* Chips and small buttons */
.layer-chips, .terr-legend { display: flex; flex-wrap: wrap; gap: 10px; }
.layer-chips button, .terr-legend button {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 5px 12px; border-radius: 999px; border: var(--edge); box-shadow: 0 2px 0 0 var(--base); background: #fff;
  font-size: .86rem; font-weight: 650;
  transition: transform .08s ease, box-shadow .08s ease, background-color .15s ease;
}
.layer-chips button[aria-pressed="false"] {
  color: var(--ink-3); background: transparent; border-color: rgba(2, 10, 46, .35);
  transform: translateY(2px); box-shadow: 0 0 0 0 var(--base);
}
.layer-chips button[aria-pressed="false"] .chip-dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.chip-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.chip-dot.contact { background: var(--water-ink); }
.chip-dot.company { background: var(--ink); border-radius: 2px; }
.chip-dot.deal { background: var(--park-ink); transform: rotate(45deg); border-radius: 1px; width: 9px; height: 9px; }
.chip-dot.custom { background: var(--amber); }
.btn-small {
  align-self: flex-start; cursor: pointer; background: #fff;
  font-weight: 700; font-size: .9rem; padding: 7px 14px; border-radius: 10px;
}
.btn-small:hover { background: var(--green); }
.text-btn { align-self: flex-start; border: 0; background: none; padding: 0; cursor: pointer; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }

/* Tile: records map */
.tile-map { width: 100%; height: auto; margin-top: auto; border-radius: 14px; border: 1px solid var(--line); }
.tile-map .road.minor path { stroke-width: 5; }
.tile-map .casing.minor path { stroke-width: 7.5; }
.tile-map .road.major path { stroke-width: 9; }
.tile-map .casing.major path { stroke-width: 12; }
.tile-map .river { stroke-width: 20; }
.tile-map [data-type] { transition: opacity .35s ease; }
.hide-contact .tile-map [data-type="contact"],
.hide-company .tile-map [data-type="company"],
.hide-deal .tile-map [data-type="deal"],
.hide-custom .tile-map [data-type="custom"] { opacity: 0; }

/* Tile: record mock */
.record-mock { margin-top: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; font-size: .9rem; }
.rm-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rm-avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--green-soft); color: var(--green-ink); display: grid; place-items: center; font-weight: 750; font-size: .82rem; }
.rm-name { font-weight: 700; }
.rm-sub { color: var(--ink-3); font-size: .8rem; }
.rm-tabs { display: flex; gap: 16px; border-bottom: 1px solid var(--line); margin-bottom: 10px; font-size: .84rem; color: var(--ink-3); }
.rm-tabs span { padding-bottom: 7px; }
.rm-tabs .on { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2.5px 0 var(--green); }
.rm-map { width: 100%; height: auto; display: block; margin-bottom: 8px; }
.rm-map .road.minor path { stroke-width: 4; }
.rm-map .casing.minor path { stroke-width: 6; }
.near-ring { fill: rgba(0, 221, 81, .1); stroke: var(--green-ink); stroke-width: 1.2; stroke-dasharray: 3 4; }
.rm-list { list-style: none; margin: 0; padding: 0; }
.rm-list li { display: flex; align-items: center; gap: 9px; padding: 7px 2px; border-top: 1px solid var(--line); }
.rm-item { flex: 1; font-weight: 600; }
.rm-dist { color: var(--ink-3); font-size: .84rem; }

/* Tile: picks */
.picks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.picks li { display: grid; gap: 6px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.pk-name { font-weight: 700; font-size: .95rem; }
.pk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-chips span { font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); }
.pk-chips .bad { background: #FBE1E6; color: #A51E36; }
.pk-out .pk-name { color: var(--ink-3); }
.pk-out .pk-chips span:not(.bad) { background: var(--paper-3); color: var(--ink-2); }

/* Tile: assign (dark) */
.assign-demo { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); }
.ad-name { font-weight: 650; }
.tile-assign .btn-small { border-color: #fff; box-shadow: 0 3px 0 0 #000; background: transparent; color: #fff; }
.tile-assign .btn-small:hover { background: var(--green); color: var(--base); }
.tile-assign .btn-small[data-state="done"] { background: var(--green); color: var(--base); transform: translateY(3px); box-shadow: 0 0 0 0 #000; }
.ad-status { font-size: .88rem; min-height: 1.3em; }

/* Tile: sync */
.sync { margin-top: auto; display: grid; grid-template-columns: auto 44px auto; align-items: start; gap: 8px; }
.sync-box {
  display: inline-flex; justify-content: center; padding: 8px 13px; border-radius: 10px;
  background: #fff; border: var(--edge); box-shadow: var(--raise-sm); font-weight: 700; font-size: .84rem;
}
.sync-objects {
  list-style: none; margin: 10px 0 0 10px; padding: 2px 0 2px 10px;
  border-left: 1px dashed rgba(2, 10, 46, .25); display: grid; gap: 4px;
}
.sync-objects li {
  width: max-content; font-size: .72rem; font-weight: 600; color: var(--ink-3);
  background: var(--paper-3); padding: 2px 8px; border-radius: 6px;
}
.sync-arrows { width: 44px; height: 33px; margin-top: 2px; }
.sync-arrows path { fill: none; stroke: var(--green-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Tile: routes */
.route-actions { margin-top: auto; padding-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.route-result { font-weight: 650; color: var(--green-ink); font-size: .92rem; }
.route-svg { flex: 1 1 56%; min-width: 0; width: 100%; height: auto; align-self: center; border-radius: 14px; border: 1px solid var(--line); }
.path-before { fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 5 6; transition: opacity .4s ease; }
.path-after { fill: none; stroke: var(--green-2); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.tile-routes.optimized .path-before { opacity: .15; }
.tile-routes.optimized .path-after { animation: draw 1s var(--ease) forwards; }
.stop circle { fill: var(--base); stroke: var(--paper); stroke-width: 2; }
.stop.start circle { fill: var(--green-2); }
.stop text { fill: #fff; font-size: 10px; font-weight: 750; text-anchor: middle; }

/* Tile: check-in */
.phone { flex: 0 0 170px; align-self: stretch; border-radius: 26px; background: var(--base); padding: 8px; }
.ph-screen { height: 100%; min-height: 200px; border-radius: 19px; background: var(--paper-2); padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; }
.ph-title { font-weight: 700; font-size: .9rem; line-height: 1.25; }
.ph-sub { color: var(--ink-3); font-size: .8rem; margin-bottom: 6px; }
.ph-note { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); font-size: .8rem; display: grid; gap: 4px; }
.ph-time { font-weight: 700; }
.ph-synced { color: var(--green-ink); font-weight: 650; }
.tile-checkin .btn-small:disabled { background: var(--green); cursor: default; transform: translateY(3px); box-shadow: 0 0 0 0 var(--base); }

/* Tile: territories */
.terr { margin-top: auto; display: grid; gap: 12px; }
.terr svg { width: 100%; height: 132px; border-radius: 12px; border: 1px solid var(--line); }
.terr-poly { stroke: #fff; stroke-width: 2; transition: opacity .25s ease; opacity: .6; }
.t-north { fill: var(--water); }
.t-central { fill: var(--green); }
.t-south { fill: var(--amber-soft); }
.chip-dot.t-north { background: var(--water); }
.chip-dot.t-central { background: var(--green); }
.chip-dot.t-south { background: var(--amber); }
.terr-poly.lit { opacity: 1; }
.terr:has(.terr-poly.lit) .terr-poly:not(.lit) { opacity: .25; }

/* Tile: mobile + drive */
.mobile-svg, .iso-svg { width: 100%; max-width: 240px; height: auto; margin-top: auto; }
.ph-outline { fill: var(--base); }
.road-thin { stroke: #fff; stroke-width: 3; fill: none; }
.offline-chip rect { fill: var(--green-soft); stroke: var(--base); stroke-width: 1.2; }
.offline-chip text { font-size: 10.5px; font-weight: 700; fill: var(--green-ink); text-anchor: middle; }
.iso { stroke: var(--water-ink); stroke-width: 1.2; }
.iso-3 { fill: rgba(156, 203, 230, .35); }
.iso-2 { fill: rgba(156, 203, 230, .55); }
.iso-1 { fill: rgba(156, 203, 230, .85); }

/* FAQ */
.faq { max-width: 1400px; margin: 0 auto; padding: 24px var(--gutter) 88px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 56px; }
.qa { padding-top: 18px; border-top: 1.5px solid var(--base); }
.qa h3 { font-stretch: 108%; font-weight: 700; font-size: 1.14rem; line-height: 1.25; margin: 0 0 .45rem; }
.qa p { color: var(--ink-2); max-width: 62ch; }
.qa a { color: var(--ink); font-weight: 650; text-underline-offset: 3px; }

/* Footer: link columns, legal line, then a giant raised wordmark cropped by the page edge */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 48px var(--gutter) 0; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 36px 56px; }
.footer-brand p { color: var(--ink-2); max-width: 36ch; margin-top: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 28px 64px; }
.footer-nav div { display: grid; gap: 9px; align-content: start; }
.fn-head { font-weight: 700; font-size: .92rem; color: var(--ink); }
.footer-nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: var(--green-ink); }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 28px;
  margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line);
  color: var(--ink-3); font-size: .84rem;
}
.footer-legal p:last-child { max-width: 72ch; }
/* Giant wordmark: tiled green letters on a faint navy base edge, cropped by the bottom of the page. */
.footer-mark { display: block; width: 100%; height: auto; margin-top: 34px; user-select: none; }
.footer-mark text { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 820; font-size: 208px; }
.fm-base { fill: rgba(2, 10, 46, .16); }
.fm-top { fill: url(#fm-tiles); }

/* Simple pages */
.page { max-width: 68ch; margin: 0 auto; padding: 24px var(--gutter) 72px; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page p { color: var(--ink-2); margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile-records, .tile-inrecord { grid-column: span 6; grid-row: auto; }
  .tile-picks, .tile-assign, .tile-routes, .tile-checkin, .tile-territories { grid-column: span 6; }
  .tile-sync, .tile-mobile, .tile-drive { grid-column: span 3; }
}
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .wo-card { position: static; width: auto; margin: 16px 0 0; }
  .tile-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento > .tile { grid-column: 1 / -1; }
  .tile-routes, .tile-checkin { flex-direction: column; }
  .phone { flex-basis: auto; width: 190px; }
  .header-cta { padding: 8px 12px; font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
