/* demo-signoff.css - the landing page's hero demo (render.mjs landingDemo, static/demo-signoff.js): the browser
   window of the owner's own dashboard, the counter sign on paper beside it, and a customer's phone that rises in
   front of the paper. Linked on the landing page alone, after the kit's sheet. The kit's frame (.lp-demo,
   .lp-phone, .lp-cursor, landing.css and demo.js) is used as it is; the window draws its own browser chrome the
   way FleetFault's and Duesline's do. Its table and titles copy the look of .mx-table and .mx-h1 under the demo's
   own .sod-table/.sod-h1 names: the gate reads every real <h1>, mx-table row and mx-field as page structure, which
   a decorative, pointer-events:none picture never is.

   Inside the stage the sizes are px, on purpose: it is a picture of a screen at a fixed design size (1040 x 664),
   which demo.js scales to the column.

   What the tour changes, read here:
     data-view     new | waiver | sigs          which page of the window shows
     data-phone    '' | form | thanks           the phone below the stage / the signing page / the thank-you page
     is-created    the counter sign (paper) is on the counter
     is-drawn      the signature is on the pad
     is-signed     the new signature's row is in Signatures                                                       */

.sod-stage {
  width: 1040px;
  height: 664px;
  overflow: hidden;
  color: var(--c-ink);
  font-size: 14px;
  line-height: 1.4;
  text-align: start;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.sod-stage :where(p) { margin: 0; }

/* ---- the owner's browser window ---- */
.sod-win {
  position: absolute;
  left: 24px;
  top: 24px;
  width: 700px;
  height: 572px;
  overflow: hidden;
  border: 1px solid var(--c-line-strong);
  border-radius: 14px;
  background: var(--c-canvas);
  box-shadow: var(--lp-demo-shadow);
}
.sod-win__chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-surface-2);
}
.sod-dots { display: flex; gap: 6px; }
.sod-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--c-line-strong); }
.sod-url {
  display: flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--c-canvas);
  color: var(--c-ink-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}
.sod-appbar { display: flex; align-items: center; gap: 24px; height: 52px; padding: 0 20px; border-bottom: 1px solid var(--c-line); }
.sod-mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.sod-mark svg { width: 20px; height: 20px; color: var(--c-accent); }
.sod-nav { display: flex; gap: 20px; }
.sod-nav__item { display: inline-flex; align-items: center; gap: 6px; color: var(--c-ink-muted); font-size: 13px; }
.sod-nav__item svg { width: 15px; height: 15px; opacity: 0.7; }
.sod-stage[data-view='new'] .sod-nav__item[data-sod-nav='waivers'],
.sod-stage[data-view='waiver'] .sod-nav__item[data-sod-nav='waivers'],
.sod-stage[data-view='sigs'] .sod-nav__item[data-sod-nav='signatures'] { color: var(--c-ink); }
.sod-stage[data-view='new'] .sod-nav__item[data-sod-nav='waivers'] svg,
.sod-stage[data-view='waiver'] .sod-nav__item[data-sod-nav='waivers'] svg,
.sod-stage[data-view='sigs'] .sod-nav__item[data-sod-nav='signatures'] svg { color: var(--c-accent); opacity: 1; }

.sod-views { position: relative; height: calc(100% - 88px); padding: 22px 28px; overflow: hidden; }
.sod-view { display: none; }
.sod-stage[data-view='new'] .sod-view--new,
.sod-stage[data-view='waiver'] .sod-view--waiver,
.sod-stage[data-view='sigs'] .sod-view--sigs { display: block; }

.sod-crumb { margin-bottom: 4px; color: var(--c-ink-muted); font-size: 12.5px; }
.sod-h1 { margin: 0 0 4px; font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.sod-lead { margin-bottom: 16px; color: var(--c-ink-muted); font-size: 13px; }
.sod-view--waiver .sod-h1 { margin-bottom: 16px; }

.sod-btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--c-line-strong);
  background: var(--c-surface);
  color: var(--c-ink);
}
.sod-btn--primary { border-color: transparent; background: var(--c-accent); color: var(--c-accent-ink); }
.sod-btn--block { display: flex; justify-content: center; width: 100%; }
.sod-btn.lp-pressed { transform: scale(0.96); }

/* ---- a form: label, then a box that fills as the tour types into it ---- */
.sod-field { margin-bottom: 12px; }
.sod-label { display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 600; }
.sod-input {
  display: block;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--c-line-field, var(--c-line-strong));
  border-radius: 8px;
  background: var(--c-canvas);
  line-height: 30px;
  font-size: 13px;
  color: var(--c-ink);
  overflow: hidden;
  white-space: nowrap;
}
.sod-input--static { color: var(--c-ink-muted); }
.sod-input--area { height: 118px; padding: 6px 10px; line-height: 1.45; white-space: normal; }
.sod-view--new .sod-btn { margin-top: 4px; }
.sod-field--text { margin-top: 16px; }
.sod-field--text .sod-input { height: auto; min-height: 118px; color: var(--c-ink-muted); }
.sod-input--area p { margin-bottom: 0.6em; }

