/* Product examples. Each scene shows its completed state without motion or JS. */
.feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fffefa;
  scroll-margin-top: 20px;
}
.feature-panel + .feature-panel { margin-top: clamp(34px, 4vw, 58px); }
@media (min-width: 741px) {
  .feature-panel:nth-of-type(even) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  }
  .feature-panel:nth-of-type(even) .story-stage {
    grid-area: 1 / 2;
    border-right: 0;
    border-left: 1px solid var(--line);
  }
  .feature-panel:nth-of-type(even) .story-thesis { grid-area: 1 / 1; }
}
.story-thesis {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(25px, 3.6vw, 54px);
}
.story-thesis h3 {
  font-size: clamp(1.75rem, 2.7vw, 2.75rem);
  line-height: 1.09;
  letter-spacing: -.055em;
  font-weight: 660;
  margin: 15px 0 0;
  text-wrap: balance;
}
.story-stage {
  --ink-ui: #33342f;
  --edge: #37362e30;
  --shadow: 0 .6em 1.4em -.6em #3a331c38, 0 .12em .2em #3a331c0d;
  container-type: inline-size;
  position: relative;
  display: grid;
  align-items: stretch;
  color: var(--ink-ui);
  background-color: var(--wash);
  background-image: radial-gradient(#33332924 .7px, transparent .85px);
  background-size: 10px 10px;
  border-right: 1px solid var(--line);
}
.stage-capture { --wash: #e2e5f1; }
.stage-annotate { --wash: #f6dfd1; }
.stage-video { --wash: #dce9e0; }
.stage-share { --wash: #efe2e3; }
.stage-history { --wash: #dfe8ed; }
.stage-text { --wash: #f0e9d4; }
.scene {
  display: grid;
  place-items: center;
  min-height: clamp(260px, 52cqi, 364px);
  padding: 22px 20px 30px;
  font-size: clamp(.77rem, 2.5cqi, 1.06rem);
  line-height: 1.3;
}
.scene-inner { width: min(100%, 31em); min-width: 0; }
.scene img { display: block; width: 100%; object-fit: cover; }
.window {
  background: #fffefa;
  border: 1px solid var(--edge);
  border-radius: .68em;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mini-bar {
  display: flex;
  align-items: center;
  gap: .55em;
  min-height: 2.55em;
  padding: .5em .88em;
  background: #f5f4ef;
  border-bottom: 1px solid var(--edge);
  font-size: .83em;
  line-height: 1.25;
  font-weight: 640;
}
.mini-bar .icon { width: 1.1em; height: 1.1em; }
.replay {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: #fffdf4de;
  color: #4e493e;
  border: 1px solid var(--edge);
  border-radius: 50%;
}
.replay:hover { background: white; color: #b84124; }
.replay[hidden] { display: none; }
.replay .icon { width: 16px; height: 16px; }

/* One scrolling window, one complete capture of the same conversation. */
.capture-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) 1.8em minmax(0, .95fr);
  gap: .65em;
  align-items: center;
  margin: 0 auto;
  max-width: 29em;
}
.chat-window { position: relative; transform: rotate(-2deg); }
.chat-window .mini-bar { background: #343941; color: white; }
.chat-clip { height: 7.5em; overflow: hidden; margin: .8em .9em .8em .62em; }
.chat-bubbles { display: flex; flex-direction: column; gap: .36em; }
.chat-bubbles span, .request-bubble {
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  padding: .38em .63em;
  background: #ededf0;
  color: #3a3c43;
  border-radius: .65em .65em .65em .18em;
  font-size: .85em;
  line-height: 1.35;
}
.chat-bubbles span:nth-child(even) {
  align-self: flex-end;
  background: #dcebe4;
  border-radius: .65em .65em .18em .65em;
}
.chat-clip .chat-bubbles { transform: translateY(calc(7.5em - 100%)); }
.scroll-track {
  position: absolute;
  right: .29em;
  top: 3em;
  bottom: .7em;
  width: 3px;
  border-radius: 4px;
  background: #e5e3dc;
}
.scroll-track::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 40%;
  background: #a9aca6;
  border-radius: inherit;
}
.scene-flow { color: #586274; text-align: center; }
.scene-flow .icon { width: 1.75em; height: 1.75em; }
.long-shot {
  position: relative;
  padding: .65em .75em;
  background: #fffefa;
  outline: 1px dashed #ca5634;
  outline-offset: 3px;
  box-shadow: var(--shadow);
}
.shot-name {
  display: flex;
  align-items: center;
  gap: .45em;
  font: 600 .76em/1.4 var(--mono);
  border-bottom: 1px solid var(--edge);
  padding-bottom: .5em;
  margin-bottom: .55em;
}
.long-shot .chat-bubbles { font-size: .8em; }
.scan-edge { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #e8663e; opacity: 0; }

/* A review note points to one specific date on the event cover. */
.proof-layout { position: relative; width: 100%; height: 14.8em; container-type: inline-size; }
.event-card {
  position: absolute;
  top: 3%;
  left: 4%;
  width: 60%;
  border-radius: .45em;
  border: 1px solid #4e422d32;
  box-shadow: var(--shadow);
  background: #fffaf0;
  transform: rotate(-2deg);
}
.event-card img { height: 5.4em; object-position: center 49%; border-radius: .4em .4em 0 0; }
.event-copy { display: grid; justify-items: start; padding: .64em .9em .85em; gap: .25em; }
.event-copy small { font: .7em/1.3 var(--mono); }
.event-copy strong { font-size: 1.24em; font-weight: 650; letter-spacing: -.05em; }
.wrong-date { position: relative; display: inline-block; margin-top: .28em; font: .87em/1.45 var(--mono); }
.wrong-date::after {
  content: "";
  position: absolute;
  inset: -.12em -.48em;
  border: 2px solid #d34726;
  border-radius: 48% 56% 51% 46%;
  transform: rotate(-5deg);
}
.review-note {
  position: absolute;
  right: 1%;
  top: 20%;
  padding: .72em .95em;
  background: #fff1ad;
  border: 1px solid #ceae55;
  box-shadow: .12em .25em .4em #795b2b18;
  border-radius: .15em;
  transform: rotate(4deg);
  font-size: 1em;
  line-height: 1.35;
}
.review-arrow { position: absolute; left: calc(100% + .72em); bottom: 42%; width: calc(81cqi - 6.8em); height: 4.7em; overflow: visible; }
.review-arrow path { stroke: #cc4528; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* A recorded pointer switches off the sound in the chat settings. */
.record-window { width: 83%; margin-inline: auto; transform: rotate(-1deg); }
.record-content { padding: .95em 1.25em .85em; }
.record-content > strong { display: block; font-size: 1.28em; margin-bottom: .4em; letter-spacing: -.035em; }
.setting-row { position: relative; display: flex; align-items: center; justify-content: space-between; padding: .62em 0; font-size: .92em; }
.setting-row + .setting-row { border-top: 1px solid #dedfd7; }
.switch { display: block; position: relative; width: 2.1em; height: 1.16em; background: #cacdc7; border-radius: 2em; }
.switch::after { content: ""; position: absolute; left: .15em; top: .14em; width: .88em; height: .88em; background: white; border-radius: 50%; box-shadow: 0 1px 2px #0003; }
.switch.on { background: #548167; }
.switch.on::after { transform: translateX(.91em); }
.video-pointer { position: absolute; right: -.55em; bottom: -.32em; color: #34352e; }
.video-pointer .icon { width: 1.55em; height: 1.55em; fill: currentColor; stroke: white; stroke-width: 1.3; }
.record-controls {
  display: flex;
  align-items: center;
  gap: .62em;
  background: #2d3330;
  color: white;
  padding: .72em 1em;
  font: 600 .84em/1.2 var(--mono);
}
.rec-dot { width: .62em; height: .62em; border-radius: 50%; background: #ff754f; }
.record-timer { font-variant-numeric: tabular-nums; }
.timeline { height: 3px; flex: 1; background: #757c75; border-radius: 3px; }
.timeline b { display: block; height: 100%; background: #ff9675; transform-origin: left; border-radius: inherit; }

/* The same cover travels from a screenshot file to a shared chat preview. */
.share-pair { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 1.25em; margin-inline: .38em; }
.shared-file { transform: rotate(-4deg); }
.shared-file > img { height: 6.7em; }
.file-status { display: flex; align-items: center; gap: .45em; padding: .75em; color: #415b48; background: #f2f7ee; font-size: .77em; font-weight: 600; }
.shared-chat { transform: rotate(2deg); }
.share-dialogue { display: flex; flex-direction: column; gap: .75em; padding: .85em; }
.sent-bubble { align-self: flex-end; background: #e0ebdf; width: 83%; padding: .3em; border-radius: .55em .55em .15em .55em; }
.sent-bubble img { height: 4.2em; border-radius: .35em; }
.sent-bubble span { display: flex; align-items: center; gap: .4em; padding: .45em .25em .24em; font-size: .8em; color: #365a47; font-weight: 600; }

/* The selected entry and the preview carry the same file name. */
.history-window { margin-inline: auto; width: 94%; }
.history-grid { display: grid; grid-template-columns: 1fr .95fr; }
.history-entries { padding: .6em .5em .85em; background: #f6f7f5; border-right: 1px solid var(--edge); }
.history-entries small { display: block; font: 600 .75em/1.3 var(--mono); color: #5b625d; padding: .55em .6em .34em; }
.history-entries span { display: flex; align-items: center; gap: .4em; padding: .42em .5em; font-size: .87em; border-radius: .34em; }
.history-entries span .icon { width: 1em; height: 1em; }
.history-entries .chosen { background: #f9d9c7; color: #713b27; font-weight: 600; }
.history-preview { display: flex; flex-direction: column; justify-content: center; gap: .4em; padding: .7em; }
.history-preview img { height: 5.8em; border-radius: .25em; }
.history-preview b { font-size: .85em; line-height: 1.2; }
.history-preview small { font: .72em/1.3 var(--mono); color: #5f6760; }

/* One identifier is selected on a parcel label and pasted into a form. */
.ocr-pair { display: grid; grid-template-columns: .84fr 1.16fr; align-items: center; gap: 1.9em; }
.parcel-label {
  position: relative;
  display: grid;
  padding: 1.1em;
  background: #fffdf0;
  border: 1px solid #c8bda3;
  border-radius: .24em;
  box-shadow: var(--shadow);
  transform: rotate(-6deg);
}
.receipt-top { font: 600 .88em/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.barcode { margin: .62em 0 1em; height: 2.85em; background: repeating-linear-gradient(90deg,#393b32 0 2px,transparent 2px 5px,#393b32 5px 6px,transparent 6px 9px,#393b32 9px 13px,transparent 13px 15px,#393b32 15px 17px,transparent 17px 20px); }
.ocr-selection { width: fit-content; font: 650 1.36em/1.25 var(--mono); letter-spacing: -.04em; background: #ffe1b0; outline: 1px dashed #b66326; outline-offset: 3px; }
.order-form { transform: rotate(1.5deg); }
.order-body { padding: .9em; }
.order-body > span { display: block; margin-bottom: .5em; font-size: .85em; }
.order-input { display: flex; align-items: center; gap: .12em; border: 1.5px solid #668266; background: white; padding: .45em .55em; border-radius: .32em; }
.order-input b { font: 500 1.05em/1.25 var(--mono); }
.order-input i { width: 1px; height: 1.1em; background: #486c4c; }

@media screen and (prefers-reduced-motion: no-preference) {
  .scroll-examples .feature-panel:not(.is-revealed):not(:focus-within) { opacity: 0; }
  .scroll-examples .feature-panel.is-revealed {
    animation: feature-appear .5s cubic-bezier(.2,.7,.2,1) backwards;
  }
  .is-playing .chat-clip .chat-bubbles { animation: chat-scroll 2.8s ease-in-out both; }
  .is-playing .scroll-track::after { animation: thumb-scroll 2.8s ease-in-out both; }
  .is-playing .long-shot { animation: reveal-capture 2.8s ease-in-out both; }
  .is-playing .scan-edge { animation: capture-edge 2.8s ease-in-out both; }
  .is-playing .review-note { animation: note-arrives 2s ease-out both; }
  .is-playing .review-arrow path { animation: draw-arrow 2s ease-out backwards; }
  .is-playing .wrong-date::after { animation: show-result 2.2s ease-out both; }
  .is-playing .video-pointer { animation: move-pointer 2.7s ease-in-out both; }
  .is-playing .switch.sound { animation: sound-off 2.7s both; }
  .is-playing .switch.sound::after { animation: flip-switch 2.7s both; }
  .is-playing .timeline b { animation: record-progress 2.7s linear both; }
  .is-playing .sent-bubble { animation: deliver 2.2s ease-out both; }
  .is-playing .history-entries .chosen { animation: choose-yesterday 2.2s both; }
  .is-playing .history-preview { animation: show-result 2.2s both; }
  .is-playing .ocr-selection { animation: choose-text 2.2s both; }
  .is-playing .order-input b { animation: paste-text 2.2s both; }
}
@keyframes feature-appear {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes chat-scroll { 0%,15% { transform: translateY(0); } 78%,100% { transform: translateY(calc(7.5em - 100%)); } }
@keyframes thumb-scroll { 0%,15% { bottom: 60%; } 78%,100% { bottom: 0; } }
@keyframes reveal-capture { 0%,15% { clip-path: inset(-6px -8px 68%); } 82%,100% { clip-path: inset(-10px -12px -30px); } }
@keyframes capture-edge { 0%,14% { top: 32%; opacity: 0; } 17% { top:32%; opacity:1; } 80% { top:100%; opacity:1; } 90%,100% { top:100%; opacity:0; } }
@keyframes note-arrives { 0%,12% { opacity:0; transform:translateY(-.35em) rotate(2deg); } 40%,100% { opacity:1; transform:rotate(4deg); } }
@keyframes draw-arrow { 0%,32% { stroke-dasharray:1; stroke-dashoffset:1; } 82%,100% { stroke-dasharray:1; stroke-dashoffset:0; } }
@keyframes show-result { 0%,45% { opacity:0; } 80%,100% { opacity:1; } }
@keyframes move-pointer { 0%,10% { transform:translate(-5em,1.4em); } 46%,100% { transform:translate(0,0); } }
@keyframes sound-off { 0%,49% { background:#548167; } 58%,100% { background:#cacdc7; } }
@keyframes flip-switch { 0%,49% { transform:translateX(.91em); } 58%,100% { transform:translateX(0); } }
@keyframes record-progress { from { transform:scaleX(.08); } to { transform:scaleX(1); } }
@keyframes deliver { 0%,36% { opacity:0; transform:translateY(.8em); } 70%,100% { opacity:1; transform:translateY(0); } }
@keyframes choose-yesterday { 0%,32% { background:transparent; color:inherit; } 48%,100% { background:#f9d9c7; color:#713b27; } }
@keyframes choose-text { 0%,20% { background:transparent; outline-color:transparent; } 40%,100% { background:#ffe1b0; outline-color:#b66326; } }
@keyframes paste-text { 0%,57% { opacity:0; } 58%,100% { opacity:1; } }

@media (max-width: 740px) {
  .feature-panel { grid-template-columns: 1fr; }
  .story-stage { border-right: 0; border-bottom: 1px solid var(--line); }
  .story-thesis { padding: 20px 24px 23px; }
  .story-thesis h3 { margin: 9px 0 0; font-size: clamp(1.65rem, 5vw, 2rem); }
}
@container (max-width: 370px) {
  .scene { padding: 16px 12px 28px; min-height: 226px; }
  .capture-pair { gap: .35em; grid-template-columns: minmax(0,1fr) 1.2em minmax(0,1fr); }
  .scene-flow .icon { width: 1.2em; }
  .share-pair, .ocr-pair { gap: .75em; }
  .event-copy strong { font-size: 1.1em; }
  .record-window, .history-window { width: 97%; }
  .review-note { right: 0; }
  .file-status { font-size: .78em; }
}
