/* ============================================================
   B4B GLOBAL EDGE · Find Your Trust Gap (v2)
   Layers on top of edge.css + homepage-v2.css (secnav, .r reveals) +
   case-study-v2.css (the spacious .cs-* article system: cs-sec, cs-head,
   cs-lede, cs-emph, cs-marks). Adds: a two-column "product" hero with a
   CSS-built report mock-up (no build step, no real report to screenshot
   yet), light-section form styling, and the three-step application form.
   Only loaded by find-your-trust-gap-v2.html.
   ============================================================ */

/* ============================================================
   1 · HERO · text left, report mock-up right ("above the fold" per
   the brief). Light and product-led rather than a cinematic photo/film
   hero, since this page is meant to feel like an application, not a
   story.
   ============================================================ */
.tg-hero{background:var(--cream); color:var(--ink-l); padding:clamp(8rem,16vh,11rem) 0 clamp(4rem,8vw,6rem)}

/* edge.css's header assumes a dark photo/video/forest hero sits behind
   its transparent (unscrolled) state, so it hard-codes the nav links,
   underline and burger to white. Every other v2 page has that dark
   backdrop; this one's hero is deliberately light (a product page, not
   a story), which left the nav invisible: white text on a white page
   until you scroll. Override to dark ink for the unscrolled state only
   — .hdr.scrolled already gets a dark bar behind it, so it keeps the
   site's normal white nav there. */
.hdr:not(.scrolled) .nav-links a{color:var(--ink-l)}
.hdr:not(.scrolled) .nav-links a::after{background:var(--ink-l)}
.hdr:not(.scrolled) .burger{border-color:var(--line-l)}
.hdr:not(.scrolled) .burger span{background:var(--ink-l)}
/* same problem, same fix, for the "EDGE" wordmark half of the logo:
   it's baked white into the shared SVG, so a dark-ink copy is layered
   on top and swapped in only while the header is unscrolled */
.hdr .logo{position:relative; display:flex; align-items:center; gap:.65rem}
.hdr .logo .mark-dark{position:absolute; top:0; left:0; opacity:0; pointer-events:none}
.hdr:not(.scrolled) .logo .mark:not(.mark-dark){opacity:0}
.hdr:not(.scrolled) .logo .mark-dark{opacity:1}
/* .cs-lede has no colour of its own outside a .cs-sec-cream/-dark
   section (case-study-v2.css only sets it there); this hero is its
   own section, not one of those, so it needs its own light-mode colour
   or it inherits the site's default (light-on-dark) text colour and
   nearly vanishes on this cream background */
.tg-hero .cs-lede{color:var(--mut-l)}
.tg-hero .wrap{
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:center; gap:clamp(2.5rem,6vw,5rem);
}
.tg-hero .copy{max-width:34rem}
.tg-hero h1{margin-top:1rem; color:var(--ink-l)}
.tg-hero .cs-lede{margin-inline:0}
.tg-hero .cs-lede + .cs-lede{margin-top:1rem}
.tg-hero .cta-row{margin-top:1.8rem; justify-content:flex-start}

@media (max-width:900px){
  .tg-hero .wrap{grid-template-columns:1fr; text-align:center}
  .tg-hero .copy{max-width:none; margin:0 auto}
  .tg-hero h1{margin-inline:auto}
  .tg-hero .cs-lede{margin-inline:auto}
  .tg-hero .cta-row{justify-content:center}
}

/* ---------- the report mock-up: the homepage's .report-mock (edge.css), built from
   plain shapes rather than a screenshot of a real (and therefore confidential) client
   report. Heading sized as on the homepage so it fits the sheet. ---------- */
.tg-hero .report-mock h3{font-size:clamp(1.2rem,2.2vw,2rem)}
@media (max-width:900px){
  .tg-hero .report-mock{margin-top:1rem}
}

/* ---------- what we look at: a full-width ticker banner that scrolls
   continuously, rather than a static list — same mechanism as
   homepage-v2.css's .v2-marquee (full-bleed, edge-fade mask, JS-doubled
   strip for a seamless loop, pauses on hover), reusing its @keyframes
   slide, just set in bigger display type since this is plain statements
   rather than small logo wordmarks. ---------- */
