/* The "How it works" page that opens once after install (preview: three
 * versions, start-a/b/c.html). Loaded after styles.css, ui.css and home.css,
 * so it has the homepage's look: near-black, Geist, the typed mono headline
 * with its green caret, paper-coloured buttons and green for live state.
 *
 * The demo (js/start.js) is drawn at one fixed size, 760 by 460, and scaled
 * to its box, so it looks the same at every width: a Chrome window with a
 * Google Doc, and the HumDocs popup hanging from its toolbar icon.
 */

.st {
  --paper: #e8e5df;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  padding-bottom: clamp(80px, 10vw, 128px);
}

/* styles.css pads every section; here each says its own. */
.st section { padding: 0; }

/* ── Top of the page ──────────────────────────────────────────────────── */
.st .st-hero {
  padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 4vw, 48px);
  text-align: center;
}
.st-hero .hm-label {
  margin-bottom: 22px;
}
.st-hero .hx-display {
  margin-bottom: 20px;
}
.st-lead {
  margin: 0 auto;
  max-width: 34rem;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--text2);
  text-wrap: balance;
}
/* The green caret only blinks when motion is fine. */
@media (prefers-reduced-motion: reduce) {
  .hx-typed .cr::after { animation: none; }
}

/* The step label, as in the popup: a green mono number and a short word. */
.st-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font: 500 12px/1 var(--ui-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
}
.st-tag b {
  font-weight: 600;
  color: var(--ok);
  letter-spacing: 0.04em;
}

.st-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  margin-top: clamp(40px, 5vw, 56px);
}
.st-cta .btn svg { flex: none; }

/* ── The demo window ──────────────────────────────────────────────────── */
.sd {
  position: relative;
  width: 100%;
  aspect-ratio: 760 / 460;
  border-radius: 12px;
  overflow: hidden;
  background: #dee3ea;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 50px 120px -30px rgba(0, 0, 0, 0.85), 0 0 140px -50px rgba(62, 207, 142, 0.14);
  /* Room for the label row under it in H1. */
  isolation: isolate;
}
.sd-scale {
  position: absolute;
  left: 0;
  top: 0;
  width: 760px;
  height: 460px;
  transform-origin: 0 0;
  transform: scale(var(--sd-s, 1));
  user-select: none;
}
.sd .cw-hd {
  border-radius: 50%;
  transition: background-color 0.12s ease;
}
.sd .cw-hd.is-down {
  background: #dfe3e8;
}

/* The Doc. */
.sd-docs {
  position: absolute;
  left: 0;
  right: 0;
  top: 86px;
  bottom: 0;
  background: #f9fbfd;
  font-family: Arial, Helvetica, sans-serif;
  color: #1f1f1f;
  overflow: hidden;
}
.sd-dh {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 14px;
}
.sd-dh svg { flex: none; }
.sd-dh-t {
  display: block;
  font-size: 15px;
  line-height: 1.2;
  color: #1f1f1f;
}
.sd-dh-m {
  display: flex;
  gap: 11px;
  margin-top: 3px;
  font-size: 11.5px;
  color: #444746;
}
.sd-tb {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 30px;
  margin: 0 12px;
  padding: 0 14px;
  border-radius: 15px;
  background: #edf2fa;
  font-size: 11.5px;
  color: #444746;
}
.sd-tb b { font-weight: 700; }
.sd-tb i { font-style: italic; font-family: Georgia, serif; }
.sd-tb u { text-decoration: underline; }
.sd-tb span:nth-child(2) { margin-left: 6px; }
.sd-page {
  position: absolute;
  left: 150px;
  top: 98px;
  width: 460px;
  height: 400px;
  padding: 34px 48px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15), 0 0 0 1px #e3e6ea;
}
.sd-h {
  margin: 0 0 14px;
  font: 700 22px/1.25 Arial, Helvetica, sans-serif;
  color: #1f1f1f;
}
.sd-p {
  margin: 0;
  font: 14px/1.65 Arial, Helvetica, sans-serif;
  color: #1f1f1f;
  white-space: pre-wrap;
  min-height: 1.65em;
}
.sd-caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: -3px;
  background: #1f1f1f;
  animation: sdBlink 1.06s steps(1) infinite;
}
.sd.is-typing .sd-caret { animation: none; }
@keyframes sdBlink { 50% { opacity: 0; } }

