/* ════════════════════════════════════════════════════════════
   Airlive Bridge — page-specific styles (loads after v2.css)
   Reuses brand tokens; green = preview, red = program (tally).
   ════════════════════════════════════════════════════════════ */
:root{
  --pvw:#27c14d;   /* preview / cued — green tally */
  --pgm:#ff3b30;   /* program / on-air — red tally */
}

/* ── hero ── */
.brhero__grid{display:grid;grid-template-columns:1.02fr .98fr;gap:54px;align-items:center}
.brhero .hero__sub{max-width:42ch}

/* static multiview shot */
.brshot{background:linear-gradient(180deg,var(--surface),var(--bg-2));border:1px solid var(--border);
  border-radius:18px;padding:12px;box-shadow:0 40px 120px -50px rgba(0,0,0,.85)}
.brshot__bar{display:flex;align-items:center;gap:7px;padding:4px 6px 10px}
.brshot__dot{width:9px;height:9px;border-radius:50%;background:var(--surface-2)}
.brshot__title{margin-left:8px;font-family:var(--mono);font-size:var(--fs-3xs);color:var(--muted)}
.brshot__buses{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}
.brshot__pane{aspect-ratio:16/9;border-radius:10px;background:radial-gradient(120% 120% at 30% 20%,#23232b,#101015);
  border:2px solid var(--border);display:flex;align-items:flex-end;padding:9px}
.brshot__pane span{font-family:var(--mono);font-size:var(--fs-micro);letter-spacing:.08em;color:var(--text-2)}
.brshot__pane.is-pvw{border-color:var(--pvw)}
.brshot__pane.is-pgm{border-color:var(--pgm)}
.brshot__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.brshot__cell{aspect-ratio:16/9;border-radius:8px;background:linear-gradient(160deg,#1c1c22,#121217);
  border:1.5px solid var(--border-soft);display:grid;place-items:center;
  font-family:var(--mono);font-size:var(--fs-micro);letter-spacing:.06em;color:var(--text-2)}
.brshot__cell.is-pvw{border-color:var(--pvw);color:var(--text)}
.brshot__cell.is-pgm{border-color:var(--pgm);color:#fff}

/* ── big lead statement ── */
.brlead{font-size:var(--fs-h2);font-weight:600;line-height:1.4;letter-spacing:-.01em;
  color:var(--text);max-width:60ch}

/* ════════════ PIPELINE FLOW — sources → Bridge → outputs ════════════ */
.brflow__head{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:end;margin:0 0 40px}
.brflow__head .sec__eyebrow{margin-bottom:14px}
.brflow__headR{color:var(--text-2);font-size:var(--fs-md);line-height:1.6;max-width:48ch;padding-bottom:4px;justify-self:end}
.brflow{display:grid;grid-template-columns:minmax(230px,1fr) 100px auto 100px 170px;
  align-items:center}

.brflow__col{display:flex;flex-direction:column;justify-content:space-between;height:300px}
.brflow__node{display:flex;align-items:center;gap:11px;padding:12px 14px;
  background:linear-gradient(180deg,var(--surface),var(--bg-2));border:1px solid var(--border);
  border-radius:13px;font-weight:600;font-size:var(--fs-sm);color:var(--text);position:relative;z-index:2}
.brflow__txt{display:flex;flex-direction:column;gap:3px;min-width:0}
.brflow__txt b{font-size:var(--fs-sm);line-height:1.15}
.brflow__txt small{font-family:var(--mono);font-size:var(--fs-2xs);line-height:1.4;letter-spacing:.01em;
  color:var(--text-2);font-weight:500}
.brflow__col--out .brflow__node{justify-content:center;font-family:var(--mono);
  letter-spacing:.05em;font-size:var(--fs-xs);padding:10px 12px}
.brflow__node--out{color:var(--text-2)}
.brflow__ico{width:32px;height:32px;flex:none;border-radius:8px;display:grid;place-items:center;
  background:var(--surface-2);color:var(--text-2)}
.brflow__ico svg{width:18px;height:18px}
.brflow__ico--img{background:none;overflow:hidden}
.brflow__ico--img img{width:100%;height:100%;object-fit:cover;display:block}

.brflow__hub{display:flex;flex-direction:column;align-items:center;gap:9px;padding:0 4px;
  position:relative;z-index:2}
.brflow__hub img{width:106px;height:106px;object-fit:contain;display:block;
  filter:drop-shadow(0 0 26px rgba(220,38,38,.38))}
.brflow__hub span{font-family:var(--mono);font-size:var(--fs-3xs);letter-spacing:.16em;
  text-transform:uppercase;color:var(--text-2)}

.brflow__wires{height:300px;position:relative}
.brflow__wires svg{width:100%;height:100%;display:block;overflow:visible}

.brflow--mobile{display:none}
.fwp.fwp--4{animation-delay:.75s}
.fwp.fwp--5{animation-delay:1s}

/* ════════════ CAMERA APPS — how each app connects ════════════ */
.brcam{display:grid;grid-template-columns:minmax(280px,.92fr) 1.08fr;grid-template-rows:auto auto;
  grid-template-areas:"info media" "cta media";column-gap:30px;row-gap:0;align-items:start;
  padding:28px;background:linear-gradient(180deg,var(--surface),var(--bg-2));
  border:1px solid var(--border);border-radius:18px}
.brcam__info{grid-area:info}
.brcam+.brcam{margin-top:18px}
.brcam__id{display:flex;align-items:center;gap:13px;margin-bottom:14px}
.brcam__id img{width:46px;height:46px;border-radius:11px;object-fit:cover;display:block}
.brcam__id h3{font-size:var(--fs-xl);letter-spacing:-.01em}
.brcam__how{color:var(--text-2);font-size:var(--fs-md);line-height:1.55;margin-bottom:18px}
.brcam__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.brcam__list li{position:relative;padding-left:22px;font-size:var(--fs-md);line-height:1.45;color:var(--text)}
.brcam__list li::before{content:"";position:absolute;left:2px;top:.5em;width:7px;height:7px;
  border-radius:50%;background:var(--red)}
.brcam__cta{grid-area:cta;margin-top:20px;align-self:start}

/* one recording per card — original aspect ratio, never cropped.
   Pinned to the TOP of the card, not centred: the clips are wider than they are
   tall, so centring parked them at a different offset in each card (83px down in
   one, 3px in the other) and the two cards read as misaligned. Top-aligned, the
   video edge lines up with the card heading every time. */
.brcam__media{grid-area:media;align-self:stretch;display:flex;align-items:flex-start;justify-content:center}
.brcam__shot{width:100%;height:auto;display:block;border-radius:14px;border:1px solid var(--border)}

/* Tablet and below: side-by-side leaves the recording ~480px wide, floating in a
   column as tall as the text. Stack it — full width, actually legible on an iPad. */
@media(max-width:1100px){
  /* stack: text, screenshot, then the CTA fills the bottom full-width */
  .brcam{grid-template-columns:1fr;grid-template-rows:auto auto auto;
    grid-template-areas:"info" "media" "cta";row-gap:22px}
  .brcam__cta{margin-top:0;align-self:stretch}
  .brcam__cta .btn{width:100%;justify-content:center}
}
@media(max-width:860px){.brcam{padding:22px}}

@media(max-width:760px){
  .brflow__head{grid-template-columns:1fr;gap:14px;margin-bottom:30px}
  .brflow__headR{font-size:var(--fs-md);max-width:none}
  .brflow{display:none}
  .brflow--mobile{display:flex;flex-direction:column;align-items:stretch;max-width:430px;
    width:100%;margin:0 auto}

  /* sources — full-width cards with descriptions */
  .brflow__mstack{display:flex;flex-direction:column;gap:10px}
  .brflow__mstack .brflow__node{width:100%}
  .brflow--mobile .brflow__txt small{font-size:var(--fs-2xs)}

  /* trunk: sources → hub */
  .brflow__mtrunk{width:120px;height:46px;align-self:center}
  .brflow__mtrunk svg{width:100%;height:100%;display:block;overflow:visible}

  .brflow--mobile .brflow__hub{align-self:center}
  .brflow--mobile .brflow__hub img{width:74px;height:74px}

  /* fan: hub → outputs */
  .brflow__vwires{width:100%;height:56px;position:relative}
  .brflow__vwires svg{width:100%;height:100%;display:block;overflow:visible}

  /* outputs — even compact row */
  .brflow__row--out{display:flex;gap:8px;width:100%;margin-top:2px}
  .brflow__row--out .brflow__node{flex:1;min-width:0;justify-content:center;font-family:var(--mono);
    letter-spacing:.04em;font-size:var(--fs-2xs);padding:13px 4px}
  .brflow__ico{width:30px;height:30px}
}

/* ════════════ INTERACTIVE DEMO — mirrors the Bridge app ════════════
   Left: add sources · Center: preview/program + multiview · Right: outputs */
/* one gap value everywhere: columns, buses, cut/grid rhythm, tiles all 14px */
.cr{display:grid;grid-template-columns:210px 1fr 232px;gap:14px;align-items:stretch;
  background:linear-gradient(180deg,var(--surface),var(--bg-2));border:1px solid var(--border);
  border-radius:20px;padding:18px;box-shadow:0 40px 120px -50px rgba(0,0,0,.85)}
/* container for the multiview: lets the tile grid derive its own scroll cap
   from its real width (see .cr__grid) instead of a hardcoded height */
.cr__col--main{display:flex;flex-direction:column;gap:14px;container-type:inline-size}

/* side columns (left channels / right outputs) */
.cr__col--side{background:var(--bg-2);border:1px solid var(--border);border-radius:14px;padding:14px;position:relative;
  display:flex;flex-direction:column}
.cr__colHead{display:flex;align-items:center;justify-content:space-between;min-height:28px;margin-bottom:12px}
.cr__colHead span{font-family:var(--mono);font-size:var(--fs-3xs);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.cr__add{width:28px;height:28px;border-radius:8px;border:1px solid var(--border);background:var(--surface-2);
  color:var(--text);font-size:var(--fs-lg);line-height:1;cursor:pointer;display:grid;place-items:center;transition:border-color .18s}
.cr__add:hover{border-color:var(--text-2)}

/* channels list (left) — absolutely filled so it can't inflate the demo;
   the panel height is driven by the center column, the list scrolls inside it */
.cr__chans{position:absolute;left:14px;right:14px;top:54px;bottom:14px;
  display:flex;flex-direction:column;gap:8px;overflow-y:auto;
  scrollbar-width:thin;scrollbar-color:var(--border-soft) transparent}
.cr__chans::-webkit-scrollbar,.cr__outs::-webkit-scrollbar{width:6px}
.cr__chans::-webkit-scrollbar-thumb,.cr__outs::-webkit-scrollbar-thumb{background:var(--border-soft);border-radius:3px}
.cr__hint{font-size:var(--fs-xs);color:var(--muted);margin:0;line-height:1.45}
.cr__chan{display:flex;align-items:center;gap:9px;padding:10px 11px;border:1px solid var(--border);
  border-radius:10px;background:var(--surface)}
.cr__chan__dot{width:8px;height:8px;border-radius:50%;background:#3a3a44;flex:none;transition:background .18s}
.cr__chan.is-pvw .cr__chan__dot{background:var(--pvw)}
.cr__chan.is-pgm .cr__chan__dot{background:var(--pgm)}
.cr__chan__name{font-size:var(--fs-xs);color:var(--text);font-weight:500;flex:1;min-width:0}

/* add-source menu */
.cr__menu{position:absolute;top:46px;left:14px;right:14px;z-index:5;background:var(--surface-2);
  border:1px solid var(--border);border-radius:12px;padding:6px;box-shadow:0 24px 60px -24px rgba(0,0,0,.8);
  display:flex;flex-direction:column;gap:2px}
.cr__menu[hidden]{display:none}
.cr__menu button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:transparent;
  border:0;border-radius:8px;padding:10px 12px;color:var(--text);font-size:var(--fs-xs);cursor:pointer}
.cr__menu button:hover{background:rgba(255,255,255,.06)}
.cr__menu svg{width:18px;height:18px;color:var(--blue);flex:none}

/* center: preview / program buses */
.cr__buses{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.cr__bus{position:relative}
.cr__busLbl{position:absolute;top:8px;left:9px;z-index:2;font-family:var(--mono);font-size:var(--fs-micro);
  letter-spacing:.08em;text-transform:uppercase;padding:3px 8px;border-radius:5px;color:#fff}
.cr__busLbl--pvw{background:#1c7a36}
.cr__busLbl--pgm{background:#c1271f}
.cr__pane{aspect-ratio:16/9;border-radius:12px;border:2px solid var(--border);overflow:hidden;
  display:grid;place-items:center;position:relative;transition:border-color .2s var(--ease)}
.cr__pane--pvw.is-on{border-color:var(--pvw)}
.cr__pane--pgm.is-on{border-color:var(--pgm)}
.cr__paneEmpty{font-family:var(--mono);color:var(--muted);font-size:var(--fs-3xs);letter-spacing:.05em;text-transform:uppercase}
.cr__feed{position:absolute;inset:0;display:grid;place-items:center;font-weight:600;font-size:var(--fs-md);color:#fff}

/* center: CUT (above the buses) */
.cr__cut{align-self:stretch;width:100%;font-family:var(--mono);font-weight:700;font-size:var(--fs-md);
  letter-spacing:.14em;color:var(--yellow-ink);background:var(--yellow);border:0;border-radius:12px;
  padding:12px 36px;cursor:pointer;min-height:46px;transition:transform .15s var(--ease),opacity .2s}
.cr__cut span{font-weight:500;letter-spacing:.04em;opacity:.65}
.cr__cut:active{transform:scale(.99)}
.cr__cut:disabled{opacity:.4;cursor:not-allowed;background:var(--surface-2);color:var(--muted)}

/* center: multiview — 4 columns · 2 rows visible, then the block scrolls.
   Row height is NOT a fixed pixel value: these are multiview tiles, so they stay
   locked to 16:9 (see .cr__cell) and the row follows the column width. The
   scroll cap is derived from the same numbers rather than a magic height, so it
   still shows exactly two rows at every column count and gap. */
.cr__grid{--cols:4;--g:14px;
  display:grid;grid-template-columns:repeat(var(--cols),1fr);gap:var(--g);
  align-content:start;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--border-soft) transparent;
  max-height:178px;                                    /* fallback: no container queries */
  max-height:calc((100cqw - (var(--cols) - 1) * var(--g)) / var(--cols) * 1.125 + var(--g))}
.cr__grid::-webkit-scrollbar{width:6px}.cr__grid::-webkit-scrollbar-thumb{background:var(--border-soft);border-radius:3px}
.cr__cell{position:relative;aspect-ratio:16/9;border-radius:10px;border:1.5px dashed var(--border);
  background:transparent;display:grid;place-items:center;cursor:default;overflow:hidden;
  transition:border-color .18s var(--ease),transform .15s var(--ease)}
.cr__cellEmpty{font-family:var(--mono);font-size:var(--fs-lg);color:#33333c}
.cr__cell.is-on{border-style:solid;border-color:var(--border-soft);cursor:pointer}
.cr__cell.is-on:hover{transform:translateY(-2px)}
.cr__cell.is-pvw{border-color:var(--pvw);border-width:2px}
.cr__cell.is-pgm{border-color:var(--pgm);border-width:2px}
.cr__cell__dot{position:absolute;top:8px;right:8px;width:9px;height:9px;border-radius:50%;background:#3a3a44}
.cr__cell.is-pvw .cr__cell__dot{background:var(--pvw)}
.cr__cell.is-pgm .cr__cell__dot{background:var(--pgm)}
.cr__cell__name{position:absolute;left:8px;bottom:8px;font-family:var(--mono);font-size:var(--fs-3xs);
  background:rgba(0,0,0,.5);padding:3px 7px;border-radius:6px;color:#fff}

/* right: program outputs — toggle · name · delete */
.cr__outs{position:absolute;left:14px;right:14px;top:54px;bottom:14px;
  display:flex;flex-direction:column;gap:8px;overflow-y:auto;
  scrollbar-width:thin;scrollbar-color:var(--border-soft) transparent}
.cr__out{display:flex;align-items:center;gap:11px;width:100%;
  padding:11px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface);
  transition:border-color .18s,background .18s}
.cr__outName{font-family:var(--mono);font-size:var(--fs-sm);font-weight:600;color:var(--text-2);flex:1;min-width:0}
.cr__out.is-live .cr__outName{color:var(--text)}
.cr__sw{width:34px;height:20px;border-radius:999px;background:#2a2a32;position:relative;flex:none;
  border:0;padding:0;cursor:pointer;transition:background .2s}
.cr__sw::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;
  background:#fff;transition:transform .2s var(--ease)}
.cr__out.is-live{border-color:var(--blue);background:rgba(10,132,255,.12)}
.cr__out.is-live .cr__sw{background:var(--blue)}
.cr__out.is-live .cr__sw::after{transform:translateX(14px)}
.cr__del{width:28px;height:28px;flex:none;border:0;background:transparent;color:var(--muted);border-radius:8px;
  cursor:pointer;display:grid;place-items:center;transition:color .18s,background .18s}
.cr__del svg{width:16px;height:16px}
.cr__del:hover{color:var(--pgm);background:rgba(255,59,48,.12)}
.cr__menuEmpty{font-family:var(--mono);font-size:var(--fs-2xs);color:var(--muted);padding:9px 12px;margin:0;text-align:center}

/* ════════════ FEATURES ════════════ */
.brfeats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.brfeat{background:var(--surface);border:1px solid var(--border-soft);border-radius:18px;padding:26px}
.brfeat__ico{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;margin-bottom:16px;
  background:var(--surface-2);color:var(--blue)}
.brfeat__ico svg{width:24px;height:24px}
.brfeat__ico--pgm{color:var(--pgm)}
.brfeat__ico--cool{color:var(--pvw)}
.brfeat h3{font-size:var(--fs-lg);font-weight:700;margin-bottom:8px;color:var(--text)}
.brfeat p{color:var(--text-2);font-size:var(--fs-md);line-height:1.6}

/* coming soon */
.brsoon{margin-top:24px;background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:24px 26px}
.brsoon__lbl{font-family:var(--mono);font-size:var(--fs-3xs);letter-spacing:.08em;text-transform:uppercase;
  color:var(--yellow);margin-bottom:14px}
.brsoon__list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:12px 28px}
.brsoon__list li{color:var(--text-2);font-size:var(--fs-md);line-height:1.55;padding-left:18px;position:relative}
.brsoon__list li::before{content:"";position:absolute;left:0;top:.6em;width:7px;height:7px;border-radius:50%;
  background:var(--surface-2);border:1px solid var(--border)}
.brsoon__list b{color:var(--text);font-weight:600}

/* ════════════ RESPONSIVE ════════════ */
/* iPad landscape (1024–1194): no rule used to fire below 900, so the two-column
   hero rendered at desktop proportions in a viewport it doesn't fit. */
@media (max-width:1100px){
  .brhero__grid{grid-template-columns:1fr;gap:38px}
}
@media (max-width:900px){
  .brfeats{grid-template-columns:1fr}
  .brsoon__list{grid-template-columns:1fr}
  /* stack the demo: channels, multiview, outputs */
  .cr{grid-template-columns:1fr;gap:14px;padding:14px}
  .cr__grid{--cols:2}
  .cr__cut{align-self:stretch;width:100%;min-width:0}
  /* stacked: lists go back into normal flow with their own scroll cap */
  .cr__chans,.cr__outs{position:static;top:auto;bottom:auto;left:auto;right:auto;max-height:240px}
}
@media (max-width:600px){
  .cr__grid{--g:8px}
}
