/*
  Sora demo, restyled as a v2 preview. The page around the example (header, headline, section
  layout, labels) is in the v2 style; the screens inside the indigo stages are the demo's own,
  kept in Sora's cream-and-ink look so they read as another company's product. Tokens for those
  screens are prefixed --s- so they cannot clash with the v2 tokens.
*/
:root {
  --s-bg: #ede5db; --s-surface: #f5f0e9; --s-surface-2: #e6ddd2; --s-paper: #fbf8f4;
  --s-ink: #121110; --s-ink-2: #3a352f; --s-muted: #7a7066; --s-line: #d8cdbf;
  --s-blush: #e7c6b2; --s-gold: #c9a26a; --s-accent: #e2873a; --s-solved: #2f5a45;
  --s-note: #fbf3dc; --s-hand-ink: #2b2a4a;
  --s-hand: "Bradley Hand", "Noteworthy", "Segoe Print", cursive;
  --s-font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --s-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --s-shadow: 0 40px 70px -40px rgba(74, 54, 36, 0.35), 0 2px 6px rgba(74, 54, 36, 0.05);
  --s-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --head: 112px; /* site header (68px) + Sora strip (44px) */
}
html { scroll-behavior: smooth; scroll-padding-top: 124px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; }
.grad.indigo { background-image: linear-gradient(90deg, #4656c4 0%, #7a6ad8 55%, #9a52c0 100%); }

/* The strip under the site header: whose business this is, and that it is made up */
.sora-strip { position: sticky; top: 68px; z-index: 40; height: 44px; background: rgba(253, 252, 252, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.sora-strip__row { display: flex; align-items: center; gap: 16px; height: 44px; }
.sora-brand { display: flex; align-items: baseline; gap: 12px; }
.sora-word { font-family: var(--s-font); font-size: 15px; font-weight: 700; letter-spacing: .14em; color: var(--s-ink); }
.sora-sub { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.sora-fiction { font-size: 13px; line-height: 18px; color: var(--text-muted); white-space: nowrap; }
@media (min-width: 720px) { .sora-fiction { padding-left: 16px; border-left: 1px solid var(--border); } }
@media (max-width: 719px) { .sora-brand { display: none; } }
.now { display: none; align-items: baseline; gap: 10px; margin-left: auto; font-size: 13px; color: var(--text); opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s; }
@media (min-width: 720px) { .now { display: flex; } }
.now span { font-size: 12px; letter-spacing: .06em; color: var(--text-faint); }
.now.is-on { opacity: 1; transform: none; }

/* Hero, outro */
.example-tag { padding: 5px 12px; border: 1.5px dashed #cfc9c0; border-radius: 999px; background: #fff; margin-bottom: 16px; }
.hero__cue { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 13px; color: var(--text-faint); }
.hero__cue .icon { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
.outro { padding-top: 24px; }

/* One section: title and steps on the left, the illustration on the right */
.scene { border-top: 1px solid var(--border); }
.scene__stage { display: grid; gap: 28px; padding-top: 56px; padding-bottom: 64px; min-width: 0; }
.scene__head { display: grid; gap: 10px; }
.scene__head .case-tag { margin: 0; }
.scene__head .case-tag b { font-weight: 500; color: var(--text); margin-right: 2px; }
.scene__part { display: grid; gap: 20px; align-content: start; min-width: 0; }
.state { display: grid; gap: 12px; }
.scene__title { max-width: 14em; }
.scene__lede { max-width: 34em; color: var(--text-muted); font-size: 16px; line-height: 24px; }
.state__label { display: inline-flex; align-items: center; gap: 6px; justify-self: start; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; line-height: 18px; font-weight: 500; }
.state__label { height: 30px; padding: 0 14px; font-size: 14px; font-weight: 600; }
.state__label--before { background: #ffb13d; color: #17131f; }
.state__label--before .icon { color: #17131f; }
.state__label--after { background: linear-gradient(90deg, #4656c4 0%, #6a5fcc 55%, #8a63c8 100%); color: #fff; }
.state__label--after .icon { color: #fff; }
.steps { display: grid; gap: 0; font-size: 15px; line-height: 22px; color: var(--text); }
.steps li { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-top: 1px solid var(--border); }
.steps li:first-child { border-top: 0; padding-top: 4px; }
.steps .icon { margin-top: 3px; }
.steps--before .icon { color: var(--s-accent); }
.steps--after .icon { color: #4656c4; }

/* The illustration: the demo's own screens, on an indigo stage, labelled as made up */
.vis { position: relative; min-width: 0; padding: 56px 20px 16px; border-radius: var(--radius-lg); font-family: var(--s-font); font-size: 15px; line-height: 1.5; color: var(--s-ink-2); text-align: left; }
@media (min-width: 640px) { .vis { padding: 60px 28px 20px; } }
.vis p, .vis dl, .vis dd { margin: 0; }
.vis ul, .vis ol { margin: 0; padding: 0; list-style: none; }
.vis__note { margin-top: 18px; font-family: var(--font-body); font-size: 12px; line-height: 16px; letter-spacing: .02em; color: rgba(255, 255, 255, .82); }

/* The state label in the corner of each stage */
.vis__tag { position: absolute; top: 18px; left: 20px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-family: var(--font-body); font-size: 13px; line-height: 18px; font-weight: 500; }
.vis__tag--before { background: rgba(0, 0, 0, .35); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.vis__tag--before .icon { color: #f0a45f; }
.vis__tag--after { background: #fff; color: #1f2766; }
.vis__tag--after .icon { color: #4656c4; }

/* With it and Today side by side. On wide screens both columns show at once; below that they are a
   swipe row that opens on With it, with a switch above that follows the swipe. */
.pair { display: grid; gap: 16px; min-width: 0; --pad: 20px; }
@media (min-width: 768px) { .pair { --pad: 40px; } }
.pair__tabs { display: inline-flex; gap: 4px; justify-self: start; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.pair__tab { height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font-family: var(--font-body); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-muted); cursor: pointer; transition: background .2s, color .2s; }
.pair__tab[data-tab="0"][aria-selected="true"] { background: linear-gradient(90deg, #4656c4 0%, #6a5fcc 55%, #8a63c8 100%); color: #fff; }
.pair__tab[data-tab="1"][aria-selected="true"] { background: #ffb13d; color: #17131f; }
.pair__hint { display: none; font-size: 13px; line-height: 18px; color: var(--text-faint); }
.pair__track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: calc(100% - 28px); grid-template-rows: auto 1fr; column-gap: 14px; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pair__track::-webkit-scrollbar { display: none; }
/* Both sides share the same rows, so the two pictures always start at the same height */
.side { min-width: 0; grid-row: span 2; display: grid; grid-template-rows: subgrid; gap: 24px; scroll-snap-align: start; }
.side .vis { align-self: stretch; }
@media (min-width: 1024px) {
  .pair__tabs { display: none; }
  .pair__track { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; margin-inline: 0; padding-inline: 0; overflow: visible; scroll-snap-type: none; }
}

/* ---------- Shared pieces ---------- */

.sq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  background: var(--s-surface-2);
  color: var(--s-ink);
}

.sq--sm {
  width: 30px;
  height: 30px;
}

.sq--ink {
  background: var(--s-ink);
  color: var(--s-paper);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status--ready {
  background: var(--s-ink);
  color: var(--s-paper);
}

.status--review {
  border: 1px dashed var(--s-ink-2);
  color: var(--s-ink);
}

.status--review::before {
  background: var(--s-accent);
}

.status--quiet {
  background: var(--s-surface-2);
  color: var(--s-ink);
}

.status--call {
  background: var(--s-accent);
  color: var(--s-ink);
}

.status--call::before {
  background: var(--s-ink);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--near {
  border: 1px dashed var(--s-accent);
  color: #9c4f12;
  background: rgba(226, 135, 58, 0.08);
}

.tag--low {
  background: var(--s-accent);
  color: var(--s-ink);
}

.tag--ink {
  background: var(--s-ink);
  color: var(--s-paper);
}

.hand {
  font-family: var(--s-hand);
  font-size: 15px;
  color: #b4441f;
}

.hand--note {
  display: block;
  white-space: pre-line;
  font-size: 17px;
  line-height: 1.55;
  color: var(--s-hand-ink);
}

.stale {
  color: var(--s-muted);
  text-decoration: line-through;
}

.bubble {
  justify-self: start;
  max-width: 100%;
  padding: 10px 14px;
  background: var(--s-surface-2);
  font-size: 14px;
  line-height: 1.55;
  color: var(--s-ink);
}

.bubble--sm {
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.45;
}

.bubble--out {
  justify-self: end;
  background: var(--s-ink);
  color: var(--s-paper);
}

.bubble--in {
  justify-self: start;
}

.hl {
  padding: 1px 8px;
  border: 1.5px dashed var(--s-accent);
  border-radius: 999px;
  background: rgba(226, 135, 58, 0.1);
  color: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Product illustrations ---------- */

.art {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: radial-gradient(70% 70% at 35% 30%, #f8efe6 0%, var(--s-blush) 100%);
  overflow: hidden;
}

.art svg {
  height: 80%;
  width: auto;
}

.art--sm {
  width: 40px;
  height: 46px;
}

.art--xs {
  width: 26px;
  height: 30px;
}

.a-body {
  fill: #f8f4ef;
  stroke: #c8bba9;
  stroke-width: 0.7;
}

.a-ink {
  fill: #1c1a18;
}

.a-label {
  fill: #9a8f82;
}

.a-cap {
  fill: var(--s-gold);
}

.a-band {
  fill: #efe4d4;
}

.a-amber {
  fill: #a8693a;
  stroke: #7d4b27;
  stroke-width: 0.7;
}

.art--ostrel .a-band {
  fill: #ecdcc0;
}

.art--brivane .a-cap {
  fill: #bfb8ae;
}

.art--brivane .a-band {
  fill: #dfe0dc;
}

.art--melkwood .a-cap {
  fill: #8c7c69;
}

.art--melkwood .a-band {
  fill: #dcd6c4;
}

.art--tessaly {
  background: radial-gradient(70% 70% at 35% 30%, #efe9e2 0%, #d6cdc2 100%);
}

.art--tessaly .a-cap {
  fill: #1c1a18;
}

.art--tessaly .a-band {
  fill: #f1b98d;
}

/* ---------- Today: separate tools ---------- */

.tool {
  position: relative;
  min-width: 0;
  background: var(--s-paper);
  border: 1px solid var(--s-line);
  box-shadow: var(--s-shadow);
}

.tool__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--s-line);
  font-size: 12px;
  font-weight: 600;
  color: var(--s-ink);
}

.tool__body {
  display: grid;
  gap: 5px;
  padding: 12px;
  font-size: 12px;
  color: var(--s-ink-2);
  overflow-x: auto;
}

.tool__who {
  font-weight: 600;
  color: var(--s-ink);
}

.tool__meta {
  color: var(--s-muted);
}

.tool__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--s-line);
  font-variant-numeric: tabular-nums;
}

.tool__total {
  margin-top: 4px;
  font-weight: 600;
  color: var(--s-ink);
}

.tool__badge {
  position: absolute;
  top: -10px;
  right: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--s-accent);
  color: var(--s-ink);
}

.tool--note {
  background: var(--s-note);
}

.tool--note .tool__head {
  border-bottom-color: #eadfbf;
}

.grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.grid th,
.grid td {
  padding: 5px 8px;
  border: 1px solid #e6ddd0;
  text-align: left;
  white-space: nowrap;
}

.grid thead th,
.grid tbody th {
  width: 1%;
  background: var(--s-surface);
  font-size: 10px;
  font-weight: 400;
  color: var(--s-muted);
  text-align: center;
}

.grid__h {
  font-weight: 600;
  color: var(--s-ink);
}

.field {
  display: grid;
  gap: 3px;
  font-size: 11px;
  color: var(--s-muted);
}

.field__input {
  display: block;
  min-height: 28px;
  padding: 5px 8px;
  background: var(--s-surface);
  border: 1px solid var(--s-line);
  font-size: 12px;
  color: var(--s-ink);
}

.field__input--typing::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 13px;
  margin-left: 1px;
  vertical-align: -2px;
  background: var(--s-ink);
  animation: caret 1s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.who {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: center;
  padding: 8px 14px 8px 8px;
  background: var(--s-ink);
  color: var(--s-paper);
  font-size: 13px;
  box-shadow: var(--s-shadow);
  white-space: nowrap;
}

@media (max-width: 639px) {
  .who {
    max-width: 100%;
    white-space: normal;
  }
}

.who__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  background: var(--s-accent);
  color: var(--s-ink);
}

.who__icon--sm {
  width: 26px;
  height: 26px;
}

.memo {
  justify-self: end;
  width: 190px;
  padding: 12px 14px;
  background: #f7e7a6;
  box-shadow: var(--s-shadow);
  white-space: pre-line;
  font-family: var(--s-hand);
  font-size: 17px;
  line-height: 1.4;
  color: var(--s-hand-ink);
  transform: rotate(2deg);
}

/* Layouts for the Today picture. Small screens stack everything. */
.vis--before {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

@media (min-width: 640px) {
  .layout-quad,
  .layout-pair {
    grid-template-columns: 1fr 1fr;
    position: relative;
  }

  .layout-quad .who,
  .layout-pair .who {
    grid-column: 1 / -1;
  }

  .layout-quad .tool:nth-of-type(1) {
    transform: rotate(-1.4deg);
  }

  .layout-quad .tool:nth-of-type(2) {
    transform: rotate(1deg);
  }

  .layout-quad .tool:nth-of-type(3) {
    transform: rotate(1.3deg);
  }

  .layout-quad .tool:nth-of-type(4) {
    transform: rotate(-0.8deg);
  }

  .layout-pair .memo {
    grid-column: 2;
    margin-top: -24px;
  }

  .layout-pair .who {
    margin-top: -8px;
  }

  .layout-row3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .layout-row3 .who {
    grid-column: 1 / -1;
  }

  .layout-single .tool {
    justify-self: center;
    width: 100%;
    max-width: 380px;
    transform: rotate(-1deg);
  }
}

@media (min-width: 1024px) {
  /* With four tools, the person sits in the middle of them */
  .layout-quad .who {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
  }

}

.layout-chain {
  align-items: center;
}

@media (min-width: 720px) {
  .layout-chain {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 10px;
  }
}

.hop {
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--s-muted);
}

.hop__line {
  position: relative;
  width: 1px;
  height: 28px;
  border-left: 1px dashed var(--s-ink-2);
}

@media (min-width: 720px) {
  .hop__line {
    width: 44px;
    height: 0;
    border-left: 0;
    border-top: 1px dashed var(--s-ink-2);
  }
}

.hop__text {
  white-space: nowrap;
}

.sources {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.source {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: var(--s-paper);
  border: 1px solid var(--s-line);
  font-size: 12px;
  color: var(--s-ink);
}

.source::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  height: 14px;
  border-left: 1px dashed var(--s-ink-2);
}

.layout-sources .tool {
  justify-self: center;
  width: 100%;
  max-width: 520px;
}

/* ---------- With it: connected views ---------- */

.panel {
  min-width: 0;
  background: var(--s-paper);
  border: 1.5px solid var(--s-ink);
  box-shadow: var(--s-shadow);
}

.panel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--s-line);
}

.panel__head > span:last-child {
  display: grid;
}

.panel__title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--s-ink);
}

.panel__sub {
  font-size: 11px;
  color: var(--s-muted);
}

.panel__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.panel__foot {
  padding: 10px 12px;
  border-top: 1px dashed var(--s-line);
  font-size: 11px;
  color: var(--s-muted);
}

.vis--after {
  display: grid;
  gap: 14px;
}

.after-split {
  display: grid;
  gap: 14px;
  align-items: start;
}

@media (min-width: 640px) {
  .after-split {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }

  .after-split--wide {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }

  .panel--span {
    grid-column: 1 / -1;
  }
}

/* 1. Queue */
.qrow {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--s-line);
}

.qrow:last-child {
  border-bottom: 0;
}

.qrow .status {
  grid-column: 2 / -1;
  justify-self: start;
}

@media (min-width: 520px) {
  .qrow {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

  .qrow .status {
    grid-column: auto;
  }
}

.qrow__who,
.irow__who {
  display: grid;
  min-width: 0;
}

.qrow__name,
.irow__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--s-ink);
}

.qrow__meta,
.irow__meta {
  font-size: 11px;
  color: var(--s-muted);
}

.qrow__total,
.irow__amount {
  font-size: 13px;
  font-weight: 600;
  color: var(--s-ink);
  font-variant-numeric: tabular-nums;
}

.callout {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: var(--s-paper);
  border: 1.5px dashed var(--s-accent);
}

.callout__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 12px;
  color: var(--s-ink-2);
}

/* 2. Stock */
.srow {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--s-line);
}

.srow:last-child {
  border-bottom: 0;
}

.srow__product {
  display: flex;
  align-items: center;
  gap: 8px;
}

.srow__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--s-ink);
}

.srow__total {
  margin-left: auto;
  font-size: 15px;
  font-weight: 700;
  color: var(--s-ink);
  font-variant-numeric: tabular-nums;
}

.lot {
  display: grid;
  grid-template-columns: 52px auto minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: var(--s-surface);
  font-size: 11px;
}

.lot__id {
  font-family: var(--s-mono);
  color: var(--s-ink);
}

.lot__date {
  color: var(--s-ink-2);
  white-space: nowrap;
}

.lot__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.lot__units {
  text-align: right;
  font-weight: 600;
  color: var(--s-ink);
  font-variant-numeric: tabular-nums;
}

.ritems,
.mini {
  display: grid;
}

.ritem,
.mini li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--s-line);
}

.ritem:last-child,
.mini li:last-child {
  border-bottom: 0;
}

.mini li > span {
  display: grid;
  min-width: 0;
}

.mini--split li {
  grid-template-columns: minmax(0, 1fr) auto;
}

.ritem__text {
  display: grid;
  min-width: 0;
}

.ritem__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--s-ink);
}

.ritem__meta {
  font-size: 11px;
  color: var(--s-muted);
}

.ritem__qty {
  font-size: 16px;
  font-weight: 700;
  color: var(--s-ink);
  font-variant-numeric: tabular-nums;
}

/* 3. Invoice and shipment */
.spawn {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.spawn__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--s-surface);
  border-left: 3px solid var(--s-ink);
  color: var(--s-ink);
}

.spawn__text {
  display: grid;
  min-width: 0;
}

.spawn__title {
  font-size: 13px;
  font-weight: 600;
}

.spawn__meta {
  font-size: 11px;
  color: var(--s-muted);
}

.outmsg {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: var(--s-paper);
  border: 1px solid var(--s-line);
  box-shadow: var(--s-shadow);
}

.outmsg__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 12px;
  color: var(--s-muted);
}

.outmsg__head .tag {
  margin-left: auto;
}

/* 4. Invoices */
.irow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--s-line);
}

