/*
 * The use-case pages (sales pipeline, support desk): what they add to site.css. Same colours, corners and drawn
 * boards as the home page; each page lays its pieces out its own way, so the two don't read as one template.
 */

/* ── The opening: what it is in a few large words, the one thing to do, and a piece that plays ── */
.pitch {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: end;
  padding-top: clamp(48px, 6vw, 104px);
}
.pitch .label {
  margin: 0 0 20px;
}
.big {
  font-size: clamp(38px, 5.6vw, 80px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
}
.big .soft,
h2 .soft {
  display: block;
  color: color-mix(in oklab, var(--foreground) 34%, transparent);
}
.pitch .sub {
  margin-top: 24px;
  max-width: 620px;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--muted-foreground);
}
.window-body.teal {
  background: linear-gradient(135deg, oklch(0.6 0.12 200), oklch(0.56 0.16 262));
}
.window-body.violet {
  background: linear-gradient(135deg, oklch(0.56 0.2 295), oklch(0.6 0.2 350));
}
.window-body.amber {
  background: linear-gradient(135deg, oklch(0.72 0.15 70), oklch(0.64 0.19 35));
}
.window-body.slate {
  background: linear-gradient(135deg, oklch(0.5 0.05 255), oklch(0.4 0.07 275));
}
.window-body.rose {
  background: linear-gradient(135deg, oklch(0.64 0.19 15), oklch(0.58 0.2 320));
}

/* Sales: three numbers beside the headline that follow the board under them. */
.tally {
  display: grid;
  gap: 0;
}
.tally > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.tally > div:last-child {
  border-bottom: 1px solid var(--border);
}
.tally small {
  font-size: 14px;
  color: var(--muted-foreground);
}
.tally b {
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tally b.up {
  animation: tick 0.9s ease-out;
}
@keyframes tick {
  from {
    color: var(--status-done);
  }
}
.pipeline {
  margin-top: clamp(40px, 5vw, 72px);
}
.pipeline .window-body {
  min-height: 400px;
  padding: 18px;
}
.pipeline .kb {
  gap: 12px;
}

/* ── A card and what's on it: the words on one side, each lighting its part of the card on the other ── */
.anatomy {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 104px);
  align-items: center;
}
.anatomy.flip > :first-child {
  order: 2;
}
.notes {
  display: grid;
  gap: 4px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: note;
}
.notes li {
  position: relative;
  padding: 12px 14px 12px 52px;
  border-radius: 14px;
  color: var(--muted-foreground);
  line-height: 1.45;
  cursor: default;
  transition:
    background 0.25s,
    color 0.25s;
  counter-increment: note;
}
.notes li::before {
  content: counter(note);
  position: absolute;
  top: 12px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lane);
  color: var(--muted-foreground);
  font-size: 12.5px;
  font-weight: 600;
  transition:
    background 0.25s,
    color 0.25s;
}
.notes b {
  display: block;
  color: var(--foreground);
  font-weight: 600;
}
.notes li.on {
  background: var(--card);
  box-shadow: var(--shadow);
}
.notes li.on::before {
  background: var(--primary);
  color: var(--primary-foreground);
}
.anatomy .stage {
  padding: clamp(20px, 3.4vw, 48px);
  border-radius: 28px;
}
.deal .cv-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* the card's own fields: a box for each, as the app shows them */
.boxes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.box-f {
  min-width: 0;
  padding: 8px 10px 9px;
  border-radius: 10px;
  background: var(--lane);
  font-size: 13.5px;
  font-weight: 500;
}
.box-f small {
  display: block;
  margin-bottom: 2px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted-foreground);
}
.box-f > span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.box-f .avatar {
  margin: 0;
}
.linkchip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  font-size: 12.5px;
  line-height: 20px;
}
.linkchip .icon {
  color: var(--primary);
}
/* a part of the card that a note is about: it lights when its note does */
[data-part] {
  border-radius: 12px;
  outline: 2px solid transparent;
  outline-offset: 5px;
  transition:
    outline-color 0.25s,
    background 0.25s;
}
[data-part].on {
  outline-color: var(--primary);
  background: color-mix(in oklab, var(--primary) 5%, transparent);
}
.box-f[data-part] {
  outline-offset: 2px;
}
.box-f[data-part].on {
  background: color-mix(in oklab, var(--primary) 9%, var(--lane));
}

