/* Replayink — the site is a document with a margin, and the only colour on it
   is the colour of a mark someone made. Chrome stays achromatic; highlighter, sticky
   notes and comment pins carry every bit of hue on the page. */

:root {
  --paper:      #fbfbf9;
  --paper-sunk: #f4f4f0;
  --ink:        #16181d;
  --ink-soft:   #5a6070;
  --ink-faint:  #8d93a1;
  --rule:       #e3e3dc;

  /* Marks. Never used for buttons, borders, headings or backgrounds. */
  --hl-yellow:  #ffe45c;
  --hl-blue:    #a8d8ff;
  --note-paper: #fff3b0;
  --pin:        #e5484d;

  /* One page width for everything: prose, demos and screenshots all start at the same left
     edge and stop at the same right edge. The measure inside it stays readable. */
  --page: 68rem;
  --measure: 34rem;      /* ~72 characters at this size */
  --gap: 2.75rem;

  --serif: "Source Serif 4", "Iowan Old Style", Charter, Georgia, serif;
  --hand:  "Caveat", "Bradley Hand", cursive;
  --ui:    ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14161a; --paper-sunk: #1b1e24;
    --ink: #e9eaee; --ink-soft: #a2a8b6; --ink-faint: #767c8a; --rule: #2a2e36;
    --hl-yellow: #6b5c12; --hl-blue: #2b4d6e; --note-paper: #3a3418; --pin: #ff6369;
  }
}

* { box-sizing: border-box; }

/* Any `display` rule of ours outranks the browser's own [hidden] { display: none }, so a row that
   is hidden in the DOM keeps painting — which is how the booking showed a bag charge that was not
   in the total. State it once, for everything. */
[hidden] { display: none !important; }


html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--serif);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}


/* ---------- long-form document pages: privacy, terms, support ----------
   One column of prose at a comfortable measure, with the contents beside it on a wide screen and
   above it on a narrow one. The section being read is marked with the brand's highlighter, and
   section numbers sit in small ink tiles with the same stroke under them as the logo. */

.legal { padding: 3.25rem 0 4.5rem; }
.legal-head { max-width: 46rem; padding-bottom: 2.25rem; margin-bottom: 2.75rem; border-bottom: 1px solid var(--rule); }
.legal-head h1 { max-width: none; margin-bottom: .85rem; }
.legal-head .lead { max-width: 40rem; margin-bottom: 1.35rem; }
.legal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; margin: 0; max-width: none; font-family: var(--ui); font-size: .8125rem; color: var(--ink-faint); }
.legal-meta span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; margin-right: .75rem; border-radius: 50%; background: currentColor; vertical-align: middle; }
.legal-grid { display: grid; grid-template-columns: 13rem minmax(0, 41rem); gap: 4.5rem; align-items: start; }

.doc-toc { position: sticky; top: 5.25rem; font-family: var(--ui); font-size: .8125rem; }
.doc-toc p { margin: 0 0 .75rem; font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.doc-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.doc-toc a { display: flex; gap: .6rem; padding: .34rem 0 .34rem .95rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; line-height: 1.35; transition: color .12s ease, border-color .12s ease; }
.doc-toc a:hover { color: var(--ink); }
.doc-toc a[aria-current] { color: var(--ink); font-weight: 600; border-left-color: var(--mark); }
.doc-toc a span { flex: none; min-width: 1.1em; color: var(--ink-faint); font-weight: 500; font-variant-numeric: tabular-nums; }

.doc { font-size: 1.0625rem; line-height: 1.72; }
.doc p, .doc li { max-width: none; }
.doc strong { font-weight: 600; }
.doc h2 { display: flex; align-items: baseline; gap: .75rem; margin: 3rem 0 1rem; padding-top: 2.25rem; border-top: 1px solid var(--rule); font-size: clamp(1.35rem, 2.4vw, 1.6rem); scroll-margin-top: 5rem; }
.doc > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc h2 .num { flex: none; display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 7px; background: var(--ink); color: var(--paper); font: 600 .8125rem/1 var(--ui); box-shadow: inset 0 -2.5px 0 var(--mark); transform: translateY(-.12em); }
.doc h3 { margin: 2.1rem 0 .6rem; font-size: 1.125rem; line-height: 1.35; scroll-margin-top: 5rem; }
.doc .anchor { margin-left: .45rem; color: var(--ink-faint); font: 500 .8em var(--ui); text-decoration: none; opacity: 0; transition: opacity .12s ease; }
.doc h2:hover .anchor, .doc h3:hover .anchor, .doc .anchor:focus-visible { opacity: 1; }
.doc ul { list-style: none; margin: 0 0 1.35rem; padding: 0; }
.doc li { position: relative; padding-left: 1.4rem; margin-bottom: .55rem; }
.doc li::before { content: ""; position: absolute; left: .15rem; top: .82em; width: .55rem; height: 2px; border-radius: 1px; background: var(--ink-faint); }
.doc a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); text-underline-offset: .2em; }
.doc a:hover { text-decoration-color: var(--ink); }
.doc code { font: .84em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--paper-sunk); border: 1px solid var(--rule); padding: .08em .38em; border-radius: 5px; overflow-wrap: anywhere; }
.doc-callout { margin: 1.6rem 0 1.9rem; padding: 1.1rem 1.3rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper-sunk); box-shadow: inset 3px 0 0 var(--mark); font-size: 1rem; line-height: 1.65; }
.doc-callout.warn { box-shadow: inset 3px 0 0 var(--pin); }
.doc-callout p:last-child { margin-bottom: 0; }
.doc .qa { padding: 1.15rem 0; border-top: 1px solid var(--rule); scroll-margin-top: 5rem; }
.doc h2 + .qa { border-top: 0; padding-top: .25rem; }
.doc .qa h3 { margin: 0 0 .35rem; font-size: 1.0625rem; }
.doc .qa p { margin: 0; }
.doc .to-top { margin: 3rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-family: var(--ui); font-size: .8125rem; }
.doc .to-top a { color: var(--ink-soft); text-decoration: none; }
.top nav a[aria-current="page"] { color: var(--ink); font-weight: 550; }

@media (max-width: 56rem) {
  .legal { padding-top: 2.25rem; }
  .legal-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .doc-toc { position: static; margin-bottom: 2.5rem; padding: 1rem 1.15rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper-sunk); }
  .doc-toc ol { border-left: 0; }
  .doc-toc a { padding-left: 0; border-left: 0; }
  .doc-toc a[aria-current] { font-weight: 500; color: var(--ink-soft); }
}

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--rule); margin-top: 1rem;
  padding: 2rem 0 3rem;
  font-family: var(--ui); font-size: .875rem; color: var(--ink-faint);
}
.foot a { color: var(--ink-soft); }
.foot p { margin: 0 0 .4rem; }

:focus-visible { outline: 2px solid var(--pin); outline-offset: 3px; border-radius: 2px; }

/* ================= the live annotator ================= */

.tools {
  display: flex; align-items: center; flex-wrap: wrap; gap: .4rem;
  margin: 1.75rem 0 .75rem; padding: .4rem;
  background: var(--paper-sunk); border: 1px solid var(--rule); border-radius: 10px;
  font-family: var(--ui);
}
.tool {
  display: inline-flex; align-items: center; gap: .4rem;
  font: 500 .8125rem/1 var(--ui); color: var(--ink-soft);
  background: transparent; border: 1px solid transparent; border-radius: 7px;
  padding: .45rem .6rem; cursor: pointer;
}
.tool svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tool:hover { color: var(--ink); background: var(--paper); }
.tool[aria-pressed="true"] { color: var(--ink); background: var(--paper); border-color: var(--rule); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.tool.ghost { color: var(--ink-faint); }
.tools-sep { width: 1px; align-self: stretch; background: var(--rule); margin: .15rem .3rem; }
.swatches { display: inline-flex; gap: .3rem; padding: 0 .1rem; }
.sw {
  width: 20px; height: 20px; border-radius: 50%; cursor: pointer;
  background: var(--c); border: 2px solid transparent; outline-offset: 2px; padding: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.sw.is-on { border-color: var(--paper); box-shadow: 0 0 0 2px var(--c), inset 0 0 0 1px rgba(0,0,0,.12); }

.canvas {
  position: relative; padding: 1.15rem 1.3rem .6rem;
  border: 1px solid var(--rule); border-radius: 10px; background: var(--paper);
  transition: box-shadow .25s ease;
}
.canvas[data-tool="highlight"], .canvas[data-tool="pen"] { cursor: text; }
.canvas[data-tool="note"] { cursor: copy; }
.canvas p { margin: 0 0 .9rem; }
.canvas.flash { box-shadow: 0 0 0 3px color-mix(in srgb, var(--hl-blue) 55%, transparent); }

/* A mark carries its category's colour and nothing else does. */
.m { border-radius: .18em; padding: .04em 0; }
.m.highlight { background: color-mix(in srgb, var(--c) 34%, transparent); box-shadow: 0 0 0 .04em color-mix(in srgb, var(--c) 34%, transparent); }
.m.pen { background: none; border-bottom: 2.5px solid var(--c); }
.m[data-id] { outline: 2px solid transparent; outline-offset: 2px; }

.sticky {
  position: absolute; width: 10.5rem; padding: .6rem .7rem;
  background: color-mix(in srgb, var(--c) 26%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  font-family: var(--hand); font-size: 1.0625rem; line-height: 1.25; color: var(--ink);
  transform: rotate(-1.2deg); box-shadow: 0 6px 14px -10px rgba(0,0,0,.5);
  pointer-events: none;
}

.canvas-foot {
  display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap;
  margin-top: .7rem; font-family: var(--ui); font-size: .8125rem; color: var(--ink-faint);
}
.count { color: var(--ink-soft); }
.linky {
  font: 500 .8125rem/1 var(--ui); color: var(--ink); background: none;
  border: 0; border-bottom: 1px solid var(--rule); padding: 0 0 2px; cursor: pointer;
}
.linky:hover { border-bottom-color: var(--ink); }

/* ================= the notes panel ================= */

.panel { margin-top: 1.5rem; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--paper); }
.panel-head {
  display: flex; align-items: center; gap: .5rem;
  padding: .7rem .85rem; border-bottom: 1px solid var(--rule); background: var(--paper-sunk);
  font-family: var(--ui); font-size: .875rem; font-weight: 600;
}
.panel-head .ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.panel-title { display: inline-flex; align-items: center; gap: .45rem; }
.panel-n { margin-left: auto; font-weight: 400; color: var(--ink-faint); }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; padding: .7rem .85rem; border-bottom: 1px solid var(--rule); }
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  font: 500 .78125rem/1 var(--ui); color: var(--ink-soft);
  background: var(--paper-sunk); border: 1px solid var(--rule); border-radius: 20px;
  padding: .34rem .6rem; cursor: pointer;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip .n { color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.chip.on { color: var(--ink); border-color: var(--ink-faint); background: var(--paper); }
.chip.zero { opacity: .5; }
.rows { list-style: none; margin: 0; padding: 0; max-height: 15rem; overflow-y: auto; }
.rows .empty { padding: 1.1rem .85rem; font-family: var(--ui); font-size: .8125rem; color: var(--ink-faint); }
.row {
  display: grid; grid-template-columns: auto 1fr; gap: .1rem .55rem; align-items: baseline;
  padding: .6rem .85rem; border-bottom: 1px solid var(--rule); cursor: pointer;
}
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--paper-sunk); }
.row .dot { width: 9px; height: 9px; border-radius: 2px; background: var(--c); grid-row: span 2; align-self: center; }
.row .q { font-size: .9375rem; }
.row .meta { grid-column: 2; font-family: var(--ui); font-size: .75rem; color: var(--ink-faint); }

