/* ============================================================
   Red Tag Wire — design system
   Deep-neutral dark UI, hairline borders, one disciplined red
   accent (brand), gold reserved for value/launch moments.
   ============================================================ */
:root {
  /* v17 palette lift (Ryan, Dec 1): keep the black, lose the gloom.
     Base moves up into bright charcoal (#20222b–#262833 territory),
     panels/cards brighter still so layers read clearly, borders a
     notch more visible. Still a dark site — just a lit, confident
     one, with the red at full strength against it. Stair-steps:
     bg-deep < bg < panel < panel2 < panel3. */
  --bg: #24262f;
  --bg-deep: #1b1d24;
  --panel: #2e303a;
  --panel2: #383a45;
  --panel3: #464854;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .22);
  --text: #ffffff;
  /* v12 contrast pass (Ryan, Dec 1): secondary text was still reading
     as hard-to-read gray on the dark background. Everything a user
     needs to read now sits in the #e9–#f4 near-white range; only the
     inactive favorite star stays mid-gray (decorative affordance). */
  --muted: #f4f2ed;
  --faint: #e9e7e2;
  --red: #e63329;
  --red-bright: #f04438;
  --red-dark: #c2241b;
  --red-tint: rgba(230, 51, 41, .13);
  --gold: #c9a45c;
  --gold-tint: rgba(201, 164, 92, .13);
  --green: #35c37d;
  --blue: #8fcbff;
  --blue-tint: rgba(124, 196, 255, .12);
  --radius: 16px;
  --radius-sm: 12px;
  --nav-h: 64px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 30px rgba(0, 0, 0, .22);
  --shadow-pop: 0 12px 40px rgba(0, 0, 0, .5);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* v14 font pass (Ryan, Dec 1): headings get a heavier, condensed
     voice. System stack only — no webfont downloads, nothing to
     block first paint or break offline. Condensed faces ship with
     every platform (Arial Narrow / Roboto Condensed / Liberation
     Sans Narrow); where none exists the stack falls back to the
     body face and the weight + spacing below still carry the look. */
  --font-display: "Arial Narrow", "Roboto Condensed", "Liberation Sans Narrow", "Helvetica Neue Condensed", "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}
.hidden { display: none !important; }
button { font: inherit; cursor: pointer; color: inherit; }
::selection { background: rgba(230, 51, 41, .45); }
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; }

input, select, textarea {
  font: inherit; color: var(--text); background: var(--bg-deep);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230, 51, 41, .28);
}
label {
  display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--muted); margin-bottom: 14px;
}
label input, label select { margin-top: 6px; font-weight: 400; letter-spacing: 0; }
a { color: var(--gold); }