/* ── One board, many jobs: a word in the headline changes, and the board under it with it ── */
.swap {
  display: inline-block;
  color: var(--primary);
  transition:
    opacity 0.25s,
    translate 0.25s;
}
.swap.out {
  opacity: 0;
  translate: 0 0.25em;
}
.shape-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.shape-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.shape-tabs button:not([aria-selected='true']):hover {
  color: var(--foreground);
}
.shape-tabs [aria-selected='true'] {
  border-color: var(--foreground);
  background: var(--foreground);
  color: var(--background);
}
.shapes .stage {
  margin-top: 20px;
  padding: clamp(16px, 3vw, 40px);
  border-radius: 28px;
  transition: background 0.5s;
}
.shapes .window-body {
  min-height: 300px;
  transition: background 0.5s;
}
.shape-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 20px;
  font-size: 15px;
}
.shape-line span {
  color: var(--muted-foreground);
}
.shape-line .fchip {
  background: var(--card);
  font-size: 12.5px;
  line-height: 24px;
  padding: 0 9px;
  box-shadow: var(--shadow);
}

/* ── From one board to the next: a card crosses over, and keeps what it holds ── */
.handoff {
  display: grid;
  grid-template-columns: minmax(0, 4fr) 96px minmax(0, 7fr);
  align-items: center;
  margin-top: 44px;
  padding: clamp(16px, 3vw, 40px);
  border-radius: 28px;
}
.handoff .window-body {
  min-height: 300px;
}
.bridge {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: color-mix(in oklab, var(--foreground) 70%, transparent);
}
.bridge .go {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--shadow-lift);
  color: var(--primary);
  font-size: 20px;
}
.bridge.on .go {
  animation: nudge 0.7s ease-in-out;
}
@keyframes nudge {
  50% {
    translate: 8px 0;
  }
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 4px 28px 4px 0;
  color: var(--muted-foreground);
  font-size: 15.5px;
}
.facts li + li {
  padding-left: 28px;
  border-left: 1px solid var(--border);
}
.facts b {
  display: block;
  margin-bottom: 4px;
  color: var(--foreground);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* ── Small pieces in tiles ── */
.mini {
  width: 100%;
  padding: 14px;
  border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 18px 40px -18px oklch(0.3 0.1 268 / 0.4);
  font-size: 13px;
}
/* a table of deals, with a total */
.table-f {
  display: grid;
  gap: 1px;
}
.table-f .tr {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 96px 86px 68px;
  gap: 10px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 6px;
  transition:
    opacity 0.3s,
    background 0.3s;
}
.table-f .tr.th {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted-foreground);
}
.table-f .tr > :nth-child(3),
.table-f .tr > :nth-child(4) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.table-f .tr > :first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.table-f .tr.off {
  opacity: 0.25;
}
.table-f .tr.sum {
  margin-top: 4px;
  border-radius: 8px;
  background: var(--lane);
  font-weight: 650;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.filters button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}
.filters [aria-pressed='true'] {
  border-color: var(--primary);
  background: var(--accent);
  color: var(--primary);
}
.linked {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.linked li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.linked li > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-weight: 500;
}
.mini-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 650;
}
.mini-title .icon {
  color: var(--primary);
}
.mini-sub {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted-foreground);
}
.mini-sub b {
  color: var(--foreground);
}
/* a message in a chat app, from a webhook */
.chatmsg {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
}
.chatmsg img {
  width: 34px;
  height: 34px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 9px;
}
.chatmsg b {
  font-weight: 650;
}
.chatmsg small {
  margin-left: 6px;
  font-size: 11.5px;
  color: var(--muted-foreground);
}
.chatmsg p {
  margin-top: 2px;
  line-height: 1.45;
}
.chatmsg .quote {
  margin-top: 8px;
  padding: 6px 10px;
  border-left: 3px solid var(--status-done);
  border-radius: 0 6px 6px 0;
  background: var(--lane);
}
.chatmsg .quote.hot {
  border-left-color: var(--c-red);
}
.faces {
  display: flex;
  align-items: center;
}
.faces .avatar {
  width: 30px;
  height: 30px;
  margin: 0 0 0 -8px;
  border: 2px solid var(--card);
  font-size: 11px;
}
.faces .avatar:first-child {
  margin-left: 0;
}
.who-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
.who-row + .who-row {
  border-top: 1px solid var(--border);
}
.who-row small {
  font-size: 12px;
  color: var(--muted-foreground);
}
.who-row .avatar {
  width: 30px;
  height: 30px;
  margin: 0;
  font-size: 11px;
}

