/* Before you file — diagnostic offer card
   Visible white shell + red accent (same language as Direct answer cards).
   Photo: /assets/photos/direct-answer/office-advisor-writing.jpg
   Cache ?v=20260904byf3
   Layout only — copy/prices/CTA hrefs owned by page HTML. */

#diagnostic-offer.byf-section{
  padding-block:clamp(2.25rem,4.5vw,3.5rem);
}

#diagnostic-offer.byf-section > .container{
  max-width:1120px;
}

#diagnostic-offer .byf-card{
  box-sizing:border-box;
  position:relative;
  isolation:isolate;
  width:100%;
  margin:0;
  padding:0;
  overflow:hidden;
  background:#fff;
  background-color:#fff;
  background-image:none;
  border:1px solid rgba(17,17,17,.08);
  border-left:3px solid #ed0000;
  border-radius:0 24px 24px 0;
  box-shadow:0 12px 40px rgba(17,17,17,.08);
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}

#diagnostic-offer .byf-split{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:stretch;
  gap:0;
  width:100%;
  min-width:0;
}

#diagnostic-offer .byf-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:1rem;
  min-width:0;
  padding:clamp(1.45rem,2.8vw,2.15rem) clamp(1.4rem,3.2vw,2.35rem);
}

#diagnostic-offer .byf-eyebrow,
#diagnostic-offer .byf-copy > .eyebrow{
  display:flex;
  align-items:center;
  gap:.65rem;
  margin:0;
  padding:0;
  font-family:"Montserrat","Inter",Arial,sans-serif;
  font-size:.6875rem;
  font-weight:800;
  line-height:1.2;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#ed0000;
  background:transparent;
  border:0;
}

#diagnostic-offer .byf-eyebrow::after,
#diagnostic-offer .byf-copy > .eyebrow::after{
  content:"";
  flex:1 1 auto;
  height:1px;
  min-width:24px;
  background:linear-gradient(90deg,rgba(237,0,0,.34),rgba(237,0,0,0));
}

#diagnostic-offer .byf-copy > h2{
  margin:0;
  padding:0;
  max-width:38ch;
  font-family:"Montserrat","Inter",Arial,sans-serif;
  font-size:clamp(1.2rem,2.1vw,1.55rem);
  font-weight:800;
  line-height:1.28;
  letter-spacing:-.018em;
  color:#0b1220;
  text-align:left;
  hyphens:none;
}

#diagnostic-offer .byf-body{
  display:flex;
  flex-direction:column;
  gap:.85rem;
  min-width:0;
  max-width:62ch;
}

#diagnostic-offer .byf-body > p,
#diagnostic-offer .byf-lead,
#diagnostic-offer .byf-pricing-intro,
#diagnostic-offer .byf-note{
  margin:0;
  max-width:none;
  font-size:clamp(.98rem,1.15vw,1.06rem);
  line-height:1.62;
  font-weight:500;
  color:#344054;
  text-align:left;
  hyphens:none;
}

#diagnostic-offer .byf-body a{
  color:#0b1220;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:2px;
}

#diagnostic-offer .byf-prices{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.65rem;
  margin:0;
  padding:0;
  list-style:none;
}

#diagnostic-offer .byf-prices > li{
  box-sizing:border-box;
  margin:0;
  padding:.75rem .85rem;
  background:#fafafa;
  border:1px solid rgba(17,17,17,.08);
  border-top:2px solid #ed0000;
  border-radius:0 0 10px 10px;
  font-family:"Montserrat","Inter",Arial,sans-serif;
  font-size:.8125rem;
  font-weight:700;
  line-height:1.35;
  letter-spacing:-.01em;
  color:#0b1220;
  text-align:left;
}

#diagnostic-offer .byf-note{
  font-size:.875rem;
  line-height:1.5;
  color:#475467;
}

#diagnostic-offer .byf-cta,
#diagnostic-offer .section-cta-row.byf-cta,
html body #diagnostic-offer .section-cta-row.byf-cta,
html body:is(.service-page, .service-lander-page, .sector-page, .services-page, .insights-page)
  #diagnostic-offer .section-cta-row.byf-cta{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:stretch !important;
  align-self:stretch !important;
  flex:0 0 auto !important;
  gap:.75rem !important;
  margin:.15rem 0 0 !important;
  padding:0 !important;
  min-width:0 !important;
  width:100% !important;
  max-width:100% !important;
}