/* ---------- screens (splash / gates) ---------- */
.screen {
  min-height: 100dvh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 32px 22px; text-align: center;
}
.splash-screen {
  background:
    radial-gradient(90% 55% at 50% -5%, rgba(230, 51, 41, .14) 0%, transparent 60%),
    radial-gradient(120% 90% at 50% 0%, #1d1a1a 0%, var(--bg) 62%);
}
.splash-tag-wrap { perspective: 600px; }
.splash-tag {
  width: 148px; height: 148px; border-radius: 30px;
  transform-origin: 50% -30px;
  animation: tagswing 1.6s ease-in-out;
  box-shadow: 0 28px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06);
}
@keyframes tagswing {
  0% { transform: rotate(24deg) translateY(-16px); opacity: 0; }
  35% { transform: rotate(-13deg); opacity: 1; }
  60% { transform: rotate(7deg); }
  80% { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .splash-tag { animation: none; }
  * { transition: none !important; }
}
.splash-name { margin-top: 28px; font-size: 34px; font-weight: 800; letter-spacing: .06em; }
.splash-name span, .gate-title span, .topbar-title span { color: var(--red-bright); }
.splash-sub { margin-top: 9px; color: var(--muted); font-size: 14px; letter-spacing: .02em; }

.gate-logo { width: 104px; height: 104px; border-radius: 24px; box-shadow: var(--shadow-pop); }
.gate-title { margin-top: 20px; font-size: 28px; font-weight: 800; letter-spacing: .06em; }
.gate-text { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 430px; }
.gate-text.small { font-size: 13px; }
.screen h1:not(.gate-title) { margin-top: 18px; font-size: 24px; font-weight: 750; letter-spacing: -.01em; }

/* ---------- auth ---------- */
.auth-tabs {
  display: flex; gap: 4px; margin: 24px 0 20px; background: var(--panel);
  padding: 4px; border-radius: 999px; border: 1px solid var(--line);
}
.auth-tab { border: 0; background: transparent; color: var(--muted); padding: 8px 24px; border-radius: 999px; font-weight: 600; transition: color .15s ease, background .15s ease; }
.auth-tab.active { background: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(230, 51, 41, .35); }
.auth-form { width: 100%; max-width: 380px; text-align: left; }
.auth-note { margin-top: 16px; font-size: 12.5px; color: var(--faint); line-height: 1.55; }
.form-error {
  background: var(--red-tint); border: 1px solid rgba(230, 51, 41, .45); color: #ffb3ae;
  border-radius: var(--radius-sm); padding: 10px 13px; font-size: 13.5px; margin-bottom: 14px;
}

/* ---------- buttons / plans ---------- */
.btn {
  border: 0; border-radius: var(--radius-sm); padding: 12px 18px; font-weight: 650;
  letter-spacing: .01em; display: inline-block; text-decoration: none;
  transition: transform .1s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-red {
  background: linear-gradient(180deg, var(--red-bright), var(--red-dark)); color: #fff;
  box-shadow: 0 6px 18px rgba(230, 51, 41, .28), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-red:hover { box-shadow: 0 8px 22px rgba(230, 51, 41, .38), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-ghost {
  background: var(--panel2); border: 1px solid var(--line); color: var(--text); margin-top: 18px;
}
.btn-ghost:hover { border-color: var(--line-strong); }
.btn-block { width: 100%; }
.plans { display: grid; gap: 12px; width: 100%; max-width: 430px; margin-top: 20px; }
.plan-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-align: left; box-shadow: var(--shadow-card);
}
.plan-card h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 5px; }
.plan-card p { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.plan-actions { display: flex; flex-direction: column; gap: 8px; }
.plan-actions a { text-align: center; width: 100%; }
/* Annual = the confident choice: gold-tinted premium treatment. */
.plan-actions a:nth-child(3) {
  background: linear-gradient(180deg, #3d3421, #2f2817); color: var(--gold);
  border: 1px solid rgba(201, 164, 92, .5);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(201, 164, 92, .15);
}
.plan-actions a:nth-child(3):hover { border-color: var(--gold); }

/* ---------- app frame ---------- */
#app { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 11px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: rgba(14, 14, 17, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line);
}
.topbar-logo { width: 34px; height: 34px; border-radius: 9px; }
.topbar-title { font-weight: 800; letter-spacing: .05em; font-size: 16.5px; }
.topbar-user { margin-left: auto; font-size: 12px; color: var(--faint); text-align: right; }
.citybar { display: flex; gap: 8px; padding: 14px 16px 6px; overflow-x: auto; scrollbar-width: none; }
.citybar::-webkit-scrollbar { display: none; }
.city-chip {
  flex: 0 0 auto; border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  border-radius: 999px; padding: 8px 15px; font-weight: 600; font-size: 13.5px;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.city-chip:hover { border-color: var(--line-strong); color: var(--text); }
.city-chip.active { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(230, 51, 41, .3); }
.city-chip .n { opacity: .95; font-weight: 500; margin-left: 5px; font-size: 12px; }
main#views { flex: 1; padding: 14px 16px calc(var(--nav-h) + 30px); width: 100%; max-width: 860px; margin: 0 auto; }
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(12, 12, 15, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; align-items: stretch;
}
.navbtn {
  background: none; border: 0; color: var(--faint); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px; flex: 1; padding-top: 6px;
  transition: color .15s ease;
}
.navbtn svg {
  width: 22px; height: 22px; padding: 3px 13px; box-sizing: content-box;
  border-radius: 999px; transition: background .15s ease;
}
.navbtn span { font-size: 10.5px; font-weight: 600; letter-spacing: .02em; }
.navbtn.active { color: var(--text); }
.navbtn.active svg { background: var(--red-tint); color: var(--red-bright); }

/* ---------- wire ---------- */
.wire-tools { display: grid; gap: 9px; margin-bottom: 16px; }
.wire-row { display: flex; gap: 8px; }
.wire-row select { flex: 1; }
.seg { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: transparent; color: var(--muted); border-radius: 9px; padding: 8px 4px; font-weight: 600; font-size: 13px; transition: color .15s ease, background .15s ease; }
.seg button.active { background: var(--panel3); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.count-line { color: var(--faint); font-size: 13px; margin: 2px 0 12px; }
.lead-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px; margin-bottom: 10px; text-align: left; width: 100%; color: var(--text);
  display: block; box-shadow: var(--shadow-card);
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
@media (hover: hover) {
  .lead-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
}
.lead-card:active { background: var(--panel2); }
.lead-top { display: flex; gap: 8px; align-items: center; margin-bottom: 7px; flex-wrap: wrap; }
.stamp {
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; background: var(--panel2);
  border: 1px solid var(--line); color: var(--muted);
}
.stamp.issued, .stamp.applied { color: var(--blue); background: var(--blue-tint); border-color: transparent; }
.stamp.violation, .stamp.in_court { color: #ff9d94; background: var(--red-tint); border-color: transparent; }
.stamp.stalled { color: var(--gold); background: var(--gold-tint); border-color: transparent; }
.badge-new { background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; letter-spacing: .04em; }
.badge-urgent { color: #ff9d94; font-size: 12px; font-weight: 700; }
.lead-fav { margin-left: auto; font-size: 17px; color: var(--faint); }
.lead-fav.on { color: var(--gold); }
.lead-head { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; }
.lead-meta { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.55; }
.lead-value { color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; font-size: 14.5px; line-height: 1.65; }

/* ---------- map ---------- */
.map-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.map-wrap canvas { display: block; width: 100%; }
#map-canvas { height: 430px; }
#map-real { height: 430px; width: 100%; background: #2b2e37; z-index: 0; }
#map-real.leaflet-container { background: #2b2e37; font: inherit; }
/* OSM tiles are light; darken ONLY the tile layer so pins, markers and
   controls keep their true colors. Invert + hue-rotate restores the
   natural hue relationships (water stays blue-ish, parks stay green-ish),
   desaturation keeps it reading as a premium dark map, not a negative. */
#map-real .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) saturate(.55) brightness(.92) contrast(.95); }
#map-real .leaflet-control-attribution { background: rgba(27, 29, 36, .85); color: var(--faint); font-size: 10px; padding: 1px 6px; }
#map-real .leaflet-control-attribution a { color: #ffffff; }
.map-legend { display: flex; gap: 16px; padding: 11px 15px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.dot.permit { background: var(--blue); } .dot.violation { background: var(--red); }

/* ---------- digest / working / network / settings ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 10px; text-align: center; box-shadow: var(--shadow-card); }
.stat .big { font-size: 25px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .lbl { color: var(--faint); font-size: 11.5px; margin-top: 4px; letter-spacing: .02em; }
.section-title { font-size: 15px; font-weight: 750; letter-spacing: -.01em; margin: 22px 0 11px; }
.pipe-group { margin-bottom: 8px; }
.dir-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; margin-bottom: 10px; box-shadow: var(--shadow-card); }
.dir-card h4 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.dir-card p { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.55; }
.dir-badge {
  float: right; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; color: var(--gold);
  background: var(--gold-tint); padding: 3px 9px; border-radius: 999px; text-transform: uppercase;
}
.settings-block {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow-card);
}
.settings-block h3 { font-size: 15px; font-weight: 750; letter-spacing: -.01em; margin-bottom: 14px; }
.trade-grid { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 14px; }
.trade-pill {
  border: 1px solid var(--line); background: var(--panel2); color: var(--muted);
  border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 600;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.trade-pill:hover { border-color: var(--line-strong); }
.trade-pill.on { background: var(--red); border-color: var(--red); color: #fff; }
.saved-msg { color: var(--green); font-size: 13px; font-weight: 600; margin-top: 10px; }

/* ---------- locked city panel (free accounts) ---------- */
.locked-panel {
  position: relative; overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(230, 51, 41, .08) 0%, transparent 65%),
    var(--panel);
  border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-card);
  padding: 34px 22px 28px; text-align: center; margin-top: 6px;
}
.locked-panel .lock-icon {
  width: 62px; height: 62px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center;
  font-size: 27px; background: var(--panel2); border: 1px solid var(--line);
  border-radius: 50%; box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.locked-panel h3 { font-size: 20px; font-weight: 750; letter-spacing: -.01em; margin-bottom: 8px; }
.lock-count { color: var(--gold); font-weight: 700; font-size: 14.5px; margin-bottom: 10px; }
.lock-copy { color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 430px; margin: 0 auto 16px; }
.lock-trades { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-bottom: 20px; }
.locked-panel .plan-actions { max-width: 430px; margin: 0 auto; }
.lock-note { color: var(--faint); font-size: 12.5px; line-height: 1.55; margin-top: 14px; }

/* ---------- sheet & modal ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(4, 4, 6, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 40; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 86dvh; overflow-y: auto;
  background: var(--panel); border-radius: 24px 24px 0 0; border-top: 1px solid var(--line-strong);
  box-shadow: var(--shadow-pop);
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); max-width: 860px; margin: 0 auto;
}
.sheet::before {
  content: ""; position: sticky; top: -14px; display: block; width: 40px; height: 4px;
  margin: 0 auto 6px; border-radius: 999px; background: var(--panel3);
}
.sheet h2 { font-size: 19px; font-weight: 750; letter-spacing: -.01em; line-height: 1.35; margin: 8px 0 6px; }
.sheet .kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; font-size: 14px; margin: 16px 0; }
.sheet .kv dt { color: var(--faint); } .sheet .kv dd { font-weight: 600; }
.sheet .desc { color: var(--text); line-height: 1.65; font-size: 14.5px; }
.pipe-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 18px; }
.pipe-actions button {
  border: 1px solid var(--line); background: var(--panel2); color: var(--muted);
  border-radius: 999px; padding: 8px 15px; font-weight: 650; font-size: 13px;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.pipe-actions button:hover { border-color: var(--line-strong); color: var(--text); }
.pipe-actions button.on { background: var(--red); border-color: var(--red); color: #fff; }
.sheet-close {
  position: sticky; top: 0; float: right; background: var(--panel2); border: 1px solid var(--line);
  color: var(--text); border-radius: 50%; width: 34px; height: 34px; font-size: 16px;
}
.modal-backdrop { position: fixed; inset: 0; background: rgba(4, 4, 6, .74); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 22px; padding: 26px; max-width: 440px; width: 100%; max-height: 88dvh; overflow-y: auto; box-shadow: var(--shadow-pop); }
.modal-logo { width: 64px; height: 64px; border-radius: 15px; display: block; margin: 0 auto 14px; }
.modal h2 { text-align: center; font-size: 21px; font-weight: 750; letter-spacing: -.01em; margin-bottom: 16px; }
.welcome-list { list-style: none; display: grid; gap: 13px; margin-bottom: 22px; }
.welcome-list li { color: var(--muted); font-size: 14px; line-height: 1.6; }
.welcome-list strong { color: var(--text); }
@media (min-width: 700px) { .plans { grid-template-columns: 1fr 1fr; max-width: 720px; } }

/* Lead-sheet contact cards (contractor / property business / owner) */
.cblock { margin-top: 16px; border: 1px solid var(--line); background: var(--panel2); border-radius: 12px; padding: 12px 14px; }
.cblock-title { font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.cblock-row { display: flex; gap: 10px; font-size: 14px; padding: 3px 0; }
.cblock-row span { flex: 0 0 62px; color: var(--muted); }
.cblock-row a { color: #9fd6ff; text-decoration: none; word-break: break-all; }
.cblock-row a:hover { text-decoration: underline; }

/* Directory listings: avatar/logo, bio, contact, work photos */
.topbar-user { display: flex; align-items: center; gap: 8px; }
.topbar-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); }
.dir-head { display: flex; gap: 12px; align-items: flex-start; }
.dir-head-text { flex: 1; min-width: 0; }
.dir-head-text p { margin-top: 2px; }
.dir-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); flex: 0 0 auto; }
.dir-avatar-empty { display: flex; align-items: center; justify-content: center; background: var(--panel3); color: var(--text); font-weight: 800; font-size: 20px; }
.dir-bio { color: var(--text) !important; font-size: 13.5px !important; }
.dir-contact { margin-top: 8px; font-size: 13.5px; display: grid; gap: 2px; }
.dir-contact a { color: #9fd6ff; text-decoration: none; word-break: break-all; }
.dir-contact a:hover { text-decoration: underline; }
.dir-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.dir-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.dir-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.file-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.file-pick input[type="file"] { width: auto; flex: 1; min-width: 180px; }
.dir-badge.preferred { background: var(--gold); color: #1a1405; box-shadow: 0 0 0 1px rgba(201,164,92,.55), 0 2px 10px rgba(201,164,92,.35); }

/* ---------- sample / "see how it works" view ---------- */
.badge-sample {
  background: var(--gold); color: #1a1405; font-size: 10.5px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
}
.sample-banner {
  display: flex; gap: 12px; align-items: center; text-align: left; width: 100%;
  background: var(--panel); border: 1px solid rgba(201, 164, 92, .45); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 14px; color: var(--muted); font-size: 13.5px;
  line-height: 1.5; box-shadow: var(--shadow-card);
}
.sample-banner strong { color: var(--text); }
.sample-banner .badge-sample { flex: 0 0 auto; }
.sample-banner-arrow { margin-left: auto; color: var(--gold); font-size: 18px; font-weight: 800; }
.sample-banner-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--gold-tint); border: 1px solid rgba(201, 164, 92, .4);
  border-radius: var(--radius); padding: 13px 15px;
  font-size: 13.5px; color: var(--muted); line-height: 1.55;
}
.sample-banner-note .badge-sample { flex: 0 0 auto; margin-top: 1px; }
.sample-banner-note strong { color: var(--text); }
.sample-card .desc { font-size: 14.5px; line-height: 1.65; margin-top: 10px; }
.sample-job-photo {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: 12px; border: 1px solid var(--line); margin-top: 10px;
}
.alert-card {
  background: var(--panel2); border: 1px solid var(--line-strong); border-radius: 18px;
  padding: 14px 16px; box-shadow: var(--shadow-pop); max-width: 430px;
}
.alert-app { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--faint); text-transform: uppercase; margin-bottom: 5px; }
.alert-text { font-size: 14.5px; line-height: 1.5; }
.alert-meta { color: var(--muted); font-size: 12.5px; margin-top: 7px; }
.sample-flag-row { display: flex; gap: 9px; align-items: center; margin-bottom: 8px; }

/* ---------- public landing (signed-out layer) ---------- */
#landing {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(90% 42% at 50% 0%, rgba(230, 51, 41, .10) 0%, transparent 60%),
    var(--bg);
}
.landing-inner { max-width: 860px; margin: 0 auto; padding: 42px 18px 50px; text-align: center; }
.landing-h1 { font-size: 27px; line-height: 1.28; font-weight: 800; letter-spacing: -.01em; margin: 22px auto 12px; max-width: 660px; }
.landing-sub { color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 640px; margin: 0 auto 22px; }
.landing-counts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 4px 0 10px; }
.landing-count {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px; min-width: 104px; box-shadow: var(--shadow-card);
}
.landing-count b { display: block; font-size: 22px; color: var(--gold); font-variant-numeric: tabular-nums; }
.landing-count span { font-size: 12px; color: var(--faint); }
.landing-steps { display: grid; gap: 12px; text-align: left; }
@media (min-width: 700px) { .landing-steps { grid-template-columns: repeat(3, 1fr); } }
#landing .section-title { text-align: center; }
#landing .plans { margin-inline: auto; text-align: left; }
.landing-preferred {
  border-color: rgba(201, 164, 92, .55);
  background: linear-gradient(180deg, #38311c, var(--panel));
}
.landing-preferred-btn {
  background: linear-gradient(180deg, #dcbc7d, #b28c46); color: #1a1405; text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.landing-city-links { list-style: none; display: flex; flex-wrap: wrap; gap: 9px 20px; justify-content: center; }
.landing-city-links a { font-weight: 600; font-size: 14.5px; }
.landing-footer { margin-top: 38px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 13px; color: var(--faint); line-height: 1.6; }

/* ---------- public sample overlay (no sign-in) ---------- */
#public-sample { max-width: 860px; margin: 0 auto; padding: 16px 16px 46px; }
.public-sample-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.public-sample-bar .btn-ghost { margin-top: 0; }
.public-sample-title { font-weight: 750; font-size: 16px; }
.public-sample-cta { text-align: center; margin-top: 28px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.public-sample-cta .btn { margin-top: 12px; }

/* Profile completeness meter */
.completeness { margin: 12px 0 4px; }
.completeness-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.completeness-head span:first-child { color: var(--text); font-weight: 700; }
.completeness-track { height: 8px; border-radius: 999px; background: var(--panel3); overflow: hidden; }
.completeness-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--red), var(--gold)); transition: width .3s ease; }

/* ---------- price-rise countdown banner + landing city picker (v10) ---------- */
.price-banner {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 10px;
  background: var(--gold-tint); border: 1px solid rgba(201, 164, 92, .55); border-radius: var(--radius-sm);
  color: var(--text); font-size: 14.5px; font-weight: 600; line-height: 1.5;
  padding: 11px 16px; margin: 0 auto 18px; max-width: 640px;
}
.price-banner b { color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-banner span { color: var(--muted); font-weight: 500; font-size: 13.5px; }
.locked-panel .price-banner, .settings-block .price-banner { text-align: left; justify-content: flex-start; margin: 0 0 14px; max-width: none; }
.city-picker { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-bottom: 16px; }
.city-pick {
  background: var(--panel2); color: var(--muted); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 9px 18px; font: inherit; font-size: 14.5px; font-weight: 650; cursor: pointer;
}
.city-pick:hover { color: var(--text); border-color: var(--gold); }
.city-pick.active { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(230, 51, 41, .3); }
#landing-city-panel { max-width: 640px; margin: 0 auto; }
.landing-city-copy { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 4px auto 14px; }
.landing-city-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- v12: top nav (desktop), wire List/Map toggle, Market ---------- */
/* Plain-word top navigation — hidden on phones, where the bottom nav
   carries the same destinations with the same words. */
.topnav { display: none; }
.topnav .navbtn {
  flex-direction: row; flex: 0 0 auto; padding: 8px 15px; border-radius: 999px;
  color: var(--muted);
}
.topnav .navbtn span { font-size: 14px; font-weight: 650; letter-spacing: .01em; }
.topnav .navbtn:hover { color: var(--text); background: var(--panel2); }
.topnav .navbtn.active { color: var(--text); background: var(--red-tint); box-shadow: inset 0 0 0 1px rgba(230, 51, 41, .35); }

/* List | Map toggle at the top of The Wire (the map lives inside The
   Wire now — one destination, two ways to look at it). */
.view-seg { margin-bottom: 12px; }
@media (min-width: 700px) { .view-seg { max-width: 340px; } }

/* Market — public job requests contractors bid on. Cards reuse the
   directory card shell; the grid only kicks in on desktop (below). */
.job-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.job-actions button {
  border: 1px solid var(--line); background: var(--panel2); color: var(--text);
  border-radius: 999px; padding: 8px 15px; font-weight: 650; font-size: 13px;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.job-actions button:hover { border-color: var(--line-strong); }
.job-actions button.on { background: var(--red); border-color: var(--red); color: #fff; }
.job-actions button:disabled { opacity: .78; cursor: default; }
.job-lock-note { margin-top: 12px; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.sample-link-card {
  display: flex; gap: 12px; align-items: center; text-align: left; width: 100%;
  background: var(--panel); border: 1px solid rgba(201, 164, 92, .45); border-radius: var(--radius);
  padding: 14px 16px; margin-top: 14px; color: var(--muted); font-size: 13.5px;
  line-height: 1.5; box-shadow: var(--shadow-card);
}
.sample-link-card strong { color: var(--text); }

/* ---------- v13: budget slider + Key ----------
   Dual-thumb range: two range inputs stacked on one track. The
   track/fill are drawn by .range-pair backgrounds driven off the
   --lo/--hi custom properties app.js keeps in sync; the inputs
   themselves are transparent except for their thumbs. */
.wire-budget-row { display: flex; gap: 10px; align-items: flex-end; }
.wire-budget-row .budget-slider { flex: 1; }
.budget-slider { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 13px 11px; }
.budget-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.budget-range { color: var(--gold); font-weight: 700; }
.range-pair { position: relative; height: 28px; }
.range-pair::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px;
  transform: translateY(-50%); border-radius: 2px; background: var(--panel3);
}
.range-pair .range-fill {
  position: absolute; top: 50%; height: 4px; transform: translateY(-50%);
  border-radius: 2px; background: var(--red);
  left: var(--lo, 0%); width: calc(var(--hi, 100%) - var(--lo, 0%));
}
.range-pair input[type="range"] {
  position: absolute; inset: 0; width: 100%; margin: 0; padding: 0;
  background: transparent; border: 0; -webkit-appearance: none; appearance: none;
  pointer-events: none; height: 28px;
}
.range-pair input[type="range"]::-webkit-slider-runnable-track { background: transparent; border: 0; }
.range-pair input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto;
  width: 20px; height: 20px; border-radius: 50%; margin-top: 0;
  background: var(--text); border: 2px solid var(--red); cursor: grab;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .5);
}
.range-pair input[type="range"]::-moz-range-track { background: transparent; border: 0; }
.range-pair input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 16px; height: 16px; border-radius: 50%;
  background: var(--text); border: 2px solid var(--red); cursor: grab;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .5);
}

/* Key modal: term chip on the left, one-line plain-English gloss. */
.key-modal { text-align: left; }
.key-modal h2 { text-align: left; }
.key-group { font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 18px 0 8px; }
.key-group:first-of-type { margin-top: 2px; }
.key-row { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.key-row:last-of-type { border-bottom: 0; }
.key-row .stamp { flex: none; margin-top: 1px; }
.key-term { flex: none; font-weight: 700; color: var(--text); max-width: 42%; }

/* ---------- v12 desktop layout (≥1024px) ----------
   The app was mobile-first and collapsed to a narrow strip on a
   computer. On desktop: widen the frame, put the nav in the top bar,
   run leads / directory / market cards in two-column grids, give the
   map real height, and turn the bottom sheet into a floating panel.
   Everything here is inside the media query — mobile is untouched. */
@media (min-width: 1024px) {
  main#views { max-width: 1240px; padding: 24px 32px 48px; }
  .topbar { padding-left: max(16px, calc((100vw - 1240px) / 2 + 32px)); padding-right: max(16px, calc((100vw - 1240px) / 2 + 32px)); }
  .citybar { padding-left: max(16px, calc((100vw - 1240px) / 2 + 32px)); padding-right: max(16px, calc((100vw - 1240px) / 2 + 32px)); }
  .topnav { display: flex; gap: 4px; margin-left: 28px; }
  .bottomnav { display: none; }
  .topbar-user { font-size: 13px; }

  /* two-column card grids */
  #wire-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  #wire-list .count-line, #wire-list .empty { grid-column: 1 / -1; }
  #wire-list .lead-card { margin-bottom: 0; }
  .lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  .lead-grid .lead-card { margin-bottom: 0; }
  #dir-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  #dir-list .dir-card { margin-bottom: 0; }
  .job-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  .job-grid .dir-card { margin-bottom: 0; }

  /* stats get room to breathe */
  .stat-grid { gap: 14px; }
  .stat { padding: 22px 14px; }
  .stat .big { font-size: 32px; }
  .stat .lbl { font-size: 12.5px; }

  /* the map fills a real frame */
  #map-real, #map-canvas { height: 600px; }

  /* sheet becomes a centered floating panel */
  .sheet {
    left: 50%; right: auto; transform: translateX(-50%); bottom: 28px;
    width: min(760px, calc(100vw - 48px)); max-width: none; margin: 0;
    border: 1px solid var(--line-strong); border-radius: 24px;
    max-height: 88dvh;
  }

  /* landing + public sample widen with the app */
  .landing-inner { max-width: 1120px; }
  #public-sample { max-width: 1120px; }
  .landing-h1 { font-size: 34px; }
  #landing .plans { max-width: 980px; }
  .plans { max-width: 980px; }

  /* wire tools: search and filters share one row band */
  .wire-tools { grid-template-columns: 1fr 1fr; align-items: start; }
  .wire-tools #wire-q { grid-column: 1 / -1; }
  .wire-tools .wire-budget-row { grid-column: 1 / -1; }
}
@media (min-width: 1500px) {
  #dir-list { grid-template-columns: 1fr 1fr 1fr; }
}

/* ============================================================
   v14 — FONT PASS + sector wall + spotted rail + owner card.
   Display treatment: one grouped rule so every heading surface
   picks up the same heavier condensed voice; body text is
   untouched and stays on --font. Uppercase is applied only to
   short labels (section titles, topbar, splash) — never to
   addresses or job titles, which stay sentence case for reading.
   ============================================================ */
.splash-name, .gate-title, .screen h1, .topbar-title, .landing-h1,
.section-title, .locked-panel h3, .sheet h2, .modal h2,
.plan-card h3, .settings-block h3, .dir-card h4, .lead-head,
.stat .big, .public-sample-title {
  font-family: var(--font-display);
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: .015em;
}
.section-title { font-size: 17px; text-transform: uppercase; letter-spacing: .05em; }
.topbar-title { text-transform: uppercase; }
.splash-name, .gate-title { text-transform: uppercase; }
.lead-head { font-size: 16.5px; line-height: 1.3; }
.landing-h1 { line-height: 1.2; }
.locked-panel h3 { line-height: 1.25; }

/* Market sector unlock panel (v14): sits above the job list when
   the account doesn't hold that side's subscription for the city. */
.market-unlock { margin-bottom: 16px; }

/* Spotted rail (v14): teaser cards read as clippings, not listings —
   dashed edge, no contact affordances. */
.spotted-card { border-style: dashed; }
.spotted-card .spot-link {
  color: var(--blue); font-weight: 650; font-size: 13.5px;
  text-decoration: none; align-self: center; margin-right: auto;
}
.spotted-card .spot-link:hover { text-decoration: underline; }

/* Platform owner card (v14): pinned at the top of the directory,
   gold edge so it reads as the house card, not a contractor. */
.owner-card { border-color: var(--gold); background: linear-gradient(180deg, var(--gold-tint), transparent 55%), var(--panel); }

/* ============================================================
   v15 — MARKETING SITE (Ryan, Dec 1): the signed-out front door
   rebuilt as a premium company site. Everything is scoped to
   #landing + mkt- classes so the signed-in app is untouched.
   The app.js hooks inside the landing (counts, city panel, plan
   cards, countdown banner) keep their original classes and are
   restyled here, later in the file, so they win the cascade.
   ============================================================ */
#landing { text-align: left; background: var(--bg); }
.mkt-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
#landing section[id], #landing header[id] { scroll-margin-top: 86px; }

/* ---------- sticky site nav ---------- */
.mkt-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(30, 32, 40, .88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.mkt-nav-in { display: flex; align-items: center; gap: 26px; height: 66px; }
.mkt-brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--text); font-family: var(--font-display); font-stretch: condensed;
  font-weight: 800; font-size: 19px; letter-spacing: .05em; text-transform: uppercase;
}
.mkt-brand em { font-style: normal; color: var(--red-bright); }
.mkt-brand img { border-radius: 9px; box-shadow: 0 4px 14px rgba(0, 0, 0, .45); }
.mkt-links { display: none; gap: 24px; margin-left: 8px; }
.mkt-links a {
  color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 600;
  transition: color .15s ease;
}
.mkt-links a:hover { color: var(--text); }
.mkt-nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.mkt-nav-cta .btn { padding: 10px 18px; }
.mkt-signin { margin-top: 0; }
@media (min-width: 900px) { .mkt-links { display: flex; } }

/* ---------- shared type ---------- */
.mkt-eyebrow {
  color: var(--red-bright); font-size: 12.5px; font-weight: 750;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.mkt-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); border-radius: 2px; }
.mkt-eyebrow-gold { color: var(--gold); }
.mkt-eyebrow-gold::before { background: var(--gold); }
.mkt-h2 {
  font-family: var(--font-display); font-stretch: condensed; font-weight: 800;
  text-transform: uppercase; letter-spacing: .015em; line-height: 1.04;
  font-size: clamp(30px, 4.6vw, 50px); margin-bottom: 18px;
}
.mkt-h2 .accent { color: var(--red-bright); }
.mkt-h2 .accent-gold { color: var(--gold); }
.mkt-h2-sub { color: var(--muted); font-size: 16.5px; line-height: 1.65; max-width: 680px; }
.mkt-btn-lg { padding: 15px 26px; font-size: 16px; font-weight: 700; border-radius: 14px; }
.mkt-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.mkt-cta-row .btn-ghost { margin-top: 0; }
.mkt-fineprint { margin-top: 16px; color: var(--faint); font-size: 13.5px; letter-spacing: .01em; }
.mkt-section { padding: 84px 0; }
.mkt-band { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { .mkt-section { padding: 58px 0; } }

/* ---------- scroll reveal (JS adds .in; no JS = always visible) ---------- */
.io #landing .rv { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s ease; }
.io #landing .rv.in { opacity: 1; transform: none; }
.mkt-steps .rv:nth-child(2), .mkt-guards .rv:nth-child(2), .mkt-plans .rv:nth-child(2) { transition-delay: .08s; }
.mkt-steps .rv:nth-child(3), .mkt-guards .rv:nth-child(3), .mkt-plans .rv:nth-child(3) { transition-delay: .16s; }
.mkt-guards .rv:nth-child(4) { transition-delay: .24s; }

/* ---------- hero ---------- */
.mkt-hero {
  position: relative; overflow: hidden; padding: 64px 0 58px;
  background:
    radial-gradient(75% 52% at 72% -10%, rgba(230, 51, 41, .17) 0%, transparent 60%),
    radial-gradient(55% 40% at 8% 0%, rgba(201, 164, 92, .07) 0%, transparent 55%),
    var(--bg);
}
.mkt-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .032) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(85% 62% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(85% 62% at 50% 0%, #000 30%, transparent 78%);
}
.mkt-hero-grid { position: relative; display: grid; gap: 44px; align-items: center; }
@media (min-width: 980px) { .mkt-hero-grid { grid-template-columns: 1.08fr .92fr; gap: 56px; } .mkt-hero { padding: 84px 0 68px; } }
.mkt-h1 {
  font-family: var(--font-display); font-stretch: condensed; font-weight: 800;
  text-transform: uppercase; letter-spacing: .012em; line-height: .99;
  font-size: clamp(42px, 6.4vw, 76px); margin-bottom: 22px;
}
.mkt-h1 .accent { color: var(--red-bright); }
.mkt-sub { color: var(--muted); font-size: 17.5px; line-height: 1.65; max-width: 580px; }

/* hero wire cards — the product, shown not described */
.mkt-hero-visual { position: relative; }
.wire-stack { position: relative; max-width: 460px; margin: 10px auto 0; padding-top: 30px; }
.wire-card {
  background: linear-gradient(180deg, #3b3d47, var(--panel));
  border: 1px solid var(--line-strong); border-radius: 18px;
  padding: 18px 20px; box-shadow: var(--shadow-pop); text-align: left;
}
.wire-card-back {
  position: absolute; top: 0; right: -4px; width: 86%;
  transform: rotate(4.5deg); opacity: .9; filter: saturate(.9);
}
.wire-card-front { position: relative; transform: rotate(-1.2deg); }
.wire-card-top { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; flex-wrap: wrap; }
.wire-kind { color: var(--faint); font-size: 12.5px; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; }
.wire-title { font-weight: 750; font-size: 17.5px; line-height: 1.35; letter-spacing: -.01em; }
.wire-meta { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.wire-value { color: var(--gold); font-weight: 800; font-size: 19px; margin-top: 12px; font-variant-numeric: tabular-nums; }
.wire-value span { color: var(--faint); font-size: 12.5px; font-weight: 600; }
.wire-foot {
  display: flex; justify-content: space-between; gap: 10px; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px; font-weight: 600;
}
.wire-lock { color: var(--gold); white-space: nowrap; }
.wire-caption { text-align: center; color: var(--faint); font-size: 12.5px; margin-top: 16px; }

/* hero stats + countdown (classes shared with app.js output) */
#landing .landing-counts { justify-content: flex-start; gap: 12px; margin-top: 46px; }
#landing .landing-count {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; min-width: 128px;
}
#landing .landing-count b {
  font-family: var(--font-display); font-stretch: condensed; font-weight: 800;
  font-size: 31px; line-height: 1.05; color: var(--text); font-variant-numeric: tabular-nums;
}
#landing .landing-count span { font-size: 12.5px; color: var(--muted); }
#landing .count-line { color: var(--faint); font-size: 13px; margin: 2px 0 20px; }
#landing .price-banner { max-width: 900px; margin: 0 auto 6px; justify-content: center; }
#pricing .price-banner { margin: 26px 0 8px; }

/* ---------- how it works ---------- */
.mkt-steps { display: grid; gap: 14px; margin-top: 38px; }
@media (min-width: 820px) { .mkt-steps { grid-template-columns: repeat(3, 1fr); } }
.mkt-step {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px;
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, border-color .18s ease;
}
.mkt-step:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.mkt-step-num {
  font-family: var(--font-display); font-stretch: condensed; font-weight: 800;
  font-size: 34px; color: var(--red-bright); line-height: 1; margin-bottom: 14px;
}
.mkt-step h3 { font-size: 18px; font-weight: 750; letter-spacing: -.01em; margin-bottom: 8px; }
.mkt-step p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ---------- the two sides ---------- */
.mkt-side { border: 1px solid var(--line-strong); border-radius: 26px; padding: clamp(26px, 4.5vw, 52px); box-shadow: var(--shadow-card); }
.mkt-side-commercial { background: linear-gradient(180deg, rgba(230, 51, 41, .06), transparent 340px), var(--panel); border-top: 3px solid var(--red); }
.mkt-side-home { background: linear-gradient(180deg, rgba(201, 164, 92, .06), transparent 340px), var(--panel); border-top: 3px solid var(--gold); }
.mkt-feats { display: grid; gap: 14px 26px; margin-top: 30px; }
@media (min-width: 760px) { .mkt-feats { grid-template-columns: 1fr 1fr; } }
.mkt-feat { display: flex; gap: 11px; align-items: flex-start; }
.mkt-feat p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.mkt-feat p b { color: var(--text); }
.mkt-check {
  flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: var(--red-tint); color: var(--red-bright);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 800;
}
.mkt-stamps {
  display: grid; gap: 10px; margin-top: 32px; padding-top: 26px;
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) { .mkt-stamps { grid-template-columns: 1fr 1fr; } }
.mkt-stamp-row { display: flex; gap: 12px; align-items: flex-start; }
.mkt-stamp-row .stamp { flex: none; margin-top: 2px; }
.mkt-stamp-row p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* home side: sample job + two mini panels */
.mkt-home-grid { display: grid; gap: 16px; margin-top: 32px; align-items: stretch; }
@media (min-width: 920px) { .mkt-home-grid { grid-template-columns: 1.15fr .85fr; } }
.mkt-job {
  background: var(--bg-deep); border: 1px solid var(--line-strong); border-radius: 20px;
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-card);
}
.mkt-job img { width: 100%; height: 190px; object-fit: cover; display: block; }
@media (min-width: 920px) { .mkt-job img { height: 210px; } }
.mkt-job-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.mkt-job-desc { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-top: 8px; }
.mkt-job-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.mkt-job-meta b { color: var(--gold); }
.mkt-job .wire-foot { margin-top: auto; padding-top: 14px; }
.mkt-sample-flag {
  background: var(--gold); color: #1a1405; font-size: 11px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 3.5px 10px;
}
.mkt-home-panels { display: grid; gap: 16px; }
.mkt-mini-panel { background: var(--bg-deep); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.mkt-mini-panel h3 { font-size: 17px; font-weight: 750; margin-bottom: 12px; }
.mkt-mini-panel ul { list-style: none; margin-bottom: 18px; }
.mkt-mini-panel li { color: var(--muted); font-size: 14.5px; line-height: 1.55; padding-left: 20px; position: relative; margin-bottom: 8px; }
.mkt-mini-panel li::before { content: "—"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.mkt-mini-panel .btn-ghost { margin-top: 0; text-align: center; }

/* ---------- anti-Angi guardrails ---------- */
.mkt-guards { display: grid; gap: 14px; margin-top: 38px; }
@media (min-width: 640px) { .mkt-guards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .mkt-guards { grid-template-columns: repeat(4, 1fr); } }
.mkt-guard {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line); border-radius: 20px; padding: 24px 22px;
  transition: transform .18s ease, border-color .18s ease;
}
.mkt-guard:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.mkt-guard-mark { color: var(--red-bright); font-size: 21px; font-weight: 800; line-height: 1; margin-bottom: 13px; }
.mkt-guard h3 { font-size: 16.5px; font-weight: 750; margin-bottom: 7px; }
.mkt-guard p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- pricing ---------- */
.mkt-price-label {
  font-family: var(--font-display); font-stretch: condensed; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; font-size: 19px;
  margin: 38px 0 16px; display: flex; align-items: center; gap: 12px;
}
.mkt-price-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.mkt-price-label-gold { color: var(--gold); }
.mkt-plans { display: grid; gap: 14px; }
@media (min-width: 820px) { .mkt-plans { grid-template-columns: repeat(3, 1fr); } }
#landing .plan-card { padding: 26px 24px; border-radius: 20px; position: relative; }
#landing .plan-card h3 { font-size: 27px; margin-bottom: 8px; }
#landing .plan-card h3 .mkt-per { font-family: var(--font); font-size: 14.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
#landing .plan-card p { font-size: 14.5px; line-height: 1.6; }
.mkt-plan-name { color: var(--faint) !important; font-size: 12.5px !important; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px !important; }
.mkt-plan-pop { border-color: rgba(230, 51, 41, .55) !important; background: linear-gradient(180deg, rgba(230, 51, 41, .07), transparent 55%), var(--panel) !important; }
.mkt-plan-pop-gold { border-color: rgba(201, 164, 92, .55) !important; background: linear-gradient(180deg, rgba(201, 164, 92, .07), transparent 55%), var(--panel) !important; }
.mkt-pop-badge {
  position: absolute; top: -11px; right: 18px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  border-radius: 999px; padding: 4px 11px; box-shadow: 0 4px 12px rgba(230, 51, 41, .35);
}
.mkt-plan-pop-gold .mkt-pop-badge { background: var(--gold); color: #1a1405; box-shadow: 0 4px 12px rgba(201, 164, 92, .3); }
.mkt-price-note { color: var(--muted); font-size: 14px; line-height: 1.65; max-width: 820px; margin-top: 20px; }
.mkt-price-note b { color: var(--text); }
.mkt-preferred { margin-top: 30px; max-width: none; }

/* ---------- cities (picker + panel are app.js-driven) ---------- */
#cities .city-picker { justify-content: flex-start; margin: 6px 0 22px; }
#cities .city-pick { padding: 11px 22px; font-size: 15.5px; }
#landing-city-panel { max-width: 860px; margin: 0; }
#landing-city-panel .landing-counts { justify-content: flex-start; margin-top: 0; }
#landing-city-panel .landing-city-copy { color: var(--muted); font-size: 15.5px; line-height: 1.65; max-width: 640px; margin: 6px 0 16px; }
#landing-city-panel .landing-city-actions { justify-content: flex-start; }
#landing-city-panel .btn-ghost { margin-top: 0; }

/* ---------- network / sample profile ---------- */
.mkt-profile {
  display: grid; gap: 22px; margin-top: 34px;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line-strong); border-radius: 22px; padding: clamp(22px, 3.5vw, 34px);
  box-shadow: var(--shadow-card);
}
@media (min-width: 920px) { .mkt-profile { grid-template-columns: auto 1fr 240px; align-items: start; } }
.mkt-profile-avatar { width: 84px; height: 84px; border-radius: 20px; border: 1px solid var(--line-strong); object-fit: cover; }
.mkt-profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.mkt-profile-head h3 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.mkt-profile-meta { color: var(--gold); font-size: 13.5px; font-weight: 650; margin-top: 3px; }
.mkt-profile-bio { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin-top: 10px; max-width: 560px; }
.mkt-profile-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 16px; max-width: 560px; }
.mkt-profile-photos img { width: 100%; height: 74px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); display: block; }
.mkt-profile-cta p { color: var(--faint); font-size: 13px; line-height: 1.55; margin-top: 12px; }

