/* Capture Studio "What Capture Studio delivers" panel visuals. Section shell, cards and the feature chain
   come from platform-capabilities.css; variables are the shared --cap-* set. */

/* =========================================================
   Card 1 — Landscape iPad mid-capture. State comes from data-step (1–3) and data-state
   (recording | saved) on the figure, looped by capture-capabilities.js; the markup defaults
   to a still frame for no-JS and reduced motion. Sizes are cqw of the figure.
   ========================================================= */
.capture-ipad {
  --capture-rec: #ef4444;
  --capture-cyan: #38bdf8;
  position: relative;
  width: 100%;
  max-width: 570px;
  margin: 0 auto 24px;
  container-type: inline-size;
  color: var(--cap-ink);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
  .capture-ipad {
    margin-bottom: 32px;
  }
}

@media (min-width: 1280px) {
  .capture-ipad {
    align-self: center;
    width: 75%;
    max-width: none;
    margin: 0 auto 40px;
  }
}

:where(.capture-ipad) p {
  margin: 0;
  color: inherit;
}

.capture-ipad__device {
  position: relative;
  padding: 2cqw;
  border-radius: 4.2cqw;
  background: linear-gradient(160deg, #3a4557 0%, #161c27 45%, #0c1018 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 40px 70px -40px rgba(15, 23, 42, 0.6),
    0 18px 30px -22px rgba(15, 23, 42, 0.45);
}

.capture-ipad__camera {
  position: absolute;
  top: 0.65cqw;
  left: 50%;
  width: 0.7cqw;
  min-width: 4px;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #05070b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.capture-ipad__screen {
  position: relative;
  aspect-ratio: 1.44;
  overflow: hidden;
  border-radius: 2.2cqw;
  background: #0b0f16;
  isolation: isolate;
}

.capture-ipad__feed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  user-select: none;
  -webkit-user-drag: none;
}

.capture-ipad__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 12, 20, 0.55) 0%,
    rgba(8, 12, 20, 0) 22%,
    rgba(8, 12, 20, 0) 60%,
    rgba(8, 12, 20, 0.7) 100%
  );
}

.capture-ipad__focus {
  --c: #fcd34d;
  --l: 22%;
  --t: 2px;
  position: absolute;
  left: 50%;
  top: 60%;
  width: 20cqw;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: 0.85;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--l);
  background-repeat: no-repeat;
}

/* Top bar: timecode, job, mic */
.capture-ipad__top {
  position: absolute;
  top: 2.6cqw;
  left: 2.6cqw;
  right: 2.6cqw;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 2cqw;
}

