/* Teams Transcript Downloader landing page.
   Standalone on purpose: plain, trustworthy, no Supa TV styling.
   The CSP forbids inline styles, so everything lives here. */

:root {
  --ink: #111827;
  --muted: #4b5563;
  --faint: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f7f8fb;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eff4ff;
  --ok: #059669;
  --warn-bg: #fff8e6;
  --warn-line: #f5c451;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
code, kbd, pre, textarea { font-family: var(--mono); }
code { font-size: 0.88em; background: #f1f3f7; padding: 0.1em 0.35em; border-radius: 5px; }
kbd {
  font-size: 0.8em;
  padding: 0.1em 0.45em;
  border: 1px solid #d1d5db;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #fff;
}
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin: 0 0 0.5em; }
h3 { font-size: 1.2rem; margin: 0 0 0.4em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- header ---------- */

.top { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand:hover { color: var(--ink); }
.top-nav { display: flex; gap: 20px; font-size: 15px; }
.top-nav a { color: var(--muted); text-decoration: none; }
.top-nav a:hover { color: var(--ink); }
@media (max-width: 620px) { .top-nav { display: none; } }

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

.hero {
  padding: 56px 0 32px;
  text-align: center;
  background: linear-gradient(180deg, #f3f6ff 0%, #fff 70%);
}
.indep {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); margin: 0 0 0.35em; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); margin: 0 auto 28px; max-width: 620px; }

.install { margin: 0 auto; max-width: 560px; }
.install-drag { display: flex; flex-direction: column; align-items: center; }
.bookmarklet-wrap { margin: 0; }
.bookmarklet,
.bookmarklet:visited {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  cursor: grab;
  transition: transform 0.15s, box-shadow 0.15s;
}
.bookmarklet::before {
  content: "";
  width: 18px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 22'%3E%3Cpath d='M2 1h14v20l-7-5-7 5z' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / contain;
}
.bookmarklet:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4); }
.bookmarklet:active { cursor: grabbing; }
.drag-hint { margin: 12px 0 0; font-weight: 600; color: var(--accent-dark); }
.install-help { margin: 14px 0 0; font-size: 15px; color: var(--faint); }

.copy-code { margin: 14px auto 0; text-align: left; font-size: 15px; color: var(--muted); }
.copy-code summary { cursor: pointer; text-align: center; color: var(--accent); }
.copy-code p { margin: 10px 0; }
.bookmarklet-url {
  display: block;
  width: 100%;
  height: 120px;
  padding: 10px;
  font-size: 12px;
  line-height: 1.35;
  word-break: break-all;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fafafa;
  color: var(--ink);
  resize: vertical;
}

.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  font-size: 15px;
  color: var(--muted);
}
.trust li::before { content: "\2713"; color: var(--ok); font-weight: 700; margin-right: 6px; }

/* ---------- notice, sections ---------- */

.notice {
  margin: 8px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--warn-line);
  border-left-width: 5px;
  border-radius: 10px;
  background: var(--warn-bg);
}
.notice p { margin: 0; }

.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.section-lead { color: var(--muted); margin: 0 0 32px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px; }
.step { display: grid; grid-template-columns: 1fr 1.25fr; gap: 36px; align-items: center; }
.step > * { min-width: 0; }
.step:nth-child(even) { grid-template-columns: 1.25fr 1fr; }
.step:nth-child(even) .step-text { order: 2; }
.step-n {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.step-text p { margin: 0 0 0.7em; color: var(--muted); }
.step-text .tip { font-size: 15px; padding: 10px 12px; border-radius: 8px; background: var(--accent-soft); color: var(--ink); }
.step-img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.1);
}
@media (max-width: 760px) {
  .step, .step:nth-child(even) { grid-template-columns: 1fr; gap: 16px; }
  .step:nth-child(even) .step-text { order: 0; }
}

pre.sample {
  margin: 12px 0 0;
  padding: 12px 14px;
  overflow-x: auto;
  border-radius: 10px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.55;
}