.irow .dots {
  grid-column: 1;
}

@media (min-width: 520px) {
  .irow {
    grid-template-columns: minmax(0, 1fr) auto 44px 118px;
  }

  .irow .dots {
    grid-column: auto;
  }

  .irow .status {
    justify-self: start;
  }
}

.dots {
  display: inline-flex;
  gap: 4px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--s-ink);
}

.dot--sent {
  background: var(--s-ink);
}

.dot--stopped {
  border-color: var(--s-line);
  background: var(--s-line);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
}

.legend > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.legend__note {
  margin-left: auto;
}

.mini .icon {
  color: var(--s-ink);
}

/* 5. Repeat */
.urow {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--s-line);
  font-size: 13px;
  color: var(--s-ink);
}

.urow:last-child {
  border-bottom: 0;
}

.urow__qty {
  font-size: 11px;
  color: var(--s-muted);
}

.thread {
  display: grid;
  gap: 10px;
  align-content: start;
}

.created {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  padding: 6px 10px;
  border: 1px dashed var(--s-ink-2);
  font-size: 12px;
  color: var(--s-ink);
}

/* 6. Customer record */
.record {
  display: grid;
  gap: 14px;
}

.rec {
  display: grid;
}

.rec > div {
  display: grid;
  gap: 4px 16px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--s-line);
}

