/* Layout concept: the business owner's paperwork world. Paper documents (4px corners) sit on a cool desk-grey ground,
   software screens (12px corners) appear only inside the hero stage, carbon-blue ink is the brand and every action,
   red form print marks rules and labels, canary is the carbon copy underneath. One light look, by choice. */
@font-face { font-family: 'Archivo'; src: url('https://cdn.jsdelivr.net/npm/@fontsource-variable/archivo@5.3.0/files/archivo-latin-standard-normal.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: 'Onest'; src: url('https://cdn.jsdelivr.net/npm/@fontsource-variable/onest@5.3.1/files/onest-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Kalam'; src: url('https://cdn.jsdelivr.net/npm/@fontsource/kalam@5.3.0/files/kalam-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Red Hat Mono'; src: url('https://cdn.jsdelivr.net/npm/@fontsource-variable/red-hat-mono@5.3.0/files/red-hat-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --ground: #EDEFF2;
  --ground-2: #E1E5EA;
  --paper: #FFFFFF;
  --ink: #14171C;
  --ink-2: #3E444D;
  --ink-3: #59606A;
  --rule: #D2D7DE;
  --rule-soft: #E6E9ED;
  --carbon: #22348A;
  --carbon-deep: #172566;
  --carbon-tint: #DCE4FF;
  --print: #B3261E;
  --print-rule: #EDB5B0;
  --canary: #F2DC6B;
  --canary-ink: #3A3000;

  --ok-bg: #DDF3E6; --ok: #1F6B40;
  --warn-bg: #FFF0D1; --warn: #7A4D00;
  --bad-bg: #FCE3E0; --bad: #9E2A1B;
  --info-bg: #E3EAFD; --info: #22348A;
  --idle-bg: #E7E9EC; --idle: #40454C;

  --display: 'Archivo', 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Kalam', 'Bradley Hand', 'Segoe Print', 'Noteworthy', cursive;
  --mono: 'Red Hat Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-inout: cubic-bezier(0.77, 0, 0.175, 1);
  --paper-shadow: 0 1px 2px rgba(20, 25, 35, 0.06), 0 14px 32px rgba(20, 25, 35, 0.10);
  --gutter: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--carbon); color: #FFFFFF; }
a { color: var(--carbon); text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--carbon); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
img { max-width: 100%; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--carbon); color: #FFFFFF; padding: 10px 14px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap {
  max-width: 1344px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
@media (max-width: 760px) { :root { --gutter: 16px; } body { font-size: 16px; } }

.fine { font-size: 14px; color: var(--ink-3); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.hand { font-family: var(--hand); color: var(--carbon); }
.label { font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--print); }
.select { user-select: all; font-weight: 600; }

/* Buttons: carbon ink, pill. Press feedback, hover only on fine pointers. */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--carbon); color: #FFFFFF; text-decoration: none;
  font-family: var(--body); font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--carbon-deep); } }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 17px; gap: 12px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(237, 239, 242, 0.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ground); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 850; font-stretch: 88%; font-size: 23px; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.nav-link { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .nav-link:hover { color: var(--carbon); } }
@media (max-width: 900px) { .nav-link { display: none; } }

/* Hero */
.hero { padding-block: 28px 0; }
/* One centred column on the same axis as the work order below: headline (one phrase per line), pitch, one action.
   Phones fall back to a left-aligned stack, since centred paragraphs read poorly at that width. */