/* ---------- FAQ ---------- */
.mkt-faq-wrap { max-width: 860px; }
.mkt-faq { margin-top: 34px; }
.mkt-faq-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  margin-bottom: 11px; overflow: hidden;
}
.mkt-faq-item summary {
  cursor: pointer; list-style: none; padding: 19px 52px 19px 22px; position: relative;
  font-size: 16px; font-weight: 700; letter-spacing: -.01em;
}
.mkt-faq-item summary::-webkit-details-marker { display: none; }
.mkt-faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  color: var(--red-bright); font-size: 22px; font-weight: 700; line-height: 1;
  transition: transform .2s ease;
}
.mkt-faq-item[open ] summary::after { transform: translateY(-50%) rotate(45deg); }
.mkt-faq-item p { color: var(--muted); font-size: 15px; line-height: 1.65; padding: 0 22px 20px; max-width: 700px; }

/* ---------- final CTA + footer ---------- */
.mkt-final {
  padding: 88px 0; text-align: center;
  background:
    radial-gradient(70% 90% at 50% 110%, rgba(230, 51, 41, .15) 0%, transparent 62%),
    var(--bg);
  border-top: 1px solid var(--line);
}
.mkt-final .mkt-h2-sub { text-align: center; }
.mkt-footer { border-top: 1px solid var(--line); background: var(--bg-deep); padding: 54px 0 0; }
.mkt-footer-grid { display: grid; gap: 34px; }
@media (min-width: 860px) { .mkt-footer-grid { grid-template-columns: 1.4fr .6fr .6fr 1fr; } }
.mkt-footer h4 {
  font-size: 12.5px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 15px;
}
.mkt-footer nav { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.mkt-footer nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 550; }
.mkt-footer nav a:hover { color: var(--text); }
.mkt-footer-blurb { color: var(--muted); font-size: 14px; line-height: 1.65; margin-top: 14px; max-width: 340px; }
.mkt-footer-mail { color: var(--gold); font-weight: 650; font-size: 15px; text-decoration: none; }
.mkt-footer-mail:hover { text-decoration: underline; }
.mkt-textbtn { background: none; border: 0; padding: 0; color: var(--gold); font-weight: 650; font-size: inherit; text-decoration: underline; }
.mkt-footer-base {
  display: flex; flex-wrap: wrap; gap: 6px 26px; justify-content: space-between;
  border-top: 1px solid var(--line); margin-top: 42px; padding-top: 20px; padding-bottom: 24px;
  color: var(--faint); font-size: 13px;
}

