/* ============================================================
   Briafix — homepage-only sections (psychology + work + FAQ)
   Linked from ui_kits/marketing/index.html, in addition to its
   inline <style> block.
   ============================================================ */

/* ---------- People / outsourcing band (humans + trust) ---------- */
.bf-people { padding: 96px 0; background: #fff; }
.bf-people__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .bf-people__grid { grid-template-columns: 1fr; gap: 36px; } }

.bf-people__photo { position: relative; aspect-ratio: 5 / 6; border-radius: var(--radius-xl); overflow: hidden; background: var(--neutral-100); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-lg); }
.bf-people__photo image-slot { width: 100%; height: 100%; display: block; }
.bf-people__photo .float {
  position: absolute; left: 20px; bottom: 20px; right: 20px;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.7); border-radius: var(--radius-md);
  padding: 14px 16px; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center;
  box-shadow: var(--shadow-md);
}
.bf-people__photo .float .av { width: 44px; height: 44px; border-radius: 50%; background: var(--briafix-navy); color: #fff; display: flex; align-items: center; justify-content: center; font: 700 15px/1 var(--font-display); }
.bf-people__photo .float .nm { font: 700 14px/1.2 var(--font-display); color: var(--fg-1); }
.bf-people__photo .float .rl { font: 500 12px/1.2 var(--font-body); color: var(--fg-3); margin-top: 2px; }
.bf-people__photo .float .pill { font: 600 11px/1 var(--font-body); color: var(--state-success); background: var(--state-success-bg); padding: 5px 9px; border-radius: 999px; display: inline-flex; gap: 5px; align-items: center; }
.bf-people__photo .float .pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--state-success); }

.bf-people__body h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -0.025em; color: var(--fg-1); margin: 14px 0 16px; }
.bf-people__body h2 .accent { color: var(--briafix-orange-deep); }
.bf-people__body > p { font-size: 16.5px; line-height: 1.6; color: var(--fg-3); margin: 0 0 24px; max-width: 50ch; }

.bf-managed { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .bf-managed { grid-template-columns: 1fr; } }
.bf-managed .item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-canvas); }
.bf-managed .item .ic { width: 36px; height: 36px; border-radius: 8px; background: var(--bg-accent-soft); color: var(--briafix-orange-deep); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bf-managed .item .ic .lucide { width: 18px; height: 18px; }
.bf-managed .item .nm { font: 700 14px/1.2 var(--font-display); color: var(--fg-1); }
.bf-managed .item .ds { font-size: 12.5px; color: var(--fg-3); margin-top: 3px; line-height: 1.4; }

/* ---------- Open invitation (not locked to a menu) ---------- */
.bf-open { background: var(--bg-accent-soft); border: 1px solid var(--orange-200); border-radius: var(--radius-lg); padding: 24px 26px; margin-top: 24px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.bf-open .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--briafix-orange-deep); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bf-open .ic .lucide { width: 22px; height: 22px; }
.bf-open .txt { flex: 1; min-width: 220px; }
.bf-open .txt .t { font: 700 16px/1.25 var(--font-display); color: var(--fg-1); letter-spacing: -0.01em; }
.bf-open .txt .d { font-size: 13.5px; color: var(--fg-2); margin-top: 4px; line-height: 1.5; }


/* ---------- Vendor-problem section (loss aversion) ---------- */
.bf-problem { background: var(--bg-canvas); padding: 96px 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.bf-problem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .bf-problem__grid { grid-template-columns: 1fr; gap: 28px; } }
.bf-problem h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.025em; color: var(--fg-1); margin: 14px 0 18px; }
.bf-problem h2 .strike { text-decoration: line-through; text-decoration-color: var(--state-danger); text-decoration-thickness: 3px; }
.bf-problem p { font-size: 17px; line-height: 1.6; color: var(--fg-3); max-width: 52ch; margin: 0 0 14px; }

.bf-leaks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bf-leak { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 18px 20px; position: relative; }
.bf-leak::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; background: var(--state-danger); border-radius: 0 3px 3px 0; }
.bf-leak .nm { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--fg-1); }
.bf-leak .cost { font-family: var(--font-mono); font-size: 12.5px; color: var(--state-danger); font-weight: 600; margin-top: 4px; }
.bf-leak .what { font-size: 13px; color: var(--fg-3); margin-top: 6px; line-height: 1.45; }