/* The timer HumDocs shows in the Doc while it types. */
.sd-timer {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #282828;
  border-radius: 12px;
  background: #0a0a0a;
  color: #f2f2f2;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  font-family: var(--ui-sans);
}
.sd-timer img { width: 18px; height: 18px; display: block; }
.sd-timer-l {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 500 10px/1 var(--ui-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8e8e8e;
}
.sd-timer-l::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
}
.sd-timer-t {
  font: 600 18px/1 var(--ui-mono);
  letter-spacing: -0.5px;
}

/* The HumDocs popup. Also used on its own, at a larger size, in start-c. */
.sd-pop {
  width: 272px;
  padding: 0 14px 14px;
  border: 1px solid #282828;
  border-radius: 12px;
  background: #0a0a0a;
  color: #f2f2f2;
  font-family: var(--ui-sans);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18), 0 22px 50px rgba(0, 0, 0, 0.35);
  text-align: left;
}
.sd .sd-pop {
  position: absolute;
  right: 8px;
  top: 86px;
  opacity: 0;
  transform-origin: 85% 0;
}
.sd-pop-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  margin: 0 -14px 4px;
  padding: 0 14px;
  border-bottom: 1px solid #1c1c1c;
  font: 600 13.5px/1 var(--ui-sans);
  letter-spacing: -0.01em;
}
.sd-pop-hd img { width: 20px; height: 20px; display: block; }
.sd-lbl {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 12px 0 7px;
  font: 500 9.5px/1 var(--ui-mono);
  letter-spacing: 0.14em;
  color: #8e8e8e;
}
.sd-lbl b { font-weight: 600; color: var(--ok); letter-spacing: 0.04em; }
.sd-text {
  position: relative;
  height: 66px;
  padding: 8px 10px;
  border: 1px solid #282828;
  border-radius: 9px;
  background: #111;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sd-text.is-focus,
.sd-box.is-focus {
  border-color: rgba(62, 207, 142, 0.6);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.14);
}
.sd-ph {
  font: 400 11.5px/1.5 var(--ui-sans);
  color: #6a6a6a;
}
.sd-in {
  font: 400 10.5px/1.5 var(--ui-sans);
  color: #d6d6d6;
}
.sd-in mark {
  background: rgba(62, 207, 142, calc(0.32 * var(--flash, 0)));
  color: inherit;
}
.sd-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  background: linear-gradient(transparent, #111);
}
.sd-dur {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.sd-box {
  padding: 8px 0 6px;
  border: 1px solid #282828;
  border-radius: 9px;
  background: #111;
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sd-v {
  display: inline-block;
  min-width: 1.3em;
  font: 600 19px/1.1 var(--ui-mono);
  color: #f2f2f2;
}
.sd-v.is-sel { background: rgba(62, 207, 142, 0.3); border-radius: 3px; }
.sd-box.is-typing .sd-v::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 0.95em;
  margin-left: 1px;
  vertical-align: -2px;
  background: var(--ok);
}
.sd-box small {
  display: block;
  margin-top: 3px;
  font: 500 9px/1 var(--ui-sans);
  color: #8e8e8e;
}
.sd-short {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
}
.sd-short span {
  padding: 7px 0;
  border: 1px solid #282828;
  border-radius: 8px;
  background: #111;
  text-align: center;
  font: 500 10.5px/1 var(--ui-sans);
  color: #8e8e8e;
}
.sd-short em {
  font: 500 10px/1 var(--ui-mono);
  font-style: normal;
  color: #b8b8b8;
}
.sd-start {
  display: grid;
  place-items: center;
  height: 36px;
  border-radius: 9px;
  background: var(--ok);
  color: #04130c;
  font: 600 13px/1 var(--ui-sans);
  transition: transform 0.1s ease, opacity 0.2s ease, filter 0.1s ease;
}
.sd-start.is-off { opacity: 0.4; }
.sd-start.is-down { transform: scale(0.96); filter: brightness(0.9); }
.sd-keys {
  position: absolute;
  display: flex;
  gap: 3px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.88);
  opacity: 0;
  pointer-events: none;
}
.sd-keys span {
  padding: 4px 6px 3px;
  border: 1px solid #3a3a3a;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #1a1a1a;
  color: #f2f2f2;
  font: 600 10px/1 var(--ui-mono);
}
.sd-cur {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 24px;
  pointer-events: none;
  will-change: transform;
}
.sd-cur svg { display: block; transform-origin: 2px 2px; transition: transform 0.08s ease; }
.sd-cur.is-down svg { transform: scale(0.86); }

