/* ==========================================================================
   The Lead Gen Company — industry page figures
   Loads AFTER leadhq-lab.css. Every selector is new (why-*, wf-*).

   One figure per industry page, sitting beside the "Why it works" copy.
   Each figure's resting CSS is its finished frame, so it still reads as a
   complete illustration with animation off or reduced motion on. Figures run
   only while on screen (.is-live is set by a small inline script; without JS
   they simply run).

   Adding an industry: reuse the layout and wf-* primitives below, give the
   new <svg> its own keyframes under a "wf-<industry>" prefix.
   ========================================================================== */

.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.why-grid .s-head { margin-bottom: 0; max-width: none; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; gap: 34px; } }

.why-fig {
  position: relative; margin: 0; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(184,255,58,.09), transparent 62%),
    linear-gradient(rgba(150,180,255,.07) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(150,180,255,.07) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--panel);
  box-shadow: 0 40px 80px -50px rgba(0,0,0,.9);
}
.why-fig svg { display: block; width: 100%; height: auto; }
.why-fig figcaption {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 16px; border-top: 1px solid var(--line); background: rgba(7,11,21,.55);
  font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.why-fig figcaption b { color: var(--ink-2); font-weight: 400; }
.why-fig__live { display: inline-flex; align-items: center; gap: 8px; }
.why-fig__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: wf-blink 1.6s steps(2) infinite; }
@keyframes wf-blink { 50% { opacity: .3; } }