.rec > div:last-child {
  border-bottom: 0;
}

@media (min-width: 520px) {
  .rec > div {
    grid-template-columns: 130px minmax(0, 1fr);
    align-items: baseline;
  }
}

.rec dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--s-muted);
}

.rec dd {
  font-size: 14px;
  font-weight: 600;
  color: var(--s-ink);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  padding: 3px 8px;
  background: var(--s-ink);
  color: var(--s-paper);
  font-size: 11px;
  font-weight: 500;
}

.pill--off {
  background: transparent;
  border: 1px dashed var(--s-line);
  color: var(--s-muted);
  text-decoration: line-through;
}

.rec__prices {
  display: grid;
  gap: 2px;
}

.rec__price {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-variant-numeric: tabular-nums;
}

.feeds {
  display: grid;
  gap: 10px;
}

.feeds__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--s-muted);
}

.feeds__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 640px) {
  .feeds__list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feed {
  position: relative;
  padding: 10px 12px;
  background: var(--s-paper);
  border: 1px solid var(--s-line);
  font-size: 13px;
  text-align: center;
  color: var(--s-ink);
}

.feed::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  height: 34px;
  border-left: 1px dashed var(--s-ink-2);
}

/* 7. Overview */
.bars {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.bar {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--s-ink);
}

