/* ---------------------------------------------------------------------------
   The home page
   ---------------------------------------------------------------------------
   Direction B of the "Website in Coral" canvas, picked 19 Nov 2026: the page
   in DataFast's shape — a centred hero, the product live under it, three
   steps, four features, a price that does not move, the
   questions, a closing card — in the materials of the app's Coral style: DM
   Sans with heavy headlines, warm paper, white cards, a coral action colour
   with its glow, DataFast blue for washes.

   The demo under the hero is not a drawing. It is the app itself at
   `cloud.getdatamosaic.com/site-demo`, answering from a recording of its demo
   workspace (`client/src/site-demo/`), in a frame — rendered at a desktop's
   1280px and scaled to fit, so the check page keeps its own layout. A real
   capture stands in until it loads, and stays on a phone.

   The site's other pages are untouched: everything here is scoped to
   `body.home`, the tokens included, so the header and footer only take the
   new look on this page.
   --------------------------------------------------------------------------- */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('/fonts/dm-sans-latin-wght-normal.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('/fonts/caveat-latin-600.woff2') format('woff2');
}

/* The headline's system names, and only them. */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url('/fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
}

/* --- the materials ---------------------------------------------------------- */

body.home {
  --bg: #faf9f7;
  --panel: #ffffff;
  --card: #f3f1ee;
  --line: #ece9e5;
  --line-soft: #f1eeea;
  --text: #262626;
  --text-body: #3d3936;
  --text-soft: #595451;
  --text-dim: #75706b;
  --accent: #b8481f;
  --wash: rgba(225, 101, 64, 0.24);
  --btn: #262626;
  --btn-text: #ffffff;
  --coral: #e16540;
  --coral-glow: 0 0 0 1px rgba(225, 101, 64, 0.16), 0 8px 16px -8px rgba(225, 101, 64, 0.64);
  --coral-lip: rgba(181, 81, 51, 0.48);
  --blue: #3399e0;
  --blue-wash: rgba(74, 168, 238, 0.14);
  --blue-ink: #0a6aa1;
  --shadow-card: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-frame: 0 0 0 1px rgba(0, 0, 0, 0.07), 0 30px 60px -30px rgba(38, 30, 20, 0.28);
  --hand: #75706b;
  --sans: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

:root[data-theme='dark'] body.home {
  --bg: #1f1f1f;
  --panel: #262626;
  --card: #2b2b2b;
  --line: #363636;
  --line-soft: #2e2e2e;
  --text: #eceae8;
  --text-body: #c9c6c3;
  --text-soft: #aba8a7;
  --text-dim: #93908d;
  --accent: #f07a55;
  --wash: rgba(225, 101, 64, 0.3);
  --btn: #eceae8;
  --btn-text: #1f1f1f;
  --coral-glow: 0 0 0 1px rgba(225, 101, 64, 0.3), 0 8px 16px -8px rgba(225, 101, 64, 0.5);
  --coral-lip: rgba(120, 50, 30, 0.6);
  --blue-wash: rgba(74, 168, 238, 0.16);
  --blue-ink: #6cbcf7;
  --shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.07);
  --shadow-frame: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  --hand: #a8a4a0;
}

.home .only-dark {
  display: none;
}

:root[data-theme='dark'] .home .only-dark {
  display: block;
}

:root[data-theme='dark'] .home .only-light {
  display: none;
}