/* ── The step list (H1 strip under the demo, H2 steps on the left) ───── */
.st-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.st-strip button {
  position: relative;
  overflow: hidden;
  padding: 12px 14px 14px;
  border: 1px solid var(--b1);
  border-radius: 10px;
  background: transparent;
  color: var(--text3);
  text-align: left;
  cursor: pointer;
  font: 500 12px/1 var(--ui-mono);
  letter-spacing: 0.12em;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.st-strip button b {
  margin-right: 8px;
  font-weight: 600;
  color: var(--ok);
  letter-spacing: 0.04em;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.st-strip button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: calc(var(--p, 0) * 100%);
  background: var(--ok);
  opacity: 0;
}
.st-strip button.is-on { color: var(--text); border-color: var(--b2); }
.st-strip button.is-on b { opacity: 1; }
.st-strip button.is-on::after { opacity: 1; }
.st-strip button:hover { color: var(--text2); }
.st-strip button.is-on:hover { color: var(--text); }

/* ── H1: the three cards ──────────────────────────────────────────────── */
.st-demo-wrap {
  max-width: 920px;
  margin: 0 auto;
}
.st .st-sec {
  padding-top: clamp(72px, 9vw, 112px);
}
.st-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.st-card {
  padding: 26px 24px 28px;
  border: 1px solid #1d1d1d;
  border-radius: 18px;
  background: #0f0f0f;
}
.st-card h3 {
  margin: 18px 0 10px;
  font: 600 1.3rem/1.2 var(--ui-sans);
  letter-spacing: -0.025em;
  color: var(--text);
}
.st-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.62;
  color: var(--text2);
}
.st-card p + p { margin-top: 10px; }
.st-card .st-note {
  color: var(--text3);
  font-size: 0.92rem;
}
.st kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--b2);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--s2);
  font: 500 0.82em/1.4 var(--ui-mono);
  color: var(--text);
}
.st .hm-pro { vertical-align: 0.12em; margin-left: 4px; }

/* ── H2: steps on the left, demo on the right ─────────────────────────── */
.st-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.st-split .sd-col {
  position: sticky;
  top: 92px;
}
.st-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.st-steps button {
  position: relative;
  display: block;
  width: 100%;
  padding: 18px 20px 20px 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.st-steps button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 2px;
  background: var(--b1);
}
.st-steps button::after {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 2px;
  height: calc((100% - 36px) * var(--p, 0));
  border-radius: 2px;
  background: var(--ok);
  opacity: 0;
}
.st-steps h3 {
  margin: 12px 0 6px;
  font: 600 1.25rem/1.2 var(--ui-sans);
  letter-spacing: -0.025em;
  color: var(--text3);
  transition: color 0.25s ease;
}
.st-steps p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--text4, #6a6a6a);
  transition: color 0.25s ease;
}
.st-steps p + p { margin-top: 8px; }
.st-steps .st-tag b { opacity: 0.5; transition: opacity 0.25s ease; }
.st-steps button.is-on {
  border-color: #1f1f1f;
  background: #0f0f0f;
}
.st-steps button.is-on::after { opacity: 1; }
.st-steps button.is-on h3 { color: var(--text); }
.st-steps button.is-on p { color: var(--text2); }
.st-steps button.is-on .st-tag b { opacity: 1; }
.st-steps button:hover h3 { color: var(--text2); }
.st-steps button.is-on:hover h3 { color: var(--text); }
/* With no step lit (reduced motion, before a click), every step reads fully. */
.st-steps.is-all button h3 { color: var(--text); }
.st-steps.is-all button p { color: var(--text2); }
.st-steps.is-all .st-tag b { opacity: 1; }
.st-split .st-cta {
  justify-content: flex-start;
  margin-top: 28px;
  padding-left: 22px;
}

