﻿/* Tokens and base of the new public pages (start page and its header). Scoped to .fbx-page and
   .fbx-header so the legacy pages around them keep Bootstrap 4 and style.css untouched. Light only, like
   the rest of the legacy site. */
.fbx-header, .fbx-page {
  --bg: #f7f6ff;
  --panel: #ffffff;
  --ink: #18181b;
  --muted: #6b6b78;
  --line: #e9e8f3;
  --blue: #1f0fff;
  --blue-soft: #ecebff;
  --violet: #7c3aed;
  --violet-soft: #f1eafe;
  --green: #0f9f6e;
  --green-soft: #e3f6ee;
  --amber: #b7791f;
  --amber-soft: #fff4dc;
  --star: #f59e0b;
  --hot-soft: #ffe7e0;
  --hot: #c2410c;
  --shadow: 0 0 45px -10px rgba(20, 10, 60, .16);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
}
.fbx-page { background: var(--bg); }
.fbx-header *, .fbx-page * { box-sizing: border-box; }
/* :where keeps the link reset as weak as a bare "a", so every class colour (buttons, links) wins over it. */
:where(.fbx-header, .fbx-page) a { color: inherit; text-decoration: none; }
:where(.fbx-header, .fbx-page) a:hover { color: inherit; text-decoration: none; }
.fbx-p-link:hover, .fbx-mega-all:hover { color: var(--blue); }
.fbx-btn-ghost:hover, .fbx-nav-link:hover { color: var(--ink); }
/* The element resets sit in :where(), as weak as Bootstrap's bare h1 or p, so section rules like .fbx-pain p win. */
:where(.fbx-header, .fbx-page) h1, :where(.fbx-header, .fbx-page) h2, :where(.fbx-header, .fbx-page) h3, :where(.fbx-header, .fbx-page) h4 { text-wrap: balance; margin: 0; letter-spacing: -.03em; line-height: 1.08; font-weight: 700; color: inherit; font-family: inherit; }
:where(.fbx-header, .fbx-page) p { margin: 0; text-wrap: pretty; }
:where(.fbx-header, .fbx-page) ul { margin: 0; }
.fbx-header :focus-visible, .fbx-page :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.fbx-wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.fbx-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.fbx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-weight: 600; font-size: 15px; padding: 13px 22px; border: 0; cursor: pointer; font-family: inherit; transition: background .2s, color .2s; }
.fbx-btn-primary { background: var(--blue); color: #fff; }
.fbx-btn-primary:hover { background: var(--ink); color: var(--bg); }
.fbx-btn-ghost { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.fbx-btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.fbx-site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 1030; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
/* Legacy pages under the new header take the page colour of the new pages (--bg). The header sits at
   Bootstrap's fixed-navbar level, above the profile's own layers (provider header 99, table of contents 200)
   and below its modals (1050). */
body.fbx-body, body.fbx-body main { background: #f7f6ff; }
/* Long German compounds ("Applikationsplattformen") outgrew a phone-wide profile box and scrolled the page
   sideways. Headings break and hyphenate now, and main clips whatever still pokes out (clip, not hidden: it
   opens no scroll container, so sticky elements inside keep working). */
body.fbx-body main :is(h1, h2, h3, h4) { overflow-wrap: break-word; hyphens: auto; }
/* Long addresses in running text (the legal pages) wrap instead of running off the screen. */
body.fbx-body main :is(p, li, td) a { overflow-wrap: anywhere; }
body.fbx-body main { overflow-x: clip; }
/* They also take its shapes: style.css rounds cards and buttons alike through --border-radius (10px). Under the
   new header cards round like the landing cards and buttons become pills like .fbx-btn. */
body.fbx-body { --border-radius: 20px; }
body.fbx-body .btn-primary, body.fbx-body .btn-secondary { border-radius: 999px; }
/* The open mobile menu covers the whole screen; the floating AI bar, chat trigger and LeadWin launcher
   (z-index up to 2147483647) step aside until it closes. Their parts run "transition: all", which would keep
   them visible for the length of the transition, so transitions are off while they hide. */
html.fbx-menu-open :is(.ai-overlay-wrapper, .chat-trigger-section, #leadwin-agent-button, #leadwin-agent-nudges, #leadwin-agent-unread),
html.fbx-menu-open :is(.ai-overlay-wrapper, .chat-trigger-section, #leadwin-agent-button, #leadwin-agent-nudges, #leadwin-agent-unread) * { visibility: hidden !important; transition: none !important; }
/* The profile card starts close below the bar; style.css keeps 50 to 60px for the old header. */
body.fbx-body #company_profile_header { margin-top: 32px; }
@media (max-width: 767px) {
  /* On phones the profile header runs edge to edge straight below the bar, square like a cover. */
  body.fbx-body #company_profile_header, body.fbx-body #company_profile_header:hover, body.fbx-body #company_profile_header #header_image { margin-top: 0; border-radius: 0; box-shadow: none; }
  /* On phones the visit button sits on the banner image; the py-3 px-4 utilities make it too heavy there. */
  body.fbx-body #company_profile_header a.btn-primary { padding: 9px 18px !important; font-size: 14px !important; }
  /* No floating AI bar on phones under the new header. */
  body.fbx-body .ai-overlay-wrapper { display: none !important; }
}
@media (min-width: 768px) { body.fbx-body #company_profile_header #header_image { border-radius: var(--border-radius) var(--border-radius) 0 0; } }
/* On the legacy pages (no .fbx-page) the header spans the content width of their Bootstrap .container, so its
   logo and buttons line up with the profile card, the directory list and the breadcrumbs. */
@media (min-width: 768px) { body.fbx-body:not(:has(.fbx-page)) .fbx-site-header .fbx-wrap { max-width: calc(690px + 48px); } }
@media (min-width: 992px) { body.fbx-body:not(:has(.fbx-page)) .fbx-site-header .fbx-wrap { max-width: calc(930px + 48px); } }
@media (min-width: 1200px) { body.fbx-body:not(:has(.fbx-page)) .fbx-site-header .fbx-wrap { max-width: calc(1110px + 48px); } }
@media (min-width: 1400px) { body.fbx-body:not(:has(.fbx-page)) .fbx-site-header .fbx-wrap { max-width: calc(1370px + 48px); } }
/* Pages built on the dashboard styles (Bootstrap 5 containers, 9px side padding, 11.25px from 992px) line the header up with those. */
@media (min-width: 576px) { body.fbx-body:has(.fbx-bs5-page) .fbx-site-header .fbx-wrap { max-width: calc(522px + 48px); } }
@media (min-width: 768px) { body.fbx-body:has(.fbx-bs5-page) .fbx-site-header .fbx-wrap { max-width: calc(702px + 48px); } }
@media (min-width: 992px) { body.fbx-body:has(.fbx-bs5-page) .fbx-site-header .fbx-wrap { max-width: calc(937.5px + 48px); } }
@media (min-width: 1200px) { body.fbx-body:has(.fbx-bs5-page) .fbx-site-header .fbx-wrap { max-width: calc(1117.5px + 48px); } }
@media (min-width: 1400px) { body.fbx-body:has(.fbx-bs5-page) .fbx-site-header .fbx-wrap { max-width: calc(1297.5px + 48px); } }
/* style.css pins html and body to the window height, so the sticky header would stick inside the first screen only. */
body.fbx-body { height: auto; min-height: 100%; }
.fbx-nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.fbx-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -.03em; }
.fbx-brand-tile { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, #0000ff, #7c3aed); display: grid; place-items: center; color: #fff; font-size: 19px; font-weight: 700; }
.fbx-nav-main { display: flex; gap: 4px; align-items: center; }
.fbx-nav-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.fbx-nav-item { position: relative; }
.fbx-nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: 14.5px; background: none; border: 0; color: var(--ink); cursor: pointer; font-family: inherit; }
.fbx-nav-item.fbx-open > .fbx-nav-link { background: var(--blue-soft); }
.fbx-nav-link svg { width: 12px; height: 12px; transition: transform .2s; }
.fbx-nav-item.fbx-open > .fbx-nav-link svg { transform: rotate(180deg); }
.fbx-menu { position: absolute; top: calc(100% + 10px); left: 0; background: var(--panel); border-radius: 18px; box-shadow: var(--shadow); padding: 10px; min-width: 340px; display: none; }
.fbx-nav-item.fbx-open > .fbx-menu { display: block; }
.fbx-menu-right { left: auto; right: 0; }
.fbx-menu a.fbx-mi { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 10px; border-radius: 12px; }
.fbx-menu a.fbx-mi:hover { background: var(--bg); }
.fbx-mi-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.fbx-mi-icon svg { width: 18px; height: 18px; }
.fbx-mi-title { font-weight: 600; font-size: 14.5px; display: flex; gap: 8px; align-items: center; }
.fbx-mi-desc { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
/* Provider mega menu: AI search and project posting on top, root categories on a rail, their directories
   with icon or logo on the right. Popular ones in two columns, the rest in a scrolling three-column list. */
.fbx-mega { width: min(960px, 94vw); padding: 0; overflow: hidden; max-height: calc(100vh - 96px); overflow-y: auto; }
.fbx-mega-top { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.fbx-mega-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.fbx-mega-rail { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--bg); border-right: 1px solid var(--line); }
.fbx-mega-root { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 12px; background: none; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.fbx-mega-root i { width: 20px; font-size: 18px; line-height: 1; color: var(--muted); transition: color .2s; }
.fbx-mega-root:hover { background: var(--panel); }
.fbx-mega-root.fbx-active { background: var(--blue-soft); color: var(--blue); }
.fbx-mega-root.fbx-active i { color: var(--blue); }
.fbx-mega-panel { display: none; padding: 18px 20px 14px; min-width: 0; }
.fbx-mega-panel.fbx-active { display: block; animation: fbx-mega-in .25s ease-out; }
@keyframes fbx-mega-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.fbx-mega-label { margin: 0 0 8px 10px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fbx-mega-pop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; margin-bottom: 16px; }
.fbx-mega-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 8px; max-height: 216px; overflow-y: auto; overscroll-behavior: contain; }
.fbx-mega-dir { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 10px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink); transition: background .2s, color .2s; }
.fbx-mega-dir > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbx-mega-dir:hover { background: var(--bg); color: var(--blue); }
.fbx-mega-ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); font-size: 16px; line-height: 1; }
.fbx-mega-ico img { display: block; width: 20px; height: 20px; object-fit: contain; }
.fbx-mega-ico-img { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.fbx-mega-more .fbx-mega-dir { padding: 5px 10px; font-size: 13.5px; }
.fbx-mega-more .fbx-mega-ico { width: 26px; height: 26px; border-radius: 8px; font-size: 13px; }
.fbx-mega-more .fbx-mega-ico img { width: 16px; height: 16px; }
.fbx-mega-foot { display: flex; justify-content: flex-end; padding: 12px 20px; border-top: 1px solid var(--line); }
.fbx-mega-all { display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--blue); }
/* Mobile: the burger turns into a cross, the panel slides open below the bar and its groups fold open
   one at a time. Heights animate through grid rows (0fr to 1fr), so no height is hard-coded. */
.fbx-burger { display: none; margin-left: auto; width: 44px; height: 44px; place-items: center; background: none; border: 0; border-radius: 12px; cursor: pointer; color: var(--ink); transition: background .2s; }
.fbx-burger:hover, .fbx-burger[aria-expanded="true"] { background: var(--blue-soft); }
.fbx-burger-lines { position: relative; display: block; width: 22px; height: 16px; }
.fbx-burger-lines i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .2s, top .3s cubic-bezier(.2, .8, .2, 1); }
.fbx-burger-lines i:nth-child(1) { top: 0; }
.fbx-burger-lines i:nth-child(2) { top: 7px; }
.fbx-burger-lines i:nth-child(3) { top: 14px; }
.fbx-burger[aria-expanded="true"] .fbx-burger-lines i:nth-child(1) { top: 7px; transform: rotate(45deg); }
.fbx-burger[aria-expanded="true"] .fbx-burger-lines i:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.fbx-burger[aria-expanded="true"] .fbx-burger-lines i:nth-child(3) { top: 7px; transform: rotate(-45deg); }
.fbx-mobile-panel { display: none; }
html.fbx-menu-open { overflow: hidden; }
@media (max-width: 1020px) {
  .fbx-nav-main, .fbx-nav-right { display: none; }
  .fbx-burger { display: grid; }
  .fbx-mobile-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.2, .8, .2, 1); }
  .fbx-mobile-panel.fbx-open { grid-template-rows: 1fr; border-top: 1px solid var(--line); }
  .fbx-mp-inner { min-height: 0; overflow: hidden; }
  /* Open, the panel fills the screen below the bar; the menu scrolls and the sign-in buttons stay pinned at the bottom. */
  .fbx-mobile-panel.fbx-open .fbx-mp-inner { height: calc(100dvh - 69px); overflow-y: auto; overscroll-behavior: contain; }
  .fbx-mp-body { display: flex; flex-direction: column; min-height: 100%; padding-top: 8px; }
  .fbx-mp-cta { position: sticky; bottom: 0; margin-top: auto; padding-block: 16px calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--bg); box-shadow: 0 0 0 100vmax var(--bg), 0 -1px 0 100vmax var(--line); clip-path: inset(-1px -100vmax 0); }
  .fbx-mp-body > * { opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .35s cubic-bezier(.2, .8, .2, 1); }
  .fbx-mobile-panel.fbx-open .fbx-mp-body > * { opacity: 1; transform: none; }
  .fbx-mobile-panel.fbx-open .fbx-mp-body > :nth-child(2) { transition-delay: .04s; }
  .fbx-mobile-panel.fbx-open .fbx-mp-body > :nth-child(3) { transition-delay: .08s; }
  .fbx-mobile-panel.fbx-open .fbx-mp-body > :nth-child(4) { transition-delay: .12s; }
  .fbx-mobile-panel.fbx-open .fbx-mp-body > :nth-child(5) { transition-delay: .16s; }
}
.fbx-mp-group, .fbx-mobile-panel a.fbx-mp-head { border-bottom: 1px solid var(--line); }
.fbx-mp-head { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 4px; background: none; border: 0; font: inherit; font-size: 17px; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; }
.fbx-mp-head svg { width: 14px; height: 14px; color: var(--muted); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.fbx-mp-group.fbx-open .fbx-mp-head svg { transform: rotate(180deg); color: var(--blue); }
.fbx-mp-drawer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2, .8, .2, 1); }
.fbx-mp-group.fbx-open .fbx-mp-drawer { grid-template-rows: 1fr; }
.fbx-mp-list { min-height: 0; overflow: hidden; opacity: 0; transition: opacity .25s; }
.fbx-mp-group.fbx-open .fbx-mp-list { opacity: 1; transition-delay: .08s; }
.fbx-mp-list::after { content: ""; display: block; height: 10px; }
.fbx-mp-item { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; width: 100%; padding: 10px; border: 0; border-radius: 14px; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: background .2s; }
.fbx-mp-item:hover, .fbx-mp-item:active { background: var(--panel); }
/* The directory group: one card per root category that folds open to its full list. */
.fbx-mp-root { margin-top: 8px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.fbx-mp-root[open] { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 35%, var(--line)); }
.fbx-mp-root summary { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; list-style: none; cursor: pointer; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.fbx-mp-root summary::-webkit-details-marker { display: none; }
.fbx-mp-root summary .fbx-mega-ico { width: 36px; height: 36px; border-radius: 11px; font-size: 17px; }
.fbx-mp-root-name { flex: 1; min-width: 0; }
.fbx-mp-root-count { min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--bg); font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; }
.fbx-mp-root summary svg { width: 14px; height: 14px; color: var(--muted); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.fbx-mp-root[open] summary svg { transform: rotate(180deg); color: var(--blue); }
.fbx-mp-root[open] .fbx-mp-root-count { background: var(--blue-soft); color: var(--blue); }
.fbx-mp-root-list { display: grid; gap: 2px; padding: 4px 8px 10px; border-top: 1px solid var(--line); }
.fbx-mp-dir { padding: 7px 8px; font-size: 13.5px; }
.fbx-mp-dir > span:last-child { white-space: normal; line-height: 1.25; hyphens: auto; overflow-wrap: anywhere; }
.fbx-mp-dir .fbx-mega-ico { width: 28px; height: 28px; border-radius: 8px; font-size: 14px; }
.fbx-mp-dir .fbx-mega-ico img { width: 18px; height: 18px; }
.fbx-mp-all { display: inline-block; margin: 6px 10px 0; font-size: 14.5px; font-weight: 600; color: var(--blue); }
.fbx-mp-all:hover { color: var(--blue); text-decoration: underline; }
/* Side by side while both labels fit on one line, stacked on phones. */
.fbx-mp-cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.fbx-mp-cta .fbx-btn { white-space: nowrap; }
.fbx-mp-cta .fbx-btn { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .fbx-burger-lines i, .fbx-mobile-panel, .fbx-mp-body > *, .fbx-mp-drawer, .fbx-mp-list, .fbx-mp-head svg, .fbx-mp-root summary svg { transition: none; }
  .fbx-mega-panel.fbx-active { animation: none; }
}
@media (max-width: 680px) {
  .fbx-wrap { padding-inline: 16px; }
}

/* What the Razor markup needs beyond the draft: menu entries that are buttons (help center, project
   form), the logo image, a smaller primary button for the bar. */
/* flow-root keeps the last section's bottom margin inside the page, so the legacy grey of <main> never shows above the footer. */
.fbx-page { display: flow-root; }
.fbx-brand img { display: block; height: 34px; width: auto; }
.fbx-btn-small { padding: 10px 18px; font-size: 14.5px; }
.fbx-menu-narrow { min-width: 300px; }
.fbx-mi-desc { display: block; }
/* LeadWin as the app draws it: the round mark without a tile, Sora, "Lead" in ink, "Win" in the gradient, the
   black "AI" tag on the word's cap line. */
.fbx-mi-icon-lw { background: none; }
.fbx-mi-icon .fbx-lw-mark { display: block; width: 36px; height: 36px; }
.fbx-lw-title { gap: 5px; align-items: flex-start; }
.fbx-lw-word { font-family: "Sora", "Inter", Arial, sans-serif; font-size: 17px; font-weight: 500; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.fbx-lw-word strong { font-weight: 700; background: linear-gradient(135deg, #7a2bff 0%, #a81fd9 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fbx-lw-tag { margin-top: 1px; padding: 2px 5px; border-radius: 6px; background: #000; color: #fff; font-size: 8px; font-weight: 700; letter-spacing: .1em; line-height: 1; }
.fbx-menu button.fbx-mi { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 10px; border-radius: 12px; width: 100%; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.fbx-menu button.fbx-mi:hover { background: var(--bg); }