/* ── Asked and answered: three questions side by side, each with what comes back ── */
.asked {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  margin-top: 48px;
}
.asked article {
  position: relative;
  padding: 26px 24px 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}
/* a step down from one to the next, so they read left to right like a conversation going on */
.asked article:nth-child(2) {
  margin-top: 40px;
}
.asked article:nth-child(3) {
  margin-top: 80px;
}
.asked .q {
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.asked .q::before {
  content: '“';
  color: color-mix(in oklab, var(--foreground) 25%, transparent);
}
.asked .q::after {
  content: '”';
  color: color-mix(in oklab, var(--foreground) 25%, transparent);
}
.asked .a {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-size: 14px;
}
.asked .a > p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
}
.asked .kb-card + .kb-card {
  margin-top: 8px;
}
.bars {
  display: grid;
  gap: 9px;
}
.bars > div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 62px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.bars i {
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
  transform-origin: left;
  width: var(--w);
}
.seen .bars i {
  animation: grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.bars span:last-child {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.bars .tot {
  margin-top: 4px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
  font-weight: 650;
}
.did {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.did li {
  display: flex;
  gap: 8px;
  line-height: 1.4;
}
.did .icon {
  margin-top: 3px;
  color: var(--status-done);
}

/* ── Support: one request from the first message to solved, a stop at a time ── */
.journey {
  margin-top: clamp(40px, 5vw, 72px);
  padding: clamp(20px, 3vw, 40px);
  border-radius: 28px;
}
.stops {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
/* the line the request travels, and how far it has got */
.stops::before,
.stops::after {
  content: '';
  position: absolute;
  top: 17px;
  left: 10%;
  height: 2px;
  border-radius: 2px;
}
.stops::before {
  right: 10%;
  background: color-mix(in oklab, var(--foreground) 14%, transparent);
}
.stops::after {
  width: calc(80% * var(--at, 0));
  background: var(--foreground);
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.stops button {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font-size: 13.5px;
  font-weight: 600;
  color: color-mix(in oklab, var(--foreground) 55%, transparent);
  cursor: pointer;
}
.stops button i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid color-mix(in oklab, var(--foreground) 14%, transparent);
  border-radius: 50%;
  background: var(--card);
  font-size: 17px;
  font-style: normal;
  transition:
    border-color 0.3s,
    background 0.3s,
    color 0.3s,
    scale 0.3s;
}
.stops button small {
  font-size: 11.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: color-mix(in oklab, var(--foreground) 45%, transparent);
}
.stops .past button i {
  border-color: var(--foreground);
  background: var(--foreground);
  color: var(--background);
}
.stops .now button {
  color: var(--foreground);
}
.stops .now button i {
  border-color: var(--foreground);
  background: var(--foreground);
  color: var(--background);
  scale: 1.18;
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--foreground) 12%, transparent);
}
.journey-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  min-height: 250px;
  margin-top: 32px;
}
.journey-say {
  font-size: clamp(19px, 1.9vw, 25px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.journey-say small {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  color: color-mix(in oklab, var(--foreground) 62%, transparent);
}
.journey-card .kb-card {
  padding: 16px 18px 17px;
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  font-size: 16px;
}
.journey-card .kb-label {
  font-size: 11.5px;
  line-height: 19px;
}
.journey-card .fchip {
  font-size: 12.5px;
  line-height: 23px;
  padding: 0 8px;
}
.journey-card .kb-note,
.journey-card .kb-meta {
  font-size: 13px;
}
.journey-card .avatar {
  width: 24px;
  height: 24px;
  font-size: 10px;
}
.journey-where {
  display: grid;
  gap: 6px;
  justify-items: start;
}
.spot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
  background: var(--card);
  color: color-mix(in oklab, var(--foreground) 50%, transparent);
  box-shadow: var(--shadow);
  transition:
    color 0.3s,
    translate 0.3s;
}
.spot i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tone, var(--status-todo));
}
.spot.on {
  color: var(--foreground);
  translate: 10px 0;
}

