/* Brand setup v2 (assets/brand-setup-v2.js, ?flow=v2). Justin, 5 Nov 2026: workflow screens are ALWAYS dark, QOLA B2B
   v3.1 (design-system/B2B-DARK-STANDARD.md): deep ink ground, see-through cards, teal accents. Colors inside the videos
   come only from the firm's brand. */
.wz.v2 {
  --bg: #020617; --surface: #0D1324; --surface2: rgba(255, 255, 255, .045); --ink: #FFFFFF; --soft: #E2E8F0; --muted: #CBD5E1;
  --line: rgba(255, 255, 255, .10); --line2: rgba(255, 255, 255, .22); --accent: var(--ms-2); --accent-soft: rgba(var(--ms-rgb), .12);
  color-scheme: dark;
}
.wz.v2 .wz-card { width: min(1120px, 100%); background: var(--surface); }
.wz.v2 .wz-scrim { background: rgba(2, 6, 23, .82); }
.wz.v2 .wz-btn { background: var(--ms-4); color: var(--ms-on); }
.wz.v2 .wz-btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line2); }
.wz.v2 .wz-dots li.on span { color: #020617; }
.wz.v2 input { color-scheme: dark; }

.v2-pane { display: grid; gap: 14px; }
.v2-board { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
@media (max-width: 880px) { .v2-board { grid-template-columns: minmax(0, 1fr); } }
.v2-main { display: grid; gap: 14px; min-width: 0; }

/* the outro on top, scaled from its real size */
.v2-out { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: #020617; aspect-ratio: 1920 / 860; }
.v2-fit iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; }

/* three style videos, then three outros */
.v2-outros { max-width: 680px; }
.v2-tiles, .v2-outros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .v2-tiles, .v2-outros { gap: 8px; } }
.v2-tile { display: grid; gap: 6px; align-content: start; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.v2-vid { position: relative; display: block; aspect-ratio: 9 / 16; max-width: 100%; border-radius: 14px; overflow: hidden; border: 2px solid var(--line); background: #020617; transition: border-color .2s ease-out; }
.v2-tiles .v2-vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.v2-tile[aria-checked="true"] .v2-vid { border-color: var(--accent); }
.v2-tile:focus-visible { outline: none; } .v2-tile:focus-visible .v2-vid { outline: 2px solid var(--accent); outline-offset: 3px; }
.v2-tl { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.v2-tl b { font: 700 14px/1.2 var(--f-body); }
.v2-on { font: 700 11px/1 var(--f-body); color: var(--accent); visibility: hidden; }
.v2-tile[aria-checked="true"] .v2-on { visibility: visible; }
.v2-bl { font-size: 12px; line-height: 1.4; color: var(--muted); }
@media (max-width: 520px) { .v2-bl { display: none; } .v2-tl b { font-size: 12px; } }
.v2-lock { position: absolute; left: 8px; top: 8px; font: 700 10px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px; border-radius: 999px; background: rgba(2, 6, 23, .78); color: #FDE68A; border: 1px solid rgba(252, 211, 77, .3); }
.v2-tile.lock .v2-vid { opacity: .85; }
.v2-soon { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 12px; font-size: 12px; color: var(--muted); }
/* the style chips above the three range clips (Justin, 5 Nov 18:47) */
.v2-sty { display: grid; gap: 8px; }
.v2-sty-l { font: 700 12px/1.2 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.v2-sty-l small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--accent); }
.v2-stys { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-stys button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); color: var(--soft); border-radius: 12px; padding: 8px 14px; font: 600 15px/1.2 var(--f-body); cursor: pointer; }
.v2-stys button[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.v2-stys button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.v2-lockp { font: 700 10px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; padding: 4px 6px; border-radius: 999px; color: #FDE68A; border: 1px solid rgba(252, 211, 77, .3); }
.v2-clip { margin: 0; cursor: default; }
.v2-clip figcaption { display: grid; gap: 4px; }
.v2-vid .player, .v2-vid .player .stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.v2-vid [hidden] { display: none; }
.v2-note { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--accent); }

/* the controls */
.v2-ctl { display: grid; gap: 14px; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--surface2); }
.v2-f { display: grid; gap: 6px; }
.v2-f > span { font: 700 12px/1.2 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; gap: 6px; align-items: baseline; }
.v2-f > span small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--accent); }
.v2-ctl input:not([type=color]) { width: 100%; min-width: 0; background: rgba(255, 255, 255, .04); border: 1px solid var(--line2); border-radius: 10px; color: var(--ink); font: 500 15px/1.3 var(--f-body); padding: 10px 12px; }
.v2-ctl input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.v2-cols { display: grid; gap: 8px; }
.v2-col { display: grid; grid-template-columns: 30px 64px 1fr; align-items: center; gap: 8px; font-size: 13px; color: var(--soft); }
.v2-col input[type=color] { width: 30px; height: 30px; border: 1px solid var(--line2); border-radius: 8px; padding: 0; background: none; cursor: pointer; }
.v2-col .hex { font-family: var(--f-code) !important; font-size: 13px !important; text-transform: uppercase; }
.v2-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.v2-chips button { border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--soft); border-radius: 10px; padding: 7px 11px; font-size: 14px; cursor: pointer; }
.v2-chips button[aria-pressed="true"] { border-color: rgba(var(--ms-rgb), .4); background: var(--accent-soft); color: var(--ink); }
.v2-det { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 10px; }
.v2-det summary { cursor: pointer; font-weight: 600; color: var(--soft); font-size: 14px; }
.v2-det[open] summary { margin-bottom: 4px; }
.v2-det input.v2-need { border-color: var(--c-amber); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-amber) 28%, transparent); }
.v2-need-msg { margin: 0; font-size: 13px; color: var(--c-amber); }
.v2-kit { display: grid; gap: 8px; justify-items: center; margin: 4px 0 8px; }
.v2-kit .v2-kitgo { width: min(420px, 100%); min-height: 56px; font-size: 17px; box-shadow: 0 14px 34px -12px rgba(var(--ms-rgb-d), .8); }
.v2-kit small.v2-kitmsg { color: var(--accent); min-height: 1.2em; }
/* 7 Nov: the kit page is the second action on Done, so its button is quiet and the first video leads. */
.v2-kit .v2-kitgo.ghost { min-height: 46px; font-size: 15px; box-shadow: none; width: auto; padding: 0 22px; }
.v2-kit small.v2-kitmsg:not(:empty) { color: var(--muted); }
.v2-fine { max-width: 460px; text-align: center; font-size: 12px; line-height: 1.5; color: var(--muted); }
.v2-fine a { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .v2-vid { transition: none; } }
.br-kit { margin-top: 8px; display: inline-flex; text-decoration: none; }
/* logo + sharper upload (outro thread, 5 Nov 19:16) */
.v2-logo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v2-logo-th { display: grid; place-items: center; width: 96px; height: 44px; border-radius: 8px; background: #FFFFFF; padding: 4px; overflow: hidden; }
.v2-logo-th.on-dark { background: #0F172A; }
.v2-logo-th img { max-width: 100%; max-height: 100%; object-fit: contain; }
.v2-logo-th em { font: 500 11px/1.2 var(--f-body); color: #475569; font-style: normal; text-align: center; }
.v2-up { position: relative; cursor: pointer; }
.v2-up input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.v2-up-b { display: inline-block; font: 600 13px/1.2 var(--f-body); color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.v2-up.ask .v2-up-b { text-decoration: none; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(var(--ms-rgb), .4); background: var(--accent-soft); color: var(--ink); }
.v2-up:focus-within .v2-up-b { outline: 2px solid var(--accent); outline-offset: 2px; }
.v2-logo-msg { font-size: 12px; line-height: 1.4; color: var(--muted); min-height: 0; }
.br-v2edit { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
.v2-rec { margin-left: 4px; font: 700 10px/1 var(--f-body); letter-spacing: .04em; text-transform: uppercase; padding: 3px 6px; border-radius: 999px; color: var(--accent); border: 1px solid rgba(var(--ms-rgb), .4); vertical-align: 2px; }

/* Share-results opt-in on the All set screen (assets/share-consent.js). Separate from the Terms line above it. */
.wz.v2 .v2-share { display: grid; gap: 8px; width: min(520px, 100%); margin: 4px auto 0; text-align: left; }
.wz.v2 .v2-share > b { font-size: 14.5px; color: #fff; }

/* step 4: proof on the end card (Google rating, total recovered), off until ticked; the live end card beside it */
.v2-proof { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 20px; align-items: start; max-width: 680px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface2); }
.v2-proof-r { width: 100%; } .v2-proof-r .v2-vid { width: 100%; }
@media (max-width: 560px) { .v2-proof { grid-template-columns: minmax(0, 1fr); } .v2-proof-r { width: 190px; justify-self: center; } }
.v2-proof h3 { margin: 0; font: 700 17px/1.25 var(--f-head, var(--f-body)); color: var(--ink); display: flex; gap: 8px; align-items: baseline; }
.v2-proof h3 small { font: 500 13px/1 var(--f-body); color: var(--muted); }
.v2-proof-l { display: grid; gap: 12px; min-width: 0; }
.v2-pr { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s ease-out, background-color .2s ease-out; }
.v2-pr.on { border-color: var(--accent); background: var(--accent-soft); }
.v2-tick { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.v2-tick input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ms-4); flex: none; }
.v2-tick span { display: grid; gap: 2px; }
.v2-tick b { font: 700 15px/1.3 var(--f-body); color: var(--ink); }
.v2-tick small { font: 500 13px/1.3 var(--f-body); color: var(--muted); }
.v2-pr-f { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; }
.v2-pr[data-pr="recovered"] .v2-pr-f { grid-template-columns: 140px minmax(0, 1fr); }
@media (max-width: 360px) { .v2-pr-f, .v2-pr[data-pr="recovered"] .v2-pr-f { grid-template-columns: minmax(0, 1fr); } }
.v2-pr-f input { width: 100%; min-width: 0; box-sizing: border-box; background: rgba(255, 255, 255, .04); border: 1px solid var(--line2); border-radius: 10px; color: var(--ink); font: 500 15px/1.3 var(--f-body); padding: 10px 12px; }
.v2-pr-f input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.v2-pr-w { font: 500 13px/1.35 var(--f-body); color: #FCD34D; }
.v2-pr-w:empty { display: none; }
.v2-legal { margin: 0; font: 500 12px/1.45 var(--f-body); color: var(--muted); }
.v2-proof-sub { font-size: 14px; color: var(--soft); }
/* phone: "Reveal  Recommended  Picked" was wider than its column and pushed the first outro tile over the next (6 Nov fix) */
.v2-tl { flex-wrap: wrap; min-width: 0; }
@media (max-width: 520px) { .v2-tl .v2-rec { display: none; } .v2-vid { width: 100%; } }

/* Done, look C (Justin, 7 Nov 2026): the firm's own outro plays as the one focal point, labeled as its brand kit;
   headline, one main button, the kit page as a plain link. Opt-in, terms and tour stay quiet under a hairline. */
.v2-gift { gap: 0; }
.v2-gift-stage { position: relative; width: min(440px, 100%); margin: 4px auto 22px; }
.v2-gift-stage .v2-out { aspect-ratio: auto; box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .9); }
.v2-gift-tag { position: absolute; top: 12px; left: 12px; padding: 6px 11px; border-radius: 999px; background: rgba(2, 6, 23, .78); color: #fff; font: 700 11px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.v2-gift h2 { max-width: 560px; margin: 0 auto; text-wrap: balance; }
.v2-gift .wz-sub { margin-top: 10px; }
.v2-gift .v2-kit small.v2-kitmsg { font-size: 14px; color: var(--soft); }
.v2-gift .wz-first.one { margin: 22px 0 4px; }
.v2-gift .v2-kit { margin: 2px 0 0; gap: 6px; }
.v2-gift .v2-kit .v2-kitgo { width: auto; min-height: 44px; padding: 10px 6px; font-size: 15px; box-shadow: none; text-decoration: underline; text-underline-offset: 4px; }
.v2-gift .v2-kit .v2-kitgo:disabled { opacity: .6; cursor: default; }
.v2-gift .wz-kitmail { margin-top: 14px; }
.v2-gift-foot { display: grid; justify-items: center; gap: 12px; width: min(560px, 100%); margin: 56px auto 0; padding-top: 24px; border-top: 1px solid var(--line); }
.v2-gift-foot .v2-share { margin: 0; }
.wz.v2 .v2-share.v2-share-top { width: min(560px, 100%); margin: 20px auto 0; } /* consent above the first-video button (10 Nov 2026) */
@media (max-width: 560px) { .v2-gift-stage { margin-bottom: 18px; } .v2-gift-tag { top: 8px; left: 8px; font-size: 10px; padding: 5px 9px; } }

/* the opener of the firm's Who's at fault video, 9:16, as the gift (Justin, 7 Nov 2026 07:35) */
.v2-gift-stage:has(iframe[data-hook]), .v2-gift-stage:has(iframe[data-intro]) { width: min(260px, 70vw); }
/* the firm's real logo in motion plays first in the same 9:16 frame (9 Nov 2026), then the opener takes over */
.v2-gift .v2-out:has(> iframe[data-intro]) { aspect-ratio: 9 / 16; height: auto !important; }
.v2-gift .v2-out > iframe[data-intro] { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; }
/* the wall of their videos behind the opener (Justin, 7 Nov 2026 08:04), dimmed so the opener stays the one focal point */
.v2-gift-hero { position: relative; justify-self: stretch; width: 100%; display: grid; place-items: center; padding: 26px 0; margin: 0 0 22px; }
.v2-gift-hero .v2-gift-stage { margin: 0 auto; z-index: 1; }
.v2-gift-wall { position: absolute; inset: 0; border-radius: 18px; }
.v2-gift-wall::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit; background: radial-gradient(closest-side, rgba(5,10,22,.7), rgba(5,10,22,.5) 60%, rgba(5,10,22,.8)); }
.v2-gift .v2-out:has(> iframe[data-hook]) { aspect-ratio: 9 / 16; height: auto !important; }
.v2-gift .v2-out > iframe[data-hook] { position: absolute; inset: 0; width: 100%; height: 100%; transform: none !important; border: 0; }
.v2-reach .v2-chips button { min-height: 40px; }
.v2-reach .v2-chips button[aria-checked="true"] { border-color: rgba(var(--ms-rgb), .4); background: var(--accent-soft); color: var(--ink); }
.v2-hook-logo { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; display: grid; place-items: center; padding: 7px 12px; border-radius: 10px; background: #fff; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .8); }
.v2-hook-logo img { display: block; height: 26px; width: auto; max-width: 150px; object-fit: contain; }
