.wch-section {
  --wch-violet: #7950a3;
  --wch-panel: #f8f4fc;
  margin-block: clamp(72px, 8vw, 124px) 0;
  scroll-margin-top: 108px;
}
html[data-theme="dark"] .wch-section {
  --wch-violet: #ddbefd;
  --wch-panel: #251d35;
}
.wch-heading {
  border-block-start: 1px solid var(--line, #dfd6e8);
  padding-block-start: clamp(36px, 5vw, 68px);
  margin-block-end: clamp(25px, 4vw, 44px);
}
.wch-heading h2 {
  margin: 0;
  font-size: clamp(34px, 7vw, 68px);
  letter-spacing: -.045em;
  line-height: 1.08;
}
html[dir="rtl"] .wch-heading h2,
html[dir="rtl"] .wch-copy h3 { letter-spacing: normal; line-height: 1.35; }
.wch-heading p,
.wch-copy p {
  color: var(--muted, currentColor);
  line-height: 1.65;
  margin-block: 12px 0;
  max-inline-size: 45ch;
}
.wch-chapters { display: grid; gap: clamp(22px, 4vw, 55px); list-style: none; margin: 0; padding: 0; }
.wch-chapter { min-inline-size: 0; }
.wch-chapter article {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(15px, 3vw, 34px);
  padding: clamp(16px, 3vw, 40px);
  border: 1px solid var(--line, #e4d8ec);
  border-radius: clamp(17px, 3vw, 29px);
  background: var(--wch-panel);
}
.wch-copy { min-width: 0; align-self: center; }
.wch-copy h3 {
  margin: 0;
  font-size: clamp(25px, 4.3vw, 49px);
  letter-spacing: -.034em;
  line-height: 1.09;
  text-wrap: balance;
}
.wch-copy p, .wch-heading p { font-size: clamp(15px, 2vw, 18px); }
.wch-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #ece4f5;
  isolation: isolate;
  overflow: hidden;
  border-radius: clamp(9px, 2vw, 16px);
  box-shadow: 0 13px 35px #3d224720;
}
.wch-media img, .wch-media video { display: block; width: 100%; height: 100%; object-fit: contain; }
.wch-media video { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.wch-media.wch-started video { opacity: 1; }
.wch-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-block-start: 6px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--wch-violet);
  font: inherit;
  font-size: .875rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.wch-toggle[hidden], .wch-action { display: none; }
.wch-toggle:not([data-state="pause"]) .wch-action-play,
.wch-toggle[data-state="pause"] .wch-action-pause { display: inline; }
.wch-toggle:hover { text-decoration-thickness: 2px; }
.wch-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (min-width: 960px) {
  .wch-chapter article {
    grid-template-columns: minmax(0, .63fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 84px);
  }
  .wch-chapter:nth-child(even) article { grid-template-columns: minmax(0, 1fr) minmax(0, .63fr); }
  .wch-chapter:nth-child(even) .wch-copy { grid-column: 2; grid-row: 1; }
  .wch-chapter:nth-child(even) .wch-media { grid-column: 1; grid-row: 1; }
}


/* Scroll reveals and the localized layer drawn over the sample footage. */
.wch-chapter article { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .wch-observed .wch-chapter:not(.wch-in-view):not(:focus-within) article {
    opacity: 0;
    transform: translateY(clamp(30px, 5vw, 76px)) scale(.96);
    filter: blur(6px);
  }
  .wch-observed .wch-chapter.wch-in-view article {
    transition: opacity .64s ease, transform .86s cubic-bezier(.18,.86,.32,1), filter .65s ease;
    transform-origin: center 70%;
  }
}
.wch-media { container-type: inline-size; }
.wch-media.wch-localized > img { visibility: hidden; }
.wch-media .wch-demo-clock { opacity: 0; }
.wch-demo {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  direction: ltr;
  color: #2e2040;
  background: #f9f5fc;
  font-family: inherit;
  font-size: clamp(10px, 3.25cqw, 21px);
}
.wch-demo-bar {
  display: flex;
  flex: 0 0 13%;
  align-items: center;
  justify-content: space-between;
  padding: 0 3.5%;
  gap: 1.15cqw;
  color: #543b67;
  background: #fff;
  border-bottom: 1px solid #ecdfef;
  line-height: 1.15;
}
.wch-demo-bar > b { margin-inline-end: auto; }
.wch-demo-dots { display: flex; gap: .45cqw; }
.wch-demo-dots i { width: .8cqw; min-width: 3px; aspect-ratio: 1; border-radius: 50%; background: #bb98d1; }
.wch-demo-dots i:nth-child(2) { background: #e1b1cf; }
.wch-demo-dots i:nth-child(3) { background: #a4c9c2; }
.wch-demo-pair { display: flex; align-items: center; gap: 1.05cqw; font-size: .75em; font-weight: 700; }
.wch-demo-pair bdi:last-child { color: #733ba1; }
.wch-demo-stage {
  position: relative;
  isolation: isolate;
  flex: 1;
  min-height: 0;
  background: radial-gradient(ellipse at 82% 4%, #e9d9f6, transparent 65%), linear-gradient(135deg, #fff, #f3ebfb 55%, #e8ebf3);
}
.wch-demo-photo {
  position: absolute;
  inset: 0;
  background-color: #493958;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.wch-media .wch-demo-photo video {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .25s linear;
}
.wch-demo-web .wch-demo-photo { bottom: 44%; }
.wch-demo-web .wch-demo-stage { background: #fff; }
.wch-demo-article { position: absolute; left: 17%; right: 17%; bottom: 5%; }
.wch-demo-text {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: 1.28;
  overflow-wrap: anywhere;
}
.wch-demo-result {
  margin-top: .45em;
  padding: .25em .55em;
  border-radius: .25em;
  background: #ede2f8;
  color: #57327d;
}
.wch-demo [data-wch-target], .wch-demo-image-box, .wch-demo-ocr, .wch-demo-paper:last-child {
  transition: opacity .36s ease, transform .46s cubic-bezier(.2,.8,.32,1);
}
.wch-demo:is([data-step="0"],[data-step="1"],[data-step="2"]) [data-wch-target],
.wch-demo:is([data-step="0"],[data-step="1"],[data-step="2"]) .wch-demo-paper:last-child,
.wch-demo:is([data-step="0"],[data-step="1"],[data-step="2"]) .wch-demo-ocr {
  opacity: 0;
  transform: translateY(5px);
}
.wch-demo-overlay {
  position: absolute;
  inset: auto 8% 13% 8%;
  display: grid;
  justify-items: center;
  gap: .24em;
  color: white;
  text-align: center;
}
.wch-demo-video .wch-demo-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, #191025c9);
}
.wch-demo-overlay p { background: #23192de8; padding: .27em .58em; border-radius: .3em; }
.wch-demo-overlay .wch-demo-result { margin: 0; background: #522d7ded; color: #fff; }
.wch-demo-player { position: absolute; inset: auto 5% 5%; height: 2px; background: #f0ddff7d; }
.wch-demo-player::before { content: ""; display: block; width: calc(var(--wch-progress, 0) * 100%); height: 100%; background: #e5baff; }
.wch-demo-image .wch-demo-photo { background-position: 50% 52%; }
.wch-demo-ocr {
  position: absolute;
  right: 5%;
  bottom: 15%;
  width: 36%;
  padding: 2.2%;
  border-radius: 1.5cqw;
  background: #fcf7ff;
  box-shadow: 0 5px 19px #271a38a6;
  color: #382750;
  font-size: .86em;
}
.wch-demo-image-box {
  position: absolute;
  inset: 17% 41% 18% 30%;
  border: 2px solid #f6dbff;
  border-radius: 1cqw;
  box-shadow: 0 0 0 400px #1f13342b;
  transform-origin: left top;
}
.wch-demo[data-step="0"] .wch-demo-image-box { opacity: 0; transform: scale(.35); }
.wch-demo-docs {
  position: absolute;
  inset: 12% 8% 17%;
  display: grid;
  grid-template-columns: 1fr 9% 1fr;
  align-items: stretch;
}
.wch-demo-paper {
  padding: 11% 10% 9%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  background: #fff;
  border: 1px solid #ded0ea;
  border-radius: .42em;
  box-shadow: 0 5px 16px #39225322;
}
.wch-demo-paper p { font-weight: 680; }
.wch-demo-arrow { place-self: center; color: #8259ab; font-size: 1.6em; line-height: 1; }
.wch-demo-chart { height: 37%; display: flex; align-items: end; justify-content: space-around; border-bottom: 1px solid #cdb8dd; }
.wch-demo-chart i { height: 43%; width: 12%; background: #ac8cc8; border-radius: 2px 2px 0 0; }
.wch-demo-chart i:nth-child(2n) { height: 72%; background: #9274bd; }
.wch-demo-chart i:nth-child(3n) { height: 52%; background: #8bbcb0; }
.wch-demo-rule { width: 80%; height: 2px; background: #e4d7ee; }
.wch-demo-rule-short { width: 48%; }
.wch-demo-reading, .wch-demo-field {
  position: absolute;
  inset: 13% 9% 14%;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: .58em;
  padding: 3% 6%;
  border: 1px solid #e2d6ec;
  border-radius: 2.1cqw;
  background: #fff;
  box-shadow: 0 8px 24px #45235e18;
}
.wch-demo-selection:is([data-step="1"],[data-step="2"],[data-step="3"]) .wch-demo-reading [data-wch-source] {
  background: #e1eaff; box-decoration-break: clone; border-radius: .15em;
}
.wch-demo-hover:is([data-step="1"],[data-step="2"],[data-step="3"]) [data-wch-source] { text-decoration: underline .12em #bf9ddd; text-underline-offset: .2em; }
.wch-demo-input .wch-demo-field { inset: 16% 10% 27%; border-color: #ad8fc5; line-height: 1.35; }
.wch-demo-input [data-wch-source], .wch-demo-input [data-wch-target] { grid-area: 1 / 1; margin: 0; }
.wch-demo-input[data-step="3"] [data-wch-source] { visibility: hidden; }
.wch-demo-keys { display: flex; position: absolute; bottom: 9%; left: 10%; gap: .45em; }
.wch-demo-keys kbd {
  padding: .12em .5em;
  border-radius: .3em;
  border: 1px solid #ccbadb;
  border-bottom-width: 2px;
  color: #51376b;
  font-weight: 650;
  line-height: 1.3;
  font-family: inherit;
  font-size: .72em;
  background: #fff;
}
.wch-demo-input:is([data-step="1"],[data-step="2"]) kbd { background: #e7d8f7; }
.wch-demo-ai .wch-demo-stage { background: linear-gradient(135deg, #271933, #4f3767); color: #fff; }
.wch-demo-audio { position: absolute; inset: 13% 10% 18%; }
.wch-demo-audio p { padding: .42em .65em; border-radius: .45em; background: #ffffff19; }
.wch-demo-audio .wch-demo-result { color: #e6fff4; background: #417061; }
.wch-demo-wave { display: flex; align-items: center; gap: .55em; height: 2em; margin-bottom: .24em; }
.wch-demo-wave i { width: .19em; height: .85em; border-radius: .15em; background: #dbb4ff; opacity: .9; }
.wch-demo-wave i:nth-child(3n) { height: 1.25em; }
.wch-demo-wave i:nth-child(4n) { height: 1.75em; }
.wch-demo[data-step="1"] .wch-demo-wave i:nth-child(even) { transform: scaleY(.58); }
.wch-demo-action {
  display: inline-flex;
  align-items: center;
  gap: .42em;
  position: absolute;
  z-index: 3;
  top: 6%;
  right: 5%;
  min-height: 2.15em;
  padding: .22em .7em .22em .28em;
  border: 1px solid #d4bee4;
  border-radius: 2em;
  box-shadow: 0 5px 20px #35194a28;
  color: #53317b;
  background: #fbf5ff;
  font-size: .76em;
  font-weight: 750;
  line-height: 1.25;
}
.wch-demo-document .wch-demo-action, .wch-demo-selection .wch-demo-action, .wch-demo-ai .wch-demo-action { top: auto; bottom: 5%; right: 15%; }
.wch-demo-logotype { height: 1.65em; width: 1.65em; flex: none; display: block; padding: .12em; border-radius: 50%; background: #fff; }
.wch-demo-logotype img { display: block; width: 100%; height: 100%; object-fit: contain; }
.wch-cursor, .wch-press { position: absolute; top: 50%; left: 1em; pointer-events: none; opacity: 0; }
.wch-cursor { z-index: 1; width: 1.45em; height: 1.8em; transform: translate(-3.5em, 1.8em); transition: transform .72s cubic-bezier(.18,.72,.3,1), opacity .2s ease; filter: drop-shadow(0 2px 2px #36254a79); }
.wch-cursor svg { display: block; width: 100%; height: 100%; }
.wch-demo:is([data-step="1"],[data-step="2"]) .wch-cursor { opacity: 1; transform: translate(-.06em,-.04em); }
.wch-demo[data-step="2"] .wch-cursor { transform: translate(-.06em,-.04em) scale(.86); transform-origin: top left; }
.wch-press { width: 2em; aspect-ratio: 1; border: 2px solid #b17adb; border-radius: 50%; transform: translate(-47%, -52%) scale(.6); }
.wch-demo[data-step="2"] .wch-press { animation: wch-press .58s ease-out both; }
@keyframes wch-press {
  from { opacity: 1; transform: translate(-47%, -52%) scale(.55); }
  to { opacity: 0; transform: translate(-47%, -52%) scale(1.65); }
}
@media (prefers-reduced-motion: reduce) {
  .wch-demo *, .wch-demo *::before { animation: none !important; transition: none !important; }
}
