:root {
  --bf-ink: #14231f;
  --bf-muted: #65716d;
  --bf-line: #dde3e0;
  --bf-soft: #f5f7f5;
  --bf-white: #fff;
  --bf-green: #123c32;
  --bf-green-2: #1f5a49;
  --bf-mint: #dff3eb;
  --bf-coral: #ef7656;
  --bf-coral-soft: #fff0eb;
  --bf-yellow: #f4d978;
  --bf-danger: #a7342b;
  --bf-shadow: 0 18px 50px rgba(20, 35, 31, .09);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--bf-ink); background: #fafbf9; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }
.bf-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; margin: -1px !important; padding: 0 !important; border: 0 !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }

.bf-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--bf-ink); font-size: 20px; font-weight: 780; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.bf-brand-mark { position: relative; display: inline-block; width: 26px; height: 26px; border-radius: 8px; background: var(--bf-green); }
.bf-brand-mark::after { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 5px 0 5px 0; background: #fff; content: ""; }
.bf-eyebrow { display: block; margin-bottom: 14px; color: var(--bf-coral); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.bf-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 21px; border: 1px solid var(--bf-green); border-radius: 10px; background: var(--bf-green); color: #fff; cursor: pointer; font-weight: 720; text-decoration: none; transition: transform .15s ease, background .15s ease, opacity .15s ease; }
.bf-button:hover { background: var(--bf-green-2); transform: translateY(-1px); }
.bf-button:disabled { cursor: wait; opacity: .55; transform: none; }
.bf-button-small { min-height: 40px; padding: 0 17px; }
.bf-button-dark { background: #1e2422; border-color: #1e2422; }
.bf-button-light { background: #fff; color: var(--bf-green); }
.bf-button-secondary { border-color: var(--bf-line); background: #fff; color: var(--bf-ink); }
.bf-button-secondary:hover { border-color: #aeb9b4; background: var(--bf-soft); }
.bf-button-danger { background: #fff; border-color: #e5c6c2; color: var(--bf-danger); }
.bf-text-link { color: var(--bf-green); font-weight: 720; text-underline-offset: 5px; }
.bf-fineprint { color: var(--bf-muted); font-size: 13px; }

/* Marketing page */
.bf-site { background: #fff; }
.bf-announcement { display: flex; min-height: 38px; align-items: center; justify-content: center; gap: 10px; padding: 7px 20px; background: var(--bf-coral); color: #fff; font-size: 12px; text-align: center; }
.bf-announcement span { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.bf-announcement strong { font-weight: 650; }
.bf-public-header { position: relative; z-index: 10; display: flex; max-width: 1280px; min-height: 82px; align-items: center; justify-content: space-between; margin: auto; padding: 0 32px; background: rgba(255,255,255,.96); }
.bf-public-header nav { display: flex; align-items: center; gap: 25px; }
.bf-public-header nav > a:not(.bf-button) { color: var(--bf-muted); font-size: 13px; font-weight: 680; text-decoration: none; }
.bf-public-header nav > a:not(.bf-button):hover { color: var(--bf-ink); }
.bf-site .bf-hero { display: grid; max-width: 1280px; min-height: 680px; grid-template-columns: minmax(0, .96fr) minmax(470px, 1.04fr); align-items: center; gap: 64px; margin: auto; padding: 84px 32px 104px; }
.bf-hero-copy { position: relative; z-index: 2; animation: bf-rise .55s ease both; }
.bf-hero-pill { display: inline-flex; margin-bottom: 23px; padding: 8px 12px; border-radius: 100px; background: var(--bf-coral-soft); color: #a3432b; font-size: 11px; font-weight: 800; letter-spacing: .035em; }
.bf-site .bf-hero h1 { max-width: 690px; margin: 0 0 25px; font-size: clamp(50px, 5.7vw, 76px); font-weight: 790; letter-spacing: -.061em; line-height: .98; }
.bf-site .bf-hero-copy > p { max-width: 620px; margin: 0 0 29px; color: var(--bf-muted); font-size: 19px; line-height: 1.62; }
.bf-actions { display: flex; align-items: center; gap: 25px; margin-bottom: 24px; }
.bf-hero-promises { display: flex; flex-wrap: wrap; gap: 10px 19px; color: var(--bf-muted); font-size: 12px; }
.bf-hero-promises span { position: relative; padding-left: 16px; }
.bf-hero-promises span::before { position: absolute; top: 7px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--bf-coral); content: ""; }
.bf-hero-media { position: relative; min-height: 520px; animation: bf-rise .65s .08s ease both; }
.bf-hero-media > img { display: block; width: 100%; height: 520px; border-radius: 25px; object-fit: cover; object-position: center; box-shadow: 0 26px 70px rgba(20,35,31,.15); }
.bf-hero-document { position: absolute; right: -18px; bottom: -32px; display: grid; width: min(72%, 390px); gap: 5px; padding: 21px; border: 1px solid rgba(20,35,31,.12); border-radius: 15px; background: rgba(255,255,255,.97); box-shadow: 0 20px 45px rgba(20,35,31,.17); backdrop-filter: blur(10px); }
.bf-hero-document > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--bf-muted); font-size: 10px; font-weight: 730; }
.bf-hero-document i { padding: 5px 8px; border-radius: 100px; background: var(--bf-mint); color: var(--bf-green); font-size: 9px; font-style: normal; }
.bf-hero-document > strong { margin-top: 9px; font-size: 20px; letter-spacing: -.03em; }
.bf-hero-document > small { color: var(--bf-muted); }
.bf-hero-document footer { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--bf-line); }
.bf-hero-document footer span { color: var(--bf-muted); font-size: 10px; }
.bf-hero-document footer b { font-size: 19px; }
.bf-hero-einvoice { position: absolute; top: 24px; left: -27px; display: flex; align-items: center; gap: 10px; padding: 13px 16px; border: 1px solid rgba(20,35,31,.12); border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 15px 35px rgba(20,35,31,.13); }
.bf-hero-einvoice > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--bf-mint); color: var(--bf-green); font-weight: 900; }
.bf-hero-einvoice div { display: grid; }
.bf-hero-einvoice strong { font-size: 12px; }
.bf-hero-einvoice small { color: var(--bf-muted); font-size: 9px; }
.bf-confidence-band { display: flex; max-width: 1216px; min-height: 88px; align-items: center; justify-content: center; gap: 0; margin: 0 auto; padding: 16px 22px; border-radius: 17px; background: var(--bf-green); color: #fff; }
.bf-confidence-band strong { margin-right: auto; font-size: 15px; }
.bf-confidence-band span { padding: 8px 23px; border-left: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.78); font-size: 12px; font-weight: 700; }
.bf-home-benefits { display: grid; max-width: 1216px; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 42px auto 0; }
.bf-home-benefits article { display: grid; min-height: 270px; align-content: start; padding: 27px; border: 1px solid var(--bf-line); border-radius: 17px; background: #f8f5f4; transition: transform .18s ease, box-shadow .18s ease; }
.bf-home-benefits article:nth-child(even) { background: #f4f7f5; }
.bf-home-benefits article:hover { box-shadow: 0 18px 38px rgba(20,35,31,.08); transform: translateY(-3px); }
.bf-home-benefits article > span { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 50%; background: #fff; color: var(--bf-coral); font-size: 11px; font-weight: 850; }
.bf-home-benefits h3 { margin: 62px 0 10px; font-size: 22px; letter-spacing: -.035em; line-height: 1.12; }
.bf-home-benefits p { margin: 0; color: var(--bf-muted); font-size: 14px; }
@keyframes bf-rise { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }
.bf-hero-preview { position: relative; min-height: 520px; padding: 42px; overflow: hidden; border: 1px solid #d8dfdc; border-radius: 27px; background: #fff; box-shadow: 0 28px 80px rgba(20,35,31,.12); transform: rotate(.65deg); }
.bf-hero-preview::before { position: absolute; inset: 0 0 auto; height: 9px; background: var(--bf-coral); content: ""; }
.bf-preview-top { display: flex; align-items: center; justify-content: space-between; color: var(--bf-muted); font-size: 11px; letter-spacing: .1em; }
.bf-preview-top strong { color: var(--bf-ink); }
.bf-preview-company { margin: 62px 0 20px; font-size: 31px; font-weight: 790; letter-spacing: -.045em; }
.bf-preview-address { display: grid; color: #85908c; font-size: 11px; line-height: 1.55; }
.bf-preview-lines { display: grid; gap: 13px; margin-top: 36px; }
.bf-preview-lines i { height: 10px; border-radius: 10px; background: var(--bf-soft); }
.bf-preview-lines i:nth-child(2) { width: 70%; }
.bf-preview-lines i:nth-child(3) { width: 85%; }
.bf-preview-summary { display: grid; gap: 18px; margin-top: 48px; padding-top: 23px; border-top: 1px solid var(--bf-line); }
.bf-preview-total { display: flex; align-items: center; justify-content: space-between; }
.bf-preview-total span { color: var(--bf-muted); font-size: 13px; }
.bf-preview-total strong { font-size: 27px; letter-spacing: -.035em; }
.bf-preview-status { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 9px; min-height: 42px; padding: 0 14px; border: 1px solid #cce7dc; border-radius: 10px; background: #f2fbf7; color: var(--bf-green); font-size: 12px; }
.bf-preview-status i { width: 8px; height: 8px; border-radius: 50%; background: #35a875; }
.bf-preview-status strong { font-size: 13px; }
.bf-proof-strip { display: grid; max-width: 1216px; grid-template-columns: repeat(6, 1fr); overflow: hidden; margin: 0 auto; border: 1px solid var(--bf-line); border-radius: 14px; background: #fff; }
.bf-proof-strip span { display: grid; min-height: 76px; place-items: center; padding: 15px; border-right: 1px solid var(--bf-line); color: #55625e; font-size: 13px; font-weight: 730; text-align: center; }
.bf-proof-strip span:last-child { border-right: 0; }
.bf-site .bf-section { max-width: 1280px; margin: auto; padding: 118px 32px; }
.bf-site .bf-section-heading { display: block; max-width: 760px; margin: 0 0 56px; }
.bf-site .bf-section-heading h2, .bf-site .bf-section h2, .bf-showcase-copy h2, .bf-final-cta h2 { margin: 0; font-size: clamp(38px, 4.4vw, 61px); letter-spacing: -.054em; line-height: 1.04; }
.bf-intro { border-bottom: 1px solid var(--bf-line); }
.bf-intro-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 92px; }
.bf-lead { margin: 0; color: #3c4a45; font-size: 24px; line-height: 1.55; }
.bf-intro-points { display: grid; gap: 0; }
.bf-intro-points article { display: grid; grid-template-columns: 190px 1fr; gap: 30px; padding: 20px 0; border-bottom: 1px solid var(--bf-line); }
.bf-intro-points article:first-child { padding-top: 0; }
.bf-intro-points strong { font-size: 16px; }
.bf-intro-points span { color: var(--bf-muted); }
.bf-workflow { overflow: hidden; }
.bf-workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.bf-workflow-grid article { display: grid; min-height: 330px; align-content: space-between; padding: 31px; border: 1px solid var(--bf-line); border-radius: 17px; background: #fff; }
.bf-workflow-grid article > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--bf-coral-soft); color: var(--bf-coral); font-size: 12px; font-weight: 800; }
.bf-workflow-grid h3 { margin: 0 0 9px; font-size: 24px; letter-spacing: -.035em; }
.bf-workflow-grid p { margin: 0; color: var(--bf-muted); font-size: 14px; }
.bf-showcase { background: #f0f3f1; }
.bf-showcase-row { display: grid; max-width: 1280px; min-height: 720px; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 90px; margin: auto; padding: 115px 32px; border-bottom: 1px solid #d8dfdc; }
.bf-showcase-row:last-child { border-bottom: 0; }
.bf-showcase-row.is-reversed { grid-template-columns: 1.18fr .82fr; }
.bf-showcase-row.is-reversed .bf-showcase-copy { order: 2; }
.bf-showcase-copy p { margin: 25px 0; color: var(--bf-muted); font-size: 18px; line-height: 1.65; }
.bf-showcase-copy ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.bf-showcase-copy li { position: relative; padding-left: 25px; color: #3f4d48; }
.bf-showcase-copy li::before { position: absolute; top: 9px; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--bf-coral); content: ""; }
.bf-product-card { overflow: hidden; border: 1px solid #d5ddda; border-radius: 21px; background: #fff; box-shadow: 0 25px 65px rgba(20,35,31,.11); }
.bf-mock-toolbar { display: flex; min-height: 64px; align-items: center; justify-content: space-between; padding: 0 25px; border-bottom: 1px solid var(--bf-line); font-size: 13px; font-weight: 760; }
.bf-mock-toolbar i { padding: 6px 10px; border-radius: 100px; background: var(--bf-soft); color: var(--bf-muted); font-size: 10px; font-style: normal; }
.bf-mock-client { display: grid; gap: 3px; padding: 31px 30px; }
.bf-mock-client span, .bf-mock-client small { color: var(--bf-muted); font-size: 11px; }
.bf-mock-client strong { margin-top: 4px; font-size: 23px; letter-spacing: -.03em; }
.bf-mock-position, .bf-mock-total { display: flex; justify-content: space-between; gap: 25px; margin: 0 30px; padding: 18px 0; border-top: 1px solid var(--bf-line); }
.bf-mock-position { color: var(--bf-muted); font-size: 13px; }
.bf-mock-total { font-size: 17px; }
.bf-mock-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 25px; padding: 24px 30px; background: var(--bf-green); color: #fff; font-size: 13px; }
.bf-mock-actions strong { padding: 10px 15px; border-radius: 8px; background: var(--bf-coral); }
.bf-invoice-metric { display: grid; gap: 3px; padding: 31px 30px; background: #fbfcfb; }
.bf-invoice-metric span { color: var(--bf-muted); font-size: 11px; }
.bf-invoice-metric strong { font-size: 30px; letter-spacing: -.04em; }
.bf-invoice-row { display: grid; grid-template-columns: 1fr auto 105px; align-items: center; gap: 18px; padding: 20px 30px; border-top: 1px solid var(--bf-line); }
.bf-invoice-row div { display: grid; }
.bf-invoice-row div span { color: var(--bf-muted); font-size: 11px; }
.bf-invoice-row > i { padding: 5px 9px; border-radius: 100px; background: #fff5d6; color: #715b0c; font-size: 10px; font-style: normal; }
.bf-invoice-row > i.is-paid { background: var(--bf-mint); color: var(--bf-green); }
.bf-invoice-row > strong { text-align: right; }
.bf-dashboard-mock { padding-bottom: 29px; }
.bf-dashboard-mock > h3 { margin: 28px 30px 20px; font-size: 30px; letter-spacing: -.045em; }
.bf-dashboard-metrics { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0 30px; overflow: hidden; border: 1px solid var(--bf-line); border-radius: 12px; }
.bf-dashboard-metrics div { display: grid; gap: 9px; padding: 20px; border-right: 1px solid var(--bf-line); border-bottom: 1px solid var(--bf-line); }
.bf-dashboard-metrics div:nth-child(2n) { border-right: 0; }
.bf-dashboard-metrics div:nth-last-child(-n+2) { border-bottom: 0; }
.bf-dashboard-metrics span { color: var(--bf-muted); font-size: 11px; }
.bf-dashboard-metrics strong { font-size: 22px; }
.bf-dashboard-next { display: grid; grid-template-columns: 1fr auto; gap: 5px 18px; margin: 17px 30px 0; padding: 19px 20px; border-radius: 11px; background: var(--bf-soft); }
.bf-dashboard-next span { grid-column: 1 / -1; color: var(--bf-muted); font-size: 10px; }
.bf-dashboard-next i { align-self: center; color: var(--bf-green); font-size: 12px; font-style: normal; font-weight: 750; }
.bf-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bf-feature-grid article { display: grid; min-height: 290px; align-content: start; padding: 32px; border: 1px solid var(--bf-line); border-radius: 17px; background: #fff; }
.bf-feature-grid article > span { display: inline-grid; width: 37px; height: 37px; place-items: center; border-radius: 50%; background: var(--bf-coral-soft); color: var(--bf-coral); font-size: 12px; font-weight: 800; }
.bf-feature-grid h3 { margin: 65px 0 9px; font-size: 24px; letter-spacing: -.035em; }
.bf-feature-grid p { margin: 0; color: var(--bf-muted); }
.bf-feature-grid-six article:nth-child(2), .bf-feature-grid-six article:nth-child(5) { background: #f7f9f7; }
.bf-comparison { border-top: 1px solid var(--bf-line); }
.bf-comparison-table { overflow: hidden; border: 1px solid var(--bf-line); border-radius: 17px; background: #fff; }
.bf-comparison-table > div { display: grid; grid-template-columns: .9fr 1fr 1.25fr; gap: 25px; min-height: 74px; align-items: center; padding: 15px 25px; border-bottom: 1px solid var(--bf-line); }
.bf-comparison-table > div:last-child { border-bottom: 0; }
.bf-comparison-table span { color: var(--bf-muted); }
.bf-comparison-table strong { color: var(--bf-green); }
.bf-comparison-head { background: var(--bf-soft); font-size: 12px; font-weight: 780; letter-spacing: .04em; text-transform: uppercase; }
.bf-comparison-head span, .bf-comparison-head strong { color: var(--bf-ink); }
.bf-site .bf-trust { display: grid; grid-template-columns: 1fr .9fr; gap: 82px; margin-bottom: 80px; border-radius: 27px; background: var(--bf-green); color: #fff; }
.bf-trust p { max-width: 570px; margin: 23px 0 0; color: rgba(255,255,255,.68); font-size: 17px; }
.bf-trust ul { display: grid; align-content: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.bf-trust li { padding: 15px 0 15px 27px; border-bottom: 1px solid rgba(255,255,255,.14); background: radial-gradient(circle at 5px 25px, var(--bf-coral) 0 5px, transparent 6px); }
.bf-trust li:last-child { border-bottom: 0; }
.bf-beta { padding-top: 40px !important; }
.bf-beta-card { display: grid; grid-template-columns: 1fr 300px; align-items: center; gap: 80px; padding: 62px; border: 1px solid var(--bf-line); border-radius: 24px; background: #fff; box-shadow: var(--bf-shadow); }
.bf-beta-card p { max-width: 690px; margin: 22px 0 0; color: var(--bf-muted); font-size: 17px; }
.bf-beta-price { display: grid; padding: 28px; border-radius: 16px; background: var(--bf-soft); text-align: center; }
.bf-beta-price > span, .bf-beta-price > small { color: var(--bf-muted); font-size: 11px; }
.bf-beta-price > strong { margin: 4px 0 0; font-size: 48px; letter-spacing: -.06em; }
.bf-beta-price .bf-button { margin-top: 22px; }
.bf-beta-steps { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 28px; border-top: 1px solid var(--bf-line); }
.bf-beta-steps article { display: grid; grid-template-columns: 34px 1fr; gap: 13px; padding: 20px; border-radius: 13px; background: var(--bf-soft); }
.bf-beta-steps article > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--bf-green); color: #fff; font-size: 12px; font-weight: 800; }
.bf-beta-steps strong { display: block; font-size: 14px; }
.bf-beta-steps p { margin: 5px 0 0; font-size: 12px; line-height: 1.55; }
.bf-faq { padding-top: 75px !important; }
.bf-faq-list { max-width: 920px; margin-left: auto; }
.bf-faq-list details { border-top: 1px solid var(--bf-line); }
.bf-faq-list details:last-child { border-bottom: 1px solid var(--bf-line); }
.bf-faq-list summary { position: relative; padding: 24px 48px 24px 0; cursor: pointer; font-size: 18px; font-weight: 720; list-style: none; }
.bf-faq-list summary::-webkit-details-marker { display: none; }
.bf-faq-list summary::after { position: absolute; top: 24px; right: 5px; color: var(--bf-coral); content: "+"; font-size: 24px; line-height: 1; }
.bf-faq-list details[open] summary::after { content: "−"; }
.bf-faq-list p { max-width: 800px; margin: -5px 0 25px; color: var(--bf-muted); }
.bf-final-cta { display: flex; max-width: 1216px; min-height: 360px; align-items: center; justify-content: space-between; gap: 70px; margin: 10px auto 115px; padding: 65px; border-radius: 27px; background: var(--bf-green); color: #fff; }
.bf-final-cta > div { max-width: 760px; }
.bf-final-cta p { max-width: 650px; margin: 20px 0 0; color: rgba(255,255,255,.68); font-size: 17px; }
.bf-final-cta .bf-button { flex: 0 0 auto; }
.bf-public-footer { display: flex; min-height: 96px; align-items: center; justify-content: space-between; padding: 0 max(28px, calc((100vw - 1216px)/2)); border-top: 1px solid var(--bf-line); color: var(--bf-muted); font-size: 12px; }
.bf-public-footer a { text-underline-offset: 4px; }

/* Billing test */
.bf-billing-page { display: flex; min-height: 100vh; flex-direction: column; background: linear-gradient(155deg, #fafbf9 0%, #f5f7f5 68%, #fff1ec 100%); }
.bf-billing-page .bf-public-header { width: 100%; }
.bf-billing-main { display: grid; width: min(100% - 48px, 1120px); flex: 1; grid-template-columns: 1fr 480px; align-items: center; gap: 90px; margin: 0 auto; padding: 75px 0 100px; }
.bf-billing-intro h1 { margin: 0 0 22px; font-size: clamp(48px, 7vw, 80px); letter-spacing: -.065em; line-height: .95; }
.bf-billing-intro p { max-width: 560px; margin: 0; color: var(--bf-muted); font-size: 19px; }
.bf-price-card { position: relative; padding: 38px; border: 1px solid var(--bf-line); border-radius: 22px; background: #fff; box-shadow: var(--bf-shadow); }
.bf-test-badge { display: inline-flex; margin-bottom: 25px; padding: 7px 11px; border-radius: 100px; background: var(--bf-coral-soft); color: #a3432b; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.bf-price-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; padding-bottom: 28px; border-bottom: 1px solid var(--bf-line); }
.bf-price-head span { color: var(--bf-muted); font-size: 13px; }
.bf-price-head h2 { margin: 3px 0 0; font-size: 30px; letter-spacing: -.04em; }
.bf-price { display: grid; text-align: right; }
.bf-price strong { font-size: 34px; letter-spacing: -.05em; }
.bf-price span { margin-top: -5px; }
.bf-plan-list { display: grid; gap: 13px; margin: 28px 0; padding: 0; list-style: none; }
.bf-plan-list li { padding-left: 27px; background: radial-gradient(circle at 7px 12px, var(--bf-coral) 0 4px, transparent 5px); color: #43504c; font-size: 14px; }
.bf-price-card > .bf-button { width: 100%; }
.bf-price-card .bf-message { margin: 0 0 18px; }
.bf-billing-unavailable { margin: 13px 0 0; color: var(--bf-muted); font-size: 12px; }
.bf-price-card .bf-fineprint { margin: 22px 0 0; }

/* Legal pages */
.bf-legal-page { min-height: 100vh; background: #fafbf9; }
.bf-legal-wrap { width: min(100% - 40px, 880px); margin: 55px auto 100px; }
.bf-legal-wrap > h1 { margin: 0; font-size: clamp(44px, 7vw, 76px); letter-spacing: -.06em; line-height: 1; }
.bf-legal-updated { margin: 18px 0 38px; color: var(--bf-muted); font-size: 13px; }
.bf-legal-body { padding: 42px; border: 1px solid var(--bf-line); border-radius: 18px; background: #fff; box-shadow: 0 12px 35px rgba(20,35,31,.05); }
.bf-legal-body h2 { margin: 36px 0 10px; font-size: 22px; letter-spacing: -.03em; }
.bf-legal-body h2:first-child { margin-top: 0; }
.bf-legal-body p { margin: 0 0 15px; color: #47534f; }
.bf-legal-body li { margin-bottom: 7px; color: #47534f; }
.bf-legal-body a { color: var(--bf-green-2); text-underline-offset: 4px; }
.bf-legal-note { display: grid; grid-template-columns: 190px 1fr; gap: 22px; margin-top: 18px; padding: 22px 24px; border: 1px solid #ecd3c9; border-radius: 12px; background: var(--bf-coral-soft); color: #5f4a42; font-size: 13px; }

/* Auth */
.bf-auth-page { display: flex; min-height: 100vh; flex-direction: column; background: linear-gradient(145deg, #f8faf7, #f4f1eb); }
.bf-auth-header { display: flex; min-height: 78px; align-items: center; padding: 0 32px; }
.bf-auth-main { display: grid; flex: 1; place-items: center; padding: 44px 20px 90px; }
.bf-auth-card { width: min(100%, 480px); padding: 44px; border: 1px solid var(--bf-line); border-radius: 20px; background: #fff; box-shadow: var(--bf-shadow); }
.bf-auth-card h1 { margin: 0 0 8px; font-size: 38px; letter-spacing: -.05em; line-height: 1.1; }
.bf-auth-card > p { margin: 0 0 30px; color: var(--bf-muted); }
.bf-form { display: grid; gap: 18px; }
.bf-form label, .bf-form-grid label { display: grid; gap: 7px; color: #35423e; font-size: 13px; font-weight: 690; }
.bf-form input, .bf-form select, .bf-form textarea, .bf-form-grid input, .bf-form-grid select, .bf-form-grid textarea, .bf-editor-form input, .bf-editor-form select, .bf-editor-form textarea, .bf-response input, .bf-response textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #ccd4d0; border-radius: 8px; outline: none; background: #fff; color: var(--bf-ink); transition: border .15s ease, box-shadow .15s ease; }
.bf-form textarea, .bf-form-grid textarea, .bf-editor-form textarea, .bf-response textarea { resize: vertical; }
.bf-form input:focus, .bf-form select:focus, .bf-form textarea:focus, .bf-form-grid input:focus, .bf-form-grid select:focus, .bf-form-grid textarea:focus, .bf-editor-form input:focus, .bf-editor-form select:focus, .bf-editor-form textarea:focus, .bf-response input:focus, .bf-response textarea:focus { border-color: var(--bf-green-2); box-shadow: 0 0 0 3px rgba(31, 90, 73, .12); }
.bf-form small { color: var(--bf-muted); font-size: 11px; font-weight: 500; }
.bf-editor-form label > small { color: var(--bf-muted); font-size: 11px; font-weight: 500; line-height: 1.45; }
.bf-beta-note { display: grid; gap: 2px; padding: 13px 14px; border: 1px solid #cce5da; border-radius: 9px; background: var(--bf-mint); color: var(--bf-green); font-size: 13px; }
.bf-beta-note span { color: #49665c; font-size: 12px; }
.bf-check { display: grid !important; grid-template-columns: 20px 1fr; align-items: start; gap: 10px !important; }
.bf-check input { width: 18px !important; min-height: 18px !important; margin-top: 2px; accent-color: var(--bf-green); }
.bf-auth-links { display: flex; justify-content: space-between; gap: 20px; margin-top: 23px; color: var(--bf-muted); font-size: 13px; }
.bf-auth-links a { text-underline-offset: 4px; }
.bf-register-next { display: grid; gap: 9px; margin-top: 22px; padding: 18px; border: 1px solid #cce5da; border-radius: 11px; background: #f2f8f5; }
.bf-register-next[hidden] { display: none; }
.bf-register-next span { color: var(--bf-muted); font-size: 13px; line-height: 1.55; }
.bf-register-next .bf-button { justify-self: start; margin-top: 4px; }
.bf-resend { margin-top: 25px; padding-top: 23px; border-top: 1px solid var(--bf-line); }
.bf-message { margin-bottom: 20px; padding: 12px 14px; border-radius: 8px; background: var(--bf-mint); color: var(--bf-green); font-size: 13px; font-weight: 650; }
.bf-message.is-error { background: #fff0ef; color: var(--bf-danger); }
.bf-auth-footer { display: flex; min-height: 65px; align-items: center; justify-content: space-between; padding: 0 32px; color: var(--bf-muted); font-size: 12px; }
.bf-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 160px; color: var(--bf-muted); }
.bf-loading span { width: 19px; height: 19px; border: 2px solid var(--bf-line); border-top-color: var(--bf-coral); border-radius: 50%; animation: bf-spin .8s linear infinite; }
@keyframes bf-spin { to { transform: rotate(360deg); } }

/* Application shell */
.bf-app-shell { display: flex; min-height: 100vh; flex-direction: column; }
.bf-app-header { position: sticky; z-index: 20; top: 0; display: grid; min-height: 72px; grid-template-columns: 220px 1fr 120px; align-items: stretch; padding: 0 24px; border-bottom: 1px solid var(--bf-line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.bf-app-header > .bf-brand { align-self: center; }
.bf-app-header nav { display: flex; align-items: stretch; justify-content: center; gap: 3px; }
.bf-app-header nav button { position: relative; padding: 0 18px; border: 0; background: transparent; color: var(--bf-muted); cursor: pointer; font-size: 14px; font-weight: 650; }
.bf-app-header nav button::after { position: absolute; right: 14px; bottom: 0; left: 14px; height: 3px; border-radius: 3px 3px 0 0; background: transparent; content: ""; }
.bf-app-header nav button.is-active { color: var(--bf-ink); }
.bf-app-header nav button.is-active::after { background: var(--bf-coral); }
.bf-app-header nav .bf-nav-link { display: inline-flex; align-items: center; margin-left: 5px; color: var(--bf-coral); font-size: 13px; font-weight: 750; text-decoration: none; }
.bf-link-button { align-self: center; justify-self: end; padding: 0; border: 0; background: none; color: var(--bf-muted); cursor: pointer; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.bf-app-main { width: min(100%, 1480px); flex: 1; margin: 0 auto; padding: 58px 28px 80px; outline: none; }
.bf-app-footer { display: flex; min-height: 76px; align-items: center; justify-content: space-between; padding: 0 28px; border-top: 1px solid var(--bf-line); background: #fff; color: var(--bf-muted); font-size: 12px; }
.bf-app-footer .bf-brand { font-size: 15px; }
.bf-app-footer .bf-brand-mark { width: 20px; height: 20px; border-radius: 6px; }
.bf-app-footer .bf-brand-mark::after { width: 10px; height: 10px; }
.bf-mobile-actions { display: none; }
.bf-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 38px; }
.bf-page-head h1, .bf-editor-head h1 { margin: 0; font-size: clamp(38px, 5vw, 62px); font-weight: 760; letter-spacing: -.055em; line-height: 1; }
.bf-page-head p { margin: 14px 0 0; color: var(--bf-muted); }
.bf-page-head .bf-eyebrow { margin-bottom: 10px; }
.bf-metrics { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; margin-bottom: 18px; border: 1px solid var(--bf-line); border-radius: 14px; background: #fff; }
.bf-metrics article { min-height: 135px; padding: 27px; border-right: 1px solid var(--bf-line); }
.bf-metrics article:last-child { border-right: 0; }
.bf-metrics span { display: block; margin-bottom: 20px; color: var(--bf-muted); font-size: 13px; }
.bf-metrics strong { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.045em; }
.bf-metrics .is-warning { background: var(--bf-coral-soft); }
.bf-metrics .is-warning strong { color: var(--bf-danger); }
.bf-next { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin: 18px 0; padding: 30px; border: 1px solid #efc6b9; border-radius: 14px; background: #fffaf8; }
.bf-next span { color: var(--bf-coral); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.bf-next h2 { margin: 7px 0 3px; font-size: 23px; letter-spacing: -.035em; }
.bf-next p { margin: 0; color: var(--bf-muted); }
.bf-onboarding { margin: 24px 0 30px; padding: 26px; border: 1px solid #cce1d8; border-radius: 15px; background: #f7fbf9; }
.bf-onboarding > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 18px; }
.bf-onboarding h2 { margin: 5px 0 0; font-size: 25px; letter-spacing: -.04em; }
.bf-onboarding > header small { max-width: 350px; color: var(--bf-muted); text-align: right; }
.bf-onboarding-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bf-onboarding-grid article { display: grid; min-width: 0; grid-template-columns: 34px 1fr; align-content: start; gap: 11px; padding: 17px; border: 1px solid var(--bf-line); border-radius: 11px; background: #fff; }
.bf-onboarding-grid article.is-current { border-color: #efb7a5; box-shadow: 0 0 0 2px rgba(239,118,86,.08); }
.bf-onboarding-number { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--bf-coral-soft); color: var(--bf-coral); font-size: 12px; font-weight: 800; }
.bf-onboarding-grid article.is-done .bf-onboarding-number { background: var(--bf-mint); color: var(--bf-green); }
.bf-onboarding-grid strong { display: block; font-size: 14px; }
.bf-onboarding-grid p { margin: 4px 0 14px; color: var(--bf-muted); font-size: 12px; line-height: 1.5; }
.bf-onboarding-grid button { grid-column: 2; justify-self: start; padding: 0; border: 0; background: transparent; color: var(--bf-green); cursor: pointer; font-size: 12px; font-weight: 760; }
.bf-onboarding-wait { grid-column: 2; color: #9aa39f; font-size: 11px; }
.bf-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--bf-line); border-radius: 14px; background: #fff; }
.bf-quick-grid button { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 13px; min-height: 95px; padding: 24px; border: 0; border-right: 1px solid var(--bf-line); background: #fff; cursor: pointer; text-align: left; }
.bf-quick-grid button:last-child { border-right: 0; }
.bf-quick-grid button:hover { background: var(--bf-soft); }
.bf-quick-grid strong { font-size: 24px; }
.bf-quick-grid small { grid-column: 1 / -1; color: var(--bf-muted); }
.bf-recent { margin-top: 30px; }
.bf-recent-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 13px; }
.bf-recent-head h2 { margin: 4px 0 0; font-size: 25px; letter-spacing: -.035em; }
.bf-recent-head small { color: var(--bf-muted); }
.bf-recent-list { overflow: hidden; border: 1px solid var(--bf-line); border-radius: 14px; background: #fff; }
.bf-recent-list button { display: grid; width: 100%; grid-template-columns: 38px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; min-height: 72px; padding: 13px 18px; border: 0; border-bottom: 1px solid var(--bf-line); background: #fff; color: var(--bf-ink); cursor: pointer; text-align: left; }
.bf-recent-list button:last-child { border-bottom: 0; }
.bf-recent-list button:hover { background: var(--bf-soft); }
.bf-recent-list button > span:nth-child(2) { min-width: 0; }
.bf-recent-list strong, .bf-recent-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-recent-list small { margin-top: 3px; color: var(--bf-muted); }
.bf-recent-kind { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 9px; background: var(--bf-coral-soft); color: var(--bf-coral); font-size: 12px; font-weight: 800; }
.bf-recent-amount { font-weight: 750; }
.bf-attention { margin: 30px 0; }
.bf-attention-list { display: grid; gap: 9px; }
.bf-attention-list article { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 20px; border: 1px solid var(--bf-line); border-left-width: 4px; border-radius: 11px; background: #fff; }
.bf-attention-list article > div { min-width: 0; }
.bf-attention-list strong { display: block; }
.bf-attention-list p { margin: 3px 0 0; color: var(--bf-muted); font-size: 13px; }
.bf-attention-list button { flex: 0 0 auto; border: 0; background: transparent; color: var(--bf-green); cursor: pointer; font-size: 13px; font-weight: 750; }
.bf-attention-list .bf-attention-danger { border-left-color: var(--bf-danger); }
.bf-attention-list .bf-attention-warn { border-left-color: var(--bf-coral); }
.bf-attention-list .bf-attention-good { border-left-color: #2f8b68; }
.bf-attention-list .bf-attention-neutral { border-left-color: #9ca7a2; }
.bf-all-clear { display: flex; align-items: center; gap: 12px; margin: 28px 0; padding: 17px 20px; border: 1px solid #cce1d8; border-radius: 11px; background: #f2f8f5; }
.bf-all-clear span { color: var(--bf-muted); font-size: 13px; }
.bf-mail-status { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: var(--bf-mint); color: var(--bf-green); font-size: 11px; font-weight: 750; }
.bf-choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bf-choice-grid > button { min-height: 320px; padding: 30px; border: 1px solid var(--bf-line); border-radius: 16px; background: #fff; cursor: pointer; text-align: left; transition: border .15s, transform .15s, box-shadow .15s; }
.bf-choice-grid > button:hover { border-color: #afbab5; box-shadow: var(--bf-shadow); transform: translateY(-2px); }
.bf-choice-grid h2 { margin: 70px 0 8px; font-size: 27px; letter-spacing: -.04em; }
.bf-choice-grid p { min-height: 76px; margin: 0 0 22px; color: var(--bf-muted); }
.bf-choice-grid strong { color: var(--bf-green); font-size: 14px; }
.bf-choice-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 10px; background: var(--bf-coral-soft); color: var(--bf-coral); font-weight: 800; }
.bf-list-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.bf-list-search { flex: 1; }
.bf-list-tools input, .bf-list-tools select { width: 100%; min-height: 44px; border: 1px solid var(--bf-line); border-radius: 9px; background: #fff; }
.bf-list-tools input { padding-right: 14px; padding-left: 14px; }
.bf-list-tools label:not(.bf-list-search) { width: min(220px, 36%); }
.bf-list-empty { margin: 14px 0 0; padding: 24px; border: 1px dashed #c8d0cc; border-radius: 10px; color: var(--bf-muted); text-align: center; }
[data-list-row][hidden], .bf-list-empty[hidden] { display: none !important; }
.bf-table-wrap { overflow: auto; border: 1px solid var(--bf-line); border-radius: 14px; background: #fff; }
.bf-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.bf-table th { padding: 15px 18px; border-bottom: 1px solid var(--bf-line); background: var(--bf-soft); color: var(--bf-muted); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.bf-table td { padding: 18px; border-bottom: 1px solid var(--bf-line); vertical-align: middle; }
.bf-table tr:last-child td { border-bottom: 0; }
.bf-table td strong { display: block; }
.bf-table td small { display: block; margin-top: 3px; color: var(--bf-muted); }
.bf-money { font-weight: 750; text-align: right; }
.bf-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.bf-row-actions button { min-height: 34px; padding: 0 10px; border: 1px solid var(--bf-line); border-radius: 7px; background: #fff; cursor: pointer; font-size: 12px; font-weight: 670; }
.bf-row-actions button:hover { border-color: var(--bf-green); }
.bf-row-actions .bf-row-primary { border-color: var(--bf-green); background: var(--bf-green); color: #fff; }
.bf-action-select { min-height: 34px; padding: 0 28px 0 10px; border: 1px solid var(--bf-line); border-radius: 7px; background-color: #fff; color: var(--bf-ink); cursor: pointer; font-size: 12px; font-weight: 670; }
.bf-badge { display: inline-flex; min-height: 26px; align-items: center; padding: 0 9px; border-radius: 100px; background: #eef1ef; color: #52605b; font-size: 11px; font-weight: 750; }
.bf-badge-accepted, .bf-badge-paid { background: var(--bf-mint); color: var(--bf-green); }
.bf-badge-declined, .bf-badge-cancelled { background: #fff0ef; color: var(--bf-danger); }
.bf-badge-sent, .bf-badge-viewed, .bf-badge-open { background: #fff5d6; color: #715b0c; }
.bf-empty { display: grid; min-height: 360px; place-items: center; align-content: center; padding: 40px; border: 1px dashed #c8d0cc; border-radius: 14px; text-align: center; }
.bf-empty-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--bf-mint); color: var(--bf-green); font-size: 27px; }
.bf-empty h2 { margin: 16px 0 5px; letter-spacing: -.035em; }
.bf-empty p { max-width: 420px; margin: 0 0 20px; color: var(--bf-muted); }
.bf-panel { padding: 28px; border: 1px solid var(--bf-line); border-radius: 14px; background: #fff; }
.bf-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.bf-span-2 { grid-column: span 2; }
.bf-form-title { display: flex; grid-column: span 2; align-items: center; justify-content: space-between; }
.bf-form-title h2, .bf-form-section h2 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
.bf-form-title p { margin: 4px 0 0; color: var(--bf-muted); font-size: 12px; }
.bf-close { border: 0; background: none; color: var(--bf-muted); cursor: pointer; font-size: 26px; }
.bf-form-actions { display: flex; gap: 10px; margin-top: 8px; }
.bf-form-section { padding: 8px 0 14px; border-bottom: 1px solid var(--bf-line); }
.bf-form-section p { margin: 3px 0 0; color: var(--bf-muted); }
.bf-danger-zone { display: grid; grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr); gap: 34px; margin-top: 20px; border-color: #e5c6c2; background: #fffafa; }
.bf-danger-zone h2 { margin: 0 0 7px; font-size: 24px; letter-spacing: -.035em; }
.bf-danger-zone p { margin: 0; color: var(--bf-muted); }
.bf-brand-settings { display: grid; grid-template-columns: 150px minmax(220px, .8fr) minmax(260px, 1.2fr); align-items: stretch; gap: 18px; }
.bf-logo-box { display: grid; min-height: 120px; place-items: center; overflow: hidden; padding: 14px; border: 1px dashed #bcc7c2; border-radius: 12px; background: var(--bf-soft); color: var(--bf-muted); font-size: 12px; }
.bf-logo-box img { display: block; max-width: 100%; max-height: 90px; object-fit: contain; }
.bf-logo-controls { display: grid; align-content: center; gap: 12px; }
.bf-logo-controls .bf-link-button { justify-self: start; }
.bf-brand-preview { position: relative; display: grid; min-height: 120px; align-content: center; gap: 4px; overflow: hidden; padding: 22px; border: 1px solid var(--bf-line); border-radius: 12px; background: #fff; }
.bf-brand-preview::before { position: absolute; inset: 0 0 auto; height: 6px; background: var(--bf-document-accent); content: ""; }
.bf-brand-preview span, .bf-brand-preview small { color: var(--bf-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.bf-brand-preview strong { font-size: 21px; letter-spacing: -.03em; }
.bf-export-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; margin-top: 20px; background: #f7faf8; }
.bf-export-panel h2 { margin: 0 0 7px; font-size: 24px; letter-spacing: -.035em; }
.bf-export-panel p { max-width: 720px; margin: 0; color: var(--bf-muted); }
.bf-export-panel .bf-form-actions { align-items: center; margin: 0; }
.bf-recurring-form { display: grid; gap: 22px; }
.bf-recurring-form .bf-form-title { grid-column: auto; }
.bf-recurring-form .bf-form-section { padding-top: 18px; }
.bf-doc-type { color: var(--bf-danger); font-weight: 750; }
.bf-customer-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr); align-items: start; gap: 22px; }
.bf-customer-detail { display: grid; gap: 18px; }
.bf-customer-timeline h2 { margin: 4px 0 0; font-size: 22px; }
.bf-customer-timeline ol { display: grid; gap: 0; margin: 22px 0 0; padding: 0; list-style: none; }
.bf-customer-timeline li { position: relative; display: grid; grid-template-columns: 14px 1fr; gap: 10px; padding: 0 0 19px; }
.bf-customer-timeline li::before { position: absolute; top: 13px; bottom: 0; left: 5px; width: 1px; background: var(--bf-line); content: ""; }
.bf-customer-timeline li:last-child::before { display: none; }
.bf-customer-timeline li > span { z-index: 1; width: 11px; height: 11px; margin-top: 4px; border: 2px solid #fff; border-radius: 50%; background: var(--bf-coral); box-shadow: 0 0 0 1px var(--bf-coral); }
.bf-customer-timeline li strong, .bf-customer-timeline li small { display: block; }
.bf-customer-timeline li small { margin-top: 2px; color: var(--bf-muted); }
.bf-import-panel { display: grid; grid-template-columns: minmax(250px,.8fr) minmax(360px,1.2fr); gap: 36px; margin-top: 18px; }
.bf-import-panel h2 { margin: 4px 0 7px; }
.bf-import-panel p { margin: 0; color: var(--bf-muted); }
.bf-import-forms { display: grid; gap: 12px; }
.bf-import-forms form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; }
.bf-import-forms label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; }
.bf-import-forms input { min-height: 44px; padding: 9px; border: 1px solid var(--bf-line); border-radius: 8px; background: #fff; }
.bf-import-preview { padding: 16px; border: 1px solid #cce1d8; border-radius: 10px; background: #f2f8f5; }
.bf-import-preview p { margin: 5px 0 12px; }
.bf-customer-card { display: grid; width: 100%; grid-template-columns: 44px 1fr auto; align-items: center; gap: 15px; min-height: 78px; margin-bottom: 8px; padding: 13px 16px; border: 1px solid var(--bf-line); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; }
.bf-customer-card:hover { border-color: #b1bbb7; }
.bf-customer-card strong, .bf-customer-card small { display: block; }
.bf-customer-card small { color: var(--bf-muted); }
.bf-avatar { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--bf-mint); color: var(--bf-green); font-weight: 800; }

/* Editor */
.bf-editor-head { display: grid; grid-template-columns: 150px 1fr auto; align-items: end; gap: 24px; margin-bottom: 26px; }
.bf-editor-head h1 { margin-top: 10px; font-size: 35px; }
.bf-back { padding: 0; border: 0; background: none; color: var(--bf-muted); cursor: pointer; text-align: left; }
.bf-back:hover { color: var(--bf-ink); }
.bf-editor-title { min-width: 0; }
.bf-editor-status { align-self: center; color: var(--bf-muted); font-size: 12px; text-align: right; }
.bf-preview-jump, .bf-preview-back { display: none; }
.bf-draft-notice, .bf-readonly-notice { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: -8px 0 22px; padding: 13px 15px; border: 1px solid #efd0c6; border-radius: 10px; background: #fff8f5; color: #5f6764; font-size: 12px; }
.bf-draft-notice button { flex: 0 0 auto; padding: 6px 9px; border: 1px solid #d9a99a; border-radius: 7px; background: #fff; color: var(--bf-danger); cursor: pointer; font-size: 12px; font-weight: 700; }
.bf-readonly-notice { justify-content: flex-start; border-color: #cce1d8; background: #f2f8f5; }
.bf-type-switch { display: inline-flex; padding: 3px; border: 1px solid var(--bf-line); border-radius: 9px; background: #fff; }
.bf-type-switch button { min-height: 32px; padding: 0 13px; border: 0; border-radius: 6px; background: transparent; color: var(--bf-muted); cursor: pointer; font-size: 12px; font-weight: 720; }
.bf-type-switch button.is-active { background: var(--bf-green); color: #fff; }
.bf-document-kind { color: var(--bf-coral); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.bf-editor-layout { display: grid; grid-template-columns: minmax(560px, .92fr) minmax(500px, 1.08fr); align-items: start; gap: 28px; }
.bf-editor-form { overflow: hidden; border: 1px solid var(--bf-line); border-radius: 14px; background: #fff; }
.bf-editor-form.is-readonly .bf-customer-save, .bf-editor-form.is-readonly .bf-catalog-picker, .bf-editor-form.is-readonly .bf-add-line, .bf-editor-form.is-readonly .bf-remove-line { display: none; }
.bf-editor-section { padding: 27px 28px; border-bottom: 1px solid var(--bf-line); }
.bf-editor-section:last-child { border-bottom: 0; }
.bf-section-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.bf-section-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.bf-section-heading p { margin: 3px 0 0; color: var(--bf-muted); font-size: 13px; }
.bf-customer-save { display: flex; align-items: center; gap: 12px; }
.bf-customer-save button { padding: 0; border: 0; background: none; color: var(--bf-green); cursor: pointer; font-size: 12px; font-weight: 750; text-align: left; }
.bf-customer-save span { color: var(--bf-muted); font-size: 12px; }
.bf-position-list { display: grid; gap: 10px; }
.bf-catalog-picker { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 18px; }
.bf-catalog-picker .bf-button { min-height: 44px; }
.bf-inline-hint { margin: 0 0 16px; padding: 12px 14px; border-radius: 9px; background: var(--bf-soft); color: var(--bf-muted); font-size: 13px; }
.bf-position-row { display: grid; grid-template-columns: minmax(160px, 2fr) 70px 82px 102px 75px auto 28px; align-items: end; gap: 8px; padding: 12px; border: 1px solid var(--bf-line); border-radius: 9px; }
.bf-position-row label { display: grid; gap: 5px; color: var(--bf-muted); font-size: 11px; font-weight: 700; }
.bf-position-row input { min-width: 0; }
.bf-remove-line { width: 28px; height: 46px; border: 0; background: none; color: #88928e; cursor: pointer; font-size: 21px; }
.bf-position-option { display: flex !important; min-height: 44px; align-items: center; gap: 7px !important; color: var(--bf-ink) !important; }
.bf-position-option input { width: 18px; min-width: 18px; height: 18px; }
.bf-deduction-section { margin-top: 20px; padding: 18px; border: 1px solid var(--bf-line); border-radius: 10px; background: var(--bf-soft); }
.bf-deduction-section h3 { margin: 0; font-size: 16px; }
.bf-deduction-section > p { margin: 4px 0 12px; color: var(--bf-muted); font-size: 12px; }
.bf-deduction-choice { display: flex !important; align-items: center; gap: 11px !important; margin-top: 7px; padding: 10px 11px; border: 1px solid var(--bf-line); border-radius: 8px; background: #fff; color: var(--bf-ink) !important; }
.bf-deduction-choice input { width: 18px; height: 18px; }
.bf-deduction-choice strong, .bf-deduction-choice small { display: block; }
.bf-deduction-choice small { color: var(--bf-muted); }
.bf-preflight { background: #fbfcfb; }
.bf-preflight #bf-preflight-score { padding: 6px 9px; border-radius: 999px; font-size: 11px; font-weight: 780; }
.bf-preflight #bf-preflight-score.is-good { background: var(--bf-mint); color: var(--bf-green); }
.bf-preflight #bf-preflight-score.is-warning { background: #fff7dc; color: #775d00; }
.bf-preflight #bf-preflight-score.is-error { background: #fff0eb; color: var(--bf-danger); }
.bf-preflight ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 0; padding: 0; list-style: none; }
.bf-preflight li { display: grid; grid-template-columns: 21px 1fr; gap: 7px; align-items: center; color: var(--bf-muted); font-size: 12px; }
.bf-preflight li span { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; font-weight: 800; }
.bf-preflight li.is-ok span { background: var(--bf-mint); color: var(--bf-green); }
.bf-preflight li.is-warning span { background: #fff3c4; color: #775d00; }
.bf-preflight li.is-error span { background: #ffe5df; color: var(--bf-danger); }
.bf-add-line { margin-top: 14px; padding: 9px 0; border: 0; background: none; color: var(--bf-green); cursor: pointer; font-size: 13px; font-weight: 750; }
.bf-advanced { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--bf-line); }
.bf-advanced summary { color: var(--bf-muted); cursor: pointer; font-size: 12px; font-weight: 720; }
.bf-advanced[open] summary { margin-bottom: 17px; color: var(--bf-ink); }
.bf-preview-sticky { position: sticky; top: 100px; }
.bf-preview-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; color: var(--bf-muted); font-size: 11px; }
.bf-preview-label { font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.bf-paper { position: relative; min-height: 700px; overflow: hidden; padding: 40px 42px; border: 1px solid var(--bf-line); background: #fff; box-shadow: 0 13px 40px rgba(20,35,31,.08); font-size: 10px; }
.bf-paper::before { position: absolute; inset: 0 0 auto; height: 6px; background: var(--bf-document-accent, var(--bf-coral)); content: ""; }
.bf-paper-draft { position: absolute; top: 48%; right: 8%; left: 8%; color: var(--bf-document-accent, var(--bf-coral)); font-size: 34px; font-weight: 800; opacity: .08; text-align: center; transform: rotate(-25deg); }
.bf-paper > header { display: flex; justify-content: space-between; gap: 25px; padding: 10px 0 34px; }
.bf-paper > header > div { display: grid; align-content: start; gap: 2px; }
.bf-paper > header > div:last-child { text-align: right; }
.bf-paper > header strong { font-size: 14px; }
.bf-paper > header span { color: var(--bf-muted); font-size: 9px; letter-spacing: .08em; }
.bf-paper-logo { display: block; width: auto; max-width: 180px; object-fit: contain; object-position: left center; }
.bf-paper-logo-small { max-height: 26px; }
.bf-paper-logo-medium { max-height: 42px; }
.bf-paper-logo-large { max-height: 62px; }
.bf-paper-classic::before { height: 2px; }
.bf-paper-classic > header strong, .bf-paper-classic h3 { font-family: Georgia, "Times New Roman", serif; }
.bf-paper-sender { padding-bottom: 3px; border-bottom: 1px solid var(--bf-line); color: var(--bf-muted); font-size: 7px; }
.bf-paper-address { min-height: 78px; padding-top: 9px; font-size: 11px; line-height: 1.45; }
.bf-paper-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 12px; background: var(--bf-soft); }
.bf-paper-meta div { display: grid; gap: 2px; }
.bf-paper-meta span { color: var(--bf-muted); font-size: 7px; letter-spacing: .06em; text-transform: uppercase; }
.bf-paper-meta strong { font-size: 9px; }
.bf-paper h3 { margin: 24px 0 13px; font-size: 17px; }
.bf-paper table { width: 100%; border-collapse: collapse; }
.bf-paper th { padding: 7px 4px; border-bottom: 1px solid var(--bf-ink); color: var(--bf-muted); font-size: 7px; text-align: left; text-transform: uppercase; }
.bf-paper td { padding: 10px 4px; border-bottom: 1px solid var(--bf-line); vertical-align: top; }
.bf-paper td small { display: block; margin-top: 2px; color: var(--bf-muted); }
.bf-paper tr.is-option td { background: #f8faf9; }
.bf-paper th:not(:nth-child(2)), .bf-paper td:not(:nth-child(2)) { text-align: right; }
.bf-paper th:first-child, .bf-paper td:first-child { width: 25px; text-align: left; }
.bf-paper-totals { display: grid; width: 48%; gap: 5px; margin: 22px 0 0 auto; }
.bf-paper-totals span { display: flex; justify-content: space-between; }
.bf-paper-totals .total { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--bf-ink); font-size: 12px; }
.bf-paper-totals .deduction { color: var(--bf-muted); }
.bf-paper-terms { margin-top: 38px; padding-top: 12px; border-top: 1px solid var(--bf-line); color: #4d5a56; }
.bf-paper-terms p { margin: 4px 0; }
.bf-paper footer { position: absolute; right: 42px; bottom: 24px; left: 42px; padding-top: 8px; border-top: 1px solid var(--bf-line); color: var(--bf-muted); font-size: 7px; }
.bf-editor-bar { position: sticky; z-index: 5; bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 13px 14px 13px 18px; border: 1px solid #cfd8d4; border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 12px 35px rgba(20,35,31,.12); backdrop-filter: blur(12px); }
.bf-editor-bar > div:first-child { display: grid; }
.bf-editor-bar > div:first-child strong { font-size: 13px; }
.bf-editor-bar > div:first-child span { color: var(--bf-muted); font-size: 11px; }
.bf-editor-bar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.bf-editor-bar .bf-button { min-height: 40px; padding: 0 16px; font-size: 12px; }
.bf-toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; max-width: 390px; padding: 13px 17px; border-radius: 9px; background: var(--bf-green); box-shadow: var(--bf-shadow); color: #fff; font-size: 13px; font-weight: 680; }
.bf-toast.is-error { background: var(--bf-danger); }

/* Public offer */
.bf-offer-page { background: #f2f4f2; }
.bf-offer-header { display: flex; min-height: 76px; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 980px)/2)); background: #fff; color: var(--bf-muted); font-size: 12px; }
.bf-public-offer { width: min(100% - 32px, 980px); margin: 55px auto; }
.bf-offer-document { padding: 58px; border: 1px solid var(--bf-line); border-radius: 16px; background: #fff; box-shadow: var(--bf-shadow); }
.bf-offer-document > header { display: flex; align-items: start; justify-content: space-between; gap: 30px; padding-bottom: 55px; border-bottom: 1px solid var(--bf-line); }
.bf-offer-document::before { display: block; height: 6px; margin: -58px -58px 45px; background: var(--bf-document-accent, var(--bf-coral)); content: ""; }
.bf-public-company-logo { display: block; width: auto; max-width: 220px; max-height: 72px; margin-bottom: 20px; object-fit: contain; object-position: left center; }
.bf-offer-document h1 { margin: 0 0 3px; font-size: 36px; letter-spacing: -.045em; }
.bf-offer-document header p { margin: 0; color: var(--bf-muted); }
.bf-offer-number { text-align: right; }
.bf-offer-number span, .bf-offer-address span { display: block; color: var(--bf-muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.bf-offer-number strong { display: block; margin-top: 6px; font-size: 18px; }
.bf-offer-address { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 38px 0; }
.bf-offer-address strong { display: block; margin-top: 7px; }
.bf-offer-lines { width: 100%; border-collapse: collapse; }
.bf-offer-lines th { padding: 10px 0; border-bottom: 1px solid var(--bf-ink); font-size: 11px; text-align: left; text-transform: uppercase; }
.bf-offer-lines th:not(:first-child), .bf-offer-lines td:not(:first-child) { text-align: right; }
.bf-offer-lines td { padding: 16px 0; border-bottom: 1px solid var(--bf-line); }
.bf-offer-lines td small { display: block; margin-top: 3px; color: var(--bf-muted); font-size: 11px; }
.bf-offer-lines tr.is-option td { background: #f8faf9; }
.bf-public-option { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--bf-green); font-size: 11px; font-weight: 780; }
.bf-public-option input { width: 17px; height: 17px; }
.bf-offer-summary { display: grid; width: min(100%, 370px); gap: 8px; margin: 30px 0 45px auto; }
.bf-offer-summary span { display: flex; justify-content: space-between; }
.bf-offer-summary .total { margin-top: 6px; padding-top: 13px; border-top: 1px solid var(--bf-ink); font-size: 18px; }
.bf-offer-terms { padding-top: 25px; border-top: 1px solid var(--bf-line); }
.bf-offer-terms h2 { margin: 0 0 7px; font-size: 17px; }
.bf-offer-terms p { margin: 5px 0; color: var(--bf-muted); }
.bf-response { display: grid; grid-template-columns: .85fr 1.15fr; gap: 55px; margin-top: 20px; padding: 42px; border-radius: 16px; background: var(--bf-green); color: #fff; }
.bf-response h2 { margin: 0 0 7px; font-size: 31px; letter-spacing: -.04em; }
.bf-response p { color: rgba(255,255,255,.7); }
.bf-response form { display: grid; gap: 14px; }
.bf-response label { display: grid; gap: 5px; font-size: 12px; font-weight: 700; }
.bf-response-actions { display: flex; gap: 8px; margin-top: 4px; }
.bf-response-actions .bf-button { flex: 1; }
.bf-decision-saved { margin-top: 20px; padding: 35px; border-radius: 16px; background: var(--bf-mint); text-align: center; }
.bf-decision-saved h2 { margin: 0 0 6px; }
.bf-decision-saved p { margin: 0; }
.bf-public-error { padding: 70px 30px; border-radius: 16px; background: #fff; text-align: center; }
.bf-offer-footer { padding: 30px; color: var(--bf-muted); font-size: 12px; text-align: center; }

/* Read-only customer portal */
.bf-portal-page { background: #f3f5f4; }
.bf-customer-portal { width: min(100% - 36px, 1080px); margin: 48px auto 70px; }
.bf-portal-hero { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 50px; padding: 52px; overflow: hidden; border: 1px solid var(--bf-line); border-radius: 18px; background: #fff; box-shadow: var(--bf-shadow); }
.bf-portal-hero::before { position: absolute; inset: 0 0 auto; height: 6px; background: var(--bf-document-accent, var(--bf-coral)); content: ""; }
.bf-portal-hero h1 { margin: 5px 0 12px; font-size: clamp(38px,6vw,64px); letter-spacing: -.055em; line-height: 1; }
.bf-portal-hero p { max-width: 650px; margin: 0; color: var(--bf-muted); font-size: 17px; }
.bf-portal-hero > div:last-child { display: grid; align-content: center; gap: 6px; padding: 25px; border-radius: 13px; background: var(--bf-soft); }
.bf-portal-hero > div:last-child a { color: var(--bf-green); font-weight: 700; }
.bf-portal-hero > div:last-child span { color: var(--bf-muted); }
.bf-portal-section { display: grid; grid-template-columns: .36fr 1fr; gap: 35px; margin-top: 26px; padding: 34px; border: 1px solid var(--bf-line); border-radius: 16px; background: #fff; }
.bf-portal-section h2 { margin: 3px 0 0; font-size: 28px; }
.bf-portal-list { display: grid; gap: 8px; }
.bf-portal-list article { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 16px; min-height: 76px; padding: 13px 15px; border: 1px solid var(--bf-line); border-radius: 10px; }
.bf-portal-list article span, .bf-portal-list article small, .bf-portal-list article strong { display: block; }
.bf-portal-list article span { color: var(--bf-coral); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bf-portal-list article small { margin-top: 3px; color: var(--bf-muted); }
.bf-portal-list .bf-button { min-height: 38px; padding: 0 14px; font-size: 12px; }

@media (max-width: 1050px) {
  .bf-site .bf-hero { grid-template-columns: minmax(0, 1fr) minmax(400px, .9fr); gap: 45px; }
  .bf-hero-media > img { height: 470px; }
  .bf-confidence-band, .bf-home-benefits { margin-right: 28px; margin-left: 28px; }
  .bf-confidence-band span { padding-right: 15px; padding-left: 15px; }
  .bf-home-benefits { grid-template-columns: repeat(2, 1fr); }
  .bf-home-benefits article { min-height: 245px; }
  .bf-proof-strip { grid-template-columns: repeat(3, 1fr); margin-right: 28px; margin-left: 28px; }
  .bf-proof-strip span:nth-child(3) { border-right: 0; }
  .bf-proof-strip span:nth-child(-n+3) { border-bottom: 1px solid var(--bf-line); }
  .bf-workflow-grid { grid-template-columns: repeat(2, 1fr); }
  .bf-workflow-grid article { min-height: 260px; }
  .bf-showcase-row, .bf-showcase-row.is-reversed { gap: 50px; }
  .bf-app-header { grid-template-columns: auto 1fr auto; }
  .bf-app-header nav button { padding: 0 10px; }
  .bf-app-header nav button::after { right: 7px; left: 7px; }
  .bf-editor-layout { grid-template-columns: 1fr; }
  .bf-preview-sticky { position: static; }
  .bf-doc-preview { width: 100%; max-width: 760px; }
}

@media (max-width: 820px) {
  .bf-public-header nav > a:not(.bf-button) { display: none; }
  .bf-site .bf-hero { grid-template-columns: 1fr; padding-top: 65px; }
  .bf-hero-media { min-height: 500px; }
  .bf-hero-media > img { height: 500px; }
  .bf-hero-einvoice { left: 18px; }
  .bf-hero-document { right: 18px; }
  .bf-confidence-band { flex-wrap: wrap; justify-content: flex-start; gap: 4px 0; padding: 22px; }
  .bf-confidence-band strong { width: 100%; margin: 0 0 9px; }
  .bf-confidence-band span { padding: 4px 15px; }
  .bf-hero-preview { min-height: 460px; }
  .bf-intro-grid { grid-template-columns: 1fr; gap: 45px; }
  .bf-showcase-row, .bf-showcase-row.is-reversed { grid-template-columns: 1fr; gap: 45px; min-height: auto; padding-top: 85px; padding-bottom: 85px; }
  .bf-showcase-row.is-reversed .bf-showcase-copy { order: 0; }
  .bf-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .bf-feature-grid article { min-height: 260px; }
  .bf-comparison-table { overflow-x: auto; }
  .bf-comparison-table > div { min-width: 760px; }
  .bf-site .bf-trust { grid-template-columns: 1fr; gap: 45px; margin-right: 18px; margin-left: 18px; }
  .bf-beta-card { grid-template-columns: 1fr; gap: 40px; }
  .bf-beta-price { width: min(100%, 330px); }
  .bf-beta-steps { grid-template-columns: 1fr; }
  .bf-onboarding-grid { grid-template-columns: 1fr; }
  .bf-final-cta { align-items: flex-start; flex-direction: column; margin-right: 18px; margin-left: 18px; }
  .bf-app-header { position: static; display: flex; min-height: auto; flex-wrap: wrap; padding: 17px 18px 0; }
  .bf-app-header > .bf-brand { margin-right: auto; }
  .bf-app-header nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; margin-top: 12px; }
  .bf-app-header nav button { min-height: 48px; flex: 0 0 auto; }
  .bf-app-header nav .bf-nav-link { min-height: 48px; flex: 0 0 auto; padding: 0 10px; }
  .bf-app-header nav { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .bf-app-header nav::-webkit-scrollbar { display: none; }
  .bf-app-main { padding: 35px 18px 105px; }
  .bf-app-footer { padding-bottom: 76px; }
  .bf-mobile-actions { position: fixed; z-index: 30; right: 10px; bottom: 10px; left: 10px; display: grid; grid-template-columns: repeat(4,1fr); overflow: hidden; border: 1px solid #cfd8d4; border-radius: 13px; background: rgba(255,255,255,.97); box-shadow: 0 12px 35px rgba(20,35,31,.16); backdrop-filter: blur(12px); }
  .bf-mobile-actions button { display: grid; min-height: 58px; place-items: center; align-content: center; gap: 1px; padding: 5px; border: 0; border-right: 1px solid var(--bf-line); background: transparent; color: var(--bf-muted); font-size: 10px; font-weight: 720; }
  .bf-mobile-actions button:last-child { border-right: 0; }
  .bf-mobile-actions button span { color: var(--bf-green); font-size: 18px; line-height: 1; }
  .bf-mobile-actions button.is-active { background: var(--bf-soft); color: var(--bf-ink); }
  .bf-metrics { grid-template-columns: repeat(2, 1fr); }
  .bf-metrics article:nth-child(2) { border-right: 0; }
  .bf-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--bf-line); }
  .bf-quick-grid { grid-template-columns: 1fr; }
  .bf-quick-grid button { border-right: 0; border-bottom: 1px solid var(--bf-line); }
  .bf-recent-list button { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .bf-recent-list button > span:last-child { display: none; }
  .bf-customer-layout { grid-template-columns: 1fr; }
  .bf-position-row { grid-template-columns: 1fr 1fr 1fr 34px; padding-bottom: 15px; border-bottom: 1px solid var(--bf-line); }
  .bf-position-description { grid-column: 1 / -1; }
  .bf-editor-bar { position: static; }
  .bf-offer-document { padding: 32px 24px; }
  .bf-response { grid-template-columns: 1fr; gap: 20px; }
  .bf-danger-zone { grid-template-columns: 1fr; }
  .bf-brand-settings { grid-template-columns: 130px 1fr; }
  .bf-brand-preview { grid-column: 1 / -1; }
  .bf-export-panel { grid-template-columns: 1fr; }
  .bf-import-panel, .bf-portal-section, .bf-portal-hero { grid-template-columns: 1fr; }
  .bf-billing-main { grid-template-columns: 1fr; gap: 45px; }
}

@media (max-width: 560px) {
  .bf-auth-card { padding: 30px 22px; }
  .bf-auth-footer, .bf-public-footer, .bf-app-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 6px; }
  .bf-auth-links { align-items: flex-start; flex-direction: column; }
  .bf-announcement { min-height: 44px; flex-direction: column; gap: 0; font-size: 10px; }
  .bf-public-header { padding-right: 20px; padding-left: 20px; }
  .bf-site .bf-hero { gap: 50px; min-height: auto; padding: 60px 20px 85px; }
  .bf-site .bf-hero h1 { font-size: 46px; }
  .bf-site .bf-hero-copy > p { font-size: 17px; }
  .bf-actions { align-items: stretch; flex-direction: column; }
  .bf-actions .bf-text-link { align-self: flex-start; }
  .bf-hero-media { min-height: 400px; }
  .bf-hero-media > img { height: 370px; border-radius: 19px; }
  .bf-hero-einvoice { top: 14px; left: 12px; }
  .bf-hero-document { right: 12px; bottom: -22px; width: calc(100% - 24px); padding: 17px; }
  .bf-confidence-band { margin-right: 20px; margin-left: 20px; border-radius: 14px; }
  .bf-confidence-band span { width: 50%; border-left: 0; padding: 5px 0; }
  .bf-home-benefits { grid-template-columns: 1fr; margin: 24px 20px 0; }
  .bf-home-benefits article { min-height: 225px; }
  .bf-home-benefits h3 { margin-top: 50px; }
  .bf-hero-preview { min-height: 430px; padding: 28px 24px; border-radius: 19px; transform: none; }
  .bf-preview-company { margin-top: 48px; font-size: 25px; }
  .bf-preview-summary { margin-top: 35px; }
  .bf-preview-total strong { font-size: 22px; }
  .bf-proof-strip { grid-template-columns: repeat(2, 1fr); margin-right: 20px; margin-left: 20px; }
  .bf-proof-strip span:nth-child(3) { border-right: 1px solid var(--bf-line); }
  .bf-proof-strip span:nth-child(2n) { border-right: 0; }
  .bf-proof-strip span:nth-child(-n+4) { border-bottom: 1px solid var(--bf-line); }
  .bf-site .bf-section { padding: 78px 20px; }
  .bf-site .bf-section-heading { margin-bottom: 38px; }
  .bf-site .bf-section-heading h2, .bf-site .bf-section h2, .bf-showcase-copy h2, .bf-final-cta h2 { font-size: 38px; }
  .bf-lead { font-size: 20px; }
  .bf-intro-points article { grid-template-columns: 1fr; gap: 5px; }
  .bf-workflow-grid, .bf-feature-grid { grid-template-columns: 1fr; }
  .bf-workflow-grid article { min-height: 250px; }
  .bf-showcase-row, .bf-showcase-row.is-reversed { padding: 72px 20px; }
  .bf-product-card { border-radius: 15px; }
  .bf-invoice-row { grid-template-columns: 1fr auto; padding: 17px 18px; }
  .bf-invoice-row > strong { grid-column: 1 / -1; text-align: left; }
  .bf-dashboard-metrics { grid-template-columns: 1fr; }
  .bf-dashboard-metrics div { border-right: 0; border-bottom: 1px solid var(--bf-line) !important; }
  .bf-dashboard-metrics div:last-child { border-bottom: 0 !important; }
  .bf-dashboard-next { grid-template-columns: 1fr; }
  .bf-beta-card { padding: 37px 24px; }
  .bf-beta-price { width: 100%; }
  .bf-faq-list { margin-left: 0; }
  .bf-faq-list summary { font-size: 16px; }
  .bf-site .bf-trust { margin-right: 10px; margin-left: 10px; padding: 55px 25px; }
  .bf-final-cta { min-height: auto; margin: 0 10px 85px; padding: 50px 25px; border-radius: 20px; }
  .bf-page-head { align-items: stretch; flex-direction: column; }
  .bf-page-head h1 { font-size: 44px; }
  .bf-page-head .bf-button { align-self: flex-start; }
  .bf-list-tools { align-items: stretch; flex-direction: column; }
  .bf-list-tools label:not(.bf-list-search) { width: 100%; }
  .bf-recent-head { align-items: flex-start; flex-direction: column; gap: 5px; }
  .bf-recent-list button { grid-template-columns: 36px minmax(0, 1fr); }
  .bf-recent-amount { grid-column: 2; }
  .bf-metrics { grid-template-columns: 1fr; }
  .bf-metrics article { border-right: 0; border-bottom: 1px solid var(--bf-line); }
  .bf-metrics article:last-child { border-bottom: 0; }
  .bf-next { align-items: stretch; flex-direction: column; }
  .bf-onboarding > header { align-items: flex-start; flex-direction: column; }
  .bf-onboarding > header small { text-align: left; }
  .bf-form-grid { grid-template-columns: 1fr; }
  .bf-span-2, .bf-form-title, .bf-form-section { grid-column: span 1; }
  .bf-editor-head { grid-template-columns: 1fr; }
  .bf-editor-status { text-align: left; }
  .bf-preview-jump { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; margin-top: 10px; padding: 0 12px; border: 1px solid var(--bf-line); border-radius: 8px; background: #fff; color: var(--bf-green); cursor: pointer; font-size: 12px; font-weight: 720; }
  .bf-preview-back { display: inline-flex; min-height: 30px; align-items: center; padding: 0 8px; border: 1px solid var(--bf-line); border-radius: 7px; background: #fff; color: var(--bf-green); cursor: pointer; font-size: 10px; font-weight: 720; }
  .bf-preview-heading > span:nth-child(2) { display: none; }
  .bf-draft-notice { align-items: flex-start; flex-direction: column; }
  .bf-editor-section { padding: 23px 20px; }
  .bf-position-row { grid-template-columns: 1fr 1fr; }
  .bf-catalog-picker { grid-template-columns: 1fr; }
  .bf-position-description { grid-column: 1 / -1; }
  .bf-remove-line { grid-column: 2; justify-self: end; }
  .bf-preflight ul { grid-template-columns: 1fr; }
  .bf-import-forms form { grid-template-columns: 1fr; }
  .bf-attention-list article { align-items: flex-start; flex-direction: column; gap: 10px; }
  .bf-portal-hero { padding: 32px 24px; }
  .bf-portal-section { padding: 25px 20px; }
  .bf-portal-list article { grid-template-columns: 1fr auto; }
  .bf-portal-list article .bf-button { grid-column: 1 / -1; }
  .bf-editor-bar { align-items: stretch; flex-direction: column; }
  .bf-editor-bar-actions { display: grid; grid-template-columns: 1fr; }
  .bf-editor-bar .bf-button { width: 100%; }
  .bf-paper { padding: 24px; }
  .bf-paper footer { right: 24px; left: 24px; }
  .bf-offer-document > header { flex-direction: column; }
  .bf-offer-document::before { margin: -32px -24px 30px; }
  .bf-offer-number { text-align: left; }
  .bf-offer-address { grid-template-columns: 1fr; }
  .bf-offer-lines th:nth-child(2), .bf-offer-lines td:nth-child(2), .bf-offer-lines th:nth-child(3), .bf-offer-lines td:nth-child(3) { display: none; }
  .bf-response { padding: 28px 22px; }
  .bf-response-actions { flex-direction: column; }
  .bf-legal-body { padding: 28px 22px; }
  .bf-legal-note { grid-template-columns: 1fr; }
  .bf-billing-main { width: min(100% - 32px, 600px); padding-top: 45px; }
  .bf-price-card { padding: 28px 22px; }
}

@media print {
  .bf-offer-header, .bf-offer-footer, .bf-response, .bf-decision-saved { display: none !important; }
  .bf-public-offer { width: 100%; margin: 0; }
  .bf-offer-document { border: 0; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bf-hero-copy, .bf-hero-media { animation: none; }
  .bf-home-benefits article, .bf-button { transition: none; }
}
