/* civimax.com. One stylesheet for all three pages. No build step: this
   file is what the browser gets. */

:root {
  --paper:      #FBFAF7;
  --card:       #FFFFFF;
  --ink:        #191C1F;
  --ink-2:      #565B61;
  --ink-3:      #7C8189;
  --hair:       #E6E4DC;
  --band:       #F3F6FD;
  --band-2:     #F3F1EA;

  --blue:       #2563EB;
  --blue-hover: #1D4FC4;
  --blue-soft:  #EFF4FE;
  --ink-blue:   #1D4ED8;
  --slate:      #1F2937;
  --slate-2:    #111827;

  /* product-truth palette used inside the demo workspace */
  --ap-bg:      #F6F7F9;
  --ap-surface: #FFFFFF;
  --ap-alt:     #FAFBFC;
  --ap-border:  #E3E6EA;
  --ap-border2: #C9CED6;
  --ap-text:    #1A1D20;
  --ap-muted:   #6B7280;
  --ap-subtle:  #9CA3AF;
  --st-good:    #2E7D32;
  --st-due:     #F59E0B;
  --st-bad:     #C62828;

  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  --r: 14px; --r-sm: 10px; --r-xs: 6px;
  --max: 1120px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(37, 99, 235, 0.18); }
a { color: var(--blue); text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.dark-band a:focus-visible, footer a:focus-visible { outline-color: #FFFFFF; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--s4); }
img, svg { max-width: 100%; }

h1 { font-size: clamp(2.4rem, 5.6vw, 3.7rem); font-weight: 800; letter-spacing: -0.022em; line-height: 1.06; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.4rem); font-weight: 800; letter-spacing: -0.018em; line-height: 1.14; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
p { max-width: 64ch; }

.eyebrow {
  display: block; font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0.02em; color: var(--blue); margin-bottom: var(--s2);
}
.lede { color: var(--ink-2); }
.muted-note { font-size: 0.875rem; color: var(--ink-3); max-width: 62ch; }
.tag-sample {
  display: inline-block; font-family: var(--mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ap-subtle);
  border: 1px solid var(--ap-border); border-radius: 3px; padding: 2px 6px;
  background: #FFFFFF; white-space: nowrap;
}

/* buttons */
.btn {
  display: inline-block; font-family: var(--sans); font-size: 1rem; font-weight: 700;
  padding: 14px 26px; border-radius: var(--r-sm); border: 1px solid transparent;
  cursor: pointer; text-align: center;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease,
              border-color 150ms ease, color 150ms ease;
}
.btn--primary { background: var(--blue); color: #FFFFFF; }
.btn--primary:hover { background: var(--blue-hover); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37,99,235,0.3); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: transparent; border-color: var(--hair); color: var(--ink-2); }
.btn--ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.dark-band .btn--ghost { border-color: #3A4553; color: #C2CBD5; }
.dark-band .btn--ghost:hover { border-color: #7F8B9A; color: #FFFFFF; }

/* topbar */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 62px; display: flex; align-items: center;
  transition: background 200ms ease, box-shadow 200ms ease;
}
.topbar.scrolled { background: rgba(251,250,247,0.92); box-shadow: 0 1px 0 var(--hair); }
@supports (backdrop-filter: blur(10px)) {
  .topbar.scrolled { background: rgba(251,250,247,0.78); backdrop-filter: blur(10px); }
}
html:not(.js) .topbar { background: rgba(251,250,247,0.92); box-shadow: 0 1px 0 var(--hair); }
.topbar .wrap { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.topbar-right { display: flex; align-items: center; gap: var(--s2); }
.wordmark {
  font-weight: 800; letter-spacing: 0.06em; font-size: 1.0625rem;
  text-transform: uppercase; color: var(--ink);
}
a.wordmark:hover { color: var(--slate-2); }
.topbar-mail {
  font-size: 0.9rem; font-weight: 600; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.topbar-mail:hover { color: var(--ink); }
.topbar-mail svg { flex: none; }
.topbar-mail .lbl { display: inline; }
.topbar-link { font-size: 0.9rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.topbar-link:hover { color: var(--ink); }
.topbar .btn { padding: 9px 16px; font-size: 0.875rem; }

/* scroll reveals */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.revealed { opacity: 1; transform: none; }
.js .reveal-2 { transition-delay: 0.08s; }
.js .reveal-3 { transition-delay: 0.16s; }
.js .reveal-4 { transition-delay: 0.24s; }
section { position: relative; }
section[id] { scroll-margin-top: 70px; }

/* hero */
.hero { padding: 128px 0 var(--s5); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s6); align-items: center; }
.hero h1 { margin-bottom: var(--s3); max-width: 15ch; }
.hero-sub { font-size: 1.125rem; line-height: 1.55; color: var(--ink-2); max-width: 52ch; margin-bottom: var(--s4); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: var(--s3); }
.trust { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); display: flex; flex-wrap: wrap; }
.trust span { padding: 0 11px; border-left: 1px solid var(--hair); margin-bottom: 3px; }
.trust span:first-child { padding-left: 0; border-left: 0; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: rise 0.7s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.07s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.14s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.21s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.28s; }

/* the asset file panel */
.file-card {
  position: relative;
  background: var(--ap-surface); border: 1px solid var(--ap-border); border-radius: 8px;
  box-shadow: 0 2px 6px rgba(15,23,42,0.06), 0 22px 52px rgba(15,23,42,0.14);
  font-size: 13px; color: var(--ap-text);
  animation: rise 0.7s var(--ease) 0.3s both;
}
.file-card-body { padding: 18px; }
.file-card .tag-sample { position: absolute; top: 10px; right: 10px; }
.ap-eyebrow {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ap-muted);
}
.ap-title { font-size: 15.5px; font-weight: 600; margin: 2px 0 10px; }
.ap-tabs { display: flex; gap: 16px; border-bottom: 1px solid var(--ap-border); margin-bottom: 4px; }
.ap-tab { font-size: 12px; font-weight: 600; color: var(--ap-muted); padding: 6px 0; background: none; border: none; cursor: pointer; font-family: inherit; }
.ap-tab.on { color: var(--ap-text); box-shadow: inset 0 -2px 0 var(--blue); }
.hist-sec {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ap-muted); padding: 9px 0 2px;
}
.hist-row { border-top: 1px solid var(--ap-border); padding: 8px 2px; }
.hist-sec + .hist-row { border-top: 0; }
.hist-row .t { font-size: 13px; font-weight: 500; }
.hist-row .m { font-size: 11.5px; color: var(--ap-muted); }
.hist-row.fresh { background: var(--blue-soft); margin: 0 -8px; padding: 8px 8px; border-radius: 5px; border-top: 0; }

/* the demo */
.demo-section { padding: var(--s5) 0 var(--s6); background: var(--band); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.demo-head { max-width: 62ch; margin-bottom: var(--s3); }
.demo-head h2 { margin-bottom: var(--s2); }
.demo-wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--s3); }
.chips { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.chips .lb { font-size: 0.8125rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.chip {
  font-family: inherit; font-size: 0.8125rem; font-weight: 600; white-space: nowrap;
  background: #FFFFFF; border: 1px solid var(--ap-border2); color: var(--ink-2);
  border-radius: 999px; padding: 6px 14px; cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip.on { background: var(--slate); border-color: var(--slate); color: #FFFFFF; }
.demo-frame {
  border-radius: var(--r); border: 1px solid var(--hair);
  box-shadow: 0 2px 6px rgba(15,23,42,0.05), 0 24px 64px rgba(15,23,42,0.12);
  background: var(--ap-bg); overflow: hidden;
}
.demo-caption {
  text-align: center; font-size: 0.8125rem; color: var(--ink-2);
  margin: 14px auto 0; max-width: 70ch;
}
.demo-caption button {
  background: none; border: none; padding: 0; font: inherit;
  color: var(--blue); cursor: pointer; text-decoration: underline;
}

/* ---- app chrome ---- */
.ap-top {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--ap-surface); border-bottom: 1px solid var(--ap-border);
  padding: 10px 18px; font-size: 14px; color: var(--ap-text);
}
.ap-brand { font-size: 15px; font-weight: 600; }
.ap-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ap-crumb .c1 { color: var(--ap-muted); }
.ap-crumb .sep { color: var(--ap-subtle); }
.ap-crumb .c2 { font-weight: 600; }
.ap-user { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ap-muted); }
/* positioning context for the task card and asset panel, which live outside
   .ap-stage so they can stack under the map on a phone without being clipped */
.ap-body { display: flex; align-items: stretch; position: relative; }

.ap-rail {
  width: 226px; flex: none; background: var(--ap-surface);
  border-right: 1px solid var(--ap-border); font-size: 13px; color: var(--ap-text);
}
.ap-rail-head {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 38px; padding: 8px 12px; border-bottom: 1px solid var(--ap-border);
}
.ap-rail-head .t { font-size: 13px; font-weight: 600; }
.ap-rail-head .a { font-size: 12px; font-weight: 600; color: var(--blue); }
.ap-tree { padding: 8px; }
.ap-group {
  display: flex; align-items: center; gap: 6px; background: #EEF2F6; border-radius: 4px;
  font-weight: 700; padding: 6px 4px 6px 8px; margin-top: 4px;
}
.ap-group .n { flex: 1; }
.ap-group .ct { font-size: 11px; font-weight: 400; color: var(--ap-muted); }
.ap-kids { border-left: 2px solid var(--ap-border); margin-left: 10px; padding-left: 4px; }
.ap-layer { display: flex; align-items: center; gap: 6px; padding: 6px 4px 6px 8px; }
.ap-layer .nm { flex: 1; }
.ap-car { font-size: 10px; color: var(--ap-muted); width: 10px; flex: none; }
.ap-cb { width: 13px; height: 13px; flex: none; border: 1px solid var(--ap-border2); border-radius: 3px; position: relative; background: #FFFFFF; }
.ap-cb.on { background: var(--slate); border-color: var(--slate); }
.ap-cb.on::after {
  content: ""; position: absolute; left: 3.5px; top: 0.5px; width: 4px; height: 8px;
  border: solid #FFFFFF; border-width: 0 2px 2px 0; transform: rotate(40deg);
}
.ap-sw { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(15,23,42,0.15); flex: none; }
.ap-legend { padding-left: 27px; }
.ap-legend .lh {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ap-muted); padding: 5px 0 2px;
}
.ap-lrow { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 0; }
.ap-lrow .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ap-lrow .lb { flex: 1; }
.ap-lrow .n { font-size: 10.5px; color: var(--ap-muted); font-variant-numeric: tabular-nums; }

/* stage */
.ap-stage { position: relative; flex: 1; min-width: 0; height: 580px; background: #EDEFEA; overflow: hidden; }
.ap-stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.pin { cursor: pointer; }
.pin circle.body { stroke: #FFFFFF; stroke-width: 2; transition: fill 400ms ease; }
.pin:hover circle.body { stroke-width: 3; }
.pin:focus { outline: none; }
.pin:focus circle.body { stroke: var(--slate); stroke-width: 3; }
.pin .ring { fill: none; stroke: var(--blue); stroke-width: 2; opacity: 0; }
.pin.sel .ring { opacity: 1; }
.pin .halo { fill: none; stroke: var(--blue); stroke-width: 2; opacity: 0; }
@keyframes halo { 0% { r: 9px; opacity: 0.75; } 100% { r: 22px; opacity: 0; } }
.pin.sel .halo { animation: halo 2.2s ease-out infinite; }
@keyframes attract { 0% { r: 9px; opacity: 0.7; } 100% { r: 26px; opacity: 0; } }
.pin.attract .halo { animation: attract 1.8s ease-out infinite; stroke: var(--st-due); opacity: 1; }
.pin text { font-family: var(--sans); font-size: 11px; font-weight: 600; fill: #3F454C; paint-order: stroke; stroke: rgba(255,255,255,0.85); stroke-width: 3px; }

/* task card */
.task-card {
  position: absolute; top: 12px; left: 12px; z-index: 6; width: 226px;
  background: var(--ap-surface); border: 1px solid var(--ap-border); border-radius: 12px;
  box-shadow: 0 6px 20px rgba(20,28,46,0.14);
  font-size: 12px; color: var(--ap-text); padding: 12px 14px;
}
.task-card .t { font-size: 13px; font-weight: 700; }
.task-card .s { font-size: 11px; color: var(--ap-muted); margin: 1px 0 8px; }
.task-step { display: flex; align-items: center; gap: 8px; padding: 3px 0; color: var(--ap-muted); }
.task-step .box { width: 14px; height: 14px; flex: none; border: 1px solid var(--ap-border2); border-radius: 4px; position: relative; background: #FFFFFF; }
.task-step.done { color: var(--ap-text); }
.task-step.done .box { background: var(--st-good); border-color: var(--st-good); }
.task-step.done .box::after {
  content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px;
  border: solid #FFFFFF; border-width: 0 2px 2px 0; transform: rotate(40deg);
}
.task-prog { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--ap-border); font-size: 11px; color: var(--ap-muted); }
.task-prog b { color: var(--ap-text); }
.task-card.complete { border-color: var(--st-good); background: #F2FAF4; }
.task-card.complete .t { color: var(--st-good); }

.ap-pill {
  position: absolute; top: 12px; right: 12px; z-index: 3; display: inline-flex;
  background: #FFFFFF; border: 1px solid var(--ap-border); border-radius: 6px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 4px 16px rgba(15,23,42,0.06); overflow: hidden;
}
.ap-pill b {
  font-size: 12px; font-weight: 500; color: var(--ap-muted);
  padding: 6px 12px; border-right: 1px solid var(--ap-border); white-space: nowrap;
}
.ap-pill b:last-child { border-right: 0; }
.ap-pill b.on { background: var(--slate); color: #FFFFFF; }

/* feature panel */
.ap-feat {
  position: absolute; top: 12px; right: 12px; bottom: 12px; width: 306px; z-index: 5;
  background: var(--ap-surface); border: 1px solid var(--ap-border); border-radius: 6px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 4px 16px rgba(15,23,42,0.06);
  display: flex; flex-direction: column; overflow: hidden;
  font-size: 13px; color: var(--ap-text);
}
.ap-feat[hidden] { display: none; }
.ap-feat-body { padding: 14px 16px; overflow-y: auto; flex: 1; }
.ap-feat-x {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px;
  border: none; background: none; color: var(--ap-muted); font-size: 16px; cursor: pointer; border-radius: 6px;
}
.ap-feat-x:hover { background: var(--ap-alt); color: var(--ap-text); }
.ap-dl { display: grid; grid-template-columns: minmax(88px, 44%) 1fr; font-size: 13px; }
.ap-dl dt {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ap-muted); padding: 8px 8px 8px 0; border-top: 1px solid var(--ap-border); align-self: center;
}
.ap-dl dd { padding: 8px 0; border-top: 1px solid var(--ap-border); }
.ap-dl dt:first-of-type, .ap-dl dd:first-of-type { border-top: 0; }
.ap-dl dd .old { color: var(--ap-muted); text-decoration: line-through; text-decoration-color: var(--st-bad); text-decoration-thickness: 2px; margin-right: 6px; }
.ap-dl dd .new { color: var(--st-good); font-weight: 700; }
.ap-feat-foot {
  padding: 10px 16px; border-top: 1px solid var(--ap-border); background: var(--ap-alt);
  display: flex; gap: 8px; flex: none;
}
.ap-feat-foot .bt {
  font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 6px;
  border: 1px solid var(--ap-border2); color: var(--ap-text); background: #FFFFFF;
  cursor: pointer; font-family: inherit;
}
.ap-feat-foot .bt--dark { background: var(--slate); border-color: var(--slate); color: #FFFFFF; flex: 1; }
.ap-feat-foot .bt--dark:disabled { background: var(--ap-border2); border-color: var(--ap-border2); cursor: default; }
.ap-feat-foot .bt--dark:not(:disabled):hover { background: var(--slate-2); }
.ap-st {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  color: #2B2F3A; line-height: 1.4; background: #F7F9FC; border: 1px solid #E2E5EA;
  border-radius: 999px; padding: 3px 9px 3px 7px; white-space: nowrap;
}
.ap-st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--chip, #94A3B8); flex: none; }

/* form sheet */
.wo-modal {
  position: absolute; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,23,42,0.45);
}
.wo-modal[hidden] { display: none; }
.wo-card {
  width: 400px; max-width: calc(100% - 32px); max-height: calc(100% - 32px);
  background: var(--ap-surface); border-radius: 10px; overflow: auto;
  box-shadow: 0 10px 40px rgba(15,23,42,0.2); font-size: 13px; color: var(--ap-text);
}
.wo-card-head { padding: 14px 18px 10px; border-bottom: 1px solid var(--ap-border); }
.wo-card-head .t { font-size: 14px; font-weight: 700; }
.wo-card-head .s { font-size: 12px; color: var(--ap-muted); }
.wo-card-body { padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.frv-field .lb { font-size: 13px; font-weight: 600; margin-bottom: 4px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.frv-field .tag { font-size: 9px; font-weight: 700; letter-spacing: 0.05em; color: var(--ap-subtle); text-transform: uppercase; }
.frv-field .in {
  width: 100%; border: 1px solid var(--ap-border2); border-radius: 6px; padding: 9px 11px;
  background: #FFFFFF; font-size: 13px; font-family: inherit; color: var(--ap-text);
}
select.in { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ap-muted) 50%), linear-gradient(135deg, var(--ap-muted) 50%, transparent 50%); background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.frv-field .in:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(31,41,55,0.12); }
.frv-field .in.err { border-color: var(--st-bad); box-shadow: 0 0 0 3px rgba(198,40,40,0.12); }
.frv-field .ro { background: var(--ap-alt); color: var(--blue); font-weight: 600; }
.frv-help { font-size: 11px; color: var(--ap-muted); margin-top: 3px; }
.photo-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.photo-add {
  font-size: 12px; font-weight: 600; color: var(--ap-text);
  border: 1px solid var(--ap-border2); border-radius: 6px; padding: 8px 12px;
  background: #FFFFFF; cursor: pointer; font-family: inherit;
}
.photo-add:hover { background: var(--ap-alt); }
.photo-thumb {
  width: 52px; height: 52px; border-radius: 8px; border: 1px solid var(--ap-border);
  background: linear-gradient(135deg, #C7CFC2 0% 55%, #9FB0A2 55% 100%); position: relative;
}
.photo-thumb::after {
  content: "\2713"; position: absolute; right: 3px; bottom: 3px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--st-good); color: #FFFFFF;
  font-size: 9px; line-height: 14px; text-align: center;
}
.wo-card-bar {
  border-top: 1px solid var(--ap-border); background: var(--ap-surface);
  padding: 10px 18px; display: flex; gap: 8px; justify-content: flex-end;
  position: sticky; bottom: 0;
}
.wo-card-bar .b {
  font-size: 12px; font-weight: 600; border-radius: 6px; padding: 9px 16px;
  border: 1px solid var(--ap-border2); color: var(--ap-text); background: #FFFFFF;
  cursor: pointer; font-family: inherit;
}
.wo-card-bar .b--dark { background: var(--slate); border-color: var(--slate); color: #FFFFFF; }
.wo-card-bar .b--dark:hover { background: var(--slate-2); }

.ap-toast {
  position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 8px); z-index: 30;
  background: #2B2F3A; color: #FFFFFF; font-size: 12.5px; font-weight: 600;
  border-radius: 999px; padding: 9px 18px; max-width: calc(100% - 32px); text-align: center;
  opacity: 0; pointer-events: none; transition: opacity 250ms ease, transform 250ms ease;
}
.ap-toast.show { opacity: 1; transform: translate(-50%, 0); }
.nojs-note {
  position: absolute; inset: 0; z-index: 40; display: flex; align-items: center;
  justify-content: center; text-align: center; background: rgba(246,247,249,0.92);
  font-size: 14px; color: var(--ap-muted); padding: var(--s4);
}

/* ---- what just happened ---- */
.happened { margin-top: var(--s5); }
.happened-lead { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.015em; margin-bottom: var(--s3); }
.happened-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.hap { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); padding: var(--s3) var(--s3) var(--s4); }
.hap .no {
  width: 32px; height: 32px; border-radius: 50%; background: var(--blue-soft); color: var(--blue);
  font-weight: 800; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.hap h3 { margin-bottom: 6px; }
.hap p { font-size: 0.9375rem; color: var(--ink-2); }
.happened-claim { margin-top: var(--s4); font-weight: 700; font-size: 1.0625rem; max-width: 58ch; }

/* replaces */
.swap-section { padding: var(--s7) 0; }
.swap-section h2 { max-width: 22ch; margin-bottom: var(--s4); }
.swap-list { border-top: 1px solid var(--hair); }
.swap-row {
  display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; gap: var(--s2);
  padding: var(--s3) 0; border-bottom: 1px solid var(--hair);
}
.swap-row .from { color: var(--ink-2); }
.swap-row .swap-arrow { color: var(--blue); display: flex; justify-content: center; }
.swap-row .to { font-weight: 700; }

/* steps */
.steps-section { padding: var(--s7) 0; background: var(--band-2); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.steps-head { max-width: 62ch; margin-bottom: var(--s5); }
.steps-head h2 { margin-bottom: var(--s2); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.step h3 { margin: 10px 0 6px; }
.step p { font-size: 0.9375rem; color: var(--ink-2); }
.step-no {
  width: 34px; height: 34px; border-radius: 50%; background: var(--slate); color: #FFFFFF;
  font-weight: 800; font-size: 0.95rem; display: flex; align-items: center; justify-content: center;
}

/* records */
.rec-section { padding: var(--s7) 0; }
.rec-head { max-width: 60ch; margin-bottom: var(--s5); }
.rec-head h2 { margin-bottom: var(--s2); }
.rec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: center; }
.qa { border-left: 3px solid var(--hair); padding-left: var(--s3); margin-bottom: var(--s3); }
.qa .q { font-weight: 700; margin-bottom: 2px; }
.qa .a { font-size: 0.9375rem; color: var(--ink-2); }
.pdf {
  position: relative; width: 330px; max-width: 100%; margin: 0 auto; background: #FFFFFF;
  border: 1px solid var(--hair); border-radius: 4px;
  box-shadow: 0 2px 6px rgba(15,23,42,0.08), 0 24px 56px rgba(15,23,42,0.16);
  padding: 24px 24px 20px; font-size: 12px; color: var(--ink);
}
.pdf .brand { font-size: 10px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2); }
.pdf .ttl { font-family: var(--serif); font-size: 17px; font-weight: 700; margin: 4px 0 2px; }
.pdf .meta { font-size: 11px; color: var(--ink-2); margin-bottom: 12px; }
.pdf table { width: 100%; border-collapse: collapse; font-size: 11px; }
.pdf th { text-align: left; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); border-bottom: 1px solid var(--hair); padding: 4px 6px 4px 0; }
.pdf td { border-bottom: 1px solid #EFEDE6; padding: 5px 6px 5px 0; vertical-align: top; }
.pdf .photos { display: flex; gap: 6px; margin-top: 12px; }
.pdf .photos i { width: 42px; height: 42px; border-radius: 3px; border: 1px solid var(--hair); background: linear-gradient(135deg, #D6D3CA 0% 55%, #BBB7AA 55% 100%); }
.pdf .foot { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--hair); font-size: 9.5px; color: #9A9E93; }
.stamp {
  display: inline-block; position: relative; font-family: var(--mono); font-size: 10.5px;
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-blue);
  border: 2px solid var(--ink-blue); border-radius: 4px; padding: 6px 11px;
  background: rgba(255,255,255,0.72); transform: rotate(-5deg); opacity: 0.92; white-space: nowrap;
}
.stamp::after { content: ""; position: absolute; inset: 2px; border: 1px solid currentColor; border-radius: 2px; opacity: 0.65; pointer-events: none; }
.pdf-stamp { position: absolute; top: -14px; right: -12px; }

/* ============ FORM LOGIC DEMO (contractor page) ============ */
.fd-frame {
  border-radius: var(--r); border: 1px solid var(--hair);
  box-shadow: 0 2px 6px rgba(15,23,42,0.05), 0 24px 64px rgba(15,23,42,0.12);
  background: var(--ap-surface); overflow: hidden;
}
.fd-body { display: grid; grid-template-columns: 1fr 380px; align-items: stretch; }
.fd-left { border-right: 1px solid var(--ap-border); min-width: 0; }
.fd-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 18px; border-bottom: 1px solid var(--ap-border); background: var(--ap-alt);
  font-size: 13px; color: var(--ap-text);
}
.fd-head .t { font-weight: 700; }
.fd-head .m { font-size: 11.5px; color: var(--ap-muted); }

.fd-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--ap-border); }
.fd-status__lb { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ap-muted); }
.fd-chip {
  font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--ap-border2); background: #FFFFFF; color: var(--ap-text);
  border-radius: 999px; padding: 5px 12px 5px 9px;
  display: inline-flex; align-items: center; gap: 7px;
}
.fd-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sc, #94A3B8); flex: none; }
.fd-chip:hover { border-color: var(--ap-text); }
.fd-chip.on { background: var(--slate); border-color: var(--slate); color: #FFFFFF; }

.fd-scroll { padding: 14px 18px 18px; max-height: 560px; overflow-y: auto; }
.fd-sec { border: 1px solid var(--ap-border); border-radius: 8px; padding: 12px 14px 14px; margin-bottom: 12px; }
.fd-sec[hidden] { display: none; }
.fd-sec__h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ap-muted); margin-bottom: 10px; }
.fd-sec__n { color: var(--ap-subtle); font-weight: 600; }
.fd-f { margin-bottom: 12px; }
.fd-f:last-child { margin-bottom: 0; }
.fd-f[hidden] { display: none; }
.fd-f__lb { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 600; margin-bottom: 4px; color: var(--ap-text); }
.fd-f__lb .req { font-size: 9px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--st-bad); }
.fd-in {
  width: 100%; border: 1px solid var(--ap-border2); border-radius: 6px; padding: 8px 10px;
  background: #FFFFFF; font-size: 13px; font-family: inherit; color: var(--ap-text);
}
select.fd-in { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ap-muted) 50%), linear-gradient(135deg, var(--ap-muted) 50%, transparent 50%); background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.fd-in:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(31,41,55,0.12); }
.fd-f--req .fd-in { border-color: #E2B4B4; }
.fd-photo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fd-thumb { width: 44px; height: 44px; border-radius: 7px; border: 1px solid var(--ap-border); background: linear-gradient(135deg, #C7CFC2 0% 55%, #9FB0A2 55% 100%); }
.fd-add {
  font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  border: 1px dashed var(--ap-border2); background: #FFFFFF; color: var(--ap-text);
  border-radius: 6px; padding: 8px 12px; width: 100%;
}
.fd-add:hover { border-color: var(--ap-text); background: var(--ap-alt); }
.fd-add--sm { width: auto; border-style: solid; }
.fd-rep .fd-repitem { border: 1px solid var(--ap-border); border-radius: 7px; padding: 10px 12px; margin-bottom: 10px; background: var(--ap-alt); }
.fd-repitem__bar { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ap-muted); margin-bottom: 8px; }
.fd-x { border: none; background: none; color: var(--ap-muted); font-size: 15px; cursor: pointer; line-height: 1; padding: 0 4px; }
.fd-x:hover { color: var(--st-bad); }

/* the rules lens */
.fd-right { background: var(--ap-alt); display: flex; flex-direction: column; min-width: 0; }
.fd-right__h { padding: 10px 16px; border-bottom: 1px solid var(--ap-border); }
.fd-right__h .t { font-size: 13px; font-weight: 700; color: var(--ap-text); }
.fd-right__h .m { font-size: 11.5px; color: var(--ap-muted); }
.fd-rules { list-style: none; padding: 10px 12px; margin: 0; overflow-y: auto; flex: 1; }
.fd-rule {
  display: flex; gap: 9px; align-items: flex-start; padding: 8px 10px; border-radius: 7px;
  font-size: 12px; line-height: 1.45; color: var(--ap-muted); background: transparent;
  border: 1px solid transparent; transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.fd-rule__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ap-border2); flex: none; margin-top: 5px; transition: background 200ms ease; }
.fd-rule__k { font-weight: 700; text-transform: uppercase; font-size: 9.5px; letter-spacing: 0.06em; color: var(--ap-subtle); }
.fd-rule b { color: var(--ap-text); font-weight: 600; }
.fd-rule.on { background: #F0F7F1; border-color: #CBE3CE; color: #2F4A34; }
.fd-rule.on .fd-rule__dot { background: var(--st-good); }
.fd-rule.on .fd-rule__k { color: var(--st-good); }
@keyframes fd-flash { 0% { background: #DCEBFB; } 100% { background: inherit; } }
.fd-rule--flash { animation: fd-flash 900ms ease-out; }
.fd-right__f { border-top: 1px solid var(--ap-border); padding: 10px 16px; font-size: 12px; color: var(--ap-muted); }
.fd-right__f b { color: var(--ap-text); }

.fd-caption { text-align: center; font-size: 0.8125rem; color: var(--ink-2); margin: 14px auto 0; max-width: 72ch; }
.fd-caption button { background: none; border: none; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-decoration: underline; }

/* ============ CONTRACTOR TEASER (municipal page) ============ */
.teaser-section { padding: var(--s6) 0; background: var(--band-2); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.teaser { display: grid; grid-template-columns: 1fr auto; gap: var(--s5); align-items: center; }
.teaser h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-bottom: 10px; max-width: 22ch; }
.teaser .lede { font-size: 0.9375rem; max-width: 60ch; }
.teaser .btn { white-space: nowrap; }
/* Two audience teasers run back to back. The second sits on paper so the
   pair reads as two bands instead of one long stripe of --band-2. */
.teaser-section--plain { background: var(--paper); }

/* contractors */
.contract-section { padding: var(--s7) 0; background: var(--band-2); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.contract-head { max-width: 62ch; margin-bottom: var(--s5); }
.contract-head h2 { margin-bottom: var(--s2); max-width: 20ch; }
.contract-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--s6); align-items: center; }
.contract-grid p { color: var(--ink-2); margin-bottom: var(--s2); }
.contract-grid p.strong { color: var(--ink); font-weight: 700; font-size: 1.0625rem; }
.tag-under { text-align: center; margin-top: 12px; }
.contract-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s6); }
.cpt { border-top: 2px solid var(--hair); padding-top: var(--s2); }
.cpt h3 { margin-bottom: 6px; }
.cpt p { font-size: 0.9375rem; color: var(--ink-2); }

/* work order list (product-true chrome) */
.wo-list {
  background: var(--ap-surface); border: 1px solid var(--ap-border); border-radius: var(--r-sm);
  box-shadow: 0 2px 6px rgba(15,23,42,0.06), 0 16px 40px rgba(15,23,42,0.1);
  overflow: hidden; font-size: 13px; color: var(--ap-text);
}
.wo-list-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--ap-border);
}
.wo-list-head .t { font-size: 13px; font-weight: 700; }
.wo-list-head .b { font-size: 12px; font-weight: 600; color: #FFFFFF; background: var(--slate); border-radius: 6px; padding: 5px 12px; }
.wo-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid #EEF1F6; }
.wo-row:last-of-type { border-bottom: 0; }
.wo-row .nm { flex: 1; min-width: 0; }
.wo-row .nm .t { font-weight: 600; }
.wo-row .nm .m { font-size: 11.5px; color: var(--ap-muted); }
.wo-badge { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 2px 9px; flex: none; }
.wo-badge--open { background: #E6EFFD; color: #1B5BD0; }
.wo-badge--done { background: #E7F3EC; color: #1D7A43; }
.wo-av {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: #E6EFFD; color: #2F6FED; border: 2px solid #FFFFFF;
  font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.wo-note { padding: 10px 16px; background: var(--ap-alt); border-top: 1px solid var(--ap-border); font-size: 11.5px; color: var(--ap-muted); }

/* price */
.price-section { padding: var(--s7) 0; background: var(--slate-2); color: #C2CBD5; }
.price-section h2 { color: #FFFFFF; margin-bottom: var(--s2); }
.price-section .lede { color: #97A2AF; max-width: 62ch; margin-bottom: var(--s5); }
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.price-card { border-top: 2px solid #2C3644; padding-top: var(--s2); }
.price-card h3 { color: #FFFFFF; margin-bottom: 6px; }
.price-card p { font-size: 0.9375rem; color: #A7B2BE; }

/* checklist */
.check-section { padding: var(--s7) 0; }
.check-section h2 { margin-bottom: var(--s4); }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s5); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; color: var(--ink-2); }
.check .tick { color: var(--blue); font-weight: 800; flex: none; line-height: 1.5; }
.check b { color: var(--ink); }
/* who */
.who-section { padding: var(--s7) 0; background: var(--band); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.who-section h2 { max-width: 26ch; margin-bottom: var(--s4); }
/* The who-section is the audience router: the topbar carries one link and
   it points here, so every column with somewhere to go carries the link. */
.who-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4) var(--s5); }
.who-col h3 { margin-bottom: 6px; }
.who-col p { font-size: 0.9375rem; color: var(--ink-2); }
.who-link {
  display: inline-block; margin-top: 10px;
  font-size: 0.9375rem; font-weight: 600; color: var(--ink-blue);
}
.who-link::after { content: " \2192"; }
.who-link:hover { color: var(--blue-hover); }

/* closing */
.closing { background: var(--paper); padding: var(--s7) 0 var(--s8); text-align: center; }
.closing h2 { margin: 0 auto var(--s3); max-width: 20ch; }
.closing p { margin: 0 auto var(--s3); max-width: 56ch; color: var(--ink-2); }
.closing-kicker { font-size: 0.875rem; color: var(--ink-3); margin-top: var(--s3); }

/* footer */
footer { background: var(--slate-2); border-top: 1px solid #2A3441; padding: var(--s4) 0; }
footer .wrap { display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; }
footer .wordmark { color: #E8EDF4; }
footer .fine { font-size: 0.8125rem; color: #8D98A5; }
footer a { color: #B9C2CC; }
footer a:hover { color: #FFFFFF; }

/* responsive */
/* clear the 226px layers rail while it is on screen */
@media (min-width: 1081px) { .task-card { left: 238px; } }
@media (max-width: 1080px) {
  .ap-rail { display: none; }
  .hero-grid { gap: var(--s5); }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; }
  .rec-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .contract-grid { grid-template-columns: 1fr; gap: var(--s4); }
}
@media (max-width: 860px) {
  .happened-cols, .steps, .price-cards, .who-cols, .contract-points { grid-template-columns: 1fr; gap: var(--s3); }
  .teaser { grid-template-columns: 1fr; gap: var(--s3); justify-items: start; }
  /* the rules lens stacks under the form and stops being a sidebar */
  .fd-body { grid-template-columns: 1fr; }
  .fd-left { border-right: 0; border-bottom: 1px solid var(--ap-border); }
  .fd-scroll { max-height: none; }
  .fd-rules { max-height: 300px; }
  .check-grid { grid-template-columns: 1fr; }
  .swap-row { grid-template-columns: 1fr; gap: 6px; padding: var(--s2) 0; }
  .swap-row .swap-arrow { display: none; }
  .swap-row .from::before { content: "\2715\00a0\00a0"; color: var(--ap-subtle); font-weight: 700; }
  .swap-row .to::before { content: "\2713\00a0\00a0"; color: var(--blue); font-weight: 800; }
  .hero { padding-top: 104px; }
  .demo-section, .swap-section, .steps-section, .rec-section, .contract-section, .price-section, .check-section, .who-section { padding-top: var(--s6); padding-bottom: var(--s6); }
  .closing { padding: var(--s6) 0 var(--s7); }
}

/* --- the phone treatment for the demo: an interaction change, not just a
       media query. Map shrinks to a fixed frame, the task card docks beneath
       it, the asset panel becomes a block under the frame, and the form opens
       as a full-screen sheet. --- */
@media (max-width: 720px) {
  .wrap { padding: 0 var(--s3); }
  .demo-wrap { padding: 0 var(--s3); }
  .topbar-mail .lbl { display: none; }
  .ap-crumb { display: none; }
  .ap-pill { display: none; }
  .demo-frame { border-radius: var(--r-sm); }
  .ap-body { display: block; }
  .ap-stage { height: 260px; }
  .task-card {
    position: static; width: auto; border: 0; border-top: 1px solid var(--ap-border);
    border-radius: 0; box-shadow: none; padding: 10px 14px 12px;
  }
  .task-card .s { margin-bottom: 6px; }
  /* relative, not static, so the close button still anchors to the panel */
  .ap-feat {
    position: relative; inset: auto; width: auto; border: 0;
    border-top: 1px solid var(--ap-border);
    border-radius: 0; box-shadow: none; max-height: none;
  }
  .ap-feat-x { top: 4px; right: 6px; }
  .ap-feat-body { max-height: 340px; }
  .wo-modal { position: fixed; z-index: 200; align-items: flex-end; }
  .wo-card { width: 100%; max-width: none; max-height: 92vh; border-radius: 14px 14px 0 0; }
  .ap-toast { position: fixed; bottom: 20px; z-index: 210; }
}
/* The header runs out of room before the page does, so the cross-link and the
   sign-in button shorten rather than disappear. The topbar is the only element
   reachable at any scroll position, and on a ~12-screen page it is the only
   practical way across to the other audience. */
.lbl-sm { display: none; }
@media (max-width: 620px) {
  .lbl-lg { display: none; }
  .lbl-sm { display: inline; }
  .topbar .wrap { gap: 10px; }
  .topbar-right { gap: 10px; }
}
@media (max-width: 420px) {
  .topbar .btn { padding: 8px 12px; font-size: 0.8125rem; }
  .hero-cta .btn { width: 100%; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-copy > *, .file-card { opacity: 1; transform: none; }
  .pin.sel .halo, .pin.attract .halo { opacity: 0; }
}

/* the code office page: three loops, and the still figures beside them */

.loops { padding: clamp(56px,8vw,92px) 0; background: var(--band-2); border-top: 1px solid var(--hair); }
.loops-lede { max-width: 56ch; color: var(--ink-2); font-size: 1.1rem; margin-bottom: var(--s4); }
.loop-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s3); }
.loop-card {
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--r);
  padding: var(--s3); display: flex; flex-direction: column; gap: 8px;
}
.loop-card h3 { font-size: 1.22rem; color: var(--ink); }
.loop-card p { color: var(--ink-2); font-size: .98rem; max-width: none; }
.jump { margin-top: auto; padding-top: 10px; font-size: .92rem; font-weight: 600; }

.loop { padding: clamp(64px,9vw,108px) 0; border-top: 1px solid var(--hair); }
.loop:nth-of-type(even) { background: var(--band-2); }
.loop-head { max-width: 60ch; margin-bottom: var(--s4); }
.loop-n {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 10px;
}
.loop h2 { margin-bottom: 12px; }
.loop-what { font-size: 1.16rem; color: var(--ink-2); }

/* the chain of stages: what the loop looks like from outside the software */
.chain { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s4); }
.chain-step {
  flex: 1 1 150px; min-width: 0; position: relative;
  background: var(--card); border: 1px solid var(--hair);
  border-radius: var(--r-sm); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.chain-step b {
  font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink);
}
.chain-step span { font-size: .9rem; color: var(--ink-2); line-height: 1.4; }
.chain-step::after {
  content: ""; position: absolute; right: -8px; top: 50%;
  width: 8px; height: 1px; background: var(--ap-border2);
}
.chain-step:last-child::after { display: none; }

.loop-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px,5vw,72px); align-items: start; }
.caps { list-style: none; display: grid; gap: 14px; }
.caps li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-2); font-size: 1.02rem; }
.caps li::before {
  content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin-top: .5em;
  border-radius: 2px; background: var(--blue); transform: rotate(45deg);
}
.loop-better {
  margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--hair);
  font-size: 1.06rem; color: var(--ink); font-weight: 600; max-width: 46ch;
}

/* the still figures. Product chrome, small, never a screenshot tour. */
.bb-fig {
  background: var(--ap-surface); border: 1px solid var(--ap-border);
  border-radius: var(--r); font-size: 14px; position: relative;
  padding: 42px var(--s3) var(--s3);   /* room reserved for the sample pill */
  box-shadow: 0 1px 2px rgba(25,28,31,.04), 0 18px 40px -28px rgba(25,28,31,.3);
}
.bb-fig .tag-sample { position: absolute; top: 12px; right: 14px; }
.bb-cap { color: var(--ap-muted); font-size: 12px; margin-bottom: 12px; }

.bbr {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--ap-border);
  border-radius: var(--r-sm); background: var(--ap-surface);
  font-variant-numeric: tabular-nums;
}
.bbr + .bbr { margin-top: 10px; }
.bbr b { font-weight: 650; color: var(--ap-text); }
.bbr .sub { color: var(--ap-muted); font-size: 13px; }
.bbr .grow { margin-left: auto; text-align: right; }
.bbr--bad { border-color: #E8B4B4; background: #FDF6F6; }
.bbr--flat { background: var(--ap-alt); }

/* state reads as a word, never as a colour alone */
.bbst {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--ap-border2); color: var(--ap-muted); background: var(--ap-surface);
}
.bbst i { width: 7px; height: 7px; border-radius: 50%; background: var(--sc, var(--ap-subtle)); flex: 0 0 auto; }
.bbst--bad { color: #92312C; border-color: #E2A9A6; background: #FBEFEF; }
.bbst--due { color: #8A5A08; border-color: #E7C88A; background: #FDF6E7; }

/* the paper */
.bbp {
  background: #fff; border: 1px solid var(--hair); border-radius: var(--r-xs);
  padding: 18px 20px; font-size: 12.5px; line-height: 1.55; color: #333;
}
.bbp .lh {
  font-weight: 750; letter-spacing: .06em; text-transform: uppercase; font-size: 10px;
  color: var(--ink-3); border-bottom: 1px solid var(--hair); padding-bottom: 8px; margin-bottom: 10px;
}
.bbp .k { color: var(--ink-3); }
.bbp .box { display: inline-block; border: 1.5px solid var(--ink); border-radius: 4px; padding: 2px 8px; font-weight: 700; color: var(--ink); }

.bb-stop {
  margin-top: 14px; display: flex; align-items: center; gap: 10px;
  border: 1.5px solid #C62828; border-radius: var(--r-sm);
  background: #FBEFEF; color: #92312C; padding: 12px 14px;
  font-weight: 650; font-size: 13.5px;
}

.strip { padding: clamp(56px,8vw,86px) 0; border-top: 1px solid var(--hair); }
.strip-h { font-size: 1.06rem; font-weight: 750; color: var(--ink); margin-bottom: var(--s3); }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.cell-h { font-weight: 750; color: var(--ink); margin-bottom: 6px; }
.cell-p { color: var(--ink-2); max-width: 40ch; }

.dark-band .eyebrow { color: #7FA5F5; }

@media (max-width: 900px) {
  .loop-cards, .loop-grid, .cols2 { grid-template-columns: 1fr; }
  .loop-grid, .cols2 { gap: var(--s3); }
  .chain-step { flex: 1 1 100%; }
  .chain-step::after { display: none; }
}
.cta-addr { margin-top: 12px; font-size: .95rem; font-weight: 600; color: var(--ink-2); }