.capture-ipad__rec,
.capture-ipad__mic,
.capture-ipad__toast {
  display: flex;
  align-items: center;
  gap: 0.7cqw;
  padding: 0.5cqw 1.2cqw;
  border-radius: 999px;
  font-size: clamp(8px, 1.35cqw, 11.5px);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.capture-ipad__rec {
  justify-self: start;
  background: var(--capture-rec);
  color: #fff;
  transition: background-color 0.35s ease;
}

.capture-ipad__rec-dot {
  width: 0.8cqw;
  min-width: 5px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
}

.capture-ipad[data-state="saved"] .capture-ipad__rec {
  background: var(--cap-teal);
}

.capture-ipad__job {
  font-size: clamp(8.5px, 1.45cqw, 12.5px);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.capture-ipad__machine {
  display: block;
  font-size: 0.85em;
  font-weight: 500;
  opacity: 0.72;
}

.capture-ipad__mic {
  justify-self: end;
  background: rgba(255, 255, 255, 0.9);
  color: var(--cap-ink);
}

.capture-ipad__level {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 1.3cqw;
  min-height: 8px;
}

.capture-ipad__level i {
  width: 2px;
  height: 100%;
  border-radius: 2px;
  background: var(--cap-cyan-deep);
  transform: scaleY(0.6);
}

.capture-ipad__toast {
  position: absolute;
  top: 7.6cqw;
  left: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--cap-teal);
  opacity: 0;
  transform: translate(-50%, -6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.capture-ipad__toast::before {
  content: "";
  width: 0.8cqw;
  min-width: 5px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
}

.capture-ipad[data-state="saved"] .capture-ipad__toast {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Steps panel: marked steps fill in as the expert goes */
.capture-ipad__steps {
  position: absolute;
  top: 9cqw;
  left: 2.6cqw;
  width: 29cqw;
  padding: 1.2cqw 1.1cqw;
  border-radius: 1.8cqw;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.55);
}

.capture-ipad__steps-title {
  padding: 0 0.4cqw 0.6cqw;
  font-size: clamp(7.5px, 1.1cqw, 10px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cap-blue);
}

.capture-ipad__steps ol {
  display: grid;
  gap: 0.3cqw;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capture-ipad__step {
  display: grid;
  grid-template-columns: 1.9cqw minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9cqw;
  padding: 0.65cqw 0.5cqw;
  border-radius: 1cqw;
  font-size: clamp(8px, 1.35cqw, 12px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--cap-faint);
  transition: background-color 0.35s ease, color 0.35s ease;
}

.capture-ipad__step-mark {
  position: relative;
  width: 1.9cqw;
  min-width: 9px;
  aspect-ratio: 1;
  border: 1.5px solid var(--cap-line-strong);
  border-radius: 50%;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.capture-ipad__step-mark::after {
  content: "";
  position: absolute;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.capture-ipad__step-time {
  font-size: 0.9em;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Active: the step being filmed now */
.capture-ipad[data-step="1"] .capture-ipad__step--1,
.capture-ipad[data-step="2"] .capture-ipad__step--2,
.capture-ipad[data-step="3"] .capture-ipad__step--3 {
  background: rgba(60, 82, 148, 0.1);
  font-weight: 600;
  color: var(--cap-ink);
}

.capture-ipad[data-step="1"] .capture-ipad__step--1 .capture-ipad__step-mark,
.capture-ipad[data-step="2"] .capture-ipad__step--2 .capture-ipad__step-mark,
.capture-ipad[data-step="3"] .capture-ipad__step--3 .capture-ipad__step-mark {
  border-color: var(--cap-blue);
}

.capture-ipad[data-step="1"] .capture-ipad__step--1 .capture-ipad__step-mark::after,
.capture-ipad[data-step="2"] .capture-ipad__step--2 .capture-ipad__step-mark::after,
.capture-ipad[data-step="3"] .capture-ipad__step--3 .capture-ipad__step-mark::after {
  inset: 25%;
  border-radius: 50%;
  background: var(--cap-blue);
  opacity: 1;
}

/* Done: steps already marked */
.capture-ipad:is([data-step="2"], [data-step="3"]) .capture-ipad__step--1,
.capture-ipad[data-step="3"] .capture-ipad__step--2 {
  color: var(--cap-ink);
}

.capture-ipad:is([data-step="2"], [data-step="3"]) .capture-ipad__step--1 .capture-ipad__step-mark,
.capture-ipad[data-step="3"] .capture-ipad__step--2 .capture-ipad__step-mark {
  border-color: var(--cap-teal);
  background: var(--cap-teal);
}

.capture-ipad:is([data-step="2"], [data-step="3"]) .capture-ipad__step--1 .capture-ipad__step-mark::after,
.capture-ipad[data-step="3"] .capture-ipad__step--2 .capture-ipad__step-mark::after {
  left: 27%;
  top: 30%;
  width: 46%;
  height: 24%;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg);
  opacity: 1;
}

/* Reached (active or done): show when the step was marked */
.capture-ipad .capture-ipad__step--1 .capture-ipad__step-time,
.capture-ipad:is([data-step="2"], [data-step="3"]) .capture-ipad__step--2 .capture-ipad__step-time,
.capture-ipad[data-step="3"] .capture-ipad__step--3 .capture-ipad__step-time {
  opacity: 1;
}

/* Live transcript caption for the current step */
.capture-ipad__caption {
  position: absolute;
  left: 14cqw;
  right: 14cqw;
  bottom: 8.6cqw;
  display: grid;
  justify-items: center;
  text-align: center;
}

.capture-ipad__line {
  grid-area: 1 / 1;
  align-self: end;
  padding: 0.4cqw 1cqw;
  border-radius: 0.7cqw;
  background: rgba(10, 14, 20, 0.62);
  font-size: clamp(8.5px, 1.55cqw, 13.5px);
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.capture-ipad[data-step="1"] .capture-ipad__line--1,
.capture-ipad[data-step="2"] .capture-ipad__line--2,
.capture-ipad[data-step="3"] .capture-ipad__line--3 {
  opacity: 1;
  transform: none;
}

/* Clip timeline with a chapter marker per marked step */
.capture-ipad__timeline {
  position: absolute;
  left: 2.6cqw;
  right: 14cqw;
  bottom: 4cqw;
  height: 0.9cqw;
  min-height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.capture-ipad__clip {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(var(--capture-progress, 0) * 100%);
  border-radius: inherit;
  background: #fff;
  transition: width 0.55s linear;
}

.capture-ipad.is-resetting .capture-ipad__clip {
  transition: none;
}

.capture-ipad__mark {
  position: absolute;
  left: var(--at);
  top: -1cqw;
  bottom: -1cqw;
  width: 2px;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--capture-cyan);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.3, 0, 0.2, 1.4);
}

.capture-ipad__mark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1.2cqw;
  min-width: 7px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--capture-cyan);
  box-shadow: 0 0 0 2px #fff;
}

.capture-ipad .capture-ipad__mark--1,
.capture-ipad:is([data-step="2"], [data-step="3"]) .capture-ipad__mark--2,
.capture-ipad[data-step="3"] .capture-ipad__mark--3 {
  opacity: 1;
  transform: none;
}

/* Right rail: mark-step button above the shutter */
.capture-ipad__controls {
  position: absolute;
  top: 50%;
  right: 2.6cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4cqw;
  transform: translateY(-50%);
}

.capture-ipad__flag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6cqw;
  font-size: clamp(7px, 1.1cqw, 10px);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.capture-ipad__flag svg {
  width: 5.4cqw;
  min-width: 24px;
  aspect-ratio: 1;
  padding: 1.35cqw;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: background-color 0.3s ease;
}

.capture-ipad.is-marking .capture-ipad__flag svg {
  background: var(--capture-cyan);
  animation: capture-ipad-press 0.5s var(--cap-ease);
}

@keyframes capture-ipad-press {
  0% { transform: scale(1); }
  35% { transform: scale(0.86); }
  100% { transform: scale(1); }
}

.capture-ipad__shutter {
  position: relative;
  width: 7.6cqw;
  min-width: 30px;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 0 0 max(0.45cqw, 2px) #fff;
}

.capture-ipad__shutter-core {
  position: absolute;
  inset: 30%;
  border-radius: 22%;
  background: var(--capture-rec);
  transition: inset 0.35s ease, border-radius 0.35s ease;
}

.capture-ipad[data-state="saved"] .capture-ipad__shutter-core {
  inset: 14%;
  border-radius: 50%;
}

/* Loop-only motion */
.capture-ipad.is-playing[data-state="recording"] .capture-ipad__rec-dot {
  animation: capture-ipad-blink 1s steps(2, jump-none) infinite;
}

.capture-ipad.is-playing[data-state="recording"] .capture-ipad__level i {
  animation: capture-ipad-level 0.7s ease-in-out infinite alternate;
}

.capture-ipad.is-playing .capture-ipad__level i:nth-child(2) { animation-delay: -0.25s; }
.capture-ipad.is-playing .capture-ipad__level i:nth-child(3) { animation-delay: -0.5s; }

@keyframes capture-ipad-blink {
  0% { opacity: 1; }
  100% { opacity: 0.25; }
}

@keyframes capture-ipad-level {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* Small screens: only the current step, no secondary labels */
@container (max-width: 520px) {
  .capture-ipad__machine,
  .capture-ipad__mic,
  .capture-ipad__flag-label,
  .capture-ipad__steps-title,
  .capture-ipad__step-time {
    display: none;
  }

  .capture-ipad__top {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .capture-ipad__job {
    text-align: right;
  }

  .capture-ipad__steps {
    top: calc(2.6cqw + 24px);
    width: auto;
    max-width: 62%;
    padding: 3px;
    border-radius: 999px;
  }

  .capture-ipad[data-step] .capture-ipad__step {
    padding: 3px 8px 3px 4px;
    border-radius: 999px;
    background: none;
  }

  .capture-ipad[data-step="1"] .capture-ipad__step:not(.capture-ipad__step--1),
  .capture-ipad[data-step="2"] .capture-ipad__step:not(.capture-ipad__step--2),
  .capture-ipad[data-step="3"] .capture-ipad__step:not(.capture-ipad__step--3) {
    display: none;
  }

  .capture-ipad__caption {
    left: 4cqw;
    right: 17cqw;
    bottom: calc(4cqw + 14px);
  }

  .capture-ipad__timeline {
    right: 17cqw;
  }

  .capture-ipad__focus {
    --t: 1.5px;
  }
}

/* =========================================================
   Card 2 — Video capture: filmstrip, chapter bar, chapter list
   ========================================================= */
.capture-film__strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.capture-film__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: #2a2f36 url("/images/capture-viewfinder.jpg") no-repeat;
  overflow: hidden;
}

.capture-film__frame--inspect {
  background-size: 150% auto;
  background-position: 50% 22%;
}

.capture-film__frame--wipe {
  background-size: 120% auto;
  background-position: 50% 52%;
}

.capture-film__frame--verify {
  background-size: 170% auto;
  background-position: 50% 68%;
}

.capture-film__stamp {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(10, 14, 20, 0.6);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #fff;
}

.capture-film__bar {
  position: relative;
  height: 4px;
  margin: 4px 0 2px;
  border-radius: 2px;
  background: rgba(60, 82, 148, 0.14);
}

.capture-film__mark {
  position: absolute;
  top: -4px;
  left: var(--at);
  width: 2px;
  height: 12px;
  border-radius: 1px;
  background: var(--cap-blue);
  transition: transform 0.5s var(--cap-ease), opacity 0.5s var(--cap-ease);
}

.capture-film__chapters {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capture-film__chapter {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 48px minmax(0, 1fr);
  align-content: center;
  gap: 12px;
  padding: 11px 0;
}

.capture-film__chapter + .capture-film__chapter {
  border-top: 1px solid rgba(23, 34, 53, 0.07);
}

.capture-film__time {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--cap-blue);
}

.capture-film__title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

/* =========================================================
   Card 3 — Transcription and voiceover tiers
   ========================================================= */
.capture-voice__flow {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capture-voice__tier {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
}

.capture-voice__tier:last-child {
  padding-bottom: 0;
}

/* Rail: marker per tier, connector between tiers */
.capture-voice__tier::before {
  content: "";
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  margin: 16px 0 0 6px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--capture-tier);
}

.capture-voice__tier:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 10.5px;
  top: 31px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(var(--capture-tier), var(--capture-tier-next));
  opacity: 0.5;
  transform-origin: top;
}

.capture-voice__tier--floor {
  --capture-tier: rgba(23, 34, 53, 0.42);
  --capture-tier-next: var(--cap-blue);
}

.capture-voice__tier--text {
  --capture-tier: var(--cap-blue);
  --capture-tier-next: var(--cap-teal);
}

.capture-voice__tier--voice {
  --capture-tier: var(--cap-teal);
}

.capture-voice__body {
  padding: 11px 14px 12px;
  border-radius: 12px;
  background: rgba(23, 34, 53, 0.03);
}

.capture-voice__tier--voice .capture-voice__body {
  background: var(--cap-teal-soft);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.14);
}

.capture-voice__label {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--capture-tier);
}

.capture-voice__wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 30px;
  margin-top: 8px;
  color: rgba(23, 34, 53, 0.3);
}

.capture-voice__tier--voice .capture-voice__wave {
  color: var(--cap-teal);
}

.capture-voice__wave > span {
  flex: 1 1 0;
  min-height: 2px;
  height: calc(var(--h) * 100%);
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.5s var(--cap-ease);
  transition-delay: calc(0.25s + var(--i) * 14ms);
}

.capture-voice__lines {
  display: grid;
  gap: 4px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.capture-voice__lines li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(23, 34, 53, 0.86);
}

.capture-voice__time {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--cap-faint);
}