.bar__track {
  height: 12px;
  background: var(--s-surface);
}

.bar__fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--s-ink);
  transition: width 0.8s var(--s-ease) 0.2s;
}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Phones: keep the text above each picture short so the picture comes into view sooner */
@media (max-width: 719px) {
  .scene__stage { gap: 16px; padding-top: 32px; padding-bottom: 40px; }
  .side { gap: 16px; }
  .state { gap: 8px; }
  .scene__title { font-size: 24px; line-height: 30px; }
  .scene__lede { font-size: 15px; line-height: 22px; }
  .steps { font-size: 14px; line-height: 20px; }
  .steps li { padding: 8px 0; }
  .steps li:first-child { padding-top: 2px; }
}

/* The swipe hint: shows while an After picture is on screen, on screens where the pair is a swipe row */
.swipe-hint { position: fixed; left: 50%; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; background: #ffb13d; color: #17131f; font-family: var(--font-body); font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; box-shadow: 0 0 0 2px #fff, 0 10px 28px rgba(0, 0, 0, .3); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.swipe-hint.is-on { opacity: 1; transform: translate(-50%, 0); }
.swipe-hint__arrow { display: inline-block; font-size: 16px; animation: swipe-next 1.2s ease-in-out infinite; }
@keyframes swipe-next { 50% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .swipe-hint__arrow { animation: none; } }
@media (min-width: 1024px) { .swipe-hint { display: none; } }