.tg-ticker{
  width:100vw; position:relative; left:50%; right:50%; margin-left:-50vw; margin-right:-50vw;
  margin-top:clamp(3rem,6vw,4rem); overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.tg-ticker .strip{
  display:flex; width:max-content; align-items:center;
  animation:slide 32s linear infinite;
}
.tg-ticker:hover .strip{animation-play-state:paused}
.tg-ticker .item{
  font-family:var(--disp); font-weight:var(--w-medium); font-size:clamp(1.4rem,2.6vw,1.9rem);
  color:inherit; white-space:nowrap; padding:0 clamp(1.5rem,3vw,2.5rem);
}
.tg-ticker .sep{color:var(--teal); font-size:clamp(1.4rem,2.6vw,1.9rem)}

@media (prefers-reduced-motion:reduce){
  .tg-ticker{
    width:auto; position:static; left:auto; right:auto; margin-left:0; margin-right:0;
    -webkit-mask-image:none; mask-image:none;
  }
  .tg-ticker .strip{
    animation:none; width:auto; flex-wrap:wrap; justify-content:center;
    max-width:44rem; margin:0 auto; gap:.6rem;
  }
  .tg-ticker .item{padding:0}
  .tg-ticker .sep{display:none}
}

/* ============================================================
   2 · WHY APPLY · kept deliberately short, per the brief
   ============================================================ */
.tg-why-marks{
  display:flex; flex-wrap:wrap; justify-content:center; gap:.6rem 2.4rem;
  margin-top:clamp(1.6rem,3vw,2.2rem);
}
.tg-why-marks span{
  font-family:var(--mono); font-weight:var(--w-medium); font-size:var(--fs-label);
  letter-spacing:var(--ls-label); text-transform:uppercase; color:var(--mut-l);
}

/* ============================================================
   3 · THE THREE-STEP APPLICATION FORM
   edge.css's field/form-note styles default dark (this page's form
   sits on a cream section); reuse its own ".sec-cream" light variant
   rules here since that class isn't present on ".cs-sec-cream".
   ============================================================ */
.cs-sec-cream .field label{color:var(--mut-l)}
.cs-sec-cream .field input, .cs-sec-cream .field textarea{background:#fff; border-color:var(--line-l); color:var(--ink-l)}
.cs-sec-cream .field input::placeholder, .cs-sec-cream .field textarea::placeholder{color:rgba(20,42,36,.4)}
.cs-sec-cream .field input:focus, .cs-sec-cream .field textarea:focus{border-color:var(--teal); background:#fff}
.cs-sec-cream .form-note{color:var(--mut-l)}

.tg-apply{max-width:40rem; margin:clamp(2.5rem,5vw,3.5rem) auto 0}
/* .form-block/.tg-steps set their own "display", which otherwise beats
   the browser's default [hidden]{display:none} (an author rule always
   wins over a user-agent one, regardless of specificity) */
.tg-apply [hidden]{display:none !important}

/* progress: three numbered dots joined by a line, matching the brief's
   "1/3, 2/3, 3/3" indicator */
.tg-steps{display:flex; align-items:center; justify-content:center; gap:0; margin-bottom:clamp(2rem,4vw,2.8rem)}
.tg-steps .dot{
  width:2.2rem; height:2.2rem; border-radius:50%; flex:none;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--mono); font-weight:var(--w-medium); font-size:.85rem;
  border:1px solid var(--line-l); color:var(--mut-l); background:var(--cream);
  transition:background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.tg-steps .bar{width:clamp(2rem,6vw,4rem); height:1px; background:var(--line-l)}
.tg-steps .dot.is-active{background:var(--teal); border-color:var(--teal); color:#fff}
.tg-steps .dot.is-done{background:var(--ink-l); border-color:var(--ink-l); color:#fff}

.tg-step{display:none}
.tg-step.is-active{display:block}
.tg-step h3{font-size:var(--fs-h3); color:var(--ink-l); text-align:center; margin-bottom:1.6rem}

.tg-step-nav{display:flex; align-items:center; justify-content:space-between; margin-top:1.8rem}
.tg-step-nav .btn-ghost{visibility:visible}
.tg-step-nav .btn-ghost.is-hidden{visibility:hidden}

.tg-success{display:none; text-align:center; padding:clamp(2rem,4vw,3rem) 0}
.tg-success.is-active{display:block}
.tg-success .mark{
  width:3.2rem; height:3.2rem; border-radius:50%; margin:0 auto 1.4rem; background:var(--teal);
  color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.4rem;
}

@media (max-width:640px){
  .tg-steps .bar{width:1.4rem}
}