/* =========================================================
   Card 4 — Generated lesson sheet
   ========================================================= */
.capture-lesson__sheet {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  border: 1px solid var(--cap-line);
  border-radius: 14px;
  overflow: hidden;
}

.capture-lesson__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 12px;
  padding: 12px 16px;
  background: rgba(23, 34, 53, 0.025);
  border-bottom: 1px solid var(--cap-line);
}

.capture-lesson__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.capture-lesson__rows {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Rows share any height the paired card adds, so spacing stays even */
.capture-lesson__row {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  align-content: center;
  gap: 12px;
  padding: 12px 16px;
}

.capture-lesson__row + .capture-lesson__row {
  border-top: 1px solid rgba(23, 34, 53, 0.07);
}

.capture-lesson__num {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--cap-line-strong);
  border-radius: 50%;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--cap-muted);
}

.capture-lesson__task {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.capture-lesson__row--quiz .capture-lesson__num {
  border-color: rgba(60, 82, 148, 0.3);
  background: var(--cap-blue-soft);
  color: var(--cap-blue);
}

.capture-lesson__row--quiz .capture-lesson__task {
  color: var(--cap-blue);
}

.capture-lesson__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 11px 16px;
  border-top: 1px solid var(--cap-line);
  background: rgba(23, 34, 53, 0.025);
}