.home .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.home .ico {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* The header, on this page: paper under it, the links in the middle, Log in
   white and Get started black (light on the dark theme) — the site's own
   button, as on every other page. Coral is kept for the page's calls to act. */
.home header.bar {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border-bottom-color: var(--line);
}

.home header.bar .btn {
  background: var(--btn);
  color: var(--btn-text);
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  font-weight: 500;
}

.home header.bar .btn:hover {
  background: color-mix(in srgb, var(--btn) 86%, var(--bg));
}

.home header.bar .login {
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 0 0 1px rgba(38, 38, 38, 0.09), 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* --- type -------------------------------------------------------------------- */

.home h1,
.home h2,
.home h3 {
  font-family: var(--sans);
}

.home h1 {
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

/* The headline is three short sentences, one to a line, so a system's name
   that changes length never moves a sentence onto another line. */
.b-hero h1 > span {
  display: block;
}

/* In the first two sentences the system changes: home.js takes five pairs in
   turn, the name rolling up and the room for it easing to its width. Without
   the script, or with reduced motion, the line stays POS and ERP.
   The names are set in Instrument Serif italic, a size up so they stand as
   tall as the sans around them, on the same line height as the headline. */
.b-sys {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.14em;
  letter-spacing: 0;
  line-height: 0.8;
}

.b-sys.is-rolling {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.b-sys-ghost {
  visibility: hidden;
}

/* A little taller and wider than the name, so the window cuts no accents,
   descenders or italics. */
.b-sys-win {
  position: absolute;
  inset: -0.2em -0.15em -0.3em -0.1em;
  overflow: hidden;
}

.b-sys-w {
  position: absolute;
  top: 0.2em;
  left: 0.1em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(1.1em);
}

.b-sys-w.is-in,
.b-sys-w.is-out {
  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.b-sys-w.is-in {
  opacity: 1;
  transform: none;
}

.b-sys-w.is-out {
  transform: translateY(-1.1em);
}

/* The second system follows the first a moment later. */
.b-sys.is-late,
.b-sys.is-late .b-sys-w {
  transition-delay: 0.12s;
}

.b-h2 {
  margin: 0 auto;
  max-width: 820px;
  text-align: center;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.home h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.b-eyebrow {
  margin: 0 0 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.b-sub {
  max-width: 560px;
  margin: 18px auto 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-soft);
  text-wrap: balance;
}

.b-fine {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-dim);
}

/* The founder's hand: a note beside the thing it points at. */
.b-hand {
  position: absolute;
  display: flex;
  gap: 6px;
  margin: 0;
  font-family: 'Caveat', 'Segoe Print', cursive;
  font-weight: 600;
  font-size: 23px;
  line-height: 1.05;
  color: var(--hand);
  pointer-events: none;
}

.b-hand svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

/* --- buttons ----------------------------------------------------------------- */

.b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.b-coral {
  background: var(--coral);
  color: #fff;
  box-shadow: var(--coral-glow), inset 0 -1px 2px var(--coral-lip);
}

.b-coral:hover {
  filter: brightness(0.94);
}

.b-white {
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(38, 38, 38, 0.09), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.b-wide {
  width: 100%;
}

.b-card {
  background: var(--panel);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

/* --- sections ---------------------------------------------------------------- */

.b-sec {
  padding-top: clamp(80px, 10vw, 120px);
}

.home main {
  padding-bottom: 40px;
}

.b-narrow {
  max-width: 720px;
}

/* --- hero ---------------------------------------------------------------------- */

.b-hero {
  padding-top: clamp(56px, 8vw, 88px);
  text-align: center;
}

.b-signup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.b-field {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(300px, 100%);
  height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 12%, transparent);
  color: var(--text-dim);
}

.b-field:focus-within {
  box-shadow: 0 0 0 2px var(--coral);
}

.b-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: 15px var(--sans);
  color: var(--text);
}

.b-signup .b-btn {
  width: min(300px, 100%);
}

.b-signup .b-fine {
  margin-top: 0;
}

.b-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--text-soft);
}

.b-facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* --- the demo: Mosaic itself, in a browser frame -------------------------------- */

/* The demo is wider than the page's column (shared.css, --measure): past it,
   up to 1480px, so the app inside is drawn at its own size and a whole check
   page — table and row panel — fits in it. */
.b-demo {
  position: relative;
  margin-top: 72px;
  text-align: left;
}

@media (min-width: 720px) {
  body.home {
    --demo-w: min(1480px, calc(100vw - 48px));
  }

  .b-demo {
    width: var(--demo-w);
    margin-inline: calc((100% - var(--demo-w)) / 2);
  }

  /* The bar on this page is as wide as the demo, the widest thing on it: the
     logo and Get started stand over the demo's two edges, not 80px inside
     them. The other pages' bars stay on the column their content is on. */
  body.home .bar .wrap {
    width: var(--demo-w);
    max-width: none;
    padding-inline: 0;
  }
}

.b-hand-demo {
  right: -6px;
  top: -54px;
  align-items: flex-end;
}

.b-hand-demo svg {
  width: 54px;
  height: 46px;
}

/* In the cards' frame: DataFast's thick light-grey rim, the window inside it. */
.b-frame {
  --rim: #eae7e3;
  border: 6px solid var(--rim);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow-frame);
  overflow: hidden;
}

:root[data-theme='dark'] .b-frame {
  --rim: #323232;
}

.b-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  padding: 0 8px 0 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 70%, var(--bg));
}

.b-dots {
  display: flex;
  gap: 6px;
}

.b-dots i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 14%, transparent);
}

.b-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--text-dim);
}

.b-open {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--text-dim);
}

.b-open:hover {
  background: var(--card);
  color: var(--text);
}

/* 1280 by 760 inside, whatever the frame's width outside: `home.js` sets the
   scale. The poster is a capture of the same screen at the same size. */
.b-viewport {
  position: relative;
  aspect-ratio: 1280 / 760;
  overflow: hidden;
  background: var(--bg);
}

.b-posters {
  position: absolute;
  inset: 0;
  transition: opacity 0.4s ease;
}

/* The opening capture while the demo loads; the result on a phone, which
   gets no live demo. */
.b-posters.is-result {
  display: none;
}

@media (max-width: 719px) {
  .b-posters.is-start {
    display: none;
  }

  .b-posters.is-result {
    display: block;
  }
}

.b-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.b-viewport iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--demo-inner, 1280px);
  height: calc(var(--demo-inner, 1280px) * 760 / 1280);
  border: 0;
  transform: scale(var(--demo-scale, 1));
  transform-origin: 0 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.b-viewport.is-live iframe {
  opacity: 1;
}

.b-viewport.is-live .b-posters {
  opacity: 0;
}

