/* ================================================================== */
/* Burofolk pages: product sections and interface sketches.           */
/* The sketches ("bfm-") redraw the real Burofolk interface in HTML:  */
/* ink primary actions, hairline surfaces, Apple system hues, the     */
/* Calico dots. They are illustrations, drawn at a reduced scale.     */
/* ================================================================== */

:root {
    --bf-ink: #0f172a;
    --bf-muted: #475569;
    --bf-subtle: #64748b;
    --bf-hair: rgba(15, 23, 42, .08);
    --bf-hair-strong: rgba(15, 23, 42, .14);
    --bf-canvas: #f4f5f8;
    --bf-surface: #ffffff;
    --bf-wash: rgba(15, 23, 42, .05);
    --bf-blue: #007aff;
    --bf-green: #34c759;
    --bf-orange: #ff9500;
    --bf-red: #ff3b30;
    --bf-purple: #af52de;
    --bf-teal: #30b0c7;
    --bf-indigo: #5856d6;
    --bf-cyan: #06B6D4;
    --bf-violet: #8B5CF6;
    --bf-pink: #EC4899;
    --bf-gradient: linear-gradient(135deg, #06B6D4 0%, #8B5CF6 50%, #EC4899 100%);
}

/* ---------- Product typography and sections ---------- */

.bf-hero {
    padding: 3.5rem 0 4.5rem;
    background:
        radial-gradient(900px 380px at 85% -10%, rgba(139, 92, 246, .10), transparent 70%),
        radial-gradient(700px 300px at 0% 0%, rgba(6, 182, 212, .08), transparent 70%),
        var(--bg);
    overflow: hidden;
}

.bf-hero h1 { font-size: 3rem; margin-bottom: 1.25rem; }

.bf-wordmark {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .01em;
    color: var(--bf-ink);
    margin-bottom: 1.25rem;
}

.bf-wordmark .bf-new {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    background: var(--bf-gradient);
    border-radius: 999px;
    padding: .2rem .6rem;
}

.bf-dots { display: inline-block; width: 22px; height: 22px; }

.bf-hero .hero-desc { max-width: 560px; }

.bf-hero-note {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.25rem;
    font-size: .85rem;
    color: var(--text-secondary);
}

.bf-hero-note i { color: var(--accent); }

.btn-ink {
    background: var(--bf-ink);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .65rem 1.5rem;
    font-size: .9rem;
    font-weight: 600;
    transition: all .15s;
}

.btn-ink:hover { color: #fff; background: #1e293b; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15,23,42,.18); }
.btn-ink.btn-lg { padding: .8rem 2rem; font-size: 1rem; }

.bf-section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.bf-section-head .section-subtitle { margin-top: 0; }

/* Feature block: text beside a sketch */
.bf-feature { padding: 4.5rem 0; }
.bf-feature + .bf-feature { border-top: 1px solid var(--border); }
.bf-feature h2 { font-size: 2rem; margin-bottom: 1rem; }
.bf-feature .lead-text { font-size: 1.05rem; line-height: 1.75; margin-bottom: 1.5rem; }

.bf-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.bf-points li { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; line-height: 1.6; }
.bf-points li > i {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-subtle);
    color: var(--accent);
    font-size: .95rem;
    margin-top: 1px;
}
.bf-points strong { display: block; color: var(--text); font-weight: 600; }
.bf-more-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1.5rem; font-weight: 600; font-size: .95rem; color: var(--accent); }
.bf-more-link i { transition: transform .15s; }
.bf-more-link:hover i { transform: translateX(3px); }

/* Module cards (hub) */
.bf-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.bf-module {
    display: flex; flex-direction: column;
    padding: 1.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: inherit;
    transition: border-color .15s, box-shadow .2s, transform .2s;
}
a.bf-module:hover { color: inherit; border-color: var(--border-hover); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.bf-module .bf-glyph {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; margin-bottom: 1.1rem; color: #fff;
}
.bf-module h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.bf-module p { font-size: .92rem; margin-bottom: 1rem; }
.bf-module .bf-more { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--accent); display: inline-flex; align-items: center; gap: .35rem; }
.bf-module:hover .bf-more i { transform: translateX(3px); }
.bf-more i { transition: transform .15s; }

.bf-g-blue { background: var(--bf-blue); }
.bf-g-violet { background: var(--bf-violet); }
.bf-g-teal { background: var(--bf-teal); }
.bf-g-orange { background: var(--bf-orange); }
.bf-g-pink { background: var(--bf-pink); }
.bf-g-ink { background: var(--bf-ink); }
.bf-g-green { background: var(--bf-green); }

/* Two ranges */
.bf-ranges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.bf-range {
    padding: 2rem; border-radius: var(--radius-lg);
    border: 1px solid var(--border); background: var(--bg);
}
.bf-range-new { border-color: transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--bf-gradient) border-box; border: 1.5px solid transparent; }
.bf-range h3 { font-size: 1.3rem; margin: .75rem 0 .5rem; }
.bf-range ul { padding-left: 1.1rem; margin: 1rem 0 1.25rem; }
.bf-range li { font-size: .92rem; margin-bottom: .35rem; }
.bf-range-tag { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-tertiary); }

/* AI capability grid */
.bf-ai-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.bf-ai-item {
    padding: 1.25rem 1.35rem; border-radius: var(--radius);
    background: var(--bg); border: 1px solid var(--border);
}
.bf-ai-item i { color: var(--bf-violet); font-size: 1.1rem; }
.bf-ai-item h4 { font-size: .98rem; margin: .6rem 0 .3rem; }
.bf-ai-item p { font-size: .86rem; margin: 0; line-height: 1.55; }