/* ============================================================
   v17 — LAYOUT PASS (Ryan, Dec 1): the landing read as a skinny
   column with dead margins on a desktop monitor. This block
   widens the measure, scales type and cards up, stretches the
   stat strip full width, and turns the two sides into full-bleed
   tinted bands. Scoped to the landing (.mkt-* / #landing) — the
   signed-in app frame is untouched except #public-sample, the
   signed-out sample view. Placed last so it wins the cascade
   over the v15 rules above.
   ============================================================ */

/* --- the measure: wide wrap, fluid gutters at every width --- */
.mkt-wrap { max-width: 1560px; padding: 0 clamp(20px, 4vw, 64px); }
@media (min-width: 1900px) { .mkt-wrap { max-width: 1760px; } }
.mkt-faq-wrap { max-width: 1240px; }

/* --- nav --- */
.mkt-nav-in { height: 76px; }
@media (min-width: 1024px) {
  .mkt-nav-in { height: 82px; }
  .mkt-brand { font-size: 21px; }
  .mkt-links { gap: 30px; }
  .mkt-links a { font-size: 15.5px; }
}

/* --- type scale: big, clear, visible --- */
.mkt-h2 { font-size: clamp(32px, 4.4vw, 64px); }
.mkt-h2-sub { font-size: 18.5px; font-weight: 500; max-width: 800px; }
.mkt-eyebrow { font-size: 13.5px; }
.mkt-btn-lg { padding: 17px 32px; font-size: 17px; }