/* ================= the recording stage ================= */

.body.wide { max-width: 46rem; }
.stagewrap { margin: 1.75rem 0 2rem; margin-left: var(--margin); }
.stage { --radius: 12px; position: relative; }
.stage-frame {
  position: relative; overflow: hidden;
  border: 1px solid var(--rule); border-radius: var(--radius) var(--radius) 0 0;
  background: #f7f8fa;
  transition: transform .55s cubic-bezier(.2,.8,.25,1), box-shadow .55s ease, border-color .55s ease;
}
.stage[data-state="live"] .stage-frame {
  border-radius: var(--radius);
  border-color: color-mix(in srgb, var(--pin) 40%, var(--rule));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pin) 12%, transparent), 0 26px 50px -34px rgba(0,0,0,.5);
}
.screen { position: relative; display: flex; height: 27rem; font-family: var(--ui); font-size: .8125rem; color: #101319; }
/* The children are inert during playback so nothing can be typed into or navigated, but the
   screen itself must stay hit-testable — clicking it is how a viewer takes over early. */
.stage:not([data-state="live"]) .screen { user-select: none; cursor: pointer; }
.stage:not([data-state="live"]) .screen > * { pointer-events: none; }
.stage[data-state="live"] .screen { cursor: default; }

/* the little app */
.k-side { width: 152px; flex: none; background: #fff; border-right: 1px solid #e5e7eb; padding: 12px 9px; }
.k-brand { display: flex; align-items: center; gap: 7px; font-weight: 650; font-size: .8125rem; padding: 3px 6px 14px; }
.k-brand i { width: 16px; height: 16px; border-radius: 5px; background: #4338ca; }
.k-nav { display: block; padding: 6px 8px; border-radius: 6px; color: #646c7c; font-weight: 500; cursor: pointer; }
.k-nav:hover { background: #f2f3f7; color: #101319; }
.k-nav.on { background: #eef0fe; color: #4338ca; }
.k-main { flex: 1; padding: 18px 22px; overflow: auto; }
.k-main h3 { margin: 0 0 2px; font-family: var(--ui); font-size: 1.0625rem; font-weight: 650; letter-spacing: -.01em; }
.k-sub { margin: 0 0 16px; color: #646c7c; }
.k-bar { display: flex; gap: 8px; margin-bottom: 12px; }
.k-btn { font: 550 .8125rem/1 var(--ui); padding: 7px 12px; border-radius: 6px; border: 1px solid #e5e7eb; background: #fff; color: #101319; cursor: pointer; }
.k-btn.primary { background: #4338ca; border-color: #4338ca; color: #fff; }
.k-btn.busy { opacity: .65; }
.k-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.k-table th { text-align: left; font-size: .6875rem; color: #646c7c; font-weight: 600; padding: 8px 11px; border-bottom: 1px solid #e5e7eb; background: #fbfbfd; }
.k-table td { padding: 8px 11px; border-bottom: 1px solid #f1f2f5; }
.k-table tr:last-child td { border-bottom: 0; }
.k-tag { font-size: .6875rem; font-weight: 600; padding: 2px 7px; border-radius: 20px; }
.k-tag.paid { background: #e7f7ee; color: #0d7a43; } .k-tag.due { background: #fdf1e3; color: #a45a09; } .k-tag.over { background: #fdeaea; color: #b3261e; }
.k-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; max-width: 340px; }
.k-card.k-plain { color: #646c7c; }
.k-field { display: block; margin-bottom: 11px; }
.k-field span { display: block; font-weight: 600; margin-bottom: 4px; }
.k-field input, .k-field select { font: inherit; width: 100%; padding: 7px 9px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; color: #101319; }
.k-toast { margin-top: 12px; background: #e7f7ee; color: #0d7a43; border-radius: 7px; padding: 9px 12px; font-weight: 550; max-width: 340px; animation: pop .4s cubic-bezier(.2,.9,.3,1); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.lit { animation: lit 1.4s ease-out; }
@keyframes lit { 0%, 40% { box-shadow: 0 0 0 3px color-mix(in srgb, #4338ca 35%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* the scripted cursor and the hotspot it lands on */
.cursor {
  position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; background: rgba(229,72,77,.92); box-shadow: 0 0 0 5px rgba(229,72,77,.22);
  opacity: 0; pointer-events: none;
  transition: transform 640ms cubic-bezier(.32,.72,.28,1), opacity .3s ease;
}
.cursor.click { animation: click .42s ease-out; }
@keyframes click { 0% { box-shadow: 0 0 0 5px rgba(229,72,77,.22); } 55% { box-shadow: 0 0 0 20px rgba(229,72,77,0); } 100% { box-shadow: 0 0 0 5px rgba(229,72,77,.22); } }
.hotspot {
  position: absolute; border-radius: 7px; opacity: 0; pointer-events: none;
  box-shadow: 0 0 0 2px rgba(229,72,77,.55), 0 0 0 7px rgba(229,72,77,.14);
  transition: all .5s cubic-bezier(.32,.72,.28,1);
}
/* the sweep that says: everything the author used is live now */
.scan { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(67,56,202,.22) 50%, transparent 58%); }
.scan.go { opacity: 1; animation: scan .72s ease-in-out; }
@keyframes scan { from { transform: translateX(-105%); } to { transform: translateX(105%); } }

/* the "press play" veil, before anything has happened */
.glass {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: color-mix(in srgb, var(--paper) 62%, transparent); backdrop-filter: blur(1.5px);
  transition: opacity .45s ease, visibility .45s;
}
.stage[data-state="playing"] .glass, .stage[data-state="live"] .glass, .stage[data-state="paused"] .glass { opacity: 0; visibility: hidden; }
.bigplay {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 550 .9375rem/1 var(--ui); color: var(--paper); background: var(--ink);
  border: 0; border-radius: 999px; padding: .7rem 1.25rem; cursor: pointer;
  box-shadow: 0 12px 26px -14px rgba(0,0,0,.6);
}
.bigplay svg { width: 15px; height: 15px; fill: currentColor; }

/* the player chrome, which leaves when the recording ends */
.bar {
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem .8rem; border: 1px solid var(--rule); border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius); background: var(--paper-sunk);
  font-family: var(--ui); font-size: .75rem; color: var(--ink-soft);
  transition: opacity .4s ease, transform .5s cubic-bezier(.2,.8,.25,1), margin-top .5s ease;
  transform-origin: top;
}
.stage[data-state="live"] .bar { opacity: 0; transform: translateY(-6px) scaleY(.6); margin-top: -3.1rem; pointer-events: none; }
.bar-play { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); cursor: pointer; }
.bar-play svg { width: 11px; height: 11px; fill: currentColor; }
.bar-play.is-playing svg { display: none; }
.bar-play.is-playing::after { content: ""; width: 8px; height: 9px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.track { flex: 1; height: 4px; border-radius: 4px; background: var(--rule); overflow: hidden; }
.fill { height: 100%; width: 0; background: var(--pin); transition: width .35s linear; }
.time { font-variant-numeric: tabular-nums; }
.step { color: var(--ink-faint); min-width: 12rem; text-align: right; }

.handover {
  margin-top: .9rem; padding: .8rem 1rem;
  border: 1px dashed color-mix(in srgb, var(--pin) 45%, var(--rule));
  border-radius: 9px; background: color-mix(in srgb, var(--pin) 6%, transparent);
  font-family: var(--ui); font-size: .8125rem; color: var(--ink-soft);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .45s ease .15s, transform .45s cubic-bezier(.2,.8,.25,1) .15s;
}
.handover b { color: var(--ink); }
.handover .linky { margin-left: .5rem; }
.stage[data-state="live"] .handover { opacity: 1; transform: none; pointer-events: auto; }

.claims { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.claims h3 { margin: 0 0 .3rem; font-size: 1rem; }
.claims p { margin: 0; font-size: .9375rem; color: var(--ink-soft); }

/* ================= screenshots ================= */

.shot { margin: 1.75rem 0 0; opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.25,1); }
.shot.in { opacity: 1; transform: none; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-sunk); }
.shot figcaption { font-family: var(--ui); font-size: .8125rem; color: var(--ink-faint); margin-top: .55rem; }

/* ================= presenter spotlight ================= */

.spot { position: relative; }
.spotlight {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  transition: opacity .4s ease;
  background: radial-gradient(circle 130px at var(--x, 50%) var(--y, 50%),
    transparent 0, transparent 62%, color-mix(in srgb, var(--ink) 62%, transparent) 100%);
}
.spot.lit .spotlight { opacity: 1; }

/* ================= keys, CTA, misc ================= */

.after-keys { margin-top: 1.4rem; }
.keys { font-family: var(--ui); font-size: .875rem; color: var(--ink-soft); margin: 1.25rem 0 0; padding: 0; list-style: none;
  display: grid; gap: .45rem .9rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.keys kbd, .kbd { font: 600 .75rem/1 var(--ui); color: var(--ink); background: var(--paper-sunk);
  border: 1px solid var(--rule); border-radius: 4px; padding: .25rem .4rem; margin-right: .45rem; }

/* ================= narrow ================= */

@media (max-width: 78rem) {
  .hero-marks { position: static; margin: 2rem 0 0; }
  .note { width: 100%; max-width: 18rem; }
}
@media (max-width: 60rem) {
  .stagewrap { margin-left: 0; }
  .screen { height: 24rem; }
  .step { display: none; }
}
@media (max-width: 44rem) {
  :root { --margin: 0rem; }
  .band::before { display: none; }
  .band { padding: 2.5rem 0; }
  .hero { padding-top: 3rem; }
  .pin { position: static; display: inline-block; margin-bottom: .5rem; }
  .body { margin-left: 0; }
  .screen { height: 21rem; font-size: .75rem; }
  .k-side { width: 118px; }
  .k-main { padding: 14px 14px; }
  .k-table th:nth-child(3), .k-table td:nth-child(3) { display: none; }
  .tools { gap: .3rem; }
  .tool span { display: none; }
}


/* ================= before / after wipe ================= */

.wipe { --p: 42%; }
.wipe-inner {
  position: relative; overflow: hidden; border: 1px solid var(--rule); border-radius: 6px;
  cursor: ew-resize; touch-action: none; user-select: none;
}
.wipe-inner img { display: block; width: 100%; height: auto; border: 0; border-radius: 0; }
/* Clipping the top layer rather than narrowing it: a narrowed box would squash the screenshot
   inside it, and the whole point is that both halves are the same page at the same size. */
.wipe-after { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.wipe-after img { width: 100%; height: auto; display: block; }
.wipe-handle {
  position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px;
  background: var(--paper); box-shadow: 0 0 0 1px rgba(0,0,0,.25);
  transform: translateX(-1px); cursor: ew-resize;
}
.wipe-handle span {
  position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; background: var(--paper); box-shadow: 0 2px 10px rgba(0,0,0,.3);
  display: grid; place-items: center;
}
.wipe-handle span::before, .wipe-handle span::after {
  content: ""; position: absolute; width: 0; height: 0;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.wipe-handle span::before { border-right: 6px solid var(--ink-soft); left: 7px; }
.wipe-handle span::after  { border-left: 6px solid var(--ink-soft); right: 7px; }
.wipe.dragging .wipe-handle { box-shadow: 0 0 0 1px var(--pin); }
.wipe-handle:focus-visible { outline: 2px solid var(--pin); outline-offset: 2px; }

.foot-acts { display: inline-flex; gap: .85rem; }
.canvas-foot .aside { flex-basis: 100%; }

/* (1) The recording band is deliberately 100vw wide. On a platform with classic scrollbars that
   is ~15px wider than the page, which would scroll the whole document sideways. Clip instead —
   unlike `hidden` this makes no scroll container, so nothing else changes. */
html { overflow-x: clip; }

/* (3) An install button in the hero, next to the invitation to try it. */
.hero-cta { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin: 1.5rem 0 .25rem; }
.hero-cta .aside { font-size: .8125rem; }

/* (4) A note is written where it lands, the way the extension writes one. */
.sticky.editing { pointer-events: auto; box-shadow: 0 0 0 2px var(--c), 0 8px 18px -10px rgba(0,0,0,.5); }
.sticky textarea {
  width: 100%; border: 0; background: transparent; resize: none; outline: none; overflow: hidden;
  font: inherit; color: inherit; padding: 0; margin: 0; min-height: 3.4rem;
}

/* ================= one page grid ================= */

.wrap { width: min(var(--page), 100% - 2.5rem); margin-inline: auto; }

.band { padding: 4.5rem 0; border-top: 1px solid var(--rule); }
.band:first-of-type { border-top: 0; }
.band.tint { background: var(--paper-sunk); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band.tint + .band { border-top: 0; }

.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 0; border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(9px);
  font-family: var(--ui); font-size: .875rem;
}
.top .name { font-family: var(--serif); font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: .45rem; }
/* The mark is an ink tile, which the dark page swallows; a hairline keeps its edge. */
@media (prefers-color-scheme: dark) { .top .name img { border-radius: 22%; box-shadow: 0 0 0 1px var(--rule); } }
.top nav { margin-left: auto; display: flex; gap: 1.15rem; align-items: center; }
.top a { color: var(--ink-soft); text-decoration: none; }
.top a:hover { color: var(--ink); }
.top .mini {
  font-weight: 550; color: var(--paper); background: var(--ink);
  padding: .38rem .7rem; border-radius: 6px;
}
.top .mini:hover { color: var(--paper); opacity: .88; }

/* ================= type ================= */

h1 { margin: 0 0 1.15rem; font-size: clamp(2.1rem, 5vw, 3rem); font-weight: 600; line-height: 1.1; letter-spacing: -.025em; max-width: 16ch; }
h2 { margin: 0 0 .85rem; font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 600; line-height: 1.18; letter-spacing: -.018em; }
h3 { margin: 0 0 .35rem; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.008em; }
p { margin: 0 0 1.05rem; max-width: var(--measure); }
.lead { font-size: 1.1875rem; color: var(--ink-soft); }
.eyebrow { font-family: var(--ui); font-size: .8125rem; font-weight: 600; color: var(--pin); margin: 0 0 .6rem; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.aside { font-family: var(--ui); font-size: .875rem; color: var(--ink-faint); }
:focus-visible { outline: 2px solid var(--pin); outline-offset: 3px; border-radius: 3px; }

/* ================= the feature row ================= */

/* Prose and its demo, always the same two tracks, so every section lines up with every other. */
.feature { display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: var(--gap); align-items: center; }
.feature + .feature { margin-top: 4rem; }
.feature .text > :last-child { margin-bottom: 0; }
/* Flipping the row has to move the track widths too, or the demo lands in the prose column. */
.feature.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); }
.feature.flip .text { order: 2; }

/* ================= the frame: every demo is the same shape ================= */

.frame {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border: 1px solid var(--rule); border-radius: 11px; background: var(--paper);
  box-shadow: 0 22px 44px -34px rgba(0,0,0,.45);
}
.frame > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame-bar {
  position: absolute; inset: 0 0 auto 0; height: 30px; z-index: 4;
  display: flex; align-items: center; gap: .45rem; padding: 0 .7rem;
  background: var(--paper-sunk); border-bottom: 1px solid var(--rule);
  font-family: var(--ui); font-size: .6875rem; color: var(--ink-faint);
}
.frame-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); flex: none; }
.frame-bar .addr {
  margin-left: .4rem; flex: 1; background: var(--paper); border: 1px solid var(--rule);
  border-radius: 5px; padding: .16rem .5rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.frame-body { position: absolute; inset: 30px 0 0 0; overflow: hidden; }
.frame.bare .frame-body { inset: 0; }

figure.frame { margin: 0; }
figure.frame + figcaption, .cap { font-family: var(--ui); font-size: .8125rem; color: var(--ink-faint); margin-top: .6rem; }

/* the page every demo marks up, drawn once and reused */
.doc-page { padding: 1.15rem 1.35rem; font-size: .8125rem; line-height: 1.62; color: var(--ink); height: 100%; overflow: hidden; }
.doc-page h4 { margin: 0 0 .5rem; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.015em; }
.doc-page p { margin: 0 0 .7rem; max-width: none; }
.doc-page .byline { font-family: var(--ui); font-size: .6875rem; color: var(--ink-faint); margin-bottom: .8rem; }

/* ================= reveal ================= */

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.25,1); }
[data-reveal].in { opacity: 1; transform: none; }

/* ================= buttons ================= */

.actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap; }
.install {
  font-family: var(--ui); font-size: .9375rem; font-weight: 550;
  background: var(--ink); color: var(--paper);
  padding: .72rem 1.2rem; border-radius: 7px; text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem;
}
.install:hover { opacity: .88; }
.install svg { width: 16px; height: 16px; }
.linky { font: 550 .8125rem/1 var(--ui); color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--rule); padding: 0 0 2px; cursor: pointer; }
.linky:hover { border-bottom-color: var(--ink); }

/* ================= footer ================= */

.foot { border-top: 1px solid var(--rule); padding: 2.2rem 0 3.5rem; font-family: var(--ui); font-size: .875rem; color: var(--ink-faint); }
.foot a { color: var(--ink-soft); }
.foot p { margin: 0 0 .4rem; max-width: none; }

/* ================= narrow ================= */

@media (max-width: 62rem) {
  .feature { grid-template-columns: 1fr; gap: 1.6rem; }
  .feature.flip .text { order: 0; }
  .band { padding: 3.25rem 0; }
  p, .lead { max-width: none; }
}

/* ================= shared demo pieces ================= */

/* A pointer that the demos drive. Same object everywhere, so the page has one cursor idea. */
.ptr {
  position: absolute; left: 0; top: 0; width: 15px; height: 15px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: rgba(229,72,77,.92); box-shadow: 0 0 0 4px rgba(229,72,77,.2);
  opacity: 0; pointer-events: none; z-index: 6;
  transition: transform .62s cubic-bezier(.32,.72,.28,1), opacity .3s ease;
}
.ptr.on { opacity: 1; }
.ptr.tap { animation: tap .42s ease-out; }
@keyframes tap { 0% { box-shadow: 0 0 0 4px rgba(229,72,77,.2); } 55% { box-shadow: 0 0 0 17px rgba(229,72,77,0); } 100% { box-shadow: 0 0 0 4px rgba(229,72,77,.2); } }

.dm { border-radius: .18em; padding: .04em 0; transition: background .3s ease, box-shadow .3s ease; }
.dm.hl { background: color-mix(in srgb, var(--c) 34%, transparent); box-shadow: 0 0 0 .04em color-mix(in srgb, var(--c) 34%, transparent); }
.dm.grow { animation: grow .5s cubic-bezier(.2,.8,.3,1); }
@keyframes grow { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ================= comments ================= */

.pin-dot {
  position: absolute; width: 20px; height: 20px; border-radius: 50% 50% 50% 2px;
  background: var(--c, var(--pin)); color: #fff; z-index: 5;
  font: 600 .625rem/20px var(--ui); text-align: center; cursor: pointer;
  box-shadow: 0 3px 8px -3px rgba(0,0,0,.5);
  transform: scale(0); animation: pindrop .45s cubic-bezier(.2,1.3,.4,1) forwards;
}
@keyframes pindrop { to { transform: scale(1); } }
.pin-dot.active { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--pin)) 30%, transparent), 0 3px 8px -3px rgba(0,0,0,.5); }

.thread {
  position: absolute; z-index: 7; width: 12.5rem;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 9px;
  box-shadow: 0 14px 30px -16px rgba(0,0,0,.55); overflow: hidden;
  font-family: var(--ui); font-size: .6875rem;
  opacity: 0; transform: translateY(-4px) scale(.97); transform-origin: top left;
  transition: opacity .25s ease, transform .3s cubic-bezier(.2,.9,.3,1);
}
.thread.open { opacity: 1; transform: none; }
.thread-head { display: flex; align-items: center; gap: .35rem; padding: .4rem .55rem; border-bottom: 1px solid var(--rule); background: var(--paper-sunk); font-weight: 600; color: var(--ink); }
.thread-head i { width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--pin)); }
.msgs { padding: .45rem .55rem; display: grid; gap: .4rem; }
.msg { background: var(--paper-sunk); border-radius: 6px; padding: .35rem .45rem; color: var(--ink); animation: pop .3s cubic-bezier(.2,.9,.3,1); }
.msg .who { font-weight: 600; display: block; color: var(--ink-soft); font-size: .625rem; margin-bottom: .1rem; }
@keyframes pop { from { opacity: 0; transform: translateY(5px); } }
.msg-input { display: flex; gap: .3rem; padding: .45rem .55rem; border-top: 1px solid var(--rule); align-items: center; color: var(--ink-faint); }
.msg-input .box { flex: 1; border: 1px solid var(--rule); border-radius: 5px; padding: .25rem .4rem; background: var(--paper-sunk); min-height: 1.15rem; }
.caret { display: inline-block; width: 1px; height: .8em; background: var(--ink); vertical-align: -.1em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ================= sticky notes ================= */

.dnote {
  position: absolute; width: 8.5rem; padding: .5rem .6rem; z-index: 5;
  background: color-mix(in srgb, var(--c) 30%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  font-family: var(--hand); font-size: .9375rem; line-height: 1.22; color: var(--ink);
  box-shadow: 0 6px 14px -9px rgba(0,0,0,.55);
  transform: rotate(var(--rot, -1.5deg)) scale(.6); opacity: 0;
  animation: drop .45s cubic-bezier(.2,1.25,.4,1) forwards;
}
@keyframes drop { to { transform: rotate(var(--rot, -1.5deg)) scale(1); opacity: 1; } }

/* ================= share / two windows ================= */

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; height: 100%; padding: .7rem; background: var(--paper-sunk); }
.mini-win { position: relative; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: var(--paper); display: flex; flex-direction: column; }
.mini-bar { display: flex; align-items: center; gap: .3rem; padding: .25rem .45rem; border-bottom: 1px solid var(--rule); background: var(--paper-sunk); font: 500 .625rem/1 var(--ui); color: var(--ink-faint); }
.mini-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--rule); }
.mini-body { flex: 1; padding: .55rem .65rem; font-size: .6875rem; line-height: 1.55; overflow: hidden; position: relative; }
.mini-body p { margin: 0 0 .45rem; max-width: none; }
.mini-win.dim { opacity: .45; filter: saturate(.4); transition: opacity .5s ease, filter .5s ease; }

.linkpill {
  position: absolute; left: 50%; top: 50%; z-index: 8;
  transform: translate(-50%, -50%) scale(.9); opacity: 0;
  background: var(--ink); color: var(--paper); border-radius: 999px;
  padding: .4rem .75rem; font: 550 .6875rem/1 var(--ui); white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.7);
  transition: opacity .3s ease, transform .55s cubic-bezier(.2,.9,.3,1), left .8s cubic-bezier(.4,0,.2,1);
}
.linkpill.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.linkpill.flew { left: 76%; }

.ask {
  position: absolute; inset: auto .5rem .5rem .5rem; z-index: 9;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: .5rem .6rem;
  font: .625rem/1.35 var(--ui); color: var(--ink-soft);
  box-shadow: 0 12px 26px -16px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .35s cubic-bezier(.2,.9,.3,1);
}
.ask.show { opacity: 1; transform: none; }
.ask b { color: var(--ink); display: block; margin-bottom: .2rem; }
.ask .btns { display: flex; gap: .3rem; margin-top: .35rem; }
.ask .btns span { border: 1px solid var(--rule); border-radius: 5px; padding: .18rem .4rem; }
.ask .btns span.yes { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ================= sync across devices ================= */

.devices { display: grid; grid-template-columns: 1fr auto 1fr; gap: .6rem; align-items: center; height: 100%; padding: .8rem; background: var(--paper-sunk); }
.device { border: 1px solid var(--rule); border-radius: 9px; background: var(--paper); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.device .cap2 { font: 600 .625rem/1 var(--ui); color: var(--ink-faint); padding: .35rem .5rem; border-bottom: 1px solid var(--rule); background: var(--paper-sunk); }
.device .inner { flex: 1; padding: .5rem .6rem; font-size: .625rem; line-height: 1.5; overflow: hidden; }
.device .inner p { margin: 0 0 .4rem; max-width: none; }
.hop { position: relative; width: 2.2rem; display: grid; place-items: center; color: var(--ink-faint); }
.hop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.hop .spark { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--pin); opacity: 0; }
.hop.go .spark { animation: hop 1s cubic-bezier(.4,0,.3,1); }
@keyframes hop { 0% { opacity: 1; transform: translateX(-1.1rem); } 100% { opacity: 0; transform: translateX(1.1rem); } }

/* ================= presenter ================= */

.pres-stage { position: absolute; inset: 0; }
.pres-dim { position: absolute; inset: 0; z-index: 3; opacity: 0; transition: opacity .5s ease;
  background: radial-gradient(circle 78px at var(--px, 50%) var(--py, 50%), transparent 0, transparent 58%, color-mix(in srgb, var(--ink) 70%, transparent) 100%); }
.pres-stage[data-mode="spotlight"] .pres-dim { opacity: 1; }
.pres-laser { position: absolute; width: 13px; height: 13px; margin: -6px 0 0 -6px; border-radius: 50%; z-index: 6;
  background: #ff3b30; box-shadow: 0 0 12px 4px rgba(255,59,48,.55); opacity: 0; transition: opacity .3s ease, transform .55s cubic-bezier(.32,.72,.28,1); }
.pres-stage[data-mode="laser"] .pres-laser, .pres-stage[data-mode="ink"] .pres-laser { opacity: 1; }
.pres-ink { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.pres-ink path { fill: none; stroke: #ff3b30; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pres-dock {
  position: absolute; left: 50%; bottom: .7rem; transform: translateX(-50%); z-index: 8;
  display: flex; gap: .25rem; padding: .28rem; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 92%, transparent); box-shadow: 0 10px 26px -14px rgba(0,0,0,.8);
}
.pres-dock button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.pres-dock button svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.pres-dock button.on { background: #ff3b30; }

/* ================= shortcuts ================= */

.keycap {
  display: inline-grid; place-items: center; min-width: 1.85rem; height: 1.85rem; padding: 0 .4rem;
  font: 600 .75rem/1 var(--ui); color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 6px;
  transition: transform .1s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.keycap.hit { transform: translateY(2px); border-bottom-width: 1px; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.keygrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .55rem .9rem; margin: 0; padding: 0; list-style: none; font-family: var(--ui); font-size: .8125rem; color: var(--ink-soft); }
.keygrid li { display: flex; align-items: center; gap: .5rem; }
.toolstrip { position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); z-index: 6;
  display: grid; gap: .18rem; padding: .3rem; border-radius: 10px; background: color-mix(in srgb, var(--ink) 92%, transparent); }
.toolstrip button { width: 24px; height: 24px; border-radius: 6px; border: 0; background: transparent; color: #c9ccd4; display: grid; place-items: center; cursor: pointer; }
.toolstrip button svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.toolstrip button.on { background: #5b5bd6; color: #fff; }

/* the notes panel, as the shortcut demo shows it */
.mini-panel {
  position: absolute; right: 2.6rem; top: .6rem; bottom: .6rem; width: 11rem; z-index: 5;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 8px;
  font-family: var(--ui); font-size: .625rem; overflow: hidden;
  box-shadow: 0 12px 26px -18px rgba(0,0,0,.6);
  animation: slidein .35s cubic-bezier(.2,.9,.3,1);
}
@keyframes slidein { from { opacity: 0; transform: translateX(10px); } }
.mp-head { padding: .4rem .55rem; border-bottom: 1px solid var(--rule); background: var(--paper-sunk); font-weight: 600; color: var(--ink); }
.mp-row { display: flex; gap: .4rem; align-items: baseline; padding: .38rem .55rem; border-bottom: 1px solid var(--rule); color: var(--ink-soft); }
.mp-row i { width: 7px; height: 7px; border-radius: 2px; background: var(--c); flex: none; }

/* ================= the recording stage, in the shared frame ================= */

.stage { --radius: 11px; }
.screen { position: relative; display: flex; height: 100%; font-family: var(--ui); font-size: .8125rem; color: #101319; background: #f7f8fa; }
.stage:not([data-state="live"]) .screen { user-select: none; cursor: pointer; }
.stage:not([data-state="live"]) .screen > * { pointer-events: none; }
.stage[data-state="live"] #f-stage { border-color: color-mix(in srgb, var(--pin) 45%, var(--rule)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pin) 12%, transparent), 0 26px 50px -34px rgba(0,0,0,.5); }

.hotspot { position: absolute; border-radius: 7px; opacity: 0; pointer-events: none; z-index: 5;
  box-shadow: 0 0 0 2px rgba(229,72,77,.55), 0 0 0 7px rgba(229,72,77,.14);
  transition: all .5s cubic-bezier(.32,.72,.28,1); }
.scan { position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 7;
  background: linear-gradient(105deg, transparent 42%, rgba(67,56,202,.22) 50%, transparent 58%); }
.scan.go { opacity: 1; animation: scan .72s ease-in-out; }
@keyframes scan { from { transform: translateX(-105%); } to { transform: translateX(105%); } }
.glass { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center;
  background: color-mix(in srgb, var(--paper) 60%, transparent); backdrop-filter: blur(1.5px);
  transition: opacity .45s ease, visibility .45s; }
.stage[data-state="playing"] .glass, .stage[data-state="live"] .glass, .stage[data-state="paused"] .glass { opacity: 0; visibility: hidden; }
.bigplay { display: inline-flex; align-items: center; gap: .55rem; font: 550 .9375rem/1 var(--ui);
  color: var(--paper); background: var(--ink); border: 0; border-radius: 999px; padding: .7rem 1.25rem;
  cursor: pointer; box-shadow: 0 12px 26px -14px rgba(0,0,0,.6); }
.bigplay svg { width: 15px; height: 15px; fill: currentColor; }

.bar { display: flex; align-items: center; gap: .7rem; margin-top: .8rem; padding: .55rem .8rem;
  border: 1px solid var(--rule); border-radius: 9px; background: var(--paper-sunk);
  font-family: var(--ui); font-size: .75rem; color: var(--ink-soft);
  transition: opacity .4s ease, transform .5s cubic-bezier(.2,.8,.25,1), margin-top .5s ease; transform-origin: top; }
.stage[data-state="live"] .bar { opacity: 0; transform: translateY(-6px) scaleY(.6); margin-top: -2.6rem; pointer-events: none; }
.bar-play { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); cursor: pointer; }
.bar-play svg { width: 11px; height: 11px; fill: currentColor; }
.bar-play.is-playing svg { display: none; }
.bar-play.is-playing::after { content: ""; width: 8px; height: 9px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.track { flex: 1; height: 4px; border-radius: 4px; background: var(--rule); overflow: hidden; }
.fill { height: 100%; width: 0; background: var(--pin); transition: width .35s linear; }
.time { font-variant-numeric: tabular-nums; }

.handover { margin-top: .8rem; padding: .75rem 1rem; border: 1px dashed color-mix(in srgb, var(--pin) 45%, var(--rule));
  border-radius: 9px; background: color-mix(in srgb, var(--pin) 6%, transparent);
  font-family: var(--ui); font-size: .8125rem; color: var(--ink-soft);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .45s ease .15s, transform .45s cubic-bezier(.2,.8,.25,1) .15s; }
.handover b { color: var(--ink); }
.handover .linky { margin-left: .5rem; }
.stage[data-state="live"] .handover { opacity: 1; transform: none; pointer-events: auto; }

.claims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.claims p { margin: 0; font-size: .9375rem; color: var(--ink-soft); max-width: none; }
@media (max-width: 62rem) { .claims { grid-template-columns: 1fr; gap: 1.25rem; } }

/* ================= before / after wipe ================= */

figure.wipe { --p: 42%; cursor: ew-resize; touch-action: none; user-select: none; }
.wipe-after { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.wipe-after img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wipe-handle { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; z-index: 4;
  background: var(--paper); box-shadow: 0 0 0 1px rgba(0,0,0,.25); transform: translateX(-1px); cursor: ew-resize; }
.wipe-handle span { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; background: var(--paper); box-shadow: 0 2px 10px rgba(0,0,0,.3); display: grid; place-items: center; }
.wipe-handle span::before, .wipe-handle span::after { content: ""; position: absolute; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.wipe-handle span::before { border-right: 6px solid var(--ink-soft); left: 7px; }
.wipe-handle span::after { border-left: 6px solid var(--ink-soft); right: 7px; }
.wipe.dragging .wipe-handle { box-shadow: 0 0 0 1px var(--pin); }

/* ================= collaboration (in development) ================= */

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font: 600 .6875rem/1 var(--ui); letter-spacing: .01em;
  color: var(--ink); background: color-mix(in srgb, var(--hl-yellow) 55%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--hl-yellow) 70%, var(--rule));
  border-radius: 999px; padding: .32rem .6rem; margin-bottom: .7rem;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pin); }
.frame.soon { border-style: dashed; }
.frame.soon::after {
  content: "In development"; position: absolute; right: .55rem; bottom: .55rem; z-index: 9;
  font: 600 .625rem/1 var(--ui); color: var(--ink);
  background: color-mix(in srgb, var(--hl-yellow) 70%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--hl-yellow) 80%, var(--rule));
  border-radius: 5px; padding: .28rem .45rem;
}

.presence { position: absolute; right: .5rem; top: .45rem; z-index: 6; display: flex; align-items: center; gap: .25rem;
  font: 500 .625rem/1 var(--ui); color: var(--ink-faint); }
.presence .lbl { margin-left: .2rem; }
.av { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; flex: none;
  background: var(--c); color: #fff; font: 600 .5rem/1 var(--ui); letter-spacing: .01em; }
.thread.wide { width: 14.5rem; }
.thread-head .ago { margin-left: auto; font-weight: 400; color: var(--ink-faint); }
.msg.with-av { display: grid; grid-template-columns: auto 1fr; gap: .35rem; align-items: start; background: transparent; padding: .2rem 0; }
.msg.with-av > span:last-child { background: var(--paper-sunk); border-radius: 6px; padding: .3rem .42rem; }
.msg .at { color: var(--pin); font-weight: 600; }
.msg.typing .dots { display: inline-flex; gap: 3px; align-items: center; background: var(--paper-sunk); border-radius: 6px; padding: .45rem .5rem; }
.msg.typing .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-faint); animation: dot 1.1s infinite; }
.msg.typing .dots i:nth-child(2) { animation-delay: .18s; } .msg.typing .dots i:nth-child(3) { animation-delay: .36s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.mention-pop {
  position: absolute; left: .5rem; bottom: 2.1rem; z-index: 3;
  display: flex; align-items: center; gap: .35rem;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 7px;
  padding: .3rem .45rem; font: 550 .625rem/1 var(--ui); color: var(--ink);
  box-shadow: 0 10px 22px -14px rgba(0,0,0,.6); animation: pop .2s ease-out;
}

/* On a phone the masthead keeps its name and its one button; the section links are a scroll away. */
@media (max-width: 34rem) {
  .top nav a:not(.mini) { display: none; }
  .top .name { font-size: .9375rem; }
  .band { padding: 2.75rem 0; }
  .wrap { width: min(var(--page), 100% - 1.75rem); }
}

/* The hero leads the page: full-width copy over a full-width panel, both on the same grid. */
.hero { padding-top: 3.75rem; }
.hero-text { max-width: 40rem; margin-bottom: 2.25rem; }
.hero h1 { max-width: 18ch; font-size: clamp(2.2rem, 5.4vw, 3.4rem); }
.hero .lead { max-width: 34rem; }
.doc-page blockquote { margin: 0 0 .7rem; padding-left: .7rem; border-left: 2px solid var(--rule); color: var(--ink-soft); font-style: italic; }

/* ================= the headline feature ================= */

/* The recording is the thing nobody believes until they see it, so its band is the one that
   looks different: a deeper ground, a larger heading, and room around the panel. */
#recording {
  background: var(--paper-sunk);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 4.75rem 0 5rem;
  position: relative; overflow: hidden;
}
#recording::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 80%;
  background: radial-gradient(60% 60% at 50% 0%, color-mix(in srgb, var(--pin) 9%, transparent), transparent 70%);
  pointer-events: none;
}
#recording > .wrap { position: relative; }
h2.big { font-size: clamp(1.9rem, 4.4vw, 2.85rem); line-height: 1.1; letter-spacing: -.028em; margin-bottom: 1rem; }
.big-lead { font-size: 1.25rem; max-width: 42rem; margin-bottom: 2rem; }

/* the three steps */
.steps { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.steps li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: .15rem .7rem; align-items: center; }
.steps b { font-size: 1rem; font-weight: 600; }
.steps span:last-child { grid-column: 2; font-size: .9375rem; color: var(--ink-soft); line-height: 1.55; }
.step-ico { grid-row: span 2; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--rule); }
.step-ico.rec::after { content: ""; width: 13px; height: 13px; border-radius: 50%; background: var(--pin); }
.step-ico.stop::after { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--ink); }
.step-ico.link svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
@media (max-width: 62rem) { .steps { grid-template-columns: 1fr; gap: 1.1rem; } }

/* the comparison */
.versus { margin: 2.25rem 0 0; border: 1px solid var(--rule); border-radius: 11px; overflow: hidden; background: var(--paper); font-family: var(--ui); }
.vs-head, .vs-row { display: grid; grid-template-columns: minmax(0, 1fr) 11rem 11rem; align-items: center; }
.vs-head { font-size: .8125rem; font-weight: 600; color: var(--ink-soft); background: var(--paper-sunk); border-bottom: 1px solid var(--rule); }
.vs-head span, .vs-row span { padding: .7rem .9rem; }
.vs-head span:not(:first-child), .vs-row span:not(:first-child) { text-align: center; }
.vs-head .us, .vs-row .us { background: color-mix(in srgb, var(--pin) 6%, transparent); color: var(--ink); font-weight: 600; }
.vs-row { font-size: .875rem; color: var(--ink-soft); border-bottom: 1px solid var(--rule); }
.vs-row:last-child { border-bottom: 0; }
.vs-row .y { color: #0d7a43; font-weight: 600; }
.vs-row .n { color: var(--ink-faint); }
.vs-row .y.us { color: #0d7a43; }
@media (max-width: 48rem) {
  .vs-head, .vs-row { grid-template-columns: minmax(0, 1fr) 5.5rem 5.5rem; }
  .vs-head span, .vs-row span { padding: .55rem .6rem; font-size: .8125rem; }
}

/* a summary row, so the panel looks like an app in use rather than a demo with four rows */
.k-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.k-stats div { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 9px 11px; }
.k-stats span { display: block; font-size: .6875rem; color: #646c7c; margin-bottom: 2px; }
.k-stats b { font-size: .9375rem; font-weight: 650; color: #101319; }

/* "Watch it again" lives in the banner now, and only once there is something to watch again. */
.say-again { margin-left: auto; flex: none; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.say[data-state="live"] .say-again, .say[data-state="paused"] .say-again { opacity: 1; pointer-events: auto; }

.hotspot { position: absolute; border-radius: 7px; opacity: 0; pointer-events: none; z-index: 5;
  box-shadow: 0 0 0 2px rgba(229,72,77,.55), 0 0 0 7px rgba(229,72,77,.14);
  transition: all .5s cubic-bezier(.32,.72,.28,1); }
.scan { position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 7;
  background: linear-gradient(105deg, transparent 42%, rgba(67,56,202,.22) 50%, transparent 58%); }
.scan.go { opacity: 1; animation: scan .72s ease-in-out; }
@keyframes scan { from { transform: translateX(-105%); } to { transform: translateX(105%); } }
.glass { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center;
  background: color-mix(in srgb, var(--paper) 60%, transparent); backdrop-filter: blur(1.5px);
  transition: opacity .45s ease, visibility .45s; }
.stage[data-state="playing"] .glass, .stage[data-state="live"] .glass, .stage[data-state="paused"] .glass { opacity: 0; visibility: hidden; }
.bigplay { display: inline-flex; align-items: center; gap: .55rem; font: 550 .9375rem/1 var(--ui);
  color: var(--paper); background: var(--ink); border: 0; border-radius: 999px; padding: .7rem 1.25rem;
  cursor: pointer; box-shadow: 0 12px 26px -14px rgba(0,0,0,.6); }
.bigplay svg { width: 15px; height: 15px; fill: currentColor; }

.bar { display: flex; align-items: center; gap: .7rem; margin-top: .8rem; padding: .55rem .8rem;
  border: 1px solid var(--rule); border-radius: 9px; background: var(--paper-sunk);
  font-family: var(--ui); font-size: .75rem; color: var(--ink-soft);
  transition: opacity .4s ease, transform .5s cubic-bezier(.2,.8,.25,1), margin-top .5s ease; transform-origin: top; }
.stage[data-state="live"] .bar { opacity: 0; transform: translateY(-6px) scaleY(.6); margin-top: -2.6rem; pointer-events: none; }
.bar-play { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); cursor: pointer; }
.bar-play svg { width: 11px; height: 11px; fill: currentColor; }
.bar-play.is-playing svg { display: none; }
.bar-play.is-playing::after { content: ""; width: 8px; height: 9px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.track { flex: 1; height: 4px; border-radius: 4px; background: var(--rule); overflow: hidden; }
.fill { height: 100%; width: 0; background: var(--pin); transition: width .35s linear; }
.time { font-variant-numeric: tabular-nums; }

.handover { margin-top: .8rem; padding: .75rem 1rem; border: 1px dashed color-mix(in srgb, var(--pin) 45%, var(--rule));
  border-radius: 9px; background: color-mix(in srgb, var(--pin) 6%, transparent);
  font-family: var(--ui); font-size: .8125rem; color: var(--ink-soft);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .45s ease .15s, transform .45s cubic-bezier(.2,.8,.25,1) .15s; }
.handover b { color: var(--ink); }
.handover .linky { margin-left: .5rem; }
.stage[data-state="live"] .handover { opacity: 1; transform: none; pointer-events: auto; }

.claims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.claims p { margin: 0; font-size: .9375rem; color: var(--ink-soft); max-width: none; }
@media (max-width: 62rem) { .claims { grid-template-columns: 1fr; gap: 1.25rem; } }

/* ================= before / after wipe ================= */

figure.wipe { --p: 42%; cursor: ew-resize; touch-action: none; user-select: none; }
.wipe-after { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.wipe-after img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wipe-handle { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; z-index: 4;
  background: var(--paper); box-shadow: 0 0 0 1px rgba(0,0,0,.25); transform: translateX(-1px); cursor: ew-resize; }
.wipe-handle span { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; background: var(--paper); box-shadow: 0 2px 10px rgba(0,0,0,.3); display: grid; place-items: center; }
.wipe-handle span::before, .wipe-handle span::after { content: ""; position: absolute; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.wipe-handle span::before { border-right: 6px solid var(--ink-soft); left: 7px; }
.wipe-handle span::after { border-left: 6px solid var(--ink-soft); right: 7px; }
.wipe.dragging .wipe-handle { box-shadow: 0 0 0 1px var(--pin); }

/* ================= collaboration (in development) ================= */

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font: 600 .6875rem/1 var(--ui); letter-spacing: .01em;
  color: var(--ink); background: color-mix(in srgb, var(--hl-yellow) 55%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--hl-yellow) 70%, var(--rule));
  border-radius: 999px; padding: .32rem .6rem; margin-bottom: .7rem;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pin); }
.frame.soon { border-style: dashed; }
.frame.soon::after {
  content: "In development"; position: absolute; right: .55rem; bottom: .55rem; z-index: 9;
  font: 600 .625rem/1 var(--ui); color: var(--ink);
  background: color-mix(in srgb, var(--hl-yellow) 70%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--hl-yellow) 80%, var(--rule));
  border-radius: 5px; padding: .28rem .45rem;
}

.presence { position: absolute; right: .5rem; top: .45rem; z-index: 6; display: flex; align-items: center; gap: .25rem;
  font: 500 .625rem/1 var(--ui); color: var(--ink-faint); }
.presence .lbl { margin-left: .2rem; }
.av { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; flex: none;
  background: var(--c); color: #fff; font: 600 .5rem/1 var(--ui); letter-spacing: .01em; }
.thread.wide { width: 14.5rem; }
.thread-head .ago { margin-left: auto; font-weight: 400; color: var(--ink-faint); }
.msg.with-av { display: grid; grid-template-columns: auto 1fr; gap: .35rem; align-items: start; background: transparent; padding: .2rem 0; }
.msg.with-av > span:last-child { background: var(--paper-sunk); border-radius: 6px; padding: .3rem .42rem; }
.msg .at { color: var(--pin); font-weight: 600; }
.msg.typing .dots { display: inline-flex; gap: 3px; align-items: center; background: var(--paper-sunk); border-radius: 6px; padding: .45rem .5rem; }
.msg.typing .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-faint); animation: dot 1.1s infinite; }
.msg.typing .dots i:nth-child(2) { animation-delay: .18s; } .msg.typing .dots i:nth-child(3) { animation-delay: .36s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.mention-pop {
  position: absolute; left: .5rem; bottom: 2.1rem; z-index: 3;
  display: flex; align-items: center; gap: .35rem;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 7px;
  padding: .3rem .45rem; font: 550 .625rem/1 var(--ui); color: var(--ink);
  box-shadow: 0 10px 22px -14px rgba(0,0,0,.6); animation: pop .2s ease-out;
}

/* On a phone the masthead keeps its name and its one button; the section links are a scroll away. */
@media (max-width: 34rem) {
  .top nav a:not(.mini) { display: none; }
  .top .name { font-size: .9375rem; }
  .band { padding: 2.75rem 0; }
  .wrap { width: min(var(--page), 100% - 1.75rem); }
}

/* The hero leads the page: full-width copy over a full-width panel, both on the same grid. */
.hero { padding-top: 3.75rem; }
.hero-text { max-width: 40rem; margin-bottom: 2.25rem; }
.hero h1 { max-width: 18ch; font-size: clamp(2.2rem, 5.4vw, 3.4rem); }
.hero .lead { max-width: 34rem; }
.doc-page blockquote { margin: 0 0 .7rem; padding-left: .7rem; border-left: 2px solid var(--rule); color: var(--ink-soft); font-style: italic; }

/* ================= the headline feature ================= */

/* The recording is the thing nobody believes until they see it, so its band is the one that
   looks different: a deeper ground, a larger heading, and room around the panel. */
#recording {
  background: var(--paper-sunk);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 4.75rem 0 5rem;
  position: relative; overflow: hidden;
}
#recording::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 80%;
  background: radial-gradient(60% 60% at 50% 0%, color-mix(in srgb, var(--pin) 9%, transparent), transparent 70%);
  pointer-events: none;
}
#recording > .wrap { position: relative; }
h2.big { font-size: clamp(1.9rem, 4.4vw, 2.85rem); line-height: 1.1; letter-spacing: -.028em; margin-bottom: 1rem; }
.big-lead { font-size: 1.25rem; max-width: 42rem; margin-bottom: 2rem; }

/* the three steps */
.steps { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.steps li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: .15rem .7rem; align-items: center; }
.steps b { font-size: 1rem; font-weight: 600; }
.steps span:last-child { grid-column: 2; font-size: .9375rem; color: var(--ink-soft); line-height: 1.55; }
.step-ico { grid-row: span 2; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--rule); }
.step-ico.rec::after { content: ""; width: 13px; height: 13px; border-radius: 50%; background: var(--pin); }
.step-ico.stop::after { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--ink); }
.step-ico.link svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
@media (max-width: 62rem) { .steps { grid-template-columns: 1fr; gap: 1.1rem; } }

/* the line that says what is happening right now */
.say {
  display: flex; align-items: flex-start; gap: .65rem;
  padding: .8rem 1rem; margin-bottom: 1rem;
  border: 1px solid var(--rule); border-radius: 10px; background: var(--paper);
  font-family: var(--ui); font-size: .9375rem; line-height: 1.5; color: var(--ink-soft);
  transition: border-color .4s ease, background .4s ease;
}
.say b { color: var(--ink); }
.say-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-faint); flex: none; margin-top: .35rem; transition: background .3s ease; }
.say[data-state="playing"] { border-color: color-mix(in srgb, var(--pin) 45%, var(--rule)); }
.say[data-state="playing"] .say-dot { background: var(--pin); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--pin) 22%, transparent); } }
.say[data-state="live"] { border-color: #22c55e; background: color-mix(in srgb, #22c55e 7%, var(--paper)); }
.say[data-state="live"] .say-dot { background: #22c55e; }

/* the comparison */
.versus { margin: 2.25rem 0 0; border: 1px solid var(--rule); border-radius: 11px; overflow: hidden; background: var(--paper); font-family: var(--ui); }
.vs-head, .vs-row { display: grid; grid-template-columns: minmax(0, 1fr) 11rem 11rem; align-items: center; }
.vs-head { font-size: .8125rem; font-weight: 600; color: var(--ink-soft); background: var(--paper-sunk); border-bottom: 1px solid var(--rule); }
.vs-head span, .vs-row span { padding: .7rem .9rem; }
.vs-head span:not(:first-child), .vs-row span:not(:first-child) { text-align: center; }
.vs-head .us, .vs-row .us { background: color-mix(in srgb, var(--pin) 6%, transparent); color: var(--ink); font-weight: 600; }
.vs-row { font-size: .875rem; color: var(--ink-soft); border-bottom: 1px solid var(--rule); }
.vs-row:last-child { border-bottom: 0; }
.vs-row .y { color: #0d7a43; font-weight: 600; }
.vs-row .n { color: var(--ink-faint); }
.vs-row .y.us { color: #0d7a43; }
@media (max-width: 48rem) {
  .vs-head, .vs-row { grid-template-columns: minmax(0, 1fr) 5.5rem 5.5rem; }
  .vs-head span, .vs-row span { padding: .55rem .6rem; font-size: .8125rem; }
}

/* a summary row, so the panel looks like an app in use rather than a demo with four rows */
.k-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.k-stats div { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 9px 11px; }
.k-stats span { display: block; font-size: .6875rem; color: #646c7c; margin-bottom: 2px; }
.k-stats b { font-size: .9375rem; font-weight: 650; color: #101319; }

/* "Watch it again" lives in the banner now, and only once there is something to watch again. */
.say-again { margin-left: auto; flex: none; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.say[data-state="live"] .say-again, .say[data-state="paused"] .say-again { opacity: 1; pointer-events: auto; }

/* ================= the three short facts ================= */
.facts { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  font-size: .9375rem; color: var(--ink-soft); }
.facts li { padding-left: 1.5rem; position: relative; line-height: 1.55; }
.facts li::before { content: ""; position: absolute; left: 0; top: .48em; width: 7px; height: 7px; border-radius: 2px; background: var(--pin); }
.facts b { color: var(--ink); display: block; }
@media (max-width: 62rem) { .facts { grid-template-columns: 1fr; gap: .9rem; } }

/* ================= the two phases ================= */

/* Both halves of the trick, stated before it happens, with the one you are in lit. One element
   doing the explaining and the you-are-here, because two of them was the confusing part. */
.phases { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.phases li {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: .1rem .7rem; align-items: start;
  align-content: start;   /* both cards are the same height; the text should not stretch to fill */
  padding: .85rem 1rem; border: 1px solid var(--rule); border-radius: 11px; background: var(--paper);
  font-family: var(--ui); transition: border-color .4s ease, background .4s ease, opacity .4s ease;
  opacity: .55;
}
.phases b { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.phases b em { font-style: italic; }
.phases li > span:last-of-type { grid-column: 2; font-size: .8125rem; line-height: 1.5; color: var(--ink-soft); margin-top: .15rem; }
.ph-n {
  grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: .6875rem; font-weight: 700; color: var(--ink-soft);
  background: var(--paper-sunk); border: 1px solid var(--rule); transition: all .4s ease;
}
.phases .linky { grid-column: 2; justify-self: start; margin-top: .5rem; opacity: 0; pointer-events: none; transition: opacity .3s ease; }

/* nothing has happened yet: both readable, neither lit */
.phases[data-phase="0"] li { opacity: .8; }

.phases[data-phase="1"] li[data-p="1"], .phases[data-phase="2"] li[data-p="2"] { opacity: 1; }
.phases[data-phase="1"] li[data-p="1"] { border-color: color-mix(in srgb, var(--pin) 50%, var(--rule)); background: color-mix(in srgb, var(--pin) 5%, var(--paper)); }
.phases[data-phase="1"] li[data-p="1"] .ph-n { background: var(--pin); border-color: var(--pin); color: #fff; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--pin) 22%, transparent); } }
.phases[data-phase="2"] li[data-p="2"] { border-color: #22c55e; background: color-mix(in srgb, #22c55e 7%, var(--paper)); }
.phases[data-phase="2"] li[data-p="2"] .ph-n { background: #16a34a; border-color: #16a34a; color: #fff; }
.phases[data-phase="2"] li[data-p="2"] .linky { opacity: 1; pointer-events: auto; }

@media (max-width: 62rem) { .phases { grid-template-columns: 1fr; gap: .55rem; } }

/* ================= the live demo leads the page ================= */

/* The recording is the reason to be here, so it is the hero: the headline, then straight into it. */
/* Four section links plus the button: keep each on one line, and drop the two furthest down the
   page before they wrap. Below 34rem the section links go altogether (see the phone rule). */
.top nav a { white-space: nowrap; }
@media (max-width: 56rem) { .top nav a[href="#fidelity"], .top nav a[href="#features"] { display: none; } }

/* The stage has to start on the first screen of a laptop, so the words and the two phases share a
   row above it instead of stacking. */
.hero { padding-top: 2.5rem; }
.hero > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); column-gap: 2.75rem; align-items: end; }
.hero > .wrap > * { grid-column: 1 / -1; }
.hero > .wrap > .hero-text { grid-column: 1; grid-row: 1; max-width: none; }
.hero > .wrap > .phases { grid-column: 2; grid-row: 1; grid-template-columns: 1fr; margin: 0 0 1.75rem; }
.hero .lead { max-width: 40rem; }
.hero .actions { margin-top: 1.25rem; }
@media (max-width: 62rem) {
  .hero > .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero > .wrap > .phases { grid-column: 1; grid-row: auto; margin: 0 0 1.1rem; }
}
.hero h1 { max-width: none; font-size: clamp(2rem, 4.4vw, 3rem); }
/* 16:10 of a phone is a strip too short for a dashboard, which is the whole demo. The sidebar
   goes and the table drops its wider columns there, so the frame gets the height the page needs
   instead. Not as a min-height: with an aspect ratio still set, the browser widens the frame to
   keep the ratio. */
@media (max-width: 62rem) { #f-stage { aspect-ratio: auto; height: 34rem; } }
@media (max-width: 44rem) { #f-stage { height: 36rem; } }
/* the one mark in the headline, drawn the way the highlighter draws one */
h1 .hl { background: color-mix(in srgb, var(--hl-yellow) 90%, transparent); padding: 0 .08em; margin: 0 -.02em; border-radius: .06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .hero-text { margin-bottom: 1.75rem; }
.hero .facts { margin-top: 2.25rem; }
.stage .cap code, .ways code { font: 500 .8em/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--paper-sunk); border: 1px solid var(--rule); border-radius: 4px; padding: .12em .32em; }

/* chapters along the track: one per recorded step, and a press drops you in after it */
.track-wrap { position: relative; flex: 1; display: flex; align-items: center; }
.chapters { position: absolute; inset: 0; pointer-events: none; }
.tick { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; padding: 0;
  border-radius: 50%; border: 2px solid var(--paper-sunk); background: var(--ink-faint);
  cursor: pointer; pointer-events: auto; transition: transform .15s ease, background .25s ease; }
.tick:hover, .tick:focus-visible { transform: scale(1.3); background: var(--ink); }
.tick.done { background: var(--pin); }

/* the link that is the whole point: it stays when the player chrome leaves */
.sharebar { display: flex; align-items: center; gap: .6rem; margin-top: .8rem; padding: .45rem .45rem .45rem .85rem;
  border: 1px solid var(--rule); border-radius: 9px; background: var(--paper); font-family: var(--ui); font-size: .8125rem; }
.sharebar-label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.sharebar-label svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.sharebar-link { flex: 1; min-width: 0; font: 500 .8125rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-soft);
  background: var(--paper-sunk); border: 1px solid var(--rule); border-radius: 6px; padding: .5rem .6rem; text-overflow: ellipsis; }
.sharebar-copy { flex: none; min-width: 6.5rem; font: 600 .8125rem/1 var(--ui); color: var(--paper); background: var(--ink);
  border: 0; border-radius: 6px; padding: .6rem .9rem; cursor: pointer; transition: background .2s ease; }
.sharebar-copy:hover { opacity: .88; }
.sharebar-copy.done { background: #16a34a; }
.stage .cap { max-width: 44rem; }
@media (max-width: 34rem) {
  .sharebar { flex-wrap: wrap; }
  .sharebar-link { flex-basis: 100%; order: 3; }
  .sharebar-copy { margin-left: auto; }
}

/* ================= sharing: six ways to send it ================= */

/* The three steps are stretched to the tallest one; their rows should not be. */
#share .steps li { align-content: start; align-items: start; }
#share .steps .step-ico { align-self: start; }
#share .steps .keycap { font-size: .75rem; }

.ways-title { margin: 2.75rem 0 1rem; font-family: var(--ui); font-size: .8125rem; font-weight: 600; color: var(--ink-soft); }
.ways { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.ways li { padding: 1rem 1.1rem; border: 1px solid var(--rule); border-radius: 11px; background: var(--paper); font-family: var(--ui); }
.ways b { display: block; font-size: .9375rem; font-weight: 600; color: var(--ink); margin-bottom: .3rem; }
.ways span { font-size: .8125rem; line-height: 1.55; color: var(--ink-soft); }
@media (max-width: 62rem) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .ways { grid-template-columns: 1fr; } }

/* ================= fidelity: what comes back ================= */

.fid { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem 1.5rem; font-family: var(--ui); }
.fid li { position: relative; padding-top: .9rem; border-top: 1px solid var(--rule); }
.fid li::before { content: ""; position: absolute; top: -1px; left: 0; width: 1.5rem; height: 2px; background: var(--pin); }
.fid b { display: block; font-size: .9375rem; font-weight: 600; color: var(--ink); margin-bottom: .3rem; }
.fid span { font-size: .8125rem; line-height: 1.55; color: var(--ink-soft); }
.fid-limit { margin: 2.5rem 0 0; max-width: 44rem; }
@media (max-width: 62rem) { .fid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .fid { grid-template-columns: 1fr; gap: 1.25rem; } }

/* ================= the recorded app: a payments dashboard ================= */

/* Drawn to the pixel like the dashboard it stands in for, in px rather than the page's rem, so it
   reads as an app someone was using and not as a diagram of one. Always light: it is a page that
   was recorded, and the recording keeps the colour scheme the author had. */
.screen {
  --sd-ink: #30313d; --sd-text: #353a44; --sd-mute: #687385; --sd-faint: #87909f;
  --sd-line: #e3e8ee; --sd-line2: #ebeef1; --sd-sunk: #f6f8fa; --sd-hover: #f0f2f5;
  --sd-purple: #635bff; --sd-purple-dk: #533afd; --sd-purple-bg: #eeecff;
  --sd-green: #006908; --sd-green-bg: #d7f7c2; --sd-red: #b3093c; --sd-red-bg: #ffe7f2;
  --sd-gray: #545969; --sd-gray-bg: #ebeef1; --sd-orange: #c84801; --sd-orange-bg: #ffe0c2;
  --sd-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  display: flex; height: 100%; background: #fff; color: var(--sd-text);
  font: 400 14px/1.4 var(--sd-font); letter-spacing: -.005em; text-align: left;
  -webkit-font-smoothing: antialiased;
}
.screen svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.screen a { color: inherit; text-decoration: none; cursor: pointer; }
.screen button { font: inherit; color: inherit; letter-spacing: inherit; cursor: pointer; }
.screen [hidden] { display: none !important; }

/* ---- sidebar ---- */
.sd-side { width: 222px; flex: none; display: flex; flex-direction: column; background: var(--sd-sunk); border-right: 1px solid var(--sd-line2); padding: 12px 10px 10px; }
.sd-acct { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; font-weight: 600; font-size: 14px; color: var(--sd-ink); text-align: left; }
.sd-acct:hover { background: var(--sd-hover); }
.sd-acct-logo { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: #1a1f36; color: #fff; font-size: 12px; font-weight: 700; }
.sd-acct-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-acct svg { width: 14px; height: 14px; color: var(--sd-faint); }
.sd-nav { display: flex; flex-direction: column; gap: 1px; margin-top: 14px; }
.sd-nav a, .sd-side-foot a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; font-weight: 500; font-size: 14px; color: var(--sd-text); }
.sd-nav a svg, .sd-side-foot a svg { color: var(--sd-mute); }
.sd-nav a:hover, .sd-side-foot a:hover { background: var(--sd-hover); }
.sd-nav a.on { color: var(--sd-purple-dk); background: transparent; }
.sd-nav a.on svg { color: var(--sd-purple-dk); }
.sd-navgroup { margin: 14px 8px 4px; font-size: 12px; font-weight: 600; color: var(--sd-mute); }
.sd-side-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--sd-line2); display: flex; flex-direction: column; gap: 1px; }

/* ---- top bar ---- */
.sd-main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.sd-top { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 24px; flex: none; }
.sd-search { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border: 1px solid var(--sd-line); border-radius: 6px; color: var(--sd-mute); font-size: 14px; box-shadow: 0 1px 1px rgba(0,0,0,.03); cursor: text; }
.sd-search span { flex: 1; }
.sd-search kbd { font: 500 11px/1 var(--sd-font); color: var(--sd-mute); border: 1px solid var(--sd-line); border-radius: 4px; padding: 3px 5px; background: var(--sd-sunk); }
.sd-topright { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.sd-testmode { display: inline-flex; align-items: center; gap: 8px; margin-right: 8px; font-size: 13px; font-weight: 500; color: var(--sd-mute); cursor: pointer; }
.sd-testmode i { width: 28px; height: 16px; border-radius: 10px; background: #d5dbe1; position: relative; }
.sd-testmode i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.sd-iconbtn { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--sd-mute); }
.sd-iconbtn:hover { background: var(--sd-hover); color: var(--sd-ink); }
.sd-createbtn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; margin-left: 4px; border: 1px solid var(--sd-line); border-radius: 6px; background: #fff; font-weight: 500; font-size: 14px; color: var(--sd-ink); box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.sd-createbtn:hover { background: var(--sd-sunk); }
.sd-ava { width: 28px; height: 28px; margin-left: 8px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #7a73ff, #533afd); color: #fff; font-size: 11px; font-weight: 600; }

/* ---- pages ---- */
.sd-view { flex: 1; min-height: 0; overflow: auto; padding: 12px 24px 0; }
.sd-pagehead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sd-pagehead h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--sd-ink); }
.sd-btns { display: flex; align-items: center; gap: 8px; }
.sd-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--sd-line); border-radius: 6px; background: #fff; font-weight: 500; font-size: 14px; color: var(--sd-ink); box-shadow: 0 1px 1px rgba(0,0,0,.04), 0 2px 5px rgba(60,66,87,.06); white-space: nowrap; }
.sd-btn:hover { background: var(--sd-sunk); }
.sd-btn.icon { width: 32px; padding: 0; justify-content: center; font-size: 16px; letter-spacing: .05em; }
.sd-btn.primary { background: var(--sd-purple-dk); border-color: var(--sd-purple-dk); color: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 2px 5px rgba(60,66,87,.1); }
.sd-btn.primary:hover { background: #4b32f5; }
.sd-btn svg { width: 14px; height: 14px; }
.sd-btn.shake { animation: nudge .45s ease; }

.sd-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--sd-line2); margin-bottom: 12px; }
.sd-tabs a { padding: 6px 0 10px; font-weight: 500; font-size: 14px; color: var(--sd-mute); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.sd-tabs a:hover { color: var(--sd-ink); }
.sd-tabs a.on { color: var(--sd-purple-dk); border-color: var(--sd-purple-dk); }
.sd-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.sd-filters span { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px 0 10px; border: 1px dashed #c0c8d2; border-radius: 20px; font-size: 13px; font-weight: 500; color: var(--sd-text); cursor: pointer; }
.sd-filters span:hover { background: var(--sd-sunk); }
.sd-filters span svg { width: 13px; height: 13px; color: var(--sd-mute); }
.sd-filters .more { border-style: solid; padding-left: 8px; }

.sd-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sd-table th { text-align: left; font-weight: 600; font-size: 12px; color: var(--sd-mute); padding: 6px 8px; border-bottom: 1px solid var(--sd-line2); white-space: nowrap; }
.sd-table td { padding: 0 8px; height: 40px; border-bottom: 1px solid var(--sd-line2); white-space: nowrap; color: var(--sd-text); }
.sd-table tbody tr { cursor: pointer; transition: background .12s ease; }
.sd-table tbody tr:hover { background: var(--sd-sunk); }
.sd-table .amt { font-weight: 600; color: var(--sd-ink); font-variant-numeric: tabular-nums; width: 1%; }
.sd-table .cur { font-weight: 400; color: var(--sd-mute); font-size: 12px; margin-left: 2px; }
.sd-table .desc { color: var(--sd-mute); }
.sd-table .date { color: var(--sd-mute); }
.sd-table .more { color: var(--sd-faint); text-align: right; width: 1%; font-size: 16px; letter-spacing: .05em; }
.sd-table .more:hover { color: var(--sd-ink); }
.sd-tablefoot { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; font-size: 13px; color: var(--sd-mute); }
.sd-pager { display: flex; gap: 6px; }
.sd-pager button { height: 28px; padding: 0 10px; border: 1px solid var(--sd-line); border-radius: 6px; background: #fff; font-size: 13px; font-weight: 500; color: var(--sd-faint); }

/* badges and card marks */
.sd-badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: 4px; font-size: 12px; font-weight: 500; white-space: nowrap; vertical-align: middle; }
.sd-badge i { width: 12px; height: 12px; border-radius: 50%; position: relative; flex: none; }
.sd-badge.succeeded { color: var(--sd-green); background: var(--sd-green-bg); }
.sd-badge.succeeded i { background: var(--sd-green); }
.sd-badge.succeeded i::after { content: ""; position: absolute; left: 3px; top: 2.5px; width: 4px; height: 6px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.sd-badge.refunded, .sd-badge.partial { color: var(--sd-gray); background: var(--sd-gray-bg); }
.sd-badge.refunded i, .sd-badge.partial i { background: var(--sd-gray); }
.sd-badge.refunded i::after, .sd-badge.partial i::after { content: ""; position: absolute; left: 3px; top: 3.5px; width: 5px; height: 5px; border: solid #fff; border-width: 1.5px 0 0 1.5px; border-radius: 3px 0 0 0; }
.sd-badge.failed, .sd-badge.disputed { color: var(--sd-red); background: var(--sd-red-bg); }
.sd-badge.failed i, .sd-badge.disputed i { background: var(--sd-red); }
.sd-badge.failed i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 2px; height: 5px; background: #fff; box-shadow: 0 6px 0 #fff; }
.sd-badge.disputed i::after { content: "!"; position: absolute; inset: 0; color: #fff; font: 700 9px/12px var(--sd-font); text-align: center; }
.sd-badge.bump { animation: badgein .5s cubic-bezier(.2,1.3,.4,1); }
@keyframes badgein { 0% { transform: scale(.8); opacity: 0; } }
.sd-card { display: inline-grid; place-items: center; width: 26px; height: 17px; margin-right: 8px; border-radius: 3px; vertical-align: -3px; font-size: 7.5px; font-weight: 800; letter-spacing: .02em; font-style: italic; }
.sd-card.visa { background: #1a1f71; color: #fff; }
.sd-card.amex { background: #2671b9; color: #fff; font-style: normal; font-size: 6.5px; }
.sd-card.mc { grid-template-columns: 1fr 1fr; gap: 0; background: #f4f4f4; border: 1px solid var(--sd-line); padding: 0 5px; }
.sd-card.mc i { width: 9px; height: 9px; border-radius: 50%; background: #eb001b; }
.sd-card.mc i + i { background: #f79e1b; margin-left: -4px; opacity: .92; }

/* ---- the payment ---- */
.sd-crumbs { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--sd-mute); margin-bottom: 14px; }
.sd-crumbs a { font-weight: 500; color: var(--sd-purple-dk); }
.sd-crumbs a:hover { text-decoration: underline; }
.sd-crumbs svg { width: 12px; height: 12px; color: var(--sd-faint); }
.sd-crumbs span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.sd-dethead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sd-eyebrow { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--sd-mute); margin-bottom: 4px; }
.sd-eyebrow svg { width: 14px; height: 14px; }
.sd-amount { display: flex; align-items: center; gap: 8px; }
.sd-amount b { font-size: 28px; font-weight: 700; letter-spacing: -.03em; color: var(--sd-ink); font-variant-numeric: tabular-nums; }
.sd-amount .cur { font-size: 16px; font-weight: 500; color: var(--sd-mute); margin-right: 4px; }
.sd-summary { display: flex; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--sd-line2); border-bottom: 1px solid var(--sd-line2); }
.sd-summary > div { padding: 12px 20px 12px 0; margin-right: 20px; border-right: 1px solid var(--sd-line2); }
.sd-summary > div:last-child { border-right: 0; }
.sd-summary dt { font-size: 12px; font-weight: 500; color: var(--sd-mute); margin-bottom: 3px; }
.sd-summary dd { margin: 0; font-size: 14px; font-weight: 500; color: var(--sd-ink); }
.sd-summary dd a { color: var(--sd-purple-dk); }
.sd-risk { display: inline-grid; place-items: center; min-width: 22px; height: 20px; margin-right: 6px; padding: 0 5px; border-radius: 4px; background: var(--sd-green-bg); color: var(--sd-green); font-size: 12px; font-weight: 600; }
.sd-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.sd-cols h2 { margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--sd-line2); font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--sd-ink); }
.sd-cols h2 + * { margin-bottom: 20px; }
.sd-timeline { list-style: none; margin: 0; padding: 0 0 0 20px; position: relative; }
.sd-timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; border-left: 1px dashed #c0c8d2; }
.sd-timeline li { position: relative; padding-bottom: 12px; font-size: 13px; }
.sd-timeline li::before { content: ""; position: absolute; left: -20px; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid #c0c8d2; box-sizing: border-box; }
.sd-timeline li.ok::before { background: var(--sd-green); border-color: var(--sd-green); }
.sd-timeline li.rf::before { background: var(--sd-gray); border-color: var(--sd-gray); }
.sd-timeline li b { display: block; font-weight: 500; color: var(--sd-ink); }
.sd-timeline li span { color: var(--sd-mute); font-size: 12px; }
.sd-timeline li em { display: block; font-style: normal; color: var(--sd-mute); font-size: 12px; margin-top: 2px; }
.sd-timeline li.new { animation: rowin .45s ease; }
@keyframes rowin { 0% { opacity: 0; transform: translateY(-6px); } }
.sd-kv { margin: 0; display: grid; gap: 0; }
.sd-kv > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 5px 0; font-size: 13px; }
.sd-kv dt { color: var(--sd-mute); }
.sd-kv dd { margin: 0; color: var(--sd-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-kv dd.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.sd-check { color: var(--sd-green); font-weight: 500; }

/* ---- the refund dialog ---- */
.sd-modal { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgba(26, 31, 54, .5); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.sd-dialog { width: min(440px, calc(100% - 32px)); background: #fff; border-radius: 10px; box-shadow: 0 15px 35px rgba(60,66,87,.2), 0 5px 15px rgba(0,0,0,.12); padding: 20px 24px 20px; animation: pop .22s cubic-bezier(.2,1.1,.4,1); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.sd-dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sd-dialog h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.015em; color: var(--sd-ink); }
.sd-x { width: 28px; height: 28px; margin-right: -6px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--sd-mute); }
.sd-x:hover { background: var(--sd-hover); color: var(--sd-ink); }
.sd-hint { margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: var(--sd-mute); }
.sd-field { display: block; margin-bottom: 14px; position: relative; }
.sd-field > span { display: block; font-size: 13px; font-weight: 500; color: var(--sd-ink); margin-bottom: 6px; }
.sd-field small { display: block; margin-top: 6px; font-size: 12px; color: var(--sd-mute); }
.sd-field small b { font-weight: 500; color: var(--sd-ink); }
.sd-field small.err { color: var(--sd-red); }
.sd-input { display: flex; align-items: center; height: 36px; border: 1px solid var(--sd-line); border-radius: 6px; box-shadow: 0 1px 1px rgba(0,0,0,.03); background: #fff; transition: box-shadow .15s ease, border-color .15s ease; }
.sd-input:focus-within, .sd-input.focus { border-color: var(--sd-purple); box-shadow: 0 0 0 3px rgba(99,91,255,.25); }
.sd-input i { padding: 0 8px 0 12px; font-style: normal; color: var(--sd-mute); }
.sd-input em { padding: 0 12px 0 8px; font-style: normal; font-size: 12px; font-weight: 500; color: var(--sd-mute); }
.sd-input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 500 14px/1 var(--sd-font); color: var(--sd-ink); font-variant-numeric: tabular-nums; padding: 0; }
.sd-select { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 36px; padding: 0 10px 0 12px; border: 1px solid var(--sd-line); border-radius: 6px; background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.03); font-size: 14px; color: var(--sd-mute); text-align: left; transition: box-shadow .15s ease, border-color .15s ease; }
.sd-select[data-value]:not([data-value=""]) { color: var(--sd-ink); }
.sd-select.open, .sd-select:focus-visible { outline: 0; border-color: var(--sd-purple); box-shadow: 0 0 0 3px rgba(99,91,255,.25); }
.sd-select svg { width: 14px; height: 14px; color: var(--sd-faint); }
.sd-menu { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 2; margin: 0; padding: 4px; list-style: none; background: #fff; border-radius: 8px; box-shadow: 0 0 0 1px rgba(60,66,87,.08), 0 8px 24px rgba(60,66,87,.18); animation: pop .18s cubic-bezier(.2,1.1,.4,1); }
.sd-menu li { padding: 7px 10px; border-radius: 5px; font-size: 14px; color: var(--sd-ink); cursor: pointer; }
.sd-menu li:hover, .sd-menu li.hover { background: var(--sd-purple-bg); color: var(--sd-purple-dk); }
.sd-dialog-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.sd-toast { position: absolute; left: 50%; bottom: 20px; z-index: 5; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 9px 14px 9px 12px; border-radius: 8px; background: #1a1f36; color: #fff; font-size: 13px; font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: toastin .3s cubic-bezier(.2,1.1,.4,1); white-space: nowrap; }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 8px); } }
.sd-toast svg { width: 14px; height: 14px; color: #5ce09b; stroke-width: 2; }

/* ---- what the player draws over the page ---- */

/* The author's note on a step, and the spotlight the hotspot casts while it is up: everything
   but the control it is about dims, the way presenter mode's spotlight does. */
.callout { position: absolute; z-index: 6; max-width: 250px; padding: 9px 12px 10px; border-radius: 8px;
  background: #fff; border: 1px solid #d5dbe1; border-left: 3px solid var(--pin); color: #30313d;
  font: 400 12.5px/1.45 var(--ui); box-shadow: 0 14px 30px -12px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(5px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.callout.on { opacity: 1; transform: none; }
.callout b { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pin); margin-bottom: 2px; }
.hotspot.spot { opacity: 1; background: transparent; border-color: transparent;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pin) 70%, transparent), 0 0 0 9999px rgba(26, 31, 54, .42); transition: box-shadow .3s ease, left .3s ease, top .3s ease, width .3s ease, height .3s ease; }

/* A control the recording never used has no recorded answer, so the player says so, next to it. */
.cold-tip { position: absolute; z-index: 6; max-width: 260px; padding: 8px 11px; border-radius: 7px;
  background: #1a1f36; color: #fff; font: 400 12px/1.45 var(--ui); box-shadow: 0 10px 24px rgba(0,0,0,.3);
  opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.cold-tip.on { opacity: 1; transform: none; }
.cold-tip b { color: #fff; }
.screen .cold { outline: 2px solid rgba(102,112,133,.5); outline-offset: 1px; border-radius: 4px; }
.screen .nudge { animation: nudge .45s ease; }
.screen .lit { box-shadow: 0 0 0 3px color-mix(in srgb, var(--pin) 55%, transparent); border-radius: 6px; transition: box-shadow .4s ease; }
.sd-table tr.lit { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pin) 55%, transparent); }

@media (max-width: 62rem) {
  .sd-side { width: 190px; }
  .sd-table .desc, .sd-kv dd.mono { display: none; }
  .sd-summary > div:last-child { display: none; }
  .sd-cols { grid-template-columns: 1fr; gap: 12px; }
  .sd-cols > div:last-child { display: none; }
}
@media (max-width: 44rem) {
  .sd-side { display: none; }
  .sd-top { padding: 0 14px; }
  .sd-view { padding: 8px 14px 0; }
  .sd-table .date, .sd-filters span:nth-child(n+3), .sd-search kbd, .sd-testmode, .sd-createbtn { display: none; }
  .sd-summary > div:nth-child(n+3) { display: none; }
}
@keyframes nudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

/* ================= brand =================
   The mark is ink with a highlighter stroke under it. The wordmark and the calls to action carry
   the same stroke; selecting text on the page leaves a highlighter mark too. */
:root { --mark: #ffe45c; }
.wm { font-family: var(--ui); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.wm i { font-style: normal; text-decoration: underline .18em var(--mark); text-underline-offset: .16em; text-decoration-skip-ink: none; }
.top a.name { color: var(--ink); font-family: var(--ui); }
.top a.name:hover { color: var(--ink); }
.install, .top .mini { box-shadow: inset 0 -3px 0 var(--mark); }
::selection { background: var(--hl-yellow); color: var(--ink); }