.bf-proof {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.25rem 1.5rem; border-radius: var(--radius-lg);
    background: var(--bf-ink); color: #e2e8f0; margin-top: 2rem;
}
.bf-proof i { font-size: 1.4rem; color: #a5b4fc; }
.bf-proof strong { color: #fff; }
.bf-proof p { margin: 0; font-size: .95rem; line-height: 1.65; }

/* Private test form card */
.bf-beta-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-md);
}
.bf-need-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.bf-need-chips input { position: absolute; opacity: 0; pointer-events: none; }
.bf-need-chips label {
    padding: .45rem .95rem; border-radius: 999px; border: 1.5px solid var(--border);
    font-size: .85rem; font-weight: 500; cursor: pointer; transition: all .15s; user-select: none;
}
.bf-need-chips input:checked + label { border-color: var(--bf-ink); background: var(--bf-ink); color: #fff; }
.bf-need-chips input:focus-visible + label { box-shadow: 0 0 0 3px rgba(37,99,235,.2); }

/* ================================================================== */
/* Interface sketches ("bfm-")                                         */
/*                                                                     */
/* Each sketch is drawn once, at a design width of 880 px where        */
/* 1em = 12 px, and every length is in em. The root's font size is     */
/* tied to the width of its container (cqw), so a sketch scales as a   */
/* whole, like a picture: nothing reflows, wraps or overflows,          */
/* whatever the column or the screen.                                   */
/* Rule: a box that has dimensions never changes its font size; text   */
/* sizes are set on the text itself (.t-* helpers or leaf elements).   */
/* ================================================================== */

.bfm-scaler { container-type: inline-size; width: 100%; }

.bfm {
    font-size: calc(100cqw / 73.3333);
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.35;
    color: var(--bf-ink);
    background: #f5f5f7;
    border: .0833em solid rgba(15, 23, 42, .12);
    border-radius: 1.1667em;
    box-shadow: 0 .1667em .3333em rgba(15, 23, 42, .04), 0 2em 5em rgba(15, 23, 42, .14);
    overflow: hidden;
    user-select: none;
    text-align: left;
    letter-spacing: 0;
}
@supports not (width: 1cqw) { .bfm { font-size: 7px; } }
.bfm *, .bfm *::before, .bfm *::after { box-sizing: border-box; }
.bfm p { margin: 0; }
.bfm i.bi { line-height: 1; display: inline-block; }

/* Text helpers (relative to 12 px at design width) */
.bfm .t-8  { font-size: .6667em; }
.bfm .t-9  { font-size: .75em; }
.bfm .t-10 { font-size: .8333em; }
.bfm .t-11 { font-size: .9167em; }
.bfm .t-12 { font-size: 1em; }
.bfm .t-13 { font-size: 1.0833em; }
.bfm .t-14 { font-size: 1.1667em; }
.bfm .t-16 { font-size: 1.3333em; }
.bfm .t-20 { font-size: 1.6667em; }
.bfm .w5 { font-weight: 500; }
.bfm .w6 { font-weight: 600; }
.bfm .w7 { font-weight: 700; }
.bfm .muted { color: #64748b; }
.bfm .soft { color: #475569; }
.bfm .nowrap { white-space: nowrap; }
.bfm .ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; min-width: 0; }
.bfm .tnum { font-variant-numeric: tabular-nums; }

/* ---------- App shell ---------- */

.bfm-top { display: flex; align-items: center; gap: 1em; height: 3.3333em; padding: 0 1.1667em; }
.bfm-org { display: flex; align-items: center; gap: .5em; width: 11.6667em; white-space: nowrap; }
.bfm-org svg { width: 1.3333em; height: 1.3333em; flex: none; }
.bfm-search {
    flex: 0 1 30em; margin: 0 auto; height: 2.1667em; padding: 0 .75em;
    display: flex; align-items: center; gap: .5em;
    background: #fff; border: .0833em solid rgba(15, 23, 42, .14); border-radius: .6667em;
    color: #64748b; white-space: nowrap; overflow: hidden;
}
.bfm-topicons { width: 11.6667em; display: flex; justify-content: flex-end; align-items: center; gap: .9167em; color: #475569; }
.bfm-avatar { width: 1.6667em; height: 1.6667em; border-radius: 50%; background: linear-gradient(135deg, #06B6D4, #8B5CF6 55%, #EC4899); flex: none; }

.bfm-body { display: flex; align-items: stretch; }

.bfm-rail { width: 5.8333em; flex: none; display: flex; flex-direction: column; align-items: center; gap: .3333em; padding: .1667em 0 1em; }
.bfm-rail > span {
    width: 4.8333em; padding: .5em 0 .4167em; border-radius: .6667em;
    display: flex; flex-direction: column; align-items: center; gap: .3333em; color: #475569;
}
.bfm-rail > span b { font-size: .6667em; font-weight: 500; white-space: nowrap; }
.bfm-rail > span.on { background: rgba(0, 122, 255, .12); color: #007aff; }

.bfm-work { flex: 1; min-width: 0; padding: 0 1em 1em 0; }
.bfm-wshead { display: flex; align-items: center; gap: .6667em; height: 3em; }
.bfm-wsicon {
    width: 1.8333em; height: 1.8333em; border-radius: .5em; flex: none;
    display: flex; align-items: center; justify-content: center; color: #fff;
}
.bfm-cols { display: flex; gap: .8333em; align-items: stretch; }

.bfm-card { background: #fff; border: .0833em solid rgba(15, 23, 42, .08); border-radius: .6667em; min-width: 0; }
.bfm-pad { padding: 1.1667em 1.3333em; }
.bfm-grow { flex: 1; min-width: 0; }

/* Space panel */
.bfm-panel { width: 17.5em; flex: none; padding: .5833em; }
.bfm-nav {
    display: grid; grid-template-columns: 1.3333em minmax(0, 1fr) auto; align-items: center; column-gap: .5833em;
    height: 2.3333em; padding: 0 .6667em; border-radius: .5em;
}
.bfm-nav > i { justify-self: center; }
.bfm-nav .lbl { font-size: .9583em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bfm-nav .cnt { font-size: .8333em; color: #64748b; font-variant-numeric: tabular-nums; }
.bfm-nav.on { background: rgba(15, 23, 42, .06); box-shadow: inset 0 0 0 .0833em rgba(15, 23, 42, .1); }
.bfm-nav.on .lbl { font-weight: 600; }
.bfm-group { display: flex; align-items: flex-end; height: 2.1667em; padding: 0 .6667em .3333em; }
.bfm-group span { font-size: .6667em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.bfm-sep { height: .0833em; background: rgba(15, 23, 42, .08); margin: .5em .6667em; }

/* Content header */
.bfm-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 1em; height: 2.3333em; margin-bottom: .8333em; }
.bfm-crumb { color: #64748b; font-weight: 500; }

.bfm-btn {
    height: 2.1667em; padding: 0 .9167em; border-radius: .5em;
    display: inline-flex; align-items: center; gap: .4167em; white-space: nowrap; flex: none;
}
.bfm-btn.ink { background: #0f172a; color: #fff; }
.bfm-btn.ghost { background: #fff; border: .0833em solid rgba(15, 23, 42, .16); color: #0f172a; }
.bfm-btn.sm { height: 1.9167em; padding: 0 .75em; }

.bfm-chips { display: flex; gap: .4167em; flex-wrap: nowrap; overflow: hidden; margin-bottom: 1em; }
.bfm-chip {
    height: 1.9167em; padding: 0 .6667em; flex: none;
    display: inline-flex; align-items: center; gap: .3333em; white-space: nowrap;
    background: #fff; border: .0833em solid rgba(15, 23, 42, .16); border-radius: .5em; color: #0f172a;
}
.bfm-chip.dd::after { content: "\25BE"; font-size: .6667em; color: #64748b; }
.bfm-chip.on { background: #0f172a; border-color: #0f172a; color: #fff; }
.bfm-chip.on.dd::after { color: #cbd5e1; }

/* Tile grid */
.bfm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8333em; }
.bfm-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bfm-tile { background: #fff; border: .0833em solid rgba(15, 23, 42, .08); border-radius: .5833em; overflow: hidden; min-width: 0; }
.bfm-thumb { position: relative; aspect-ratio: 4 / 3; background: #eef1f5 center / cover no-repeat; }
.bfm-thumb .flag {
    position: absolute; top: .4167em; right: .4167em; width: 1.5em; height: 1.5em; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .94); box-shadow: 0 .0833em .25em rgba(0, 0, 0, .25);
}
.bfm-thumb .badge {
    position: absolute; left: .4167em; bottom: .4167em; height: 1.5em; padding: 0 .4167em; border-radius: .3333em;
    display: flex; align-items: center; gap: .25em; background: rgba(15, 23, 42, .78); color: #fff;
}
.bfm-cap { padding: .5em .6667em .6667em; min-width: 0; }
.bfm-cap .n { display: block; font-size: .875em; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bfm-cap .s { display: block; font-size: .75em; color: #64748b; margin-top: .1667em; }

/* A page drawn in CSS, for documents without a picture */
.bfm-docthumb { aspect-ratio: 4 / 3; background: #f3f5f8; display: flex; align-items: center; justify-content: center; }
.bfm-sheet {
    width: 36%; aspect-ratio: 1 / 1.3; background: #fff; border-radius: .1667em;
    box-shadow: 0 .0833em .4167em rgba(15, 23, 42, .18);
    padding: 7% 8%; display: flex; flex-direction: column; gap: 7%;
}
.bfm-sheet b { display: block; height: 6%; border-radius: .1667em; background: #d5dbe3; }
.bfm-sheet b:first-child { width: 58%; background: rgba(0, 122, 255, .6); }
.bfm-sheet b:nth-child(3) { width: 82%; }
.bfm-sheet b:nth-child(4) { width: 68%; }
.bfm-sheet b:nth-child(6) { width: 76%; }
.bfm-sheet.lg { width: 70%; }

/* ---------- Lists ---------- */

.bfm-list > .bfm-row + .bfm-row { border-top: .0833em solid rgba(15, 23, 42, .08); }
.bfm-row {
    display: grid; grid-template-columns: 2.1667em minmax(0, 1fr) auto; align-items: center; column-gap: .8333em;
    padding: .75em 1em;
}
.bfm-row.r4 { grid-template-columns: 2.1667em minmax(0, 1fr) 4.5em 7.5em; }
.bfm-row.r4 > :nth-child(3) { justify-self: end; }
.bfm-plate {
    width: 2.1667em; height: 2.1667em; border-radius: .5833em; flex: none;
    display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, .05);
}
.bfm-row .name { display: block; font-size: .9583em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bfm-row .meta { display: block; font-size: .8333em; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .1em; }

.bfm-st { display: inline-flex; align-items: center; gap: .3333em; font-size: .8333em; font-weight: 600; white-space: nowrap; }
.bfm-st.blue { color: #007aff; }
.bfm-st.green { color: #1e9a45; }
.bfm-st.orange { color: #d97706; }
.bfm-st.red { color: #e0352b; }
.bfm-st.purple { color: #9b3fd1; }
.bfm-st.muted { color: #64748b; }
.bfm-conf {
    display: inline-flex; align-items: center; height: 1.6667em; padding: 0 .5em; white-space: nowrap;
    border: .0833em solid rgba(15, 23, 42, .16); border-radius: .4167em; color: #475569;
}
.bfm-conf span { font-size: .75em; font-weight: 600; }

.bfm-metaline { display: flex; align-items: center; gap: 1.1667em; color: #64748b; white-space: nowrap; }
.bfm-metaline > span { display: inline-flex; align-items: center; gap: .3333em; font-size: .8333em; }

/* ---------- Form bits ---------- */

.bfm-field + .bfm-field { margin-top: .75em; }
.bfm-label { display: flex; align-items: center; gap: .5em; margin-bottom: .3333em; }
.bfm-label > span:first-child { font-size: .6667em; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #64748b; }
.bfm-input {
    height: 2.1667em; padding: 0 .6667em; border-radius: .5em;
    display: flex; align-items: center; justify-content: space-between; gap: .5em;
    background: #fff; border: .0833em solid rgba(15, 23, 42, .16); min-width: 0;
}
.bfm-input > span:first-child { font-size: .875em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bfm-input.ai { border-color: rgba(139, 92, 246, .5); background: rgba(139, 92, 246, .05); }
.bfm-src { display: inline-flex; align-items: center; gap: .25em; font-size: .6667em; font-weight: 600; color: #64748b; }
.bfm-src.ai { color: #7c3aed; }
.bfm-terms { display: flex; flex-wrap: wrap; gap: .3333em; }
.bfm-term {
    height: 1.75em; padding: 0 .6667em; border-radius: 999px; display: inline-flex; align-items: center;
    background: #fff; border: .0833em solid rgba(15, 23, 42, .16);
}
.bfm-term span { font-size: .8333em; white-space: nowrap; }
.bfm-term.sug { border-style: dashed; border-color: rgba(139, 92, 246, .6); color: #6d28d9; }

.bfm-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: .0833em solid rgba(15, 23, 42, .16); border-radius: .5em; overflow: hidden; }
.bfm-seg > span { height: 1.9167em; display: flex; align-items: center; justify-content: center; }
.bfm-seg > span + span { border-left: .0833em solid rgba(15, 23, 42, .16); }
.bfm-seg > span b { font-size: .8333em; font-weight: 500; }
.bfm-seg > span.on { background: #0f172a; color: #fff; }

.bfm-actions { display: flex; justify-content: flex-end; gap: .5em; margin-top: 1em; }

/* ---------- Steps (circuit, publication) ---------- */

.bfm-steps { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.bfm-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.bfm-step::before {
    content: ""; position: absolute; top: 1em; right: 50%; width: 100%; height: .1667em;
    background: rgba(15, 23, 42, .14); transform: translateY(-50%);
}
.bfm-step:first-child::before { content: none; }
.bfm-step.done::before, .bfm-step.now::before { background: #0f172a; }
.bfm-dot {
    position: relative; width: 2em; height: 2em; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: .1667em solid rgba(15, 23, 42, .16); color: #64748b;
}
.bfm-step.done .bfm-dot { background: #0f172a; border-color: #0f172a; color: #fff; }
.bfm-step.now .bfm-dot { border-color: #0f172a; color: #0f172a; box-shadow: 0 0 0 .3333em rgba(15, 23, 42, .08); }
.bfm-step .l1 { display: block; margin-top: .5em; font-size: .8333em; font-weight: 600; white-space: nowrap; }
.bfm-step .l2 { display: block; font-size: .75em; color: #64748b; white-space: nowrap; }

/* ---------- Search hits ---------- */

.bfm-hit { padding: .8333em 1em; }
.bfm-hit + .bfm-hit { border-top: .0833em solid rgba(15, 23, 42, .08); }
.bfm-hit-head { display: grid; grid-template-columns: 1.3333em minmax(0, 1fr) auto; align-items: center; column-gap: .5em; }
.bfm-hit-head .name { font-size: .9583em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bfm-hit .snip { display: block; margin: .3333em 0 0 1.8333em; font-size: .8333em; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bfm-hit mark { background: rgba(255, 204, 0, .38); color: inherit; padding: 0 .1em; border-radius: .15em; }

/* ---------- Dark viewer ---------- */

.bfm.dark { background: #1c1c1e; border-color: #000; color: #e5e5ea; }
.bfm-vbar { display: flex; align-items: center; gap: .8333em; height: 2.8333em; padding: 0 1em; background: #2c2c2e; }
.bfm-vtools { margin-left: auto; display: flex; gap: .3333em; }
.bfm-vtools > span { width: 2.1667em; height: 1.9167em; border-radius: .4167em; display: flex; align-items: center; justify-content: center; color: #d1d1d6; }
.bfm-vtools > span.on { background: #48484a; color: #fff; }
.bfm-vstage { display: flex; }
.bfm-vimg { flex: 1; min-width: 0; background: #0d0d0d center / cover no-repeat; aspect-ratio: 16 / 10; }
.bfm-vside { width: 18.3333em; flex: none; background: #fff; color: #0f172a; padding: 1.1667em; }
.bfm-vfoot { display: flex; align-items: center; gap: 1em; height: 2.5em; padding: 0 1em; background: #2c2c2e; color: #d1d1d6; }
.bfm-rend { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5em; padding: .5em 0; border-bottom: .0833em solid rgba(15, 23, 42, .08); }
.bfm-rend:last-of-type { border-bottom: none; }
.bfm-rend .a { font-size: .875em; white-space: nowrap; }
.bfm-rend .b { font-size: .75em; color: #64748b; margin-left: .3333em; }
.bfm-sidehead { display: block; margin: 1.1667em 0 .4167em; font-size: .6667em; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #64748b; }
.bfm-sidehead:first-child { margin-top: 0; }

/* ---------- Browser (public portal) ---------- */

.bfm.browser { background: #fff; }
.bfm-urlbar { display: flex; align-items: center; gap: .5em; height: 2.5em; padding: 0 1em; background: #f1f3f5; border-bottom: .0833em solid rgba(15, 23, 42, .08); }
.bfm-urlbar .dot { width: .8333em; height: .8333em; border-radius: 50%; flex: none; }
.bfm-urlbar .url { margin-left: .8333em; width: 26em; height: 1.6667em; border-radius: .4167em; background: #fff; display: flex; align-items: center; gap: .4167em; padding: 0 .6667em; color: #64748b; }
.bfm-phero { padding: 2.1667em 1.6667em 1.8333em; background: linear-gradient(135deg, #0b3b5b, #1f6f78); color: #fff; }
.bfm-psearch { margin-top: 1.1667em; width: 30em; height: 2.3333em; border-radius: .6667em; background: #fff; color: #64748b; display: flex; align-items: center; gap: .5em; padding: 0 .8333em; }
.bfm-pbar { display: flex; align-items: center; gap: .4167em; margin-bottom: 1em; }
.bfm-cart { margin-left: auto; height: 1.9167em; padding: 0 .75em; border-radius: 999px; background: #0f172a; color: #fff; display: inline-flex; align-items: center; gap: .4167em; }

/* ---------- Tables ---------- */

.bfm-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.bfm-table th, .bfm-table td { padding: .6667em 1em; border-bottom: .0833em solid rgba(15, 23, 42, .08); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bfm-table tr:last-child td { border-bottom: none; }
.bfm-table th span { font-size: .6667em; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #64748b; }
.bfm-table td > span.c { font-size: .875em; }
.bfm-who { display: inline-flex; align-items: center; gap: .4167em; }
.bfm-who > i.av { width: 1.3333em; height: 1.3333em; border-radius: 50%; display: inline-block; flex: none; }

/* Provider rows (SSO) */
.bfm-prov { display: grid; grid-template-columns: 2em minmax(0, 1fr) auto; align-items: center; column-gap: .6667em; padding: .6667em .8333em; }
.bfm-prov + .bfm-prov { border-top: .0833em solid rgba(15, 23, 42, .08); }

/* Caption under a sketch */
.bfm-caption { font-size: .78rem; color: var(--text-tertiary); text-align: center; margin: .9rem 0 0; }

/* On a phone the sketches keep their proportions; a touch less shadow */
@media (max-width: 575.98px) {
    .bfm { box-shadow: 0 .1667em .3333em rgba(15, 23, 42, .04), 0 1em 2.5em rgba(15, 23, 42, .12); }
}

/* ---------- Page-level responsive for product sections ---------- */
@media (max-width: 991.98px) {
    .bf-hero h1 { font-size: 2.4rem; }
    .bf-modules, .bf-ai-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .bf-hero { padding: 2rem 0 3rem; }
    .bf-hero h1 { font-size: 1.9rem; }
    .bf-feature { padding: 3rem 0; }
    .bf-feature h2 { font-size: 1.55rem; }
    .bf-modules, .bf-ai-grid, .bf-ranges { grid-template-columns: 1fr; }
    .bf-beta-card { padding: 1.5rem; }
}

/* A single window drawn on the canvas (sketches without the full shell) */
.bfm-inset { margin: 1.1667em; }
.bfm-whead {
    display: flex; align-items: center; gap: .6667em; height: 3em; padding: 0 1.1667em;
    border-bottom: .0833em solid rgba(15, 23, 42, .08); white-space: nowrap;
}
.bfm-whead .end { margin-left: auto; display: flex; align-items: center; gap: .5em; }
.bfm-split { display: flex; align-items: stretch; }
.bfm-preview { width: 40%; flex: none; background: #f3f5f8; display: flex; align-items: center; justify-content: center; padding: 1.6667em; border-right: .0833em solid rgba(15, 23, 42, .08); }
.bfm-cols2 { display: grid; grid-template-columns: minmax(0, 1fr) 18.3333em; gap: 1.1667em; align-items: start; }
.bfm-subcard { border: .0833em solid rgba(15, 23, 42, .1); border-radius: .6667em; padding: 1em; background: #fff; }

/* ================================================================== */
/* Showcase: one real Burofolk screen on an iPad in landscape, tilted  */
/* over a soft halo. The tilt, the aluminium edge and the glass sheen  */
/* are baked into the image (see _BfShowcase); the shadows follow its  */
/* outline through drop-shadow. Lengths are in cqw, so it scales whole. */
/* ================================================================== */

.bf-showcase { position: relative; container-type: inline-size; width: 100%; padding: 5cqw 0 8cqw; }
.bf-showcase .halo {
    position: absolute; inset: -2% -5% 0 -5%;
    background:
        radial-gradient(34% 38% at 12% 62%, rgba(6, 182, 212, .20), transparent 72%),
        radial-gradient(38% 42% at 92% 58%, rgba(139, 92, 246, .21), transparent 72%),
        radial-gradient(30% 26% at 62% 8%, rgba(236, 72, 153, .08), transparent 72%),
        radial-gradient(46% 30% at 48% 96%, rgba(59, 130, 246, .10), transparent 72%);
    filter: blur(5cqw);
    pointer-events: none;
}
.bf-stage { position: relative; padding: 0 3cqw; }
.bf-ipad, .bf-ipad-shadow { display: block; width: 100%; height: auto; }
.bf-ipad { position: relative; }
/* The shadow comes from a copy of the image underneath: a filter on the visible image softens it */
.bf-ipad-shadow {
    position: absolute; top: 0; left: 3cqw; width: calc(100% - 6cqw);
    filter:
        drop-shadow(0 .5cqw 1cqw rgba(15, 23, 42, .12))
        drop-shadow(0 2.6cqw 4cqw rgba(15, 23, 42, .15))
        drop-shadow(2.4cqw 6cqw 9cqw rgba(76, 29, 149, .20));
}
@media (prefers-reduced-motion: no-preference) {
    /* A lift of whole pixels, so the image never lands between two pixels */
    .bf-ipad, .bf-ipad-shadow { transition: translate .6s cubic-bezier(.2, .8, .2, 1); }
    .bf-showcase:hover .bf-ipad, .bf-showcase:hover .bf-ipad-shadow { translate: 0 -6px; }
    .bf-showcase .halo { animation: bf-halo 14s ease-in-out infinite alternate; }
}
@keyframes bf-halo {
    from { transform: translate3d(0, 0, 0) scale(1); opacity: .9; }
    to   { transform: translate3d(2%, -2%, 0) scale(1.05); opacity: 1; }
}

/* Home hero: on wide screens the tablet grows past its column (the hero clips it) */
@media (min-width: 1400px) {
    .bf-showcase.home { width: 110%; }
}

/* ================================================================== */
/* Portals page ("bfp-"): real Burofolk screens in flat device frames. */
/* Frames stay flat on purpose: a 3D transform resamples a screen at   */
/* display size and blurs its text. Depth comes from overlap, shadow   */
/* and a soft halo instead.                                            */
/* ================================================================== */

.bfp-hero { padding-bottom: 4.5rem; }
.bfp-hero-text { max-width: 820px; margin: 0 auto 3.25rem; text-align: center; }
.bfp-hero-text h1 { font-size: 3.25rem; line-height: 1.1; }
.bfp-hero-text .hero-desc { margin: 0 auto; max-width: 680px; }
.bfp-hero-text .hero-actions { justify-content: center; }
.bfp-hero .btn i { font-size: .85em; margin-left: .35rem; }

/* Browser window */
.bfp-window {
    position: relative; margin: 0; overflow: hidden;
    background: #fff; border: 1px solid rgba(15, 23, 42, .10); border-radius: 14px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .05), 0 32px 80px -24px rgba(36, 22, 92, .30);
}
.bfp-window img { display: block; width: 100%; height: auto; }
.bfp-bar {
    display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center;
    height: 34px; padding: 0 12px;
    background: #f4f5f8; border-bottom: 1px solid rgba(15, 23, 42, .07);
}
.bfp-lights { display: flex; gap: 6px; }
.bfp-lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.bfp-lights i:nth-child(2) { background: #febc2e; }
.bfp-lights i:nth-child(3) { background: #28c840; }
.bfp-url {
    justify-self: center; max-width: 100%; height: 22px; padding: 0 12px;
    display: inline-flex; align-items: center; gap: 6px;
    border-radius: 7px; background: #fff; border: 1px solid rgba(15, 23, 42, .06);
    font-size: .72rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bfp-url i { font-size: .62rem; color: #94a3b8; }

/* Phone: proportions of a current smartphone, lengths relative to its width */
.bfp-phone {
    position: relative; margin: 0; container-type: inline-size;
    padding: 0; border-radius: 13% / 6%;
    background: #121216;
    box-shadow: inset 0 0 0 1.5px #34343c, 0 26px 60px -18px rgba(36, 22, 92, .45), 0 6px 14px rgba(15, 23, 42, .12);
}
.bfp-screen { position: relative; overflow: hidden; margin: 2.6cqw; border-radius: 10.6cqw; background: #fff; padding-top: 8.5cqw; }
.bfp-screen::before {
    content: ""; position: absolute; z-index: 1; top: 2cqw; left: 50%;
    width: 28cqw; height: 7.6cqw; margin-left: -14cqw; border-radius: 99px; background: #121216;
}
.bfp-screen img { display: block; width: 100%; height: auto; }

/* Hero stage: the portal on a desktop, the same portal on a phone in front */
.bfp-stage { position: relative; max-width: 1060px; margin: 0 auto; padding-bottom: 5%; }
.bfp-stage .bfp-window { width: 88%; }
.bfp-stage-phone { position: absolute; right: 0; bottom: 0; width: 21%; }
.bfp-glow {
    position: absolute; inset: -10% -8% -4% -8%; pointer-events: none;
    background:
        radial-gradient(38% 42% at 12% 55%, rgba(6, 182, 212, .20), transparent 72%),
        radial-gradient(40% 46% at 88% 60%, rgba(139, 92, 246, .24), transparent 72%),
        radial-gradient(30% 30% at 55% 2%, rgba(236, 72, 153, .10), transparent 72%);
    filter: blur(40px);
}
.bfp-chip {
    position: absolute; z-index: 2;
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .55rem 1rem; border-radius: 999px;
    background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 12px 30px -10px rgba(36, 22, 92, .30);
    font-size: .85rem; font-weight: 600; color: var(--bf-ink); white-space: nowrap;
}
.bfp-chip i { color: var(--bf-violet); }
.bfp-chip-a { left: -3%; top: 34%; }
.bfp-chip-b { left: 8%; bottom: 9%; }
.bfp-chip-b i { color: var(--bf-cyan); }

/* Three promises */
.bfp-pillars-band { padding: 0 0 1.5rem; }
.bfp-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.bfp-pillar {
    display: flex; flex-direction: column; padding: 1.75rem;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
    color: inherit; transition: border-color .15s, box-shadow .2s, transform .2s;
}
.bfp-pillar:hover { color: inherit; border-color: var(--border-hover); box-shadow: var(--shadow-md); }
.bfp-pillar h2 { font-size: 1.45rem; margin: .35rem 0 .5rem; }
.bfp-pillar p { font-size: .93rem; margin-bottom: 1rem; }
.bfp-num {
    font-size: .95rem; font-weight: 800; letter-spacing: .1em;
    background: var(--bf-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bfp-pillar .bf-more { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--accent); display: inline-flex; align-items: center; gap: .35rem; }

/* Screens in a card (back office, crops) */
.bfp-card {
    margin: 0; overflow: hidden; background: #fff;
    border: 1px solid rgba(15, 23, 42, .10); border-radius: 16px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .05), 0 26px 60px -20px rgba(36, 22, 92, .28);
}
.bfp-card img { display: block; width: 100%; height: auto; }
.bfp-card figcaption {
    padding: .8rem 1.1rem; border-top: 1px solid rgba(15, 23, 42, .07); background: #fafafc;
    font-size: .85rem; font-weight: 600; color: var(--bf-ink);
}
.bfp-card figcaption i { color: var(--bf-violet); margin-right: .25rem; }

/* Search window with the AI notice in front */
.bfp-duo { position: relative; max-width: 1060px; margin: 0 auto 3.5rem; padding-right: 27%; }
.bfp-duo-card { position: absolute; right: 0; top: 7%; width: 32%; }

/* Capability grids */
.bfp-points-grid, .bfp-a11y { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.bf-ai-item h3 { font-size: .98rem; margin: .6rem 0 .3rem; }
.bfp-a11y { margin: 0 0 3.5rem; }
.bfp-a11y .bf-ai-item i { color: var(--bf-cyan); }

/* Autonomy */
.bfp-window-wide { max-width: 1110px; margin: 0 auto; }
.bfp-steps { list-style: none; padding: 0; margin: 3.5rem 0 4rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.bfp-steps li { position: relative; padding: 1.5rem 1.5rem 1.35rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.bfp-steps li:not(:last-child)::after {
    content: ""; position: absolute; top: 2.55rem; right: -1.5rem; width: 1.5rem; height: 2px;
    background: linear-gradient(90deg, #8B5CF6, #06B6D4);
}
.bfp-step-n {
    width: 36px; height: 36px; border-radius: 50%; margin-bottom: .9rem;
    display: flex; align-items: center; justify-content: center;
    background: var(--bf-gradient); color: #fff; font-weight: 700;
}
.bfp-steps h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.bfp-steps p { font-size: .92rem; margin: 0; }
.bfp-h3 { font-size: 1.5rem; margin-bottom: 1.25rem; }

/* Phones */
.bfp-phones { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 3rem; margin: 0 auto 4.5rem; padding: 1rem 0; }
.bfp-phones::before {
    content: ""; position: absolute; inset: 10% 8%; pointer-events: none;
    background:
        radial-gradient(40% 50% at 20% 50%, rgba(6, 182, 212, .16), transparent 72%),
        radial-gradient(40% 50% at 80% 50%, rgba(139, 92, 246, .18), transparent 72%);
    filter: blur(40px);
}
.bfp-phones figure { position: relative; margin: 2.5rem 0 0; width: 250px; text-align: center; }
.bfp-phones figure:nth-child(2) { margin-top: 0; }
.bfp-phones figcaption { margin-top: 1.1rem; font-weight: 600; font-size: .92rem; color: var(--bf-ink); }

/* Light / dark comparison */
.bfp-dark-row { margin-bottom: 4rem; }
.bfp-hint { font-size: .88rem; color: var(--text-tertiary); display: flex; align-items: center; gap: .4rem; }
.bfp-compare { position: relative; }
.bfp-compare-view { position: relative; }
.bfp-compare-dark { position: absolute; inset: 0; width: 100%; height: 100%; clip-path: inset(0 0 0 var(--pos, 50%)); }
.bfp-compare-view::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px;
    background: #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, .15); pointer-events: none;
}
.bfp-compare-handle {
    position: absolute; z-index: 1; top: 50%; left: var(--pos, 50%);
    width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; gap: 2px;
    background: #fff; color: var(--bf-ink); font-size: .75rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .25); pointer-events: none;
}
.bfp-compare-range {
    position: absolute; left: 0; right: 0; top: 34px; bottom: 0; width: 100%; height: calc(100% - 34px);
    margin: 0; opacity: 0; cursor: ew-resize;
}
.bfp-compare:has(.bfp-compare-range:focus-visible) .bfp-compare-handle { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Visitor tools: crops on a tinted stage */
.bfp-visitor .bfp-card { height: 100%; display: flex; flex-direction: column; }
.bfp-card-pad { padding: 1.5rem 1.5rem 0; background: linear-gradient(180deg, #f8f8fc, #eef0f6); }
.bfp-card-pad img {
    flex: none; width: auto; max-width: 100%; max-height: 460px; margin: auto;
    border-radius: 12px; border: 1px solid rgba(15, 23, 42, .08); box-shadow: 0 14px 34px -14px rgba(15, 23, 42, .30);
}
.bfp-card-pad figcaption { margin-top: auto; padding: 1.15rem .25rem 1.4rem; border: 0; background: none; font-weight: 400; color: var(--text-secondary); font-size: .92rem; line-height: 1.6; }
.bfp-card-pad figcaption strong { display: block; color: var(--bf-ink); font-weight: 600; margin-bottom: .15rem; }

/* Questions */
.bfp-faq { max-width: 780px; margin: 0 auto; }
.bfp-faq details { border-bottom: 1px solid var(--border); padding: 1.1rem 0; }
.bfp-faq summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem;
    font-weight: 600; font-size: 1.05rem; color: var(--bf-ink);
}
.bfp-faq summary::-webkit-details-marker { display: none; }
.bfp-faq summary::after { content: "+"; flex: none; font-size: 1.35rem; line-height: 1; color: var(--accent); transition: transform .2s; }
.bfp-faq details[open] summary::after { transform: rotate(45deg); }
.bfp-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.bfp-faq p { margin: .75rem 0 0; font-size: .97rem; }

/* Closing card */
.bfp-cta { padding: 1rem 0 5rem; }
.bfp-cta-card {
    max-width: 880px; margin: 0 auto; padding: 3.5rem 2.5rem; text-align: center; border-radius: 24px;
    background:
        radial-gradient(60% 80% at 0% 0%, rgba(6, 182, 212, .10), transparent 70%),
        radial-gradient(60% 80% at 100% 100%, rgba(139, 92, 246, .12), transparent 70%),
        var(--bg);
    border: 1px solid rgba(15, 23, 42, .08); box-shadow: var(--shadow-card);
}
.bfp-cta-card .bf-dots { width: 40px; height: 40px; margin-bottom: 1rem; }
.bfp-cta-card h2 { font-size: 2.1rem; margin-bottom: .6rem; }
.bfp-cta-card > p { font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.bfp-cta-card .btn i { font-size: .85em; margin-left: .35rem; }
.bfp-cta-card .bf-hero-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.bfp-credit { margin: 1.75rem 0 0; font-size: .78rem; color: var(--text-tertiary); }

@media (prefers-reduced-motion: no-preference) {
    .bfp-pillar:hover { transform: translateY(-2px); }
    .bfp-pillar .bf-more i { transition: transform .15s; }
    .bfp-pillar:hover .bf-more i { transform: translateY(2px); }
}

@media (max-width: 991.98px) {
    .bfp-hero-text h1 { font-size: 2.5rem; }
    .bfp-points-grid, .bfp-a11y { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bfp-duo { padding-right: 0; }
    .bfp-duo-card { position: relative; width: min(360px, 72%); margin: -16% 0 0 auto; }
    .bfp-steps { grid-template-columns: 1fr; gap: 1rem; }
    .bfp-steps li:not(:last-child)::after { display: none; }
    .bfp-phones { gap: 1.25rem; }
    .bfp-phones figure { width: 30%; }
}
@media (max-width: 767.98px) {
    .bfp-hero-text { margin-bottom: 2.25rem; }
    .bfp-hero-text h1 { font-size: 1.95rem; }
    .bfp-chip { display: none; }
    .bfp-stage .bfp-window { width: 92%; }
    .bfp-stage-phone { width: 27%; bottom: -2%; }
    .bfp-pillars, .bfp-points-grid, .bfp-a11y { grid-template-columns: 1fr; }
    .bfp-bar { height: 26px; grid-template-columns: 40px minmax(0, 1fr) 40px; padding: 0 8px; }
    .bfp-lights { gap: 4px; }
    .bfp-lights i { width: 8px; height: 8px; }
    .bfp-url { height: 17px; font-size: .6rem; padding: 0 8px; }
    .bfp-compare-range { top: 26px; height: calc(100% - 26px); }
    .bfp-compare-handle { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
    .bfp-phones { gap: .75rem; margin-bottom: 3rem; }
    .bfp-phones figure { width: 31.5%; margin-top: 1.5rem; }
    .bfp-phones figcaption { font-size: .78rem; margin-top: .75rem; }
    .bfp-card-pad { padding: 1rem 1rem 0; }
    .bfp-cta-card { padding: 2.5rem 1.25rem; }
    .bfp-cta-card h2 { font-size: 1.6rem; }
}