.b-cap {
  max-width: 640px;
  margin: 16px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

/*
 * The demo on a phone.
 *
 * A phone gets no live demo (`home.js`), and the app shrunk to a phone's width
 * cannot be read. In its place, the demo's own flow drawn at the phone's size
 * and played by `home.js`: the check with the store that disagrees, a tip to
 * press it; its panel — the figures, why, the refused receipts, the fix — and
 * a tip to press Run; then the store agreeing, and Play again. `data-step` on
 * the frame says which: 1, 2 or 3.
 *
 * Laid out in em on a font size taken from the frame's width (about 26em
 * across), so it is the same drawing on every phone, at a size that reads.
 * The tips and the coral ring are the app's own (`site-demo.css`).
 */
.b-phone,
.b-phone-only {
  display: none;
}

.b-phone {
  --tip: #0070f3;
  --ok: #1f9d55;
  --bad: #e5484d;
  --warn: #f5a623;
  position: relative;
  /* As tall as the step needs: the table and its tip, the panel and its tip,
     the table and the note. */
  height: 21.5em;
  overflow: hidden;
  font-size: clamp(11px, calc(100cqw / 26), 15px);
  transition: height 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  line-height: 1.3;
  color: var(--text);
  text-align: left;
}

:root[data-theme='dark'] .b-phone {
  --tip: #3572c4;
}

.b-phone[data-step='2'] {
  height: var(--panel-h, 36em);
}

.b-phone[data-step='3'] {
  height: 29em;
}

.b-phone b.ok,
.b-phone b.bad,
.b-phone b.warn {
  display: inline-block;
  flex: none;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.5em;
  border-radius: 50%;
}

.b-phone b.ok {
  background: var(--ok);
}

.b-phone b.bad {
  background: var(--bad);
}

.b-phone b.warn {
  background: var(--warn);
}

.b-phone .neg {
  color: var(--bad);
}

.b-phone .n {
  justify-content: flex-end;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Before and after the fix: one of each pair shows. */
.b-phone .bp-after,
.b-phone .bp-after-dot,
.b-phone[data-step='3'] .bp-before,
.b-phone[data-step='3'] .bp-before-dot {
  display: none;
}

.b-phone[data-step='3'] .bp-after,
.b-phone[data-step='3'] .bp-after-dot {
  display: inline;
}

.b-phone b.bp-after-dot,
.b-phone[data-step='3'] b.bp-before-dot {
  display: none;
}

.b-phone[data-step='3'] b.bp-after-dot {
  display: inline-block;
}

/* --- the check --------------------------------------------------------------- */

.bp-app {
  margin: 0.8em;
  overflow: hidden;
  border-radius: 0.8em;
  background: var(--panel);
  box-shadow:
    0 0 0 1px var(--line),
    0 0.6em 1.4em -0.8em rgba(38, 30, 20, 0.28);
}

.bp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
  height: 3em;
  padding: 0 0.9em;
  border-bottom: 1px solid var(--line);
}

.bp-head strong {
  font-size: 0.95em;
  font-weight: 650;
  white-space: nowrap;
}

.bp-count {
  display: inline-flex;
  align-items: center;
  color: var(--text-soft);
  font-size: 0.82em;
  white-space: nowrap;
}

.bp-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.9em 4.9em 4.2em;
  align-items: center;
  width: 100%;
  height: 2.75em;
  padding: 0 0.9em;
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: none;
  color: var(--text-body);
  font: inherit;
  font-size: 0.95em;
  text-align: left;
}

.bp-line > span {
  display: flex;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
}

.bp-line.is-th {
  height: 2.3em;
  border-top: 0;
  color: var(--text);
  font-size: 0.85em;
  font-weight: 600;
}

/* The row to press: a button, and on step 1 the ring the app's tips put round what to press. */
.bp-row {
  position: relative;
  cursor: pointer;
}

.b-phone[data-step='1'] .bp-row {
  z-index: 1;
  background: color-mix(in srgb, var(--bad) 7%, var(--panel));
  box-shadow: inset 0 0 0 2px var(--coral);
  animation: bp-ring 1.6s ease-out infinite;
}

.b-phone[data-step='3'] .bp-row {
  animation: bp-agree 1.4s ease-out;
}

@keyframes bp-ring {
  0% {
    box-shadow: inset 0 0 0 2px var(--coral), 0 0 0 0 rgba(225, 101, 64, 0.45);
  }
  100% {
    box-shadow: inset 0 0 0 2px var(--coral), 0 0 0 0.7em rgba(225, 101, 64, 0);
  }
}

@keyframes bp-agree {
  0%,
  40% {
    background: color-mix(in srgb, var(--ok) 16%, var(--panel));
  }
  100% {
    background: transparent;
  }
}

/* --- the row's panel --------------------------------------------------------- */

.bp-panel {
  position: absolute;
  top: 0.8em;
  right: 0.8em;
  left: 2.4em;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  padding: 0.85em 1em;
  overflow: hidden;
  border-radius: 0.9em;
  background: var(--panel);
  box-shadow:
    0 0 0 1px var(--line),
    -0.8em 0 2em -1em rgba(38, 30, 20, 0.35);
  transform: translateX(110%);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.b-phone[data-step='2'] .bp-panel {
  transform: none;
}

.bp-panel-head {
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.bp-panel-head strong {
  display: block;
  font-size: 1.15em;
  font-weight: 650;
  line-height: 1.15;
}

.bp-panel-head small {
  display: inline-flex;
  align-items: center;
  color: var(--text-soft);
  font-size: 0.82em;
}

.bp-back {
  display: grid;
  flex: none;
  place-items: center;
  width: 2em;
  height: 2em;
  padding: 0;
  border: 0;
  border-radius: 0.5em;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}

.bp-back svg,
.bp-done svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bp-figs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: 0.6em;
  box-shadow: 0 0 0 1px var(--line);
}

.bp-figs > span {
  padding: 0.45em 0.7em;
  font-size: 1.05em;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.bp-figs > span + span {
  border-left: 1px solid var(--line);
}

.bp-figs small,
.bp-why > small,
.bp-fix small {
  display: block;
  color: var(--text-soft);
  font-size: 0.75em;
  font-weight: 500;
}

.bp-why strong {
  display: block;
  margin-top: 0.1em;
  font-size: 1.1em;
  font-weight: 650;
}

.bp-why p {
  margin: 0.2em 0 0;
  color: var(--text-body);
  font-size: 0.92em;
  line-height: 1.4;
}

.bp-receipts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 0.6em;
  border-radius: 0.6em;
  box-shadow: 0 0 0 1px var(--line);
  font-size: 0.88em;
  font-variant-numeric: tabular-nums;
}

.bp-receipts > span {
  padding: 0.38em 0.75em;
  border-top: 1px solid var(--line-soft);
}

.bp-receipts > span:nth-child(-n + 2) {
  border-top: 0;
}

.bp-receipts .is-total {
  border-top-color: var(--line);
  font-weight: 650;
}

.bp-fix {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
  padding-top: 0.7em;
  border-top: 1px solid var(--line);
  font-size: 0.92em;
  font-weight: 500;
}

.bp-go {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.4em;
  height: 2.2em;
  padding: 0 0.95em;
  border: 0;
  border-radius: 0.5em;
  background: var(--coral);
  box-shadow: var(--coral-glow);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.bp-go-idle::before {
  content: '';
  display: inline-block;
  margin-right: 0.45em;
  border-style: solid;
  border-width: 0.32em 0 0.32em 0.5em;
  border-color: transparent transparent transparent currentColor;
}

.bp-go-busy,
.bp-go.is-busy .bp-go-idle {
  display: none;
}

.bp-go.is-busy .bp-go-busy {
  display: inline;
}

.b-phone[data-step='2'] .bp-go:not(.is-busy) {
  animation: bp-ring-btn 1.6s ease-out infinite;
}

@keyframes bp-ring-btn {
  0% {
    box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--coral), 0 0 0 4px rgba(225, 101, 64, 0.45);
  }
  100% {
    box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--coral), 0 0 0 1em rgba(225, 101, 64, 0);
  }
}