/* --- section rhythm --- */
.mkt-section { padding: clamp(88px, 10vw, 148px) 0; }
@media (max-width: 700px) { .mkt-section { padding: 58px 0; } }

/* --- hero --- */
.mkt-hero { padding: clamp(74px, 9vw, 134px) 0 clamp(66px, 7vw, 106px); }
.mkt-h1 { font-size: clamp(44px, 6.2vw, 100px); }
.mkt-sub { font-size: 19.5px; font-weight: 500; max-width: 660px; }
.wire-stack { max-width: 600px; }
.wire-card { padding: 24px 26px; border-radius: 20px; }
.wire-title { font-size: 20px; }
.wire-meta { font-size: 14.5px; }
.wire-value { font-size: 25px; }
.wire-foot { font-size: 14px; }

/* hero stats: a full-width strip, not a row that ends early */
#landing .landing-counts.mkt-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 760px) { #landing .landing-counts.mkt-stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { #landing .landing-counts.mkt-stats { grid-template-columns: repeat(6, 1fr); } }
#landing .landing-count { padding: 22px 24px; min-width: 0; border-radius: 18px; }
#landing .landing-count b { font-size: clamp(36px, 3.2vw, 54px); }
#landing .landing-count span { font-size: 13.5px; }
#landing .price-banner { max-width: none; font-size: 15px; }