/* ── Support: the board, and a sentence that filters it ── */
.burning h2 button {
  padding: 0 0.28em 0.06em;
  border: 0;
  border-radius: 0.3em;
  background: none;
  color: color-mix(in oklab, var(--foreground) 30%, transparent);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s;
}
.burning h2 button:not([aria-pressed='true']):hover {
  color: var(--foreground);
}
.burning h2 [aria-pressed='true'] {
  background: var(--foreground);
  color: var(--background);
}
.burning h2 {
  max-width: none;
  line-height: 1.25;
}
.burning .shown {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted-foreground);
}
.burning .window {
  margin-top: 32px;
}
.burning .window-body {
  min-height: 420px;
  padding: 18px;
}
.burning .kb {
  gap: 12px;
}
.burning .kb-card {
  transition:
    opacity 0.35s,
    scale 0.35s;
}
.burning .kb-card.off {
  opacity: 0.16;
  scale: 0.97;
}

/* ── Support: notes pinned to a wall, one for each kind of desk ── */
.wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 18px;
  margin-top: 44px;
  padding: clamp(24px, 4vw, 56px);
  border-radius: 28px;
  background: var(--board);
}
.pin {
  position: relative;
  padding: 18px 16px 16px;
  border-radius: 6px 6px 14px 6px;
  background: var(--card);
  box-shadow:
    0 14px 28px -14px rgb(0 0 0 / 0.55),
    0 1px 2px rgb(0 0 0 / 0.1);
  rotate: var(--r, 0deg);
  transition:
    rotate 0.3s,
    translate 0.3s,
    box-shadow 0.3s;
}
.pin:hover {
  rotate: 0deg;
  translate: 0 -6px;
  box-shadow: 0 26px 44px -18px rgb(0 0 0 / 0.6);
}
/* the pin */
.pin::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--tint, var(--c-red));
  box-shadow:
    inset -2px -2px 3px rgb(0 0 0 / 0.25),
    0 3px 5px rgb(0 0 0 / 0.3);
}
.pin h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16.5px;
  font-weight: 650;
}
.pin h3 .icon {
  color: var(--tint, var(--primary));
}
.pin p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--muted-foreground);
}
.pin .kb-fields {
  margin-top: 12px;
}

/* ── Support: what the assistant says in the morning ── */
.report {
  max-width: 520px;
  margin-inline: auto;
  padding: 22px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-lift);
}
.report-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
}
.report-head .avatar {
  width: 30px;
  height: 30px;
  margin: 0;
  font-size: 16px;
}
.report-head small {
  margin-left: auto;
  font-weight: 400;
  color: var(--muted-foreground);
}
.report > p {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 600;
}
.report ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.report li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: 12px;
  background: var(--lane);
  font-size: 14px;
  line-height: 1.45;
}
.report li > span:first-child {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--card);
  color: var(--tint, var(--primary));
  font-size: 16px;
}
.js .report li {
  opacity: 0;
}
.js .seen .report li {
  animation: rise 0.5s ease-out both;
  animation-delay: calc(0.3s + var(--i) * 0.45s);
  opacity: 1;
}
.report-ask {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.report-ask span {
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 30px;
}
.report-ask span:first-child {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

/* ── People and their AIs: a desk on each side (a person, their AI, the AI's other apps) and one board between them ── */
.duo {
  --ann1: oklch(0.82 0.14 200);
  --ann2: oklch(0.6 0.22 262);
  --ben1: oklch(0.72 0.24 355);
  --ben2: oklch(0.8 0.17 62);
  position: relative;
  margin-top: 48px;
  padding: 44px 40px 32px;
  border-radius: 28px;
  background:
    radial-gradient(55% 75% at 0% 0%, oklch(0.52 0.22 255 / 0.55), transparent 70%),
    radial-gradient(55% 75% at 100% 100%, oklch(0.56 0.24 350 / 0.45), transparent 70%), oklch(0.2 0.05 272);
  color: white;
  overflow: hidden;
}
.duo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, oklch(1 0 0 / 0.2) 1px, transparent 1.5px);
  background-size: 20px 20px;
  mask-image: radial-gradient(ellipse at center, transparent 30%, black);
  opacity: 0.5;
  pointer-events: none;
}
.duo > * {
  position: relative;
}
[data-desk='ann'],
[data-who='ann'],
[data-who='AN'] {
  --p1: var(--ann1);
  --p2: var(--ann2);
}
[data-desk='ben'],
[data-who='ben'],
[data-who='BE'] {
  --p1: var(--ben1);
  --p2: var(--ben2);
}
/* a line from each AI to the board, and what runs along it when the AI reads the board or writes on it */
.duo .duo-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.duo-lines path {
  fill: none;
  stroke: oklch(1 0 0 / 0.26);
  stroke-width: 1.5;
}
.duo-lines .pulse {
  stroke: var(--p1);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 0.24 2;
  opacity: 0;
  filter: drop-shadow(0 0 6px var(--p1));
}
.duo-grid {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 236px;
  gap: 44px;
  align-items: center;
}
.desk {
  padding: 16px;
  border: 1px solid oklch(1 0 0 / 0.14);
  border-radius: 20px;
  background: oklch(1 0 0 / 0.07);
  backdrop-filter: blur(8px);
}
.desk-who,
.desk-ai {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
}
.desk .avatar {
  width: 38px;
  height: 38px;
  margin: 0;
  border: 0;
  font-size: 13px;
}
.desk-who .avatar,
.duo .kb-card .avatar[data-who],
.duo .people .avatar,
.duo-steps .avatar {
  border-color: transparent;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: white;
}
.desk b {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 7px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
}
.desk small {
  display: block;
  font-size: 12.5px;
  line-height: 1.35;
  color: oklch(1 0 0 / 0.62);
}
/* their AI, joined to them by a short line; it lights while it's at work */
.desk-ai {
  position: relative;
  margin: 22px -6px 0;
  padding: 10px;
  border: 1px solid oklch(1 0 0 / 0.14);
  border-radius: 16px;
  background: oklch(1 0 0 / 0.08);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}