/* --- the tips: the app's "press this", placed by home.js ---------------------- */

.bp-tip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
  width: 17em;
  padding: 0.75em 0.95em 0.8em 0.75em;
  border-radius: 0.8em;
  background: var(--tip);
  box-shadow: 0 0.8em 1.6em -0.7em rgba(0, 40, 90, 0.45);
  color: #fff;
  opacity: 0;
  transform: translateY(0.3em);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.bp-tip.is-in {
  opacity: 1;
  transform: none;
  animation: bp-nod 1.6s ease-in-out 0.4s infinite;
}

@keyframes bp-nod {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.25em);
  }
}

.bp-tip::before {
  content: '';
  position: absolute;
  top: -0.35em;
  left: calc(var(--arrow-x, 2em) - 0.4em);
  width: 0.8em;
  height: 0.8em;
  border-radius: 0.12em;
  background: inherit;
  transform: rotate(45deg);
}

.bp-tip-ic {
  display: grid;
  flex: none;
  place-items: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: #fff;
  color: var(--tip);
}

.bp-tip-ic svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bp-tip-text {
  display: flex;
  flex-direction: column;
}

.bp-tip-text small {
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

.bp-tip-text strong {
  font-size: 1.05em;
  font-weight: 700;
}

.bp-tip-text > span {
  margin-top: 0.1em;
  font-size: 0.86em;
  line-height: 1.35;
}

/* --- fixed ------------------------------------------------------------------- */

.bp-done {
  position: absolute;
  right: 0.8em;
  bottom: 0.8em;
  left: 0.8em;
  padding: 0.85em 1em;
  border-radius: 0.8em;
  background: color-mix(in srgb, var(--ok) 11%, var(--panel));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ok) 30%, transparent);
  opacity: 0;
  transform: translateY(0.6em);
  pointer-events: none;
  transition:
    opacity 0.3s ease 0.25s,
    transform 0.3s ease 0.25s;
}

