/* Streamgrab home. The hero is the moment itself: a real page's video player (Streamgrab 2.0.2 capture) with the
   headline on its picture and a dashed, empty slot in its control bar where a download button would be, and beside it
   the real popup that found the stream. Below, one narrow column with a segment track down its left side. */
.stage { padding: 40px 0 56px; }
main > .stage > .stage-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "player found" "copy found"; column-gap: 28px; row-gap: 28px; align-items: start; max-width: 1240px; }
main > .stage > .stage-grid > .stage-player { grid-area: player; position: relative; margin: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 40px 90px -40px rgb(194 24 91 / 40%); }
.stage-player img { display: block; width: 100%; height: auto; }
/* The headline sits on the sky of the film, over a scrim that keeps it legible on any frame. */
.stage-titles { position: absolute; inset: 0 0 auto 0; padding: clamp(24px, 4vw, 52px); padding-bottom: 18%; background: linear-gradient(rgb(11 13 16 / 72%), rgb(11 13 16 / 0)); }
.stage h1 { margin: 0; max-width: 15ch; color: #f2f4f8; font-size: clamp(2rem, 0.6rem + 3.6vw, 4.2rem); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; text-shadow: 0 2px 24px rgb(0 0 0 / 35%); }
/* Where a download button would sit in the player's own bar, between the time and the volume. */
.no-button { position: absolute; left: 66%; width: 19%; bottom: 3.4%; height: 5.6%; border: 2px dashed var(--fill); border-radius: 4px; }
.no-button span { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%); white-space: nowrap; padding: 3px 8px; font: 500 13px var(--mono); color: #fff; background: rgb(11 13 16 / 70%); border-radius: 3px; }
.no-button span::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 12px; background: var(--fill); }
main > .stage > .stage-grid > .stage-found { grid-area: found; margin: 0; }
.stage-found img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -24px rgb(0 0 0 / 70%); }
.stage-found figcaption { margin-top: 10px; font: 500 13px var(--mono); color: var(--muted); }
main > .stage > .stage-grid > .stage-copy { grid-area: copy; }
.stage-copy .lede { margin: 0 0 22px; max-width: 58ch; font-size: 1.125rem; color: var(--muted); }
.stage-copy .cta-row { margin: 0; flex-wrap: nowrap; }
.stage-copy .cta-note { max-width: 36em; margin: 12px 0 0; font-size: 0.875rem; color: var(--muted); }
@media (max-width: 1100px) {
  main > .stage > .stage-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "player" "copy" "found"; }
  main > .stage > .stage-grid > .stage-found { width: min(380px, 100%); }
}
@media (max-width: 640px) {
  .stage { padding-top: 20px; }
  /* On a phone the whole popup takes the column width, close to its own size. */
  main > .stage > .stage-grid > .stage-found { width: 100%; }
  .stage-titles { position: static; padding: 0 0 18px; background: none; }
  main > .stage > .stage-grid > .stage-player { display: flex; flex-direction: column-reverse; overflow: visible; box-shadow: none; }
  .stage-player img { border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
  .stage h1 { color: var(--ink); text-shadow: none; }
  .no-button { display: none; }
  .stage-copy .cta-row { flex-wrap: wrap; }
  .stage-copy .cta-row .btn { width: 100%; }
}

.sbtn { display: inline-block; padding: 5px 11px; border: 1px solid #8f97a8; border-radius: 4px; background: #fff; font-size: 13px; }
.sbtn.main { background: #c2185b; border-color: #c2185b; color: #fff; }


/* the column below: a segment track down the left that fills section by section */
.reel-col { position: relative; }
main > .reel-col > section.seg { padding: 88px 0 0; }
.seg > .wrap { display: block !important; max-width: 760px; position: relative; padding-left: 64px; }
.seg > .wrap > * { grid-column: auto; }
.seg > .wrap::before { content: ""; position: absolute; left: 30px; top: 6px; bottom: -88px; width: 2px; background: linear-gradient(var(--fill) calc(var(--seg) / 12 * 100%), var(--line) 0); }
.reel-col > .seg:last-child > .wrap::before { bottom: 0; }
.seg-mark { position: absolute; left: 18px; top: 0; width: 26px; display: grid; gap: 2px; margin: 0; }
.seg-mark i { height: 4px; border-radius: 1px; background: var(--seg); }
.seg-mark i:nth-child(-n+4) { background: var(--fill); }
#problem .seg-mark i:nth-child(-n+8) { background: var(--fill); }
.seg h2 { position: static !important; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); letter-spacing: -0.01em; margin-bottom: 12px; }
.seg .sub { font-size: 1.1rem; margin-bottom: 28px; }
.seg .ticks { margin-bottom: 28px; }

.job { margin: 0 0 12px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--seg); border-radius: var(--radius); }
.job-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.job-top b { font-size: 1rem; }
.status { font: 500 0.8rem var(--mono); color: var(--muted); }
.status.ok { color: #57c38a; }
.status.bad { color: var(--link); }
.job-meta { margin: 4px 0 12px; font: 500 0.82rem var(--mono); color: var(--muted); }
.job .track { display: flex; gap: 4px; height: 16px; }
.job .track i { flex: 1; background: var(--seg); }
.job .track.half i:nth-child(-n+6) { background: var(--film); }
.job .track.joined { gap: 0; }
.job .track.joined i { background: var(--film); box-shadow: inset -1px 0 0 var(--surface); }
.job .tline { display: flex; justify-content: space-between; margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.job .tline b { font: 500 0.85rem var(--mono); color: var(--ink); }
.job .pace { margin: 2px 0 8px; font: 500 12px var(--mono); color: var(--muted); }
.job-acts { display: flex; gap: 8px; }
.job .sbtn { background: transparent; color: var(--ink); border-color: var(--seg); }
.job.done { border-left-color: #57c38a; }
.job.failed { border-left-color: var(--accent); margin-top: 8px; }
.job .why { margin: 0; color: var(--link); }
.caption { max-width: 36em; font-size: 0.9rem; color: var(--muted); }
.wont { margin: 16px 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--accent-soft); }
.jump { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 640px) {
  .seg > .wrap { padding-left: 52px; }
  .seg > .wrap::before { left: 24px; }
  .seg-mark { left: 12px; }
  main > .reel-col > section.seg { padding-top: 64px; }
  .job { padding: 14px; }
}

/* questions and install continue the column and its track, the track full at the end */
main > section#faq, main > section#install { padding: 88px 0 0; }
main > section#install { padding-bottom: 120px; }
#faq > .wrap, #install > .wrap { display: block; max-width: 760px; position: relative; padding-left: 64px; }
#faq > .wrap > *, #install > .wrap > * { grid-column: auto; }
#faq > .wrap > h2, #install > .wrap > h2 { position: static; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); letter-spacing: -0.01em; }
#faq > .wrap::before { content: ""; position: absolute; left: 30px; top: 6px; bottom: -88px; width: 2px; background: linear-gradient(var(--fill) 83%, var(--line) 0); }
#install > .wrap::before { content: ""; position: absolute; left: 30px; top: 6px; height: 40px; width: 2px; background: var(--fill); }
#install .cta-row { margin-top: 20px; }
#install .pro { margin-top: 18px; }
@media (max-width: 640px) {
  #faq > .wrap, #install > .wrap { padding-left: 52px; }
  #faq > .wrap::before, #install > .wrap::before { left: 24px; }
  main > section#faq, main > section#install { padding-top: 64px; }
}

/* Questions: one flat list; each answer opens in place. The marker is a stream segment that fills when its answer is open. */