/* ── H3: pin first, then still pictures ───────────────────────────────── */
.st-pin {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.st-pin figure { margin: 0; }
.st-pin figcaption {
  margin-top: 14px;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text2);
}
.st-pin figcaption b {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-weight: 600;
}
.st-paper {
  position: relative;
  display: grid;
  place-items: center;
  height: 230px;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
}
.st-paper::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(60% 55% at 30% 20%, #f4f2ee, transparent 70%),
    radial-gradient(50% 50% at 85% 90%, #dcd8d0, transparent 70%);
}
.st-paper::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--grain);
  opacity: 0.12;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.st-paper > * { position: relative; z-index: 1; }

/* A piece of Chrome's toolbar, light theme. */
.cb {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 46px;
  padding: 0 8px 0 14px;
  border-radius: 12px;
  background: #fff;
  color: #474747;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 14px 36px rgba(0, 0, 0, 0.14);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.cb-omni {
  width: 120px;
  height: 32px;
  margin-right: 8px;
  padding-left: 14px;
  border-radius: 16px;
  background: #eef1f5;
  font-size: 13px;
  line-height: 32px;
  color: #5e5e5e;
  white-space: nowrap;
  overflow: hidden;
}
.cb-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}
.cb-btn svg { display: block; fill: currentColor; }
.cb-btn img { display: block; }
.cb-avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0 5px;
  border-radius: 50%;
  background: #7b8a9e;
  color: #fff;
  font: 500 12px/1 system-ui, sans-serif;
}
.cb-sep { width: 1px; height: 20px; margin: 0 6px; background: #d5d7da; }
/* The thing to click: a green ring and a number. */
.is-target {
  background: #e7f6ee;
  box-shadow: 0 0 0 2px var(--ok);
}
.st-num {
  position: absolute;
  top: -9px;
  right: -9px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0a0a0a;
  color: var(--ok);
  font: 600 11px/1 var(--ui-mono);
  box-shadow: 0 0 0 2px #fff;
}
/* Chrome's Extensions menu. */
.cm {
  width: 250px;
  padding: 12px 0 8px;
  border-radius: 12px;
  background: #fff;
  color: #1f1f1f;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 14px 36px rgba(0, 0, 0, 0.16);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.cm-t { margin: 0 16px 8px; font-size: 14px; font-weight: 500; }
.cm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 8px 0 16px;
  background: #f1f3f4;
  font-size: 13px;
}
.cm-row img { display: block; }
.cm-row > span:not(.cb-btn) { flex: 1; }
.cm-row .cb-btn { width: 30px; height: 30px; color: #474747; }
.cm-sep { height: 1px; margin: 8px 0; background: #e3e3e3; }
.cm-m { display: flex; align-items: center; gap: 10px; padding: 6px 16px; font-size: 13px; color: #474747; }
.cm-m svg { fill: currentColor; display: block; }

.st-rows {
  display: grid;
  gap: clamp(48px, 6vw, 72px);
}
.st-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.st-row h3 {
  margin: 14px 0 12px;
  font: 600 clamp(1.45rem, 2.3vw, 1.75rem)/1.15 var(--ui-sans);
  letter-spacing: -0.03em;
  color: var(--text);
}
.st-row > div:first-child p {
  margin: 0;
  max-width: 24rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text2);
}
.st-row > div:first-child p + p { margin-top: 10px; }
.st-row .st-paper { height: 400px; }
/* One part of the popup at a time: the rest of it sits faded. */
.st-row .sd-pop { zoom: 1.06; }
.st-piece .sd-pop > .is-dim { opacity: 0.22; }
.st-doc {
  width: 360px;
  max-width: calc(100% - 40px);
  padding: 22px 26px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 14px 36px rgba(0, 0, 0, 0.14);
  font: 15px/1.7 Arial, Helvetica, sans-serif;
  color: #202124;
}
.st-doc .sd-caret { animation: none; }
.st-pair { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.st-pair .sd-start { width: 200px; height: 40px; font-size: 14px; }

/* ── Narrow windows and phones ────────────────────────────────────────── */
@media (max-width: 900px) {
  .st-cards { grid-template-columns: minmax(0, 1fr); }
  .st-split { grid-template-columns: minmax(0, 1fr); }
  .st-split .sd-col { position: static; order: -1; }
  .st-split .st-cta { justify-content: center; padding-left: 0; }
  .st-pin { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .st-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .st-row .st-paper { height: 380px; }
  .st-row .sd-pop { zoom: 1; }
}
@media (max-width: 520px) {
  .st-strip { gap: 6px; }
  .st-strip button { padding: 10px 8px 12px; font-size: 10.5px; letter-spacing: 0.08em; text-align: center; }
  .st-strip button b { margin-right: 5px; }
  .st-card { padding: 22px 20px 24px; }
  .st-steps button { padding: 16px 14px 18px 18px; }
  .st-row .sd-pop { zoom: 0.92; }
}

/* ── The real popup and the real Doc as the step pictures ─────────────── */
/* Each picture is a frame: the released extension's popup (/ext/popup.html)
   or the homepage's demo Doc (/demo-doc), whole and at its own layout,
   scaled by start.js to fit its panel. They are pictures, so they take no
   clicks; the page scrolls over them. */
.st-row .st-popwrap,
.st-row .st-docwrap { height: 560px; }
.st-popbox,
.st-docbox {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18), 0 22px 50px rgba(0, 0, 0, 0.35);
}
.st-popbox { width: 340px; height: 480px; background: #0a0a0a; }
.st-pop,
.st-docframe {
  position: absolute;
  left: 0;
  top: 0;
  border: 0;
  display: block;
  transform-origin: 0 0;
  pointer-events: none;
}
.st-pop { width: 340px; height: 480px; }
.st-docbox { width: 640px; height: 460px; background: #f9fbfd; }
.st-docframe { width: 860px; height: 640px; }
/* Picture c: the real popup over the Doc, as Chrome opens it from the toolbar. */
.st-combo .st-popbox { position: absolute; right: 7%; top: 6%; z-index: 2; }
/* Pictures d to f: one part of the playing Doc, cut out by start.js
   (data-crop: x, y, width, height in the Doc's own 860 by 640). d is the page
   and its words alone, e the page with the timer card in its corner, f the
   timer card by itself. data-hide takes cards out of the frame. */
.st-crop .st-docbox { background: #fff; }
.st-alone .st-docbox { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.32)); }
.st-alone .st-docframe { clip-path: inset(0); }
/* g to k, more of f's kind (owner, 27 Oct 2026): g the timer card at its
   own size with a line under it, h the Coming up card alone, i the timer card
   on the site's near-black, j and k both cards as they sit at the foot of a
   Doc, on paper and on near-black. */
.st-withcap { grid-template-rows: auto auto; align-content: center; gap: 26px; }
.st-cap { margin: 0; font: 500 11px/1.4 var(--ui-mono); letter-spacing: .1em; text-transform: uppercase; color: #8f8b83; text-align: center; }
.st-ink { background: #121212; box-shadow: inset 0 0 0 1px #1f1f1f; }
.st-ink::before, .st-ink::after { display: none; }
/* A crop wider than its cards cut their own shadows off in a hard band:
   these show the whole (see-through) frame, and the shadows fade out. */
[data-noclip] .st-docframe { clip-path: none !important; }
.st-ink.st-alone .st-docbox { filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.10)) drop-shadow(0 24px 40px rgba(0, 0, 0, 0.6)); }
/* l and m (owner, 27 Oct 2026: none of a to k showed "Press Start"): l is
   a loop, the real popup with its Start row lit, a pointer pressing Start
   (the button's own pressed look), then the popup fades and the Coming up
   card types (h), then back. m holds both still side by side: the popup's
   own last rows, cut from the real popup, and the Coming up card. */
.st-paper > .st-layer { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .5s ease; }
.st-l-doc { opacity: 0; }
.st-seq.is-typing .st-l-pop { opacity: 0; }
.st-seq.is-typing .st-l-doc { opacity: 1; }
.st-pointer { position: absolute; left: 0; top: 0; width: 16px; height: 24px; z-index: 4; opacity: 0; pointer-events: none;
  filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.35)); transition: transform .75s cubic-bezier(.3,.7,.2,1), opacity .3s ease; }
.st-pointer svg { display: block; transform-origin: 2px 2px; transition: transform .12s ease; }
.st-pointer.is-down svg { transform: scale(.9); }
.st-pairpanel { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr); gap: 4px; align-items: center; padding: 0 14px; }
.st-pairpanel > .st-m-pop, .st-pairpanel > .st-m-doc { position: relative; display: grid; place-items: center; width: 100%; min-width: 0; height: 320px; }
.st-m-then { margin: 0; font: 500 11px/1 var(--ui-mono); letter-spacing: .12em; text-transform: uppercase; color: #8f8b83; }
@media (max-width: 1100px) {
  .st-pairpanel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 10px; padding: 0 10px; }
  .st-pairpanel > .st-m-pop, .st-pairpanel > .st-m-doc { width: 100%; height: 150px; }
}
/* n (the default): the popup still, a pointer resting on Start typing. */
.st-still { position: relative; }
.st-still .st-pointer { width: 13px; height: 20px; transition: none; }
/* Step 3 has pictures to choose from: ?s3=n (default) and a to m. */
[data-s3]:not(.is-s3) { display: none; }
@media (max-width: 900px) {
  .st-row .st-popwrap,
  .st-row .st-docwrap { height: 520px; }
}
@media (max-width: 520px) {
  .st-row .st-popwrap { height: 470px; }
  .st-row .st-docwrap { height: 340px; }
}
/* l is the popup's height, like steps 1 and 2; m stacks on narrow screens. */
@media (max-width: 1100px) { .st-row .st-pairpanel { height: 440px; } }
@media (max-width: 520px) {
  .st-row .st-seq { height: 470px; }
  .st-row .st-pairpanel { height: 400px; }
}

/* ── Still pictures: Google Slides and the cue card (2.7.0 page) ──────── */
.st-row .st-shotwrap { height: 400px; }
/* Step 2: only the popup's top bar, so a shorter panel. */
.st-row .st-popwrap.st-topbar { height: 320px; }
.st-paper > .st-popbox { z-index: 4; }
/* Above the paper's grain (::after), like the homepage's pictures: a picture of a screen stays clean. */
.st-paper > .st-shotbox { z-index: 4; }
.st-shotbox {
  position: relative;
  width: min(88%, 560px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14), 0 22px 50px rgba(0, 0, 0, 0.3);
}
.st-shotcard { width: min(78%, 400px); border-radius: 14px; }
.st-shot { display: block; width: 100%; height: auto; }
/* Around Slides' own speaker notes box in the picture (its place there, in percent). */
.st-ring {
  position: absolute;
  left: 2.4%;
  top: 89.6%;
  width: 95.2%;
  height: 8.6%;
  border: 2.5px solid #3ecf8e;
  border-radius: 10px;
  box-shadow: 0 0 0 4px rgba(62, 207, 142, 0.22);
  pointer-events: none;
}
@media (max-width: 900px) {
  .st-row .st-shotwrap { height: auto; padding: 32px 0; }
  .st-row .st-popwrap.st-topbar { height: auto; padding: 64px 0; }
  .st-shotbox { width: calc(100% - 40px); }
  .st-shotcard { width: min(calc(100% - 40px), 400px); }
}