.capture-lesson__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cap-teal);
}

.capture-lesson__tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* =========================================================
   Card 5 — Cloud and offline upload queue
   ========================================================= */
.capture-sync__queue {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capture-sync__item {
  --capture-sync: var(--cap-blue);
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--cap-line);
  border-radius: 12px;
  background: #fff;
}

.capture-sync__item--done {
  --capture-sync: var(--cap-teal);
}

.capture-sync__item--offline {
  --capture-sync: var(--cap-amber);
  border: 1px dashed rgba(161, 98, 7, 0.45);
  background: rgba(161, 98, 7, 0.035);
}

.capture-sync__icon {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.capture-sync__item--done .capture-sync__icon {
  background: var(--cap-teal);
}

.capture-sync__item--done .capture-sync__icon::after {
  content: "";
  position: absolute;
  left: 6.5px;
  top: 6.5px;
  width: 9px;
  height: 5px;
  border-left: 1.75px solid #fff;
  border-bottom: 1.75px solid #fff;
  transform: rotate(-45deg);
}

.capture-sync__item--active .capture-sync__icon {
  border: 2px solid rgba(60, 82, 148, 0.16);
}

.capture-sync__item--active .capture-sync__icon::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid transparent;
  border-top-color: var(--cap-blue);
  border-radius: 50%;
}