.desk-ai::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 28px;
  width: 2px;
  height: 22px;
  background: linear-gradient(var(--p2), var(--p1));
}
.desk-ai .avatar {
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: white;
  font-size: 21px;
}
.desk-ai.busy {
  border-color: var(--p1);
  background: oklch(1 0 0 / 0.14);
  box-shadow:
    0 0 0 4px color-mix(in oklab, var(--p1) 30%, transparent),
    0 0 36px -6px var(--p1);
}
.desk-ai em {
  padding: 0 7px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.18);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  line-height: 18px;
  vertical-align: 1px;
}
/* (room for two lines, so the desk doesn't grow as it says what it's doing) */
.desk-ai small {
  min-height: 2.7em;
  color: oklch(1 0 0 / 0.78);
}
.desk-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.tool {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border-radius: 10px;
  background: white;
  color: var(--foreground);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0.82;
  transition:
    opacity 0.25s ease,
    scale 0.25s ease,
    box-shadow 0.25s ease;
}
.tool img {
  width: 16px;
  height: 16px;
  flex: none;
}
.tool.on {
  opacity: 1;
  scale: 1.06;
  box-shadow:
    0 0 0 3px var(--p1),
    0 0 28px var(--p1);
}
.duo .window {
  color: var(--foreground);
  box-shadow: 0 40px 90px -40px black;
}
.duo .window-body {
  padding: 12px;
}
/* (room for the most it holds, so the window doesn't grow as the card moves along) */
.duo-board {
  --room: 400px;
  position: relative;
  min-height: var(--room);
}
[data-duo='support'] .duo-board {
  --room: 410px;
}
.duo .kb-card {
  font-size: 12.5px;
}
/* a person's cursor on the board, in their colour: uses.js says whose, where (--x, --y) and how fast (--ms) */
.duo-hand {
  top: 0;
  right: auto;
  bottom: auto;
  left: 0;
  z-index: 3;
  color: var(--p2);
  font-size: 18px;
  opacity: 0;
  transform: translate(var(--x, 0), var(--y, 0));
  transition:
    transform var(--ms, 0ms) cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.3s ease;
  filter: drop-shadow(0 2px 4px oklch(0 0 0 / 0.35));
  pointer-events: none;
}
.duo-hand span {
  background: linear-gradient(135deg, var(--p1), var(--p2));
  font-size: 11px;
  line-height: 18px;
}
.duo-hand.on {
  opacity: 1;
}
/* the steps the card took, each with who took it: they light as they happen, and stay */
.duo-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.duo-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid oklch(1 0 0 / 0.1);
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  color: oklch(1 0 0 / 0.42);
  transition:
    color 0.4s ease,
    background 0.4s ease,
    border-color 0.4s ease;
}
.duo-steps b {
  display: block;
  font-weight: 650;
}
.duo-steps .avatar {
  position: relative;
  width: 28px;
  height: 28px;
  margin: 0;
  font-size: 10.5px;
  opacity: 0.4;
  transition: opacity 0.4s ease;
}
/* (a small mark on the person's picture when it was their AI) */
.duo-steps .avatar i {
  position: absolute;
  right: -6px;
  bottom: -5px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1.5px solid oklch(0.24 0.05 272);
  border-radius: 50%;
  background: white;
  color: oklch(0.24 0.05 272);
  font-size: 10px;
}
.duo-steps li.on {
  background: oklch(1 0 0 / 0.06);
  color: oklch(1 0 0 / 0.84);
}
.duo-steps li.on .avatar {
  opacity: 1;
}
.duo-steps li.now {
  border-color: oklch(1 0 0 / 0.55);
  background: oklch(1 0 0 / 0.13);
  color: white;
}

