/* Unified BE FORWARD-style page heroes (all inner pages) */

body.bf-site main {
  background: var(--bf-page);
}

/* ── Hero shell ─────────────────────────────────────────────── */

body.bf-site [class$="-hero"],
body.bf-site .auth-page-hero,
body.bf-site .bpost-hero {
  padding: 24px 0 0;
  background:
    radial-gradient(ellipse 72% 60% at 95% 0%, rgba(0, 71, 255, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(0, 84, 166, 0.06) 0%, transparent 50%),
    var(--bf-page);
}

body.bf-site [class$="-hero__grid"],
body.bf-site .auth-page-hero .container,
body.bf-site .trk-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px 40px;
  align-items: center;
  padding-bottom: 28px;
}

body.bf-site [class$="-hero__crumb"],
body.bf-site [class$="-breadcrumb"][class*="hero"],
body.bf-site .bpost-breadcrumb {
  grid-column: 1 / -1;
}

body.bf-site [class$="-breadcrumb"],
body.bf-site .bpost-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--bf-muted);
}

body.bf-site [class$="-breadcrumb"] a,
body.bf-site .bpost-breadcrumb a {
  color: var(--bf-muted) !important;
  text-decoration: none;
  transition: color 0.15s ease;
}

body.bf-site [class$="-breadcrumb"] a:hover,
body.bf-site .bpost-breadcrumb a:hover {
  color: var(--bf-orange) !important;
}

body.bf-site [class$="-breadcrumb"] span,
body.bf-site .bpost-breadcrumb span {
  color: var(--bf-black);
  font-weight: 600;
}

body.bf-site [class$="-breadcrumb"] i,
body.bf-site .bpost-breadcrumb i {
  font-size: 9px;
  opacity: 0.45;
}

/* Badge / eyebrow */
body.bf-site [class$="-hero__badge"],
body.bf-site .trk-eyebrow,
body.bf-site .section-eyebrow.auth-page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--bf-line);
  font-size: 12px;
  font-weight: 600;
  color: var(--bf-muted);
  margin-bottom: 18px;
  box-shadow: var(--bf-shadow);
}

body.bf-site [class$="-hero__flag"] {
  width: 26px;
  height: 17px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--bf-line);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

body.bf-site [class$="-hero__flag"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 62% 50%, var(--bf-orange) 36%, transparent 37%);
}

/* Title */
body.bf-site [class$="-hero__title"],
body.bf-site .trk-hero-copy h1,
body.bf-site .auth-page-copy h1,
body.bf-site .bpost-hero h1 {
  margin: 0 0 16px;
  line-height: 1.05;
}

body.bf-site [class$="-hero__title-line"] {
  display: block;
  font-family: var(--bf-font);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--bf-black);
}

body.bf-site [class$="-hero__title-line--accent"] {
  color: var(--bf-orange);
}

body.bf-site .trk-hero-copy h1,
body.bf-site .auth-page-copy h1,
body.bf-site .bpost-hero h1 {
  font-family: var(--bf-font);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--bf-black);
}

/* Lead */
body.bf-site [class$="-hero-lead"],
body.bf-site [class$="-hero__lead"],
body.bf-site .trk-hero-lead,
body.bf-site .auth-page-copy > p,
body.bf-site .bpost-hero-lead {
  font-size: 15px;
  line-height: 1.65;
  color: var(--bf-muted);
  max-width: 50ch;
  margin: 0 0 18px;
}

/* Trust list */
body.bf-site [class$="-hero__trust"],
body.bf-site .auth-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

body.bf-site [class$="-hero__trust"] li,
body.bf-site .auth-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bf-grey);
}

body.bf-site [class$="-hero__trust"] i,
body.bf-site .auth-benefits i {
  color: var(--bf-orange);
  font-size: 13px;
}

/* Actions */
body.bf-site [class$="-hero-actions"],
body.bf-site [class$="-hero__meta"],
body.bf-site .trk-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

body.bf-site [class$="-hero__meta"] span,
body.bf-site .trk-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bf-muted);
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--bf-line);
  border-radius: var(--bf-radius-sm);
}

body.bf-site [class$="-hero__meta"] i,
body.bf-site .trk-hero-meta i {
  color: var(--bf-orange);
}

/* Metrics (stock) */
body.bf-site .stk-hero__metrics {
  display: flex;
  gap: 10px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--bf-line);
}

body.bf-site .stk-hero__metrics > div {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--bf-line);
  border-radius: var(--bf-radius-sm);
  box-shadow: var(--bf-shadow);
}

body.bf-site .stk-hero__metrics dt {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--bf-black);
  margin: 0;
}

body.bf-site .stk-hero__metrics dd {
  margin: 6px 0 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bf-muted);
}

/* Hero aside panels */
body.bf-site [class$="-hero-panel"],
body.bf-site [class$="-hero__panel"],
body.bf-site [class$="-hero__stage"],
body.bf-site [class$="-hero__visual"],
body.bf-site .lgn-card,
body.bf-site .reg-card {
  background: #fff;
  border: 1px solid var(--bf-line);
  border-radius: var(--bf-radius);
  box-shadow: var(--bf-shadow-md);
  overflow: hidden;
}