#diagnostic-offer .byf-cta .btn-primary,
html body #diagnostic-offer .byf-cta .btn-primary,
html body:is(.service-page, .service-lander-page, .sector-page, .services-page, .insights-page)
  #diagnostic-offer .byf-cta .btn-primary{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  width:100% !important;
  max-width:100% !important;
  min-width:0;
  min-height:48px;
  padding:.85rem 1.1rem;
  font-family:"Montserrat","Inter",Arial,sans-serif;
  font-size:clamp(.72rem,2.15vw + .28rem,.9375rem) !important;
  font-weight:800;
  letter-spacing:-.015em;
  white-space:nowrap !important;
  text-align:center;
  border-radius:10px;
  box-shadow:0 8px 22px rgba(237,0,0,.22);
}

#diagnostic-offer .byf-figure{
  position:relative;
  display:none;
  margin:0;
  padding:0;
  overflow:hidden;
  background:#0b1220;
  min-width:0;
}

#diagnostic-offer .byf-figure img{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  margin:0;
  border:0;
  border-radius:0;
  object-fit:cover;
  object-position:center 28%;
}

#diagnostic-offer .byf-figure::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg,rgba(255,255,255,.94) 0%,rgba(255,255,255,.42) 20%,rgba(255,255,255,0) 46%),
    linear-gradient(200deg,rgba(11,18,32,0) 42%,rgba(11,18,32,.24) 100%);
}

/* Tablet: photo band under copy */
@media (min-width:700px){
  #diagnostic-offer .byf-figure{
    display:block;
    aspect-ratio:16/5;
    min-height:148px;
  }
  #diagnostic-offer .byf-figure::after{
    background:
      linear-gradient(180deg,rgba(255,255,255,.86) 0%,rgba(255,255,255,0) 42%),
      linear-gradient(200deg,rgba(11,18,32,0) 46%,rgba(11,18,32,.22) 100%);
  }
}

/* Desktop: copy + photo side by side */
@media (min-width:960px){
  #diagnostic-offer .byf-split{
    grid-template-columns:minmax(0,1.15fr) minmax(240px,0.85fr);
    min-height:280px;
  }
  #diagnostic-offer .byf-copy{
    padding-inline-end:clamp(1.6rem,3vw,2.5rem);
  }
  #diagnostic-offer .byf-figure{
    display:block;
    aspect-ratio:auto;
    min-height:100%;
    box-shadow:inset 1px 0 0 rgba(16,24,40,.10);
  }
  #diagnostic-offer .byf-figure::after{
    background:
      linear-gradient(90deg,rgba(255,255,255,.94) 0%,rgba(255,255,255,.40) 22%,rgba(255,255,255,0) 52%),
      linear-gradient(200deg,rgba(11,18,32,0) 44%,rgba(11,18,32,.26) 100%);
  }
}

/* Mobile: stack; photo optional band below CTA */
@media (max-width:699px){
  #diagnostic-offer .byf-copy{
    padding:1.35rem 1.3rem 1.45rem;
    gap:.9rem;
  }
  #diagnostic-offer .byf-copy > h2{
    max-width:none;
    font-size:1.15rem;
  }
  #diagnostic-offer .byf-prices{
    grid-template-columns:1fr;
  }
  #diagnostic-offer .byf-cta .btn-primary,
  html body #diagnostic-offer .byf-cta .btn-primary,
  html body:is(.service-page, .service-lander-page, .sector-page, .services-page, .insights-page)
    #diagnostic-offer .byf-cta .btn-primary{
    padding:.7rem .55rem !important;
    font-size:clamp(.625rem,2.05vw + .22rem,.8125rem) !important;
    letter-spacing:-.025em;
  }
  #diagnostic-offer .byf-figure{
    display:block;
    aspect-ratio:16/9;
    min-height:160px;
    max-height:200px;
  }
  #diagnostic-offer .byf-figure::after{
    background:
      linear-gradient(180deg,rgba(255,255,255,.72) 0%,rgba(255,255,255,0) 38%),
      linear-gradient(200deg,rgba(11,18,32,0) 50%,rgba(11,18,32,.2) 100%);
  }
  #diagnostic-offer .byf-figure img{
    object-position:center 22%;
  }
}

@media (min-width:700px) and (max-width:959px){
  #diagnostic-offer .byf-prices{
    grid-template-columns:1fr;
  }
}