.b-phone[data-step='3'] .bp-done {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.bp-done strong {
  display: flex;
  align-items: center;
  gap: 0.4em;
  color: color-mix(in srgb, var(--ok) 75%, var(--text));
  font-size: 1.05em;
  font-weight: 700;
}

.bp-done p {
  margin: 0.25em 0 0.7em;
  color: var(--text-body);
  font-size: 0.9em;
}

.bp-again {
  height: 2.2em;
  padding: 0 1em;
  border: 0;
  border-radius: 0.5em;
  background: var(--btn);
  color: var(--btn-text);
  font: inherit;
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
}

.b-phone :is(.bp-row, .bp-back, .bp-go, .bp-again):focus-visible {
  outline: 2px solid var(--tip);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .b-phone *,
  .b-phone .bp-tip.is-in {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 719px) {
  .b-viewport {
    aspect-ratio: auto;
    container-type: inline-size;
  }

  .b-viewport .b-posters,
  .b-viewport .b-posters.is-result {
    display: none;
  }

  .b-phone {
    display: block;
  }

  .b-hand-demo,
  .b-desk-only {
    display: none !important;
  }

  a.b-phone-only {
    display: inline-flex;
  }

  p.b-phone-only {
    display: block;
  }

  span.b-phone-only {
    display: inline;
  }
}

/* --- how you check today: the section kept from the earlier page ------------- */

.b-today .eyebrow {
  justify-content: center;
  display: flex;
}

.b-today h2 {
  margin-inline: auto;
  max-width: 820px;
  text-align: center;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.b-today .sec-lede {
  max-width: 620px;
  margin: 18px auto 0;
  text-align: center;
  text-wrap: balance;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-soft);
}

/* --- how it works ------------------------------------------------------------- */

.b-steps {
  display: grid;
  grid-template-columns: 1fr 36px 1fr 36px 1fr;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

/*
 * DataFast's card: a thick light-grey rim all the way round, and inside it
 * the picture running edge to edge and the words on white. The rim's inner
 * corner is the outer one less its width, so the two curves stay parallel.
 * The steps put their picture on top; the feature cards below put theirs
 * under the words, in the same frame.
 */
.b-step,
.b-feat {
  --rim: #eae7e3;
  --well: #d9d5d0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 6px solid var(--rim);
  border-radius: 22px;
  background: var(--panel);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 10px 24px -18px rgba(38, 30, 20, 0.3);
}

:root[data-theme='dark'] :is(.b-step, .b-feat) {
  --rim: #323232;
  --well: #3a3a3a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.b-step-top {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 196px;
  padding: 16px;
  border-radius: 16px 16px 0 0;
  background: var(--well);
}

.b-step-body {
  padding: 18px 18px 20px;
}

.b-step-body p {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--text-soft);
}

.b-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

/*
 * The systems, as app icons in DataFast's way: each vendor's mark on its own
 * square, the square in the brand's colour where the vendor's icon is one
 * (Oracle red, Snowflake blue), on white where the mark carries the colour.
 */
.b-tiles {
  display: grid;
  grid-template-columns: repeat(4, 72px);
  gap: 6px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.b-tiles li {
  display: grid;
  place-items: center;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  width: 72px;
  height: 72px;
  padding: 15px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--tile, #f7f6f4);
}

/* On the dark well a dark square needs its edge said. */
:root[data-theme='dark'] .b-tiles li {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* A mark wider than it is tall gets more of the square's width. */
.b-tiles li.is-wide {
  padding: 10px;
}

.b-tiles img,
.b-tiles svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.b-tiles .ico {
  width: 70%;
  height: 70%;
  color: #fff;
  stroke-width: 2;
}

@media (max-width: 380px) {
  .b-tiles {
    grid-template-columns: repeat(4, 64px);
  }

  .b-tiles li {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }
}

/*
 * Step 2: the check's Mapping view, small — the same three columns as the
 * product's (Canonical, then each system, the baseline marked), the same
 * type marks, the demo check's real column names.
 */
.b-mapping {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow-card);
  font-size: 12px;
  table-layout: fixed;
}

.b-mapping th,
.b-mapping td {
  padding: 7px 7px;
  border-top: 1px solid var(--line-soft);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.b-mapping th + th,
.b-mapping td + td {
  border-left: 1px solid var(--line-soft);
}

.b-mapping thead th {
  border-top: 0;
  font-weight: 600;
  color: var(--text);
}

.b-base {
  margin-left: 3px;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--blue-wash);
  color: var(--blue-ink);
  font-size: 10px;
  font-weight: 600;
}

.b-mapping i {
  display: inline-block;
  min-width: 12px;
  margin-right: 3px;
  font-style: normal;
  font-size: 9px;
  color: var(--text-dim);
}

.b-mapping tr.is-key td {
  border-top-color: var(--line);
}

.b-mapping tfoot td {
  color: var(--text-soft);
  font-size: 11.5px;
}

/*
 * Step 3: what you read in the morning, small — the check, how it stands, and
 * the one store that was off with its Why and its Fix, as the product's row
 * panel says them.
 */
.b-result {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow-card);
  font-size: 12px;
  line-height: 1.4;
}

.b-result-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px 0;
}

.b-result-head b {
  font-size: 13px;
  font-weight: 600;
}

.b-result-head span {
  font-size: 11.5px;
  color: var(--text-dim);
}

.b-result-sum {
  margin: 2px 0 0;
  padding: 0 12px 9px;
  color: var(--text-soft);
}

.b-result-sum span {
  color: #2f8a4c;
  font-weight: 600;
}

:root[data-theme='dark'] .b-result-sum span {
  color: #6fd39b;
}

.b-result-row {
  padding: 9px 12px 10px;
  border-top: 1px solid var(--line-soft);
}

.b-result-key {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.b-result-key i {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #3fa864;
}

.b-result-key b {
  font-weight: 600;
}

.b-result-key span {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.b-result-key s {
  color: var(--text-dim);
  font-weight: 500;
}

.b-result dl {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 3px 8px;
  margin: 7px 0 0;
}

.b-result dt {
  color: var(--text-dim);
}

.b-result dd {
  margin: 0;
  min-width: 0;
}

.b-nw {
  white-space: nowrap;
}

.b-result dd .ico {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 4px;
  vertical-align: -1px;
  color: #3fa864;
  stroke-width: 2.6;
}

.b-again {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

/* --- features ----------------------------------------------------------------- */

.b-feats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.b-feat-text {
  padding: 22px 24px 18px;
}

.b-feat-text p {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--text-soft);
}

.b-feat-text a {
  color: var(--accent);
  font-weight: 500;
}

/* Each picture a close crop of the product, and the frame the picture's own
   shape, so the whole of it shows at every width — a phone included. */
.b-feat-shot {
  aspect-ratio: 1.85 / 1;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-radius: 0 0 16px 16px;
  background: var(--bg);
}

.b-feat-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.b-feat-shot.is-right img {
  object-position: right top;
}

.b-feat-shot.is-centre img {
  object-position: center top;
}

/*
 * The four features, drawn in HTML rather than shown as screenshots: the
 * product's own views — a check's table, a row's panel, an investigation's
 * tree, a workflow — at a close crop, sharp at any size and in either theme.
 *
 * Each is laid out on a 640 × 346 design (the frame's 1.85 : 1) and scales
 * with its card: the frame is a size container, every length inside is in
 * `em`, and the type is 13 design pixels at whatever width the card is. The
 * wires are SVG on the same 640 × 346 box, with strokes that stay hairlines.
 */
.b-feat-shot {
  container-type: inline-size;
}

.mini {
  --ok: #1f9d55;
  --bad: #e5484d;
  --warn: #f5a623;
  --run: #3399e0;
  --wire: #cfc9c2;
  --dot: #e3ded8;
  --violet: #6b4fd6;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: calc(100cqw * 13 / 640);
  line-height: 1.35;
  background: var(--bg);
}

:root[data-theme='dark'] .mini {
  --wire: #4d4a47;
  --dot: #34312f;
  --violet: #a48cf2;
}

.mini b.ok,
.mini b.bad,
.mini b.warn {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.6em;
  border-radius: 50%;
  vertical-align: 0.08em;
}

.mini b.ok {
  background: var(--ok);
}

.mini b.bad {
  background: var(--bad);
}

.mini b.warn {
  background: var(--warn);
}

.mini-tree,
.mini-flow {
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.2px);
  background-size: 1.4em 1.4em;
}

/* --- a check's table ------------------------------------------------------- */

.mini-check {
  padding: 1.1em 0 0 1.1em;
}

.mc-frame {
  height: 120%;
  overflow: hidden;
  border-radius: 0.9em 0 0 0;
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--line);
}

.mc-bar {
  display: flex;
  align-items: center;
  gap: 1.8em;
  height: 3em;
  padding: 0 1.4em;
  border-bottom: 1px solid var(--line);
  font-size: 0.92em;
}

.mc-bar i,
.mc-bar em {
  margin-left: 0.3em;
  font-style: normal;
  color: var(--text-dim);
}

.mini-check table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.mini-check th {
  height: 2.8em;
  padding: 0 1em;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.mini-check td {
  height: 2.9em;
  padding: 0 1em;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-body);
  text-align: right;
  white-space: nowrap;
}

.mini-check :is(th, td).l {
  text-align: left;
}

.mini-check td:first-child,
.mini-check th:first-child {
  width: 2.4em;
  padding: 0;
  color: var(--text-dim);
  font-size: 0.85em;
  text-align: center;
}

/* --- a row's panel --------------------------------------------------------- */

.mr-table {
  position: absolute;
  top: 7.4em;
  left: 0;
  width: 46%;
  border-top: 1px solid var(--line);
  background: var(--panel);
  font-variant-numeric: tabular-nums;
}

.mr-head,
.mr-line {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  height: 2.9em;
  padding: 0 1.2em;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

.mr-head {
  border-bottom-color: var(--line);
  font-weight: 600;
}

.mr-head span:last-child,
.mr-line span:last-child {
  text-align: right;
}

.mr-line {
  color: var(--text-body);
}

.mr-line.is-on {
  background: var(--card);
}

.mr-panel {
  position: absolute;
  top: 0.9em;
  right: 0.9em;
  bottom: -2em;
  width: 58%;
  padding: 1.1em 1.4em;
  border-radius: 1.1em;
  background: var(--panel);
  box-shadow:
    0 0 0 1px var(--line),
    0 1.2em 2.4em -1.2em rgba(38, 30, 20, 0.3);
}

.mr-who {
  display: flex;
  align-items: center;
  gap: 0.8em;
}

.mr-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  border-radius: 0.65em;
  background: linear-gradient(135deg, #3f8a2c, #17866b 55%, #2f6a35);
  color: #fff;
  font-size: 0.85em;
  font-weight: 700;
}

.mr-name strong {
  display: block;
  font-size: 1.15em;
  font-weight: 650;
  line-height: 1.2;
}

.mr-name small {
  display: block;
  color: var(--text-soft);
  font-size: 0.85em;
}

.mr-tools {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 0.85em;
}

.mr-state {
  display: flex;
  align-items: center;
  gap: 0.55em;
  margin: 0.8em 0 0;
  padding-bottom: 0.8em;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.92em;
  white-space: nowrap;
}

.mr-state b.bad {
  margin-right: 0;
}

.mr-state strong {
  color: var(--text);
  font-weight: 600;
}

.mr-state span::before {
  content: '·';
  margin-right: 0.55em;
  color: var(--text-dim);
}

.mr-figs p {
  display: grid;
  grid-template-columns: 1fr auto 3.6em;
  margin: 0;
  padding: 0.38em 0;
  border-top: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
}

.mr-figs p span:nth-child(n + 2) {
  font-weight: 600;
  text-align: right;
}

.mini .mr-label {
  grid-template-columns: 1fr auto;
  padding-top: 0.8em;
  border-top: 0;
  color: var(--text-soft);
  font-size: 0.86em;
}

.mini .mr-label span:nth-child(n + 2) {
  font-weight: 400;
}

.mr-figs .neg {
  color: var(--bad);
}

.mr-why {
  margin-top: 0.5em;
  border-top: 1px solid var(--line);
}

.mr-why .mr-label {
  margin: 0;
  padding-bottom: 0.3em;
}

.mr-why strong {
  display: block;
  font-size: 1.1em;
  font-weight: 600;
}

.mr-why p:last-child {
  margin: 0.2em 0 0;
  color: var(--text-body);
  font-size: 0.95em;
  line-height: 1.45;
}

/* --- an investigation's tree ---------------------------------------------- */

.mt-wires,
.mf-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mt-wires path,
.mf-wires path {
  fill: none;
  stroke: var(--wire);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.mt-wires path.is-taken {
  stroke: var(--run);
  stroke-width: 2;
}

.mt-wires path.is-faded {
  opacity: 0.8;
  stroke-dasharray: 4 5;
}

.mt-answer {
  position: absolute;
  z-index: 2;
  height: 1.7em;
  padding: 0 0.7em;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: var(--card);
  color: var(--text-soft);
  font-size: 0.82em;
  font-weight: 600;
  line-height: 1.7em;
  white-space: nowrap;
}

.mt-answer.is-yes {
  background: color-mix(in srgb, var(--ok) 14%, var(--panel));
  color: color-mix(in srgb, var(--ok) 72%, var(--text));
}

.mt-answer.is-case {
  background: color-mix(in srgb, var(--run) 14%, var(--panel));
  color: color-mix(in srgb, var(--run) 70%, var(--text));
}

.mt-answer.is-taken {
  box-shadow: 0 0 0 1.5px var(--run);
}

.mt-answer.is-faded {
  opacity: 0.5;
}

.mt-card {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: 34.375%;
  height: 28.9%;
  padding: 0.75em 1em;
  border-radius: 0.9em;
  background: var(--panel);
  box-shadow:
    0 0 0 1px var(--line),
    0 1px 3px rgba(38, 30, 20, 0.06);
}

.mt-card.is-faded {
  opacity: 0.5;
}

.mt-card.is-reached {
  box-shadow:
    0 0 0 1.5px var(--coral),
    0 0 0 0.35em color-mix(in srgb, var(--coral) 16%, transparent);
}

.mt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
}

.mt-chip,
.mt-found {
  height: 1.65em;
  padding: 0 0.6em;
  border-radius: 0.45em;
  background: var(--card);
  font-size: 0.82em;
  font-weight: 600;
  line-height: 1.65em;
  white-space: nowrap;
}

.mt-card.is-switch .mt-chip {
  background: color-mix(in srgb, var(--violet) 13%, var(--panel));
  color: var(--violet);
}

.mt-card.is-cause .mt-chip {
  background: color-mix(in srgb, var(--coral) 13%, var(--panel));
  color: color-mix(in srgb, var(--coral) 82%, var(--text));
}

.mt-found {
  background: color-mix(in srgb, var(--run) 14%, var(--panel));
  color: color-mix(in srgb, var(--run) 62%, var(--text));
}

.mt-card strong {
  margin-top: 0.5em;
  font-size: 0.96em;
  font-weight: 600;
  line-height: 1.25;
}

.mt-card small {
  margin-top: auto;
  color: var(--text-soft);
  font-size: 0.86em;
}

.mt-card small em {
  color: var(--text-dim);
}

.mt-tick {
  position: absolute;
  top: -0.55em;
  right: -0.55em;
  width: 1.45em;
  height: 1.45em;
  border-radius: 50%;
  background: #1f8a4c;
  box-shadow: 0 0 0 2px var(--bg);
}

.mt-tick::after {
  content: '';
  position: absolute;
  top: 0.32em;
  left: 0.48em;
  width: 0.36em;
  height: 0.62em;
  transform: rotate(45deg);
  border: solid #fff;
  border-width: 0 0.14em 0.14em 0;
}

/* --- a workflow ------------------------------------------------------------- */

.mf-node {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 9.375%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 1em;
  background: var(--panel);
  box-shadow:
    0 0 0 1px var(--line),
    0 1px 3px rgba(38, 30, 20, 0.06);
  color: var(--text);
}

.mf-node.is-blue {
  color: #1b84c8;
}

:root[data-theme='dark'] .mf-node.is-blue {
  color: #6cbcf7;
}

.mf-node svg {
  width: 44%;
  height: 44%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mf-port {
  position: absolute;
  z-index: 3;
  width: 0.7em;
  height: 0.7em;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--panel);
  box-shadow: 0 0 0 1.5px var(--wire);
}

.mf-out {
  position: absolute;
  transform: translateY(-50%);
  color: var(--text-soft);
  font-size: 0.78em;
}

.mf-plus {
  position: absolute;
  display: grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  transform: translate(-50%, -50%);
  border-radius: 0.35em;
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--text-soft);
  font-size: 0.9em;
  line-height: 1;
}

.mf-name {
  position: absolute;
  width: 10em;
  margin: 0;
  transform: translateX(-50%);
  text-align: center;
}

.mf-name.is-wide {
  width: 12.5em;
}

.mf-name strong {
  display: block;
  font-size: 0.9em;
  font-weight: 500;
  line-height: 1.25;
}

.mf-name small {
  display: block;
  margin-top: 0.15em;
  color: var(--text-soft);
  font-size: 0.76em;
}

/* --- pricing ---------------------------------------------------------------- */

.b-slider {
  max-width: 620px;
  margin: 40px auto 0;
}

.b-slider-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-soft);
}