/* --- steps & guardrails: roomier cards --- */
.mkt-steps, .mkt-guards { gap: 18px; margin-top: 48px; }
.mkt-step { padding: 36px 32px; border-radius: 22px; }
.mkt-step-num { font-size: 46px; }
.mkt-step h3 { font-size: 20.5px; }
.mkt-step p { font-size: 15.5px; }
.mkt-guard { padding: 32px 28px; border-radius: 22px; }
.mkt-guard h3 { font-size: 18px; }
.mkt-guard p { font-size: 14.5px; }

/* --- the two sides become full-bleed tinted bands --- */
#commercial {
  background:
    radial-gradient(90% 75% at 88% 0%, rgba(230, 51, 41, .14), transparent 55%),
    linear-gradient(180deg, rgba(230, 51, 41, .06), rgba(230, 51, 41, .015) 55%, rgba(230, 51, 41, 0)),
    var(--bg-deep);
}
#home {
  background:
    radial-gradient(90% 75% at 10% 0%, rgba(201, 164, 92, .12), transparent 55%),
    linear-gradient(180deg, rgba(201, 164, 92, .055), rgba(201, 164, 92, .012) 55%, rgba(201, 164, 92, 0)),
    var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mkt-side { padding: clamp(34px, 4.6vw, 76px); border-radius: 30px; }