body.bf-site [class$="-hero-panel-head"],
body.bf-site .trk-hero-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bf-bg-soft);
  border-bottom: 1px solid var(--bf-line);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bf-black);
}

body.bf-site [class$="-hero-panel-head"] i,
body.bf-site .trk-hero-panel-head i {
  color: var(--bf-orange);
}

body.bf-site [class$="-hero-steps"] {
  display: grid;
  gap: 0;
  padding: 8px 0;
  margin: 0;
  list-style: none;
}

body.bf-site .pay-step,
body.bf-site .trm-step,
body.bf-site .trk-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--bf-line);
  font-size: 13px;
  color: var(--bf-grey);
}

body.bf-site .pay-step:last-child,
body.bf-site .trm-step:last-child,
body.bf-site .trk-step:last-child {
  border-bottom: none;
}

body.bf-site .pay-step > span,
body.bf-site .trm-step > span,
body.bf-site .trk-step > span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bf-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.bf-site .gst-steps {
  counter-reset: gst;
  display: grid;
  gap: 0;
  padding: 8px 0;
  margin: 0;
  list-style: none;
}

body.bf-site .gst-steps li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--bf-line);
  font-size: 13px;
  font-weight: 600;
  color: var(--bf-grey);
  counter-increment: gst;
}

body.bf-site .gst-steps li:last-child {
  border-bottom: none;
}

body.bf-site .gst-steps li::before {
  content: counter(gst);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bf-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.bf-site .pay-step em,
body.bf-site .trm-step em,
body.bf-site .trk-step em {
  font-style: normal;
  font-weight: 600;
  color: var(--bf-black);
}

/* Legacy guest-invoice hero fix */
body.bf-site .trk-hero-bg {
  display: none;
}

body.bf-site .trk-hero .container {
  display: grid;
  gap: 0;
}

body.bf-site .trk-hero .trk-breadcrumb {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

body.bf-site .trk-hero-inner {
  grid-column: 1 / -1;
}

body.bf-site .trk-hero-panel {
  padding: 0;
}

/* Auth hero grid */
body.bf-site .auth-page-hero .lgn-breadcrumb,
body.bf-site .auth-page-hero [class$="-breadcrumb"] {
  margin-bottom: 20px;
}

body.bf-site .auth-page-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px 40px;
  align-items: start;
  padding-bottom: 28px;
}

body.bf-site .auth-page-card,
body.bf-site .lgn-card,
body.bf-site .reg-card {
  padding: 0;
}

body.bf-site .auth-page-card-head,
body.bf-site .lgn-card-head,
body.bf-site .reg-card-head {
  padding: 22px 24px 0;
}

body.bf-site .auth-page-card-head h2,
body.bf-site .lgn-card-head h2,
body.bf-site .reg-card-head h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bf-black);
}

body.bf-site .auth-page-card-head p,
body.bf-site .lgn-card-head p,
body.bf-site .reg-card-head p {
  margin: 0;
  font-size: 13px;
  color: var(--bf-muted);
}

body.bf-site .auth-form,
body.bf-site .lgn-form,
body.bf-site .reg-form {
  padding: 20px 24px 24px;
}

/* Enhanced page head (car detail, 404) */
body.bf-site .bf-page-head {
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(0, 71, 255, 0.08) 0%, transparent 55%),
    #fff;
  border-bottom: 1px solid var(--bf-line);
  padding: 22px 0;
}

body.bf-site .bf-page-head__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

body.bf-site .bf-page-head__lead {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--bf-muted);
}

/* Visual / spotlight asides */
body.bf-site .abt-hero-visual-grid img,
body.bf-site .stk-spotlight__frame {
  border-radius: var(--bf-radius);
  border: 1px solid var(--bf-line);
}

body.bf-site .stk-spotlight__frame {
  box-shadow: var(--bf-shadow-md);
}

body.bf-site .abt-hero-float,
body.bf-site .abt-hero-float-stat {
  background: #fff;
  border: 1px solid var(--bf-line);
  border-radius: var(--bf-radius-sm);
  box-shadow: var(--bf-shadow);
}

body.bf-site .abt-hero-float-stat strong {
  color: var(--bf-orange);
}

/* Blog post hero */
body.bf-site .bpost-hero-bg {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
}

body.bf-site .bpost-hero {
  color: #fff;
}

body.bf-site .bpost-hero .bpost-breadcrumb a,
body.bf-site .bpost-hero .bpost-breadcrumb span {
  color: rgba(255, 255, 255, 0.85) !important;
}

body.bf-site .bpost-hero h1 {
  color: #fff;
}

body.bf-site .bpost-hero-lead {
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 1024px) {
  body.bf-site [class$="-hero__grid"],
  body.bf-site .auth-page-inner,
  body.bf-site .trk-hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  body.bf-site .stk-hero__metrics {
    flex-wrap: wrap;
  }

  body.bf-site .stk-hero__metrics > div {
    flex: 1 1 calc(33% - 10px);
  }
}

@media (max-width: 640px) {
  body.bf-site [class$="-hero"],
  body.bf-site .auth-page-hero {
    padding-top: 16px;
  }

  body.bf-site .stk-hero__metrics > div {
    flex: 1 1 calc(50% - 8px);
  }
}