/* ── The end of a page: where to go from here ── */
.closing .also {
  margin-top: 22px;
  font-size: 15px;
  color: var(--muted-foreground);
}

/* ── Narrow screens ── */
@media (max-width: 1100px) {
  .wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .asked {
    grid-template-columns: minmax(0, 1fr);
  }
  .asked article:nth-child(2),
  .asked article:nth-child(3) {
    margin-top: 0;
  }
}
@media (max-width: 1180px) {
  .duo {
    padding-inline: 24px;
  }
  .duo-grid {
    grid-template-columns: 204px minmax(0, 1fr) 204px;
    gap: 28px;
  }
  .duo-steps li {
    grid-template-columns: minmax(0, 1fr);
  }
  /* (narrower lists, so taller cards) */
  .duo-board {
    --room: 432px;
  }
  [data-duo='support'] .duo-board {
    --room: 442px;
  }
}
@media (max-width: 900px) {
  /* the two desks side by side, the board under them */
  .duo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .duo-grid .window {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .duo .duo-lines {
    display: none;
  }
  .duo .window-body {
    overflow-x: auto;
  }
  .duo .kb {
    min-width: 600px;
  }
  .duo-board {
    --room: 400px;
  }
  [data-duo='support'] .duo-board {
    --room: 410px;
  }
  .duo-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .duo-steps li {
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    padding: 9px 12px;
  }
  .duo-steps b {
    display: inline;
  }
  .pitch,
  .anatomy {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .anatomy.flip > :first-child {
    order: 0;
  }
  .pipeline .window-body,
  .burning .window-body,
  .shapes .window-body,
  .handoff .window-body {
    overflow-x: auto;
  }
  .pipeline .kb,
  .burning .kb {
    min-width: 860px;
  }
  .shapes .kb {
    min-width: 640px;
  }
  .handoff {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .bridge .go {
    rotate: 90deg;
  }
  .handoff .kb {
    min-width: 0;
  }
  .facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .facts li + li {
    padding-left: 0;
    border-left: 0;
  }
  .journey-body {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .journey-where {
    display: none;
  }
  .stops button span {
    display: none;
  }
  .boxes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .duo {
    margin-inline: -20px;
    padding: 28px 16px 22px;
    border-radius: 0;
  }
  .desk {
    padding: 12px;
  }
  /* what the AI is doing gets the desk's whole width, under its picture and name */
  .desk-ai {
    row-gap: 6px;
  }
  .desk-ai > div {
    display: contents;
  }
  .desk-ai small {
    grid-column: 1 / -1;
  }
  .desk-tools {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .shapes .stage,
  .handoff,
  .journey,
  .anatomy .stage,
  .wall {
    margin-inline: -20px;
    border-radius: 0;
  }
  .wall {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 20px;
  }
  .pin {
    rotate: 0deg;
  }
  .table-f .tr {
    grid-template-columns: minmax(0, 1.4fr) 84px 74px;
  }
  .table-f .tr > :nth-child(4) {
    display: none;
  }
}