.mkt-feats { gap: 18px 34px; margin-top: 38px; }
.mkt-feat p { font-size: 16px; }
.mkt-stamps { margin-top: 40px; padding-top: 32px; gap: 14px; }
.mkt-stamp-row p { font-size: 14.5px; }

/* --- home side media --- */
.mkt-job img { height: 240px; }
@media (min-width: 920px) { .mkt-job img { height: 280px; } }
.mkt-job-body { padding: 26px 28px 28px; }
.mkt-job-desc { font-size: 15.5px; }
.mkt-mini-panel { padding: 30px; }
.mkt-mini-panel h3 { font-size: 18.5px; }
.mkt-mini-panel li { font-size: 15.5px; }

/* --- pricing --- */
.mkt-price-label { font-size: 22px; margin: 52px 0 20px; }
.mkt-plans { gap: 18px; }
#landing .plan-card { padding: 36px 32px; border-radius: 22px; }
#landing .plan-card h3 { font-size: 36px; }
#landing .plan-card p { font-size: 15.5px; }
.mkt-price-note { font-size: 15px; max-width: 1020px; }

/* --- cities --- */
#landing-city-panel { max-width: 1180px; }
#landing-city-panel .landing-city-copy { font-size: 17px; max-width: 760px; }
#cities .city-pick { padding: 13px 26px; font-size: 16.5px; }