.callout {
  margin-top: 56px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.callout p { margin: 0; color: var(--muted); }

.checks { padding-left: 1.3em; }
.checks li { margin-bottom: 0.8em; }
.fine { font-size: 14px; color: var(--faint); }

.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.features li { padding: 16px 18px 16px 52px; border: 1px solid var(--line); border-radius: 12px; position: relative; color: var(--muted); }
.features li b { color: var(--ink); }
.features li::before {
  content: "\2713";
  position: absolute;
  left: 16px;
  top: 15px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7f7f0;
  color: var(--ok);
  font-weight: 700;
  font-size: 14px;
}

#faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
#faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
#faq details p { margin: 10px 0 0; color: var(--muted); }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 15px; color: var(--faint); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot p { margin: 0; }

/* =====================================================================
   Animated walkthrough
   A fake browser drawn in em units on an 80 x 50 em stage, scaled with
   container units. One 18 s timeline, all keyframes share it:
     0-3 s   Teams: Recap -> Watch in browser
     3-7 s   player: Read transcript, then the bookmark
     7-12.8  panel appears, transcript scrolls, count goes up
     12.8-18 Download .txt, file appears
   ===================================================================== */

.wt-figure { margin: 44px auto 0; max-width: 1000px; }
.wt { container-type: inline-size; }
.wt-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 80 / 50;
  font: 1.25cqw/1.35 var(--font);
  color: #1f2937;
  background: #fff;
  border: 1px solid #d7dbe3;
  border-radius: 1em;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(17, 24, 39, 0.28), 0 10px 20px -10px rgba(17, 24, 39, 0.12);
  text-align: left;
}
.wt-stage * { position: absolute; margin: 0; font-style: normal; }
.wt-stage b { font-weight: 600; }
.wt-stage small { font-size: 0.82em; color: #6b7280; }
.wt-stage p { position: static; }

/* browser chrome */
.wt-tabs { left: 0; top: 0; width: 80em; height: 3em; background: #e3e6eb; }
.wt-dot { top: 1.05em; width: 0.9em; height: 0.9em; border-radius: 50%; }
.wt-dot.r { left: 1.1em; background: #ff5f57; }
.wt-dot.y { left: 2.5em; background: #febc2e; }
.wt-dot.g { left: 3.9em; background: #28c840; }
.wt-tab { left: 6em; top: 0.6em; width: 20em; height: 2.4em; background: #fff; border-radius: 0.6em 0.6em 0 0; font-size: 0.95em; }
.wt-tab span { left: 1em; top: 0.55em; white-space: nowrap; }
.wt-bar { left: 0; top: 3em; width: 80em; height: 3em; background: #fff; }
.wt-nav { top: 0.75em; width: 1.4em; text-align: center; color: #6b7280; font-size: 1.05em; }
.wt-nav:nth-child(1) { left: 0.9em; }
.wt-nav:nth-child(2) { left: 2.6em; }
.wt-nav:nth-child(3) { left: 4.3em; }
.wt-url { left: 7.2em; top: 0.5em; width: 71em; height: 2em; border-radius: 1em; background: #f1f3f4; font-size: 1em; color: #374151; overflow: hidden; }
.wt-url span { left: 1em; top: 0.3em; white-space: nowrap; }
.wt-marks { left: 0; top: 6em; width: 80em; height: 2.5em; background: #fff; border-bottom: 1px solid #e5e7eb; }
.wt-mark { top: 0.35em; height: 1.8em; padding: 0.25em 0.7em 0 2em; border-radius: 0.9em; font-size: 0.9em; color: #374151; white-space: nowrap; }
.wt-mark::before { content: ""; position: absolute; left: 0.65em; top: 0.45em; width: 0.95em; height: 0.95em; border-radius: 50%; background: #c7ccd6; }
.wt-mark.m1 { left: 0.8em; }
.wt-mark.m2 { left: 6.2em; }
.wt-bm { left: 13.6em; color: #111827; font-weight: 600; }
.wt-bm::before { background: #2563eb; }
.wt-mark.m4 { left: 24.4em; }
.wt-mark.m5 { left: 29.6em; }

.wt-scene { left: 0; top: 8.5em; width: 80em; height: 41.5em; overflow: hidden; }

/* avatars */
.wt-stage .av {
  width: 2.2em; height: 2.2em; border-radius: 50%;
  color: #fff; font-size: 0.8em; font-weight: 700; text-align: center; line-height: 2.2em;
}
.av.o { background: #e07b39; }
.av.t { background: #14a38b; }
.av.b { background: #3b6fd8; }
.av.g { background: #7c9a2e; }
.av.p { background: #6d5bd0; }

/* scene A: Teams */
.a-rail { left: 0; top: 0; width: 4.5em; height: 41.5em; background: #eceef2; }
.a-rail i { left: 1.25em; width: 2em; height: 2em; border-radius: 0.5em; background: #cfd3db; }
.a-rail i:nth-child(1) { top: 1.4em; background: #5b5fc7; }
.a-rail i:nth-child(2) { top: 5.2em; }
.a-rail i:nth-child(3) { top: 9em; }
.a-rail i:nth-child(4) { top: 12.8em; }
.a-rail i:nth-child(5) { top: 16.6em; }
.a-list { left: 4.5em; top: 0; width: 18em; height: 41.5em; background: #f6f7f9; border-right: 1px solid #e5e7eb; }
.a-list-h { left: 1.1em; top: 1em; font-size: 1.35em; }
.a-item { left: 0.6em; width: 16.8em; height: 4.2em; border-radius: 0.6em; }
.a-item.on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.a-item:nth-of-type(1) { top: 4.4em; }
.a-item:nth-of-type(2) { top: 8.8em; }
.a-item:nth-of-type(3) { top: 13.2em; }
.a-item:nth-of-type(4) { top: 17.6em; }
.a-item:nth-of-type(5) { top: 22em; }
.a-item .av { left: 0.6em; top: 0.85em; width: 2.6em; height: 2.6em; line-height: 2.6em; font-size: 0.85em; }
.a-item b { left: 3.6em; top: 0.6em; font-size: 0.95em; white-space: nowrap; }
.a-item small { left: 4.35em; top: 2.6em; white-space: nowrap; }
.a-item em { right: 0.7em; top: 0.75em; font-size: 0.75em; color: #6b7280; }
.a-main { left: 22.5em; top: 0; width: 57.5em; height: 41.5em; }
.a-head { left: 0; top: 0; width: 57.5em; height: 4em; border-bottom: 1px solid #e5e7eb; }
.a-head > b { left: 1.5em; top: 0.9em; font-size: 1.3em; }
.a-tabs { left: 30em; top: 1.2em; font-size: 0.95em; }
.a-tabs span { position: relative; display: inline-block; margin-right: 1.4em; color: #4b5563; }
.a-tabs span.on { color: #111827; font-weight: 700; }
.a-tabs span.on::after { content: ""; position: absolute; left: 0; right: 0; top: 2.05em; height: 0.2em; border-radius: 0.1em; background: #5b5fc7; }
.a-date { left: 1.5em; top: 5.2em; width: 17em; height: 2.6em; border: 1px solid #d1d5db; border-radius: 0.4em; padding: 0.55em 0 0 0.8em; font-size: 0.95em; }
.a-watch {
  left: 39.5em; top: 5.2em; width: 16em; height: 2.6em; border-radius: 0.4em;
  background: #eef0ff; color: #4f52b2; border: 1px solid #c9ccf3; font-weight: 600; text-align: center; line-height: 2.5em;
}
.a-video, .b-video { background: #1c1d22; border-radius: 0.6em; overflow: hidden; }
.a-video { left: 1.5em; top: 9em; width: 36em; height: 22.5em; }
.wt-stage .screen { left: 0.8em; top: 0.8em; width: 28em; height: 20.9em; background: #f4f5f7; border-radius: 0.2em; }
.screen i { left: 1em; height: 0.8em; border-radius: 0.2em; background: #dfe3ea; }
.screen i:nth-child(1) { top: 1em; width: 26em; background: #c9ced8; }
.screen i:nth-child(2) { top: 3em; width: 20em; }
.screen i:nth-child(3) { top: 5em; width: 24em; }
.screen i:nth-child(4) { top: 7em; width: 17em; }
.screen i:nth-child(5) { top: 9em; width: 22em; }
.screen i:nth-child(6) { top: 11em; width: 14em; background: #e9d98a; }
.screen i:nth-child(7) { top: 13em; width: 25em; }
.wt-stage .tiles { right: 0.6em; top: 0.8em; width: 6em; height: 20.9em; }
.tiles .av { left: 1em; width: 4em; height: 4em; line-height: 4em; font-size: 1em; border-radius: 0.5em; }
.tiles .av:nth-child(1) { top: 0; }
.tiles .av:nth-child(2) { top: 5.2em; }
.tiles .av:nth-child(3) { top: 10.4em; }
.tiles .av:nth-child(4) { top: 15.6em; }
.wt-stage .play {
  left: calc(50% - 3em); top: calc(50% - 3em); width: 6em; height: 6em; border-radius: 50%;
  background: rgba(60, 60, 64, 0.85);
}
.wt-stage .play::after {
  content: ""; position: absolute; left: 2.3em; top: 1.7em;
  border-left: 2.1em solid #fff; border-top: 1.3em solid transparent; border-bottom: 1.3em solid transparent;
}
.a-side { left: 39.5em; top: 9em; width: 16em; height: 32em; }
.a-card { left: 0; top: 0; width: 16em; height: 5.4em; border: 1px solid #e5e7eb; border-radius: 0.6em; }
.a-card b { left: 1em; top: 0.8em; }
.a-card small { left: 1.2em; top: 3.1em; }
.a-pills { left: 0; top: 7em; }
.a-pills span { position: relative; display: inline-block; margin-right: 0.5em; padding: 0.3em 0.9em; border: 1px solid #d1d5db; border-radius: 1em; font-size: 0.9em; }
.a-pills span.on { border-color: #5b5fc7; color: #4f52b2; background: #eef0ff; }
.a-art { left: 3em; top: 11.5em; width: 10em; height: 8em; border-radius: 1em; background: #f1effc; }
.a-art i { border-radius: 50%; }
.a-art i:nth-child(1) { left: 1.6em; top: 2.4em; width: 2.6em; height: 2.6em; background: #f6a23a; }
.a-art i:nth-child(2) { left: 5.4em; top: 1.6em; width: 2em; height: 2em; background: #8b7cf0; }
.a-art i:nth-child(3) { left: 4.4em; top: 4.6em; width: 4.4em; height: 1.2em; border-radius: 0.6em; background: #5fd0c5; }

/* scene B: browser player */
.b-top { left: 0; top: 0; width: 80em; height: 4em; background: #fafafa; border-bottom: 1px solid #e5e7eb; }
.b-apps { left: 1.3em; top: 1.3em; width: 1.4em; height: 1.4em; border-radius: 0.2em; background: #c7ccd6; }
.b-top b { left: 4em; top: 1.15em; font-size: 1em; }
.b-search { left: 28em; top: 0.8em; width: 24em; height: 2.4em; border: 1px solid #d1d5db; border-radius: 0.4em; padding: 0.5em 0 0 1em; color: #9ca3af; font-size: 0.95em; }
.b-share { left: 70.5em; top: 0.8em; width: 7.5em; height: 2.4em; border-radius: 0.4em; background: #6d5bd0; color: #fff; text-align: center; line-height: 2.4em; font-weight: 600; font-size: 0.95em; }
.b-tools { left: 3em; top: 4.9em; font-size: 0.9em; color: #4b5563; }
.b-tools span { position: relative; display: inline-block; margin-right: 1.8em; }
.b-video { left: 3em; top: 8em; width: 44em; height: 27.5em; }
.b-video .screen { width: 36em; height: 25.9em; }
.b-video .tiles { height: 25.9em; }
.b-video .tiles .av { width: 5em; height: 5em; line-height: 5em; left: 0.5em; }
.b-video .tiles .av:nth-child(2) { top: 6.4em; }
.b-video .tiles .av:nth-child(3) { top: 12.8em; }
.b-video .tiles .av:nth-child(4) { top: 19.2em; }
.b-read {
  left: 1.5em; top: 23.5em; width: 11em; height: 2.4em; border-radius: 0.4em;
  background: rgba(30, 30, 34, 0.88); color: #fff; font-size: 0.95em; text-align: center; line-height: 2.4em;
}
.b-title { left: 2.25em; top: 27.2em; font-size: 1.35em; }
.b-meta { left: 3.66em; top: 47.6em; }
.b-rail { left: 76.3em; top: 7.5em; width: 3.2em; height: 12em; }
.b-rail i { left: 0.4em; width: 2.4em; height: 2.4em; border-radius: 0.4em; background: #e5e7eb; }
.b-rail i:nth-child(1) { top: 0; background: #e8e6fb; border: 1px solid #c9c2f5; }
.b-rail i:nth-child(2) { top: 3.4em; }
.b-rail i:nth-child(3) { top: 6.8em; }
.b-pane { left: 50em; top: 7.5em; width: 25.5em; height: 34em; background: #fff; border-left: 1px solid #e5e7eb; }
.b-pane-h { left: 1.2em; top: 0.9em; font-size: 1.1em; }
.b-x { right: 1em; top: 0.8em; color: #6b7280; font-size: 1.2em; }
.b-dl { left: 1.2em; top: 3.4em; color: #b9bec8; font-size: 0.95em; }
.b-find { left: 1.2em; top: 5.7em; width: 23em; height: 2.3em; border-bottom: 2px solid #9ca3af; padding: 0.45em 0 0 0.4em; color: #9ca3af; font-size: 0.95em; }
.b-ai { left: 1.2em; top: 9.4em; font-size: 0.78em; }
.b-list-clip { left: 0; top: 11.5em; width: 25.5em; height: 22.5em; overflow: hidden; }
.b-list { left: 0; top: 0; width: 25.5em; }
.b-list .e { position: relative; height: 4.8em; }
.e .av { left: 1.1em; top: 0.4em; }
.e b { left: 4.3em; top: 0.25em; font-size: 0.85em; white-space: nowrap; }
.e b em { position: static; font-weight: 400; color: #6b7280; margin-left: 0.4em; }
.e p { position: absolute; left: 4.6em; top: 1.65em; width: 22.5em; font-size: 0.9em; line-height: 1.3; }

/* the collector panel (looks like the real one) */
.wt-panel {
  left: 51.5em; top: 29.2em; width: 27.5em; height: 11.6em;
  background: #fff; border: 1px solid #c7c7c7; border-radius: 0.65em;
  box-shadow: 0 0.35em 1.3em rgba(0,0,0,0.2);
}
.wt-panel > b { left: 1.1em; top: 0.9em; font-size: 1em; }
.wt-panel .cnt { left: 1.1em; top: 2.6em; width: 20em; height: 1.4em; }
.wt-panel .cnt span { left: 0; top: 0; white-space: nowrap; }
.wt-panel > small { left: 1.35em; top: 5.1em; width: 30em; font-size: 0.82em; }
.wt-panel .btns { left: 1.1em; top: 8em; }
.wt-panel .btns span {
  position: relative; display: inline-block; margin-right: 0.45em; padding: 0.3em 0.8em;
  border: 1px solid #c7c7c7; border-radius: 0.3em; font-size: 0.9em; background: #fff;
}
.wt-panel .btns .p-dl { background: #5b5fc7; border-color: #5b5fc7; color: #fff; }

.wt-file {
  left: 52em; top: 9.3em; width: 26em; height: 4.2em;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 0.7em;
  box-shadow: 0 0.6em 1.6em rgba(0,0,0,0.16);
}
.wt-file i { left: 1em; top: 1em; width: 2.2em; height: 2.2em; border-radius: 50%; background: #e7f7f0; color: #059669; text-align: center; line-height: 2.2em; font-weight: 700; }
.wt-file b { left: 4em; top: 0.75em; font-size: 0.95em; white-space: nowrap; }
.wt-file small { left: 4.9em; top: 2.55em; }

.wt-cursor { left: 0; top: 0; z-index: 5; }
.wt-cursor svg { left: 0; top: 0; filter: drop-shadow(0 0.1em 0.15em rgba(0,0,0,0.3)); }
.wt-ripple { left: -1.4em; top: -1.4em; width: 2.8em; height: 2.8em; border-radius: 50%; background: #2563eb; opacity: 0; }
.wt-wheel { left: 1.8em; top: 1.6em; width: 1.5em; height: 2.3em; border: 0.15em solid #111; border-radius: 0.8em; background: #fff; opacity: 0; }
.wt-wheel i { left: 0.5em; top: 0.35em; width: 0.25em; height: 0.55em; border-radius: 0.2em; background: #111; }
.wt-fade { left: 0; top: 8.5em; width: 80em; height: 41.5em; background: #fff; z-index: 6; }

/* caption under the stage */
.wt-caption { margin: 18px auto 0; max-width: 900px; }
.wt-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  font-size: 14px; color: var(--faint); text-align: left;
}
.wt-steps li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.3; }
.wt-steps b {
  flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: #e5e7eb; color: var(--muted); font-size: 12px;
}
.wt-progress { position: relative; height: 3px; margin-top: 12px; border-radius: 2px; background: #e5e7eb; overflow: hidden; }
.wt-progress i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; }
@media (max-width: 620px) {
  .wt-steps { grid-template-columns: 1fr 1fr; }
}

/* ---------- the timeline ---------- */

.wt-a, .wt-b, .b-pane, .wt-panel, .cnt span, .b-list, .wt-file, .wt-cursor,
.wt-ripple, .wt-wheel, .wt-fade, .a-watch, .b-read, .wt-bm, .p-dl,
.wt-steps li, .wt-steps b, .wt-progress i {
  animation-duration: 18s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  animation-fill-mode: both;
}

.wt-a { animation-name: wt-a; }
.wt-b { animation-name: wt-b; }
@keyframes wt-a { 0%, 16.4% { opacity: 1; } 17.2%, 100% { opacity: 0; } }
@keyframes wt-b { 0%, 16.4% { opacity: 0; } 17.2%, 100% { opacity: 1; } }

.wt-fade { animation-name: wt-fade; }
@keyframes wt-fade { 0% { opacity: 1; } 2.5%, 95.5% { opacity: 0; } 100% { opacity: 1; } }

.wt-cursor { animation-name: wt-cursor; }
@keyframes wt-cursor {
  0%, 3.3%   { transform: translate(40em, 30em); animation-timing-function: ease-in-out; }
  12.2%      { transform: translate(70em, 15em); }
  18.9%      { transform: translate(70em, 15em); animation-timing-function: ease-in-out; }
  24.4%      { transform: translate(9.6em, 39.8em); }
  30%        { transform: translate(9.6em, 39.8em); animation-timing-function: ease-in-out; }
  35.6%      { transform: translate(18.3em, 7.3em); }
  40.6%      { transform: translate(18.3em, 7.3em); animation-timing-function: ease-in-out; }
  44.4%      { transform: translate(62em, 30em); }
  68.9%      { transform: translate(62em, 30em); animation-timing-function: ease-in-out; }
  73.3%, 100% { transform: translate(57em, 47.4em); }
}

.wt-ripple { animation-name: wt-ripple; }
@keyframes wt-ripple {
  0%, 13.8%    { opacity: 0; transform: scale(0.3); }
  13.9%        { opacity: 0.5; transform: scale(0.3); }
  15.6%        { opacity: 0; transform: scale(1.8); }
  15.7%, 25.5% { opacity: 0; transform: scale(0.3); }
  25.6%        { opacity: 0.5; transform: scale(0.3); }
  27.3%        { opacity: 0; transform: scale(1.8); }
  27.4%, 37.1% { opacity: 0; transform: scale(0.3); }
  37.2%        { opacity: 0.5; transform: scale(0.3); }
  38.9%        { opacity: 0; transform: scale(1.8); }
  39%, 74.9%   { opacity: 0; transform: scale(0.3); }
  75%          { opacity: 0.5; transform: scale(0.3); }
  76.7%        { opacity: 0; transform: scale(1.8); }
  76.8%, 100%  { opacity: 0; transform: scale(0.3); }
}

.wt-wheel { animation-name: wt-wheel; }
@keyframes wt-wheel { 0%, 43.9% { opacity: 0; } 44.4%, 66.7% { opacity: 1; } 67.2%, 100% { opacity: 0; } }
.wt-wheel i { animation: wt-wheel-dot 0.9s ease-in-out infinite; }
@keyframes wt-wheel-dot { 0% { transform: translateY(0); } 60%, 100% { transform: translateY(0.7em); opacity: 0; } }

/* pressed buttons */
.a-watch { animation-name: wt-press-watch; }
@keyframes wt-press-watch { 0%, 13.7%, 15.8%, 100% { background: #eef0ff; } 13.9%, 15.6% { background: #d5d8fb; } }
.b-read { animation-name: wt-press-read; }
@keyframes wt-press-read { 0%, 25.4%, 27.5%, 100% { background: rgba(30, 30, 34, 0.88); } 25.6%, 27.3% { background: #000; } }
.wt-bm { animation-name: wt-bm; }
@keyframes wt-bm { 0%, 33.5%, 41.2%, 100% { background: transparent; } 35%, 37% { background: #e8eaed; } 37.2%, 40.6% { background: #d2e0fb; } }
.p-dl { animation-name: wt-press-dl; }
@keyframes wt-press-dl { 0%, 74.8%, 77%, 100% { background: #5b5fc7; } 75%, 76.8% { background: #3f43a8; } }

.b-pane { animation-name: wt-pane; }
@keyframes wt-pane { 0%, 26% { opacity: 0; transform: translateX(3em); } 28.3%, 100% { opacity: 1; transform: none; } }

.wt-panel { animation-name: wt-panel; }
@keyframes wt-panel { 0%, 38.6% { opacity: 0; transform: translateY(1em); } 40%, 100% { opacity: 1; transform: none; } }

.cnt .c1 { animation-name: wt-c1; }
.cnt .c2 { animation-name: wt-c2; }
.cnt .c3 { animation-name: wt-c3; }
.cnt .c4 { animation-name: wt-c4; }
.cnt .c5 { animation-name: wt-c5; }
@keyframes wt-c1 { 0%, 47% { opacity: 1; } 47.2%, 100% { opacity: 0; } }
@keyframes wt-c2 { 0%, 47% { opacity: 0; } 47.2%, 52.6% { opacity: 1; } 52.8%, 100% { opacity: 0; } }
@keyframes wt-c3 { 0%, 52.6% { opacity: 0; } 52.8%, 58.1% { opacity: 1; } 58.3%, 100% { opacity: 0; } }
@keyframes wt-c4 { 0%, 58.1% { opacity: 0; } 58.3%, 63.7% { opacity: 1; } 63.9%, 100% { opacity: 0; } }
@keyframes wt-c5 { 0%, 63.7% { opacity: 0; } 63.9%, 100% { opacity: 1; } }

.b-list { animation-name: wt-scroll; }
@keyframes wt-scroll {
  0%, 44.4% { transform: translateY(0); animation-timing-function: ease-in-out; }
  47.2%     { transform: translateY(-9em); animation-timing-function: ease-in-out; }
  52.8%     { transform: translateY(-19em); animation-timing-function: ease-in-out; }
  58.3%     { transform: translateY(-29em); animation-timing-function: ease-in-out; }
  63.9%     { transform: translateY(-39em); animation-timing-function: ease-out; }
  66.7%, 100% { transform: translateY(-54.3em); }
}

.wt-file { animation-name: wt-file; }
@keyframes wt-file { 0%, 76.4% { opacity: 0; transform: translateY(-0.8em); } 77.8%, 100% { opacity: 1; transform: none; } }

/* caption steps light up with the timeline */
.wt-steps .s1 { animation-name: wt-s1; }
.wt-steps .s2 { animation-name: wt-s2; }
.wt-steps .s3 { animation-name: wt-s3; }
.wt-steps .s4 { animation-name: wt-s4; }
@keyframes wt-s1 { 0%, 16.6% { color: #111827; } 16.7%, 100% { color: #9ca3af; } }
@keyframes wt-s2 { 0%, 16.6% { color: #9ca3af; } 16.7%, 38.8% { color: #111827; } 38.9%, 100% { color: #9ca3af; } }
@keyframes wt-s3 { 0%, 38.8% { color: #9ca3af; } 38.9%, 71% { color: #111827; } 71.1%, 100% { color: #9ca3af; } }
@keyframes wt-s4 { 0%, 71% { color: #9ca3af; } 71.1%, 100% { color: #111827; } }
.wt-steps .s1 b { animation-name: wt-d1; }
.wt-steps .s2 b { animation-name: wt-d2; }
.wt-steps .s3 b { animation-name: wt-d3; }
.wt-steps .s4 b { animation-name: wt-d4; }
@keyframes wt-d1 { 0%, 16.6% { background: #2563eb; color: #fff; } 16.7%, 100% { background: #e5e7eb; color: #6b7280; } }
@keyframes wt-d2 { 0%, 16.6% { background: #e5e7eb; color: #6b7280; } 16.7%, 38.8% { background: #2563eb; color: #fff; } 38.9%, 100% { background: #e5e7eb; color: #6b7280; } }
@keyframes wt-d3 { 0%, 38.8% { background: #e5e7eb; color: #6b7280; } 38.9%, 71% { background: #2563eb; color: #fff; } 71.1%, 100% { background: #e5e7eb; color: #6b7280; } }
@keyframes wt-d4 { 0%, 71% { background: #e5e7eb; color: #6b7280; } 71.1%, 100% { background: #2563eb; color: #fff; } }

.wt-progress i { animation-name: wt-progress; }
@keyframes wt-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* No motion: freeze on the scrolling scene, which shows the whole idea. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wt *, .wt *::before, .wt *::after {
    animation-delay: -10s !important;
    animation-play-state: paused !important;
  }
}