/* shared primitives */
.wf * { transform-box: fill-box; transform-origin: center; }
.wf text { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; fill: var(--ink-3); }
.wf .t-lime { fill: var(--lime); } .wf .t-b { font-weight: 700; } .wf .t-dark { fill: #08120a; font-weight: 700; }
.wf .t-query { font-size: 15px; letter-spacing: 0; fill: var(--ink); }
.wf .t-title { font-family: var(--sans); font-size: 21px; font-weight: 600; letter-spacing: -.015em; fill: var(--ink); }
.wf-card { fill: #131d3b; stroke: var(--line-2); }
.wf-deep { fill: #0c1329; stroke: var(--line-2); }
.wf-bar { fill: rgba(150,180,255,.16); }
.wf-stroke { fill: none; stroke: var(--ink-3); stroke-width: 1.75; stroke-linecap: round; }

.why-js .why-fig:not(.is-live) *, .why-js .why-fig:not(.is-live) .why-fig__live::before { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .wf *, .why-fig__live::before { animation: none !important; } }

/* ---- solicitors: four searches, one firm found every time -------------- */
/* A 14s loop of four 3.5s beats. Each beat: the query types, the results
   resolve with the firm on top, the cursor clicks it, an enquiry lands. */
.wf-sol-q { opacity: 0; animation: wf-sol-q 14s linear infinite both; }
.wf-sol-q--1 { opacity: 1; }
.wf-sol-q--2 { animation-delay: 3.5s; } .wf-sol-q--3 { animation-delay: 7s; } .wf-sol-q--4 { animation-delay: 10.5s; }
.wf-sol-cover { fill: #0c1329; transform-origin: 100% 50%; transform: scaleX(0); animation: wf-sol-type 14s steps(17) infinite both; }
.wf-sol-caret { fill: var(--lime); opacity: 0; animation: wf-sol-caret 14s steps(17) infinite both; }
.wf-sol-q--3 .wf-sol-cover, .wf-sol-q--3 .wf-sol-caret { animation-timing-function: steps(19); }
.wf-sol-q--2 * { animation-delay: 3.5s; } .wf-sol-q--3 * { animation-delay: 7s; } .wf-sol-q--4 * { animation-delay: 10.5s; }
@keyframes wf-sol-q     { 0% { opacity: 0; } .5%, 24.5% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes wf-sol-type  { 0%, 1.5% { transform: scaleX(1); } 10%, 100% { transform: scaleX(0); } }
@keyframes wf-sol-caret { 0%, 1.5% { transform: none; opacity: 1; } 10% { transform: translateX(var(--w)); opacity: 1; } 12%, 100% { transform: translateX(var(--w)); opacity: 0; } }

.wf-sol-r { animation: wf-sol-r 3.5s cubic-bezier(.22, .61, .36, 1) infinite both; }
.wf-sol-r--2 { animation-name: wf-sol-r2; } .wf-sol-r--3 { animation-name: wf-sol-r3; }
.wf-sol-top { fill: none; stroke: var(--lime); stroke-width: 1.5; animation: wf-sol-top 3.5s ease-out infinite both; }
.wf-sol-cursor { opacity: 0; transform-box: view-box; transform-origin: 0 0; transform: translate(376px, 150px); animation: wf-sol-cursor 3.5s cubic-bezier(.16, 1, .3, 1) infinite both; }
.wf-sol-ripple { fill: none; stroke: var(--lime); opacity: 0; animation: wf-sol-ripple 3.5s ease-out infinite both; }
.wf-sol-toast { animation: wf-sol-toast 3.5s cubic-bezier(.16, 1, .3, 1) infinite both; }
@keyframes wf-sol-r  { 0%, 40% { opacity: .18; transform: translateY(6px); } 48%, 96% { opacity: 1; transform: none; } 100% { opacity: .18; transform: none; } }
@keyframes wf-sol-r2 { 0%, 44% { opacity: .1; transform: translateY(6px); } 52%, 96% { opacity: .62; transform: none; } 100% { opacity: .1; transform: none; } }
@keyframes wf-sol-r3 { 0%, 48% { opacity: .06; transform: translateY(6px); } 56%, 96% { opacity: .38; transform: none; } 100% { opacity: .06; transform: none; } }
@keyframes wf-sol-top { 0%, 46% { stroke-opacity: .35; } 52% { stroke-opacity: 1; filter: drop-shadow(0 0 8px rgba(184,255,58,.7)); } 70%, 100% { stroke-opacity: 1; filter: none; } }
@keyframes wf-sol-cursor { 0%, 58% { transform: translate(430px, 300px); opacity: 0; } 61% { opacity: 1; } 74%, 82% { transform: translate(376px, 150px); opacity: 1; } 78% { transform: translate(376px, 150px) scale(.86); } 94%, 100% { transform: translate(392px, 176px); opacity: 0; } }
@keyframes wf-sol-ripple { 0%, 77% { transform: scale(.4); opacity: 0; } 79% { opacity: .9; } 92%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes wf-sol-toast { 0%, 79% { opacity: 0; transform: translateY(8px); } 84%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }

@media (max-width: 480px) {
  .why-fig { border-radius: 14px; }
  .why-fig figcaption { font-size: .56rem; letter-spacing: .1em; padding: 9px 12px; white-space: nowrap; }
}

/* when the grid is a section header with more content below it */
.why-grid--head { margin-bottom: 48px; }

/* ---- buy leads index: search -> landing page -> one inbox -------------- */
/* An 8s loop. The query types, a click travels to the landing page, the form
   fills and submits, and the lead travels to one inbox only. */
.wf-path-wire { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wf-path-dash { fill: none; stroke: rgba(150,180,255,.22); stroke-dasharray: 3 5; }
.wf-path-x { fill: none; stroke: var(--amber); stroke-width: 1.75; stroke-linecap: round; opacity: .8; }
.wf-path-cover { fill: #0c1329; transform-origin: 100% 50%; transform: scaleX(0); animation: wf-path-type 8s steps(12) infinite both; }
.wf-path-caret { fill: var(--lime); opacity: 0; animation: wf-path-caret 8s steps(12) infinite both; }
.wf-path-a { fill: var(--lime); opacity: 0; filter: drop-shadow(0 0 6px rgba(184,255,58,.7)); animation: wf-path-a 8s linear infinite both; }
.wf-path-b { fill: var(--lime); opacity: 0; filter: drop-shadow(0 0 6px rgba(184,255,58,.7)); animation: wf-path-b 8s linear infinite both; }
.wf-path-f { fill: rgba(234,240,251,.8); transform-origin: 0 50%; animation: wf-path-f1 8s cubic-bezier(.22, .61, .36, 1) infinite both; }
.wf-path-f--2 { animation-name: wf-path-f2; }
.wf-path-btn { animation: wf-path-btn 8s ease-out infinite both; }
.wf-path-row { animation: wf-path-row 8s cubic-bezier(.16, 1, .3, 1) infinite both; }
.wf-path-tick { animation: wf-path-tick 8s cubic-bezier(.16, 1, .3, 1) infinite both; }
.wf-path-glow { fill: none; stroke: var(--lime); stroke-width: 1.5; animation: wf-path-glow 8s ease-out infinite both; }
.wf-path-count { animation: wf-path-count 8s linear infinite both; }
@keyframes wf-path-type  { 0%, 3% { transform: scaleX(1); } 17%, 96% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes wf-path-caret { 0%, 3% { transform: none; opacity: 1; } 17% { transform: translateX(110px); opacity: 1; } 20%, 100% { transform: translateX(110px); opacity: 0; } }
@keyframes wf-path-a { 0%, 19% { transform: none; opacity: 0; } 20% { opacity: 1; } 27% { transform: translateX(32px); opacity: 1; } 28%, 100% { transform: translateX(32px); opacity: 0; } }
@keyframes wf-path-f1 { 0%, 29% { transform: scaleX(0); } 36%, 95% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }
@keyframes wf-path-f2 { 0%, 37% { transform: scaleX(0); } 44%, 95% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }
@keyframes wf-path-btn { 0%, 47% { transform: none; filter: none; } 49% { transform: scale(.95); } 52% { transform: none; filter: drop-shadow(0 0 9px rgba(184,255,58,.8)); } 62%, 100% { transform: none; filter: none; } }
@keyframes wf-path-b { 0%, 52% { transform: none; opacity: 0; } 53% { opacity: 1; } 61% { transform: translateY(88px); } 70% { transform: translate(-118px, 88px); opacity: 1; } 71%, 100% { transform: translate(-118px, 88px); opacity: 0; } }
@keyframes wf-path-row { 0%, 70% { opacity: 0; transform: translateX(14px); } 76%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes wf-path-tick { 0%, 74% { transform: scale(0); } 79% { transform: scale(1.25); } 83%, 100% { transform: none; } }
@keyframes wf-path-glow { 0%, 69% { stroke-opacity: .35; filter: none; } 73% { stroke-opacity: 1; filter: drop-shadow(0 0 8px rgba(184,255,58,.7)); } 90%, 100% { stroke-opacity: 1; filter: none; } }
@keyframes wf-path-count { 0%, 72% { opacity: .25; } 76%, 95% { opacity: 1; } 100% { opacity: .25; } }

/* ---- search figure: shorter loops for pages with three or two searches ---
   The default loop is four 3.5s beats (14s). wf-sol--3 and wf-sol--2 run the
   same beats over 10.5s and 7s, so a search never repeats back to back. */
.wf-sol--3 .wf-sol-q { animation-name: wf-sol-q3; animation-duration: 10.5s; }
.wf-sol--3 .wf-sol-cover { animation-name: wf-sol-type3; animation-duration: 10.5s; }
.wf-sol--3 .wf-sol-caret { animation-name: wf-sol-caret3; animation-duration: 10.5s; }
.wf-sol--2 .wf-sol-q { animation-name: wf-sol-q2; animation-duration: 7s; }
.wf-sol--2 .wf-sol-cover { animation-name: wf-sol-type2; animation-duration: 7s; }
.wf-sol--2 .wf-sol-caret { animation-name: wf-sol-caret2; animation-duration: 7s; }
@keyframes wf-sol-q3     { 0% { opacity: 0; } .67%, 32.67% { opacity: 1; } 33.33%, 100% { opacity: 0; } }
@keyframes wf-sol-type3  { 0%, 2% { transform: scaleX(1); } 13.33%, 100% { transform: scaleX(0); } }
@keyframes wf-sol-caret3 { 0%, 2% { transform: none; opacity: 1; } 13.33% { transform: translateX(var(--w)); opacity: 1; } 16%, 100% { transform: translateX(var(--w)); opacity: 0; } }
@keyframes wf-sol-q2     { 0% { opacity: 0; } 1%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes wf-sol-type2  { 0%, 3% { transform: scaleX(1); } 20%, 100% { transform: scaleX(0); } }
@keyframes wf-sol-caret2 { 0%, 3% { transform: none; opacity: 1; } 20% { transform: translateX(var(--w)); opacity: 1; } 24%, 100% { transform: translateX(var(--w)); opacity: 0; } }

/* ==========================================================================
   Industry pages: "What you get" layout
   ========================================================================== */
/* four steps as an even 2 x 2 grid instead of three narrow cards and a wide one */
.stations--2x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 820px) { .stations--2x2 { grid-template-columns: 1fr; } }

/* "Why it pays": the closing argument as its own section, not a boxed note.
   The heading is always two lines, one sentence each. Its size is worked out
   from the longer line's character count (--ch, set per page) so neither line
   wraps on desktop or tablet. On phones a long sentence may wrap, but each
   sentence still starts on its own line. */
.vb { display: grid; gap: clamp(24px, 3vw, 36px); }
.vb__head { container-type: inline-size; }
.vb__head .label { display: inline-block; margin-bottom: 16px; }
.vb__head h2 { font-size: clamp(1.45rem, calc(100cqw / (var(--ch, 26) * .6)), 2.9rem); letter-spacing: -.03em; line-height: 1.08; }
.vb__two > span { display: block; }
@media (min-width: 700px) { .vb__two > span { white-space: nowrap; } }
.vb__body { max-width: 760px; border-left: 2px solid var(--lime); padding: 4px 0 4px clamp(18px, 2.4vw, 30px); }
.vb__body p { font-size: 1.08rem; line-height: 1.68; color: var(--ink-2); margin: 0; }
.vb__body p + p { margin-top: 16px; }

/* ---- "Why it pays" figure: who does what ------------------------------- */
/* The paragraph and the figure share a row under the two-line heading. */
.vb__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.vb__row .vb__body { max-width: none; }
@media (max-width: 900px) { .vb__row { grid-template-columns: 1fr; } }

/* My lane: a click runs search -> ad -> page -> enquiry on a 3s loop.
   Your lane: each enquiry that drops in becomes a ticked job (12s loop). */
.wf-duo-wire { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wf-duo-chip { fill: #0c1329; stroke: var(--line-2); animation: wf-duo-chip 3s ease-out infinite both; animation-delay: calc(.37s + var(--i) * .49s); }
.wf-duo-tok { fill: var(--lime); opacity: 0; filter: drop-shadow(0 0 6px rgba(184,255,58,.7)); animation: wf-duo-tok 3s linear infinite both; }
.wf-duo-row { animation: wf-duo-r1 12s cubic-bezier(.16, 1, .3, 1) infinite both; }
.wf-duo-row--2 { animation-name: wf-duo-r2; } .wf-duo-row--3 { animation-name: wf-duo-r3; }
.wf-duo-lane { fill: none; stroke: var(--lime); stroke-width: 1.5; stroke-opacity: .55; animation: wf-duo-lane 3s ease-out infinite both; }
@keyframes wf-duo-chip { 0%, 100% { stroke: rgba(150,180,255,.22); } 4% { stroke: #b8ff3a; } 22% { stroke: rgba(150,180,255,.22); } }
@keyframes wf-duo-tok { 0% { transform: none; opacity: 0; } 4% { opacity: 1; } 70% { transform: translateX(428px); opacity: 1; } 90% { transform: translate(428px, 82px); opacity: 1; } 94%, 100% { transform: translate(428px, 82px); opacity: 0; } }
@keyframes wf-duo-lane { 0%, 88% { stroke-opacity: .55; filter: none; } 92% { stroke-opacity: 1; filter: drop-shadow(0 0 7px rgba(184,255,58,.6)); } 100% { stroke-opacity: .55; filter: none; } }
@keyframes wf-duo-r1 { 0%, 22% { opacity: 0; transform: translateY(-8px); } 26%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; transform: none; } }
@keyframes wf-duo-r2 { 0%, 47% { opacity: 0; transform: translateY(-8px); } 51%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; transform: none; } }
@keyframes wf-duo-r3 { 0%, 72% { opacity: 0; transform: translateY(-8px); } 76%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; transform: none; } }

/* live readouts in the two lanes (numbers are driven by the inline script;
   with JS off or reduced motion they rest on the values in the markup) */
.wf .wf-duo-val { font-size: 13px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