.b-slider output {
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--btn);
  color: var(--btn-text);
  font-size: 12px;
  font-weight: 600;
}

.b-slider input {
  width: 100%;
  height: 28px;
  accent-color: var(--coral);
}

.b-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
}

.b-plans {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 760px;
  margin: 30px auto 0;
}

.b-hand-price {
  left: -170px;
  top: 70px;
  width: 160px;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.b-hand-price svg {
  width: 70px;
  height: 30px;
}

.b-plan {
  padding: 26px;
}

.b-plan-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.b-plan-price {
  margin: 8px 0 16px;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.b-plan-price small {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-dim);
}

.b-plan-soon {
  font-size: 26px;
}

.b-ticklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.b-ticklist li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.b-ticklist li::before {
  content: '';
  width: 14px;
  height: 14px;
  flex: none;
  background: var(--text-dim);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.b-plan .b-fine {
  text-align: center;
}

.b-plan-later {
  border-radius: 16px;
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.b-plan-later p {
  font-size: 14.5px;
  color: var(--text-soft);
}

.b-plan-later p + p {
  margin-top: 12px;
}

.b-plan-later .b-plan-soon {
  font-size: 26px;
  color: var(--text);
}

.b-plan-later a {
  color: var(--accent);
}

/* --- questions ---------------------------------------------------------------- */

.b-qa {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 36px;
}

.b-qa details {
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow-card);
}

.b-qa summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.b-qa summary::-webkit-details-marker {
  display: none;
}

.b-qa summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--text-soft);
}