.bf-vs {
  margin-top: 32px; background: var(--briafix-navy); color: #fff;
  border-radius: var(--radius-lg); padding: 28px; display: flex; gap: 20px; align-items: center;
}
.bf-vs .ic { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--briafix-orange-deep), var(--briafix-orange)); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bf-vs .ic .lucide { width: 24px; height: 24px; }
.bf-vs .nm { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #fff; }
.bf-vs .what { font-size: 14.5px; color: rgba(255,255,255,0.72); margin-top: 4px; line-height: 1.5; }
.bf-vs .save { font-family: var(--font-mono); font-size: 14px; color: var(--briafix-orange); font-weight: 600; margin-top: 8px; }

/* ---------- ROI band ---------- */
.bf-roi { background: var(--bg-canvas); padding: 80px 0; }
.bf-roi__head { text-align: center; margin-bottom: 48px; }
.bf-roi__head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.5vw, 40px); line-height: 1.1; letter-spacing: -0.025em; color: var(--fg-1); margin: 12px 0 12px; }
.bf-roi__head p { font-size: 16px; color: var(--fg-3); max-width: 56ch; margin: 0 auto; }
.bf-roi__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 980px) { .bf-roi__grid { grid-template-columns: repeat(2, 1fr); } }
.bf-roi-card { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 24px; }
.bf-roi-card .ic { width: 36px; height: 36px; border-radius: 8px; background: var(--bg-accent-soft); color: var(--briafix-orange-deep); display: flex; align-items: center; justify-content: center; }
.bf-roi-card .ic .lucide { width: 18px; height: 18px; }
.bf-roi-card .v { font-family: var(--font-display); font-weight: 700; font-size: 36px; color: var(--fg-1); line-height: 1; letter-spacing: -0.025em; margin: 18px 0 6px; }
.bf-roi-card .v .accent { color: var(--briafix-orange-deep); }
.bf-roi-card .l { font-size: 13.5px; color: var(--fg-2); line-height: 1.5; }

/* ---------- Work gallery (image slots) ---------- */
.bf-gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 14px; }
.bf-gallery > :nth-child(1) { grid-row: 1 / span 2; }
@media (max-width: 980px) {
  .bf-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .bf-gallery > :nth-child(1) { grid-row: auto; }
}
@media (max-width: 640px) { .bf-gallery { grid-template-columns: 1fr; } }

.bf-gcard { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-subtle); background: var(--neutral-100); box-shadow: var(--shadow-sm); transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); display: flex; }
.bf-gcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.bf-gcard image-slot { width: 100%; height: 100%; display: block; }
.bf-gcard .caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(11,29,51,0.85) 100%);
  color: #fff; pointer-events: none;
}
.bf-gcard .tag { display: inline-block; font: 600 11px/1 var(--font-mono); color: var(--briafix-orange); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.bf-gcard .ttl { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.2; letter-spacing: -0.015em; color: #fff; margin: 0; }
.bf-gcard .metric { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.78); margin-top: 6px; }
.bf-gcard .metric .accent { color: var(--briafix-orange); font-weight: 600; }
.bf-gcard:nth-child(1) .ttl { font-size: 22px; }

/* ---------- Comparison table (anchoring / differentiation) ---------- */
.bf-compare {
  background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  overflow: hidden;
}
.bf-compare table { width: 100%; border-collapse: collapse; }
.bf-compare th, .bf-compare td { padding: 16px 20px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border-subtle); vertical-align: middle; }
.bf-compare tr:last-child td { border-bottom: 0; }
.bf-compare thead th { background: var(--neutral-50); font-family: var(--font-display); font-weight: 700; color: var(--fg-1); font-size: 13.5px; letter-spacing: -0.01em; }
.bf-compare thead th.is-us { background: var(--briafix-navy); color: #fff; position: relative; }
.bf-compare thead th.is-us::before { content: 'OUR APPROACH'; position: absolute; top: 4px; left: 20px; font: 600 9.5px/1 var(--font-mono); color: var(--briafix-orange); letter-spacing: 0.18em; }
.bf-compare tbody td:first-child { font-weight: 600; color: var(--fg-1); width: 26%; }
.bf-compare tbody td.is-us { background: rgba(230,83,0,0.04); color: var(--fg-1); font-weight: 600; }
.bf-compare tbody td.is-us .lucide { color: var(--briafix-orange-deep); }
.bf-compare .row-ic { width: 18px; height: 18px; vertical-align: -4px; margin-right: 8px; }
.bf-compare .pos { color: var(--state-success); }
.bf-compare .neg { color: var(--state-danger); }
.bf-compare .neu { color: var(--fg-3); }

/* ---------- FAQ (LLM-friendly) ---------- */
.bf-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 880px) { .bf-faq { grid-template-columns: 1fr; } }
.bf-faq-item { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 0; overflow: hidden; }
.bf-faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--fg-1);
  display: flex; gap: 16px; align-items: center; justify-content: space-between;
  transition: background var(--dur-fast) var(--ease-out);
}
.bf-faq-item summary::-webkit-details-marker { display: none; }
.bf-faq-item summary:hover { background: var(--neutral-50); }
.bf-faq-item summary .plus { width: 20px; height: 20px; flex-shrink: 0; color: var(--briafix-orange-deep); transition: transform var(--dur-base) var(--ease-out); }
.bf-faq-item[open] summary .plus { transform: rotate(45deg); }
.bf-faq-item .ans { padding: 0 22px 20px; font-size: 14.5px; line-height: 1.6; color: var(--fg-2); }
.bf-faq-item .ans p { margin: 0 0 8px; }
.bf-faq-item .ans p:last-child { margin: 0; }

/* ---------- Risk-reversal strip ---------- */
.bf-promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
@media (max-width: 760px) { .bf-promise { grid-template-columns: 1fr; } }
.bf-promise .row { display: flex; gap: 14px; align-items: flex-start; }
.bf-promise .row .ic { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.10); color: var(--briafix-orange); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bf-promise .row .ic .lucide { width: 20px; height: 20px; }
.bf-promise .row .ttl { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff; }
.bf-promise .row .desc { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 4px; line-height: 1.5; }