.capture-sync__item--offline .capture-sync__icon {
  border: 1.5px dashed var(--cap-amber);
}

.capture-sync__item--offline .capture-sync__icon::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--cap-amber);
}

.capture-sync__name {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.capture-sync__status {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--capture-sync);
}

.capture-sync__bar {
  display: block;
  height: 4px;
  margin-top: 8px;
  border-radius: 2px;
  background: rgba(60, 82, 148, 0.12);
  overflow: hidden;
}

.capture-sync__fill {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: inherit;
  background: var(--cap-blue);
  transform-origin: left center;
  transition: transform 1.6s var(--cap-ease) 0.5s;
}

/* =========================================================
   Scroll reveals (only once the shared script has enhanced the section)
   ========================================================= */
.platform-cap.is-enhanced .capture-film__mark {
  opacity: 0;
  transform: translateY(-8px);
}

.platform-cap.is-enhanced .is-inview .capture-film__mark {
  opacity: 1;
  transform: none;
}

.capture-film__mark:nth-child(1) { transition-delay: 0.3s; }
.capture-film__mark:nth-child(2) { transition-delay: 0.42s; }
.capture-film__mark:nth-child(3) { transition-delay: 0.54s; }

.platform-cap.is-enhanced .capture-voice__wave > span {
  transform: scaleY(0.08);
}

.platform-cap.is-enhanced .is-inview .capture-voice__wave > span {
  transform: none;
}

.platform-cap.is-enhanced .capture-voice__tier::after {
  transform: scaleY(0);
  transition: transform 0.7s var(--cap-ease) 0.35s;
}

.platform-cap.is-enhanced .is-inview .capture-voice__tier::after {
  transform: none;
}

.platform-cap.is-enhanced .capture-sync__fill {
  transform: scaleX(0);
}

.platform-cap.is-enhanced .is-inview .capture-sync__fill {
  transform: none;
}

.platform-cap.is-enhanced .is-inview .capture-sync__item--active .capture-sync__icon::after {
  animation: capture-sync-spin 1.4s linear infinite;
}

@keyframes capture-sync-spin {
  to { transform: rotate(360deg); }
}