.b-qa details[open] summary::after {
  content: '−';
}

.b-qa details p {
  padding: 0 18px 16px;
  font-size: 15px;
  color: var(--text-soft);
}

.b-qa a {
  color: var(--accent);
}

/* --- the close ---------------------------------------------------------------- */

.b-end {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 40px;
  overflow: hidden;
  text-align: center;
}

.b-end > :not(.b-ghost) {
  position: relative;
}

.b-ghost {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 200px;
  padding: 0 40px;
}

.b-ghost i {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(color-mix(in srgb, var(--coral) 14%, transparent), color-mix(in srgb, var(--coral) 3%, transparent));
}

.b-end .b-h2 {
  font-size: clamp(28px, 3.4vw, 38px);
}

.b-end-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

/* --- the footer, on this page ---------------------------------------------------- */

.home footer.site {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

/* --- smaller screens --------------------------------------------------------------- */

@media (max-width: 1260px) {
  .b-hand-price {
    display: none;
  }
}

@media (max-width: 900px) {
  .b-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .b-arrow {
    height: 36px;
    transform: rotate(90deg);
  }

  .b-feats,
  .b-plans {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .b-hand {
    display: none;
  }

  .b-demo {
    margin-top: 48px;
  }

  .b-end {
    padding: 48px 20px;
  }
}

/* --- how you check your numbers today: one Friday, as a log ----------------- */

/*
 * The answer the demo gives in seconds, got to by hand: the five steps a team
 * takes today, each with its time and how long it costs. Still, on purpose.
 */
.morning {
  --bad-wash: #fbefeb;
  --bad-ink: #b23a1a;
  --wait-wash: #fdf3dc;
  --wait-ink: #8a5a00;
  max-width: 880px;
  margin: 52px auto 0;
  background: var(--panel);
  border-radius: 16px;
  box-shadow: var(--shadow-card), 0 30px 60px -40px rgba(38, 30, 20, 0.25);
  text-align: left;
  overflow: hidden;
}

:root[data-theme='dark'] .morning {
  --bad-wash: rgba(240, 122, 85, 0.14);
  --bad-ink: #f59a7c;
  --wait-wash: rgba(245, 181, 60, 0.14);
  --wait-ink: #f2c26b;
}

.morning-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text-dim);
}

