/* Explicit capture examples around the same macOS workspace as the hero. */
.capture-grid {
  gap: 22px;
}
.capture-grid .detail-card {
  container-type: inline-size;
  display: grid;
  grid-template-rows:
    22px minmax(32px, auto) minmax(70px, auto) minmax(234px, auto)
    42px;
  gap: 14px;
  padding: 28px;
  border: 1px solid #e8e6e0;
  border-radius: 26px;
  min-height: 500px;
  background: #eeece6;
}
.capture-grid .detail-number {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.9px;
  color: #79776c;
}
.detail-number > svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.capture-grid .detail-card > h3 {
  font-size: clamp(22px, 8cqw, 26px);
  line-height: 1.2;
  letter-spacing: -0.7px;
}
.capture-grid .detail-card > p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #686965;
}
.capture-grid .capture-visual {
  margin: 0;
  height: auto;
  min-height: 234px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  position: relative;
}
.demo-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  color: #8b897e;
  font-size: 8px;
  letter-spacing: 1px;
  font-weight: 600;
}
.demo-topline kbd {
  background: #fff9;
  border: 1px solid #dedbd4;
  padding: 3px 5px;
  border-radius: 5px;
  letter-spacing: 0;
  font:
    9px -apple-system,
    system-ui,
    sans-serif;
  color: #77756c;
}
.sample-screen {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 8/5;
  border: 1px solid #ffffffa1;
  border-radius: 11px;
  background: linear-gradient(135deg, #5658a3, #8fd3e7);
  box-shadow:
    0 8px 18px -10px #26334977,
    0 0 0 1px #282c3c16;
}
.sample-screen .mac-desktop {
  pointer-events: none;
  user-select: none;
  z-index: -1;
}
.sample-screen .mac-desktop .notch-toggle {
  outline: none;
}
.sample-screen .mac-desktop .sample-notes {
  box-shadow: 0 20px 60px -14px #0c1c4b66;
}
.selection-outline {
  position: absolute;
  left: 27%;
  top: 25%;
  width: 58%;
  height: 43%;
  border: 1.5px solid white;
  box-shadow:
    0 0 0 300px #12172c52,
    0 0 0 1px #1a234833;
  transform-origin: top left;
  animation: screenshot-select 6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.selection-outline i {
  position: absolute;
  width: 5px;
  height: 5px;
  background: white;
  border: 1px solid #596275;
}
.selection-outline i:nth-child(1) {
  top: -3px;
  left: -3px;
}
.selection-outline i:nth-child(2) {
  top: -3px;
  right: -3px;
}
.selection-outline i:nth-child(3) {
  bottom: -3px;
  left: -3px;
}
.selection-outline i:nth-child(4) {
  bottom: -3px;
  right: -3px;
}
.selection-crosshair {
  position: absolute;
  left: 81%;
  top: 61%;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  filter: drop-shadow(0 1px 1px #000);
  animation: screenshot-crosshair 6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.visual-caption {
  font-size: 10px;
  line-height: 1.5;
  color: #7c7d76;
  text-align: center;
  letter-spacing: -0.1px;
  min-height: 15px;
}
.capture-action {
  width: 100%;
  min-height: 42px;
  border: 1px solid #ffffff94;
  border-radius: 13px;
  background: #fff;
  color: #373a35;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 10px;
  font:
    500 12px "Open Runde",
    system-ui;
  transition:
    background 0.2s,
    transform 0.2s;
}
.capture-action:hover {
  background: #f7f8f3;
  transform: translateY(-1px);
}
.capture-action:focus-visible,
.record-poster-play:focus-visible,
.sample-recording-bar button:focus-visible {
  outline: 3px solid #8279b7;
  outline-offset: 3px;
}
.capture-action > .icon {
  width: 15px;
  height: 15px;
}
.play-icon {
  width: 13px;
  height: 13px;
  fill: currentColor;
}
.capture-action.is-copied {
  background: #dae7ce;
  color: #344b25;
}

/* The red region and dot/timer/mic/Stop bar follow the native recording UI. */
.recording-region {
  position: absolute;
  left: 24%;
  top: 22%;
  width: 60%;
  height: 40%;
  border: 1.5px solid #ff514b;
  box-shadow: 0 0 0 1px #351c2444;
}
.walkthrough-cursor {
  position: absolute;
  left: 33%;
  top: 32%;
  width: 13px;
  height: 17px;
  fill: white;
  stroke: #192433;
  stroke-width: 1.3;
  filter: drop-shadow(0 2px 1px #0003);
}
.record-demo:is([data-record-state="playing"], [data-record-state="paused"])
  .walkthrough-cursor {
  animation: screen-walkthrough 8s linear infinite;
}
.record-demo:is([data-record-state="playing"], [data-record-state="paused"])
  .sample-note-content
  h3 {
  background: #d4e9ff;
  border-radius: 3px;
}
.record-poster-play {
  position: absolute;
  left: 54%;
  top: 43%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 1px solid #fff7;
  border-radius: 50%;
  background: #111a30bc;
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 5px 12px #09162b30;
}
.record-poster-play svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  margin-left: 2px;
}
.record-demo[data-record-state="playing"] .record-poster-play {
  visibility: hidden;
}
.sample-recording-bar {
  position: absolute;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 30px;
  border: 1px solid #ffffff1f;
  background: rgb(0 0 0 / 82%);
  box-shadow: 0 3px 9px #0002;
  color: white;
  font:
    600 13px -apple-system,
    system-ui;
  font-variant-numeric: tabular-nums;
}
.native-record-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: #ff453a;
  border-radius: 50%;
  flex: none;
}
.sample-recording-bar button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  display: grid;
  place-items: center;
  padding: 5px;
  color: white;
}
.sample-mic {
  background: #ffffff24;
}
.sample-mic[aria-pressed="true"] {
  background: #ffffff24;
}
.sample-mic svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.sample-mic .mic-slash {
  display: none;
}
.sample-mic[aria-pressed="true"] .mic-slash {
  display: block;
}
.sample-stop {
  background: #ff453a;
}
.sample-stop > span {
  width: 9px;
  height: 9px;
  border-radius: 1px;
  background: white;
}
.sample-stop:disabled {
  opacity: 0.55;
  cursor: default;
}

/* A literal image-to-editable-text comparison instead of an unexplained quote. */
.capture-grid .ocr-example {
  justify-content: center;
  gap: 5px;
  max-width: none;
}
.capture-grid .ocr-example > div {
  overflow: visible;
  padding: 0;
  text-align: left;
}
.capture-grid .ocr-example > div::after {
  content: none;
}
.ocr-source {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  background: #f9f8f2;
  border-radius: 5px;
  border: 1px solid #dce1d1;
}
.ocr-source > svg {
  width: 100%;
  height: 80px;
  display: block;
}
.ocr-source text {
  font:
    21px Georgia,
    serif;
  fill: #646958;
  stroke: none;
}
.capture-grid .ocr-corner {
  width: 12px;
  height: 12px;
  border-color: #a6b28d;
  border-width: 2px;
  top: -1px;
  left: -1px;
}
.capture-grid .corner-bottom {
  top: auto;
  left: auto;
  right: -1px;
  bottom: -1px;
}
.ocr-source::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: #91a77c;
  box-shadow: 0 0 7px #91a77c66;
  animation: ocr-scan 5.5s ease-in-out infinite;
}
.ocr-example:not(.is-in-view) .ocr-source::after,
html[data-motion="paused"] .ocr-source::after,
html.tab-is-hidden .ocr-source::after {
  animation-play-state: paused;
}
.capture-grid .ocr-transform {
  text-align: center;
  color: #a4ac98;
  font-size: 18px;
  height: 23px;
}
.capture-grid .ocr-text-result {
  padding: 10px 12px;
  border: 1px solid #e1e4d9;
  border-radius: 8px;
  background: #fff;
}
.ocr-text-result > span {
  font-size: 8px;
  letter-spacing: 1px;
  color: #8c9781;
  font-weight: 600;
}
.capture-grid .ocr-text-result p {
  margin-top: 6px;
  color: #3c4933;
  font:
    12px/1.5 "Open Runde",
    system-ui;
}
.ocr-text-result i {
  display: inline-block;
  width: 1px;
  height: 12px;
  margin-left: 2px;
  background: #8caa6c;
  vertical-align: -2px;
}
.capture-demo-note {
  margin: 20px auto 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.8;
  color: #858277;
}
.capture-demo-note a {
  margin-left: 8px;
  color: #6d725f;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@keyframes screenshot-select {
  0%,
  12% {
    opacity: 1;
    transform: scale(0.65, 0.65);
  }
  35%,
  83% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes screenshot-crosshair {
  0%,
  12% {
    transform: translate(-45px, -20px);
    opacity: 1;
  }
  15% {
    opacity: 1;
  }
  35%,
  83% {
    transform: translate(0);
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
@keyframes screen-walkthrough {
  0%,
  12% {
    transform: translate(0, 0);
  }
  32%,
  48% {
    transform: translate(65px, 16px);
  }
  68%,
  82% {
    transform: translate(25px, 29px);
  }
  100% {
    transform: translate(0, 0);
  }
}
@media (max-width: 1023px) and (min-width: 768px) {
  .capture-grid {
    grid-template-columns: 1fr;
  }
  .capture-grid .detail-card {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.95fr);
    grid-template-rows: 22px auto auto 42px;
    column-gap: 30px;
    min-height: 310px;
    grid-template-areas: "number visual" "title visual" "copy visual" "action visual";
  }
  .capture-grid .detail-number {
    grid-area: number;
  }
  .capture-grid .detail-card > h3 {
    grid-area: title;
    font-size: 26px;
  }
  .capture-grid .detail-card > p {
    grid-area: copy;
  }
  .capture-grid .capture-visual {
    grid-area: visual;
    align-self: center;
  }
  .capture-grid .capture-action {
    grid-area: action;
  }
}
@media (max-width: 767px) {
  .capture-grid .detail-card {
    grid-template-rows: 22px auto minmax(66px, auto) auto 44px;
    min-height: 0;
    padding: 27px;
  }
  .capture-grid .detail-card > h3 {
    font-size: 26px;
  }
  .capture-grid .detail-card > p {
    font-size: 14px;
  }
  .capture-grid .capture-visual {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    min-height: 228px;
  }
  .capture-demo-note a {
    display: block;
    margin: 4px 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .selection-outline,
  .selection-crosshair {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.record-demo[data-record-state="paused"] .walkthrough-cursor {
  animation-play-state: paused;
}
html[data-motion="paused"] .selection-outline,
html[data-motion="paused"] .selection-crosshair {
  animation: none;
  opacity: 1;
  transform: none;
}