/* ---- the waiver's own page: the counter-sign panel (.mx-panel + .so-qr-*) ---- */
.sod-panel { padding: 16px 18px; border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-surface); }
.sod-panel__title { margin-bottom: 12px; font-size: 15px; font-weight: 650; }
.sod-qr-row { display: flex; gap: 20px; align-items: center; }
.sod-qr-tile { flex: none; padding: 9px; border-radius: 8px; background: #fff; line-height: 0; }
.sod-qr-tile svg { width: 104px; height: 104px; color: var(--c-accent-dark); display: block; }
.sod-qr-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sod-copy { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sod-copy code { font-family: var(--font-mono); font-size: 12px; }
.sod-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- Signatures: a picture of .mx-table, copied by hand ---- */
.sod-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.sod-table th {
  padding: 0 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--c-line-strong);
  text-align: start;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--c-ink-muted);
}
.sod-table td { padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.sod-aside { color: var(--c-ink-muted); }
.sod-row--new { opacity: 0; }
.sod-stage.is-signed .sod-row--new { opacity: 1; }

/* ---- the counter sign on paper: always dark ink on white, whatever the theme (.so-sign-sheet) ---- */
.sod-paper {
  position: absolute;
  left: 770px;
  top: 90px;
  width: 240px;
  padding: 26px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  border-radius: 6px;
  background: #fff;
  color: #171308;
  box-shadow: var(--lp-demo-shadow);
  transform: rotate(2.5deg);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.sod-stage.is-created .sod-paper { opacity: 1; }
.sod-paper__title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.sod-paper__line { font-size: 13px; }
.sod-paper__qr { display: block; line-height: 0; }
.sod-paper__qr svg { width: 150px; height: 150px; color: var(--c-accent-dark); display: block; }
.sod-paper__url { font-family: var(--font-mono); font-size: 10.5px; color: #5b5346; word-break: break-all; }

/* ---- the customer's phone: rises from below the stage ---- */
.sod-phone {
  left: 750px;
  top: 34px;
  width: 280px;
  height: 590px;
  z-index: 40;
  transform: translateY(700px);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.25, 1);
}
.sod-stage[data-phone='form'] .sod-phone,
.sod-stage[data-phone='thanks'] .sod-phone { transform: none; }
.sod-sign { display: none; height: 100%; padding: 50px 16px 16px; font-size: 12px; background: var(--c-canvas); }
.sod-stage[data-phone='form'] .sod-sign--form,
.sod-stage[data-phone='thanks'] .sod-sign--thanks { display: block; }
.sod-sign__title { margin-bottom: 8px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.sod-sign__lead { color: var(--c-ink-muted); font-size: 13px; }
.sod-sign__text {
  max-height: 86px;
  overflow: hidden;
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  background: var(--c-surface-sunk);
  color: var(--c-ink-muted);
  font-size: 11px;
  line-height: 1.4;
}
.sod-sign__text p { margin-bottom: 0.6em; }
.sod-sign .sod-field { margin-bottom: 9px; }
.sod-sign .sod-label { margin-bottom: 3px; font-size: 11.5px; }
.sod-sign .sod-input { min-height: 28px; line-height: 26px; font-size: 12px; }
.sod-check { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; font-size: 11.5px; }
.sod-check__box {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border: 1px solid var(--c-line-field, var(--c-line-strong));
  border-radius: 4px;
  background: var(--c-canvas);
  color: transparent;
}
.sod-check__box svg { display: block; width: 100%; height: 100%; }
.sod-check__box.is-on { border-color: transparent; background: var(--c-accent); color: var(--c-accent-ink); }
.sod-pad { display: block; line-height: 0; border: 1px solid var(--c-line); border-radius: 8px; background: #fff; color: #111; }
.sod-pad svg { display: block; width: 100%; height: 76px; }
.sod-stroke { fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.sod-pad.is-drawn .sod-stroke { stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s ease-in-out; }
.sod-sign--form .sod-btn { margin-top: 2px; }

@media (min-width: 576px) {
  .sod { max-width: 1040px; margin-inline: auto; }
}

/* ── The pictures on the landing's step cards (render.mjs STEP_VIZ) ─────────────────────────────────────────────
   Each is a miniature of its own step, in the product's tokens (accent, dark and light follow by themselves). */
.lp-viz--scene { height: 8.25rem; }
.sfv { direction: ltr; color: var(--c-ink); font-family: var(--font-mono, ui-monospace, monospace); font-size: 0.6875rem; }
.sfv, .sfv * { box-sizing: border-box; }
.sfv i, .sfv u, .sfv b { font-style: normal; text-decoration: none; display: block; }

/* 1. the waiver being written, every edit a version */
.sfv-doc { width: 9.5rem; }
.sfv-doc__tabs { display: flex; gap: 3px; padding-inline-start: 8px; }
.sfv-doc__tabs > b { padding: 2px 7px; border-radius: 6px 6px 0 0; border: 1px solid var(--c-line-strong); border-bottom: 0; background: var(--c-surface-2); color: var(--c-ink-muted); font-weight: 600; animation: sfv-tab 7.5s infinite; }
.sfv-doc__tabs > b:nth-child(2) { animation-delay: 2.5s; } .sfv-doc__tabs > b:nth-child(3) { animation-delay: 5s; }
@keyframes sfv-tab { 0%, 30% { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-ink, #fff); } 34%, 100% { background: var(--c-surface-2); border-color: var(--c-line-strong); color: var(--c-ink-muted); } }
.sfv-doc__page { display: grid; gap: 7px; padding: 11px 10px; border-radius: 8px; background: var(--c-surface); border: 1px solid var(--c-line-strong); }
.sfv-doc__page > u { height: 5px; border-radius: 3px; background: var(--c-line-strong); }
.sfv-doc__page > u:nth-child(2) { width: 82%; }
.sfv-doc__page > u.is-typed { background: var(--c-ink); width: 0; animation: sfv-type 2.5s steps(8) infinite; }
@keyframes sfv-type { 0%, 10% { width: 0; } 70%, 100% { width: 64%; } }

/* 2. signing on a phone with a finger */
.sfv-phone__body { position: relative; width: 6.2rem; height: 6.9rem; padding: 12px 9px 9px; border-radius: 14px; background: var(--c-surface); border: 2px solid var(--c-ink); display: grid; gap: 5px; align-content: start; }
.sfv-phone__body > u { height: 4px; border-radius: 2px; background: var(--c-line-strong); }
.sfv-phone__body > u:nth-child(2) { width: 70%; }
.sfv-phone__body > svg { width: 100%; margin-top: 6px; color: var(--c-accent); border-bottom: 1px dashed var(--c-line-strong); }
.sfv-phone__body > svg > path { stroke-dasharray: 150; stroke-dashoffset: 150; animation: sfv-sign 5s ease-in-out infinite; }
@keyframes sfv-sign { 0%, 8% { stroke-dashoffset: 150; } 55%, 100% { stroke-dashoffset: 0; } }
.sfv-phone__body > i { position: absolute; inset-block-end: 8px; inset-inline-end: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--c-accent); opacity: 0; transform: scale(0.4); animation: sfv-ok 5s infinite; }
.sfv-phone__body > i::after { content: ''; position: absolute; left: 4px; top: 4px; width: 7px; height: 4px; border: solid var(--c-accent-ink, #fff); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
@keyframes sfv-ok { 0%, 58% { opacity: 0; transform: scale(0.4); } 66%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* 3. one signature found among many */
.sfv-find { width: 10rem; display: grid; gap: 7px; }
.sfv-find__field { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 999px; background: var(--c-surface); border: 1px solid var(--c-line-strong); }
.sfv-find__field > i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--c-ink); position: relative; flex: none; }
.sfv-find__field > i::after { content: ''; position: absolute; width: 5px; height: 2px; background: var(--c-ink); left: 6px; top: 7px; transform: rotate(45deg); border-radius: 1px; }
.sfv-find__field > u { height: 5px; border-radius: 3px; background: var(--c-ink); width: 0; animation: sfv-query 5s steps(6) infinite; }
@keyframes sfv-query { 0%, 6% { width: 0; } 34%, 100% { width: 45%; } }
.sfv-find__rows { display: grid; gap: 4px; }
.sfv-find__rows > span { display: block; height: 15px; border-radius: 5px; background: var(--c-surface); border: 1px solid var(--c-line); opacity: 1; animation: sfv-dim 5s infinite; }
.sfv-find__rows > span.is-hit { position: relative; animation-name: sfv-hit; }
.sfv-find__rows > span.is-hit > b { position: absolute; inset-inline-start: 7px; top: 4px; width: 45%; height: 5px; border-radius: 3px; background: var(--c-ink); }
@keyframes sfv-dim { 0%, 34% { opacity: 1; } 44%, 100% { opacity: 0.3; } }
@keyframes sfv-hit { 0%, 34% { border-color: var(--c-line); background: var(--c-surface); } 44%, 100% { border-color: var(--c-accent); background: color-mix(in srgb, var(--c-accent) 12%, var(--c-surface)); } }


/* A second block inside one band: its heading stands off the cards above, and the closing sentence sits close to its
   grid (kit landing.css has the same rule from 2026-11-14; here until the kit is vendored again). */
:is(.lp-bento, .lp-steps, ol, ul) + .lp-head-centre { margin-top: 4rem; }
:is(.lp-bento, .lp-steps, ol, ul) + .lp-head-centre:last-child { margin-top: 1.75rem; margin-bottom: 0; }