.hero-head { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.hero h1 {
  margin: 0; text-wrap: initial;
  font-family: var(--display); font-weight: 850; font-stretch: 85%;
  font-size: clamp(38px, 4.9vw, 70px); line-height: 0.98; letter-spacing: -0.03em;
}
.h1-line { display: block; }
.h1-accent { color: var(--carbon); }
.hero-row { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.hero-row p { margin: 0; font-size: 19px; color: var(--ink-2); max-width: 52ch; text-wrap: balance; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-cta .fine br { display: none; }
@media (min-width: 761px) {
  .hero .stage-bar { justify-content: center; }
  .hero .tabs { flex: 0 1 auto; }
}
@media (max-width: 760px) {
  .hero-head, .hero-row, .hero-cta { align-items: flex-start; text-align: left; }
  .hero-head { gap: 18px; }
  .hero-row { gap: 22px; }
  .hero-row p { font-size: 18px; text-wrap: pretty; }
}

/* Stage bar + tabs */
.stage-bar { margin-top: 26px; display: flex; align-items: flex-end; gap: 6px 14px; }
.stage-label { flex: 0 0 auto; font-size: 14px; font-weight: 600; color: var(--ink-3); padding-bottom: 16px; }
.tabs { flex: 1 1 auto; min-width: 0; display: flex; gap: 2px 12px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  appearance: none; border: 0; background: none; font: inherit; cursor: pointer; color: inherit;
  flex: 0 0 auto; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  min-height: 56px; padding: 6px 6px 14px; text-align: left; border-radius: 6px;
}
.tab-t { font-weight: 700; font-size: 15px; color: var(--ink-3); transition: color 200ms ease; }
.tab-s { font-size: 12.5px; color: var(--ink-3); }
.tab[aria-selected="true"] .tab-t { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .tab:hover .tab-t { color: var(--ink); } }
.tab-track { position: absolute; left: 6px; right: 6px; bottom: 4px; height: 3px; border-radius: 2px; background: transparent; overflow: hidden; }
.tab[aria-selected="true"] .tab-track { background: var(--print-rule); }
.tab-fill { display: block; height: 100%; width: 100%; background: var(--print); transform-origin: left center; transform: scaleX(0); }
.tab[aria-selected="true"] .tab-fill.run { animation: fill linear forwards; }
.stage-wrap.is-paused .tab-fill, .is-paused .tab-fill { animation-play-state: paused !important; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.static .tab[aria-selected="true"] .tab-fill { animation: none; transform: scaleX(1); }
.pause {
  flex: 0 0 auto; appearance: none; cursor: pointer; margin-bottom: 8px;
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 160ms var(--ease-out);
}
.pause:active { transform: scale(0.94); }
.pause .i-play { display: none; }
.pause[aria-pressed="true"] .i-play { display: block; }
.pause[aria-pressed="true"] .i-pause { display: none; }
@media (max-width: 760px) { .stage-label { display: none; } }

/* Stage */
.stage { position: relative; margin-top: 8px; min-height: 600px; border-radius: 16px; background: var(--ground-2); padding: 22px; overflow: hidden; }
.stage:focus { outline: none; }
.noscript { margin: 40px auto; text-align: center; color: var(--ink-2); }
@media (max-width: 760px) { .stage { padding: 12px; min-height: 0; border-radius: 12px; } }

.scene { animation: scene 600ms var(--ease-out) both; }
@keyframes scene { from { opacity: 0; transform: scale(0.975); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* Work order (paper) */
.wo { position: relative; max-width: 760px; margin: 18px auto 10px; }
.wo::before { content: ""; position: absolute; inset: 0; background: var(--canary); border-radius: 4px; transform: translate(14px, 16px) rotate(1deg); }
.wo-sheet { position: relative; background: var(--paper); border-radius: 4px; padding: 26px 32px 28px; box-shadow: var(--paper-shadow); }
.wo-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--print); }
.wo-top .label { font-size: 14px; letter-spacing: 0.16em; }
.wo-no { font-family: var(--mono); font-weight: 600; font-size: 18px; }
.wo-client { margin-top: 2px; font-size: 14px; color: var(--ink-3); }
.wo-rule { border-top: 3px double var(--print); margin: 12px 0 4px; }
.wo dl { margin: 0; display: grid; grid-template-columns: minmax(104px, 160px) minmax(0, 1fr); column-gap: 20px; }
.wo dt { padding: 16px 0 10px; border-bottom: 1px solid var(--print-rule); }
.wo dd { margin: 0; padding: 12px 0 10px; border-bottom: 1px solid var(--print-rule); min-height: 74px; }
.wo dt:last-of-type, .wo dd:last-of-type { border-bottom: 0; }
.wo-problem { display: block; font-family: var(--hand); font-size: 25px; line-height: 1.25; color: var(--carbon); }
.wo-found, .wo-built { display: block; font-size: 17px; line-height: 1.45; }
.wo-built { font-weight: 600; }
.wo-type { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--print-rule); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.box { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-3); }
.box i { width: 18px; height: 18px; border: 2px solid var(--print); border-radius: 2px; display: inline-flex; align-items: center; justify-content: center; }
.box.on { color: var(--ink); font-weight: 700; }
.write { animation: write 1000ms cubic-bezier(0.45, 0, 0.2, 1) both; }
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.type { animation: type 800ms steps(36, end) both; }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (max-width: 760px) { .wo { margin: 6px 8px 18px 0; } .wo-sheet { padding: 20px 18px 22px; } .wo dl { grid-template-columns: 1fr; } .wo dt { border-bottom: 0; padding-bottom: 0; } .wo dd { min-height: 0; } .wo-problem { font-size: 22px; } }

/* Live scene */
.live { display: flex; flex-direction: column; gap: 14px; }
.live-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; background: var(--paper); border-radius: 10px; padding: 10px 16px; font-size: 14px; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ok); }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: #2E7D4F; animation: ping 1.6s ease-out infinite; }
@keyframes ping { from { box-shadow: 0 0 0 0 rgba(46, 125, 79, 0.45); } to { box-shadow: 0 0 0 8px rgba(46, 125, 79, 0); } }
.live-no { font-family: var(--mono); color: var(--print); font-weight: 600; }
.live-agent { font-weight: 700; }
.live-client { color: var(--ink-3); }
.panels { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }

.panel { background: var(--paper); border-radius: 12px; box-shadow: 0 1px 2px rgba(20, 25, 35, 0.06), 0 12px 28px rgba(20, 25, 35, 0.08); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.pw1 { flex: 1 1 300px; } .pw2 { flex: 1.5 1 420px; } .pw3 { flex: 2 1 520px; }
.ph { display: flex; align-items: baseline; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--rule-soft); background: #F7F8F9; }
.ph b { font-size: 14px; }
.ph span { margin-left: auto; font-size: 12.5px; color: var(--ink-3); }
.scroll-x { overflow-x: auto; }

.threads { display: flex; flex-direction: column; flex: 1; min-height: 440px; }
.thread { display: flex; flex-direction: column; flex: 1 1 0; border-bottom: 1px solid var(--rule-soft); min-height: 0; overflow: hidden; }
.thread:last-child { border-bottom: 0; }
.thread-h { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: #F7F8F9; border-bottom: 1px solid #EEF0F2; }
.av { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 99px; background: var(--carbon); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.thread-n { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.thread-n b { font-size: 14px; }
.thread-n span { font-size: 12px; color: var(--ink-3); }
.bubbles { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; padding: 10px 12px; min-height: 0; overflow: hidden;
}
.bub { max-width: 88%; padding: 8px 11px; border-radius: 13px; font-size: 13.5px; line-height: 1.4; box-shadow: 0 1px 1px rgba(20, 25, 35, 0.06); }
.bub.l { align-self: flex-start; background: #F1F2F4; border-top-left-radius: 4px; }
.bub.r { align-self: flex-end; background: var(--carbon-tint); border-top-right-radius: 4px; }
.bub-ai { display: block; font-size: 10.5px; font-weight: 700; color: var(--carbon); margin-bottom: 2px; }
.bub-t { white-space: pre-line; }
.bub-time { display: block; text-align: right; font-size: 10px; color: var(--ink-3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.bub.typing { display: inline-flex; gap: 4px; align-items: center; padding: 11px 13px; }
.dot { width: 6px; height: 6px; border-radius: 99px; background: #6B7079; animation: dot 1s ease-in-out infinite; }
.dot:nth-child(2) { animation-delay: 0.15s; } .dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 80%, 100% { opacity: 0.25; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }

.pop { animation: pop 380ms var(--ease-out) both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }
.rownew { animation: rownew 1600ms ease-out both; }
@keyframes rownew { 0% { background: #FFF1C7; opacity: 0; } 12% { opacity: 1; } 100% { background: rgba(255, 241, 199, 0); } }

.chip, .cell { display: inline-flex; align-items: center; border-radius: 99px; padding: 3px 10px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.cell { display: flex; border-radius: 7px; padding: 7px 9px; min-height: 32px; white-space: normal; line-height: 1.25; }
.s-ok { background: var(--ok-bg); color: var(--ok); }
.s-warn { background: var(--warn-bg); color: var(--warn); }
.s-bad { background: var(--bad-bg); color: var(--bad); }
.s-info { background: var(--info-bg); color: var(--info); }
.s-idle { background: var(--idle-bg); color: var(--idle); }
.s-empty { background: #F4F5F6; color: transparent; }

.grid-t { width: 100%; min-width: 420px; border-collapse: separate; border-spacing: 6px; font-size: 13px; }
.grid-t thead th { text-align: left; font-size: 12px; font-weight: 700; color: var(--ink-3); padding: 0 2px 4px; }
.grid-t tbody th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--ink-2); padding-right: 4px; vertical-align: middle; width: 22%; }
.grid-t td { padding: 0; vertical-align: top; }

.board { display: flex; gap: 10px; padding: 12px; overflow-x: auto; flex: 1; }
.bcol { flex: 1 1 0; min-width: 150px; background: #F4F5F6; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.bcol-h { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.bcard { background: var(--paper); border-radius: 8px; padding: 9px 10px; box-shadow: 0 1px 2px rgba(20, 25, 35, 0.08); font-size: 13px; display: flex; flex-direction: column; gap: 5px; }
.bcard b { font-weight: 700; }
.bcard-m { display: flex; justify-content: space-between; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.bcard .chip { align-self: flex-start; }

.lanes { padding: 12px 16px 16px; }
.lanes-in { min-width: 520px; }
.hours { display: flex; padding-left: 78px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.hours span { flex: 1 1 0; }
.lanes-body { display: flex; margin-top: 6px; }
.lane-names { flex: 0 0 78px; display: flex; flex-direction: column; }
.lane-names div { height: 64px; display: flex; align-items: center; font-weight: 700; font-size: 13px; }
.track { flex: 1; position: relative; height: 192px; border-radius: 8px;
  background-image: repeating-linear-gradient(90deg, #E3E6EA 0px, #E3E6EA 1px, transparent 1px, transparent 20%),
                    repeating-linear-gradient(180deg, #F4F5F6 0px, #F4F5F6 64px, #FFFFFF 64px, #FFFFFF 128px); }
.blk { position: absolute; height: 44px; border-radius: 8px; padding: 6px 9px; font-size: 12px; font-weight: 600; line-height: 1.2; overflow: hidden;
  transition: left 700ms var(--ease-inout), top 700ms var(--ease-inout), width 700ms var(--ease-inout), background-color 300ms ease, color 300ms ease; }

.sys { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 13.5px; }
.sys thead th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding: 12px 14px 8px; border-bottom: 1px solid var(--rule-soft); }
.sys td { padding: 11px 14px; border-bottom: 1px solid #EEF0F2; }
.sys td.k-mono { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.sys td.k-name { font-weight: 600; }
.sys td.k-c { color: var(--ink-2); }

.brief { padding: 16px; display: flex; justify-content: center; background: #F7F8F9; flex: 1; }
.phone { width: 100%; max-width: 330px; background: #15171A; border-radius: 34px; padding: 10px; box-shadow: 0 16px 30px rgba(20, 25, 35, 0.25); }
.phone-in { background: #F4F5F6; border-radius: 26px; padding: 18px 14px 20px; min-height: 420px; display: flex; flex-direction: column; gap: 10px; }
.brief-from { display: flex; align-items: center; gap: 10px; }
.msg { background: var(--paper); border-radius: 14px; border-top-left-radius: 4px; padding: 12px 14px; box-shadow: 0 1px 1px rgba(20, 25, 35, 0.06); font-size: 13.5px; line-height: 1.4; }
.msg-title { font-weight: 700; font-size: 15px; margin-top: 2px; }
.metric { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid #EEF0F2; }
.metric:first-of-type { margin-top: 8px; }
.metric span:first-child { color: var(--ink-2); }
.metric span:last-child { font-family: var(--mono); font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.ask { display: flex; flex-direction: column; gap: 8px; }
.appr { align-self: flex-start; display: inline-flex; align-items: center; font-weight: 700; font-size: 12.5px; padding: 6px 12px; border-radius: 99px; background: var(--ink); color: #FFFFFF; white-space: nowrap; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.appr.pressed { transform: scale(0.94); background: var(--ok); }

.toast { position: absolute; right: 22px; bottom: 22px; left: 22px; max-width: 440px; margin-left: auto; background: var(--ink); color: #F2F3F5; border-radius: 12px; padding: 14px 16px; box-shadow: 0 16px 30px rgba(20, 25, 35, 0.3); display: flex; gap: 14px; align-items: center; animation: toast 480ms var(--ease-out) both; z-index: 3; }
@keyframes toast { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.toast-b { flex: 1; min-width: 0; }
.toast-b b { display: block; font-size: 14px; }
.toast-b span { display: block; font-size: 13px; color: #C9CDD3; margin-top: 2px; line-height: 1.4; }
.toast .appr { background: #F2F3F5; color: var(--ink); }
.toast .appr.pressed { background: #9FE0B8; color: #0E3B22; }

.stamp { position: absolute; right: 40px; top: 70px; z-index: 4; background: transparent; border: 6px double var(--print); color: var(--print); padding: 8px 18px; border-radius: 8px; text-align: center; transform: rotate(-8deg); mix-blend-mode: multiply; opacity: 0.86; animation: stamp 420ms var(--ease-out) both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-8deg) scale(1.4); } to { opacity: 0.86; transform: rotate(-8deg) scale(1); } }
.stamp b { display: block; font-family: var(--display); font-weight: 900; font-stretch: 80%; font-size: 36px; letter-spacing: 0.1em; line-height: 1; }
.stamp span { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; }
@media (max-width: 760px) { .stamp { right: 16px; top: 10px; padding: 6px 12px; } .stamp b { font-size: 26px; } .toast { left: 12px; right: 12px; bottom: 12px; } .bubbles { min-height: 0; } }

.beats { list-style: none; margin: 14px 0 0; padding: 0; display: flex; gap: 6px; counter-reset: beat; }
.beats li { counter-increment: beat; flex: 1 1 0; font-size: 13px; font-weight: 600; color: var(--ink-3); padding-top: 8px; border-top: 3px solid var(--rule); transition: color 300ms ease, border-color 300ms ease; }
.beats li::before { content: counter(beat) "  "; font-family: var(--mono); color: inherit; }
.beats li.on { color: var(--ink); border-color: var(--print); }
.beats li.done { color: var(--ink-2); border-color: var(--print-rule); }
.stage-note { margin: 10px 0 0; }
@media (max-width: 760px) { .beats li { font-size: 11.5px; } }

/* Sections */
.section { padding-block: 120px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 64px; margin-bottom: 36px; padding-top: 22px; border-top: 3px double var(--print); }
.section-head h2 { flex: 1 1 440px; min-width: 0; margin: 0; font-family: var(--display); font-weight: 850; font-stretch: 85%; font-size: clamp(36px, 4.2vw, 60px); line-height: 0.98; letter-spacing: -0.025em; }
.section-head p { flex: 1 1 360px; min-width: 0; margin: 0; max-width: 52ch; font-size: 18px; color: var(--ink-2); }
@media (max-width: 760px) { .section { padding-block: 80px 0; } }

.sheet { background: var(--paper); border-radius: 4px; box-shadow: var(--paper-shadow); }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 17px; }
.compare th, .compare td { text-align: left; padding: 18px 24px; vertical-align: top; }
.compare thead th { font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--print); padding-top: 22px; padding-bottom: 12px; border-bottom: 3px double var(--print); }
.compare tbody tr { border-top: 1px solid var(--print-rule); }
.compare tbody tr:first-child { border-top: 0; }
.compare tbody td:last-child { color: var(--carbon); }
.compare tbody th { font-weight: 700; width: 24%; }
.compare tbody td:nth-child(2) { color: var(--ink-3); width: 36%; }
.compare tbody td:last-child { font-weight: 600; }

.bill { padding: 24px 32px 26px; }
.bill table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 16px; }
.bill thead th { text-align: left; padding: 0 0 12px; border-bottom: 3px double var(--print); font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--print); }
.bill tbody tr { border-bottom: 1px solid var(--print-rule); }
.bill td, .bill tbody th { padding: 16px 16px 16px 0; text-align: left; vertical-align: top; }
.bill td.num { font-family: var(--mono); color: var(--print); width: 60px; }
.bill tbody th { font-family: var(--display); font-weight: 800; font-stretch: 90%; font-size: 19px; width: 260px; }
.bill tbody td:last-child { color: var(--ink-2); }
.bill-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; margin-top: 20px; padding-top: 16px; border-top: 3px double var(--print); }
.bill-foot .label { margin-right: 12px; }
.sig { display: flex; flex-direction: column; align-items: flex-end; }
.sig .hand { font-size: 30px; line-height: 1; }
.sig .label { margin: 4px 0 0; padding-top: 6px; border-top: 1px solid var(--print); font-size: 11px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--print); }
.steps li { padding: 22px 22px 8px; border-left: 1px solid var(--print-rule); }
.steps li:first-child { border-left: 0; padding-left: 0; }
.steps .num { font-family: var(--mono); font-size: 13px; color: var(--print); }
.steps h3 { margin: 6px 0 0; font-size: 21px; line-height: 1.2; }
.steps p { margin: 10px 0 0; font-size: 16px; color: var(--ink-2); }
@media (max-width: 760px) { .steps li { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--rule); padding-bottom: 18px; } }

.slips { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; margin-bottom: 18px; }
@media (max-width: 1180px) and (min-width: 761px) { .slips { grid-template-columns: repeat(6, minmax(0, 1fr)); } .slip { grid-column: span 2; } .slip:nth-child(4) { grid-column: 2 / span 2; } }
.slip { background: var(--paper); border-radius: 4px; box-shadow: var(--paper-shadow); padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.slip:nth-child(odd) { transform: rotate(-0.6deg); }
.slip:nth-child(even) { transform: rotate(0.5deg); }
.slip-canary { background: var(--canary); }
.slip header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--print-rule); font-size: 14px; }
.slip-canary header { border-color: rgba(143, 30, 23, 0.3); }
.slip-field { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.slip-field .label { font-size: 11px; }
.slip-canary .label { color: #8F1E17; }
.slip-who { font-weight: 600; color: var(--ink); }
.slip header .mono { flex: 0 0 auto; font-size: 12.5px; color: var(--print); }
.slip-canary header .mono { color: #8F1E17; }
.slip h3 { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 88%; font-size: 23px; line-height: 1.12; letter-spacing: -0.01em; }
.slip .hand { margin: auto 0 0; font-size: 21px; }
@media (prefers-reduced-motion: reduce) { .slip:nth-child(n) { transform: none; } }

/* Team: a roster of former employers set as type plates (official logo files can replace the names),
   then one paper record per founder. */
.alumni { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.plates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 3px double var(--print); border-bottom: 1px solid var(--print); }
.plate { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 108px; padding: 18px 20px; border-left: 1px solid var(--print-rule); }
.plate:first-child { border-left: 0; padding-left: 0; }
.plate b { font-family: var(--display); font-weight: 850; font-stretch: 82%; font-size: clamp(20px, 2vw, 29px); white-space: nowrap; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.plate small { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.plate img { display: block; height: 30px; width: auto; max-width: 100%; filter: grayscale(1); opacity: 0.86; }
@media (max-width: 1100px) { .plates { grid-template-columns: repeat(3, minmax(0, 1fr)); } .plate:nth-child(4) { border-left: 0; padding-left: 0; } .plate:nth-child(n+4) { border-top: 1px solid var(--print-rule); } }
@media (max-width: 560px) { .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plate { min-height: 84px; padding: 14px 14px; } .plate:nth-child(n) { border-left: 1px solid var(--print-rule); padding-left: 14px; } .plate:nth-child(odd) { border-left: 0; padding-left: 0; } .plate:nth-child(n+3) { border-top: 1px solid var(--print-rule); } }

.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 32px; }
.person { background: var(--paper); border-radius: 4px; box-shadow: var(--paper-shadow); padding: 28px 30px 22px; display: flex; flex-direction: column; gap: 22px; }
.person-top { display: flex; gap: 24px; align-items: flex-start; }
.portrait { flex: 0 0 148px; aspect-ratio: 4 / 5; border-radius: 4px; background: var(--ground-2); border: 1px dashed #B9C0C9; display: flex; align-items: center; justify-content: center; }
img.portrait { display: block; width: 148px; height: auto; border: 0; object-fit: cover; background: var(--ground-2); }
.portrait span { font-family: var(--mono); font-size: 13px; color: var(--ink-3); background: var(--paper); padding: 4px 10px; border-radius: 4px; }
.person-id { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.person-id h3 { margin: 0; font-family: var(--display); font-weight: 850; font-stretch: 85%; font-size: clamp(30px, 3vw, 40px); line-height: 1; letter-spacing: -0.02em; }
.person-id p { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; }
.record { width: 100%; border-collapse: collapse; font-size: 15px; border-top: 3px double var(--print); }
.record tr { border-bottom: 1px solid var(--print-rule); }
.record tr:last-child { border-bottom: 0; }
.record th, .record td { padding: 11px 0; text-align: left; vertical-align: baseline; }
.record th { width: 40%; padding-right: 16px; font-weight: 500; color: var(--ink-3); }
.record td { color: var(--ink-2); }
.record td b { font-family: var(--display); font-weight: 800; font-stretch: 90%; font-size: 18px; color: var(--ink); }
.tag { display: inline-block; vertical-align: 2px; margin-left: 4px; padding: 1px 7px; border-radius: 4px; border: 1px solid var(--print); color: var(--print); font-family: var(--mono); font-size: 11.5px; line-height: 1.5; white-space: nowrap; }
.tag-ink { border-color: var(--carbon); color: var(--carbon); }
@media (max-width: 560px) {
  .person { padding: 22px 18px 16px; }
  .person-top { gap: 16px; }
  .portrait { flex-basis: 96px; }
  .record tr { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; }
  .record th, .record td { width: auto; padding: 0; }
  .record th { font-size: 13.5px; }
}

.faq { display: flex; flex-direction: column; max-width: 860px; }
.faq details { border-bottom: 1px solid var(--print-rule); }
.faq details:first-child { border-top: 1px solid var(--print); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 0; font-weight: 700; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 12px; height: 12px; border-right: 2px solid var(--carbon); border-bottom: 2px solid var(--carbon); transform: rotate(45deg) translate(-3px, -3px); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { margin: 0 0 22px; max-width: 62ch; color: var(--ink-2); }

.closing { margin-top: 140px; background: var(--canary); color: var(--canary-ink); }
.closing-inner { padding-block: 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.closing h2 { margin: 0; font-family: var(--display); font-weight: 900; font-stretch: 82%; font-size: clamp(48px, 7vw, 108px); line-height: 0.92; letter-spacing: -0.03em; color: var(--ink); }
.closing p { margin: 0; font-size: 20px; max-width: 46ch; }
.closing-actions { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.closing-alt { font-size: 16px; }
@media (max-width: 760px) { .closing { margin-top: 96px; } .closing-inner { padding-block: 64px; } }

.site-footer { background: var(--ink); color: #C9CDD3; font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }

@media (prefers-reduced-motion: reduce) {
  .scene, .write, .type, .pop, .rownew, .toast, .stamp, .dot, .live-dot::before { animation: none !important; }
  .blk { transition: none; }
}

@media (max-width: 760px) { .threads { min-height: 340px; } }

/* Phone: comparison and bill tables become stacked rows so the answer column is never off-screen. */
@media (max-width: 760px) {
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare tbody tr { display: block; padding: 16px 18px; }
  .compare tbody th, .compare tbody td { display: block; width: auto !important; padding: 3px 0; }
  .compare tbody th { font-size: 17px; margin-bottom: 4px; }
  .compare tbody td::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
  .compare tbody td:last-child::before { color: var(--carbon); }
  .bill { padding: 18px 18px 20px; }
  .bill table { min-width: 0; }
  .bill thead { display: none; }
  .bill tbody tr { display: grid; grid-template-columns: 28px minmax(0, 1fr); padding: 14px 0; }
  .bill td, .bill tbody th { padding: 0; width: auto; }
  .bill tbody th { font-size: 18px; }
  .bill tbody td:last-child { grid-column: 2; margin-top: 4px; }
  .sig { align-items: flex-start; }
}

/* Header pill label: full on wide screens, short on phones so the sticky bar stays one row. */
.btn .short { display: none; }
@media (max-width: 760px) {
  .header-row { flex-wrap: nowrap; min-height: 64px; }
  .btn-sm .long { display: none; }
  .btn-sm .short { display: inline; }
  .btn-sm { padding: 0 16px; }
  /* All six jobs visible on phones as a 2-column grid of tabs. */
  .stage-bar { flex-wrap: wrap; align-items: center; }
  .tabs { order: 2; flex: 1 1 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; overflow: visible; }
  .tab { min-height: 52px; padding: 6px 4px 12px; }
  .pause { order: 1; margin: 0 0 0 auto; }
  .stage-label { display: block; order: 0; padding: 0; }
  .stamp { top: 64px; }
}

.bub.gone, .stamp.gone { display: none; }

/* The RUNNING stamp is inked onto the live docket strip, so it never covers the work it certifies. */
.live-strip .stamp { position: static; margin: -6px 0 -6px auto; padding: 3px 12px 4px; border-width: 4px; top: auto; right: auto; }
.live-strip .stamp b { font-size: 24px; }
.live-strip .stamp span { font-size: 9.5px; margin-top: 2px; }
section[id] { scroll-margin-top: 84px; }
@media (max-width: 760px) { .threads { min-height: 420px; } .live-strip .stamp { margin: 6px 0 2px; } section[id] { scroll-margin-top: 72px; } }

/* Work-order slips: the No. sits alone on the header line, the customer field gets a fixed two-line box,
   so every slip's rule and headline share one baseline in the five-up row. */
.slip header { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "lab no" "who who"; align-items: baseline; row-gap: 2px; }
.slip-field { display: contents; }
.slip-field .label { grid-area: lab; }
.slip header .mono { grid-area: no; }
.slip-who { grid-area: who; min-height: 2.5em; line-height: 1.25; }
.slip .hand { font-size: 19px; text-wrap: balance; }
@media (max-width: 760px) { .slip-who { min-height: 0; } .steps li { border-bottom-color: var(--print-rule); } }

/* Floating CTA: a paper slip pinned bottom-centre between the hero and the closing section. */
.dock {
  position: fixed; z-index: 25; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 22px;
  background: var(--paper); border-radius: 999px; box-shadow: 0 1px 2px rgba(20,25,35,.08), 0 18px 40px rgba(20,25,35,.18);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  transition: transform 240ms var(--ease-out), opacity 200ms ease;
}
.dock.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.dock-note { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.dock .btn { min-height: 48px; }
@media (max-width: 760px) {
  .dock { left: 16px; right: 16px; padding: 6px; transform: translateY(16px); bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
  .dock.is-on { transform: none; }
  .dock-note { display: none; }
  .dock .btn { flex: 1; justify-content: center; min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .dock, .dock.is-on { transition: opacity 160ms ease; } .dock { transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) and (max-width: 760px) { .dock { transform: none; } }

@media (max-width: 560px) { img.portrait { width: 96px; } }

/* Phone: the payout table drops the reference column so source, amount and status fit without sideways scrolling. */
@media (max-width: 560px) {
  .sys { min-width: 0; font-size: 13px; }
  .sys th:nth-child(2), .sys td:nth-child(2) { display: none; }
  .sys thead th, .sys td { padding-left: 10px; padding-right: 6px; }
  .sys td.k-c { white-space: nowrap; }
  .sys .chip { white-space: normal; line-height: 1.3; }
}

/* ---------- Phone adaptation ---------- */
/* Touch: every control has its own :active feedback, so drop the grey tap flash and the double-tap delay. */
a, button, summary, [role="tab"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.brand { min-height: 44px; }
.h1-line { text-wrap: balance; }
.tab:active .tab-t { color: var(--ink); }
.faq summary { transition: color 160ms ease; }
.faq summary:active { color: var(--carbon); }

@media (max-width: 760px) {
  .section { padding-block: 72px 0; }

  /* Jobs: one swipeable row that keeps the playing example in view. */
  .tabs { display: flex; grid-template-columns: none; gap: 0 2px; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 44px), transparent);
            mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 44px), transparent); }
  .tab { scroll-snap-align: start; padding: 6px 10px 13px; }
  .tab:first-child { padding-left: 0; }
  .tab:first-child .tab-track { left: 0; }
  .tab-t, .tab-s { white-space: nowrap; }

  /* Progress: four segments, only the current step named. */
  .beats { gap: 4px; }
  .beats li { font-size: 0; padding-top: 6px; }
  .beats li.on { flex: 2.4 1 0; font-size: 12.5px; white-space: nowrap; }

  /* Live scene: every panel fits the phone, nothing hides behind a sideways scroll. */
  .stage { min-height: 540px; }
  .panels { gap: 10px; }
  .threads, .threads:only-child { min-height: 0; }
  .thread { flex: none; }
  .bubbles { flex: none; height: 196px; }
  .board { flex-direction: column; gap: 8px; padding: 10px; overflow: visible; }
  .bcol { flex: none; min-width: 0; flex-flow: row wrap; align-items: flex-start; gap: 6px; padding: 8px; }
  .bcol-h { flex: 0 0 100%; }
  .bcard { flex: 1 1 140px; }
  .lanes { padding: 10px 10px 12px; }
  .lanes-in { min-width: 0; }
  .hours { padding-left: 52px; font-size: 10px; }
  .lane-names { flex-basis: 52px; }
  .lane-names div { font-size: 12px; }
  .blk { padding: 5px 6px; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
  .grid-t { min-width: 0; border-spacing: 4px; font-size: 12px; }
  .grid-t tbody th { width: 25%; font-size: 12px; }
  .cell { padding: 6px 7px; font-size: 12px; }
  /* Approvals drop in from the top like a phone notification, so the conversation they refer to stays readable. */
  .toast { top: 12px; bottom: auto; animation-name: toast-drop; }
  .tag { font-size: 12px; }

  /* One floating action on phones: the header pill steps aside while the bottom button is up. */
  .dock { padding: 0; background: transparent; box-shadow: none; }
  .dock .btn { box-shadow: 0 2px 4px rgba(20, 25, 35, 0.12), 0 12px 28px rgba(20, 25, 35, 0.26); }
  .site-header .btn-sm { transition: opacity 200ms ease, transform 200ms var(--ease-out), background-color 200ms ease; }
  .dock-on .site-header .btn-sm { opacity: 0; transform: scale(0.96); pointer-events: none; }
}
@keyframes toast-drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  /* Narrow lanes: a job's label wraps at its spaces inside the block instead of truncating to "Pung…". */
  .blk { white-space: normal; overflow-wrap: normal; padding: 4px; font-size: 10px; line-height: 1.15; }
}

/* ---------- Phone demo: the example told as the owner's chat with their agent ---------- */
.chat { display: flex; flex-direction: column; height: min(600px, calc(100svh - 150px)); min-height: 480px; background: var(--paper); border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(20, 25, 35, 0.06), 0 12px 28px rgba(20, 25, 35, 0.10); }
.chat-h { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: #F7F8F9; border-bottom: 1px solid var(--rule-soft); }
.chat-h .thread-n { flex: 1; }
.chat-h .thread-n b { font-size: 15px; }
.chat-h .thread-n span { font-size: 12.5px; }
.chat-h .live-dot { font-size: 13px; }
.chat-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 12px; overflow: hidden; background: #EEF0F3; }
.chat-sys { align-self: center; margin-bottom: 2px; padding: 4px 10px; border-radius: 999px; background: var(--paper); font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--print); }
.chat .bub { max-width: 88%; padding: 9px 12px; font-size: 15px; line-height: 1.42; }
.chat .bub.l { background: var(--paper); }
.chat .bub-ai { font-size: 11px; }
.mcard { display: flex; flex-direction: column; margin-top: 8px; border-top: 1px solid var(--rule-soft); }
.mrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #EEF0F2; font-size: 13.5px; }
.mrow:last-child { border-bottom: 0; padding-bottom: 0; }
.mrow-k { font-weight: 600; color: var(--ink); min-width: 0; }
.mrow-v { flex: 0 1 auto; text-align: right; color: var(--ink-2); }
.mrow-v.chip { white-space: normal; text-align: left; line-height: 1.3; padding: 3px 9px; font-size: 12.5px; }
.bub-ask { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--rule); }
.ask-t { font-size: 15px; }
.bub-ask .appr { margin-top: 6px; min-height: 36px; padding: 0 16px; font-size: 14px; background: var(--carbon); }
.bub-ask .appr.pressed { background: var(--ok); }
.chat-body .stamp { position: static; align-self: center; margin: 4px 0 2px; padding: 4px 14px 5px; border-width: 4px; }
.chat-body .stamp b { font-size: 26px; }
.chat-body .stamp span { font-size: 10px; margin-top: 2px; }

@media (max-width: 760px) {
  /* The chat is the whole story on phones; the desktop step tracker is redundant beside it. */
  .stage { min-height: 0; padding: 10px; }
  .beats { display: none; }
  .stage-note { margin-top: 12px; }
}

/* Founder records: three roles first on phones, the rest behind a toggle. */
.record-more { display: none; }
@media (max-width: 560px) {
  .person:not(.is-open) .record tbody tr:nth-child(n+4) { display: none; }
  .record-more { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; margin-top: -6px; padding: 0 2px;
    appearance: none; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--carbon); cursor: pointer;
    text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
  .record-more:active { opacity: 0.7; }
}