/* --- network profile --- */
.mkt-profile { padding: clamp(30px, 4vw, 52px); gap: 30px; border-radius: 26px; margin-top: 44px; }
@media (min-width: 920px) { .mkt-profile { grid-template-columns: auto 1fr 300px; } }
.mkt-profile-avatar { width: 108px; height: 108px; border-radius: 24px; }
.mkt-profile-head h3 { font-size: 25px; }
.mkt-profile-bio { font-size: 15.5px; max-width: 720px; }
.mkt-profile-photos { max-width: 720px; gap: 12px; }
.mkt-profile-photos img { height: 104px; border-radius: 14px; }

/* --- FAQ: two columns on wide screens --- */
.mkt-faq { margin-top: 44px; }
@media (min-width: 1100px) {
  .mkt-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
  .mkt-faq-item { margin-bottom: 0; }
}
.mkt-faq-item summary { font-size: 17px; padding: 22px 56px 22px 26px; }
.mkt-faq-item p { font-size: 15.5px; max-width: none; padding: 0 26px 24px; }

/* --- final CTA + footer --- */
.mkt-final { padding: clamp(96px, 11vw, 150px) 0; }
.mkt-footer { padding-top: 68px; }
.mkt-footer-blurb { max-width: 430px; font-size: 14.5px; }

/* --- signed-out sample view widens with the front door --- */
@media (min-width: 1024px) { #public-sample { max-width: 1320px; } }