.morning-head b {
  font-weight: 600;
  color: var(--text);
}

.morning-log {
  margin: 0;
  padding: 0;
  list-style: none;
}

.morning-log li {
  display: grid;
  grid-template-columns: 52px 30px 196px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 15px;
}

.morning-log li:first-child {
  border-top: 0;
}

.morning-log time {
  font: 500 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text-dim);
}

.morning-ic {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
}

.morning-ic .ico {
  width: 16px;
  height: 16px;
}

.morning-log b {
  font-weight: 600;
}

.morning-what {
  min-width: 0;
  color: var(--text-body);
}

.morning-what code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--card);
  color: var(--text);
  font: 500 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
}

.morning-st {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.morning-st.is-bad {
  background: var(--bad-wash);
  color: var(--bad-ink);
}

.morning-st.is-wait {
  background: var(--wait-wash);
  color: var(--wait-ink);
}

/* How long a step takes: a grey tag; the last one, the longest, in amber. */
.morning-st.is-time {
  background: var(--card);
  color: var(--text-soft);
}

.morning-total {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--wait-wash);
  color: var(--wait-ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.morning-log li.is-last {
  background: color-mix(in srgb, var(--wait-wash) 45%, transparent);
}

.morning-log li.is-last b {
  color: var(--wait-ink);
}

.today-end {
  max-width: 780px;
  margin: 52px auto 0;
  text-align: center;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* A phone: the time, the name and the outcome on one line, what happened under it. */
@media (max-width: 720px) {
  .morning-head {
    padding: 10px 16px;
  }

  .morning-log li {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-areas:
      'time who st'
      '. what what';
    gap: 3px 10px;
    padding: 14px 16px;
  }

  .morning-log time {
    grid-area: time;
  }

  .morning-ic {
    display: none;
  }

  .morning-log b {
    grid-area: who;
  }

  .morning-st {
    grid-area: st;
  }

  .morning-what {
    grid-area: what;
    font-size: 14px;
  }
}

/* --- the demo, always within reach ----------------------------------------- */

.demo-pill {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  box-shadow: 0 10px 30px -10px rgba(10, 10, 10, 0.25);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.demo-pill > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--btn);
  color: var(--btn-text);
}

.demo-pill .ico {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

/* Hidden while the hero's own two buttons are on screen; `home.js` says when. */
.demo-pill.is-away {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

@media (max-width: 640px) {
  .demo-pill {
    right: 12px;
    bottom: 12px;
    padding-right: 14px;
    font-size: 14px;
  }
}
